@notificationapi/react 0.0.13 → 0.0.15

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.
@@ -1,9 +1,9 @@
1
1
  import { jsx as nt, jsxs as mi } from "react/jsx-runtime";
2
2
  import { InboxHeader as Un } from "../components/Notifications/InboxHeader.js";
3
- import { K as et, c as Se, v as Ht, w as re, L as bt, _ as ze, d as ce, al as $t, A as bn, am as yn, ac as Ft, x as gi, p as vi, M as ue, O as st, an as pi, q as mt, t as hi, ao as Si, ap as bi, aq as yi, ar as Ci, z as $i, as as qn, h as dn, T as an, g as Wt, m as Nt, a as xt, r as Qt, at as Cn, u as J, Q as br, j as zn, D as xi, b as $n, n as wi, N as Yn, o as Ei, au as Ii } from "./colors.js";
4
- import { n as yr, K as ne, D as fn, E as Oi, G as Ni, u as en, o as _n, x as xn, m as Cr, f as Mi, I as nn, s as Ri, R as Pi, e as Di, h as zi, H as _i, p as Ti, F as Li, j as Tn, J as Bi, q as ji, d as Hi, L as Vi, M as Ai, O as Fi, Q as Wi, S as Ki, U as Xi, V as Gi } from "./index3.js";
3
+ import { K as et, c as Se, v as Ht, w as re, L as bt, _ as ze, d as ce, al as $t, A as bn, am as yn, ac as Ft, x as gi, p as vi, M as ue, O as st, an as pi, q as mt, t as hi, ao as Si, ap as bi, aq as yi, ar as Ci, z as $i, as as qn, h as dn, T as an, g as Wt, m as Nt, a as xt, r as Qt, at as Cn, u as J, Q as br, j as zn, D as xi, b as $n, n as Ei, N as Yn, o as wi, au as Ii } from "./colors.js";
4
+ import { n as yr, K as ne, D as fn, E as Oi, G as Ni, u as en, o as _n, x as xn, m as Cr, f as Ri, I as nn, s as Mi, R as Pi, e as Di, h as zi, H as _i, p as Ti, F as Li, j as Tn, J as Bi, q as ji, d as Hi, L as Vi, M as Ai, O as Fi, Q as Wi, S as Ki, U as Xi, V as Gi } from "./index3.js";
5
5
  import * as o from "react";
6
- import G, { useState as jt, useMemo as wn, useCallback as Jn, useRef as De, useEffect as sn, useContext as Yt, createContext as Ui, Children as Qn } from "react";
6
+ import G, { useState as jt, useMemo as En, useCallback as Jn, useRef as De, useEffect as sn, useContext as Yt, createContext as Ui, Children as Qn } from "react";
7
7
  import { u as qi, r as Jt, a as $r, N as Zn } from "./Notification.js";
8
8
  import { NotificationAPIContext as xr } from "../components/Provider/index.js";
9
9
  import { p as tn, a as kn, R as Yi } from "./BellOutlined.js";
@@ -135,7 +135,7 @@ const to = new et("antMoveDownIn", {
135
135
  animationTimingFunction: e.motionEaseInOutCirc
136
136
  }
137
137
  }];
