@gobolt/genesis 0.0.8 → 0.0.9

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 (170) hide show
  1. package/README.md +10 -0
  2. package/dist/{AntdIcon-c395a1c4.js → AntdIcon-BoLh1dP8.js} +66 -68
  3. package/dist/CheckOutlined-CeTKr6II.js +13 -0
  4. package/dist/{CloseCircleFilled-ddc51e7e.js → CloseCircleFilled-DXCxlIQL.js} +8 -11
  5. package/dist/{CloseOutlined-14b8bba1.js → CloseOutlined-ClXDNn82.js} +9 -12
  6. package/dist/{Compact-c39ed20d.js → Compact-CGY560JF.js} +63 -65
  7. package/dist/ContextIsolator-D5x2Ih51.js +20 -0
  8. package/dist/{ExclamationCircleFilled-23ef9812.js → ExclamationCircleFilled-C0Kj5KQV.js} +16 -22
  9. package/dist/KeyCode-DM2sFh3-.js +517 -0
  10. package/dist/LoadingOutlined-8EnJdZ7I.js +13 -0
  11. package/dist/{Overflow-a570fa69.js → Overflow-PBZD-PFm.js} +63 -64
  12. package/dist/{DownOutlined-64a4732a.js → PurePanel-BqPLRtc2.js} +67 -70
  13. package/dist/{SearchOutlined-a9014e08.js → SearchOutlined-BP3Z2K6j.js} +8 -11
  14. package/dist/{TextArea-20825221.js → TextArea-DKwCct3i.js} +583 -588
  15. package/dist/Typography-aGoDUl4R.js +710 -0
  16. package/dist/bundle.css +1204 -0
  17. package/dist/{button-fa1c119c.js → button-CDQgO1OK.js} +274 -278
  18. package/dist/{collapse-345bc884.js → collapse-Dtpt-6W_.js} +2 -2
  19. package/dist/compact-item-DH13cl8A.js +61 -0
  20. package/dist/components/Badge/Badge.d.ts +2 -2
  21. package/dist/components/Badge/Badge.js +63 -62
  22. package/dist/components/Badge/__tests__/Badge.test.js +11 -65
  23. package/dist/components/Badge/index.js +2 -21
  24. package/dist/components/Badge/styles.js +7 -8
  25. package/dist/components/Breadcrumb/Breadcrumb.js +8 -24
  26. package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +21 -7
  27. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +13 -60
  28. package/dist/components/Breadcrumb/index.js +2 -25
  29. package/dist/components/Breadcrumb/styles.d.ts +10 -6
  30. package/dist/components/Breadcrumb/styles.js +787 -808
  31. package/dist/components/Button/Button.d.ts +6 -4
  32. package/dist/components/Button/Button.js +20 -40
  33. package/dist/components/Button/__tests__/Button.test.js +9 -54
  34. package/dist/components/Button/index.js +2 -20
  35. package/dist/components/Button/styles.d.ts +9 -5
  36. package/dist/components/Button/styles.js +19 -30
  37. package/dist/components/Checkbox/Checkbox.js +8 -38
  38. package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -62
  39. package/dist/components/Checkbox/index.js +2 -47
  40. package/dist/components/Checkbox/styles.d.ts +8 -1
  41. package/dist/components/Checkbox/styles.js +181 -188
  42. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -4
  43. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +19 -51
  44. package/dist/components/ErrorBoundaryFallback/index.d.ts +1 -0
  45. package/dist/components/ErrorBoundaryFallback/index.js +2 -49
  46. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -3
  47. package/dist/components/ErrorBoundaryFallback/styles.js +34 -37
  48. package/dist/components/Form/Form.d.ts +18 -5
  49. package/dist/components/Form/Form.js +4 -45
  50. package/dist/components/Form/__stories__/FormStory.js +44 -81
  51. package/dist/components/Form/__tests__/form.test.d.ts +1 -0
  52. package/dist/components/Form/__tests__/form.test.js +18 -0
  53. package/dist/components/Form/index.js +2 -46
  54. package/dist/components/Form/styles.d.ts +3 -0
  55. package/dist/components/Form/styles.js +5 -0
  56. package/dist/components/Input/Input.js +6 -29
  57. package/dist/components/Input/__tests__/Input.test.js +21 -66
  58. package/dist/components/Input/index.js +2 -29
  59. package/dist/components/Input/styles.d.ts +5 -2
  60. package/dist/components/Input/styles.js +319 -332
  61. package/dist/components/Message/Message.d.ts +4 -4
  62. package/dist/components/Message/Message.js +53 -80
  63. package/dist/components/Message/__tests__/Message.test.js +24 -70
  64. package/dist/components/Message/index.js +2 -48
  65. package/dist/components/Message/styles.d.ts +4 -1
  66. package/dist/components/Message/styles.js +24 -18
  67. package/dist/components/Notification/Notification.d.ts +11 -10
  68. package/dist/components/Notification/Notification.js +306 -372
  69. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  70. package/dist/components/Notification/NotificationRightChevron.js +23 -0
  71. package/dist/components/Notification/__tests__/Notification.test.js +8 -69
  72. package/dist/components/Notification/index.js +2 -59
  73. package/dist/components/Notification/styles.d.ts +13 -3
  74. package/dist/components/Notification/styles.js +36 -20
  75. package/dist/components/Radio/Radio.js +20 -106
  76. package/dist/components/Radio/RadioGroup.js +18 -71
  77. package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +1 -1
  78. package/dist/components/Radio/__tests__/RadioGroup.test.js +15 -70
  79. package/dist/components/Radio/index.d.ts +1 -1
  80. package/dist/components/Radio/index.js +2 -56
  81. package/dist/components/Select/DropdownChevron.d.ts +2 -0
  82. package/dist/components/Select/DropdownChevron.js +23 -0
  83. package/dist/components/Select/Select.d.ts +9 -4
  84. package/dist/components/Select/Select.js +29 -41
  85. package/dist/components/Select/__tests__/Select.test.js +10752 -93
  86. package/dist/components/Select/index.js +2 -28
  87. package/dist/components/Select/styles.d.ts +20 -6
  88. package/dist/components/Select/styles.js +1381 -1370
  89. package/dist/components/Toast/Toast.d.ts +4 -4
  90. package/dist/components/Toast/Toast.js +8 -37
  91. package/dist/components/Toast/__stories__/Toast.stories.d.ts +1 -0
  92. package/dist/components/Toast/__tests__/Toast.test.js +10 -55
  93. package/dist/components/Toast/index.js +2 -46
  94. package/dist/components/Toast/styles.d.ts +6 -1
  95. package/dist/components/Toast/styles.js +36 -21
  96. package/dist/components/Typography/Typography.d.ts +7 -4
  97. package/dist/components/Typography/Typography.js +2 -42
  98. package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
  99. package/dist/components/Typography/__tests__/Typography.test.js +19 -56
  100. package/dist/components/Typography/index.js +2 -46
  101. package/dist/components/Typography/styles.d.ts +18 -4
  102. package/dist/components/Typography/styles.js +36 -43
  103. package/dist/components/index.d.ts +13 -5
  104. package/dist/components/index.js +24 -70
  105. package/dist/{context-3b8a39af.js → context-BMW3aJEf.js} +538 -548
  106. package/dist/genesis/GenesisThemeBreakdown.js +38 -55
  107. package/dist/genesis/GenesisThemeDemo.js +3 -53
  108. package/dist/genesis/styles.d.ts +6 -2
  109. package/dist/genesis/styles.js +496 -521
  110. package/dist/{index-e2b72ca8.js → index-1CBpubM3.js} +97 -102
  111. package/dist/index-BZAhCB_K.js +97 -0
  112. package/dist/{index-501fc13d.js → index-C0SmxWLS.js} +367 -392
  113. package/dist/index-C8haFnXI.js +1112 -0
  114. package/dist/index-CfDY25LP.js +873 -0
  115. package/dist/index-DPW8XdWj.js +952 -0
  116. package/dist/{index-8c8d2d0c.js → index-bKlRxQp4.js} +114 -114
  117. package/dist/index-oK7z6jnz.js +22795 -0
  118. package/dist/index.d.ts +1 -0
  119. package/dist/index.js +31 -77
  120. package/dist/{isVisible-729780f5.js → isVisible-A-IfeFoT.js} +67 -94
  121. package/dist/{magic-string.es-b7491176.js → magic-string.es-D2FWSwU3.js} +56 -103
  122. package/dist/{pickAttrs-00ba4687.js → pickAttrs-B0YTfcV1.js} +1 -1
  123. package/dist/providers/GenesisProvider.d.ts +0 -5
  124. package/dist/providers/GenesisProvider.js +9 -59
  125. package/dist/providers/ThemeProvider.d.ts +1 -2
  126. package/dist/providers/ThemeProvider.js +11 -13
  127. package/dist/providers/ToastProvider.d.ts +11 -4
  128. package/dist/providers/ToastProvider.js +10 -39
  129. package/dist/providers/index.d.ts +2 -3
  130. package/dist/providers/index.js +4 -51
  131. package/dist/providers/useGenesis.d.ts +7 -0
  132. package/dist/providers/useGenesis.js +6 -0
  133. package/dist/setup-BvfREoHl.js +33891 -0
  134. package/dist/{styled-components.browser.esm-02f500bc.js → styled-components.browser.esm-CZ1XM4o4.js} +72 -134
  135. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +15 -45
  136. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +15 -45
  137. package/dist/styles/design-tokens/{typography → typography-tokens}/TypographyTokens.stories.d.ts +1 -0
  138. package/dist/styles/design-tokens/variables.d.ts +10 -10
  139. package/dist/styles/design-tokens/variables.js +1 -1
  140. package/dist/styles/global-styles.d.ts +1 -0
  141. package/dist/styles/global-styles.js +14 -31
  142. package/dist/styles/theme/genesis-theme.js +257 -212
  143. package/dist/styles/theme/genesis-theme.types.d.ts +46 -0
  144. package/dist/styles/theme/index.js +4 -5
  145. package/dist/styles-CT_fyXBd.js +1808 -0
  146. package/dist/test/setup.js +3 -46
  147. package/dist/useLocale-DT-z_vQ6.js +16 -0
  148. package/dist/useVariants-DvhXfgJY.js +30 -0
  149. package/dist/utils/isAllEnglishString.js +1 -2
  150. package/dist/{presets-83ccb923.js → warning-C63HNL9U.js} +358 -356
  151. package/package.json +35 -35
  152. package/dist/CheckOutlined-52d9ac25.js +0 -29
  153. package/dist/ContextIsolator-b09b2c52.js +0 -20
  154. package/dist/EllipsisOutlined-60122660.js +0 -1115
  155. package/dist/InfoCircleFilled-c5f90c20.js +0 -16
  156. package/dist/RightOutlined-83515eb4.js +0 -16
  157. package/dist/compact-item-b8f85aa6.js +0 -75
  158. package/dist/index-0a886e53.js +0 -100
  159. package/dist/index-0b9ee239.js +0 -955
  160. package/dist/index-1a33c134.js +0 -1389
  161. package/dist/index-4003d75b.js +0 -3748
  162. package/dist/index-89035ea5.js +0 -3242
  163. package/dist/providers/ToastWrapper.d.ts +0 -7
  164. package/dist/providers/ToastWrapper.js +0 -56
  165. package/dist/setup-aaca7b6f.js +0 -21158
  166. package/dist/styles/theme/global-styles.d.ts +0 -1
  167. package/dist/styles/theme/global-styles.js +0 -36
  168. package/dist/useVariants-a0d64298.js +0 -30
  169. /package/dist/{presetColors-ccf8cb4c.js → presetColors-Cl8UP3Nw.js} +0 -0
  170. /package/dist/{reactNode-f4391605.js → reactNode-sKPeiqPL.js} +0 -0
@@ -1,64 +1,60 @@
1
- import { d as De } from "../../styled-components.browser.esm-02f500bc.js";
1
+ import { d as Re } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
2
  import * as l from "react";
3
- import { useContext as Ie, useState as ye, useEffect as pe, useRef as Me, createContext as nt, forwardRef as Re, useImperativeHandle as rt, useMemo as it } from "react";
4
- import { a as _e, c as P, F as xe } from "../../presets-83ccb923.js";
5
- import { o as Q, t as oe, u as lt } from "../../isVisible-729780f5.js";
6
- import { p as Ae } from "../../pickAttrs-00ba4687.js";
7
- import { c as ee } from "../../reactNode-f4391605.js";
8
- import { g as te, p as v, C as Z, N as at, k as st, j as ct, o as dt, O as ut, m as ne, E as we, r as he, G as mt, t as ae, b as Le, H as $e, B as gt } from "../../index-4003d75b.js";
9
- import { i as Oe, g as pt, D as bt } from "../../DownOutlined-64a4732a.js";
10
- import { R as fe } from "../../RightOutlined-83515eb4.js";
11
- import { D as $t, M as ft, u as vt, S as ht, E as Ct, a as St, b as It, c as yt } from "../../EllipsisOutlined-60122660.js";
12
- import { u as ke, b as xt, z as wt } from "../../index-1a33c134.js";
13
- import { T as Ot, i as We, g as Bt, a as Et, b as Nt, c as Tt } from "../../index-0b9ee239.js";
14
- import { u as Xe } from "../../context-3b8a39af.js";
15
- import { A as Ve } from "../../AntdIcon-c395a1c4.js";
16
- import { C as jt } from "../../ContextIsolator-b09b2c52.js";
17
- import { g as zt } from "../../collapse-345bc884.js";
18
- import { i as re, s as Pt, a as Ht, b as Dt, c as Mt } from "../../Overflow-a570fa69.js";
19
- import "react-dom";
20
- import "../../index-8c8d2d0c.js";
21
- import "../../presetColors-ccf8cb4c.js";
22
- import "../../Compact-c39ed20d.js";
23
- const Rt = (e) => typeof e != "object" && typeof e != "function" || e === null, _t = Rt;
24
- var At = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" };
25
- const Lt = At;
26
- var kt = function(o, t) {
27
- return /* @__PURE__ */ l.createElement(Ve, _e({}, o, {
3
+ import { useContext as we, useState as Oe, useEffect as be, useRef as _e, createContext as tt, forwardRef as Ae, useImperativeHandle as nt, useMemo as ot } from "react";
4
+ import { a as Se, c as P, F as Be } from "../../warning-C63HNL9U.js";
5
+ import { o as Q, t as ne, u as rt } from "../../isVisible-A-IfeFoT.js";
6
+ import { p as Le } from "../../pickAttrs-B0YTfcV1.js";
7
+ import { c as ee } from "../../reactNode-sKPeiqPL.js";
8
+ import { g as te, q as h, C as Z, X as it, j as lt, h as at, p as st, Y as dt, m as oe, F as Ee, o as Ie, H as ct, v as se, b as ke, I as he, E as ut } from "../../index-oK7z6jnz.js";
9
+ import { i as Ne, g as mt, R as pt } from "../../PurePanel-BqPLRtc2.js";
10
+ import { I as ye } from "../../AntdIcon-BoLh1dP8.js";
11
+ import { D as gt, M as ft, u as bt, S as $t, E as ht, R as vt, a as Ct, b as St } from "../../index-C8haFnXI.js";
12
+ import { u as We, a as It, z as yt } from "../../index-CfDY25LP.js";
13
+ import { T as xt, i as Xe, g as wt, a as Ot, b as Bt, c as Et } from "../../index-DPW8XdWj.js";
14
+ import { u as Ve } from "../../context-BMW3aJEf.js";
15
+ import { C as Nt } from "../../ContextIsolator-D5x2Ih51.js";
16
+ import { g as jt } from "../../collapse-Dtpt-6W_.js";
17
+ import { i as re, s as zt, a as Tt, b as Pt, c as Ht } from "../../Overflow-PBZD-PFm.js";
18
+ var Dt = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Mt = function(n, t) {
19
+ return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
28
20
  ref: t,
29
- icon: Lt
21
+ icon: Dt
30
22
  }));
31
- }, qe = /* @__PURE__ */ l.forwardRef(kt);
23
+ }, qe = /* @__PURE__ */ l.forwardRef(Mt);
32
24
  process.env.NODE_ENV !== "production" && (qe.displayName = "BarsOutlined");
