@amateescu/portal-ui-components 0.0.25-react19 → 0.0.26-beta0

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.
Files changed (44) hide show
  1. package/dist/Box-C1OwXVV-.js +68 -0
  2. package/dist/Button-CIvE-fcO.js +355 -0
  3. package/dist/ButtonBase-BeQnmGXr.js +966 -0
  4. package/dist/{EllipsisOutlined-DfTPoz8U.js → EllipsisOutlined-DZsCEqiL.js} +724 -722
  5. package/dist/{PurePanel-ByiFMw5U.js → PurePanel-iUNZWTe_.js} +3 -3
  6. package/dist/{Skeleton-Imy-56Lv.js → Skeleton-CfEiGUkR.js} +2 -2
  7. package/dist/{UserInfoDropdown-6aB5cQyF.js → UserInfoDropdown-CoZutJAR.js} +191 -191
  8. package/dist/assertThisInitialized-BUtkG-md.js +13 -0
  9. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  10. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  11. package/dist/components/CustomButton/CustomButton.js +1 -1
  12. package/dist/components/CustomPagination/CustomPagination.js +372 -483
  13. package/dist/components/ErrorModal/ErrorModal.js +1 -1
  14. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  15. package/dist/components/InfoModal/InfoModal.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  17. package/dist/components/KpiCard/KpiCard.js +4 -4
  18. package/dist/components/LoadingAnimation/LoadingAnimation.js +215 -6
  19. package/dist/components/Login/Login.js +3837 -4489
  20. package/dist/components/Login/Login.stories.js +1 -1
  21. package/dist/components/SideMenu/SideMenu.js +1 -1
  22. package/dist/components/SideMenu/SideMenu.types.d.ts +0 -1
  23. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  24. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  26. package/dist/components/index.js +1 -1
  27. package/dist/{context-D_FWkiDE.js → context-Crxhk7DD.js} +9 -8
  28. package/dist/createSvgIcon-Db107M0j.js +250 -0
  29. package/dist/generateUtilityClasses-DY-qyzNG.js +3427 -0
  30. package/dist/{index-CR8gh-dS.js → index-BxiDYyNJ.js} +4 -4
  31. package/dist/index-DpDv68WZ.js +19153 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-DYizGgyG.js +46 -0
  34. package/dist/types/Column.d.ts +2 -0
  35. package/package.json +28 -26
  36. package/dist/Box-DQNjUj2G.js +0 -102
  37. package/dist/Button-D2XVkO19.js +0 -676
  38. package/dist/ButtonBase-D-XlpvIZ.js +0 -954
  39. package/dist/CircularProgress-BOkP0juA.js +0 -247
  40. package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
  41. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +0 -3439
  42. package/dist/index-CyFfYou3.js +0 -411
  43. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
  44. package/dist/useSlot-kDVPuVrn.js +0 -431