138
- }, wr = new et("antSlideUpIn", {
138
+ }, Er = new et("antSlideUpIn", {
139
139
  "0%": {
140
140
  transform: "scaleY(0.8)",
141
141
  transformOrigin: "0% 0%",
@@ -146,7 +146,7 @@ const to = new et("antMoveDownIn", {
146
146
  transformOrigin: "0% 0%",
147
147
  opacity: 1
148
148
  }
149
- }), Er = new et("antSlideUpOut", {
149
+ }), wr = new et("antSlideUpOut", {
150
150
  "0%": {
151
151
  transform: "scaleY(1)",
152
152
  transformOrigin: "0% 0%",
@@ -225,8 +225,8 @@ const to = new et("antMoveDownIn", {
225
225
  }
226
226
  }), vo = {
227
227
  "slide-up": {
228
- inKeyframes: wr,
229
- outKeyframes: Er
228
+ inKeyframes: Er,
229
+ outKeyframes: wr
230
230
  },
231
231
  "slide-down": {
232
232
  inKeyframes: Ir,
@@ -319,7 +319,7 @@ function So() {
319
319
  };
320
320
  return [r, s, l];
321
321
  }
322
- function Mr() {
322
+ function Rr() {
323
323
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250, t = o.useRef(null), n = o.useRef(null);
324
324
  o.useEffect(function() {
325
325
  return function() {
@@ -400,7 +400,7 @@ function $o(e, t) {
400
400
  $(null);
401
401
  };
402
402
  }, []);
403
- var w = a && i !== Gt ? a(i) : b, P;
403
+ var E = a && i !== Gt ? a(i) : b, P;
404
404
  r || (P = {
405
405
  opacity: S ? 0 : 1,
406
406
  height: S ? 0 : Gt,
@@ -416,7 +416,7 @@ function $o(e, t) {
416
416
  style: ce(ce({}, P), d)
417
417
  }, C, h, {
418
418
  ref: t
419
- }), w);
419
+ }), E);
420
420
  return l && (x = /* @__PURE__ */ o.createElement(fn, {
421
421
  onResize: function(O) {
422
422
  var I = O.offsetWidth;
@@ -437,7 +437,7 @@ function xo(e) {
437
437
  }, t.port2.postMessage(void 0);
438
438
  }
439
439
  }
440
- function wo() {
440
+ function Eo() {
441
441
  var e = o.useRef(null), t = function(r) {
442
442
  e.current || (e.current = [], xo(function() {
443
443
  yn.unstable_batchedUpdates(function() {
@@ -457,10 +457,10 @@ function Zt(e, t) {
457
457
  });
458
458
  return [i, l];
459
459
  }
460
- var cn = /* @__PURE__ */ G.createContext(null), Eo = ["component"], Io = ["className"], Oo = ["className"], No = function(t, n) {
460
+ var cn = /* @__PURE__ */ G.createContext(null), wo = ["component"], Io = ["className"], Oo = ["className"], No = function(t, n) {
461
461
  var r = o.useContext(cn);
462
462
  if (!r) {
463
- var i = t.component, a = i === void 0 ? "div" : i, l = bt(t, Eo);
463
+ var i = t.component, a = i === void 0 ? "div" : i, l = bt(t, wo);
464
464
  return /* @__PURE__ */ o.createElement(a, ze({}, l, {
465
465
  ref: n
466
466
  }));
@@ -472,35 +472,35 @@ var cn = /* @__PURE__ */ G.createContext(null), Eo = ["component"], Io = ["class
472
472
  ref: n,
473
473
  className: Se(s, v)
474
474
  }, u, f)));
475
- }, Rr = /* @__PURE__ */ o.forwardRef(No);
476
- Rr.displayName = "RawItem";
477
- var Mo = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], Pr = "responsive", Dr = "invalidate";
478
- function Ro(e) {
475
+ }, Mr = /* @__PURE__ */ o.forwardRef(No);
476
+ Mr.displayName = "RawItem";
477
+ var Ro = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"], Pr = "responsive", Dr = "invalidate";
478
+ function Mo(e) {
479
479
  return "+ ".concat(e.length, " ...");
480
480
  }
481
481
  function Po(e, t) {
482
- var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, i = e.data, a = i === void 0 ? [] : i, l = e.renderItem, s = e.renderRawItem, u = e.itemKey, v = e.itemWidth, f = v === void 0 ? 10 : v, d = e.ssr, b = e.style, c = e.className, m = e.maxCount, g = e.renderRest, p = e.renderRawRest, h = e.suffix, S = e.component, $ = S === void 0 ? "div" : S, w = e.itemComponent, P = e.onVisibleChange, C = bt(e, Mo), x = d === "full", D = wo(), O = Zt(D, null), I = re(O, 2), H = I[0], j = I[1], T = H || 0, R = Zt(D, /* @__PURE__ */ new Map()), _ = re(R, 2), Y = _[0], V = _[1], M = Zt(D, 0), L = re(M, 2), k = L[0], W = L[1], Ie = Zt(D, 0), de = re(Ie, 2), fe = de[0], me = de[1], Ae = Zt(D, 0), ie = re(Ae, 2), ye = ie[0], _e = ie[1], N = jt(null), y = re(N, 2), F = y[0], Q = y[1], B = jt(null), E = re(B, 2), ee = E[0], xe = E[1], ae = o.useMemo(function() {
482
+ var n = e.prefixCls, r = n === void 0 ? "rc-overflow" : n, i = e.data, a = i === void 0 ? [] : i, l = e.renderItem, s = e.renderRawItem, u = e.itemKey, v = e.itemWidth, f = v === void 0 ? 10 : v, d = e.ssr, b = e.style, c = e.className, m = e.maxCount, g = e.renderRest, p = e.renderRawRest, h = e.suffix, S = e.component, $ = S === void 0 ? "div" : S, E = e.itemComponent, P = e.onVisibleChange, C = bt(e, Ro), x = d === "full", D = Eo(), O = Zt(D, null), I = re(O, 2), H = I[0], j = I[1], T = H || 0, M = Zt(D, /* @__PURE__ */ new Map()), _ = re(M, 2), Y = _[0], V = _[1], R = Zt(D, 0), L = re(R, 2), k = L[0], W = L[1], Ie = Zt(D, 0), de = re(Ie, 2), fe = de[0], me = de[1], Ae = Zt(D, 0), ie = re(Ae, 2), ye = ie[0], _e = ie[1], N = jt(null), y = re(N, 2), F = y[0], Q = y[1], B = jt(null), w = re(B, 2), ee = w[0], xe = w[1], ae = o.useMemo(function() {
483
483
  return ee === null && x ? Number.MAX_SAFE_INTEGER : ee || 0;
484
- }, [ee, H]), ve = jt(!1), Oe = re(ve, 2), le = Oe[0], $e = Oe[1], Ce = "".concat(r, "-item"), be = Math.max(k, fe), Ge = m === Pr, we = a.length && Ge, Te = m === Dr, Pe = we || typeof m == "number" && a.length > m, Le = wn(function() {
484
+ }, [ee, H]), ve = jt(!1), Oe = re(ve, 2), le = Oe[0], $e = Oe[1], Ce = "".concat(r, "-item"), be = Math.max(k, fe), Ge = m === Pr, Ee = a.length && Ge, Te = m === Dr, Pe = Ee || typeof m == "number" && a.length > m, Le = En(function() {
485
485
  var oe = a;
486
- return we ? H === null && x ? oe = a : oe = a.slice(0, Math.min(a.length, T / f)) : typeof m == "number" && (oe = a.slice(0, m)), oe;
487
- }, [a, f, H, m, we]), Be = wn(function() {
488
- return we ? a.slice(ae + 1) : a.slice(Le.length);
489
- }, [a, Le, we, ae]), Qe = Jn(function(oe, U) {
490
- var Me;
491
- return typeof u == "function" ? u(oe) : (Me = u && (oe == null ? void 0 : oe[u])) !== null && Me !== void 0 ? Me : U;
486
+ return Ee ? H === null && x ? oe = a : oe = a.slice(0, Math.min(a.length, T / f)) : typeof m == "number" && (oe = a.slice(0, m)), oe;
487
+ }, [a, f, H, m, Ee]), Be = En(function() {
488
+ return Ee ? a.slice(ae + 1) : a.slice(Le.length);
489
+ }, [a, Le, Ee, ae]), Qe = Jn(function(oe, U) {
490
+ var Re;
491
+ return typeof u == "function" ? u(oe) : (Re = u && (oe == null ? void 0 : oe[u])) !== null && Re !== void 0 ? Re : U;
492
492
  }, [u]), Ze = Jn(l || function(oe) {
493
493
  return oe;
494
494
  }, [l]);
495
- function pe(oe, U, Me) {
496
- ee === oe && (U === void 0 || U === F) || (xe(oe), Me || ($e(oe < a.length - 1), P == null || P(oe)), U !== void 0 && Q(U));
495
+ function pe(oe, U, Re) {
496
+ ee === oe && (U === void 0 || U === F) || (xe(oe), Re || ($e(oe < a.length - 1), P == null || P(oe)), U !== void 0 && Q(U));
497
497
  }
498
498
  function Xe(oe, U) {
499
499
  j(U.clientWidth);
500
500
  }
501
501
  function it(oe, U) {
502
- V(function(Me) {
503
- var We = new Map(Me);
502
+ V(function(Re) {
503
+ var We = new Map(Re);
504
504
  return U === null ? We.delete(oe) : We.set(oe, U), We;
505
505
  });
506
506
  }
@@ -515,7 +515,7 @@ function Po(e, t) {
515
515
  }
516
516
  Ft(function() {
517
517
  if (T && typeof be == "number" && Le) {
518
- var oe = ye, U = Le.length, Me = U - 1;
518
+ var oe = ye, U = Le.length, Re = U - 1;
519
519
  if (!U) {
520
520
  pe(0, null);
521
521
  return;
@@ -527,9 +527,9 @@ function Po(e, t) {
527
527
  break;
528
528
  }
529
529
  if (oe += A, // Only one means `totalWidth` is the final width
530
- Me === 0 && oe <= T || // Last two width will be the final width
531
- We === Me - 1 && oe + je(Me) <= T) {
532
- pe(Me, null);
530
+ Re === 0 && oe <= T || // Last two width will be the final width
531
+ We === Re - 1 && oe + je(Re) <= T) {
532
+ pe(Re, null);
533
533
  break;
534
534
  } else if (oe + be > T) {
535
535
  pe(We - 1, oe - A - ye + fe);
@@ -540,36 +540,36 @@ function Po(e, t) {
540
540
  }
541
541
  }, [T, Y, fe, ye, Qe, Le]);
542
542
  var yt = le && !!Be.length, ct = {};
543
- F !== null && we && (ct = {
543
+ F !== null && Ee && (ct = {
544
544
  position: "absolute",
545
545
  left: F,
546
546
  top: 0
547
547
  });
548
548
  var qe = {
549
549
  prefixCls: Ce,
550
- responsive: we,
551
- component: w,
550
+ responsive: Ee,
551
+ component: E,
552
552
  invalidate: Te
553
- }, Rt = s ? function(oe, U) {
554
- var Me = Qe(oe, U);
553
+ }, Mt = s ? function(oe, U) {
554
+ var Re = Qe(oe, U);
555
555
  return /* @__PURE__ */ o.createElement(cn.Provider, {
556
- key: Me,
556
+ key: Re,
557
557
  value: ce(ce({}, qe), {}, {
558
558
  order: U,
559
559
  item: oe,
560
- itemKey: Me,
560
+ itemKey: Re,
561
561
  registerSize: it,
562
562
  display: U <= ae
563
563
  })
564
564
  }, s(oe, U));
565
565
  } : function(oe, U) {
566
- var Me = Qe(oe, U);
566
+ var Re = Qe(oe, U);
567
567
  return /* @__PURE__ */ o.createElement(kt, ze({}, qe, {
568
568
  order: U,
569
- key: Me,
569
+ key: Re,
570
570
  item: oe,
571
571
  renderItem: Ze,
572
- itemKey: Me,
572
+ itemKey: Re,
573
573
  registerSize: it,
574
574
  display: U <= ae
575
575
  }));
@@ -584,16 +584,16 @@ function Po(e, t) {
584
584
  value: ce(ce({}, qe), ht)
585
585
  }, p(Be)));
586
586
  else {
587
- var rt = g || Ro;
587
+ var rt = g || Mo;
588
588
  gt = /* @__PURE__ */ o.createElement(kt, ze({}, qe, ht), typeof rt == "function" ? rt(Be) : rt);
589
589
  }
590
590
  var ut = /* @__PURE__ */ o.createElement($, ze({
591
591
  className: Se(!Te && r, c),
592
592
  style: b,
593
593
  ref: t
594
- }, C), Le.map(Rt), Pe ? gt : null, h && /* @__PURE__ */ o.createElement(kt, ze({}, qe, {
594
+ }, C), Le.map(Mt), Pe ? gt : null, h && /* @__PURE__ */ o.createElement(kt, ze({}, qe, {
595
595
  responsive: Ge,
596
- responsiveDisabled: !we,
596
+ responsiveDisabled: !Ee,
597
597
  order: ae,
598
598
  className: "".concat(Ce, "-suffix"),
599
599
  registerSize: Fe,
@@ -602,16 +602,16 @@ function Po(e, t) {
602
602
  }), h));
603
603
  return Ge && (ut = /* @__PURE__ */ o.createElement(fn, {
604
604
  onResize: Xe,
605
- disabled: !we
605
+ disabled: !Ee
606
606
  }, ut)), ut;
607
607
  }
608
608
  var rn = /* @__PURE__ */ o.forwardRef(Po);
609
609
  rn.displayName = "Overflow";
610
- rn.Item = Rr;
610
+ rn.Item = Mr;
611
611
  rn.RESPONSIVE = Pr;
612
612
  rn.INVALIDATE = Dr;
613
613
  var Do = function(t, n) {
614
- var r, i = t.prefixCls, a = t.id, l = t.inputElement, s = t.disabled, u = t.tabIndex, v = t.autoFocus, f = t.autoComplete, d = t.editable, b = t.activeDescendantId, c = t.value, m = t.maxLength, g = t.onKeyDown, p = t.onMouseDown, h = t.onChange, S = t.onPaste, $ = t.onCompositionStart, w = t.onCompositionEnd, P = t.open, C = t.attrs, x = l || /* @__PURE__ */ o.createElement("input", null), D = x, O = D.ref, I = D.props, H = I.onKeyDown, j = I.onChange, T = I.onMouseDown, R = I.onCompositionStart, _ = I.onCompositionEnd, Y = I.style;
614
+ var r, i = t.prefixCls, a = t.id, l = t.inputElement, s = t.disabled, u = t.tabIndex, v = t.autoFocus, f = t.autoComplete, d = t.editable, b = t.activeDescendantId, c = t.value, m = t.maxLength, g = t.onKeyDown, p = t.onMouseDown, h = t.onChange, S = t.onPaste, $ = t.onCompositionStart, E = t.onCompositionEnd, P = t.open, C = t.attrs, x = l || /* @__PURE__ */ o.createElement("input", null), D = x, O = D.ref, I = D.props, H = I.onKeyDown, j = I.onChange, T = I.onMouseDown, M = I.onCompositionStart, _ = I.onCompositionEnd, Y = I.style;
615
615
  return gi(!("maxLength" in x.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), x = /* @__PURE__ */ o.cloneElement(x, ce(ce(ce({
616
616
  type: "search"
617
617
  }, I), {}, {
@@ -638,20 +638,20 @@ var Do = function(t, n) {
638
638
  style: ce(ce({}, Y), {}, {
639
639
  opacity: d ? null : 0
640
640
  }),
641
- onKeyDown: function(M) {
642
- g(M), H && H(M);
641
+ onKeyDown: function(R) {
642
+ g(R), H && H(R);
643
643
  },
644
- onMouseDown: function(M) {
645
- p(M), T && T(M);
644
+ onMouseDown: function(R) {
645
+ p(R), T && T(R);
646
646
  },
647
- onChange: function(M) {
648
- h(M), j && j(M);
647
+ onChange: function(R) {
648
+ h(R), j && j(R);
649
649
  },
650
- onCompositionStart: function(M) {
651
- $(M), R && R(M);
650
+ onCompositionStart: function(R) {
651
+ $(R), M && M(R);
652
652
  },
653
- onCompositionEnd: function(M) {
654
- w(M), _ && _(M);
653
+ onCompositionEnd: function(R) {
654
+ E(R), _ && _(R);
655
655
  },
656
656
  onPaste: S
657
657
  })), x;
@@ -684,32 +684,32 @@ function jo(e) {
684
684
  var rr = function(t) {
685
685
  t.preventDefault(), t.stopPropagation();
686
686
  }, Ho = function(t) {
687
- var n = t.id, r = t.prefixCls, i = t.values, a = t.open, l = t.searchValue, s = t.autoClearSearchValue, u = t.inputRef, v = t.placeholder, f = t.disabled, d = t.mode, b = t.showSearch, c = t.autoFocus, m = t.autoComplete, g = t.activeDescendantId, p = t.tabIndex, h = t.removeIcon, S = t.maxTagCount, $ = t.maxTagTextLength, w = t.maxTagPlaceholder, P = w === void 0 ? function(Q) {
687
+ var n = t.id, r = t.prefixCls, i = t.values, a = t.open, l = t.searchValue, s = t.autoClearSearchValue, u = t.inputRef, v = t.placeholder, f = t.disabled, d = t.mode, b = t.showSearch, c = t.autoFocus, m = t.autoComplete, g = t.activeDescendantId, p = t.tabIndex, h = t.removeIcon, S = t.maxTagCount, $ = t.maxTagTextLength, E = t.maxTagPlaceholder, P = E === void 0 ? function(Q) {
688
688
  return "+ ".concat(Q.length, " ...");
689
- } : w, C = t.tagRender, x = t.onToggleOpen, D = t.onRemove, O = t.onInputChange, I = t.onInputPaste, H = t.onInputKeyDown, j = t.onInputMouseDown, T = t.onInputCompositionStart, R = t.onInputCompositionEnd, _ = o.useRef(null), Y = jt(0), V = re(Y, 2), M = V[0], L = V[1], k = jt(!1), W = re(k, 2), Ie = W[0], de = W[1], fe = "".concat(r, "-selection"), me = a || d === "multiple" && s === !1 || d === "tags" ? l : "", Ae = d === "tags" || d === "multiple" && s === !1 || b && (a || Ie);
689
+ } : E, C = t.tagRender, x = t.onToggleOpen, D = t.onRemove, O = t.onInputChange, I = t.onInputPaste, H = t.onInputKeyDown, j = t.onInputMouseDown, T = t.onInputCompositionStart, M = t.onInputCompositionEnd, _ = o.useRef(null), Y = jt(0), V = re(Y, 2), R = V[0], L = V[1], k = jt(!1), W = re(k, 2), Ie = W[0], de = W[1], fe = "".concat(r, "-selection"), me = a || d === "multiple" && s === !1 || d === "tags" ? l : "", Ae = d === "tags" || d === "multiple" && s === !1 || b && (a || Ie);
690
690
  Bo(function() {
691
691
  L(_.current.scrollWidth);
692
692
  }, [me]);
693
- var ie = function(B, E, ee, xe, ae) {
693
+ var ie = function(B, w, ee, xe, ae) {
694
694
  return /* @__PURE__ */ o.createElement("span", {
695
695
  title: zr(B),
696
696
  className: Se("".concat(fe, "-item"), ue({}, "".concat(fe, "-item-disabled"), ee))
697
697
  }, /* @__PURE__ */ o.createElement("span", {
698
698
  className: "".concat(fe, "-item-content")
699
- }, E), xe && /* @__PURE__ */ o.createElement(mn, {
699
+ }, w), xe && /* @__PURE__ */ o.createElement(mn, {
700
700
  className: "".concat(fe, "-item-remove"),
701
701
  onMouseDown: rr,
702
702
  onClick: ae,
703
703
  customizeIcon: h
704
704
  }, "×"));
705
- }, ye = function(B, E, ee, xe, ae, ve) {
705
+ }, ye = function(B, w, ee, xe, ae, ve) {
706
706
  var Oe = function($e) {
707
707
  rr($e), x(!a);
708
708
  };
709
709
  return /* @__PURE__ */ o.createElement("span", {
710
710
  onMouseDown: Oe
711
711
  }, C({
712
- label: E,
712
+ label: w,
713
713
  value: B,
714
714
  disabled: ee,
715
715
  closable: xe,
@@ -717,7 +717,7 @@ var rr = function(t) {
717
717
  isMaxTag: !!ve
718
718
  }));
719
719
  }, _e = function(B) {
720
- var E = B.disabled, ee = B.label, xe = B.value, ae = !f && !E, ve = ee;
720
+ var w = B.disabled, ee = B.label, xe = B.value, ae = !f && !w, ve = ee;
721
721
  if (typeof $ == "number" && (typeof ee == "string" || typeof ee == "number")) {
722
722
  var Oe = String(ve);
723
723
  Oe.length > $ && (ve = "".concat(Oe.slice(0, $), "..."));
@@ -725,16 +725,16 @@ var rr = function(t) {
725
725
  var le = function(Ce) {
726
726
  Ce && Ce.stopPropagation(), D(B);
727
727
  };
728
- return typeof C == "function" ? ye(xe, ve, E, ae, le) : ie(B, ve, E, ae, le);
728
+ return typeof C == "function" ? ye(xe, ve, w, ae, le) : ie(B, ve, w, ae, le);
729
729
  }, N = function(B) {
730
- var E = typeof P == "function" ? P(B) : P;
731
- return typeof C == "function" ? ye(void 0, E, !1, !1, void 0, !0) : ie({
732
- title: E
733
- }, E, !1);
730
+ var w = typeof P == "function" ? P(B) : P;
731
+ return typeof C == "function" ? ye(void 0, w, !1, !1, void 0, !0) : ie({
732
+ title: w
733
+ }, w, !1);
734
734
  }, y = /* @__PURE__ */ o.createElement("div", {
735
735
  className: "".concat(fe, "-search"),
736
736
  style: {
737
- width: M
737
+ width: R
738
738
  },
739
739
  onFocus: function() {
740
740
  de(!0);
@@ -759,7 +759,7 @@ var rr = function(t) {
759
759
  onChange: O,
760
760
  onPaste: I,
761
761
  onCompositionStart: T,
762
- onCompositionEnd: R,
762
+ onCompositionEnd: M,
763
763
  tabIndex: p,
764
764
  attrs: tn(t, !0)
765
765
  }), /* @__PURE__ */ o.createElement("span", {
@@ -779,18 +779,18 @@ var rr = function(t) {
779
779
  className: "".concat(fe, "-placeholder")
780
780
  }, v));
781
781
  }, Vo = function(t) {
782
- var n = t.inputElement, r = t.prefixCls, i = t.id, a = t.inputRef, l = t.disabled, s = t.autoFocus, u = t.autoComplete, v = t.activeDescendantId, f = t.mode, d = t.open, b = t.values, c = t.placeholder, m = t.tabIndex, g = t.showSearch, p = t.searchValue, h = t.activeValue, S = t.maxLength, $ = t.onInputKeyDown, w = t.onInputMouseDown, P = t.onInputChange, C = t.onInputPaste, x = t.onInputCompositionStart, D = t.onInputCompositionEnd, O = t.title, I = o.useState(!1), H = re(I, 2), j = H[0], T = H[1], R = f === "combobox", _ = R || g, Y = b[0], V = p || "";
783
- R && h && !j && (V = h), o.useEffect(function() {
784
- R && T(!1);
785
- }, [R, h]);
786
- var M = f !== "combobox" && !d && !g ? !1 : !!V, L = O === void 0 ? zr(Y) : O, k = o.useMemo(function() {
782
+ var n = t.inputElement, r = t.prefixCls, i = t.id, a = t.inputRef, l = t.disabled, s = t.autoFocus, u = t.autoComplete, v = t.activeDescendantId, f = t.mode, d = t.open, b = t.values, c = t.placeholder, m = t.tabIndex, g = t.showSearch, p = t.searchValue, h = t.activeValue, S = t.maxLength, $ = t.onInputKeyDown, E = t.onInputMouseDown, P = t.onInputChange, C = t.onInputPaste, x = t.onInputCompositionStart, D = t.onInputCompositionEnd, O = t.title, I = o.useState(!1), H = re(I, 2), j = H[0], T = H[1], M = f === "combobox", _ = M || g, Y = b[0], V = p || "";
783
+ M && h && !j && (V = h), o.useEffect(function() {
784
+ M && T(!1);
785
+ }, [M, h]);
786
+ var R = f !== "combobox" && !d && !g ? !1 : !!V, L = O === void 0 ? zr(Y) : O, k = o.useMemo(function() {
787
787
  return Y ? null : /* @__PURE__ */ o.createElement("span", {
788
788
  className: "".concat(r, "-selection-placeholder"),
789
- style: M ? {
789
+ style: R ? {
790
790
  visibility: "hidden"
791
791
  } : void 0
792
792
  }, c);
793
- }, [Y, M, c, r]);
793
+ }, [Y, R, c, r]);
794
794
  return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("span", {
795
795
  className: "".concat(r, "-selection-search")
796
796
  }, /* @__PURE__ */ o.createElement(Ln, {
@@ -806,7 +806,7 @@ var rr = function(t) {
806
806
  activeDescendantId: v,
807
807
  value: V,
808
808
  onKeyDown: $,
809
- onMouseDown: w,
809
+ onMouseDown: E,
810
810
  onChange: function(Ie) {
811
811
  T(!0), P(Ie);
812
812
  },
@@ -815,11 +815,11 @@ var rr = function(t) {
815
815
  onCompositionEnd: D,
816
816
  tabIndex: m,
817
817
  attrs: tn(t, !0),
818
- maxLength: R ? S : void 0
819
- })), !R && Y ? /* @__PURE__ */ o.createElement("span", {
818
+ maxLength: M ? S : void 0
819
+ })), !M && Y ? /* @__PURE__ */ o.createElement("span", {
820
820
  className: "".concat(r, "-selection-item"),
821
821
  title: L,
822
- style: M ? {
822
+ style: R ? {
823
823
  visibility: "hidden"
824
824
  } : void 0
825
825
  }, Y.label) : null, k);
@@ -827,46 +827,46 @@ var rr = function(t) {
827
827
  var r = De(null), i = De(!1), a = t.prefixCls, l = t.open, s = t.mode, u = t.showSearch, v = t.tokenWithEnter, f = t.disabled, d = t.autoClearSearchValue, b = t.onSearch, c = t.onSearchSubmit, m = t.onToggleOpen, g = t.onInputKeyDown, p = t.domRef;
828
828
  o.useImperativeHandle(n, function() {
829
829
  return {
830
- focus: function(M) {
831
- r.current.focus(M);
830
+ focus: function(R) {
831
+ r.current.focus(R);
832
832
  },
833
833
  blur: function() {
834
834
  r.current.blur();
835
835
  }
836
836
  };
837
837
  });
838
- var h = Mr(0), S = re(h, 2), $ = S[0], w = S[1], P = function(M) {
839
- var L = M.which;
840
- (L === ne.UP || L === ne.DOWN) && M.preventDefault(), g && g(M), L === ne.ENTER && s === "tags" && !i.current && !l && (c == null || c(M.target.value)), yo(L) && m(!0);
838
+ var h = Rr(0), S = re(h, 2), $ = S[0], E = S[1], P = function(R) {
839
+ var L = R.which;
840
+ (L === ne.UP || L === ne.DOWN) && R.preventDefault(), g && g(R), L === ne.ENTER && s === "tags" && !i.current && !l && (c == null || c(R.target.value)), yo(L) && m(!0);
841
841
  }, C = function() {
842
- w(!0);
843
- }, x = De(null), D = function(M) {
844
- b(M, !0, i.current) !== !1 && m(!0);
842
+ E(!0);
843
+ }, x = De(null), D = function(R) {
844
+ b(R, !0, i.current) !== !1 && m(!0);
845
845
  }, O = function() {
846
846
  i.current = !0;
847
- }, I = function(M) {
848
- i.current = !1, s !== "combobox" && D(M.target.value);
849
- }, H = function(M) {
850
- var L = M.target.value;
847
+ }, I = function(R) {
848
+ i.current = !1, s !== "combobox" && D(R.target.value);
849
+ }, H = function(R) {
850
+ var L = R.target.value;
851
851
  if (v && x.current && /[\r\n]/.test(x.current)) {
852
852
  var k = x.current.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
853
853
  L = L.replace(k, x.current);
854
854
  }
855
855
  x.current = null, D(L);
856
- }, j = function(M) {
857
- var L = M.clipboardData, k = L == null ? void 0 : L.getData("text");
856
+ }, j = function(R) {
857
+ var L = R.clipboardData, k = L == null ? void 0 : L.getData("text");
858
858
  x.current = k || "";
859
- }, T = function(M) {
860
- var L = M.target;
859
+ }, T = function(R) {
860
+ var L = R.target;
861
861
  if (L !== r.current) {
862
862
  var k = document.body.style.msTouchAction !== void 0;
863
863
  k ? setTimeout(function() {
864
864
  r.current.focus();
865
865
  }) : r.current.focus();
866
866
  }
867
- }, R = function(M) {
867
+ }, M = function(R) {
868
868
  var L = $();
869
- M.target !== r.current && !L && !(s === "combobox" && f) && M.preventDefault(), (s !== "combobox" && (!u || !L) || !l) && (l && d !== !1 && b("", !0, !1), m());
869
+ R.target !== r.current && !L && !(s === "combobox" && f) && R.preventDefault(), (s !== "combobox" && (!u || !L) || !l) && (l && d !== !1 && b("", !0, !1), m());
870
870
  }, _ = {
871
871
  inputRef: r,
872
872
  onInputKeyDown: P,
@@ -880,7 +880,7 @@ var rr = function(t) {
880
880
  ref: p,
881
881
  className: "".concat(a, "-selector"),
882
882
  onClick: T,
883
- onMouseDown: R
883
+ onMouseDown: M
884
884
  }, Y);
885
885
  }, _r = /* @__PURE__ */ o.forwardRef(Ao);
886
886
  process.env.NODE_ENV !== "production" && (_r.displayName = "Selector");
@@ -927,14 +927,14 @@ var Fo = ["prefixCls", "disabled", "visible", "children", "popupElement", "anima
927
927
  }, Ko = function(t, n) {
928
928
  var r = t.prefixCls;
929
929
  t.disabled;
930
- var i = t.visible, a = t.children, l = t.popupElement, s = t.animation, u = t.transitionName, v = t.dropdownStyle, f = t.dropdownClassName, d = t.direction, b = d === void 0 ? "ltr" : d, c = t.placement, m = t.builtinPlacements, g = t.dropdownMatchSelectWidth, p = t.dropdownRender, h = t.dropdownAlign, S = t.getPopupContainer, $ = t.empty, w = t.getTriggerDOMNode, P = t.onPopupVisibleChange, C = t.onPopupMouseEnter, x = bt(t, Fo), D = "".concat(r, "-dropdown"), O = l;
930
+ var i = t.visible, a = t.children, l = t.popupElement, s = t.animation, u = t.transitionName, v = t.dropdownStyle, f = t.dropdownClassName, d = t.direction, b = d === void 0 ? "ltr" : d, c = t.placement, m = t.builtinPlacements, g = t.dropdownMatchSelectWidth, p = t.dropdownRender, h = t.dropdownAlign, S = t.getPopupContainer, $ = t.empty, E = t.getTriggerDOMNode, P = t.onPopupVisibleChange, C = t.onPopupMouseEnter, x = bt(t, Fo), D = "".concat(r, "-dropdown"), O = l;
931
931
  p && (O = p(l));
932
932
  var I = o.useMemo(function() {
933
933
  return m || Wo(g);
934
934
  }, [m, g]), H = s ? "".concat(D, "-").concat(s) : u, j = typeof g == "number", T = o.useMemo(function() {
935
935
  return j ? null : g === !1 ? "minWidth" : "width";
936
- }, [g, j]), R = v;
937
- j && (R = ce(ce({}, R), {}, {
936
+ }, [g, j]), M = v;
937
+ j && (M = ce(ce({}, M), {}, {
938
938
  width: g
939
939
  }));
940
940
  var _ = o.useRef(null);
@@ -961,8 +961,8 @@ var Fo = ["prefixCls", "disabled", "visible", "children", "popupElement", "anima
961
961
  popupVisible: i,
962
962
  getPopupContainer: S,
963
963
  popupClassName: Se(f, ue({}, "".concat(D, "-empty"), $)),
964
- popupStyle: R,
965
- getTriggerDOMNode: w,
964
+ popupStyle: M,
965
+ getTriggerDOMNode: E,
966
966
  onPopupVisibleChange: P
967
967
  }), a);
968
968
  }, Tr = /* @__PURE__ */ o.forwardRef(Ko);
@@ -971,7 +971,7 @@ function ir(e, t) {
971
971
  var n = e.key, r;
972
972
  return "value" in e && (r = e.value), n ?? (r !== void 0 ? r : "rc-index-key-".concat(t));
973
973
  }
974
- function En(e) {
974
+ function wn(e) {
975
975
  return typeof e < "u" && !Number.isNaN(e);
976
976
  }
977
977
  function Lr(e, t) {
@@ -1053,7 +1053,7 @@ function Uo(e) {
1053
1053
  var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction", "omitDomProps", "displayValues", "onDisplayValuesChange", "emptyOptions", "notFoundContent", "onClear", "mode", "disabled", "loading", "getInputElement", "getRawInputElement", "open", "defaultOpen", "onDropdownVisibleChange", "activeValue", "onActiveValueChange", "activeDescendantId", "searchValue", "autoClearSearchValue", "onSearch", "onSearchSplit", "tokenSeparators", "allowClear", "suffixIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], Yo = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"], un = function(t) {
1054
1054
  return t === "tags" || t === "multiple";
1055
1055
  }, Br = /* @__PURE__ */ o.forwardRef(function(e, t) {
1056
- var n, r = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, s = e.tagRender, u = e.direction, v = e.omitDomProps, f = e.displayValues, d = e.onDisplayValuesChange, b = e.emptyOptions, c = e.notFoundContent, m = c === void 0 ? "Not Found" : c, g = e.onClear, p = e.mode, h = e.disabled, S = e.loading, $ = e.getInputElement, w = e.getRawInputElement, P = e.open, C = e.defaultOpen, x = e.onDropdownVisibleChange, D = e.activeValue, O = e.onActiveValueChange, I = e.activeDescendantId, H = e.searchValue, j = e.autoClearSearchValue, T = e.onSearch, R = e.onSearchSplit, _ = e.tokenSeparators, Y = e.allowClear, V = e.suffixIcon, M = e.clearIcon, L = e.OptionList, k = e.animation, W = e.transitionName, Ie = e.dropdownStyle, de = e.dropdownClassName, fe = e.dropdownMatchSelectWidth, me = e.dropdownRender, Ae = e.dropdownAlign, ie = e.placement, ye = e.builtinPlacements, _e = e.getPopupContainer, N = e.showAction, y = N === void 0 ? [] : N, F = e.onFocus, Q = e.onBlur, B = e.onKeyUp, E = e.onKeyDown, ee = e.onMouseDown, xe = bt(e, qo), ae = un(p), ve = (l !== void 0 ? l : ae) || p === "combobox", Oe = ce({}, xe);
1056
+ var n, r = e.id, i = e.prefixCls, a = e.className, l = e.showSearch, s = e.tagRender, u = e.direction, v = e.omitDomProps, f = e.displayValues, d = e.onDisplayValuesChange, b = e.emptyOptions, c = e.notFoundContent, m = c === void 0 ? "Not Found" : c, g = e.onClear, p = e.mode, h = e.disabled, S = e.loading, $ = e.getInputElement, E = e.getRawInputElement, P = e.open, C = e.defaultOpen, x = e.onDropdownVisibleChange, D = e.activeValue, O = e.onActiveValueChange, I = e.activeDescendantId, H = e.searchValue, j = e.autoClearSearchValue, T = e.onSearch, M = e.onSearchSplit, _ = e.tokenSeparators, Y = e.allowClear, V = e.suffixIcon, R = e.clearIcon, L = e.OptionList, k = e.animation, W = e.transitionName, Ie = e.dropdownStyle, de = e.dropdownClassName, fe = e.dropdownMatchSelectWidth, me = e.dropdownRender, Ae = e.dropdownAlign, ie = e.placement, ye = e.builtinPlacements, _e = e.getPopupContainer, N = e.showAction, y = N === void 0 ? [] : N, F = e.onFocus, Q = e.onBlur, B = e.onKeyUp, w = e.onKeyDown, ee = e.onMouseDown, xe = bt(e, qo), ae = un(p), ve = (l !== void 0 ? l : ae) || p === "combobox", Oe = ce({}, xe);
1057
1057
  Yo.forEach(function(Ne) {
1058
1058
  delete Oe[Ne];
1059
1059
  }), v == null || v.forEach(function(Ne) {
@@ -1063,7 +1063,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1063
1063
  o.useEffect(function() {
1064
1064
  be(Ni());
1065
1065
  }, []);
1066
- var Ge = o.useRef(null), we = o.useRef(null), Te = o.useRef(null), Pe = o.useRef(null), Le = o.useRef(null), Be = o.useRef(!1), Qe = So(), Ze = re(Qe, 3), pe = Ze[0], Xe = Ze[1], it = Ze[2];
1066
+ var Ge = o.useRef(null), Ee = o.useRef(null), Te = o.useRef(null), Pe = o.useRef(null), Le = o.useRef(null), Be = o.useRef(!1), Qe = So(), Ze = re(Qe, 3), pe = Ze[0], Xe = Ze[1], it = Ze[2];
1067
1067
  o.useImperativeHandle(t, function() {
1068
1068
  var Ne, ge;
1069
1069
  return {
@@ -1073,7 +1073,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1073
1073
  var Je;
1074
1074
  return (Je = Le.current) === null || Je === void 0 ? void 0 : Je.scrollTo(ft);
1075
1075
  },
1076
- nativeElement: Ge.current || we.current
1076
+ nativeElement: Ge.current || Ee.current
1077
1077
  };
1078
1078
  });
1079
1079
  var Ue = o.useMemo(function() {
@@ -1082,16 +1082,16 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1082
1082
  return H;
1083
1083
  var ge = (Ne = f[0]) === null || Ne === void 0 ? void 0 : Ne.value;
1084
1084
  return typeof ge == "string" || typeof ge == "number" ? String(ge) : "";
1085
- }, [H, p, f]), Fe = p === "combobox" && typeof $ == "function" && $() || null, je = typeof w == "function" && w(), yt = hi(we, je == null || (n = je.props) === null || n === void 0 ? void 0 : n.ref), ct = o.useState(!1), qe = re(ct, 2), Rt = qe[0], gt = qe[1];
1085
+ }, [H, p, f]), Fe = p === "combobox" && typeof $ == "function" && $() || null, je = typeof E == "function" && E(), yt = hi(Ee, je == null || (n = je.props) === null || n === void 0 ? void 0 : n.ref), ct = o.useState(!1), qe = re(ct, 2), Mt = qe[0], gt = qe[1];
1086
1086
  Ft(function() {
1087
1087
  gt(!0);
1088
1088
  }, []);
1089
1089
  var ht = en(!1, {
1090
1090
  defaultValue: C,
1091
1091
  value: P
1092
- }), rt = re(ht, 2), ut = rt[0], oe = rt[1], U = Rt ? ut : !1, Me = !m && b;
1093
- (h || Me && U && p === "combobox") && (U = !1);
1094
- var We = Me ? !1 : U, A = o.useCallback(function(Ne) {
1092
+ }), rt = re(ht, 2), ut = rt[0], oe = rt[1], U = Mt ? ut : !1, Re = !m && b;
1093
+ (h || Re && U && p === "combobox") && (U = !1);
1094
+ var We = Re ? !1 : U, A = o.useCallback(function(Ne) {
1095
1095
  var ge = Ne !== void 0 ? Ne : !U;
1096
1096
  h || (oe(ge), U !== ge && (x == null || x(ge)));
1097
1097
  }, [h, U, oe, x]), te = o.useMemo(function() {
@@ -1100,12 +1100,12 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1100
1100
  `, `\r
1101
1101
  `].includes(Ne);
1102
1102
  });
1103
- }, [_]), z = o.useContext(jn) || {}, q = z.maxCount, he = z.rawValues, Re = function(ge, dt, ft) {
1104
- if (!(ae && En(q) && (he == null ? void 0 : he.size) >= q)) {
1103
+ }, [_]), z = o.useContext(jn) || {}, q = z.maxCount, he = z.rawValues, Me = function(ge, dt, ft) {
1104
+ if (!(ae && wn(q) && (he == null ? void 0 : he.size) >= q)) {
1105
1105
  var Je = !0, lt = ge;
1106
1106
  O == null || O(null);
1107
- var Ot = Go(ge, _, En(q) ? q - he.size : void 0), Tt = ft ? null : Ot;
1108
- return p !== "combobox" && Tt && (lt = "", R == null || R(Tt), A(!1), Je = !1), T && Ue !== lt && T(lt, {
1107
+ var Ot = Go(ge, _, wn(q) ? q - he.size : void 0), Tt = ft ? null : Ot;
1108
+ return p !== "combobox" && Tt && (lt = "", M == null || M(Tt), A(!1), Je = !1), T && Ue !== lt && T(lt, {
1109
1109
  source: dt ? "typing" : "effect"
1110
1110
  }), Je;
1111
1111
  }
@@ -1115,11 +1115,11 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1115
1115
  });
1116
1116
  };
1117
1117
  o.useEffect(function() {
1118
- !U && !ae && p !== "combobox" && Re("", !1, !1);
1118
+ !U && !ae && p !== "combobox" && Me("", !1, !1);
1119
1119
  }, [U]), o.useEffect(function() {
1120
1120
  ut && h && oe(!1), h && !Be.current && Xe(!1);
1121
1121
  }, [h]);
1122
- var ke = Mr(), tt = re(ke, 2), He = tt[0], Ye = tt[1], at = function(ge) {
1122
+ var ke = Rr(), tt = re(ke, 2), He = tt[0], Ye = tt[1], at = function(ge) {
1123
1123
  var dt = He(), ft = ge.which;
1124
1124
  if (ft === ne.ENTER && (p !== "combobox" && ge.preventDefault(), U || A(!0)), Ye(!!Ue), ft === ne.BACKSPACE && !dt && ae && !Ue && f.length) {
1125
1125
  for (var Je = mt(f), lt = null, Ot = Je.length - 1; Ot >= 0; Ot -= 1) {
@@ -1140,7 +1140,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1140
1140
  var on;
1141
1141
  (on = Le.current) === null || on === void 0 || on.onKeyDown.apply(on, [ge].concat(Xt));
1142
1142
  }
1143
- E == null || E.apply(void 0, [ge].concat(Xt));
1143
+ w == null || w.apply(void 0, [ge].concat(Xt));
1144
1144
  }, Vt = function(ge) {
1145
1145
  for (var dt = arguments.length, ft = new Array(dt > 1 ? dt - 1 : 0), Je = 1; Je < dt; Je++)
1146
1146
  ft[Je - 1] = arguments[Je];
@@ -1149,7 +1149,7 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1149
1149
  (lt = Le.current) === null || lt === void 0 || lt.onKeyUp.apply(lt, [ge].concat(ft));
1150
1150
  }
1151
1151
  B == null || B.apply(void 0, [ge].concat(ft));
1152
- }, wt = function(ge) {
1152
+ }, Et = function(ge) {
1153
1153
  var dt = f.filter(function(ft) {
1154
1154
  return ft !== ge;
1155
1155
  });
@@ -1194,8 +1194,8 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1194
1194
  function Dt() {
1195
1195
  Ct({});
1196
1196
  }
1197
- var Et;
1198
- je && (Et = function(ge) {
1197
+ var wt;
1198
+ je && (wt = function(ge) {
1199
1199
  A(ge);
1200
1200
  }), bo(function() {
1201
1201
  var Ne;
@@ -1223,13 +1223,13 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1223
1223
  showSearch: ve
1224
1224
  }
1225
1225
  }));
1226
- var Ee = function() {
1226
+ var we = function() {
1227
1227
  var ge;
1228
1228
  g == null || g(), (ge = Pe.current) === null || ge === void 0 || ge.focus(), d([], {
1229
1229
  type: "clear",
1230
1230
  values: f
1231
- }), Re("", !1, !1);
1232
- }, Ke = po(i, Ee, f, Y, M, h, Ue, p), It = Ke.allowClear, Kt = Ke.clearIcon, di = /* @__PURE__ */ o.createElement(L, {
1231
+ }), Me("", !1, !1);
1232
+ }, Ke = po(i, we, f, Y, R, h, Ue, p), It = Ke.allowClear, Kt = Ke.clearIcon, di = /* @__PURE__ */ o.createElement(L, {
1233
1233
  ref: Le
1234
1234
  }), fi = Se(i, a, ue(ue(ue(ue(ue(ue(ue(ue(ue(ue({}, "".concat(i, "-focused"), pe), "".concat(i, "-multiple"), ae), "".concat(i, "-single"), !ae), "".concat(i, "-allow-clear"), Y), "".concat(i, "-show-arrow"), _t), "".concat(i, "-disabled"), h), "".concat(i, "-loading"), S), "".concat(i, "-open"), U), "".concat(i, "-customize-input"), Fe), "".concat(i, "-show-search"), ve)), Gn = /* @__PURE__ */ o.createElement(Tr, {
1235
1235
  ref: Te,
@@ -1254,15 +1254,15 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1254
1254
  // TODO: This is workaround and should be removed in `rc-select`
1255
1255
  // And use new standard `nativeElement` for ref.
1256
1256
  // But we should update `rc-resize-observer` first.
1257
- we.current || ge
1257
+ Ee.current || ge
1258
1258
  );
1259
1259
  },
1260
- onPopupVisibleChange: Et,
1260
+ onPopupVisibleChange: wt,
1261
1261
  onPopupMouseEnter: Dt
1262
1262
  }, je ? /* @__PURE__ */ o.cloneElement(je, {
1263
1263
  ref: yt
1264
1264
  }) : /* @__PURE__ */ o.createElement(_r, ze({}, e, {
1265
- domRef: we,
1265
+ domRef: Ee,
1266
1266
  prefixCls: i,
1267
1267
  inputElement: Fe,
1268
1268
  ref: Pe,
@@ -1277,9 +1277,9 @@ var qo = ["id", "prefixCls", "className", "showSearch", "tagRender", "direction"
1277
1277
  onToggleOpen: A,
1278
1278
  activeValue: D,
1279
1279
  searchValue: Ue,
1280
- onSearch: Re,
1280
+ onSearch: Me,
1281
1281
  onSearchSubmit: ot,
1282
- onRemove: wt,
1282
+ onRemove: Et,
1283
1283
  tokenWithEnter: te
1284
1284
  }))), gn;
1285
1285
  return je ? gn = Gn : gn = /* @__PURE__ */ o.createElement("div", ze({
@@ -1415,8 +1415,8 @@ function ea(e, t, n, r, i, a, l) {
1415
1415
  var s = De(0), u = De(null), v = De(null), f = De(!1), d = Hr(t, n, r, i);
1416
1416
  function b(S, $) {
1417
1417
  $t.cancel(u.current), s.current += $, v.current = $, !d(!1, $) && (or || S.preventDefault(), u.current = $t(function() {
1418
- var w = f.current ? 10 : 1;
1419
- l(s.current * w), s.current = 0;
1418
+ var E = f.current ? 10 : 1;
1419
+ l(s.current * E), s.current = 0;
1420
1420
  }));
1421
1421
  }
1422
1422
  function c(S, $) {
@@ -1428,8 +1428,8 @@ function ea(e, t, n, r, i, a, l) {
1428
1428
  $t.cancel(g.current), g.current = $t(function() {
1429
1429
  m.current = null;
1430
1430
  }, 2);
1431
- var $ = S.deltaX, w = S.deltaY, P = S.shiftKey, C = $, x = w;
1432
- (m.current === "sx" || !m.current && P && w && !$) && (C = w, x = 0, m.current = "sx");
1431
+ var $ = S.deltaX, E = S.deltaY, P = S.shiftKey, C = $, x = E;
1432
+ (m.current === "sx" || !m.current && P && E && !$) && (C = E, x = 0, m.current = "sx");
1433
1433
  var D = Math.abs(C), O = Math.abs(x);
1434
1434
  m.current === null && (m.current = a && D > O ? "x" : "y"), m.current === "y" ? b(S, x) : c(S, C);
1435
1435
  }
@@ -1540,7 +1540,7 @@ function oa(e, t, n, r, i, a, l, s) {
1540
1540
  return;
1541
1541
  }
1542
1542
  a();
1543
- var c = d.targetAlign, m = d.originAlign, g = d.index, p = d.offset, h = e.current.clientHeight, S = !1, $ = c, w = null;
1543
+ var c = d.targetAlign, m = d.originAlign, g = d.index, p = d.offset, h = e.current.clientHeight, S = !1, $ = c, E = null;
1544
1544
  if (h) {
1545
1545
  for (var P = c || m, C = 0, x = 0, D = 0, O = Math.min(t.length - 1, g), I = 0; I <= O; I += 1) {
1546
1546
  var H = i(t[I]);
@@ -1548,8 +1548,8 @@ function oa(e, t, n, r, i, a, l, s) {
1548
1548
  var j = n.get(H);
1549
1549
  D = x + (j === void 0 ? r : j), C = D;
1550
1550
  }
1551
- for (var T = P === "top" ? p : h - p, R = O; R >= 0; R -= 1) {
1552
- var _ = i(t[R]), Y = n.get(_);
1551
+ for (var T = P === "top" ? p : h - p, M = O; M >= 0; M -= 1) {
1552
+ var _ = i(t[M]), Y = n.get(_);
1553
1553
  if (Y === void 0) {
1554
1554
  S = !0;
1555
1555
  break;
@@ -1559,22 +1559,22 @@ function oa(e, t, n, r, i, a, l, s) {
1559
1559
  }
1560
1560
  switch (P) {
1561
1561
  case "top":
1562
- w = x - p;
1562
+ E = x - p;
1563
1563
  break;
1564
1564
  case "bottom":
1565
- w = D - h + p;
1565
+ E = D - h + p;
1566
1566
  break;
1567
1567
  default: {
1568
- var V = e.current.scrollTop, M = V + h;
1569
- x < V ? $ = "top" : D > M && ($ = "bottom");
1568
+ var V = e.current.scrollTop, R = V + h;
1569
+ x < V ? $ = "top" : D > R && ($ = "bottom");
1570
1570
  }
1571
1571
  }
1572
- w !== null && l(w), w !== d.lastTop && (S = !0);
1572
+ E !== null && l(E), E !== d.lastTop && (S = !0);
1573
1573
  }
1574
1574
  S && b(ce(ce({}, d), {}, {
1575
1575
  times: d.times + 1,
1576
1576
  targetAlign: $,
1577
- lastTop: w
1577
+ lastTop: E
1578
1578
  }));
1579
1579
  } else
1580
1580
  process.env.NODE_ENV !== "production" && (d == null ? void 0 : d.times) === lr && st(!1, "Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.");
@@ -1605,7 +1605,7 @@ function sr(e, t) {
1605
1605
  return n[t ? "pageX" : "pageY"];
1606
1606
  }
1607
1607
  var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
1608
- var n = e.prefixCls, r = e.rtl, i = e.scrollOffset, a = e.scrollRange, l = e.onStartMove, s = e.onStopMove, u = e.onScroll, v = e.horizontal, f = e.spinSize, d = e.containerSize, b = e.style, c = e.thumbStyle, m = o.useState(!1), g = re(m, 2), p = g[0], h = g[1], S = o.useState(null), $ = re(S, 2), w = $[0], P = $[1], C = o.useState(null), x = re(C, 2), D = x[0], O = x[1], I = !r, H = o.useRef(), j = o.useRef(), T = o.useState(!1), R = re(T, 2), _ = R[0], Y = R[1], V = o.useRef(), M = function() {
1608
+ var n = e.prefixCls, r = e.rtl, i = e.scrollOffset, a = e.scrollRange, l = e.onStartMove, s = e.onStopMove, u = e.onScroll, v = e.horizontal, f = e.spinSize, d = e.containerSize, b = e.style, c = e.thumbStyle, m = o.useState(!1), g = re(m, 2), p = g[0], h = g[1], S = o.useState(null), $ = re(S, 2), E = $[0], P = $[1], C = o.useState(null), x = re(C, 2), D = x[0], O = x[1], I = !r, H = o.useRef(), j = o.useRef(), T = o.useState(!1), M = re(T, 2), _ = M[0], Y = M[1], V = o.useRef(), R = function() {
1609
1609
  clearTimeout(V.current), Y(!0), V.current = setTimeout(function() {
1610
1610
  Y(!1);
1611
1611
  }, 3e3);
@@ -1619,13 +1619,13 @@ var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
1619
1619
  }, de = o.useRef({
1620
1620
  top: W,
1621
1621
  dragging: p,
1622
- pageY: w,
1622
+ pageY: E,
1623
1623
  startTop: D
1624
1624
  });
1625
1625
  de.current = {
1626
1626
  top: W,
1627
1627
  dragging: p,
1628
- pageY: w,
1628
+ pageY: E,
1629
1629
  startTop: D
1630
1630
  };
1631
1631
  var fe = function(y) {
@@ -1645,7 +1645,7 @@ var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
1645
1645
  Ae.current = k, o.useEffect(function() {
1646
1646
  if (p) {
1647
1647
  var N, y = function(B) {
1648
- var E = de.current, ee = E.dragging, xe = E.pageY, ae = E.startTop;
1648
+ var w = de.current, ee = w.dragging, xe = w.pageY, ae = w.startTop;
1649
1649
  if ($t.cancel(N), ee) {
1650
1650
  var ve = sr(B, v) - xe, Oe = ae;
1651
1651
  !I && v ? Oe -= ve : Oe += ve;
@@ -1662,10 +1662,10 @@ var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
1662
1662
  };
1663
1663
  }
1664
1664
  }, [p]), o.useEffect(function() {
1665
- M();
1665
+ R();
1666
1666
  }, [i]), o.useImperativeHandle(t, function() {
1667
1667
  return {
1668
- delayHidden: M
1668
+ delayHidden: R
1669
1669
  };
1670
1670
  });
1671
1671
  var ie = "".concat(n, "-scrollbar"), ye = {
@@ -1683,7 +1683,7 @@ var On = /* @__PURE__ */ o.forwardRef(function(e, t) {
1683
1683
  className: Se(ie, ue(ue(ue({}, "".concat(ie, "-horizontal"), v), "".concat(ie, "-vertical"), !v), "".concat(ie, "-visible"), _)),
1684
1684
  style: ce(ce({}, ye), b),
1685
1685
  onMouseDown: Ie,
1686
- onMouseMove: M
1686
+ onMouseMove: R
1687
1687
  }, /* @__PURE__ */ o.createElement("div", {
1688
1688
  ref: j,
1689
1689
  className: Se("".concat(ie, "-thumb"), ue({}, "".concat(ie, "-thumb-moving"), p)),
@@ -1702,13 +1702,13 @@ var la = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
1702
1702
  overflowAnchor: "none"
1703
1703
  };
1704
1704
  function ua(e, t) {
1705
- var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, i = e.className, a = e.height, l = e.itemHeight, s = e.fullHeight, u = s === void 0 ? !0 : s, v = e.style, f = e.data, d = e.children, b = e.itemKey, c = e.virtual, m = e.direction, g = e.scrollWidth, p = e.component, h = p === void 0 ? "div" : p, S = e.onScroll, $ = e.onVirtualScroll, w = e.onVisibleChange, P = e.innerProps, C = e.extraRender, x = e.styles, D = bt(e, la), O = o.useCallback(function(X) {
1705
+ var n = e.prefixCls, r = n === void 0 ? "rc-virtual-list" : n, i = e.className, a = e.height, l = e.itemHeight, s = e.fullHeight, u = s === void 0 ? !0 : s, v = e.style, f = e.data, d = e.children, b = e.itemKey, c = e.virtual, m = e.direction, g = e.scrollWidth, p = e.component, h = p === void 0 ? "div" : p, S = e.onScroll, $ = e.onVirtualScroll, E = e.onVisibleChange, P = e.innerProps, C = e.extraRender, x = e.styles, D = bt(e, la), O = o.useCallback(function(X) {
1706
1706
  return typeof b == "function" ? b(X) : X == null ? void 0 : X[b];
1707
- }, [b]), I = ra(O), H = re(I, 4), j = H[0], T = H[1], R = H[2], _ = H[3], Y = !!(c !== !1 && a && l), V = o.useMemo(function() {
1708
- return Object.values(R.maps).reduce(function(X, K) {
1707
+ }, [b]), I = ra(O), H = re(I, 4), j = H[0], T = H[1], M = H[2], _ = H[3], Y = !!(c !== !1 && a && l), V = o.useMemo(function() {
1708
+ return Object.values(M.maps).reduce(function(X, K) {
1709
1709
  return X + K;
1710
1710
  }, 0);
1711
- }, [R.id, R.maps]), M = Y && f && (Math.max(l * f.length, V) > a || !!g), L = m === "rtl", k = Se(r, ue({}, "".concat(r, "-rtl"), L), i), W = f || sa, Ie = De(), de = De(), fe = De(), me = jt(0), Ae = re(me, 2), ie = Ae[0], ye = Ae[1], _e = jt(0), N = re(_e, 2), y = N[0], F = N[1], Q = jt(!1), B = re(Q, 2), E = B[0], ee = B[1], xe = function() {
1711
+ }, [M.id, M.maps]), R = Y && f && (Math.max(l * f.length, V) > a || !!g), L = m === "rtl", k = Se(r, ue({}, "".concat(r, "-rtl"), L), i), W = f || sa, Ie = De(), de = De(), fe = De(), me = jt(0), Ae = re(me, 2), ie = Ae[0], ye = Ae[1], _e = jt(0), N = re(_e, 2), y = N[0], F = N[1], Q = jt(!1), B = re(Q, 2), w = B[0], ee = B[1], xe = function() {
1712
1712
  ee(!0);
1713
1713
  }, ae = function() {
1714
1714
  ee(!1);
@@ -1719,7 +1719,7 @@ function ua(e, t) {
1719
1719
  ye(function(K) {
1720
1720
  var se;
1721
1721
  typeof X == "function" ? se = X(K) : se = X;
1722
- var Ve = Rt(se);
1722
+ var Ve = Mt(se);
1723
1723
  return Ie.current.scrollTop = Ve, Ve;
1724
1724
  });
1725
1725
  }
@@ -1728,7 +1728,7 @@ function ua(e, t) {
1728
1728
  end: W.length
1729
1729
  }), $e = De(), Ce = ko(W, O), be = re(Ce, 1), Ge = be[0];
1730
1730
  $e.current = Ge;
1731
- var we = o.useMemo(function() {
1731
+ var Ee = o.useMemo(function() {
1732
1732
  if (!Y)
1733
1733
  return {
1734
1734
  scrollHeight: void 0,
@@ -1736,7 +1736,7 @@ function ua(e, t) {
1736
1736
  end: W.length - 1,
1737
1737
  offset: void 0
1738
1738
  };
1739
- if (!M) {
1739
+ if (!R) {
1740
1740
  var X;
1741
1741
  return {
1742
1742
  scrollHeight: ((X = de.current) === null || X === void 0 ? void 0 : X.offsetHeight) || 0,
@@ -1746,7 +1746,7 @@ function ua(e, t) {
1746
1746
  };
1747
1747
  }
1748
1748
  for (var K = 0, se, Ve, pt, Pt = W.length, Ct = 0; Ct < Pt; Ct += 1) {
1749
- var Dt = W[Ct], Et = O(Dt), zt = R.get(Et), _t = K + (zt === void 0 ? l : zt);
1749
+ var Dt = W[Ct], wt = O(Dt), zt = M.get(wt), _t = K + (zt === void 0 ? l : zt);
1750
1750
  _t >= ie && se === void 0 && (se = Ct, Ve = K), _t > ie + a && pt === void 0 && (pt = Ct), K = _t;
1751
1751
  }
1752
1752
  return se === void 0 && (se = 0, Ve = 0, pt = Math.ceil(a / l)), pt === void 0 && (pt = W.length - 1), pt = Math.min(pt + 1, W.length - 1), {
@@ -1755,7 +1755,7 @@ function ua(e, t) {
1755
1755
  end: pt,
1756
1756
  offset: Ve
1757
1757
  };
1758
- }, [M, Y, ie, W, _, a]), Te = we.scrollHeight, Pe = we.start, Le = we.end, Be = we.offset;
1758
+ }, [R, Y, ie, W, _, a]), Te = Ee.scrollHeight, Pe = Ee.start, Le = Ee.end, Be = Ee.offset;
1759
1759
  le.current.start = Pe, le.current.end = Le;
1760
1760
  var Qe = o.useState({
1761
1761
  width: 0,
@@ -1771,7 +1771,7 @@ function ua(e, t) {
1771
1771
  return cr(pe.height, Te);
1772
1772
  }, [pe.height, Te]), ct = Te - a, qe = De(ct);
1773
1773
  qe.current = ct;
1774
- function Rt(X) {
1774
+ function Mt(X) {
1775
1775
  var K = X;
1776
1776
  return Number.isNaN(qe.current) || (K = Math.min(K, qe.current)), K = Math.max(K, 0), K;
1777
1777
  }
@@ -1780,10 +1780,10 @@ function ua(e, t) {
1780
1780
  x: L ? -y : y,
1781
1781
  y: ie
1782
1782
  };
1783
- }, Me = De(U()), We = bn(function(X) {
1783
+ }, Re = De(U()), We = bn(function(X) {
1784
1784
  if ($) {
1785
1785
  var K = ce(ce({}, U()), X);
1786
- (Me.current.x !== K.x || Me.current.y !== K.y) && ($(K), Me.current = K);
1786
+ (Re.current.x !== K.x || Re.current.y !== K.y) && ($(K), Re.current = K);
1787
1787
  }
1788
1788
  });
1789
1789
  function A(X, K) {
@@ -1809,7 +1809,7 @@ function ua(e, t) {
1809
1809
  var Ve = se + X;
1810
1810
  return Ve;
1811
1811
  });
1812
- }), he = ea(Y, gt, ht, rt, ut, !!g, q), Re = re(he, 2), ot = Re[0], ke = Re[1];
1812
+ }), he = ea(Y, gt, ht, rt, ut, !!g, q), Me = re(he, 2), ot = Me[0], ke = Me[1];
1813
1813
  ia(Y, Ie, function(X, K, se) {
1814
1814
  return oe(X, K, se) ? !1 : (ot({
1815
1815
  preventDefault: function() {
@@ -1836,7 +1836,7 @@ function ua(e, t) {
1836
1836
  var tt = function() {
1837
1837
  var K, se;
1838
1838
  (K = Ue.current) === null || K === void 0 || K.delayHidden(), (se = Fe.current) === null || se === void 0 || se.delayHidden();
1839
- }, He = oa(Ie, W, R, l, O, function() {
1839
+ }, He = oa(Ie, W, M, l, O, function() {
1840
1840
  return T(!0);
1841
1841
  }, Oe, tt);
1842
1842
  o.useImperativeHandle(t, function() {
@@ -1851,21 +1851,21 @@ function ua(e, t) {
1851
1851
  }
1852
1852
  };
1853
1853
  }), Ft(function() {
1854
- if (w) {
1854
+ if (E) {
1855
1855
  var X = W.slice(Pe, Le + 1);
1856
- w(X, W);
1856
+ E(X, W);
1857
1857
  }
1858
1858
  }, [Pe, Le, W]);
1859
- var Ye = ta(W, O, R, l), at = C == null ? void 0 : C({
1859
+ var Ye = ta(W, O, M, l), at = C == null ? void 0 : C({
1860
1860
  start: Pe,
1861
1861
  end: Le,
1862
- virtual: M,
1862
+ virtual: R,
1863
1863
  offsetX: y,
1864
1864
  offsetY: Be,
1865
1865
  rtl: L,
1866
1866
  getSize: Ye
1867
- }), Vt = Qo(W, Pe, Le, g, y, j, d, ve), wt = null;
1868
- a && (wt = ce(ue({}, u ? "height" : "maxHeight", a), ca), Y && (wt.overflowY = "hidden", g && (wt.overflowX = "hidden"), E && (wt.pointerEvents = "none")));
1867
+ }), Vt = Qo(W, Pe, Le, g, y, j, d, ve), Et = null;
1868
+ a && (Et = ce(ue({}, u ? "height" : "maxHeight", a), ca), Y && (Et.overflowY = "hidden", g && (Et.overflowX = "hidden"), w && (Et.pointerEvents = "none")));
1869
1869
  var vt = {};
1870
1870
  return L && (vt.dir = "rtl"), /* @__PURE__ */ o.createElement("div", ze({
1871
1871
  ref: fe,
@@ -1877,7 +1877,7 @@ function ua(e, t) {
1877
1877
  onResize: it
1878
1878
  }, /* @__PURE__ */ o.createElement(h, {
1879
1879
  className: "".concat(r, "-holder"),
1880
- style: wt,
1880
+ style: Et,
1881
1881
  ref: Ie,
1882
1882
  onScroll: te,
1883
1883
  onMouseEnter: tt
@@ -1892,7 +1892,7 @@ function ua(e, t) {
1892
1892
  innerProps: P,
1893
1893
  rtl: L,
1894
1894
  extra: at
1895
- }, Vt))), M && Te > a && /* @__PURE__ */ o.createElement(On, {
1895
+ }, Vt))), R && Te > a && /* @__PURE__ */ o.createElement(On, {
1896
1896
  ref: Ue,
1897
1897
  prefixCls: r,
1898
1898
  scrollOffset: ie,
@@ -1905,7 +1905,7 @@ function ua(e, t) {
1905
1905
  containerSize: pe.height,
1906
1906
  style: x == null ? void 0 : x.verticalScrollBar,
1907
1907
  thumbStyle: x == null ? void 0 : x.verticalScrollBarThumb
1908
- }), M && g > pe.width && /* @__PURE__ */ o.createElement(On, {
1908
+ }), R && g > pe.width && /* @__PURE__ */ o.createElement(On, {
1909
1909
  ref: Fe,
1910
1910
  prefixCls: r,
1911
1911
  scrollOffset: y,
@@ -1931,13 +1931,13 @@ function ur(e) {
1931
1931
  return typeof e == "string" || typeof e == "number";
1932
1932
  }
1933
1933
  var ma = function(t, n) {
1934
- var r = ho(), i = r.prefixCls, a = r.id, l = r.open, s = r.multiple, u = r.mode, v = r.searchValue, f = r.toggleOpen, d = r.notFoundContent, b = r.onPopupScroll, c = o.useContext(jn), m = c.maxCount, g = c.flattenOptions, p = c.onActiveValue, h = c.defaultActiveFirstOption, S = c.onSelect, $ = c.menuItemSelectedIcon, w = c.rawValues, P = c.fieldNames, C = c.virtual, x = c.direction, D = c.listHeight, O = c.listItemHeight, I = c.optionRender, H = "".concat(i, "-item"), j = Ci(function() {
1934
+ var r = ho(), i = r.prefixCls, a = r.id, l = r.open, s = r.multiple, u = r.mode, v = r.searchValue, f = r.toggleOpen, d = r.notFoundContent, b = r.onPopupScroll, c = o.useContext(jn), m = c.maxCount, g = c.flattenOptions, p = c.onActiveValue, h = c.defaultActiveFirstOption, S = c.onSelect, $ = c.menuItemSelectedIcon, E = c.rawValues, P = c.fieldNames, C = c.virtual, x = c.direction, D = c.listHeight, O = c.listItemHeight, I = c.optionRender, H = "".concat(i, "-item"), j = Ci(function() {
1935
1935
  return g;
1936
1936
  }, [l, g], function(N, y) {
1937
1937
  return y[0] && N[1] !== y[1];
1938
- }), T = o.useRef(null), R = o.useMemo(function() {
1939
- return s && En(m) && (w == null ? void 0 : w.size) >= m;
1940
- }, [s, m, w == null ? void 0 : w.size]), _ = function(y) {
1938
+ }), T = o.useRef(null), M = o.useMemo(function() {
1939
+ return s && wn(m) && (E == null ? void 0 : E.size) >= m;
1940
+ }, [s, m, E == null ? void 0 : E.size]), _ = function(y) {
1941
1941
  y.preventDefault();
1942
1942
  }, Y = function(y) {
1943
1943
  var F;
@@ -1946,14 +1946,14 @@ var ma = function(t, n) {
1946
1946
  } : y);
1947
1947
  }, V = function(y) {
1948
1948
  for (var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, Q = j.length, B = 0; B < Q; B += 1) {
1949
- var E = (y + B * F + Q) % Q, ee = j[E] || {}, xe = ee.group, ae = ee.data;
1950
- if (!xe && !(ae != null && ae.disabled) && !R)
1951
- return E;
1949
+ var w = (y + B * F + Q) % Q, ee = j[w] || {}, xe = ee.group, ae = ee.data;
1950
+ if (!xe && !(ae != null && ae.disabled) && !M)
1951
+ return w;
1952
1952
  }
1953
1953
  return -1;
1954
- }, M = o.useState(function() {
1954
+ }, R = o.useState(function() {
1955
1955
  return V(0);
1956
- }), L = re(M, 2), k = L[0], W = L[1], Ie = function(y) {
1956
+ }), L = re(R, 2), k = L[0], W = L[1], Ie = function(y) {
1957
1957
  var F = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
1958
1958
  W(y);
1959
1959
  var Q = {
@@ -1969,14 +1969,14 @@ var ma = function(t, n) {
1969
1969
  Ie(h !== !1 ? V(0) : -1);
1970
1970
  }, [j.length, v]);
1971
1971
  var de = o.useCallback(function(N) {
1972
- return w.has(N) && u !== "combobox";
1973
- }, [u, mt(w).toString(), w.size]);
1972
+ return E.has(N) && u !== "combobox";
1973
+ }, [u, mt(E).toString(), E.size]);
1974
1974
  sn(function() {
1975
1975
  var N = setTimeout(function() {
1976
- if (!s && l && w.size === 1) {
1977
- var F = Array.from(w)[0], Q = j.findIndex(function(B) {
1978
- var E = B.data;
1979
- return E.value === F;
1976
+ if (!s && l && E.size === 1) {
1977
+ var F = Array.from(E)[0], Q = j.findIndex(function(B) {
1978
+ var w = B.data;
1979
+ return w.value === F;
1980
1980
  });
1981
1981
  Q !== -1 && (Ie(Q), Y(Q));
1982
1982
  }
@@ -1991,7 +1991,7 @@ var ma = function(t, n) {
1991
1991
  }, [l, v]);
1992
1992
  var fe = function(y) {
1993
1993
  y !== void 0 && S(y, {
1994
- selected: !w.has(y)
1994
+ selected: !E.has(y)
1995
1995
  }), s || f(!1);
1996
1996
  };
1997
1997
  if (o.useImperativeHandle(n, function() {
@@ -2005,14 +2005,14 @@ var ma = function(t, n) {
2005
2005
  case ne.DOWN: {
2006
2006
  var B = 0;
2007
2007
  if (F === ne.UP ? B = -1 : F === ne.DOWN ? B = 1 : da() && Q && (F === ne.N ? B = 1 : F === ne.P && (B = -1)), B !== 0) {
2008
- var E = V(k + B, B);
2009
- Y(E), Ie(E, !0);
2008
+ var w = V(k + B, B);
2009
+ Y(w), Ie(w, !0);
2010
2010
  }
2011
2011
  break;
2012
2012
  }
2013
2013
  case ne.ENTER: {
2014
2014
  var ee, xe = j[k];
2015
- xe && !(xe != null && (ee = xe.data) !== null && ee !== void 0 && ee.disabled) && !R ? fe(xe.value) : fe(void 0), l && y.preventDefault();
2015
+ xe && !(xe != null && (ee = xe.data) !== null && ee !== void 0 && ee.disabled) && !M ? fe(xe.value) : fe(void 0), l && y.preventDefault();
2016
2016
  break;
2017
2017
  }
2018
2018
  case ne.ESC:
@@ -2048,9 +2048,9 @@ var ma = function(t, n) {
2048
2048
  var F = j[y];
2049
2049
  if (!F)
2050
2050
  return null;
2051
- var Q = F.data || {}, B = Q.value, E = F.group, ee = tn(Q, !0), xe = Ae(F);
2051
+ var Q = F.data || {}, B = Q.value, w = F.group, ee = tn(Q, !0), xe = Ae(F);
2052
2052
  return F ? /* @__PURE__ */ o.createElement("div", ze({
2053
- "aria-label": typeof xe == "string" && !E ? xe : null
2053
+ "aria-label": typeof xe == "string" && !w ? xe : null
2054
2054
  }, ee, {
2055
2055
  key: y
2056
2056
  }, ie(F, y), {
@@ -2079,19 +2079,19 @@ var ma = function(t, n) {
2079
2079
  direction: x,
2080
2080
  innerProps: C ? null : _e
2081
2081
  }, function(N, y) {
2082
- var F = N.group, Q = N.groupOption, B = N.data, E = N.label, ee = N.value, xe = B.key;
2082
+ var F = N.group, Q = N.groupOption, B = N.data, w = N.label, ee = N.value, xe = B.key;
2083
2083
  if (F) {
2084
- var ae, ve = (ae = B.title) !== null && ae !== void 0 ? ae : ur(E) ? E.toString() : void 0;
2084
+ var ae, ve = (ae = B.title) !== null && ae !== void 0 ? ae : ur(w) ? w.toString() : void 0;
2085
2085
  return /* @__PURE__ */ o.createElement("div", {
2086
2086
  className: Se(H, "".concat(H, "-group"), B.className),
2087
2087
  title: ve
2088
- }, E !== void 0 ? E : xe);
2088
+ }, w !== void 0 ? w : xe);
2089
2089
  }
2090
2090
  var Oe = B.disabled, le = B.title;
2091
2091
  B.children;
2092
- var $e = B.style, Ce = B.className, be = bt(B, fa), Ge = _n(be, me), we = de(ee), Te = Oe || !we && R, Pe = "".concat(H, "-option"), Le = Se(H, Pe, Ce, ue(ue(ue(ue({}, "".concat(Pe, "-grouped"), Q), "".concat(Pe, "-active"), k === y && !Te), "".concat(Pe, "-disabled"), Te), "".concat(Pe, "-selected"), we)), Be = Ae(N), Qe = !$ || typeof $ == "function" || we, Ze = typeof Be == "number" ? Be : Be || ee, pe = ur(Ze) ? Ze.toString() : void 0;
2092
+ var $e = B.style, Ce = B.className, be = bt(B, fa), Ge = _n(be, me), Ee = de(ee), Te = Oe || !Ee && M, Pe = "".concat(H, "-option"), Le = Se(H, Pe, Ce, ue(ue(ue(ue({}, "".concat(Pe, "-grouped"), Q), "".concat(Pe, "-active"), k === y && !Te), "".concat(Pe, "-disabled"), Te), "".concat(Pe, "-selected"), Ee)), Be = Ae(N), Qe = !$ || typeof $ == "function" || Ee, Ze = typeof Be == "number" ? Be : Be || ee, pe = ur(Ze) ? Ze.toString() : void 0;
2093
2093
  return le !== void 0 && (pe = le), /* @__PURE__ */ o.createElement("div", ze({}, tn(Ge), C ? {} : ie(N, y), {
2094
- "aria-selected": we,
2094
+ "aria-selected": Ee,
2095
2095
  className: Le,
2096
2096
  title: pe,
2097
2097
  onMouseMove: function() {
@@ -2105,15 +2105,15 @@ var ma = function(t, n) {
2105
2105
  className: "".concat(Pe, "-content")
2106
2106
  }, typeof I == "function" ? I(N, {
2107
2107
  index: y
2108
- }) : Ze), /* @__PURE__ */ o.isValidElement($) || we, Qe && /* @__PURE__ */ o.createElement(mn, {
2108
+ }) : Ze), /* @__PURE__ */ o.isValidElement($) || Ee, Qe && /* @__PURE__ */ o.createElement(mn, {
2109
2109
  className: "".concat(H, "-option-state"),
2110
2110
  customizeIcon: $,
2111
2111
  customizeIconProps: {
2112
2112
  value: ee,
2113
2113
  disabled: Te,
2114
- isSelected: we
2114
+ isSelected: Ee
2115
2115
  }
2116
- }, we ? "✓" : null));
2116
+ }, Ee ? "✓" : null));
2117
2117
  }));
2118
2118
  }, Vr = /* @__PURE__ */ o.forwardRef(ma);
2119
2119
  process.env.NODE_ENV !== "production" && (Vr.displayName = "OptionList");
@@ -2246,8 +2246,8 @@ function xa(e) {
2246
2246
  st(!$, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
2247
2247
  }
2248
2248
  if (st(t !== "combobox" || !g, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), st(t === "combobox" || !i, "`backfill` only works with `combobox` mode."), st(t === "combobox" || !s, "`getInputElement` only work with `combobox` mode."), qn(t !== "combobox" || !s || !a || !l, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), v && !h && t !== "combobox" && t !== "tags" && st(!1, "`onSearch` should work with `showSearch` instead of use alone."), qn(!f || d, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), c != null) {
2249
- var w = Bn(c);
2250
- st(!b || w.every(function(C) {
2249
+ var E = Bn(c);
2250
+ st(!b || E.every(function(C) {
2251
2251
  return Ht(C) === "object" && ("key" in C || "value" in C);
2252
2252
  }), "`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"), st(!p || Array.isArray(c), "`value` should be array when `mode` is `multiple` or `tags`");
2253
2253
  }
@@ -2269,7 +2269,7 @@ function xa(e) {
2269
2269
  }), P && st(!1, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(P.displayName || P.name || P, "`.")), st(m === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
2270
2270
  }
2271
2271
  }
2272
- function wa(e, t) {
2272
+ function Ea(e, t) {
2273
2273
  if (e) {
2274
2274
  var n = function r(i) {
2275
2275
  for (var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, l = 0; l < i.length; l++) {
@@ -2283,12 +2283,12 @@ function wa(e, t) {
2283
2283
  n(e);
2284
2284
  }
2285
2285
  }
2286
- var Ea = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], Ia = ["inputValue"];
2286
+ var wa = ["id", "mode", "prefixCls", "backfill", "fieldNames", "inputValue", "searchValue", "onSearch", "autoClearSearchValue", "onSelect", "onDeselect", "dropdownMatchSelectWidth", "filterOption", "filterSort", "optionFilterProp", "optionLabelProp", "options", "optionRender", "children", "defaultActiveFirstOption", "menuItemSelectedIcon", "virtual", "direction", "listHeight", "listItemHeight", "labelRender", "value", "defaultValue", "labelInValue", "onChange", "maxCount"], Ia = ["inputValue"];
2287
2287
  function Oa(e) {
2288
2288
  return !e || Ht(e) !== "object";
2289
2289
  }
2290
2290
  var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2291
- var n = e.id, r = e.mode, i = e.prefixCls, a = i === void 0 ? "rc-select" : i, l = e.backfill, s = e.fieldNames, u = e.inputValue, v = e.searchValue, f = e.onSearch, d = e.autoClearSearchValue, b = d === void 0 ? !0 : d, c = e.onSelect, m = e.onDeselect, g = e.dropdownMatchSelectWidth, p = g === void 0 ? !0 : g, h = e.filterOption, S = e.filterSort, $ = e.optionFilterProp, w = e.optionLabelProp, P = e.options, C = e.optionRender, x = e.children, D = e.defaultActiveFirstOption, O = e.menuItemSelectedIcon, I = e.virtual, H = e.direction, j = e.listHeight, T = j === void 0 ? 200 : j, R = e.listItemHeight, _ = R === void 0 ? 20 : R, Y = e.labelRender, V = e.value, M = e.defaultValue, L = e.labelInValue, k = e.onChange, W = e.maxCount, Ie = bt(e, Ea), de = Sa(n), fe = un(r), me = !!(!P && x), Ae = o.useMemo(function() {
2291
+ var n = e.id, r = e.mode, i = e.prefixCls, a = i === void 0 ? "rc-select" : i, l = e.backfill, s = e.fieldNames, u = e.inputValue, v = e.searchValue, f = e.onSearch, d = e.autoClearSearchValue, b = d === void 0 ? !0 : d, c = e.onSelect, m = e.onDeselect, g = e.dropdownMatchSelectWidth, p = g === void 0 ? !0 : g, h = e.filterOption, S = e.filterSort, $ = e.optionFilterProp, E = e.optionLabelProp, P = e.options, C = e.optionRender, x = e.children, D = e.defaultActiveFirstOption, O = e.menuItemSelectedIcon, I = e.virtual, H = e.direction, j = e.listHeight, T = j === void 0 ? 200 : j, M = e.listItemHeight, _ = M === void 0 ? 20 : M, Y = e.labelRender, V = e.value, R = e.defaultValue, L = e.labelInValue, k = e.onChange, W = e.maxCount, Ie = bt(e, wa), de = Sa(n), fe = un(r), me = !!(!P && x), Ae = o.useMemo(function() {
2292
2292
  return h === void 0 && r === "combobox" ? !1 : h;
2293
2293
  }, [h, r]), ie = o.useMemo(
2294
2294
  function() {
@@ -2306,20 +2306,20 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2306
2306
  postState: function(te) {
2307
2307
  return te || "";
2308
2308
  }
2309
- }), _e = re(ye, 2), N = _e[0], y = _e[1], F = $a(P, x, ie, $, w), Q = F.valueOptions, B = F.labelOptions, E = F.options, ee = o.useCallback(function(A) {
2309
+ }), _e = re(ye, 2), N = _e[0], y = _e[1], F = $a(P, x, ie, $, E), Q = F.valueOptions, B = F.labelOptions, w = F.options, ee = o.useCallback(function(A) {
2310
2310
  var te = Bn(A);
2311
2311
  return te.map(function(z) {
2312
- var q, he, Re, ot, ke;
2312
+ var q, he, Me, ot, ke;
2313
2313
  if (Oa(z))
2314
2314
  q = z;
2315
2315
  else {
2316
2316
  var tt;
2317
- Re = z.key, he = z.label, q = (tt = z.value) !== null && tt !== void 0 ? tt : Re;
2317
+ Me = z.key, he = z.label, q = (tt = z.value) !== null && tt !== void 0 ? tt : Me;
2318
2318
  }
2319
2319
  var He = Q.get(q);
2320
2320
  if (He) {
2321
2321
  var Ye;
2322
- if (he === void 0 && (he = He == null ? void 0 : He[w || ie.label]), Re === void 0 && (Re = (Ye = He == null ? void 0 : He.key) !== null && Ye !== void 0 ? Ye : q), ot = He == null ? void 0 : He.disabled, ke = He == null ? void 0 : He.title, process.env.NODE_ENV !== "production" && !w) {
2322
+ if (he === void 0 && (he = He == null ? void 0 : He[E || ie.label]), Me === void 0 && (Me = (Ye = He == null ? void 0 : He.key) !== null && Ye !== void 0 ? Ye : q), ot = He == null ? void 0 : He.disabled, ke = He == null ? void 0 : He.title, process.env.NODE_ENV !== "production" && !E) {
2323
2323
  var at = He == null ? void 0 : He[ie.label];
2324
2324
  at !== void 0 && !/* @__PURE__ */ o.isValidElement(at) && !/* @__PURE__ */ o.isValidElement(he) && at !== he && st(!1, "`label` of `value` is not same as `label` in Select options.");
2325
2325
  }
@@ -2327,17 +2327,17 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2327
2327
  return {
2328
2328
  label: he,
2329
2329
  value: q,
2330
- key: Re,
2330
+ key: Me,
2331
2331
  disabled: ot,
2332
2332
  title: ke
2333
2333
  };
2334
2334
  });
2335
- }, [ie, w, Q]), xe = en(M, {
2335
+ }, [ie, E, Q]), xe = en(R, {
2336
2336
  value: V
2337
2337
  }), ae = re(xe, 2), ve = ae[0], Oe = ae[1], le = o.useMemo(function() {
2338
2338
  var A, te = fe && ve === null ? [] : ve, z = ee(te);
2339
2339
  return r === "combobox" && Lo((A = z[0]) === null || A === void 0 ? void 0 : A.value) ? [] : z;
2340
- }, [ve, ee, r, fe]), $e = ga(le, Q), Ce = re($e, 2), be = Ce[0], Ge = Ce[1], we = o.useMemo(function() {
2340
+ }, [ve, ee, r, fe]), $e = ga(le, Q), Ce = re($e, 2), be = Ce[0], Ge = Ce[1], Ee = o.useMemo(function() {
2341
2341
  if (!r && be.length === 1) {
2342
2342
  var A = be[0];
2343
2343
  if (A.value === null && (A.label === null || A.label === void 0))
@@ -2365,8 +2365,8 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2365
2365
  return ue(ue({}, ie.value, A), ie.label, z);
2366
2366
  }), Le = o.useMemo(function() {
2367
2367
  if (r !== "tags")
2368
- return E;
2369
- var A = mt(E), te = function(q) {
2368
+ return w;
2369
+ var A = mt(w), te = function(q) {
2370
2370
  return Q.has(q);
2371
2371
  };
2372
2372
  return mt(be).sort(function(z, q) {
@@ -2375,7 +2375,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2375
2375
  var q = z.value;
2376
2376
  te(q) || A.push(Pe(q, z.label));
2377
2377
  }), A;
2378
- }, [Pe, E, Q, be, r]), Be = va(Le, ie, N, Ae, $), Qe = o.useMemo(function() {
2378
+ }, [Pe, w, Q, be, r]), Be = va(Le, ie, N, Ae, $), Qe = o.useMemo(function() {
2379
2379
  return r !== "tags" || !N || Be.some(function(A) {
2380
2380
  return A[$ || "value"] === N;
2381
2381
  }) || Be.some(function(A) {
@@ -2393,14 +2393,14 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2393
2393
  }, [Ze, ie, me]), Xe = function(te) {
2394
2394
  var z = ee(te);
2395
2395
  if (Oe(z), k && // Trigger event only when value changed
2396
- (z.length !== be.length || z.some(function(Re, ot) {
2396
+ (z.length !== be.length || z.some(function(Me, ot) {
2397
2397
  var ke;
2398
- return ((ke = be[ot]) === null || ke === void 0 ? void 0 : ke.value) !== (Re == null ? void 0 : Re.value);
2398
+ return ((ke = be[ot]) === null || ke === void 0 ? void 0 : ke.value) !== (Me == null ? void 0 : Me.value);
2399
2399
  }))) {
2400
- var q = L ? z : z.map(function(Re) {
2401
- return Re.value;
2402
- }), he = z.map(function(Re) {
2403
- return In(Ge(Re.value));
2400
+ var q = L ? z : z.map(function(Me) {
2401
+ return Me.value;
2402
+ }), he = z.map(function(Me) {
2403
+ return In(Ge(Me.value));
2404
2404
  });
2405
2405
  k(
2406
2406
  // Value
@@ -2409,9 +2409,9 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2409
2409
  fe ? he : he[0]
2410
2410
  );
2411
2411
  }
2412
- }, it = o.useState(null), Ue = re(it, 2), Fe = Ue[0], je = Ue[1], yt = o.useState(0), ct = re(yt, 2), qe = ct[0], Rt = ct[1], gt = D !== void 0 ? D : r !== "combobox", ht = o.useCallback(function(A, te) {
2412
+ }, it = o.useState(null), Ue = re(it, 2), Fe = Ue[0], je = Ue[1], yt = o.useState(0), ct = re(yt, 2), qe = ct[0], Mt = ct[1], gt = D !== void 0 ? D : r !== "combobox", ht = o.useCallback(function(A, te) {
2413
2413
  var z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, q = z.source, he = q === void 0 ? "keyboard" : q;
2414
- Rt(te), l && r === "combobox" && A !== null && he === "keyboard" && je(String(A));
2414
+ Mt(te), l && r === "combobox" && A !== null && he === "keyboard" && je(String(A));
2415
2415
  }, [l, r]), rt = function(te, z, q) {
2416
2416
  var he = function() {
2417
2417
  var vt, X = Ge(te);
@@ -2422,7 +2422,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2422
2422
  } : te, In(X)];
2423
2423
  };
2424
2424
  if (z && c) {
2425
- var Re = he(), ot = re(Re, 2), ke = ot[0], tt = ot[1];
2425
+ var Me = he(), ot = re(Me, 2), ke = ot[0], tt = ot[1];
2426
2426
  c(ke, tt);
2427
2427
  } else if (!z && m && q !== "clear") {
2428
2428
  var He = he(), Ye = re(He, 2), at = Ye[0], Vt = Ye[1];
@@ -2436,8 +2436,8 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2436
2436
  }), oe = function(te, z) {
2437
2437
  Xe(te);
2438
2438
  var q = z.type, he = z.values;
2439
- (q === "remove" || q === "clear") && he.forEach(function(Re) {
2440
- rt(Re.value, !1, q);
2439
+ (q === "remove" || q === "clear") && he.forEach(function(Me) {
2440
+ rt(Me.value, !1, q);
2441
2441
  });
2442
2442
  }, U = function(te, z) {
2443
2443
  if (y(te), je(null), z.source === "submit") {
@@ -2449,11 +2449,11 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2449
2449
  return;
2450
2450
  }
2451
2451
  z.source !== "blur" && (r === "combobox" && Xe(te), f == null || f(te));
2452
- }, Me = function(te) {
2452
+ }, Re = function(te) {
2453
2453
  var z = te;
2454
2454
  r !== "tags" && (z = te.map(function(he) {
2455
- var Re = B.get(he);
2456
- return Re == null ? void 0 : Re.value;
2455
+ var Me = B.get(he);
2456
+ return Me == null ? void 0 : Me.value;
2457
2457
  }).filter(function(he) {
2458
2458
  return he !== void 0;
2459
2459
  }));
@@ -2480,7 +2480,7 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2480
2480
  optionRender: C
2481
2481
  });
2482
2482
  }, [W, F, pe, ht, gt, ut, O, Te, ie, I, p, H, T, _, me, C]);
2483
- return process.env.NODE_ENV !== "production" && (xa(e), wa(E, ie)), /* @__PURE__ */ o.createElement(jn.Provider, {
2483
+ return process.env.NODE_ENV !== "production" && (xa(e), Ea(w, ie)), /* @__PURE__ */ o.createElement(jn.Provider, {
2484
2484
  value: We
2485
2485
  }, /* @__PURE__ */ o.createElement(Br, ze({}, Ie, {
2486
2486
  // >>> MISC
@@ -2489,13 +2489,13 @@ var Ar = /* @__PURE__ */ o.forwardRef(function(e, t) {
2489
2489
  ref: t,
2490
2490
  omitDomProps: Ia,
2491
2491
  mode: r,
2492
- displayValues: we,
2492
+ displayValues: Ee,
2493
2493
  onDisplayValuesChange: oe,
2494
2494
  direction: H,
2495
2495
  searchValue: N,
2496
2496
  onSearch: U,
2497
2497
  autoClearSearchValue: b,
2498
- onSearchSplit: Me,
2498
+ onSearchSplit: Re,
2499
2499
  dropdownMatchSelectWidth: p,
2500
2500
  OptionList: Vr,
2501
2501
  emptyOptions: !pe.length,
@@ -2568,7 +2568,7 @@ const Wr = () => {
2568
2568
  borderColor: a,
2569
2569
  shadowColor: l,
2570
2570
  contentColor: s
2571
- } = wn(() => ({
2571
+ } = En(() => ({
2572
2572
  borderColor: new an(t).onBackground(i).toHexShortString(),
2573
2573
  shadowColor: new an(n).onBackground(i).toHexShortString(),
2574
2574
  contentColor: new an(r).onBackground(i).toHexShortString()
@@ -2654,7 +2654,7 @@ const Na = (e) => {
2654
2654
  }
2655
2655
  }
2656
2656
  };
2657
- }, Ma = Wt("Empty", (e) => {
2657
+ }, Ra = Wt("Empty", (e) => {
2658
2658
  const {
2659
2659
  componentCls: t,
2660
2660
  controlHeightLG: n,
@@ -2667,7 +2667,7 @@ const Na = (e) => {
2667
2667
  });
2668
2668
  return [Na(i)];
2669
2669
  });
2670
- var Ra = function(e, t) {
2670
+ var Ma = function(e, t) {
2671
2671
  var n = {};
2672
2672
  for (var r in e)
2673
2673
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -2686,17 +2686,17 @@ const Kr = /* @__PURE__ */ o.createElement(Fr, null), Xr = /* @__PURE__ */ o.cre
2686
2686
  children: l,
2687
2687
  imageStyle: s,
2688
2688
  style: u
2689
- } = e, v = Ra(e, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style"]);
2689
+ } = e, v = Ma(e, ["className", "rootClassName", "prefixCls", "image", "description", "children", "imageStyle", "style"]);
2690
2690
  const {
2691
2691
  getPrefixCls: f,
2692
2692
  direction: d,
2693
2693
  empty: b
2694
- } = o.useContext(xt), c = f("empty", r), [m, g, p] = Ma(c), [h] = Cr("Empty"), S = typeof a < "u" ? a : h == null ? void 0 : h.description, $ = typeof S == "string" ? S : "empty";
2695
- let w = null;
2696
- return typeof i == "string" ? w = /* @__PURE__ */ o.createElement("img", {
2694
+ } = o.useContext(xt), c = f("empty", r), [m, g, p] = Ra(c), [h] = Cr("Empty"), S = typeof a < "u" ? a : h == null ? void 0 : h.description, $ = typeof S == "string" ? S : "empty";
2695
+ let E = null;
2696
+ return typeof i == "string" ? E = /* @__PURE__ */ o.createElement("img", {
2697
2697
  alt: $,
2698
2698
  src: i
2699
- }) : w = i, m(/* @__PURE__ */ o.createElement("div", Object.assign({
2699
+ }) : E = i, m(/* @__PURE__ */ o.createElement("div", Object.assign({
2700
2700
  className: Se(g, p, c, b == null ? void 0 : b.className, {
2701
2701
  [`${c}-normal`]: i === Xr,
2702
2702
  [`${c}-rtl`]: d === "rtl"
@@ -2705,7 +2705,7 @@ const Kr = /* @__PURE__ */ o.createElement(Fr, null), Xr = /* @__PURE__ */ o.cre
2705
2705
  }, v), /* @__PURE__ */ o.createElement("div", {
2706
2706
  className: `${c}-image`,
2707
2707
  style: s
2708
- }, w), S && /* @__PURE__ */ o.createElement("div", {
2708
+ }, E), S && /* @__PURE__ */ o.createElement("div", {
2709
2709
  className: `${c}-description`
2710
2710
  }, S), l && /* @__PURE__ */ o.createElement("div", {
2711
2711
  className: `${c}-footer`
@@ -2815,7 +2815,7 @@ const mr = (e) => {
2815
2815
  ${i}${s}bottomLeft,
2816
2816
  ${a}${s}bottomLeft
2817
2817
  `]: {
2818
- animationName: wr
2818
+ animationName: Er
2819
2819
  },
2820
2820
  [`
2821
2821
  ${i}${s}topLeft,
@@ -2826,7 +2826,7 @@ const mr = (e) => {
2826
2826
  animationName: Ir
2827
2827
  },
2828
2828
  [`${l}${s}bottomLeft`]: {
2829
- animationName: Er
2829
+ animationName: wr
2830
2830
  },
2831
2831
  [`
2832
2832
  ${l}${s}topLeft,
@@ -3308,7 +3308,7 @@ const Va = (e) => {
3308
3308
  colorFillSecondary: g,
3309
3309
  colorBgContainerDisabled: p,
3310
3310
  colorTextDisabled: h
3311
- } = e, S = s * 2, $ = r * 2, w = Math.min(i - S, i - $), P = Math.min(a - S, a - $), C = Math.min(l - S, l - $);
3311
+ } = e, S = s * 2, $ = r * 2, E = Math.min(i - S, i - $), P = Math.min(a - S, a - $), C = Math.min(l - S, l - $);
3312
3312
  return {
3313
3313
  INTERNAL_FIXED_ITEM_MARGIN: Math.floor(s / 2),
3314
3314
  zIndexPopup: v + 50,
@@ -3325,7 +3325,7 @@ const Va = (e) => {
3325
3325
  singleItemHeightLG: l,
3326
3326
  multipleItemBg: g,
3327
3327
  multipleItemBorderColor: "transparent",
3328
- multipleItemHeight: w,
3328
+ multipleItemHeight: E,
3329
3329
  multipleItemHeightSM: P,
3330
3330
  multipleItemHeightLG: C,
3331
3331
  multipleSelectorBgDisabled: p,
@@ -3651,7 +3651,7 @@ const Va = (e) => {
3651
3651
  // =====================================================
3652
3652
  // == Space Compact ==
3653
3653
  // =====================================================
3654
- Mi(e, {
3654
+ Ri(e, {
3655
3655
  borderElCls: `${t}-selector`,
3656
3656
  focusElCls: `${t}-focused`
3657
3657
  })
@@ -3703,7 +3703,7 @@ function el(e) {
3703
3703
  componentName: b
3704
3704
  } = e;
3705
3705
  process.env.NODE_ENV !== "production" && zn(b).deprecated(!n, "clearIcon", "allowClear={{ clearIcon: React.ReactNode }}");
3706
- const c = n ?? /* @__PURE__ */ o.createElement(Ri, null), m = (S) => t === null && !s && !d ? null : /* @__PURE__ */ o.createElement(o.Fragment, null, v !== !1 && S, s && f);
3706
+ const c = n ?? /* @__PURE__ */ o.createElement(Mi, null), m = (S) => t === null && !s && !d ? null : /* @__PURE__ */ o.createElement(o.Fragment, null, v !== !1 && S, s && f);
3707
3707
  let g = null;
3708
3708
  if (t !== void 0)
3709
3709
  g = m(t);
@@ -3715,10 +3715,10 @@ function el(e) {
3715
3715
  const S = `${u}-suffix`;
3716
3716
  g = ($) => {
3717
3717
  let {
3718
- open: w,
3718
+ open: E,
3719
3719
  showSearch: P
3720
3720
  } = $;
3721
- return m(w && P ? /* @__PURE__ */ o.createElement(Jr, {
3721
+ return m(E && P ? /* @__PURE__ */ o.createElement(Jr, {
3722
3722
  className: S
3723
3723
  }) : /* @__PURE__ */ o.createElement(Yr, {
3724
3724
  className: S
@@ -3767,7 +3767,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3767
3767
  builtinPlacements: h,
3768
3768
  dropdownMatchSelectWidth: S,
3769
3769
  popupMatchSelectWidth: $,
3770
- direction: w,
3770
+ direction: E,
3771
3771
  style: P,
3772
3772
  allowClear: C,
3773
3773
  variant: x,
@@ -3777,14 +3777,14 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3777
3777
  maxCount: H
3778
3778
  } = e, j = nl(e, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear", "variant", "dropdownStyle", "transitionName", "tagRender", "maxCount"]), {
3779
3779
  getPopupContainer: T,
3780
- getPrefixCls: R,
3780
+ getPrefixCls: M,
3781
3781
  renderEmpty: _,
3782
3782
  direction: Y,
3783
3783
  virtual: V,
3784
- popupMatchSelectWidth: M,
3784
+ popupMatchSelectWidth: R,
3785
3785
  popupOverflow: L,
3786
3786
  select: k
3787
- } = o.useContext(xt), [, W] = dn(), Ie = b ?? (W == null ? void 0 : W.controlHeight), de = R("select", r), fe = R(), me = w ?? Y, {
3787
+ } = o.useContext(xt), [, W] = dn(), Ie = b ?? (W == null ? void 0 : W.controlHeight), de = M("select", r), fe = M(), me = E ?? Y, {
3788
3788
  compactSize: Ae,
3789
3789
  compactItemClassnames: ie
3790
3790
  } = zi(de, me), [ye, _e] = _i(x, i), N = Ti(de), [y, F, Q] = Ya(de, N), B = o.useMemo(() => {
@@ -3793,7 +3793,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3793
3793
  } = e;
3794
3794
  if (Fe !== "combobox")
3795
3795
  return Fe === Qr ? "combobox" : Fe;
3796
- }, [e.mode]), E = B === "multiple" || B === "tags", ee = tl(e.suffixIcon, e.showArrow), xe = (n = $ ?? S) !== null && n !== void 0 ? n : M, {
3796
+ }, [e.mode]), w = B === "multiple" || B === "tags", ee = tl(e.suffixIcon, e.showArrow), xe = (n = $ ?? S) !== null && n !== void 0 ? n : R, {
3797
3797
  status: ae,
3798
3798
  hasFeedback: ve,
3799
3799
  isFormItemInput: Oe,
@@ -3806,10 +3806,10 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3806
3806
  const {
3807
3807
  suffixIcon: be,
3808
3808
  itemIcon: Ge,
3809
- removeIcon: we,
3809
+ removeIcon: Ee,
3810
3810
  clearIcon: Te
3811
3811
  } = el(Object.assign(Object.assign({}, j), {
3812
- multiple: E,
3812
+ multiple: w,
3813
3813
  hasFeedback: ve,
3814
3814
  feedbackIcon: le,
3815
3815
  showSuffixIcon: ee,
@@ -3831,7 +3831,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3831
3831
  }, Bi(de, $e, ve), ie, k == null ? void 0 : k.className, a, l, Q, N, F), it = o.useMemo(() => d !== void 0 ? d : me === "rtl" ? "bottomRight" : "bottomLeft", [d, me]);
3832
3832
  if (process.env.NODE_ENV !== "production") {
3833
3833
  const Fe = zn("Select");
3834
- Fe.deprecated(!v, "dropdownClassName", "popupClassName"), Fe.deprecated(S === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Fe(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Fe.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Fe(!(typeof H < "u" && !E), "usage", "`maxCount` only works with mode `multiple` or `tags`");
3834
+ Fe.deprecated(!v, "dropdownClassName", "popupClassName"), Fe.deprecated(S === void 0, "dropdownMatchSelectWidth", "popupMatchSelectWidth"), process.env.NODE_ENV !== "production" && Fe(!("showArrow" in e), "deprecated", "`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."), Fe.deprecated(!("bordered" in e), "bordered", "variant"), process.env.NODE_ENV !== "production" && Fe(!(typeof H < "u" && !w), "usage", "`maxCount` only works with mode `multiple` or `tags`");
3835
3835
  }
3836
3836
  const [Ue] = ji("SelectLike", D == null ? void 0 : D.zIndex);
3837
3837
  return y(/* @__PURE__ */ o.createElement(Wn, Object.assign({
@@ -3851,7 +3851,7 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3851
3851
  direction: me,
3852
3852
  suffixIcon: be,
3853
3853
  menuItemSelectedIcon: Ge,
3854
- removeIcon: we,
3854
+ removeIcon: Ee,
3855
3855
  allowClear: Pe,
3856
3856
  notFoundContent: Ce,
3857
3857
  className: Xe,
@@ -3861,17 +3861,17 @@ const Qr = "SECRET_COMBOBOX_MODE_DO_NOT_USE", Zr = (e, t) => {
3861
3861
  dropdownStyle: Object.assign(Object.assign({}, D), {
3862
3862
  zIndex: Ue
3863
3863
  }),
3864
- maxCount: E ? H : void 0,
3865
- tagRender: E ? I : void 0
3864
+ maxCount: w ? H : void 0,
3865
+ tagRender: w ? I : void 0
3866
3866
  })));
3867
3867
  };
3868
3868
  process.env.NODE_ENV !== "production" && (Zr.displayName = "Select");
3869
- const Mt = /* @__PURE__ */ o.forwardRef(Zr), rl = Qi(Mt);
3870
- Mt.SECRET_COMBOBOX_MODE_DO_NOT_USE = Qr;
3871
- Mt.Option = Vn;
3872
- Mt.OptGroup = Hn;
3873
- Mt._InternalPanelDoNotUseOrYouWillBeFired = rl;
3874
- process.env.NODE_ENV !== "production" && (Mt.displayName = "Select");
3869
+ const Rt = /* @__PURE__ */ o.forwardRef(Zr), rl = Qi(Rt);
3870
+ Rt.SECRET_COMBOBOX_MODE_DO_NOT_USE = Qr;
3871
+ Rt.Option = Vn;
3872
+ Rt.OptGroup = Hn;
3873
+ Rt._InternalPanelDoNotUseOrYouWillBeFired = rl;
3874
+ process.env.NODE_ENV !== "production" && (Rt.displayName = "Select");
3875
3875
  var il = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, ol = function(t, n) {
3876
3876
  return /* @__PURE__ */ o.createElement(nn, ze({}, t, {
3877
3877
  ref: n,
@@ -3891,7 +3891,7 @@ function al(e, t, n) {
3891
3891
  function g() {
3892
3892
  for (var p = arguments.length, h = new Array(p), S = 0; S < p; S++)
3893
3893
  h[S] = arguments[S];
3894
- var $ = this, w = Date.now() - b;
3894
+ var $ = this, E = Date.now() - b;
3895
3895
  if (d)
3896
3896
  return;
3897
3897
  function P() {
@@ -3900,7 +3900,7 @@ function al(e, t, n) {
3900
3900
  function C() {
3901
3901
  f = void 0;
3902
3902
  }
3903
- !s && v && !f && P(), c(), v === void 0 && w > e ? s ? (b = Date.now(), a || (f = setTimeout(v ? C : P, e))) : P() : a !== !0 && (f = setTimeout(v ? C : P, v === void 0 ? e - w : e));
3903
+ !s && v && !f && P(), c(), v === void 0 && E > e ? s ? (b = Date.now(), a || (f = setTimeout(v ? C : P, e))) : P() : a !== !0 && (f = setTimeout(v ? C : P, v === void 0 ? e - E : e));
3904
3904
  }
3905
3905
  return g.cancel = m, g;
3906
3906
  }
@@ -4020,8 +4020,8 @@ const kr = /* @__PURE__ */ Ui({}), sl = (e) => {
4020
4020
  return a[`${r}${t}-flex`] = {
4021
4021
  flex: `var(--${n}${t}-flex)`
4022
4022
  }, a;
4023
- }, Mn = (e, t) => ul(e, t), dl = (e, t, n) => ({
4024
- [`@media (min-width: ${J(t)})`]: Object.assign({}, Mn(e, n))
4023
+ }, Rn = (e, t) => ul(e, t), dl = (e, t, n) => ({
4024
+ [`@media (min-width: ${J(t)})`]: Object.assign({}, Rn(e, n))
4025
4025
  }), fl = () => ({}), ml = () => ({}), gl = Wt("Grid", sl, fl), vl = Wt("Grid", (e) => {
4026
4026
  const t = Nt(e, {
4027
4027
  gridColumns: 24
@@ -4033,7 +4033,7 @@ const kr = /* @__PURE__ */ Ui({}), sl = (e) => {
4033
4033
  "-xl": t.screenXLMin,
4034
4034
  "-xxl": t.screenXXLMin
4035
4035
  };
4036
- return [cl(t), Mn(t, ""), Mn(t, "-xs"), Object.keys(n).map((r) => dl(t, n[r], r)).reduce((r, i) => Object.assign(Object.assign({}, r), i), {})];
4036
+ return [cl(t), Rn(t, ""), Rn(t, "-xs"), Object.keys(n).map((r) => dl(t, n[r], r)).reduce((r, i) => Object.assign(Object.assign({}, r), i), {})];
4037
4037
  }, ml);
4038
4038
  var pl = function(e, t) {
4039
4039
  var n = {};
@@ -4065,7 +4065,7 @@ const hl = ["xs", "sm", "md", "lg", "xl", "xxl"], ei = /* @__PURE__ */ o.forward
4065
4065
  children: c,
4066
4066
  flex: m,
4067
4067
  style: g
4068
- } = e, p = pl(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), h = n("col", l), [S, $, w] = vl(h), P = {};
4068
+ } = e, p = pl(e, ["prefixCls", "span", "order", "offset", "push", "pull", "className", "children", "flex", "style"]), h = n("col", l), [S, $, E] = vl(h), P = {};
4069
4069
  let C = {};
4070
4070
  hl.forEach((O) => {
4071
4071
  let I = {};
@@ -4085,7 +4085,7 @@ const hl = ["xs", "sm", "md", "lg", "xl", "xxl"], ei = /* @__PURE__ */ o.forward
4085
4085
  [`${h}-offset-${v}`]: v,
4086
4086
  [`${h}-push-${f}`]: f,
4087
4087
  [`${h}-pull-${d}`]: d
4088
- }, b, C, $, w), D = {};
4088
+ }, b, C, $, E), D = {};
4089
4089
  if (i && i[0] > 0) {
4090
4090
  const O = i[0] / 2;
4091
4091
  D.paddingLeft = O, D.paddingRight = O;
@@ -4151,14 +4151,14 @@ const ti = /* @__PURE__ */ o.forwardRef((e, t) => {
4151
4151
  lg: !1,
4152
4152
  xl: !1,
4153
4153
  xxl: !1
4154
- }), h = hr(i, g), S = hr(r, g), $ = o.useRef(u), w = qi();
4154
+ }), h = hr(i, g), S = hr(r, g), $ = o.useRef(u), E = qi();
4155
4155
  o.useEffect(() => {
4156
- const V = w.subscribe((M) => {
4157
- p(M);
4156
+ const V = E.subscribe((R) => {
4157
+ p(R);
4158
4158
  const L = $.current || 0;
4159
- (!Array.isArray(L) && typeof L == "object" || Array.isArray(L) && (typeof L[0] == "object" || typeof L[1] == "object")) && m(M);
4159
+ (!Array.isArray(L) && typeof L == "object" || Array.isArray(L) && (typeof L[0] == "object" || typeof L[1] == "object")) && m(R);
4160
4160
  });
4161
- return () => w.unsubscribe(V);
4161
+ return () => E.unsubscribe(V);
4162
4162
  }, []);
4163
4163
  const P = () => {
4164
4164
  const V = [void 0, void 0];
@@ -4181,12 +4181,12 @@ const ti = /* @__PURE__ */ o.forwardRef((e, t) => {
4181
4181
  [`${C}-rtl`]: b === "rtl"
4182
4182
  }, a, D, O), j = {}, T = I[0] != null && I[0] > 0 ? I[0] / -2 : void 0;
4183
4183
  T && (j.marginLeft = T, j.marginRight = T);
4184
- const [R, _] = I;
4184
+ const [M, _] = I;
4185
4185
  j.rowGap = _;
4186
4186
  const Y = o.useMemo(() => ({
4187
- gutter: [R, _],
4187
+ gutter: [M, _],
4188
4188
  wrap: v
4189
- }), [R, _, v]);
4189
+ }), [M, _, v]);
4190
4190
  return x(/* @__PURE__ */ o.createElement(kr.Provider, {
4191
4191
  value: Y
4192
4192
  }, /* @__PURE__ */ o.createElement("div", Object.assign({}, f, {
@@ -4428,7 +4428,7 @@ const bl = new et("antSpinMove", {
4428
4428
  });
4429
4429
  return [Cl(t)];
4430
4430
  }, $l);
4431
- var wl = function(e, t) {
4431
+ var El = function(e, t) {
4432
4432
  var n = {};
4433
4433
  for (var r in e)
4434
4434
  Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
@@ -4438,7 +4438,7 @@ var wl = function(e, t) {
4438
4438
  return n;
4439
4439
  };
4440
4440
  let ln = null;
4441
- function El(e, t) {
4441
+ function wl(e, t) {
4442
4442
  const {
4443
4443
  indicator: n
4444
4444
  } = t, r = `${e}-dot`;
@@ -4478,7 +4478,7 @@ const Kn = (e) => {
4478
4478
  style: v,
4479
4479
  children: f,
4480
4480
  fullscreen: d = !1
4481
- } = e, b = wl(e, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen"]), {
4481
+ } = e, b = El(e, ["prefixCls", "spinning", "delay", "className", "rootClassName", "size", "tip", "wrapperClassName", "style", "children", "fullscreen"]), {
4482
4482
  getPrefixCls: c
4483
4483
  } = o.useContext(xt), m = c("spin", t), [g, p, h] = xl(m), [S, $] = o.useState(() => n && !Il(n, r));
4484
4484
  o.useEffect(() => {
@@ -4493,10 +4493,10 @@ const Kn = (e) => {
4493
4493
  }
4494
4494
  $(!1);
4495
4495
  }, [r, n]);
4496
- const w = o.useMemo(() => typeof f < "u" && !d, [f, d]);
4496
+ const E = o.useMemo(() => typeof f < "u" && !d, [f, d]);
4497
4497
  if (process.env.NODE_ENV !== "production") {
4498
4498
  const j = zn("Spin");
4499
- process.env.NODE_ENV !== "production" && j(!s || w || d, "usage", "`tip` only work in nest or fullscreen pattern.");
4499
+ process.env.NODE_ENV !== "production" && j(!s || E || d, "usage", "`tip` only work in nest or fullscreen pattern.");
4500
4500
  }
4501
4501
  const {
4502
4502
  direction: P,
@@ -4516,10 +4516,10 @@ const Kn = (e) => {
4516
4516
  className: x,
4517
4517
  "aria-live": "polite",
4518
4518
  "aria-busy": S
4519
- }), El(m, e), s && (w || d) ? /* @__PURE__ */ o.createElement("div", {
4519
+ }), wl(m, e), s && (E || d) ? /* @__PURE__ */ o.createElement("div", {
4520
4520
  className: `${m}-text`
4521
4521
  }, s) : null);
4522
- return g(w ? /* @__PURE__ */ o.createElement("div", Object.assign({}, O, {
4522
+ return g(E ? /* @__PURE__ */ o.createElement("div", Object.assign({}, O, {
4523
4523
  className: Se(`${m}-nested-loading`, u, p, h)
4524
4524
  }), S && /* @__PURE__ */ o.createElement("div", {
4525
4525
  key: "loading"
@@ -4543,17 +4543,17 @@ const Ol = function() {
4543
4543
  }
4544
4544
  return e;
4545
4545
  };
4546
- var Nl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" } }] }, name: "double-left", theme: "outlined" }, Ml = function(t, n) {
4546
+ var Nl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z" } }] }, name: "double-left", theme: "outlined" }, Rl = function(t, n) {
4547
4547
  return /* @__PURE__ */ o.createElement(nn, ze({}, t, {
4548
4548
  ref: n,
4549
4549
  icon: Nl
4550
4550
  }));
4551
- }, Rn = /* @__PURE__ */ o.forwardRef(Ml);
4552
- process.env.NODE_ENV !== "production" && (Rn.displayName = "DoubleLeftOutlined");
4553
- var Rl = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, name: "double-right", theme: "outlined" }, Pl = function(t, n) {
4551
+ }, Mn = /* @__PURE__ */ o.forwardRef(Rl);
4552
+ process.env.NODE_ENV !== "production" && (Mn.displayName = "DoubleLeftOutlined");
4553
+ var Ml = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z" } }] }, name: "double-right", theme: "outlined" }, Pl = function(t, n) {
4554
4554
  return /* @__PURE__ */ o.createElement(nn, ze({}, t, {
4555
4555
  ref: n,
4556
- icon: Rl
4556
+ icon: Ml
4557
4557
  }));
4558
4558
  }, Pn = /* @__PURE__ */ o.forwardRef(Pl);
4559
4559
  process.env.NODE_ENV !== "production" && (Pn.displayName = "DoubleRightOutlined");
@@ -4574,9 +4574,9 @@ var Dl = {
4574
4574
  }, zl = ["10", "20", "50", "100"], ni = function(t) {
4575
4575
  var n = t.pageSizeOptions, r = n === void 0 ? zl : n, i = t.locale, a = t.changeSize, l = t.pageSize, s = t.goButton, u = t.quickGo, v = t.rootPrefixCls, f = t.selectComponentClass, d = t.selectPrefixCls, b = t.disabled, c = t.buildOptionText, m = G.useState(""), g = re(m, 2), p = g[0], h = g[1], S = function() {
4576
4576
  return !p || Number.isNaN(p) ? void 0 : Number(p);
4577
- }, $ = typeof c == "function" ? c : function(R) {
4578
- return "".concat(R, " ").concat(i.items_per_page);
4579
- }, w = function(_) {
4577
+ }, $ = typeof c == "function" ? c : function(M) {
4578
+ return "".concat(M, " ").concat(i.items_per_page);
4579
+ }, E = function(_) {
4580
4580
  a == null || a(Number(_));
4581
4581
  }, P = function(_) {
4582
4582
  h(_.target.value);
@@ -4588,19 +4588,19 @@ var Dl = {
4588
4588
  return r.some(function(_) {
4589
4589
  return _.toString() === l.toString();
4590
4590
  }) ? r : r.concat([l.toString()]).sort(function(_, Y) {
4591
- var V = Number.isNaN(Number(_)) ? 0 : Number(_), M = Number.isNaN(Number(Y)) ? 0 : Number(Y);
4592
- return V - M;
4591
+ var V = Number.isNaN(Number(_)) ? 0 : Number(_), R = Number.isNaN(Number(Y)) ? 0 : Number(Y);
4592
+ return V - R;
4593
4593
  });
4594
4594
  }, O = "".concat(v, "-options");
4595
4595
  if (!a && !u)
4596
4596
  return null;
4597
4597
  var I = null, H = null, j = null;
4598
4598
  if (a && f) {
4599
- var T = D().map(function(R, _) {
4599
+ var T = D().map(function(M, _) {
4600
4600
  return /* @__PURE__ */ G.createElement(f.Option, {
4601
4601
  key: _,
4602
- value: R.toString()
4603
- }, $(R));
4602
+ value: M.toString()
4603
+ }, $(M));
4604
4604
  });
4605
4605
  I = /* @__PURE__ */ G.createElement(f, {
4606
4606
  disabled: b,
@@ -4610,7 +4610,7 @@ var Dl = {
4610
4610
  optionLabelProp: "children",
4611
4611
  popupMatchSelectWidth: !1,
4612
4612
  value: (l || r[0]).toString(),
4613
- onChange: w,
4613
+ onChange: E,
4614
4614
  getPopupContainer: function(_) {
4615
4615
  return _.parentNode;
4616
4616
  },
@@ -4673,75 +4673,75 @@ function At(e, t, n) {
4673
4673
  return Math.floor((n - 1) / r) + 1;
4674
4674
  }
4675
4675
  var ri = function(t) {
4676
- var n, r = t.prefixCls, i = r === void 0 ? "rc-pagination" : r, a = t.selectPrefixCls, l = a === void 0 ? "rc-select" : a, s = t.className, u = t.selectComponentClass, v = t.current, f = t.defaultCurrent, d = f === void 0 ? 1 : f, b = t.total, c = b === void 0 ? 0 : b, m = t.pageSize, g = t.defaultPageSize, p = g === void 0 ? 10 : g, h = t.onChange, S = h === void 0 ? Sn : h, $ = t.hideOnSinglePage, w = t.showPrevNextJumpers, P = w === void 0 ? !0 : w, C = t.showQuickJumper, x = t.showLessItems, D = t.showTitle, O = D === void 0 ? !0 : D, I = t.onShowSizeChange, H = I === void 0 ? Sn : I, j = t.locale, T = j === void 0 ? Dl : j, R = t.style, _ = t.totalBoundaryShowSizeChanger, Y = _ === void 0 ? 50 : _, V = t.disabled, M = t.simple, L = t.showTotal, k = t.showSizeChanger, W = t.pageSizeOptions, Ie = t.itemRender, de = Ie === void 0 ? _l : Ie, fe = t.jumpPrevIcon, me = t.jumpNextIcon, Ae = t.prevIcon, ie = t.nextIcon, ye = G.useRef(null), _e = en(10, {
4676
+ var n, r = t.prefixCls, i = r === void 0 ? "rc-pagination" : r, a = t.selectPrefixCls, l = a === void 0 ? "rc-select" : a, s = t.className, u = t.selectComponentClass, v = t.current, f = t.defaultCurrent, d = f === void 0 ? 1 : f, b = t.total, c = b === void 0 ? 0 : b, m = t.pageSize, g = t.defaultPageSize, p = g === void 0 ? 10 : g, h = t.onChange, S = h === void 0 ? Sn : h, $ = t.hideOnSinglePage, E = t.showPrevNextJumpers, P = E === void 0 ? !0 : E, C = t.showQuickJumper, x = t.showLessItems, D = t.showTitle, O = D === void 0 ? !0 : D, I = t.onShowSizeChange, H = I === void 0 ? Sn : I, j = t.locale, T = j === void 0 ? Dl : j, M = t.style, _ = t.totalBoundaryShowSizeChanger, Y = _ === void 0 ? 50 : _, V = t.disabled, R = t.simple, L = t.showTotal, k = t.showSizeChanger, W = t.pageSizeOptions, Ie = t.itemRender, de = Ie === void 0 ? _l : Ie, fe = t.jumpPrevIcon, me = t.jumpNextIcon, Ae = t.prevIcon, ie = t.nextIcon, ye = G.useRef(null), _e = en(10, {
4677
4677
  value: m,
4678
4678
  defaultValue: p
4679
4679
  }), N = re(_e, 2), y = N[0], F = N[1], Q = en(1, {
4680
4680
  value: v,
4681
4681
  defaultValue: d,
4682
- postState: function(Ee) {
4683
- return Math.max(1, Math.min(Ee, At(void 0, y, c)));
4682
+ postState: function(we) {
4683
+ return Math.max(1, Math.min(we, At(void 0, y, c)));
4684
4684
  }
4685
- }), B = re(Q, 2), E = B[0], ee = B[1], xe = G.useState(E), ae = re(xe, 2), ve = ae[0], Oe = ae[1];
4685
+ }), B = re(Q, 2), w = B[0], ee = B[1], xe = G.useState(w), ae = re(xe, 2), ve = ae[0], Oe = ae[1];
4686
4686
  sn(function() {
4687
- Oe(E);
4688
- }, [E]);
4687
+ Oe(w);
4688
+ }, [w]);
4689
4689
  var le = S !== Sn, $e = "current" in t;
4690
4690
  process.env.NODE_ENV !== "production" && st($e ? le : !0, "You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");
4691
- var Ce = Math.max(1, E - (x ? 3 : 5)), be = Math.min(At(void 0, y, c), E + (x ? 3 : 5));
4692
- function Ge(Z, Ee) {
4691
+ var Ce = Math.max(1, w - (x ? 3 : 5)), be = Math.min(At(void 0, y, c), w + (x ? 3 : 5));
4692
+ function Ge(Z, we) {
4693
4693
  var Ke = Z || /* @__PURE__ */ G.createElement("button", {
4694
4694
  type: "button",
4695
- "aria-label": Ee,
4695
+ "aria-label": we,
4696
4696
  className: "".concat(i, "-item-link")
4697
4697
  });
4698
4698
  return typeof Z == "function" && (Ke = /* @__PURE__ */ G.createElement(Z, ce({}, t))), Ke;
4699
4699
  }
4700
- function we(Z) {
4701
- var Ee = Z.target.value, Ke = At(void 0, y, c), It;
4702
- return Ee === "" ? It = Ee : Number.isNaN(Number(Ee)) ? It = ve : Ee >= Ke ? It = Ke : It = Number(Ee), It;
4700
+ function Ee(Z) {
4701
+ var we = Z.target.value, Ke = At(void 0, y, c), It;
4702
+ return we === "" ? It = we : Number.isNaN(Number(we)) ? It = ve : we >= Ke ? It = Ke : It = Number(we), It;
4703
4703
  }
4704
4704
  function Te(Z) {
4705
- return Sr(Z) && Z !== E && Sr(c) && c > 0;
4705
+ return Sr(Z) && Z !== w && Sr(c) && c > 0;
4706
4706
  }
4707
4707
  var Pe = c > y ? C : !1;
4708
4708
  function Le(Z) {
4709
4709
  (Z.keyCode === ne.UP || Z.keyCode === ne.DOWN) && Z.preventDefault();
4710
4710
  }
4711
4711
  function Be(Z) {
4712
- var Ee = we(Z);
4713
- switch (Ee !== ve && Oe(Ee), Z.keyCode) {
4712
+ var we = Ee(Z);
4713
+ switch (we !== ve && Oe(we), Z.keyCode) {
4714
4714
  case ne.ENTER:
4715
- pe(Ee);
4715
+ pe(we);
4716
4716
  break;
4717
4717
  case ne.UP:
4718
- pe(Ee - 1);
4718
+ pe(we - 1);
4719
4719
  break;
4720
4720
  case ne.DOWN:
4721
- pe(Ee + 1);
4721
+ pe(we + 1);
4722
4722
  break;
4723
4723
  }
4724
4724
  }
4725
4725
  function Qe(Z) {
4726
- pe(we(Z));
4726
+ pe(Ee(Z));
4727
4727
  }
4728
4728
  function Ze(Z) {
4729
- var Ee = At(Z, y, c), Ke = E > Ee && Ee !== 0 ? Ee : E;
4730
- F(Z), Oe(Ke), H == null || H(E, Z), ee(Ke), S == null || S(Ke, Z);
4729
+ var we = At(Z, y, c), Ke = w > we && we !== 0 ? we : w;
4730
+ F(Z), Oe(Ke), H == null || H(w, Z), ee(Ke), S == null || S(Ke, Z);
4731
4731
  }
4732
4732
  function pe(Z) {
4733
4733
  if (Te(Z) && !V) {
4734
- var Ee = At(void 0, y, c), Ke = Z;
4735
- return Z > Ee ? Ke = Ee : Z < 1 && (Ke = 1), Ke !== ve && Oe(Ke), ee(Ke), S == null || S(Ke, y), Ke;
4734
+ var we = At(void 0, y, c), Ke = Z;
4735
+ return Z > we ? Ke = we : Z < 1 && (Ke = 1), Ke !== ve && Oe(Ke), ee(Ke), S == null || S(Ke, y), Ke;
4736
4736
  }
4737
- return E;
4737
+ return w;
4738
4738
  }
4739
- var Xe = E > 1, it = E < At(void 0, y, c), Ue = k ?? c > Y;
4739
+ var Xe = w > 1, it = w < At(void 0, y, c), Ue = k ?? c > Y;
4740
4740
  function Fe() {
4741
- Xe && pe(E - 1);
4741
+ Xe && pe(w - 1);
4742
4742
  }
4743
4743
  function je() {
4744
- it && pe(E + 1);
4744
+ it && pe(w + 1);
4745
4745
  }
4746
4746
  function yt() {
4747
4747
  pe(Ce);
@@ -4749,14 +4749,14 @@ var ri = function(t) {
4749
4749
  function ct() {
4750
4750
  pe(be);
4751
4751
  }
4752
- function qe(Z, Ee) {
4752
+ function qe(Z, we) {
4753
4753
  if (Z.key === "Enter" || Z.charCode === ne.ENTER || Z.keyCode === ne.ENTER) {
4754
4754
  for (var Ke = arguments.length, It = new Array(Ke > 2 ? Ke - 2 : 0), Kt = 2; Kt < Ke; Kt++)
4755
4755
  It[Kt - 2] = arguments[Kt];
4756
- Ee.apply(void 0, It);
4756
+ we.apply(void 0, It);
4757
4757
  }
4758
4758
  }
4759
- function Rt(Z) {
4759
+ function Mt(Z) {
4760
4760
  qe(Z, Fe);
4761
4761
  }
4762
4762
  function gt(Z) {
@@ -4769,26 +4769,26 @@ var ri = function(t) {
4769
4769
  qe(Z, ct);
4770
4770
  }
4771
4771
  function ut(Z) {
4772
- var Ee = de(Z, "prev", Ge(Ae, "prev page"));
4773
- return /* @__PURE__ */ G.isValidElement(Ee) ? /* @__PURE__ */ G.cloneElement(Ee, {
4772
+ var we = de(Z, "prev", Ge(Ae, "prev page"));
4773
+ return /* @__PURE__ */ G.isValidElement(we) ? /* @__PURE__ */ G.cloneElement(we, {
4774
4774
  disabled: !Xe
4775
- }) : Ee;
4775
+ }) : we;
4776
4776
  }
4777
4777
  function oe(Z) {
4778
- var Ee = de(Z, "next", Ge(ie, "next page"));
4779
- return /* @__PURE__ */ G.isValidElement(Ee) ? /* @__PURE__ */ G.cloneElement(Ee, {
4778
+ var we = de(Z, "next", Ge(ie, "next page"));
4779
+ return /* @__PURE__ */ G.isValidElement(we) ? /* @__PURE__ */ G.cloneElement(we, {
4780
4780
  disabled: !it
4781
- }) : Ee;
4781
+ }) : we;
4782
4782
  }
4783
4783
  function U(Z) {
4784
4784
  (Z.type === "click" || Z.keyCode === ne.ENTER) && pe(ve);
4785
4785
  }
4786
- var Me = null, We = tn(t, {
4786
+ var Re = null, We = tn(t, {
4787
4787
  aria: !0,
4788
4788
  data: !0
4789
4789
  }), A = L && /* @__PURE__ */ G.createElement("li", {
4790
4790
  className: "".concat(i, "-total-text")
4791
- }, L(c, [c === 0 ? 0 : (E - 1) * y + 1, E * y > c ? c : E * y])), te = null, z = At(void 0, y, c);
4791
+ }, L(c, [c === 0 ? 0 : (w - 1) * y + 1, w * y > c ? c : w * y])), te = null, z = At(void 0, y, c);
4792
4792
  if ($ && c <= y)
4793
4793
  return null;
4794
4794
  var q = [], he = {
@@ -4798,8 +4798,8 @@ var ri = function(t) {
4798
4798
  showTitle: O,
4799
4799
  itemRender: de,
4800
4800
  page: -1
4801
- }, Re = E - 1 > 0 ? E - 1 : 0, ot = E + 1 < z ? E + 1 : z, ke = C && C.goButton, tt = ke, He = null;
4802
- M && (ke && (typeof ke == "boolean" ? tt = /* @__PURE__ */ G.createElement("button", {
4801
+ }, Me = w - 1 > 0 ? w - 1 : 0, ot = w + 1 < z ? w + 1 : z, ke = C && C.goButton, tt = ke, He = null;
4802
+ R && (ke && (typeof ke == "boolean" ? tt = /* @__PURE__ */ G.createElement("button", {
4803
4803
  type: "button",
4804
4804
  onClick: U,
4805
4805
  onKeyUp: U
@@ -4807,10 +4807,10 @@ var ri = function(t) {
4807
4807
  onClick: U,
4808
4808
  onKeyUp: U
4809
4809
  }, ke), tt = /* @__PURE__ */ G.createElement("li", {
4810
- title: O ? "".concat(T.jump_to).concat(E, "/").concat(z) : null,
4810
+ title: O ? "".concat(T.jump_to).concat(w, "/").concat(z) : null,
4811
4811
  className: "".concat(i, "-simple-pager")
4812
4812
  }, tt)), He = /* @__PURE__ */ G.createElement("li", {
4813
- title: O ? "".concat(E, "/").concat(z) : null,
4813
+ title: O ? "".concat(w, "/").concat(z) : null,
4814
4814
  className: "".concat(i, "-simple-pager")
4815
4815
  }, /* @__PURE__ */ G.createElement("input", {
4816
4816
  type: "text",
@@ -4835,11 +4835,11 @@ var ri = function(t) {
4835
4835
  q.push(/* @__PURE__ */ G.createElement(Ut, ze({}, he, {
4836
4836
  key: at,
4837
4837
  page: at,
4838
- active: E === at
4838
+ active: w === at
4839
4839
  })));
4840
4840
  } else {
4841
- var Vt = x ? T.prev_3 : T.prev_5, wt = x ? T.next_3 : T.next_5, vt = de(Ce, "jump-prev", Ge(fe, "prev page")), X = de(be, "jump-next", Ge(me, "next page"));
4842
- P && (Me = vt ? /* @__PURE__ */ G.createElement("li", {
4841
+ var Vt = x ? T.prev_3 : T.prev_5, Et = x ? T.next_3 : T.next_5, vt = de(Ce, "jump-prev", Ge(fe, "prev page")), X = de(be, "jump-next", Ge(me, "next page"));
4842
+ P && (Re = vt ? /* @__PURE__ */ G.createElement("li", {
4843
4843
  title: O ? Vt : null,
4844
4844
  key: "prev",
4845
4845
  onClick: yt,
@@ -4847,24 +4847,24 @@ var ri = function(t) {
4847
4847
  onKeyDown: ht,
4848
4848
  className: Se("".concat(i, "-jump-prev"), ue({}, "".concat(i, "-jump-prev-custom-icon"), !!fe))
4849
4849
  }, vt) : null, te = X ? /* @__PURE__ */ G.createElement("li", {
4850
- title: O ? wt : null,
4850
+ title: O ? Et : null,
4851
4851
  key: "next",
4852
4852
  onClick: ct,
4853
4853
  tabIndex: 0,
4854
4854
  onKeyDown: rt,
4855
4855
  className: Se("".concat(i, "-jump-next"), ue({}, "".concat(i, "-jump-next-custom-icon"), !!me))
4856
4856
  }, X) : null);
4857
- var K = Math.max(1, E - Ye), se = Math.min(E + Ye, z);
4858
- E - 1 <= Ye && (se = 1 + Ye * 2), z - E <= Ye && (K = z - Ye * 2);
4857
+ var K = Math.max(1, w - Ye), se = Math.min(w + Ye, z);
4858
+ w - 1 <= Ye && (se = 1 + Ye * 2), z - w <= Ye && (K = z - Ye * 2);
4859
4859
  for (var Ve = K; Ve <= se; Ve += 1)
4860
4860
  q.push(/* @__PURE__ */ G.createElement(Ut, ze({}, he, {
4861
4861
  key: Ve,
4862
4862
  page: Ve,
4863
- active: E === Ve
4863
+ active: w === Ve
4864
4864
  })));
4865
- if (E - 1 >= Ye * 2 && E !== 3 && (q[0] = /* @__PURE__ */ G.cloneElement(q[0], {
4865
+ if (w - 1 >= Ye * 2 && w !== 3 && (q[0] = /* @__PURE__ */ G.cloneElement(q[0], {
4866
4866
  className: Se("".concat(i, "-item-after-jump-prev"), q[0].props.className)
4867
- }), q.unshift(Me)), z - E >= Ye * 2 && E !== z - 2) {
4867
+ }), q.unshift(Re)), z - w >= Ye * 2 && w !== z - 2) {
4868
4868
  var pt = q[q.length - 1];
4869
4869
  q[q.length - 1] = /* @__PURE__ */ G.cloneElement(pt, {
4870
4870
  className: Se("".concat(i, "-item-before-jump-next"), pt.props.className)
@@ -4878,36 +4878,36 @@ var ri = function(t) {
4878
4878
  page: z
4879
4879
  })));
4880
4880
  }
4881
- var Pt = ut(Re);
4881
+ var Pt = ut(Me);
4882
4882
  if (Pt) {
4883
4883
  var Ct = !Xe || !z;
4884
4884
  Pt = /* @__PURE__ */ G.createElement("li", {
4885
4885
  title: O ? T.prev_page : null,
4886
4886
  onClick: Fe,
4887
4887
  tabIndex: Ct ? null : 0,
4888
- onKeyDown: Rt,
4888
+ onKeyDown: Mt,
4889
4889
  className: Se("".concat(i, "-prev"), ue({}, "".concat(i, "-disabled"), Ct)),
4890
4890
  "aria-disabled": Ct
4891
4891
  }, Pt);
4892
4892
  }
4893
4893
  var Dt = oe(ot);
4894
4894
  if (Dt) {
4895
- var Et, zt;
4896
- M ? (Et = !it, zt = Xe ? 0 : null) : (Et = !it || !z, zt = Et ? null : 0), Dt = /* @__PURE__ */ G.createElement("li", {
4895
+ var wt, zt;
4896
+ R ? (wt = !it, zt = Xe ? 0 : null) : (wt = !it || !z, zt = wt ? null : 0), Dt = /* @__PURE__ */ G.createElement("li", {
4897
4897
  title: O ? T.next_page : null,
4898
4898
  onClick: je,
4899
4899
  tabIndex: zt,
4900
4900
  onKeyDown: gt,
4901
- className: Se("".concat(i, "-next"), ue({}, "".concat(i, "-disabled"), Et)),
4902
- "aria-disabled": Et
4901
+ className: Se("".concat(i, "-next"), ue({}, "".concat(i, "-disabled"), wt)),
4902
+ "aria-disabled": wt
4903
4903
  }, Dt);
4904
4904
  }
4905
- var _t = Se(i, s, (n = {}, ue(n, "".concat(i, "-simple"), M), ue(n, "".concat(i, "-disabled"), V), n));
4905
+ var _t = Se(i, s, (n = {}, ue(n, "".concat(i, "-simple"), R), ue(n, "".concat(i, "-disabled"), V), n));
4906
4906
  return /* @__PURE__ */ G.createElement("ul", ze({
4907
4907
  className: _t,
4908
- style: R,
4908
+ style: M,
4909
4909
  ref: ye
4910
- }, We), A, Pt, M ? He : q, Dt, /* @__PURE__ */ G.createElement(ni, {
4910
+ }, We), A, Pt, R ? He : q, Dt, /* @__PURE__ */ G.createElement(ni, {
4911
4911
  locale: T,
4912
4912
  rootPrefixCls: i,
4913
4913
  disabled: V,
@@ -4921,15 +4921,15 @@ var ri = function(t) {
4921
4921
  }));
4922
4922
  };
4923
4923
  process.env.NODE_ENV !== "production" && (ri.displayName = "Pagination");
4924
- const ii = (e) => /* @__PURE__ */ o.createElement(Mt, Object.assign({}, e, {
4924
+ const ii = (e) => /* @__PURE__ */ o.createElement(Rt, Object.assign({}, e, {
4925
4925
  showSearch: !0,
4926
4926
  size: "small"
4927
- })), oi = (e) => /* @__PURE__ */ o.createElement(Mt, Object.assign({}, e, {
4927
+ })), oi = (e) => /* @__PURE__ */ o.createElement(Rt, Object.assign({}, e, {
4928
4928
  showSearch: !0,
4929
4929
  size: "middle"
4930
4930
  }));
4931
- ii.Option = Mt.Option;
4932
- oi.Option = Mt.Option;
4931
+ ii.Option = Rt.Option;
4932
+ oi.Option = Rt.Option;
4933
4933
  const Tl = (e) => {
4934
4934
  const {
4935
4935
  componentCls: t
@@ -5393,7 +5393,7 @@ const Tl = (e) => {
5393
5393
  } = e;
5394
5394
  return {
5395
5395
  [`${t}:not(${t}-disabled)`]: {
5396
- [`${t}-item`]: Object.assign({}, wi(e)),
5396
+ [`${t}-item`]: Object.assign({}, Ei(e)),
5397
5397
  [`${t}-jump-prev, ${t}-jump-next`]: {
5398
5398
  "&:focus-visible": Object.assign({
5399
5399
  [`${t}-item-link-icon`]: {
@@ -5512,7 +5512,7 @@ const Tl = (e) => {
5512
5512
  }
5513
5513
  }
5514
5514
  };
5515
- }, Kl = Ei(["Pagination", "bordered"], (e) => {
5515
+ }, Kl = wi(["Pagination", "bordered"], (e) => {
5516
5516
  const t = li(e);
5517
5517
  return [Wl(t)];
5518
5518
  }, ai);
@@ -5543,8 +5543,8 @@ const si = (e) => {
5543
5543
  getPrefixCls: m,
5544
5544
  direction: g,
5545
5545
  pagination: p = {}
5546
- } = o.useContext(xt), h = m("pagination", t), [S, $, w] = Fl(h), P = f ?? p.showSizeChanger, C = o.useMemo(() => {
5547
- const R = /* @__PURE__ */ o.createElement("span", {
5546
+ } = o.useContext(xt), h = m("pagination", t), [S, $, E] = Fl(h), P = f ?? p.showSizeChanger, C = o.useMemo(() => {
5547
+ const M = /* @__PURE__ */ o.createElement("span", {
5548
5548
  className: `${h}-item-ellipsis`
5549
5549
  }, "•••"), _ = /* @__PURE__ */ o.createElement("button", {
5550
5550
  className: `${h}-item-link`,
@@ -5560,28 +5560,28 @@ const si = (e) => {
5560
5560
  className: `${h}-item-container`
5561
5561
  }, g === "rtl" ? /* @__PURE__ */ o.createElement(Pn, {
5562
5562
  className: `${h}-item-link-icon`
5563
- }) : /* @__PURE__ */ o.createElement(Rn, {
5563
+ }) : /* @__PURE__ */ o.createElement(Mn, {
5564
5564
  className: `${h}-item-link-icon`
5565
- }), R)), M = /* @__PURE__ */ o.createElement("a", {
5565
+ }), M)), R = /* @__PURE__ */ o.createElement("a", {
5566
5566
  className: `${h}-item-link`
5567
5567
  }, /* @__PURE__ */ o.createElement("div", {
5568
5568
  className: `${h}-item-container`
5569
- }, g === "rtl" ? /* @__PURE__ */ o.createElement(Rn, {
5569
+ }, g === "rtl" ? /* @__PURE__ */ o.createElement(Mn, {
5570
5570
  className: `${h}-item-link-icon`
5571
5571
  }) : /* @__PURE__ */ o.createElement(Pn, {
5572
5572
  className: `${h}-item-link-icon`
5573
- }), R));
5573
+ }), M));
5574
5574
  return {
5575
5575
  prevIcon: _,
5576
5576
  nextIcon: Y,
5577
5577
  jumpPrevIcon: V,
5578
- jumpNextIcon: M
5578
+ jumpNextIcon: R
5579
5579
  };
5580
5580
  }, [g, h]), [x] = Cr("Pagination", Ii), D = Object.assign(Object.assign({}, x), s), O = Tn(l), I = O === "small" || !!(b && !O && v), H = m("select", n), j = Se({
5581
5581
  [`${h}-mini`]: I,
5582
5582
  [`${h}-rtl`]: g === "rtl",
5583
5583
  [`${h}-bordered`]: c.wireframe
5584
- }, p == null ? void 0 : p.className, r, i, $, w), T = Object.assign(Object.assign({}, p == null ? void 0 : p.style), a);
5584
+ }, p == null ? void 0 : p.className, r, i, $, E), T = Object.assign(Object.assign({}, p == null ? void 0 : p.style), a);
5585
5585
  return S(/* @__PURE__ */ o.createElement(o.Fragment, null, c.wireframe && /* @__PURE__ */ o.createElement(Kl, {
5586
5586
  prefixCls: h
5587
5587
  }), /* @__PURE__ */ o.createElement(ri, Object.assign({}, C, d, {
@@ -5780,7 +5780,7 @@ const ql = (e) => {
5780
5780
  lineWidth: h,
5781
5781
  headerBg: S,
5782
5782
  footerBg: $,
5783
- emptyTextPadding: w,
5783
+ emptyTextPadding: E,
5784
5784
  metaMarginBottom: P,
5785
5785
  avatarMarginRight: C,
5786
5786
  titleMarginBottom: x,
@@ -5896,7 +5896,7 @@ const ql = (e) => {
5896
5896
  textAlign: "center"
5897
5897
  },
5898
5898
  [`${t}-empty-text`]: {
5899
- padding: w,
5899
+ padding: E,
5900
5900
  color: e.colorTextDisabled,
5901
5901
  fontSize: e.fontSize,
5902
5902
  textAlign: "center"
@@ -6024,20 +6024,20 @@ function qt(e) {
6024
6024
  loading: h = !1,
6025
6025
  rowKey: S,
6026
6026
  renderItem: $,
6027
- locale: w
6027
+ locale: E
6028
6028
  } = e, P = kl(e, ["pagination", "prefixCls", "bordered", "split", "className", "rootClassName", "style", "children", "itemLayout", "loadMore", "grid", "dataSource", "size", "header", "footer", "loading", "rowKey", "renderItem", "locale"]);
6029
6029
  const C = n && typeof n == "object" ? n : {}, [x, D] = o.useState(C.defaultCurrent || 1), [O, I] = o.useState(C.defaultPageSize || 10), {
6030
6030
  getPrefixCls: H,
6031
6031
  renderEmpty: j,
6032
6032
  direction: T,
6033
- list: R
6033
+ list: M
6034
6034
  } = o.useContext(xt), _ = {
6035
6035
  current: 1,
6036
6036
  total: 0
6037
6037
  }, Y = (le) => ($e, Ce) => {
6038
6038
  var be;
6039
6039
  D($e), I(Ce), n && n[le] && ((be = n == null ? void 0 : n[le]) === null || be === void 0 || be.call(n, $e, Ce));
6040
- }, V = Y("onChange"), M = Y("onShowSizeChange"), L = (le, $e) => {
6040
+ }, V = Y("onChange"), R = Y("onShowSizeChange"), L = (le, $e) => {
6041
6041
  if (!$)
6042
6042
  return null;
6043
6043
  let Ce;
@@ -6068,7 +6068,7 @@ function qt(e) {
6068
6068
  [`${W}-grid`]: !!b,
6069
6069
  [`${W}-something-after-last-item`]: k(),
6070
6070
  [`${W}-rtl`]: T === "rtl"
6071
- }, R == null ? void 0 : R.className, l, s, de, fe), N = Ol(_, {
6071
+ }, M == null ? void 0 : M.className, l, s, de, fe), N = Ol(_, {
6072
6072
  total: c.length,
6073
6073
  current: x,
6074
6074
  pageSize: O
@@ -6078,17 +6078,17 @@ function qt(e) {
6078
6078
  className: Se(`${W}-pagination`, `${W}-pagination-align-${(t = N == null ? void 0 : N.align) !== null && t !== void 0 ? t : "end"}`)
6079
6079
  }, /* @__PURE__ */ o.createElement(si, Object.assign({}, N, {
6080
6080
  onChange: V,
6081
- onShowSizeChange: M
6081
+ onShowSizeChange: R
6082
6082
  }))) : null;
6083
6083
  let Q = mt(c);
6084
6084
  n && c.length > (N.current - 1) * N.pageSize && (Q = mt(c).splice((N.current - 1) * N.pageSize, N.pageSize));
6085
- const B = Object.keys(b || {}).some((le) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(le)), E = $r(B), ee = o.useMemo(() => {
6085
+ const B = Object.keys(b || {}).some((le) => ["xs", "sm", "md", "lg", "xl", "xxl"].includes(le)), w = $r(B), ee = o.useMemo(() => {
6086
6086
  for (let le = 0; le < Jt.length; le += 1) {
6087
6087
  const $e = Jt[le];
6088
- if (E[$e])
6088
+ if (w[$e])
6089
6089
  return $e;
6090
6090
  }
6091
- }, [E]), xe = o.useMemo(() => {
6091
+ }, [w]), xe = o.useMemo(() => {
6092
6092
  if (!b)
6093
6093
  return;
6094
6094
  const le = ee && b[ee] ? b[ee] : b.column;
@@ -6116,7 +6116,7 @@ function qt(e) {
6116
6116
  } else
6117
6117
  !v && !Ae && (ae = /* @__PURE__ */ o.createElement("div", {
6118
6118
  className: `${W}-empty-text`
6119
- }, w && w.emptyText || (j == null ? void 0 : j("List")) || /* @__PURE__ */ o.createElement(Gr, {
6119
+ }, E && E.emptyText || (j == null ? void 0 : j("List")) || /* @__PURE__ */ o.createElement(Gr, {
6120
6120
  componentName: "List"
6121
6121
  })));
6122
6122
  const ve = N.position || "bottom", Oe = o.useMemo(() => ({
@@ -6126,7 +6126,7 @@ function qt(e) {
6126
6126
  return Ie(/* @__PURE__ */ o.createElement(Xn.Provider, {
6127
6127
  value: Oe
6128
6128
  }, /* @__PURE__ */ o.createElement("div", Object.assign({
6129
- style: Object.assign(Object.assign({}, R == null ? void 0 : R.style), u),
6129
+ style: Object.assign(Object.assign({}, M == null ? void 0 : M.style), u),
6130
6130
  className: _e
6131
6131
  }, P), (ve === "top" || ve === "both") && F, g && /* @__PURE__ */ o.createElement("div", {
6132
6132
  className: `${W}-header`
@@ -6138,7 +6138,11 @@ process.env.NODE_ENV !== "production" && (qt.displayName = "List");
6138
6138
  qt.Item = ui;
6139
6139
  var Dn = /* @__PURE__ */ ((e) => (e.ALL = "ALL", e.UNARCHIVED = "UNARCHIVED", e))(Dn || {});
6140
6140
  const gs = (e) => {
6141
- const t = {
6141
+ var r, i;
6142
+ const t = Yt(xr);
6143
+ if (!t)
6144
+ return null;
6145
+ const n = {
6142
6146
  buttonWidth: e.buttonWidth || 40,
6143
6147
  buttonHeight: e.buttonHeight || 40,
6144
6148
  popupWidth: e.popupWidth || 400,
@@ -6151,10 +6155,13 @@ const gs = (e) => {
6151
6155
  style: e.style || {},
6152
6156
  unreadBadgeProps: e.unreadBadgeProps ?? {},
6153
6157
  count: e.count || "COUNT_UNOPENED_NOTIFICATIONS",
6154
- filter: e.filter || "ALL"
6155
- /* ALL */
6156
- }, n = Yt(xr);
6157
- return n ? /* @__PURE__ */ nt(
6158
+ filter: e.filter || "ALL",
6159
+ renderers: {
6160
+ notification: (r = e.renderers) == null ? void 0 : r.notification,
6161
+ notificationExtra: (i = e.renderers) == null ? void 0 : i.notificationExtra
6162
+ }
6163
+ };
6164
+ return /* @__PURE__ */ nt(
6158
6165
  ki,
6159
6166
  {
6160
6167
  autoAdjustOverflow: !0,
@@ -6163,20 +6170,22 @@ const gs = (e) => {
6163
6170
  ts,
6164
6171
  {
6165
6172
  maxHeight: 500,
6166
- pagination: t.pagination,
6167
- filter: t.filter,
6168
- imageShape: t.imageShape,
6169
- pageSize: t.pageSize,
6170
- pagePosition: t.pagePosition
6173
+ pagination: n.pagination,
6174
+ filter: n.filter,
6175
+ imageShape: n.imageShape,
6176
+ pageSize: n.pageSize,
6177
+ pagePosition: n.pagePosition,
6178
+ notificationRenderer: n.renderers.notification,
6179
+ notificationExtraRenderer: n.renderers.notificationExtra
6171
6180
  }
6172
6181
  ),
6173
- onOpenChange: (r) => {
6174
- r && n.markAsOpened();
6182
+ onOpenChange: (a) => {
6183
+ a && t.markAsOpened();
6175
6184
  },
6176
6185
  arrow: !1,
6177
6186
  overlayStyle: {
6178
6187
  padding: "0 16px",
6179
- minWidth: t.popupWidth
6188
+ minWidth: n.popupWidth
6180
6189
  },
6181
6190
  children: /* @__PURE__ */ nt(
6182
6191
  "div",
@@ -6192,8 +6201,8 @@ const gs = (e) => {
6192
6201
  top: 5,
6193
6202
  right: 5
6194
6203
  },
6195
- count: t.count,
6196
- filter: t.filter,
6204
+ count: n.count,
6205
+ filter: n.filter,
6197
6206
  children: /* @__PURE__ */ nt(
6198
6207
  eo,
6199
6208
  {
@@ -6201,13 +6210,13 @@ const gs = (e) => {
6201
6210
  Yi,
6202
6211
  {
6203
6212
  style: {
6204
- fontSize: t.buttonIconSize
6213
+ fontSize: n.buttonIconSize
6205
6214
  }
6206
6215
  }
6207
6216
  ),
6208
6217
  style: {
6209
- width: t.buttonWidth,
6210
- height: t.buttonHeight
6218
+ width: n.buttonWidth,
6219
+ height: n.buttonHeight
6211
6220
  },
6212
6221
  shape: "circle",
6213
6222
  type: "text"
@@ -6218,12 +6227,15 @@ const gs = (e) => {
6218
6227
  }
6219
6228
  )
6220
6229
  }
6221
- ) : null;
6230
+ );
6222
6231
  };
6223
6232
  var es = /* @__PURE__ */ ((e) => (e.INFINITE_SCROLL = "infinite_scroll", e.PAGINATED = "paginated", e))(es || {});
6224
6233
  const ts = (e) => {
6225
- const t = Yt(xr), n = (r) => e.filter === Dn.ALL || !e.filter ? r : e.filter === Dn.UNARCHIVED ? r.filter((i) => !i.archived) : r.filter(e.filter);
6226
- return !t || t.notifications === void 0 ? null : /* @__PURE__ */ nt("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ mi(
6234
+ const t = Yt(xr);
6235
+ if (!t)
6236
+ return null;
6237
+ const n = (r) => e.filter === Dn.ALL || !e.filter ? r : e.filter === Dn.UNARCHIVED ? r.filter((i) => !i.archived) : r.filter(e.filter);
6238
+ return t.notifications === void 0 ? null : /* @__PURE__ */ nt("div", { children: e.pagination === "INFINITE_SCROLL" ? /* @__PURE__ */ mi(
6227
6239
  qt,
6228
6240
  {
6229
6241
  header: /* @__PURE__ */ nt(Un, { markAsArchived: t.markAsArchived }),
@@ -6254,7 +6266,9 @@ const ts = (e) => {
6254
6266
  imageShape: e.imageShape,
6255
6267
  markAsArchived: t.markAsArchived,
6256
6268
  notification: r,
6257
- markAsClicked: t.markAsClicked
6269
+ markAsClicked: t.markAsClicked,
6270
+ renderer: e.notificationRenderer,
6271
+ extraRenderer: e.notificationExtraRenderer
6258
6272
  }
6259
6273
  ) }, r.id)
6260
6274
  }
@@ -6272,7 +6286,9 @@ const ts = (e) => {
6272
6286
  imageShape: e.imageShape,
6273
6287
  markAsArchived: t.markAsArchived,
6274
6288
  notification: r,
6275
- markAsClicked: t.markAsClicked
6289
+ markAsClicked: t.markAsClicked,
6290
+ renderer: e.notificationRenderer,
6291
+ extraRenderer: e.notificationExtraRenderer
6276
6292
  }
6277
6293
  ) }, r.id),
6278
6294
  pagination: {