33
- const Wt = qe;
34
- var Xt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" };
35
- const Vt = Xt;
36
- var qt = function(o, t) {
37
- return /* @__PURE__ */ l.createElement(Ve, _e({}, o, {
25
+ var Rt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, _t = function(n, t) {
26
+ return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
38
27
  ref: t,
39
- icon: Vt
28
+ icon: Rt
40
29
  }));
41
- }, Fe = /* @__PURE__ */ l.forwardRef(qt);
42
- process.env.NODE_ENV !== "production" && (Fe.displayName = "LeftOutlined");
43
- const Be = Fe, Ft = /* @__PURE__ */ l.createContext({
30
+ }, ve = /* @__PURE__ */ l.forwardRef(_t);
31
+ process.env.NODE_ENV !== "production" && (ve.displayName = "LeftOutlined");
32
+ var At = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Lt = function(n, t) {
33
+ return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
34
+ ref: t,
35
+ icon: At
36
+ }));
37
+ }, ie = /* @__PURE__ */ l.forwardRef(Lt);
38
+ process.env.NODE_ENV !== "production" && (ie.displayName = "RightOutlined");
39
+ const kt = (e) => typeof e != "object" && typeof e != "function" || e === null, Wt = /* @__PURE__ */ l.createContext({
44
40
  siderHook: {
45
41
  addSider: () => null,
46
42
  removeSider: () => null
47
43
  }
48
- }), Gt = (e) => {
44
+ }), Xt = (e) => {
49
45
  const {
50
- antCls: o,
46
+ antCls: n,
51
47
  // .ant
52
48
  componentCls: t,
53
49
  // .ant-layout
54
- colorText: n,
50
+ colorText: o,
55
51
  footerBg: r,
56
52
  headerHeight: a,
57
53
  headerPadding: i,
58
- headerColor: c,
54
+ headerColor: d,
59
55
  footerPadding: s,
60
- fontSize: g,
61
- bodyBg: p,
56
+ fontSize: p,
57
+ bodyBg: g,
62
58
  headerBg: S
63
59
  } = e;
64
60
  return {
@@ -68,7 +64,7 @@ const Be = Fe, Ft = /* @__PURE__ */ l.createContext({
68
64
  flexDirection: "column",
69
65
  /* fix firefox can't set height smaller than content on flex item */
70
66
  minHeight: 0,
71
- background: p,
67
+ background: g,
72
68
  "&, *": {
73
69
  boxSizing: "border-box"
74
70
  },
@@ -91,100 +87,100 @@ const Be = Fe, Ft = /* @__PURE__ */ l.createContext({
91
87
  [`${t}-header`]: {
92
88
  height: a,
93
89
  padding: i,
94
- color: c,
95
- lineHeight: v(a),
90
+ color: d,
91
+ lineHeight: h(a),
96
92
  background: S,
97
93
  // Other components/menu/style/index.less line:686
98
94
  // Integration with header element so menu items have the same height
99
- [`${o}-menu`]: {
95
+ [`${n}-menu`]: {
100
96
  lineHeight: "inherit"
101
97
  }
102
98
  },
103
99
  // ==================== Footer ====================
104
100
  [`${t}-footer`]: {
105
101
  padding: s,
106
- color: n,
107
- fontSize: g,
102
+ color: o,
103
+ fontSize: p,
108
104
  background: r
109
105
  },
110
106
  // =================== Content ====================
111
107
  [`${t}-content`]: {
112
108
  flex: "auto",
113
- color: n,
109
+ color: o,
114
110
  // fix firefox can't set height smaller than content on flex item
115
111
  minHeight: 0
116
112
  }
117
113
  };
118
- }, Ge = (e) => {
114
+ }, Fe = (e) => {
119
115
  const {
120
- colorBgLayout: o,
116
+ colorBgLayout: n,
121
117
  controlHeight: t,
122
- controlHeightLG: n,
118
+ controlHeightLG: o,
123
119
  colorText: r,
124
120
  controlHeightSM: a,
125
121
  marginXXS: i,
126
- colorTextLightSolid: c,
122
+ colorTextLightSolid: d,
127
123
  colorBgContainer: s
128
- } = e, g = n * 1.25;
124
+ } = e, p = o * 1.25;
129
125
  return {
130
126
  // Deprecated
131
127
  colorBgHeader: "#001529",
132
- colorBgBody: o,
128
+ colorBgBody: n,
133
129
  colorBgTrigger: "#002140",
134
- bodyBg: o,
130
+ bodyBg: n,
135
131
  headerBg: "#001529",
136
132
  headerHeight: t * 2,
137
- headerPadding: `0 ${g}px`,
133
+ headerPadding: `0 ${p}px`,
138
134
  headerColor: r,
139
- footerPadding: `${a}px ${g}px`,
140
- footerBg: o,
135
+ footerPadding: `${a}px ${p}px`,
136
+ footerBg: n,
141
137
  siderBg: "#001529",
142
- triggerHeight: n + i * 2,
138
+ triggerHeight: o + i * 2,
143
139
  triggerBg: "#002140",
144
- triggerColor: c,
145
- zeroTriggerWidth: n,
146
- zeroTriggerHeight: n,
140
+ triggerColor: d,
141
+ zeroTriggerWidth: o,
142
+ zeroTriggerHeight: o,
147
143
  lightSiderBg: s,
148
144
  lightTriggerBg: s,
149
145
  lightTriggerColor: r
150
146
  };
151
- }, Ye = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
152
- te("Layout", (e) => [Gt(e)], Ge, {
153
- deprecatedTokens: Ye
147
+ }, Ge = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
148
+ te("Layout", (e) => [Xt(e)], Fe, {
149
+ deprecatedTokens: Ge
154
150
  });
155
- const Yt = (e) => {
151
+ const Vt = (e) => {
156
152
  const {
157
- componentCls: o,
153
+ componentCls: n,
158
154
  siderBg: t,
159
- motionDurationMid: n,
155
+ motionDurationMid: o,
160
156
  motionDurationSlow: r,
161
157
  antCls: a,
162
158
  triggerHeight: i,
163
- triggerColor: c,
159
+ triggerColor: d,
164
160
  triggerBg: s,
165
- headerHeight: g,
166
- zeroTriggerWidth: p,
161
+ headerHeight: p,
162
+ zeroTriggerWidth: g,
167
163
  zeroTriggerHeight: S,
168
164
  borderRadiusLG: u,
169
- lightSiderBg: f,
170
- lightTriggerColor: d,
165
+ lightSiderBg: $,
166
+ lightTriggerColor: c,
171
167
  lightTriggerBg: m,
172
- bodyBg: h
168
+ bodyBg: v
173
169
  } = e;
174
170
  return {
175
- [o]: {
171
+ [n]: {
176
172
  position: "relative",
177
173
  // fix firefox can't set width smaller than content on flex item
178
174
  minWidth: 0,
179
175
  background: t,
180
- transition: `all ${n}, background 0s`,
176
+ transition: `all ${o}, background 0s`,
181
177
  "&-has-trigger": {
182
178
  paddingBottom: i
183
179
  },
184
180
  "&-right": {
185
181
  order: 1
186
182
  },
187
- [`${o}-children`]: {
183
+ [`${n}-children`]: {
188
184
  height: "100%",
189
185
  // Hack for fixing margin collapse bug
190
186
  // https://github.com/ant-design/ant-design/issues/7967
@@ -195,36 +191,36 @@ const Yt = (e) => {
195
191
  width: "auto"
196
192
  }
197
193
  },
198
- [`${o}-trigger`]: {
194
+ [`${n}-trigger`]: {
199
195
  position: "fixed",
200
196
  bottom: 0,
201
197
  zIndex: 1,
202
198
  height: i,
203
- color: c,
204
- lineHeight: v(i),
199
+ color: d,
200
+ lineHeight: h(i),
205
201
  textAlign: "center",
206
202
  background: s,
207
203
  cursor: "pointer",
208
- transition: `all ${n}`
204
+ transition: `all ${o}`
209
205
  },
210
- "&-zero-width": {
206
+ [`${n}-zero-width`]: {
211
207
  "> *": {
212
208
  overflow: "hidden"
213
209
  },
214
210
  "&-trigger": {
215
211
  position: "absolute",
216
- top: g,
217
- insetInlineEnd: e.calc(p).mul(-1).equal(),
212
+ top: p,
213
+ insetInlineEnd: e.calc(g).mul(-1).equal(),
218
214
  zIndex: 1,
219
- width: p,
215
+ width: g,
220
216
  height: S,
221
- color: c,
217
+ color: d,
222
218
  fontSize: e.fontSizeXL,
223
219
  display: "flex",
224
220
  alignItems: "center",
225
221
  justifyContent: "center",
226
222
  background: t,
227
- borderRadius: `0 ${v(u)} ${v(u)} 0`,
223
+ borderRadius: `0 ${h(u)} ${h(u)} 0`,
228
224
  cursor: "pointer",
229
225
  transition: `background ${r} ease`,
230
226
  "&::after": {
@@ -238,86 +234,84 @@ const Yt = (e) => {
238
234
  background: "rgba(255, 255, 255, 0.2)"
239
235
  },
240
236
  "&-right": {
241
- insetInlineStart: e.calc(p).mul(-1).equal(),
242
- borderRadius: `${v(u)} 0 0 ${v(u)}`
237
+ insetInlineStart: e.calc(g).mul(-1).equal(),
238
+ borderRadius: `${h(u)} 0 0 ${h(u)}`
243
239
  }
244
240
  }
245
241
  },
246
242
  // Light
247
243
  "&-light": {
248
- background: f,
249
- [`${o}-trigger`]: {
250
- color: d,
244
+ background: $,
245
+ [`${n}-trigger`]: {
246
+ color: c,
251
247
  background: m
252
248
  },
253
- [`${o}-zero-width-trigger`]: {
254
- color: d,
249
+ [`${n}-zero-width-trigger`]: {
250
+ color: c,
255
251
  background: m,
256
- border: `1px solid ${h}`,
252
+ border: `1px solid ${v}`,
257
253
  // Safe to modify to any other color
258
254
  borderInlineStart: 0
259
255
  }
260
256
  }
261
257
  }
262
258
  };
263
- }, Ut = te(["Layout", "Sider"], (e) => [Yt(e)], Ge, {
264
- deprecatedTokens: Ye
259
+ }, qt = te(["Layout", "Sider"], (e) => [Vt(e)], Fe, {
260
+ deprecatedTokens: Ge
265
261
  });
266
- var Kt = globalThis && globalThis.__rest || function(e, o) {
262
+ var Ft = function(e, n) {
267
263
  var t = {};
268
- for (var n in e)
269
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
270
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
271
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
272
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
264
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
265
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
266
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
273
267
  return t;
274
268
  };
275
- const Ee = {
269
+ const je = {
276
270
  xs: "479.98px",
277
271
  sm: "575.98px",
278
272
  md: "767.98px",
279
273
  lg: "991.98px",
280
274
  xl: "1199.98px",
281
275
  xxl: "1599.98px"
282
- }, Zt = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), Ce = /* @__PURE__ */ l.createContext({}), Jt = (() => {
276
+ }, Gt = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), xe = /* @__PURE__ */ l.createContext({}), Yt = /* @__PURE__ */ (() => {
283
277
  let e = 0;
284
278
  return function() {
285
- let o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
286
- return e += 1, `${o}${e}`;
279
+ let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
280
+ return e += 1, `${n}${e}`;
287
281
  };
288
- })(), Qt = /* @__PURE__ */ l.forwardRef((e, o) => {
282
+ })(), Ut = /* @__PURE__ */ l.forwardRef((e, n) => {
289
283
  const {
290
284
  prefixCls: t,
291
- className: n,
285
+ className: o,
292
286
  trigger: r,
293
287
  children: a,
294
288
  defaultCollapsed: i = !1,
295
- theme: c = "dark",
289
+ theme: d = "dark",
296
290
  style: s = {},
297
- collapsible: g = !1,
298
- reverseArrow: p = !1,
291
+ collapsible: p = !1,
292
+ reverseArrow: g = !1,
299
293
  width: S = 200,
300
294
  collapsedWidth: u = 80,
301
- zeroWidthTriggerStyle: f,
302
- breakpoint: d,
295
+ zeroWidthTriggerStyle: $,
296
+ breakpoint: c,
303
297
  onCollapse: m,
304
- onBreakpoint: h
305
- } = e, I = Kt(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
298
+ onBreakpoint: v
299
+ } = e, I = Ft(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
306
300
  siderHook: B
307
- } = Ie(Ft), [x, $] = ye("collapsed" in e ? e.collapsed : i), [E, N] = ye(!1);
308
- pe(() => {
309
- "collapsed" in e && $(e.collapsed);
301
+ } = we(Wt), [x, b] = Oe("collapsed" in e ? e.collapsed : i), [E, N] = Oe(!1);
302
+ be(() => {
303
+ "collapsed" in e && b(e.collapsed);
310
304
  }, [e.collapsed]);
311
- const _ = (z, A) => {
312
- "collapsed" in e || $(z), m == null || m(z, A);
305
+ const _ = (T, A) => {
306
+ "collapsed" in e || b(T), m == null || m(T, A);
313
307
  }, {
314
308
  getPrefixCls: w,
315
309
  direction: C
316
- } = Ie(Z), b = w("layout-sider", t), [T, D, M] = Ut(b), y = Me(null);
317
- y.current = (z) => {
318
- N(z.matches), h == null || h(z.matches), x !== z.matches && _(z.matches, "responsive");
319
- }, pe(() => {
320
- function z(Y) {
310
+ } = we(Z), f = w("layout-sider", t), [j, D, M] = qt(f), y = _e(null);
311
+ y.current = (T) => {
312
+ N(T.matches), v == null || v(T.matches), x !== T.matches && _(T.matches, "responsive");
313
+ }, be(() => {
314
+ function T(Y) {
321
315
  return y.current(Y);
322
316
  }
323
317
  let A;
@@ -325,38 +319,38 @@ const Ee = {
325
319
  const {
326
320
  matchMedia: Y
327
321
  } = window;
328
- if (Y && d && d in Ee) {
329
- A = Y(`screen and (max-width: ${Ee[d]})`);
322
+ if (Y && c && c in je) {
323
+ A = Y(`screen and (max-width: ${je[c]})`);
330
324
  try {
331
- A.addEventListener("change", z);
325
+ A.addEventListener("change", T);
332
326
  } catch {
333
- A.addListener(z);
327
+ A.addListener(T);
334
328
  }
335
- z(A);
329
+ T(A);
336
330
  }
337
331
  }
338
332
  return () => {
339
333
  try {
340
- A == null || A.removeEventListener("change", z);
334
+ A == null || A.removeEventListener("change", T);
341
335
  } catch {
342
- A == null || A.removeListener(z);
336
+ A == null || A.removeListener(T);
343
337
  }
344
338
  };
345
- }, [d]), pe(() => {
346
- const z = Jt("ant-sider-");
347
- return B.addSider(z), () => B.removeSider(z);
339
+ }, [c]), be(() => {
340
+ const T = Yt("ant-sider-");
341
+ return B.addSider(T), () => B.removeSider(T);
348
342
  }, []);
349
343
  const H = () => {
350
344
  _(!x, "clickTrigger");
351
- }, L = Q(I, ["collapsed"]), k = x ? u : S, R = Zt(k) ? `${k}px` : String(k), W = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
345
+ }, L = Q(I, ["collapsed"]), k = x ? u : S, R = Gt(k) ? `${k}px` : String(k), W = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
352
346
  onClick: H,
353
- className: P(`${b}-zero-width-trigger`, `${b}-zero-width-trigger-${p ? "right" : "left"}`),
354
- style: f
355
- }, r || /* @__PURE__ */ l.createElement(Wt, null)) : null, V = C === "rtl" == !p, X = {
356
- expanded: V ? /* @__PURE__ */ l.createElement(fe, null) : /* @__PURE__ */ l.createElement(Be, null),
357
- collapsed: V ? /* @__PURE__ */ l.createElement(Be, null) : /* @__PURE__ */ l.createElement(fe, null)
347
+ className: P(`${f}-zero-width-trigger`, `${f}-zero-width-trigger-${g ? "right" : "left"}`),
348
+ style: $
349
+ }, r || /* @__PURE__ */ l.createElement(qe, null)) : null, V = C === "rtl" == !g, X = {
350
+ expanded: V ? /* @__PURE__ */ l.createElement(ie, null) : /* @__PURE__ */ l.createElement(ve, null),
351
+ collapsed: V ? /* @__PURE__ */ l.createElement(ve, null) : /* @__PURE__ */ l.createElement(ie, null)
358
352
  }[x ? "collapsed" : "expanded"], q = r !== null ? W || /* @__PURE__ */ l.createElement("div", {
359
- className: `${b}-trigger`,
353
+ className: `${f}-trigger`,
360
354
  onClick: H,
361
355
  style: {
362
356
  width: R
@@ -366,87 +360,85 @@ const Ee = {
366
360
  maxWidth: R,
367
361
  minWidth: R,
368
362
  width: R
369
- }), de = P(b, `${b}-${c}`, {
370
- [`${b}-collapsed`]: !!x,
371
- [`${b}-has-trigger`]: g && r !== null && !W,
372
- [`${b}-below`]: !!E,
373
- [`${b}-zero-width`]: parseFloat(R) === 0
374
- }, n, D, M), ue = l.useMemo(() => ({
363
+ }), me = P(f, `${f}-${d}`, {
364
+ [`${f}-collapsed`]: !!x,
365
+ [`${f}-has-trigger`]: p && r !== null && !W,
366
+ [`${f}-below`]: !!E,
367
+ [`${f}-zero-width`]: parseFloat(R) === 0
368
+ }, o, D, M), pe = l.useMemo(() => ({
375
369
  siderCollapsed: x
376
370
  }), [x]);
377
- return T(/* @__PURE__ */ l.createElement(Ce.Provider, {
378
- value: ue
371
+ return j(/* @__PURE__ */ l.createElement(xe.Provider, {
372
+ value: pe
379
373
  }, /* @__PURE__ */ l.createElement("aside", Object.assign({
380
- className: de
374
+ className: me
381
375
  }, L, {
382
376
  style: G,
383
- ref: o
377
+ ref: n
384
378
  }), /* @__PURE__ */ l.createElement("div", {
385
- className: `${b}-children`
386
- }, a), g || E && W ? q : null)));
379
+ className: `${f}-children`
380
+ }, a), p || E && W ? q : null)));
387
381
  });
388
- process.env.NODE_ENV !== "production" && (Qt.displayName = "Sider");
389
- const eo = /* @__PURE__ */ nt({
382
+ process.env.NODE_ENV !== "production" && (Ut.displayName = "Sider");
383
+ const le = /* @__PURE__ */ tt({
390
384
  prefixCls: "",
391
385
  firstLevel: !0,
392
386
  inlineCollapsed: !1
393
- }), ie = eo;
394
- var to = globalThis && globalThis.__rest || function(e, o) {
387
+ });
388
+ var Kt = function(e, n) {
395
389
  var t = {};
396
- for (var n in e)
397
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
398
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
399
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
400
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
390
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
391
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
392
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
401
393
  return t;
402
394
  };
403
- const oo = (e) => {
395
+ const Ye = (e) => {
404
396
  const {
405
- prefixCls: o,
397
+ prefixCls: n,
406
398
  className: t,
407
- dashed: n
408
- } = e, r = to(e, ["prefixCls", "className", "dashed"]), {
399
+ dashed: o
400
+ } = e, r = Kt(e, ["prefixCls", "className", "dashed"]), {
409
401
  getPrefixCls: a
410
- } = l.useContext(Z), i = a("menu", o), c = P({
411
- [`${i}-item-divider-dashed`]: !!n
402
+ } = l.useContext(Z), i = a("menu", n), d = P({
403
+ [`${i}-item-divider-dashed`]: !!o
412
404
  }, t);
413
- return /* @__PURE__ */ l.createElement($t, Object.assign({
414
- className: c
405
+ return /* @__PURE__ */ l.createElement(gt, Object.assign({
406
+ className: d
415
407
  }, r));
416
- }, Ue = oo, no = (e) => {
417
- var o;
408
+ }, Ue = (e) => {
409
+ var n;
418
410
  const {
419
411
  className: t,
420
- children: n,
412
+ children: o,
421
413
  icon: r,
422
414
  title: a,
423
415
  danger: i,
424
- extra: c
416
+ extra: d
425
417
  } = e, {
426
418
  prefixCls: s,
427
- firstLevel: g,
428
- direction: p,
419
+ firstLevel: p,
420
+ direction: g,
429
421
  disableMenuItemTitleTooltip: S,
430
422
  inlineCollapsed: u
431
- } = l.useContext(ie), f = (x) => {
432
- const $ = n == null ? void 0 : n[0], E = /* @__PURE__ */ l.createElement("span", {
423
+ } = l.useContext(le), $ = (x) => {
424
+ const b = o == null ? void 0 : o[0], E = /* @__PURE__ */ l.createElement("span", {
433
425
  className: P(`${s}-title-content`, {
434
- [`${s}-title-content-with-extra`]: !!c || c === 0
426
+ [`${s}-title-content-with-extra`]: !!d || d === 0
435
427
  })
436
- }, n);
437
- return (!r || /* @__PURE__ */ l.isValidElement(n) && n.type === "span") && n && x && g && typeof $ == "string" ? /* @__PURE__ */ l.createElement("div", {
428
+ }, o);
429
+ return (!r || /* @__PURE__ */ l.isValidElement(o) && o.type === "span") && o && x && p && typeof b == "string" ? /* @__PURE__ */ l.createElement("div", {
438
430
  className: `${s}-inline-collapsed-noicon`
439
- }, $.charAt(0)) : E;
431
+ }, b.charAt(0)) : E;
440
432
  }, {
441
- siderCollapsed: d
442
- } = l.useContext(Ce);
433
+ siderCollapsed: c
434
+ } = l.useContext(xe);
443
435
  let m = a;
444
- typeof a > "u" ? m = g ? n : "" : a === !1 && (m = "");
445
- const h = {
436
+ typeof a > "u" ? m = p ? o : "" : a === !1 && (m = "");
437
+ const v = {
446
438
  title: m
447
439
  };
448
- !d && !u && (h.title = null, h.open = !1);
449
- const I = oe(n).length;
440
+ !c && !u && (v.title = null, v.open = !1);
441
+ const I = ne(o).length;
450
442
  let B = /* @__PURE__ */ l.createElement(ft, Object.assign({}, Q(e, ["title", "icon", "danger"]), {
451
443
  className: P({
452
444
  [`${s}-item-danger`]: i,
@@ -454,58 +446,56 @@ const oo = (e) => {
454
446
  }, t),
455
447
  title: typeof a == "string" ? a : void 0
456
448
  }), ee(r, {
457
- className: P(/* @__PURE__ */ l.isValidElement(r) ? (o = r.props) === null || o === void 0 ? void 0 : o.className : "", `${s}-item-icon`)
458
- }), f(u));
459
- return S || (B = /* @__PURE__ */ l.createElement(Ot, Object.assign({}, h, {
460
- placement: p === "rtl" ? "left" : "right",
449
+ className: P(/* @__PURE__ */ l.isValidElement(r) ? (n = r.props) === null || n === void 0 ? void 0 : n.className : "", `${s}-item-icon`)
450
+ }), $(u));
451
+ return S || (B = /* @__PURE__ */ l.createElement(xt, Object.assign({}, v, {
452
+ placement: g === "rtl" ? "left" : "right",
461
453
  classNames: {
462
454
  root: `${s}-inline-collapsed-tooltip`
463
455
  }
464
456
  }), B)), B;
465
- }, Ke = no;
466
- var ro = globalThis && globalThis.__rest || function(e, o) {
457
+ };
458
+ var Zt = function(e, n) {
467
459
  var t = {};
468
- for (var n in e)
469
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
470
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
471
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
472
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
460
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
461
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
462
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
473
463
  return t;
474
464
  };
475
- const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forwardRef((e, o) => {
465
+ const ae = /* @__PURE__ */ l.createContext(null), Jt = /* @__PURE__ */ l.forwardRef((e, n) => {
476
466
  const {
477
467
  children: t
478
- } = e, n = ro(e, ["children"]), r = l.useContext(le), a = l.useMemo(() => Object.assign(Object.assign({}, r), n), [
468
+ } = e, o = Zt(e, ["children"]), r = l.useContext(ae), a = l.useMemo(() => Object.assign(Object.assign({}, r), o), [
479
469
  r,
480
- n.prefixCls,
470
+ o.prefixCls,
481
471
  // restProps.expandIcon, Not mark as deps since this is a ReactNode
482
- n.mode,
483
- n.selectable,
484
- n.rootClassName
472
+ o.mode,
473
+ o.selectable,
474
+ o.rootClassName
485
475
  // restProps.validator, Not mark as deps since this is a function
486
- ]), i = at(t), c = st(o, i ? ct(t) : null);
487
- return /* @__PURE__ */ l.createElement(le.Provider, {
476
+ ]), i = it(t), d = lt(n, i ? at(t) : null);
477
+ return /* @__PURE__ */ l.createElement(ae.Provider, {
488
478
  value: a
489
- }, /* @__PURE__ */ l.createElement(jt, {
479
+ }, /* @__PURE__ */ l.createElement(Nt, {
490
480
  space: !0
491
481
  }, i ? /* @__PURE__ */ l.cloneElement(t, {
492
- ref: c
482
+ ref: d
493
483
  }) : t));
494
- }), lo = (e) => {
484
+ }), Qt = (e) => {
495
485
  const {
496
- componentCls: o,
486
+ componentCls: n,
497
487
  motionDurationSlow: t,
498
- horizontalLineHeight: n,
488
+ horizontalLineHeight: o,
499
489
  colorSplit: r,
500
490
  lineWidth: a,
501
491
  lineType: i,
502
- itemPaddingInline: c
492
+ itemPaddingInline: d
503
493
  } = e;
504
494
  return {
505
- [`${o}-horizontal`]: {
506
- lineHeight: n,
495
+ [`${n}-horizontal`]: {
496
+ lineHeight: o,
507
497
  border: 0,
508
- borderBottom: `${v(a)} ${i} ${r}`,
498
+ borderBottom: `${h(a)} ${i} ${r}`,
509
499
  boxShadow: "none",
510
500
  "&::after": {
511
501
  display: "block",
@@ -514,73 +504,73 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
514
504
  content: '"\\20"'
515
505
  },
516
506
  // ======================= Item =======================
517
- [`${o}-item, ${o}-submenu`]: {
507
+ [`${n}-item, ${n}-submenu`]: {
518
508
  position: "relative",
519
509
  display: "inline-block",
520
510
  verticalAlign: "bottom",
521
- paddingInline: c
511
+ paddingInline: d
522
512
  },
523
- [`> ${o}-item:hover,
524
- > ${o}-item-active,
525
- > ${o}-submenu ${o}-submenu-title:hover`]: {
513
+ [`> ${n}-item:hover,
514
+ > ${n}-item-active,
515
+ > ${n}-submenu ${n}-submenu-title:hover`]: {
526
516
  backgroundColor: "transparent"
527
517
  },
528
- [`${o}-item, ${o}-submenu-title`]: {
518
+ [`${n}-item, ${n}-submenu-title`]: {
529
519
  transition: [`border-color ${t}`, `background ${t}`].join(",")
530
520
  },
531
521
  // ===================== Sub Menu =====================
532
- [`${o}-submenu-arrow`]: {
522
+ [`${n}-submenu-arrow`]: {
533
523
  display: "none"
534
524
  }
535
525
  }
536
526
  };
537
- }, ao = lo, so = (e) => {
527
+ }, en = (e) => {
538
528
  let {
539
- componentCls: o,
529
+ componentCls: n,
540
530
  menuArrowOffset: t,
541
- calc: n
531
+ calc: o
542
532
  } = e;
543
533
  return {
544
- [`${o}-rtl`]: {
534
+ [`${n}-rtl`]: {
545
535
  direction: "rtl"
546
536
  },
547
- [`${o}-submenu-rtl`]: {
537
+ [`${n}-submenu-rtl`]: {
548
538
  transformOrigin: "100% 0"
549
539
  },
550
540
  // Vertical Arrow
551
- [`${o}-rtl${o}-vertical,
552
- ${o}-submenu-rtl ${o}-vertical`]: {
553
- [`${o}-submenu-arrow`]: {
541
+ [`${n}-rtl${n}-vertical,
542
+ ${n}-submenu-rtl ${n}-vertical`]: {
543
+ [`${n}-submenu-arrow`]: {
554
544
  "&::before": {
555
- transform: `rotate(-45deg) translateY(${v(n(t).mul(-1).equal())})`
545
+ transform: `rotate(-45deg) translateY(${h(o(t).mul(-1).equal())})`
556
546
  },
557
547
  "&::after": {
558
- transform: `rotate(45deg) translateY(${v(t)})`
548
+ transform: `rotate(45deg) translateY(${h(t)})`
559
549
  }
560
550
  }
561
551
  }
562
552
  };
563
- }, co = so, Ne = (e) => Object.assign({}, dt(e)), uo = (e, o) => {
553
+ }, ze = (e) => Object.assign({}, st(e)), Te = (e, n) => {
564
554
  const {
565
555
  componentCls: t,
566
- itemColor: n,
556
+ itemColor: o,
567
557
  itemSelectedColor: r,
568
558
  subMenuItemSelectedColor: a,
569
559
  groupTitleColor: i,
570
- itemBg: c,
560
+ itemBg: d,
571
561
  subMenuItemBg: s,
572
- itemSelectedBg: g,
573
- activeBarHeight: p,
562
+ itemSelectedBg: p,
563
+ activeBarHeight: g,
574
564
  activeBarWidth: S,
575
565
  activeBarBorderWidth: u,
576
- motionDurationSlow: f,
577
- motionEaseInOut: d,
566
+ motionDurationSlow: $,
567
+ motionEaseInOut: c,
578
568
  motionEaseOut: m,
579
- itemPaddingInline: h,
569
+ itemPaddingInline: v,
580
570
  motionDurationMid: I,
581
571
  itemHoverColor: B,
582
572
  lineType: x,
583
- colorSplit: $,
573
+ colorSplit: b,
584
574
  // Disabled
585
575
  itemDisabledColor: E,
586
576
  // Danger
@@ -588,9 +578,9 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
588
578
  dangerItemHoverColor: _,
589
579
  dangerItemSelectedColor: w,
590
580
  dangerItemActiveBg: C,
591
- dangerItemSelectedBg: b,
581
+ dangerItemSelectedBg: f,
592
582
  // Bg
593
- popupBg: T,
583
+ popupBg: j,
594
584
  itemHoverBg: D,
595
585
  itemActiveBg: M,
596
586
  menuSubMenuBg: y,
@@ -601,10 +591,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
601
591
  horizontalItemHoverBg: R
602
592
  } = e;
603
593
  return {
604
- [`${t}-${o}, ${t}-${o} > ${t}`]: {
605
- color: n,
606
- background: c,
607
- [`&${t}-root:focus-visible`]: Object.assign({}, Ne(e)),
594
+ [`${t}-${n}, ${t}-${n} > ${t}`]: {
595
+ color: o,
596
+ background: d,
597
+ [`&${t}-root:focus-visible`]: Object.assign({}, ze(e)),
608
598
  // ======================== Item ========================
609
599
  [`${t}-item`]: {
610
600
  "&-group-title, &-extra": {
@@ -615,8 +605,8 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
615
605
  color: a
616
606
  },
617
607
  [`${t}-item, ${t}-submenu-title`]: {
618
- color: n,
619
- [`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, Ne(e))
608
+ color: o,
609
+ [`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, ze(e))
620
610
  },
621
611
  // Disabled
622
612
  [`${t}-item-disabled, ${t}-submenu-disabled`]: {
@@ -674,10 +664,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
674
664
  }
675
665
  },
676
666
  [`& ${t}-item-selected`]: {
677
- backgroundColor: g,
667
+ backgroundColor: p,
678
668
  // Danger
679
669
  [`&${t}-item-danger`]: {
680
- backgroundColor: b
670
+ backgroundColor: f
681
671
  }
682
672
  },
683
673
  [`&${t}-submenu > ${t}`]: {
@@ -686,14 +676,14 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
686
676
  // ===== 设置浮层的颜色 =======
687
677
  // !dark 模式会被popupBg 会被rest 为 darkPopupBg
688
678
  [`&${t}-popup > ${t}`]: {
689
- backgroundColor: T
679
+ backgroundColor: j
690
680
  },
691
681
  [`&${t}-submenu-popup > ${t}`]: {
692
- backgroundColor: T
682
+ backgroundColor: j
693
683
  },
694
684
  // ===== 设置浮层的颜色 end =======
695
685
  // ====================== Horizontal ======================
696
- [`&${t}-horizontal`]: Object.assign(Object.assign({}, o === "dark" ? {
686
+ [`&${t}-horizontal`]: Object.assign(Object.assign({}, n === "dark" ? {
697
687
  borderBottom: 0
698
688
  } : {}), {
699
689
  [`> ${t}-item, > ${t}-submenu`]: {
@@ -703,16 +693,16 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
703
693
  borderRadius: k,
704
694
  "&::after": {
705
695
  position: "absolute",
706
- insetInline: h,
696
+ insetInline: v,
707
697
  bottom: 0,
708
- borderBottom: `${v(p)} solid transparent`,
709
- transition: `border-color ${f} ${d}`,
698
+ borderBottom: `${h(g)} solid transparent`,
699
+ transition: `border-color ${$} ${c}`,
710
700
  content: '""'
711
701
  },
712
702
  "&:hover, &-active, &-open": {
713
703
  background: R,
714
704
  "&::after": {
715
- borderBottomWidth: p,
705
+ borderBottomWidth: g,
716
706
  borderBottomColor: H
717
707
  }
718
708
  },
@@ -723,7 +713,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
723
713
  backgroundColor: L
724
714
  },
725
715
  "&::after": {
726
- borderBottomWidth: p,
716
+ borderBottomWidth: g,
727
717
  borderBottomColor: H
728
718
  }
729
719
  }
@@ -733,7 +723,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
733
723
  //
734
724
  [`&${t}-root`]: {
735
725
  [`&${t}-inline, &${t}-vertical`]: {
736
- borderInlineEnd: `${v(u)} ${x} ${$}`
726
+ borderInlineEnd: `${h(u)} ${x} ${b}`
737
727
  }
738
728
  },
739
729
  // ======================== Inline ========================
@@ -748,7 +738,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
748
738
  position: "absolute",
749
739
  insetBlock: 0,
750
740
  insetInlineEnd: 0,
751
- borderInlineEnd: `${v(S)} solid ${r}`,
741
+ borderInlineEnd: `${h(S)} solid ${r}`,
752
742
  transform: "scaleY(0.0001)",
753
743
  opacity: 0,
754
744
  transition: [`transform ${I} ${m}`, `opacity ${I} ${m}`].join(","),
@@ -765,93 +755,93 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
765
755
  "&::after": {
766
756
  transform: "scaleY(1)",
767
757
  opacity: 1,
768
- transition: [`transform ${I} ${d}`, `opacity ${I} ${d}`].join(",")
758
+ transition: [`transform ${I} ${c}`, `opacity ${I} ${c}`].join(",")
769
759
  }
770
760
  }
771
761
  }
772
762
  }
773
763
  };
774
- }, Te = uo, je = (e) => {
764
+ }, Pe = (e) => {
775
765
  const {
776
- componentCls: o,
766
+ componentCls: n,
777
767
  itemHeight: t,
778
- itemMarginInline: n,
768
+ itemMarginInline: o,
779
769
  padding: r,
780
770
  menuArrowSize: a,
781
771
  marginXS: i,
782
- itemMarginBlock: c,
772
+ itemMarginBlock: d,
783
773
  itemWidth: s,
784
- itemPaddingInline: g
785
- } = e, p = e.calc(a).add(r).add(i).equal();
774
+ itemPaddingInline: p
775
+ } = e, g = e.calc(a).add(r).add(i).equal();
786
776
  return {
787
- [`${o}-item`]: {
777
+ [`${n}-item`]: {
788
778
  position: "relative",
789
779
  overflow: "hidden"
790
780
  },
791
- [`${o}-item, ${o}-submenu-title`]: {
781
+ [`${n}-item, ${n}-submenu-title`]: {
792
782
  height: t,
793
- lineHeight: v(t),
794
- paddingInline: g,
783
+ lineHeight: h(t),
784
+ paddingInline: p,
795
785
  overflow: "hidden",
796
786
  textOverflow: "ellipsis",
797
- marginInline: n,
798
- marginBlock: c,
787
+ marginInline: o,
788
+ marginBlock: d,
799
789
  width: s
800
790
  },
801
- [`> ${o}-item,
802
- > ${o}-submenu > ${o}-submenu-title`]: {
791
+ [`> ${n}-item,
792
+ > ${n}-submenu > ${n}-submenu-title`]: {
803
793
  height: t,
804
- lineHeight: v(t)
794
+ lineHeight: h(t)
805
795
  },
806
- [`${o}-item-group-list ${o}-submenu-title,
807
- ${o}-submenu-title`]: {
808
- paddingInlineEnd: p
796
+ [`${n}-item-group-list ${n}-submenu-title,
797
+ ${n}-submenu-title`]: {
798
+ paddingInlineEnd: g
809
799
  }
810
800
  };
811
- }, mo = (e) => {
801
+ }, tn = (e) => {
812
802
  const {
813
- componentCls: o,
803
+ componentCls: n,
814
804
  iconCls: t,
815
- itemHeight: n,
805
+ itemHeight: o,
816
806
  colorTextLightSolid: r,
817
807
  dropdownWidth: a,
818
808
  controlHeightLG: i,
819
- motionEaseOut: c,
809
+ motionEaseOut: d,
820
810
  paddingXL: s,
821
- itemMarginInline: g,
822
- fontSizeLG: p,
811
+ itemMarginInline: p,
812
+ fontSizeLG: g,
823
813
  motionDurationFast: S,
824
814
  motionDurationSlow: u,
825
- paddingXS: f,
826
- boxShadowSecondary: d,
815
+ paddingXS: $,
816
+ boxShadowSecondary: c,
827
817
  collapsedWidth: m,
828
- collapsedIconSize: h
818
+ collapsedIconSize: v
829
819
  } = e, I = {
830
- height: n,
831
- lineHeight: v(n),
820
+ height: o,
821
+ lineHeight: h(o),
832
822
  listStylePosition: "inside",
833
823
  listStyleType: "disc"
834
824
  };
835
825
  return [
836
826
  {
837
- [o]: {
827
+ [n]: {
838
828
  "&-inline, &-vertical": Object.assign({
839
- [`&${o}-root`]: {
829
+ [`&${n}-root`]: {
840
830
  boxShadow: "none"
841
831
  }
842
- }, je(e))
832
+ }, Pe(e))
843
833
  },
844
- [`${o}-submenu-popup`]: {
845
- [`${o}-vertical`]: Object.assign(Object.assign({}, je(e)), {
846
- boxShadow: d
834
+ [`${n}-submenu-popup`]: {
835
+ [`${n}-vertical`]: Object.assign(Object.assign({}, Pe(e)), {
836
+ boxShadow: c
847
837
  })
848
838
  }
849
839
  },
850
840
  // Vertical only
851
841
  {
852
- [`${o}-submenu-popup ${o}-vertical${o}-sub`]: {
842
+ [`${n}-submenu-popup ${n}-vertical${n}-sub`]: {
853
843
  minWidth: a,
854
- maxHeight: `calc(100vh - ${v(e.calc(i).mul(2.5).equal())})`,
844
+ maxHeight: `calc(100vh - ${h(e.calc(i).mul(2.5).equal())})`,
855
845
  padding: "0",
856
846
  overflow: "hidden",
857
847
  borderInlineEnd: 0,
@@ -865,15 +855,15 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
865
855
  },
866
856
  // Inline Only
867
857
  {
868
- [`${o}-inline`]: {
858
+ [`${n}-inline`]: {
869
859
  width: "100%",
870
860
  // Motion enhance for first level
871
- [`&${o}-root`]: {
872
- [`${o}-item, ${o}-submenu-title`]: {
861
+ [`&${n}-root`]: {
862
+ [`${n}-item, ${n}-submenu-title`]: {
873
863
  display: "flex",
874
864
  alignItems: "center",
875
- transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${c}`].join(","),
876
- [`> ${o}-title-content`]: {
865
+ transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${d}`].join(","),
866
+ [`> ${n}-title-content`]: {
877
867
  flex: "auto",
878
868
  minWidth: 0,
879
869
  overflow: "hidden",
@@ -885,112 +875,112 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
885
875
  }
886
876
  },
887
877
  // >>>>> Sub
888
- [`${o}-sub${o}-inline`]: {
878
+ [`${n}-sub${n}-inline`]: {
889
879
  padding: 0,
890
880
  border: 0,
891
881
  borderRadius: 0,
892
882
  boxShadow: "none",
893
- [`& > ${o}-submenu > ${o}-submenu-title`]: I,
894
- [`& ${o}-item-group-title`]: {
883
+ [`& > ${n}-submenu > ${n}-submenu-title`]: I,
884
+ [`& ${n}-item-group-title`]: {
895
885
  paddingInlineStart: s
896
886
  }
897
887
  },
898
888
  // >>>>> Item
899
- [`${o}-item`]: I
889
+ [`${n}-item`]: I
900
890
  }
901
891
  },
902
892
  // Inline Collapse Only
903
893
  {
904
- [`${o}-inline-collapsed`]: {
894
+ [`${n}-inline-collapsed`]: {
905
895
  width: m,
906
- [`&${o}-root`]: {
907
- [`${o}-item, ${o}-submenu ${o}-submenu-title`]: {
908
- [`> ${o}-inline-collapsed-noicon`]: {
909
- fontSize: p,
896
+ [`&${n}-root`]: {
897
+ [`${n}-item, ${n}-submenu ${n}-submenu-title`]: {
898
+ [`> ${n}-inline-collapsed-noicon`]: {
899
+ fontSize: g,
910
900
  textAlign: "center"
911
901
  }
912
902
  }
913
903
  },
914
- [`> ${o}-item,
915
- > ${o}-item-group > ${o}-item-group-list > ${o}-item,
916
- > ${o}-item-group > ${o}-item-group-list > ${o}-submenu > ${o}-submenu-title,
917
- > ${o}-submenu > ${o}-submenu-title`]: {
904
+ [`> ${n}-item,
905
+ > ${n}-item-group > ${n}-item-group-list > ${n}-item,
906
+ > ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
907
+ > ${n}-submenu > ${n}-submenu-title`]: {
918
908
  insetInlineStart: 0,
919
- paddingInline: `calc(50% - ${v(e.calc(h).div(2).equal())} - ${v(g)})`,
909
+ paddingInline: `calc(50% - ${h(e.calc(v).div(2).equal())} - ${h(p)})`,
920
910
  textOverflow: "clip",
921
911
  [`
922
- ${o}-submenu-arrow,
923
- ${o}-submenu-expand-icon
912
+ ${n}-submenu-arrow,
913
+ ${n}-submenu-expand-icon
924
914
  `]: {
925
915
  opacity: 0
926
916
  },
927
- [`${o}-item-icon, ${t}`]: {
917
+ [`${n}-item-icon, ${t}`]: {
928
918
  margin: 0,
929
- fontSize: h,
930
- lineHeight: v(n),
919
+ fontSize: v,
920
+ lineHeight: h(o),
931
921
  "+ span": {
932
922
  display: "inline-block",
933
923
  opacity: 0
934
924
  }
935
925
  }
936
926
  },
937
- [`${o}-item-icon, ${t}`]: {
927
+ [`${n}-item-icon, ${t}`]: {
938
928
  display: "inline-block"
939
929
  },
940
930
  "&-tooltip": {
941
931
  pointerEvents: "none",
942
- [`${o}-item-icon, ${t}`]: {
932
+ [`${n}-item-icon, ${t}`]: {
943
933
  display: "none"
944
934
  },
945
935
  "a, a:hover": {
946
936
  color: r
947
937
  }
948
938
  },
949
- [`${o}-item-group-title`]: Object.assign(Object.assign({}, ut), {
950
- paddingInline: f
939
+ [`${n}-item-group-title`]: Object.assign(Object.assign({}, dt), {
940
+ paddingInline: $
951
941
  })
952
942
  }
953
943
  }
954
944
  ];
955
- }, go = mo, ze = (e) => {
945
+ }, He = (e) => {
956
946
  const {
957
- componentCls: o,
947
+ componentCls: n,
958
948
  motionDurationSlow: t,
959
- motionDurationMid: n,
949
+ motionDurationMid: o,
960
950
  motionEaseInOut: r,
961
951
  motionEaseOut: a,
962
952
  iconCls: i,
963
- iconSize: c,
953
+ iconSize: d,
964
954
  iconMarginInlineEnd: s
965
955
  } = e;
966
956
  return {
967
957
  // >>>>> Item
968
- [`${o}-item, ${o}-submenu-title`]: {
958
+ [`${n}-item, ${n}-submenu-title`]: {
969
959
  position: "relative",
970
960
  display: "block",
971
961
  margin: 0,
972
962
  whiteSpace: "nowrap",
973
963
  cursor: "pointer",
974
964
  transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${r}`].join(","),
975
- [`${o}-item-icon, ${i}`]: {
976
- minWidth: c,
977
- fontSize: c,
978
- transition: [`font-size ${n} ${a}`, `margin ${t} ${r}`, `color ${t}`].join(","),
965
+ [`${n}-item-icon, ${i}`]: {
966
+ minWidth: d,
967
+ fontSize: d,
968
+ transition: [`font-size ${o} ${a}`, `margin ${t} ${r}`, `color ${t}`].join(","),
979
969
  "+ span": {
980
970
  marginInlineStart: s,
981
971
  opacity: 1,
982
972
  transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
983
973
  }
984
974
  },
985
- [`${o}-item-icon`]: Object.assign({}, mt()),
986
- [`&${o}-item-only-child`]: {
987
- [`> ${i}, > ${o}-item-icon`]: {
975
+ [`${n}-item-icon`]: Object.assign({}, ct()),
976
+ [`&${n}-item-only-child`]: {
977
+ [`> ${i}, > ${n}-item-icon`]: {
988
978
  marginInlineEnd: 0
989
979
  }
990
980
  }
991
981
  },
992
982
  // Disabled state sets text to gray and nukes hover/tab effects
993
- [`${o}-item-disabled, ${o}-submenu-disabled`]: {
983
+ [`${n}-item-disabled, ${n}-submenu-disabled`]: {
994
984
  background: "none !important",
995
985
  cursor: "not-allowed",
996
986
  "&::after": {
@@ -1001,23 +991,23 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1001
991
  cursor: "not-allowed",
1002
992
  pointerEvents: "none"
1003
993
  },
1004
- [`> ${o}-submenu-title`]: {
994
+ [`> ${n}-submenu-title`]: {
1005
995
  color: "inherit !important",
1006
996
  cursor: "not-allowed"
1007
997
  }
1008
998
  }
1009
999
  };
1010
- }, Pe = (e) => {
1000
+ }, De = (e) => {
1011
1001
  const {
1012
- componentCls: o,
1002
+ componentCls: n,
1013
1003
  motionDurationSlow: t,
1014
- motionEaseInOut: n,
1004
+ motionEaseInOut: o,
1015
1005
  borderRadius: r,
1016
1006
  menuArrowSize: a,
1017
1007
  menuArrowOffset: i
1018
1008
  } = e;
1019
1009
  return {
1020
- [`${o}-submenu`]: {
1010
+ [`${n}-submenu`]: {
1021
1011
  "&-expand-icon, &-arrow": {
1022
1012
  position: "absolute",
1023
1013
  top: "50%",
@@ -1025,7 +1015,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1025
1015
  width: a,
1026
1016
  color: "currentcolor",
1027
1017
  transform: "translateY(-50%)",
1028
- transition: `transform ${t} ${n}, opacity ${t}`
1018
+ transition: `transform ${t} ${o}, opacity ${t}`
1029
1019
  },
1030
1020
  "&-arrow": {
1031
1021
  // →
@@ -1035,36 +1025,36 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1035
1025
  height: e.calc(a).mul(0.15).equal(),
1036
1026
  backgroundColor: "currentcolor",
1037
1027
  borderRadius: r,
1038
- transition: [`background ${t} ${n}`, `transform ${t} ${n}`, `top ${t} ${n}`, `color ${t} ${n}`].join(","),
1028
+ transition: [`background ${t} ${o}`, `transform ${t} ${o}`, `top ${t} ${o}`, `color ${t} ${o}`].join(","),
1039
1029
  content: '""'
1040
1030
  },
1041
1031
  "&::before": {
1042
- transform: `rotate(45deg) translateY(${v(e.calc(i).mul(-1).equal())})`
1032
+ transform: `rotate(45deg) translateY(${h(e.calc(i).mul(-1).equal())})`
1043
1033
  },
1044
1034
  "&::after": {
1045
- transform: `rotate(-45deg) translateY(${v(i)})`
1035
+ transform: `rotate(-45deg) translateY(${h(i)})`
1046
1036
  }
1047
1037
  }
1048
1038
  }
1049
1039
  };
1050
- }, po = (e) => {
1040
+ }, nn = (e) => {
1051
1041
  const {
1052
- antCls: o,
1042
+ antCls: n,
1053
1043
  componentCls: t,
1054
- fontSize: n,
1044
+ fontSize: o,
1055
1045
  motionDurationSlow: r,
1056
1046
  motionDurationMid: a,
1057
1047
  motionEaseInOut: i,
1058
- paddingXS: c,
1048
+ paddingXS: d,
1059
1049
  padding: s,
1060
- colorSplit: g,
1061
- lineWidth: p,
1050
+ colorSplit: p,
1051
+ lineWidth: g,
1062
1052
  zIndexPopup: S,
1063
1053
  borderRadiusLG: u,
1064
- subMenuItemBorderRadius: f,
1065
- menuArrowSize: d,
1054
+ subMenuItemBorderRadius: $,
1055
+ menuArrowSize: c,
1066
1056
  menuArrowOffset: m,
1067
- lineType: h,
1057
+ lineType: v,
1068
1058
  groupTitleLineHeight: I,
1069
1059
  groupTitleFontSize: B
1070
1060
  } = e;
@@ -1072,7 +1062,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1072
1062
  // Misc
1073
1063
  {
1074
1064
  "": {
1075
- [t]: Object.assign(Object.assign({}, we()), {
1065
+ [t]: Object.assign(Object.assign({}, Ee()), {
1076
1066
  // Hidden
1077
1067
  "&-hidden": {
1078
1068
  display: "none"
@@ -1084,11 +1074,11 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1084
1074
  }
1085
1075
  },
1086
1076
  {
1087
- [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, he(e)), we()), {
1077
+ [t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ie(e)), Ee()), {
1088
1078
  marginBottom: 0,
1089
1079
  paddingInlineStart: 0,
1090
1080
  // Override default ul/ol
1091
- fontSize: n,
1081
+ fontSize: o,
1092
1082
  lineHeight: 0,
1093
1083
  listStyle: "none",
1094
1084
  outline: "none",
@@ -1110,7 +1100,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1110
1100
  borderRadius: e.itemBorderRadius
1111
1101
  },
1112
1102
  [`${t}-item-group-title`]: {
1113
- padding: `${v(c)} ${v(s)}`,
1103
+ padding: `${h(d)} ${h(s)}`,
1114
1104
  fontSize: B,
1115
1105
  lineHeight: I,
1116
1106
  transition: `all ${r}`
@@ -1133,7 +1123,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1133
1123
  width: "100%"
1134
1124
  },
1135
1125
  // https://github.com/ant-design/ant-design/issues/41143
1136
- [`> ${o}-typography-ellipsis-single-line`]: {
1126
+ [`> ${n}-typography-ellipsis-single-line`]: {
1137
1127
  display: "inline",
1138
1128
  verticalAlign: "unset"
1139
1129
  },
@@ -1156,23 +1146,23 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1156
1146
  [`${t}-item-divider`]: {
1157
1147
  overflow: "hidden",
1158
1148
  lineHeight: 0,
1159
- borderColor: g,
1160
- borderStyle: h,
1149
+ borderColor: p,
1150
+ borderStyle: v,
1161
1151
  borderWidth: 0,
1162
- borderTopWidth: p,
1163
- marginBlock: p,
1152
+ borderTopWidth: g,
1153
+ marginBlock: g,
1164
1154
  padding: 0,
1165
1155
  "&-dashed": {
1166
1156
  borderStyle: "dashed"
1167
1157
  }
1168
1158
  }
1169
- }), ze(e)), {
1159
+ }), He(e)), {
1170
1160
  [`${t}-item-group`]: {
1171
1161
  [`${t}-item-group-list`]: {
1172
1162
  margin: 0,
1173
1163
  padding: 0,
1174
1164
  [`${t}-item, ${t}-submenu-title`]: {
1175
- paddingInline: `${v(e.calc(n).mul(2).equal())} ${v(s)}`
1165
+ paddingInline: `${h(e.calc(o).mul(2).equal())} ${h(s)}`
1176
1166
  }
1177
1167
  }
1178
1168
  },
@@ -1199,9 +1189,9 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1199
1189
  },
1200
1190
  [`> ${t}`]: Object.assign(Object.assign(Object.assign({
1201
1191
  borderRadius: u
1202
- }, ze(e)), Pe(e)), {
1192
+ }, He(e)), De(e)), {
1203
1193
  [`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
1204
- borderRadius: f
1194
+ borderRadius: $
1205
1195
  },
1206
1196
  [`${t}-submenu-title::after`]: {
1207
1197
  transition: `transform ${r} ${i}`
@@ -1233,65 +1223,65 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1233
1223
  paddingTop: e.paddingXS
1234
1224
  }
1235
1225
  }
1236
- }), Pe(e)), {
1226
+ }), De(e)), {
1237
1227
  [`&-inline-collapsed ${t}-submenu-arrow,
1238
1228
  &-inline ${t}-submenu-arrow`]: {
1239
1229
  // ↓
1240
1230
  "&::before": {
1241
- transform: `rotate(-45deg) translateX(${v(m)})`
1231
+ transform: `rotate(-45deg) translateX(${h(m)})`
1242
1232
  },
1243
1233
  "&::after": {
1244
- transform: `rotate(45deg) translateX(${v(e.calc(m).mul(-1).equal())})`
1234
+ transform: `rotate(45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
1245
1235
  }
1246
1236
  },
1247
1237
  [`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
1248
1238
  // ↑
1249
- transform: `translateY(${v(e.calc(d).mul(0.2).mul(-1).equal())})`,
1239
+ transform: `translateY(${h(e.calc(c).mul(0.2).mul(-1).equal())})`,
1250
1240
  "&::after": {
1251
- transform: `rotate(-45deg) translateX(${v(e.calc(m).mul(-1).equal())})`
1241
+ transform: `rotate(-45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
1252
1242
  },
1253
1243
  "&::before": {
1254
- transform: `rotate(45deg) translateX(${v(m)})`
1244
+ transform: `rotate(45deg) translateX(${h(m)})`
1255
1245
  }
1256
1246
  }
1257
1247
  })
1258
1248
  },
1259
1249
  // Integration with header element so menu items have the same height
1260
1250
  {
1261
- [`${o}-layout-header`]: {
1251
+ [`${n}-layout-header`]: {
1262
1252
  [t]: {
1263
1253
  lineHeight: "inherit"
1264
1254
  }
1265
1255
  }
1266
1256
  }
1267
1257
  ];
1268
- }, bo = (e) => {
1269
- var o, t, n;
1258
+ }, on = (e) => {
1259
+ var n, t, o;
1270
1260
  const {
1271
1261
  colorPrimary: r,
1272
1262
  colorError: a,
1273
1263
  colorTextDisabled: i,
1274
- colorErrorBg: c,
1264
+ colorErrorBg: d,
1275
1265
  colorText: s,
1276
- colorTextDescription: g,
1277
- colorBgContainer: p,
1266
+ colorTextDescription: p,
1267
+ colorBgContainer: g,
1278
1268
  colorFillAlter: S,
1279
1269
  colorFillContent: u,
1280
- lineWidth: f,
1281
- lineWidthBold: d,
1270
+ lineWidth: $,
1271
+ lineWidthBold: c,
1282
1272
  controlItemBgActive: m,
1283
- colorBgTextHover: h,
1273
+ colorBgTextHover: v,
1284
1274
  controlHeightLG: I,
1285
1275
  lineHeight: B,
1286
1276
  colorBgElevated: x,
1287
- marginXXS: $,
1277
+ marginXXS: b,
1288
1278
  padding: E,
1289
1279
  fontSize: N,
1290
1280
  controlHeightSM: _,
1291
1281
  fontSizeLG: w,
1292
1282
  colorTextLightSolid: C,
1293
- colorErrorHover: b
1294
- } = e, T = (o = e.activeBarWidth) !== null && o !== void 0 ? o : 0, D = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : f, M = (n = e.itemMarginInline) !== null && n !== void 0 ? n : e.marginXXS, y = new xe(C).setA(0.65).toRgbString();
1283
+ colorErrorHover: f
1284
+ } = e, j = (n = e.activeBarWidth) !== null && n !== void 0 ? n : 0, D = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : $, M = (o = e.itemMarginInline) !== null && o !== void 0 ? o : e.marginXXS, y = new Be(C).setA(0.65).toRgbString();
1295
1285
  return {
1296
1286
  dropdownWidth: 160,
1297
1287
  zIndexPopup: e.zIndexPopupBase + 50,
@@ -1305,17 +1295,17 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1305
1295
  itemHoverColor: s,
1306
1296
  colorItemTextHoverHorizontal: r,
1307
1297
  horizontalItemHoverColor: r,
1308
- colorGroupTitle: g,
1309
- groupTitleColor: g,
1298
+ colorGroupTitle: p,
1299
+ groupTitleColor: p,
1310
1300
  colorItemTextSelected: r,
1311
1301
  itemSelectedColor: r,
1312
1302
  subMenuItemSelectedColor: r,
1313
1303
  colorItemTextSelectedHorizontal: r,
1314
1304
  horizontalItemSelectedColor: r,
1315
- colorItemBg: p,
1316
- itemBg: p,
1317
- colorItemBgHover: h,
1318
- itemHoverBg: h,
1305
+ colorItemBg: g,
1306
+ itemBg: g,
1307
+ colorItemBgHover: v,
1308
+ itemHoverBg: v,
1319
1309
  colorItemBgActive: u,
1320
1310
  itemActiveBg: m,
1321
1311
  colorSubItemBg: S,
@@ -1325,10 +1315,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1325
1315
  colorItemBgSelectedHorizontal: "transparent",
1326
1316
  horizontalItemSelectedBg: "transparent",
1327
1317
  colorActiveBarWidth: 0,
1328
- activeBarWidth: T,
1329
- colorActiveBarHeight: d,
1330
- activeBarHeight: d,
1331
- colorActiveBarBorderSize: f,
1318
+ activeBarWidth: j,
1319
+ colorActiveBarHeight: c,
1320
+ activeBarHeight: c,
1321
+ colorActiveBarBorderSize: $,
1332
1322
  activeBarBorderWidth: D,
1333
1323
  // Disabled
1334
1324
  colorItemTextDisabled: i,
@@ -1340,10 +1330,10 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1340
1330
  dangerItemHoverColor: a,
1341
1331
  colorDangerItemTextSelected: a,
1342
1332
  dangerItemSelectedColor: a,
1343
- colorDangerItemBgActive: c,
1344
- dangerItemActiveBg: c,
1345
- colorDangerItemBgSelected: c,
1346
- dangerItemSelectedBg: c,
1333
+ colorDangerItemBgActive: d,
1334
+ dangerItemActiveBg: d,
1335
+ colorDangerItemBgSelected: d,
1336
+ dangerItemSelectedBg: d,
1347
1337
  itemMarginInline: M,
1348
1338
  horizontalItemBorderRadius: 0,
1349
1339
  horizontalItemHoverBg: "transparent",
@@ -1351,7 +1341,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1351
1341
  groupTitleLineHeight: B,
1352
1342
  collapsedWidth: I * 2,
1353
1343
  popupBg: x,
1354
- itemMarginBlock: $,
1344
+ itemMarginBlock: b,
1355
1345
  itemPaddingInline: E,
1356
1346
  horizontalLineHeight: `${I * 1.15}px`,
1357
1347
  iconSize: N,
@@ -1359,7 +1349,7 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1359
1349
  collapsedIconSize: w,
1360
1350
  groupTitleFontSize: N,
1361
1351
  // Disabled
1362
- darkItemDisabledColor: new xe(C).setA(0.25).toRgbString(),
1352
+ darkItemDisabledColor: new Be(C).setA(0.25).toRgbString(),
1363
1353
  // Dark
1364
1354
  darkItemColor: y,
1365
1355
  darkDangerItemColor: a,
@@ -1372,301 +1362,299 @@ const le = /* @__PURE__ */ l.createContext(null), io = /* @__PURE__ */ l.forward
1372
1362
  darkItemHoverBg: "transparent",
1373
1363
  darkGroupTitleColor: y,
1374
1364
  darkItemHoverColor: C,
1375
- darkDangerItemHoverColor: b,
1365
+ darkDangerItemHoverColor: f,
1376
1366
  darkDangerItemSelectedColor: C,
1377
1367
  darkDangerItemActiveBg: a,
1378
1368
  // internal
1379
- itemWidth: T ? `calc(100% + ${D}px)` : `calc(100% - ${M * 2}px)`
1369
+ itemWidth: j ? `calc(100% + ${D}px)` : `calc(100% - ${M * 2}px)`
1380
1370
  };
1381
- }, $o = function(e) {
1382
- let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
1371
+ }, rn = function(e) {
1372
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
1383
1373
  return te("Menu", (r) => {
1384
1374
  const {
1385
1375
  colorBgElevated: a,
1386
1376
  controlHeightLG: i,
1387
- fontSize: c,
1377
+ fontSize: d,
1388
1378
  darkItemColor: s,
1389
- darkDangerItemColor: g,
1390
- darkItemBg: p,
1379
+ darkDangerItemColor: p,
1380
+ darkItemBg: g,
1391
1381
  darkSubMenuItemBg: S,
1392
1382
  darkItemSelectedColor: u,
1393
- darkItemSelectedBg: f,
1394
- darkDangerItemSelectedBg: d,
1383
+ darkItemSelectedBg: $,
1384
+ darkDangerItemSelectedBg: c,
1395
1385
  darkItemHoverBg: m,
1396
- darkGroupTitleColor: h,
1386
+ darkGroupTitleColor: v,
1397
1387
  darkItemHoverColor: I,
1398
1388
  darkItemDisabledColor: B,
1399
1389
  darkDangerItemHoverColor: x,
1400
- darkDangerItemSelectedColor: $,
1390
+ darkDangerItemSelectedColor: b,
1401
1391
  darkDangerItemActiveBg: E,
1402
1392
  popupBg: N,
1403
1393
  darkPopupBg: _
1404
- } = r, w = r.calc(c).div(7).mul(5).equal(), C = ne(r, {
1394
+ } = r, w = r.calc(d).div(7).mul(5).equal(), C = oe(r, {
1405
1395
  menuArrowSize: w,
1406
1396
  menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
1407
1397
  menuArrowOffset: r.calc(w).mul(0.25).equal(),
1408
1398
  menuSubMenuBg: a,
1409
1399
  calc: r.calc,
1410
1400
  popupBg: N
1411
- }), b = ne(C, {
1401
+ }), f = oe(C, {
1412
1402
  itemColor: s,
1413
1403
  itemHoverColor: I,
1414
- groupTitleColor: h,
1404
+ groupTitleColor: v,
1415
1405
  itemSelectedColor: u,
1416
- itemBg: p,
1406
+ itemBg: g,
1417
1407
  popupBg: _,
1418
1408
  subMenuItemBg: S,
1419
1409
  itemActiveBg: "transparent",
1420
- itemSelectedBg: f,
1410
+ itemSelectedBg: $,
1421
1411
  activeBarHeight: 0,
1422
1412
  activeBarBorderWidth: 0,
1423
1413
  itemHoverBg: m,
1424
1414
  // Disabled
1425
1415
  itemDisabledColor: B,
1426
1416
  // Danger
1427
- dangerItemColor: g,
1417
+ dangerItemColor: p,
1428
1418
  dangerItemHoverColor: x,
1429
- dangerItemSelectedColor: $,
1419
+ dangerItemSelectedColor: b,
1430
1420
  dangerItemActiveBg: E,
1431
- dangerItemSelectedBg: d,
1421
+ dangerItemSelectedBg: c,
1432
1422
  menuSubMenuBg: S,
1433
1423
  // Horizontal
1434
1424
  horizontalItemSelectedColor: u,
1435
- horizontalItemSelectedBg: f
1425
+ horizontalItemSelectedBg: $
1436
1426
  });
1437
1427
  return [
1438
1428
  // Basic
1439
- po(C),
1429
+ nn(C),
1440
1430
  // Horizontal
1441
- ao(C),
1431
+ Qt(C),
1442
1432
  // Hard code for some light style
1443
1433
  // Vertical
1444
- go(C),
1434
+ tn(C),
1445
1435
  // Hard code for some light style
1446
1436
  // Theme
1447
1437
  Te(C, "light"),
1448
- Te(b, "dark"),
1438
+ Te(f, "dark"),
1449
1439
  // RTL
1450
- co(C),
1440
+ en(C),
1451
1441
  // Motion
1452
- zt(C),
1442
+ jt(C),
1453
1443
  re(C, "slide-up"),
1454
1444
  re(C, "slide-down"),
1455
- We(C, "zoom-big")
1445
+ Xe(C, "zoom-big")
1456
1446
  ];
1457
- }, bo, {
1447
+ }, on, {
1458
1448
  deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
1459
1449
  // Dropdown will handle menu style self. We do not need to handle this.
1460
1450
  injectStyle: t,
1461
1451
  unitless: {
1462
1452
  groupTitleLineHeight: !0
1463
1453
  }
1464
- })(e, o);
1465
- }, fo = (e) => {
1466
- var o;
1454
+ })(e, n);
1455
+ }, Ke = (e) => {
1456
+ var n;
1467
1457
  const {
1468
1458
  popupClassName: t,
1469
- icon: n,
1459
+ icon: o,
1470
1460
  title: r,
1471
1461
  theme: a
1472
- } = e, i = l.useContext(ie), {
1473
- prefixCls: c,
1462
+ } = e, i = l.useContext(le), {
1463
+ prefixCls: d,
1474
1464
  inlineCollapsed: s,
1475
- theme: g
1476
- } = i, p = vt();
1465
+ theme: p
1466
+ } = i, g = bt();
1477
1467
  let S;
1478
- if (!n)
1479
- S = s && !p.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
1480
- className: `${c}-inline-collapsed-noicon`
1468
+ if (!o)
1469
+ S = s && !g.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
1470
+ className: `${d}-inline-collapsed-noicon`
1481
1471
  }, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
1482
- className: `${c}-title-content`
1472
+ className: `${d}-title-content`
1483
1473
  }, r);
1484
1474
  else {
1485
- const d = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
1486
- S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(n, {
1487
- className: P(/* @__PURE__ */ l.isValidElement(n) ? (o = n.props) === null || o === void 0 ? void 0 : o.className : "", `${c}-item-icon`)
1488
- }), d ? r : /* @__PURE__ */ l.createElement("span", {
1489
- className: `${c}-title-content`
1475
+ const c = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
1476
+ S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(o, {
1477
+ className: P(/* @__PURE__ */ l.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : "", `${d}-item-icon`)
1478
+ }), c ? r : /* @__PURE__ */ l.createElement("span", {
1479
+ className: `${d}-title-content`
1490
1480
  }, r));
1491
1481
  }
1492
1482
  const u = l.useMemo(() => Object.assign(Object.assign({}, i), {
1493
1483
  firstLevel: !1
1494
- }), [i]), [f] = ke("Menu");
1495
- return /* @__PURE__ */ l.createElement(ie.Provider, {
1484
+ }), [i]), [$] = We("Menu");
1485
+ return /* @__PURE__ */ l.createElement(le.Provider, {
1496
1486
  value: u
1497
- }, /* @__PURE__ */ l.createElement(ht, Object.assign({}, Q(e, ["icon"]), {
1487
+ }, /* @__PURE__ */ l.createElement($t, Object.assign({}, Q(e, ["icon"]), {
1498
1488
  title: S,
1499
- popupClassName: P(c, t, `${c}-${a || g}`),
1489
+ popupClassName: P(d, t, `${d}-${a || p}`),
1500
1490
  popupStyle: Object.assign({
1501
- zIndex: f
1491
+ zIndex: $
1502
1492
  }, e.popupStyle)
1503
1493
  })));
1504
- }, Ze = fo;
1505
- var vo = globalThis && globalThis.__rest || function(e, o) {
1494
+ };
1495
+ var ln = function(e, n) {
1506
1496
  var t = {};
1507
- for (var n in e)
1508
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
1509
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1510
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
1511
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
1497
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1498
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
1499
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
1512
1500
  return t;
1513
1501
  };
1514
- function be(e) {
1502
+ function $e(e) {
1515
1503
  return e === null || e === !1;
1516
1504
  }
1517
- const ho = {
1518
- item: Ke,
1519
- submenu: Ze,
1520
- divider: Ue
1521
- }, Co = /* @__PURE__ */ Re((e, o) => {
1505
+ const an = {
1506
+ item: Ue,
1507
+ submenu: Ke,
1508
+ divider: Ye
1509
+ }, sn = /* @__PURE__ */ Ae((e, n) => {
1522
1510
  var t;
1523
- const n = l.useContext(le), r = n || {}, {
1511
+ const o = l.useContext(ae), r = o || {}, {
1524
1512
  getPrefixCls: a,
1525
1513
  getPopupContainer: i,
1526
- direction: c,
1514
+ direction: d,
1527
1515
  menu: s
1528
- } = l.useContext(Z), g = a(), {
1529
- prefixCls: p,
1516
+ } = l.useContext(Z), p = a(), {
1517
+ prefixCls: g,
1530
1518
  className: S,
1531
1519
  style: u,
1532
- theme: f = "light",
1533
- expandIcon: d,
1520
+ theme: $ = "light",
1521
+ expandIcon: c,
1534
1522
  _internalDisableMenuItemTitleTooltip: m,
1535
- inlineCollapsed: h,
1523
+ inlineCollapsed: v,
1536
1524
  siderCollapsed: I,
1537
1525
  rootClassName: B,
1538
1526
  mode: x,
1539
- selectable: $,
1527
+ selectable: b,
1540
1528
  onClick: E,
1541
1529
  overflowedIndicatorPopupClassName: N
1542
- } = e, _ = vo(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), w = Q(_, ["collapsedWidth"]);
1530
+ } = e, _ = ln(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), w = Q(_, ["collapsedWidth"]);
1543
1531
  if (process.env.NODE_ENV !== "production") {
1544
- const j = ae("Menu");
1545
- process.env.NODE_ENV !== "production" && j(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), j.deprecated("items" in e && !e.children, "children", "items");
1532
+ const z = se("Menu");
1533
+ process.env.NODE_ENV !== "production" && z(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), z.deprecated("items" in e && !e.children, "children", "items");
1546
1534
  }
1547
1535
  (t = r.validator) === null || t === void 0 || t.call(r, {
1548
1536
  mode: x
1549
1537
  });
1550
- const C = Le(function() {
1551
- var j;
1552
- E == null || E.apply(void 0, arguments), (j = r.onClick) === null || j === void 0 || j.call(r);
1553
- }), b = r.mode || x, T = $ ?? r.selectable, D = h ?? I, M = {
1538
+ const C = ke(function() {
1539
+ var z;
1540
+ E == null || E.apply(void 0, arguments), (z = r.onClick) === null || z === void 0 || z.call(r);
1541
+ }), f = r.mode || x, j = b ?? r.selectable, D = v ?? I, M = {
1554
1542
  horizontal: {
1555
- motionName: `${g}-slide-up`
1543
+ motionName: `${p}-slide-up`
1556
1544
  },
1557
- inline: xt(g),
1545
+ inline: It(p),
1558
1546
  other: {
1559
- motionName: `${g}-zoom-big`
1547
+ motionName: `${p}-zoom-big`
1560
1548
  }
1561
- }, y = a("menu", p || r.prefixCls), H = Xe(y), [L, k, R] = $o(y, H, !n), W = P(`${y}-${f}`, s == null ? void 0 : s.className, S), V = l.useMemo(() => {
1562
- var j, X;
1563
- if (typeof d == "function" || be(d))
1564
- return d || null;
1565
- if (typeof r.expandIcon == "function" || be(r.expandIcon))
1549
+ }, y = a("menu", g || r.prefixCls), H = Ve(y), [L, k, R] = rn(y, H, !o), W = P(`${y}-${$}`, s == null ? void 0 : s.className, S), V = l.useMemo(() => {
1550
+ var z, X;
1551
+ if (typeof c == "function" || $e(c))
1552
+ return c || null;
1553
+ if (typeof r.expandIcon == "function" || $e(r.expandIcon))
1566
1554
  return r.expandIcon || null;
1567
- if (typeof (s == null ? void 0 : s.expandIcon) == "function" || be(s == null ? void 0 : s.expandIcon))
1555
+ if (typeof (s == null ? void 0 : s.expandIcon) == "function" || $e(s == null ? void 0 : s.expandIcon))
1568
1556
  return (s == null ? void 0 : s.expandIcon) || null;
1569
- const q = (j = d ?? (r == null ? void 0 : r.expandIcon)) !== null && j !== void 0 ? j : s == null ? void 0 : s.expandIcon;
1557
+ const q = (z = c ?? (r == null ? void 0 : r.expandIcon)) !== null && z !== void 0 ? z : s == null ? void 0 : s.expandIcon;
1570
1558
  return ee(q, {
1571
1559
  className: P(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
1572
1560
  });
1573
- }, [d, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, y]), F = l.useMemo(() => ({
1561
+ }, [c, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, y]), F = l.useMemo(() => ({
1574
1562
  prefixCls: y,
1575
1563
  inlineCollapsed: D || !1,
1576
- direction: c,
1564
+ direction: d,
1577
1565
  firstLevel: !0,
1578
- theme: f,
1579
- mode: b,
1566
+ theme: $,
1567
+ mode: f,
1580
1568
  disableMenuItemTitleTooltip: m
1581
- }), [y, D, c, m, f]);
1582
- return L(/* @__PURE__ */ l.createElement(le.Provider, {
1569
+ }), [y, D, d, m, $]);
1570
+ return L(/* @__PURE__ */ l.createElement(ae.Provider, {
1583
1571
  value: null
1584
- }, /* @__PURE__ */ l.createElement(ie.Provider, {
1572
+ }, /* @__PURE__ */ l.createElement(le.Provider, {
1585
1573
  value: F
1586
- }, /* @__PURE__ */ l.createElement(Ct, Object.assign({
1574
+ }, /* @__PURE__ */ l.createElement(ht, Object.assign({
1587
1575
  getPopupContainer: i,
1588
- overflowedIndicator: /* @__PURE__ */ l.createElement(St, null),
1589
- overflowedIndicatorPopupClassName: P(y, `${y}-${f}`, N),
1590
- mode: b,
1591
- selectable: T,
1576
+ overflowedIndicator: /* @__PURE__ */ l.createElement(vt, null),
1577
+ overflowedIndicatorPopupClassName: P(y, `${y}-${$}`, N),
1578
+ mode: f,
1579
+ selectable: j,
1592
1580
  onClick: C
1593
1581
  }, w, {
1594
1582
  inlineCollapsed: D,
1595
1583
  style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), u),
1596
1584
  className: W,
1597
1585
  prefixCls: y,
1598
- direction: c,
1586
+ direction: d,
1599
1587
  defaultMotions: M,
1600
1588
  expandIcon: V,
1601
- ref: o,
1589
+ ref: n,
1602
1590
  rootClassName: P(B, k, r.rootClassName, R, H),
1603
- _internalComponents: ho
1591
+ _internalComponents: an
1604
1592
  })))));
1605
- }), So = Co, J = /* @__PURE__ */ Re((e, o) => {
1606
- const t = Me(null), n = l.useContext(Ce);
1607
- return rt(o, () => ({
1593
+ }), J = /* @__PURE__ */ Ae((e, n) => {
1594
+ const t = _e(null), o = l.useContext(xe);
1595
+ return nt(n, () => ({
1608
1596
  menu: t.current,
1609
1597
  focus: (r) => {
1610
1598
  var a;
1611
1599
  (a = t.current) === null || a === void 0 || a.focus(r);
1612
1600
  }
1613
- })), /* @__PURE__ */ l.createElement(So, Object.assign({
1601
+ })), /* @__PURE__ */ l.createElement(sn, Object.assign({
1614
1602
  ref: t
1615
- }, e, n));
1603
+ }, e, o));
1616
1604
  });
1617
- J.Item = Ke;
1618
- J.SubMenu = Ze;
1619
- J.Divider = Ue;
1620
- J.ItemGroup = It;
1605
+ J.Item = Ue;
1606
+ J.SubMenu = Ke;
1607
+ J.Divider = Ye;
1608
+ J.ItemGroup = Ct;
1621
1609
  process.env.NODE_ENV !== "production" && (J.displayName = "Menu");
1622
- const Io = J, yo = (e) => {
1610
+ const dn = (e) => {
1623
1611
  const {
1624
- componentCls: o,
1612
+ componentCls: n,
1625
1613
  menuCls: t,
1626
- colorError: n,
1614
+ colorError: o,
1627
1615
  colorTextLightSolid: r
1628
1616
  } = e, a = `${t}-item`;
1629
1617
  return {
1630
- [`${o}, ${o}-menu-submenu`]: {
1618
+ [`${n}, ${n}-menu-submenu`]: {
1631
1619
  [`${t} ${a}`]: {
1632
1620
  [`&${a}-danger:not(${a}-disabled)`]: {
1633
- color: n,
1621
+ color: o,
1634
1622
  "&:hover": {
1635
1623
  color: r,
1636
- backgroundColor: n
1624
+ backgroundColor: o
1637
1625
  }
1638
1626
  }
1639
1627
  }
1640
1628
  }
1641
1629
  };
1642
- }, xo = yo, wo = (e) => {
1630
+ }, cn = (e) => {
1643
1631
  const {
1644
- componentCls: o,
1632
+ componentCls: n,
1645
1633
  menuCls: t,
1646
- zIndexPopup: n,
1634
+ zIndexPopup: o,
1647
1635
  dropdownArrowDistance: r,
1648
1636
  sizePopupArrow: a,
1649
1637
  antCls: i,
1650
- iconCls: c,
1638
+ iconCls: d,
1651
1639
  motionDurationMid: s,
1652
- paddingBlock: g,
1653
- fontSize: p,
1640
+ paddingBlock: p,
1641
+ fontSize: g,
1654
1642
  dropdownEdgeChildPadding: S,
1655
1643
  colorTextDisabled: u,
1656
- fontSizeIcon: f,
1657
- controlPaddingHorizontal: d,
1644
+ fontSizeIcon: $,
1645
+ controlPaddingHorizontal: c,
1658
1646
  colorBgElevated: m
1659
1647
  } = e;
1660
1648
  return [
1661
1649
  {
1662
- [o]: {
1650
+ [n]: {
1663
1651
  position: "absolute",
1664
1652
  top: -9999,
1665
1653
  left: {
1666
1654
  _skip_check_: !0,
1667
1655
  value: -9999
1668
1656
  },
1669
- zIndex: n,
1657
+ zIndex: o,
1670
1658
  display: "block",
1671
1659
  // A placeholder out of dropdown visible range to avoid close when user moving
1672
1660
  "&::before": {
@@ -1683,21 +1671,21 @@ const Io = J, yo = (e) => {
1683
1671
  overflowY: "auto"
1684
1672
  },
1685
1673
  [`&-trigger${i}-btn`]: {
1686
- [`& > ${c}-down, & > ${i}-btn-icon > ${c}-down`]: {
1687
- fontSize: f
1674
+ [`& > ${d}-down, & > ${i}-btn-icon > ${d}-down`]: {
1675
+ fontSize: $
1688
1676
  }
1689
1677
  },
1690
- [`${o}-wrap`]: {
1678
+ [`${n}-wrap`]: {
1691
1679
  position: "relative",
1692
- [`${i}-btn > ${c}-down`]: {
1693
- fontSize: f
1680
+ [`${i}-btn > ${d}-down`]: {
1681
+ fontSize: $
1694
1682
  },
1695
- [`${c}-down::before`]: {
1683
+ [`${d}-down::before`]: {
1696
1684
  transition: `transform ${s}`
1697
1685
  }
1698
1686
  },
1699
- [`${o}-wrap-open`]: {
1700
- [`${c}-down::before`]: {
1687
+ [`${n}-wrap-open`]: {
1688
+ [`${d}-down::before`]: {
1701
1689
  transform: "rotate(180deg)"
1702
1690
  }
1703
1691
  },
@@ -1709,38 +1697,38 @@ const Io = J, yo = (e) => {
1709
1697
  // =============================================================
1710
1698
  // When position is not enough for dropdown, the placement will revert.
1711
1699
  // We will handle this with revert motion name.
1712
- [`&${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomLeft,
1713
- &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomLeft,
1714
- &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottom,
1715
- &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottom,
1716
- &${i}-slide-down-enter${i}-slide-down-enter-active${o}-placement-bottomRight,
1717
- &${i}-slide-down-appear${i}-slide-down-appear-active${o}-placement-bottomRight`]: {
1718
- animationName: Pt
1700
+ [`&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomLeft,
1701
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomLeft,
1702
+ &${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottom,
1703
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottom,
1704
+ &${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomRight,
1705
+ &${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomRight`]: {
1706
+ animationName: zt
1719
1707
  },
1720
- [`&${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topLeft,
1721
- &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topLeft,
1722
- &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-top,
1723
- &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-top,
1724
- &${i}-slide-up-enter${i}-slide-up-enter-active${o}-placement-topRight,
1725
- &${i}-slide-up-appear${i}-slide-up-appear-active${o}-placement-topRight`]: {
1726
- animationName: Ht
1708
+ [`&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topLeft,
1709
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topLeft,
1710
+ &${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-top,
1711
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-top,
1712
+ &${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topRight,
1713
+ &${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topRight`]: {
1714
+ animationName: Tt
1727
1715
  },
1728
- [`&${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomLeft,
1729
- &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottom,
1730
- &${i}-slide-down-leave${i}-slide-down-leave-active${o}-placement-bottomRight`]: {
1731
- animationName: Dt
1716
+ [`&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomLeft,
1717
+ &${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottom,
1718
+ &${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomRight`]: {
1719
+ animationName: Pt
1732
1720
  },
1733
- [`&${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topLeft,
1734
- &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-top,
1735
- &${i}-slide-up-leave${i}-slide-up-leave-active${o}-placement-topRight`]: {
1736
- animationName: Mt
1721
+ [`&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topLeft,
1722
+ &${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-top,
1723
+ &${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topRight`]: {
1724
+ animationName: Ht
1737
1725
  }
1738
1726
  }
1739
1727
  },
1740
1728
  // =============================================================
1741
1729
  // == Arrow style ==
1742
1730
  // =============================================================
1743
- Bt(e, m, {
1731
+ wt(e, m, {
1744
1732
  arrowPlacement: {
1745
1733
  top: !0,
1746
1734
  bottom: !0
@@ -1750,13 +1738,13 @@ const Io = J, yo = (e) => {
1750
1738
  // =============================================================
1751
1739
  // == Menu ==
1752
1740
  // =============================================================
1753
- [`${o} ${t}`]: {
1741
+ [`${n} ${t}`]: {
1754
1742
  position: "relative",
1755
1743
  margin: 0
1756
1744
  },
1757
1745
  [`${t}-submenu-popup`]: {
1758
1746
  position: "absolute",
1759
- zIndex: n,
1747
+ zIndex: o,
1760
1748
  background: "transparent",
1761
1749
  boxShadow: "none",
1762
1750
  transformOrigin: "0 0",
@@ -1765,7 +1753,7 @@ const Io = J, yo = (e) => {
1765
1753
  margin: 0
1766
1754
  }
1767
1755
  },
1768
- [`${o}, ${o}-menu-submenu`]: Object.assign(Object.assign({}, he(e)), {
1756
+ [`${n}, ${n}-menu-submenu`]: Object.assign(Object.assign({}, Ie(e)), {
1769
1757
  [t]: Object.assign(Object.assign({
1770
1758
  padding: S,
1771
1759
  listStyleType: "none",
@@ -1774,13 +1762,13 @@ const Io = J, yo = (e) => {
1774
1762
  borderRadius: e.borderRadiusLG,
1775
1763
  outline: "none",
1776
1764
  boxShadow: e.boxShadowSecondary
1777
- }, $e(e)), {
1765
+ }, he(e)), {
1778
1766
  "&:empty": {
1779
1767
  padding: 0,
1780
1768
  boxShadow: "none"
1781
1769
  },
1782
1770
  [`${t}-item-group-title`]: {
1783
- padding: `${v(g)} ${v(d)}`,
1771
+ padding: `${h(p)} ${h(c)}`,
1784
1772
  color: e.colorTextDescription,
1785
1773
  transition: `all ${s}`
1786
1774
  },
@@ -1791,7 +1779,7 @@ const Io = J, yo = (e) => {
1791
1779
  alignItems: "center"
1792
1780
  },
1793
1781
  [`${t}-item-icon`]: {
1794
- minWidth: p,
1782
+ minWidth: g,
1795
1783
  marginInlineEnd: e.marginXS,
1796
1784
  fontSize: e.fontSizeSM
1797
1785
  },
@@ -1825,10 +1813,10 @@ const Io = J, yo = (e) => {
1825
1813
  [`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
1826
1814
  display: "flex",
1827
1815
  margin: 0,
1828
- padding: `${v(g)} ${v(d)}`,
1816
+ padding: `${h(p)} ${h(c)}`,
1829
1817
  color: e.colorText,
1830
1818
  fontWeight: "normal",
1831
- fontSize: p,
1819
+ fontSize: g,
1832
1820
  lineHeight: e.lineHeight,
1833
1821
  cursor: "pointer",
1834
1822
  transition: `all ${s}`,
@@ -1836,7 +1824,7 @@ const Io = J, yo = (e) => {
1836
1824
  "&:hover, &-active": {
1837
1825
  backgroundColor: e.controlItemBgHover
1838
1826
  }
1839
- }, $e(e)), {
1827
+ }, he(e)), {
1840
1828
  "&-selected": {
1841
1829
  color: e.colorPrimary,
1842
1830
  backgroundColor: e.controlItemBgActive,
@@ -1859,150 +1847,150 @@ const Io = J, yo = (e) => {
1859
1847
  "&-divider": {
1860
1848
  height: 1,
1861
1849
  // By design
1862
- margin: `${v(e.marginXXS)} 0`,
1850
+ margin: `${h(e.marginXXS)} 0`,
1863
1851
  overflow: "hidden",
1864
1852
  lineHeight: 0,
1865
1853
  backgroundColor: e.colorSplit
1866
1854
  },
1867
- [`${o}-menu-submenu-expand-icon`]: {
1855
+ [`${n}-menu-submenu-expand-icon`]: {
1868
1856
  position: "absolute",
1869
1857
  insetInlineEnd: e.paddingXS,
1870
- [`${o}-menu-submenu-arrow-icon`]: {
1858
+ [`${n}-menu-submenu-arrow-icon`]: {
1871
1859
  marginInlineEnd: "0 !important",
1872
1860
  color: e.colorTextDescription,
1873
- fontSize: f,
1861
+ fontSize: $,
1874
1862
  fontStyle: "normal"
1875
1863
  }
1876
1864
  }
1877
1865
  }),
1878
1866
  [`${t}-item-group-list`]: {
1879
- margin: `0 ${v(e.marginXS)}`,
1867
+ margin: `0 ${h(e.marginXS)}`,
1880
1868
  padding: 0,
1881
1869
  listStyle: "none"
1882
1870
  },
1883
1871
  [`${t}-submenu-title`]: {
1884
- paddingInlineEnd: e.calc(d).add(e.fontSizeSM).equal()
1872
+ paddingInlineEnd: e.calc(c).add(e.fontSizeSM).equal()
1885
1873
  },
1886
1874
  [`${t}-submenu-vertical`]: {
1887
1875
  position: "relative"
1888
1876
  },
1889
- [`${t}-submenu${t}-submenu-disabled ${o}-menu-submenu-title`]: {
1890
- [`&, ${o}-menu-submenu-arrow-icon`]: {
1877
+ [`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]: {
1878
+ [`&, ${n}-menu-submenu-arrow-icon`]: {
1891
1879
  color: u,
1892
1880
  backgroundColor: m,
1893
1881
  cursor: "not-allowed"
1894
1882
  }
1895
1883
  },
1896
1884
  // https://github.com/ant-design/ant-design/issues/19264
1897
- [`${t}-submenu-selected ${o}-menu-submenu-title`]: {
1885
+ [`${t}-submenu-selected ${n}-menu-submenu-title`]: {
1898
1886
  color: e.colorPrimary
1899
1887
  }
1900
1888
  })
1901
1889
  })
1902
1890
  },
1903
1891
  // Follow code may reuse in other components
1904
- [re(e, "slide-up"), re(e, "slide-down"), Oe(e, "move-up"), Oe(e, "move-down"), We(e, "zoom-big")]
1892
+ [re(e, "slide-up"), re(e, "slide-down"), Ne(e, "move-up"), Ne(e, "move-down"), Xe(e, "zoom-big")]
1905
1893
  ];
1906
- }, Oo = (e) => Object.assign(Object.assign({
1894
+ }, un = (e) => Object.assign(Object.assign({
1907
1895
  zIndexPopup: e.zIndexPopupBase + 50,
1908
1896
  paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
1909
- }, Et({
1897
+ }, Ot({
1910
1898
  contentRadius: e.borderRadiusLG,
1911
1899
  limitVerticalRadius: !0
1912
- })), Nt(e)), Bo = te("Dropdown", (e) => {
1900
+ })), Bt(e)), mn = te("Dropdown", (e) => {
1913
1901
  const {
1914
- marginXXS: o,
1902
+ marginXXS: n,
1915
1903
  sizePopupArrow: t,
1916
- paddingXXS: n,
1904
+ paddingXXS: o,
1917
1905
  componentCls: r
1918
- } = e, a = ne(e, {
1906
+ } = e, a = oe(e, {
1919
1907
  menuCls: `${r}-menu`,
1920
- dropdownArrowDistance: e.calc(t).div(2).add(o).equal(),
1921
- dropdownEdgeChildPadding: n
1908
+ dropdownArrowDistance: e.calc(t).div(2).add(n).equal(),
1909
+ dropdownEdgeChildPadding: o
1922
1910
  });
1923
- return [wo(a), xo(a)];
1924
- }, Oo, {
1911
+ return [cn(a), dn(a)];
1912
+ }, un, {
1925
1913
  resetStyle: !1
1926
- }), se = (e) => {
1927
- var o;
1914
+ }), de = (e) => {
1915
+ var n;
1928
1916
  const {
1929
1917
  menu: t,
1930
- arrow: n,
1918
+ arrow: o,
1931
1919
  prefixCls: r,
1932
1920
  children: a,
1933
1921
  trigger: i,
1934
- disabled: c,
1922
+ disabled: d,
1935
1923
  dropdownRender: s,
1936
- getPopupContainer: g,
1937
- overlayClassName: p,
1924
+ getPopupContainer: p,
1925
+ overlayClassName: g,
1938
1926
  rootClassName: S,
1939
1927
  overlayStyle: u,
1940
- open: f,
1941
- onOpenChange: d,
1928
+ open: $,
1929
+ onOpenChange: c,
1942
1930
  // Deprecated
1943
1931
  visible: m,
1944
- onVisibleChange: h,
1932
+ onVisibleChange: v,
1945
1933
  mouseEnterDelay: I = 0.15,
1946
1934
  mouseLeaveDelay: B = 0.1,
1947
1935
  autoAdjustOverflow: x = !0,
1948
- placement: $ = "",
1936
+ placement: b = "",
1949
1937
  overlay: E,
1950
1938
  transitionName: N
1951
1939
  } = e, {
1952
1940
  getPopupContainer: _,
1953
1941
  getPrefixCls: w,
1954
1942
  direction: C,
1955
- dropdown: b
1956
- } = l.useContext(Z), T = ae("Dropdown");
1943
+ dropdown: f
1944
+ } = l.useContext(Z), j = se("Dropdown");
1957
1945
  process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
1958
1946
  let [U, K] = O;
1959
- T.deprecated(!(U in e), U, K);
1960
- }), T.deprecated(!("overlay" in e), "overlay", "menu"));
1947
+ j.deprecated(!(U in e), U, K);
1948
+ }), j.deprecated(!("overlay" in e), "overlay", "menu"));
1961
1949
  const D = l.useMemo(() => {
1962
1950
  const O = w();
1963
- return N !== void 0 ? N : $.includes("top") ? `${O}-slide-down` : `${O}-slide-up`;
1964
- }, [w, $, N]), M = l.useMemo(() => $ ? $.includes("Center") ? $.slice(0, $.indexOf("Center")) : $ : C === "rtl" ? "bottomRight" : "bottomLeft", [$, C]);
1951
+ return N !== void 0 ? N : b.includes("top") ? `${O}-slide-down` : `${O}-slide-up`;
1952
+ }, [w, b, N]), M = l.useMemo(() => b ? b.includes("Center") ? b.slice(0, b.indexOf("Center")) : b : C === "rtl" ? "bottomRight" : "bottomLeft", [b, C]);
1965
1953
  if (process.env.NODE_ENV !== "production") {
1966
- if ($.includes("Center")) {
1967
- const O = $.slice(0, $.indexOf("Center"));
1968
- process.env.NODE_ENV !== "production" && T(!$.includes("Center"), "deprecated", `You are using '${$}' placement in Dropdown, which is deprecated. Try to use '${O}' instead.`);
1954
+ if (b.includes("Center")) {
1955
+ const O = b.slice(0, b.indexOf("Center"));
1956
+ process.env.NODE_ENV !== "production" && j(!b.includes("Center"), "deprecated", `You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${O}' instead.`);
1969
1957
  }
1970
1958
  [["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
1971
1959
  let [U, K] = O;
1972
- T.deprecated(!(U in e), U, K);
1960
+ j.deprecated(!(U in e), U, K);
1973
1961
  });
1974
1962
  }
1975
- const y = w("dropdown", r), H = Xe(y), [L, k, R] = Bo(y, H), [, W] = gt(), V = l.Children.only(_t(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), F = ee(V, {
1963
+ const y = w("dropdown", r), H = Ve(y), [L, k, R] = mn(y, H), [, W] = ut(), V = l.Children.only(kt(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), F = ee(V, {
1976
1964
  className: P(`${y}-trigger`, {
1977
1965
  [`${y}-rtl`]: C === "rtl"
1978
1966
  }, V.props.className),
1979
- disabled: (o = V.props.disabled) !== null && o !== void 0 ? o : c
1980
- }), j = c ? [] : i, X = !!(j != null && j.includes("contextMenu")), [q, G] = lt(!1, {
1981
- value: f ?? m
1982
- }), de = Le((O) => {
1983
- d == null || d(O, {
1967
+ disabled: (n = V.props.disabled) !== null && n !== void 0 ? n : d
1968
+ }), z = d ? [] : i, X = !!(z != null && z.includes("contextMenu")), [q, G] = rt(!1, {
1969
+ value: $ ?? m
1970
+ }), me = ke((O) => {
1971
+ c == null || c(O, {
1984
1972
  source: "trigger"
1985
- }), h == null || h(O), G(O);
1986
- }), ue = P(p, S, k, R, H, b == null ? void 0 : b.className, {
1973
+ }), v == null || v(O), G(O);
1974
+ }), pe = P(g, S, k, R, H, f == null ? void 0 : f.className, {
1987
1975
  [`${y}-rtl`]: C === "rtl"
1988
- }), z = Tt({
1989
- arrowPointAtCenter: typeof n == "object" && n.pointAtCenter,
1976
+ }), T = Et({
1977
+ arrowPointAtCenter: typeof o == "object" && o.pointAtCenter,
1990
1978
  autoAdjustOverflow: x,
1991
1979
  offset: W.marginXXS,
1992
- arrowWidth: n ? W.sizePopupArrow : 0,
1980
+ arrowWidth: o ? W.sizePopupArrow : 0,
1993
1981
  borderRadius: W.borderRadius
1994
1982
  }), A = l.useCallback(() => {
1995
- t != null && t.selectable && (t != null && t.multiple) || (d == null || d(!1, {
1983
+ t != null && t.selectable && (t != null && t.multiple) || (c == null || c(!1, {
1996
1984
  source: "menu"
1997
1985
  }), G(!1));
1998
1986
  }, [t == null ? void 0 : t.selectable, t == null ? void 0 : t.multiple]), Y = () => {
1999
1987
  let O;
2000
- return t != null && t.items ? O = /* @__PURE__ */ l.createElement(Io, Object.assign({}, t)) : typeof E == "function" ? O = E() : O = E, s && (O = s(O)), O = l.Children.only(typeof O == "string" ? /* @__PURE__ */ l.createElement("span", null, O) : O), /* @__PURE__ */ l.createElement(io, {
1988
+ return t != null && t.items ? O = /* @__PURE__ */ l.createElement(J, Object.assign({}, t)) : typeof E == "function" ? O = E() : O = E, s && (O = s(O)), O = l.Children.only(typeof O == "string" ? /* @__PURE__ */ l.createElement("span", null, O) : O), /* @__PURE__ */ l.createElement(Jt, {
2001
1989
  prefixCls: `${y}-menu`,
2002
1990
  rootClassName: P(R, H),
2003
1991
  expandIcon: /* @__PURE__ */ l.createElement("span", {
2004
1992
  className: `${y}-menu-submenu-arrow`
2005
- }, /* @__PURE__ */ l.createElement(fe, {
1993
+ }, /* @__PURE__ */ l.createElement(ie, {
2006
1994
  className: `${y}-menu-submenu-arrow-icon`
2007
1995
  })),
2008
1996
  mode: "vertical",
@@ -2012,168 +2000,162 @@ const Io = J, yo = (e) => {
2012
2000
  let {
2013
2001
  mode: K
2014
2002
  } = U;
2015
- process.env.NODE_ENV !== "production" && T(!K || K === "vertical", "usage", `mode="${K}" is not supported for Dropdown's Menu.`);
2003
+ process.env.NODE_ENV !== "production" && j(!K || K === "vertical", "usage", `mode="${K}" is not supported for Dropdown's Menu.`);
2016
2004
  }
2017
2005
  }, O);
2018
- }, [me, ot] = ke("Dropdown", u == null ? void 0 : u.zIndex);
2019
- let ge = /* @__PURE__ */ l.createElement(yt, Object.assign({
2006
+ }, [ge, et] = We("Dropdown", u == null ? void 0 : u.zIndex);
2007
+ let fe = /* @__PURE__ */ l.createElement(St, Object.assign({
2020
2008
  alignPoint: X
2021
2009
  }, Q(e, ["rootClassName"]), {
2022
2010
  mouseEnterDelay: I,
2023
2011
  mouseLeaveDelay: B,
2024
2012
  visible: q,
2025
- builtinPlacements: z,
2026
- arrow: !!n,
2027
- overlayClassName: ue,
2013
+ builtinPlacements: T,
2014
+ arrow: !!o,
2015
+ overlayClassName: pe,
2028
2016
  prefixCls: y,
2029
- getPopupContainer: g || _,
2017
+ getPopupContainer: p || _,
2030
2018
  transitionName: D,
2031
- trigger: j,
2019
+ trigger: z,
2032
2020
  overlay: Y,
2033
2021
  placement: M,
2034
- onVisibleChange: de,
2035
- overlayStyle: Object.assign(Object.assign(Object.assign({}, b == null ? void 0 : b.style), u), {
2036
- zIndex: me
2022
+ onVisibleChange: me,
2023
+ overlayStyle: Object.assign(Object.assign(Object.assign({}, f == null ? void 0 : f.style), u), {
2024
+ zIndex: ge
2037
2025
  })
2038
2026
  }), F);
2039
- return me && (ge = /* @__PURE__ */ l.createElement(wt.Provider, {
2040
- value: ot
2041
- }, ge)), L(ge);
2042
- }, Eo = pt(se, "align", void 0, "dropdown", (e) => e), No = (e) => /* @__PURE__ */ l.createElement(Eo, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
2043
- se._InternalPanelDoNotUseOrYouWillBeFired = No;
2044
- process.env.NODE_ENV !== "production" && (se.displayName = "Dropdown");
2045
- const To = se, Je = (e) => {
2027
+ return ge && (fe = /* @__PURE__ */ l.createElement(yt.Provider, {
2028
+ value: et
2029
+ }, fe)), L(fe);
2030
+ }, pn = mt(de, "align", void 0, "dropdown", (e) => e), gn = (e) => /* @__PURE__ */ l.createElement(pn, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
2031
+ de._InternalPanelDoNotUseOrYouWillBeFired = gn;
2032
+ process.env.NODE_ENV !== "production" && (de.displayName = "Dropdown");
2033
+ const ce = (e) => {
2046
2034
  let {
2047
- children: o
2035
+ children: n
2048
2036
  } = e;
2049
2037
  const {
2050
2038
  getPrefixCls: t
2051
- } = l.useContext(Z), n = t("breadcrumb");
2039
+ } = l.useContext(Z), o = t("breadcrumb");
2052
2040
  return /* @__PURE__ */ l.createElement("li", {
2053
- className: `${n}-separator`,
2041
+ className: `${o}-separator`,
2054
2042
  "aria-hidden": "true"
2055
- }, o === "" ? o : o || "/");
2043
+ }, n === "" ? n : n || "/");
2056
2044
  };
2057
- Je.__ANT_BREADCRUMB_SEPARATOR = !0;
2058
- const Se = Je;
2059
- var jo = globalThis && globalThis.__rest || function(e, o) {
2045
+ ce.__ANT_BREADCRUMB_SEPARATOR = !0;
2046
+ var fn = function(e, n) {
2060
2047
  var t = {};
2061
- for (var n in e)
2062
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2063
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2064
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2065
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2048
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2049
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2050
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2066
2051
  return t;
2067
2052
  };
2068
- function zo(e, o) {
2053
+ function bn(e, n) {
2069
2054
  if (e.title === void 0 || e.title === null)
2070
2055
  return null;
2071
- const t = Object.keys(o).join("|");
2072
- return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${t})`, "g"), (n, r) => o[r] || n);
2056
+ const t = Object.keys(n).join("|");
2057
+ return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${t})`, "g"), (o, r) => n[r] || o);
2073
2058
  }
2074
- function Qe(e, o, t, n) {
2059
+ function Ze(e, n, t, o) {
2075
2060
  if (t == null)
2076
2061
  return null;
2077
2062
  const {
2078
2063
  className: r,
2079
2064
  onClick: a
2080
- } = o, i = jo(o, ["className", "onClick"]), c = Object.assign(Object.assign({}, Ae(i, {
2065
+ } = n, i = fn(n, ["className", "onClick"]), d = Object.assign(Object.assign({}, Le(i, {
2081
2066
  data: !0,
2082
2067
  aria: !0
2083
2068
  })), {
2084
2069
  onClick: a
2085
2070
  });
2086
- return n !== void 0 ? /* @__PURE__ */ l.createElement("a", Object.assign({}, c, {
2071
+ return o !== void 0 ? /* @__PURE__ */ l.createElement("a", Object.assign({}, d, {
2087
2072
  className: P(`${e}-link`, r),
2088
- href: n
2089
- }), t) : /* @__PURE__ */ l.createElement("span", Object.assign({}, c, {
2073
+ href: o
2074
+ }), t) : /* @__PURE__ */ l.createElement("span", Object.assign({}, d, {
2090
2075
  className: P(`${e}-link`, r)
2091
2076
  }), t);
2092
2077
  }
2093
- function Po(e, o) {
2094
- return (n, r, a, i, c) => {
2095
- if (o)
2096
- return o(n, r, a, i);
2097
- const s = zo(n, r);
2098
- return Qe(e, n, s, c);
2078
+ function $n(e, n) {
2079
+ return (o, r, a, i, d) => {
2080
+ if (n)
2081
+ return n(o, r, a, i);
2082
+ const s = bn(o, r);
2083
+ return Ze(e, o, s, d);
2099
2084
  };
2100
2085
  }
2101
- var ve = globalThis && globalThis.__rest || function(e, o) {
2086
+ var Ce = function(e, n) {
2102
2087
  var t = {};
2103
- for (var n in e)
2104
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2105
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2106
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2107
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2088
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2089
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2090
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2108
2091
  return t;
2109
2092
  };
2110
- const et = (e) => {
2093
+ const Je = (e) => {
2111
2094
  const {
2112
- prefixCls: o,
2095
+ prefixCls: n,
2113
2096
  separator: t = "/",
2114
- children: n,
2097
+ children: o,
2115
2098
  menu: r,
2116
2099
  overlay: a,
2117
2100
  dropdownProps: i,
2118
- href: c
2101
+ href: d
2119
2102
  } = e;
2120
- process.env.NODE_ENV !== "production" && ae("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
2121
- const g = ((p) => {
2103
+ process.env.NODE_ENV !== "production" && se("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
2104
+ const p = ((g) => {
2122
2105
  if (r || a) {
2123
2106
  const S = Object.assign({}, i);
2124
2107
  if (r) {
2125
2108
  const u = r || {}, {
2126
- items: f
2127
- } = u, d = ve(u, ["items"]);
2128
- S.menu = Object.assign(Object.assign({}, d), {
2129
- items: f == null ? void 0 : f.map((m, h) => {
2109
+ items: $
2110
+ } = u, c = Ce(u, ["items"]);
2111
+ S.menu = Object.assign(Object.assign({}, c), {
2112
+ items: $ == null ? void 0 : $.map((m, v) => {
2130
2113
  var {
2131
2114
  key: I,
2132
2115
  title: B,
2133
2116
  label: x,
2134
- path: $
2135
- } = m, E = ve(m, ["key", "title", "label", "path"]);
2117
+ path: b
2118
+ } = m, E = Ce(m, ["key", "title", "label", "path"]);
2136
2119
  let N = x ?? B;
2137
- return $ && (N = /* @__PURE__ */ l.createElement("a", {
2138
- href: `${c}${$}`
2120
+ return b && (N = /* @__PURE__ */ l.createElement("a", {
2121
+ href: `${d}${b}`
2139
2122
  }, N)), Object.assign(Object.assign({}, E), {
2140
- key: I ?? h,
2123
+ key: I ?? v,
2141
2124
  label: N
2142
2125
  });
2143
2126
  })
2144
2127
  });
2145
- } else
2146
- a && (S.overlay = a);
2147
- return /* @__PURE__ */ l.createElement(To, Object.assign({
2128
+ } else a && (S.overlay = a);
2129
+ return /* @__PURE__ */ l.createElement(de, Object.assign({
2148
2130
  placement: "bottom"
2149
2131
  }, S), /* @__PURE__ */ l.createElement("span", {
2150
- className: `${o}-overlay-link`
2151
- }, p, /* @__PURE__ */ l.createElement(bt, null)));
2132
+ className: `${n}-overlay-link`
2133
+ }, g, /* @__PURE__ */ l.createElement(pt, null)));
2152
2134
  }
2153
- return p;
2154
- })(n);
2155
- return g != null ? /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("li", null, g), t && /* @__PURE__ */ l.createElement(Se, null, t)) : null;
2156
- }, tt = (e) => {
2135
+ return g;
2136
+ })(o);
2137
+ return p != null ? /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement("li", null, p), t && /* @__PURE__ */ l.createElement(ce, null, t)) : null;
2138
+ }, Qe = (e) => {
2157
2139
  const {
2158
- prefixCls: o,
2140
+ prefixCls: n,
2159
2141
  children: t,
2160
- href: n
2161
- } = e, r = ve(e, ["prefixCls", "children", "href"]), {
2142
+ href: o
2143
+ } = e, r = Ce(e, ["prefixCls", "children", "href"]), {
2162
2144
  getPrefixCls: a
2163
- } = l.useContext(Z), i = a("breadcrumb", o);
2164
- return /* @__PURE__ */ l.createElement(et, Object.assign({}, r, {
2145
+ } = l.useContext(Z), i = a("breadcrumb", n);
2146
+ return /* @__PURE__ */ l.createElement(Je, Object.assign({}, r, {
2165
2147
  prefixCls: i
2166
- }), Qe(i, r, t, n));
2148
+ }), Ze(i, r, t, o));
2167
2149
  };
2168
- tt.__ANT_BREADCRUMB_ITEM = !0;
2169
- const Ho = tt, Do = (e) => {
2150
+ Qe.__ANT_BREADCRUMB_ITEM = !0;
2151
+ const hn = (e) => {
2170
2152
  const {
2171
- componentCls: o,
2153
+ componentCls: n,
2172
2154
  iconCls: t,
2173
- calc: n
2155
+ calc: o
2174
2156
  } = e;
2175
2157
  return {
2176
- [o]: Object.assign(Object.assign({}, he(e)), {
2158
+ [n]: Object.assign(Object.assign({}, Ie(e)), {
2177
2159
  color: e.itemColor,
2178
2160
  fontSize: e.fontSize,
2179
2161
  [t]: {
@@ -2189,24 +2171,24 @@ const Ho = tt, Do = (e) => {
2189
2171
  a: Object.assign({
2190
2172
  color: e.linkColor,
2191
2173
  transition: `color ${e.motionDurationMid}`,
2192
- padding: `0 ${v(e.paddingXXS)}`,
2174
+ padding: `0 ${h(e.paddingXXS)}`,
2193
2175
  borderRadius: e.borderRadiusSM,
2194
2176
  height: e.fontHeight,
2195
2177
  display: "inline-block",
2196
- marginInline: n(e.marginXXS).mul(-1).equal(),
2178
+ marginInline: o(e.marginXXS).mul(-1).equal(),
2197
2179
  "&:hover": {
2198
2180
  color: e.linkHoverColor,
2199
2181
  backgroundColor: e.colorBgTextHover
2200
2182
  }
2201
- }, $e(e)),
2183
+ }, he(e)),
2202
2184
  "li:last-child": {
2203
2185
  color: e.lastItemColor
2204
2186
  },
2205
- [`${o}-separator`]: {
2187
+ [`${n}-separator`]: {
2206
2188
  marginInline: e.separatorMargin,
2207
2189
  color: e.separatorColor
2208
2190
  },
2209
- [`${o}-link`]: {
2191
+ [`${n}-link`]: {
2210
2192
  [`
2211
2193
  > ${t} + span,
2212
2194
  > ${t} + a
@@ -2214,12 +2196,12 @@ const Ho = tt, Do = (e) => {
2214
2196
  marginInlineStart: e.marginXXS
2215
2197
  }
2216
2198
  },
2217
- [`${o}-overlay-link`]: {
2199
+ [`${n}-overlay-link`]: {
2218
2200
  borderRadius: e.borderRadiusSM,
2219
2201
  height: e.fontHeight,
2220
2202
  display: "inline-block",
2221
- padding: `0 ${v(e.paddingXXS)}`,
2222
- marginInline: n(e.marginXXS).mul(-1).equal(),
2203
+ padding: `0 ${h(e.paddingXXS)}`,
2204
+ marginInline: o(e.marginXXS).mul(-1).equal(),
2223
2205
  [`> ${t}`]: {
2224
2206
  marginInlineStart: e.marginXXS,
2225
2207
  fontSize: e.fontSizeIcon
@@ -2243,7 +2225,7 @@ const Ho = tt, Do = (e) => {
2243
2225
  }
2244
2226
  })
2245
2227
  };
2246
- }, Mo = (e) => ({
2228
+ }, vn = (e) => ({
2247
2229
  itemColor: e.colorTextDescription,
2248
2230
  lastItemColor: e.colorText,
2249
2231
  iconFontSize: e.fontSize,
@@ -2251,88 +2233,84 @@ const Ho = tt, Do = (e) => {
2251
2233
  linkHoverColor: e.colorText,
2252
2234
  separatorColor: e.colorTextDescription,
2253
2235
  separatorMargin: e.marginXS
2254
- }), Ro = te("Breadcrumb", (e) => {
2255
- const o = ne(e, {});
2256
- return Do(o);
2257
- }, Mo);
2258
- var He = globalThis && globalThis.__rest || function(e, o) {
2236
+ }), Cn = te("Breadcrumb", (e) => {
2237
+ const n = oe(e, {});
2238
+ return hn(n);
2239
+ }, vn);
2240
+ var Me = function(e, n) {
2259
2241
  var t = {};
2260
- for (var n in e)
2261
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2262
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2263
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2264
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2242
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2243
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2244
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2265
2245
  return t;
2266
2246
  };
2267
- function _o(e) {
2247
+ function Sn(e) {
2268
2248
  const {
2269
- breadcrumbName: o,
2249
+ breadcrumbName: n,
2270
2250
  children: t
2271
- } = e, n = He(e, ["breadcrumbName", "children"]), r = Object.assign({
2272
- title: o
2273
- }, n);
2251
+ } = e, o = Me(e, ["breadcrumbName", "children"]), r = Object.assign({
2252
+ title: n
2253
+ }, o);
2274
2254
  return t && (r.menu = {
2275
2255
  items: t.map((a) => {
2276
2256
  var {
2277
2257
  breadcrumbName: i
2278
- } = a, c = He(a, ["breadcrumbName"]);
2279
- return Object.assign(Object.assign({}, c), {
2258
+ } = a, d = Me(a, ["breadcrumbName"]);
2259
+ return Object.assign(Object.assign({}, d), {
2280
2260
  title: i
2281
2261
  });
2282
2262
  })
2283
2263
  }), r;
2284
2264
  }
2285
- function Ao(e, o) {
2286
- return it(() => e || (o ? o.map(_o) : null), [e, o]);
2265
+ function In(e, n) {
2266
+ return ot(() => e || (n ? n.map(Sn) : null), [e, n]);
2287
2267
  }
2288
- var Lo = globalThis && globalThis.__rest || function(e, o) {
2268
+ var yn = function(e, n) {
2289
2269
  var t = {};
2290
- for (var n in e)
2291
- Object.prototype.hasOwnProperty.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
2292
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
2293
- for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
2294
- o.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (t[n[r]] = e[n[r]]);
2270
+ for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
2271
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
2272
+ n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
2295
2273
  return t;
2296
2274
  };
2297
- const ko = (e, o) => {
2298
- if (o === void 0)
2299
- return o;
2300
- let t = (o || "").replace(/^\//, "");
2301
- return Object.keys(e).forEach((n) => {
2302
- t = t.replace(`:${n}`, e[n]);
2275
+ const xn = (e, n) => {
2276
+ if (n === void 0)
2277
+ return n;
2278
+ let t = (n || "").replace(/^\//, "");
2279
+ return Object.keys(e).forEach((o) => {
2280
+ t = t.replace(`:${o}`, e[o]);
2303
2281
  }), t;
2304
- }, ce = (e) => {
2282
+ }, ue = (e) => {
2305
2283
  const {
2306
- prefixCls: o,
2284
+ prefixCls: n,
2307
2285
  separator: t = "/",
2308
- style: n,
2286
+ style: o,
2309
2287
  className: r,
2310
2288
  rootClassName: a,
2311
2289
  routes: i,
2312
- items: c,
2290
+ items: d,
2313
2291
  children: s,
2314
- itemRender: g,
2315
- params: p = {}
2316
- } = e, S = Lo(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
2292
+ itemRender: p,
2293
+ params: g = {}
2294
+ } = e, S = yn(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
2317
2295
  getPrefixCls: u,
2318
- direction: f,
2319
- breadcrumb: d
2296
+ direction: $,
2297
+ breadcrumb: c
2320
2298
  } = l.useContext(Z);
2321
2299
  let m;
2322
- const h = u("breadcrumb", o), [I, B, x] = Ro(h), $ = Ao(c, i);
2300
+ const v = u("breadcrumb", n), [I, B, x] = Cn(v), b = In(d, i);
2323
2301
  if (process.env.NODE_ENV !== "production") {
2324
- const w = ae("Breadcrumb");
2325
- if (w.deprecated(!i, "routes", "items"), !$ || $.length === 0) {
2326
- const C = oe(s);
2327
- w.deprecated(C.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), C.forEach((b) => {
2328
- b && process.env.NODE_ENV !== "production" && w(b.type && (b.type.__ANT_BREADCRUMB_ITEM === !0 || b.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
2302
+ const w = se("Breadcrumb");
2303
+ if (w.deprecated(!i, "routes", "items"), !b || b.length === 0) {
2304
+ const C = ne(s);
2305
+ w.deprecated(C.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), C.forEach((f) => {
2306
+ f && process.env.NODE_ENV !== "production" && w(f.type && (f.type.__ANT_BREADCRUMB_ITEM === !0 || f.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
2329
2307
  });
2330
2308
  }
2331
2309
  }
2332
- const E = Po(h, g);
2333
- if ($ && $.length > 0) {
2334
- const w = [], C = c || i;
2335
- m = $.map((b, T) => {
2310
+ const E = $n(v, p);
2311
+ if (b && b.length > 0) {
2312
+ const w = [], C = d || i;
2313
+ m = b.map((f, j) => {
2336
2314
  const {
2337
2315
  path: D,
2338
2316
  key: M,
@@ -2343,21 +2321,21 @@ const ko = (e, o) => {
2343
2321
  className: R,
2344
2322
  separator: W,
2345
2323
  dropdownProps: V
2346
- } = b, F = ko(p, D);
2324
+ } = f, F = xn(g, D);
2347
2325
  F !== void 0 && w.push(F);
2348
- const j = M ?? T;
2326
+ const z = M ?? j;
2349
2327
  if (y === "separator")
2350
- return /* @__PURE__ */ l.createElement(Se, {
2351
- key: j
2328
+ return /* @__PURE__ */ l.createElement(ce, {
2329
+ key: z
2352
2330
  }, W);
2353
- const X = {}, q = T === $.length - 1;
2331
+ const X = {}, q = j === b.length - 1;
2354
2332
  H ? X.menu = H : L && (X.overlay = L);
2355
2333
  let {
2356
2334
  href: G
2357
- } = b;
2358
- return w.length && F !== void 0 && (G = `#/${w.join("/")}`), /* @__PURE__ */ l.createElement(et, Object.assign({
2359
- key: j
2360
- }, X, Ae(b, {
2335
+ } = f;
2336
+ return w.length && F !== void 0 && (G = `#/${w.join("/")}`), /* @__PURE__ */ l.createElement(Je, Object.assign({
2337
+ key: z
2338
+ }, X, Le(f, {
2361
2339
  data: !0,
2362
2340
  aria: !0
2363
2341
  }), {
@@ -2366,36 +2344,36 @@ const ko = (e, o) => {
2366
2344
  href: G,
2367
2345
  separator: q ? "" : t,
2368
2346
  onClick: k,
2369
- prefixCls: h
2370
- }), E(b, p, C, w, G));
2347
+ prefixCls: v
2348
+ }), E(f, g, C, w, G));
2371
2349
  });
2372
2350
  } else if (s) {
2373
- const w = oe(s).length;
2374
- m = oe(s).map((C, b) => {
2351
+ const w = ne(s).length;
2352
+ m = ne(s).map((C, f) => {
2375
2353
  if (!C)
2376
2354
  return C;
2377
- const T = b === w - 1;
2355
+ const j = f === w - 1;
2378
2356
  return ee(C, {
2379
- separator: T ? "" : t,
2357
+ separator: j ? "" : t,
2380
2358
  // eslint-disable-next-line react/no-array-index-key
2381
- key: b
2359
+ key: f
2382
2360
  });
2383
2361
  });
2384
2362
  }
2385
- const N = P(h, d == null ? void 0 : d.className, {
2386
- [`${h}-rtl`]: f === "rtl"
2387
- }, r, a, B, x), _ = Object.assign(Object.assign({}, d == null ? void 0 : d.style), n);
2363
+ const N = P(v, c == null ? void 0 : c.className, {
2364
+ [`${v}-rtl`]: $ === "rtl"
2365
+ }, r, a, B, x), _ = Object.assign(Object.assign({}, c == null ? void 0 : c.style), o);
2388
2366
  return I(/* @__PURE__ */ l.createElement("nav", Object.assign({
2389
2367
  className: N,
2390
2368
  style: _
2391
2369
  }, S), /* @__PURE__ */ l.createElement("ol", null, m)));
2392
2370
  };
2393
- ce.Item = Ho;
2394
- ce.Separator = Se;
2395
- process.env.NODE_ENV !== "production" && (ce.displayName = "Breadcrumb");
2396
- const Wo = ce, Xo = ({ colors: e, borderRadius: o, sizing: t, typography: n }, r = "active", a = "wide") => `
2371
+ ue.Item = Qe;
2372
+ ue.Separator = ce;
2373
+ process.env.NODE_ENV !== "production" && (ue.displayName = "Breadcrumb");
2374
+ const wn = ({ colors: e, typography: n }, t = "wide") => `
2397
2375
  &.ant-breadcrumb {
2398
- font-size: ${n[a].body1.fontSize};
2376
+ font-size: ${n[t].body1.fontSize};
2399
2377
 
2400
2378
  .ant-breadcrumb-link,
2401
2379
  span[class*="ant-breadcrumb-link"] > a {
@@ -2438,20 +2416,21 @@ const Wo = ce, Xo = ({ colors: e, borderRadius: o, sizing: t, typography: n }, r
2438
2416
  background: none !important;
2439
2417
  }
2440
2418
  }
2441
- `, mn = De.div`
2442
- ${({ isDisabled: e }) => e && `
2419
+ `, Wn = Re.div`
2420
+ ${({ $isDisabled: e }) => e && `
2443
2421
  cursor: not-allowed;
2444
2422
  .ant-breadcrumb {
2445
2423
  pointer-events: none;
2446
2424
  opacity: 0.5;
2447
2425
  }
2448
2426
  `}
2449
- `, gn = De(Wo)`
2450
- ${({ theme: e, type: o, state: t }) => e && Xo(e, o, t)}
2427
+ opacity: ${({ $isDisabled: e }) => e ? 0.5 : 1};
2428
+ `, Xn = Re(ue)`
2429
+ ${({ theme: e, breakpoint: n }) => e && wn(e, n)}
2451
2430
  `;
2452
2431
  export {
2453
- gn as Breadcrumb,
2454
- mn as BreadcrumbWrapper,
2455
- gn as default,
2456
- Xo as getGenesisClass
2432
+ Xn as Breadcrumb,
2433
+ Wn as BreadcrumbWrapper,
2434
+ Xn as default,
2435
+ wn as getGenesisClass
2457
2436
  };