@@ -1,22 +1,22 @@
1
- import { a6 as Tr, a7 as Lr, a8 as Ar, a9 as $r, a3 as $n, a4 as zn, n as ur, e as T, ag as Gn, h as zr, x as Vr, M as Zn, K as Lt, H as ba, p as ke, c as Oe, w as Ht, _ as k, k as Kt, ah as it, q as cr, a2 as fr, ai as pa, aj as Qn, a5 as Wr, l as Rt, ak as Yn, N as Ca, P as Fr, j as st, i as me, al as wa, am as Hr, r as un, s as Dn, o as vr, I as Ma } from "./context-D_FWkiDE.js";
2
- import * as i from "react";
3
- import Ge, { useState as Jn, useMemo as Xn, useCallback as Tt, forwardRef as Ra, useRef as xn, useImperativeHandle as Ea } from "react";
4
- import { _ as ne } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
5
- import { r as Br } from "./index-CyFfYou3.js";
6
- var er = /* @__PURE__ */ i.createContext(null);
1
+ import { a6 as Tr, a7 as Lr, a8 as Ar, a9 as $r, a3 as $n, a4 as zn, n as ur, e as T, ag as Gn, h as zr, x as Vr, M as Zn, K as Lt, H as ba, p as De, c as ke, w as Ht, _ as k, k as Kt, ah as it, q as cr, a2 as fr, ai as pa, aj as Qn, a5 as Wr, l as Rt, ak as Yn, N as Ca, P as Fr, j as st, i as he, al as wa, am as Hr, r as un, s as Dn, o as vr, I as Ma } from "./context-Crxhk7DD.js";
2
+ import * as a from "react";
3
+ import qe, { useState as Jn, useMemo as Xn, useCallback as Tt, forwardRef as Ra, useRef as xn, useImperativeHandle as Ea } from "react";
4
+ import { a as ae } from "./objectWithoutPropertiesLoose-DYizGgyG.js";
5
+ import { r as Br } from "./index-DpDv68WZ.js";
6
+ var er = /* @__PURE__ */ a.createContext(null);
7
7
  function Sa(e) {
8
- var n = e.children, t = e.onBatchResize, r = i.useRef(0), a = i.useRef([]), o = i.useContext(er), s = i.useCallback(function(l, u, c) {
8
+ var n = e.children, t = e.onBatchResize, r = a.useRef(0), i = a.useRef([]), o = a.useContext(er), s = a.useCallback(function(l, u, c) {
9
9
  r.current += 1;
10
10
  var b = r.current;
11
- a.current.push({
11
+ i.current.push({
12
12
  size: l,
13
13
  element: u,
14
14
  data: c
15
15
  }), Promise.resolve().then(function() {
16
- b === r.current && (t == null || t(a.current), a.current = []);
16
+ b === r.current && (t == null || t(i.current), i.current = []);
17
17
  }), o == null || o(l, u, c);
18
18
  }, [t, o]);
19
- return /* @__PURE__ */ i.createElement(er.Provider, {
19
+ return /* @__PURE__ */ a.createElement(er.Provider, {
20
20
  value: s
21
21
  }, n);
22
22
  }
@@ -25,8 +25,8 @@ var Ur = function() {
25
25
  return Map;
26
26
  function e(n, t) {
27
27
  var r = -1;
28
- return n.some(function(a, o) {
29
- return a[0] === t ? (r = o, !0) : !1;
28
+ return n.some(function(i, o) {
29
+ return i[0] === t ? (r = o, !0) : !1;
30
30
  }), r;
31
31
  }
32
32
  return (
@@ -45,22 +45,22 @@ var Ur = function() {
45
45
  enumerable: !0,
46
46
  configurable: !0
47
47
  }), n.prototype.get = function(t) {
48
- var r = e(this.__entries__, t), a = this.__entries__[r];
49
- return a && a[1];
48
+ var r = e(this.__entries__, t), i = this.__entries__[r];
49
+ return i && i[1];
50
50
  }, n.prototype.set = function(t, r) {
51
- var a = e(this.__entries__, t);
52
- ~a ? this.__entries__[a][1] = r : this.__entries__.push([t, r]);
51
+ var i = e(this.__entries__, t);
52
+ ~i ? this.__entries__[i][1] = r : this.__entries__.push([t, r]);
53
53
  }, n.prototype.delete = function(t) {
54
- var r = this.__entries__, a = e(r, t);
55
- ~a && r.splice(a, 1);
54
+ var r = this.__entries__, i = e(r, t);
55
+ ~i && r.splice(i, 1);
56
56
  }, n.prototype.has = function(t) {
57
57
  return !!~e(this.__entries__, t);
58
58
  }, n.prototype.clear = function() {
59
59
  this.__entries__.splice(0);
60
60
  }, n.prototype.forEach = function(t, r) {
61
61
  r === void 0 && (r = null);
62
- for (var a = 0, o = this.__entries__; a < o.length; a++) {
63
- var s = o[a];
62
+ for (var i = 0, o = this.__entries__; i < o.length; i++) {
63
+ var s = o[i];
64
64
  t.call(r, s[1], s[0]);
65
65
  }
66
66
  }, n;
@@ -76,7 +76,7 @@ var Ur = function() {
76
76
  };
77
77
  }(), Na = 2;
78
78
  function _a(e, n) {
79
- var t = !1, r = !1, a = 0;
79
+ var t = !1, r = !1, i = 0;
80
80
  function o() {
81
81
  t && (t = !1, e()), r && l();
82
82
  }
@@ -86,12 +86,12 @@ function _a(e, n) {
86
86
  function l() {
87
87
  var u = Date.now();
88
88
  if (t) {
89
- if (u - a < Na)
89
+ if (u - i < Na)
90
90
  return;
91
91
  r = !0;
92
92
  } else
93
93
  t = !0, r = !1, setTimeout(s, n);
94
- a = u;
94
+ i = u;
95
95
  }
96
96
  return l;
97
97
  }
@@ -126,19 +126,19 @@ var Ia = 20, xa = ["top", "right", "bottom", "left", "width", "height", "size",
126
126
  }, e.prototype.disconnect_ = function() {
127
127
  !tr || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
128
128
  }, e.prototype.onTransitionEnd_ = function(n) {
129
- var t = n.propertyName, r = t === void 0 ? "" : t, a = xa.some(function(o) {
129
+ var t = n.propertyName, r = t === void 0 ? "" : t, i = xa.some(function(o) {
130
130
  return !!~r.indexOf(o);
131
131
  });
132
- a && this.refresh();
132
+ i && this.refresh();
133
133
  }, e.getInstance = function() {
134
134
  return this.instance_ || (this.instance_ = new e()), this.instance_;
135
135
  }, e.instance_ = null, e;
136
136
  }()
137
137
  ), jr = function(e, n) {
138
138
  for (var t = 0, r = Object.keys(n); t < r.length; t++) {
139
- var a = r[t];
140
- Object.defineProperty(e, a, {
141
- value: n[a],
139
+ var i = r[t];
140
+ Object.defineProperty(e, i, {
141
+ value: n[i],
142
142
  enumerable: !1,
143
143
  writable: !1,
144
144
  configurable: !0
@@ -155,14 +155,14 @@ function Tn(e) {
155
155
  function wr(e) {
156
156
  for (var n = [], t = 1; t < arguments.length; t++)
157
157
  n[t - 1] = arguments[t];
158
- return n.reduce(function(r, a) {
159
- var o = e["border-" + a + "-width"];
158
+ return n.reduce(function(r, i) {
159
+ var o = e["border-" + i + "-width"];
160
160
  return r + Tn(o);
161
161
  }, 0);
162
162
  }
163
163
  function Oa(e) {
164
- for (var n = ["top", "right", "bottom", "left"], t = {}, r = 0, a = n; r < a.length; r++) {
165
- var o = a[r], s = e["padding-" + o];
164
+ for (var n = ["top", "right", "bottom", "left"], t = {}, r = 0, i = n; r < i.length; r++) {
165
+ var o = i[r], s = e["padding-" + o];
166
166
  t[o] = Tn(s);
167
167
  }
168
168
  return t;
@@ -175,12 +175,12 @@ function Ta(e) {
175
175
  var n = e.clientWidth, t = e.clientHeight;
176
176
  if (!n && !t)
177
177
  return qr;
178
- var r = ln(e).getComputedStyle(e), a = Oa(r), o = a.left + a.right, s = a.top + a.bottom, l = Tn(r.width), u = Tn(r.height);
178
+ var r = ln(e).getComputedStyle(e), i = Oa(r), o = i.left + i.right, s = i.top + i.bottom, l = Tn(r.width), u = Tn(r.height);
179
179
  if (r.boxSizing === "border-box" && (Math.round(l + o) !== n && (l -= wr(r, "left", "right") + o), Math.round(u + s) !== t && (u -= wr(r, "top", "bottom") + s)), !Aa(e)) {
180
180
  var c = Math.round(l + o) - n, b = Math.round(u + s) - t;
181
181
  Math.abs(c) !== 1 && (l -= c), Math.abs(b) !== 1 && (u -= b);
182
182
  }
183
- return Vn(a.left, a.top, l, u);
183
+ return Vn(i.left, i.top, l, u);
184
184
  }
185
185
  var La = /* @__PURE__ */ function() {
186
186
  return typeof SVGGraphicsElement < "u" ? function(e) {
@@ -196,15 +196,15 @@ function $a(e) {
196
196
  return tr ? La(e) ? Ka(e) : Ta(e) : qr;
197
197
  }
198
198
  function za(e) {
199
- var n = e.x, t = e.y, r = e.width, a = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
199
+ var n = e.x, t = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
200
200
  return jr(s, {
201
201
  x: n,
202
202
  y: t,
203
203
  width: r,
204
- height: a,
204
+ height: i,
205
205
  top: t,
206
206
  right: n + r,
207
- bottom: a + t,
207
+ bottom: i + t,
208
208
  left: n
209
209
  }), s;
210
210
  }
@@ -310,8 +310,8 @@ var Ha = function() {
310
310
  function Zr(e) {
311
311
  e.forEach(function(n) {
312
312
  var t, r = n.target;
313
- (t = wt.get(r)) === null || t === void 0 || t.forEach(function(a) {
314
- return a(r);
313
+ (t = wt.get(r)) === null || t === void 0 || t.forEach(function(i) {
314
+ return i(r);
315
315
  });
316
316
  });
317
317
  }
@@ -336,29 +336,29 @@ var ja = /* @__PURE__ */ function(e) {
336
336
  return this.props.children;
337
337
  }
338
338
  }]), t;
339
- }(i.Component);
339
+ }(a.Component);
340
340
  function qa(e, n) {
341
- var t = e.children, r = e.disabled, a = i.useRef(null), o = i.useRef(null), s = i.useContext(er), l = typeof t == "function", u = l ? t(a) : t, c = i.useRef({
341
+ var t = e.children, r = e.disabled, i = a.useRef(null), o = a.useRef(null), s = a.useContext(er), l = typeof t == "function", u = l ? t(i) : t, c = a.useRef({
342
342
  width: -1,
343
343
  height: -1,
344
344
  offsetWidth: -1,
345
345
  offsetHeight: -1
346
- }), b = !l && /* @__PURE__ */ i.isValidElement(u) && $n(u), f = b ? zn(u) : null, d = ur(f, a), m = function() {
346
+ }), b = !l && /* @__PURE__ */ a.isValidElement(u) && $n(u), f = b ? zn(u) : null, d = ur(f, i), m = function() {
347
347
  var M;
348
- return Gn(a.current) || // Support `nativeElement` format
349
- (a.current && zr(a.current) === "object" ? Gn((M = a.current) === null || M === void 0 ? void 0 : M.nativeElement) : null) || Gn(o.current);
348
+ return Gn(i.current) || // Support `nativeElement` format
349
+ (i.current && zr(i.current) === "object" ? Gn((M = i.current) === null || M === void 0 ? void 0 : M.nativeElement) : null) || Gn(o.current);
350
350
  };
351
- i.useImperativeHandle(n, function() {
351
+ a.useImperativeHandle(n, function() {
352
352
  return m();
353
353
  });
354
- var h = i.useRef(e);
354
+ var h = a.useRef(e);
355
355
  h.current = e;
356
- var E = i.useCallback(function(g) {
357
- var M = h.current, S = M.onResize, y = M.data, w = g.getBoundingClientRect(), C = w.width, v = w.height, N = g.offsetWidth, O = g.offsetHeight, D = Math.floor(C), H = Math.floor(v);
358
- if (c.current.width !== D || c.current.height !== H || c.current.offsetWidth !== N || c.current.offsetHeight !== O) {
356
+ var E = a.useCallback(function(g) {
357
+ var M = h.current, S = M.onResize, y = M.data, w = g.getBoundingClientRect(), C = w.width, v = w.height, N = g.offsetWidth, O = g.offsetHeight, D = Math.floor(C), B = Math.floor(v);
358
+ if (c.current.width !== D || c.current.height !== B || c.current.offsetWidth !== N || c.current.offsetHeight !== O) {
359
359
  var $ = {
360
360
  width: D,
361
- height: H,
361
+ height: B,
362
362
  offsetWidth: N,
363
363
  offsetHeight: O
364
364
  };
@@ -372,31 +372,31 @@ function qa(e, n) {
372
372
  });
373
373
  }
374
374
  }, []);
375
- return i.useEffect(function() {
375
+ return a.useEffect(function() {
376
376
  var g = m();
377
377
  return g && !r && Ba(g, E), function() {
378
378
  return Ua(g, E);
379
379
  };
380
- }, [a.current, r]), /* @__PURE__ */ i.createElement(ja, {
380
+ }, [i.current, r]), /* @__PURE__ */ a.createElement(ja, {
381
381
  ref: o
382
- }, b ? /* @__PURE__ */ i.cloneElement(u, {
382
+ }, b ? /* @__PURE__ */ a.cloneElement(u, {
383
383
  ref: d
384
384
  }) : u);
385
385
  }
386
- var Yr = /* @__PURE__ */ i.forwardRef(qa);
386
+ var Yr = /* @__PURE__ */ a.forwardRef(qa);
387
387
  process.env.NODE_ENV !== "production" && (Yr.displayName = "SingleObserver");
388
388
  var Ga = "rc-observer-key";
389
389
  function Ja(e, n) {
390
390
  var t = e.children, r = typeof t == "function" ? [t] : Vr(t);
391
- return process.env.NODE_ENV !== "production" && (r.length > 1 ? Zn(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : r.length === 0 && Zn(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), r.map(function(a, o) {
392
- var s = (a == null ? void 0 : a.key) || "".concat(Ga, "-").concat(o);
393
- return /* @__PURE__ */ i.createElement(Yr, ne({}, e, {
391
+ return process.env.NODE_ENV !== "production" && (r.length > 1 ? Zn(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : r.length === 0 && Zn(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), r.map(function(i, o) {
392
+ var s = (i == null ? void 0 : i.key) || "".concat(Ga, "-").concat(o);
393
+ return /* @__PURE__ */ a.createElement(Yr, ae({}, e, {
394
394
  key: s,
395
395
  ref: o === 0 ? n : void 0
396
- }), a);
396
+ }), i);
397
397
  });
398
398
  }
399
- var cn = /* @__PURE__ */ i.forwardRef(Ja);
399
+ var cn = /* @__PURE__ */ a.forwardRef(Ja);
400
400
  process.env.NODE_ENV !== "production" && (cn.displayName = "ResizeObserver");
401
401
  cn.Collection = Sa;
402
402
  const Za = new Lt("antSlideUpIn", {
@@ -508,10 +508,10 @@ const Za = new Lt("antSlideUpIn", {
508
508
  const {
509
509
  antCls: t
510
510
  } = e, r = `${t}-${n}`, {
511
- inKeyframes: a,
511
+ inKeyframes: i,
512
512
  outKeyframes: o
513
513
  } = ai[n];
514
- return [ba(r, a, o, e.motionDurationMid), {
514
+ return [ba(r, i, o, e.motionDurationMid), {
515
515
  [`
516
516
  ${r}-enter,
517
517
  ${r}-appear
@@ -536,16 +536,16 @@ const Za = new Lt("antSlideUpIn", {
536
536
  };
537
537
  var oi = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], rn = void 0;
538
538
  function si(e, n) {
539
- var t = e.prefixCls, r = e.invalidate, a = e.item, o = e.renderItem, s = e.responsive, l = e.responsiveDisabled, u = e.registerSize, c = e.itemKey, b = e.className, f = e.style, d = e.children, m = e.display, h = e.order, E = e.component, g = E === void 0 ? "div" : E, M = ke(e, oi), S = s && !m;
539
+ var t = e.prefixCls, r = e.invalidate, i = e.item, o = e.renderItem, s = e.responsive, l = e.responsiveDisabled, u = e.registerSize, c = e.itemKey, b = e.className, f = e.style, d = e.children, m = e.display, h = e.order, E = e.component, g = E === void 0 ? "div" : E, M = De(e, oi), S = s && !m;
540
540
  function y(O) {
541
541
  u(c, O);
542
542
  }
543
- i.useEffect(function() {
543
+ a.useEffect(function() {
544
544
  return function() {
545
545
  y(null);
546
546
  };
547
547
  }, []);
548
- var w = o && a !== rn ? o(a, {
548
+ var w = o && i !== rn ? o(i, {
549
549
  index: h
550
550
  }) : d, C;
551
551
  r || (C = {
@@ -558,21 +558,21 @@ function si(e, n) {
558
558
  });
559
559
  var v = {};
560
560
  S && (v["aria-hidden"] = !0);
561
- var N = /* @__PURE__ */ i.createElement(g, ne({
562
- className: Oe(!r && t, b),
561
+ var N = /* @__PURE__ */ a.createElement(g, ae({
562
+ className: ke(!r && t, b),
563
563
  style: T(T({}, C), f)
564
564
  }, v, M, {
565
565
  ref: n
566
566
  }), w);
567
- return s && (N = /* @__PURE__ */ i.createElement(cn, {
567
+ return s && (N = /* @__PURE__ */ a.createElement(cn, {
568
568
  onResize: function(D) {
569
- var H = D.offsetWidth;
570
- y(H);
569
+ var B = D.offsetWidth;
570
+ y(B);
571
571
  },
572
572
  disabled: l
573
573
  }, N)), N;
574
574
  }
575
- var wn = /* @__PURE__ */ i.forwardRef(si);
575
+ var wn = /* @__PURE__ */ a.forwardRef(si);
576
576
  wn.displayName = "Item";
577
577
  function li(e) {
578
578
  if (typeof MessageChannel > "u")
@@ -585,11 +585,11 @@ function li(e) {
585
585
  }
586
586
  }
587
587
  function ui() {
588
- var e = i.useRef(null), n = function(r) {
588
+ var e = a.useRef(null), n = function(r) {
589
589
  e.current || (e.current = [], li(function() {
590
590
  Br.unstable_batchedUpdates(function() {
591
- e.current.forEach(function(a) {
592
- a();
591
+ e.current.forEach(function(i) {
592
+ i();
593
593
  }), e.current = null;
594
594
  });
595
595
  })), e.current.push(r);
@@ -597,161 +597,161 @@ function ui() {
597
597
  return n;
598
598
  }
599
599
  function gn(e, n) {
600
- var t = i.useState(n), r = k(t, 2), a = r[0], o = r[1], s = Kt(function(l) {
600
+ var t = a.useState(n), r = k(t, 2), i = r[0], o = r[1], s = Kt(function(l) {
601
601
  e(function() {
602
602
  o(l);
603
603
  });
604
604
  });
605
- return [a, s];
605
+ return [i, s];
606
606
  }
607
- var Ln = /* @__PURE__ */ Ge.createContext(null), ci = ["component"], fi = ["className"], vi = ["className"], di = function(n, t) {
608
- var r = i.useContext(Ln);
607
+ var Ln = /* @__PURE__ */ qe.createContext(null), ci = ["component"], fi = ["className"], vi = ["className"], di = function(n, t) {
608
+ var r = a.useContext(Ln);
609
609
  if (!r) {
610
- var a = n.component, o = a === void 0 ? "div" : a, s = ke(n, ci);
611
- return /* @__PURE__ */ i.createElement(o, ne({}, s, {
610
+ var i = n.component, o = i === void 0 ? "div" : i, s = De(n, ci);
611
+ return /* @__PURE__ */ a.createElement(o, ae({}, s, {
612
612
  ref: t
613
613
  }));
614
614
  }
615
- var l = r.className, u = ke(r, fi), c = n.className, b = ke(n, vi);
616
- return /* @__PURE__ */ i.createElement(Ln.Provider, {
615
+ var l = r.className, u = De(r, fi), c = n.className, b = De(n, vi);
616
+ return /* @__PURE__ */ a.createElement(Ln.Provider, {
617
617
  value: null
618
- }, /* @__PURE__ */ i.createElement(wn, ne({
618
+ }, /* @__PURE__ */ a.createElement(wn, ae({
619
619
  ref: t,
620
- className: Oe(l, c)
620
+ className: ke(l, c)
621
621
  }, u, b)));
622
- }, Xr = /* @__PURE__ */ i.forwardRef(di);
622
+ }, Xr = /* @__PURE__ */ a.forwardRef(di);
623
623
  Xr.displayName = "RawItem";
624
624
  var mi = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], ea = "responsive", ta = "invalidate";
625
625
  function hi(e) {
626
626
  return "+ ".concat(e.length, " ...");
627
627
  }
628
628
  function gi(e, n) {
629
- var t = e.prefixCls, r = t === void 0 ? "rc-overflow" : t, a = e.data, o = a === void 0 ? [] : a, s = e.renderItem, l = e.renderRawItem, u = e.itemKey, c = e.itemWidth, b = c === void 0 ? 10 : c, f = e.ssr, d = e.style, m = e.className, h = e.maxCount, E = e.renderRest, g = e.renderRawRest, M = e.suffix, S = e.component, y = S === void 0 ? "div" : S, w = e.itemComponent, C = e.onVisibleChange, v = ke(e, mi), N = f === "full", O = ui(), D = gn(O, null), H = k(D, 2), $ = H[0], z = H[1], L = $ || 0, j = gn(O, /* @__PURE__ */ new Map()), Z = k(j, 2), q = Z[0], Q = Z[1], V = gn(O, 0), A = k(V, 2), x = A[0], we = A[1], le = gn(O, 0), G = k(le, 2), K = G[0], B = G[1], re = gn(O, 0), ye = k(re, 2), W = ye[0], Y = ye[1], ae = Jn(null), be = k(ae, 2), ie = be[0], Ne = be[1], Me = Jn(null), oe = k(Me, 2), Be = oe[0], Ue = oe[1], ue = i.useMemo(function() {
630
- return Be === null && N ? Number.MAX_SAFE_INTEGER : Be || 0;
631
- }, [Be, $]), _e = Jn(!1), We = k(_e, 2), ve = We[0], ht = We[1], F = "".concat(r, "-item"), Je = Math.max(x, K), pe = h === ea, J = o.length && pe, Fe = h === ta, Ae = J || typeof h == "number" && o.length > h, $e = Xn(function() {
629
+ var t = e.prefixCls, r = t === void 0 ? "rc-overflow" : t, i = e.data, o = i === void 0 ? [] : i, s = e.renderItem, l = e.renderRawItem, u = e.itemKey, c = e.itemWidth, b = c === void 0 ? 10 : c, f = e.ssr, d = e.style, m = e.className, h = e.maxCount, E = e.renderRest, g = e.renderRawRest, M = e.suffix, S = e.component, y = S === void 0 ? "div" : S, w = e.itemComponent, C = e.onVisibleChange, v = De(e, mi), N = f === "full", O = ui(), D = gn(O, null), B = k(D, 2), $ = B[0], z = B[1], L = $ || 0, j = gn(O, /* @__PURE__ */ new Map()), Z = k(j, 2), q = Z[0], Q = Z[1], V = gn(O, 0), A = k(V, 2), x = A[0], Me = A[1], ue = gn(O, 0), G = k(ue, 2), K = G[0], W = G[1], ie = gn(O, 0), be = k(ie, 2), F = be[0], Y = be[1], te = Jn(null), pe = k(te, 2), oe = pe[0], _e = pe[1], Re = Jn(null), se = k(Re, 2), He = se[0], Be = se[1], ce = a.useMemo(function() {
630
+ return He === null && N ? Number.MAX_SAFE_INTEGER : He || 0;
631
+ }, [He, $]), Ie = Jn(!1), Ve = k(Ie, 2), de = Ve[0], ht = Ve[1], H = "".concat(r, "-item"), Ge = Math.max(x, K), Ce = h === ea, J = o.length && Ce, We = h === ta, Te = J || typeof h == "number" && o.length > h, Le = Xn(function() {
632
632
  var P = o;
633
633
  return J ? $ === null && N ? P = o : P = o.slice(0, Math.min(o.length, L / b)) : typeof h == "number" && (P = o.slice(0, h)), P;
634
- }, [o, b, $, h, J]), Ze = Xn(function() {
635
- return J ? o.slice(ue + 1) : o.slice($e.length);
636
- }, [o, $e, J, ue]), Ie = Tt(function(P, R) {
634
+ }, [o, b, $, h, J]), Je = Xn(function() {
635
+ return J ? o.slice(ce + 1) : o.slice(Le.length);
636
+ }, [o, Le, J, ce]), Ae = Tt(function(P, R) {
637
637
  var I;
638
638
  return typeof u == "function" ? u(P) : (I = u && (P == null ? void 0 : P[u])) !== null && I !== void 0 ? I : R;
639
- }, [u]), Ce = Tt(s || function(P) {
639
+ }, [u]), we = Tt(s || function(P) {
640
640
  return P;
641
641
  }, [s]);
642
- function ce(P, R, I) {
643
- Be === P && (R === void 0 || R === ie) || (Ue(P), I || (ht(P < o.length - 1), C == null || C(P)), R !== void 0 && Ne(R));
642
+ function fe(P, R, I) {
643
+ He === P && (R === void 0 || R === oe) || (Be(P), I || (ht(P < o.length - 1), C == null || C(P)), R !== void 0 && _e(R));
644
644
  }
645
- function Re(P, R) {
645
+ function Ee(P, R) {
646
646
  z(R.clientWidth);
647
647
  }
648
- function xe(P, R) {
648
+ function Ze(P, R) {
649
649
  Q(function(I) {
650
- var se = new Map(I);
651
- return R === null ? se.delete(P) : se.set(P, R), se;
650
+ var le = new Map(I);
651
+ return R === null ? le.delete(P) : le.set(P, R), le;
652
652
  });
653
653
  }
654
- function X(P, R) {
655
- B(R), we(K);
654
+ function ne(P, R) {
655
+ W(R), Me(K);
656
656
  }
657
- function Ke(P, R) {
657
+ function re(P, R) {
658
658
  Y(R);
659
659
  }
660
- function ze(P) {
661
- return q.get(Ie($e[P], P));
660
+ function $e(P) {
661
+ return q.get(Ae(Le[P], P));
662
662
  }
663
663
  it(function() {
664
- if (L && typeof Je == "number" && $e) {
665
- var P = W, R = $e.length, I = R - 1;
664
+ if (L && typeof Ge == "number" && Le) {
665
+ var P = F, R = Le.length, I = R - 1;
666
666
  if (!R) {
667
- ce(0, null);
667
+ fe(0, null);
668
668
  return;
669
669
  }
670
- for (var se = 0; se < R; se += 1) {
671
- var he = ze(se);
672
- if (N && (he = he || 0), he === void 0) {
673
- ce(se - 1, void 0, !0);
670
+ for (var le = 0; le < R; le += 1) {
671
+ var ge = $e(le);
672
+ if (N && (ge = ge || 0), ge === void 0) {
673
+ fe(le - 1, void 0, !0);
674
674
  break;
675
675
  }
676
- if (P += he, // Only one means `totalWidth` is the final width
676
+ if (P += ge, // Only one means `totalWidth` is the final width
677
677
  I === 0 && P <= L || // Last two width will be the final width
678
- se === I - 1 && P + ze(I) <= L) {
679
- ce(I, null);
678
+ le === I - 1 && P + $e(I) <= L) {
679
+ fe(I, null);
680
680
  break;
681
- } else if (P + Je > L) {
682
- ce(se - 1, P - he - W + K);
681
+ } else if (P + Ge > L) {
682
+ fe(le - 1, P - ge - F + K);
683
683
  break;
684
684
  }
685
685
  }
686
- M && ze(0) + W > L && Ne(null);
686
+ M && $e(0) + F > L && _e(null);
687
687
  }
688
- }, [L, q, K, W, Ie, $e]);
689
- var Et = ve && !!Ze.length, lt = {};
690
- ie !== null && J && (lt = {
688
+ }, [L, q, K, F, Ae, Le]);
689
+ var Et = de && !!Je.length, lt = {};
690
+ oe !== null && J && (lt = {
691
691
  position: "absolute",
692
- left: ie,
692
+ left: oe,
693
693
  top: 0
694
694
  });
695
695
  var rt = {
696
- prefixCls: F,
696
+ prefixCls: H,
697
697
  responsive: J,
698
698
  component: w,
699
- invalidate: Fe
699
+ invalidate: We
700
700
  }, At = l ? function(P, R) {
701
- var I = Ie(P, R);
702
- return /* @__PURE__ */ i.createElement(Ln.Provider, {
701
+ var I = Ae(P, R);
702
+ return /* @__PURE__ */ a.createElement(Ln.Provider, {
703
703
  key: I,
704
704
  value: T(T({}, rt), {}, {
705
705
  order: R,
706
706
  item: P,
707
707
  itemKey: I,
708
- registerSize: xe,
709
- display: R <= ue
708
+ registerSize: Ze,
709
+ display: R <= ce
710
710
  })
711
711
  }, l(P, R));
712
712
  } : function(P, R) {
713
- var I = Ie(P, R);
714
- return /* @__PURE__ */ i.createElement(wn, ne({}, rt, {
713
+ var I = Ae(P, R);
714
+ return /* @__PURE__ */ a.createElement(wn, ae({}, rt, {
715
715
  order: R,
716
716
  key: I,
717
717
  item: P,
718
- renderItem: Ce,
718
+ renderItem: we,
719
719
  itemKey: I,
720
- registerSize: xe,
721
- display: R <= ue
720
+ registerSize: Ze,
721
+ display: R <= ce
722
722
  }));
723
- }, Te = {
724
- order: Et ? ue : Number.MAX_SAFE_INTEGER,
725
- className: "".concat(F, "-rest"),
726
- registerSize: X,
723
+ }, Oe = {
724
+ order: Et ? ce : Number.MAX_SAFE_INTEGER,
725
+ className: "".concat(H, "-rest"),
726
+ registerSize: ne,
727
727
  display: Et
728
- }, Se = E || hi, ut = g ? /* @__PURE__ */ i.createElement(Ln.Provider, {
729
- value: T(T({}, rt), Te)
730
- }, g(Ze)) : /* @__PURE__ */ i.createElement(wn, ne({}, rt, Te), typeof Se == "function" ? Se(Ze) : Se), de = /* @__PURE__ */ i.createElement(y, ne({
731
- className: Oe(!Fe && r, m),
728
+ }, Pe = E || hi, ut = g ? /* @__PURE__ */ a.createElement(Ln.Provider, {
729
+ value: T(T({}, rt), Oe)
730
+ }, g(Je)) : /* @__PURE__ */ a.createElement(wn, ae({}, rt, Oe), typeof Pe == "function" ? Pe(Je) : Pe), me = /* @__PURE__ */ a.createElement(y, ae({
731
+ className: ke(!We && r, m),
732
732
  style: d,
733
733
  ref: n
734
- }, v), $e.map(At), Ae ? ut : null, M && /* @__PURE__ */ i.createElement(wn, ne({}, rt, {
735
- responsive: pe,
734
+ }, v), Le.map(At), Te ? ut : null, M && /* @__PURE__ */ a.createElement(wn, ae({}, rt, {
735
+ responsive: Ce,
736
736
  responsiveDisabled: !J,
737
- order: ue,
738
- className: "".concat(F, "-suffix"),
739
- registerSize: Ke,
737
+ order: ce,
738
+ className: "".concat(H, "-suffix"),
739
+ registerSize: re,
740
740
  display: !0,
741
741
  style: lt
742
742
  }), M));
743
- return pe ? /* @__PURE__ */ i.createElement(cn, {
744
- onResize: Re,
743
+ return Ce ? /* @__PURE__ */ a.createElement(cn, {
744
+ onResize: Ee,
745
745
  disabled: !J
746
- }, de) : de;
746
+ }, me) : me;
747
747
  }
748
- var Mt = /* @__PURE__ */ i.forwardRef(gi);
748
+ var Mt = /* @__PURE__ */ a.forwardRef(gi);
749
749
  Mt.displayName = "Overflow";
750
750
  Mt.Item = Xr;
751
751
  Mt.RESPONSIVE = ea;
752
752
  Mt.INVALIDATE = ta;
753
753
  function yi(e) {
754
- var n = e.prefixCls, t = e.align, r = e.arrow, a = e.arrowPos, o = r || {}, s = o.className, l = o.content, u = a.x, c = u === void 0 ? 0 : u, b = a.y, f = b === void 0 ? 0 : b, d = i.useRef();
754
+ var n = e.prefixCls, t = e.align, r = e.arrow, i = e.arrowPos, o = r || {}, s = o.className, l = o.content, u = i.x, c = u === void 0 ? 0 : u, b = i.y, f = b === void 0 ? 0 : b, d = a.useRef();
755
755
  if (!t || !t.points)
756
756
  return null;
757
757
  var m = {
@@ -761,92 +761,92 @@ function yi(e) {
761
761
  var h = t.points[0], E = t.points[1], g = h[0], M = h[1], S = E[0], y = E[1];
762
762
  g === S || !["t", "b"].includes(g) ? m.top = f : g === "t" ? m.top = 0 : m.bottom = 0, M === y || !["l", "r"].includes(M) ? m.left = c : M === "l" ? m.left = 0 : m.right = 0;
763
763
  }
764
- return /* @__PURE__ */ i.createElement("div", {
764
+ return /* @__PURE__ */ a.createElement("div", {
765
765
  ref: d,
766
- className: Oe("".concat(n, "-arrow"), s),
766
+ className: ke("".concat(n, "-arrow"), s),
767
767
  style: m
768
768
  }, l);
769
769
  }
770
770
  function bi(e) {
771
- var n = e.prefixCls, t = e.open, r = e.zIndex, a = e.mask, o = e.motion;
772
- return a ? /* @__PURE__ */ i.createElement(cr, ne({}, o, {
771
+ var n = e.prefixCls, t = e.open, r = e.zIndex, i = e.mask, o = e.motion;
772
+ return i ? /* @__PURE__ */ a.createElement(cr, ae({}, o, {
773
773
  motionAppear: !0,
774
774
  visible: t,
775
775
  removeOnLeave: !0
776
776
  }), function(s) {
777
777
  var l = s.className;
778
- return /* @__PURE__ */ i.createElement("div", {
778
+ return /* @__PURE__ */ a.createElement("div", {
779
779
  style: {
780
780
  zIndex: r
781
781
  },
782
- className: Oe("".concat(n, "-mask"), l)
782
+ className: ke("".concat(n, "-mask"), l)
783
783
  });
784
784
  }) : null;
785
785
  }
786
- var na = /* @__PURE__ */ i.memo(function(e) {
786
+ var na = /* @__PURE__ */ a.memo(function(e) {
787
787
  var n = e.children;
788
788
  return n;
789
789
  }, function(e, n) {
790
790
  return n.cache;
791
791
  });
792
792
  process.env.NODE_ENV !== "production" && (na.displayName = "PopupContent");
793
- var ra = /* @__PURE__ */ i.forwardRef(function(e, n) {
794
- var t = e.popup, r = e.className, a = e.prefixCls, o = e.style, s = e.target, l = e.onVisibleChanged, u = e.open, c = e.keepDom, b = e.fresh, f = e.onClick, d = e.mask, m = e.arrow, h = e.arrowPos, E = e.align, g = e.motion, M = e.maskMotion, S = e.forceRender, y = e.getPopupContainer, w = e.autoDestroy, C = e.portal, v = e.zIndex, N = e.onMouseEnter, O = e.onMouseLeave, D = e.onPointerEnter, H = e.onPointerDownCapture, $ = e.ready, z = e.offsetX, L = e.offsetY, j = e.offsetR, Z = e.offsetB, q = e.onAlign, Q = e.onPrepare, V = e.stretch, A = e.targetWidth, x = e.targetHeight, we = typeof t == "function" ? t() : t, le = u || c, G = (y == null ? void 0 : y.length) > 0, K = i.useState(!y || !G), B = k(K, 2), re = B[0], ye = B[1];
793
+ var ra = /* @__PURE__ */ a.forwardRef(function(e, n) {
794
+ var t = e.popup, r = e.className, i = e.prefixCls, o = e.style, s = e.target, l = e.onVisibleChanged, u = e.open, c = e.keepDom, b = e.fresh, f = e.onClick, d = e.mask, m = e.arrow, h = e.arrowPos, E = e.align, g = e.motion, M = e.maskMotion, S = e.forceRender, y = e.getPopupContainer, w = e.autoDestroy, C = e.portal, v = e.zIndex, N = e.onMouseEnter, O = e.onMouseLeave, D = e.onPointerEnter, B = e.onPointerDownCapture, $ = e.ready, z = e.offsetX, L = e.offsetY, j = e.offsetR, Z = e.offsetB, q = e.onAlign, Q = e.onPrepare, V = e.stretch, A = e.targetWidth, x = e.targetHeight, Me = typeof t == "function" ? t() : t, ue = u || c, G = (y == null ? void 0 : y.length) > 0, K = a.useState(!y || !G), W = k(K, 2), ie = W[0], be = W[1];
795
795
  if (it(function() {
796
- !re && G && s && ye(!0);
797
- }, [re, G, s]), !re)
796
+ !ie && G && s && be(!0);
797
+ }, [ie, G, s]), !ie)
798
798
  return null;
799
- var W = "auto", Y = {
799
+ var F = "auto", Y = {
800
800
  left: "-1000vw",
801
801
  top: "-1000vh",
802
- right: W,
803
- bottom: W
802
+ right: F,
803
+ bottom: F
804
804
  };
805
805
  if ($ || !u) {
806
- var ae, be = E.points, ie = E.dynamicInset || ((ae = E._experimental) === null || ae === void 0 ? void 0 : ae.dynamicInset), Ne = ie && be[0][1] === "r", Me = ie && be[0][0] === "b";
807
- Ne ? (Y.right = j, Y.left = W) : (Y.left = z, Y.right = W), Me ? (Y.bottom = Z, Y.top = W) : (Y.top = L, Y.bottom = W);
806
+ var te, pe = E.points, oe = E.dynamicInset || ((te = E._experimental) === null || te === void 0 ? void 0 : te.dynamicInset), _e = oe && pe[0][1] === "r", Re = oe && pe[0][0] === "b";
807
+ _e ? (Y.right = j, Y.left = F) : (Y.left = z, Y.right = F), Re ? (Y.bottom = Z, Y.top = F) : (Y.top = L, Y.bottom = F);
808
808
  }
809
- var oe = {};
810
- return V && (V.includes("height") && x ? oe.height = x : V.includes("minHeight") && x && (oe.minHeight = x), V.includes("width") && A ? oe.width = A : V.includes("minWidth") && A && (oe.minWidth = A)), u || (oe.pointerEvents = "none"), /* @__PURE__ */ i.createElement(C, {
811
- open: S || le,
809
+ var se = {};
810
+ return V && (V.includes("height") && x ? se.height = x : V.includes("minHeight") && x && (se.minHeight = x), V.includes("width") && A ? se.width = A : V.includes("minWidth") && A && (se.minWidth = A)), u || (se.pointerEvents = "none"), /* @__PURE__ */ a.createElement(C, {
811
+ open: S || ue,
812
812
  getContainer: y && function() {
813
813
  return y(s);
814
814
  },
815
815
  autoDestroy: w
816
- }, /* @__PURE__ */ i.createElement(bi, {
817
- prefixCls: a,
816
+ }, /* @__PURE__ */ a.createElement(bi, {
817
+ prefixCls: i,
818
818
  open: u,
819
819
  zIndex: v,
820
820
  mask: d,
821
821
  motion: M
822
- }), /* @__PURE__ */ i.createElement(cn, {
822
+ }), /* @__PURE__ */ a.createElement(cn, {
823
823
  onResize: q,
824
824
  disabled: !u
825
- }, function(Be) {
826
- return /* @__PURE__ */ i.createElement(cr, ne({
825
+ }, function(He) {
826
+ return /* @__PURE__ */ a.createElement(cr, ae({
827
827
  motionAppear: !0,
828
828
  motionEnter: !0,
829
829
  motionLeave: !0,
830
830
  removeOnLeave: !1,
831
831
  forceRender: S,
832
- leavedClassName: "".concat(a, "-hidden")
832
+ leavedClassName: "".concat(i, "-hidden")
833
833
  }, g, {
834
834
  onAppearPrepare: Q,
835
835
  onEnterPrepare: Q,
836
836
  visible: u,
837
- onVisibleChanged: function(ue) {
838
- var _e;
839
- g == null || (_e = g.onVisibleChanged) === null || _e === void 0 || _e.call(g, ue), l(ue);
837
+ onVisibleChanged: function(ce) {
838
+ var Ie;
839
+ g == null || (Ie = g.onVisibleChanged) === null || Ie === void 0 || Ie.call(g, ce), l(ce);
840
840
  }
841
- }), function(Ue, ue) {
842
- var _e = Ue.className, We = Ue.style, ve = Oe(a, _e, r);
843
- return /* @__PURE__ */ i.createElement("div", {
844
- ref: fr(Be, n, ue),
845
- className: ve,
841
+ }), function(Be, ce) {
842
+ var Ie = Be.className, Ve = Be.style, de = ke(i, Ie, r);
843
+ return /* @__PURE__ */ a.createElement("div", {
844
+ ref: fr(He, n, ce),
845
+ className: de,
846
846
  style: T(T(T(T({
847
847
  "--arrow-x": "".concat(h.x || 0, "px"),
848
848
  "--arrow-y": "".concat(h.y || 0, "px")
849
- }, Y), oe), We), {}, {
849
+ }, Y), se), Ve), {}, {
850
850
  boxSizing: "border-box",
851
851
  zIndex: v
852
852
  }, o),
@@ -854,35 +854,35 @@ var ra = /* @__PURE__ */ i.forwardRef(function(e, n) {
854
854
  onMouseLeave: O,
855
855
  onPointerEnter: D,
856
856
  onClick: f,
857
- onPointerDownCapture: H
858
- }, m && /* @__PURE__ */ i.createElement(yi, {
859
- prefixCls: a,
857
+ onPointerDownCapture: B
858
+ }, m && /* @__PURE__ */ a.createElement(yi, {
859
+ prefixCls: i,
860
860
  arrow: m,
861
861
  arrowPos: h,
862
862
  align: E
863
- }), /* @__PURE__ */ i.createElement(na, {
863
+ }), /* @__PURE__ */ a.createElement(na, {
864
864
  cache: !u && !b
865
- }, we));
865
+ }, Me));
866
866
  });
867
867
  }));
868
868
  });
869
869
  process.env.NODE_ENV !== "production" && (ra.displayName = "Popup");
870
- var aa = /* @__PURE__ */ i.forwardRef(function(e, n) {
871
- var t = e.children, r = e.getTriggerDOMNode, a = $n(t), o = i.useCallback(function(l) {
870
+ var aa = /* @__PURE__ */ a.forwardRef(function(e, n) {
871
+ var t = e.children, r = e.getTriggerDOMNode, i = $n(t), o = a.useCallback(function(l) {
872
872
  pa(n, r ? r(l) : l);
873
873
  }, [r]), s = ur(o, zn(t));
874
- return a ? /* @__PURE__ */ i.cloneElement(t, {
874
+ return i ? /* @__PURE__ */ a.cloneElement(t, {
875
875
  ref: s
876
876
  }) : t;
877
877
  });
878
878
  process.env.NODE_ENV !== "production" && (aa.displayName = "TriggerWrapper");
879
- var Mr = /* @__PURE__ */ i.createContext(null);
879
+ var Mr = /* @__PURE__ */ a.createContext(null);
880
880
  function Rr(e) {
881
881
  return e ? Array.isArray(e) ? e : [e] : [];
882
882
  }
883
883
  function pi(e, n, t, r) {
884
- return i.useMemo(function() {
885
- var a = Rr(t ?? n), o = Rr(r ?? n), s = new Set(a), l = new Set(o);
884
+ return a.useMemo(function() {
885
+ var i = Rr(t ?? n), o = Rr(r ?? n), s = new Set(i), l = new Set(o);
886
886
  return e && (s.has("hover") && (s.delete("hover"), s.add("click")), l.has("hover") && (l.delete("hover"), l.add("click"))), [s, l];
887
887
  }, [e, n, t, r]);
888
888
  }
@@ -891,9 +891,9 @@ function Ci() {
891
891
  return t ? e[0] === n[0] : e[0] === n[0] && e[1] === n[1];
892
892
  }
893
893
  function wi(e, n, t, r) {
894
- for (var a = t.points, o = Object.keys(e), s = 0; s < o.length; s += 1) {
894
+ for (var i = t.points, o = Object.keys(e), s = 0; s < o.length; s += 1) {
895
895
  var l, u = o[s];
896
- if (Ci((l = e[u]) === null || l === void 0 ? void 0 : l.points, a, r))
896
+ if (Ci((l = e[u]) === null || l === void 0 ? void 0 : l.points, i, r))
897
897
  return "".concat(n, "-placement-").concat(u);
898
898
  }
899
899
  return "";
@@ -910,7 +910,7 @@ function En(e) {
910
910
  }
911
911
  function nr(e) {
912
912
  for (var n = [], t = e == null ? void 0 : e.parentElement, r = ["hidden", "scroll", "clip", "auto"]; t; ) {
913
- var a = En(t).getComputedStyle(t), o = a.overflowX, s = a.overflowY, l = a.overflow;
913
+ var i = En(t).getComputedStyle(t), o = i.overflowX, s = i.overflowY, l = i.overflow;
914
914
  [o, s, l].some(function(u) {
915
915
  return r.includes(u);
916
916
  }) && n.push(t), t = t.parentElement;
@@ -928,12 +928,12 @@ function Sr(e, n) {
928
928
  var t = T({}, e);
929
929
  return (n || []).forEach(function(r) {
930
930
  if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
931
- var a = En(r).getComputedStyle(r), o = a.overflow, s = a.overflowClipMargin, l = a.borderTopWidth, u = a.borderBottomWidth, c = a.borderLeftWidth, b = a.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, m = r.clientHeight, h = r.offsetWidth, E = r.clientWidth, g = yn(l), M = yn(u), S = yn(c), y = yn(b), w = Mn(Math.round(f.width / h * 1e3) / 1e3), C = Mn(Math.round(f.height / d * 1e3) / 1e3), v = (h - E - S - y) * w, N = (d - m - g - M) * C, O = g * C, D = M * C, H = S * w, $ = y * w, z = 0, L = 0;
931
+ var i = En(r).getComputedStyle(r), o = i.overflow, s = i.overflowClipMargin, l = i.borderTopWidth, u = i.borderBottomWidth, c = i.borderLeftWidth, b = i.borderRightWidth, f = r.getBoundingClientRect(), d = r.offsetHeight, m = r.clientHeight, h = r.offsetWidth, E = r.clientWidth, g = yn(l), M = yn(u), S = yn(c), y = yn(b), w = Mn(Math.round(f.width / h * 1e3) / 1e3), C = Mn(Math.round(f.height / d * 1e3) / 1e3), v = (h - E - S - y) * w, N = (d - m - g - M) * C, O = g * C, D = M * C, B = S * w, $ = y * w, z = 0, L = 0;
932
932
  if (o === "clip") {
933
933
  var j = yn(s);
934
934
  z = j * w, L = j * C;
935
935
  }
936
- var Z = f.x + H - z, q = f.y + O - L, Q = Z + f.width + 2 * z - H - $ - v, V = q + f.height + 2 * L - O - D - N;
936
+ var Z = f.x + B - z, q = f.y + O - L, Q = Z + f.width + 2 * z - B - $ - v, V = q + f.height + 2 * L - O - D - N;
937
937
  t.left = Math.max(t.left, Z), t.top = Math.max(t.top, q), t.right = Math.min(t.right, Q), t.bottom = Math.min(t.bottom, V);
938
938
  }
939
939
  }), t;
@@ -943,17 +943,17 @@ function Pr(e) {
943
943
  return r ? e * (parseFloat(r[1]) / 100) : parseFloat(t);
944
944
  }
945
945
  function Nr(e, n) {
946
- var t = n || [], r = k(t, 2), a = r[0], o = r[1];
947
- return [Pr(e.width, a), Pr(e.height, o)];
946
+ var t = n || [], r = k(t, 2), i = r[0], o = r[1];
947
+ return [Pr(e.width, i), Pr(e.height, o)];
948
948
  }
949
949
  function _r() {
950
950
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
951
951
  return [e[0], e[1]];
952
952
  }
953
953
  function an(e, n) {
954
- var t = n[0], r = n[1], a, o;
955
- return t === "t" ? o = e.y : t === "b" ? o = e.y + e.height : o = e.y + e.height / 2, r === "l" ? a = e.x : r === "r" ? a = e.x + e.width : a = e.x + e.width / 2, {
956
- x: a,
954
+ var t = n[0], r = n[1], i, o;
955
+ return t === "t" ? o = e.y : t === "b" ? o = e.y + e.height : o = e.y + e.height / 2, r === "l" ? i = e.x : r === "r" ? i = e.x + e.width : i = e.x + e.width / 2, {
956
+ x: i,
957
957
  y: o
958
958
  };
959
959
  }
@@ -964,12 +964,12 @@ function Ot(e, n) {
964
964
  l: "r",
965
965
  r: "l"
966
966
  };
967
- return e.map(function(r, a) {
968
- return a === n ? t[r] || "c" : r;
967
+ return e.map(function(r, i) {
968
+ return i === n ? t[r] || "c" : r;
969
969
  }).join("");
970
970
  }
971
- function Mi(e, n, t, r, a, o, s) {
972
- var l = i.useState({
971
+ function Mi(e, n, t, r, i, o, s) {
972
+ var l = a.useState({
973
973
  ready: !1,
974
974
  offsetX: 0,
975
975
  offsetY: 0,
@@ -979,22 +979,22 @@ function Mi(e, n, t, r, a, o, s) {
979
979
  arrowY: 0,
980
980
  scaleX: 1,
981
981
  scaleY: 1,
982
- align: a[r] || {}
983
- }), u = k(l, 2), c = u[0], b = u[1], f = i.useRef(0), d = i.useMemo(function() {
982
+ align: i[r] || {}
983
+ }), u = k(l, 2), c = u[0], b = u[1], f = a.useRef(0), d = a.useMemo(function() {
984
984
  return n ? nr(n) : [];
985
- }, [n]), m = i.useRef({}), h = function() {
985
+ }, [n]), m = a.useRef({}), h = function() {
986
986
  m.current = {};
987
987
  };
988
988
  e || h();
989
989
  var E = Kt(function() {
990
990
  if (n && t && e) {
991
991
  let nt = function(nn, Dt) {
992
- var kt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Je, hn = K.x + nn, Nn = K.y + Dt, Bn = hn + Ne, Un = Nn + ie, jn = Math.max(hn, kt.left), p = Math.max(Nn, kt.top), _ = Math.min(Bn, kt.right), fe = Math.min(Un, kt.bottom);
993
- return Math.max(0, (_ - jn) * (fe - p));
992
+ var kt = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ge, hn = K.x + nn, Nn = K.y + Dt, Bn = hn + _e, Un = Nn + oe, jn = Math.max(hn, kt.left), p = Math.max(Nn, kt.top), _ = Math.min(Bn, kt.right), ve = Math.min(Un, kt.bottom);
993
+ return Math.max(0, (_ - jn) * (ve - p));
994
994
  }, Pn = function() {
995
- He = K.y + I, vt = He + ie, Ye = K.x + R, Pt = Ye + Ne;
995
+ Fe = K.y + I, vt = Fe + oe, Ye = K.x + R, Pt = Ye + _e;
996
996
  };
997
- var S, y, w, C, v = n, N = v.ownerDocument, O = En(v), D = O.getComputedStyle(v), H = D.width, $ = D.height, z = D.position, L = v.style.left, j = v.style.top, Z = v.style.right, q = v.style.bottom, Q = v.style.overflow, V = T(T({}, a[r]), o), A = N.createElement("div");
997
+ var S, y, w, C, v = n, N = v.ownerDocument, O = En(v), D = O.getComputedStyle(v), B = D.width, $ = D.height, z = D.position, L = v.style.left, j = v.style.top, Z = v.style.right, q = v.style.bottom, Q = v.style.overflow, V = T(T({}, i[r]), o), A = N.createElement("div");
998
998
  (S = v.parentElement) === null || S === void 0 || S.appendChild(A), A.style.left = "".concat(v.offsetLeft, "px"), A.style.top = "".concat(v.offsetTop, "px"), A.style.position = z, A.style.height = "".concat(v.offsetHeight, "px"), A.style.width = "".concat(v.offsetWidth, "px"), v.style.left = "0", v.style.top = "0", v.style.right = "auto", v.style.bottom = "auto", v.style.overflow = "hidden";
999
999
  var x;
1000
1000
  if (Array.isArray(t))
@@ -1005,8 +1005,8 @@ function Mi(e, n, t, r, a, o, s) {
1005
1005
  height: 0
1006
1006
  };
1007
1007
  else {
1008
- var we, le, G = t.getBoundingClientRect();
1009
- G.x = (we = G.x) !== null && we !== void 0 ? we : G.left, G.y = (le = G.y) !== null && le !== void 0 ? le : G.top, x = {
1008
+ var Me, ue, G = t.getBoundingClientRect();
1009
+ G.x = (Me = G.x) !== null && Me !== void 0 ? Me : G.left, G.y = (ue = G.y) !== null && ue !== void 0 ? ue : G.top, x = {
1010
1010
  x: G.x,
1011
1011
  y: G.y,
1012
1012
  width: G.width,
@@ -1015,84 +1015,84 @@ function Mi(e, n, t, r, a, o, s) {
1015
1015
  }
1016
1016
  var K = v.getBoundingClientRect();
1017
1017
  K.x = (y = K.x) !== null && y !== void 0 ? y : K.left, K.y = (w = K.y) !== null && w !== void 0 ? w : K.top;
1018
- var B = N.documentElement, re = B.clientWidth, ye = B.clientHeight, W = B.scrollWidth, Y = B.scrollHeight, ae = B.scrollTop, be = B.scrollLeft, ie = K.height, Ne = K.width, Me = x.height, oe = x.width, Be = {
1018
+ var W = N.documentElement, ie = W.clientWidth, be = W.clientHeight, F = W.scrollWidth, Y = W.scrollHeight, te = W.scrollTop, pe = W.scrollLeft, oe = K.height, _e = K.width, Re = x.height, se = x.width, He = {
1019
1019
  left: 0,
1020
1020
  top: 0,
1021
- right: re,
1022
- bottom: ye
1023
- }, Ue = {
1024
- left: -be,
1025
- top: -ae,
1026
- right: W - be,
1027
- bottom: Y - ae
1028
- }, ue = V.htmlRegion, _e = "visible", We = "visibleFirst";
1029
- ue !== "scroll" && ue !== We && (ue = _e);
1030
- var ve = ue === We, ht = Sr(Ue, d), F = Sr(Be, d), Je = ue === _e ? F : ht, pe = ve ? F : Je;
1021
+ right: ie,
1022
+ bottom: be
1023
+ }, Be = {
1024
+ left: -pe,
1025
+ top: -te,
1026
+ right: F - pe,
1027
+ bottom: Y - te
1028
+ }, ce = V.htmlRegion, Ie = "visible", Ve = "visibleFirst";
1029
+ ce !== "scroll" && ce !== Ve && (ce = Ie);
1030
+ var de = ce === Ve, ht = Sr(Be, d), H = Sr(He, d), Ge = ce === Ie ? H : ht, Ce = de ? H : Ge;
1031
1031
  v.style.left = "auto", v.style.top = "auto", v.style.right = "0", v.style.bottom = "0";
1032
1032
  var J = v.getBoundingClientRect();
1033
1033
  v.style.left = L, v.style.top = j, v.style.right = Z, v.style.bottom = q, v.style.overflow = Q, (C = v.parentElement) === null || C === void 0 || C.removeChild(A);
1034
- var Fe = Mn(Math.round(Ne / parseFloat(H) * 1e3) / 1e3), Ae = Mn(Math.round(ie / parseFloat($) * 1e3) / 1e3);
1035
- if (Fe === 0 || Ae === 0 || Qn(t) && !Wr(t))
1034
+ var We = Mn(Math.round(_e / parseFloat(B) * 1e3) / 1e3), Te = Mn(Math.round(oe / parseFloat($) * 1e3) / 1e3);
1035
+ if (We === 0 || Te === 0 || Qn(t) && !Wr(t))
1036
1036
  return;
1037
- var $e = V.offset, Ze = V.targetOffset, Ie = Nr(K, $e), Ce = k(Ie, 2), ce = Ce[0], Re = Ce[1], xe = Nr(x, Ze), X = k(xe, 2), Ke = X[0], ze = X[1];
1038
- x.x -= Ke, x.y -= ze;
1039
- var Et = V.points || [], lt = k(Et, 2), rt = lt[0], At = lt[1], Te = _r(At), Se = _r(rt), ut = an(x, Te), de = an(K, Se), P = T({}, V), R = ut.x - de.x + ce, I = ut.y - de.y + Re, se = nt(R, I), he = nt(R, I, F), $t = an(x, ["t", "l"]), je = an(K, ["t", "l"]), zt = an(x, ["b", "r"]), Vt = an(K, ["b", "r"]), ct = V.overflow || {}, Bt = ct.adjustX, Ut = ct.adjustY, ft = ct.shiftX, St = ct.shiftY, gt = function(Dt) {
1037
+ var Le = V.offset, Je = V.targetOffset, Ae = Nr(K, Le), we = k(Ae, 2), fe = we[0], Ee = we[1], Ze = Nr(x, Je), ne = k(Ze, 2), re = ne[0], $e = ne[1];
1038
+ x.x -= re, x.y -= $e;
1039
+ var Et = V.points || [], lt = k(Et, 2), rt = lt[0], At = lt[1], Oe = _r(At), Pe = _r(rt), ut = an(x, Oe), me = an(K, Pe), P = T({}, V), R = ut.x - me.x + fe, I = ut.y - me.y + Ee, le = nt(R, I), ge = nt(R, I, H), $t = an(x, ["t", "l"]), Ue = an(K, ["t", "l"]), zt = an(x, ["b", "r"]), Vt = an(K, ["b", "r"]), ct = V.overflow || {}, Bt = ct.adjustX, Ut = ct.adjustY, ft = ct.shiftX, St = ct.shiftY, gt = function(Dt) {
1040
1040
  return typeof Dt == "boolean" ? Dt : Dt >= 0;
1041
- }, He, vt, Ye, Pt;
1041
+ }, Fe, vt, Ye, Pt;
1042
1042
  Pn();
1043
- var dt = gt(Ut), jt = Se[0] === Te[0];
1044
- if (dt && Se[0] === "t" && (vt > pe.bottom || m.current.bt)) {
1045
- var Ee = I;
1046
- jt ? Ee -= ie - Me : Ee = $t.y - Vt.y - Re;
1047
- var qt = nt(R, Ee), fn = nt(R, Ee, F);
1043
+ var dt = gt(Ut), jt = Pe[0] === Oe[0];
1044
+ if (dt && Pe[0] === "t" && (vt > Ce.bottom || m.current.bt)) {
1045
+ var Se = I;
1046
+ jt ? Se -= oe - Re : Se = $t.y - Vt.y - Ee;
1047
+ var qt = nt(R, Se), fn = nt(R, Se, H);
1048
1048
  // Of course use larger one
1049
- qt > se || qt === se && (!ve || // Choose recommend one
1050
- fn >= he) ? (m.current.bt = !0, I = Ee, Re = -Re, P.points = [Ot(Se, 0), Ot(Te, 0)]) : m.current.bt = !1;
1049
+ qt > le || qt === le && (!de || // Choose recommend one
1050
+ fn >= ge) ? (m.current.bt = !0, I = Se, Ee = -Ee, P.points = [Ot(Pe, 0), Ot(Oe, 0)]) : m.current.bt = !1;
1051
1051
  }
1052
- if (dt && Se[0] === "b" && (He < pe.top || m.current.tb)) {
1052
+ if (dt && Pe[0] === "b" && (Fe < Ce.top || m.current.tb)) {
1053
1053
  var yt = I;
1054
- jt ? yt += ie - Me : yt = zt.y - je.y - Re;
1055
- var Gt = nt(R, yt), Jt = nt(R, yt, F);
1054
+ jt ? yt += oe - Re : yt = zt.y - Ue.y - Ee;
1055
+ var Gt = nt(R, yt), Jt = nt(R, yt, H);
1056
1056
  // Of course use larger one
1057
- Gt > se || Gt === se && (!ve || // Choose recommend one
1058
- Jt >= he) ? (m.current.tb = !0, I = yt, Re = -Re, P.points = [Ot(Se, 0), Ot(Te, 0)]) : m.current.tb = !1;
1057
+ Gt > le || Gt === le && (!de || // Choose recommend one
1058
+ Jt >= ge) ? (m.current.tb = !0, I = yt, Ee = -Ee, P.points = [Ot(Pe, 0), Ot(Oe, 0)]) : m.current.tb = !1;
1059
1059
  }
1060
- var mt = gt(Bt), Nt = Se[1] === Te[1];
1061
- if (mt && Se[1] === "l" && (Pt > pe.right || m.current.rl)) {
1060
+ var mt = gt(Bt), Nt = Pe[1] === Oe[1];
1061
+ if (mt && Pe[1] === "l" && (Pt > Ce.right || m.current.rl)) {
1062
1062
  var bt = R;
1063
- Nt ? bt -= Ne - oe : bt = $t.x - Vt.x - ce;
1064
- var Zt = nt(bt, I), _t = nt(bt, I, F);
1063
+ Nt ? bt -= _e - se : bt = $t.x - Vt.x - fe;
1064
+ var Zt = nt(bt, I), _t = nt(bt, I, H);
1065
1065
  // Of course use larger one
1066
- Zt > se || Zt === se && (!ve || // Choose recommend one
1067
- _t >= he) ? (m.current.rl = !0, R = bt, ce = -ce, P.points = [Ot(Se, 1), Ot(Te, 1)]) : m.current.rl = !1;
1066
+ Zt > le || Zt === le && (!de || // Choose recommend one
1067
+ _t >= ge) ? (m.current.rl = !0, R = bt, fe = -fe, P.points = [Ot(Pe, 1), Ot(Oe, 1)]) : m.current.rl = !1;
1068
1068
  }
1069
- if (mt && Se[1] === "r" && (Ye < pe.left || m.current.lr)) {
1069
+ if (mt && Pe[1] === "r" && (Ye < Ce.left || m.current.lr)) {
1070
1070
  var Xe = R;
1071
- Nt ? Xe += Ne - oe : Xe = zt.x - je.x - ce;
1072
- var pt = nt(Xe, I), Qt = nt(Xe, I, F);
1071
+ Nt ? Xe += _e - se : Xe = zt.x - Ue.x - fe;
1072
+ var pt = nt(Xe, I), Qt = nt(Xe, I, H);
1073
1073
  // Of course use larger one
1074
- pt > se || pt === se && (!ve || // Choose recommend one
1075
- Qt >= he) ? (m.current.lr = !0, R = Xe, ce = -ce, P.points = [Ot(Se, 1), Ot(Te, 1)]) : m.current.lr = !1;
1074
+ pt > le || pt === le && (!de || // Choose recommend one
1075
+ Qt >= ge) ? (m.current.lr = !0, R = Xe, fe = -fe, P.points = [Ot(Pe, 1), Ot(Oe, 1)]) : m.current.lr = !1;
1076
1076
  }
1077
1077
  Pn();
1078
1078
  var et = ft === !0 ? 0 : ft;
1079
- typeof et == "number" && (Ye < F.left && (R -= Ye - F.left - ce, x.x + oe < F.left + et && (R += x.x - F.left + oe - et)), Pt > F.right && (R -= Pt - F.right - ce, x.x > F.right - et && (R += x.x - F.right + et)));
1079
+ typeof et == "number" && (Ye < H.left && (R -= Ye - H.left - fe, x.x + se < H.left + et && (R += x.x - H.left + se - et)), Pt > H.right && (R -= Pt - H.right - fe, x.x > H.right - et && (R += x.x - H.right + et)));
1080
1080
  var Qe = St === !0 ? 0 : St;
1081
- typeof Qe == "number" && (He < F.top && (I -= He - F.top - Re, x.y + Me < F.top + Qe && (I += x.y - F.top + Me - Qe)), vt > F.bottom && (I -= vt - F.bottom - Re, x.y > F.bottom - Qe && (I += x.y - F.bottom + Qe)));
1082
- var Ct = K.x + R, It = Ct + Ne, tt = K.y + I, vn = tt + ie, Yt = x.x, dn = Yt + oe, ee = x.y, U = ee + Me, te = Math.max(Ct, Yt), Le = Math.min(It, dn), De = (te + Le) / 2, xt = De - Ct, Wt = Math.max(tt, ee), Xt = Math.min(vn, U), en = (Wt + Xt) / 2, tn = en - tt;
1081
+ typeof Qe == "number" && (Fe < H.top && (I -= Fe - H.top - Ee, x.y + Re < H.top + Qe && (I += x.y - H.top + Re - Qe)), vt > H.bottom && (I -= vt - H.bottom - Ee, x.y > H.bottom - Qe && (I += x.y - H.bottom + Qe)));
1082
+ var Ct = K.x + R, It = Ct + _e, tt = K.y + I, vn = tt + oe, Yt = x.x, dn = Yt + se, X = x.y, U = X + Re, ee = Math.max(Ct, Yt), Ke = Math.min(It, dn), xe = (ee + Ke) / 2, xt = xe - Ct, Wt = Math.max(tt, X), Xt = Math.min(vn, U), en = (Wt + Xt) / 2, tn = en - tt;
1083
1083
  s == null || s(n, P);
1084
- var at = J.right - K.x - (R + K.width), qe = J.bottom - K.y - (I + K.height);
1085
- Fe === 1 && (R = Math.round(R), at = Math.round(at)), Ae === 1 && (I = Math.round(I), qe = Math.round(qe));
1084
+ var at = J.right - K.x - (R + K.width), je = J.bottom - K.y - (I + K.height);
1085
+ We === 1 && (R = Math.round(R), at = Math.round(at)), Te === 1 && (I = Math.round(I), je = Math.round(je));
1086
1086
  var mn = {
1087
1087
  ready: !0,
1088
- offsetX: R / Fe,
1089
- offsetY: I / Ae,
1090
- offsetR: at / Fe,
1091
- offsetB: qe / Ae,
1092
- arrowX: xt / Fe,
1093
- arrowY: tn / Ae,
1094
- scaleX: Fe,
1095
- scaleY: Ae,
1088
+ offsetX: R / We,
1089
+ offsetY: I / Te,
1090
+ offsetR: at / We,
1091
+ offsetB: je / Te,
1092
+ arrowX: xt / We,
1093
+ arrowY: tn / Te,
1094
+ scaleX: We,
1095
+ scaleY: Te,
1096
1096
  align: P
1097
1097
  };
1098
1098
  b(mn);
@@ -1114,11 +1114,11 @@ function Mi(e, n, t, r, a, o, s) {
1114
1114
  e || M();
1115
1115
  }, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, g];
1116
1116
  }
1117
- function Ri(e, n, t, r, a) {
1117
+ function Ri(e, n, t, r, i) {
1118
1118
  it(function() {
1119
1119
  if (e && n && t) {
1120
1120
  let f = function() {
1121
- r(), a();
1121
+ r(), i();
1122
1122
  };
1123
1123
  var o = n, s = t, l = nr(o), u = nr(s), c = En(s), b = new Set([c].concat(Rt(l), Rt(u)));
1124
1124
  return b.forEach(function(d) {
@@ -1135,12 +1135,12 @@ function Ri(e, n, t, r, a) {
1135
1135
  }
1136
1136
  }, [e, n, t]);
1137
1137
  }
1138
- function Ei(e, n, t, r, a, o, s, l) {
1139
- var u = i.useRef(e);
1138
+ function Ei(e, n, t, r, i, o, s, l) {
1139
+ var u = a.useRef(e);
1140
1140
  u.current = e;
1141
- var c = i.useRef(!1);
1142
- i.useEffect(function() {
1143
- if (n && r && (!a || o)) {
1141
+ var c = a.useRef(!1);
1142
+ a.useEffect(function() {
1143
+ if (n && r && (!i || o)) {
1144
1144
  var f = function() {
1145
1145
  c.current = !1;
1146
1146
  }, d = function(w) {
@@ -1157,7 +1157,7 @@ function Ei(e, n, t, r, a, o, s, l) {
1157
1157
  m.removeEventListener("pointerdown", f, !0), m.removeEventListener("mousedown", d, !0), m.removeEventListener("contextmenu", d, !0), h && (h.removeEventListener("mousedown", d, !0), h.removeEventListener("contextmenu", d, !0));
1158
1158
  };
1159
1159
  }
1160
- }, [n, t, r, a, o]);
1160
+ }, [n, t, r, i, o]);
1161
1161
  function b() {
1162
1162
  c.current = !0;
1163
1163
  }
@@ -1165,81 +1165,81 @@ function Ei(e, n, t, r, a, o, s, l) {
1165
1165
  }
1166
1166
  var Si = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "fresh", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
1167
1167
  function Pi() {
1168
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Fr, n = /* @__PURE__ */ i.forwardRef(function(t, r) {
1169
- var a = t.prefixCls, o = a === void 0 ? "rc-trigger-popup" : a, s = t.children, l = t.action, u = l === void 0 ? "hover" : l, c = t.showAction, b = t.hideAction, f = t.popupVisible, d = t.defaultPopupVisible, m = t.onPopupVisibleChange, h = t.afterPopupVisibleChange, E = t.mouseEnterDelay, g = t.mouseLeaveDelay, M = g === void 0 ? 0.1 : g, S = t.focusDelay, y = t.blurDelay, w = t.mask, C = t.maskClosable, v = C === void 0 ? !0 : C, N = t.getPopupContainer, O = t.forceRender, D = t.autoDestroy, H = t.destroyPopupOnHide, $ = t.popup, z = t.popupClassName, L = t.popupStyle, j = t.popupPlacement, Z = t.builtinPlacements, q = Z === void 0 ? {} : Z, Q = t.popupAlign, V = t.zIndex, A = t.stretch, x = t.getPopupClassNameFromAlign, we = t.fresh, le = t.alignPoint, G = t.onPopupClick, K = t.onPopupAlign, B = t.arrow, re = t.popupMotion, ye = t.maskMotion, W = t.popupTransitionName, Y = t.popupAnimation, ae = t.maskTransitionName, be = t.maskAnimation, ie = t.className, Ne = t.getTriggerDOMNode, Me = ke(t, Si), oe = D || H || !1, Be = i.useState(!1), Ue = k(Be, 2), ue = Ue[0], _e = Ue[1];
1168
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Fr, n = /* @__PURE__ */ a.forwardRef(function(t, r) {
1169
+ var i = t.prefixCls, o = i === void 0 ? "rc-trigger-popup" : i, s = t.children, l = t.action, u = l === void 0 ? "hover" : l, c = t.showAction, b = t.hideAction, f = t.popupVisible, d = t.defaultPopupVisible, m = t.onPopupVisibleChange, h = t.afterPopupVisibleChange, E = t.mouseEnterDelay, g = t.mouseLeaveDelay, M = g === void 0 ? 0.1 : g, S = t.focusDelay, y = t.blurDelay, w = t.mask, C = t.maskClosable, v = C === void 0 ? !0 : C, N = t.getPopupContainer, O = t.forceRender, D = t.autoDestroy, B = t.destroyPopupOnHide, $ = t.popup, z = t.popupClassName, L = t.popupStyle, j = t.popupPlacement, Z = t.builtinPlacements, q = Z === void 0 ? {} : Z, Q = t.popupAlign, V = t.zIndex, A = t.stretch, x = t.getPopupClassNameFromAlign, Me = t.fresh, ue = t.alignPoint, G = t.onPopupClick, K = t.onPopupAlign, W = t.arrow, ie = t.popupMotion, be = t.maskMotion, F = t.popupTransitionName, Y = t.popupAnimation, te = t.maskTransitionName, pe = t.maskAnimation, oe = t.className, _e = t.getTriggerDOMNode, Re = De(t, Si), se = D || B || !1, He = a.useState(!1), Be = k(He, 2), ce = Be[0], Ie = Be[1];
1170
1170
  it(function() {
1171
- _e(ii());
1171
+ Ie(ii());
1172
1172
  }, []);
1173
- var We = i.useRef({}), ve = i.useContext(Mr), ht = i.useMemo(function() {
1173
+ var Ve = a.useRef({}), de = a.useContext(Mr), ht = a.useMemo(function() {
1174
1174
  return {
1175
- registerSubPopup: function(_, fe) {
1176
- We.current[_] = fe, ve == null || ve.registerSubPopup(_, fe);
1175
+ registerSubPopup: function(_, ve) {
1176
+ Ve.current[_] = ve, de == null || de.registerSubPopup(_, ve);
1177
1177
  }
1178
1178
  };
1179
- }, [ve]), F = Ca(), Je = i.useState(null), pe = k(Je, 2), J = pe[0], Fe = pe[1], Ae = i.useRef(null), $e = Kt(function(p) {
1180
- Ae.current = p, Qn(p) && J !== p && Fe(p), ve == null || ve.registerSubPopup(F, p);
1181
- }), Ze = i.useState(null), Ie = k(Ze, 2), Ce = Ie[0], ce = Ie[1], Re = i.useRef(null), xe = Kt(function(p) {
1182
- Qn(p) && Ce !== p && (ce(p), Re.current = p);
1183
- }), X = i.Children.only(s), Ke = (X == null ? void 0 : X.props) || {}, ze = {}, Et = Kt(function(p) {
1184
- var _, fe, Pe = Ce;
1185
- return (Pe == null ? void 0 : Pe.contains(p)) || ((_ = Yn(Pe)) === null || _ === void 0 ? void 0 : _.host) === p || p === Pe || (J == null ? void 0 : J.contains(p)) || ((fe = Yn(J)) === null || fe === void 0 ? void 0 : fe.host) === p || p === J || Object.values(We.current).some(function(ge) {
1186
- return (ge == null ? void 0 : ge.contains(p)) || p === ge;
1179
+ }, [de]), H = Ca(), Ge = a.useState(null), Ce = k(Ge, 2), J = Ce[0], We = Ce[1], Te = a.useRef(null), Le = Kt(function(p) {
1180
+ Te.current = p, Qn(p) && J !== p && We(p), de == null || de.registerSubPopup(H, p);
1181
+ }), Je = a.useState(null), Ae = k(Je, 2), we = Ae[0], fe = Ae[1], Ee = a.useRef(null), Ze = Kt(function(p) {
1182
+ Qn(p) && we !== p && (fe(p), Ee.current = p);
1183
+ }), ne = a.Children.only(s), re = (ne == null ? void 0 : ne.props) || {}, $e = {}, Et = Kt(function(p) {
1184
+ var _, ve, Ne = we;
1185
+ return (Ne == null ? void 0 : Ne.contains(p)) || ((_ = Yn(Ne)) === null || _ === void 0 ? void 0 : _.host) === p || p === Ne || (J == null ? void 0 : J.contains(p)) || ((ve = Yn(J)) === null || ve === void 0 ? void 0 : ve.host) === p || p === J || Object.values(Ve.current).some(function(ye) {
1186
+ return (ye == null ? void 0 : ye.contains(p)) || p === ye;
1187
1187
  });
1188
- }), lt = Er(o, re, Y, W), rt = Er(o, ye, be, ae), At = i.useState(d || !1), Te = k(At, 2), Se = Te[0], ut = Te[1], de = f ?? Se, P = Kt(function(p) {
1188
+ }), lt = Er(o, ie, Y, F), rt = Er(o, be, pe, te), At = a.useState(d || !1), Oe = k(At, 2), Pe = Oe[0], ut = Oe[1], me = f ?? Pe, P = Kt(function(p) {
1189
1189
  f === void 0 && ut(p);
1190
1190
  });
1191
1191
  it(function() {
1192
1192
  ut(f || !1);
1193
1193
  }, [f]);
1194
- var R = i.useRef(de);
1195
- R.current = de;
1196
- var I = i.useRef([]);
1194
+ var R = a.useRef(me);
1195
+ R.current = me;
1196
+ var I = a.useRef([]);
1197
1197
  I.current = [];
1198
- var se = Kt(function(p) {
1198
+ var le = Kt(function(p) {
1199
1199
  var _;
1200
- P(p), ((_ = I.current[I.current.length - 1]) !== null && _ !== void 0 ? _ : de) !== p && (I.current.push(p), m == null || m(p));
1201
- }), he = i.useRef(), $t = function() {
1202
- clearTimeout(he.current);
1203
- }, je = function(_) {
1204
- var fe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1205
- $t(), fe === 0 ? se(_) : he.current = setTimeout(function() {
1206
- se(_);
1207
- }, fe * 1e3);
1200
+ P(p), ((_ = I.current[I.current.length - 1]) !== null && _ !== void 0 ? _ : me) !== p && (I.current.push(p), m == null || m(p));
1201
+ }), ge = a.useRef(), $t = function() {
1202
+ clearTimeout(ge.current);
1203
+ }, Ue = function(_) {
1204
+ var ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1205
+ $t(), ve === 0 ? le(_) : ge.current = setTimeout(function() {
1206
+ le(_);
1207
+ }, ve * 1e3);
1208
1208
  };
1209
- i.useEffect(function() {
1209
+ a.useEffect(function() {
1210
1210
  return $t;
1211
1211
  }, []);
1212
- var zt = i.useState(!1), Vt = k(zt, 2), ct = Vt[0], Bt = Vt[1];
1212
+ var zt = a.useState(!1), Vt = k(zt, 2), ct = Vt[0], Bt = Vt[1];
1213
1213
  it(function(p) {
1214
- (!p || de) && Bt(!0);
1215
- }, [de]);
1216
- var Ut = i.useState(null), ft = k(Ut, 2), St = ft[0], gt = ft[1], He = i.useState(null), vt = k(He, 2), Ye = vt[0], Pt = vt[1], dt = function(_) {
1214
+ (!p || me) && Bt(!0);
1215
+ }, [me]);
1216
+ var Ut = a.useState(null), ft = k(Ut, 2), St = ft[0], gt = ft[1], Fe = a.useState(null), vt = k(Fe, 2), Ye = vt[0], Pt = vt[1], dt = function(_) {
1217
1217
  Pt([_.clientX, _.clientY]);
1218
- }, jt = Mi(de, J, le && Ye !== null ? Ye : Ce, j, q, Q, K), Ee = k(jt, 11), qt = Ee[0], fn = Ee[1], yt = Ee[2], Gt = Ee[3], Jt = Ee[4], mt = Ee[5], Nt = Ee[6], bt = Ee[7], Zt = Ee[8], _t = Ee[9], Xe = Ee[10], pt = pi(ue, u, c, b), Qt = k(pt, 2), et = Qt[0], Qe = Qt[1], Ct = et.has("click"), It = Qe.has("click") || Qe.has("contextMenu"), tt = Kt(function() {
1218
+ }, jt = Mi(me, J, ue && Ye !== null ? Ye : we, j, q, Q, K), Se = k(jt, 11), qt = Se[0], fn = Se[1], yt = Se[2], Gt = Se[3], Jt = Se[4], mt = Se[5], Nt = Se[6], bt = Se[7], Zt = Se[8], _t = Se[9], Xe = Se[10], pt = pi(ce, u, c, b), Qt = k(pt, 2), et = Qt[0], Qe = Qt[1], Ct = et.has("click"), It = Qe.has("click") || Qe.has("contextMenu"), tt = Kt(function() {
1219
1219
  ct || Xe();
1220
1220
  }), vn = function() {
1221
- R.current && le && It && je(!1);
1221
+ R.current && ue && It && Ue(!1);
1222
1222
  };
1223
- Ri(de, Ce, J, tt, vn), it(function() {
1223
+ Ri(me, we, J, tt, vn), it(function() {
1224
1224
  tt();
1225
1225
  }, [Ye, j]), it(function() {
1226
- de && !(q != null && q[j]) && tt();
1226
+ me && !(q != null && q[j]) && tt();
1227
1227
  }, [JSON.stringify(Q)]);
1228
- var Yt = i.useMemo(function() {
1229
- var p = wi(q, o, _t, le);
1230
- return Oe(p, x == null ? void 0 : x(_t));
1231
- }, [_t, x, q, o, le]);
1232
- i.useImperativeHandle(r, function() {
1228
+ var Yt = a.useMemo(function() {
1229
+ var p = wi(q, o, _t, ue);
1230
+ return ke(p, x == null ? void 0 : x(_t));
1231
+ }, [_t, x, q, o, ue]);
1232
+ a.useImperativeHandle(r, function() {
1233
1233
  return {
1234
- nativeElement: Re.current,
1235
- popupElement: Ae.current,
1234
+ nativeElement: Ee.current,
1235
+ popupElement: Te.current,
1236
1236
  forceAlign: tt
1237
1237
  };
1238
1238
  });
1239
- var dn = i.useState(0), ee = k(dn, 2), U = ee[0], te = ee[1], Le = i.useState(0), De = k(Le, 2), xt = De[0], Wt = De[1], Xt = function() {
1240
- if (A && Ce) {
1241
- var _ = Ce.getBoundingClientRect();
1242
- te(_.width), Wt(_.height);
1239
+ var dn = a.useState(0), X = k(dn, 2), U = X[0], ee = X[1], Ke = a.useState(0), xe = k(Ke, 2), xt = xe[0], Wt = xe[1], Xt = function() {
1240
+ if (A && we) {
1241
+ var _ = we.getBoundingClientRect();
1242
+ ee(_.width), Wt(_.height);
1243
1243
  }
1244
1244
  }, en = function() {
1245
1245
  Xt(), tt();
@@ -1255,76 +1255,76 @@ function Pi() {
1255
1255
  it(function() {
1256
1256
  St && (Xe(), St(), gt(null));
1257
1257
  }, [St]);
1258
- function qe(p, _, fe, Pe) {
1259
- ze[p] = function(ge) {
1258
+ function je(p, _, ve, Ne) {
1259
+ $e[p] = function(ye) {
1260
1260
  var _n;
1261
- Pe == null || Pe(ge), je(_, fe);
1261
+ Ne == null || Ne(ye), Ue(_, ve);
1262
1262
  for (var qn = arguments.length, Cr = new Array(qn > 1 ? qn - 1 : 0), In = 1; In < qn; In++)
1263
1263
  Cr[In - 1] = arguments[In];
1264
- (_n = Ke[p]) === null || _n === void 0 || _n.call.apply(_n, [Ke, ge].concat(Cr));
1264
+ (_n = re[p]) === null || _n === void 0 || _n.call.apply(_n, [re, ye].concat(Cr));
1265
1265
  };
1266
1266
  }
1267
- (Ct || It) && (ze.onClick = function(p) {
1267
+ (Ct || It) && ($e.onClick = function(p) {
1268
1268
  var _;
1269
- R.current && It ? je(!1) : !R.current && Ct && (dt(p), je(!0));
1270
- for (var fe = arguments.length, Pe = new Array(fe > 1 ? fe - 1 : 0), ge = 1; ge < fe; ge++)
1271
- Pe[ge - 1] = arguments[ge];
1272
- (_ = Ke.onClick) === null || _ === void 0 || _.call.apply(_, [Ke, p].concat(Pe));
1269
+ R.current && It ? Ue(!1) : !R.current && Ct && (dt(p), Ue(!0));
1270
+ for (var ve = arguments.length, Ne = new Array(ve > 1 ? ve - 1 : 0), ye = 1; ye < ve; ye++)
1271
+ Ne[ye - 1] = arguments[ye];
1272
+ (_ = re.onClick) === null || _ === void 0 || _.call.apply(_, [re, p].concat(Ne));
1273
1273
  });
1274
- var mn = Ei(de, It, Ce, J, w, v, Et, je), nt = et.has("hover"), Pn = Qe.has("hover"), nn, Dt;
1275
- nt && (qe("onMouseEnter", !0, E, function(p) {
1274
+ var mn = Ei(me, It, we, J, w, v, Et, Ue), nt = et.has("hover"), Pn = Qe.has("hover"), nn, Dt;
1275
+ nt && (je("onMouseEnter", !0, E, function(p) {
1276
1276
  dt(p);
1277
- }), qe("onPointerEnter", !0, E, function(p) {
1277
+ }), je("onPointerEnter", !0, E, function(p) {
1278
1278
  dt(p);
1279
1279
  }), nn = function(_) {
1280
- (de || ct) && J !== null && J !== void 0 && J.contains(_.target) && je(!0, E);
1281
- }, le && (ze.onMouseMove = function(p) {
1280
+ (me || ct) && J !== null && J !== void 0 && J.contains(_.target) && Ue(!0, E);
1281
+ }, ue && ($e.onMouseMove = function(p) {
1282
1282
  var _;
1283
- (_ = Ke.onMouseMove) === null || _ === void 0 || _.call(Ke, p);
1284
- })), Pn && (qe("onMouseLeave", !1, M), qe("onPointerLeave", !1, M), Dt = function() {
1285
- je(!1, M);
1286
- }), et.has("focus") && qe("onFocus", !0, S), Qe.has("focus") && qe("onBlur", !1, y), et.has("contextMenu") && (ze.onContextMenu = function(p) {
1283
+ (_ = re.onMouseMove) === null || _ === void 0 || _.call(re, p);
1284
+ })), Pn && (je("onMouseLeave", !1, M), je("onPointerLeave", !1, M), Dt = function() {
1285
+ Ue(!1, M);
1286
+ }), et.has("focus") && je("onFocus", !0, S), Qe.has("focus") && je("onBlur", !1, y), et.has("contextMenu") && ($e.onContextMenu = function(p) {
1287
1287
  var _;
1288
- R.current && Qe.has("contextMenu") ? je(!1) : (dt(p), je(!0)), p.preventDefault();
1289
- for (var fe = arguments.length, Pe = new Array(fe > 1 ? fe - 1 : 0), ge = 1; ge < fe; ge++)
1290
- Pe[ge - 1] = arguments[ge];
1291
- (_ = Ke.onContextMenu) === null || _ === void 0 || _.call.apply(_, [Ke, p].concat(Pe));
1292
- }), ie && (ze.className = Oe(Ke.className, ie));
1293
- var kt = T(T({}, Ke), ze), hn = {}, Nn = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
1288
+ R.current && Qe.has("contextMenu") ? Ue(!1) : (dt(p), Ue(!0)), p.preventDefault();
1289
+ for (var ve = arguments.length, Ne = new Array(ve > 1 ? ve - 1 : 0), ye = 1; ye < ve; ye++)
1290
+ Ne[ye - 1] = arguments[ye];
1291
+ (_ = re.onContextMenu) === null || _ === void 0 || _.call.apply(_, [re, p].concat(Ne));
1292
+ }), oe && ($e.className = ke(re.className, oe));
1293
+ var kt = T(T({}, re), $e), hn = {}, Nn = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
1294
1294
  Nn.forEach(function(p) {
1295
- Me[p] && (hn[p] = function() {
1296
- for (var _, fe = arguments.length, Pe = new Array(fe), ge = 0; ge < fe; ge++)
1297
- Pe[ge] = arguments[ge];
1298
- (_ = kt[p]) === null || _ === void 0 || _.call.apply(_, [kt].concat(Pe)), Me[p].apply(Me, Pe);
1295
+ Re[p] && (hn[p] = function() {
1296
+ for (var _, ve = arguments.length, Ne = new Array(ve), ye = 0; ye < ve; ye++)
1297
+ Ne[ye] = arguments[ye];
1298
+ (_ = kt[p]) === null || _ === void 0 || _.call.apply(_, [kt].concat(Ne)), Re[p].apply(Re, Ne);
1299
1299
  });
1300
1300
  });
1301
- var Bn = /* @__PURE__ */ i.cloneElement(X, T(T({}, kt), hn)), Un = {
1301
+ var Bn = /* @__PURE__ */ a.cloneElement(ne, T(T({}, kt), hn)), Un = {
1302
1302
  x: mt,
1303
1303
  y: Nt
1304
- }, jn = B ? T({}, B !== !0 ? B : {}) : null;
1305
- return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(cn, {
1306
- disabled: !de,
1307
- ref: xe,
1304
+ }, jn = W ? T({}, W !== !0 ? W : {}) : null;
1305
+ return /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(cn, {
1306
+ disabled: !me,
1307
+ ref: Ze,
1308
1308
  onResize: en
1309
- }, /* @__PURE__ */ i.createElement(aa, {
1310
- getTriggerDOMNode: Ne
1311
- }, Bn)), /* @__PURE__ */ i.createElement(Mr.Provider, {
1309
+ }, /* @__PURE__ */ a.createElement(aa, {
1310
+ getTriggerDOMNode: _e
1311
+ }, Bn)), /* @__PURE__ */ a.createElement(Mr.Provider, {
1312
1312
  value: ht
1313
- }, /* @__PURE__ */ i.createElement(ra, {
1313
+ }, /* @__PURE__ */ a.createElement(ra, {
1314
1314
  portal: e,
1315
- ref: $e,
1315
+ ref: Le,
1316
1316
  prefixCls: o,
1317
1317
  popup: $,
1318
- className: Oe(z, Yt),
1318
+ className: ke(z, Yt),
1319
1319
  style: L,
1320
- target: Ce,
1320
+ target: we,
1321
1321
  onMouseEnter: nn,
1322
1322
  onMouseLeave: Dt,
1323
1323
  onPointerEnter: nn,
1324
1324
  zIndex: V,
1325
- open: de,
1325
+ open: me,
1326
1326
  keepDom: ct,
1327
- fresh: we,
1327
+ fresh: Me,
1328
1328
  onClick: G,
1329
1329
  onPointerDownCapture: mn,
1330
1330
  mask: w,
@@ -1333,7 +1333,7 @@ function Pi() {
1333
1333
  onVisibleChanged: tn,
1334
1334
  onPrepare: at,
1335
1335
  forceRender: O,
1336
- autoDestroy: oe,
1336
+ autoDestroy: se,
1337
1337
  getPopupContainer: N,
1338
1338
  align: _t,
1339
1339
  arrow: jn,
@@ -1354,7 +1354,7 @@ function Pi() {
1354
1354
  const ia = Pi(Fr);
1355
1355
  var Ni = st.ESC, _i = st.TAB;
1356
1356
  function Ii(e) {
1357
- var n = e.visible, t = e.triggerRef, r = e.onVisibleChange, a = e.autoFocus, o = e.overlayRef, s = i.useRef(!1), l = function() {
1357
+ var n = e.visible, t = e.triggerRef, r = e.onVisibleChange, i = e.autoFocus, o = e.overlayRef, s = a.useRef(!1), l = function() {
1358
1358
  if (n) {
1359
1359
  var f, d;
1360
1360
  (f = t.current) === null || f === void 0 || (d = f.focus) === null || d === void 0 || d.call(f), r == null || r(!1);
@@ -1374,8 +1374,8 @@ function Ii(e) {
1374
1374
  }
1375
1375
  }
1376
1376
  };
1377
- i.useEffect(function() {
1378
- return n ? (window.addEventListener("keydown", c), a && Ht(u, 3), function() {
1377
+ a.useEffect(function() {
1378
+ return n ? (window.addEventListener("keydown", c), i && Ht(u, 3), function() {
1379
1379
  window.removeEventListener("keydown", c), s.current = !1;
1380
1380
  }) : function() {
1381
1381
  s.current = !1;
@@ -1383,13 +1383,13 @@ function Ii(e) {
1383
1383
  }, [n]);
1384
1384
  }
1385
1385
  var xi = /* @__PURE__ */ Ra(function(e, n) {
1386
- var t = e.overlay, r = e.arrow, a = e.prefixCls, o = Xn(function() {
1386
+ var t = e.overlay, r = e.arrow, i = e.prefixCls, o = Xn(function() {
1387
1387
  var l;
1388
1388
  return typeof t == "function" ? l = t() : l = t, l;
1389
1389
  }, [t]), s = fr(n, zn(o));
1390
- return /* @__PURE__ */ Ge.createElement(Ge.Fragment, null, r && /* @__PURE__ */ Ge.createElement("div", {
1391
- className: "".concat(a, "-arrow")
1392
- }), /* @__PURE__ */ Ge.cloneElement(o, {
1390
+ return /* @__PURE__ */ qe.createElement(qe.Fragment, null, r && /* @__PURE__ */ qe.createElement("div", {
1391
+ className: "".concat(i, "-arrow")
1392
+ }), /* @__PURE__ */ qe.cloneElement(o, {
1393
1393
  ref: $n(o) ? s : void 0
1394
1394
  }));
1395
1395
  }), on = {
@@ -1434,12 +1434,12 @@ var xi = /* @__PURE__ */ Ra(function(e, n) {
1434
1434
  }
1435
1435
  }, ki = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
1436
1436
  function Oi(e, n) {
1437
- var t, r = e.arrow, a = r === void 0 ? !1 : r, o = e.prefixCls, s = o === void 0 ? "rc-dropdown" : o, l = e.transitionName, u = e.animation, c = e.align, b = e.placement, f = b === void 0 ? "bottomLeft" : b, d = e.placements, m = d === void 0 ? Di : d, h = e.getPopupContainer, E = e.showAction, g = e.hideAction, M = e.overlayClassName, S = e.overlayStyle, y = e.visible, w = e.trigger, C = w === void 0 ? ["hover"] : w, v = e.autoFocus, N = e.overlay, O = e.children, D = e.onVisibleChange, H = ke(e, ki), $ = Ge.useState(), z = k($, 2), L = z[0], j = z[1], Z = "visible" in e ? y : L, q = Ge.useRef(null), Q = Ge.useRef(null), V = Ge.useRef(null);
1438
- Ge.useImperativeHandle(n, function() {
1437
+ var t, r = e.arrow, i = r === void 0 ? !1 : r, o = e.prefixCls, s = o === void 0 ? "rc-dropdown" : o, l = e.transitionName, u = e.animation, c = e.align, b = e.placement, f = b === void 0 ? "bottomLeft" : b, d = e.placements, m = d === void 0 ? Di : d, h = e.getPopupContainer, E = e.showAction, g = e.hideAction, M = e.overlayClassName, S = e.overlayStyle, y = e.visible, w = e.trigger, C = w === void 0 ? ["hover"] : w, v = e.autoFocus, N = e.overlay, O = e.children, D = e.onVisibleChange, B = De(e, ki), $ = qe.useState(), z = k($, 2), L = z[0], j = z[1], Z = "visible" in e ? y : L, q = qe.useRef(null), Q = qe.useRef(null), V = qe.useRef(null);
1438
+ qe.useImperativeHandle(n, function() {
1439
1439
  return q.current;
1440
1440
  });
1441
- var A = function(W) {
1442
- j(W), D == null || D(W);
1441
+ var A = function(F) {
1442
+ j(F), D == null || D(F);
1443
1443
  };
1444
1444
  Ii({
1445
1445
  visible: Z,
@@ -1448,89 +1448,89 @@ function Oi(e, n) {
1448
1448
  autoFocus: v,
1449
1449
  overlayRef: Q
1450
1450
  });
1451
- var x = function(W) {
1451
+ var x = function(F) {
1452
1452
  var Y = e.onOverlayClick;
1453
- j(!1), Y && Y(W);
1454
- }, we = function() {
1455
- return /* @__PURE__ */ Ge.createElement(xi, {
1453
+ j(!1), Y && Y(F);
1454
+ }, Me = function() {
1455
+ return /* @__PURE__ */ qe.createElement(xi, {
1456
1456
  ref: Q,
1457
1457
  overlay: N,
1458
1458
  prefixCls: s,
1459
- arrow: a
1459
+ arrow: i
1460
1460
  });
1461
- }, le = function() {
1462
- return typeof N == "function" ? we : we();
1461
+ }, ue = function() {
1462
+ return typeof N == "function" ? Me : Me();
1463
1463
  }, G = function() {
1464
- var W = e.minOverlayWidthMatchTrigger, Y = e.alignPoint;
1465
- return "minOverlayWidthMatchTrigger" in e ? W : !Y;
1464
+ var F = e.minOverlayWidthMatchTrigger, Y = e.alignPoint;
1465
+ return "minOverlayWidthMatchTrigger" in e ? F : !Y;
1466
1466
  }, K = function() {
1467
- var W = e.openClassName;
1468
- return W !== void 0 ? W : "".concat(s, "-open");
1469
- }, B = /* @__PURE__ */ Ge.cloneElement(O, {
1470
- className: Oe((t = O.props) === null || t === void 0 ? void 0 : t.className, Z && K()),
1467
+ var F = e.openClassName;
1468
+ return F !== void 0 ? F : "".concat(s, "-open");
1469
+ }, W = /* @__PURE__ */ qe.cloneElement(O, {
1470
+ className: ke((t = O.props) === null || t === void 0 ? void 0 : t.className, Z && K()),
1471
1471
  ref: $n(O) ? fr(V, zn(O)) : void 0
1472
- }), re = g;
1473
- return !re && C.indexOf("contextMenu") !== -1 && (re = ["click"]), /* @__PURE__ */ Ge.createElement(ia, ne({
1472
+ }), ie = g;
1473
+ return !ie && C.indexOf("contextMenu") !== -1 && (ie = ["click"]), /* @__PURE__ */ qe.createElement(ia, ae({
1474
1474
  builtinPlacements: m
1475
- }, H, {
1475
+ }, B, {
1476
1476
  prefixCls: s,
1477
1477
  ref: q,
1478
- popupClassName: Oe(M, me({}, "".concat(s, "-show-arrow"), a)),
1478
+ popupClassName: ke(M, he({}, "".concat(s, "-show-arrow"), i)),
1479
1479
  popupStyle: S,
1480
1480
  action: C,
1481
1481
  showAction: E,
1482
- hideAction: re,
1482
+ hideAction: ie,
1483
1483
  popupPlacement: f,
1484
1484
  popupAlign: c,
1485
1485
  popupTransitionName: l,
1486
1486
  popupAnimation: u,
1487
1487
  popupVisible: Z,
1488
1488
  stretch: G() ? "minWidth" : "",
1489
- popup: le(),
1489
+ popup: ue(),
1490
1490
  onPopupVisibleChange: A,
1491
1491
  onPopupClick: x,
1492
1492
  getPopupContainer: h
1493
- }), B);
1493
+ }), W);
1494
1494
  }
1495
- const Eo = /* @__PURE__ */ Ge.forwardRef(Oi);
1496
- var oa = /* @__PURE__ */ i.createContext(null);
1495
+ const Eo = /* @__PURE__ */ qe.forwardRef(Oi);
1496
+ var oa = /* @__PURE__ */ a.createContext(null);
1497
1497
  function sa(e, n) {
1498
1498
  return e === void 0 ? null : "".concat(e, "-").concat(n);
1499
1499
  }
1500
1500
  function la(e) {
1501
- var n = i.useContext(oa);
1501
+ var n = a.useContext(oa);
1502
1502
  return sa(n, e);
1503
1503
  }
1504
- var Ki = ["children", "locked"], ot = /* @__PURE__ */ i.createContext(null);
1504
+ var Ki = ["children", "locked"], ot = /* @__PURE__ */ a.createContext(null);
1505
1505
  function Ti(e, n) {
1506
1506
  var t = T({}, e);
1507
1507
  return Object.keys(n).forEach(function(r) {
1508
- var a = n[r];
1509
- a !== void 0 && (t[r] = a);
1508
+ var i = n[r];
1509
+ i !== void 0 && (t[r] = i);
1510
1510
  }), t;
1511
1511
  }
1512
1512
  function Rn(e) {
1513
- var n = e.children, t = e.locked, r = ke(e, Ki), a = i.useContext(ot), o = wa(function() {
1514
- return Ti(a, r);
1515
- }, [a, r], function(s, l) {
1513
+ var n = e.children, t = e.locked, r = De(e, Ki), i = a.useContext(ot), o = wa(function() {
1514
+ return Ti(i, r);
1515
+ }, [i, r], function(s, l) {
1516
1516
  return !t && (s[0] !== l[0] || !Hr(s[1], l[1], !0));
1517
1517
  });
1518
- return /* @__PURE__ */ i.createElement(ot.Provider, {
1518
+ return /* @__PURE__ */ a.createElement(ot.Provider, {
1519
1519
  value: o
1520
1520
  }, n);
1521
1521
  }
1522
- var Li = [], ua = /* @__PURE__ */ i.createContext(null);
1522
+ var Li = [], ua = /* @__PURE__ */ a.createContext(null);
1523
1523
  function Wn() {
1524
- return i.useContext(ua);
1524
+ return a.useContext(ua);
1525
1525
  }
1526
- var ca = /* @__PURE__ */ i.createContext(Li);
1526
+ var ca = /* @__PURE__ */ a.createContext(Li);
1527
1527
  function Sn(e) {
1528
- var n = i.useContext(ca);
1529
- return i.useMemo(function() {
1528
+ var n = a.useContext(ca);
1529
+ return a.useMemo(function() {
1530
1530
  return e !== void 0 ? [].concat(Rt(n), [e]) : n;
1531
1531
  }, [n, e]);
1532
1532
  }
1533
- var fa = /* @__PURE__ */ i.createContext(null), dr = /* @__PURE__ */ i.createContext({});
1533
+ var fa = /* @__PURE__ */ a.createContext(null), dr = /* @__PURE__ */ a.createContext({});
1534
1534
  function Ir(e) {
1535
1535
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1536
1536
  if (Wr(e)) {
@@ -1539,8 +1539,8 @@ function Ir(e) {
1539
1539
  ["input", "select", "textarea", "button"].includes(t) || // Editable element
1540
1540
  e.isContentEditable || // Anchor with href element
1541
1541
  t === "a" && !!e.getAttribute("href")
1542
- ), a = e.getAttribute("tabindex"), o = Number(a), s = null;
1543
- return a && !Number.isNaN(o) ? s = o : r && s === null && (s = 0), r && e.disabled && (s = null), s !== null && (s >= 0 || n && s < 0);
1542
+ ), i = e.getAttribute("tabindex"), o = Number(i), s = null;
1543
+ return i && !Number.isNaN(o) ? s = o : r && s === null && (s = 0), r && e.disabled && (s = null), s !== null && (s >= 0 || n && s < 0);
1544
1544
  }
1545
1545
  return !1;
1546
1546
  }
@@ -1552,19 +1552,19 @@ function Ai(e) {
1552
1552
  }
1553
1553
  var rr = st.LEFT, ar = st.RIGHT, ir = st.UP, kn = st.DOWN, On = st.ENTER, va = st.ESC, bn = st.HOME, pn = st.END, xr = [ir, kn, rr, ar];
1554
1554
  function $i(e, n, t, r) {
1555
- var a, o = "prev", s = "next", l = "children", u = "parent";
1555
+ var i, o = "prev", s = "next", l = "children", u = "parent";
1556
1556
  if (e === "inline" && r === On)
1557
1557
  return {
1558
1558
  inlineTrigger: !0
1559
1559
  };
1560
- var c = me(me({}, ir, o), kn, s), b = me(me(me(me({}, rr, t ? s : o), ar, t ? o : s), kn, l), On, l), f = me(me(me(me(me(me({}, ir, o), kn, s), On, l), va, u), rr, t ? l : u), ar, t ? u : l), d = {
1560
+ var c = he(he({}, ir, o), kn, s), b = he(he(he(he({}, rr, t ? s : o), ar, t ? o : s), kn, l), On, l), f = he(he(he(he(he(he({}, ir, o), kn, s), On, l), va, u), rr, t ? l : u), ar, t ? u : l), d = {
1561
1561
  inline: c,
1562
1562
  horizontal: b,
1563
1563
  vertical: f,
1564
1564
  inlineSub: c,
1565
1565
  horizontalSub: f,
1566
1566
  verticalSub: f
1567
- }, m = (a = d["".concat(e).concat(n ? "" : "Sub")]) === null || a === void 0 ? void 0 : a[r];
1567
+ }, m = (i = d["".concat(e).concat(n ? "" : "Sub")]) === null || i === void 0 ? void 0 : i[r];
1568
1568
  switch (m) {
1569
1569
  case o:
1570
1570
  return {
@@ -1616,29 +1616,29 @@ function Dr(e, n, t) {
1616
1616
  var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
1617
1617
  if (!e)
1618
1618
  return null;
1619
- var a = mr(e, n), o = a.length, s = a.findIndex(function(l) {
1619
+ var i = mr(e, n), o = i.length, s = i.findIndex(function(l) {
1620
1620
  return t === l;
1621
1621
  });
1622
- return r < 0 ? s === -1 ? s = o - 1 : s -= 1 : r > 0 && (s += 1), s = (s + o) % o, a[s];
1622
+ return r < 0 ? s === -1 ? s = o - 1 : s -= 1 : r > 0 && (s += 1), s = (s + o) % o, i[s];
1623
1623
  }
1624
1624
  var or = function(n, t) {
1625
- var r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1625
+ var r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1626
1626
  return n.forEach(function(s) {
1627
1627
  var l = document.querySelector("[data-menu-id='".concat(sa(t, s), "']"));
1628
- l && (r.add(l), o.set(l, s), a.set(s, l));
1628
+ l && (r.add(l), o.set(l, s), i.set(s, l));
1629
1629
  }), {
1630
1630
  elements: r,
1631
- key2element: a,
1631
+ key2element: i,
1632
1632
  element2key: o
1633
1633
  };
1634
1634
  };
1635
- function Wi(e, n, t, r, a, o, s, l, u, c) {
1636
- var b = i.useRef(), f = i.useRef();
1635
+ function Wi(e, n, t, r, i, o, s, l, u, c) {
1636
+ var b = a.useRef(), f = a.useRef();
1637
1637
  f.current = n;
1638
1638
  var d = function() {
1639
1639
  Ht.cancel(b.current);
1640
1640
  };
1641
- return i.useEffect(function() {
1641
+ return a.useEffect(function() {
1642
1642
  return function() {
1643
1643
  d();
1644
1644
  };
@@ -1660,10 +1660,10 @@ function Wi(e, n, t, r, a, o, s, l, u, c) {
1660
1660
  }
1661
1661
  };
1662
1662
  if ([bn, pn].includes(h) || O.sibling || !v) {
1663
- var H;
1664
- !v || e === "inline" ? H = a.current : H = zi(v);
1665
- var $, z = mr(H, S);
1666
- h === bn ? $ = z[0] : h === pn ? $ = z[z.length - 1] : $ = Dr(H, S, v, O.offset), D($);
1663
+ var B;
1664
+ !v || e === "inline" ? B = i.current : B = zi(v);
1665
+ var $, z = mr(B, S);
1666
+ h === bn ? $ = z[0] : h === pn ? $ = z[z.length - 1] : $ = Dr(B, S, v, O.offset), D($);
1667
1667
  } else if (O.inlineTrigger)
1668
1668
  u(N);
1669
1669
  else if (O.offset > 0)
@@ -1689,19 +1689,19 @@ var hr = "__RC_UTIL_PATH_SPLIT__", kr = function(n) {
1689
1689
  return n.split(hr);
1690
1690
  }, sr = "rc-menu-more";
1691
1691
  function Bi() {
1692
- var e = i.useState({}), n = k(e, 2), t = n[1], r = xn(/* @__PURE__ */ new Map()), a = xn(/* @__PURE__ */ new Map()), o = i.useState([]), s = k(o, 2), l = s[0], u = s[1], c = xn(0), b = xn(!1), f = function() {
1692
+ var e = a.useState({}), n = k(e, 2), t = n[1], r = xn(/* @__PURE__ */ new Map()), i = xn(/* @__PURE__ */ new Map()), o = a.useState([]), s = k(o, 2), l = s[0], u = s[1], c = xn(0), b = xn(!1), f = function() {
1693
1693
  b.current || t({});
1694
1694
  }, d = Tt(function(y, w) {
1695
1695
  process.env.NODE_ENV !== "production" && un(!r.current.has(y), "Duplicated key '".concat(y, "' used in Menu by path [").concat(w.join(" > "), "]"));
1696
1696
  var C = kr(w);
1697
- a.current.set(C, y), r.current.set(y, C), c.current += 1;
1697
+ i.current.set(C, y), r.current.set(y, C), c.current += 1;
1698
1698
  var v = c.current;
1699
1699
  Fi(function() {
1700
1700
  v === c.current && f();
1701
1701
  });
1702
1702
  }, []), m = Tt(function(y, w) {
1703
1703
  var C = kr(w);
1704
- a.current.delete(C), r.current.delete(y);
1704
+ i.current.delete(C), r.current.delete(y);
1705
1705
  }, []), h = Tt(function(y) {
1706
1706
  u(y);
1707
1707
  }, []), E = Tt(function(y, w) {
@@ -1719,11 +1719,11 @@ function Bi() {
1719
1719
  return l.length && w.push(sr), w;
1720
1720
  }, S = Tt(function(y) {
1721
1721
  var w = "".concat(r.current.get(y)).concat(hr), C = /* @__PURE__ */ new Set();
1722
- return Rt(a.current.keys()).forEach(function(v) {
1723
- v.startsWith(w) && C.add(a.current.get(v));
1722
+ return Rt(i.current.keys()).forEach(function(v) {
1723
+ v.startsWith(w) && C.add(i.current.get(v));
1724
1724
  }), C;
1725
1725
  }, []);
1726
- return i.useEffect(function() {
1726
+ return a.useEffect(function() {
1727
1727
  return function() {
1728
1728
  b.current = !0;
1729
1729
  };
@@ -1740,10 +1740,10 @@ function Bi() {
1740
1740
  };
1741
1741
  }
1742
1742
  function Cn(e) {
1743
- var n = i.useRef(e);
1743
+ var n = a.useRef(e);
1744
1744
  n.current = e;
1745
- var t = i.useCallback(function() {
1746
- for (var r, a = arguments.length, o = new Array(a), s = 0; s < a; s++)
1745
+ var t = a.useCallback(function() {
1746
+ for (var r, i = arguments.length, o = new Array(i), s = 0; s < i; s++)
1747
1747
  o[s] = arguments[s];
1748
1748
  return (r = n.current) === null || r === void 0 ? void 0 : r.call.apply(r, [n].concat(o));
1749
1749
  }, []);
@@ -1753,15 +1753,15 @@ var Ui = Math.random().toFixed(5).toString().slice(2), Or = 0;
1753
1753
  function ji(e) {
1754
1754
  var n = Dn(e, {
1755
1755
  value: e
1756
- }), t = k(n, 2), r = t[0], a = t[1];
1757
- return i.useEffect(function() {
1756
+ }), t = k(n, 2), r = t[0], i = t[1];
1757
+ return a.useEffect(function() {
1758
1758
  Or += 1;
1759
1759
  var o = process.env.NODE_ENV === "test" ? "test" : "".concat(Ui, "-").concat(Or);
1760
- a("rc-menu-uuid-".concat(o));
1760
+ i("rc-menu-uuid-".concat(o));
1761
1761
  }, []), r;
1762
1762
  }
1763
1763
  function da(e, n, t, r) {
1764
- var a = i.useContext(ot), o = a.activeKey, s = a.onActive, l = a.onInactive, u = {
1764
+ var i = a.useContext(ot), o = i.activeKey, s = i.onActive, l = i.onInactive, u = {
1765
1765
  active: o === e
1766
1766
  };
1767
1767
  return n || (u.onMouseEnter = function(c) {
@@ -1777,23 +1777,23 @@ function da(e, n, t, r) {
1777
1777
  }), u;
1778
1778
  }
1779
1779
  function ma(e) {
1780
- var n = i.useContext(ot), t = n.mode, r = n.rtl, a = n.inlineIndent;
1780
+ var n = a.useContext(ot), t = n.mode, r = n.rtl, i = n.inlineIndent;
1781
1781
  if (t !== "inline")
1782
1782
  return null;
1783
1783
  var o = e;
1784
1784
  return r ? {
1785
- paddingRight: o * a
1785
+ paddingRight: o * i
1786
1786
  } : {
1787
- paddingLeft: o * a
1787
+ paddingLeft: o * i
1788
1788
  };
1789
1789
  }
1790
1790
  function ha(e) {
1791
- var n = e.icon, t = e.props, r = e.children, a;
1792
- return n === null || n === !1 ? null : (typeof n == "function" ? a = /* @__PURE__ */ i.createElement(n, T({}, t)) : typeof n != "boolean" && (a = n), a || r || null);
1791
+ var n = e.icon, t = e.props, r = e.children, i;
1792
+ return n === null || n === !1 ? null : (typeof n == "function" ? i = /* @__PURE__ */ a.createElement(n, T({}, t)) : typeof n != "boolean" && (i = n), i || r || null);
1793
1793
  }
1794
1794
  var qi = ["item"];
1795
1795
  function An(e) {
1796
- var n = e.item, t = ke(e, qi);
1796
+ var n = e.item, t = De(e, qi);
1797
1797
  return Object.defineProperty(t, "item", {
1798
1798
  get: function() {
1799
1799
  return un(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), n;
@@ -1809,168 +1809,168 @@ var Gi = ["title", "attribute", "elementRef"], Ji = ["style", "className", "even
1809
1809
  return $r(t, [{
1810
1810
  key: "render",
1811
1811
  value: function() {
1812
- var a = this.props, o = a.title, s = a.attribute, l = a.elementRef, u = ke(a, Gi), c = vr(u, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
1813
- return un(!s, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ i.createElement(Mt.Item, ne({}, s, {
1812
+ var i = this.props, o = i.title, s = i.attribute, l = i.elementRef, u = De(i, Gi), c = vr(u, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
1813
+ return un(!s, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ a.createElement(Mt.Item, ae({}, s, {
1814
1814
  title: typeof o == "string" ? o : void 0
1815
1815
  }, c, {
1816
1816
  ref: l
1817
1817
  }));
1818
1818
  }
1819
1819
  }]), t;
1820
- }(i.Component), Yi = /* @__PURE__ */ i.forwardRef(function(e, n) {
1821
- var t = e.style, r = e.className, a = e.eventKey, o = e.warnKey, s = e.disabled, l = e.itemIcon, u = e.children, c = e.role, b = e.onMouseEnter, f = e.onMouseLeave, d = e.onClick, m = e.onKeyDown, h = e.onFocus, E = ke(e, Ji), g = la(a), M = i.useContext(ot), S = M.prefixCls, y = M.onItemClick, w = M.disabled, C = M.overflowDisabled, v = M.itemIcon, N = M.selectedKeys, O = M.onActive, D = i.useContext(dr), H = D._internalRenderMenuItem, $ = "".concat(S, "-item"), z = i.useRef(), L = i.useRef(), j = w || s, Z = ur(n, L), q = Sn(a);
1820
+ }(a.Component), Yi = /* @__PURE__ */ a.forwardRef(function(e, n) {
1821
+ var t = e.style, r = e.className, i = e.eventKey, o = e.warnKey, s = e.disabled, l = e.itemIcon, u = e.children, c = e.role, b = e.onMouseEnter, f = e.onMouseLeave, d = e.onClick, m = e.onKeyDown, h = e.onFocus, E = De(e, Ji), g = la(i), M = a.useContext(ot), S = M.prefixCls, y = M.onItemClick, w = M.disabled, C = M.overflowDisabled, v = M.itemIcon, N = M.selectedKeys, O = M.onActive, D = a.useContext(dr), B = D._internalRenderMenuItem, $ = "".concat(S, "-item"), z = a.useRef(), L = a.useRef(), j = w || s, Z = ur(n, L), q = Sn(i);
1822
1822
  process.env.NODE_ENV !== "production" && o && un(!1, "MenuItem should not leave undefined `key`.");
1823
- var Q = function(ae) {
1823
+ var Q = function(te) {
1824
1824
  return {
1825
- key: a,
1825
+ key: i,
1826
1826
  // Note: For legacy code is reversed which not like other antd component
1827
1827
  keyPath: Rt(q).reverse(),
1828
1828
  item: z.current,
1829
- domEvent: ae
1829
+ domEvent: te
1830
1830
  };
1831
- }, V = l || v, A = da(a, j, b, f), x = A.active, we = ke(A, Zi), le = N.includes(a), G = ma(q.length), K = function(ae) {
1831
+ }, V = l || v, A = da(i, j, b, f), x = A.active, Me = De(A, Zi), ue = N.includes(i), G = ma(q.length), K = function(te) {
1832
1832
  if (!j) {
1833
- var be = Q(ae);
1834
- d == null || d(An(be)), y(be);
1833
+ var pe = Q(te);
1834
+ d == null || d(An(pe)), y(pe);
1835
1835
  }
1836
- }, B = function(ae) {
1837
- if (m == null || m(ae), ae.which === st.ENTER) {
1838
- var be = Q(ae);
1839
- d == null || d(An(be)), y(be);
1836
+ }, W = function(te) {
1837
+ if (m == null || m(te), te.which === st.ENTER) {
1838
+ var pe = Q(te);
1839
+ d == null || d(An(pe)), y(pe);
1840
1840
  }
1841
- }, re = function(ae) {
1842
- O(a), h == null || h(ae);
1843
- }, ye = {};
1844
- e.role === "option" && (ye["aria-selected"] = le);
1845
- var W = /* @__PURE__ */ i.createElement(Qi, ne({
1841
+ }, ie = function(te) {
1842
+ O(i), h == null || h(te);
1843
+ }, be = {};
1844
+ e.role === "option" && (be["aria-selected"] = ue);
1845
+ var F = /* @__PURE__ */ a.createElement(Qi, ae({
1846
1846
  ref: z,
1847
1847
  elementRef: Z,
1848
1848
  role: c === null ? "none" : c || "menuitem",
1849
1849
  tabIndex: s ? null : -1,
1850
1850
  "data-menu-id": C && g ? null : g
1851
- }, vr(E, ["extra"]), we, ye, {
1851
+ }, vr(E, ["extra"]), Me, be, {
1852
1852
  component: "li",
1853
1853
  "aria-disabled": s,
1854
1854
  style: T(T({}, G), t),
1855
- className: Oe($, me(me(me({}, "".concat($, "-active"), x), "".concat($, "-selected"), le), "".concat($, "-disabled"), j), r),
1855
+ className: ke($, he(he(he({}, "".concat($, "-active"), x), "".concat($, "-selected"), ue), "".concat($, "-disabled"), j), r),
1856
1856
  onClick: K,
1857
- onKeyDown: B,
1858
- onFocus: re
1859
- }), u, /* @__PURE__ */ i.createElement(ha, {
1857
+ onKeyDown: W,
1858
+ onFocus: ie
1859
+ }), u, /* @__PURE__ */ a.createElement(ha, {
1860
1860
  props: T(T({}, e), {}, {
1861
- isSelected: le
1861
+ isSelected: ue
1862
1862
  }),
1863
1863
  icon: V
1864
1864
  }));
1865
- return H && (W = H(W, e, {
1866
- selected: le
1867
- })), W;
1865
+ return B && (F = B(F, e, {
1866
+ selected: ue
1867
+ })), F;
1868
1868
  });
1869
1869
  function Xi(e, n) {
1870
- var t = e.eventKey, r = Wn(), a = Sn(t);
1871
- return i.useEffect(function() {
1870
+ var t = e.eventKey, r = Wn(), i = Sn(t);
1871
+ return a.useEffect(function() {
1872
1872
  if (r)
1873
- return r.registerPath(t, a), function() {
1874
- r.unregisterPath(t, a);
1873
+ return r.registerPath(t, i), function() {
1874
+ r.unregisterPath(t, i);
1875
1875
  };
1876
- }, [a]), r ? null : /* @__PURE__ */ i.createElement(Yi, ne({}, e, {
1876
+ }, [i]), r ? null : /* @__PURE__ */ a.createElement(Yi, ae({}, e, {
1877
1877
  ref: n
1878
1878
  }));
1879
1879
  }
1880
- const gr = /* @__PURE__ */ i.forwardRef(Xi);
1880
+ const gr = /* @__PURE__ */ a.forwardRef(Xi);
1881
1881
  var eo = ["className", "children"], to = function(n, t) {
1882
- var r = n.className, a = n.children, o = ke(n, eo), s = i.useContext(ot), l = s.prefixCls, u = s.mode, c = s.rtl;
1883
- return /* @__PURE__ */ i.createElement("ul", ne({
1884
- className: Oe(l, c && "".concat(l, "-rtl"), "".concat(l, "-sub"), "".concat(l, "-").concat(u === "inline" ? "inline" : "vertical"), r),
1882
+ var r = n.className, i = n.children, o = De(n, eo), s = a.useContext(ot), l = s.prefixCls, u = s.mode, c = s.rtl;
1883
+ return /* @__PURE__ */ a.createElement("ul", ae({
1884
+ className: ke(l, c && "".concat(l, "-rtl"), "".concat(l, "-sub"), "".concat(l, "-").concat(u === "inline" ? "inline" : "vertical"), r),
1885
1885
  role: "menu"
1886
1886
  }, o, {
1887
1887
  "data-menu-list": !0,
1888
1888
  ref: t
1889
- }), a);
1890
- }, yr = /* @__PURE__ */ i.forwardRef(to);
1889
+ }), i);
1890
+ }, yr = /* @__PURE__ */ a.forwardRef(to);
1891
1891
  yr.displayName = "SubMenuList";
1892
1892
  function br(e, n) {
1893
1893
  return Vr(e).map(function(t, r) {
1894
- if (/* @__PURE__ */ i.isValidElement(t)) {
1895
- var a, o, s = t.key, l = (a = (o = t.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && a !== void 0 ? a : s, u = l == null;
1894
+ if (/* @__PURE__ */ a.isValidElement(t)) {
1895
+ var i, o, s = t.key, l = (i = (o = t.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && i !== void 0 ? i : s, u = l == null;
1896
1896
  u && (l = "tmp_key-".concat([].concat(Rt(n), [r]).join("-")));
1897
1897
  var c = {
1898
1898
  key: l,
1899
1899
  eventKey: l
1900
1900
  };
1901
- return process.env.NODE_ENV !== "production" && u && (c.warnKey = !0), /* @__PURE__ */ i.cloneElement(t, c);
1901
+ return process.env.NODE_ENV !== "production" && u && (c.warnKey = !0), /* @__PURE__ */ a.cloneElement(t, c);
1902
1902
  }
1903
1903
  return t;
1904
1904
  });
1905
1905
  }
1906
- var Ve = {
1906
+ var ze = {
1907
1907
  adjustX: 1,
1908
1908
  adjustY: 1
1909
1909
  }, no = {
1910
1910
  topLeft: {
1911
1911
  points: ["bl", "tl"],
1912
- overflow: Ve
1912
+ overflow: ze
1913
1913
  },
1914
1914
  topRight: {
1915
1915
  points: ["br", "tr"],
1916
- overflow: Ve
1916
+ overflow: ze
1917
1917
  },
1918
1918
  bottomLeft: {
1919
1919
  points: ["tl", "bl"],
1920
- overflow: Ve
1920
+ overflow: ze
1921
1921
  },
1922
1922
  bottomRight: {
1923
1923
  points: ["tr", "br"],
1924
- overflow: Ve
1924
+ overflow: ze
1925
1925
  },
1926
1926
  leftTop: {
1927
1927
  points: ["tr", "tl"],
1928
- overflow: Ve
1928
+ overflow: ze
1929
1929
  },
1930
1930
  leftBottom: {
1931
1931
  points: ["br", "bl"],
1932
- overflow: Ve
1932
+ overflow: ze
1933
1933
  },
1934
1934
  rightTop: {
1935
1935
  points: ["tl", "tr"],
1936
- overflow: Ve
1936
+ overflow: ze
1937
1937
  },
1938
1938
  rightBottom: {
1939
1939
  points: ["bl", "br"],
1940
- overflow: Ve
1940
+ overflow: ze
1941
1941
  }
1942
1942
  }, ro = {
1943
1943
  topLeft: {
1944
1944
  points: ["bl", "tl"],
1945
- overflow: Ve
1945
+ overflow: ze
1946
1946
  },
1947
1947
  topRight: {
1948
1948
  points: ["br", "tr"],
1949
- overflow: Ve
1949
+ overflow: ze
1950
1950
  },
1951
1951
  bottomLeft: {
1952
1952
  points: ["tl", "bl"],
1953
- overflow: Ve
1953
+ overflow: ze
1954
1954
  },
1955
1955
  bottomRight: {
1956
1956
  points: ["tr", "br"],
1957
- overflow: Ve
1957
+ overflow: ze
1958
1958
  },
1959
1959
  rightTop: {
1960
1960
  points: ["tr", "tl"],
1961
- overflow: Ve
1961
+ overflow: ze
1962
1962
  },
1963
1963
  rightBottom: {
1964
1964
  points: ["br", "bl"],
1965
- overflow: Ve
1965
+ overflow: ze
1966
1966
  },
1967
1967
  leftTop: {
1968
1968
  points: ["tl", "tr"],
1969
- overflow: Ve
1969
+ overflow: ze
1970
1970
  },
1971
1971
  leftBottom: {
1972
1972
  points: ["bl", "br"],
1973
- overflow: Ve
1973
+ overflow: ze
1974
1974
  }
1975
1975
  };
1976
1976
  function ga(e, n, t) {
@@ -1986,28 +1986,28 @@ var ao = {
1986
1986
  "vertical-right": "leftTop"
1987
1987
  };
1988
1988
  function io(e) {
1989
- var n = e.prefixCls, t = e.visible, r = e.children, a = e.popup, o = e.popupStyle, s = e.popupClassName, l = e.popupOffset, u = e.disabled, c = e.mode, b = e.onVisibleChange, f = i.useContext(ot), d = f.getPopupContainer, m = f.rtl, h = f.subMenuOpenDelay, E = f.subMenuCloseDelay, g = f.builtinPlacements, M = f.triggerSubMenuAction, S = f.forceSubMenuRender, y = f.rootClassName, w = f.motion, C = f.defaultMotions, v = i.useState(!1), N = k(v, 2), O = N[0], D = N[1], H = m ? T(T({}, ro), g) : T(T({}, no), g), $ = ao[c], z = ga(c, w, C), L = i.useRef(z);
1989
+ var n = e.prefixCls, t = e.visible, r = e.children, i = e.popup, o = e.popupStyle, s = e.popupClassName, l = e.popupOffset, u = e.disabled, c = e.mode, b = e.onVisibleChange, f = a.useContext(ot), d = f.getPopupContainer, m = f.rtl, h = f.subMenuOpenDelay, E = f.subMenuCloseDelay, g = f.builtinPlacements, M = f.triggerSubMenuAction, S = f.forceSubMenuRender, y = f.rootClassName, w = f.motion, C = f.defaultMotions, v = a.useState(!1), N = k(v, 2), O = N[0], D = N[1], B = m ? T(T({}, ro), g) : T(T({}, no), g), $ = ao[c], z = ga(c, w, C), L = a.useRef(z);
1990
1990
  c !== "inline" && (L.current = z);
1991
1991
  var j = T(T({}, L.current), {}, {
1992
1992
  leavedClassName: "".concat(n, "-hidden"),
1993
1993
  removeOnLeave: !1,
1994
1994
  motionAppear: !0
1995
- }), Z = i.useRef();
1996
- return i.useEffect(function() {
1995
+ }), Z = a.useRef();
1996
+ return a.useEffect(function() {
1997
1997
  return Z.current = Ht(function() {
1998
1998
  D(t);
1999
1999
  }), function() {
2000
2000
  Ht.cancel(Z.current);
2001
2001
  };
2002
- }, [t]), /* @__PURE__ */ i.createElement(ia, {
2002
+ }, [t]), /* @__PURE__ */ a.createElement(ia, {
2003
2003
  prefixCls: n,
2004
- popupClassName: Oe("".concat(n, "-popup"), me({}, "".concat(n, "-rtl"), m), s, y),
2004
+ popupClassName: ke("".concat(n, "-popup"), he({}, "".concat(n, "-rtl"), m), s, y),
2005
2005
  stretch: c === "horizontal" ? "minWidth" : null,
2006
2006
  getPopupContainer: d,
2007
- builtinPlacements: H,
2007
+ builtinPlacements: B,
2008
2008
  popupPlacement: $,
2009
2009
  popupVisible: O,
2010
- popup: a,
2010
+ popup: i,
2011
2011
  popupStyle: o,
2012
2012
  popupAlign: l && {
2013
2013
  offset: l
@@ -2022,10 +2022,10 @@ function io(e) {
2022
2022
  }, r);
2023
2023
  }
2024
2024
  function oo(e) {
2025
- var n = e.id, t = e.open, r = e.keyPath, a = e.children, o = "inline", s = i.useContext(ot), l = s.prefixCls, u = s.forceSubMenuRender, c = s.motion, b = s.defaultMotions, f = s.mode, d = i.useRef(!1);
2025
+ var n = e.id, t = e.open, r = e.keyPath, i = e.children, o = "inline", s = a.useContext(ot), l = s.prefixCls, u = s.forceSubMenuRender, c = s.motion, b = s.defaultMotions, f = s.mode, d = a.useRef(!1);
2026
2026
  d.current = f === o;
2027
- var m = i.useState(!d.current), h = k(m, 2), E = h[0], g = h[1], M = d.current ? t : !1;
2028
- i.useEffect(function() {
2027
+ var m = a.useState(!d.current), h = k(m, 2), E = h[0], g = h[1], M = d.current ? t : !1;
2028
+ a.useEffect(function() {
2029
2029
  d.current && g(!1);
2030
2030
  }, [f]);
2031
2031
  var S = T({}, ga(o, c, b));
@@ -2033,10 +2033,10 @@ function oo(e) {
2033
2033
  var y = S.onVisibleChanged;
2034
2034
  return S.onVisibleChanged = function(w) {
2035
2035
  return !d.current && !w && g(!0), y == null ? void 0 : y(w);
2036
- }, E ? null : /* @__PURE__ */ i.createElement(Rn, {
2036
+ }, E ? null : /* @__PURE__ */ a.createElement(Rn, {
2037
2037
  mode: o,
2038
2038
  locked: !d.current
2039
- }, /* @__PURE__ */ i.createElement(cr, ne({
2039
+ }, /* @__PURE__ */ a.createElement(cr, ae({
2040
2040
  visible: M
2041
2041
  }, S, {
2042
2042
  forceRender: u,
@@ -2044,185 +2044,187 @@ function oo(e) {
2044
2044
  leavedClassName: "".concat(l, "-hidden")
2045
2045
  }), function(w) {
2046
2046
  var C = w.className, v = w.style;
2047
- return /* @__PURE__ */ i.createElement(yr, {
2047
+ return /* @__PURE__ */ a.createElement(yr, {
2048
2048
  id: n,
2049
2049
  className: C,
2050
2050
  style: v
2051
- }, a);
2051
+ }, i);
2052
2052
  }));
2053
2053
  }
2054
- var so = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], lo = ["active"], uo = /* @__PURE__ */ i.forwardRef(function(e, n) {
2055
- var t = e.style, r = e.className, a = e.title, o = e.eventKey, s = e.warnKey, l = e.disabled, u = e.internalPopupClose, c = e.children, b = e.itemIcon, f = e.expandIcon, d = e.popupClassName, m = e.popupOffset, h = e.popupStyle, E = e.onClick, g = e.onMouseEnter, M = e.onMouseLeave, S = e.onTitleClick, y = e.onTitleMouseEnter, w = e.onTitleMouseLeave, C = ke(e, so), v = la(o), N = i.useContext(ot), O = N.prefixCls, D = N.mode, H = N.openKeys, $ = N.disabled, z = N.overflowDisabled, L = N.activeKey, j = N.selectedKeys, Z = N.itemIcon, q = N.expandIcon, Q = N.onItemClick, V = N.onOpenChange, A = N.onActive, x = i.useContext(dr), we = x._internalRenderSubMenuItem, le = i.useContext(fa), G = le.isSubPathKey, K = Sn(), B = "".concat(O, "-submenu"), re = $ || l, ye = i.useRef(), W = i.useRef();
2054
+ var so = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], lo = ["active"], uo = /* @__PURE__ */ a.forwardRef(function(e, n) {
2055
+ var t = e.style, r = e.className, i = e.title, o = e.eventKey, s = e.warnKey, l = e.disabled, u = e.internalPopupClose, c = e.children, b = e.itemIcon, f = e.expandIcon, d = e.popupClassName, m = e.popupOffset, h = e.popupStyle, E = e.onClick, g = e.onMouseEnter, M = e.onMouseLeave, S = e.onTitleClick, y = e.onTitleMouseEnter, w = e.onTitleMouseLeave, C = De(e, so), v = la(o), N = a.useContext(ot), O = N.prefixCls, D = N.mode, B = N.openKeys, $ = N.disabled, z = N.overflowDisabled, L = N.activeKey, j = N.selectedKeys, Z = N.itemIcon, q = N.expandIcon, Q = N.onItemClick, V = N.onOpenChange, A = N.onActive, x = a.useContext(dr), Me = x._internalRenderSubMenuItem, ue = a.useContext(fa), G = ue.isSubPathKey, K = Sn(), W = "".concat(O, "-submenu"), ie = $ || l, be = a.useRef(), F = a.useRef();
2056
2056
  process.env.NODE_ENV !== "production" && s && un(!1, "SubMenu should not leave undefined `key`.");
2057
- var Y = b ?? Z, ae = f ?? q, be = H.includes(o), ie = !z && be, Ne = G(j, o), Me = da(o, re, y, w), oe = Me.active, Be = ke(Me, lo), Ue = i.useState(!1), ue = k(Ue, 2), _e = ue[0], We = ue[1], ve = function(X) {
2058
- re || We(X);
2059
- }, ht = function(X) {
2060
- ve(!0), g == null || g({
2057
+ var Y = b ?? Z, te = f ?? q, pe = B.includes(o), oe = !z && pe, _e = G(j, o), Re = da(o, ie, y, w), se = Re.active, He = De(Re, lo), Be = a.useState(!1), ce = k(Be, 2), Ie = ce[0], Ve = ce[1], de = function(re) {
2058
+ ie || Ve(re);
2059
+ }, ht = function(re) {
2060
+ de(!0), g == null || g({
2061
2061
  key: o,
2062
- domEvent: X
2062
+ domEvent: re
2063
2063
  });
2064
- }, F = function(X) {
2065
- ve(!1), M == null || M({
2064
+ }, H = function(re) {
2065
+ de(!1), M == null || M({
2066
2066
  key: o,
2067
- domEvent: X
2067
+ domEvent: re
2068
2068
  });
2069
- }, Je = i.useMemo(function() {
2070
- return oe || (D !== "inline" ? _e || G([L], o) : !1);
2071
- }, [D, oe, L, _e, o, G]), pe = ma(K.length), J = function(X) {
2072
- re || (S == null || S({
2069
+ }, Ge = a.useMemo(function() {
2070
+ return se || (D !== "inline" ? Ie || G([L], o) : !1);
2071
+ }, [D, se, L, Ie, o, G]), Ce = ma(K.length), J = function(re) {
2072
+ ie || (S == null || S({
2073
2073
  key: o,
2074
- domEvent: X
2075
- }), D === "inline" && V(o, !be));
2076
- }, Fe = Cn(function(xe) {
2077
- E == null || E(An(xe)), Q(xe);
2078
- }), Ae = function(X) {
2079
- D !== "inline" && V(o, X);
2080
- }, $e = function() {
2074
+ domEvent: re
2075
+ }), D === "inline" && V(o, !pe));
2076
+ }, We = Cn(function(ne) {
2077
+ E == null || E(An(ne)), Q(ne);
2078
+ }), Te = function(re) {
2079
+ D !== "inline" && V(o, re);
2080
+ }, Le = function() {
2081
2081
  A(o);
2082
- }, Ze = v && "".concat(v, "-popup"), Ie = /* @__PURE__ */ i.createElement("div", ne({
2082
+ }, Je = v && "".concat(v, "-popup"), Ae = a.useMemo(function() {
2083
+ return /* @__PURE__ */ a.createElement(ha, {
2084
+ icon: D !== "horizontal" ? te : void 0,
2085
+ props: T(T({}, e), {}, {
2086
+ isOpen: oe,
2087
+ // [Legacy] Not sure why need this mark
2088
+ isSubMenu: !0
2089
+ })
2090
+ }, /* @__PURE__ */ a.createElement("i", {
2091
+ className: "".concat(W, "-arrow")
2092
+ }));
2093
+ }, [D, te, e, oe, W]), we = /* @__PURE__ */ a.createElement("div", ae({
2083
2094
  role: "menuitem",
2084
- style: pe,
2085
- className: "".concat(B, "-title"),
2086
- tabIndex: re ? null : -1,
2087
- ref: ye,
2088
- title: typeof a == "string" ? a : null,
2095
+ style: Ce,
2096
+ className: "".concat(W, "-title"),
2097
+ tabIndex: ie ? null : -1,
2098
+ ref: be,
2099
+ title: typeof i == "string" ? i : null,
2089
2100
  "data-menu-id": z && v ? null : v,
2090
- "aria-expanded": ie,
2101
+ "aria-expanded": oe,
2091
2102
  "aria-haspopup": !0,
2092
- "aria-controls": Ze,
2093
- "aria-disabled": re,
2103
+ "aria-controls": Je,
2104
+ "aria-disabled": ie,
2094
2105
  onClick: J,
2095
- onFocus: $e
2096
- }, Be), a, /* @__PURE__ */ i.createElement(ha, {
2097
- icon: D !== "horizontal" ? ae : void 0,
2098
- props: T(T({}, e), {}, {
2099
- isOpen: ie,
2100
- // [Legacy] Not sure why need this mark
2101
- isSubMenu: !0
2102
- })
2103
- }, /* @__PURE__ */ i.createElement("i", {
2104
- className: "".concat(B, "-arrow")
2105
- }))), Ce = i.useRef(D);
2106
- if (D !== "inline" && K.length > 1 ? Ce.current = "vertical" : Ce.current = D, !z) {
2107
- var ce = Ce.current;
2108
- Ie = /* @__PURE__ */ i.createElement(io, {
2109
- mode: ce,
2110
- prefixCls: B,
2111
- visible: !u && ie && D !== "inline",
2106
+ onFocus: Le
2107
+ }, He), i, Ae), fe = a.useRef(D);
2108
+ if (D !== "inline" && K.length > 1 ? fe.current = "vertical" : fe.current = D, !z) {
2109
+ var Ee = fe.current;
2110
+ we = /* @__PURE__ */ a.createElement(io, {
2111
+ mode: Ee,
2112
+ prefixCls: W,
2113
+ visible: !u && oe && D !== "inline",
2112
2114
  popupClassName: d,
2113
2115
  popupOffset: m,
2114
2116
  popupStyle: h,
2115
- popup: /* @__PURE__ */ i.createElement(
2117
+ popup: /* @__PURE__ */ a.createElement(
2116
2118
  Rn,
2117
2119
  {
2118
- mode: ce === "horizontal" ? "vertical" : ce
2120
+ mode: Ee === "horizontal" ? "vertical" : Ee
2119
2121
  },
2120
- /* @__PURE__ */ i.createElement(yr, {
2121
- id: Ze,
2122
- ref: W
2122
+ /* @__PURE__ */ a.createElement(yr, {
2123
+ id: Je,
2124
+ ref: F
2123
2125
  }, c)
2124
2126
  ),
2125
- disabled: re,
2126
- onVisibleChange: Ae
2127
- }, Ie);
2127
+ disabled: ie,
2128
+ onVisibleChange: Te
2129
+ }, we);
2128
2130
  }
2129
- var Re = /* @__PURE__ */ i.createElement(Mt.Item, ne({
2131
+ var Ze = /* @__PURE__ */ a.createElement(Mt.Item, ae({
2130
2132
  ref: n,
2131
2133
  role: "none"
2132
2134
  }, C, {
2133
2135
  component: "li",
2134
2136
  style: t,
2135
- className: Oe(B, "".concat(B, "-").concat(D), r, me(me(me(me({}, "".concat(B, "-open"), ie), "".concat(B, "-active"), Je), "".concat(B, "-selected"), Ne), "".concat(B, "-disabled"), re)),
2137
+ className: ke(W, "".concat(W, "-").concat(D), r, he(he(he(he({}, "".concat(W, "-open"), oe), "".concat(W, "-active"), Ge), "".concat(W, "-selected"), _e), "".concat(W, "-disabled"), ie)),
2136
2138
  onMouseEnter: ht,
2137
- onMouseLeave: F
2138
- }), Ie, !z && /* @__PURE__ */ i.createElement(oo, {
2139
- id: Ze,
2140
- open: ie,
2139
+ onMouseLeave: H
2140
+ }), we, !z && /* @__PURE__ */ a.createElement(oo, {
2141
+ id: Je,
2142
+ open: oe,
2141
2143
  keyPath: K
2142
2144
  }, c));
2143
- return we && (Re = we(Re, e, {
2144
- selected: Ne,
2145
- active: Je,
2146
- open: ie,
2147
- disabled: re
2148
- })), /* @__PURE__ */ i.createElement(Rn, {
2149
- onItemClick: Fe,
2145
+ return Me && (Ze = Me(Ze, e, {
2146
+ selected: _e,
2147
+ active: Ge,
2148
+ open: oe,
2149
+ disabled: ie
2150
+ })), /* @__PURE__ */ a.createElement(Rn, {
2151
+ onItemClick: We,
2150
2152
  mode: D === "horizontal" ? "vertical" : D,
2151
2153
  itemIcon: Y,
2152
- expandIcon: ae
2153
- }, Re);
2154
- }), Fn = /* @__PURE__ */ i.forwardRef(function(e, n) {
2155
- var t = e.eventKey, r = e.children, a = Sn(t), o = br(r, a), s = Wn();
2156
- i.useEffect(function() {
2154
+ expandIcon: te
2155
+ }, Ze);
2156
+ }), Fn = /* @__PURE__ */ a.forwardRef(function(e, n) {
2157
+ var t = e.eventKey, r = e.children, i = Sn(t), o = br(r, i), s = Wn();
2158
+ a.useEffect(function() {
2157
2159
  if (s)
2158
- return s.registerPath(t, a), function() {
2159
- s.unregisterPath(t, a);
2160
+ return s.registerPath(t, i), function() {
2161
+ s.unregisterPath(t, i);
2160
2162
  };
2161
- }, [a]);
2163
+ }, [i]);
2162
2164
  var l;
2163
- return s ? l = o : l = /* @__PURE__ */ i.createElement(uo, ne({
2165
+ return s ? l = o : l = /* @__PURE__ */ a.createElement(uo, ae({
2164
2166
  ref: n
2165
- }, e), o), /* @__PURE__ */ i.createElement(ca.Provider, {
2166
- value: a
2167
+ }, e), o), /* @__PURE__ */ a.createElement(ca.Provider, {
2168
+ value: i
2167
2169
  }, l);
2168
2170
  });
2169
2171
  process.env.NODE_ENV !== "production" && (Fn.displayName = "SubMenu");
2170
2172
  function ya(e) {
2171
- var n = e.className, t = e.style, r = i.useContext(ot), a = r.prefixCls, o = Wn();
2172
- return o ? null : /* @__PURE__ */ i.createElement("li", {
2173
+ var n = e.className, t = e.style, r = a.useContext(ot), i = r.prefixCls, o = Wn();
2174
+ return o ? null : /* @__PURE__ */ a.createElement("li", {
2173
2175
  role: "separator",
2174
- className: Oe("".concat(a, "-item-divider"), n),
2176
+ className: ke("".concat(i, "-item-divider"), n),
2175
2177
  style: t
2176
2178
  });
2177
2179
  }
2178
- var co = ["className", "title", "eventKey", "children"], fo = /* @__PURE__ */ i.forwardRef(function(e, n) {
2180
+ var co = ["className", "title", "eventKey", "children"], fo = /* @__PURE__ */ a.forwardRef(function(e, n) {
2179
2181
  var t = e.className, r = e.title;
2180
2182
  e.eventKey;
2181
- var a = e.children, o = ke(e, co), s = i.useContext(ot), l = s.prefixCls, u = "".concat(l, "-item-group");
2182
- return /* @__PURE__ */ i.createElement("li", ne({
2183
+ var i = e.children, o = De(e, co), s = a.useContext(ot), l = s.prefixCls, u = "".concat(l, "-item-group");
2184
+ return /* @__PURE__ */ a.createElement("li", ae({
2183
2185
  ref: n,
2184
2186
  role: "presentation"
2185
2187
  }, o, {
2186
2188
  onClick: function(b) {
2187
2189
  return b.stopPropagation();
2188
2190
  },
2189
- className: Oe(u, t)
2190
- }), /* @__PURE__ */ i.createElement("div", {
2191
+ className: ke(u, t)
2192
+ }), /* @__PURE__ */ a.createElement("div", {
2191
2193
  role: "presentation",
2192
2194
  className: "".concat(u, "-title"),
2193
2195
  title: typeof r == "string" ? r : void 0
2194
- }, r), /* @__PURE__ */ i.createElement("ul", {
2196
+ }, r), /* @__PURE__ */ a.createElement("ul", {
2195
2197
  role: "group",
2196
2198
  className: "".concat(u, "-list")
2197
- }, a));
2198
- }), pr = /* @__PURE__ */ i.forwardRef(function(e, n) {
2199
- var t = e.eventKey, r = e.children, a = Sn(t), o = br(r, a), s = Wn();
2200
- return s ? o : /* @__PURE__ */ i.createElement(fo, ne({
2199
+ }, i));
2200
+ }), pr = /* @__PURE__ */ a.forwardRef(function(e, n) {
2201
+ var t = e.eventKey, r = e.children, i = Sn(t), o = br(r, i), s = Wn();
2202
+ return s ? o : /* @__PURE__ */ a.createElement(fo, ae({
2201
2203
  ref: n
2202
2204
  }, vr(e, ["warnKey"])), o);
2203
2205
  });
2204
2206
  process.env.NODE_ENV !== "production" && (pr.displayName = "MenuItemGroup");
2205
2207
  var vo = ["label", "children", "key", "type", "extra"];
2206
2208
  function lr(e, n, t) {
2207
- var r = n.item, a = n.group, o = n.submenu, s = n.divider;
2209
+ var r = n.item, i = n.group, o = n.submenu, s = n.divider;
2208
2210
  return (e || []).map(function(l, u) {
2209
2211
  if (l && zr(l) === "object") {
2210
- var c = l, b = c.label, f = c.children, d = c.key, m = c.type, h = c.extra, E = ke(c, vo), g = d ?? "tmp-".concat(u);
2211
- return f || m === "group" ? m === "group" ? /* @__PURE__ */ i.createElement(a, ne({
2212
+ var c = l, b = c.label, f = c.children, d = c.key, m = c.type, h = c.extra, E = De(c, vo), g = d ?? "tmp-".concat(u);
2213
+ return f || m === "group" ? m === "group" ? /* @__PURE__ */ a.createElement(i, ae({
2212
2214
  key: g
2213
2215
  }, E, {
2214
2216
  title: b
2215
- }), lr(f, n, t)) : /* @__PURE__ */ i.createElement(o, ne({
2217
+ }), lr(f, n, t)) : /* @__PURE__ */ a.createElement(o, ae({
2216
2218
  key: g
2217
2219
  }, E, {
2218
2220
  title: b
2219
- }), lr(f, n, t)) : m === "divider" ? /* @__PURE__ */ i.createElement(s, ne({
2221
+ }), lr(f, n, t)) : m === "divider" ? /* @__PURE__ */ a.createElement(s, ae({
2220
2222
  key: g
2221
- }, E)) : /* @__PURE__ */ i.createElement(r, ne({
2223
+ }, E)) : /* @__PURE__ */ a.createElement(r, ae({
2222
2224
  key: g
2223
2225
  }, E, {
2224
2226
  extra: h
2225
- }), b, (!!h || h === 0) && /* @__PURE__ */ i.createElement("span", {
2227
+ }), b, (!!h || h === 0) && /* @__PURE__ */ a.createElement("span", {
2226
2228
  className: "".concat(t, "-item-extra")
2227
2229
  }, h));
2228
2230
  }
@@ -2231,77 +2233,77 @@ function lr(e, n, t) {
2231
2233
  return l;
2232
2234
  });
2233
2235
  }
2234
- function Kr(e, n, t, r, a) {
2236
+ function Kr(e, n, t, r, i) {
2235
2237
  var o = e, s = T({
2236
2238
  divider: ya,
2237
2239
  item: gr,
2238
2240
  group: pr,
2239
2241
  submenu: Fn
2240
2242
  }, r);
2241
- return n && (o = lr(n, s, a)), br(o, t);
2242
- }
2243
- var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Ft = [], ho = /* @__PURE__ */ i.forwardRef(function(e, n) {
2244
- var t, r = e, a = r.prefixCls, o = a === void 0 ? "rc-menu" : a, s = r.rootClassName, l = r.style, u = r.className, c = r.tabIndex, b = c === void 0 ? 0 : c, f = r.items, d = r.children, m = r.direction, h = r.id, E = r.mode, g = E === void 0 ? "vertical" : E, M = r.inlineCollapsed, S = r.disabled, y = r.disabledOverflow, w = r.subMenuOpenDelay, C = w === void 0 ? 0.1 : w, v = r.subMenuCloseDelay, N = v === void 0 ? 0.1 : v, O = r.forceSubMenuRender, D = r.defaultOpenKeys, H = r.openKeys, $ = r.activeKey, z = r.defaultActiveFirst, L = r.selectable, j = L === void 0 ? !0 : L, Z = r.multiple, q = Z === void 0 ? !1 : Z, Q = r.defaultSelectedKeys, V = r.selectedKeys, A = r.onSelect, x = r.onDeselect, we = r.inlineIndent, le = we === void 0 ? 24 : we, G = r.motion, K = r.defaultMotions, B = r.triggerSubMenuAction, re = B === void 0 ? "hover" : B, ye = r.builtinPlacements, W = r.itemIcon, Y = r.expandIcon, ae = r.overflowedIndicator, be = ae === void 0 ? "..." : ae, ie = r.overflowedIndicatorPopupClassName, Ne = r.getPopupContainer, Me = r.onClick, oe = r.onOpenChange, Be = r.onKeyDown, Ue = r.openAnimation, ue = r.openTransitionName, _e = r._internalRenderMenuItem, We = r._internalRenderSubMenuItem, ve = r._internalComponents, ht = ke(r, mo), F = i.useMemo(function() {
2245
- return [Kr(d, f, Ft, ve, o), Kr(d, f, Ft, {}, o)];
2246
- }, [d, f, ve]), Je = k(F, 2), pe = Je[0], J = Je[1], Fe = i.useState(!1), Ae = k(Fe, 2), $e = Ae[0], Ze = Ae[1], Ie = i.useRef(), Ce = ji(h), ce = m === "rtl";
2247
- process.env.NODE_ENV !== "production" && un(!Ue && !ue, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
2248
- var Re = Dn(D, {
2249
- value: H,
2243
+ return n && (o = lr(n, s, i)), br(o, t);
2244
+ }
2245
+ var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], Ft = [], ho = /* @__PURE__ */ a.forwardRef(function(e, n) {
2246
+ var t, r = e, i = r.prefixCls, o = i === void 0 ? "rc-menu" : i, s = r.rootClassName, l = r.style, u = r.className, c = r.tabIndex, b = c === void 0 ? 0 : c, f = r.items, d = r.children, m = r.direction, h = r.id, E = r.mode, g = E === void 0 ? "vertical" : E, M = r.inlineCollapsed, S = r.disabled, y = r.disabledOverflow, w = r.subMenuOpenDelay, C = w === void 0 ? 0.1 : w, v = r.subMenuCloseDelay, N = v === void 0 ? 0.1 : v, O = r.forceSubMenuRender, D = r.defaultOpenKeys, B = r.openKeys, $ = r.activeKey, z = r.defaultActiveFirst, L = r.selectable, j = L === void 0 ? !0 : L, Z = r.multiple, q = Z === void 0 ? !1 : Z, Q = r.defaultSelectedKeys, V = r.selectedKeys, A = r.onSelect, x = r.onDeselect, Me = r.inlineIndent, ue = Me === void 0 ? 24 : Me, G = r.motion, K = r.defaultMotions, W = r.triggerSubMenuAction, ie = W === void 0 ? "hover" : W, be = r.builtinPlacements, F = r.itemIcon, Y = r.expandIcon, te = r.overflowedIndicator, pe = te === void 0 ? "..." : te, oe = r.overflowedIndicatorPopupClassName, _e = r.getPopupContainer, Re = r.onClick, se = r.onOpenChange, He = r.onKeyDown, Be = r.openAnimation, ce = r.openTransitionName, Ie = r._internalRenderMenuItem, Ve = r._internalRenderSubMenuItem, de = r._internalComponents, ht = De(r, mo), H = a.useMemo(function() {
2247
+ return [Kr(d, f, Ft, de, o), Kr(d, f, Ft, {}, o)];
2248
+ }, [d, f, de]), Ge = k(H, 2), Ce = Ge[0], J = Ge[1], We = a.useState(!1), Te = k(We, 2), Le = Te[0], Je = Te[1], Ae = a.useRef(), we = ji(h), fe = m === "rtl";
2249
+ process.env.NODE_ENV !== "production" && un(!Be && !ce, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
2250
+ var Ee = Dn(D, {
2251
+ value: B,
2250
2252
  postState: function(U) {
2251
2253
  return U || Ft;
2252
2254
  }
2253
- }), xe = k(Re, 2), X = xe[0], Ke = xe[1], ze = function(U) {
2254
- var te = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2255
- function Le() {
2256
- Ke(U), oe == null || oe(U);
2255
+ }), Ze = k(Ee, 2), ne = Ze[0], re = Ze[1], $e = function(U) {
2256
+ var ee = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2257
+ function Ke() {
2258
+ re(U), se == null || se(U);
2257
2259
  }
2258
- te ? Br.flushSync(Le) : Le();
2259
- }, Et = i.useState(X), lt = k(Et, 2), rt = lt[0], At = lt[1], Te = i.useRef(!1), Se = i.useMemo(function() {
2260
+ ee ? Br.flushSync(Ke) : Ke();
2261
+ }, Et = a.useState(ne), lt = k(Et, 2), rt = lt[0], At = lt[1], Oe = a.useRef(!1), Pe = a.useMemo(function() {
2260
2262
  return (g === "inline" || g === "vertical") && M ? ["vertical", M] : [g, !1];
2261
- }, [g, M]), ut = k(Se, 2), de = ut[0], P = ut[1], R = de === "inline", I = i.useState(de), se = k(I, 2), he = se[0], $t = se[1], je = i.useState(P), zt = k(je, 2), Vt = zt[0], ct = zt[1];
2262
- i.useEffect(function() {
2263
- $t(de), ct(P), Te.current && (R ? Ke(rt) : ze(Ft));
2264
- }, [de, P]);
2265
- var Bt = i.useState(0), Ut = k(Bt, 2), ft = Ut[0], St = Ut[1], gt = ft >= pe.length - 1 || he !== "horizontal" || y;
2266
- i.useEffect(function() {
2267
- R && At(X);
2268
- }, [X]), i.useEffect(function() {
2269
- return Te.current = !0, function() {
2270
- Te.current = !1;
2263
+ }, [g, M]), ut = k(Pe, 2), me = ut[0], P = ut[1], R = me === "inline", I = a.useState(me), le = k(I, 2), ge = le[0], $t = le[1], Ue = a.useState(P), zt = k(Ue, 2), Vt = zt[0], ct = zt[1];
2264
+ a.useEffect(function() {
2265
+ $t(me), ct(P), Oe.current && (R ? re(rt) : $e(Ft));
2266
+ }, [me, P]);
2267
+ var Bt = a.useState(0), Ut = k(Bt, 2), ft = Ut[0], St = Ut[1], gt = ft >= Ce.length - 1 || ge !== "horizontal" || y;
2268
+ a.useEffect(function() {
2269
+ R && At(ne);
2270
+ }, [ne]), a.useEffect(function() {
2271
+ return Oe.current = !0, function() {
2272
+ Oe.current = !1;
2271
2273
  };
2272
2274
  }, []);
2273
- var He = Bi(), vt = He.registerPath, Ye = He.unregisterPath, Pt = He.refreshOverflowKeys, dt = He.isSubPathKey, jt = He.getKeyPath, Ee = He.getKeys, qt = He.getSubPathKeys, fn = i.useMemo(function() {
2275
+ var Fe = Bi(), vt = Fe.registerPath, Ye = Fe.unregisterPath, Pt = Fe.refreshOverflowKeys, dt = Fe.isSubPathKey, jt = Fe.getKeyPath, Se = Fe.getKeys, qt = Fe.getSubPathKeys, fn = a.useMemo(function() {
2274
2276
  return {
2275
2277
  registerPath: vt,
2276
2278
  unregisterPath: Ye
2277
2279
  };
2278
- }, [vt, Ye]), yt = i.useMemo(function() {
2280
+ }, [vt, Ye]), yt = a.useMemo(function() {
2279
2281
  return {
2280
2282
  isSubPathKey: dt
2281
2283
  };
2282
2284
  }, [dt]);
2283
- i.useEffect(function() {
2284
- Pt(gt ? Ft : pe.slice(ft + 1).map(function(ee) {
2285
- return ee.key;
2285
+ a.useEffect(function() {
2286
+ Pt(gt ? Ft : Ce.slice(ft + 1).map(function(X) {
2287
+ return X.key;
2286
2288
  }));
2287
2289
  }, [ft, gt]);
2288
- var Gt = Dn($ || z && ((t = pe[0]) === null || t === void 0 ? void 0 : t.key), {
2290
+ var Gt = Dn($ || z && ((t = Ce[0]) === null || t === void 0 ? void 0 : t.key), {
2289
2291
  value: $
2290
- }), Jt = k(Gt, 2), mt = Jt[0], Nt = Jt[1], bt = Cn(function(ee) {
2291
- Nt(ee);
2292
+ }), Jt = k(Gt, 2), mt = Jt[0], Nt = Jt[1], bt = Cn(function(X) {
2293
+ Nt(X);
2292
2294
  }), Zt = Cn(function() {
2293
2295
  Nt(void 0);
2294
2296
  });
2295
2297
  Ea(n, function() {
2296
2298
  return {
2297
- list: Ie.current,
2299
+ list: Ae.current,
2298
2300
  focus: function(U) {
2299
- var te, Le = Ee(), De = or(Le, Ce), xt = De.elements, Wt = De.key2element, Xt = De.element2key, en = mr(Ie.current, xt), tn = mt ?? (en[0] ? Xt.get(en[0]) : (te = pe.find(function(mn) {
2301
+ var ee, Ke = Se(), xe = or(Ke, we), xt = xe.elements, Wt = xe.key2element, Xt = xe.element2key, en = mr(Ae.current, xt), tn = mt ?? (en[0] ? Xt.get(en[0]) : (ee = Ce.find(function(mn) {
2300
2302
  return !mn.props.disabled;
2301
- })) === null || te === void 0 ? void 0 : te.key), at = Wt.get(tn);
2303
+ })) === null || ee === void 0 ? void 0 : ee.key), at = Wt.get(tn);
2302
2304
  if (tn && at) {
2303
- var qe;
2304
- at == null || (qe = at.focus) === null || qe === void 0 || qe.call(at, U);
2305
+ var je;
2306
+ at == null || (je = at.focus) === null || je === void 0 || je.call(at, U);
2305
2307
  }
2306
2308
  }
2307
2309
  };
@@ -2314,61 +2316,61 @@ var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2314
2316
  }
2315
2317
  }), Xe = k(_t, 2), pt = Xe[0], Qt = Xe[1], et = function(U) {
2316
2318
  if (j) {
2317
- var te = U.key, Le = pt.includes(te), De;
2318
- q ? Le ? De = pt.filter(function(Wt) {
2319
- return Wt !== te;
2320
- }) : De = [].concat(Rt(pt), [te]) : De = [te], Qt(De);
2319
+ var ee = U.key, Ke = pt.includes(ee), xe;
2320
+ q ? Ke ? xe = pt.filter(function(Wt) {
2321
+ return Wt !== ee;
2322
+ }) : xe = [].concat(Rt(pt), [ee]) : xe = [ee], Qt(xe);
2321
2323
  var xt = T(T({}, U), {}, {
2322
- selectedKeys: De
2324
+ selectedKeys: xe
2323
2325
  });
2324
- Le ? x == null || x(xt) : A == null || A(xt);
2326
+ Ke ? x == null || x(xt) : A == null || A(xt);
2325
2327
  }
2326
- !q && X.length && he !== "inline" && ze(Ft);
2327
- }, Qe = Cn(function(ee) {
2328
- Me == null || Me(An(ee)), et(ee);
2329
- }), Ct = Cn(function(ee, U) {
2330
- var te = X.filter(function(De) {
2331
- return De !== ee;
2328
+ !q && ne.length && ge !== "inline" && $e(Ft);
2329
+ }, Qe = Cn(function(X) {
2330
+ Re == null || Re(An(X)), et(X);
2331
+ }), Ct = Cn(function(X, U) {
2332
+ var ee = ne.filter(function(xe) {
2333
+ return xe !== X;
2332
2334
  });
2333
2335
  if (U)
2334
- te.push(ee);
2335
- else if (he !== "inline") {
2336
- var Le = qt(ee);
2337
- te = te.filter(function(De) {
2338
- return !Le.has(De);
2336
+ ee.push(X);
2337
+ else if (ge !== "inline") {
2338
+ var Ke = qt(X);
2339
+ ee = ee.filter(function(xe) {
2340
+ return !Ke.has(xe);
2339
2341
  });
2340
2342
  }
2341
- Hr(X, te, !0) || ze(te, !0);
2342
- }), It = function(U, te) {
2343
- var Le = te ?? !X.includes(U);
2344
- Ct(U, Le);
2345
- }, tt = Wi(he, mt, ce, Ce, Ie, Ee, jt, Nt, It, Be);
2346
- i.useEffect(function() {
2347
- Ze(!0);
2343
+ Hr(ne, ee, !0) || $e(ee, !0);
2344
+ }), It = function(U, ee) {
2345
+ var Ke = ee ?? !ne.includes(U);
2346
+ Ct(U, Ke);
2347
+ }, tt = Wi(ge, mt, fe, we, Ae, Se, jt, Nt, It, He);
2348
+ a.useEffect(function() {
2349
+ Je(!0);
2348
2350
  }, []);
2349
- var vn = i.useMemo(function() {
2351
+ var vn = a.useMemo(function() {
2350
2352
  return {
2351
- _internalRenderMenuItem: _e,
2352
- _internalRenderSubMenuItem: We
2353
+ _internalRenderMenuItem: Ie,
2354
+ _internalRenderSubMenuItem: Ve
2353
2355
  };
2354
- }, [_e, We]), Yt = he !== "horizontal" || y ? pe : (
2356
+ }, [Ie, Ve]), Yt = ge !== "horizontal" || y ? Ce : (
2355
2357
  // Need wrap for overflow dropdown that do not response for open
2356
- pe.map(function(ee, U) {
2358
+ Ce.map(function(X, U) {
2357
2359
  return (
2358
2360
  // Always wrap provider to avoid sub node re-mount
2359
- /* @__PURE__ */ i.createElement(Rn, {
2360
- key: ee.key,
2361
+ /* @__PURE__ */ a.createElement(Rn, {
2362
+ key: X.key,
2361
2363
  overflowDisabled: U > ft
2362
- }, ee)
2364
+ }, X)
2363
2365
  );
2364
2366
  })
2365
- ), dn = /* @__PURE__ */ i.createElement(Mt, ne({
2367
+ ), dn = /* @__PURE__ */ a.createElement(Mt, ae({
2366
2368
  id: h,
2367
- ref: Ie,
2369
+ ref: Ae,
2368
2370
  prefixCls: "".concat(o, "-overflow"),
2369
2371
  component: "ul",
2370
2372
  itemComponent: gr,
2371
- className: Oe(o, "".concat(o, "-root"), "".concat(o, "-").concat(he), u, me(me({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), ce), s),
2373
+ className: ke(o, "".concat(o, "-root"), "".concat(o, "-").concat(ge), u, he(he({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), fe), s),
2372
2374
  dir: m,
2373
2375
  style: l,
2374
2376
  role: "menu",
@@ -2378,16 +2380,16 @@ var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2378
2380
  return U;
2379
2381
  },
2380
2382
  renderRawRest: function(U) {
2381
- var te = U.length, Le = te ? pe.slice(-te) : null;
2382
- return /* @__PURE__ */ i.createElement(Fn, {
2383
+ var ee = U.length, Ke = ee ? Ce.slice(-ee) : null;
2384
+ return /* @__PURE__ */ a.createElement(Fn, {
2383
2385
  eventKey: sr,
2384
- title: be,
2386
+ title: pe,
2385
2387
  disabled: gt,
2386
- internalPopupClose: te === 0,
2387
- popupClassName: ie
2388
- }, Le);
2388
+ internalPopupClose: ee === 0,
2389
+ popupClassName: oe
2390
+ }, Ke);
2389
2391
  },
2390
- maxCount: he !== "horizontal" || y ? Mt.INVALIDATE : Mt.RESPONSIVE,
2392
+ maxCount: ge !== "horizontal" || y ? Mt.INVALIDATE : Mt.RESPONSIVE,
2391
2393
  ssr: "full",
2392
2394
  "data-menu-list": !0,
2393
2395
  onVisibleChange: function(U) {
@@ -2395,42 +2397,42 @@ var mo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2395
2397
  },
2396
2398
  onKeyDown: tt
2397
2399
  }, ht));
2398
- return /* @__PURE__ */ i.createElement(dr.Provider, {
2400
+ return /* @__PURE__ */ a.createElement(dr.Provider, {
2399
2401
  value: vn
2400
- }, /* @__PURE__ */ i.createElement(oa.Provider, {
2401
- value: Ce
2402
- }, /* @__PURE__ */ i.createElement(Rn, {
2402
+ }, /* @__PURE__ */ a.createElement(oa.Provider, {
2403
+ value: we
2404
+ }, /* @__PURE__ */ a.createElement(Rn, {
2403
2405
  prefixCls: o,
2404
2406
  rootClassName: s,
2405
- mode: he,
2406
- openKeys: X,
2407
- rtl: ce,
2407
+ mode: ge,
2408
+ openKeys: ne,
2409
+ rtl: fe,
2408
2410
  disabled: S,
2409
- motion: $e ? G : null,
2410
- defaultMotions: $e ? K : null,
2411
+ motion: Le ? G : null,
2412
+ defaultMotions: Le ? K : null,
2411
2413
  activeKey: mt,
2412
2414
  onActive: bt,
2413
2415
  onInactive: Zt,
2414
2416
  selectedKeys: pt,
2415
- inlineIndent: le,
2417
+ inlineIndent: ue,
2416
2418
  subMenuOpenDelay: C,
2417
2419
  subMenuCloseDelay: N,
2418
2420
  forceSubMenuRender: O,
2419
- builtinPlacements: ye,
2420
- triggerSubMenuAction: re,
2421
- getPopupContainer: Ne,
2422
- itemIcon: W,
2421
+ builtinPlacements: be,
2422
+ triggerSubMenuAction: ie,
2423
+ getPopupContainer: _e,
2424
+ itemIcon: F,
2423
2425
  expandIcon: Y,
2424
2426
  onItemClick: Qe,
2425
2427
  onOpenChange: Ct
2426
- }, /* @__PURE__ */ i.createElement(fa.Provider, {
2428
+ }, /* @__PURE__ */ a.createElement(fa.Provider, {
2427
2429
  value: yt
2428
- }, dn), /* @__PURE__ */ i.createElement("div", {
2430
+ }, dn), /* @__PURE__ */ a.createElement("div", {
2429
2431
  style: {
2430
2432
  display: "none"
2431
2433
  },
2432
2434
  "aria-hidden": !0
2433
- }, /* @__PURE__ */ i.createElement(ua.Provider, {
2435
+ }, /* @__PURE__ */ a.createElement(ua.Provider, {
2434
2436
  value: fn
2435
2437
  }, J)))));
2436
2438
  }), Hn = ho;
@@ -2439,11 +2441,11 @@ Hn.SubMenu = Fn;
2439
2441
  Hn.ItemGroup = pr;
2440
2442
  Hn.Divider = ya;
2441
2443
  var go = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, yo = function(n, t) {
2442
- return /* @__PURE__ */ i.createElement(Ma, ne({}, n, {
2444
+ return /* @__PURE__ */ a.createElement(Ma, ae({}, n, {
2443
2445
  ref: t,
2444
2446
  icon: go
2445
2447
  }));
2446
- }, bo = /* @__PURE__ */ i.forwardRef(yo);
2448
+ }, bo = /* @__PURE__ */ a.forwardRef(yo);
2447
2449
  process.env.NODE_ENV !== "production" && (bo.displayName = "EllipsisOutlined");
2448
2450
  export {
2449
2451
  Eo as D,