kdpa-components 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/Accordion/index.js +17 -19
  3. package/dist/Alert/index.js +19 -20
  4. package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
  5. package/dist/Avatar/index.js +7 -8
  6. package/dist/Badge/index.js +22 -24
  7. package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
  8. package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
  9. package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
  10. package/dist/Buttons/index.js +28 -30
  11. package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
  12. package/dist/Cards/index.d.ts +2 -0
  13. package/dist/Cards/index.d.ts.map +1 -1
  14. package/dist/Cards/index.js +150 -1
  15. package/dist/CheckBox/index.js +13 -14
  16. package/dist/Chip/index.js +17 -19
  17. package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
  18. package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
  19. package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
  20. package/dist/Collapse/index.js +10 -12
  21. package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
  22. package/dist/CopyToClipboard/index.js +24 -26
  23. package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
  24. package/dist/Divider/index.js +7 -8
  25. package/dist/DropZone/index.js +34 -36
  26. package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
  27. package/dist/FormControl/index.js +12 -13
  28. package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
  29. package/dist/FullScreenDialog/index.js +20 -22
  30. package/dist/Grid/index.js +9 -10
  31. package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
  32. package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
  33. package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
  34. package/dist/Input/index.js +27 -29
  35. package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
  36. package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
  37. package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
  38. package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
  39. package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
  40. package/dist/KdpaChip-10899788.js +51 -0
  41. package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
  42. package/dist/KdpaCollapse-2d23c312.js +12 -0
  43. package/dist/KdpaCollapse-73c03e02.js +23 -0
  44. package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
  45. package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
  46. package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
  47. package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
  48. package/dist/KdpaFormControl-135b070d.js +10 -0
  49. package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
  50. package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
  51. package/dist/KdpaGrid-2a3f9346.js +12 -0
  52. package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
  53. package/dist/KdpaIconButton-a0ee669c.js +35 -0
  54. package/dist/KdpaInputMultiline-231a2be1.js +68 -0
  55. package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
  56. package/dist/KdpaMenuItem-99cde871.js +56 -0
  57. package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
  58. package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
  59. package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
  60. package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
  61. package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
  62. package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
  63. package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
  64. package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
  65. package/dist/KdpaTabs-ab618f36.js +50 -0
  66. package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
  67. package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
  68. package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
  69. package/dist/KdpaTypography-763c3238.js +10 -0
  70. package/dist/KdpaZoom-1b0f3404.js +22 -0
  71. package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
  72. package/dist/LazyDrop/index.js +24 -24
  73. package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
  74. package/dist/Loading/KdpaProgress/index.js +12 -13
  75. package/dist/Loading/index.js +11 -12
  76. package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
  77. package/dist/Modal/index.d.ts +0 -2
  78. package/dist/Modal/index.d.ts.map +1 -1
  79. package/dist/Modal/index.js +3 -17
  80. package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
  81. package/dist/PaginationGrid/index.js +33 -34
  82. package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
  83. package/dist/Pickers/index.d.ts +2 -1
  84. package/dist/Pickers/index.d.ts.map +1 -1
  85. package/dist/Pickers/index.js +43 -45
  86. package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
  87. package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
  88. package/dist/Radio/index.js +14 -15
  89. package/dist/Selects/index.js +39 -40
  90. package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
  91. package/dist/Slider/index.js +8 -9
  92. package/dist/Switch/index.js +12 -13
  93. package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
  94. package/dist/Tabs/index.js +16 -17
  95. package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
  96. package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
  97. package/dist/ThemeProvider/index.js +7 -8
  98. package/dist/Tooltips/index.js +16 -18
  99. package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
  100. package/dist/Transitions/index.js +22 -24
  101. package/dist/Tree/index.js +2 -2
  102. package/dist/TreeSelect/index.js +3 -3
  103. package/dist/Typography/index.js +8 -9
  104. package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
  105. package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
  106. package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
  107. package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
  108. package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
  109. package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
  110. package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
  111. package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
  112. package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
  113. package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
  114. package/dist/identifier-2647f844.js +3775 -0
  115. package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
  116. package/dist/index.js +140 -142
  117. package/dist/jsx-dev-runtime-48fdc504.js +615 -0
  118. package/dist/kdpaSelect-4ed993c7.js +1 -0
  119. package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
  120. package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
  121. package/dist/style.css +1 -1
  122. package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
  123. package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
  124. package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
  125. package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
  126. package/package.json +90 -87
  127. package/dist/KdpaChip-f94c5b7e.js +0 -31
  128. package/dist/KdpaCircularProgress-aed28149.js +0 -44
  129. package/dist/KdpaCollapse-73e5e40c.js +0 -8
  130. package/dist/KdpaCollapse-7f12a32a.js +0 -11
  131. package/dist/KdpaFormControl-ae8f7241.js +0 -6
  132. package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
  133. package/dist/KdpaGrid-b93fab29.js +0 -8
  134. package/dist/KdpaIconButton-f5146164.js +0 -23
  135. package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
  136. package/dist/KdpaMenuItem-9a9ece89.js +0 -35
  137. package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
  138. package/dist/KdpaSkeleton-4696fadd.js +0 -541
  139. package/dist/KdpaTabs-a76a17a7.js +0 -38
  140. package/dist/KdpaTypography-17403558.js +0 -6
  141. package/dist/KdpaZoom-96a648cb.js +0 -10
  142. package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
  143. package/dist/Sanitizer/index.d.ts +0 -3
  144. package/dist/Sanitizer/index.d.ts.map +0 -1
  145. package/dist/Sanitizer/index.js +0 -492
  146. package/dist/identifier-5cabf5ae.js +0 -2481
  147. package/dist/index-f4329b29.js +0 -669
  148. package/dist/jsx-runtime-944c88e2.js +0 -631
  149. package/dist/utils-8a7b223e.js +0 -18
@@ -1,5 +1,5 @@
1
- import { j as rr } from "./jsx-runtime-944c88e2.js";
2
- import { a as li, _ as Le } from "./extends-393586f3.js";
1
+ import { j as rr } from "./jsx-dev-runtime-48fdc504.js";
2
+ import { _ as li, a as Le } from "./extends-135d7828.js";
3
3
  import * as c from "react";
4
4
  import Va, { useState as Qt, useMemo as Br, useCallback as Gr, useRef as Be, useLayoutEffect as ui, useEffect as Ht } from "react";
5
5
  import { a as Ve } from "./index-1d8c2939.js";
@@ -180,17 +180,17 @@ function ar(e) {
180
180
  function Dn(e, n) {
181
181
  var r = n || {}, t = r.defaultValue, a = r.value, l = r.onChange, s = r.postState, o = dn(function() {
182
182
  return ar(a) ? a : ar(t) ? typeof t == "function" ? t() : t : typeof e == "function" ? e() : e;
183
- }), i = V(o, 2), u = i[0], d = i[1], f = a !== void 0 ? a : u, h = s ? s(f) : f, v = $t(l), p = dn([f]), y = V(p, 2), E = y[0], m = y[1];
183
+ }), i = V(o, 2), u = i[0], d = i[1], f = a !== void 0 ? a : u, h = s ? s(f) : f, v = $t(l), p = dn([f]), y = V(p, 2), b = y[0], m = y[1];
184
184
  qr(function() {
185
- var S = E[0];
185
+ var S = b[0];
186
186
  u !== S && v(u, S);
187
- }, [E]), qr(function() {
187
+ }, [b]), qr(function() {
188
188
  ar(a) || d(a);
189
189
  }, [a]);
