@amateescu/portal-ui-components 0.0.24 → 0.0.25-react19

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 (47) hide show
  1. package/dist/Box-DQNjUj2G.js +102 -0
  2. package/dist/Button-D2XVkO19.js +676 -0
  3. package/dist/ButtonBase-D-XlpvIZ.js +954 -0
  4. package/dist/CircularProgress-BOkP0juA.js +247 -0
  5. package/dist/{EllipsisOutlined-CtmB5yDB.js → EllipsisOutlined-DfTPoz8U.js} +667 -672
  6. package/dist/PurePanel-ByiFMw5U.js +2213 -0
  7. package/dist/{Skeleton-XFbjx7LJ.js → Skeleton-Imy-56Lv.js} +161 -158
  8. package/dist/{UserInfoDropdown-DGaplQo6.js → UserInfoDropdown-6aB5cQyF.js} +1540 -1505
  9. package/dist/_commonjsHelpers-C6fGbg64.js +6 -0
  10. package/dist/components/ConfirmationModal/ConfirmationModal.js +1 -1
  11. package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +1 -1
  12. package/dist/components/CustomButton/CustomButton.js +1 -1
  13. package/dist/components/CustomPagination/CustomPagination.js +455 -344
  14. package/dist/components/ErrorModal/ErrorModal.js +5 -6
  15. package/dist/components/ErrorModal/ErrorModal.stories.js +1 -1
  16. package/dist/components/InfoModal/InfoModal.js +1 -1
  17. package/dist/components/InfoModal/InfoModal.stories.js +1 -1
  18. package/dist/components/KpiCard/KpiCard.js +1003 -892
  19. package/dist/components/LoadingAnimation/LoadingAnimation.js +6 -215
  20. package/dist/components/Login/Login.js +4485 -3820
  21. package/dist/components/Login/Login.stories.js +1586 -1546
  22. package/dist/components/SideMenu/SideMenu.js +1 -1
  23. package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
  24. package/dist/components/TotalDataGrid/TotalDataGrid.js +6 -6
  25. package/dist/components/UserInfoDropdown/UserInfoDropdown.js +1 -1
  26. package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +1 -1
  27. package/dist/components/index.js +1 -1
  28. package/dist/context-D_FWkiDE.js +7383 -0
  29. package/dist/createSimplePaletteValueFilter-CshNo3IR.js +3439 -0
  30. package/dist/index-CR8gh-dS.js +1689 -0
  31. package/dist/index-CyFfYou3.js +411 -0
  32. package/dist/main.js +1 -1
  33. package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +33 -0
  34. package/dist/portal-utils/formatters.js +68 -0
  35. package/dist/useSlot-kDVPuVrn.js +431 -0
  36. package/package.json +38 -38
  37. package/dist/Box-CmKt1PwF.js +0 -68
  38. package/dist/Button-BT8r3F_d.js +0 -355
  39. package/dist/ButtonBase-By486Sca.js +0 -966
  40. package/dist/PurePanel-CfZ1n-M8.js +0 -4782
  41. package/dist/assertThisInitialized-BUtkG-md.js +0 -13
  42. package/dist/createSvgIcon-B8ya7kb4.js +0 -250
  43. package/dist/generateUtilityClasses-Bhjgm_6-.js +0 -3270
  44. package/dist/index-1vDmwq0E.js +0 -19089
  45. package/dist/index-DsP9yT3s.js +0 -1551
  46. package/dist/objectWithoutPropertiesLoose-CIT-1_kH.js +0 -227
  47. package/dist/useId-DbfH3PlN.js +0 -5397
@@ -1,11 +1,11 @@
1
- import { V as Kr, W as Tr, X as Lr, Y as Ar, Z as $n, k as lr, $ as Gn, f as $r, d as T, t as zr, G as Jn, E as ya, K as Lt, l as ke, c as Ke, w as Ht, b as O, j as Kt, a0 as ot, n as ur, a1 as cr, a2 as ba, a3 as Zn, a4 as Vr, _ as Rt, a5 as Qn, H as pa, P as Wr, i as lt, h as me, a6 as Ca, a7 as Fr, p as un, q as Dn, o as fr, I as wa } from "./useId-DbfH3PlN.js";
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
2
  import * as i from "react";
3
- import qe, { useState as qn, useMemo as Yn, useCallback as Tt, forwardRef as Ma, useRef as xn, useImperativeHandle as Ra } from "react";
4
- import { a as ne } from "./objectWithoutPropertiesLoose-CIT-1_kH.js";
5
- import { r as Hr } from "./index-1vDmwq0E.js";
6
- var Xn = /* @__PURE__ */ i.createContext(null);
7
- function Ea(e) {
8
- var n = e.children, t = e.onBatchResize, r = i.useRef(0), a = i.useRef([]), o = i.useContext(Xn), s = i.useCallback(function(l, u, c) {
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);
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) {
9
9
  r.current += 1;
10
10
  var b = r.current;
11
11
  a.current.push({
@@ -16,11 +16,11 @@ function Ea(e) {
16
16
  b === r.current && (t == null || t(a.current), a.current = []);
17
17
  }), o == null || o(l, u, c);
18
18
  }, [t, o]);
19
- return /* @__PURE__ */ i.createElement(Xn.Provider, {
19
+ return /* @__PURE__ */ i.createElement(er.Provider, {
20
20
  value: s
21
21
  }, n);
22
22
  }
23
- var Br = function() {
23
+ var Ur = function() {
24
24
  if (typeof Map < "u")
25
25
  return Map;
26
26
  function e(n, t) {
@@ -66,27 +66,27 @@ var Br = function() {
66
66
  }, n;
67
67
  }()
68
68
  );
69
- }(), er = typeof window < "u" && typeof document < "u" && window.document === document, Kn = function() {
69
+ }(), tr = typeof window < "u" && typeof document < "u" && window.document === document, Kn = function() {
70
70
  return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
71
- }(), Sa = function() {
71
+ }(), Pa = function() {
72
72
  return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(Kn) : function(e) {
73
73
  return setTimeout(function() {
74
74
  return e(Date.now());
75
75
  }, 1e3 / 60);
76
76
  };
77
- }(), Pa = 2;
78
- function Na(e, n) {
77
+ }(), Na = 2;
78
+ function _a(e, n) {
79
79
  var t = !1, r = !1, a = 0;
80
80
  function o() {
81
81
  t && (t = !1, e()), r && l();
82
82
  }
83
83
  function s() {
84
- Sa(o);
84
+ Pa(o);
85
85
  }
86
86
  function l() {
87
87
  var u = Date.now();
88
88
  if (t) {
89
- if (u - a < Pa)
89
+ if (u - a < Na)
90
90
  return;
91
91
  r = !0;
92
92
  } else
@@ -95,11 +95,11 @@ function Na(e, n) {
95
95
  }
96
96
  return l;
97
97
  }
98
- var _a = 20, Ia = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], xa = typeof MutationObserver < "u", Da = (
98
+ var Ia = 20, xa = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], Da = typeof MutationObserver < "u", ka = (
99
99
  /** @class */
100
100
  function() {
101
101
  function e() {
102
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Na(this.refresh.bind(this), _a);
102
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = _a(this.refresh.bind(this), Ia);
103
103
  }
104
104
  return e.prototype.addObserver = function(n) {
105
105
  ~this.observers_.indexOf(n) || this.observers_.push(n), this.connected_ || this.connect_();
@@ -117,16 +117,16 @@ var _a = 20, Ia = ["top", "right", "bottom", "left", "width", "height", "size",
117
117
  return t.broadcastActive();
118
118
  }), n.length > 0;
119
119
  }, e.prototype.connect_ = function() {
120
- !er || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), xa ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
120
+ !tr || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), Da ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
121
121
  attributes: !0,
122
122
  childList: !0,
123
123
  characterData: !0,
124
124
  subtree: !0
125
125
  })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