190
- var b = $t(function(S, C) {
190
+ var E = $t(function(S, C) {
191
191
  d(S, C), m([f], C);
192
192
  });
193
- return [h, b];
193
+ return [h, E];
194
194
  }
195
195
  var dr = {}, Dr = [], gi = function(n) {
196
196
  Dr.push(n);
@@ -211,28 +211,28 @@ function yi(e, n) {
211
211
  r && console.warn("Note: ".concat(r));
212
212
  }
213
213
  }
214
- function Ei() {
214
+ function bi() {
215
215
  dr = {};
216
216
  }
217
217
  function za(e, n, r) {
218
218
  !n && !dr[r] && (e(!1, r), dr[r] = !0);
219
219
  }
220
- function Te(e, n) {
220
+ function Pe(e, n) {
221
221
  za(Vn, e, n);
222
222
  }
223
223
  function fr(e, n) {
224
224
  za(yi, e, n);
225
225
  }
226
- Te.preMessage = gi;
227
- Te.resetWarned = Ei;
228
- Te.noteOnce = fr;
226
+ Pe.preMessage = gi;
227
+ Pe.resetWarned = bi;
228
+ Pe.noteOnce = fr;
229
229
  const ja = function() {
230
230
  if (typeof navigator > "u" || typeof window > "u")
231
231
  return !1;
232
232
  var e = navigator.userAgent || navigator.vendor || window.opera;
233
233
  return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substr(0, 4));
234
234
  };
235
- var P = {
235
+ var T = {
236
236
  /**
237
237
  * MAC_ENTER
238
238
  */
@@ -685,32 +685,32 @@ var P = {
685
685
  isTextModifyingKeyEvent: function(n) {
686
686
  var r = n.keyCode;
687
687
  if (n.altKey && !n.ctrlKey || n.metaKey || // Function keys don't generate text
688
- r >= P.F1 && r <= P.F12)
688
+ r >= T.F1 && r <= T.F12)
689
689
  return !1;
690
690
  switch (r) {
691
- case P.ALT:
692
- case P.CAPS_LOCK:
693
- case P.CONTEXT_MENU:
694
- case P.CTRL:
695
- case P.DOWN:
696
- case P.END:
697
- case P.ESC:
698
- case P.HOME:
699
- case P.INSERT:
700
- case P.LEFT:
701
- case P.MAC_FF_META:
702
- case P.META:
703
- case P.NUMLOCK:
704
- case P.NUM_CENTER:
705
- case P.PAGE_DOWN:
706
- case P.PAGE_UP:
707
- case P.PAUSE:
708
- case P.PRINT_SCREEN:
709
- case P.RIGHT:
710
- case P.SHIFT:
711
- case P.UP:
712
- case P.WIN_KEY:
713
- case P.WIN_KEY_RIGHT:
691
+ case T.ALT:
692
+ case T.CAPS_LOCK:
693
+ case T.CONTEXT_MENU:
694
+ case T.CTRL:
695
+ case T.DOWN:
696
+ case T.END:
697
+ case T.ESC:
698
+ case T.HOME:
699
+ case T.INSERT:
700
+ case T.LEFT:
701
+ case T.MAC_FF_META:
702
+ case T.META:
703
+ case T.NUMLOCK:
704
+ case T.NUM_CENTER:
705
+ case T.PAGE_DOWN:
706
+ case T.PAGE_UP:
707
+ case T.PAUSE:
708
+ case T.PRINT_SCREEN:
709
+ case T.RIGHT:
710
+ case T.SHIFT:
711
+ case T.UP:
712
+ case T.WIN_KEY:
713
+ case T.WIN_KEY_RIGHT:
714
714
  return !1;
715
715
  default:
716
716
  return !0;
@@ -720,26 +720,26 @@ var P = {
720
720
  * whether character is entered.
721
721
  */
722
722
  isCharacterKey: function(n) {
723
- if (n >= P.ZERO && n <= P.NINE || n >= P.NUM_ZERO && n <= P.NUM_MULTIPLY || n >= P.A && n <= P.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && n === 0)
723
+ if (n >= T.ZERO && n <= T.NINE || n >= T.NUM_ZERO && n <= T.NUM_MULTIPLY || n >= T.A && n <= T.Z || window.navigator.userAgent.indexOf("WebKit") !== -1 && n === 0)
724
724
  return !0;
725
725
  switch (n) {
726
- case P.SPACE:
727
- case P.QUESTION_MARK:
728
- case P.NUM_PLUS:
729
- case P.NUM_MINUS:
730
- case P.NUM_PERIOD:
731
- case P.NUM_DIVISION:
732
- case P.SEMICOLON:
733
- case P.DASH:
734
- case P.EQUALS:
735
- case P.COMMA:
736
- case P.PERIOD:
737
- case P.SLASH:
738
- case P.APOSTROPHE:
739
- case P.SINGLE_QUOTE:
740
- case P.OPEN_SQUARE_BRACKET:
741
- case P.BACKSLASH:
742
- case P.CLOSE_SQUARE_BRACKET:
726
+ case T.SPACE:
727
+ case T.QUESTION_MARK:
728
+ case T.NUM_PLUS:
729
+ case T.NUM_MINUS:
730
+ case T.NUM_PERIOD:
731
+ case T.NUM_DIVISION:
732
+ case T.SEMICOLON:
733
+ case T.DASH:
734
+ case T.EQUALS:
735
+ case T.COMMA:
736
+ case T.PERIOD:
737
+ case T.SLASH:
738
+ case T.APOSTROPHE:
739
+ case T.SINGLE_QUOTE:
740
+ case T.OPEN_SQUARE_BRACKET:
741
+ case T.BACKSLASH:
742
+ case T.CLOSE_SQUARE_BRACKET:
743
743
  return !0;
744
744
  default:
745
745
  return !1;
@@ -755,11 +755,11 @@ var P = {
755
755
  * LICENSE file in the root directory of this source tree.
756
756
  */
757
757
  var Qr;
758
- function bi() {
758
+ function Ei() {
759
759
  if (Qr)
760
760
  return We;
761
761
  Qr = 1;
762
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, i = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
762
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, i = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
763
763
  function S(g) {
764
764
  if (typeof g == "object" && g !== null) {
765
765
  var N = g.$$typeof;
@@ -818,7 +818,7 @@ function bi() {
818
818
  }, We.isSuspense = function(g) {
819
819
  return S(g) === f;
820
820
  }, We.isValidElementType = function(g) {
821
- return typeof g == "string" || typeof g == "function" || g === t || g === u || g === l || g === a || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === v || g.$$typeof === s || g.$$typeof === o || g.$$typeof === d || g.$$typeof === E || g.$$typeof === m || g.$$typeof === b || g.$$typeof === y);
821
+ return typeof g == "string" || typeof g == "function" || g === t || g === u || g === l || g === a || g === f || g === h || typeof g == "object" && g !== null && (g.$$typeof === p || g.$$typeof === v || g.$$typeof === s || g.$$typeof === o || g.$$typeof === d || g.$$typeof === b || g.$$typeof === m || g.$$typeof === E || g.$$typeof === y);
822
822
  }, We.typeOf = S, We;
823
823
  }
824
824
  var ze = {};
@@ -833,27 +833,27 @@ var ze = {};
833
833
  var Zr;
834
834
  function Si() {
835
835
  return Zr || (Zr = 1, process.env.NODE_ENV !== "production" && function() {
836
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, i = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, b = e ? Symbol.for("react.scope") : 60119;
837
- function S(T) {
838
- return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
839
- T === t || T === u || T === l || T === a || T === f || T === h || typeof T == "object" && T !== null && (T.$$typeof === p || T.$$typeof === v || T.$$typeof === s || T.$$typeof === o || T.$$typeof === d || T.$$typeof === E || T.$$typeof === m || T.$$typeof === b || T.$$typeof === y);
836
+ var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, i = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, m = e ? Symbol.for("react.responder") : 60118, E = e ? Symbol.for("react.scope") : 60119;
837
+ function S(P) {
838
+ return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
839
+ P === t || P === u || P === l || P === a || P === f || P === h || typeof P == "object" && P !== null && (P.$$typeof === p || P.$$typeof === v || P.$$typeof === s || P.$$typeof === o || P.$$typeof === d || P.$$typeof === b || P.$$typeof === m || P.$$typeof === E || P.$$typeof === y);
840
840
  }
841
- function C(T) {
842
- if (typeof T == "object" && T !== null) {
843
- var ee = T.$$typeof;
841
+ function C(P) {
842
+ if (typeof P == "object" && P !== null) {
843
+ var ee = P.$$typeof;
844
844
  switch (ee) {
845
845
  case n:
846
- var Ee = T.type;
847
- switch (Ee) {
846
+ var be = P.type;
847
+ switch (be) {
848
848
  case i:
849
849
  case u:
850
850
  case t:
851
851
  case l:
852
852
  case a:
853
853
  case f:
854
- return Ee;
854
+ return be;
855
855
  default:
856
- var pe = Ee && Ee.$$typeof;
856
+ var pe = be && be.$$typeof;
857
857
  switch (pe) {
858
858
  case o:
859
859
  case d:
@@ -871,55 +871,55 @@ function Si() {
871
871
  }
872
872
  }
873
873
  var g = i, N = u, x = o, w = s, R = n, M = d, I = t, F = p, k = v, A = r, L = l, O = a, W = f, z = !1;
874
- function G(T) {
875
- return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), he(T) || C(T) === i;
874
+ function G(P) {
875
+ return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), he(P) || C(P) === i;
876
876
  }
877
- function he(T) {
878
- return C(T) === u;
877
+ function he(P) {
878
+ return C(P) === u;
879
879
  }
880
- function Y(T) {
881
- return C(T) === o;
880
+ function Y(P) {
881
+ return C(P) === o;
882
882
  }
883
- function ce(T) {
884
- return C(T) === s;
883
+ function ce(P) {
884
+ return C(P) === s;
885
885
  }
886
- function re(T) {
887
- return typeof T == "object" && T !== null && T.$$typeof === n;
886
+ function re(P) {
887
+ return typeof P == "object" && P !== null && P.$$typeof === n;
888
888
  }
889
- function ne(T) {
890
- return C(T) === d;
889
+ function ne(P) {
890
+ return C(P) === d;
891
891
  }
892
- function Q(T) {
893
- return C(T) === t;
892
+ function Q(P) {
893
+ return C(P) === t;
894
894
  }
895
- function B(T) {
896
- return C(T) === p;
895
+ function B(P) {
896
+ return C(P) === p;
897
897
  }
898
- function H(T) {
899
- return C(T) === v;
898
+ function H(P) {
899
+ return C(P) === v;
900
900
  }
901
- function j(T) {
902
- return C(T) === r;
901
+ function j(P) {
902
+ return C(P) === r;
903
903
  }
904
- function de(T) {
905
- return C(T) === l;
904
+ function de(P) {
905
+ return C(P) === l;
906
906
  }
907
- function ue(T) {
908
- return C(T) === a;
907
+ function ue(P) {
908
+ return C(P) === a;
909
909
  }
910
- function Z(T) {
911
- return C(T) === f;
910
+ function Z(P) {
911
+ return C(P) === f;
912
912
  }
913
913
  ze.AsyncMode = g, ze.ConcurrentMode = N, ze.ContextConsumer = x, ze.ContextProvider = w, ze.Element = R, ze.ForwardRef = M, ze.Fragment = I, ze.Lazy = F, ze.Memo = k, ze.Portal = A, ze.Profiler = L, ze.StrictMode = O, ze.Suspense = W, ze.isAsyncMode = G, ze.isConcurrentMode = he, ze.isContextConsumer = Y, ze.isContextProvider = ce, ze.isElement = re, ze.isForwardRef = ne, ze.isFragment = Q, ze.isLazy = B, ze.isMemo = H, ze.isPortal = j, ze.isProfiler = de, ze.isStrictMode = ue, ze.isSuspense = Z, ze.isValidElementType = S, ze.typeOf = C;
914
914
  }()), ze;
915
915
  }
916
- process.env.NODE_ENV === "production" ? vr.exports = bi() : vr.exports = Si();
916
+ process.env.NODE_ENV === "production" ? vr.exports = Ei() : vr.exports = Si();
917
917
  var Ba = vr.exports;
918
918
  function kr(e, n, r) {
919
919
  var t = c.useRef({});
920
920
  return (!("value" in t.current) || r(t.current.condition, n)) && (t.current.value = e(), t.current.condition = n), t.current.value;
921
921
  }
922
- function Pr(e, n) {
922
+ function Tr(e, n) {
923
923
  typeof e == "function" ? e(n) : ct(e) === "object" && e && "current" in e && (e.current = n);
924
924
  }
925
925
  function qn() {
@@ -930,11 +930,11 @@ function qn() {
930
930
  });
931
931
  return t.length <= 1 ? t[0] : function(a) {
932
932
  n.forEach(function(l) {
933
- Pr(l, a);
933
+ Tr(l, a);
934
934
  });
935
935
  };
936
936
  }
937
- function Tr() {
937
+ function Pr() {
938
938
  for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
939
939
  n[r] = arguments[r];
940
940
  return kr(function() {
@@ -1110,8 +1110,8 @@ var Qa = function() {
1110
1110
  return e(Date.now());
1111
1111
  }, 1e3 / 60);
1112
1112
  };
1113
- }(), Pi = 2;
1114
- function Ti(e, n) {
1113
+ }(), Ti = 2;
1114
+ function Pi(e, n) {
1115
1115
  var r = !1, t = !1, a = 0;
1116
1116
  function l() {
1117
1117
  r && (r = !1, e()), t && o();
@@ -1122,7 +1122,7 @@ function Ti(e, n) {
1122
1122
  function o() {
1123
1123
  var i = Date.now();
1124
1124
  if (r) {
1125
- if (i - a < Pi)
1125
+ if (i - a < Ti)
1126
1126
  return;
1127
1127
  t = !0;
1128
1128
  } else
@@ -1135,7 +1135,7 @@ var _i = 20, Oi = ["top", "right", "bottom", "left", "width", "height", "size",
1135
1135
  /** @class */
1136
1136
  function() {
1137
1137
  function e() {
1138
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Ti(this.refresh.bind(this), _i);
1138
+ this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = Pi(this.refresh.bind(this), _i);
1139
1139
  }
1140
1140
  return e.prototype.addObserver = function(n) {
1141
1141
  ~this.observers_.indexOf(n) || this.observers_.push(n), this.connected_ || this.connect_();
@@ -1469,8 +1469,8 @@ function Ji(e, n) {
1469
1469
  });
1470
1470
  var p = c.useRef(e);
1471
1471
  p.current = e;
1472
- var y = c.useCallback(function(E) {
1473
- var m = p.current, b = m.onResize, S = m.data, C = E.getBoundingClientRect(), g = C.width, N = C.height, x = E.offsetWidth, w = E.offsetHeight, R = Math.floor(g), M = Math.floor(N);
1472
+ var y = c.useCallback(function(b) {
1473
+ var m = p.current, E = m.onResize, S = m.data, C = b.getBoundingClientRect(), g = C.width, N = C.height, x = b.offsetWidth, w = b.offsetHeight, R = Math.floor(g), M = Math.floor(N);
1474
1474
  if (u.current.width !== R || u.current.height !== M || u.current.offsetWidth !== x || u.current.offsetHeight !== w) {
1475
1475
  var I = {
1476
1476
  width: R,
@@ -1483,15 +1483,15 @@ function Ji(e, n) {
1483
1483
  offsetWidth: F,
1484
1484
  offsetHeight: k
1485
1485
  });
1486
- s == null || s(A, E, S), b && Promise.resolve().then(function() {
1487
- b(A, E);
1486
+ s == null || s(A, b, S), E && Promise.resolve().then(function() {
1487
+ E(A, b);
1488
1488
  });
1489
1489
  }
1490
1490
  }, []);
1491
1491
  return c.useEffect(function() {
1492
- var E = v();
1493
- return E && !t && Gi(E, y), function() {
1494
- return Yi(E, y);
1492
+ var b = v();
1493
+ return b && !t && Gi(b, y), function() {
1494
+ return Yi(b, y);
1495
1495
  };
1496
1496
  }, [a.current, t]), /* @__PURE__ */ c.createElement(Zi, {
1497
1497
  ref: l
@@ -1517,7 +1517,7 @@ process.env.NODE_ENV !== "production" && (en.displayName = "ResizeObserver");
1517
1517
  en.Collection = Xi;
1518
1518
  var nl = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"], ln = void 0;
1519
1519
  function rl(e, n) {
1520
- var r = e.prefixCls, t = e.invalidate, a = e.item, l = e.renderItem, s = e.responsive, o = e.responsiveDisabled, i = e.registerSize, u = e.itemKey, d = e.className, f = e.style, h = e.children, v = e.display, p = e.order, y = e.component, E = y === void 0 ? "div" : y, m = st(e, nl), b = s && !v;
1520
+ var r = e.prefixCls, t = e.invalidate, a = e.item, l = e.renderItem, s = e.responsive, o = e.responsiveDisabled, i = e.registerSize, u = e.itemKey, d = e.className, f = e.style, h = e.children, v = e.display, p = e.order, y = e.component, b = y === void 0 ? "div" : y, m = st(e, nl), E = s && !v;
1521
1521
  function S(w) {
1522
1522
  i(u, w);
1523
1523
  }
@@ -1528,16 +1528,16 @@ function rl(e, n) {
1528
1528
  }, []);
1529
1529
  var C = l && a !== ln ? l(a) : h, g;
1530
1530
  t || (g = {
1531
- opacity: b ? 0 : 1,
1532
- height: b ? 0 : ln,
1533
- overflowY: b ? "hidden" : ln,
1531
+ opacity: E ? 0 : 1,
1532
+ height: E ? 0 : ln,
1533
+ overflowY: E ? "hidden" : ln,
1534
1534
  order: s ? p : ln,
1535
- pointerEvents: b ? "none" : ln,
1536
- position: b ? "absolute" : ln
1535
+ pointerEvents: E ? "none" : ln,
1536
+ position: E ? "absolute" : ln
1537
1537
  });
1538
1538
  var N = {};
1539
- b && (N["aria-hidden"] = !0);
1540
- var x = /* @__PURE__ */ c.createElement(E, Le({
1539
+ E && (N["aria-hidden"] = !0);
1540
+ var x = /* @__PURE__ */ c.createElement(b, Le({
1541
1541
  className: Ve(!t && r, d),
1542
1542
  style: D(D({}, g), f)
1543
1543
  }, N, m, {
@@ -1639,21 +1639,21 @@ function dl(e) {
1639
1639
  return "+ ".concat(e.length, " ...");
1640
1640
  }
1641
1641
  function fl(e, n) {
1642
- var r = e.prefixCls, t = r === void 0 ? "rc-overflow" : r, a = e.data, l = a === void 0 ? [] : a, s = e.renderItem, o = e.renderRawItem, i = e.itemKey, u = e.itemWidth, d = u === void 0 ? 10 : u, f = e.ssr, h = e.style, v = e.className, p = e.maxCount, y = e.renderRest, E = e.renderRawRest, m = e.suffix, b = e.component, S = b === void 0 ? "div" : b, C = e.itemComponent, g = e.onVisibleChange, N = st(e, cl), x = f === "full", w = ol(), R = Nn(w, null), M = V(R, 2), I = M[0], F = M[1], k = I || 0, A = Nn(w, /* @__PURE__ */ new Map()), L = V(A, 2), O = L[0], W = L[1], z = Nn(w, 0), G = V(z, 2), he = G[0], Y = G[1], ce = Nn(w, 0), re = V(ce, 2), ne = re[0], Q = re[1], B = Nn(w, 0), H = V(B, 2), j = H[0], de = H[1], ue = Qt(null), Z = V(ue, 2), T = Z[0], ee = Z[1], Ee = Qt(null), pe = V(Ee, 2), Re = pe[0], we = pe[1], Me = c.useMemo(function() {
1642
+ var r = e.prefixCls, t = r === void 0 ? "rc-overflow" : r, a = e.data, l = a === void 0 ? [] : a, s = e.renderItem, o = e.renderRawItem, i = e.itemKey, u = e.itemWidth, d = u === void 0 ? 10 : u, f = e.ssr, h = e.style, v = e.className, p = e.maxCount, y = e.renderRest, b = e.renderRawRest, m = e.suffix, E = e.component, S = E === void 0 ? "div" : E, C = e.itemComponent, g = e.onVisibleChange, N = st(e, cl), x = f === "full", w = ol(), R = Nn(w, null), M = V(R, 2), I = M[0], F = M[1], k = I || 0, A = Nn(w, /* @__PURE__ */ new Map()), L = V(A, 2), O = L[0], W = L[1], z = Nn(w, 0), G = V(z, 2), he = G[0], Y = G[1], ce = Nn(w, 0), re = V(ce, 2), ne = re[0], Q = re[1], B = Nn(w, 0), H = V(B, 2), j = H[0], de = H[1], ue = Qt(null), Z = V(ue, 2), P = Z[0], ee = Z[1], be = Qt(null), pe = V(be, 2), Re = pe[0], we = pe[1], Me = c.useMemo(function() {
1643
1643
  return Re === null && x ? Number.MAX_SAFE_INTEGER : Re || 0;
1644
- }, [Re, I]), fe = Qt(!1), $ = V(fe, 2), ve = $[0], ae = $[1], se = "".concat(t, "-item"), q = Math.max(he, ne), ie = p === uo, be = l.length && ie, me = p === so, Se = be || typeof p == "number" && l.length > p, Ie = Br(function() {
1644
+ }, [Re, I]), fe = Qt(!1), $ = V(fe, 2), ve = $[0], ae = $[1], se = "".concat(t, "-item"), q = Math.max(he, ne), ie = p === uo, Ee = l.length && ie, me = p === so, Se = Ee || typeof p == "number" && l.length > p, Ie = Br(function() {
1645
1645
  var _ = l;
1646
- return be ? I === null && x ? _ = l : _ = l.slice(0, Math.min(l.length, k / d)) : typeof p == "number" && (_ = l.slice(0, p)), _;
1647
- }, [l, d, I, p, be]), De = Br(function() {
1648
- return be ? l.slice(Me + 1) : l.slice(Ie.length);
1649
- }, [l, Ie, be, Me]), Je = Gr(function(_, U) {
1646
+ return Ee ? I === null && x ? _ = l : _ = l.slice(0, Math.min(l.length, k / d)) : typeof p == "number" && (_ = l.slice(0, p)), _;
1647
+ }, [l, d, I, p, Ee]), De = Br(function() {
1648
+ return Ee ? l.slice(Me + 1) : l.slice(Ie.length);
1649
+ }, [l, Ie, Ee, Me]), Je = Gr(function(_, U) {
1650
1650
  var K;
1651
1651
  return typeof i == "function" ? i(_) : (K = i && (_ == null ? void 0 : _[i])) !== null && K !== void 0 ? K : U;
1652
1652
  }, [i]), Ge = Gr(s || function(_) {
1653
1653
  return _;
1654
1654
  }, [s]);
1655
1655
  function X(_, U, K) {
1656
- Re === _ && (U === void 0 || U === T) || (we(_), K || (ae(_ < l.length - 1), g == null || g(_)), U !== void 0 && ee(U));
1656
+ Re === _ && (U === void 0 || U === P) || (we(_), K || (ae(_ < l.length - 1), g == null || g(_)), U !== void 0 && ee(U));
1657
1657
  }
1658
1658
  function le(_, U) {
1659
1659
  F(U.clientWidth);
@@ -1700,14 +1700,14 @@ function fl(e, n) {
1700
1700
  }
1701
1701
  }, [k, O, ne, j, Je, Ie]);
1702
1702
  var Qe = ve && !!De.length, ft = {};
1703
- T !== null && be && (ft = {
1703
+ P !== null && Ee && (ft = {
1704
1704
  position: "absolute",
1705
- left: T,
1705
+ left: P,
1706
1706
  top: 0
1707
1707
  });
1708
1708
  var tt = {
1709
1709
  prefixCls: se,
1710
- responsive: be,
1710
+ responsive: Ee,
1711
1711
  component: C,
1712
1712
  invalidate: me
1713
1713
  }, Xe = o ? function(_, U) {
@@ -1739,13 +1739,13 @@ function fl(e, n) {
1739
1739
  registerSize: it,
1740
1740
  display: Qe
1741
1741
  };
1742
- if (E)
1743
- E && (Ue = /* @__PURE__ */ c.createElement(jn.Provider, {
1742
+ if (b)
1743
+ b && (Ue = /* @__PURE__ */ c.createElement(jn.Provider, {
1744
1744
  value: D(D({}, tt), xt)
1745
- }, E(De)));
1745
+ }, b(De)));
1746
1746
  else {
1747
- var Et = y || dl;
1748
- Ue = /* @__PURE__ */ c.createElement(Rn, Le({}, tt, xt), typeof Et == "function" ? Et(De) : Et);
1747
+ var bt = y || dl;
1748
+ Ue = /* @__PURE__ */ c.createElement(Rn, Le({}, tt, xt), typeof bt == "function" ? bt(De) : bt);
1749
1749
  }
1750
1750
  var pt = /* @__PURE__ */ c.createElement(S, Le({
1751
1751
  className: Ve(!me && t, v),
@@ -1753,7 +1753,7 @@ function fl(e, n) {
1753
1753
  ref: n
1754
1754
  }, N), Ie.map(Xe), Se ? Ue : null, m && /* @__PURE__ */ c.createElement(Rn, Le({}, tt, {
1755
1755
  responsive: ie,
1756
- responsiveDisabled: !be,
1756
+ responsiveDisabled: !Ee,
1757
1757
  order: Me,
1758
1758
  className: "".concat(se, "-suffix"),
1759
1759
  registerSize: $e,
@@ -1762,14 +1762,14 @@ function fl(e, n) {
1762
1762
  }), m));
1763
1763
  return ie && (pt = /* @__PURE__ */ c.createElement(en, {
1764
1764
  onResize: le,
1765
- disabled: !be
1765
+ disabled: !Ee
1766
1766
  }, pt)), pt;
1767
1767
  }
1768
- var Tn = /* @__PURE__ */ c.forwardRef(fl);
1769
- Tn.displayName = "Overflow";
1770
- Tn.Item = lo;
1771
- Tn.RESPONSIVE = uo;
1772
- Tn.INVALIDATE = so;
1768
+ var Pn = /* @__PURE__ */ c.forwardRef(fl);
1769
+ Pn.displayName = "Overflow";
1770
+ Pn.Item = lo;
1771
+ Pn.RESPONSIVE = uo;
1772
+ Pn.INVALIDATE = so;
1773
1773
  var Bn = function(n) {
1774
1774
  var r = n.className, t = n.customizeIcon, a = n.customizeIconProps, l = n.onMouseDown, s = n.onClick, o = n.children, i;
1775
1775
  return typeof t == "function" ? i = t(a) : i = t, /* @__PURE__ */ c.createElement("span", {
@@ -1790,7 +1790,7 @@ var Bn = function(n) {
1790
1790
  }))
1791
1791
  }, o));
1792
1792
  }, vl = function(n, r) {
1793
- var t, a, l = n.prefixCls, s = n.id, o = n.inputElement, i = n.disabled, u = n.tabIndex, d = n.autoFocus, f = n.autoComplete, h = n.editable, v = n.activeDescendantId, p = n.value, y = n.maxLength, E = n.onKeyDown, m = n.onMouseDown, b = n.onChange, S = n.onPaste, C = n.onCompositionStart, g = n.onCompositionEnd, N = n.open, x = n.attrs, w = o || /* @__PURE__ */ c.createElement("input", null), R = w, M = R.ref, I = R.props, F = I.onKeyDown, k = I.onChange, A = I.onMouseDown, L = I.onCompositionStart, O = I.onCompositionEnd, W = I.style;
1793
+ var t, a, l = n.prefixCls, s = n.id, o = n.inputElement, i = n.disabled, u = n.tabIndex, d = n.autoFocus, f = n.autoComplete, h = n.editable, v = n.activeDescendantId, p = n.value, y = n.maxLength, b = n.onKeyDown, m = n.onMouseDown, E = n.onChange, S = n.onPaste, C = n.onCompositionStart, g = n.onCompositionEnd, N = n.open, x = n.attrs, w = o || /* @__PURE__ */ c.createElement("input", null), R = w, M = R.ref, I = R.props, F = I.onKeyDown, k = I.onChange, A = I.onMouseDown, L = I.onCompositionStart, O = I.onCompositionEnd, W = I.style;
1794
1794
  return Vn(!("maxLength" in w.props), "Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."), w = /* @__PURE__ */ c.cloneElement(w, D(D(D({
1795
1795
  type: "search"
1796
1796
  }, I), {}, {
@@ -1818,13 +1818,13 @@ var Bn = function(n) {
1818
1818
  opacity: h ? null : 0
1819
1819
  }),
1820
1820
  onKeyDown: function(G) {
1821
- E(G), F && F(G);
1821
+ b(G), F && F(G);
1822
1822
  },
1823
1823
  onMouseDown: function(G) {
1824
1824
  m(G), A && A(G);
1825
1825
  },
1826
1826
  onChange: function(G) {
1827
- b(G), k && k(G);
1827
+ E(G), k && k(G);
1828
1828
  },
1829
1829
  onCompositionStart: function(G) {
1830
1830
  C(G), L && L(G);
@@ -1859,34 +1859,34 @@ function yl(e) {
1859
1859
  }
1860
1860
  var ra = function(n) {
1861
1861
  n.preventDefault(), n.stopPropagation();
1862
- }, El = function(n) {
1863
- var r = n.id, t = n.prefixCls, a = n.values, l = n.open, s = n.searchValue, o = n.autoClearSearchValue, i = n.inputRef, u = n.placeholder, d = n.disabled, f = n.mode, h = n.showSearch, v = n.autoFocus, p = n.autoComplete, y = n.activeDescendantId, E = n.tabIndex, m = n.removeIcon, b = n.maxTagCount, S = n.maxTagTextLength, C = n.maxTagPlaceholder, g = C === void 0 ? function(ee) {
1862
+ }, bl = function(n) {
1863
+ var r = n.id, t = n.prefixCls, a = n.values, l = n.open, s = n.searchValue, o = n.autoClearSearchValue, i = n.inputRef, u = n.placeholder, d = n.disabled, f = n.mode, h = n.showSearch, v = n.autoFocus, p = n.autoComplete, y = n.activeDescendantId, b = n.tabIndex, m = n.removeIcon, E = n.maxTagCount, S = n.maxTagTextLength, C = n.maxTagPlaceholder, g = C === void 0 ? function(ee) {
1864
1864
  return "+ ".concat(ee.length, " ...");
1865
1865
  } : C, N = n.tagRender, x = n.onToggleOpen, w = n.onRemove, R = n.onInputChange, M = n.onInputPaste, I = n.onInputKeyDown, F = n.onInputMouseDown, k = n.onInputCompositionStart, A = n.onInputCompositionEnd, L = c.useRef(null), O = Qt(0), W = V(O, 2), z = W[0], G = W[1], he = Qt(!1), Y = V(he, 2), ce = Y[0], re = Y[1], ne = "".concat(t, "-selection"), Q = l || f === "multiple" && o === !1 || f === "tags" ? s : "", B = f === "tags" || f === "multiple" && o === !1 || h && (l || ce);
1866
1866
  gl(function() {
1867
1867
  G(L.current.scrollWidth);
1868
1868
  }, [Q]);
1869
- function H(ee, Ee, pe, Re, we) {
1869
+ function H(ee, be, pe, Re, we) {
1870
1870
  return /* @__PURE__ */ c.createElement("span", {
1871
1871
  className: Ve("".concat(ne, "-item"), J({}, "".concat(ne, "-item-disabled"), pe)),
1872
1872
  title: co(ee)
1873
1873
  }, /* @__PURE__ */ c.createElement("span", {
1874
1874
  className: "".concat(ne, "-item-content")
1875
- }, Ee), Re && /* @__PURE__ */ c.createElement(Bn, {
1875
+ }, be), Re && /* @__PURE__ */ c.createElement(Bn, {
1876
1876
  className: "".concat(ne, "-item-remove"),
1877
1877
  onMouseDown: ra,
1878
1878
  onClick: we,
1879
1879
  customizeIcon: m
1880
1880
  }, "×"));
1881
1881
  }
1882
- function j(ee, Ee, pe, Re, we) {
1882
+ function j(ee, be, pe, Re, we) {
1883
1883
  var Me = function($) {
1884
1884
  ra($), x(!l);
1885
1885
  };
1886
1886
  return /* @__PURE__ */ c.createElement("span", {
1887
1887
  onMouseDown: Me
1888
1888
  }, N({
1889
- label: Ee,
1889
+ label: be,
1890
1890
  value: ee,
1891
1891
  disabled: pe,
1892
1892
  closable: Re,
@@ -1894,7 +1894,7 @@ var ra = function(n) {
1894
1894
  }));
1895
1895
  }
1896
1896
  function de(ee) {
1897
- var Ee = ee.disabled, pe = ee.label, Re = ee.value, we = !d && !Ee, Me = pe;
1897
+ var be = ee.disabled, pe = ee.label, Re = ee.value, we = !d && !be, Me = pe;
1898
1898
  if (typeof S == "number" && (typeof pe == "string" || typeof pe == "number")) {
1899
1899
  var fe = String(Me);
1900
1900
  fe.length > S && (Me = "".concat(fe.slice(0, S), "..."));
@@ -1902,13 +1902,13 @@ var ra = function(n) {
1902
1902
  var $ = function(ae) {
1903
1903
  ae && ae.stopPropagation(), w(ee);
1904
1904
  };
1905
- return typeof N == "function" ? j(Re, Me, Ee, we, $) : H(ee, Me, Ee, we, $);
1905
+ return typeof N == "function" ? j(Re, Me, be, we, $) : H(ee, Me, be, we, $);
1906
1906
  }
1907
1907
  function ue(ee) {
1908
- var Ee = typeof g == "function" ? g(ee) : g;
1908
+ var be = typeof g == "function" ? g(ee) : g;
1909
1909
  return H({
1910
- title: Ee
1911
- }, Ee, !1);
1910
+ title: be
1911
+ }, be, !1);
1912
1912
  }
1913
1913
  var Z = /* @__PURE__ */ c.createElement("div", {
1914
1914
  className: "".concat(ne, "-search"),
@@ -1939,26 +1939,26 @@ var ra = function(n) {
1939
1939
  onPaste: M,
1940
1940
  onCompositionStart: k,
1941
1941
  onCompositionEnd: A,
1942
- tabIndex: E,
1942
+ tabIndex: b,
1943
1943
  attrs: vn(n, !0)
1944
1944
  }), /* @__PURE__ */ c.createElement("span", {
1945
1945
  ref: L,
1946
1946
  className: "".concat(ne, "-search-mirror"),
1947
1947
  "aria-hidden": !0
1948
- }, Q, " ")), T = /* @__PURE__ */ c.createElement(Tn, {
1948
+ }, Q, " ")), P = /* @__PURE__ */ c.createElement(Pn, {
1949
1949
  prefixCls: "".concat(ne, "-overflow"),
1950
1950
  data: a,
1951
1951
  renderItem: de,
1952
1952
  renderRest: ue,
1953
1953
  suffix: Z,
1954
1954
  itemKey: yl,
1955
- maxCount: b
1955
+ maxCount: E
1956
1956
  });
1957
- return /* @__PURE__ */ c.createElement(c.Fragment, null, T, !a.length && !Q && /* @__PURE__ */ c.createElement("span", {
1957
+ return /* @__PURE__ */ c.createElement(c.Fragment, null, P, !a.length && !Q && /* @__PURE__ */ c.createElement("span", {
1958
1958
  className: "".concat(ne, "-placeholder")
1959
1959
  }, u));
1960
- }, bl = function(n) {
1961
- var r = n.inputElement, t = n.prefixCls, a = n.id, l = n.inputRef, s = n.disabled, o = n.autoFocus, i = n.autoComplete, u = n.activeDescendantId, d = n.mode, f = n.open, h = n.values, v = n.placeholder, p = n.tabIndex, y = n.showSearch, E = n.searchValue, m = n.activeValue, b = n.maxLength, S = n.onInputKeyDown, C = n.onInputMouseDown, g = n.onInputChange, N = n.onInputPaste, x = n.onInputCompositionStart, w = n.onInputCompositionEnd, R = n.title, M = c.useState(!1), I = V(M, 2), F = I[0], k = I[1], A = d === "combobox", L = A || y, O = h[0], W = E || "";
1960
+ }, El = function(n) {
1961
+ var r = n.inputElement, t = n.prefixCls, a = n.id, l = n.inputRef, s = n.disabled, o = n.autoFocus, i = n.autoComplete, u = n.activeDescendantId, d = n.mode, f = n.open, h = n.values, v = n.placeholder, p = n.tabIndex, y = n.showSearch, b = n.searchValue, m = n.activeValue, E = n.maxLength, S = n.onInputKeyDown, C = n.onInputMouseDown, g = n.onInputChange, N = n.onInputPaste, x = n.onInputCompositionStart, w = n.onInputCompositionEnd, R = n.title, M = c.useState(!1), I = V(M, 2), F = I[0], k = I[1], A = d === "combobox", L = A || y, O = h[0], W = b || "";
1962
1962
  A && m && !F && (W = m), c.useEffect(function() {
1963
1963
  A && k(!1);
1964
1964
  }, [A, m]);
@@ -1997,7 +1997,7 @@ var ra = function(n) {
1997
1997
  onCompositionEnd: w,
1998
1998
  tabIndex: p,
1999
1999
  attrs: vn(n, !0),
2000
- maxLength: A ? b : void 0
2000
+ maxLength: A ? E : void 0
2001
2001
  })), !A && O ? /* @__PURE__ */ c.createElement("span", {
2002
2002
  className: "".concat(t, "-selection-item"),
2003
2003
  title: G,
@@ -2009,32 +2009,32 @@ var ra = function(n) {
2009
2009
  function Sl(e) {
2010
2010
  return ![
2011
2011
  // System function button
2012
- P.ESC,
2013
- P.SHIFT,
2014
- P.BACKSPACE,
2015
- P.TAB,
2016
- P.WIN_KEY,
2017
- P.ALT,
2018
- P.META,
2019
- P.WIN_KEY_RIGHT,
2020
- P.CTRL,
2021
- P.SEMICOLON,
2022
- P.EQUALS,
2023
- P.CAPS_LOCK,
2024
- P.CONTEXT_MENU,
2012
+ T.ESC,
2013
+ T.SHIFT,
2014
+ T.BACKSPACE,
2015
+ T.TAB,
2016
+ T.WIN_KEY,
2017
+ T.ALT,
2018
+ T.META,
2019
+ T.WIN_KEY_RIGHT,
2020
+ T.CTRL,
2021
+ T.SEMICOLON,
2022
+ T.EQUALS,
2023
+ T.CAPS_LOCK,
2024
+ T.CONTEXT_MENU,
2025
2025
  // F1-F12
2026
- P.F1,
2027
- P.F2,
2028
- P.F3,
2029
- P.F4,
2030
- P.F5,
2031
- P.F6,
2032
- P.F7,
2033
- P.F8,
2034
- P.F9,
2035
- P.F10,
2036
- P.F11,
2037
- P.F12
2026
+ T.F1,
2027
+ T.F2,
2028
+ T.F3,
2029
+ T.F4,
2030
+ T.F5,
2031
+ T.F6,
2032
+ T.F7,
2033
+ T.F8,
2034
+ T.F9,
2035
+ T.F10,
2036
+ T.F11,
2037
+ T.F12
2038
2038
  ].includes(e);
2039
2039
  }
2040
2040
  var Cl = function(n, r) {
@@ -2049,9 +2049,9 @@ var Cl = function(n, r) {
2049
2049
  }
2050
2050
  };
2051
2051
  });
2052
- var E = qa(0), m = V(E, 2), b = m[0], S = m[1], C = function(W) {
2052
+ var b = qa(0), m = V(b, 2), E = m[0], S = m[1], C = function(W) {
2053
2053
  var z = W.which;
2054
- (z === P.UP || z === P.DOWN) && W.preventDefault(), p && p(W), z === P.ENTER && o === "tags" && !a.current && !s && (h == null || h(W.target.value)), Sl(z) && v(!0);
2054
+ (z === T.UP || z === T.DOWN) && W.preventDefault(), p && p(W), z === T.ENTER && o === "tags" && !a.current && !s && (h == null || h(W.target.value)), Sl(z) && v(!0);
2055
2055
  }, g = function() {
2056
2056
  S(!0);
2057
2057
  }, N = Be(null), x = function(W) {
@@ -2079,7 +2079,7 @@ var Cl = function(n, r) {
2079
2079
  }) : t.current.focus();
2080
2080
  }
2081
2081
  }, k = function(W) {
2082
- var z = b();
2082
+ var z = E();
2083
2083
  W.target !== t.current && !z && o !== "combobox" && W.preventDefault(), (o !== "combobox" && (!i || !z) || !s) && (s && d !== !1 && f("", !0, !1), v());
2084
2084
  }, A = {
2085
2085
  inputRef: t,
@@ -2089,7 +2089,7 @@ var Cl = function(n, r) {
2089
2089
  onInputPaste: I,
2090
2090
  onInputCompositionStart: w,
2091
2091
  onInputCompositionEnd: R
2092
- }, L = o === "multiple" || o === "tags" ? /* @__PURE__ */ c.createElement(El, Le({}, n, A)) : /* @__PURE__ */ c.createElement(bl, Le({}, n, A));
2092
+ }, L = o === "multiple" || o === "tags" ? /* @__PURE__ */ c.createElement(bl, Le({}, n, A)) : /* @__PURE__ */ c.createElement(El, Le({}, n, A));
2093
2093
  return /* @__PURE__ */ c.createElement("div", {
2094
2094
  ref: y,
2095
2095
  className: "".concat(l, "-selector"),
@@ -2107,8 +2107,8 @@ function wl(e, n) {
2107
2107
  return process.env.NODE_ENV !== "production" && n && p.setAttribute("data-debug", n), p;
2108
2108
  }), t = V(r, 1), a = t[0], l = c.useRef(!1), s = c.useContext(vo), o = c.useState(aa), i = V(o, 2), u = i[0], d = i[1], f = s || (l.current ? void 0 : function(p) {
2109
2109
  d(function(y) {
2110
- var E = [p].concat(je(y));
2111
- return E;
2110
+ var b = [p].concat(je(y));
2111
+ return b;
2112
2112
  });
2113
2113
  });
2114
2114
  function h() {
@@ -2228,17 +2228,17 @@ function kl(e) {
2228
2228
  }
2229
2229
  return or;
2230
2230
  }
2231
- function Pl() {
2231
+ function Tl() {
2232
2232
  return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;
2233
2233
  }
2234
- var Tl = "rc-util-locker-".concat(Date.now()), la = 0;
2234
+ var Pl = "rc-util-locker-".concat(Date.now()), la = 0;
2235
2235
  function _l(e) {
2236
2236
  var n = !!e, r = c.useState(function() {
2237
- return la += 1, "".concat(Tl, "_").concat(la);
2237
+ return la += 1, "".concat(Pl, "_").concat(la);
2238
2238
  }), t = V(r, 1), a = t[0];
2239
2239
  ut(function() {
2240
2240
  if (n) {
2241
- var l = kl(), s = Pl();
2241
+ var l = kl(), s = Tl();
2242
2242
  Dl(`
2243
2243
  html body {
2244
2244
  overflow-y: hidden;
@@ -2259,25 +2259,25 @@ var sa = function(n) {
2259
2259
  return n === !1 ? !1 : !Lt() || !n ? null : typeof n == "string" ? document.querySelector(n) : typeof n == "function" ? n() : n;
2260
2260
  }, Ir = /* @__PURE__ */ c.forwardRef(function(e, n) {
2261
2261
  var r = e.open, t = e.autoLock, a = e.getContainer, l = e.debug, s = e.autoDestroy, o = s === void 0 ? !0 : s, i = e.children, u = c.useState(r), d = V(u, 2), f = d[0], h = d[1], v = f || r;
2262
- process.env.NODE_ENV !== "production" && Te(Lt() || !r, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), c.useEffect(function() {
2262
+ process.env.NODE_ENV !== "production" && Pe(Lt() || !r, "Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."), c.useEffect(function() {
2263
2263
  (o || r) && h(r);
2264
2264
  }, [r, o]);
2265
2265
  var p = c.useState(function() {
2266
2266
  return sa(a);
2267
- }), y = V(p, 2), E = y[0], m = y[1];
2267
+ }), y = V(p, 2), b = y[0], m = y[1];
2268
2268
  c.useEffect(function() {
2269
2269
  var F = sa(a);
2270
2270
  m(F ?? null);
2271
2271
  });
2272
- var b = wl(v && !E, l), S = V(b, 2), C = S[0], g = S[1], N = E ?? C;
2272
+ var E = wl(v && !b, l), S = V(E, 2), C = S[0], g = S[1], N = b ?? C;
2273
2273
  _l(t && r && Lt() && (N === C || N === document.body));
2274
2274
  var x = null;
2275
2275
  if (i && Qn(i) && n) {
2276
2276
  var w = i;
2277
2277
  x = w.ref;
2278
2278
  }
2279
- var R = Tr(x, n);
2280
- if (!v || !Lt() || E === void 0)
2279
+ var R = Pr(x, n);
2280
+ if (!v || !Lt() || b === void 0)
2281
2281
  return null;
2282
2282
  var M = N === !1 || Ol(), I = i;
2283
2283
  return n && (I = /* @__PURE__ */ c.cloneElement(i, {
@@ -2372,7 +2372,7 @@ function Fl(e, n) {
2372
2372
  var r = D({}, e);
2373
2373
  return (n || []).forEach(function(t) {
2374
2374
  if (!(t instanceof HTMLBodyElement)) {
2375
- var a = _n(t).getComputedStyle(t), l = a.overflow, s = a.overflowClipMargin, o = a.borderTopWidth, i = a.borderBottomWidth, u = a.borderLeftWidth, d = a.borderRightWidth, f = t.getBoundingClientRect(), h = t.offsetHeight, v = t.clientHeight, p = t.offsetWidth, y = t.clientWidth, E = xn(o), m = xn(i), b = xn(u), S = xn(d), C = kn(Math.round(f.width / p * 1e3) / 1e3), g = kn(Math.round(f.height / h * 1e3) / 1e3), N = (p - y - b - S) * C, x = (h - v - E - m) * g, w = E * g, R = m * g, M = b * C, I = S * C, F = 0, k = 0;
2375
+ var a = _n(t).getComputedStyle(t), l = a.overflow, s = a.overflowClipMargin, o = a.borderTopWidth, i = a.borderBottomWidth, u = a.borderLeftWidth, d = a.borderRightWidth, f = t.getBoundingClientRect(), h = t.offsetHeight, v = t.clientHeight, p = t.offsetWidth, y = t.clientWidth, b = xn(o), m = xn(i), E = xn(u), S = xn(d), C = kn(Math.round(f.width / p * 1e3) / 1e3), g = kn(Math.round(f.height / h * 1e3) / 1e3), N = (p - y - E - S) * C, x = (h - v - b - m) * g, w = b * g, R = m * g, M = E * C, I = S * C, F = 0, k = 0;
2376
2376
  if (l === "clip") {
2377
2377
  var A = xn(s);
2378
2378
  F = A * C, k = A * g;
@@ -2430,14 +2430,14 @@ function Hl(e, n, r, t, a, l, s) {
2430
2430
  e || p();
2431
2431
  var y = $t(function() {
2432
2432
  if (n && r && e) {
2433
- let wt = function(Pt, St) {
2434
- var mt = M.x + Pt, vt = M.y + St, tn = mt + ce, gn = vt + Y, nn = Math.max(mt, Q.left), rn = Math.max(vt, Q.top), Yt = Math.min(tn, Q.right), yn = Math.min(gn, Q.bottom);
2433
+ let wt = function(Tt, St) {
2434
+ var mt = M.x + Tt, vt = M.y + St, tn = mt + ce, gn = vt + Y, nn = Math.max(mt, Q.left), rn = Math.max(vt, Q.top), Yt = Math.min(tn, Q.right), yn = Math.min(gn, Q.bottom);
2435
2435
  return Math.max(0, (Yt - nn) * (yn - rn));
2436
2436
  }, Dt = function() {
2437
2437
  ft = M.y + Se, tt = ft + Y, Xe = M.x + me, Ue = Xe + ce;
2438
2438
  };
2439
- var b = n, S = b.style.left, C = b.style.top, g = b.ownerDocument, N = _n(b), x = D(D({}, a[t]), l);
2440
- b.style.left = "0", b.style.top = "0";
2439
+ var E = n, S = E.style.left, C = E.style.top, g = E.ownerDocument, N = _n(E), x = D(D({}, a[t]), l);
2440
+ E.style.left = "0", E.style.top = "0";
2441
2441
  var w;
2442
2442
  if (Array.isArray(r))
2443
2443
  w = {
@@ -2455,7 +2455,7 @@ function Hl(e, n, r, t, a, l, s) {
2455
2455
  height: R.height
2456
2456
  };
2457
2457
  }
2458
- var M = b.getBoundingClientRect(), I = N.getComputedStyle(b), F = I.width, k = I.height, A = g.documentElement, L = A.clientWidth, O = A.clientHeight, W = A.scrollWidth, z = A.scrollHeight, G = A.scrollTop, he = A.scrollLeft, Y = M.height, ce = M.width, re = w.height, ne = w.width, Q = x.htmlRegion === "scroll" ? (
2458
+ var M = E.getBoundingClientRect(), I = N.getComputedStyle(E), F = I.width, k = I.height, A = g.documentElement, L = A.clientWidth, O = A.clientHeight, W = A.scrollWidth, z = A.scrollHeight, G = A.scrollTop, he = A.scrollLeft, Y = M.height, ce = M.width, re = w.height, ne = w.width, Q = x.htmlRegion === "scroll" ? (
2459
2459
  // Scroll region should take scrollLeft & scrollTop into account
2460
2460
  {
2461
2461
  left: -he,
@@ -2469,41 +2469,41 @@ function Hl(e, n, r, t, a, l, s) {
2469
2469
  right: L,
2470
2470
  bottom: O
2471
2471
  };
2472
- Q = Fl(Q, h), b.style.left = S, b.style.top = C;
2472
+ Q = Fl(Q, h), E.style.left = S, E.style.top = C;
2473
2473
  var B = kn(Math.round(ce / parseFloat(F) * 1e3) / 1e3), H = kn(Math.round(Y / parseFloat(k) * 1e3) / 1e3);
2474
2474
  if (B === 0 || H === 0 || Fn(r) && !Al(r))
2475
2475
  return;
2476
- var j = x.offset, de = x.targetOffset, ue = pa(M, j), Z = V(ue, 2), T = Z[0], ee = Z[1], Ee = pa(w, de), pe = V(Ee, 2), Re = pe[0], we = pe[1];
2476
+ var j = x.offset, de = x.targetOffset, ue = pa(M, j), Z = V(ue, 2), P = Z[0], ee = Z[1], be = pa(w, de), pe = V(be, 2), Re = pe[0], we = pe[1];
2477
2477
  w.x -= Re, w.y -= we;
2478
- var Me = x.points || [], fe = V(Me, 2), $ = fe[0], ve = fe[1], ae = ma(ve), se = ma($), q = un(w, ae), ie = un(M, se), be = D({}, x), me = q.x - ie.x + T, Se = q.y - ie.y + ee, Ie = wt(me, Se), De = un(w, ["t", "l"]), Je = un(M, ["t", "l"]), Ge = un(w, ["b", "r"]), X = un(M, ["b", "r"]), le = x.overflow || {}, Ae = le.adjustX, it = le.adjustY, $e = le.shiftX, dt = le.shiftY, Qe = function(St) {
2478
+ var Me = x.points || [], fe = V(Me, 2), $ = fe[0], ve = fe[1], ae = ma(ve), se = ma($), q = un(w, ae), ie = un(M, se), Ee = D({}, x), me = q.x - ie.x + P, Se = q.y - ie.y + ee, Ie = wt(me, Se), De = un(w, ["t", "l"]), Je = un(M, ["t", "l"]), Ge = un(w, ["b", "r"]), X = un(M, ["b", "r"]), le = x.overflow || {}, Ae = le.adjustX, it = le.adjustY, $e = le.shiftX, dt = le.shiftY, Qe = function(St) {
2479
2479
  return typeof St == "boolean" ? St : St >= 0;
2480
2480
  }, ft, tt, Xe, Ue;
2481
2481
  Dt();
2482
- var xt = Qe(it), Et = se[0] === ae[0];
2482
+ var xt = Qe(it), bt = se[0] === ae[0];
2483
2483
  if (xt && se[0] === "t" && (tt > Q.bottom || v.current.bt)) {
2484
2484
  var pt = Se;
2485
- Et ? pt -= Y - re : pt = De.y - X.y - ee, wt(me, pt) >= Ie ? (v.current.bt = !0, Se = pt, be.points = [jt(se, 0), jt(ae, 0)]) : v.current.bt = !1;
2485
+ bt ? pt -= Y - re : pt = De.y - X.y - ee, wt(me, pt) >= Ie ? (v.current.bt = !0, Se = pt, Ee.points = [jt(se, 0), jt(ae, 0)]) : v.current.bt = !1;
2486
2486
  }
2487
2487
  if (xt && se[0] === "b" && (ft < Q.top || v.current.tb)) {
2488
2488
  var _ = Se;
2489
- Et ? _ += Y - re : _ = Ge.y - Je.y - ee, wt(me, _) >= Ie ? (v.current.tb = !0, Se = _, be.points = [jt(se, 0), jt(ae, 0)]) : v.current.tb = !1;
2489
+ bt ? _ += Y - re : _ = Ge.y - Je.y - ee, wt(me, _) >= Ie ? (v.current.tb = !0, Se = _, Ee.points = [jt(se, 0), jt(ae, 0)]) : v.current.tb = !1;
2490
2490
  }
2491
2491
  var U = Qe(Ae), K = se[1] === ae[1];
2492
2492
  if (U && se[1] === "l" && (Ue > Q.right || v.current.rl)) {
2493
2493
  var te = me;
2494
- K ? te -= ce - ne : te = De.x - X.x - T, wt(te, Se) >= Ie ? (v.current.rl = !0, me = te, be.points = [jt(se, 1), jt(ae, 1)]) : v.current.rl = !1;
2494
+ K ? te -= ce - ne : te = De.x - X.x - P, wt(te, Se) >= Ie ? (v.current.rl = !0, me = te, Ee.points = [jt(se, 1), jt(ae, 1)]) : v.current.rl = !1;
2495
2495
  }
2496
2496
  if (U && se[1] === "r" && (Xe < Q.left || v.current.lr)) {
2497
2497
  var ge = me;
2498
- K ? ge += ce - ne : ge = Ge.x - Je.x - T, wt(ge, Se) >= Ie ? (v.current.lr = !0, me = ge, be.points = [jt(se, 1), jt(ae, 1)]) : v.current.lr = !1;
2498
+ K ? ge += ce - ne : ge = Ge.x - Je.x - P, wt(ge, Se) >= Ie ? (v.current.lr = !0, me = ge, Ee.points = [jt(se, 1), jt(ae, 1)]) : v.current.lr = !1;
2499
2499
  }
2500
2500
  Dt();
2501
2501
  var Ne = $e === !0 ? 0 : $e;
2502
2502
  typeof Ne == "number" && (Xe < Q.left && (me -= Xe - Q.left, w.x + ne < Q.left + Ne && (me += w.x - Q.left + ne - Ne)), Ue > Q.right && (me -= Ue - Q.right, w.x > Q.right - Ne && (me += w.x - Q.right + Ne)));
2503
2503
  var nt = dt === !0 ? 0 : dt;
2504
2504
  typeof nt == "number" && (ft < Q.top && (Se -= ft - Q.top, w.y + re < Q.top + nt && (Se += w.y - Q.top + re - nt)), tt > Q.bottom && (Se -= tt - Q.bottom, w.y > Q.bottom - nt && (Se += w.y - Q.bottom + nt)));
2505
- var rt = M.x + me, kt = rt + ce, Ye = M.y + Se, bt = Ye + Y, Rt = w.x, _e = Rt + ne, ke = w.y, Pe = ke + re, Oe = Math.max(rt, Rt), at = Math.min(kt, _e), ot = (Oe + at) / 2, Ke = ot - rt, Fe = Math.max(Ye, ke), lt = Math.min(bt, Pe), Mt = (Fe + lt) / 2, Ot = Mt - Ye;
2506
- s == null || s(n, be), d({
2505
+ var rt = M.x + me, kt = rt + ce, Ye = M.y + Se, Et = Ye + Y, Rt = w.x, _e = Rt + ne, ke = w.y, Te = ke + re, Oe = Math.max(rt, Rt), at = Math.min(kt, _e), ot = (Oe + at) / 2, Ke = ot - rt, Fe = Math.max(Ye, ke), lt = Math.min(Et, Te), Mt = (Fe + lt) / 2, Ot = Mt - Ye;
2506
+ s == null || s(n, Ee), d({
2507
2507
  ready: !0,
2508
2508
  offsetX: me / B,
2509
2509
  offsetY: Se / H,
@@ -2511,10 +2511,10 @@ function Hl(e, n, r, t, a, l, s) {
2511
2511
  arrowY: Ot / H,
2512
2512
  scaleX: B,
2513
2513
  scaleY: H,
2514
- align: be
2514
+ align: Ee
2515
2515
  });
2516
2516
  }
2517
- }), E = function() {
2517
+ }), b = function() {
2518
2518
  f.current += 1;
2519
2519
  var S = f.current;
2520
2520
  Promise.resolve().then(function() {
@@ -2529,7 +2529,7 @@ function Hl(e, n, r, t, a, l, s) {
2529
2529
  };
2530
2530
  return ut(m, [t]), ut(function() {
2531
2531
  e || m();
2532
- }, [e]), [u.ready, u.offsetX, u.offsetY, u.arrowX, u.arrowY, u.scaleX, u.scaleY, u.align, E];
2532
+ }, [e]), [u.ready, u.offsetX, u.offsetY, u.arrowX, u.arrowY, u.scaleX, u.scaleY, u.align, b];
2533
2533
  }
2534
2534
  function Ul(e, n, r, t) {
2535
2535
  ut(function() {
@@ -2576,25 +2576,25 @@ function jl(e, n) {
2576
2576
  };
2577
2577
  return e && ("AnimationEvent" in n || delete r.animationend.animation, "TransitionEvent" in n || delete r.transitionend.transition), r;
2578
2578
  }
2579
- var Bl = jl(Lt(), typeof window < "u" ? window : {}), Eo = {};
2579
+ var Bl = jl(Lt(), typeof window < "u" ? window : {}), bo = {};
2580
2580
  if (Lt()) {
2581
2581
  var Gl = document.createElement("div");
2582
- Eo = Gl.style;
2582
+ bo = Gl.style;
2583
2583
  }
2584
2584
  var $n = {};
2585
- function bo(e) {
2585
+ function Eo(e) {
2586
2586
  if ($n[e])
2587
2587
  return $n[e];
2588
2588
  var n = Bl[e];
2589
2589
  if (n)
2590
2590
  for (var r = Object.keys(n), t = r.length, a = 0; a < t; a += 1) {
2591
2591
  var l = r[a];
2592
- if (Object.prototype.hasOwnProperty.call(n, l) && l in Eo)
2592
+ if (Object.prototype.hasOwnProperty.call(n, l) && l in bo)
2593
2593
  return $n[e] = n[l], $n[e];
2594
2594
  }
2595
2595
  return "";
2596
2596
  }
2597
- var So = bo("animationend"), Co = bo("transitionend"), wo = !!(So && Co), Ea = So || "animationend", ba = Co || "transitionend";
2597
+ var So = Eo("animationend"), Co = Eo("transitionend"), wo = !!(So && Co), ba = So || "animationend", Ea = Co || "transitionend";
2598
2598
  function Sa(e, n) {
2599
2599
  if (!e)
2600
2600
  return null;
@@ -2613,10 +2613,10 @@ const Yl = function(e) {
2613
2613
  r.current(s);
2614
2614
  }, []);
2615
2615
  function a(s) {
2616
- s && (s.removeEventListener(ba, t), s.removeEventListener(Ea, t));
2616
+ s && (s.removeEventListener(Ea, t), s.removeEventListener(ba, t));
2617
2617
  }
2618
2618
  function l(s) {
2619
- n.current && n.current !== s && a(n.current), s && s !== n.current && (s.addEventListener(ba, t), s.addEventListener(Ea, t), n.current = s);
2619
+ n.current && n.current !== s && a(n.current), s && s !== n.current && (s.addEventListener(Ea, t), s.addEventListener(ba, t), n.current = s);
2620
2620
  }
2621
2621
  return c.useEffect(function() {
2622
2622
  return function() {
@@ -2661,9 +2661,9 @@ const Jl = function(e, n, r) {
2661
2661
  return No(function() {
2662
2662
  if (l !== ga && l !== Lr) {
2663
2663
  var v = h.indexOf(l), p = h[v + 1], y = r(l);
2664
- y === xo ? s(p, !0) : p && u(function(E) {
2664
+ y === xo ? s(p, !0) : p && u(function(b) {
2665
2665
  function m() {
2666
- E.isCanceled() || s(p, !0);
2666
+ b.isCanceled() || s(p, !0);
2667
2667
  }
2668
2668
  y === !0 ? m() : Promise.resolve(y).then(m);
2669
2669
  });
@@ -2675,7 +2675,7 @@ const Jl = function(e, n, r) {
2675
2675
  }, []), [f, l];
2676
2676
  };
2677
2677
  function eu(e, n, r, t) {
2678
- var a = t.motionEnter, l = a === void 0 ? !0 : a, s = t.motionAppear, o = s === void 0 ? !0 : s, i = t.motionLeave, u = i === void 0 ? !0 : i, d = t.motionDeadline, f = t.motionLeaveImmediately, h = t.onAppearPrepare, v = t.onEnterPrepare, p = t.onLeavePrepare, y = t.onAppearStart, E = t.onEnterStart, m = t.onLeaveStart, b = t.onAppearActive, S = t.onEnterActive, C = t.onLeaveActive, g = t.onAppearEnd, N = t.onEnterEnd, x = t.onLeaveEnd, w = t.onVisibleChanged, R = dn(), M = V(R, 2), I = M[0], F = M[1], k = dn(qt), A = V(k, 2), L = A[0], O = A[1], W = dn(null), z = V(W, 2), G = z[0], he = z[1], Y = Be(!1), ce = Be(null);
2678
+ var a = t.motionEnter, l = a === void 0 ? !0 : a, s = t.motionAppear, o = s === void 0 ? !0 : s, i = t.motionLeave, u = i === void 0 ? !0 : i, d = t.motionDeadline, f = t.motionLeaveImmediately, h = t.onAppearPrepare, v = t.onEnterPrepare, p = t.onLeavePrepare, y = t.onAppearStart, b = t.onEnterStart, m = t.onLeaveStart, E = t.onAppearActive, S = t.onEnterActive, C = t.onLeaveActive, g = t.onAppearEnd, N = t.onEnterEnd, x = t.onLeaveEnd, w = t.onVisibleChanged, R = dn(), M = V(R, 2), I = M[0], F = M[1], k = dn(qt), A = V(k, 2), L = A[0], O = A[1], W = dn(null), z = V(W, 2), G = z[0], he = z[1], Y = Be(!1), ce = Be(null);
2679
2679
  function re() {
2680
2680
  return r();
2681
2681
  }
@@ -2694,9 +2694,9 @@ function eu(e, n, r, t) {
2694
2694
  var ve, ae, se;
2695
2695
  switch ($) {
2696
2696
  case In:
2697
- return ve = {}, J(ve, Kt, h), J(ve, sn, y), J(ve, cn, b), ve;
2697
+ return ve = {}, J(ve, Kt, h), J(ve, sn, y), J(ve, cn, E), ve;
2698
2698
  case Ln:
2699
- return ae = {}, J(ae, Kt, v), J(ae, sn, E), J(ae, cn, S), ae;
2699
+ return ae = {}, J(ae, Kt, v), J(ae, sn, b), J(ae, cn, S), ae;
2700
2700
  case An:
2701
2701
  return se = {}, J(se, Kt, p), J(se, sn, m), J(se, cn, C), se;
2702
2702
  default:
@@ -2704,7 +2704,7 @@ function eu(e, n, r, t) {
2704
2704
  }
2705
2705
  }, Z = c.useMemo(function() {
2706
2706
  return ue(L);
2707
- }, [L]), T = Jl(L, !e, function(fe) {
2707
+ }, [L]), P = Jl(L, !e, function(fe) {
2708
2708
  if (fe === Kt) {
2709
2709
  var $ = Z[Kt];
2710
2710
  return $ ? $(re()) : xo;
@@ -2718,7 +2718,7 @@ function eu(e, n, r, t) {
2718
2718
  deadline: !0
2719
2719
  });
2720
2720
  }, d))), pe === yo && Q(), Xl;
2721
- }), ee = V(T, 2), Ee = ee[0], pe = ee[1], Re = Ro(pe);
2721
+ }), ee = V(P, 2), be = ee[0], pe = ee[1], Re = Ro(pe);
2722
2722
  ne.current = Re, No(function() {
2723
2723
  F(n);
2724
2724
  var fe = Y.current;
@@ -2726,7 +2726,7 @@ function eu(e, n, r, t) {
2726
2726
  var $;
2727
2727
  !fe && n && o && ($ = In), fe && n && l && ($ = Ln), (fe && !n && u || !fe && f && !n && u) && ($ = An);
2728
2728
  var ve = ue($);
2729
- $ && (e || ve[Kt]) ? (O($), Ee()) : O(qt);
2729
+ $ && (e || ve[Kt]) ? (O($), be()) : O(qt);
2730
2730
  }, [n]), Ht(function() {
2731
2731
  // Cancel appear
2732
2732
  (L === In && !o || // Cancel enter
@@ -2753,10 +2753,10 @@ function tu(e) {
2753
2753
  return !!(a.motionName && n && l !== !1);
2754
2754
  }
2755
2755
  var t = /* @__PURE__ */ c.forwardRef(function(a, l) {
2756
- var s = a.visible, o = s === void 0 ? !0 : s, i = a.removeOnLeave, u = i === void 0 ? !0 : i, d = a.forceRender, f = a.children, h = a.motionName, v = a.leavedClassName, p = a.eventProps, y = c.useContext(Wl), E = y.motion, m = r(a, E), b = Be(), S = Be();
2756
+ var s = a.visible, o = s === void 0 ? !0 : s, i = a.removeOnLeave, u = i === void 0 ? !0 : i, d = a.forceRender, f = a.children, h = a.motionName, v = a.leavedClassName, p = a.eventProps, y = c.useContext(Wl), b = y.motion, m = r(a, b), E = Be(), S = Be();
2757
2757
  function C() {
2758
2758
  try {
2759
- return b.current instanceof HTMLElement ? b.current : Hn(S.current);
2759
+ return E.current instanceof HTMLElement ? E.current : Hn(S.current);
2760
2760
  } catch {
2761
2761
  return null;
2762
2762
  }
@@ -2764,7 +2764,7 @@ function tu(e) {
2764
2764
  var g = eu(m, o, C, a), N = V(g, 4), x = N[0], w = N[1], R = N[2], M = N[3], I = c.useRef(M);
2765
2765
  M && (I.current = !0);
2766
2766
  var F = c.useCallback(function(he) {
2767
- b.current = he, Pr(l, he);
2767
+ E.current = he, Tr(l, he);
2768
2768
  }, [l]), k, A = D(D({}, p), {}, {
2769
2769
  visible: o
2770
2770
  });
@@ -2800,7 +2800,7 @@ function tu(e) {
2800
2800
  return t.displayName = "CSSMotion", t;
2801
2801
  }
2802
2802
  const Jn = tu(wo);
2803
- var yr = "add", Er = "keep", br = "remove", ir = "removed";
2803
+ var yr = "add", br = "keep", Er = "remove", ir = "removed";
2804
2804
  function nu(e) {
2805
2805
  var n;
2806
2806
  return e && ct(e) === "object" && "key" in e ? n = e : n = {
@@ -2824,13 +2824,13 @@ function ru() {
2824
2824
  status: yr
2825
2825
  });
2826
2826
  })), t = f), r.push(D(D({}, h), {}, {
2827
- status: Er
2827
+ status: br
2828
2828
  })), t += 1, d = !0;
2829
2829
  break;
2830
2830
  }
2831
2831
  }
2832
2832
  d || r.push(D(D({}, u), {}, {
2833
- status: br
2833
+ status: Er
2834
2834
  }));
2835
2835
  }), t < a && (r = r.concat(s.slice(t).map(function(u) {
2836
2836
  return D(D({}, u), {}, {
@@ -2848,9 +2848,9 @@ function ru() {
2848
2848
  return i.forEach(function(u) {
2849
2849
  r = r.filter(function(d) {
2850
2850
  var f = d.key, h = d.status;
2851
- return f !== u || h !== br;
2851
+ return f !== u || h !== Er;
2852
2852
  }), r.forEach(function(d) {
2853
- d.key === u && (d.status = Er);
2853
+ d.key === u && (d.status = br);
2854
2854
  });
2855
2855
  }), r;
2856
2856
  }
@@ -2883,12 +2883,12 @@ function lu(e) {
2883
2883
  return Jt(l, [{
2884
2884
  key: "render",
2885
2885
  value: function() {
2886
- var o = this, i = this.state.keyEntities, u = this.props, d = u.component, f = u.children, h = u.onVisibleChanged, v = u.onAllRemoved, p = st(u, au), y = d || c.Fragment, E = {};
2886
+ var o = this, i = this.state.keyEntities, u = this.props, d = u.component, f = u.children, h = u.onVisibleChanged, v = u.onAllRemoved, p = st(u, au), y = d || c.Fragment, b = {};
2887
2887
  return iu.forEach(function(m) {
2888
- E[m] = p[m], delete p[m];
2888
+ b[m] = p[m], delete p[m];
2889
2889
  }), delete p.keys, /* @__PURE__ */ c.createElement(y, p, i.map(function(m) {
2890
- var b = m.status, S = st(m, ou), C = b === yr || b === Er;
2891
- return /* @__PURE__ */ c.createElement(n, Le({}, E, {
2890
+ var E = m.status, S = st(m, ou), C = E === yr || E === br;
2891
+ return /* @__PURE__ */ c.createElement(n, Le({}, b, {
2892
2892
  key: S.key,
2893
2893
  visible: C,
2894
2894
  eventProps: S,
@@ -2910,10 +2910,10 @@ function lu(e) {
2910
2910
  return {
2911
2911
  keyEntities: h.filter(function(v) {
2912
2912
  var p = d.find(function(y) {
2913
- var E = y.key;
2914
- return v.key === E;
2913
+ var b = y.key;
2914
+ return v.key === b;
2915
2915
  });
2916
- return !(p && p.status === ir && v.status === br);
2916
+ return !(p && p.status === ir && v.status === Er);
2917
2917
  })
2918
2918
  };
2919
2919
  }
@@ -2933,8 +2933,8 @@ function uu(e) {
2933
2933
  position: "absolute"
2934
2934
  };
2935
2935
  if (r.autoArrow !== !1) {
2936
- var p = r.points[0], y = r.points[1], E = p[0], m = p[1], b = y[0], S = y[1];
2937
- E === b || !["t", "b"].includes(E) ? v.top = f : E === "t" ? v.top = 0 : v.bottom = 0, m === S || !["l", "r"].includes(m) ? v.left = u : m === "l" ? v.left = 0 : v.right = 0;
2936
+ var p = r.points[0], y = r.points[1], b = p[0], m = p[1], E = y[0], S = y[1];
2937
+ b === E || !["t", "b"].includes(b) ? v.top = f : b === "t" ? v.top = 0 : v.bottom = 0, m === S || !["l", "r"].includes(m) ? v.left = u : m === "l" ? v.left = 0 : v.right = 0;
2938
2938
  }
2939
2939
  return /* @__PURE__ */ c.createElement("div", {
2940
2940
  ref: h,
@@ -2966,7 +2966,7 @@ var Mo = /* @__PURE__ */ c.memo(function(e) {
2966
2966
  });
2967
2967
  process.env.NODE_ENV !== "production" && (Mo.displayName = "PopupContent");
2968
2968
  var Do = /* @__PURE__ */ c.forwardRef(function(e, n) {
2969
- var r = e.popup, t = e.className, a = e.prefixCls, l = e.style, s = e.target, o = e.onVisibleChanged, i = e.open, u = e.keepDom, d = e.onClick, f = e.mask, h = e.arrow, v = e.arrowPos, p = e.align, y = e.motion, E = e.maskMotion, m = e.forceRender, b = e.getPopupContainer, S = e.autoDestroy, C = e.portal, g = e.zIndex, N = e.onMouseEnter, x = e.onMouseLeave, w = e.ready, R = e.offsetX, M = e.offsetY, I = e.onAlign, F = e.onPrepare, k = e.stretch, A = e.targetWidth, L = e.targetHeight, O = typeof r == "function" ? r() : r, W = i || u, z = (b == null ? void 0 : b.length) > 0, G = c.useState(!b || !z), he = V(G, 2), Y = he[0], ce = he[1];
2969
+ var r = e.popup, t = e.className, a = e.prefixCls, l = e.style, s = e.target, o = e.onVisibleChanged, i = e.open, u = e.keepDom, d = e.onClick, f = e.mask, h = e.arrow, v = e.arrowPos, p = e.align, y = e.motion, b = e.maskMotion, m = e.forceRender, E = e.getPopupContainer, S = e.autoDestroy, C = e.portal, g = e.zIndex, N = e.onMouseEnter, x = e.onMouseLeave, w = e.ready, R = e.offsetX, M = e.offsetY, I = e.onAlign, F = e.onPrepare, k = e.stretch, A = e.targetWidth, L = e.targetHeight, O = typeof r == "function" ? r() : r, W = i || u, z = (E == null ? void 0 : E.length) > 0, G = c.useState(!E || !z), he = V(G, 2), Y = he[0], ce = he[1];
2970
2970
  if (ut(function() {
2971
2971
  !Y && z && s && ce(!0);
2972
2972
  }, [Y, z, s]), !Y)
@@ -2980,8 +2980,8 @@ var Do = /* @__PURE__ */ c.forwardRef(function(e, n) {
2980
2980
  }, ne = {};
2981
2981
  return k && (k.includes("height") && L ? ne.height = L : k.includes("minHeight") && L && (ne.minHeight = L), k.includes("width") && A ? ne.width = A : k.includes("minWidth") && A && (ne.minWidth = A)), i || (ne.pointerEvents = "none"), /* @__PURE__ */ c.createElement(C, {
2982
2982
  open: m || W,
2983
- getContainer: b && function() {
2984
- return b(s);
2983
+ getContainer: E && function() {
2984
+ return E(s);
2985
2985
  },
2986
2986
  autoDestroy: S
2987
2987
  }, /* @__PURE__ */ c.createElement(su, {
@@ -2989,7 +2989,7 @@ var Do = /* @__PURE__ */ c.forwardRef(function(e, n) {
2989
2989
  open: i,
2990
2990
  zIndex: g,
2991
2991
  mask: f,
2992
- motion: E
2992
+ motion: b
2993
2993
  }), /* @__PURE__ */ c.createElement(en, {
2994
2994
  onResize: I,
2995
2995
  disabled: !i
@@ -3038,8 +3038,8 @@ var Do = /* @__PURE__ */ c.forwardRef(function(e, n) {
3038
3038
  process.env.NODE_ENV !== "production" && (Do.displayName = "Popup");
3039
3039
  var ko = /* @__PURE__ */ c.forwardRef(function(e, n) {
3040
3040
  var r = e.children, t = e.getTriggerDOMNode, a = Qn(r), l = c.useCallback(function(o) {
3041
- Pr(n, t ? t(o) : o);
3042
- }, [t]), s = Tr(l, r.ref);
3041
+ Tr(n, t ? t(o) : o);
3042
+ }, [t]), s = Pr(l, r.ref);
3043
3043
  return a ? /* @__PURE__ */ c.cloneElement(r, {
3044
3044
  ref: s
3045
3045
  }) : r;
@@ -3048,7 +3048,7 @@ process.env.NODE_ENV !== "production" && (ko.displayName = "TriggerWrapper");
3048
3048
  var cu = ["prefixCls", "children", "action", "showAction", "hideAction", "popupVisible", "defaultPopupVisible", "onPopupVisibleChange", "afterPopupVisibleChange", "mouseEnterDelay", "mouseLeaveDelay", "focusDelay", "blurDelay", "mask", "maskClosable", "getPopupContainer", "forceRender", "autoDestroy", "destroyPopupOnHide", "popup", "popupClassName", "popupStyle", "popupPlacement", "builtinPlacements", "popupAlign", "zIndex", "stretch", "getPopupClassNameFromAlign", "alignPoint", "onPopupClick", "onPopupAlign", "arrow", "popupMotion", "maskMotion", "popupTransitionName", "popupAnimation", "maskTransitionName", "maskAnimation", "className", "getTriggerDOMNode"];
3049
3049
  function du() {
3050
3050
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ir, n = /* @__PURE__ */ c.forwardRef(function(r, t) {
3051
- var a = r.prefixCls, l = a === void 0 ? "rc-trigger-popup" : a, s = r.children, o = r.action, i = o === void 0 ? "hover" : o, u = r.showAction, d = r.hideAction, f = r.popupVisible, h = r.defaultPopupVisible, v = r.onPopupVisibleChange, p = r.afterPopupVisibleChange, y = r.mouseEnterDelay, E = r.mouseLeaveDelay, m = E === void 0 ? 0.1 : E, b = r.focusDelay, S = r.blurDelay, C = r.mask, g = r.maskClosable, N = g === void 0 ? !0 : g, x = r.getPopupContainer, w = r.forceRender, R = r.autoDestroy, M = r.destroyPopupOnHide, I = r.popup, F = r.popupClassName, k = r.popupStyle, A = r.popupPlacement, L = r.builtinPlacements, O = L === void 0 ? {} : L, W = r.popupAlign, z = r.zIndex, G = r.stretch, he = r.getPopupClassNameFromAlign, Y = r.alignPoint, ce = r.onPopupClick, re = r.onPopupAlign, ne = r.arrow, Q = r.popupMotion, B = r.maskMotion, H = r.popupTransitionName, j = r.popupAnimation, de = r.maskTransitionName, ue = r.maskAnimation, Z = r.className, T = r.getTriggerDOMNode, ee = st(r, cu), Ee = R || M || !1, pe = c.useState(!1), Re = V(pe, 2), we = Re[0], Me = Re[1];
3051
+ var a = r.prefixCls, l = a === void 0 ? "rc-trigger-popup" : a, s = r.children, o = r.action, i = o === void 0 ? "hover" : o, u = r.showAction, d = r.hideAction, f = r.popupVisible, h = r.defaultPopupVisible, v = r.onPopupVisibleChange, p = r.afterPopupVisibleChange, y = r.mouseEnterDelay, b = r.mouseLeaveDelay, m = b === void 0 ? 0.1 : b, E = r.focusDelay, S = r.blurDelay, C = r.mask, g = r.maskClosable, N = g === void 0 ? !0 : g, x = r.getPopupContainer, w = r.forceRender, R = r.autoDestroy, M = r.destroyPopupOnHide, I = r.popup, F = r.popupClassName, k = r.popupStyle, A = r.popupPlacement, L = r.builtinPlacements, O = L === void 0 ? {} : L, W = r.popupAlign, z = r.zIndex, G = r.stretch, he = r.getPopupClassNameFromAlign, Y = r.alignPoint, ce = r.onPopupClick, re = r.onPopupAlign, ne = r.arrow, Q = r.popupMotion, B = r.maskMotion, H = r.popupTransitionName, j = r.popupAnimation, de = r.maskTransitionName, ue = r.maskAnimation, Z = r.className, P = r.getTriggerDOMNode, ee = st(r, cu), be = R || M || !1, pe = c.useState(!1), Re = V(pe, 2), we = Re[0], Me = Re[1];
3052
3052
  ut(function() {
3053
3053
  Me(ja());
3054
3054
  }, []);
@@ -3058,8 +3058,8 @@ function du() {
3058
3058
  fe.current[Ce] = qe, $ == null || $.registerSubPopup(Ce, qe);
3059
3059
  }
3060
3060
  };
3061
- }, [$]), ae = Il(), se = c.useState(null), q = V(se, 2), ie = q[0], be = q[1], me = $t(function(oe) {
3062
- Fn(oe) && ie !== oe && be(oe), $ == null || $.registerSubPopup(ae, oe);
3061
+ }, [$]), ae = Il(), se = c.useState(null), q = V(se, 2), ie = q[0], Ee = q[1], me = $t(function(oe) {
3062
+ Fn(oe) && ie !== oe && Ee(oe), $ == null || $.registerSubPopup(ae, oe);
3063
3063
  }), Se = c.useState(null), Ie = V(Se, 2), De = Ie[0], Je = Ie[1], Ge = $t(function(oe) {
3064
3064
  Fn(oe) && De !== oe && Je(oe);
3065
3065
  }), X = c.Children.only(s), le = (X == null ? void 0 : X.props) || {}, Ae = {}, it = $t(function(oe) {
@@ -3073,8 +3073,8 @@ function du() {
3073
3073
  ut(function() {
3074
3074
  Xe(f || !1);
3075
3075
  }, [f]);
3076
- var Et = c.useRef(Ue);
3077
- Et.current = Ue;
3076
+ var bt = c.useRef(Ue);
3077
+ bt.current = Ue;
3078
3078
  var pt = $t(function(oe) {
3079
3079
  Ue !== oe && (xt(oe), v == null || v(oe));
3080
3080
  }), _ = c.useRef(), U = function() {
@@ -3092,14 +3092,14 @@ function du() {
3092
3092
  ut(function() {
3093
3093
  (!rt.current || Ue) && nt(!0), rt.current = !0;
3094
3094
  }, [Ue]);
3095
- var kt = c.useState(null), Ye = V(kt, 2), bt = Ye[0], Rt = Ye[1], _e = c.useState([0, 0]), ke = V(_e, 2), Pe = ke[0], Oe = ke[1], at = function(Ce) {
3095
+ var kt = c.useState(null), Ye = V(kt, 2), Et = Ye[0], Rt = Ye[1], _e = c.useState([0, 0]), ke = V(_e, 2), Te = ke[0], Oe = ke[1], at = function(Ce) {
3096
3096
  Oe([Ce.clientX, Ce.clientY]);
3097
- }, ot = Hl(Ue, ie, Y ? Pe : De, A, O, W, re), Ke = V(ot, 9), Fe = Ke[0], lt = Ke[1], Mt = Ke[2], Ot = Ke[3], wt = Ke[4], Dt = Ke[5], Pt = Ke[6], St = Ke[7], mt = Ke[8], vt = $t(function() {
3097
+ }, ot = Hl(Ue, ie, Y ? Te : De, A, O, W, re), Ke = V(ot, 9), Fe = Ke[0], lt = Ke[1], Mt = Ke[2], Ot = Ke[3], wt = Ke[4], Dt = Ke[5], Tt = Ke[6], St = Ke[7], mt = Ke[8], vt = $t(function() {
3098
3098
  Ne || mt();
3099
3099
  });
3100
3100
  Ul(Ue, De, ie, vt), ut(function() {
3101
3101
  vt();
3102
- }, [Pe]), ut(function() {
3102
+ }, [Te]), ut(function() {
3103
3103
  Ue && !(O != null && O[A]) && vt();
3104
3104
  }, [JSON.stringify(W)]);
3105
3105
  var tn = c.useMemo(function() {
@@ -3121,9 +3121,9 @@ function du() {
3121
3121
  });
3122
3122
  };
3123
3123
  ut(function() {
3124
- bt && (mt(), bt(), Rt(null));
3125
- }, [bt]);
3126
- var rn = c.useState(0), Yt = V(rn, 2), yn = Yt[0], er = Yt[1], tr = c.useState(0), En = V(tr, 2), bn = En[0], xe = En[1], ye = function(Ce, qe) {
3124
+ Et && (mt(), Et(), Rt(null));
3125
+ }, [Et]);
3126
+ var rn = c.useState(0), Yt = V(rn, 2), yn = Yt[0], er = Yt[1], tr = c.useState(0), bn = V(tr, 2), En = bn[0], xe = bn[1], ye = function(Ce, qe) {
3127
3127
  if (vt(), G) {
3128
3128
  var Ze = qe.getBoundingClientRect();
3129
3129
  er(Ze.width), xe(Ze.height);
@@ -3136,33 +3136,33 @@ function du() {
3136
3136
  on[zt - 1] = arguments[zt];
3137
3137
  (an = le[Ce]) === null || an === void 0 || an.call.apply(an, [le, Cn].concat(on));
3138
3138
  };
3139
- }, Ut = et.has("click"), Tt = yt.has("click") || yt.has("contextMenu");
3140
- (Ut || Tt) && (Ae.onClick = function(oe) {
3139
+ }, Ut = et.has("click"), Pt = yt.has("click") || yt.has("contextMenu");
3140
+ (Ut || Pt) && (Ae.onClick = function(oe) {
3141
3141
  var Ce;
3142
- Et.current && Tt ? K(!1) : !Et.current && Ut && (at(oe), K(!0));
3142
+ bt.current && Pt ? K(!1) : !bt.current && Ut && (at(oe), K(!0));
3143
3143
  for (var qe = arguments.length, Ze = new Array(qe > 1 ? qe - 1 : 0), He = 1; He < qe; He++)
3144
3144
  Ze[He - 1] = arguments[He];
3145
3145
  (Ce = le.onClick) === null || Ce === void 0 || Ce.call.apply(Ce, [le, oe].concat(Ze));
3146
3146
  }), c.useEffect(function() {
3147
- if (Tt && ie && (!C || N)) {
3147
+ if (Pt && ie && (!C || N)) {
3148
3148
  var oe = !1, Ce = function(on) {
3149
3149
  var zt = on.target;
3150
3150
  oe = it(zt);
3151
3151
  }, qe = function(on) {
3152
3152
  var zt = on.target;
3153
- Et.current && !oe && !it(zt) && K(!1);
3153
+ bt.current && !oe && !it(zt) && K(!1);
3154
3154
  }, Ze = _n(ie), He = De == null ? void 0 : De.getRootNode();
3155
3155
  Ze.addEventListener("mousedown", Ce), Ze.addEventListener("click", qe);
3156
3156
  var Cn = He && He !== De.ownerDocument;
3157
3157
  if (Cn && (He.addEventListener("mousedown", Ce), He.addEventListener("click", qe)), process.env.NODE_ENV !== "production") {
3158
3158
  var an = ie.getRootNode();
3159
- Te(He === an, "trigger element and popup element should in same shadow root.");
3159
+ Pe(He === an, "trigger element and popup element should in same shadow root.");
3160
3160
  }
3161
3161
  return function() {
3162
3162
  Ze.removeEventListener("mousedown", Ce), Ze.removeEventListener("click", qe), Cn && (He.removeEventListener("mousedown", Ce), He.removeEventListener("click", qe));
3163
3163
  };
3164
3164
  }
3165
- }, [Tt, De, ie, C, N]);
3165
+ }, [Pt, De, ie, C, N]);
3166
3166
  var Wt = et.has("hover"), At = yt.has("hover"), Sn, zr;
3167
3167
  Wt && (Nt("onMouseEnter", !0, y, function(oe) {
3168
3168
  at(oe);
@@ -3173,7 +3173,7 @@ function du() {
3173
3173
  (Ce = le.onMouseMove) === null || Ce === void 0 || Ce.call(le, oe);
3174
3174
  })), At && (Nt("onMouseLeave", !1, m), zr = function() {
3175
3175
  K(!1, m);
3176
- }), et.has("focus") && Nt("onFocus", !0, b), yt.has("focus") && Nt("onBlur", !1, S), et.has("contextMenu") && (Ae.onContextMenu = function(oe) {
3176
+ }), et.has("focus") && Nt("onFocus", !0, E), yt.has("focus") && Nt("onBlur", !1, S), et.has("contextMenu") && (Ae.onContextMenu = function(oe) {
3177
3177
  var Ce;
3178
3178
  at(oe), K(!0), oe.preventDefault();
3179
3179
  for (var qe = arguments.length, Ze = new Array(qe > 1 ? qe - 1 : 0), He = 1; He < qe; He++)
@@ -3197,7 +3197,7 @@ function du() {
3197
3197
  ref: Ge,
3198
3198
  onResize: ye
3199
3199
  }, /* @__PURE__ */ c.createElement(ko, {
3200
- getTriggerDOMNode: T
3200
+ getTriggerDOMNode: P
3201
3201
  }, ai)), /* @__PURE__ */ c.createElement(da.Provider, {
3202
3202
  value: ve
3203
3203
  }, /* @__PURE__ */ c.createElement(Do, {
@@ -3220,7 +3220,7 @@ function du() {
3220
3220
  onVisibleChanged: gn,
3221
3221
  onPrepare: nn,
3222
3222
  forceRender: w,
3223
- autoDestroy: Ee,
3223
+ autoDestroy: be,
3224
3224
  getPopupContainer: x,
3225
3225
  align: St,
3226
3226
  arrow: ii,
@@ -3231,7 +3231,7 @@ function du() {
3231
3231
  onAlign: vt,
3232
3232
  stretch: G,
3233
3233
  targetWidth: yn / Dt,
3234
- targetHeight: bn / Pt
3234
+ targetHeight: En / Tt
3235
3235
  })));
3236
3236
  });
3237
3237
  return process.env.NODE_ENV !== "production" && (n.displayName = "Trigger"), n;
@@ -3280,11 +3280,11 @@ var vu = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
3280
3280
  }, pu = function(n, r) {
3281
3281
  var t = n.prefixCls;
3282
3282
  n.disabled;
3283
- var a = n.visible, l = n.children, s = n.popupElement, o = n.containerWidth, i = n.animation, u = n.transitionName, d = n.dropdownStyle, f = n.dropdownClassName, h = n.direction, v = h === void 0 ? "ltr" : h, p = n.placement, y = n.builtinPlacements, E = n.dropdownMatchSelectWidth, m = n.dropdownRender, b = n.dropdownAlign, S = n.getPopupContainer, C = n.empty, g = n.getTriggerDOMNode, N = n.onPopupVisibleChange, x = n.onPopupMouseEnter, w = st(n, vu), R = "".concat(t, "-dropdown"), M = s;
3283
+ var a = n.visible, l = n.children, s = n.popupElement, o = n.containerWidth, i = n.animation, u = n.transitionName, d = n.dropdownStyle, f = n.dropdownClassName, h = n.direction, v = h === void 0 ? "ltr" : h, p = n.placement, y = n.builtinPlacements, b = n.dropdownMatchSelectWidth, m = n.dropdownRender, E = n.dropdownAlign, S = n.getPopupContainer, C = n.empty, g = n.getTriggerDOMNode, N = n.onPopupVisibleChange, x = n.onPopupMouseEnter, w = st(n, vu), R = "".concat(t, "-dropdown"), M = s;
3284
3284
  m && (M = m(s));
3285
3285
  var I = c.useMemo(function() {
3286
- return y || hu(E);
3287
- }, [y, E]), F = i ? "".concat(R, "-").concat(i) : u, k = c.useRef(null);
3286
+ return y || hu(b);
3287
+ }, [y, b]), F = i ? "".concat(R, "-").concat(i) : u, k = c.useRef(null);
3288
3288
  c.useImperativeHandle(r, function() {
3289
3289
  return {
3290
3290
  getPopupElement: function() {
@@ -3295,7 +3295,7 @@ var vu = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
3295
3295
  var A = D({
3296
3296
  minWidth: o
3297
3297
  }, d);
3298
- return typeof E == "number" ? A.width = E : E && (A.width = o), /* @__PURE__ */ c.createElement(fu, Le({}, w, {
3298
+ return typeof b == "number" ? A.width = b : b && (A.width = o), /* @__PURE__ */ c.createElement(fu, Le({}, w, {
3299
3299
  showAction: N ? ["click"] : [],
3300
3300
  hideAction: N ? ["click"] : [],
3301
3301
  popupPlacement: p || (v === "rtl" ? "bottomRight" : "bottomLeft"),
@@ -3306,7 +3306,7 @@ var vu = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
3306
3306
  ref: k,
3307
3307
  onMouseEnter: x
3308
3308
  }, M),
3309
- popupAlign: b,
3309
+ popupAlign: E,
3310
3310
  popupVisible: a,
3311
3311
  getPopupContainer: S,
3312
3312
  popupClassName: Ve(f, J({}, "".concat(R, "-empty"), C)),
@@ -3314,8 +3314,8 @@ var vu = ["prefixCls", "disabled", "visible", "children", "popupElement", "conta
3314
3314
  getTriggerDOMNode: g,
3315
3315
  onPopupVisibleChange: N
3316
3316
  }), l);
3317
- }, Po = /* @__PURE__ */ c.forwardRef(pu);
3318
- Po.displayName = "SelectTrigger";
3317
+ }, To = /* @__PURE__ */ c.forwardRef(pu);
3318
+ To.displayName = "SelectTrigger";
3319
3319
  function mu(e) {
3320
3320
  return Ua(e) || Fa(e) || Mr(e) || Wa();
3321
3321
  }
@@ -3323,7 +3323,7 @@ function Ca(e, n) {
3323
3323
  var r = e.key, t;
3324
3324
  return "value" in e && (t = e.value), r ?? (t !== void 0 ? t : "rc-index-key-".concat(n));
3325
3325
  }
3326
- function To(e, n) {
3326
+ function Po(e, n) {
3327
3327
  var r = e || {}, t = r.label, a = r.value, l = r.options;
3328
3328
  return {
3329
3329
  label: t || (n ? "children" : "label"),
@@ -3332,7 +3332,7 @@ function To(e, n) {
3332
3332
  };
3333
3333
  }
3334
3334
  function gu(e) {
3335
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.fieldNames, t = n.childrenAsData, a = [], l = To(r, !1), s = l.label, o = l.value, i = l.options;
3335
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = n.fieldNames, t = n.childrenAsData, a = [], l = Po(r, !1), s = l.label, o = l.value, i = l.options;
3336
3336
  function u(d, f) {
3337
3337
  d.forEach(function(h) {
3338
3338
  var v = h[s];
@@ -3362,7 +3362,7 @@ function Cr(e) {
3362
3362
  var n = D({}, e);
3363
3363
  return "props" in n || Object.defineProperty(n, "props", {
3364
3364
  get: function() {
3365
- return Te(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), n;
3365
+ return Pe(!1, "Return type is option instead of Option instance. Please read value directly instead of reading from `props`."), n;
3366
3366
  }
3367
3367
  }), n;
3368
3368
  }
@@ -3384,20 +3384,20 @@ function yu(e, n) {
3384
3384
  var a = t(e, n);
3385
3385
  return r ? a : null;
3386
3386
  }
3387
- var Eu = ["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", "showArrow", "inputIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], bu = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"];
3387
+ var bu = ["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", "showArrow", "inputIcon", "clearIcon", "OptionList", "animation", "transitionName", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "placement", "builtinPlacements", "getPopupContainer", "showAction", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown"], Eu = ["value", "onChange", "removeIcon", "placeholder", "autoFocus", "maxTagCount", "maxTagTextLength", "maxTagPlaceholder", "choiceTransitionName", "onInputKeyDown", "onPopupScroll", "tabIndex"];
3388
3388
  function Gn(e) {
3389
3389
  return e === "tags" || e === "multiple";
3390
3390
  }
3391
3391
  var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3392
- var r, t, a = e.id, l = e.prefixCls, s = e.className, o = e.showSearch, i = e.tagRender, u = e.direction, d = e.omitDomProps, f = e.displayValues, h = e.onDisplayValuesChange, v = e.emptyOptions, p = e.notFoundContent, y = p === void 0 ? "Not Found" : p, E = e.onClear, m = e.mode, b = e.disabled, S = e.loading, C = e.getInputElement, g = e.getRawInputElement, N = e.open, x = e.defaultOpen, w = e.onDropdownVisibleChange, R = e.activeValue, M = e.onActiveValueChange, I = e.activeDescendantId, F = e.searchValue, k = e.autoClearSearchValue, A = e.onSearch, L = e.onSearchSplit, O = e.tokenSeparators, W = e.allowClear, z = e.showArrow, G = e.inputIcon, he = e.clearIcon, Y = e.OptionList, ce = e.animation, re = e.transitionName, ne = e.dropdownStyle, Q = e.dropdownClassName, B = e.dropdownMatchSelectWidth, H = e.dropdownRender, j = e.dropdownAlign, de = e.placement, ue = e.builtinPlacements, Z = e.getPopupContainer, T = e.showAction, ee = T === void 0 ? [] : T, Ee = e.onFocus, pe = e.onBlur, Re = e.onKeyUp, we = e.onKeyDown, Me = e.onMouseDown, fe = st(e, Eu), $ = Gn(m), ve = (o !== void 0 ? o : $) || m === "combobox", ae = D({}, fe);
3393
- bu.forEach(function(xe) {
3392
+ var r, t, a = e.id, l = e.prefixCls, s = e.className, o = e.showSearch, i = e.tagRender, u = e.direction, d = e.omitDomProps, f = e.displayValues, h = e.onDisplayValuesChange, v = e.emptyOptions, p = e.notFoundContent, y = p === void 0 ? "Not Found" : p, b = e.onClear, m = e.mode, E = e.disabled, S = e.loading, C = e.getInputElement, g = e.getRawInputElement, N = e.open, x = e.defaultOpen, w = e.onDropdownVisibleChange, R = e.activeValue, M = e.onActiveValueChange, I = e.activeDescendantId, F = e.searchValue, k = e.autoClearSearchValue, A = e.onSearch, L = e.onSearchSplit, O = e.tokenSeparators, W = e.allowClear, z = e.showArrow, G = e.inputIcon, he = e.clearIcon, Y = e.OptionList, ce = e.animation, re = e.transitionName, ne = e.dropdownStyle, Q = e.dropdownClassName, B = e.dropdownMatchSelectWidth, H = e.dropdownRender, j = e.dropdownAlign, de = e.placement, ue = e.builtinPlacements, Z = e.getPopupContainer, P = e.showAction, ee = P === void 0 ? [] : P, be = e.onFocus, pe = e.onBlur, Re = e.onKeyUp, we = e.onKeyDown, Me = e.onMouseDown, fe = st(e, bu), $ = Gn(m), ve = (o !== void 0 ? o : $) || m === "combobox", ae = D({}, fe);
3393
+ Eu.forEach(function(xe) {
3394
3394
  delete ae[xe];
3395
3395
  }), d == null || d.forEach(function(xe) {
3396
3396
  delete ae[xe];
3397
3397
  });
3398
- var se = c.useState(!1), q = V(se, 2), ie = q[0], be = q[1];
3398
+ var se = c.useState(!1), q = V(se, 2), ie = q[0], Ee = q[1];
3399
3399
  c.useEffect(function() {
3400
- be(ja());
3400
+ Ee(ja());
3401
3401
  }, []);
3402
3402
  var me = c.useRef(null), Se = c.useRef(null), Ie = c.useRef(null), De = c.useRef(null), Je = c.useRef(null), Ge = Ci(), X = V(Ge, 3), le = X[0], Ae = X[1], it = X[2];
3403
3403
  c.useImperativeHandle(n, function() {
@@ -3417,19 +3417,19 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3417
3417
  return F;
3418
3418
  var ye = (xe = f[0]) === null || xe === void 0 ? void 0 : xe.value;
3419
3419
  return typeof ye == "string" || typeof ye == "number" ? String(ye) : "";
3420
- }, [F, m, f]), dt = m === "combobox" && typeof C == "function" && C() || null, Qe = typeof g == "function" && g(), ft = Tr(Se, Qe == null || (r = Qe.props) === null || r === void 0 ? void 0 : r.ref), tt = c.useState(!1), Xe = V(tt, 2), Ue = Xe[0], xt = Xe[1];
3420
+ }, [F, m, f]), dt = m === "combobox" && typeof C == "function" && C() || null, Qe = typeof g == "function" && g(), ft = Pr(Se, Qe == null || (r = Qe.props) === null || r === void 0 ? void 0 : r.ref), tt = c.useState(!1), Xe = V(tt, 2), Ue = Xe[0], xt = Xe[1];
3421
3421
  ut(function() {
3422
3422
  xt(!0);
3423
3423
  }, []);
3424
- var Et = Dn(!1, {
3424
+ var bt = Dn(!1, {
3425
3425
  defaultValue: x,
3426
3426
  value: N
3427
- }), pt = V(Et, 2), _ = pt[0], U = pt[1], K = Ue ? _ : !1, te = !y && v;
3428
- (b || te && K && m === "combobox") && (K = !1);
3427
+ }), pt = V(bt, 2), _ = pt[0], U = pt[1], K = Ue ? _ : !1, te = !y && v;
3428
+ (E || te && K && m === "combobox") && (K = !1);
3429
3429
  var ge = te ? !1 : K, Ne = c.useCallback(function(xe) {
3430
3430
  var ye = xe !== void 0 ? xe : !K;
3431
- b || (U(ye), K !== ye && (w == null || w(ye)));
3432
- }, [b, K, U, w]), nt = c.useMemo(function() {
3431
+ E || (U(ye), K !== ye && (w == null || w(ye)));
3432
+ }, [E, K, U, w]), nt = c.useMemo(function() {
3433
3433
  return (O || []).some(function(xe) {
3434
3434
  return [`
3435
3435
  `, `\r
@@ -3450,11 +3450,11 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3450
3450
  c.useEffect(function() {
3451
3451
  !K && !$ && m !== "combobox" && rt("", !1, !1);
3452
3452
  }, [K]), c.useEffect(function() {
3453
- _ && b && U(!1), b && Ae(!1);
3454
- }, [b]);
3455
- var Ye = qa(), bt = V(Ye, 2), Rt = bt[0], _e = bt[1], ke = function(ye) {
3453
+ _ && E && U(!1), E && Ae(!1);
3454
+ }, [E]);
3455
+ var Ye = qa(), Et = V(Ye, 2), Rt = Et[0], _e = Et[1], ke = function(ye) {
3456
3456
  var gt = Rt(), Ct = ye.which;
3457
- if (Ct === P.ENTER && (m !== "combobox" && ye.preventDefault(), K || Ne(!0)), _e(!!$e), Ct === P.BACKSPACE && !gt && $ && !$e && f.length) {
3457
+ if (Ct === T.ENTER && (m !== "combobox" && ye.preventDefault(), K || Ne(!0)), _e(!!$e), Ct === T.BACKSPACE && !gt && $ && !$e && f.length) {
3458
3458
  for (var et = je(f), yt = null, Nt = et.length - 1; Nt >= 0; Nt -= 1) {
3459
3459
  var Ut = et[Nt];
3460
3460
  if (!Ut.disabled) {
@@ -3467,14 +3467,14 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3467
3467
  values: [yt]
3468
3468
  });
3469
3469
  }
3470
- for (var Tt = arguments.length, Wt = new Array(Tt > 1 ? Tt - 1 : 0), At = 1; At < Tt; At++)
3470
+ for (var Pt = arguments.length, Wt = new Array(Pt > 1 ? Pt - 1 : 0), At = 1; At < Pt; At++)
3471
3471
  Wt[At - 1] = arguments[At];
3472
3472
  if (K && Je.current) {
3473
3473
  var Sn;
3474
3474
  (Sn = Je.current).onKeyDown.apply(Sn, [ye].concat(Wt));
3475
3475
  }
3476
3476
  we == null || we.apply(void 0, [ye].concat(Wt));
3477
- }, Pe = function(ye) {
3477
+ }, Te = function(ye) {
3478
3478
  for (var gt = arguments.length, Ct = new Array(gt > 1 ? gt - 1 : 0), et = 1; et < gt; et++)
3479
3479
  Ct[et - 1] = arguments[et];
3480
3480
  if (K && Je.current) {
@@ -3491,11 +3491,11 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3491
3491
  values: [ye]
3492
3492
  });
3493
3493
  }, at = c.useRef(!1), ot = function() {
3494
- Ae(!0), b || (Ee && !at.current && Ee.apply(void 0, arguments), ee.includes("focus") && Ne(!0)), at.current = !0;
3494
+ Ae(!0), E || (be && !at.current && be.apply(void 0, arguments), ee.includes("focus") && Ne(!0)), at.current = !0;
3495
3495
  }, Ke = function() {
3496
3496
  Ae(!1, function() {
3497
3497
  at.current = !1, Ne(!1);
3498
- }), !b && ($e && (m === "tags" ? A($e, {
3498
+ }), !E && ($e && (m === "tags" ? A($e, {
3499
3499
  source: "submit"
3500
3500
  }) : m === "multiple" && A("", {
3501
3501
  source: "blur"
@@ -3520,10 +3520,10 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3520
3520
  });
3521
3521
  Fe.push(yt);
3522
3522
  }
3523
- for (var Nt = arguments.length, Ut = new Array(Nt > 1 ? Nt - 1 : 0), Tt = 1; Tt < Nt; Tt++)
3524
- Ut[Tt - 1] = arguments[Tt];
3523
+ for (var Nt = arguments.length, Ut = new Array(Nt > 1 ? Nt - 1 : 0), Pt = 1; Pt < Nt; Pt++)
3524
+ Ut[Pt - 1] = arguments[Pt];
3525
3525
  Me == null || Me.apply(void 0, [ye].concat(Ut));
3526
- }, Mt = c.useState(null), Ot = V(Mt, 2), wt = Ot[0], Dt = Ot[1], Pt = c.useState({}), St = V(Pt, 2), mt = St[1];
3526
+ }, Mt = c.useState(null), Ot = V(Mt, 2), wt = Ot[0], Dt = Ot[1], Tt = c.useState({}), St = V(Tt, 2), mt = St[1];
3527
3527
  function vt() {
3528
3528
  mt({});
3529
3529
  }
@@ -3564,21 +3564,21 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3564
3564
  }));
3565
3565
  var Yt, yn = function() {
3566
3566
  var ye;
3567
- E == null || E(), (ye = De.current) === null || ye === void 0 || ye.focus(), h([], {
3567
+ b == null || b(), (ye = De.current) === null || ye === void 0 || ye.focus(), h([], {
3568
3568
  type: "clear",
3569
3569
  values: f
3570
3570
  }), rt("", !1, !1);
3571
3571
  };
3572
- !b && W && (f.length || $e) && !(m === "combobox" && $e === "") && (Yt = /* @__PURE__ */ c.createElement(Bn, {
3572
+ !E && W && (f.length || $e) && !(m === "combobox" && $e === "") && (Yt = /* @__PURE__ */ c.createElement(Bn, {
3573
3573
  className: "".concat(l, "-clear"),
3574
3574
  onMouseDown: yn,
3575
3575
  customizeIcon: he
3576
3576
  }, "×"));
3577
3577
  var er = /* @__PURE__ */ c.createElement(Y, {
3578
3578
  ref: Je
3579
- }), tr = Ve(l, s, (t = {}, J(t, "".concat(l, "-focused"), le), J(t, "".concat(l, "-multiple"), $), J(t, "".concat(l, "-single"), !$), J(t, "".concat(l, "-allow-clear"), W), J(t, "".concat(l, "-show-arrow"), nn), J(t, "".concat(l, "-disabled"), b), J(t, "".concat(l, "-loading"), S), J(t, "".concat(l, "-open"), K), J(t, "".concat(l, "-customize-input"), dt), J(t, "".concat(l, "-show-search"), ve), t)), En = /* @__PURE__ */ c.createElement(Po, {
3579
+ }), tr = Ve(l, s, (t = {}, J(t, "".concat(l, "-focused"), le), J(t, "".concat(l, "-multiple"), $), J(t, "".concat(l, "-single"), !$), J(t, "".concat(l, "-allow-clear"), W), J(t, "".concat(l, "-show-arrow"), nn), J(t, "".concat(l, "-disabled"), E), J(t, "".concat(l, "-loading"), S), J(t, "".concat(l, "-open"), K), J(t, "".concat(l, "-customize-input"), dt), J(t, "".concat(l, "-show-search"), ve), t)), bn = /* @__PURE__ */ c.createElement(To, {
3580
3580
  ref: Ie,
3581
- disabled: b,
3581
+ disabled: E,
3582
3582
  prefixCls: l,
3583
3583
  visible: ge,
3584
3584
  popupElement: er,
@@ -3622,14 +3622,14 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3622
3622
  onSearchSubmit: kt,
3623
3623
  onRemove: Oe,
3624
3624
  tokenWithEnter: nt
3625
- }))), bn;
3626
- return Qe ? bn = En : bn = /* @__PURE__ */ c.createElement("div", Le({
3625
+ }))), En;
3626
+ return Qe ? En = bn : En = /* @__PURE__ */ c.createElement("div", Le({
3627
3627
  className: tr
3628
3628
  }, ae, {
3629
3629
  ref: me,
3630
3630
  onMouseDown: lt,
3631
3631
  onKeyDown: ke,
3632
- onKeyUp: Pe,
3632
+ onKeyUp: Te,
3633
3633
  onFocus: ot,
3634
3634
  onBlur: Ke
3635
3635
  }), le && !K && /* @__PURE__ */ c.createElement("span", {
@@ -3644,9 +3644,9 @@ var Ar = /* @__PURE__ */ c.forwardRef(function(e, n) {
3644
3644
  }, "".concat(f.map(function(xe) {
3645
3645
  var ye = xe.label, gt = xe.value;
3646
3646
  return ["number", "string"].includes(ct(ye)) ? ye : gt;
3647
- }).join(", "))), En, rn, Yt), /* @__PURE__ */ c.createElement(Ga.Provider, {
3647
+ }).join(", "))), bn, rn, Yt), /* @__PURE__ */ c.createElement(Ga.Provider, {
3648
3648
  value: gn
3649
- }, bn);
3649
+ }, En);
3650
3650
  });
3651
3651
  process.env.NODE_ENV !== "production" && (Ar.displayName = "BaseSelect");
3652
3652
  const Su = function(e, n) {
@@ -3691,8 +3691,8 @@ const Cu = function(e, n, r, t, a) {
3691
3691
  if (p)
3692
3692
  i.push(v);
3693
3693
  else {
3694
- var y = v[l].filter(function(E) {
3695
- return f(r, h(E));
3694
+ var y = v[l].filter(function(b) {
3695
+ return f(r, h(b));
3696
3696
  });
3697
3697
  y.length && i.push(D(D({}, v), {}, J({}, l, y)));
3698
3698
  }
@@ -3813,7 +3813,7 @@ var ku = 20;
3813
3813
  function xa(e) {
3814
3814
  return "touches" in e ? e.touches[0].pageY : e.pageY;
3815
3815
  }
3816
- var Pu = /* @__PURE__ */ function(e) {
3816
+ var Tu = /* @__PURE__ */ function(e) {
3817
3817
  pn(r, e);
3818
3818
  var n = mn(r);
3819
3819
  function r() {
@@ -3853,9 +3853,9 @@ var Pu = /* @__PURE__ */ function(e) {
3853
3853
  }, t.onMouseMove = function(o) {
3854
3854
  var i = t.state, u = i.dragging, d = i.pageY, f = i.startTop, h = t.props.onScroll;
3855
3855
  if (_t.cancel(t.moveRaf), u) {
3856
- var v = xa(o) - d, p = f + v, y = t.getEnableScrollRange(), E = t.getEnableHeightRange(), m = E ? p / E : 0, b = Math.ceil(m * y);
3856
+ var v = xa(o) - d, p = f + v, y = t.getEnableScrollRange(), b = t.getEnableHeightRange(), m = b ? p / b : 0, E = Math.ceil(m * y);
3857
3857
  t.moveRaf = _t(function() {
3858
- h(b);
3858
+ h(E);
3859
3859
  });
3860
3860
  }
3861
3861
  }, t.onMouseUp = function() {
@@ -3937,7 +3937,7 @@ var Pu = /* @__PURE__ */ function(e) {
3937
3937
  )
3938
3938
  }]), r;
3939
3939
  }(c.Component);
3940
- function Tu(e) {
3940
+ function Pu(e) {
3941
3941
  var n = e.children, r = e.setRef, t = c.useCallback(function(a) {
3942
3942
  r(a);
3943
3943
  }, []);
@@ -3951,7 +3951,7 @@ function _u(e, n, r, t, a, l) {
3951
3951
  var u = n + i, d = a(o, u, {
3952
3952
  // style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
3953
3953
  }), f = s(o);
3954
- return /* @__PURE__ */ c.createElement(Tu, {
3954
+ return /* @__PURE__ */ c.createElement(Pu, {
3955
3955
  key: f,
3956
3956
  setRef: function(v) {
3957
3957
  return t(o, v);
@@ -3984,8 +3984,8 @@ function Ku(e, n, r) {
3984
3984
  d(), u.current = _t(function() {
3985
3985
  o.current.forEach(function(v, p) {
3986
3986
  if (v && v.offsetParent) {
3987
- var y = Hn(v), E = y.offsetHeight;
3988
- i.current.get(p) !== E && i.current.set(p, y.offsetHeight);
3987
+ var y = Hn(v), b = y.offsetHeight;
3988
+ i.current.get(p) !== b && i.current.set(p, y.offsetHeight);
3989
3989
  }
3990
3990
  }), s(function(v) {
3991
3991
  return v + 1;
@@ -3993,8 +3993,8 @@ function Ku(e, n, r) {
3993
3993
  });
3994
3994
  }
3995
3995
  function h(v, p) {
3996
- var y = e(v), E = o.current.get(y);
3997
- p ? (o.current.set(y, p), f()) : o.current.delete(y), !E != !p && (p ? n == null || n(v) : r == null || r(v));
3996
+ var y = e(v), b = o.current.get(y);
3997
+ p ? (o.current.set(y, p), f()) : o.current.delete(y), !b != !p && (p ? n == null || n(v) : r == null || r(v));
3998
3998
  }
3999
3999
  return Ht(function() {
4000
4000
  return d;
@@ -4014,10 +4014,10 @@ function Iu(e, n, r, t, a, l, s, o) {
4014
4014
  "index" in u ? d = u.index : d = n.findIndex(function(y) {
4015
4015
  return a(y) === u.key;
4016
4016
  });
4017
- var h = u.offset, v = h === void 0 ? 0 : h, p = function y(E, m) {
4018
- if (!(E < 0 || !e.current)) {
4019
- var b = e.current.clientHeight, S = !1, C = m;
4020
- if (b) {
4017
+ var h = u.offset, v = h === void 0 ? 0 : h, p = function y(b, m) {
4018
+ if (!(b < 0 || !e.current)) {
4019
+ var E = e.current.clientHeight, S = !1, C = m;
4020
+ if (E) {
4021
4021
  for (var g = m || f, N = 0, x = 0, w = 0, R = Math.min(n.length, d), M = 0; M <= R; M += 1) {
4022
4022
  var I = a(n[M]);
4023
4023
  x = N;
@@ -4030,17 +4030,17 @@ function Iu(e, n, r, t, a, l, s, o) {
4030
4030
  k = x - v;
4031
4031
  break;
4032
4032
  case "bottom":
4033
- k = w - b + v;
4033
+ k = w - E + v;
4034
4034
  break;
4035
4035
  default: {
4036
- var A = e.current.scrollTop, L = A + b;
4036
+ var A = e.current.scrollTop, L = A + E;
4037
4037
  x < A ? C = "top" : w > L && (C = "bottom");
4038
4038
  }
4039
4039
  }
4040
4040
  k !== null && k !== e.current.scrollTop && s(k);
4041
4041
  }
4042
4042
  i.current = _t(function() {
4043
- S && l(), y(E - 1, C);
4043
+ S && l(), y(b - 1, C);
4044
4044
  }, 2);
4045
4045
  }
4046
4046
  };
@@ -4144,7 +4144,7 @@ var Uu = ["prefixCls", "className", "height", "itemHeight", "fullHeight", "style
4144
4144
  overflowAnchor: "none"
4145
4145
  };
4146
4146
  function ju(e, n) {
4147
- var r = e.prefixCls, t = r === void 0 ? "rc-virtual-list" : r, a = e.className, l = e.height, s = e.itemHeight, o = e.fullHeight, i = o === void 0 ? !0 : o, u = e.style, d = e.data, f = e.children, h = e.itemKey, v = e.virtual, p = e.component, y = p === void 0 ? "div" : p, E = e.onScroll, m = e.onVisibleChange, b = e.innerProps, S = st(e, Uu), C = !!(v !== !1 && l && s), g = C && d && s * d.length > l, N = Qt(0), x = V(N, 2), w = x[0], R = x[1], M = Qt(!1), I = V(M, 2), F = I[0], k = I[1], A = Ve(t, a), L = d || Wu, O = Be(), W = Be(), z = Be(), G = c.useCallback(function(X) {
4147
+ var r = e.prefixCls, t = r === void 0 ? "rc-virtual-list" : r, a = e.className, l = e.height, s = e.itemHeight, o = e.fullHeight, i = o === void 0 ? !0 : o, u = e.style, d = e.data, f = e.children, h = e.itemKey, v = e.virtual, p = e.component, y = p === void 0 ? "div" : p, b = e.onScroll, m = e.onVisibleChange, E = e.innerProps, S = st(e, Uu), C = !!(v !== !1 && l && s), g = C && d && s * d.length > l, N = Qt(0), x = V(N, 2), w = x[0], R = x[1], M = Qt(!1), I = V(M, 2), F = I[0], k = I[1], A = Ve(t, a), L = d || Wu, O = Be(), W = Be(), z = Be(), G = c.useCallback(function(X) {
4148
4148
  return typeof h == "function" ? h(X) : X == null ? void 0 : X[h];
4149
4149
  }, [h]), he = {
4150
4150
  getKey: G
@@ -4162,7 +4162,7 @@ function ju(e, n) {
4162
4162
  end: L.length
4163
4163
  }), re = Be(), ne = Au(L, G), Q = V(ne, 1), B = Q[0];
4164
4164
  re.current = B;
4165
- var H = Ku(G, null, null), j = V(H, 4), de = j[0], ue = j[1], Z = j[2], T = j[3], ee = c.useMemo(function() {
4165
+ var H = Ku(G, null, null), j = V(H, 4), de = j[0], ue = j[1], Z = j[2], P = j[3], ee = c.useMemo(function() {
4166
4166
  if (!C)
4167
4167
  return {
4168
4168
  scrollHeight: void 0,
@@ -4189,9 +4189,9 @@ function ju(e, n) {
4189
4189
  end: $e,
4190
4190
  offset: it
4191
4191
  };
4192
- }, [g, C, w, L, T, l]), Ee = ee.scrollHeight, pe = ee.start, Re = ee.end, we = ee.offset;
4192
+ }, [g, C, w, L, P, l]), be = ee.scrollHeight, pe = ee.start, Re = ee.end, we = ee.offset;
4193
4193
  ce.current.start = pe, ce.current.end = Re;
4194
- var Me = Ee - l, fe = Be(Me);
4194
+ var Me = be - l, fe = Be(Me);
4195
4195
  fe.current = Me;
4196
4196
  function $(X) {
4197
4197
  var le = X;
@@ -4204,14 +4204,14 @@ function ju(e, n) {
4204
4204
  }
4205
4205
  function ie(X) {
4206
4206
  var le = X.currentTarget.scrollTop;
4207
- le !== w && Y(le), E == null || E(X);
4207
+ le !== w && Y(le), b == null || b(X);
4208
4208
  }
4209
- var be = Vu(C, ve, ae, function(X) {
4209
+ var Ee = Vu(C, ve, ae, function(X) {
4210
4210
  Y(function(le) {
4211
4211
  var Ae = le + X;
4212
4212
  return Ae;
4213
4213
  });
4214
- }), me = V(be, 2), Se = me[0], Ie = me[1];
4214
+ }), me = V(Ee, 2), Se = me[0], Ie = me[1];
4215
4215
  Hu(C, O, function(X, le) {
4216
4216
  return se(X, le) ? !1 : (Se({
4217
4217
  preventDefault: function() {
@@ -4253,17 +4253,17 @@ function ju(e, n) {
4253
4253
  onScroll: ie
4254
4254
  }, /* @__PURE__ */ c.createElement(Lo, {
4255
4255
  prefixCls: t,
4256
- height: Ee,
4256
+ height: be,
4257
4257
  offset: we,
4258
4258
  onInnerResize: ue,
4259
4259
  ref: W,
4260
- innerProps: b
4261
- }, Je)), C && /* @__PURE__ */ c.createElement(Pu, {
4260
+ innerProps: E
4261
+ }, Je)), C && /* @__PURE__ */ c.createElement(Tu, {
4262
4262
  ref: z,
4263
4263
  prefixCls: t,
4264
4264
  scrollTop: w,
4265
4265
  height: l,
4266
- scrollHeight: Ee,
4266
+ scrollHeight: be,
4267
4267
  count: L.length,
4268
4268
  onScroll: q,
4269
4269
  onStartMove: function() {
@@ -4285,7 +4285,7 @@ function Ra(e) {
4285
4285
  return typeof e == "string" || typeof e == "number";
4286
4286
  }
4287
4287
  var Yu = function(n, r) {
4288
- var t = Ya(), a = t.prefixCls, l = t.id, s = t.open, o = t.multiple, i = t.mode, u = t.searchValue, d = t.toggleOpen, f = t.notFoundContent, h = t.onPopupScroll, v = c.useContext($o), p = v.flattenOptions, y = v.onActiveValue, E = v.defaultActiveFirstOption, m = v.onSelect, b = v.menuItemSelectedIcon, S = v.rawValues, C = v.fieldNames, g = v.virtual, N = v.listHeight, x = v.listItemHeight, w = "".concat(a, "-item"), R = kr(function() {
4288
+ var t = Ya(), a = t.prefixCls, l = t.id, s = t.open, o = t.multiple, i = t.mode, u = t.searchValue, d = t.toggleOpen, f = t.notFoundContent, h = t.onPopupScroll, v = c.useContext($o), p = v.flattenOptions, y = v.onActiveValue, b = v.defaultActiveFirstOption, m = v.onSelect, E = v.menuItemSelectedIcon, S = v.rawValues, C = v.fieldNames, g = v.virtual, N = v.listHeight, x = v.listItemHeight, w = "".concat(a, "-item"), R = kr(function() {
4289
4289
  return p;
4290
4290
  }, [s, p], function(B, H) {
4291
4291
  return H[0] && B[1] !== H[1];
@@ -4297,8 +4297,8 @@ var Yu = function(n, r) {
4297
4297
  } : H);
4298
4298
  }, k = function(H) {
4299
4299
  for (var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1, de = R.length, ue = 0; ue < de; ue += 1) {
4300
- var Z = (H + ue * j + de) % de, T = R[Z], ee = T.group, Ee = T.data;
4301
- if (!ee && !Ee.disabled)
4300
+ var Z = (H + ue * j + de) % de, P = R[Z], ee = P.group, be = P.data;
4301
+ if (!ee && !be.disabled)
4302
4302
  return Z;
4303
4303
  }
4304
4304
  return -1;
@@ -4317,7 +4317,7 @@ var Yu = function(n, r) {
4317
4317
  y(ue.value, H, de);
4318
4318
  };
4319
4319
  Ht(function() {
4320
- z(E !== !1 ? k(0) : -1);
4320
+ z(b !== !1 ? k(0) : -1);
4321
4321
  }, [R.length, u]);
4322
4322
  var G = c.useCallback(function(B) {
4323
4323
  return S.has(B) && i !== "combobox";
@@ -4350,23 +4350,23 @@ var Yu = function(n, r) {
4350
4350
  onKeyDown: function(H) {
4351
4351
  var j = H.which, de = H.ctrlKey;
4352
4352
  switch (j) {
4353
- case P.N:
4354
- case P.P:
4355
- case P.UP:
4356
- case P.DOWN: {
4353
+ case T.N:
4354
+ case T.P:
4355
+ case T.UP:
4356
+ case T.DOWN: {
4357
4357
  var ue = 0;
4358
- if (j === P.UP ? ue = -1 : j === P.DOWN ? ue = 1 : Bu() && de && (j === P.N ? ue = 1 : j === P.P && (ue = -1)), ue !== 0) {
4358
+ if (j === T.UP ? ue = -1 : j === T.DOWN ? ue = 1 : Bu() && de && (j === T.N ? ue = 1 : j === T.P && (ue = -1)), ue !== 0) {
4359
4359
  var Z = k(O + ue, ue);
4360
4360
  F(Z), z(Z, !0);
4361
4361
  }
4362
4362
  break;
4363
4363
  }
4364
- case P.ENTER: {
4365
- var T = R[O];
4366
- T && !T.data.disabled ? he(T.value) : he(void 0), s && H.preventDefault();
4364
+ case T.ENTER: {
4365
+ var P = R[O];
4366
+ P && !P.data.disabled ? he(P.value) : he(void 0), s && H.preventDefault();
4367
4367
  break;
4368
4368
  }
4369
- case P.ESC:
4369
+ case T.ESC:
4370
4370
  d(!1), s && H.stopPropagation();
4371
4371
  }
4372
4372
  },
@@ -4399,10 +4399,10 @@ var Yu = function(n, r) {
4399
4399
  var j = R[H];
4400
4400
  if (!j)
4401
4401
  return null;
4402
- var de = j.data || {}, ue = de.value, Z = j.group, T = vn(de, !0), ee = ce(j);
4402
+ var de = j.data || {}, ue = de.value, Z = j.group, P = vn(de, !0), ee = ce(j);
4403
4403
  return j ? /* @__PURE__ */ c.createElement("div", Le({
4404
4404
  "aria-label": typeof ee == "string" && !Z ? ee : null
4405
- }, T, {
4405
+ }, P, {
4406
4406
  key: H
4407
4407
  }, re(j, H), {
4408
4408
  "aria-selected": G(ue)
@@ -4429,17 +4429,17 @@ var Yu = function(n, r) {
4429
4429
  virtual: g,
4430
4430
  innerProps: g ? null : Q
4431
4431
  }, function(B, H) {
4432
- var j, de = B.group, ue = B.groupOption, Z = B.data, T = B.label, ee = B.value, Ee = Z.key;
4432
+ var j, de = B.group, ue = B.groupOption, Z = B.data, P = B.label, ee = B.value, be = Z.key;
4433
4433
  if (de) {
4434
- var pe, Re = (pe = Z.title) !== null && pe !== void 0 ? pe : Ra(T) ? T.toString() : void 0;
4434
+ var pe, Re = (pe = Z.title) !== null && pe !== void 0 ? pe : Ra(P) ? P.toString() : void 0;
4435
4435
  return /* @__PURE__ */ c.createElement("div", {
4436
4436
  className: Ve(w, "".concat(w, "-group")),
4437
4437
  title: Re
4438
- }, T !== void 0 ? T : Ee);
4438
+ }, P !== void 0 ? P : be);
4439
4439
  }
4440
4440
  var we = Z.disabled, Me = Z.title;
4441
4441
  Z.children;
4442
- var fe = Z.style, $ = Z.className, ve = st(Z, Gu), ae = Io(ve, Y), se = G(ee), q = "".concat(w, "-option"), ie = Ve(w, q, $, (j = {}, J(j, "".concat(q, "-grouped"), ue), J(j, "".concat(q, "-active"), O === H && !we), J(j, "".concat(q, "-disabled"), we), J(j, "".concat(q, "-selected"), se), j)), be = ce(B), me = !b || typeof b == "function" || se, Se = typeof be == "number" ? be : be || ee, Ie = Ra(Se) ? Se.toString() : void 0;
4442
+ var fe = Z.style, $ = Z.className, ve = st(Z, Gu), ae = Io(ve, Y), se = G(ee), q = "".concat(w, "-option"), ie = Ve(w, q, $, (j = {}, J(j, "".concat(q, "-grouped"), ue), J(j, "".concat(q, "-active"), O === H && !we), J(j, "".concat(q, "-disabled"), we), J(j, "".concat(q, "-selected"), se), j)), Ee = ce(B), me = !E || typeof E == "function" || se, Se = typeof Ee == "number" ? Ee : Ee || ee, Ie = Ra(Se) ? Se.toString() : void 0;
4443
4443
  return Me !== void 0 && (Ie = Me), /* @__PURE__ */ c.createElement("div", Le({}, vn(ae), g ? {} : re(B, H), {
4444
4444
  "aria-selected": se,
4445
4445
  className: ie,
@@ -4453,9 +4453,9 @@ var Yu = function(n, r) {
4453
4453
  style: fe
4454
4454
  }), /* @__PURE__ */ c.createElement("div", {
4455
4455
  className: "".concat(q, "-content")
4456
- }, Se), /* @__PURE__ */ c.isValidElement(b) || se, me && /* @__PURE__ */ c.createElement(Bn, {
4456
+ }, Se), /* @__PURE__ */ c.isValidElement(E) || se, me && /* @__PURE__ */ c.createElement(Bn, {
4457
4457
  className: "".concat(w, "-option-state"),
4458
- customizeIcon: b,
4458
+ customizeIcon: E,
4459
4459
  customizeIconProps: {
4460
4460
  isSelected: se
4461
4461
  }
@@ -4464,22 +4464,22 @@ var Yu = function(n, r) {
4464
4464
  }, Vo = /* @__PURE__ */ c.forwardRef(Yu);
4465
4465
  Vo.displayName = "OptionList";
4466
4466
  function qu(e) {
4467
- var n = e.mode, r = e.options, t = e.children, a = e.backfill, l = e.allowClear, s = e.placeholder, o = e.getInputElement, i = e.showSearch, u = e.onSearch, d = e.defaultOpen, f = e.autoFocus, h = e.labelInValue, v = e.value, p = e.inputValue, y = e.optionLabelProp, E = Gn(n), m = i !== void 0 ? i : E || n === "combobox", b = r || $r(t);
4468
- if (Te(n !== "tags" || b.every(function(N) {
4467
+ var n = e.mode, r = e.options, t = e.children, a = e.backfill, l = e.allowClear, s = e.placeholder, o = e.getInputElement, i = e.showSearch, u = e.onSearch, d = e.defaultOpen, f = e.autoFocus, h = e.labelInValue, v = e.value, p = e.inputValue, y = e.optionLabelProp, b = Gn(n), m = i !== void 0 ? i : b || n === "combobox", E = r || $r(t);
4468
+ if (Pe(n !== "tags" || E.every(function(N) {
4469
4469
  return !N.disabled;
4470
4470
  }), "Please avoid setting option to disabled in tags mode since user can always type text as tag."), n === "tags" || n === "combobox") {
4471
- var S = b.some(function(N) {
4471
+ var S = E.some(function(N) {
4472
4472
  return N.options ? N.options.some(function(x) {
4473
4473
  return typeof ("value" in x ? x.value : x.key) == "number";
4474
4474
  }) : typeof ("value" in N ? N.value : N.key) == "number";
4475
4475
  });
4476
- Te(!S, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
4476
+ Pe(!S, "`value` of Option should not use number type when `mode` is `tags` or `combobox`.");
4477
4477
  }
4478
- if (Te(n !== "combobox" || !y, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), Te(n === "combobox" || !a, "`backfill` only works with `combobox` mode."), Te(n === "combobox" || !o, "`getInputElement` only work with `combobox` mode."), fr(n !== "combobox" || !o || !l || !s, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), u && !m && n !== "combobox" && n !== "tags" && Te(!1, "`onSearch` should work with `showSearch` instead of use alone."), fr(!d || f, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), v != null) {
4478
+ if (Pe(n !== "combobox" || !y, "`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."), Pe(n === "combobox" || !a, "`backfill` only works with `combobox` mode."), Pe(n === "combobox" || !o, "`getInputElement` only work with `combobox` mode."), fr(n !== "combobox" || !o || !l || !s, "Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."), u && !m && n !== "combobox" && n !== "tags" && Pe(!1, "`onSearch` should work with `showSearch` instead of use alone."), fr(!d || f, "`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."), v != null) {
4479
4479
  var C = Kr(v);
4480
- Te(!h || C.every(function(N) {
4480
+ Pe(!h || C.every(function(N) {
4481
4481
  return ct(N) === "object" && ("key" in N || "value" in N);
4482
- }), "`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"), Te(!E || Array.isArray(v), "`value` should be array when `mode` is `multiple` or `tags`");
4482
+ }), "`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"), Pe(!b || Array.isArray(v), "`value` should be array when `mode` is `multiple` or `tags`");
4483
4483
  }
4484
4484
  if (t) {
4485
4485
  var g = null;
@@ -4496,7 +4496,7 @@ function qu(e) {
4496
4496
  return !R;
4497
4497
  }
4498
4498
  return g = w, !0;
4499
- }), g && Te(!1, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(g.displayName || g.name || g, "`.")), Te(p === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
4499
+ }), g && Pe(!1, "`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(g.displayName || g.name || g, "`.")), Pe(p === void 0, "`inputValue` is deprecated, please use `searchValue` instead.");
4500
4500
  }
4501
4501
  }
4502
4502
  function Qu(e, n) {
@@ -4505,7 +4505,7 @@ function Qu(e, n) {
4505
4505
  for (var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, s = 0; s < a.length; s++) {
4506
4506
  var o = a[s];
4507
4507
  if (o[n == null ? void 0 : n.value] === null)
4508
- return Te(!1, "`value` in Select options should not be `null`."), !0;
4508
+ return Pe(!1, "`value` in Select options should not be `null`."), !0;
4509
4509
  if (!l && Array.isArray(o[n == null ? void 0 : n.options]) && t(o[n == null ? void 0 : n.options], !0))
4510
4510
  break;
4511
4511
  }
@@ -4518,11 +4518,11 @@ function Ju(e) {
4518
4518
  return !e || ct(e) !== "object";
4519
4519
  }
4520
4520
  var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4521
- var r = e.id, t = e.mode, a = e.prefixCls, l = a === void 0 ? "rc-select" : a, s = e.backfill, o = e.fieldNames, i = e.inputValue, u = e.searchValue, d = e.onSearch, f = e.autoClearSearchValue, h = f === void 0 ? !0 : f, v = e.onSelect, p = e.onDeselect, y = e.dropdownMatchSelectWidth, E = y === void 0 ? !0 : y, m = e.filterOption, b = e.filterSort, S = e.optionFilterProp, C = e.optionLabelProp, g = e.options, N = e.children, x = e.defaultActiveFirstOption, w = e.menuItemSelectedIcon, R = e.virtual, M = e.listHeight, I = M === void 0 ? 200 : M, F = e.listItemHeight, k = F === void 0 ? 20 : F, A = e.value, L = e.defaultValue, O = e.labelInValue, W = e.onChange, z = st(e, Zu), G = _o(r), he = Gn(t), Y = !!(!g && N), ce = c.useMemo(function() {
4521
+ var r = e.id, t = e.mode, a = e.prefixCls, l = a === void 0 ? "rc-select" : a, s = e.backfill, o = e.fieldNames, i = e.inputValue, u = e.searchValue, d = e.onSearch, f = e.autoClearSearchValue, h = f === void 0 ? !0 : f, v = e.onSelect, p = e.onDeselect, y = e.dropdownMatchSelectWidth, b = y === void 0 ? !0 : y, m = e.filterOption, E = e.filterSort, S = e.optionFilterProp, C = e.optionLabelProp, g = e.options, N = e.children, x = e.defaultActiveFirstOption, w = e.menuItemSelectedIcon, R = e.virtual, M = e.listHeight, I = M === void 0 ? 200 : M, F = e.listItemHeight, k = F === void 0 ? 20 : F, A = e.value, L = e.defaultValue, O = e.labelInValue, W = e.onChange, z = st(e, Zu), G = _o(r), he = Gn(t), Y = !!(!g && N), ce = c.useMemo(function() {
4522
4522
  return m === void 0 && t === "combobox" ? !1 : m;
4523
4523
  }, [m, t]), re = c.useMemo(
4524
4524
  function() {
4525
- return To(o, Y);
4525
+ return Po(o, Y);
4526
4526
  },
4527
4527
  /* eslint-disable react-hooks/exhaustive-deps */
4528
4528
  [
@@ -4536,7 +4536,7 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4536
4536
  postState: function(U) {
4537
4537
  return U || "";
4538
4538
  }
4539
- }), Q = V(ne, 2), B = Q[0], H = Q[1], j = Du(g, N, re, S, C), de = j.valueOptions, ue = j.labelOptions, Z = j.options, T = c.useCallback(function(_) {
4539
+ }), Q = V(ne, 2), B = Q[0], H = Q[1], j = Du(g, N, re, S, C), de = j.valueOptions, ue = j.labelOptions, Z = j.options, P = c.useCallback(function(_) {
4540
4540
  var U = Kr(_);
4541
4541
  return U.map(function(K) {
4542
4542
  var te, ge, Ne, nt, rt;
@@ -4548,10 +4548,10 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4548
4548
  }
4549
4549
  var Ye = de.get(te);
4550
4550
  if (Ye) {
4551
- var bt;
4552
- if (ge === void 0 && (ge = Ye == null ? void 0 : Ye[C || re.label]), Ne === void 0 && (Ne = (bt = Ye == null ? void 0 : Ye.key) !== null && bt !== void 0 ? bt : te), nt = Ye == null ? void 0 : Ye.disabled, rt = Ye == null ? void 0 : Ye.title, process.env.NODE_ENV !== "production" && !C) {
4551
+ var Et;
4552
+ if (ge === void 0 && (ge = Ye == null ? void 0 : Ye[C || re.label]), Ne === void 0 && (Ne = (Et = Ye == null ? void 0 : Ye.key) !== null && Et !== void 0 ? Et : te), nt = Ye == null ? void 0 : Ye.disabled, rt = Ye == null ? void 0 : Ye.title, process.env.NODE_ENV !== "production" && !C) {
4553
4553
  var Rt = Ye == null ? void 0 : Ye[re.label];
4554
- Rt !== void 0 && Rt !== ge && Te(!1, "`label` of `value` is not same as `label` in Select options.");
4554
+ Rt !== void 0 && Rt !== ge && Pe(!1, "`label` of `value` is not same as `label` in Select options.");
4555
4555
  }
4556
4556
  }
4557
4557
  return {
@@ -4564,10 +4564,10 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4564
4564
  });
4565
4565
  }, [re, C, de]), ee = Dn(L, {
4566
4566
  value: A
4567
- }), Ee = V(ee, 2), pe = Ee[0], Re = Ee[1], we = c.useMemo(function() {
4568
- var _, U = T(pe);
4567
+ }), be = V(ee, 2), pe = be[0], Re = be[1], we = c.useMemo(function() {
4568
+ var _, U = P(pe);
4569
4569
  return t === "combobox" && !((_ = U[0]) !== null && _ !== void 0 && _.value) ? [] : U;
4570
- }, [pe, T, t]), Me = Su(we, de), fe = V(Me, 2), $ = fe[0], ve = fe[1], ae = c.useMemo(function() {
4570
+ }, [pe, P, t]), Me = Su(we, de), fe = V(Me, 2), $ = fe[0], ve = fe[1], ae = c.useMemo(function() {
4571
4571
  if (!t && $.length === 1) {
4572
4572
  var _ = $[0];
4573
4573
  if (_.value === null && (_.label === null || _.label === void 0))
@@ -4605,21 +4605,21 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4605
4605
  var te = K.value;
4606
4606
  U(te) || _.push(q(te, K.label));
4607
4607
  }), _;
4608
- }, [q, Z, de, $, t]), be = Cu(ie, re, B, ce, S), me = c.useMemo(function() {
4609
- return t !== "tags" || !B || be.some(function(_) {
4608
+ }, [q, Z, de, $, t]), Ee = Cu(ie, re, B, ce, S), me = c.useMemo(function() {
4609
+ return t !== "tags" || !B || Ee.some(function(_) {
4610
4610
  return _[S || "value"] === B;
4611
- }) ? be : [q(B)].concat(je(be));
4612
- }, [q, S, t, be, B]), Se = c.useMemo(function() {
4613
- return b ? je(me).sort(function(_, U) {
4614
- return b(_, U);
4611
+ }) ? Ee : [q(B)].concat(je(Ee));
4612
+ }, [q, S, t, Ee, B]), Se = c.useMemo(function() {
4613
+ return E ? je(me).sort(function(_, U) {
4614
+ return E(_, U);
4615
4615
  }) : me;
4616
- }, [me, b]), Ie = c.useMemo(function() {
4616
+ }, [me, E]), Ie = c.useMemo(function() {
4617
4617
  return gu(Se, {
4618
4618
  fieldNames: re,
4619
4619
  childrenAsData: Y
4620
4620
  });
4621
4621
  }, [Se, re, Y]), De = function(U) {
4622
- var K = T(U);
4622
+ var K = P(U);
4623
4623
  if (Re(K), W && // Trigger event only when value changed
4624
4624
  (K.length !== $.length || K.some(function(Ne, nt) {
4625
4625
  var rt;
@@ -4642,18 +4642,18 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4642
4642
  dt(U), s && t === "combobox" && _ !== null && ge === "keyboard" && le(String(_));
4643
4643
  }, [s, t]), tt = function(U, K, te) {
4644
4644
  var ge = function() {
4645
- var Pe, Oe = ve(U);
4645
+ var Te, Oe = ve(U);
4646
4646
  return [O ? {
4647
4647
  label: Oe == null ? void 0 : Oe[re.label],
4648
4648
  value: U,
4649
- key: (Pe = Oe == null ? void 0 : Oe.key) !== null && Pe !== void 0 ? Pe : U
4649
+ key: (Te = Oe == null ? void 0 : Oe.key) !== null && Te !== void 0 ? Te : U
4650
4650
  } : U, Cr(Oe)];
4651
4651
  };
4652
4652
  if (K && v) {
4653
4653
  var Ne = ge(), nt = V(Ne, 2), rt = nt[0], kt = nt[1];
4654
4654
  v(rt, kt);
4655
4655
  } else if (!K && p && te !== "clear") {
4656
- var Ye = ge(), bt = V(Ye, 2), Rt = bt[0], _e = bt[1];
4656
+ var Ye = ge(), Et = V(Ye, 2), Rt = Et[0], _e = Et[1];
4657
4657
  p(Rt, _e);
4658
4658
  }
4659
4659
  }, Xe = Na(function(_, U) {
@@ -4677,7 +4677,7 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4677
4677
  return;
4678
4678
  }
4679
4679
  K.source !== "blur" && (t === "combobox" && De(U), d == null || d(U));
4680
- }, Et = function(U) {
4680
+ }, bt = function(U) {
4681
4681
  var K = U;
4682
4682
  t !== "tags" && (K = U.map(function(ge) {
4683
4683
  var Ne = ue.get(ge);
@@ -4690,7 +4690,7 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4690
4690
  tt(ge, !0);
4691
4691
  });
4692
4692
  }, pt = c.useMemo(function() {
4693
- var _ = R !== !1 && E !== !1;
4693
+ var _ = R !== !1 && b !== !1;
4694
4694
  return D(D({}, j), {}, {
4695
4695
  flattenOptions: Ie,
4696
4696
  onActiveValue: ft,
@@ -4704,7 +4704,7 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4704
4704
  listItemHeight: k,
4705
4705
  childrenAsData: Y
4706
4706
  });
4707
- }, [j, Ie, ft, Qe, Xe, w, se, re, R, E, I, k, Y]);
4707
+ }, [j, Ie, ft, Qe, Xe, w, se, re, R, b, I, k, Y]);
4708
4708
  return process.env.NODE_ENV !== "production" && (qu(e), Qu(Z, re)), /* @__PURE__ */ c.createElement($o.Provider, {
4709
4709
  value: pt
4710
4710
  }, /* @__PURE__ */ c.createElement(Ar, Le({}, z, {
@@ -4719,8 +4719,8 @@ var Fo = /* @__PURE__ */ c.forwardRef(function(e, n) {
4719
4719
  searchValue: B,
4720
4720
  onSearch: xt,
4721
4721
  autoClearSearchValue: h,
4722
- onSearchSplit: Et,
4723
- dropdownMatchSelectWidth: E,
4722
+ onSearchSplit: bt,
4723
+ dropdownMatchSelectWidth: b,
4724
4724
  OptionList: Vo,
4725
4725
  emptyOptions: !Ie.length,
4726
4726
  activeValue: X,
@@ -4746,10 +4746,10 @@ function ts(e, n, r, t) {
4746
4746
  var o = n.get(s) || /* @__PURE__ */ new Set();
4747
4747
  o.forEach(function(f) {
4748
4748
  var h = f.key, v = f.node, p = f.children, y = p === void 0 ? [] : p;
4749
- a.has(h) && !t(v) && y.filter(function(E) {
4750
- return !t(E.node);
4751
- }).forEach(function(E) {
4752
- a.add(E.key);
4749
+ a.has(h) && !t(v) && y.filter(function(b) {
4750
+ return !t(b.node);
4751
+ }).forEach(function(b) {
4752
+ a.add(b.key);
4753
4753
  });
4754
4754
  });
4755
4755
  }
@@ -4763,11 +4763,11 @@ function ts(e, n, r, t) {
4763
4763
  return;
4764
4764
  }
4765
4765
  var p = !0, y = !1;
4766
- (h.children || []).filter(function(E) {
4767
- return !t(E.node);
4768
- }).forEach(function(E) {
4769
- var m = E.key, b = a.has(m);
4770
- p && !b && (p = !1), !y && (b || l.has(m)) && (y = !0);
4766
+ (h.children || []).filter(function(b) {
4767
+ return !t(b.node);
4768
+ }).forEach(function(b) {
4769
+ var m = b.key, E = a.has(m);
4770
+ p && !E && (p = !1), !y && (E || l.has(m)) && (y = !0);
4771
4771
  }), p && a.add(h.key), y && l.add(h.key), i.add(h.key);
4772
4772
  }
4773
4773
  });
@@ -4781,8 +4781,8 @@ function ns(e, n, r, t, a) {
4781
4781
  for (var l = new Set(e), s = new Set(n), o = 0; o <= t; o += 1) {
4782
4782
  var i = r.get(o) || /* @__PURE__ */ new Set();
4783
4783
  i.forEach(function(h) {
4784
- var v = h.key, p = h.node, y = h.children, E = y === void 0 ? [] : y;
4785
- !l.has(v) && !s.has(v) && !a(p) && E.filter(function(m) {
4784
+ var v = h.key, p = h.node, y = h.children, b = y === void 0 ? [] : y;
4785
+ !l.has(v) && !s.has(v) && !a(p) && b.filter(function(m) {
4786
4786
  return !a(m.node);
4787
4787
  }).forEach(function(m) {
4788
4788
  l.delete(m.key);
@@ -4799,13 +4799,13 @@ function ns(e, n, r, t, a) {
4799
4799
  u.add(v.key);
4800
4800
  return;
4801
4801
  }
4802
- var y = !0, E = !1;
4802
+ var y = !0, b = !1;
4803
4803
  (v.children || []).filter(function(m) {
4804
4804
  return !a(m.node);
4805
4805
  }).forEach(function(m) {
4806
- var b = m.key, S = l.has(b);
4807
- y && !S && (y = !1), !E && (S || s.has(b)) && (E = !0);
4808
- }), y || l.delete(v.key), E && s.add(v.key), u.add(v.key);
4806
+ var E = m.key, S = l.has(E);
4807
+ y && !S && (y = !1), !b && (S || s.has(E)) && (b = !0);
4808
+ }), y || l.delete(v.key), b && s.add(v.key), u.add(v.key);
4809
4809
  }
4810
4810
  });
4811
4811
  }
@@ -4824,7 +4824,7 @@ function fn(e, n, r, t) {
4824
4824
  Object.keys(r).forEach(function(d) {
4825
4825
  var f = r[d], h = f.level, v = o.get(h);
4826
4826
  v || (v = /* @__PURE__ */ new Set(), o.set(h, v)), v.add(f), i = Math.max(i, h);
4827
- }), Te(!a.length, "Tree missing follow keys: ".concat(a.slice(0, 100).map(function(d) {
4827
+ }), Pe(!a.length, "Tree missing follow keys: ".concat(a.slice(0, 100).map(function(d) {
4828
4828
  return "'".concat(d, "'");
4829
4829
  }).join(", ")));
4830
4830
  var u;
@@ -4863,9 +4863,9 @@ function is(e, n) {
4863
4863
  var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
4864
4864
  (a || []).forEach(function(s) {
4865
4865
  var o = s[n.key], i = s[n.children];
4866
- Te(o != null, "Tree node must have a certain key: [".concat(l).concat(o, "]"));
4866
+ Pe(o != null, "Tree node must have a certain key: [".concat(l).concat(o, "]"));
4867
4867
  var u = String(o);
4868
- Te(!r.has(u) || o === null || o === void 0, "Same 'key' exist in the Tree: ".concat(u)), r.set(u, !0), t(i, "".concat(l).concat(u, " > "));
4868
+ Pe(!r.has(u) || o === null || o === void 0, "Same 'key' exist in the Tree: ".concat(u)), r.set(u, !0), t(i, "".concat(l).concat(u, " > "));
4869
4869
  });
4870
4870
  }
4871
4871
  t(e);
@@ -4875,7 +4875,7 @@ function ls(e) {
4875
4875
  var t = Gt(r);
4876
4876
  return t.map(function(a) {
4877
4877
  if (!fs(a))
4878
- return Te(!a, "Tree/TreeNode can only accept TreeNode as children."), null;
4878
+ return Pe(!a, "Tree/TreeNode can only accept TreeNode as children."), null;
4879
4879
  var l = a.key, s = a.props, o = s.children, i = st(s, os), u = D({
4880
4880
  key: l
4881
4881
  }, i), d = n(o);
@@ -4891,15 +4891,15 @@ function ur(e, n, r) {
4891
4891
  function u(d) {
4892
4892
  var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
4893
4893
  return d.map(function(h, v) {
4894
- for (var p = zo(f ? f.pos : "0", v), y = On(h[l], p), E, m = 0; m < a.length; m += 1) {
4895
- var b = a[m];
4896
- if (h[b] !== void 0) {
4897
- E = h[b];
4894
+ for (var p = zo(f ? f.pos : "0", v), y = On(h[l], p), b, m = 0; m < a.length; m += 1) {
4895
+ var E = a[m];
4896
+ if (h[E] !== void 0) {
4897
+ b = h[E];
4898
4898
  break;
4899
4899
  }
4900
4900
  }
4901
4901
  var S = D(D({}, Io(h, [].concat(je(a), [l, s]))), {}, {
4902
- title: E,
4902
+ title: b,
4903
4903
  key: y,
4904
4904
  parent: f,
4905
4905
  pos: p,
@@ -4923,28 +4923,28 @@ function us(e, n, r) {
4923
4923
  return y[s];
4924
4924
  } : typeof s == "function" && (h = function(y) {
4925
4925
  return s(y);
4926
- }) : h = function(y, E) {
4927
- return On(y[u], E);
4926
+ }) : h = function(y, b) {
4927
+ return On(y[u], b);
4928
4928
  };
4929
- function v(p, y, E, m) {
4930
- var b = p ? p[f] : e, S = p ? zo(E.pos, y) : "0", C = p ? [].concat(je(m), [p]) : [];
4929
+ function v(p, y, b, m) {
4930
+ var E = p ? p[f] : e, S = p ? zo(b.pos, y) : "0", C = p ? [].concat(je(m), [p]) : [];
4931
4931
  if (p) {
4932
4932
  var g = h(p, S), N = {
4933
4933
  node: p,
4934
4934
  index: y,
4935
4935
  pos: S,
4936
4936
  key: g,
4937
- parentPos: E.node ? E.pos : null,
4938
- level: E.level + 1,
4937
+ parentPos: b.node ? b.pos : null,
4938
+ level: b.level + 1,
4939
4939
  nodes: C
4940
4940
  };
4941
4941
  n(N);
4942
4942
  }
4943
- b && b.forEach(function(x, w) {
4943
+ E && E.forEach(function(x, w) {
4944
4944
  v(x, w, {
4945
4945
  node: p,
4946
4946
  pos: S,
4947
- level: E ? E.level + 1 : -1
4947
+ level: b ? b.level + 1 : -1
4948
4948
  }, C);
4949
4949
  });
4950
4950
  }
@@ -4956,15 +4956,15 @@ function Wo(e) {
4956
4956
  keyEntities: f
4957
4957
  };
4958
4958
  return r && (h = r(h) || h), us(e, function(v) {
4959
- var p = v.node, y = v.index, E = v.pos, m = v.key, b = v.parentPos, S = v.level, C = v.nodes, g = {
4959
+ var p = v.node, y = v.index, b = v.pos, m = v.key, E = v.parentPos, S = v.level, C = v.nodes, g = {
4960
4960
  node: p,
4961
4961
  nodes: C,
4962
4962
  index: y,
4963
4963
  key: m,
4964
- pos: E,
4964
+ pos: b,
4965
4965
  level: S
4966
- }, N = On(m, E);
4967
- d[E] = g, f[N] = g, g.parent = d[b], g.parent && (g.parent.children = g.parent.children || [], g.parent.children.push(g)), t && t(g, h);
4966
+ }, N = On(m, b);
4967
+ d[b] = g, f[N] = g, g.parent = d[E], g.parent && (g.parent.children = g.parent.children || [], g.parent.children.push(g)), t && t(g, h);
4968
4968
  }, {
4969
4969
  externalGetKey: u,
4970
4970
  childrenPropName: s,
@@ -5007,7 +5007,7 @@ function ht(e) {
5007
5007
  });
5008
5008
  return "props" in p || Object.defineProperty(p, "props", {
5009
5009
  get: function() {
5010
- return Te(!1, "Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."), e;
5010
+ return Pe(!1, "Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."), e;
5011
5011
  }
5012
5012
  }), p;
5013
5013
  }
@@ -5142,23 +5142,23 @@ var ss = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
5142
5142
  className: Ve("".concat(i, "-iconEle"), "".concat(i, "-icon__").concat(t.getNodeState() || "docu"), o && "".concat(i, "-icon_loading"))
5143
5143
  });
5144
5144
  }, t.renderSelector = function() {
5145
- var o = t.state.dragNodeHighlight, i = t.props, u = i.title, d = u === void 0 ? cs : u, f = i.selected, h = i.icon, v = i.loading, p = i.data, y = t.props.context, E = y.prefixCls, m = y.showIcon, b = y.icon, S = y.loadData, C = y.titleRender, g = t.isDisabled(), N = "".concat(E, "-node-content-wrapper"), x;
5145
+ var o = t.state.dragNodeHighlight, i = t.props, u = i.title, d = u === void 0 ? cs : u, f = i.selected, h = i.icon, v = i.loading, p = i.data, y = t.props.context, b = y.prefixCls, m = y.showIcon, E = y.icon, S = y.loadData, C = y.titleRender, g = t.isDisabled(), N = "".concat(b, "-node-content-wrapper"), x;
5146
5146
  if (m) {
5147
- var w = h || b;
5147
+ var w = h || E;
5148
5148
  x = w ? /* @__PURE__ */ c.createElement("span", {
5149
- className: Ve("".concat(E, "-iconEle"), "".concat(E, "-icon__customize"))
5149
+ className: Ve("".concat(b, "-iconEle"), "".concat(b, "-icon__customize"))
5150
5150
  }, typeof w == "function" ? w(t.props) : w) : t.renderIcon();
5151
5151
  } else
5152
5152
  S && v && (x = t.renderIcon());
5153
5153
  var R;
5154
5154
  typeof d == "function" ? R = d(p) : C ? R = C(p) : R = d;
5155
5155
  var M = /* @__PURE__ */ c.createElement("span", {
5156
- className: "".concat(E, "-title")
5156
+ className: "".concat(b, "-title")
5157
5157
  }, R);
5158
5158
  return /* @__PURE__ */ c.createElement("span", {
5159
5159
  ref: t.setSelectHandle,
5160
5160
  title: typeof d == "string" ? d : "",
5161
- className: Ve("".concat(N), "".concat(N, "-").concat(t.getNodeState() || "normal"), !g && (f || o) && "".concat(E, "-node-selected")),
5161
+ className: Ve("".concat(N), "".concat(N, "-").concat(t.getNodeState() || "normal"), !g && (f || o) && "".concat(b, "-node-selected")),
5162
5162
  onMouseEnter: t.onMouseEnter,
5163
5163
  onMouseLeave: t.onMouseLeave,
5164
5164
  onContextMenu: t.onContextMenu,
@@ -5166,13 +5166,13 @@ var ss = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
5166
5166
  onDoubleClick: t.onSelectorDoubleClick
5167
5167
  }, x, M, t.renderDropIndicator());
5168
5168
  }, t.renderDropIndicator = function() {
5169
- var o = t.props, i = o.disabled, u = o.eventKey, d = t.props.context, f = d.draggable, h = d.dropLevelOffset, v = d.dropPosition, p = d.prefixCls, y = d.indent, E = d.dropIndicatorRender, m = d.dragOverNodeKey, b = d.direction, S = !!f, C = !i && S && m === u;
5170
- return C ? E({
5169
+ var o = t.props, i = o.disabled, u = o.eventKey, d = t.props.context, f = d.draggable, h = d.dropLevelOffset, v = d.dropPosition, p = d.prefixCls, y = d.indent, b = d.dropIndicatorRender, m = d.dragOverNodeKey, E = d.direction, S = !!f, C = !i && S && m === u;
5170
+ return C ? b({
5171
5171
  dropPosition: v,
5172
5172
  dropLevelOffset: h,
5173
5173
  indent: y,
5174
5174
  prefixCls: p,
5175
- direction: b
5175
+ direction: E
5176
5176
  }) : null;
5177
5177
  }, t;
5178
5178
  }
@@ -5200,7 +5200,7 @@ var ss = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
5200
5200
  value: (
5201
5201
  // =========================== Render ===========================
5202
5202
  function() {
5203
- var a, l = this.props, s = l.eventKey, o = l.className, i = l.style, u = l.dragOver, d = l.dragOverGapTop, f = l.dragOverGapBottom, h = l.isLeaf, v = l.isStart, p = l.isEnd, y = l.expanded, E = l.selected, m = l.checked, b = l.halfChecked, S = l.loading, C = l.domRef, g = l.active;
5203
+ var a, l = this.props, s = l.eventKey, o = l.className, i = l.style, u = l.dragOver, d = l.dragOverGapTop, f = l.dragOverGapBottom, h = l.isLeaf, v = l.isStart, p = l.isEnd, y = l.expanded, b = l.selected, m = l.checked, E = l.halfChecked, S = l.loading, C = l.domRef, g = l.active;
5204
5204
  l.data;
5205
5205
  var N = l.onMouseMove, x = l.selectable, w = st(l, ss), R = this.props.context, M = R.prefixCls, I = R.filterTreeNode, F = R.keyEntities, k = R.dropContainerKey, A = R.dropTargetKey, L = R.draggingNodeKey, O = this.isDisabled(), W = vn(w, {
5206
5206
  aria: !0,
@@ -5210,7 +5210,7 @@ var ss = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
5210
5210
  } : void 0;
5211
5211
  return /* @__PURE__ */ c.createElement("div", Le({
5212
5212
  ref: C,
5213
- className: Ve(o, "".concat(M, "-treenode"), (a = {}, J(a, "".concat(M, "-treenode-disabled"), O), J(a, "".concat(M, "-treenode-switcher-").concat(y ? "open" : "close"), !h), J(a, "".concat(M, "-treenode-checkbox-checked"), m), J(a, "".concat(M, "-treenode-checkbox-indeterminate"), b), J(a, "".concat(M, "-treenode-selected"), E), J(a, "".concat(M, "-treenode-loading"), S), J(a, "".concat(M, "-treenode-active"), g), J(a, "".concat(M, "-treenode-leaf-last"), he), J(a, "".concat(M, "-treenode-draggable"), Y), J(a, "dragging", re), J(a, "drop-target", A === s), J(a, "drop-container", k === s), J(a, "drag-over", !O && u), J(a, "drag-over-gap-top", !O && d), J(a, "drag-over-gap-bottom", !O && f), J(a, "filter-node", I && I(ht(this.props))), a)),
5213
+ className: Ve(o, "".concat(M, "-treenode"), (a = {}, J(a, "".concat(M, "-treenode-disabled"), O), J(a, "".concat(M, "-treenode-switcher-").concat(y ? "open" : "close"), !h), J(a, "".concat(M, "-treenode-checkbox-checked"), m), J(a, "".concat(M, "-treenode-checkbox-indeterminate"), E), J(a, "".concat(M, "-treenode-selected"), b), J(a, "".concat(M, "-treenode-loading"), S), J(a, "".concat(M, "-treenode-active"), g), J(a, "".concat(M, "-treenode-leaf-last"), he), J(a, "".concat(M, "-treenode-draggable"), Y), J(a, "dragging", re), J(a, "drop-target", A === s), J(a, "drop-container", k === s), J(a, "drag-over", !O && u), J(a, "drag-over-gap-top", !O && d), J(a, "drag-over-gap-bottom", !O && f), J(a, "filter-node", I && I(ht(this.props))), a)),
5214
5214
  style: i,
5215
5215
  draggable: ce,
5216
5216
  "aria-grabbed": re,
@@ -5230,15 +5230,15 @@ var ss = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
5230
5230
  }
5231
5231
  )
5232
5232
  }]), r;
5233
- }(c.Component), Pn = function(n) {
5233
+ }(c.Component), Tn = function(n) {
5234
5234
  return /* @__PURE__ */ c.createElement(Fr.Consumer, null, function(r) {
5235
5235
  return /* @__PURE__ */ c.createElement(ds, Le({}, n, {
5236
5236
  context: r
5237
5237
  }));
5238
5238
  });
5239
5239
  };
5240
- Pn.displayName = "TreeNode";
5241
- Pn.isTreeNode = 1;
5240
+ Tn.displayName = "TreeNode";
5241
+ Tn.isTreeNode = 1;
5242
5242
  function Vt(e, n) {
5243
5243
  if (!e)
5244
5244
  return [];
@@ -5281,23 +5281,23 @@ function ps(e) {
5281
5281
  return Number(n[n.length - 1]) === 0;
5282
5282
  }
5283
5283
  function ka(e, n, r, t, a, l, s, o, i, u) {
5284
- var d, f = e.clientX, h = e.clientY, v = e.target.getBoundingClientRect(), p = v.top, y = v.height, E = (u === "rtl" ? -1 : 1) * (((a == null ? void 0 : a.x) || 0) - f), m = (E - 12) / t, b = o[r.props.eventKey];
5284
+ var d, f = e.clientX, h = e.clientY, v = e.target.getBoundingClientRect(), p = v.top, y = v.height, b = (u === "rtl" ? -1 : 1) * (((a == null ? void 0 : a.x) || 0) - f), m = (b - 12) / t, E = o[r.props.eventKey];
5285
5285
  if (h < p + y / 2) {
5286
5286
  var S = s.findIndex(function(L) {
5287
- return L.key === b.key;
5287
+ return L.key === E.key;
5288
5288
  }), C = S <= 0 ? 0 : S - 1, g = s[C].key;
5289
- b = o[g];
5289
+ E = o[g];
5290
5290
  }
5291
- var N = b.key, x = b, w = b.key, R = 0, M = 0;
5291
+ var N = E.key, x = E, w = E.key, R = 0, M = 0;
5292
5292
  if (!i.includes(N))
5293
- for (var I = 0; I < m && hs(b); I += 1)
5294
- b = b.parent, M += 1;
5295
- var F = n.props.data, k = b.node, A = !0;
5296
- return ps(b) && b.level === 0 && h < p + y / 2 && l({
5293
+ for (var I = 0; I < m && hs(E); I += 1)
5294
+ E = E.parent, M += 1;
5295
+ var F = n.props.data, k = E.node, A = !0;
5296
+ return ps(E) && E.level === 0 && h < p + y / 2 && l({
5297
5297
  dragNode: F,
5298
5298
  dropNode: k,
5299
5299
  dropPosition: -1
5300
- }) && b.key === r.props.eventKey ? R = -1 : (x.children || []).length && i.includes(w) ? l({
5300
+ }) && E.key === r.props.eventKey ? R = -1 : (x.children || []).length && i.includes(w) ? l({
5301
5301
  dragNode: F,
5302
5302
  dropNode: k,
5303
5303
  dropPosition: 0
@@ -5320,14 +5320,14 @@ function ka(e, n, r, t, a, l, s, o, i, u) {
5320
5320
  }) ? R = 1 : A = !1, {
5321
5321
  dropPosition: R,
5322
5322
  dropLevelOffset: M,
5323
- dropTargetKey: b.key,
5324
- dropTargetPos: b.pos,
5323
+ dropTargetKey: E.key,
5324
+ dropTargetPos: E.pos,
5325
5325
  dragOverNodeKey: w,
5326
- dropContainerKey: R === 0 ? null : ((d = b.parent) === null || d === void 0 ? void 0 : d.key) || null,
5326
+ dropContainerKey: R === 0 ? null : ((d = E.parent) === null || d === void 0 ? void 0 : d.key) || null,
5327
5327
  dropAllowed: A
5328
5328
  };
5329
5329
  }
5330
- function Pa(e, n) {
5330
+ function Ta(e, n) {
5331
5331
  if (e) {
5332
5332
  var r = n.multiple;
5333
5333
  return r ? e.slice() : e.length ? [e[0]] : e;
@@ -5348,10 +5348,10 @@ function sr(e) {
5348
5348
  halfCheckedKeys: e.halfChecked || void 0
5349
5349
  };
5350
5350
  else
5351
- return Te(!1, "`checkedKeys` is not an array or an object"), null;
5351
+ return Pe(!1, "`checkedKeys` is not an array or an object"), null;
5352
5352
  return n;
5353
5353
  }
5354
- function Ta(e, n) {
5354
+ function Pa(e, n) {
5355
5355
  var r = /* @__PURE__ */ new Set();
5356
5356
  function t(a) {
5357
5357
  if (!r.has(a)) {
@@ -5372,11 +5372,11 @@ function jo(e) {
5372
5372
  throw new TypeError("Cannot destructure " + e);
5373
5373
  }
5374
5374
  var ms = ["className", "style", "motion", "motionNodes", "motionType", "onMotionStart", "onMotionEnd", "active", "treeNodeRequiredProps"], Bo = function(n, r) {
5375
- var t = n.className, a = n.style, l = n.motion, s = n.motionNodes, o = n.motionType, i = n.onMotionStart, u = n.onMotionEnd, d = n.active, f = n.treeNodeRequiredProps, h = st(n, ms), v = c.useState(!0), p = V(v, 2), y = p[0], E = p[1], m = c.useContext(Fr), b = m.prefixCls, S = c.useRef(!1), C = function() {
5375
+ var t = n.className, a = n.style, l = n.motion, s = n.motionNodes, o = n.motionType, i = n.onMotionStart, u = n.onMotionEnd, d = n.active, f = n.treeNodeRequiredProps, h = st(n, ms), v = c.useState(!0), p = V(v, 2), y = p[0], b = p[1], m = c.useContext(Fr), E = m.prefixCls, S = c.useRef(!1), C = function() {
5376
5376
  S.current || u(), S.current = !0;
5377
5377
  };
5378
5378
  return Ht(function() {
5379
- s && o === "hide" && y && E(!1);
5379
+ s && o === "hide" && y && b(!1);
5380
5380
  }, [s]), Ht(function() {
5381
5381
  return s && i(), function() {
5382
5382
  s && C();
@@ -5392,13 +5392,13 @@ var ms = ["className", "style", "motion", "motionNodes", "motionType", "onMotion
5392
5392
  var x = g.className, w = g.style;
5393
5393
  return /* @__PURE__ */ c.createElement("div", {
5394
5394
  ref: N,
5395
- className: Ve("".concat(b, "-treenode-motion"), x),
5395
+ className: Ve("".concat(E, "-treenode-motion"), x),
5396
5396
  style: w
5397
5397
  }, s.map(function(R) {
5398
5398
  var M = Le({}, (jo(R.data), R.data)), I = R.title, F = R.key, k = R.isStart, A = R.isEnd;
5399
5399
  delete M.children;
5400
5400
  var L = Mn(F, f);
5401
- return /* @__PURE__ */ c.createElement(Pn, Le({}, M, L, {
5401
+ return /* @__PURE__ */ c.createElement(Tn, Le({}, M, L, {
5402
5402
  title: I,
5403
5403
  active: d,
5404
5404
  data: R.data,
@@ -5407,7 +5407,7 @@ var ms = ["className", "style", "motion", "motionNodes", "motionType", "onMotion
5407
5407
  isEnd: A
5408
5408
  }));
5409
5409
  }));
5410
- }) : /* @__PURE__ */ c.createElement(Pn, Le({
5410
+ }) : /* @__PURE__ */ c.createElement(Tn, Le({
5411
5411
  domRef: r,
5412
5412
  className: t,
5413
5413
  style: a
@@ -5456,7 +5456,7 @@ function _a(e, n, r) {
5456
5456
  }
5457
5457
  return n.slice(l + 1);
5458
5458
  }
5459
- var Es = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "selectedKeys", "checkedKeys", "loadedKeys", "loadingKeys", "halfCheckedKeys", "keyEntities", "disabled", "dragging", "dragOverNodeKey", "dropPosition", "motion", "height", "itemHeight", "virtual", "focusable", "activeItem", "focused", "tabIndex", "onKeyDown", "onFocus", "onBlur", "onActiveChange", "onListChangeStart", "onListChangeEnd"], Oa = {
5459
+ var bs = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "selectedKeys", "checkedKeys", "loadedKeys", "loadingKeys", "halfCheckedKeys", "keyEntities", "disabled", "dragging", "dragOverNodeKey", "dropPosition", "motion", "height", "itemHeight", "virtual", "focusable", "activeItem", "focused", "tabIndex", "onKeyDown", "onFocus", "onBlur", "onActiveChange", "onListChangeStart", "onListChangeEnd"], Oa = {
5460
5460
  width: 0,
5461
5461
  height: 0,
5462
5462
  display: "flex",
@@ -5465,7 +5465,7 @@ var Es = ["prefixCls", "data", "selectable", "checkable", "expandedKeys", "selec
5465
5465
  border: 0,
5466
5466
  padding: 0,
5467
5467
  margin: 0
5468
- }, bs = function() {
5468
+ }, Es = function() {
5469
5469
  }, Zt = "RC_TREE_MOTION_".concat(Math.random()), wr = {
5470
5470
  key: Zt
5471
5471
  }, Go = {
@@ -5501,7 +5501,7 @@ function Ss(e) {
5501
5501
  var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5502
5502
  var r = e.prefixCls, t = e.data;
5503
5503
  e.selectable, e.checkable;
5504
- var a = e.expandedKeys, l = e.selectedKeys, s = e.checkedKeys, o = e.loadedKeys, i = e.loadingKeys, u = e.halfCheckedKeys, d = e.keyEntities, f = e.disabled, h = e.dragging, v = e.dragOverNodeKey, p = e.dropPosition, y = e.motion, E = e.height, m = e.itemHeight, b = e.virtual, S = e.focusable, C = e.activeItem, g = e.focused, N = e.tabIndex, x = e.onKeyDown, w = e.onFocus, R = e.onBlur, M = e.onActiveChange, I = e.onListChangeStart, F = e.onListChangeEnd, k = st(e, Es), A = c.useRef(null), L = c.useRef(null);
5504
+ var a = e.expandedKeys, l = e.selectedKeys, s = e.checkedKeys, o = e.loadedKeys, i = e.loadingKeys, u = e.halfCheckedKeys, d = e.keyEntities, f = e.disabled, h = e.dragging, v = e.dragOverNodeKey, p = e.dropPosition, y = e.motion, b = e.height, m = e.itemHeight, E = e.virtual, S = e.focusable, C = e.activeItem, g = e.focused, N = e.tabIndex, x = e.onKeyDown, w = e.onFocus, R = e.onBlur, M = e.onActiveChange, I = e.onListChangeStart, F = e.onListChangeEnd, k = st(e, bs), A = c.useRef(null), L = c.useRef(null);
5505
5505
  c.useImperativeHandle(n, function() {
5506
5506
  return {
5507
5507
  scrollTo: function(ve) {
@@ -5512,7 +5512,7 @@ var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5512
5512
  }
5513
5513
  };
5514
5514
  });
5515
- var O = c.useState(a), W = V(O, 2), z = W[0], G = W[1], he = c.useState(t), Y = V(he, 2), ce = Y[0], re = Y[1], ne = c.useState(t), Q = V(ne, 2), B = Q[0], H = Q[1], j = c.useState([]), de = V(j, 2), ue = de[0], Z = de[1], T = c.useState(null), ee = V(T, 2), Ee = ee[0], pe = ee[1], Re = c.useRef(t);
5515
+ var O = c.useState(a), W = V(O, 2), z = W[0], G = W[1], he = c.useState(t), Y = V(he, 2), ce = Y[0], re = Y[1], ne = c.useState(t), Q = V(ne, 2), B = Q[0], H = Q[1], j = c.useState([]), de = V(j, 2), ue = de[0], Z = de[1], P = c.useState(null), ee = V(P, 2), be = ee[0], pe = ee[1], Re = c.useRef(t);
5516
5516
  Re.current = t;
5517
5517
  function we() {
5518
5518
  var $ = Re.current;
@@ -5526,14 +5526,14 @@ var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5526
5526
  var ve = ce.findIndex(function(me) {
5527
5527
  var Se = me.key;
5528
5528
  return Se === $.key;
5529
- }), ae = Ia(_a(ce, t, $.key), b, E, m), se = ce.slice();
5529
+ }), ae = Ia(_a(ce, t, $.key), E, b, m), se = ce.slice();
5530
5530
  se.splice(ve + 1, 0, Ka), H(se), Z(ae), pe("show");
5531
5531
  } else {
5532
5532
  var q = t.findIndex(function(me) {
5533
5533
  var Se = me.key;
5534
5534
  return Se === $.key;
5535
- }), ie = Ia(_a(t, ce, $.key), b, E, m), be = t.slice();
5536
- be.splice(q + 1, 0, Ka), H(be), Z(ie), pe("hide");
5535
+ }), ie = Ia(_a(t, ce, $.key), E, b, m), Ee = t.slice();
5536
+ Ee.splice(q + 1, 0, Ka), H(Ee), Z(ie), pe("hide");
5537
5537
  }
5538
5538
  else
5539
5539
  ce !== t && (re(t), H(t));
@@ -5562,7 +5562,7 @@ var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5562
5562
  onFocus: w,
5563
5563
  onBlur: R,
5564
5564
  value: "",
5565
- onChange: bs,
5565
+ onChange: Es,
5566
5566
  "aria-label": "for screen reader"
5567
5567
  })), /* @__PURE__ */ c.createElement("div", {
5568
5568
  className: "".concat(r, "-treenode"),
@@ -5584,9 +5584,9 @@ var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5584
5584
  }))), /* @__PURE__ */ c.createElement(Vr, Le({}, k, {
5585
5585
  data: Me,
5586
5586
  itemKey: La,
5587
- height: E,
5587
+ height: b,
5588
5588
  fullHeight: !1,
5589
- virtual: b,
5589
+ virtual: E,
5590
5590
  itemHeight: m,
5591
5591
  prefixCls: "".concat(r, "-list"),
5592
5592
  ref: A,
@@ -5599,7 +5599,7 @@ var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5599
5599
  }) && we();
5600
5600
  }
5601
5601
  }), function($) {
5602
- var ve = $.pos, ae = Le({}, (jo($.data), $.data)), se = $.title, q = $.key, ie = $.isStart, be = $.isEnd, me = On(q, ve);
5602
+ var ve = $.pos, ae = Le({}, (jo($.data), $.data)), se = $.title, q = $.key, ie = $.isStart, Ee = $.isEnd, me = On(q, ve);
5603
5603
  delete ae.key, delete ae.children;
5604
5604
  var Se = Mn(me, fe);
5605
5605
  return /* @__PURE__ */ c.createElement(gs, Le({}, ae, Se, {
@@ -5608,10 +5608,10 @@ var Yo = /* @__PURE__ */ c.forwardRef(function(e, n) {
5608
5608
  pos: ve,
5609
5609
  data: $.data,
5610
5610
  isStart: ie,
5611
- isEnd: be,
5611
+ isEnd: Ee,
5612
5612
  motion: y,
5613
5613
  motionNodes: q === Zt ? ue : null,
5614
- motionType: Ee,
5614
+ motionType: be,
5615
5615
  onMotionStart: I,
5616
5616
  onMotionEnd: we,
5617
5617
  treeNodeRequiredProps: fe,
@@ -5700,12 +5700,12 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5700
5700
  node: ht(i.props)
5701
5701
  });
5702
5702
  }, t.onNodeDragEnter = function(o, i) {
5703
- var u = t.state, d = u.expandedKeys, f = u.keyEntities, h = u.dragChildrenKeys, v = u.flattenNodes, p = u.indent, y = t.props, E = y.onDragEnter, m = y.onExpand, b = y.allowDrop, S = y.direction, C = i.props, g = C.pos, N = C.eventKey, x = It(t), w = x.dragNode;
5703
+ var u = t.state, d = u.expandedKeys, f = u.keyEntities, h = u.dragChildrenKeys, v = u.flattenNodes, p = u.indent, y = t.props, b = y.onDragEnter, m = y.onExpand, E = y.allowDrop, S = y.direction, C = i.props, g = C.pos, N = C.eventKey, x = It(t), w = x.dragNode;
5704
5704
  if (t.currentMouseOverDroppableNodeKey !== N && (t.currentMouseOverDroppableNodeKey = N), !w) {
5705
5705
  t.resetDragState();
5706
5706
  return;
5707
5707
  }
5708
- var R = ka(o, w, i, p, t.dragStartMousePosition, b, v, f, d, S), M = R.dropPosition, I = R.dropLevelOffset, F = R.dropTargetKey, k = R.dropContainerKey, A = R.dropTargetPos, L = R.dropAllowed, O = R.dragOverNodeKey;
5708
+ var R = ka(o, w, i, p, t.dragStartMousePosition, E, v, f, d, S), M = R.dropPosition, I = R.dropLevelOffset, F = R.dropTargetKey, k = R.dropContainerKey, A = R.dropTargetPos, L = R.dropAllowed, O = R.dragOverNodeKey;
5709
5709
  if (
5710
5710
  // don't allow drop inside its children
5711
5711
  h.indexOf(F) !== -1 || // don't allow drop when drop is not allowed caculated by calcDropPosition
@@ -5737,15 +5737,15 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5737
5737
  dropContainerKey: k,
5738
5738
  dropTargetPos: A,
5739
5739
  dropAllowed: L
5740
- }), E == null || E({
5740
+ }), b == null || b({
5741
5741
  event: o,
5742
5742
  node: ht(i.props),
5743
5743
  expandedKeys: d
5744
5744
  });
5745
5745
  }, t.onNodeDragOver = function(o, i) {
5746
- var u = t.state, d = u.dragChildrenKeys, f = u.flattenNodes, h = u.keyEntities, v = u.expandedKeys, p = u.indent, y = t.props, E = y.onDragOver, m = y.allowDrop, b = y.direction, S = It(t), C = S.dragNode;
5746
+ var u = t.state, d = u.dragChildrenKeys, f = u.flattenNodes, h = u.keyEntities, v = u.expandedKeys, p = u.indent, y = t.props, b = y.onDragOver, m = y.allowDrop, E = y.direction, S = It(t), C = S.dragNode;
5747
5747
  if (C) {
5748
- var g = ka(o, C, i, p, t.dragStartMousePosition, m, f, h, v, b), N = g.dropPosition, x = g.dropLevelOffset, w = g.dropTargetKey, R = g.dropContainerKey, M = g.dropAllowed, I = g.dropTargetPos, F = g.dragOverNodeKey;
5748
+ var g = ka(o, C, i, p, t.dragStartMousePosition, m, f, h, v, E), N = g.dropPosition, x = g.dropLevelOffset, w = g.dropTargetKey, R = g.dropContainerKey, M = g.dropAllowed, I = g.dropTargetPos, F = g.dragOverNodeKey;
5749
5749
  d.indexOf(w) !== -1 || !M || (C.props.eventKey === w && x === 0 ? t.state.dropPosition === null && t.state.dropLevelOffset === null && t.state.dropTargetKey === null && t.state.dropContainerKey === null && t.state.dropTargetPos === null && t.state.dropAllowed === !1 && t.state.dragOverNodeKey === null || t.resetDragState() : N === t.state.dropPosition && x === t.state.dropLevelOffset && w === t.state.dropTargetKey && R === t.state.dropContainerKey && I === t.state.dropTargetPos && M === t.state.dropAllowed && F === t.state.dragOverNodeKey || t.setState({
5750
5750
  dropPosition: N,
5751
5751
  dropLevelOffset: x,
@@ -5754,7 +5754,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5754
5754
  dropTargetPos: I,
5755
5755
  dropAllowed: M,
5756
5756
  dragOverNodeKey: F
5757
- }), E == null || E({
5757
+ }), b == null || b({
5758
5758
  event: o,
5759
5759
  node: ht(i.props)
5760
5760
  }));
@@ -5777,20 +5777,20 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5777
5777
  node: ht(i.props)
5778
5778
  }), t.dragNode = null, window.removeEventListener("dragend", t.onWindowDragEnd);
5779
5779
  }, t.onNodeDrop = function(o, i) {
5780
- var u, d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, f = t.state, h = f.dragChildrenKeys, v = f.dropPosition, p = f.dropTargetKey, y = f.dropTargetPos, E = f.dropAllowed;
5781
- if (E) {
5780
+ var u, d = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, f = t.state, h = f.dragChildrenKeys, v = f.dropPosition, p = f.dropTargetKey, y = f.dropTargetPos, b = f.dropAllowed;
5781
+ if (b) {
5782
5782
  var m = t.props.onDrop;
5783
5783
  if (t.setState({
5784
5784
  dragOverNodeKey: null
5785
5785
  }), t.cleanDragState(), p !== null) {
5786
- var b = D(D({}, Mn(p, t.getTreeNodeRequiredProps())), {}, {
5786
+ var E = D(D({}, Mn(p, t.getTreeNodeRequiredProps())), {}, {
5787
5787
  active: ((u = t.getActiveItem()) === null || u === void 0 ? void 0 : u.key) === p,
5788
5788
  data: t.state.keyEntities[p].node
5789
5789
  }), S = h.indexOf(p) !== -1;
5790
- Te(!S, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");
5790
+ Pe(!S, "Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");
5791
5791
  var C = Hr(y), g = {
5792
5792
  event: o,
5793
- node: ht(b),
5793
+ node: ht(E),
5794
5794
  dragNode: t.dragNode ? ht(t.dragNode.props) : null,
5795
5795
  dragNodesKeys: [t.dragNode.props.eventKey].concat(h),
5796
5796
  dropToGap: v !== 0,
@@ -5815,10 +5815,10 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5815
5815
  if (!(p || o.shiftKey || o.metaKey || o.ctrlKey)) {
5816
5816
  var y = f.filter(function(m) {
5817
5817
  return m.key === v;
5818
- })[0], E = ht(D(D({}, Mn(v, t.getTreeNodeRequiredProps())), {}, {
5818
+ })[0], b = ht(D(D({}, Mn(v, t.getTreeNodeRequiredProps())), {}, {
5819
5819
  data: y.data
5820
5820
  }));
5821
- t.setExpandedKeys(h ? Vt(d, v) : Bt(d, v)), t.onNodeExpand(o, E);
5821
+ t.setExpandedKeys(h ? Vt(d, v) : Bt(d, v)), t.onNodeExpand(o, b);
5822
5822
  }
5823
5823
  }, t.onNodeClick = function(o, i) {
5824
5824
  var u = t.props, d = u.onClick, f = u.expandAction;
@@ -5827,8 +5827,8 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5827
5827
  var u = t.props, d = u.onDoubleClick, f = u.expandAction;
5828
5828
  f === "doubleClick" && t.triggerExpandActionExpand(o, i), d == null || d(o, i);
5829
5829
  }, t.onNodeSelect = function(o, i) {
5830
- var u = t.state.selectedKeys, d = t.state, f = d.keyEntities, h = d.fieldNames, v = t.props, p = v.onSelect, y = v.multiple, E = i.selected, m = i[h.key], b = !E;
5831
- b ? y ? u = Bt(u, m) : u = [m] : u = Vt(u, m);
5830
+ var u = t.state.selectedKeys, d = t.state, f = d.keyEntities, h = d.fieldNames, v = t.props, p = v.onSelect, y = v.multiple, b = i.selected, m = i[h.key], E = !b;
5831
+ E ? y ? u = Bt(u, m) : u = [m] : u = Vt(u, m);
5832
5832
  var S = u.map(function(C) {
5833
5833
  var g = f[C];
5834
5834
  return g ? g.node : null;
@@ -5839,13 +5839,13 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5839
5839
  selectedKeys: u
5840
5840
  }), p == null || p(u, {
5841
5841
  event: "select",
5842
- selected: b,
5842
+ selected: E,
5843
5843
  node: i,
5844
5844
  selectedNodes: S,
5845
5845
  nativeEvent: o.nativeEvent
5846
5846
  });
5847
5847
  }, t.onNodeCheck = function(o, i, u) {
5848
- var d = t.state, f = d.keyEntities, h = d.checkedKeys, v = d.halfCheckedKeys, p = t.props, y = p.checkStrictly, E = p.onCheck, m = i.key, b, S = {
5848
+ var d = t.state, f = d.keyEntities, h = d.checkedKeys, v = d.halfCheckedKeys, p = t.props, y = p.checkStrictly, b = p.onCheck, m = i.key, E, S = {
5849
5849
  event: "check",
5850
5850
  node: i,
5851
5851
  checked: u,
@@ -5853,7 +5853,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5853
5853
  };
5854
5854
  if (y) {
5855
5855
  var C = u ? Bt(h, m) : Vt(h, m), g = Vt(v, m);
5856
- b = {
5856
+ E = {
5857
5857
  checked: C,
5858
5858
  halfChecked: g
5859
5859
  }, S.checkedNodes = C.map(function(I) {
@@ -5876,7 +5876,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5876
5876
  }, f);
5877
5877
  x = M.checkedKeys, w = M.halfCheckedKeys;
5878
5878
  }
5879
- b = x, S.checkedNodes = [], S.checkedNodesPositions = [], S.halfCheckedKeys = w, x.forEach(function(I) {
5879
+ E = x, S.checkedNodes = [], S.checkedNodesPositions = [], S.halfCheckedKeys = w, x.forEach(function(I) {
5880
5880
  var F = f[I];
5881
5881
  if (F) {
5882
5882
  var k = F.node, A = F.pos;
@@ -5891,14 +5891,14 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5891
5891
  halfCheckedKeys: w
5892
5892
  });
5893
5893
  }
5894
- E == null || E(b, S);
5894
+ b == null || b(E, S);
5895
5895
  }, t.onNodeLoad = function(o) {
5896
5896
  var i = o.key, u = new Promise(function(d, f) {
5897
5897
  t.setState(function(h) {
5898
- var v = h.loadedKeys, p = v === void 0 ? [] : v, y = h.loadingKeys, E = y === void 0 ? [] : y, m = t.props, b = m.loadData, S = m.onLoad;
5899
- if (!b || p.indexOf(i) !== -1 || E.indexOf(i) !== -1)
5898
+ var v = h.loadedKeys, p = v === void 0 ? [] : v, y = h.loadingKeys, b = y === void 0 ? [] : y, m = t.props, E = m.loadData, S = m.onLoad;
5899
+ if (!E || p.indexOf(i) !== -1 || b.indexOf(i) !== -1)
5900
5900
  return null;
5901
- var C = b(o);
5901
+ var C = E(o);
5902
5902
  return C.then(function() {
5903
5903
  var g = t.state.loadedKeys, N = Bt(g, i);
5904
5904
  S == null || S(N, {
@@ -5918,13 +5918,13 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5918
5918
  };
5919
5919
  }), t.loadingRetryTimes[i] = (t.loadingRetryTimes[i] || 0) + 1, t.loadingRetryTimes[i] >= ws) {
5920
5920
  var N = t.state.loadedKeys;
5921
- Te(!1, "Retry for `loadData` many times but still failed. No more retry."), t.setUncontrolledState({
5921
+ Pe(!1, "Retry for `loadData` many times but still failed. No more retry."), t.setUncontrolledState({
5922
5922
  loadedKeys: Bt(N, i)
5923
5923
  }), d();
5924
5924
  }
5925
5925
  f(g);
5926
5926
  }), {
5927
- loadingKeys: Bt(E, i)
5927
+ loadingKeys: Bt(b, i)
5928
5928
  };
5929
5929
  });
5930
5930
  });
@@ -5965,7 +5965,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5965
5965
  u[d] = arguments[d];
5966
5966
  o == null || o.apply(void 0, u);
5967
5967
  }, t.getTreeNodeRequiredProps = function() {
5968
- var o = t.state, i = o.expandedKeys, u = o.selectedKeys, d = o.loadedKeys, f = o.loadingKeys, h = o.checkedKeys, v = o.halfCheckedKeys, p = o.dragOverNodeKey, y = o.dropPosition, E = o.keyEntities;
5968
+ var o = t.state, i = o.expandedKeys, u = o.selectedKeys, d = o.loadedKeys, f = o.loadingKeys, h = o.checkedKeys, v = o.halfCheckedKeys, p = o.dragOverNodeKey, y = o.dropPosition, b = o.keyEntities;
5969
5969
  return {
5970
5970
  expandedKeys: i || [],
5971
5971
  selectedKeys: u || [],
@@ -5975,7 +5975,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5975
5975
  halfCheckedKeys: v || [],
5976
5976
  dragOverNodeKey: p,
5977
5977
  dropPosition: y,
5978
- keyEntities: E
5978
+ keyEntities: b
5979
5979
  };
5980
5980
  }, t.setExpandedKeys = function(o) {
5981
5981
  var i = t.state, u = i.treeData, d = i.fieldNames, f = ur(u, o, d);
@@ -5984,10 +5984,10 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
5984
5984
  flattenNodes: f
5985
5985
  }, !0);
5986
5986
  }, t.onNodeExpand = function(o, i) {
5987
- var u = t.state.expandedKeys, d = t.state, f = d.listChanging, h = d.fieldNames, v = t.props, p = v.onExpand, y = v.loadData, E = i.expanded, m = i[h.key];
5987
+ var u = t.state.expandedKeys, d = t.state, f = d.listChanging, h = d.fieldNames, v = t.props, p = v.onExpand, y = v.loadData, b = i.expanded, m = i[h.key];
5988
5988
  if (!f) {
5989
- var b = u.indexOf(m), S = !E;
5990
- if (Te(E && b !== -1 || !E && b === -1, "Expand state not sync with index check"), S ? u = Bt(u, m) : u = Vt(u, m), t.setExpandedKeys(u), p == null || p(u, {
5989
+ var E = u.indexOf(m), S = !b;
5990
+ if (Pe(b && E !== -1 || !b && E === -1, "Expand state not sync with index check"), S ? u = Bt(u, m) : u = Vt(u, m), t.setExpandedKeys(u), p == null || p(u, {
5991
5991
  node: i,
5992
5992
  expanded: S,
5993
5993
  nativeEvent: o.nativeEvent
@@ -6040,35 +6040,35 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6040
6040
  } else
6041
6041
  t.onActiveChange(null);
6042
6042
  }, t.onKeyDown = function(o) {
6043
- var i = t.state, u = i.activeKey, d = i.expandedKeys, f = i.checkedKeys, h = i.fieldNames, v = t.props, p = v.onKeyDown, y = v.checkable, E = v.selectable;
6043
+ var i = t.state, u = i.activeKey, d = i.expandedKeys, f = i.checkedKeys, h = i.fieldNames, v = t.props, p = v.onKeyDown, y = v.checkable, b = v.selectable;
6044
6044
  switch (o.which) {
6045
- case P.UP: {
6045
+ case T.UP: {
6046
6046
  t.offsetActiveKey(-1), o.preventDefault();
6047
6047
  break;
6048
6048
  }
6049
- case P.DOWN: {
6049
+ case T.DOWN: {
6050
6050
  t.offsetActiveKey(1), o.preventDefault();
6051
6051
  break;
6052
6052
  }
6053
6053
  }
6054
6054
  var m = t.getActiveItem();
6055
6055
  if (m && m.data) {
6056
- var b = t.getTreeNodeRequiredProps(), S = m.data.isLeaf === !1 || !!(m.data[h.children] || []).length, C = ht(D(D({}, Mn(u, b)), {}, {
6056
+ var E = t.getTreeNodeRequiredProps(), S = m.data.isLeaf === !1 || !!(m.data[h.children] || []).length, C = ht(D(D({}, Mn(u, E)), {}, {
6057
6057
  data: m.data,
6058
6058
  active: !0
6059
6059
  }));
6060
6060
  switch (o.which) {
6061
- case P.LEFT: {
6061
+ case T.LEFT: {
6062
6062
  S && d.includes(u) ? t.onNodeExpand({}, C) : m.parent && t.onActiveChange(m.parent.key), o.preventDefault();
6063
6063
  break;
6064
6064
  }
6065
- case P.RIGHT: {
6065
+ case T.RIGHT: {
6066
6066
  S && !d.includes(u) ? t.onNodeExpand({}, C) : m.children && m.children.length && t.onActiveChange(m.children[0].key), o.preventDefault();
6067
6067
  break;
6068
6068
  }
6069
- case P.ENTER:
6070
- case P.SPACE: {
6071
- y && !C.disabled && C.checkable !== !1 && !C.disableCheckbox ? t.onNodeCheck({}, C, !f.includes(u)) : !y && E && !C.disabled && C.selectable !== !1 && t.onNodeSelect({}, C);
6069
+ case T.ENTER:
6070
+ case T.SPACE: {
6071
+ y && !C.disabled && C.checkable !== !1 && !C.disableCheckbox ? t.onNodeCheck({}, C, !f.includes(u)) : !y && b && !C.disabled && C.selectable !== !1 && t.onNodeSelect({}, C);
6072
6072
  break;
6073
6073
  }
6074
6074
  }
@@ -6131,7 +6131,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6131
6131
  }, {
6132
6132
  key: "render",
6133
6133
  value: function() {
6134
- var a, l = this.state, s = l.focused, o = l.flattenNodes, i = l.keyEntities, u = l.draggingNodeKey, d = l.activeKey, f = l.dropLevelOffset, h = l.dropContainerKey, v = l.dropTargetKey, p = l.dropPosition, y = l.dragOverNodeKey, E = l.indent, m = this.props, b = m.prefixCls, S = m.className, C = m.style, g = m.showLine, N = m.focusable, x = m.tabIndex, w = x === void 0 ? 0 : x, R = m.selectable, M = m.showIcon, I = m.icon, F = m.switcherIcon, k = m.draggable, A = m.checkable, L = m.checkStrictly, O = m.disabled, W = m.motion, z = m.loadData, G = m.filterTreeNode, he = m.height, Y = m.itemHeight, ce = m.virtual, re = m.titleRender, ne = m.dropIndicatorRender, Q = m.onContextMenu, B = m.onScroll, H = m.direction, j = m.rootClassName, de = m.rootStyle, ue = vn(this.props, {
6134
+ var a, l = this.state, s = l.focused, o = l.flattenNodes, i = l.keyEntities, u = l.draggingNodeKey, d = l.activeKey, f = l.dropLevelOffset, h = l.dropContainerKey, v = l.dropTargetKey, p = l.dropPosition, y = l.dragOverNodeKey, b = l.indent, m = this.props, E = m.prefixCls, S = m.className, C = m.style, g = m.showLine, N = m.focusable, x = m.tabIndex, w = x === void 0 ? 0 : x, R = m.selectable, M = m.showIcon, I = m.icon, F = m.switcherIcon, k = m.draggable, A = m.checkable, L = m.checkStrictly, O = m.disabled, W = m.motion, z = m.loadData, G = m.filterTreeNode, he = m.height, Y = m.itemHeight, ce = m.virtual, re = m.titleRender, ne = m.dropIndicatorRender, Q = m.onContextMenu, B = m.onScroll, H = m.direction, j = m.rootClassName, de = m.rootStyle, ue = vn(this.props, {
6135
6135
  aria: !0,
6136
6136
  data: !0
6137
6137
  }), Z;
@@ -6139,7 +6139,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6139
6139
  nodeDraggable: k
6140
6140
  } : Z = {}), /* @__PURE__ */ c.createElement(Fr.Provider, {
6141
6141
  value: {
6142
- prefixCls: b,
6142
+ prefixCls: E,
6143
6143
  selectable: R,
6144
6144
  showIcon: M,
6145
6145
  icon: I,
@@ -6155,7 +6155,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6155
6155
  dropTargetKey: v,
6156
6156
  dropPosition: p,
6157
6157
  dragOverNodeKey: y,
6158
- indent: E,
6158
+ indent: b,
6159
6159
  direction: H,
6160
6160
  dropIndicatorRender: ne,
6161
6161
  loadData: z,
@@ -6179,11 +6179,11 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6179
6179
  }
6180
6180
  }, /* @__PURE__ */ c.createElement("div", {
6181
6181
  role: "tree",
6182
- className: Ve(b, S, j, (a = {}, J(a, "".concat(b, "-show-line"), g), J(a, "".concat(b, "-focused"), s), J(a, "".concat(b, "-active-focused"), d !== null), a)),
6182
+ className: Ve(E, S, j, (a = {}, J(a, "".concat(E, "-show-line"), g), J(a, "".concat(E, "-focused"), s), J(a, "".concat(E, "-active-focused"), d !== null), a)),
6183
6183
  style: de
6184
6184
  }, /* @__PURE__ */ c.createElement(Yo, Le({
6185
6185
  ref: this.listRef,
6186
- prefixCls: b,
6186
+ prefixCls: E,
6187
6187
  style: C,
6188
6188
  data: o,
6189
6189
  disabled: O,
@@ -6218,7 +6218,7 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6218
6218
  return !s && N in a || s && s[N] !== a[N];
6219
6219
  }
6220
6220
  var u, d = l.fieldNames;
6221
- if (i("fieldNames") && (d = Yn(a.fieldNames), o.fieldNames = d), i("treeData") ? u = a.treeData : i("children") && (Te(!1, "`children` of Tree is deprecated. Please use `treeData` instead."), u = ls(a.children)), u) {
6221
+ if (i("fieldNames") && (d = Yn(a.fieldNames), o.fieldNames = d), i("treeData") ? u = a.treeData : i("children") && (Pe(!1, "`children` of Tree is deprecated. Please use `treeData` instead."), u = ls(a.children)), u) {
6222
6222
  o.treeData = u;
6223
6223
  var f = Wo(u, {
6224
6224
  fieldNames: d
@@ -6227,30 +6227,30 @@ var ws = 10, Ur = /* @__PURE__ */ function(e) {
6227
6227
  }
6228
6228
  var h = o.keyEntities || l.keyEntities;
6229
6229
  if (i("expandedKeys") || s && i("autoExpandParent"))
6230
- o.expandedKeys = a.autoExpandParent || !s && a.defaultExpandParent ? Ta(a.expandedKeys, h) : a.expandedKeys;
6230
+ o.expandedKeys = a.autoExpandParent || !s && a.defaultExpandParent ? Pa(a.expandedKeys, h) : a.expandedKeys;
6231
6231
  else if (!s && a.defaultExpandAll) {
6232
6232
  var v = D({}, h);
6233
6233
  delete v[Zt], o.expandedKeys = Object.keys(v).map(function(N) {
6234
6234
  return v[N].key;
6235
6235
  });
6236
6236
  } else
6237
- !s && a.defaultExpandedKeys && (o.expandedKeys = a.autoExpandParent || a.defaultExpandParent ? Ta(a.defaultExpandedKeys, h) : a.defaultExpandedKeys);
6237
+ !s && a.defaultExpandedKeys && (o.expandedKeys = a.autoExpandParent || a.defaultExpandParent ? Pa(a.defaultExpandedKeys, h) : a.defaultExpandedKeys);
6238
6238
  if (o.expandedKeys || delete o.expandedKeys, u || o.expandedKeys) {
6239
6239
  var p = ur(u || l.treeData, o.expandedKeys || l.expandedKeys, d);
6240
6240
  o.flattenNodes = p;
6241
6241
  }
6242
- if (a.selectable && (i("selectedKeys") ? o.selectedKeys = Pa(a.selectedKeys, a) : !s && a.defaultSelectedKeys && (o.selectedKeys = Pa(a.defaultSelectedKeys, a))), a.checkable) {
6242
+ if (a.selectable && (i("selectedKeys") ? o.selectedKeys = Ta(a.selectedKeys, a) : !s && a.defaultSelectedKeys && (o.selectedKeys = Ta(a.defaultSelectedKeys, a))), a.checkable) {
6243
6243
  var y;
6244
6244
  if (i("checkedKeys") ? y = sr(a.checkedKeys) || {} : !s && a.defaultCheckedKeys ? y = sr(a.defaultCheckedKeys) || {} : u && (y = sr(a.checkedKeys) || {
6245
6245
  checkedKeys: l.checkedKeys,
6246
6246
  halfCheckedKeys: l.halfCheckedKeys
6247
6247
  }), y) {
6248
- var E = y, m = E.checkedKeys, b = m === void 0 ? [] : m, S = E.halfCheckedKeys, C = S === void 0 ? [] : S;
6248
+ var b = y, m = b.checkedKeys, E = m === void 0 ? [] : m, S = b.halfCheckedKeys, C = S === void 0 ? [] : S;
6249
6249
  if (!a.checkStrictly) {
6250
- var g = fn(b, !0, h);
6251
- b = g.checkedKeys, C = g.halfCheckedKeys;
6250
+ var g = fn(E, !0, h);
6251
+ E = g.checkedKeys, C = g.halfCheckedKeys;
6252
6252
  }
6253
- o.checkedKeys = b, o.halfCheckedKeys = C;
6253
+ o.checkedKeys = E, o.halfCheckedKeys = C;
6254
6254
  }
6255
6255
  }
6256
6256
  return i("loadedKeys") && (o.loadedKeys = a.loadedKeys), o;
@@ -6279,7 +6279,7 @@ Ur.defaultProps = {
6279
6279
  },
6280
6280
  expandAction: !1
6281
6281
  };
6282
- Ur.TreeNode = Pn;
6282
+ Ur.TreeNode = Tn;
6283
6283
  var qo = /* @__PURE__ */ c.createContext(null), Qo = /* @__PURE__ */ c.createContext(null);
6284
6284
  function Zo(e) {
6285
6285
  return Array.isArray(e) ? e : e !== void 0 ? [e] : [];
@@ -6319,7 +6319,7 @@ var Rs = {
6319
6319
  padding: 0,
6320
6320
  margin: 0
6321
6321
  }, Ms = function(n, r) {
6322
- var t = Ya(), a = t.prefixCls, l = t.multiple, s = t.searchValue, o = t.toggleOpen, i = t.open, u = t.notFoundContent, d = c.useContext(Qo), f = d.virtual, h = d.listHeight, v = d.listItemHeight, p = d.treeData, y = d.fieldNames, E = d.onSelect, m = d.dropdownMatchSelectWidth, b = d.treeExpandAction, S = c.useContext(qo), C = S.checkable, g = S.checkedKeys, N = S.halfCheckedKeys, x = S.treeExpandedKeys, w = S.treeDefaultExpandAll, R = S.treeDefaultExpandedKeys, M = S.onTreeExpand, I = S.treeIcon, F = S.showTreeIcon, k = S.switcherIcon, A = S.treeLine, L = S.treeNodeFilterProp, O = S.loadData, W = S.treeLoadedKeys, z = S.treeMotion, G = S.onTreeLoad, he = S.keyEntities, Y = c.useRef(), ce = kr(function() {
6322
+ var t = Ya(), a = t.prefixCls, l = t.multiple, s = t.searchValue, o = t.toggleOpen, i = t.open, u = t.notFoundContent, d = c.useContext(Qo), f = d.virtual, h = d.listHeight, v = d.listItemHeight, p = d.treeData, y = d.fieldNames, b = d.onSelect, m = d.dropdownMatchSelectWidth, E = d.treeExpandAction, S = c.useContext(qo), C = S.checkable, g = S.checkedKeys, N = S.halfCheckedKeys, x = S.treeExpandedKeys, w = S.treeDefaultExpandAll, R = S.treeDefaultExpandedKeys, M = S.onTreeExpand, I = S.treeIcon, F = S.showTreeIcon, k = S.switcherIcon, A = S.treeLine, L = S.treeNodeFilterProp, O = S.loadData, W = S.treeLoadedKeys, z = S.treeMotion, G = S.onTreeLoad, he = S.keyEntities, Y = c.useRef(), ce = kr(function() {
6323
6323
  return p;
6324
6324
  }, [i, p], function(q, ie) {
6325
6325
  return ie[0] && q[1] !== ie[1];
@@ -6339,9 +6339,9 @@ var Rs = {
6339
6339
  }, [i]);
6340
6340
  var ne = String(s).toLowerCase(), Q = function(ie) {
6341
6341
  return ne ? String(ie[L]).toLowerCase().includes(ne) : !1;
6342
- }, B = c.useState(R), H = V(B, 2), j = H[0], de = H[1], ue = c.useState(null), Z = V(ue, 2), T = Z[0], ee = Z[1], Ee = c.useMemo(function() {
6343
- return x ? je(x) : s ? T : j;
6344
- }, [j, T, x, s]);
6342
+ }, B = c.useState(R), H = V(B, 2), j = H[0], de = H[1], ue = c.useState(null), Z = V(ue, 2), P = Z[0], ee = Z[1], be = c.useMemo(function() {
6343
+ return x ? je(x) : s ? P : j;
6344
+ }, [j, P, x, s]);
6345
6345
  c.useEffect(function() {
6346
6346
  s && ee(xs(p, y));
6347
6347
  }, [s]);
@@ -6349,9 +6349,9 @@ var Rs = {
6349
6349
  de(ie), ee(ie), M && M(ie);
6350
6350
  }, Re = function(ie) {
6351
6351
  ie.preventDefault();
6352
- }, we = function(ie, be) {
6353
- var me = be.node;
6354
- C && Nr(me) || (E(me.key, {
6352
+ }, we = function(ie, Ee) {
6353
+ var me = Ee.node;
6354
+ C && Nr(me) || (b(me.key, {
6355
6355
  selected: !g.includes(me.key)
6356
6356
  }), l || o(!1));
6357
6357
  }, Me = c.useState(null), fe = V(Me, 2), $ = fe[0], ve = fe[1], ae = he[$];
@@ -6359,16 +6359,16 @@ var Rs = {
6359
6359
  var q;
6360
6360
  return {
6361
6361
  scrollTo: (q = Y.current) === null || q === void 0 ? void 0 : q.scrollTo,
6362
- onKeyDown: function(be) {
6363
- var me, Se = be.which;
6362
+ onKeyDown: function(Ee) {
6363
+ var me, Se = Ee.which;
6364
6364
  switch (Se) {
6365
- case P.UP:
6366
- case P.DOWN:
6367
- case P.LEFT:
6368
- case P.RIGHT:
6369
- (me = Y.current) === null || me === void 0 || me.onKeyDown(be);
6365
+ case T.UP:
6366
+ case T.DOWN:
6367
+ case T.LEFT:
6368
+ case T.RIGHT:
6369
+ (me = Y.current) === null || me === void 0 || me.onKeyDown(Ee);
6370
6370
  break;
6371
- case P.ENTER: {
6371
+ case T.ENTER: {
6372
6372
  if (ae) {
6373
6373
  var Ie = (ae == null ? void 0 : ae.node) || {}, De = Ie.selectable, Je = Ie.value;
6374
6374
  De !== !1 && we(null, {
@@ -6380,7 +6380,7 @@ var Rs = {
6380
6380
  }
6381
6381
  break;
6382
6382
  }
6383
- case P.ESC:
6383
+ case T.ESC:
6384
6384
  o(!1);
6385
6385
  }
6386
6386
  },
@@ -6396,7 +6396,7 @@ var Rs = {
6396
6396
  var se = {
6397
6397
  fieldNames: y
6398
6398
  };
6399
- return W && (se.loadedKeys = W), Ee && (se.expandedKeys = Ee), /* @__PURE__ */ c.createElement("div", {
6399
+ return W && (se.loadedKeys = W), be && (se.expandedKeys = be), /* @__PURE__ */ c.createElement("div", {
6400
6400
  onMouseDown: Re
6401
6401
  }, ae && i && /* @__PURE__ */ c.createElement("span", {
6402
6402
  style: Rs,
@@ -6430,7 +6430,7 @@ var Rs = {
6430
6430
  onExpand: pe,
6431
6431
  onLoad: G,
6432
6432
  filterTreeNode: Q,
6433
- expandAction: b
6433
+ expandAction: E
6434
6434
  })));
6435
6435
  }, Xo = /* @__PURE__ */ c.forwardRef(Ms);
6436
6436
  Xo.displayName = "OptionList";
@@ -6473,24 +6473,24 @@ function Rr(e) {
6473
6473
  var n = D({}, e);
6474
6474
  return "props" in n || Object.defineProperty(n, "props", {
6475
6475
  get: function() {
6476
- return Te(!1, "New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."), n;
6476
+ return Pe(!1, "New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."), n;
6477
6477
  }
6478
6478
  }), n;
6479
6479
  }
6480
- function Ps(e, n, r, t, a, l) {
6480
+ function Ts(e, n, r, t, a, l) {
6481
6481
  var s = null, o = null;
6482
6482
  function i() {
6483
6483
  function u(d) {
6484
6484
  var f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "0", h = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
6485
6485
  return d.map(function(v, p) {
6486
- var y = "".concat(f, "-").concat(p), E = v[l.value], m = r.includes(E), b = u(v[l.children] || [], y, m), S = /* @__PURE__ */ c.createElement(Jo, v, b.map(function(g) {
6486
+ var y = "".concat(f, "-").concat(p), b = v[l.value], m = r.includes(b), E = u(v[l.children] || [], y, m), S = /* @__PURE__ */ c.createElement(Jo, v, E.map(function(g) {
6487
6487
  return g.node;
6488
6488
  }));
6489
- if (n === E && (s = S), m) {
6489
+ if (n === b && (s = S), m) {
6490
6490
  var C = {
6491
6491
  pos: y,
6492
6492
  node: S,
6493
- children: b
6493
+ children: E
6494
6494
  };
6495
6495
  return h || o.push(C), C;
6496
6496
  }
@@ -6506,18 +6506,18 @@ function Ps(e, n, r, t, a, l) {
6506
6506
  }
6507
6507
  Object.defineProperty(e, "triggerNode", {
6508
6508
  get: function() {
6509
- return Te(!1, "`triggerNode` is deprecated. Please consider decoupling data with node."), i(), s;
6509
+ return Pe(!1, "`triggerNode` is deprecated. Please consider decoupling data with node."), i(), s;
6510
6510
  }
6511
6511
  }), Object.defineProperty(e, "allCheckedNodes", {
6512
6512
  get: function() {
6513
- return Te(!1, "`allCheckedNodes` is deprecated. Please consider decoupling data with node."), i(), a ? o : o.map(function(d) {
6513
+ return Pe(!1, "`allCheckedNodes` is deprecated. Please consider decoupling data with node."), i(), a ? o : o.map(function(d) {
6514
6514
  var f = d.node;
6515
6515
  return f;
6516
6516
  });
6517
6517
  }
6518
6518
  });
6519
6519
  }
6520
- function Ts(e, n) {
6520
+ function Ps(e, n) {
6521
6521
  var r = n.id, t = n.pId, a = n.rootPId, l = {}, s = [], o = e.map(function(i) {
6522
6522
  var u = D({}, i), d = u[r];
6523
6523
  return l[d] = u, u.key = u.key || d, u;
@@ -6529,7 +6529,7 @@ function Ts(e, n) {
6529
6529
  }
6530
6530
  function _s(e, n, r) {
6531
6531
  return c.useMemo(function() {
6532
- return e ? r ? Ts(e, D({
6532
+ return e ? r ? Ps(e, D({
6533
6533
  id: "id",
6534
6534
  pId: "pId",
6535
6535
  rootPId: null
@@ -6571,7 +6571,7 @@ const Ks = function(e, n) {
6571
6571
  var s = a.node[n.value];
6572
6572
  if (process.env.NODE_ENV !== "production") {
6573
6573
  var o = a.node.key;
6574
- Te(!xr(s), "TreeNode `value` is invalidate: undefined"), Te(!l.valueEntities.has(s), "Same `value` exist in the tree: ".concat(s)), Te(!o || String(o) === String(s), "`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(o, ", value: ").concat(s, "."));
6574
+ Pe(!xr(s), "TreeNode `value` is invalidate: undefined"), Pe(!l.valueEntities.has(s), "Same `value` exist in the tree: ".concat(s)), Pe(!o || String(o) === String(s), "`key` or `value` with TreeNode must be the same or you can remove one of them. key: ".concat(o, ", value: ").concat(s, "."));
6575
6575
  }
6576
6576
  l.valueEntities.set(s, a);
6577
6577
  }
@@ -6631,16 +6631,16 @@ const Ks = function(e, n) {
6631
6631
  };
6632
6632
  function As(e) {
6633
6633
  var n = e.searchPlaceholder, r = e.treeCheckStrictly, t = e.treeCheckable, a = e.labelInValue, l = e.value, s = e.multiple;
6634
- Te(!n, "`searchPlaceholder` has been removed."), r && a === !1 && Te(!1, "`treeCheckStrictly` will force set `labelInValue` to `true`."), (a || r) && Te(Zo(l).every(function(o) {
6634
+ Pe(!n, "`searchPlaceholder` has been removed."), r && a === !1 && Pe(!1, "`treeCheckStrictly` will force set `labelInValue` to `true`."), (a || r) && Pe(Zo(l).every(function(o) {
6635
6635
  return o && ct(o) === "object" && "value" in o;
6636
- }), "Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."), r || s || t ? Te(!l || Array.isArray(l), "`value` should be an array when `TreeSelect` is checkable or multiple.") : Te(!Array.isArray(l), "`value` should not be array when `TreeSelect` is single mode.");
6636
+ }), "Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."), r || s || t ? Pe(!l || Array.isArray(l), "`value` should be an array when `TreeSelect` is checkable or multiple.") : Pe(!Array.isArray(l), "`value` should not be array when `TreeSelect` is single mode.");
6637
6637
  }
6638
6638
  var $s = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];
6639
6639
  function Vs(e) {
6640
6640
  return !e || ct(e) !== "object";
6641
6641
  }
6642
6642
  var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6643
- var r = e.id, t = e.prefixCls, a = t === void 0 ? "rc-tree-select" : t, l = e.value, s = e.defaultValue, o = e.onChange, i = e.onSelect, u = e.onDeselect, d = e.searchValue, f = e.inputValue, h = e.onSearch, v = e.autoClearSearchValue, p = v === void 0 ? !0 : v, y = e.filterTreeNode, E = e.treeNodeFilterProp, m = E === void 0 ? "value" : E, b = e.showCheckedStrategy, S = b === void 0 ? Wr : b, C = e.treeNodeLabelProp, g = e.multiple, N = e.treeCheckable, x = e.treeCheckStrictly, w = e.labelInValue, R = e.fieldNames, M = e.treeDataSimpleMode, I = e.treeData, F = e.children, k = e.loadData, A = e.treeLoadedKeys, L = e.onTreeLoad, O = e.treeDefaultExpandAll, W = e.treeExpandedKeys, z = e.treeDefaultExpandedKeys, G = e.onTreeExpand, he = e.treeExpandAction, Y = e.virtual, ce = e.listHeight, re = ce === void 0 ? 200 : ce, ne = e.listItemHeight, Q = ne === void 0 ? 20 : ne, B = e.onDropdownVisibleChange, H = e.dropdownMatchSelectWidth, j = H === void 0 ? !0 : H, de = e.treeLine, ue = e.treeIcon, Z = e.showTreeIcon, T = e.switcherIcon, ee = e.treeMotion, Ee = st(e, $s), pe = _o(r), Re = N && !x, we = N || x, Me = x || w, fe = we || g, $ = Dn(s, {
6643
+ var r = e.id, t = e.prefixCls, a = t === void 0 ? "rc-tree-select" : t, l = e.value, s = e.defaultValue, o = e.onChange, i = e.onSelect, u = e.onDeselect, d = e.searchValue, f = e.inputValue, h = e.onSearch, v = e.autoClearSearchValue, p = v === void 0 ? !0 : v, y = e.filterTreeNode, b = e.treeNodeFilterProp, m = b === void 0 ? "value" : b, E = e.showCheckedStrategy, S = E === void 0 ? Wr : E, C = e.treeNodeLabelProp, g = e.multiple, N = e.treeCheckable, x = e.treeCheckStrictly, w = e.labelInValue, R = e.fieldNames, M = e.treeDataSimpleMode, I = e.treeData, F = e.children, k = e.loadData, A = e.treeLoadedKeys, L = e.onTreeLoad, O = e.treeDefaultExpandAll, W = e.treeExpandedKeys, z = e.treeDefaultExpandedKeys, G = e.onTreeExpand, he = e.treeExpandAction, Y = e.virtual, ce = e.listHeight, re = ce === void 0 ? 200 : ce, ne = e.listItemHeight, Q = ne === void 0 ? 20 : ne, B = e.onDropdownVisibleChange, H = e.dropdownMatchSelectWidth, j = H === void 0 ? !0 : H, de = e.treeLine, ue = e.treeIcon, Z = e.showTreeIcon, P = e.switcherIcon, ee = e.treeMotion, be = st(e, $s), pe = _o(r), Re = N && !x, we = N || x, Me = x || w, fe = we || g, $ = Dn(s, {
6644
6644
  value: l
6645
6645
  }), ve = V($, 2), ae = ve[0], se = ve[1];
6646
6646
  process.env.NODE_ENV !== "production" && As(e);
@@ -6656,15 +6656,15 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6656
6656
  postState: function(ke) {
6657
6657
  return ke || "";
6658
6658
  }
6659
- }), be = V(ie, 2), me = be[0], Se = be[1], Ie = function(ke) {
6659
+ }), Ee = V(ie, 2), me = Ee[0], Se = Ee[1], Ie = function(ke) {
6660
6660
  Se(ke), h == null || h(ke);
6661
6661
  }, De = _s(I, F, M), Je = Ks(De, q), Ge = Je.keyEntities, X = Je.valueEntities, le = c.useCallback(function(_e) {
6662
- var ke = [], Pe = [];
6662
+ var ke = [], Te = [];
6663
6663
  return _e.forEach(function(Oe) {
6664
- X.has(Oe) ? Pe.push(Oe) : ke.push(Oe);
6664
+ X.has(Oe) ? Te.push(Oe) : ke.push(Oe);
6665
6665
  }), {
6666
6666
  missingRawValues: ke,
6667
- existRawValues: Pe
6667
+ existRawValues: Te
6668
6668
  };
6669
6669
  }, [X]), Ae = Ls(De, me, {
6670
6670
  fieldNames: q,
@@ -6674,23 +6674,23 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6674
6674
  if (_e) {
6675
6675
  if (C)
6676
6676
  return _e[C];
6677
- for (var ke = q._title, Pe = 0; Pe < ke.length; Pe += 1) {
6678
- var Oe = _e[ke[Pe]];
6677
+ for (var ke = q._title, Te = 0; Te < ke.length; Te += 1) {
6678
+ var Oe = _e[ke[Te]];
6679
6679
  if (Oe !== void 0)
6680
6680
  return Oe;
6681
6681
  }
6682
6682
  }
6683
6683
  }, [q, C]), $e = c.useCallback(function(_e) {
6684
6684
  var ke = Zo(_e);
6685
- return ke.map(function(Pe) {
6686
- return Vs(Pe) ? {
6687
- value: Pe
6688
- } : Pe;
6685
+ return ke.map(function(Te) {
6686
+ return Vs(Te) ? {
6687
+ value: Te
6688
+ } : Te;
6689
6689
  });
6690
6690
  }, []), dt = c.useCallback(function(_e) {
6691
6691
  var ke = $e(_e);
6692
- return ke.map(function(Pe) {
6693
- var Oe = Pe.label, at = Pe.value, ot = Pe.halfChecked, Ke, Fe = X.get(at);
6692
+ return ke.map(function(Te) {
6693
+ var Oe = Te.label, at = Te.value, ot = Te.halfChecked, Ke, Fe = X.get(at);
6694
6694
  if (Fe) {
6695
6695
  var lt;
6696
6696
  Oe = (lt = Oe) !== null && lt !== void 0 ? lt : it(Fe.node), Ke = Fe.node.disabled;
@@ -6711,18 +6711,18 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6711
6711
  return $e(ae);
6712
6712
  }, [$e, ae]), ft = c.useMemo(function() {
6713
6713
  var _e = [], ke = [];
6714
- return Qe.forEach(function(Pe) {
6715
- Pe.halfChecked ? ke.push(Pe) : _e.push(Pe);
6714
+ return Qe.forEach(function(Te) {
6715
+ Te.halfChecked ? ke.push(Te) : _e.push(Te);
6716
6716
  }), [_e, ke];
6717
6717
  }, [Qe]), tt = V(ft, 2), Xe = tt[0], Ue = tt[1], xt = c.useMemo(function() {
6718
6718
  return Xe.map(function(_e) {
6719
6719
  return _e.value;
6720
6720
  });
6721
- }, [Xe]), Et = Is(Xe, Ue, Re, Ge), pt = V(Et, 2), _ = pt[0], U = pt[1], K = c.useMemo(function() {
6721
+ }, [Xe]), bt = Is(Xe, Ue, Re, Ge), pt = V(bt, 2), _ = pt[0], U = pt[1], K = c.useMemo(function() {
6722
6722
  var _e = Aa(_, S, Ge, q), ke = _e.map(function(ot) {
6723
6723
  var Ke, Fe, lt;
6724
6724
  return (Ke = (Fe = Ge[ot]) === null || Fe === void 0 || (lt = Fe.node) === null || lt === void 0 ? void 0 : lt[q.value]) !== null && Ke !== void 0 ? Ke : ot;
6725
- }), Pe = ke.map(function(ot) {
6725
+ }), Te = ke.map(function(ot) {
6726
6726
  var Ke = Xe.find(function(Fe) {
6727
6727
  return Fe.value === ot;
6728
6728
  });
@@ -6730,14 +6730,14 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6730
6730
  value: ot,
6731
6731
  label: Ke == null ? void 0 : Ke.label
6732
6732
  };
6733
- }), Oe = dt(Pe), at = Oe[0];
6733
+ }), Oe = dt(Te), at = Oe[0];
6734
6734
  return !fe && at && xr(at.value) && xr(at.label) ? [] : Oe.map(function(ot) {
6735
6735
  var Ke;
6736
6736
  return D(D({}, ot), {}, {
6737
6737
  label: (Ke = ot.label) !== null && Ke !== void 0 ? Ke : ot.value
6738
6738
  });
6739
6739
  });
6740
- }, [q, fe, _, Xe, dt, S, Ge]), te = Os(K), ge = V(te, 1), Ne = ge[0], nt = $a(function(_e, ke, Pe) {
6740
+ }, [q, fe, _, Xe, dt, S, Ge]), te = Os(K), ge = V(te, 1), Ne = ge[0], nt = $a(function(_e, ke, Te) {
6741
6741
  var Oe = dt(_e);
6742
6742
  if (se(Oe), p && Se(""), o) {
6743
6743
  var at = _e;
@@ -6762,8 +6762,8 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6762
6762
  // [Legacy] Always return as array contains label & value
6763
6763
  preValue: Xe,
6764
6764
  triggerValue: Fe
6765
- }, Pt = !0;
6766
- (x || Pe === "selection" && !lt) && (Pt = !1), Ps(Dt, Fe, _e, De, Pt, q), we ? Dt.checked = lt : Dt.selected = lt;
6765
+ }, Tt = !0;
6766
+ (x || Te === "selection" && !lt) && (Tt = !1), Ts(Dt, Fe, _e, De, Tt, q), we ? Dt.checked = lt : Dt.selected = lt;
6767
6767
  var St = Me ? wt : wt.map(function(mt) {
6768
6768
  return mt.value;
6769
6769
  });
@@ -6772,7 +6772,7 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6772
6772
  }), Dt);
6773
6773
  }
6774
6774
  }), rt = c.useCallback(function(_e, ke) {
6775
- var Pe, Oe = ke.selected, at = ke.source, ot = Ge[_e], Ke = ot == null ? void 0 : ot.node, Fe = (Pe = Ke == null ? void 0 : Ke[q.value]) !== null && Pe !== void 0 ? Pe : _e;
6775
+ var Te, Oe = ke.selected, at = ke.source, ot = Ge[_e], Ke = ot == null ? void 0 : ot.node, Fe = (Te = Ke == null ? void 0 : Ke[q.value]) !== null && Te !== void 0 ? Te : _e;
6776
6776
  if (!fe)
6777
6777
  nt([Fe], {
6778
6778
  selected: !0,
@@ -6785,18 +6785,18 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6785
6785
  if (Re) {
6786
6786
  var Mt = le(lt), Ot = Mt.missingRawValues, wt = Mt.existRawValues, Dt = wt.map(function(vt) {
6787
6787
  return X.get(vt).key;
6788
- }), Pt;
6788
+ }), Tt;
6789
6789
  if (Oe) {
6790
6790
  var St = fn(Dt, !0, Ge);
6791
- Pt = St.checkedKeys;
6791
+ Tt = St.checkedKeys;
6792
6792
  } else {
6793
6793
  var mt = fn(Dt, {
6794
6794
  checked: !1,
6795
6795
  halfCheckedKeys: U
6796
6796
  }, Ge);
6797
- Pt = mt.checkedKeys;
6797
+ Tt = mt.checkedKeys;
6798
6798
  }
6799
- lt = [].concat(je(Ot), je(Pt.map(function(vt) {
6799
+ lt = [].concat(je(Ot), je(Tt.map(function(vt) {
6800
6800
  return Ge[vt].node[q.value];
6801
6801
  })));
6802
6802
  }
@@ -6811,23 +6811,23 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6811
6811
  var ke = {};
6812
6812
  Object.defineProperty(ke, "documentClickClose", {
6813
6813
  get: function() {
6814
- return Te(!1, "Second param of `onDropdownVisibleChange` has been removed."), !1;
6814
+ return Pe(!1, "Second param of `onDropdownVisibleChange` has been removed."), !1;
6815
6815
  }
6816
6816
  }), B(_e, ke);
6817
6817
  }
6818
6818
  }, [B]), Ye = $a(function(_e, ke) {
6819
- var Pe = _e.map(function(Oe) {
6819
+ var Te = _e.map(function(Oe) {
6820
6820
  return Oe.value;
6821
6821
  });
6822
6822
  if (ke.type === "clear") {
6823
- nt(Pe, {}, "selection");
6823
+ nt(Te, {}, "selection");
6824
6824
  return;
6825
6825
  }
6826
6826
  ke.values.length && rt(ke.values[0].value, {
6827
6827
  selected: !1,
6828
6828
  source: "selection"
6829
6829
  });
6830
- }), bt = c.useMemo(function() {
6830
+ }), Et = c.useMemo(function() {
6831
6831
  return {
6832
6832
  virtual: Y,
6833
6833
  dropdownMatchSelectWidth: j,
@@ -6853,19 +6853,19 @@ var ni = /* @__PURE__ */ c.forwardRef(function(e, n) {
6853
6853
  treeIcon: ue,
6854
6854
  treeMotion: ee,
6855
6855
  showTreeIcon: Z,
6856
- switcherIcon: T,
6856
+ switcherIcon: P,
6857
6857
  treeLine: de,
6858
6858
  treeNodeFilterProp: m,
6859
6859
  keyEntities: Ge
6860
6860
  };
6861
- }, [we, k, A, L, _, U, O, W, z, G, ue, ee, Z, T, de, m, Ge]);
6861
+ }, [we, k, A, L, _, U, O, W, z, G, ue, ee, Z, P, de, m, Ge]);
6862
6862
  return /* @__PURE__ */ c.createElement(Qo.Provider, {
6863
- value: bt
6863
+ value: Et
6864
6864
  }, /* @__PURE__ */ c.createElement(qo.Provider, {
6865
6865
  value: Rt
6866
6866
  }, /* @__PURE__ */ c.createElement(Ar, Le({
6867
6867
  ref: n
6868
- }, Ee, {
6868
+ }, be, {
6869
6869
  // >>> MISC
6870
6870
  id: pe,
6871
6871
  prefixCls: a,
@@ -6887,21 +6887,37 @@ Kn.SHOW_ALL = Ds;
6887
6887
  Kn.SHOW_PARENT = ei;
6888
6888
  Kn.SHOW_CHILD = Wr;
6889
6889
  function Gs(e, n) {
6890
- return /* @__PURE__ */ rr.jsx(
6890
+ return /* @__PURE__ */ rr.jsxDEV(
6891
6891
  Kn,
6892
6892
  {
6893
6893
  className: "check-select w-100 mt-1",
6894
6894
  transitionName: "rc-tree-select-dropdown-slide-up",
6895
6895
  choiceTransitionName: "rc-tree-select-selection__choice-zoom",
6896
- placeholder: /* @__PURE__ */ rr.jsx("span", { children: e }),
6896
+ placeholder: /* @__PURE__ */ rr.jsxDEV("span", { children: e }, void 0, !1, {
6897
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/TreeSelect/KdpaTreeSelect.tsx",
6898
+ lineNumber: 12,
6899
+ columnNumber: 20
6900
+ }, this),
6897
6901
  treeIcon: !0,
6898
6902
  labelInValue: !0,
6899
6903
  treeNodeFilterProp: "label",
6900
6904
  showSearch: !0,
6901
6905
  notFoundContent: "یافت نشد",
6902
- clearIcon: /* @__PURE__ */ rr.jsx("span", { className: "feather icon-x" }),
6906
+ clearIcon: /* @__PURE__ */ rr.jsxDEV("span", { className: "feather icon-x" }, void 0, !1, {
6907
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/TreeSelect/KdpaTreeSelect.tsx",
6908
+ lineNumber: 18,
6909
+ columnNumber: 18
6910
+ }, this),
6903
6911
  ...n
6904
- }
6912
+ },
6913
+ void 0,
6914
+ !1,
6915
+ {
6916
+ fileName: "D:/a.dakhili/kdpa/packages/components/src/components/TreeSelect/KdpaTreeSelect.tsx",
6917
+ lineNumber: 8,
6918
+ columnNumber: 5
6919
+ },
6920
+ this
6905
6921
  );
6906
6922
  }
6907
6923
  export {