126
126
  }, e.prototype.disconnect_ = function() {
127
- !er || !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);
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 = Ia.some(function(o) {
129
+ var t = n.propertyName, r = t === void 0 ? "" : t, a = xa.some(function(o) {
130
130
  return !!~r.indexOf(o);
131
131
  });
132
132
  a && this.refresh();
@@ -134,7 +134,7 @@ var _a = 20, Ia = ["top", "right", "bottom", "left", "width", "height", "size",
134
134
  return this.instance_ || (this.instance_ = new e()), this.instance_;
135
135
  }, e.instance_ = null, e;
136
136
  }()
137
- ), Ur = function(e, n) {
137
+ ), jr = function(e, n) {
138
138
  for (var t = 0, r = Object.keys(n); t < r.length; t++) {
139
139
  var a = r[t];
140
140
  Object.defineProperty(e, a, {
@@ -148,11 +148,11 @@ var _a = 20, Ia = ["top", "right", "bottom", "left", "width", "height", "size",
148
148
  }, ln = function(e) {
149
149
  var n = e && e.ownerDocument && e.ownerDocument.defaultView;
150
150
  return n || Kn;
151
- }, jr = zn(0, 0, 0, 0);
151
+ }, qr = Vn(0, 0, 0, 0);
152
152
  function Tn(e) {
153
153
  return parseFloat(e) || 0;
154
154
  }
155
- function Cr(e) {
155
+ function wr(e) {
156
156
  for (var n = [], t = 1; t < arguments.length; t++)
157
157
  n[t - 1] = arguments[t];
158
158
  return n.reduce(function(r, a) {
@@ -167,37 +167,37 @@ function Oa(e) {
167
167
  }
168
168
  return t;
169
169
  }
170
- function ka(e) {
170
+ function Ka(e) {
171
171
  var n = e.getBBox();
172
- return zn(0, 0, n.width, n.height);
172
+ return Vn(0, 0, n.width, n.height);
173
173
  }
174
- function Ka(e) {
174
+ function Ta(e) {
175
175
  var n = e.clientWidth, t = e.clientHeight;
176
176
  if (!n && !t)
177
- return jr;
177
+ return qr;
178
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);
179
- if (r.boxSizing === "border-box" && (Math.round(l + o) !== n && (l -= Cr(r, "left", "right") + o), Math.round(u + s) !== t && (u -= Cr(r, "top", "bottom") + s)), !La(e)) {
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 zn(a.left, a.top, l, u);
183
+ return Vn(a.left, a.top, l, u);
184
184
  }
185
- var Ta = /* @__PURE__ */ function() {
185
+ var La = /* @__PURE__ */ function() {
186
186
  return typeof SVGGraphicsElement < "u" ? function(e) {
187
187
  return e instanceof ln(e).SVGGraphicsElement;
188
188
  } : function(e) {
189
189
  return e instanceof ln(e).SVGElement && typeof e.getBBox == "function";
190
190
  };
191
191
  }();
192
- function La(e) {
193
- return e === ln(e).document.documentElement;
194
- }
195
192
  function Aa(e) {
196
- return er ? Ta(e) ? ka(e) : Ka(e) : jr;
193
+ return e === ln(e).document.documentElement;
197
194
  }
198
195
  function $a(e) {
196
+ return tr ? La(e) ? Ka(e) : Ta(e) : qr;
197
+ }
198
+ function za(e) {
199
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);
200
- return Ur(s, {
200
+ return jr(s, {
201
201
  x: n,
202
202
  y: t,
203
203
  width: r,
@@ -208,37 +208,37 @@ function $a(e) {
208
208
  left: n
209
209
  }), s;
210
210
  }
211
- function zn(e, n, t, r) {
211
+ function Vn(e, n, t, r) {
212
212
  return { x: e, y: n, width: t, height: r };
213
213
  }
214
- var za = (
214
+ var Va = (
215
215
  /** @class */
216
216
  function() {
217
217
  function e(n) {
218
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = zn(0, 0, 0, 0), this.target = n;
218
+ this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = Vn(0, 0, 0, 0), this.target = n;
219
219
  }
220
220
  return e.prototype.isActive = function() {
221
- var n = Aa(this.target);
221
+ var n = $a(this.target);
222
222
  return this.contentRect_ = n, n.width !== this.broadcastWidth || n.height !== this.broadcastHeight;
223
223
  }, e.prototype.broadcastRect = function() {
224
224
  var n = this.contentRect_;
225
225
  return this.broadcastWidth = n.width, this.broadcastHeight = n.height, n;
226
226
  }, e;
227
227
  }()
228
- ), Va = (
228
+ ), Wa = (
229
229
  /** @class */
230
230
  /* @__PURE__ */ function() {
231
231
  function e(n, t) {
232
- var r = $a(t);
233
- Ur(this, { target: n, contentRect: r });
232
+ var r = za(t);
233
+ jr(this, { target: n, contentRect: r });
234
234
  }
235
235
  return e;
236
236
  }()
237
- ), Wa = (
237
+ ), Fa = (
238
238
  /** @class */
239
239
  function() {
240
240
  function e(n, t, r) {
241
- if (this.activeObservations_ = [], this.observations_ = new Br(), typeof n != "function")
241
+ if (this.activeObservations_ = [], this.observations_ = new Ur(), typeof n != "function")
242
242
  throw new TypeError("The callback provided as parameter 1 is not a function.");
243
243
  this.callback_ = n, this.controller_ = t, this.callbackCtx_ = r;
244
244
  }
@@ -249,7 +249,7 @@ var za = (
249
249
  if (!(n instanceof ln(n).Element))
250
250
  throw new TypeError('parameter 1 is not of type "Element".');
251
251
  var t = this.observations_;
252
- t.has(n) || (t.set(n, new za(n)), this.controller_.addObserver(this), this.controller_.refresh());
252
+ t.has(n) || (t.set(n, new Va(n)), this.controller_.addObserver(this), this.controller_.refresh());
253
253
  }
254
254
  }, e.prototype.unobserve = function(n) {
255
255
  if (!arguments.length)
@@ -270,7 +270,7 @@ var za = (
270
270
  }, e.prototype.broadcastActive = function() {
271
271
  if (this.hasActive()) {
272
272
  var n = this.callbackCtx_, t = this.activeObservations_.map(function(r) {
273
- return new Va(r.target, r.broadcastRect());
273
+ return new Wa(r.target, r.broadcastRect());
274
274
  });
275
275
  this.callback_.call(n, t, n), this.clearActive();
276
276
  }
@@ -280,7 +280,7 @@ var za = (
280
280
  return this.activeObservations_.length > 0;
281
281
  }, e;
282
282
  }()
283
- ), Gr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Br(), qr = (
283
+ ), Gr = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new Ur(), Jr = (
284
284
  /** @class */
285
285
  /* @__PURE__ */ function() {
286
286
  function e(n) {
@@ -288,7 +288,7 @@ var za = (
288
288
  throw new TypeError("Cannot call a class as a function.");
289
289
  if (!arguments.length)
290
290
  throw new TypeError("1 argument required, but only 0 present.");
291
- var t = Da.getInstance(), r = new Wa(n, t, this);
291
+ var t = ka.getInstance(), r = new Fa(n, t, this);
292
292
  Gr.set(this, r);
293
293
  }
294
294
  return e;
@@ -299,15 +299,15 @@ var za = (
299
299
  "unobserve",
300
300
  "disconnect"
301
301
  ].forEach(function(e) {
302
- qr.prototype[e] = function() {
302
+ Jr.prototype[e] = function() {
303
303
  var n;
304
304
  return (n = Gr.get(this))[e].apply(n, arguments);
305
305
  };
306
306
  });
307
- var Fa = function() {
308
- return typeof Kn.ResizeObserver < "u" ? Kn.ResizeObserver : qr;
307
+ var Ha = function() {
308
+ return typeof Kn.ResizeObserver < "u" ? Kn.ResizeObserver : Jr;
309
309
  }(), wt = /* @__PURE__ */ new Map();
310
- function Jr(e) {
310
+ function Zr(e) {
311
311
  e.forEach(function(n) {
312
312
  var t, r = n.target;
313
313
  (t = wt.get(r)) === null || t === void 0 || t.forEach(function(a) {
@@ -315,91 +315,91 @@ function Jr(e) {
315
315
  });
316
316
  });
317
317
  }
318
- var Zr = new Fa(Jr);
318
+ var Qr = new Ha(Zr);
319
319
  process.env.NODE_ENV;
320
320
  process.env.NODE_ENV;
321
- function Ha(e, n) {
322
- wt.has(e) || (wt.set(e, /* @__PURE__ */ new Set()), Zr.observe(e)), wt.get(e).add(n);
323
- }
324
321
  function Ba(e, n) {
325
- wt.has(e) && (wt.get(e).delete(n), wt.get(e).size || (Zr.unobserve(e), wt.delete(e)));
322
+ wt.has(e) || (wt.set(e, /* @__PURE__ */ new Set()), Qr.observe(e)), wt.get(e).add(n);
326
323
  }
327
- var Ua = /* @__PURE__ */ function(e) {
328
- Kr(t, e);
324
+ function Ua(e, n) {
325
+ wt.has(e) && (wt.get(e).delete(n), wt.get(e).size || (Qr.unobserve(e), wt.delete(e)));
326
+ }
327
+ var ja = /* @__PURE__ */ function(e) {
328
+ Tr(t, e);
329
329
  var n = Lr(t);
330
330
  function t() {
331
- return Tr(this, t), n.apply(this, arguments);
331
+ return Ar(this, t), n.apply(this, arguments);
332
332
  }
333
- return Ar(t, [{
333
+ return $r(t, [{
334
334
  key: "render",
335
335
  value: function() {
336
336
  return this.props.children;
337
337
  }
338
338
  }]), t;
339
339
  }(i.Component);
340
- function ja(e, n) {
341
- var t = e.children, r = e.disabled, a = i.useRef(null), o = i.useRef(null), s = i.useContext(Xn), l = typeof t == "function", u = l ? t(a) : t, c = i.useRef({
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({
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 ? u.ref : null, d = lr(f, a), m = function() {
346
+ }), b = !l && /* @__PURE__ */ i.isValidElement(u) && $n(u), f = b ? zn(u) : null, d = ur(f, a), m = function() {
347
347
  var M;
348
348
  return Gn(a.current) || // Support `nativeElement` format
349
- (a.current && $r(a.current) === "object" ? Gn((M = a.current) === null || M === void 0 ? void 0 : M.nativeElement) : null) || Gn(o.current);
349
+ (a.current && zr(a.current) === "object" ? Gn((M = a.current) === null || M === void 0 ? void 0 : M.nativeElement) : null) || Gn(o.current);
350
350
  };
351
351
  i.useImperativeHandle(n, function() {
352
352
  return m();
353
353
  });
354
- var g = i.useRef(e);
355
- g.current = e;
356
- var E = i.useCallback(function(h) {
357
- var M = g.current, S = M.onResize, y = M.data, w = h.getBoundingClientRect(), C = w.width, v = w.height, N = h.offsetWidth, k = h.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 !== k) {
354
+ var h = i.useRef(e);
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) {
359
359
  var $ = {
360
360
  width: D,
361
361
  height: H,
362
362
  offsetWidth: N,
363
- offsetHeight: k
363
+ offsetHeight: O
364
364
  };
365
365
  c.current = $;
366
- var z = N === Math.round(C) ? C : N, L = k === Math.round(v) ? v : k, j = T(T({}, $), {}, {
366
+ var z = N === Math.round(C) ? C : N, L = O === Math.round(v) ? v : O, j = T(T({}, $), {}, {
367
367
  offsetWidth: z,
368
368
  offsetHeight: L
369
369
  });
370
- s == null || s(j, h, y), S && Promise.resolve().then(function() {
371
- S(j, h);
370
+ s == null || s(j, g, y), S && Promise.resolve().then(function() {
371
+ S(j, g);
372
372
  });
373
373
  }
374
374
  }, []);
375
375
  return i.useEffect(function() {
376
- var h = m();
377
- return h && !r && Ha(h, E), function() {
378
- return Ba(h, E);
376
+ var g = m();
377
+ return g && !r && Ba(g, E), function() {
378
+ return Ua(g, E);
379
379
  };
380
- }, [a.current, r]), /* @__PURE__ */ i.createElement(Ua, {
380
+ }, [a.current, r]), /* @__PURE__ */ i.createElement(ja, {
381
381
  ref: o
382
382
  }, b ? /* @__PURE__ */ i.cloneElement(u, {
383
383
  ref: d
384
384
  }) : u);
385
385
  }
386
- var Qr = /* @__PURE__ */ i.forwardRef(ja);
387
- process.env.NODE_ENV !== "production" && (Qr.displayName = "SingleObserver");
386
+ var Yr = /* @__PURE__ */ i.forwardRef(qa);
387
+ process.env.NODE_ENV !== "production" && (Yr.displayName = "SingleObserver");
388
388
  var Ga = "rc-observer-key";
389
- function qa(e, n) {
390
- var t = e.children, r = typeof t == "function" ? [t] : zr(t);
391
- return process.env.NODE_ENV !== "production" && (r.length > 1 ? Jn(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : r.length === 0 && Jn(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), r.map(function(a, o) {
389
+ function Ja(e, n) {
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
392
  var s = (a == null ? void 0 : a.key) || "".concat(Ga, "-").concat(o);
393
- return /* @__PURE__ */ i.createElement(Qr, ne({}, e, {
393
+ return /* @__PURE__ */ i.createElement(Yr, ne({}, e, {
394
394
  key: s,
395
395
  ref: o === 0 ? n : void 0
396
396
  }), a);
397
397
  });
398
398
  }
399
- var cn = /* @__PURE__ */ i.forwardRef(qa);
399
+ var cn = /* @__PURE__ */ i.forwardRef(Ja);
400
400
  process.env.NODE_ENV !== "production" && (cn.displayName = "ResizeObserver");
401
- cn.Collection = Ea;
402
- const Ja = new Lt("antSlideUpIn", {
401
+ cn.Collection = Sa;
402
+ const Za = new Lt("antSlideUpIn", {
403
403
  "0%": {
404
404
  transform: "scaleY(0.8)",
405
405
  transformOrigin: "0% 0%",
@@ -410,7 +410,7 @@ const Ja = new Lt("antSlideUpIn", {
410
410
  transformOrigin: "0% 0%",
411
411
  opacity: 1
412
412
  }
413
- }), Za = new Lt("antSlideUpOut", {
413
+ }), Qa = new Lt("antSlideUpOut", {
414
414
  "0%": {
415
415
  transform: "scaleY(1)",
416
416
  transformOrigin: "0% 0%",
@@ -421,7 +421,7 @@ const Ja = new Lt("antSlideUpIn", {
421
421
  transformOrigin: "0% 0%",
422
422
  opacity: 0
423
423
  }
424
- }), Qa = new Lt("antSlideDownIn", {
424
+ }), Ya = new Lt("antSlideDownIn", {
425
425
  "0%": {
426
426
  transform: "scaleY(0.8)",
427
427
  transformOrigin: "100% 100%",
@@ -432,7 +432,7 @@ const Ja = new Lt("antSlideUpIn", {
432
432
  transformOrigin: "100% 100%",
433
433
  opacity: 1
434
434
  }
435
- }), Ya = new Lt("antSlideDownOut", {
435
+ }), Xa = new Lt("antSlideDownOut", {
436
436
  "0%": {
437
437
  transform: "scaleY(1)",
438
438
  transformOrigin: "100% 100%",
@@ -443,7 +443,7 @@ const Ja = new Lt("antSlideUpIn", {
443
443
  transformOrigin: "100% 100%",
444
444
  opacity: 0
445
445
  }
446
- }), Xa = new Lt("antSlideLeftIn", {
446
+ }), ei = new Lt("antSlideLeftIn", {
447
447
  "0%": {
448
448
  transform: "scaleX(0.8)",
449
449
  transformOrigin: "0% 0%",
@@ -454,7 +454,7 @@ const Ja = new Lt("antSlideUpIn", {
454
454
  transformOrigin: "0% 0%",
455
455
  opacity: 1
456
456
  }
457
- }), ei = new Lt("antSlideLeftOut", {
457
+ }), ti = new Lt("antSlideLeftOut", {
458
458
  "0%": {
459
459
  transform: "scaleX(1)",
460
460
  transformOrigin: "0% 0%",
@@ -465,7 +465,7 @@ const Ja = new Lt("antSlideUpIn", {
465
465
  transformOrigin: "0% 0%",
466
466
  opacity: 0
467
467
  }
468
- }), ti = new Lt("antSlideRightIn", {
468
+ }), ni = new Lt("antSlideRightIn", {
469
469
  "0%": {
470
470
  transform: "scaleX(0.8)",
471
471
  transformOrigin: "100% 0%",
@@ -476,7 +476,7 @@ const Ja = new Lt("antSlideUpIn", {
476
476
  transformOrigin: "100% 0%",
477
477
  opacity: 1
478
478
  }
479
- }), ni = new Lt("antSlideRightOut", {
479
+ }), ri = new Lt("antSlideRightOut", {
480
480
  "0%": {
481
481
  transform: "scaleX(1)",
482
482
  transformOrigin: "100% 0%",
@@ -487,31 +487,31 @@ const Ja = new Lt("antSlideUpIn", {
487
487
  transformOrigin: "100% 0%",
488
488
  opacity: 0
489
489
  }
490
- }), ri = {
490
+ }), ai = {
491
491
  "slide-up": {
492
- inKeyframes: Ja,
493
- outKeyframes: Za
492
+ inKeyframes: Za,
493
+ outKeyframes: Qa
494
494
  },
495
495
  "slide-down": {
496
- inKeyframes: Qa,
497
- outKeyframes: Ya
496
+ inKeyframes: Ya,
497
+ outKeyframes: Xa
498
498
  },
499
499
  "slide-left": {
500
- inKeyframes: Xa,
501
- outKeyframes: ei
500
+ inKeyframes: ei,
501
+ outKeyframes: ti
502
502
  },
503
503
  "slide-right": {
504
- inKeyframes: ti,
505
- outKeyframes: ni
504
+ inKeyframes: ni,
505
+ outKeyframes: ri
506
506
  }
507
- }, Mo = (e, n) => {
507
+ }, Ro = (e, n) => {
508
508
  const {
509
509
  antCls: t
510
510
  } = e, r = `${t}-${n}`, {
511
511
  inKeyframes: a,
512
512
  outKeyframes: o
513
- } = ri[n];
514
- return [ya(r, a, o, e.motionDurationMid), {
513
+ } = ai[n];
514
+ return [ba(r, a, o, e.motionDurationMid), {
515
515
  [`
516
516
  ${r}-enter,
517
517
  ${r}-appear
@@ -528,36 +528,38 @@ const Ja = new Lt("antSlideUpIn", {
528
528
  animationTimingFunction: e.motionEaseInQuint
529
529
  }
530
530
  }];
531
- }, ai = function() {
531
+ }, ii = function() {
532
532
  if (typeof navigator > "u" || typeof window > "u")
533
533
  return !1;
534
534
  var e = navigator.userAgent || navigator.vendor || window.opera;
535
535
  return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substr(0, 4));
536
536
  };
537
- var ii = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], rn = void 0;
538
- function oi(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, g = e.order, E = e.component, h = E === void 0 ? "div" : E, M = ke(e, ii), S = s && !m;
540
- function y(k) {
541
- u(c, k);
537
+ var oi = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], rn = void 0;
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;
540
+ function y(O) {
541
+ u(c, O);
542
542
  }
543
543
  i.useEffect(function() {
544
544
  return function() {
545
545
  y(null);
546
546
  };
547
547
  }, []);
548
- var w = o && a !== rn ? o(a) : d, C;
548
+ var w = o && a !== rn ? o(a, {
549
+ index: h
550
+ }) : d, C;
549
551
  r || (C = {
550
552
  opacity: S ? 0 : 1,
551
553
  height: S ? 0 : rn,
552
554
  overflowY: S ? "hidden" : rn,
553
- order: s ? g : rn,
555
+ order: s ? h : rn,
554
556
  pointerEvents: S ? "none" : rn,
555
557
  position: S ? "absolute" : rn
556
558
  });
557
559
  var v = {};
558
560
  S && (v["aria-hidden"] = !0);
559
- var N = /* @__PURE__ */ i.createElement(h, ne({
560
- className: Ke(!r && t, b),
561
+ var N = /* @__PURE__ */ i.createElement(g, ne({
562
+ className: Oe(!r && t, b),
561
563
  style: T(T({}, C), f)
562
564
  }, v, M, {
563
565
  ref: n
@@ -570,9 +572,9 @@ function oi(e, n) {
570
572
  disabled: l
571
573
  }, N)), N;
572
574
  }
573
- var wn = /* @__PURE__ */ i.forwardRef(oi);
575
+ var wn = /* @__PURE__ */ i.forwardRef(si);
574
576
  wn.displayName = "Item";
575
- function si(e) {
577
+ function li(e) {
576
578
  if (typeof MessageChannel > "u")
577
579
  Ht(e);
578
580
  else {
@@ -582,10 +584,10 @@ function si(e) {
582
584
  }, n.port2.postMessage(void 0);
583
585
  }
584
586
  }
585
- function li() {
587
+ function ui() {
586
588
  var e = i.useRef(null), n = function(r) {
587
- e.current || (e.current = [], si(function() {
588
- Hr.unstable_batchedUpdates(function() {
589
+ e.current || (e.current = [], li(function() {
590
+ Br.unstable_batchedUpdates(function() {
589
591
  e.current.forEach(function(a) {
590
592
  a();
591
593
  }), e.current = null;
@@ -595,55 +597,55 @@ function li() {
595
597
  return n;
596
598
  }
597
599
  function gn(e, n) {
598
- var t = i.useState(n), r = O(t, 2), a = r[0], o = r[1], s = Kt(function(l) {
600
+ var t = i.useState(n), r = k(t, 2), a = r[0], o = r[1], s = Kt(function(l) {
599
601
  e(function() {
600
602
  o(l);
601
603
  });
602
604
  });
603
605
  return [a, s];
604
606
  }
605
- var Ln = /* @__PURE__ */ qe.createContext(null), ui = ["component"], ci = ["className"], fi = ["className"], vi = function(n, t) {
607
+ var Ln = /* @__PURE__ */ Ge.createContext(null), ci = ["component"], fi = ["className"], vi = ["className"], di = function(n, t) {
606
608
  var r = i.useContext(Ln);
607
609
  if (!r) {
608
- var a = n.component, o = a === void 0 ? "div" : a, s = ke(n, ui);
610
+ var a = n.component, o = a === void 0 ? "div" : a, s = ke(n, ci);
609
611
  return /* @__PURE__ */ i.createElement(o, ne({}, s, {
610
612
  ref: t
611
613
  }));
612
614
  }
613
- var l = r.className, u = ke(r, ci), c = n.className, b = ke(n, fi);
615
+ var l = r.className, u = ke(r, fi), c = n.className, b = ke(n, vi);
614
616
  return /* @__PURE__ */ i.createElement(Ln.Provider, {
615
617
  value: null
616
618
  }, /* @__PURE__ */ i.createElement(wn, ne({
617
619
  ref: t,
618
- className: Ke(l, c)
620
+ className: Oe(l, c)
619
621
  }, u, b)));
620
- }, Yr = /* @__PURE__ */ i.forwardRef(vi);
621
- Yr.displayName = "RawItem";
622
- var di = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], Xr = "responsive", ea = "invalidate";
623
- function mi(e) {
622
+ }, Xr = /* @__PURE__ */ i.forwardRef(di);
623
+ Xr.displayName = "RawItem";
624
+ var mi = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], ea = "responsive", ta = "invalidate";
625
+ function hi(e) {
624
626
  return "+ ".concat(e.length, " ...");
625
627
  }
626
- function hi(e, n) {
627
- 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, g = e.maxCount, E = e.renderRest, h = e.renderRawRest, M = e.suffix, S = e.component, y = S === void 0 ? "div" : S, w = e.itemComponent, C = e.onVisibleChange, v = ke(e, di), N = f === "full", k = li(), D = gn(k, null), H = O(D, 2), $ = H[0], z = H[1], L = $ || 0, j = gn(k, /* @__PURE__ */ new Map()), Z = O(j, 2), G = Z[0], Q = Z[1], V = gn(k, 0), A = O(V, 2), x = A[0], we = A[1], le = gn(k, 0), q = O(le, 2), K = q[0], B = q[1], re = gn(k, 0), ye = O(re, 2), W = ye[0], Y = ye[1], ae = qn(null), be = O(ae, 2), ie = be[0], Pe = be[1], Me = qn(null), oe = O(Me, 2), Be = oe[0], Ue = oe[1], ue = i.useMemo(function() {
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() {
628
630
  return Be === null && N ? Number.MAX_SAFE_INTEGER : Be || 0;
629
- }, [Be, $]), Ne = qn(!1), We = O(Ne, 2), de = We[0], ht = We[1], F = "".concat(r, "-item"), Je = Math.max(x, K), pe = g === Xr, J = o.length && pe, Fe = g === ea, Ae = J || typeof g == "number" && o.length > g, $e = Yn(function() {
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() {
630
632
  var P = o;
631
- return J ? $ === null && N ? P = o : P = o.slice(0, Math.min(o.length, L / b)) : typeof g == "number" && (P = o.slice(0, g)), P;
632
- }, [o, b, $, g, J]), Ze = Yn(function() {
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() {
633
635
  return J ? o.slice(ue + 1) : o.slice($e.length);
634
- }, [o, $e, J, ue]), _e = Tt(function(P, R) {
636
+ }, [o, $e, J, ue]), Ie = Tt(function(P, R) {
635
637
  var I;
636
638
  return typeof u == "function" ? u(P) : (I = u && (P == null ? void 0 : P[u])) !== null && I !== void 0 ? I : R;
637
639
  }, [u]), Ce = Tt(s || function(P) {
638
640
  return P;
639
641
  }, [s]);
640
642
  function ce(P, R, I) {
641
- Be === P && (R === void 0 || R === ie) || (Ue(P), I || (ht(P < o.length - 1), C == null || C(P)), R !== void 0 && Pe(R));
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
644
  }
643
645
  function Re(P, R) {
644
646
  z(R.clientWidth);
645
647
  }
646
- function Ie(P, R) {
648
+ function xe(P, R) {
647
649
  Q(function(I) {
648
650
  var se = new Map(I);
649
651
  return R === null ? se.delete(P) : se.set(P, R), se;
@@ -652,13 +654,13 @@ function hi(e, n) {
652
654
  function X(P, R) {
653
655
  B(R), we(K);
654
656
  }
655
- function Te(P, R) {
657
+ function Ke(P, R) {
656
658
  Y(R);
657
659
  }
658
660
  function ze(P) {
659
- return G.get(_e($e[P], P));
661
+ return q.get(Ie($e[P], P));
660
662
  }
661
- ot(function() {
663
+ it(function() {
662
664
  if (L && typeof Je == "number" && $e) {
663
665
  var P = W, R = $e.length, I = R - 1;
664
666
  if (!R) {
@@ -681,81 +683,74 @@ function hi(e, n) {
681
683
  break;
682
684
  }
683
685
  }
684
- M && ze(0) + W > L && Pe(null);
686
+ M && ze(0) + W > L && Ne(null);
685
687
  }
686
- }, [L, G, K, W, _e, $e]);
687
- var Et = de && !!Ze.length, ut = {};
688
- ie !== null && J && (ut = {
688
+ }, [L, q, K, W, Ie, $e]);
689
+ var Et = ve && !!Ze.length, lt = {};
690
+ ie !== null && J && (lt = {
689
691
  position: "absolute",
690
692
  left: ie,
691
693
  top: 0
692
694
  });
693
- var at = {
695
+ var rt = {
694
696
  prefixCls: F,
695
697
  responsive: J,
696
698
  component: w,
697
699
  invalidate: Fe
698
700
  }, At = l ? function(P, R) {
699
- var I = _e(P, R);
701
+ var I = Ie(P, R);
700
702
  return /* @__PURE__ */ i.createElement(Ln.Provider, {
701
703
  key: I,
702
- value: T(T({}, at), {}, {
704
+ value: T(T({}, rt), {}, {
703
705
  order: R,
704
706
  item: P,
705
707
  itemKey: I,
706
- registerSize: Ie,
708
+ registerSize: xe,
707
709
  display: R <= ue
708
710
  })
709
711
  }, l(P, R));
710
712
  } : function(P, R) {
711
- var I = _e(P, R);
712
- return /* @__PURE__ */ i.createElement(wn, ne({}, at, {
713
+ var I = Ie(P, R);
714
+ return /* @__PURE__ */ i.createElement(wn, ne({}, rt, {
713
715
  order: R,
714
716
  key: I,
715
717
  item: P,
716
718
  renderItem: Ce,
717
719
  itemKey: I,
718
- registerSize: Ie,
720
+ registerSize: xe,
719
721
  display: R <= ue
720
722
  }));
721
- }, xe, De = {
723
+ }, Te = {
722
724
  order: Et ? ue : Number.MAX_SAFE_INTEGER,
723
725
  className: "".concat(F, "-rest"),
724
726
  registerSize: X,
725
727
  display: Et
726
- };
727
- if (h)
728
- h && (xe = /* @__PURE__ */ i.createElement(Ln.Provider, {
729
- value: T(T({}, at), De)
730
- }, h(Ze)));
731
- else {
732
- var Ye = E || mi;
733
- xe = /* @__PURE__ */ i.createElement(wn, ne({}, at, De), typeof Ye == "function" ? Ye(Ze) : Ye);
734
- }
735
- var fe = /* @__PURE__ */ i.createElement(y, ne({
736
- className: Ke(!Fe && r, m),
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),
737
732
  style: d,
738
733
  ref: n
739
- }, v), $e.map(At), Ae ? xe : null, M && /* @__PURE__ */ i.createElement(wn, ne({}, at, {
734
+ }, v), $e.map(At), Ae ? ut : null, M && /* @__PURE__ */ i.createElement(wn, ne({}, rt, {
740
735
  responsive: pe,
741
736
  responsiveDisabled: !J,
742
737
  order: ue,
743
738
  className: "".concat(F, "-suffix"),
744
- registerSize: Te,
739
+ registerSize: Ke,
745
740
  display: !0,
746
- style: ut
741
+ style: lt
747
742
  }), M));
748
- return pe && (fe = /* @__PURE__ */ i.createElement(cn, {
743
+ return pe ? /* @__PURE__ */ i.createElement(cn, {
749
744
  onResize: Re,
750
745
  disabled: !J
751
- }, fe)), fe;
746
+ }, de) : de;
752
747
  }
753
- var Mt = /* @__PURE__ */ i.forwardRef(hi);
748
+ var Mt = /* @__PURE__ */ i.forwardRef(gi);
754
749
  Mt.displayName = "Overflow";
755
- Mt.Item = Yr;
756
- Mt.RESPONSIVE = Xr;
757
- Mt.INVALIDATE = ea;
758
- function gi(e) {
750
+ Mt.Item = Xr;
751
+ Mt.RESPONSIVE = ea;
752
+ Mt.INVALIDATE = ta;
753
+ function yi(e) {
759
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();
760
755
  if (!t || !t.points)
761
756
  return null;
@@ -763,18 +758,18 @@ function gi(e) {
763
758
  position: "absolute"
764
759
  };
765
760
  if (t.autoArrow !== !1) {
766
- var g = t.points[0], E = t.points[1], h = g[0], M = g[1], S = E[0], y = E[1];
767
- h === S || !["t", "b"].includes(h) ? m.top = f : h === "t" ? m.top = 0 : m.bottom = 0, M === y || !["l", "r"].includes(M) ? m.left = c : M === "l" ? m.left = 0 : m.right = 0;
761
+ var h = t.points[0], E = t.points[1], g = h[0], M = h[1], S = E[0], y = E[1];
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;
768
763
  }
769
764
  return /* @__PURE__ */ i.createElement("div", {
770
765
  ref: d,
771
- className: Ke("".concat(n, "-arrow"), s),
766
+ className: Oe("".concat(n, "-arrow"), s),
772
767
  style: m
773
768
  }, l);
774
769
  }
775
- function yi(e) {
770
+ function bi(e) {
776
771
  var n = e.prefixCls, t = e.open, r = e.zIndex, a = e.mask, o = e.motion;
777
- return a ? /* @__PURE__ */ i.createElement(ur, ne({}, o, {
772
+ return a ? /* @__PURE__ */ i.createElement(cr, ne({}, o, {
778
773
  motionAppear: !0,
779
774
  visible: t,
780
775
  removeOnLeave: !0
@@ -784,22 +779,22 @@ function yi(e) {
784
779
  style: {
785
780
  zIndex: r
786
781
  },
787
- className: Ke("".concat(n, "-mask"), l)
782
+ className: Oe("".concat(n, "-mask"), l)
788
783
  });
789
784
  }) : null;
790
785
  }
791
- var ta = /* @__PURE__ */ i.memo(function(e) {
786
+ var na = /* @__PURE__ */ i.memo(function(e) {
792
787
  var n = e.children;
793
788
  return n;
794
789
  }, function(e, n) {
795
790
  return n.cache;
796
791
  });
797
- process.env.NODE_ENV !== "production" && (ta.displayName = "PopupContent");
798
- var na = /* @__PURE__ */ i.forwardRef(function(e, n) {
799
- 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, g = e.arrowPos, E = e.align, h = e.motion, M = e.maskMotion, S = e.forceRender, y = e.getPopupContainer, w = e.autoDestroy, C = e.portal, v = e.zIndex, N = e.onMouseEnter, k = e.onMouseLeave, D = e.onPointerEnter, H = e.onPointerDownCapture, $ = e.ready, z = e.offsetX, L = e.offsetY, j = e.offsetR, Z = e.offsetB, G = e.onAlign, Q = e.onPrepare, V = e.stretch, A = e.targetWidth, x = e.targetHeight, we = typeof t == "function" ? t() : t, le = u || c, q = (y == null ? void 0 : y.length) > 0, K = i.useState(!y || !q), B = O(K, 2), re = B[0], ye = B[1];
800
- if (ot(function() {
801
- !re && q && s && ye(!0);
802
- }, [re, q, s]), !re)
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];
795
+ if (it(function() {
796
+ !re && G && s && ye(!0);
797
+ }, [re, G, s]), !re)
803
798
  return null;
804
799
  var W = "auto", Y = {
805
800
  left: "-1000vw",
@@ -808,8 +803,8 @@ var na = /* @__PURE__ */ i.forwardRef(function(e, n) {
808
803
  bottom: W
809
804
  };
810
805
  if ($ || !u) {
811
- var ae, be = E.points, ie = E.dynamicInset || ((ae = E._experimental) === null || ae === void 0 ? void 0 : ae.dynamicInset), Pe = ie && be[0][1] === "r", Me = ie && be[0][0] === "b";
812
- Pe ? (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 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);
813
808
  }
814
809
  var oe = {};
815
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, {
@@ -818,92 +813,92 @@ var na = /* @__PURE__ */ i.forwardRef(function(e, n) {
818
813
  return y(s);
819
814
  },
820
815
  autoDestroy: w
821
- }, /* @__PURE__ */ i.createElement(yi, {
816
+ }, /* @__PURE__ */ i.createElement(bi, {
822
817
  prefixCls: a,
823
818
  open: u,
824
819
  zIndex: v,
825
820
  mask: d,
826
821
  motion: M
827
822
  }), /* @__PURE__ */ i.createElement(cn, {
828
- onResize: G,
823
+ onResize: q,
829
824
  disabled: !u
830
825
  }, function(Be) {
831
- return /* @__PURE__ */ i.createElement(ur, ne({
826
+ return /* @__PURE__ */ i.createElement(cr, ne({
832
827
  motionAppear: !0,
833
828
  motionEnter: !0,
834
829
  motionLeave: !0,
835
830
  removeOnLeave: !1,
836
831
  forceRender: S,
837
832
  leavedClassName: "".concat(a, "-hidden")
838
- }, h, {
833
+ }, g, {
839
834
  onAppearPrepare: Q,
840
835
  onEnterPrepare: Q,
841
836
  visible: u,
842
837
  onVisibleChanged: function(ue) {
843
- var Ne;
844
- h == null || (Ne = h.onVisibleChanged) === null || Ne === void 0 || Ne.call(h, ue), l(ue);
838
+ var _e;
839
+ g == null || (_e = g.onVisibleChanged) === null || _e === void 0 || _e.call(g, ue), l(ue);
845
840
  }
846
841
  }), function(Ue, ue) {
847
- var Ne = Ue.className, We = Ue.style, de = Ke(a, Ne, r);
842
+ var _e = Ue.className, We = Ue.style, ve = Oe(a, _e, r);
848
843
  return /* @__PURE__ */ i.createElement("div", {
849
- ref: cr(Be, n, ue),
850
- className: de,
844
+ ref: fr(Be, n, ue),
845
+ className: ve,
851
846
  style: T(T(T(T({
852
- "--arrow-x": "".concat(g.x || 0, "px"),
853
- "--arrow-y": "".concat(g.y || 0, "px")
847
+ "--arrow-x": "".concat(h.x || 0, "px"),
848
+ "--arrow-y": "".concat(h.y || 0, "px")
854
849
  }, Y), oe), We), {}, {
855
850
  boxSizing: "border-box",
856
851
  zIndex: v
857
852
  }, o),
858
853
  onMouseEnter: N,
859
- onMouseLeave: k,
854
+ onMouseLeave: O,
860
855
  onPointerEnter: D,
861
856
  onClick: f,
862
857
  onPointerDownCapture: H
863
- }, m && /* @__PURE__ */ i.createElement(gi, {
858
+ }, m && /* @__PURE__ */ i.createElement(yi, {
864
859
  prefixCls: a,
865
860
  arrow: m,
866
- arrowPos: g,
861
+ arrowPos: h,
867
862
  align: E
868
- }), /* @__PURE__ */ i.createElement(ta, {
863
+ }), /* @__PURE__ */ i.createElement(na, {
869
864
  cache: !u && !b
870
865
  }, we));
871
866
  });
872
867
  }));
873
868
  });
874
- process.env.NODE_ENV !== "production" && (na.displayName = "Popup");
875
- var ra = /* @__PURE__ */ i.forwardRef(function(e, n) {
869
+ process.env.NODE_ENV !== "production" && (ra.displayName = "Popup");
870
+ var aa = /* @__PURE__ */ i.forwardRef(function(e, n) {
876
871
  var t = e.children, r = e.getTriggerDOMNode, a = $n(t), o = i.useCallback(function(l) {
877
- ba(n, r ? r(l) : l);
878
- }, [r]), s = lr(o, t.ref);
872
+ pa(n, r ? r(l) : l);
873
+ }, [r]), s = ur(o, zn(t));
879
874
  return a ? /* @__PURE__ */ i.cloneElement(t, {
880
875
  ref: s
881
876
  }) : t;
882
877
  });
883
- process.env.NODE_ENV !== "production" && (ra.displayName = "TriggerWrapper");
884
- var wr = /* @__PURE__ */ i.createContext(null);
885
- function Mr(e) {
878
+ process.env.NODE_ENV !== "production" && (aa.displayName = "TriggerWrapper");
879
+ var Mr = /* @__PURE__ */ i.createContext(null);
880
+ function Rr(e) {
886
881
  return e ? Array.isArray(e) ? e : [e] : [];
887
882
  }
888
- function bi(e, n, t, r) {
883
+ function pi(e, n, t, r) {
889
884
  return i.useMemo(function() {
890
- var a = Mr(t ?? n), o = Mr(r ?? n), s = new Set(a), l = new Set(o);
885
+ var a = Rr(t ?? n), o = Rr(r ?? n), s = new Set(a), l = new Set(o);
891
886
  return e && (s.has("hover") && (s.delete("hover"), s.add("click")), l.has("hover") && (l.delete("hover"), l.add("click"))), [s, l];
892
887
  }, [e, n, t, r]);
893
888
  }
894
- function pi() {
889
+ function Ci() {
895
890
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], t = arguments.length > 2 ? arguments[2] : void 0;
896
891
  return t ? e[0] === n[0] : e[0] === n[0] && e[1] === n[1];
897
892
  }
898
- function Ci(e, n, t, r) {
893
+ function wi(e, n, t, r) {
899
894
  for (var a = t.points, o = Object.keys(e), s = 0; s < o.length; s += 1) {
900
895
  var l, u = o[s];
901
- if (pi((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, a, r))
902
897
  return "".concat(n, "-placement-").concat(u);
903
898
  }
904
899
  return "";
905
900
  }
906
- function Rr(e, n, t, r) {
901
+ function Er(e, n, t, r) {
907
902
  return n || (t ? {
908
903
  motionName: "".concat(e, "-").concat(t)
909
904
  } : r ? {
@@ -913,7 +908,7 @@ function Rr(e, n, t, r) {
913
908
  function En(e) {
914
909
  return e.ownerDocument.defaultView;
915
910
  }
916
- function tr(e) {
911
+ function nr(e) {
917
912
  for (var n = [], t = e == null ? void 0 : e.parentElement, r = ["hidden", "scroll", "clip", "auto"]; t; ) {
918
913
  var a = En(t).getComputedStyle(t), o = a.overflowX, s = a.overflowY, l = a.overflow;
919
914
  [o, s, l].some(function(u) {
@@ -929,29 +924,29 @@ function Mn(e) {
929
924
  function yn(e) {
930
925
  return Mn(parseFloat(e), 0);
931
926
  }
932
- function Er(e, n) {
927
+ function Sr(e, n) {
933
928
  var t = T({}, e);
934
929
  return (n || []).forEach(function(r) {
935
930
  if (!(r instanceof HTMLBodyElement || r instanceof HTMLHtmlElement)) {
936
- 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, g = r.offsetWidth, E = r.clientWidth, h = yn(l), M = yn(u), S = yn(c), y = yn(b), w = Mn(Math.round(f.width / g * 1e3) / 1e3), C = Mn(Math.round(f.height / d * 1e3) / 1e3), v = (g - E - S - y) * w, N = (d - m - h - M) * C, k = h * C, D = M * C, H = S * w, $ = y * w, z = 0, L = 0;
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;
937
932
  if (o === "clip") {
938
933
  var j = yn(s);
939
934
  z = j * w, L = j * C;
940
935
  }
941
- var Z = f.x + H - z, G = f.y + k - L, Q = Z + f.width + 2 * z - H - $ - v, V = G + f.height + 2 * L - k - D - N;
942
- t.left = Math.max(t.left, Z), t.top = Math.max(t.top, G), t.right = Math.min(t.right, Q), t.bottom = Math.min(t.bottom, V);
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;
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);
943
938
  }
944
939
  }), t;
945
940
  }
946
- function Sr(e) {
941
+ function Pr(e) {
947
942
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, t = "".concat(n), r = t.match(/^(.*)\%$/);
948
943
  return r ? e * (parseFloat(r[1]) / 100) : parseFloat(t);
949
944
  }
950
- function Pr(e, n) {
951
- var t = n || [], r = O(t, 2), a = r[0], o = r[1];
952
- return [Sr(e.width, a), Sr(e.height, o)];
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)];
953
948
  }
954
- function Nr() {
949
+ function _r() {
955
950
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
956
951
  return [e[0], e[1]];
957
952
  }
@@ -962,7 +957,7 @@ function an(e, n) {
962
957
  y: o
963
958
  };
964
959
  }
965
- function kt(e, n) {
960
+ function Ot(e, n) {
966
961
  var t = {
967
962
  t: "b",
968
963
  b: "t",
@@ -973,7 +968,7 @@ function kt(e, n) {
973
968
  return a === n ? t[r] || "c" : r;
974
969
  }).join("");
975
970
  }
976
- function wi(e, n, t, r, a, o, s) {
971
+ function Mi(e, n, t, r, a, o, s) {
977
972
  var l = i.useState({
978
973
  ready: !1,
979
974
  offsetX: 0,
@@ -985,21 +980,21 @@ function wi(e, n, t, r, a, o, s) {
985
980
  scaleX: 1,
986
981
  scaleY: 1,
987
982
  align: a[r] || {}
988
- }), u = O(l, 2), c = u[0], b = u[1], f = i.useRef(0), d = i.useMemo(function() {
989
- return n ? tr(n) : [];
990
- }, [n]), m = i.useRef({}), g = function() {
983
+ }), u = k(l, 2), c = u[0], b = u[1], f = i.useRef(0), d = i.useMemo(function() {
984
+ return n ? nr(n) : [];
985
+ }, [n]), m = i.useRef({}), h = function() {
991
986
  m.current = {};
992
987
  };
993
- e || g();
988
+ e || h();
994
989
  var E = Kt(function() {
995
990
  if (n && t && e) {
996
- let rt = function(nn, Dt) {
997
- var Ot = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Je, hn = K.x + nn, Nn = K.y + Dt, Hn = hn + Pe, Bn = Nn + ie, Un = Math.max(hn, Ot.left), p = Math.max(Nn, Ot.top), _ = Math.min(Hn, Ot.right), ve = Math.min(Bn, Ot.bottom);
998
- return Math.max(0, (_ - Un) * (ve - p));
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));
999
994
  }, Pn = function() {
1000
- He = K.y + I, vt = He + ie, Xe = K.x + R, Pt = Xe + Pe;
995
+ He = K.y + I, vt = He + ie, Ye = K.x + R, Pt = Ye + Ne;
1001
996
  };
1002
- var S, y, w, C, v = n, N = v.ownerDocument, k = En(v), D = k.getComputedStyle(v), H = D.width, $ = D.height, z = D.position, L = v.style.left, j = v.style.top, Z = v.style.right, G = 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), 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");
1003
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";
1004
999
  var x;
1005
1000
  if (Array.isArray(t))
@@ -1010,17 +1005,17 @@ function wi(e, n, t, r, a, o, s) {
1010
1005
  height: 0
1011
1006
  };
1012
1007
  else {
1013
- var we, le, q = t.getBoundingClientRect();
1014
- q.x = (we = q.x) !== null && we !== void 0 ? we : q.left, q.y = (le = q.y) !== null && le !== void 0 ? le : q.top, x = {
1015
- x: q.x,
1016
- y: q.y,
1017
- width: q.width,
1018
- height: q.height
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 = {
1010
+ x: G.x,
1011
+ y: G.y,
1012
+ width: G.width,
1013
+ height: G.height
1019
1014
  };
1020
1015
  }
1021
1016
  var K = v.getBoundingClientRect();
1022
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;
1023
- 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, Pe = K.width, Me = x.height, oe = x.width, Be = {
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 = {
1024
1019
  left: 0,
1025
1020
  top: 0,
1026
1021
  right: re,
@@ -1030,70 +1025,70 @@ function wi(e, n, t, r, a, o, s) {
1030
1025
  top: -ae,
1031
1026
  right: W - be,
1032
1027
  bottom: Y - ae
1033
- }, ue = V.htmlRegion, Ne = "visible", We = "visibleFirst";
1034
- ue !== "scroll" && ue !== We && (ue = Ne);
1035
- var de = ue === We, ht = Er(Ue, d), F = Er(Be, d), Je = ue === Ne ? F : ht, pe = de ? F : Je;
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;
1036
1031
  v.style.left = "auto", v.style.top = "auto", v.style.right = "0", v.style.bottom = "0";
1037
1032
  var J = v.getBoundingClientRect();
1038
- v.style.left = L, v.style.top = j, v.style.right = Z, v.style.bottom = G, v.style.overflow = Q, (C = v.parentElement) === null || C === void 0 || C.removeChild(A);
1039
- var Fe = Mn(Math.round(Pe / parseFloat(H) * 1e3) / 1e3), Ae = Mn(Math.round(ie / parseFloat($) * 1e3) / 1e3);
1040
- if (Fe === 0 || Ae === 0 || Zn(t) && !Vr(t))
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))
1041
1036
  return;
1042
- var $e = V.offset, Ze = V.targetOffset, _e = Pr(K, $e), Ce = O(_e, 2), ce = Ce[0], Re = Ce[1], Ie = Pr(x, Ze), X = O(Ie, 2), Te = X[0], ze = X[1];
1043
- x.x -= Te, x.y -= ze;
1044
- var Et = V.points || [], ut = O(Et, 2), at = ut[0], At = ut[1], xe = Nr(At), De = Nr(at), Ye = an(x, xe), fe = an(K, De), P = T({}, V), R = Ye.x - fe.x + ce, I = Ye.y - fe.y + Re, se = rt(R, I), he = rt(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 $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) {
1045
1040
  return typeof Dt == "boolean" ? Dt : Dt >= 0;
1046
- }, He, vt, Xe, Pt;
1041
+ }, He, vt, Ye, Pt;
1047
1042
  Pn();
1048
- var dt = gt(Ut), jt = De[0] === xe[0];
1049
- if (dt && De[0] === "t" && (vt > pe.bottom || m.current.bt)) {
1043
+ var dt = gt(Ut), jt = Se[0] === Te[0];
1044
+ if (dt && Se[0] === "t" && (vt > pe.bottom || m.current.bt)) {
1050
1045
  var Ee = I;
1051
1046
  jt ? Ee -= ie - Me : Ee = $t.y - Vt.y - Re;
1052
- var Gt = rt(R, Ee), fn = rt(R, Ee, F);
1047
+ var qt = nt(R, Ee), fn = nt(R, Ee, F);
1053
1048
  // Of course use larger one
1054
- Gt > se || Gt === se && (!de || // Choose recommend one
1055
- fn >= he) ? (m.current.bt = !0, I = Ee, Re = -Re, P.points = [kt(De, 0), kt(xe, 0)]) : m.current.bt = !1;
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;
1056
1051
  }
1057
- if (dt && De[0] === "b" && (He < pe.top || m.current.tb)) {
1052
+ if (dt && Se[0] === "b" && (He < pe.top || m.current.tb)) {
1058
1053
  var yt = I;
1059
1054
  jt ? yt += ie - Me : yt = zt.y - je.y - Re;
1060
- var qt = rt(R, yt), Jt = rt(R, yt, F);
1055
+ var Gt = nt(R, yt), Jt = nt(R, yt, F);
1061
1056
  // Of course use larger one
1062
- qt > se || qt === se && (!de || // Choose recommend one
1063
- Jt >= he) ? (m.current.tb = !0, I = yt, Re = -Re, P.points = [kt(De, 0), kt(xe, 0)]) : m.current.tb = !1;
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;
1064
1059
  }
1065
- var mt = gt(Bt), Nt = De[1] === xe[1];
1066
- if (mt && De[1] === "l" && (Pt > pe.right || m.current.rl)) {
1060
+ var mt = gt(Bt), Nt = Se[1] === Te[1];
1061
+ if (mt && Se[1] === "l" && (Pt > pe.right || m.current.rl)) {
1067
1062
  var bt = R;
1068
- Nt ? bt -= Pe - oe : bt = $t.x - Vt.x - ce;
1069
- var Zt = rt(bt, I), _t = rt(bt, I, F);
1063
+ Nt ? bt -= Ne - oe : bt = $t.x - Vt.x - ce;
1064
+ var Zt = nt(bt, I), _t = nt(bt, I, F);
1070
1065
  // Of course use larger one
1071
- Zt > se || Zt === se && (!de || // Choose recommend one
1072
- _t >= he) ? (m.current.rl = !0, R = bt, ce = -ce, P.points = [kt(De, 1), kt(xe, 1)]) : m.current.rl = !1;
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;
1073
1068
  }
1074
- if (mt && De[1] === "r" && (Xe < pe.left || m.current.lr)) {
1075
- var et = R;
1076
- Nt ? et += Pe - oe : et = zt.x - je.x - ce;
1077
- var pt = rt(et, I), Qt = rt(et, I, F);
1069
+ if (mt && Se[1] === "r" && (Ye < pe.left || m.current.lr)) {
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);
1078
1073
  // Of course use larger one
1079
- pt > se || pt === se && (!de || // Choose recommend one
1080
- Qt >= he) ? (m.current.lr = !0, R = et, ce = -ce, P.points = [kt(De, 1), kt(xe, 1)]) : m.current.lr = !1;
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;
1081
1076
  }
1082
1077
  Pn();
1083
- var tt = ft === !0 ? 0 : ft;
1084
- typeof tt == "number" && (Xe < F.left && (R -= Xe - F.left - ce, x.x + oe < F.left + tt && (R += x.x - F.left + oe - tt)), Pt > F.right && (R -= Pt - F.right - ce, x.x > F.right - tt && (R += x.x - F.right + tt)));
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)));
1085
1080
  var Qe = St === !0 ? 0 : St;
1086
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)));
1087
- var Ct = K.x + R, It = Ct + Pe, nt = K.y + I, vn = nt + ie, Yt = x.x, dn = Yt + oe, ee = x.y, U = ee + Me, te = Math.max(Ct, Yt), Le = Math.min(It, dn), Oe = (te + Le) / 2, xt = Oe - Ct, Wt = Math.max(nt, ee), Xt = Math.min(vn, U), en = (Wt + Xt) / 2, tn = en - nt;
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;
1088
1083
  s == null || s(n, P);
1089
- var it = J.right - K.x - (R + K.width), Ge = J.bottom - K.y - (I + K.height);
1090
- Fe === 1 && (R = Math.round(R), it = Math.round(it)), Ae === 1 && (I = Math.round(I), Ge = Math.round(Ge));
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));
1091
1086
  var mn = {
1092
1087
  ready: !0,
1093
1088
  offsetX: R / Fe,
1094
1089
  offsetY: I / Ae,
1095
- offsetR: it / Fe,
1096
- offsetB: Ge / Ae,
1090
+ offsetR: at / Fe,
1091
+ offsetB: qe / Ae,
1097
1092
  arrowX: xt / Fe,
1098
1093
  arrowY: tn / Ae,
1099
1094
  scaleX: Fe,
@@ -1102,7 +1097,7 @@ function wi(e, n, t, r, a, o, s) {
1102
1097
  };
1103
1098
  b(mn);
1104
1099
  }
1105
- }), h = function() {
1100
+ }), g = function() {
1106
1101
  f.current += 1;
1107
1102
  var y = f.current;
1108
1103
  Promise.resolve().then(function() {
@@ -1115,17 +1110,17 @@ function wi(e, n, t, r, a, o, s) {
1115
1110
  });
1116
1111
  });
1117
1112
  };
1118
- return ot(M, [r]), ot(function() {
1113
+ return it(M, [r]), it(function() {
1119
1114
  e || M();
1120
- }, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, h];
1115
+ }, [e]), [c.ready, c.offsetX, c.offsetY, c.offsetR, c.offsetB, c.arrowX, c.arrowY, c.scaleX, c.scaleY, c.align, g];
1121
1116
  }
1122
- function Mi(e, n, t, r, a) {
1123
- ot(function() {
1117
+ function Ri(e, n, t, r, a) {
1118
+ it(function() {
1124
1119
  if (e && n && t) {
1125
1120
  let f = function() {
1126
1121
  r(), a();
1127
1122
  };
1128
- var o = n, s = t, l = tr(o), u = tr(s), c = En(s), b = new Set([c].concat(Rt(l), Rt(u)));
1123
+ var o = n, s = t, l = nr(o), u = nr(s), c = En(s), b = new Set([c].concat(Rt(l), Rt(u)));
1129
1124
  return b.forEach(function(d) {
1130
1125
  d.addEventListener("scroll", f, {
1131
1126
  passive: !0
@@ -1140,7 +1135,7 @@ function Mi(e, n, t, r, a) {
1140
1135
  }
1141
1136
  }, [e, n, t]);
1142
1137
  }
1143
- function Ri(e, n, t, r, a, o, s, l) {
1138
+ function Ei(e, n, t, r, a, o, s, l) {
1144
1139
  var u = i.useRef(e);
1145
1140
  u.current = e;
1146
1141
  var c = i.useRef(!1);
@@ -1153,13 +1148,13 @@ function Ri(e, n, t, r, a, o, s, l) {
1153
1148
  u.current && !s(((C = w.composedPath) === null || C === void 0 || (C = C.call(w)) === null || C === void 0 ? void 0 : C[0]) || w.target) && !c.current && l(!1);
1154
1149
  }, m = En(r);
1155
1150
  m.addEventListener("pointerdown", f, !0), m.addEventListener("mousedown", d, !0), m.addEventListener("contextmenu", d, !0);
1156
- var g = Qn(t);
1157
- if (g && (g.addEventListener("mousedown", d, !0), g.addEventListener("contextmenu", d, !0)), process.env.NODE_ENV !== "production") {
1158
- var E, h, M = t == null || (E = t.getRootNode) === null || E === void 0 ? void 0 : E.call(t), S = (h = r.getRootNode) === null || h === void 0 ? void 0 : h.call(r);
1159
- Jn(M === S, "trigger element and popup element should in same shadow root.");
1151
+ var h = Yn(t);
1152
+ if (h && (h.addEventListener("mousedown", d, !0), h.addEventListener("contextmenu", d, !0)), process.env.NODE_ENV !== "production") {
1153
+ var E, g, M = t == null || (E = t.getRootNode) === null || E === void 0 ? void 0 : E.call(t), S = (g = r.getRootNode) === null || g === void 0 ? void 0 : g.call(r);
1154
+ Zn(M === S, "trigger element and popup element should in same shadow root.");
1160
1155
  }
1161
1156
  return function() {
1162
- m.removeEventListener("pointerdown", f, !0), m.removeEventListener("mousedown", d, !0), m.removeEventListener("contextmenu", d, !0), g && (g.removeEventListener("mousedown", d, !0), g.removeEventListener("contextmenu", d, !0));
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));
1163
1158
  };
1164
1159
  }
1165
1160
  }, [n, t, r, a, o]);
@@ -1168,187 +1163,187 @@ function Ri(e, n, t, r, a, o, s, l) {
1168
1163
  }
1169
1164
  return b;
1170
1165
  }
1171
- var Ei = ["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"];
1172
- function Si() {
1173
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Wr, n = /* @__PURE__ */ i.forwardRef(function(t, r) {
1174
- 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, g = t.afterPopupVisibleChange, E = t.mouseEnterDelay, h = t.mouseLeaveDelay, M = h === void 0 ? 0.1 : h, S = t.focusDelay, y = t.blurDelay, w = t.mask, C = t.maskClosable, v = C === void 0 ? !0 : C, N = t.getPopupContainer, k = t.forceRender, D = t.autoDestroy, H = t.destroyPopupOnHide, $ = t.popup, z = t.popupClassName, L = t.popupStyle, j = t.popupPlacement, Z = t.builtinPlacements, G = Z === void 0 ? {} : Z, Q = t.popupAlign, V = t.zIndex, A = t.stretch, x = t.getPopupClassNameFromAlign, we = t.fresh, le = t.alignPoint, q = 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, Pe = t.getTriggerDOMNode, Me = ke(t, Ei), oe = D || H || !1, Be = i.useState(!1), Ue = O(Be, 2), ue = Ue[0], Ne = Ue[1];
1175
- ot(function() {
1176
- Ne(ai());
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
+ 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];
1170
+ it(function() {
1171
+ _e(ii());
1177
1172
  }, []);
1178
- var We = i.useRef({}), de = i.useContext(wr), ht = i.useMemo(function() {
1173
+ var We = i.useRef({}), ve = i.useContext(Mr), ht = i.useMemo(function() {
1179
1174
  return {
1180
- registerSubPopup: function(_, ve) {
1181
- We.current[_] = ve, de == null || de.registerSubPopup(_, ve);
1175
+ registerSubPopup: function(_, fe) {
1176
+ We.current[_] = fe, ve == null || ve.registerSubPopup(_, fe);
1182
1177
  }
1183
1178
  };
1184
- }, [de]), F = pa(), Je = i.useState(null), pe = O(Je, 2), J = pe[0], Fe = pe[1], Ae = i.useRef(null), $e = Kt(function(p) {
1185
- Ae.current = p, Zn(p) && J !== p && Fe(p), de == null || de.registerSubPopup(F, p);
1186
- }), Ze = i.useState(null), _e = O(Ze, 2), Ce = _e[0], ce = _e[1], Re = i.useRef(null), Ie = Kt(function(p) {
1187
- Zn(p) && Ce !== p && (ce(p), Re.current = p);
1188
- }), X = i.Children.only(s), Te = (X == null ? void 0 : X.props) || {}, ze = {}, Et = Kt(function(p) {
1189
- var _, ve, Se = Ce;
1190
- return (Se == null ? void 0 : Se.contains(p)) || ((_ = Qn(Se)) === null || _ === void 0 ? void 0 : _.host) === p || p === Se || (J == null ? void 0 : J.contains(p)) || ((ve = Qn(J)) === null || ve === void 0 ? void 0 : ve.host) === p || p === J || Object.values(We.current).some(function(ge) {
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) {
1191
1186
  return (ge == null ? void 0 : ge.contains(p)) || p === ge;
1192
1187
  });
1193
- }), ut = Rr(o, re, Y, W), at = Rr(o, ye, be, ae), At = i.useState(d || !1), xe = O(At, 2), De = xe[0], Ye = xe[1], fe = f ?? De, P = Kt(function(p) {
1194
- f === void 0 && Ye(p);
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) {
1189
+ f === void 0 && ut(p);
1195
1190
  });
1196
- ot(function() {
1197
- Ye(f || !1);
1191
+ it(function() {
1192
+ ut(f || !1);
1198
1193
  }, [f]);
1199
- var R = i.useRef(fe);
1200
- R.current = fe;
1194
+ var R = i.useRef(de);
1195
+ R.current = de;
1201
1196
  var I = i.useRef([]);
1202
1197
  I.current = [];
1203
1198
  var se = Kt(function(p) {
1204
1199
  var _;
1205
- P(p), ((_ = I.current[I.current.length - 1]) !== null && _ !== void 0 ? _ : fe) !== p && (I.current.push(p), m == null || m(p));
1200
+ P(p), ((_ = I.current[I.current.length - 1]) !== null && _ !== void 0 ? _ : de) !== p && (I.current.push(p), m == null || m(p));
1206
1201
  }), he = i.useRef(), $t = function() {
1207
1202
  clearTimeout(he.current);
1208
1203
  }, je = function(_) {
1209
- var ve = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1210
- $t(), ve === 0 ? se(_) : he.current = setTimeout(function() {
1204
+ var fe = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
1205
+ $t(), fe === 0 ? se(_) : he.current = setTimeout(function() {
1211
1206
  se(_);
1212
- }, ve * 1e3);
1207
+ }, fe * 1e3);
1213
1208
  };
1214
1209
  i.useEffect(function() {
1215
1210
  return $t;
1216
1211
  }, []);
1217
- var zt = i.useState(!1), Vt = O(zt, 2), ct = Vt[0], Bt = Vt[1];
1218
- ot(function(p) {
1219
- (!p || fe) && Bt(!0);
1220
- }, [fe]);
1221
- var Ut = i.useState(null), ft = O(Ut, 2), St = ft[0], gt = ft[1], He = i.useState(null), vt = O(He, 2), Xe = vt[0], Pt = vt[1], dt = function(_) {
1212
+ var zt = i.useState(!1), Vt = k(zt, 2), ct = Vt[0], Bt = Vt[1];
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(_) {
1222
1217
  Pt([_.clientX, _.clientY]);
1223
- }, jt = wi(fe, J, le && Xe !== null ? Xe : Ce, j, G, Q, K), Ee = O(jt, 11), Gt = Ee[0], fn = Ee[1], yt = Ee[2], qt = Ee[3], Jt = Ee[4], mt = Ee[5], Nt = Ee[6], bt = Ee[7], Zt = Ee[8], _t = Ee[9], et = Ee[10], pt = bi(ue, u, c, b), Qt = O(pt, 2), tt = Qt[0], Qe = Qt[1], Ct = tt.has("click"), It = Qe.has("click") || Qe.has("contextMenu"), nt = Kt(function() {
1224
- ct || et();
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() {
1219
+ ct || Xe();
1225
1220
  }), vn = function() {
1226
1221
  R.current && le && It && je(!1);
1227
1222
  };
1228
- Mi(fe, Ce, J, nt, vn), ot(function() {
1229
- nt();
1230
- }, [Xe, j]), ot(function() {
1231
- fe && !(G != null && G[j]) && nt();
1223
+ Ri(de, Ce, J, tt, vn), it(function() {
1224
+ tt();
1225
+ }, [Ye, j]), it(function() {
1226
+ de && !(q != null && q[j]) && tt();
1232
1227
  }, [JSON.stringify(Q)]);
1233
1228
  var Yt = i.useMemo(function() {
1234
- var p = Ci(G, o, _t, le);
1235
- return Ke(p, x == null ? void 0 : x(_t));
1236
- }, [_t, x, G, o, le]);
1229
+ var p = wi(q, o, _t, le);
1230
+ return Oe(p, x == null ? void 0 : x(_t));
1231
+ }, [_t, x, q, o, le]);
1237
1232
  i.useImperativeHandle(r, function() {
1238
1233
  return {
1239
1234
  nativeElement: Re.current,
1240
1235
  popupElement: Ae.current,
1241
- forceAlign: nt
1236
+ forceAlign: tt
1242
1237
  };
1243
1238
  });
1244
- var dn = i.useState(0), ee = O(dn, 2), U = ee[0], te = ee[1], Le = i.useState(0), Oe = O(Le, 2), xt = Oe[0], Wt = Oe[1], Xt = function() {
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() {
1245
1240
  if (A && Ce) {
1246
1241
  var _ = Ce.getBoundingClientRect();
1247
1242
  te(_.width), Wt(_.height);
1248
1243
  }
1249
1244
  }, en = function() {
1250
- Xt(), nt();
1245
+ Xt(), tt();
1251
1246
  }, tn = function(_) {
1252
- Bt(!1), et(), g == null || g(_);
1253
- }, it = function() {
1247
+ Bt(!1), Xe(), h == null || h(_);
1248
+ }, at = function() {
1254
1249
  return new Promise(function(_) {
1255
1250
  Xt(), gt(function() {
1256
1251
  return _;
1257
1252
  });
1258
1253
  });
1259
1254
  };
1260
- ot(function() {
1261
- St && (et(), St(), gt(null));
1255
+ it(function() {
1256
+ St && (Xe(), St(), gt(null));
1262
1257
  }, [St]);
1263
- function Ge(p, _, ve, Se) {
1258
+ function qe(p, _, fe, Pe) {
1264
1259
  ze[p] = function(ge) {
1265
1260
  var _n;
1266
- Se == null || Se(ge), je(_, ve);
1267
- for (var jn = arguments.length, pr = new Array(jn > 1 ? jn - 1 : 0), In = 1; In < jn; In++)
1268
- pr[In - 1] = arguments[In];
1269
- (_n = Te[p]) === null || _n === void 0 || _n.call.apply(_n, [Te, ge].concat(pr));
1261
+ Pe == null || Pe(ge), je(_, fe);
1262
+ for (var qn = arguments.length, Cr = new Array(qn > 1 ? qn - 1 : 0), In = 1; In < qn; In++)
1263
+ Cr[In - 1] = arguments[In];
1264
+ (_n = Ke[p]) === null || _n === void 0 || _n.call.apply(_n, [Ke, ge].concat(Cr));
1270
1265
  };
1271
1266
  }
1272
1267
  (Ct || It) && (ze.onClick = function(p) {
1273
1268
  var _;
1274
1269
  R.current && It ? je(!1) : !R.current && Ct && (dt(p), je(!0));
1275
- for (var ve = arguments.length, Se = new Array(ve > 1 ? ve - 1 : 0), ge = 1; ge < ve; ge++)
1276
- Se[ge - 1] = arguments[ge];
1277
- (_ = Te.onClick) === null || _ === void 0 || _.call.apply(_, [Te, p].concat(Se));
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));
1278
1273
  });
1279
- var mn = Ri(fe, It, Ce, J, w, v, Et, je), rt = tt.has("hover"), Pn = Qe.has("hover"), nn, Dt;
1280
- rt && (Ge("onMouseEnter", !0, E, function(p) {
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) {
1281
1276
  dt(p);
1282
- }), Ge("onPointerEnter", !0, E, function(p) {
1277
+ }), qe("onPointerEnter", !0, E, function(p) {
1283
1278
  dt(p);
1284
1279
  }), nn = function(_) {
1285
- (fe || ct) && J !== null && J !== void 0 && J.contains(_.target) && je(!0, E);
1280
+ (de || ct) && J !== null && J !== void 0 && J.contains(_.target) && je(!0, E);
1286
1281
  }, le && (ze.onMouseMove = function(p) {
1287
1282
  var _;
1288
- (_ = Te.onMouseMove) === null || _ === void 0 || _.call(Te, p);
1289
- })), Pn && (Ge("onMouseLeave", !1, M), Ge("onPointerLeave", !1, M), Dt = function() {
1283
+ (_ = Ke.onMouseMove) === null || _ === void 0 || _.call(Ke, p);
1284
+ })), Pn && (qe("onMouseLeave", !1, M), qe("onPointerLeave", !1, M), Dt = function() {
1290
1285
  je(!1, M);
1291
- }), tt.has("focus") && Ge("onFocus", !0, S), Qe.has("focus") && Ge("onBlur", !1, y), tt.has("contextMenu") && (ze.onContextMenu = function(p) {
1286
+ }), et.has("focus") && qe("onFocus", !0, S), Qe.has("focus") && qe("onBlur", !1, y), et.has("contextMenu") && (ze.onContextMenu = function(p) {
1292
1287
  var _;
1293
1288
  R.current && Qe.has("contextMenu") ? je(!1) : (dt(p), je(!0)), p.preventDefault();
1294
- for (var ve = arguments.length, Se = new Array(ve > 1 ? ve - 1 : 0), ge = 1; ge < ve; ge++)
1295
- Se[ge - 1] = arguments[ge];
1296
- (_ = Te.onContextMenu) === null || _ === void 0 || _.call.apply(_, [Te, p].concat(Se));
1297
- }), ie && (ze.className = Ke(Te.className, ie));
1298
- var Ot = T(T({}, Te), ze), hn = {}, Nn = ["onContextMenu", "onClick", "onMouseDown", "onTouchStart", "onMouseEnter", "onMouseLeave", "onFocus", "onBlur"];
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"];
1299
1294
  Nn.forEach(function(p) {
1300
1295
  Me[p] && (hn[p] = function() {
1301
- for (var _, ve = arguments.length, Se = new Array(ve), ge = 0; ge < ve; ge++)
1302
- Se[ge] = arguments[ge];
1303
- (_ = Ot[p]) === null || _ === void 0 || _.call.apply(_, [Ot].concat(Se)), Me[p].apply(Me, Se);
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);
1304
1299
  });
1305
1300
  });
1306
- var Hn = /* @__PURE__ */ i.cloneElement(X, T(T({}, Ot), hn)), Bn = {
1301
+ var Bn = /* @__PURE__ */ i.cloneElement(X, T(T({}, kt), hn)), Un = {
1307
1302
  x: mt,
1308
1303
  y: Nt
1309
- }, Un = B ? T({}, B !== !0 ? B : {}) : null;
1304
+ }, jn = B ? T({}, B !== !0 ? B : {}) : null;
1310
1305
  return /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement(cn, {
1311
- disabled: !fe,
1312
- ref: Ie,
1306
+ disabled: !de,
1307
+ ref: xe,
1313
1308
  onResize: en
1314
- }, /* @__PURE__ */ i.createElement(ra, {
1315
- getTriggerDOMNode: Pe
1316
- }, Hn)), /* @__PURE__ */ i.createElement(wr.Provider, {
1309
+ }, /* @__PURE__ */ i.createElement(aa, {
1310
+ getTriggerDOMNode: Ne
1311
+ }, Bn)), /* @__PURE__ */ i.createElement(Mr.Provider, {
1317
1312
  value: ht
1318
- }, /* @__PURE__ */ i.createElement(na, {
1313
+ }, /* @__PURE__ */ i.createElement(ra, {
1319
1314
  portal: e,
1320
1315
  ref: $e,
1321
1316
  prefixCls: o,
1322
1317
  popup: $,
1323
- className: Ke(z, Yt),
1318
+ className: Oe(z, Yt),
1324
1319
  style: L,
1325
1320
  target: Ce,
1326
1321
  onMouseEnter: nn,
1327
1322
  onMouseLeave: Dt,
1328
1323
  onPointerEnter: nn,
1329
1324
  zIndex: V,
1330
- open: fe,
1325
+ open: de,
1331
1326
  keepDom: ct,
1332
1327
  fresh: we,
1333
- onClick: q,
1328
+ onClick: G,
1334
1329
  onPointerDownCapture: mn,
1335
1330
  mask: w,
1336
- motion: ut,
1337
- maskMotion: at,
1331
+ motion: lt,
1332
+ maskMotion: rt,
1338
1333
  onVisibleChanged: tn,
1339
- onPrepare: it,
1340
- forceRender: k,
1334
+ onPrepare: at,
1335
+ forceRender: O,
1341
1336
  autoDestroy: oe,
1342
1337
  getPopupContainer: N,
1343
1338
  align: _t,
1344
- arrow: Un,
1345
- arrowPos: Bn,
1346
- ready: Gt,
1339
+ arrow: jn,
1340
+ arrowPos: Un,
1341
+ ready: qt,
1347
1342
  offsetX: fn,
1348
1343
  offsetY: yt,
1349
- offsetR: qt,
1344
+ offsetR: Gt,
1350
1345
  offsetB: Jt,
1351
- onAlign: nt,
1346
+ onAlign: tt,
1352
1347
  stretch: A,
1353
1348
  targetWidth: U / bt,
1354
1349
  targetHeight: xt / Zt
@@ -1356,9 +1351,9 @@ function Si() {
1356
1351
  });
1357
1352
  return process.env.NODE_ENV !== "production" && (n.displayName = "Trigger"), n;
1358
1353
  }
1359
- const aa = Si(Wr);
1360
- var Pi = lt.ESC, Ni = lt.TAB;
1361
- function _i(e) {
1354
+ const ia = Pi(Fr);
1355
+ var Ni = st.ESC, _i = st.TAB;
1356
+ function Ii(e) {
1362
1357
  var n = e.visible, t = e.triggerRef, r = e.onVisibleChange, a = e.autoFocus, o = e.overlayRef, s = i.useRef(!1), l = function() {
1363
1358
  if (n) {
1364
1359
  var f, d;
@@ -1369,10 +1364,10 @@ function _i(e) {
1369
1364
  return (f = o.current) !== null && f !== void 0 && f.focus ? (o.current.focus(), s.current = !0, !0) : !1;
1370
1365
  }, c = function(f) {
1371
1366
  switch (f.keyCode) {
1372
- case Pi:
1367
+ case Ni:
1373
1368
  l();
1374
1369
  break;
1375
- case Ni: {
1370
+ case _i: {
1376
1371
  var d = !1;
1377
1372
  s.current || (d = u()), d ? f.preventDefault() : l();
1378
1373
  break;
@@ -1387,20 +1382,20 @@ function _i(e) {
1387
1382
  };
1388
1383
  }, [n]);
1389
1384
  }
1390
- var Ii = /* @__PURE__ */ Ma(function(e, n) {
1391
- var t = e.overlay, r = e.arrow, a = e.prefixCls, o = Yn(function() {
1385
+ var xi = /* @__PURE__ */ Ra(function(e, n) {
1386
+ var t = e.overlay, r = e.arrow, a = e.prefixCls, o = Xn(function() {
1392
1387
  var l;
1393
1388
  return typeof t == "function" ? l = t() : l = t, l;
1394
- }, [t]), s = cr(n, o == null ? void 0 : o.ref);
1395
- return /* @__PURE__ */ qe.createElement(qe.Fragment, null, r && /* @__PURE__ */ qe.createElement("div", {
1389
+ }, [t]), s = fr(n, zn(o));
1390
+ return /* @__PURE__ */ Ge.createElement(Ge.Fragment, null, r && /* @__PURE__ */ Ge.createElement("div", {
1396
1391
  className: "".concat(a, "-arrow")
1397
- }), /* @__PURE__ */ qe.cloneElement(o, {
1392
+ }), /* @__PURE__ */ Ge.cloneElement(o, {
1398
1393
  ref: $n(o) ? s : void 0
1399
1394
  }));
1400
1395
  }), on = {
1401
1396
  adjustX: 1,
1402
1397
  adjustY: 1
1403
- }, sn = [0, 0], xi = {
1398
+ }, sn = [0, 0], Di = {
1404
1399
  topLeft: {
1405
1400
  points: ["bl", "tl"],
1406
1401
  overflow: on,
@@ -1437,16 +1432,16 @@ var Ii = /* @__PURE__ */ Ma(function(e, n) {
1437
1432
  offset: [0, 4],
1438
1433
  targetOffset: sn
1439
1434
  }
1440
- }, Di = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
1435
+ }, ki = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
1441
1436
  function Oi(e, n) {
1442
- 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 ? xi : d, g = e.getPopupContainer, E = e.showAction, h = 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, k = e.children, D = e.onVisibleChange, H = ke(e, Di), $ = qe.useState(), z = O($, 2), L = z[0], j = z[1], Z = "visible" in e ? y : L, G = qe.useRef(null), Q = qe.useRef(null), V = qe.useRef(null);
1443
- qe.useImperativeHandle(n, function() {
1444
- return G.current;
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() {
1439
+ return q.current;
1445
1440
  });
1446
1441
  var A = function(W) {
1447
1442
  j(W), D == null || D(W);
1448
1443
  };
1449
- _i({
1444
+ Ii({
1450
1445
  visible: Z,
1451
1446
  triggerRef: V,
1452
1447
  onVisibleChange: A,
@@ -1457,7 +1452,7 @@ function Oi(e, n) {
1457
1452
  var Y = e.onOverlayClick;
1458
1453
  j(!1), Y && Y(W);
1459
1454
  }, we = function() {
1460
- return /* @__PURE__ */ qe.createElement(Ii, {
1455
+ return /* @__PURE__ */ Ge.createElement(xi, {
1461
1456
  ref: Q,
1462
1457
  overlay: N,
1463
1458
  prefixCls: s,
@@ -1465,22 +1460,22 @@ function Oi(e, n) {
1465
1460
  });
1466
1461
  }, le = function() {
1467
1462
  return typeof N == "function" ? we : we();
1468
- }, q = function() {
1463
+ }, G = function() {
1469
1464
  var W = e.minOverlayWidthMatchTrigger, Y = e.alignPoint;
1470
1465
  return "minOverlayWidthMatchTrigger" in e ? W : !Y;
1471
1466
  }, K = function() {
1472
1467
  var W = e.openClassName;
1473
1468
  return W !== void 0 ? W : "".concat(s, "-open");
1474
- }, B = /* @__PURE__ */ qe.cloneElement(k, {
1475
- className: Ke((t = k.props) === null || t === void 0 ? void 0 : t.className, Z && K()),
1476
- ref: $n(k) ? cr(V, k.ref) : void 0
1477
- }), re = h;
1478
- return !re && C.indexOf("contextMenu") !== -1 && (re = ["click"]), /* @__PURE__ */ qe.createElement(aa, ne({
1469
+ }, B = /* @__PURE__ */ Ge.cloneElement(O, {
1470
+ className: Oe((t = O.props) === null || t === void 0 ? void 0 : t.className, Z && K()),
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({
1479
1474
  builtinPlacements: m
1480
1475
  }, H, {
1481
1476
  prefixCls: s,
1482
- ref: G,
1483
- popupClassName: Ke(M, me({}, "".concat(s, "-show-arrow"), a)),
1477
+ ref: q,
1478
+ popupClassName: Oe(M, me({}, "".concat(s, "-show-arrow"), a)),
1484
1479
  popupStyle: S,
1485
1480
  action: C,
1486
1481
  showAction: E,
@@ -1490,24 +1485,24 @@ function Oi(e, n) {
1490
1485
  popupTransitionName: l,
1491
1486
  popupAnimation: u,
1492
1487
  popupVisible: Z,
1493
- stretch: q() ? "minWidth" : "",
1488
+ stretch: G() ? "minWidth" : "",
1494
1489
  popup: le(),
1495
1490
  onPopupVisibleChange: A,
1496
1491
  onPopupClick: x,
1497
- getPopupContainer: g
1492
+ getPopupContainer: h
1498
1493
  }), B);
1499
1494
  }
1500
- const Ro = /* @__PURE__ */ qe.forwardRef(Oi);
1501
- var ia = /* @__PURE__ */ i.createContext(null);
1502
- function oa(e, n) {
1495
+ const Eo = /* @__PURE__ */ Ge.forwardRef(Oi);
1496
+ var oa = /* @__PURE__ */ i.createContext(null);
1497
+ function sa(e, n) {
1503
1498
  return e === void 0 ? null : "".concat(e, "-").concat(n);
1504
1499
  }
1505
- function sa(e) {
1506
- var n = i.useContext(ia);
1507
- return oa(n, e);
1500
+ function la(e) {
1501
+ var n = i.useContext(oa);
1502
+ return sa(n, e);
1508
1503
  }
1509
- var ki = ["children", "locked"], st = /* @__PURE__ */ i.createContext(null);
1510
- function Ki(e, n) {
1504
+ var Ki = ["children", "locked"], ot = /* @__PURE__ */ i.createContext(null);
1505
+ function Ti(e, n) {
1511
1506
  var t = T({}, e);
1512
1507
  return Object.keys(n).forEach(function(r) {
1513
1508
  var a = n[r];
@@ -1515,30 +1510,30 @@ function Ki(e, n) {
1515
1510
  }), t;
1516
1511
  }
1517
1512
  function Rn(e) {
1518
- var n = e.children, t = e.locked, r = ke(e, ki), a = i.useContext(st), o = Ca(function() {
1519
- return Ki(a, r);
1513
+ var n = e.children, t = e.locked, r = ke(e, Ki), a = i.useContext(ot), o = wa(function() {
1514
+ return Ti(a, r);
1520
1515
  }, [a, r], function(s, l) {
1521
- return !t && (s[0] !== l[0] || !Fr(s[1], l[1], !0));
1516
+ return !t && (s[0] !== l[0] || !Hr(s[1], l[1], !0));
1522
1517
  });
1523
- return /* @__PURE__ */ i.createElement(st.Provider, {
1518
+ return /* @__PURE__ */ i.createElement(ot.Provider, {
1524
1519
  value: o
1525
1520
  }, n);
1526
1521
  }
1527
- var Ti = [], la = /* @__PURE__ */ i.createContext(null);
1528
- function Vn() {
1529
- return i.useContext(la);
1522
+ var Li = [], ua = /* @__PURE__ */ i.createContext(null);
1523
+ function Wn() {
1524
+ return i.useContext(ua);
1530
1525
  }
1531
- var ua = /* @__PURE__ */ i.createContext(Ti);
1526
+ var ca = /* @__PURE__ */ i.createContext(Li);
1532
1527
  function Sn(e) {
1533
- var n = i.useContext(ua);
1528
+ var n = i.useContext(ca);
1534
1529
  return i.useMemo(function() {
1535
1530
  return e !== void 0 ? [].concat(Rt(n), [e]) : n;
1536
1531
  }, [n, e]);
1537
1532
  }
1538
- var ca = /* @__PURE__ */ i.createContext(null), vr = /* @__PURE__ */ i.createContext({});
1539
- function _r(e) {
1533
+ var fa = /* @__PURE__ */ i.createContext(null), dr = /* @__PURE__ */ i.createContext({});
1534
+ function Ir(e) {
1540
1535
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1541
- if (Vr(e)) {
1536
+ if (Wr(e)) {
1542
1537
  var t = e.nodeName.toLowerCase(), r = (
1543
1538
  // Focusable element
1544
1539
  ["input", "select", "textarea", "button"].includes(t) || // Editable element
@@ -1549,20 +1544,20 @@ function _r(e) {
1549
1544
  }
1550
1545
  return !1;
1551
1546
  }
1552
- function Li(e) {
1547
+ function Ai(e) {
1553
1548
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = Rt(e.querySelectorAll("*")).filter(function(r) {
1554
- return _r(r, n);
1549
+ return Ir(r, n);
1555
1550
  });
1556
- return _r(e, n) && t.unshift(e), t;
1551
+ return Ir(e, n) && t.unshift(e), t;
1557
1552
  }
1558
- var nr = lt.LEFT, rr = lt.RIGHT, ar = lt.UP, On = lt.DOWN, kn = lt.ENTER, fa = lt.ESC, bn = lt.HOME, pn = lt.END, Ir = [ar, On, nr, rr];
1559
- function Ai(e, n, t, r) {
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
+ function $i(e, n, t, r) {
1560
1555
  var a, o = "prev", s = "next", l = "children", u = "parent";
1561
- if (e === "inline" && r === kn)
1556
+ if (e === "inline" && r === On)
1562
1557
  return {
1563
1558
  inlineTrigger: !0
1564
1559
  };
1565
- var c = me(me({}, ar, o), On, s), b = me(me(me(me({}, nr, t ? s : o), rr, t ? o : s), On, l), kn, l), f = me(me(me(me(me(me({}, ar, o), On, s), kn, l), fa, u), nr, t ? l : u), rr, t ? u : l), d = {
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 = {
1566
1561
  inline: c,
1567
1562
  horizontal: b,
1568
1563
  vertical: f,
@@ -1595,7 +1590,7 @@ function Ai(e, n, t, r) {
1595
1590
  return null;
1596
1591
  }
1597
1592
  }
1598
- function $i(e) {
1593
+ function zi(e) {
1599
1594
  for (var n = e; n; ) {
1600
1595
  if (n.getAttribute("data-menu-list"))
1601
1596
  return n;
@@ -1603,7 +1598,7 @@ function $i(e) {
1603
1598
  }
1604
1599
  return null;
1605
1600
  }
1606
- function zi(e, n) {
1601
+ function Vi(e, n) {
1607
1602
  for (var t = e || document.activeElement; t; ) {
1608
1603
  if (n.has(t))
1609
1604
  return t;
@@ -1611,25 +1606,25 @@ function zi(e, n) {
1611
1606
  }
1612
1607
  return null;
1613
1608
  }
1614
- function dr(e, n) {
1615
- var t = Li(e, !0);
1609
+ function mr(e, n) {
1610
+ var t = Ai(e, !0);
1616
1611
  return t.filter(function(r) {
1617
1612
  return n.has(r);
1618
1613
  });
1619
1614
  }
1620
- function xr(e, n, t) {
1615
+ function Dr(e, n, t) {
1621
1616
  var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
1622
1617
  if (!e)
1623
1618
  return null;
1624
- var a = dr(e, n), o = a.length, s = a.findIndex(function(l) {
1619
+ var a = mr(e, n), o = a.length, s = a.findIndex(function(l) {
1625
1620
  return t === l;
1626
1621
  });
1627
1622
  return r < 0 ? s === -1 ? s = o - 1 : s -= 1 : r > 0 && (s += 1), s = (s + o) % o, a[s];
1628
1623
  }
1629
- var ir = function(n, t) {
1624
+ var or = function(n, t) {
1630
1625
  var r = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1631
1626
  return n.forEach(function(s) {
1632
- var l = document.querySelector("[data-menu-id='".concat(oa(t, s), "']"));
1627
+ var l = document.querySelector("[data-menu-id='".concat(sa(t, s), "']"));
1633
1628
  l && (r.add(l), o.set(l, s), a.set(s, l));
1634
1629
  }), {
1635
1630
  elements: r,
@@ -1637,7 +1632,7 @@ var ir = function(n, t) {
1637
1632
  element2key: o
1638
1633
  };
1639
1634
  };
1640
- function Vi(e, n, t, r, a, o, s, l, u, c) {
1635
+ function Wi(e, n, t, r, a, o, s, l, u, c) {
1641
1636
  var b = i.useRef(), f = i.useRef();
1642
1637
  f.current = n;
1643
1638
  var d = function() {
@@ -1648,12 +1643,12 @@ function Vi(e, n, t, r, a, o, s, l, u, c) {
1648
1643
  d();
1649
1644
  };
1650
1645
  }, []), function(m) {
1651
- var g = m.which;
1652
- if ([].concat(Ir, [kn, fa, bn, pn]).includes(g)) {
1653
- var E = o(), h = ir(E, r), M = h, S = M.elements, y = M.key2element, w = M.element2key, C = y.get(n), v = zi(C, S), N = w.get(v), k = Ai(e, s(N, !0).length === 1, t, g);
1654
- if (!k && g !== bn && g !== pn)
1646
+ var h = m.which;
1647
+ if ([].concat(xr, [On, va, bn, pn]).includes(h)) {
1648
+ var E = o(), g = or(E, r), M = g, S = M.elements, y = M.key2element, w = M.element2key, C = y.get(n), v = Vi(C, S), N = w.get(v), O = $i(e, s(N, !0).length === 1, t, h);
1649
+ if (!O && h !== bn && h !== pn)
1655
1650
  return;
1656
- (Ir.includes(g) || [bn, pn].includes(g)) && m.preventDefault();
1651
+ (xr.includes(h) || [bn, pn].includes(h)) && m.preventDefault();
1657
1652
  var D = function(Q) {
1658
1653
  if (Q) {
1659
1654
  var V = Q, A = Q.querySelector("a");
@@ -1664,20 +1659,20 @@ function Vi(e, n, t, r, a, o, s, l, u, c) {
1664
1659
  });
1665
1660
  }
1666
1661
  };
1667
- if ([bn, pn].includes(g) || k.sibling || !v) {
1662
+ if ([bn, pn].includes(h) || O.sibling || !v) {
1668
1663
  var H;
1669
- !v || e === "inline" ? H = a.current : H = $i(v);
1670
- var $, z = dr(H, S);
1671
- g === bn ? $ = z[0] : g === pn ? $ = z[z.length - 1] : $ = xr(H, S, v, k.offset), D($);
1672
- } else if (k.inlineTrigger)
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($);
1667
+ } else if (O.inlineTrigger)
1673
1668
  u(N);
1674
- else if (k.offset > 0)
1669
+ else if (O.offset > 0)
1675
1670
  u(N, !0), d(), b.current = Ht(function() {
1676
- h = ir(E, r);
1677
- var G = v.getAttribute("aria-controls"), Q = document.getElementById(G), V = xr(Q, h.elements);
1671
+ g = or(E, r);
1672
+ var q = v.getAttribute("aria-controls"), Q = document.getElementById(q), V = Dr(Q, g.elements);
1678
1673
  D(V);
1679
1674
  }, 5);
1680
- else if (k.offset < 0) {
1675
+ else if (O.offset < 0) {
1681
1676
  var L = s(N, !0), j = L[L.length - 2], Z = y.get(j);
1682
1677
  u(j, !1), D(Z);
1683
1678
  }
@@ -1685,34 +1680,34 @@ function Vi(e, n, t, r, a, o, s, l, u, c) {
1685
1680
  c == null || c(m);
1686
1681
  };
1687
1682
  }
1688
- function Wi(e) {
1683
+ function Fi(e) {
1689
1684
  Promise.resolve().then(e);
1690
1685
  }
1691
- var mr = "__RC_UTIL_PATH_SPLIT__", Dr = function(n) {
1692
- return n.join(mr);
1693
- }, Fi = function(n) {
1694
- return n.split(mr);
1695
- }, or = "rc-menu-more";
1696
- function Hi() {
1697
- var e = i.useState({}), n = O(e, 2), t = n[1], r = xn(/* @__PURE__ */ new Map()), a = xn(/* @__PURE__ */ new Map()), o = i.useState([]), s = O(o, 2), l = s[0], u = s[1], c = xn(0), b = xn(!1), f = function() {
1686
+ var hr = "__RC_UTIL_PATH_SPLIT__", kr = function(n) {
1687
+ return n.join(hr);
1688
+ }, Hi = function(n) {
1689
+ return n.split(hr);
1690
+ }, sr = "rc-menu-more";
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() {
1698
1693
  b.current || t({});
1699
1694
  }, d = Tt(function(y, w) {
1700
1695
  process.env.NODE_ENV !== "production" && un(!r.current.has(y), "Duplicated key '".concat(y, "' used in Menu by path [").concat(w.join(" > "), "]"));
1701
- var C = Dr(w);
1696
+ var C = kr(w);
1702
1697
  a.current.set(C, y), r.current.set(y, C), c.current += 1;
1703
1698
  var v = c.current;
1704
- Wi(function() {
1699
+ Fi(function() {
1705
1700
  v === c.current && f();
1706
1701
  });
1707
1702
  }, []), m = Tt(function(y, w) {
1708
- var C = Dr(w);
1703
+ var C = kr(w);
1709
1704
  a.current.delete(C), r.current.delete(y);
1710
- }, []), g = Tt(function(y) {
1705
+ }, []), h = Tt(function(y) {
1711
1706
  u(y);
1712
1707
  }, []), E = Tt(function(y, w) {
1713
- var C = r.current.get(y) || "", v = Fi(C);
1714
- return w && l.includes(v[0]) && v.unshift(or), v;
1715
- }, [l]), h = Tt(function(y, w) {
1708
+ var C = r.current.get(y) || "", v = Hi(C);
1709
+ return w && l.includes(v[0]) && v.unshift(sr), v;
1710
+ }, [l]), g = Tt(function(y, w) {
1716
1711
  return y.filter(function(C) {
1717
1712
  return C !== void 0;
1718
1713
  }).some(function(C) {
@@ -1721,9 +1716,9 @@ function Hi() {
1721
1716
  });
1722
1717
  }, [E]), M = function() {
1723
1718
  var w = Rt(r.current.keys());
1724
- return l.length && w.push(or), w;
1719
+ return l.length && w.push(sr), w;
1725
1720
  }, S = Tt(function(y) {
1726
- var w = "".concat(r.current.get(y)).concat(mr), C = /* @__PURE__ */ new Set();
1721
+ var w = "".concat(r.current.get(y)).concat(hr), C = /* @__PURE__ */ new Set();
1727
1722
  return Rt(a.current.keys()).forEach(function(v) {
1728
1723
  v.startsWith(w) && C.add(a.current.get(v));
1729
1724
  }), C;
@@ -1736,9 +1731,9 @@ function Hi() {
1736
1731
  // Register
1737
1732
  registerPath: d,
1738
1733
  unregisterPath: m,
1739
- refreshOverflowKeys: g,
1734
+ refreshOverflowKeys: h,
1740
1735
  // Util
1741
- isSubPathKey: h,
1736
+ isSubPathKey: g,
1742
1737
  getKeyPath: E,
1743
1738
  getKeys: M,
1744
1739
  getSubPathKeys: S
@@ -1754,19 +1749,19 @@ function Cn(e) {
1754
1749
  }, []);
1755
1750
  return e ? t : void 0;
1756
1751
  }
1757
- var Bi = Math.random().toFixed(5).toString().slice(2), Or = 0;
1758
- function Ui(e) {
1752
+ var Ui = Math.random().toFixed(5).toString().slice(2), Or = 0;
1753
+ function ji(e) {
1759
1754
  var n = Dn(e, {
1760
1755
  value: e
1761
- }), t = O(n, 2), r = t[0], a = t[1];
1756
+ }), t = k(n, 2), r = t[0], a = t[1];
1762
1757
  return i.useEffect(function() {
1763
1758
  Or += 1;
1764
- var o = process.env.NODE_ENV === "test" ? "test" : "".concat(Bi, "-").concat(Or);
1759
+ var o = process.env.NODE_ENV === "test" ? "test" : "".concat(Ui, "-").concat(Or);
1765
1760
  a("rc-menu-uuid-".concat(o));
1766
1761
  }, []), r;
1767
1762
  }
1768
- function va(e, n, t, r) {
1769
- var a = i.useContext(st), o = a.activeKey, s = a.onActive, l = a.onInactive, u = {
1763
+ function da(e, n, t, r) {
1764
+ var a = i.useContext(ot), o = a.activeKey, s = a.onActive, l = a.onInactive, u = {
1770
1765
  active: o === e
1771
1766
  };
1772
1767
  return n || (u.onMouseEnter = function(c) {
@@ -1781,8 +1776,8 @@ function va(e, n, t, r) {
1781
1776
  }), l(e);
1782
1777
  }), u;
1783
1778
  }
1784
- function da(e) {
1785
- var n = i.useContext(st), t = n.mode, r = n.rtl, a = n.inlineIndent;
1779
+ function ma(e) {
1780
+ var n = i.useContext(ot), t = n.mode, r = n.rtl, a = n.inlineIndent;
1786
1781
  if (t !== "inline")
1787
1782
  return null;
1788
1783
  var o = e;
@@ -1792,29 +1787,29 @@ function da(e) {
1792
1787
  paddingLeft: o * a
1793
1788
  };
1794
1789
  }
1795
- function ma(e) {
1790
+ function ha(e) {
1796
1791
  var n = e.icon, t = e.props, r = e.children, a;
1797
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);
1798
1793
  }
1799
- var ji = ["item"];
1794
+ var qi = ["item"];
1800
1795
  function An(e) {
1801
- var n = e.item, t = ke(e, ji);
1796
+ var n = e.item, t = ke(e, qi);
1802
1797
  return Object.defineProperty(t, "item", {
1803
1798
  get: function() {
1804
1799
  return un(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), n;
1805
1800
  }
1806
1801
  }), t;
1807
1802
  }
1808
- var Gi = ["title", "attribute", "elementRef"], qi = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Ji = ["active"], Zi = /* @__PURE__ */ function(e) {
1809
- Kr(t, e);
1803
+ var Gi = ["title", "attribute", "elementRef"], Ji = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Zi = ["active"], Qi = /* @__PURE__ */ function(e) {
1804
+ Tr(t, e);
1810
1805
  var n = Lr(t);
1811
1806
  function t() {
1812
- return Tr(this, t), n.apply(this, arguments);
1807
+ return Ar(this, t), n.apply(this, arguments);
1813
1808
  }
1814
- return Ar(t, [{
1809
+ return $r(t, [{
1815
1810
  key: "render",
1816
1811
  value: function() {
1817
- var a = this.props, o = a.title, s = a.attribute, l = a.elementRef, u = ke(a, Gi), c = fr(u, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
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"]);
1818
1813
  return un(!s, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ i.createElement(Mt.Item, ne({}, s, {
1819
1814
  title: typeof o == "string" ? o : void 0
1820
1815
  }, c, {
@@ -1822,46 +1817,46 @@ var Gi = ["title", "attribute", "elementRef"], qi = ["style", "className", "even
1822
1817
  }));
1823
1818
  }
1824
1819
  }]), t;
1825
- }(i.Component), Qi = /* @__PURE__ */ i.forwardRef(function(e, n) {
1826
- 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, g = e.onFocus, E = ke(e, qi), h = sa(a), M = i.useContext(st), S = M.prefixCls, y = M.onItemClick, w = M.disabled, C = M.overflowDisabled, v = M.itemIcon, N = M.selectedKeys, k = M.onActive, D = i.useContext(vr), H = D._internalRenderMenuItem, $ = "".concat(S, "-item"), z = i.useRef(), L = i.useRef(), j = w || s, Z = lr(n, L), G = Sn(a);
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);
1827
1822
  process.env.NODE_ENV !== "production" && o && un(!1, "MenuItem should not leave undefined `key`.");
1828
1823
  var Q = function(ae) {
1829
1824
  return {
1830
1825
  key: a,
1831
1826
  // Note: For legacy code is reversed which not like other antd component
1832
- keyPath: Rt(G).reverse(),
1827
+ keyPath: Rt(q).reverse(),
1833
1828
  item: z.current,
1834
1829
  domEvent: ae
1835
1830
  };
1836
- }, V = l || v, A = va(a, j, b, f), x = A.active, we = ke(A, Ji), le = N.includes(a), q = da(G.length), K = function(ae) {
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) {
1837
1832
  if (!j) {
1838
1833
  var be = Q(ae);
1839
1834
  d == null || d(An(be)), y(be);
1840
1835
  }
1841
1836
  }, B = function(ae) {
1842
- if (m == null || m(ae), ae.which === lt.ENTER) {
1837
+ if (m == null || m(ae), ae.which === st.ENTER) {
1843
1838
  var be = Q(ae);
1844
1839
  d == null || d(An(be)), y(be);
1845
1840
  }
1846
1841
  }, re = function(ae) {
1847
- k(a), g == null || g(ae);
1842
+ O(a), h == null || h(ae);
1848
1843
  }, ye = {};
1849
1844
  e.role === "option" && (ye["aria-selected"] = le);
1850
- var W = /* @__PURE__ */ i.createElement(Zi, ne({
1845
+ var W = /* @__PURE__ */ i.createElement(Qi, ne({
1851
1846
  ref: z,
1852
1847
  elementRef: Z,
1853
1848
  role: c === null ? "none" : c || "menuitem",
1854
1849
  tabIndex: s ? null : -1,
1855
- "data-menu-id": C && h ? null : h
1856
- }, fr(E, ["extra"]), we, ye, {
1850
+ "data-menu-id": C && g ? null : g
1851
+ }, vr(E, ["extra"]), we, ye, {
1857
1852
  component: "li",
1858
1853
  "aria-disabled": s,
1859
- style: T(T({}, q), t),
1860
- className: Ke($, me(me(me({}, "".concat($, "-active"), x), "".concat($, "-selected"), le), "".concat($, "-disabled"), j), r),
1854
+ style: T(T({}, G), t),
1855
+ className: Oe($, me(me(me({}, "".concat($, "-active"), x), "".concat($, "-selected"), le), "".concat($, "-disabled"), j), r),
1861
1856
  onClick: K,
1862
1857
  onKeyDown: B,
1863
1858
  onFocus: re
1864
- }), u, /* @__PURE__ */ i.createElement(ma, {
1859
+ }), u, /* @__PURE__ */ i.createElement(ha, {
1865
1860
  props: T(T({}, e), {}, {
1866
1861
  isSelected: le
1867
1862
  }),
@@ -1871,31 +1866,31 @@ var Gi = ["title", "attribute", "elementRef"], qi = ["style", "className", "even
1871
1866
  selected: le
1872
1867
  })), W;
1873
1868
  });
1874
- function Yi(e, n) {
1875
- var t = e.eventKey, r = Vn(), a = Sn(t);
1869
+ function Xi(e, n) {
1870
+ var t = e.eventKey, r = Wn(), a = Sn(t);
1876
1871
  return i.useEffect(function() {
1877
1872
  if (r)
1878
1873
  return r.registerPath(t, a), function() {
1879
1874
  r.unregisterPath(t, a);
1880
1875
  };
1881
- }, [a]), r ? null : /* @__PURE__ */ i.createElement(Qi, ne({}, e, {
1876
+ }, [a]), r ? null : /* @__PURE__ */ i.createElement(Yi, ne({}, e, {
1882
1877
  ref: n
1883
1878
  }));
1884
1879
  }
1885
- const hr = /* @__PURE__ */ i.forwardRef(Yi);
1886
- var Xi = ["className", "children"], eo = function(n, t) {
1887
- var r = n.className, a = n.children, o = ke(n, Xi), s = i.useContext(st), l = s.prefixCls, u = s.mode, c = s.rtl;
1880
+ const gr = /* @__PURE__ */ i.forwardRef(Xi);
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;
1888
1883
  return /* @__PURE__ */ i.createElement("ul", ne({
1889
- className: Ke(l, c && "".concat(l, "-rtl"), "".concat(l, "-sub"), "".concat(l, "-").concat(u === "inline" ? "inline" : "vertical"), r),
1884
+ className: Oe(l, c && "".concat(l, "-rtl"), "".concat(l, "-sub"), "".concat(l, "-").concat(u === "inline" ? "inline" : "vertical"), r),
1890
1885
  role: "menu"
1891
1886
  }, o, {
1892
1887
  "data-menu-list": !0,
1893
1888
  ref: t
1894
1889
  }), a);
1895
- }, gr = /* @__PURE__ */ i.forwardRef(eo);
1896
- gr.displayName = "SubMenuList";
1897
- function yr(e, n) {
1898
- return zr(e).map(function(t, r) {
1890
+ }, yr = /* @__PURE__ */ i.forwardRef(to);
1891
+ yr.displayName = "SubMenuList";
1892
+ function br(e, n) {
1893
+ return Vr(e).map(function(t, r) {
1899
1894
  if (/* @__PURE__ */ i.isValidElement(t)) {
1900
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;
1901
1896
  u && (l = "tmp_key-".concat([].concat(Rt(n), [r]).join("-")));
@@ -1911,7 +1906,7 @@ function yr(e, n) {
1911
1906
  var Ve = {
1912
1907
  adjustX: 1,
1913
1908
  adjustY: 1
1914
- }, to = {
1909
+ }, no = {
1915
1910
  topLeft: {
1916
1911
  points: ["bl", "tl"],
1917
1912
  overflow: Ve
@@ -1944,7 +1939,7 @@ var Ve = {
1944
1939
  points: ["bl", "br"],
1945
1940
  overflow: Ve
1946
1941
  }
1947
- }, no = {
1942
+ }, ro = {
1948
1943
  topLeft: {
1949
1944
  points: ["bl", "tl"],
1950
1945
  overflow: Ve
@@ -1978,20 +1973,20 @@ var Ve = {
1978
1973
  overflow: Ve
1979
1974
  }
1980
1975
  };
1981
- function ha(e, n, t) {
1976
+ function ga(e, n, t) {
1982
1977
  if (n)
1983
1978
  return n;
1984
1979
  if (t)
1985
1980
  return t[e] || t.other;
1986
1981
  }
1987
- var ro = {
1982
+ var ao = {
1988
1983
  horizontal: "bottomLeft",
1989
1984
  vertical: "rightTop",
1990
1985
  "vertical-left": "rightTop",
1991
1986
  "vertical-right": "leftTop"
1992
1987
  };
1993
- function ao(e) {
1994
- 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(st), d = f.getPopupContainer, m = f.rtl, g = f.subMenuOpenDelay, E = f.subMenuCloseDelay, h = f.builtinPlacements, M = f.triggerSubMenuAction, S = f.forceSubMenuRender, y = f.rootClassName, w = f.motion, C = f.defaultMotions, v = i.useState(!1), N = O(v, 2), k = N[0], D = N[1], H = m ? T(T({}, no), h) : T(T({}, to), h), $ = ro[c], z = ha(c, w, C), L = i.useRef(z);
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);
1995
1990
  c !== "inline" && (L.current = z);
1996
1991
  var j = T(T({}, L.current), {}, {
1997
1992
  leavedClassName: "".concat(n, "-hidden"),
@@ -2004,21 +1999,21 @@ function ao(e) {
2004
1999
  }), function() {
2005
2000
  Ht.cancel(Z.current);
2006
2001
  };
2007
- }, [t]), /* @__PURE__ */ i.createElement(aa, {
2002
+ }, [t]), /* @__PURE__ */ i.createElement(ia, {
2008
2003
  prefixCls: n,
2009
- popupClassName: Ke("".concat(n, "-popup"), me({}, "".concat(n, "-rtl"), m), s, y),
2004
+ popupClassName: Oe("".concat(n, "-popup"), me({}, "".concat(n, "-rtl"), m), s, y),
2010
2005
  stretch: c === "horizontal" ? "minWidth" : null,
2011
2006
  getPopupContainer: d,
2012
2007
  builtinPlacements: H,
2013
2008
  popupPlacement: $,
2014
- popupVisible: k,
2009
+ popupVisible: O,
2015
2010
  popup: a,
2016
2011
  popupStyle: o,
2017
2012
  popupAlign: l && {
2018
2013
  offset: l
2019
2014
  },
2020
2015
  action: u ? [] : [M],
2021
- mouseEnterDelay: g,
2016
+ mouseEnterDelay: h,
2022
2017
  mouseLeaveDelay: E,
2023
2018
  onPopupVisibleChange: b,
2024
2019
  forceRender: S,
@@ -2026,22 +2021,22 @@ function ao(e) {
2026
2021
  fresh: !0
2027
2022
  }, r);
2028
2023
  }
2029
- function io(e) {
2030
- var n = e.id, t = e.open, r = e.keyPath, a = e.children, o = "inline", s = i.useContext(st), l = s.prefixCls, u = s.forceSubMenuRender, c = s.motion, b = s.defaultMotions, f = s.mode, d = i.useRef(!1);
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);
2031
2026
  d.current = f === o;
2032
- var m = i.useState(!d.current), g = O(m, 2), E = g[0], h = g[1], M = d.current ? t : !1;
2027
+ var m = i.useState(!d.current), h = k(m, 2), E = h[0], g = h[1], M = d.current ? t : !1;
2033
2028
  i.useEffect(function() {
2034
- d.current && h(!1);
2029
+ d.current && g(!1);
2035
2030
  }, [f]);
2036
- var S = T({}, ha(o, c, b));
2031
+ var S = T({}, ga(o, c, b));
2037
2032
  r.length > 1 && (S.motionAppear = !1);
2038
2033
  var y = S.onVisibleChanged;
2039
2034
  return S.onVisibleChanged = function(w) {
2040
- return !d.current && !w && h(!0), y == null ? void 0 : y(w);
2035
+ return !d.current && !w && g(!0), y == null ? void 0 : y(w);
2041
2036
  }, E ? null : /* @__PURE__ */ i.createElement(Rn, {
2042
2037
  mode: o,
2043
2038
  locked: !d.current
2044
- }, /* @__PURE__ */ i.createElement(ur, ne({
2039
+ }, /* @__PURE__ */ i.createElement(cr, ne({
2045
2040
  visible: M
2046
2041
  }, S, {
2047
2042
  forceRender: u,
@@ -2049,42 +2044,42 @@ function io(e) {
2049
2044
  leavedClassName: "".concat(l, "-hidden")
2050
2045
  }), function(w) {
2051
2046
  var C = w.className, v = w.style;
2052
- return /* @__PURE__ */ i.createElement(gr, {
2047
+ return /* @__PURE__ */ i.createElement(yr, {
2053
2048
  id: n,
2054
2049
  className: C,
2055
2050
  style: v
2056
2051
  }, a);
2057
2052
  }));
2058
2053
  }
2059
- var oo = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], so = ["active"], lo = /* @__PURE__ */ i.forwardRef(function(e, n) {
2060
- 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, g = e.popupStyle, E = e.onClick, h = e.onMouseEnter, M = e.onMouseLeave, S = e.onTitleClick, y = e.onTitleMouseEnter, w = e.onTitleMouseLeave, C = ke(e, oo), v = sa(o), N = i.useContext(st), k = N.prefixCls, D = N.mode, H = N.openKeys, $ = N.disabled, z = N.overflowDisabled, L = N.activeKey, j = N.selectedKeys, Z = N.itemIcon, G = N.expandIcon, Q = N.onItemClick, V = N.onOpenChange, A = N.onActive, x = i.useContext(vr), we = x._internalRenderSubMenuItem, le = i.useContext(ca), q = le.isSubPathKey, K = Sn(), B = "".concat(k, "-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__ */ 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();
2061
2056
  process.env.NODE_ENV !== "production" && s && un(!1, "SubMenu should not leave undefined `key`.");
2062
- var Y = b ?? Z, ae = f ?? G, be = H.includes(o), ie = !z && be, Pe = q(j, o), Me = va(o, re, y, w), oe = Me.active, Be = ke(Me, so), Ue = i.useState(!1), ue = O(Ue, 2), Ne = ue[0], We = ue[1], de = function(X) {
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) {
2063
2058
  re || We(X);
2064
2059
  }, ht = function(X) {
2065
- de(!0), h == null || h({
2060
+ ve(!0), g == null || g({
2066
2061
  key: o,
2067
2062
  domEvent: X
2068
2063
  });
2069
2064
  }, F = function(X) {
2070
- de(!1), M == null || M({
2065
+ ve(!1), M == null || M({
2071
2066
  key: o,
2072
2067
  domEvent: X
2073
2068
  });
2074
2069
  }, Je = i.useMemo(function() {
2075
- return oe || (D !== "inline" ? Ne || q([L], o) : !1);
2076
- }, [D, oe, L, Ne, o, q]), pe = da(K.length), J = function(X) {
2070
+ return oe || (D !== "inline" ? _e || G([L], o) : !1);
2071
+ }, [D, oe, L, _e, o, G]), pe = ma(K.length), J = function(X) {
2077
2072
  re || (S == null || S({
2078
2073
  key: o,
2079
2074
  domEvent: X
2080
2075
  }), D === "inline" && V(o, !be));
2081
- }, Fe = Cn(function(Ie) {
2082
- E == null || E(An(Ie)), Q(Ie);
2076
+ }, Fe = Cn(function(xe) {
2077
+ E == null || E(An(xe)), Q(xe);
2083
2078
  }), Ae = function(X) {
2084
2079
  D !== "inline" && V(o, X);
2085
2080
  }, $e = function() {
2086
2081
  A(o);
2087
- }, Ze = v && "".concat(v, "-popup"), _e = /* @__PURE__ */ i.createElement("div", ne({
2082
+ }, Ze = v && "".concat(v, "-popup"), Ie = /* @__PURE__ */ i.createElement("div", ne({
2088
2083
  role: "menuitem",
2089
2084
  style: pe,
2090
2085
  className: "".concat(B, "-title"),
@@ -2098,7 +2093,7 @@ var oo = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
2098
2093
  "aria-disabled": re,
2099
2094
  onClick: J,
2100
2095
  onFocus: $e
2101
- }, Be), a, /* @__PURE__ */ i.createElement(ma, {
2096
+ }, Be), a, /* @__PURE__ */ i.createElement(ha, {
2102
2097
  icon: D !== "horizontal" ? ae : void 0,
2103
2098
  props: T(T({}, e), {}, {
2104
2099
  isOpen: ie,
@@ -2110,26 +2105,26 @@ var oo = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
2110
2105
  }))), Ce = i.useRef(D);
2111
2106
  if (D !== "inline" && K.length > 1 ? Ce.current = "vertical" : Ce.current = D, !z) {
2112
2107
  var ce = Ce.current;
2113
- _e = /* @__PURE__ */ i.createElement(ao, {
2108
+ Ie = /* @__PURE__ */ i.createElement(io, {
2114
2109
  mode: ce,
2115
2110
  prefixCls: B,
2116
2111
  visible: !u && ie && D !== "inline",
2117
2112
  popupClassName: d,
2118
2113
  popupOffset: m,
2119
- popupStyle: g,
2114
+ popupStyle: h,
2120
2115
  popup: /* @__PURE__ */ i.createElement(
2121
2116
  Rn,
2122
2117
  {
2123
2118
  mode: ce === "horizontal" ? "vertical" : ce
2124
2119
  },
2125
- /* @__PURE__ */ i.createElement(gr, {
2120
+ /* @__PURE__ */ i.createElement(yr, {
2126
2121
  id: Ze,
2127
2122
  ref: W
2128
2123
  }, c)
2129
2124
  ),
2130
2125
  disabled: re,
2131
2126
  onVisibleChange: Ae
2132
- }, _e);
2127
+ }, Ie);
2133
2128
  }
2134
2129
  var Re = /* @__PURE__ */ i.createElement(Mt.Item, ne({
2135
2130
  ref: n,
@@ -2137,16 +2132,16 @@ var oo = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
2137
2132
  }, C, {
2138
2133
  component: "li",
2139
2134
  style: t,
2140
- className: Ke(B, "".concat(B, "-").concat(D), r, me(me(me(me({}, "".concat(B, "-open"), ie), "".concat(B, "-active"), Je), "".concat(B, "-selected"), Pe), "".concat(B, "-disabled"), re)),
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)),
2141
2136
  onMouseEnter: ht,
2142
2137
  onMouseLeave: F
2143
- }), _e, !z && /* @__PURE__ */ i.createElement(io, {
2138
+ }), Ie, !z && /* @__PURE__ */ i.createElement(oo, {
2144
2139
  id: Ze,
2145
2140
  open: ie,
2146
2141
  keyPath: K
2147
2142
  }, c));
2148
2143
  return we && (Re = we(Re, e, {
2149
- selected: Pe,
2144
+ selected: Ne,
2150
2145
  active: Je,
2151
2146
  open: ie,
2152
2147
  disabled: re
@@ -2156,8 +2151,8 @@ var oo = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
2156
2151
  itemIcon: Y,
2157
2152
  expandIcon: ae
2158
2153
  }, Re);
2159
- }), Wn = /* @__PURE__ */ i.forwardRef(function(e, n) {
2160
- var t = e.eventKey, r = e.children, a = Sn(t), o = yr(r, a), s = Vn();
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();
2161
2156
  i.useEffect(function() {
2162
2157
  if (s)
2163
2158
  return s.registerPath(t, a), function() {
@@ -2165,25 +2160,25 @@ var oo = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
2165
2160
  };
2166
2161
  }, [a]);
2167
2162
  var l;
2168
- return s ? l = o : l = /* @__PURE__ */ i.createElement(lo, ne({
2163
+ return s ? l = o : l = /* @__PURE__ */ i.createElement(uo, ne({
2169
2164
  ref: n
2170
- }, e), o), /* @__PURE__ */ i.createElement(ua.Provider, {
2165
+ }, e), o), /* @__PURE__ */ i.createElement(ca.Provider, {
2171
2166
  value: a
2172
2167
  }, l);
2173
2168
  });
2174
- process.env.NODE_ENV !== "production" && (Wn.displayName = "SubMenu");
2175
- function ga(e) {
2176
- var n = e.className, t = e.style, r = i.useContext(st), a = r.prefixCls, o = Vn();
2169
+ process.env.NODE_ENV !== "production" && (Fn.displayName = "SubMenu");
2170
+ function ya(e) {
2171
+ var n = e.className, t = e.style, r = i.useContext(ot), a = r.prefixCls, o = Wn();
2177
2172
  return o ? null : /* @__PURE__ */ i.createElement("li", {
2178
2173
  role: "separator",
2179
- className: Ke("".concat(a, "-item-divider"), n),
2174
+ className: Oe("".concat(a, "-item-divider"), n),
2180
2175
  style: t
2181
2176
  });
2182
2177
  }
2183
- var uo = ["className", "title", "eventKey", "children"], co = /* @__PURE__ */ i.forwardRef(function(e, n) {
2178
+ var co = ["className", "title", "eventKey", "children"], fo = /* @__PURE__ */ i.forwardRef(function(e, n) {
2184
2179
  var t = e.className, r = e.title;
2185
2180
  e.eventKey;
2186
- var a = e.children, o = ke(e, uo), s = i.useContext(st), l = s.prefixCls, u = "".concat(l, "-item-group");
2181
+ var a = e.children, o = ke(e, co), s = i.useContext(ot), l = s.prefixCls, u = "".concat(l, "-item-group");
2187
2182
  return /* @__PURE__ */ i.createElement("li", ne({
2188
2183
  ref: n,
2189
2184
  role: "presentation"
@@ -2191,7 +2186,7 @@ var uo = ["className", "title", "eventKey", "children"], co = /* @__PURE__ */ i.
2191
2186
  onClick: function(b) {
2192
2187
  return b.stopPropagation();
2193
2188
  },
2194
- className: Ke(u, t)
2189
+ className: Oe(u, t)
2195
2190
  }), /* @__PURE__ */ i.createElement("div", {
2196
2191
  role: "presentation",
2197
2192
  className: "".concat(u, "-title"),
@@ -2200,87 +2195,87 @@ var uo = ["className", "title", "eventKey", "children"], co = /* @__PURE__ */ i.
2200
2195
  role: "group",
2201
2196
  className: "".concat(u, "-list")
2202
2197
  }, a));
2203
- }), br = /* @__PURE__ */ i.forwardRef(function(e, n) {
2204
- var t = e.eventKey, r = e.children, a = Sn(t), o = yr(r, a), s = Vn();
2205
- return s ? o : /* @__PURE__ */ i.createElement(co, ne({
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({
2206
2201
  ref: n
2207
- }, fr(e, ["warnKey"])), o);
2202
+ }, vr(e, ["warnKey"])), o);
2208
2203
  });
2209
- process.env.NODE_ENV !== "production" && (br.displayName = "MenuItemGroup");
2210
- var fo = ["label", "children", "key", "type", "extra"];
2211
- function sr(e, n, t) {
2204
+ process.env.NODE_ENV !== "production" && (pr.displayName = "MenuItemGroup");
2205
+ var vo = ["label", "children", "key", "type", "extra"];
2206
+ function lr(e, n, t) {
2212
2207
  var r = n.item, a = n.group, o = n.submenu, s = n.divider;
2213
2208
  return (e || []).map(function(l, u) {
2214
- if (l && $r(l) === "object") {
2215
- var c = l, b = c.label, f = c.children, d = c.key, m = c.type, g = c.extra, E = ke(c, fo), h = d ?? "tmp-".concat(u);
2209
+ 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);
2216
2211
  return f || m === "group" ? m === "group" ? /* @__PURE__ */ i.createElement(a, ne({
2217
- key: h
2212
+ key: g
2218
2213
  }, E, {
2219
2214
  title: b
2220
- }), sr(f, n, t)) : /* @__PURE__ */ i.createElement(o, ne({
2221
- key: h
2215
+ }), lr(f, n, t)) : /* @__PURE__ */ i.createElement(o, ne({
2216
+ key: g
2222
2217
  }, E, {
2223
2218
  title: b
2224
- }), sr(f, n, t)) : m === "divider" ? /* @__PURE__ */ i.createElement(s, ne({
2225
- key: h
2219
+ }), lr(f, n, t)) : m === "divider" ? /* @__PURE__ */ i.createElement(s, ne({
2220
+ key: g
2226
2221
  }, E)) : /* @__PURE__ */ i.createElement(r, ne({
2227
- key: h
2222
+ key: g
2228
2223
  }, E, {
2229
- extra: g
2230
- }), b, (!!g || g === 0) && /* @__PURE__ */ i.createElement("span", {
2224
+ extra: h
2225
+ }), b, (!!h || h === 0) && /* @__PURE__ */ i.createElement("span", {
2231
2226
  className: "".concat(t, "-item-extra")
2232
- }, g));
2227
+ }, h));
2233
2228
  }
2234
2229
  return null;
2235
2230
  }).filter(function(l) {
2236
2231
  return l;
2237
2232
  });
2238
2233
  }
2239
- function kr(e, n, t, r, a) {
2234
+ function Kr(e, n, t, r, a) {
2240
2235
  var o = e, s = T({
2241
- divider: ga,
2242
- item: hr,
2243
- group: br,
2244
- submenu: Wn
2236
+ divider: ya,
2237
+ item: gr,
2238
+ group: pr,
2239
+ submenu: Fn
2245
2240
  }, r);
2246
- return n && (o = sr(n, s, a)), yr(o, t);
2241
+ return n && (o = lr(n, s, a)), br(o, t);
2247
2242
  }
2248
- var vo = ["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 = [], mo = /* @__PURE__ */ i.forwardRef(function(e, n) {
2249
- 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, g = r.id, E = r.mode, h = 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, k = 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, G = 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, q = 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, Pe = r.getPopupContainer, Me = r.onClick, oe = r.onOpenChange, Be = r.onKeyDown, Ue = r.openAnimation, ue = r.openTransitionName, Ne = r._internalRenderMenuItem, We = r._internalRenderSubMenuItem, de = r._internalComponents, ht = ke(r, vo), F = i.useMemo(function() {
2250
- return [kr(d, f, Ft, de, o), kr(d, f, Ft, {}, o)];
2251
- }, [d, f, de]), Je = O(F, 2), pe = Je[0], J = Je[1], Fe = i.useState(!1), Ae = O(Fe, 2), $e = Ae[0], Ze = Ae[1], _e = i.useRef(), Ce = Ui(g), ce = m === "rtl";
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";
2252
2247
  process.env.NODE_ENV !== "production" && un(!Ue && !ue, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
2253
2248
  var Re = Dn(D, {
2254
2249
  value: H,
2255
2250
  postState: function(U) {
2256
2251
  return U || Ft;
2257
2252
  }
2258
- }), Ie = O(Re, 2), X = Ie[0], Te = Ie[1], ze = function(U) {
2253
+ }), xe = k(Re, 2), X = xe[0], Ke = xe[1], ze = function(U) {
2259
2254
  var te = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2260
2255
  function Le() {
2261
- Te(U), oe == null || oe(U);
2256
+ Ke(U), oe == null || oe(U);
2262
2257
  }
2263
- te ? Hr.flushSync(Le) : Le();
2264
- }, Et = i.useState(X), ut = O(Et, 2), at = ut[0], At = ut[1], xe = i.useRef(!1), De = i.useMemo(function() {
2265
- return (h === "inline" || h === "vertical") && M ? ["vertical", M] : [h, !1];
2266
- }, [h, M]), Ye = O(De, 2), fe = Ye[0], P = Ye[1], R = fe === "inline", I = i.useState(fe), se = O(I, 2), he = se[0], $t = se[1], je = i.useState(P), zt = O(je, 2), Vt = zt[0], ct = zt[1];
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
+ 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];
2267
2262
  i.useEffect(function() {
2268
- $t(fe), ct(P), xe.current && (R ? Te(at) : ze(Ft));
2269
- }, [fe, P]);
2270
- var Bt = i.useState(0), Ut = O(Bt, 2), ft = Ut[0], St = Ut[1], gt = ft >= pe.length - 1 || he !== "horizontal" || y;
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;
2271
2266
  i.useEffect(function() {
2272
2267
  R && At(X);
2273
2268
  }, [X]), i.useEffect(function() {
2274
- return xe.current = !0, function() {
2275
- xe.current = !1;
2269
+ return Te.current = !0, function() {
2270
+ Te.current = !1;
2276
2271
  };
2277
2272
  }, []);
2278
- var He = Hi(), vt = He.registerPath, Xe = He.unregisterPath, Pt = He.refreshOverflowKeys, dt = He.isSubPathKey, jt = He.getKeyPath, Ee = He.getKeys, Gt = He.getSubPathKeys, fn = i.useMemo(function() {
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() {
2279
2274
  return {
2280
2275
  registerPath: vt,
2281
- unregisterPath: Xe
2276
+ unregisterPath: Ye
2282
2277
  };
2283
- }, [vt, Xe]), yt = i.useMemo(function() {
2278
+ }, [vt, Ye]), yt = i.useMemo(function() {
2284
2279
  return {
2285
2280
  isSubPathKey: dt
2286
2281
  };
@@ -2290,23 +2285,23 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2290
2285
  return ee.key;
2291
2286
  }));
2292
2287
  }, [ft, gt]);
2293
- var qt = Dn($ || z && ((t = pe[0]) === null || t === void 0 ? void 0 : t.key), {
2288
+ var Gt = Dn($ || z && ((t = pe[0]) === null || t === void 0 ? void 0 : t.key), {
2294
2289
  value: $
2295
- }), Jt = O(qt, 2), mt = Jt[0], Nt = Jt[1], bt = Cn(function(ee) {
2290
+ }), Jt = k(Gt, 2), mt = Jt[0], Nt = Jt[1], bt = Cn(function(ee) {
2296
2291
  Nt(ee);
2297
2292
  }), Zt = Cn(function() {
2298
2293
  Nt(void 0);
2299
2294
  });
2300
- Ra(n, function() {
2295
+ Ea(n, function() {
2301
2296
  return {
2302
- list: _e.current,
2297
+ list: Ie.current,
2303
2298
  focus: function(U) {
2304
- var te, Le = Ee(), Oe = ir(Le, Ce), xt = Oe.elements, Wt = Oe.key2element, Xt = Oe.element2key, en = dr(_e.current, xt), tn = mt ?? (en[0] ? Xt.get(en[0]) : (te = pe.find(function(mn) {
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) {
2305
2300
  return !mn.props.disabled;
2306
- })) === null || te === void 0 ? void 0 : te.key), it = Wt.get(tn);
2307
- if (tn && it) {
2308
- var Ge;
2309
- it == null || (Ge = it.focus) === null || Ge === void 0 || Ge.call(it, U);
2301
+ })) === null || te === void 0 ? void 0 : te.key), at = Wt.get(tn);
2302
+ if (tn && at) {
2303
+ var qe;
2304
+ at == null || (qe = at.focus) === null || qe === void 0 || qe.call(at, U);
2310
2305
  }
2311
2306
  }
2312
2307
  };
@@ -2317,46 +2312,46 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2317
2312
  postState: function(U) {
2318
2313
  return Array.isArray(U) ? U : U == null ? Ft : [U];
2319
2314
  }
2320
- }), et = O(_t, 2), pt = et[0], Qt = et[1], tt = function(U) {
2315
+ }), Xe = k(_t, 2), pt = Xe[0], Qt = Xe[1], et = function(U) {
2321
2316
  if (j) {
2322
- var te = U.key, Le = pt.includes(te), Oe;
2323
- G ? Le ? Oe = pt.filter(function(Wt) {
2317
+ var te = U.key, Le = pt.includes(te), De;
2318
+ q ? Le ? De = pt.filter(function(Wt) {
2324
2319
  return Wt !== te;
2325
- }) : Oe = [].concat(Rt(pt), [te]) : Oe = [te], Qt(Oe);
2320
+ }) : De = [].concat(Rt(pt), [te]) : De = [te], Qt(De);
2326
2321
  var xt = T(T({}, U), {}, {
2327
- selectedKeys: Oe
2322
+ selectedKeys: De
2328
2323
  });
2329
2324
  Le ? x == null || x(xt) : A == null || A(xt);
2330
2325
  }
2331
- !G && X.length && he !== "inline" && ze(Ft);
2326
+ !q && X.length && he !== "inline" && ze(Ft);
2332
2327
  }, Qe = Cn(function(ee) {
2333
- Me == null || Me(An(ee)), tt(ee);
2328
+ Me == null || Me(An(ee)), et(ee);
2334
2329
  }), Ct = Cn(function(ee, U) {
2335
- var te = X.filter(function(Oe) {
2336
- return Oe !== ee;
2330
+ var te = X.filter(function(De) {
2331
+ return De !== ee;
2337
2332
  });
2338
2333
  if (U)
2339
2334
  te.push(ee);
2340
2335
  else if (he !== "inline") {
2341
- var Le = Gt(ee);
2342
- te = te.filter(function(Oe) {
2343
- return !Le.has(Oe);
2336
+ var Le = qt(ee);
2337
+ te = te.filter(function(De) {
2338
+ return !Le.has(De);
2344
2339
  });
2345
2340
  }
2346
- Fr(X, te, !0) || ze(te, !0);
2341
+ Hr(X, te, !0) || ze(te, !0);
2347
2342
  }), It = function(U, te) {
2348
2343
  var Le = te ?? !X.includes(U);
2349
2344
  Ct(U, Le);
2350
- }, nt = Vi(he, mt, ce, Ce, _e, Ee, jt, Nt, It, Be);
2345
+ }, tt = Wi(he, mt, ce, Ce, Ie, Ee, jt, Nt, It, Be);
2351
2346
  i.useEffect(function() {
2352
2347
  Ze(!0);
2353
2348
  }, []);
2354
2349
  var vn = i.useMemo(function() {
2355
2350
  return {
2356
- _internalRenderMenuItem: Ne,
2351
+ _internalRenderMenuItem: _e,
2357
2352
  _internalRenderSubMenuItem: We
2358
2353
  };
2359
- }, [Ne, We]), Yt = he !== "horizontal" || y ? pe : (
2354
+ }, [_e, We]), Yt = he !== "horizontal" || y ? pe : (
2360
2355
  // Need wrap for overflow dropdown that do not response for open
2361
2356
  pe.map(function(ee, U) {
2362
2357
  return (
@@ -2368,12 +2363,12 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2368
2363
  );
2369
2364
  })
2370
2365
  ), dn = /* @__PURE__ */ i.createElement(Mt, ne({
2371
- id: g,
2372
- ref: _e,
2366
+ id: h,
2367
+ ref: Ie,
2373
2368
  prefixCls: "".concat(o, "-overflow"),
2374
2369
  component: "ul",
2375
- itemComponent: hr,
2376
- className: Ke(o, "".concat(o, "-root"), "".concat(o, "-").concat(he), u, me(me({}, "".concat(o, "-inline-collapsed"), Vt), "".concat(o, "-rtl"), ce), s),
2370
+ 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),
2377
2372
  dir: m,
2378
2373
  style: l,
2379
2374
  role: "menu",
@@ -2384,8 +2379,8 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2384
2379
  },
2385
2380
  renderRawRest: function(U) {
2386
2381
  var te = U.length, Le = te ? pe.slice(-te) : null;
2387
- return /* @__PURE__ */ i.createElement(Wn, {
2388
- eventKey: or,
2382
+ return /* @__PURE__ */ i.createElement(Fn, {
2383
+ eventKey: sr,
2389
2384
  title: be,
2390
2385
  disabled: gt,
2391
2386
  internalPopupClose: te === 0,
@@ -2398,11 +2393,11 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2398
2393
  onVisibleChange: function(U) {
2399
2394
  St(U);
2400
2395
  },
2401
- onKeyDown: nt
2396
+ onKeyDown: tt
2402
2397
  }, ht));
2403
- return /* @__PURE__ */ i.createElement(vr.Provider, {
2398
+ return /* @__PURE__ */ i.createElement(dr.Provider, {
2404
2399
  value: vn
2405
- }, /* @__PURE__ */ i.createElement(ia.Provider, {
2400
+ }, /* @__PURE__ */ i.createElement(oa.Provider, {
2406
2401
  value: Ce
2407
2402
  }, /* @__PURE__ */ i.createElement(Rn, {
2408
2403
  prefixCls: o,
@@ -2411,7 +2406,7 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2411
2406
  openKeys: X,
2412
2407
  rtl: ce,
2413
2408
  disabled: S,
2414
- motion: $e ? q : null,
2409
+ motion: $e ? G : null,
2415
2410
  defaultMotions: $e ? K : null,
2416
2411
  activeKey: mt,
2417
2412
  onActive: bt,
@@ -2420,51 +2415,51 @@ var vo = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
2420
2415
  inlineIndent: le,
2421
2416
  subMenuOpenDelay: C,
2422
2417
  subMenuCloseDelay: N,
2423
- forceSubMenuRender: k,
2418
+ forceSubMenuRender: O,
2424
2419
  builtinPlacements: ye,
2425
2420
  triggerSubMenuAction: re,
2426
- getPopupContainer: Pe,
2421
+ getPopupContainer: Ne,
2427
2422
  itemIcon: W,
2428
2423
  expandIcon: Y,
2429
2424
  onItemClick: Qe,
2430
2425
  onOpenChange: Ct
2431
- }, /* @__PURE__ */ i.createElement(ca.Provider, {
2426
+ }, /* @__PURE__ */ i.createElement(fa.Provider, {
2432
2427
  value: yt
2433
2428
  }, dn), /* @__PURE__ */ i.createElement("div", {
2434
2429
  style: {
2435
2430
  display: "none"
2436
2431
  },
2437
2432
  "aria-hidden": !0
2438
- }, /* @__PURE__ */ i.createElement(la.Provider, {
2433
+ }, /* @__PURE__ */ i.createElement(ua.Provider, {
2439
2434
  value: fn
2440
2435
  }, J)))));
2441
- }), Fn = mo;
2442
- Fn.Item = hr;
2443
- Fn.SubMenu = Wn;
2444
- Fn.ItemGroup = br;
2445
- Fn.Divider = ga;
2446
- var ho = { 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" }, go = function(n, t) {
2447
- return /* @__PURE__ */ i.createElement(wa, ne({}, n, {
2436
+ }), Hn = ho;
2437
+ Hn.Item = gr;
2438
+ Hn.SubMenu = Fn;
2439
+ Hn.ItemGroup = pr;
2440
+ Hn.Divider = ya;
2441
+ 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, {
2448
2443
  ref: t,
2449
- icon: ho
2444
+ icon: go
2450
2445
  }));
2451
- }, yo = /* @__PURE__ */ i.forwardRef(go);
2452
- process.env.NODE_ENV !== "production" && (yo.displayName = "EllipsisOutlined");
2446
+ }, bo = /* @__PURE__ */ i.forwardRef(yo);
2447
+ process.env.NODE_ENV !== "production" && (bo.displayName = "EllipsisOutlined");
2453
2448
  export {
2454
- Ro as D,
2455
- Fn as E,
2456
- hr as M,
2449
+ Eo as D,
2450
+ Hn as E,
2451
+ gr as M,
2457
2452
  cn as R,
2458
- Wn as S,
2459
- aa as T,
2460
- Mo as a,
2461
- yo as b,
2462
- ga as c,
2463
- br as d,
2464
- Za as e,
2465
- Qa as f,
2466
- Ja as g,
2467
- ai as i,
2468
- Ya as s,
2453
+ Fn as S,
2454
+ ia as T,
2455
+ Ro as a,
2456
+ bo as b,
2457
+ ya as c,
2458
+ pr as d,
2459
+ Qa as e,
2460
+ Ya as f,
2461
+ Za as g,
2462
+ ii as i,
2463
+ Xa as s,
2469
2464
  Sn as u
2470
2465
  };