commerce-toolkit 0.0.39 → 0.0.40

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 (175) hide show
  1. package/dist/blog-post-card-author-BGqy41Da.cjs +2 -0
  2. package/dist/blog-post-card-author-BGqy41Da.cjs.map +1 -0
  3. package/dist/{blog-post-card-author-DBEBNUmi.js → blog-post-card-author-Cwm4afzF.js} +70 -52
  4. package/dist/blog-post-card-author-Cwm4afzF.js.map +1 -0
  5. package/dist/blog-post-card.cjs +1 -1
  6. package/dist/blog-post-card.js +7 -6
  7. package/dist/card-link-COguZcAK.js +41 -0
  8. package/dist/card-link-COguZcAK.js.map +1 -0
  9. package/dist/card-link-Dnn-M6g-.cjs +2 -0
  10. package/dist/{card-link-C3U_404z.cjs.map → card-link-Dnn-M6g-.cjs.map} +1 -1
  11. package/dist/card.cjs +1 -1
  12. package/dist/card.js +1 -1
  13. package/dist/check-ChGAB_3v.js +13 -0
  14. package/dist/check-ChGAB_3v.js.map +1 -0
  15. package/dist/check-DJilMvC6.cjs +7 -0
  16. package/dist/check-DJilMvC6.cjs.map +1 -0
  17. package/dist/checkbox-indicator-BgXRGvAh.cjs +2 -0
  18. package/dist/checkbox-indicator-BgXRGvAh.cjs.map +1 -0
  19. package/dist/checkbox-indicator-Cfw9uH_b.js +313 -0
  20. package/dist/checkbox-indicator-Cfw9uH_b.js.map +1 -0
  21. package/dist/checkbox.cjs +2 -0
  22. package/dist/checkbox.cjs.map +1 -0
  23. package/dist/checkbox.js +7 -0
  24. package/dist/checkbox.js.map +1 -0
  25. package/dist/{compare-drawer-remove-aLeR1WyI.js → compare-drawer-remove-BBcOUiSl.js} +73 -50
  26. package/dist/compare-drawer-remove-BBcOUiSl.js.map +1 -0
  27. package/dist/compare-drawer-remove-ozXLyKba.cjs +2 -0
  28. package/dist/compare-drawer-remove-ozXLyKba.cjs.map +1 -0
  29. package/dist/compare-drawer.cjs +1 -1
  30. package/dist/compare-drawer.js +4 -3
  31. package/dist/components/accordion/accordion.d.ts +1 -1
  32. package/dist/components/accordion/accordion.d.ts.map +1 -1
  33. package/dist/components/blog-post-card/blog-post-card.d.ts.map +1 -1
  34. package/dist/components/blog-post-card/primitives/blog-post-card-image.d.ts +2 -2
  35. package/dist/components/blog-post-card/primitives/blog-post-card-image.d.ts.map +1 -1
  36. package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts +1 -1
  37. package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts.map +1 -1
  38. package/dist/components/blog-post-card/primitives/blog-post-card-thumbnail.d.ts +4 -0
  39. package/dist/components/blog-post-card/primitives/blog-post-card-thumbnail.d.ts.map +1 -0
  40. package/dist/components/blog-post-card/primitives.d.ts +1 -0
  41. package/dist/components/blog-post-card/primitives.d.ts.map +1 -1
  42. package/dist/components/card/card.d.ts.map +1 -1
  43. package/dist/components/card/primitives/card-link.d.ts.map +1 -1
  44. package/dist/components/checkbox/checkbox.d.ts +42 -0
  45. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  46. package/dist/components/checkbox/index.d.ts +3 -0
  47. package/dist/components/checkbox/index.d.ts.map +1 -0
  48. package/dist/components/checkbox/primitives/checkbox-indicator.d.ts +5 -0
  49. package/dist/components/checkbox/primitives/checkbox-indicator.d.ts.map +1 -0
  50. package/dist/components/checkbox/primitives/checkbox-root.d.ts +13 -0
  51. package/dist/components/checkbox/primitives/checkbox-root.d.ts.map +1 -0
  52. package/dist/components/checkbox/primitives.d.ts +3 -0
  53. package/dist/components/checkbox/primitives.d.ts.map +1 -0
  54. package/dist/components/compare-drawer/primitives/compare-drawer-image.d.ts +1 -1
  55. package/dist/components/compare-drawer/primitives/compare-drawer-image.d.ts.map +1 -1
  56. package/dist/components/compare-drawer/primitives/compare-drawer-link.d.ts.map +1 -1
  57. package/dist/components/compare-drawer/primitives/compare-drawer-thumbnail.d.ts +4 -0
  58. package/dist/components/compare-drawer/primitives/compare-drawer-thumbnail.d.ts.map +1 -0
  59. package/dist/components/compare-drawer/primitives.d.ts +1 -0
  60. package/dist/components/compare-drawer/primitives.d.ts.map +1 -1
  61. package/dist/components/cursor-pagination/primitives/cursor-pagination-link.d.ts.map +1 -1
  62. package/dist/components/label/index.d.ts +2 -0
  63. package/dist/components/label/index.d.ts.map +1 -0
  64. package/dist/components/label/label.d.ts +7 -0
  65. package/dist/components/label/label.d.ts.map +1 -0
  66. package/dist/components/logo/primitives/logo-image.d.ts.map +1 -1
  67. package/dist/components/logo/primitives/logo-link.d.ts.map +1 -1
  68. package/dist/components/price/price.d.ts.map +1 -1
  69. package/dist/components/product-card/index.d.ts +3 -0
  70. package/dist/components/product-card/index.d.ts.map +1 -0
  71. package/dist/components/product-card/primitives/product-card-badge.d.ts +5 -0
  72. package/dist/components/product-card/primitives/product-card-badge.d.ts.map +1 -0
  73. package/dist/components/product-card/primitives/product-card-checkbox.d.ts +5 -0
  74. package/dist/components/product-card/primitives/product-card-checkbox.d.ts.map +1 -0
  75. package/dist/components/product-card/primitives/product-card-compare.d.ts +4 -0
  76. package/dist/components/product-card/primitives/product-card-compare.d.ts.map +1 -0
  77. package/dist/components/product-card/primitives/product-card-content.d.ts +4 -0
  78. package/dist/components/product-card/primitives/product-card-content.d.ts.map +1 -0
  79. package/dist/components/product-card/primitives/product-card-details.d.ts +4 -0
  80. package/dist/components/product-card/primitives/product-card-details.d.ts.map +1 -0
  81. package/dist/components/product-card/primitives/product-card-fallback.d.ts +4 -0
  82. package/dist/components/product-card/primitives/product-card-fallback.d.ts.map +1 -0
  83. package/dist/components/product-card/primitives/product-card-header.d.ts +4 -0
  84. package/dist/components/product-card/primitives/product-card-header.d.ts.map +1 -0
  85. package/dist/components/product-card/primitives/product-card-image.d.ts +6 -0
  86. package/dist/components/product-card/primitives/product-card-image.d.ts.map +1 -0
  87. package/dist/components/product-card/primitives/product-card-label.d.ts +5 -0
  88. package/dist/components/product-card/primitives/product-card-label.d.ts.map +1 -0
  89. package/dist/components/product-card/primitives/product-card-link.d.ts +6 -0
  90. package/dist/components/product-card/primitives/product-card-link.d.ts.map +1 -0
  91. package/dist/components/product-card/primitives/product-card-preview.d.ts +4 -0
  92. package/dist/components/product-card/primitives/product-card-preview.d.ts.map +1 -0
  93. package/dist/components/product-card/primitives/product-card-price.d.ts +5 -0
  94. package/dist/components/product-card/primitives/product-card-price.d.ts.map +1 -0
  95. package/dist/components/product-card/primitives/product-card-root.d.ts +15 -0
  96. package/dist/components/product-card/primitives/product-card-root.d.ts.map +1 -0
  97. package/dist/components/product-card/primitives/product-card-skeleton.d.ts +5 -0
  98. package/dist/components/product-card/primitives/product-card-skeleton.d.ts.map +1 -0
  99. package/dist/components/product-card/primitives/product-card-subtitle.d.ts +4 -0
  100. package/dist/components/product-card/primitives/product-card-subtitle.d.ts.map +1 -0
  101. package/dist/components/product-card/primitives/product-card-thumbnail.d.ts +4 -0
  102. package/dist/components/product-card/primitives/product-card-thumbnail.d.ts.map +1 -0
  103. package/dist/components/product-card/primitives/product-card-title.d.ts +4 -0
  104. package/dist/components/product-card/primitives/product-card-title.d.ts.map +1 -0
  105. package/dist/components/product-card/primitives.d.ts +18 -0
  106. package/dist/components/product-card/primitives.d.ts.map +1 -0
  107. package/dist/components/product-card/product-card.d.ts +54 -0
  108. package/dist/components/product-card/product-card.d.ts.map +1 -0
  109. package/dist/cursor-pagination-link-CdxwX869.cjs +12 -0
  110. package/dist/{cursor-pagination-link-CGF7LkIQ.cjs.map → cursor-pagination-link-CdxwX869.cjs.map} +1 -1
  111. package/dist/cursor-pagination-link-DCIUoQmf.js +86 -0
  112. package/dist/{cursor-pagination-link-Cx4eqmLO.js.map → cursor-pagination-link-DCIUoQmf.js.map} +1 -1
  113. package/dist/cursor-pagination.cjs +1 -1
  114. package/dist/cursor-pagination.js +2 -2
  115. package/dist/dropdown-menu-node-BB7FJzMX.cjs +7 -0
  116. package/dist/dropdown-menu-node-BB7FJzMX.cjs.map +1 -0
  117. package/dist/{dropdown-menu-node-uYf2lhFv.js → dropdown-menu-node-C7Z-zRyr.js} +477 -510
  118. package/dist/dropdown-menu-node-C7Z-zRyr.js.map +1 -0
  119. package/dist/dropdown-menu.cjs +1 -1
  120. package/dist/dropdown-menu.js +1 -1
  121. package/dist/index-6tKkLrHE.cjs +2 -0
  122. package/dist/index-6tKkLrHE.cjs.map +1 -0
  123. package/dist/index-B_420jYs.js +28 -0
  124. package/dist/index-B_420jYs.js.map +1 -0
  125. package/dist/index.cjs +5 -5
  126. package/dist/index.cjs.map +1 -1
  127. package/dist/index.js +900 -944
  128. package/dist/index.js.map +1 -1
  129. package/dist/logo-text-BXz1J2dS.cjs +2 -0
  130. package/dist/logo-text-BXz1J2dS.cjs.map +1 -0
  131. package/dist/logo-text-Ck-jgjKv.js +38 -0
  132. package/dist/logo-text-Ck-jgjKv.js.map +1 -0
  133. package/dist/logo.cjs +1 -1
  134. package/dist/logo.js +1 -1
  135. package/dist/price-BwaeTmkR.js +53 -0
  136. package/dist/price-BwaeTmkR.js.map +1 -0
  137. package/dist/price-CdK2ye4P.cjs +2 -0
  138. package/dist/price-CdK2ye4P.cjs.map +1 -0
  139. package/dist/primitives--2McVg9Z.js +15 -0
  140. package/dist/primitives--2McVg9Z.js.map +1 -0
  141. package/dist/primitives-DmqzDKi2.cjs +2 -0
  142. package/dist/primitives-DmqzDKi2.cjs.map +1 -0
  143. package/dist/product-card.cjs +2 -0
  144. package/dist/product-card.cjs.map +1 -0
  145. package/dist/product-card.js +328 -0
  146. package/dist/product-card.js.map +1 -0
  147. package/dist/skeleton-root-DHW28LoV.js +28 -0
  148. package/dist/skeleton-root-DHW28LoV.js.map +1 -0
  149. package/dist/skeleton-root-uIgjea8b.cjs +2 -0
  150. package/dist/skeleton-root-uIgjea8b.cjs.map +1 -0
  151. package/dist/skeleton.cjs +1 -1
  152. package/dist/skeleton.js +1 -1
  153. package/package.json +21 -2
  154. package/dist/blog-post-card-author-B7qzTW41.cjs +0 -2
  155. package/dist/blog-post-card-author-B7qzTW41.cjs.map +0 -1
  156. package/dist/blog-post-card-author-DBEBNUmi.js.map +0 -1
  157. package/dist/card-link-C3U_404z.cjs +0 -2
  158. package/dist/card-link-D1jRC_W9.js +0 -35
  159. package/dist/card-link-D1jRC_W9.js.map +0 -1
  160. package/dist/compare-drawer-remove-DeId0NAZ.cjs +0 -2
  161. package/dist/compare-drawer-remove-DeId0NAZ.cjs.map +0 -1
  162. package/dist/compare-drawer-remove-aLeR1WyI.js.map +0 -1
  163. package/dist/cursor-pagination-link-CGF7LkIQ.cjs +0 -12
  164. package/dist/cursor-pagination-link-Cx4eqmLO.js +0 -80
  165. package/dist/dropdown-menu-node-DoGsxQQh.cjs +0 -12
  166. package/dist/dropdown-menu-node-DoGsxQQh.cjs.map +0 -1
  167. package/dist/dropdown-menu-node-uYf2lhFv.js.map +0 -1
  168. package/dist/logo-text-BSZv7ll-.js +0 -33
  169. package/dist/logo-text-BSZv7ll-.js.map +0 -1
  170. package/dist/logo-text-BsFPzrQT.cjs +0 -2
  171. package/dist/logo-text-BsFPzrQT.cjs.map +0 -1
  172. package/dist/primitives-C8vPn9x8.js +0 -39
  173. package/dist/primitives-C8vPn9x8.js.map +0 -1
  174. package/dist/primitives-CgOSEe-J.cjs +0 -2
  175. package/dist/primitives-CgOSEe-J.cjs.map +0 -1
@@ -1,44 +1,35 @@
1
1
  import { jsx as f, jsxs as Fe } from "react/jsx-runtime";
2
- import { c as V } from "./utils-BOGlfttm.js";
3
- import { a as Jn, S as Qn, b as eo, c as to, d as no, e as oo } from "./scroll-area-corner-DLTYMMl-.js";
2
+ import { c as z } from "./utils-BOGlfttm.js";
3
+ import { a as Yn, S as qn, b as Zn, c as Jn, d as Qn, e as eo } from "./scroll-area-corner-DLTYMMl-.js";
4
4
  import * as p from "react";
5
- import { useLayoutEffect as ro, createContext as io, useMemo as ao, useContext as so } from "react";
5
+ import { useLayoutEffect as to, createContext as no, useMemo as oo, useContext as ro } from "react";
6
6
  import { c as D } from "./index-B695uy69.js";
7
- import { u as ce, c as Pt } from "./index-DLcqcWxM.js";
8
- import { c as Qe, P as $e } from "./index-Df-2-3xv.js";
7
+ import { u as ce, c as _t } from "./index-DLcqcWxM.js";
8
+ import { c as Je, P as $e } from "./index-Df-2-3xv.js";
9
9
  import { u as Dt } from "./index-Cn_ZXVPF.js";
10
- import { P as te, u as Xe, d as co, c as lo } from "./index-BzgbBl8b.js";
11
- import { c as uo } from "./index-Aj7AU26N.js";
12
- import { u as fo } from "./index-ByaXH_ih.js";
13
- import { h as po, u as mo, R as ho, F as go, D as wo } from "./Combination-49q9aXeT.js";
14
- import { u as Oe } from "./index-9BYBSfjb.js";
15
- import * as vo from "react-dom";
10
+ import { P as te, u as ht, d as io, c as ao } from "./index-BzgbBl8b.js";
11
+ import { c as so } from "./index-Aj7AU26N.js";
12
+ import { u as co } from "./index-ByaXH_ih.js";
13
+ import { h as lo, u as uo, R as fo, F as po, D as mo } from "./Combination-49q9aXeT.js";
14
+ import { u as Ee } from "./index-9BYBSfjb.js";
15
+ import * as ho from "react-dom";
16
16
  import { u as Be } from "./index-0ioNhtNM.js";
17
- import { P as xo } from "./index-CM8VpmHn.js";
18
- import { c as Ot, I as yo, R as bo } from "./index-DgGfdcU-.js";
19
- import { c as Et } from "./createLucideIcon-DU8bVqFn.js";
17
+ import { u as go } from "./index-B_420jYs.js";
18
+ import { P as wo } from "./index-CM8VpmHn.js";
19
+ import { c as Et, I as vo, R as xo } from "./index-DgGfdcU-.js";
20
+ import yo from "./check-ChGAB_3v.js";
21
+ import { c as bo } from "./createLucideIcon-DU8bVqFn.js";
20
22
  /**
21
23
  * @license lucide-react v0.545.0 - ISC
22
24
  *
23
25
  * This source code is licensed under the ISC license.
24
26
  * See the LICENSE file in the root directory of this source tree.
25
27
  */
26
- const Nt = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Tt = Et("check", Nt), Fa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28
+ const Ot = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Nt = bo("chevron-right", Ot), $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
29
  __proto__: null,
28
- __iconNode: Nt,
29
- default: Tt
30
- }, Symbol.toStringTag, { value: "Module" }));
31
- /**
32
- * @license lucide-react v0.545.0 - ISC
33
- *
34
- * This source code is licensed under the ISC license.
35
- * See the LICENSE file in the root directory of this source tree.
36
- */
37
- const It = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], kt = Et("chevron-right", It), $a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
- __proto__: null,
39
- __iconNode: It,
40
- default: kt
41
- }, Symbol.toStringTag, { value: "Module" })), Mo = ["top", "right", "bottom", "left"], ne = Math.min, G = Math.max, Ee = Math.round, Pe = Math.floor, q = (e) => ({
30
+ __iconNode: Ot,
31
+ default: Nt
32
+ }, Symbol.toStringTag, { value: "Module" })), Mo = ["top", "right", "bottom", "left"], ne = Math.min, H = Math.max, Oe = Math.round, _e = Math.floor, q = (e) => ({
42
33
  x: e,
43
34
  y: e
44
35
  }), Co = {
@@ -50,8 +41,8 @@ const It = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], kt = Et("chevron-r
50
41
  start: "end",
51
42
  end: "start"
52
43
  };
53
- function Ye(e, t, n) {
54
- return G(e, ne(t, n));
44
+ function Xe(e, t, n) {
45
+ return H(e, ne(t, n));
55
46
  }
56
47
  function Q(e, t) {
57
48
  return typeof e == "function" ? e(t) : e;
@@ -62,49 +53,49 @@ function ee(e) {
62
53
  function fe(e) {
63
54
  return e.split("-")[1];
64
55
  }
65
- function et(e) {
56
+ function Qe(e) {
66
57
  return e === "x" ? "y" : "x";
67
58
  }
68
- function tt(e) {
59
+ function et(e) {
69
60
  return e === "y" ? "height" : "width";
70
61
  }
71
62
  const So = /* @__PURE__ */ new Set(["top", "bottom"]);
72
63
  function Y(e) {
73
64
  return So.has(ee(e)) ? "y" : "x";
74
65
  }
75
- function nt(e) {
76
- return et(Y(e));
66
+ function tt(e) {
67
+ return Qe(Y(e));
77
68
  }
78
69
  function Ao(e, t, n) {
79
70
  n === void 0 && (n = !1);
80
- const o = fe(e), r = nt(e), i = tt(r);
71
+ const o = fe(e), r = tt(e), i = et(r);
81
72
  let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
82
73
  return t.reference[i] > t.floating[i] && (a = Ne(a)), [a, Ne(a)];
83
74
  }
84
- function _o(e) {
75
+ function Po(e) {
85
76
  const t = Ne(e);
86
- return [qe(e), t, qe(t)];
77
+ return [Ye(e), t, Ye(t)];
87
78
  }
88
- function qe(e) {
79
+ function Ye(e) {
89
80
  return e.replace(/start|end/g, (t) => Ro[t]);
90
81
  }
91
- const gt = ["left", "right"], wt = ["right", "left"], Po = ["top", "bottom"], Do = ["bottom", "top"];
92
- function Oo(e, t, n) {
82
+ const gt = ["left", "right"], wt = ["right", "left"], _o = ["top", "bottom"], Do = ["bottom", "top"];
83
+ function Eo(e, t, n) {
93
84
  switch (e) {
94
85
  case "top":
95
86
  case "bottom":
96
87
  return n ? t ? wt : gt : t ? gt : wt;
97
88
  case "left":
98
89
  case "right":
99
- return t ? Po : Do;
90
+ return t ? _o : Do;
100
91
  default:
101
92
  return [];
102
93
  }
103
94
  }
104
- function Eo(e, t, n, o) {
95
+ function Oo(e, t, n, o) {
105
96
  const r = fe(e);
106
- let i = Oo(ee(e), n === "start", o);
107
- return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(qe)))), i;
97
+ let i = Eo(ee(e), n === "start", o);
98
+ return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Ye)))), i;
108
99
  }
109
100
  function Ne(e) {
110
101
  return e.replace(/left|right|bottom|top/g, (t) => Co[t]);
@@ -118,7 +109,7 @@ function No(e) {
118
109
  ...e
119
110
  };
120
111
  }
121
- function Lt(e) {
112
+ function Tt(e) {
122
113
  return typeof e != "number" ? No(e) : {
123
114
  top: e,
124
115
  right: e,
@@ -149,7 +140,7 @@ function vt(e, t, n) {
149
140
  reference: o,
150
141
  floating: r
151
142
  } = e;
152
- const i = Y(t), a = nt(t), s = tt(a), u = ee(t), d = i === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
143
+ const i = Y(t), a = tt(t), s = et(a), u = ee(t), d = i === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[s] / 2 - r[s] / 2;
153
144
  let h;
154
145
  switch (u) {
155
146
  case "top":
@@ -269,7 +260,7 @@ async function ve(e, t) {
269
260
  elementContext: c = "floating",
270
261
  altBoundary: m = !1,
271
262
  padding: h = 0
272
- } = Q(t, e), g = Lt(h), y = s[m ? c === "floating" ? "reference" : "floating" : c], x = Te(await i.getClippingRect({
263
+ } = Q(t, e), g = Tt(h), y = s[m ? c === "floating" ? "reference" : "floating" : c], x = Te(await i.getClippingRect({
273
264
  element: (n = await (i.isElement == null ? void 0 : i.isElement(y))) == null || n ? y : y.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
274
265
  boundary: d,
275
266
  rootBoundary: l,
@@ -316,18 +307,18 @@ const Io = (e) => ({
316
307
  } = Q(e, t) || {};
317
308
  if (d == null)
318
309
  return {};
319
- const c = Lt(l), m = {
310
+ const c = Tt(l), m = {
320
311
  x: n,
321
312
  y: o
322
- }, h = nt(r), g = tt(h), w = await a.getDimensions(d), y = h === "y", x = y ? "top" : "left", C = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", b = i.reference[g] + i.reference[h] - m[h] - i.floating[g], R = m[h] - i.reference[h], _ = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
323
- let A = _ ? _[S] : 0;
324
- (!A || !await (a.isElement == null ? void 0 : a.isElement(_))) && (A = s.floating[S] || i.floating[g]);
325
- const I = b / 2 - R / 2, k = A / 2 - w[g] / 2 - 1, O = ne(c[x], k), $ = ne(c[C], k), L = O, E = A - w[g] - $, P = A / 2 - w[g] / 2 + I, z = Ye(L, P, E), N = !u.arrow && fe(r) != null && P !== z && i.reference[g] / 2 - (P < L ? O : $) - w[g] / 2 < 0, T = N ? P < L ? P - L : P - E : 0;
313
+ }, h = tt(r), g = et(h), w = await a.getDimensions(d), y = h === "y", x = y ? "top" : "left", C = y ? "bottom" : "right", S = y ? "clientHeight" : "clientWidth", b = i.reference[g] + i.reference[h] - m[h] - i.floating[g], R = m[h] - i.reference[h], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
314
+ let A = P ? P[S] : 0;
315
+ (!A || !await (a.isElement == null ? void 0 : a.isElement(P))) && (A = s.floating[S] || i.floating[g]);
316
+ const I = b / 2 - R / 2, k = A / 2 - w[g] / 2 - 1, E = ne(c[x], k), $ = ne(c[C], k), L = E, O = A - w[g] - $, _ = A / 2 - w[g] / 2 + I, G = Xe(L, _, O), N = !u.arrow && fe(r) != null && _ !== G && i.reference[g] / 2 - (_ < L ? E : $) - w[g] / 2 < 0, T = N ? _ < L ? _ - L : _ - O : 0;
326
317
  return {
327
318
  [h]: m[h] + T,
328
319
  data: {
329
- [h]: z,
330
- centerOffset: P - z - T,
320
+ [h]: G,
321
+ centerOffset: _ - G - T,
331
322
  ...N && {
332
323
  alignmentOffset: T
333
324
  }
@@ -359,46 +350,46 @@ const Io = (e) => ({
359
350
  } = Q(e, t);
360
351
  if ((n = i.arrow) != null && n.alignmentOffset)
361
352
  return {};
362
- const x = ee(r), C = Y(s), S = ee(s) === s, b = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), R = m || (S || !w ? [Ne(s)] : _o(s)), _ = g !== "none";
363
- !m && _ && R.push(...Eo(s, w, g, b));
353
+ const x = ee(r), C = Y(s), S = ee(s) === s, b = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), R = m || (S || !w ? [Ne(s)] : Po(s)), P = g !== "none";
354
+ !m && P && R.push(...Oo(s, w, g, b));
364
355
  const A = [s, ...R], I = await ve(t, y), k = [];
365
- let O = ((o = i.flip) == null ? void 0 : o.overflows) || [];
356
+ let E = ((o = i.flip) == null ? void 0 : o.overflows) || [];
366
357
  if (l && k.push(I[x]), c) {
367
- const P = Ao(r, a, b);
368
- k.push(I[P[0]], I[P[1]]);
358
+ const _ = Ao(r, a, b);
359
+ k.push(I[_[0]], I[_[1]]);
369
360
  }
370
- if (O = [...O, {
361
+ if (E = [...E, {
371
362
  placement: r,
372
363
  overflows: k
373
- }], !k.every((P) => P <= 0)) {
364
+ }], !k.every((_) => _ <= 0)) {
374
365
  var $, L;
375
- const P = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, z = A[P];
376
- if (z && (!(c === "alignment" ? C !== Y(z) : !1) || // We leave the current main axis only if every placement on that axis
366
+ const _ = ((($ = i.flip) == null ? void 0 : $.index) || 0) + 1, G = A[_];
367
+ if (G && (!(c === "alignment" ? C !== Y(G) : !1) || // We leave the current main axis only if every placement on that axis
377
368
  // overflows the main axis.
378
- O.every((M) => Y(M.placement) === C ? M.overflows[0] > 0 : !0)))
369
+ E.every((M) => Y(M.placement) === C ? M.overflows[0] > 0 : !0)))
379
370
  return {
380
371
  data: {
381
- index: P,
382
- overflows: O
372
+ index: _,
373
+ overflows: E
383
374
  },
384
375
  reset: {
385
- placement: z
376
+ placement: G
386
377
  }
387
378
  };
388
- let N = (L = O.filter((T) => T.overflows[0] <= 0).sort((T, M) => T.overflows[1] - M.overflows[1])[0]) == null ? void 0 : L.placement;
379
+ let N = (L = E.filter((T) => T.overflows[0] <= 0).sort((T, M) => T.overflows[1] - M.overflows[1])[0]) == null ? void 0 : L.placement;
389
380
  if (!N)
390
381
  switch (h) {
391
382
  case "bestFit": {
392
- var E;
393
- const T = (E = O.filter((M) => {
394
- if (_) {
383
+ var O;
384
+ const T = (O = E.filter((M) => {
385
+ if (P) {
395
386
  const v = Y(M.placement);
396
387
  return v === C || // Create a bias to the `y` side axis due to horizontal
397
388
  // reading directions favoring greater width.
398
389
  v === "y";
399
390
  }
400
391
  return !0;
401
- }).map((M) => [M.placement, M.overflows.filter((v) => v > 0).reduce((v, B) => v + B, 0)]).sort((M, v) => M[1] - v[1])[0]) == null ? void 0 : E[0];
392
+ }).map((M) => [M.placement, M.overflows.filter((v) => v > 0).reduce((v, B) => v + B, 0)]).sort((M, v) => M[1] - v[1])[0]) == null ? void 0 : O[0];
402
393
  T && (N = T);
403
394
  break;
404
395
  }
@@ -469,13 +460,13 @@ const Lo = function(e) {
469
460
  }
470
461
  }
471
462
  };
472
- }, Ft = /* @__PURE__ */ new Set(["left", "top"]);
463
+ }, It = /* @__PURE__ */ new Set(["left", "top"]);
473
464
  async function Fo(e, t) {
474
465
  const {
475
466
  placement: n,
476
467
  platform: o,
477
468
  elements: r
478
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = ee(n), s = fe(n), u = Y(n) === "y", d = Ft.has(a) ? -1 : 1, l = i && u ? -1 : 1, c = Q(t, e);
469
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = ee(n), s = fe(n), u = Y(n) === "y", d = It.has(a) ? -1 : 1, l = i && u ? -1 : 1, c = Q(t, e);
479
470
  let {
480
471
  mainAxis: m,
481
472
  crossAxis: h,
@@ -547,15 +538,15 @@ const $o = function(e) {
547
538
  } = Q(e, t), d = {
548
539
  x: n,
549
540
  y: o
550
- }, l = await ve(t, u), c = Y(ee(r)), m = et(c);
541
+ }, l = await ve(t, u), c = Y(ee(r)), m = Qe(c);
551
542
  let h = d[m], g = d[c];
552
543
  if (i) {
553
544
  const y = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", C = h + l[y], S = h - l[x];
554
- h = Ye(C, h, S);
545
+ h = Xe(C, h, S);
555
546
  }
556
547
  if (a) {
557
548
  const y = c === "y" ? "top" : "left", x = c === "y" ? "bottom" : "right", C = g + l[y], S = g - l[x];
558
- g = Ye(C, g, S);
549
+ g = Xe(C, g, S);
559
550
  }
560
551
  const w = s.fn({
561
552
  ...t,
@@ -592,7 +583,7 @@ const $o = function(e) {
592
583
  } = Q(e, t), l = {
593
584
  x: n,
594
585
  y: o
595
- }, c = Y(r), m = et(c);
586
+ }, c = Y(r), m = Qe(c);
596
587
  let h = l[m], g = l[c];
597
588
  const w = Q(s, t), y = typeof w == "number" ? {
598
589
  mainAxis: w,
@@ -608,8 +599,8 @@ const $o = function(e) {
608
599
  }
609
600
  if (d) {
610
601
  var x, C;
611
- const S = m === "y" ? "width" : "height", b = Ft.has(ee(r)), R = i.reference[c] - i.floating[S] + (b && ((x = a.offset) == null ? void 0 : x[c]) || 0) + (b ? 0 : y.crossAxis), _ = i.reference[c] + i.reference[S] + (b ? 0 : ((C = a.offset) == null ? void 0 : C[c]) || 0) - (b ? y.crossAxis : 0);
612
- g < R ? g = R : g > _ && (g = _);
602
+ const S = m === "y" ? "width" : "height", b = It.has(ee(r)), R = i.reference[c] - i.floating[S] + (b && ((x = a.offset) == null ? void 0 : x[c]) || 0) + (b ? 0 : y.crossAxis), P = i.reference[c] + i.reference[S] + (b ? 0 : ((C = a.offset) == null ? void 0 : C[c]) || 0) - (b ? y.crossAxis : 0);
603
+ g < R ? g = R : g > P && (g = P);
613
604
  }
614
605
  return {
615
606
  [m]: h,
@@ -617,7 +608,7 @@ const $o = function(e) {
617
608
  };
618
609
  }
619
610
  };
620
- }, zo = function(e) {
611
+ }, Go = function(e) {
621
612
  return e === void 0 && (e = {}), {
622
613
  name: "size",
623
614
  options: e,
@@ -638,11 +629,11 @@ const $o = function(e) {
638
629
  } = i.floating;
639
630
  let y, x;
640
631
  c === "top" || c === "bottom" ? (y = c, x = m === (await (a.isRTL == null ? void 0 : a.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (x = c, y = m === "end" ? "top" : "bottom");
641
- const C = w - l.top - l.bottom, S = g - l.left - l.right, b = ne(w - l[y], C), R = ne(g - l[x], S), _ = !t.middlewareData.shift;
632
+ const C = w - l.top - l.bottom, S = g - l.left - l.right, b = ne(w - l[y], C), R = ne(g - l[x], S), P = !t.middlewareData.shift;
642
633
  let A = b, I = R;
643
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = S), (o = t.middlewareData.shift) != null && o.enabled.y && (A = C), _ && !m) {
644
- const O = G(l.left, 0), $ = G(l.right, 0), L = G(l.top, 0), E = G(l.bottom, 0);
645
- h ? I = g - 2 * (O !== 0 || $ !== 0 ? O + $ : G(l.left, l.right)) : A = w - 2 * (L !== 0 || E !== 0 ? L + E : G(l.top, l.bottom));
634
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = S), (o = t.middlewareData.shift) != null && o.enabled.y && (A = C), P && !m) {
635
+ const E = H(l.left, 0), $ = H(l.right, 0), L = H(l.top, 0), O = H(l.bottom, 0);
636
+ h ? I = g - 2 * (E !== 0 || $ !== 0 ? E + $ : H(l.left, l.right)) : A = w - 2 * (L !== 0 || O !== 0 ? L + O : H(l.top, l.bottom));
646
637
  }
647
638
  await u({
648
639
  ...t,
@@ -662,29 +653,29 @@ function We() {
662
653
  return typeof window < "u";
663
654
  }
664
655
  function pe(e) {
665
- return $t(e) ? (e.nodeName || "").toLowerCase() : "#document";
656
+ return kt(e) ? (e.nodeName || "").toLowerCase() : "#document";
666
657
  }
667
- function H(e) {
658
+ function K(e) {
668
659
  var t;
669
660
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
670
661
  }
671
662
  function J(e) {
672
663
  var t;
673
- return (t = ($t(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
664
+ return (t = (kt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
674
665
  }
675
- function $t(e) {
676
- return We() ? e instanceof Node || e instanceof H(e).Node : !1;
666
+ function kt(e) {
667
+ return We() ? e instanceof Node || e instanceof K(e).Node : !1;
677
668
  }
678
669
  function j(e) {
679
- return We() ? e instanceof Element || e instanceof H(e).Element : !1;
670
+ return We() ? e instanceof Element || e instanceof K(e).Element : !1;
680
671
  }
681
672
  function Z(e) {
682
- return We() ? e instanceof HTMLElement || e instanceof H(e).HTMLElement : !1;
673
+ return We() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
683
674
  }
684
675
  function bt(e) {
685
- return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof H(e).ShadowRoot;
676
+ return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
686
677
  }
687
- const Go = /* @__PURE__ */ new Set(["inline", "contents"]);
678
+ const Ho = /* @__PURE__ */ new Set(["inline", "contents"]);
688
679
  function Me(e) {
689
680
  const {
690
681
  overflow: t,
@@ -692,15 +683,15 @@ function Me(e) {
692
683
  overflowY: o,
693
684
  display: r
694
685
  } = U(e);
695
- return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Go.has(r);
686
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Ho.has(r);
696
687
  }
697
- const Ho = /* @__PURE__ */ new Set(["table", "td", "th"]);
698
- function Ko(e) {
699
- return Ho.has(pe(e));
688
+ const Ko = /* @__PURE__ */ new Set(["table", "td", "th"]);
689
+ function Vo(e) {
690
+ return Ko.has(pe(e));
700
691
  }
701
- const Vo = [":popover-open", ":modal"];
702
- function ze(e) {
703
- return Vo.some((t) => {
692
+ const zo = [":popover-open", ":modal"];
693
+ function Ge(e) {
694
+ return zo.some((t) => {
704
695
  try {
705
696
  return e.matches(t);
706
697
  } catch {
@@ -709,22 +700,22 @@ function ze(e) {
709
700
  });
710
701
  }
711
702
  const jo = ["transform", "translate", "scale", "rotate", "perspective"], Uo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Xo = ["paint", "layout", "strict", "content"];
712
- function ot(e) {
713
- const t = rt(), n = j(e) ? U(e) : e;
703
+ function nt(e) {
704
+ const t = ot(), n = j(e) ? U(e) : e;
714
705
  return jo.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Uo.some((o) => (n.willChange || "").includes(o)) || Xo.some((o) => (n.contain || "").includes(o));
715
706
  }
716
707
  function Yo(e) {
717
708
  let t = oe(e);
718
709
  for (; Z(t) && !de(t); ) {
719
- if (ot(t))
710
+ if (nt(t))
720
711
  return t;
721
- if (ze(t))
712
+ if (Ge(t))
722
713
  return null;
723
714
  t = oe(t);
724
715
  }
725
716
  return null;
726
717
  }
727
- function rt() {
718
+ function ot() {
728
719
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
729
720
  }
730
721
  const qo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -732,9 +723,9 @@ function de(e) {
732
723
  return qo.has(pe(e));
733
724
  }
734
725
  function U(e) {
735
- return H(e).getComputedStyle(e);
726
+ return K(e).getComputedStyle(e);
736
727
  }
737
- function Ge(e) {
728
+ function He(e) {
738
729
  return j(e) ? {
739
730
  scrollLeft: e.scrollLeft,
740
731
  scrollTop: e.scrollTop
@@ -755,75 +746,75 @@ function oe(e) {
755
746
  );
756
747
  return bt(t) ? t.host : t;
757
748
  }
758
- function Bt(e) {
749
+ function Lt(e) {
759
750
  const t = oe(e);
760
- return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Me(t) ? t : Bt(t);
751
+ return de(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && Me(t) ? t : Lt(t);
761
752
  }
762
753
  function xe(e, t, n) {
763
754
  var o;
764
755
  t === void 0 && (t = []), n === void 0 && (n = !0);
765
- const r = Bt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = H(r);
756
+ const r = Lt(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = K(r);
766
757
  if (i) {
767
- const s = Ze(a);
758
+ const s = qe(a);
768
759
  return t.concat(a, a.visualViewport || [], Me(r) ? r : [], s && n ? xe(s) : []);
769
760
  }
770
761
  return t.concat(r, xe(r, [], n));
771
762
  }
772
- function Ze(e) {
763
+ function qe(e) {
773
764
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
774
765
  }
775
- function Wt(e) {
766
+ function Ft(e) {
776
767
  const t = U(e);
777
768
  let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
778
- const r = Z(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Ee(n) !== i || Ee(o) !== a;
769
+ const r = Z(e), i = r ? e.offsetWidth : n, a = r ? e.offsetHeight : o, s = Oe(n) !== i || Oe(o) !== a;
779
770
  return s && (n = i, o = a), {
780
771
  width: n,
781
772
  height: o,
782
773
  $: s
783
774
  };
784
775
  }
785
- function it(e) {
776
+ function rt(e) {
786
777
  return j(e) ? e : e.contextElement;
787
778
  }
788
779
  function ue(e) {
789
- const t = it(e);
780
+ const t = rt(e);
790
781
  if (!Z(t))
791
782
  return q(1);
792
783
  const n = t.getBoundingClientRect(), {
793
784
  width: o,
794
785
  height: r,
795
786
  $: i
796
- } = Wt(t);
797
- let a = (i ? Ee(n.width) : n.width) / o, s = (i ? Ee(n.height) : n.height) / r;
787
+ } = Ft(t);
788
+ let a = (i ? Oe(n.width) : n.width) / o, s = (i ? Oe(n.height) : n.height) / r;
798
789
  return (!a || !Number.isFinite(a)) && (a = 1), (!s || !Number.isFinite(s)) && (s = 1), {
799
790
  x: a,
800
791
  y: s
801
792
  };
802
793
  }
803
794
  const Zo = /* @__PURE__ */ q(0);
804
- function zt(e) {
805
- const t = H(e);
806
- return !rt() || !t.visualViewport ? Zo : {
795
+ function $t(e) {
796
+ const t = K(e);
797
+ return !ot() || !t.visualViewport ? Zo : {
807
798
  x: t.visualViewport.offsetLeft,
808
799
  y: t.visualViewport.offsetTop
809
800
  };
810
801
  }
811
802
  function Jo(e, t, n) {
812
- return t === void 0 && (t = !1), !n || t && n !== H(e) ? !1 : t;
803
+ return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
813
804
  }
814
805
  function se(e, t, n, o) {
815
806
  t === void 0 && (t = !1), n === void 0 && (n = !1);
816
- const r = e.getBoundingClientRect(), i = it(e);
807
+ const r = e.getBoundingClientRect(), i = rt(e);
817
808
  let a = q(1);
818
809
  t && (o ? j(o) && (a = ue(o)) : a = ue(e));
819
- const s = Jo(i, n, o) ? zt(i) : q(0);
810
+ const s = Jo(i, n, o) ? $t(i) : q(0);
820
811
  let u = (r.left + s.x) / a.x, d = (r.top + s.y) / a.y, l = r.width / a.x, c = r.height / a.y;
821
812
  if (i) {
822
- const m = H(i), h = o && j(o) ? H(o) : o;
823
- let g = m, w = Ze(g);
813
+ const m = K(i), h = o && j(o) ? K(o) : o;
814
+ let g = m, w = qe(g);
824
815
  for (; w && o && h !== g; ) {
825
816
  const y = ue(w), x = w.getBoundingClientRect(), C = U(w), S = x.left + (w.clientLeft + parseFloat(C.paddingLeft)) * y.x, b = x.top + (w.clientTop + parseFloat(C.paddingTop)) * y.y;
826
- u *= y.x, d *= y.y, l *= y.x, c *= y.y, u += S, d += b, g = H(w), w = Ze(g);
817
+ u *= y.x, d *= y.y, l *= y.x, c *= y.y, u += S, d += b, g = K(w), w = qe(g);
827
818
  }
828
819
  }
829
820
  return Te({
@@ -833,12 +824,12 @@ function se(e, t, n, o) {
833
824
  y: d
834
825
  });
835
826
  }
836
- function He(e, t) {
837
- const n = Ge(e).scrollLeft;
827
+ function Ke(e, t) {
828
+ const n = He(e).scrollLeft;
838
829
  return t ? t.left + n : se(J(e)).left + n;
839
830
  }
840
- function Gt(e, t) {
841
- const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - He(e, n), r = n.top + t.scrollTop;
831
+ function Bt(e, t) {
832
+ const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ke(e, n), r = n.top + t.scrollTop;
842
833
  return {
843
834
  x: o,
844
835
  y: r
@@ -851,7 +842,7 @@ function Qo(e) {
851
842
  offsetParent: o,
852
843
  strategy: r
853
844
  } = e;
854
- const i = r === "fixed", a = J(o), s = t ? ze(t.floating) : !1;
845
+ const i = r === "fixed", a = J(o), s = t ? Ge(t.floating) : !1;
855
846
  if (o === a || s && i)
856
847
  return n;
857
848
  let u = {
@@ -859,11 +850,11 @@ function Qo(e) {
859
850
  scrollTop: 0
860
851
  }, d = q(1);
861
852
  const l = q(0), c = Z(o);
862
- if ((c || !c && !i) && ((pe(o) !== "body" || Me(a)) && (u = Ge(o)), Z(o))) {
853
+ if ((c || !c && !i) && ((pe(o) !== "body" || Me(a)) && (u = He(o)), Z(o))) {
863
854
  const h = se(o);
864
855
  d = ue(o), l.x = h.x + o.clientLeft, l.y = h.y + o.clientTop;
865
856
  }
866
- const m = a && !c && !i ? Gt(a, u) : q(0);
857
+ const m = a && !c && !i ? Bt(a, u) : q(0);
867
858
  return {
868
859
  width: n.width * d.x,
869
860
  height: n.height * d.y,
@@ -875,10 +866,10 @@ function er(e) {
875
866
  return Array.from(e.getClientRects());
876
867
  }
877
868
  function tr(e) {
878
- const t = J(e), n = Ge(e), o = e.ownerDocument.body, r = G(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = G(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
879
- let a = -n.scrollLeft + He(e);
869
+ const t = J(e), n = He(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
870
+ let a = -n.scrollLeft + Ke(e);
880
871
  const s = -n.scrollTop;
881
- return U(o).direction === "rtl" && (a += G(t.clientWidth, o.clientWidth) - r), {
872
+ return U(o).direction === "rtl" && (a += H(t.clientWidth, o.clientWidth) - r), {
882
873
  width: r,
883
874
  height: i,
884
875
  x: a,
@@ -887,14 +878,14 @@ function tr(e) {
887
878
  }
888
879
  const Mt = 25;
889
880
  function nr(e, t) {
890
- const n = H(e), o = J(e), r = n.visualViewport;
881
+ const n = K(e), o = J(e), r = n.visualViewport;
891
882
  let i = o.clientWidth, a = o.clientHeight, s = 0, u = 0;
892
883
  if (r) {
893
884
  i = r.width, a = r.height;
894
- const l = rt();
885
+ const l = ot();
895
886
  (!l || l && t === "fixed") && (s = r.offsetLeft, u = r.offsetTop);
896
887
  }
897
- const d = He(o);
888
+ const d = Ke(o);
898
889
  if (d <= 0) {
899
890
  const l = o.ownerDocument, c = l.body, m = getComputedStyle(c), h = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, g = Math.abs(o.clientWidth - c.clientWidth - h);
900
891
  g <= Mt && (i -= g);
@@ -925,7 +916,7 @@ function Ct(e, t, n) {
925
916
  else if (j(t))
926
917
  o = rr(t, n);
927
918
  else {
928
- const r = zt(e);
919
+ const r = $t(e);
929
920
  o = {
930
921
  x: t.x - r.x,
931
922
  y: t.y - r.y,
@@ -935,9 +926,9 @@ function Ct(e, t, n) {
935
926
  }
936
927
  return Te(o);
937
928
  }
938
- function Ht(e, t) {
929
+ function Wt(e, t) {
939
930
  const n = oe(e);
940
- return n === t || !j(n) || de(n) ? !1 : U(n).position === "fixed" || Ht(n, t);
931
+ return n === t || !j(n) || de(n) ? !1 : U(n).position === "fixed" || Wt(n, t);
941
932
  }
942
933
  function ir(e, t) {
943
934
  const n = t.get(e);
@@ -947,8 +938,8 @@ function ir(e, t) {
947
938
  const i = U(e).position === "fixed";
948
939
  let a = i ? oe(e) : e;
949
940
  for (; j(a) && !de(a); ) {
950
- const s = U(a), u = ot(a);
951
- !u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && or.has(r.position) || Me(a) && !u && Ht(e, a)) ? o = o.filter((l) => l !== a) : r = s, a = oe(a);
941
+ const s = U(a), u = nt(a);
942
+ !u && s.position === "fixed" && (r = null), (i ? !u && !r : !u && s.position === "static" && !!r && or.has(r.position) || Me(a) && !u && Wt(e, a)) ? o = o.filter((l) => l !== a) : r = s, a = oe(a);
952
943
  }
953
944
  return t.set(e, o), o;
954
945
  }
@@ -959,9 +950,9 @@ function ar(e) {
959
950
  rootBoundary: o,
960
951
  strategy: r
961
952
  } = e;
962
- const a = [...n === "clippingAncestors" ? ze(t) ? [] : ir(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((d, l) => {
953
+ const a = [...n === "clippingAncestors" ? Ge(t) ? [] : ir(t, this._c) : [].concat(n), o], s = a[0], u = a.reduce((d, l) => {
963
954
  const c = Ct(t, l, r);
964
- return d.top = G(c.top, d.top), d.right = ne(c.right, d.right), d.bottom = ne(c.bottom, d.bottom), d.left = G(c.left, d.left), d;
955
+ return d.top = H(c.top, d.top), d.right = ne(c.right, d.right), d.bottom = ne(c.bottom, d.bottom), d.left = H(c.left, d.left), d;
965
956
  }, Ct(t, s, r));
966
957
  return {
967
958
  width: u.right - u.left,
@@ -974,7 +965,7 @@ function sr(e) {
974
965
  const {
975
966
  width: t,
976
967
  height: n
977
- } = Wt(e);
968
+ } = Ft(e);
978
969
  return {
979
970
  width: t,
980
971
  height: n
@@ -988,15 +979,15 @@ function cr(e, t, n) {
988
979
  };
989
980
  const u = q(0);
990
981
  function d() {
991
- u.x = He(r);
982
+ u.x = Ke(r);
992
983
  }
993
984
  if (o || !o && !i)
994
- if ((pe(t) !== "body" || Me(r)) && (s = Ge(t)), o) {
985
+ if ((pe(t) !== "body" || Me(r)) && (s = He(t)), o) {
995
986
  const h = se(t, !0, i, t);
996
987
  u.x = h.x + t.clientLeft, u.y = h.y + t.clientTop;
997
988
  } else r && d();
998
989
  i && !o && r && d();
999
- const l = r && !o && !i ? Gt(r, s) : q(0), c = a.left + s.scrollLeft - u.x - l.x, m = a.top + s.scrollTop - u.y - l.y;
990
+ const l = r && !o && !i ? Bt(r, s) : q(0), c = a.left + s.scrollLeft - u.x - l.x, m = a.top + s.scrollTop - u.y - l.y;
1000
991
  return {
1001
992
  x: c,
1002
993
  y: m,
@@ -1015,9 +1006,9 @@ function Rt(e, t) {
1015
1006
  let n = e.offsetParent;
1016
1007
  return J(e) === n && (n = n.ownerDocument.body), n;
1017
1008
  }
1018
- function Kt(e, t) {
1019
- const n = H(e);
1020
- if (ze(e))
1009
+ function Gt(e, t) {
1010
+ const n = K(e);
1011
+ if (Ge(e))
1021
1012
  return n;
1022
1013
  if (!Z(e)) {
1023
1014
  let r = oe(e);
@@ -1029,12 +1020,12 @@ function Kt(e, t) {
1029
1020
  return n;
1030
1021
  }
1031
1022
  let o = Rt(e, t);
1032
- for (; o && Ko(o) && je(o); )
1023
+ for (; o && Vo(o) && je(o); )
1033
1024
  o = Rt(o, t);
1034
- return o && de(o) && je(o) && !ot(o) ? n : o || Yo(e) || n;
1025
+ return o && de(o) && je(o) && !nt(o) ? n : o || Yo(e) || n;
1035
1026
  }
1036
1027
  const lr = async function(e) {
1037
- const t = this.getOffsetParent || Kt, n = this.getDimensions, o = await n(e.floating);
1028
+ const t = this.getOffsetParent || Gt, n = this.getDimensions, o = await n(e.floating);
1038
1029
  return {
1039
1030
  reference: cr(e.reference, await t(e.floating), e.strategy),
1040
1031
  floating: {
@@ -1052,7 +1043,7 @@ const dr = {
1052
1043
  convertOffsetParentRelativeRectToViewportRelativeRect: Qo,
1053
1044
  getDocumentElement: J,
1054
1045
  getClippingRect: ar,
1055
- getOffsetParent: Kt,
1046
+ getOffsetParent: Gt,
1056
1047
  getElementRects: lr,
1057
1048
  getClientRects: er,
1058
1049
  getDimensions: sr,
@@ -1060,7 +1051,7 @@ const dr = {
1060
1051
  isElement: j,
1061
1052
  isRTL: ur
1062
1053
  };
1063
- function Vt(e, t) {
1054
+ function Ht(e, t) {
1064
1055
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
1065
1056
  }
1066
1057
  function fr(e, t) {
@@ -1080,13 +1071,13 @@ function fr(e, t) {
1080
1071
  } = d;
1081
1072
  if (s || t(), !m || !h)
1082
1073
  return;
1083
- const g = Pe(c), w = Pe(r.clientWidth - (l + m)), y = Pe(r.clientHeight - (c + h)), x = Pe(l), S = {
1074
+ const g = _e(c), w = _e(r.clientWidth - (l + m)), y = _e(r.clientHeight - (c + h)), x = _e(l), S = {
1084
1075
  rootMargin: -g + "px " + -w + "px " + -y + "px " + -x + "px",
1085
- threshold: G(0, ne(1, u)) || 1
1076
+ threshold: H(0, ne(1, u)) || 1
1086
1077
  };
1087
1078
  let b = !0;
1088
- function R(_) {
1089
- const A = _[0].intersectionRatio;
1079
+ function R(P) {
1080
+ const A = P[0].intersectionRatio;
1090
1081
  if (A !== u) {
1091
1082
  if (!b)
1092
1083
  return a();
@@ -1094,7 +1085,7 @@ function fr(e, t) {
1094
1085
  a(!1, 1e-7);
1095
1086
  }, 1e3);
1096
1087
  }
1097
- A === 1 && !Vt(d, e.getBoundingClientRect()) && a(), b = !1;
1088
+ A === 1 && !Ht(d, e.getBoundingClientRect()) && a(), b = !1;
1098
1089
  }
1099
1090
  try {
1100
1091
  n = new IntersectionObserver(R, {
@@ -1117,7 +1108,7 @@ function pr(e, t, n, o) {
1117
1108
  elementResize: a = typeof ResizeObserver == "function",
1118
1109
  layoutShift: s = typeof IntersectionObserver == "function",
1119
1110
  animationFrame: u = !1
1120
- } = o, d = it(e), l = r || i ? [...d ? xe(d) : [], ...xe(t)] : [];
1111
+ } = o, d = rt(e), l = r || i ? [...d ? xe(d) : [], ...xe(t)] : [];
1121
1112
  l.forEach((x) => {
1122
1113
  r && x.addEventListener("scroll", n, {
1123
1114
  passive: !0
@@ -1136,7 +1127,7 @@ function pr(e, t, n, o) {
1136
1127
  u && y();
1137
1128
  function y() {
1138
1129
  const x = se(e);
1139
- w && !Vt(w, x) && n(), w = x, g = requestAnimationFrame(y);
1130
+ w && !Ht(w, x) && n(), w = x, g = requestAnimationFrame(y);
1140
1131
  }
1141
1132
  return n(), () => {
1142
1133
  var x;
@@ -1145,7 +1136,7 @@ function pr(e, t, n, o) {
1145
1136
  }), c?.(), (x = h) == null || x.disconnect(), h = null, u && cancelAnimationFrame(g);
1146
1137
  };
1147
1138
  }
1148
- const mr = $o, hr = Bo, gr = ko, wr = zo, vr = Lo, St = Io, xr = Wo, yr = (e, t, n) => {
1139
+ const mr = $o, hr = Bo, gr = ko, wr = Go, vr = Lo, St = Io, xr = Wo, yr = (e, t, n) => {
1149
1140
  const o = /* @__PURE__ */ new Map(), r = {
1150
1141
  platform: dr,
1151
1142
  ...n
@@ -1159,7 +1150,7 @@ const mr = $o, hr = Bo, gr = ko, wr = zo, vr = Lo, St = Io, xr = Wo, yr = (e, t,
1159
1150
  });
1160
1151
  };
1161
1152
  var br = typeof document < "u", Mr = function() {
1162
- }, De = br ? ro : Mr;
1153
+ }, De = br ? to : Mr;
1163
1154
  function Ie(e, t) {
1164
1155
  if (e === t)
1165
1156
  return !0;
@@ -1190,11 +1181,11 @@ function Ie(e, t) {
1190
1181
  }
1191
1182
  return e !== e && t !== t;
1192
1183
  }
1193
- function jt(e) {
1184
+ function Kt(e) {
1194
1185
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1195
1186
  }
1196
1187
  function At(e, t) {
1197
- const n = jt(e);
1188
+ const n = Kt(e);
1198
1189
  return Math.round(t * n) / n;
1199
1190
  }
1200
1191
  function Ue(e) {
@@ -1227,18 +1218,18 @@ function Cr(e) {
1227
1218
  }), [m, h] = p.useState(o);
1228
1219
  Ie(m, o) || h(o);
1229
1220
  const [g, w] = p.useState(null), [y, x] = p.useState(null), C = p.useCallback((M) => {
1230
- M !== _.current && (_.current = M, w(M));
1221
+ M !== P.current && (P.current = M, w(M));
1231
1222
  }, []), S = p.useCallback((M) => {
1232
1223
  M !== A.current && (A.current = M, x(M));
1233
- }, []), b = i || g, R = a || y, _ = p.useRef(null), A = p.useRef(null), I = p.useRef(l), k = u != null, O = Ue(u), $ = Ue(r), L = Ue(d), E = p.useCallback(() => {
1234
- if (!_.current || !A.current)
1224
+ }, []), b = i || g, R = a || y, P = p.useRef(null), A = p.useRef(null), I = p.useRef(l), k = u != null, E = Ue(u), $ = Ue(r), L = Ue(d), O = p.useCallback(() => {
1225
+ if (!P.current || !A.current)
1235
1226
  return;
1236
1227
  const M = {
1237
1228
  placement: t,
1238
1229
  strategy: n,
1239
1230
  middleware: m
1240
1231
  };
1241
- $.current && (M.platform = $.current), yr(_.current, A.current, M).then((v) => {
1232
+ $.current && (M.platform = $.current), yr(P.current, A.current, M).then((v) => {
1242
1233
  const B = {
1243
1234
  ...v,
1244
1235
  // The floating element's position may be recomputed while it's closed
@@ -1247,7 +1238,7 @@ function Cr(e) {
1247
1238
  // setting it to `true` when `open === false` (must be specified).
1248
1239
  isPositioned: L.current !== !1
1249
1240
  };
1250
- P.current && !Ie(I.current, B) && (I.current = B, vo.flushSync(() => {
1241
+ _.current && !Ie(I.current, B) && (I.current = B, ho.flushSync(() => {
1251
1242
  c(B);
1252
1243
  }));
1253
1244
  });
@@ -1258,18 +1249,18 @@ function Cr(e) {
1258
1249
  isPositioned: !1
1259
1250
  })));
1260
1251
  }, [d]);
1261
- const P = p.useRef(!1);
1262
- De(() => (P.current = !0, () => {
1263
- P.current = !1;
1252
+ const _ = p.useRef(!1);
1253
+ De(() => (_.current = !0, () => {
1254
+ _.current = !1;
1264
1255
  }), []), De(() => {
1265
- if (b && (_.current = b), R && (A.current = R), b && R) {
1266
- if (O.current)
1267
- return O.current(b, R, E);
1268
- E();
1256
+ if (b && (P.current = b), R && (A.current = R), b && R) {
1257
+ if (E.current)
1258
+ return E.current(b, R, O);
1259
+ O();
1269
1260
  }
1270
- }, [b, R, E, O, k]);
1271
- const z = p.useMemo(() => ({
1272
- reference: _,
1261
+ }, [b, R, O, E, k]);
1262
+ const G = p.useMemo(() => ({
1263
+ reference: P,
1273
1264
  floating: A,
1274
1265
  setReference: C,
1275
1266
  setFloating: S
@@ -1288,7 +1279,7 @@ function Cr(e) {
1288
1279
  return s ? {
1289
1280
  ...M,
1290
1281
  transform: "translate(" + v + "px, " + B + "px)",
1291
- ...jt(N.floating) >= 1.5 && {
1282
+ ...Kt(N.floating) >= 1.5 && {
1292
1283
  willChange: "transform"
1293
1284
  }
1294
1285
  } : {
@@ -1299,11 +1290,11 @@ function Cr(e) {
1299
1290
  }, [n, s, N.floating, l.x, l.y]);
1300
1291
  return p.useMemo(() => ({
1301
1292
  ...l,
1302
- update: E,
1303
- refs: z,
1293
+ update: O,
1294
+ refs: G,
1304
1295
  elements: N,
1305
1296
  floatingStyles: T
1306
- }), [l, E, z, N, T]);
1297
+ }), [l, O, G, N, T]);
1307
1298
  }
1308
1299
  const Rr = (e) => {
1309
1300
  function t(n) {
@@ -1332,23 +1323,23 @@ const Rr = (e) => {
1332
1323
  }), Ar = (e, t) => ({
1333
1324
  ...hr(e),
1334
1325
  options: [e, t]
1335
- }), _r = (e, t) => ({
1326
+ }), Pr = (e, t) => ({
1336
1327
  ...xr(e),
1337
1328
  options: [e, t]
1338
- }), Pr = (e, t) => ({
1329
+ }), _r = (e, t) => ({
1339
1330
  ...gr(e),
1340
1331
  options: [e, t]
1341
1332
  }), Dr = (e, t) => ({
1342
1333
  ...wr(e),
1343
1334
  options: [e, t]
1344
- }), Or = (e, t) => ({
1335
+ }), Er = (e, t) => ({
1345
1336
  ...vr(e),
1346
1337
  options: [e, t]
1347
- }), Er = (e, t) => ({
1338
+ }), Or = (e, t) => ({
1348
1339
  ...Rr(e),
1349
1340
  options: [e, t]
1350
1341
  });
1351
- var Nr = "Arrow", Ut = p.forwardRef((e, t) => {
1342
+ var Nr = "Arrow", Vt = p.forwardRef((e, t) => {
1352
1343
  const { children: n, width: o = 10, height: r = 5, ...i } = e;
1353
1344
  return /* @__PURE__ */ f(
1354
1345
  te.svg,
@@ -1363,46 +1354,23 @@ var Nr = "Arrow", Ut = p.forwardRef((e, t) => {
1363
1354
  }
1364
1355
  );
1365
1356
  });
1366
- Ut.displayName = Nr;
1367
- var Tr = Ut;
1368
- function Ir(e) {
1369
- const [t, n] = p.useState(void 0);
1370
- return Xe(() => {
1371
- if (e) {
1372
- n({ width: e.offsetWidth, height: e.offsetHeight });
1373
- const o = new ResizeObserver((r) => {
1374
- if (!Array.isArray(r) || !r.length)
1375
- return;
1376
- const i = r[0];
1377
- let a, s;
1378
- if ("borderBoxSize" in i) {
1379
- const u = i.borderBoxSize, d = Array.isArray(u) ? u[0] : u;
1380
- a = d.inlineSize, s = d.blockSize;
1381
- } else
1382
- a = e.offsetWidth, s = e.offsetHeight;
1383
- n({ width: a, height: s });
1384
- });
1385
- return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
1386
- } else
1387
- n(void 0);
1388
- }, [e]), t;
1389
- }
1390
- var at = "Popper", [Xt, Yt] = Qe(at), [kr, qt] = Xt(at), Zt = (e) => {
1357
+ Vt.displayName = Nr;
1358
+ var Tr = Vt, it = "Popper", [zt, jt] = Je(it), [Ir, Ut] = zt(it), Xt = (e) => {
1391
1359
  const { __scopePopper: t, children: n } = e, [o, r] = p.useState(null);
1392
- return /* @__PURE__ */ f(kr, { scope: t, anchor: o, onAnchorChange: r, children: n });
1360
+ return /* @__PURE__ */ f(Ir, { scope: t, anchor: o, onAnchorChange: r, children: n });
1393
1361
  };
1394
- Zt.displayName = at;
1395
- var Jt = "PopperAnchor", Qt = p.forwardRef(
1362
+ Xt.displayName = it;
1363
+ var Yt = "PopperAnchor", qt = p.forwardRef(
1396
1364
  (e, t) => {
1397
- const { __scopePopper: n, virtualRef: o, ...r } = e, i = qt(Jt, n), a = p.useRef(null), s = ce(t, a), u = p.useRef(null);
1365
+ const { __scopePopper: n, virtualRef: o, ...r } = e, i = Ut(Yt, n), a = p.useRef(null), s = ce(t, a), u = p.useRef(null);
1398
1366
  return p.useEffect(() => {
1399
1367
  const d = u.current;
1400
1368
  u.current = o?.current || a.current, d !== u.current && i.onAnchorChange(u.current);
1401
1369
  }), o ? null : /* @__PURE__ */ f(te.div, { ...r, ref: s });
1402
1370
  }
1403
1371
  );
1404
- Qt.displayName = Jt;
1405
- var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
1372
+ qt.displayName = Yt;
1373
+ var at = "PopperContent", [kr, Lr] = zt(at), Zt = p.forwardRef(
1406
1374
  (e, t) => {
1407
1375
  const {
1408
1376
  __scopePopper: n,
@@ -1419,12 +1387,12 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
1419
1387
  updatePositionStrategy: h = "optimized",
1420
1388
  onPlaced: g,
1421
1389
  ...w
1422
- } = e, y = qt(st, n), [x, C] = p.useState(null), S = ce(t, (F) => C(F)), [b, R] = p.useState(null), _ = Ir(b), A = _?.width ?? 0, I = _?.height ?? 0, k = o + (i !== "center" ? "-" + i : ""), O = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, $ = Array.isArray(d) ? d : [d], L = $.length > 0, E = {
1423
- padding: O,
1424
- boundary: $.filter(Br),
1390
+ } = e, y = Ut(at, n), [x, C] = p.useState(null), S = ce(t, (F) => C(F)), [b, R] = p.useState(null), P = go(b), A = P?.width ?? 0, I = P?.height ?? 0, k = o + (i !== "center" ? "-" + i : ""), E = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, $ = Array.isArray(d) ? d : [d], L = $.length > 0, O = {
1391
+ padding: E,
1392
+ boundary: $.filter($r),
1425
1393
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
1426
1394
  altBoundary: L
1427
- }, { refs: P, floatingStyles: z, placement: N, isPositioned: T, middlewareData: M } = Cr({
1395
+ }, { refs: _, floatingStyles: G, placement: N, isPositioned: T, middlewareData: M } = Cr({
1428
1396
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
1429
1397
  strategy: "fixed",
1430
1398
  placement: k,
@@ -1439,36 +1407,36 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
1439
1407
  u && Ar({
1440
1408
  mainAxis: !0,
1441
1409
  crossAxis: !1,
1442
- limiter: c === "partial" ? _r() : void 0,
1443
- ...E
1410
+ limiter: c === "partial" ? Pr() : void 0,
1411
+ ...O
1444
1412
  }),
1445
- u && Pr({ ...E }),
1413
+ u && _r({ ...O }),
1446
1414
  Dr({
1447
- ...E,
1448
- apply: ({ elements: F, rects: ge, availableWidth: Xn, availableHeight: Yn }) => {
1449
- const { width: qn, height: Zn } = ge.reference, _e = F.floating.style;
1450
- _e.setProperty("--radix-popper-available-width", `${Xn}px`), _e.setProperty("--radix-popper-available-height", `${Yn}px`), _e.setProperty("--radix-popper-anchor-width", `${qn}px`), _e.setProperty("--radix-popper-anchor-height", `${Zn}px`);
1415
+ ...O,
1416
+ apply: ({ elements: F, rects: ge, availableWidth: zn, availableHeight: jn }) => {
1417
+ const { width: Un, height: Xn } = ge.reference, Pe = F.floating.style;
1418
+ Pe.setProperty("--radix-popper-available-width", `${zn}px`), Pe.setProperty("--radix-popper-available-height", `${jn}px`), Pe.setProperty("--radix-popper-anchor-width", `${Un}px`), Pe.setProperty("--radix-popper-anchor-height", `${Xn}px`);
1451
1419
  }
1452
1420
  }),
1453
- b && Er({ element: b, padding: s }),
1454
- Wr({ arrowWidth: A, arrowHeight: I }),
1455
- m && Or({ strategy: "referenceHidden", ...E })
1421
+ b && Or({ element: b, padding: s }),
1422
+ Br({ arrowWidth: A, arrowHeight: I }),
1423
+ m && Er({ strategy: "referenceHidden", ...O })
1456
1424
  ]
1457
- }), [v, B] = on(N), X = Be(g);
1458
- Xe(() => {
1425
+ }), [v, B] = en(N), X = Be(g);
1426
+ ht(() => {
1459
1427
  T && X?.();
1460
1428
  }, [T, X]);
1461
1429
  const ie = M.arrow?.x, me = M.arrow?.y, he = M.arrow?.centerOffset !== 0, [Ae, ae] = p.useState();
1462
- return Xe(() => {
1430
+ return ht(() => {
1463
1431
  x && ae(window.getComputedStyle(x).zIndex);
1464
1432
  }, [x]), /* @__PURE__ */ f(
1465
1433
  "div",
1466
1434
  {
1467
- ref: P.setFloating,
1435
+ ref: _.setFloating,
1468
1436
  "data-radix-popper-content-wrapper": "",
1469
1437
  style: {
1470
- ...z,
1471
- transform: T ? z.transform : "translate(0, -200%)",
1438
+ ...G,
1439
+ transform: T ? G.transform : "translate(0, -200%)",
1472
1440
  // keep off the page when measuring
1473
1441
  minWidth: "max-content",
1474
1442
  zIndex: Ae,
@@ -1486,7 +1454,7 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
1486
1454
  },
1487
1455
  dir: e.dir,
1488
1456
  children: /* @__PURE__ */ f(
1489
- Lr,
1457
+ kr,
1490
1458
  {
1491
1459
  scope: n,
1492
1460
  placedSide: v,
@@ -1515,14 +1483,14 @@ var st = "PopperContent", [Lr, Fr] = Xt(st), en = p.forwardRef(
1515
1483
  );
1516
1484
  }
1517
1485
  );
1518
- en.displayName = st;
1519
- var tn = "PopperArrow", $r = {
1486
+ Zt.displayName = at;
1487
+ var Jt = "PopperArrow", Fr = {
1520
1488
  top: "bottom",
1521
1489
  right: "left",
1522
1490
  bottom: "top",
1523
1491
  left: "right"
1524
- }, nn = p.forwardRef(function(t, n) {
1525
- const { __scopePopper: o, ...r } = t, i = Fr(tn, o), a = $r[i.placedSide];
1492
+ }, Qt = p.forwardRef(function(t, n) {
1493
+ const { __scopePopper: o, ...r } = t, i = Lr(Jt, o), a = Fr[i.placedSide];
1526
1494
  return (
1527
1495
  // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
1528
1496
  // doesn't report size as we'd expect on SVG elements.
@@ -1566,35 +1534,35 @@ var tn = "PopperArrow", $r = {
1566
1534
  )
1567
1535
  );
1568
1536
  });
1569
- nn.displayName = tn;
1570
- function Br(e) {
1537
+ Qt.displayName = Jt;
1538
+ function $r(e) {
1571
1539
  return e !== null;
1572
1540
  }
1573
- var Wr = (e) => ({
1541
+ var Br = (e) => ({
1574
1542
  name: "transformOrigin",
1575
1543
  options: e,
1576
1544
  fn(t) {
1577
- const { placement: n, rects: o, middlewareData: r } = t, a = r.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [d, l] = on(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + s / 2, h = (r.arrow?.y ?? 0) + u / 2;
1545
+ const { placement: n, rects: o, middlewareData: r } = t, a = r.arrow?.centerOffset !== 0, s = a ? 0 : e.arrowWidth, u = a ? 0 : e.arrowHeight, [d, l] = en(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + s / 2, h = (r.arrow?.y ?? 0) + u / 2;
1578
1546
  let g = "", w = "";
1579
1547
  return d === "bottom" ? (g = a ? c : `${m}px`, w = `${-u}px`) : d === "top" ? (g = a ? c : `${m}px`, w = `${o.floating.height + u}px`) : d === "right" ? (g = `${-u}px`, w = a ? c : `${h}px`) : d === "left" && (g = `${o.floating.width + u}px`, w = a ? c : `${h}px`), { data: { x: g, y: w } };
1580
1548
  }
1581
1549
  });
1582
- function on(e) {
1550
+ function en(e) {
1583
1551
  const [t, n = "center"] = e.split("-");
1584
1552
  return [t, n];
1585
1553
  }
1586
- var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown", "PageUp", "Home"], an = ["ArrowUp", "PageDown", "End"], Vr = [...Kr, ...an], jr = {
1587
- ltr: [...Je, "ArrowRight"],
1588
- rtl: [...Je, "ArrowLeft"]
1589
- }, Ur = {
1554
+ var tn = Xt, Wr = qt, Gr = Zt, Hr = Qt, Ze = ["Enter", " "], Kr = ["ArrowDown", "PageUp", "Home"], nn = ["ArrowUp", "PageDown", "End"], Vr = [...Kr, ...nn], zr = {
1555
+ ltr: [...Ze, "ArrowRight"],
1556
+ rtl: [...Ze, "ArrowLeft"]
1557
+ }, jr = {
1590
1558
  ltr: ["ArrowLeft"],
1591
1559
  rtl: ["ArrowRight"]
1592
- }, Ce = "Menu", [ye, Xr, Yr] = uo(Ce), [le, sn] = Qe(Ce, [
1593
- Yr,
1594
- Yt,
1595
- Ot
1596
- ]), Re = Yt(), cn = Ot(), [ln, re] = le(Ce), [qr, Se] = le(Ce), un = (e) => {
1597
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = Re(t), [u, d] = p.useState(null), l = p.useRef(!1), c = Be(i), m = fo(r);
1560
+ }, Ce = "Menu", [ye, Ur, Xr] = so(Ce), [le, on] = Je(Ce, [
1561
+ Xr,
1562
+ jt,
1563
+ Et
1564
+ ]), Re = jt(), rn = Et(), [an, re] = le(Ce), [Yr, Se] = le(Ce), sn = (e) => {
1565
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, s = Re(t), [u, d] = p.useState(null), l = p.useRef(!1), c = Be(i), m = co(r);
1598
1566
  return p.useEffect(() => {
1599
1567
  const h = () => {
1600
1568
  l.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
@@ -1602,8 +1570,8 @@ var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown",
1602
1570
  return document.addEventListener("keydown", h, { capture: !0 }), () => {
1603
1571
  document.removeEventListener("keydown", h, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
1604
1572
  };
1605
- }, []), /* @__PURE__ */ f(rn, { ...s, children: /* @__PURE__ */ f(
1606
- ln,
1573
+ }, []), /* @__PURE__ */ f(tn, { ...s, children: /* @__PURE__ */ f(
1574
+ an,
1607
1575
  {
1608
1576
  scope: t,
1609
1577
  open: n,
@@ -1611,7 +1579,7 @@ var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown",
1611
1579
  content: u,
1612
1580
  onContentChange: d,
1613
1581
  children: /* @__PURE__ */ f(
1614
- qr,
1582
+ Yr,
1615
1583
  {
1616
1584
  scope: t,
1617
1585
  onClose: p.useCallback(() => c(!1), [c]),
@@ -1624,34 +1592,34 @@ var rn = Zt, zr = Qt, Gr = en, Hr = nn, Je = ["Enter", " "], Kr = ["ArrowDown",
1624
1592
  }
1625
1593
  ) });
1626
1594
  };
1627
- un.displayName = Ce;
1628
- var Zr = "MenuAnchor", ct = p.forwardRef(
1595
+ sn.displayName = Ce;
1596
+ var qr = "MenuAnchor", st = p.forwardRef(
1629
1597
  (e, t) => {
1630
1598
  const { __scopeMenu: n, ...o } = e, r = Re(n);
1631
- return /* @__PURE__ */ f(zr, { ...r, ...o, ref: t });
1599
+ return /* @__PURE__ */ f(Wr, { ...r, ...o, ref: t });
1632
1600
  }
1633
1601
  );
1634
- ct.displayName = Zr;
1635
- var lt = "MenuPortal", [Jr, dn] = le(lt, {
1602
+ st.displayName = qr;
1603
+ var ct = "MenuPortal", [Zr, cn] = le(ct, {
1636
1604
  forceMount: void 0
1637
- }), fn = (e) => {
1638
- const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = re(lt, t);
1639
- return /* @__PURE__ */ f(Jr, { scope: t, forceMount: n, children: /* @__PURE__ */ f($e, { present: n || i.open, children: /* @__PURE__ */ f(xo, { asChild: !0, container: r, children: o }) }) });
1605
+ }), ln = (e) => {
1606
+ const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = re(ct, t);
1607
+ return /* @__PURE__ */ f(Zr, { scope: t, forceMount: n, children: /* @__PURE__ */ f($e, { present: n || i.open, children: /* @__PURE__ */ f(wo, { asChild: !0, container: r, children: o }) }) });
1640
1608
  };
1641
- fn.displayName = lt;
1642
- var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1609
+ ln.displayName = ct;
1610
+ var V = "MenuContent", [Jr, lt] = le(V), un = p.forwardRef(
1643
1611
  (e, t) => {
1644
- const n = dn(K, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = re(K, e.__scopeMenu), a = Se(K, e.__scopeMenu);
1645
- return /* @__PURE__ */ f(ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f($e, { present: o || i.open, children: /* @__PURE__ */ f(ye.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ f(ei, { ...r, ref: t }) : /* @__PURE__ */ f(ti, { ...r, ref: t }) }) }) });
1612
+ const n = cn(V, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = re(V, e.__scopeMenu), a = Se(V, e.__scopeMenu);
1613
+ return /* @__PURE__ */ f(ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f($e, { present: o || i.open, children: /* @__PURE__ */ f(ye.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ f(Qr, { ...r, ref: t }) : /* @__PURE__ */ f(ei, { ...r, ref: t }) }) }) });
1646
1614
  }
1647
- ), ei = p.forwardRef(
1615
+ ), Qr = p.forwardRef(
1648
1616
  (e, t) => {
1649
- const n = re(K, e.__scopeMenu), o = p.useRef(null), r = ce(t, o);
1617
+ const n = re(V, e.__scopeMenu), o = p.useRef(null), r = ce(t, o);
1650
1618
  return p.useEffect(() => {
1651
1619
  const i = o.current;
1652
- if (i) return po(i);
1620
+ if (i) return lo(i);
1653
1621
  }, []), /* @__PURE__ */ f(
1654
- dt,
1622
+ ut,
1655
1623
  {
1656
1624
  ...e,
1657
1625
  ref: r,
@@ -1667,10 +1635,10 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1667
1635
  }
1668
1636
  );
1669
1637
  }
1670
- ), ti = p.forwardRef((e, t) => {
1671
- const n = re(K, e.__scopeMenu);
1638
+ ), ei = p.forwardRef((e, t) => {
1639
+ const n = re(V, e.__scopeMenu);
1672
1640
  return /* @__PURE__ */ f(
1673
- dt,
1641
+ ut,
1674
1642
  {
1675
1643
  ...e,
1676
1644
  ref: t,
@@ -1680,7 +1648,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1680
1648
  onDismiss: () => n.onOpenChange(!1)
1681
1649
  }
1682
1650
  );
1683
- }), ni = lo("MenuContent.ScrollLock"), dt = p.forwardRef(
1651
+ }), ti = ao("MenuContent.ScrollLock"), ut = p.forwardRef(
1684
1652
  (e, t) => {
1685
1653
  const {
1686
1654
  __scopeMenu: n,
@@ -1697,19 +1665,19 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1697
1665
  onDismiss: h,
1698
1666
  disableOutsideScroll: g,
1699
1667
  ...w
1700
- } = e, y = re(K, n), x = Se(K, n), C = Re(n), S = cn(n), b = Xr(n), [R, _] = p.useState(null), A = p.useRef(null), I = ce(t, A, y.onContentChange), k = p.useRef(0), O = p.useRef(""), $ = p.useRef(0), L = p.useRef(null), E = p.useRef("right"), P = p.useRef(0), z = g ? ho : p.Fragment, N = g ? { as: ni, allowPinchZoom: !0 } : void 0, T = (v) => {
1701
- const B = O.current + v, X = b().filter((F) => !F.disabled), ie = document.activeElement, me = X.find((F) => F.ref.current === ie)?.textValue, he = X.map((F) => F.textValue), Ae = mi(he, B, me), ae = X.find((F) => F.textValue === Ae)?.ref.current;
1668
+ } = e, y = re(V, n), x = Se(V, n), C = Re(n), S = rn(n), b = Ur(n), [R, P] = p.useState(null), A = p.useRef(null), I = ce(t, A, y.onContentChange), k = p.useRef(0), E = p.useRef(""), $ = p.useRef(0), L = p.useRef(null), O = p.useRef("right"), _ = p.useRef(0), G = g ? fo : p.Fragment, N = g ? { as: ti, allowPinchZoom: !0 } : void 0, T = (v) => {
1669
+ const B = E.current + v, X = b().filter((F) => !F.disabled), ie = document.activeElement, me = X.find((F) => F.ref.current === ie)?.textValue, he = X.map((F) => F.textValue), Ae = pi(he, B, me), ae = X.find((F) => F.textValue === Ae)?.ref.current;
1702
1670
  (function F(ge) {
1703
- O.current = ge, window.clearTimeout(k.current), ge !== "" && (k.current = window.setTimeout(() => F(""), 1e3));
1671
+ E.current = ge, window.clearTimeout(k.current), ge !== "" && (k.current = window.setTimeout(() => F(""), 1e3));
1704
1672
  })(B), ae && setTimeout(() => ae.focus());
1705
1673
  };
1706
- p.useEffect(() => () => window.clearTimeout(k.current), []), mo();
1707
- const M = p.useCallback((v) => E.current === L.current?.side && gi(v, L.current?.area), []);
1674
+ p.useEffect(() => () => window.clearTimeout(k.current), []), uo();
1675
+ const M = p.useCallback((v) => O.current === L.current?.side && hi(v, L.current?.area), []);
1708
1676
  return /* @__PURE__ */ f(
1709
- Qr,
1677
+ Jr,
1710
1678
  {
1711
1679
  scope: n,
1712
- searchRef: O,
1680
+ searchRef: E,
1713
1681
  onItemEnter: p.useCallback(
1714
1682
  (v) => {
1715
1683
  M(v) && v.preventDefault();
@@ -1718,7 +1686,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1718
1686
  ),
1719
1687
  onItemLeave: p.useCallback(
1720
1688
  (v) => {
1721
- M(v) || (A.current?.focus(), _(null));
1689
+ M(v) || (A.current?.focus(), P(null));
1722
1690
  },
1723
1691
  [M]
1724
1692
  ),
@@ -1732,8 +1700,8 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1732
1700
  onPointerGraceIntentChange: p.useCallback((v) => {
1733
1701
  L.current = v;
1734
1702
  }, []),
1735
- children: /* @__PURE__ */ f(z, { ...N, children: /* @__PURE__ */ f(
1736
- go,
1703
+ children: /* @__PURE__ */ f(G, { ...N, children: /* @__PURE__ */ f(
1704
+ po,
1737
1705
  {
1738
1706
  asChild: !0,
1739
1707
  trapped: r,
@@ -1742,7 +1710,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1742
1710
  }),
1743
1711
  onUnmountAutoFocus: a,
1744
1712
  children: /* @__PURE__ */ f(
1745
- wo,
1713
+ mo,
1746
1714
  {
1747
1715
  asChild: !0,
1748
1716
  disableOutsidePointerEvents: s,
@@ -1752,7 +1720,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1752
1720
  onInteractOutside: m,
1753
1721
  onDismiss: h,
1754
1722
  children: /* @__PURE__ */ f(
1755
- bo,
1723
+ xo,
1756
1724
  {
1757
1725
  asChild: !0,
1758
1726
  ...S,
@@ -1760,7 +1728,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1760
1728
  orientation: "vertical",
1761
1729
  loop: o,
1762
1730
  currentTabStopId: R,
1763
- onCurrentTabStopIdChange: _,
1731
+ onCurrentTabStopIdChange: P,
1764
1732
  onEntryFocus: D(u, (v) => {
1765
1733
  x.isUsingKeyboardRef.current || v.preventDefault();
1766
1734
  }),
@@ -1770,7 +1738,7 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1770
1738
  {
1771
1739
  role: "menu",
1772
1740
  "aria-orientation": "vertical",
1773
- "data-state": On(y.open),
1741
+ "data-state": Pn(y.open),
1774
1742
  "data-radix-menu-content": "",
1775
1743
  dir: x.dir,
1776
1744
  ...C,
@@ -1784,18 +1752,18 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1784
1752
  if (v.target !== he || !Vr.includes(v.key)) return;
1785
1753
  v.preventDefault();
1786
1754
  const ae = b().filter((F) => !F.disabled).map((F) => F.ref.current);
1787
- an.includes(v.key) && ae.reverse(), fi(ae);
1755
+ nn.includes(v.key) && ae.reverse(), di(ae);
1788
1756
  }),
1789
1757
  onBlur: D(e.onBlur, (v) => {
1790
- v.currentTarget.contains(v.target) || (window.clearTimeout(k.current), O.current = "");
1758
+ v.currentTarget.contains(v.target) || (window.clearTimeout(k.current), E.current = "");
1791
1759
  }),
1792
1760
  onPointerMove: D(
1793
1761
  e.onPointerMove,
1794
1762
  be((v) => {
1795
- const B = v.target, X = P.current !== v.clientX;
1763
+ const B = v.target, X = _.current !== v.clientX;
1796
1764
  if (v.currentTarget.contains(B) && X) {
1797
- const ie = v.clientX > P.current ? "right" : "left";
1798
- E.current = ie, P.current = v.clientX;
1765
+ const ie = v.clientX > _.current ? "right" : "left";
1766
+ O.current = ie, _.current = v.clientX;
1799
1767
  }
1800
1768
  })
1801
1769
  )
@@ -1811,32 +1779,32 @@ var K = "MenuContent", [Qr, ut] = le(K), pn = p.forwardRef(
1811
1779
  );
1812
1780
  }
1813
1781
  );
1814
- pn.displayName = K;
1815
- var oi = "MenuGroup", ft = p.forwardRef(
1782
+ un.displayName = V;
1783
+ var ni = "MenuGroup", dt = p.forwardRef(
1816
1784
  (e, t) => {
1817
1785
  const { __scopeMenu: n, ...o } = e;
1818
1786
  return /* @__PURE__ */ f(te.div, { role: "group", ...o, ref: t });
1819
1787
  }
1820
1788
  );
1821
- ft.displayName = oi;
1822
- var ri = "MenuLabel", mn = p.forwardRef(
1789
+ dt.displayName = ni;
1790
+ var oi = "MenuLabel", dn = p.forwardRef(
1823
1791
  (e, t) => {
1824
1792
  const { __scopeMenu: n, ...o } = e;
1825
1793
  return /* @__PURE__ */ f(te.div, { ...o, ref: t });
1826
1794
  }
1827
1795
  );
1828
- mn.displayName = ri;
1829
- var ke = "MenuItem", _t = "menu.itemSelect", Ke = p.forwardRef(
1796
+ dn.displayName = oi;
1797
+ var ke = "MenuItem", Pt = "menu.itemSelect", Ve = p.forwardRef(
1830
1798
  (e, t) => {
1831
- const { disabled: n = !1, onSelect: o, ...r } = e, i = p.useRef(null), a = Se(ke, e.__scopeMenu), s = ut(ke, e.__scopeMenu), u = ce(t, i), d = p.useRef(!1), l = () => {
1799
+ const { disabled: n = !1, onSelect: o, ...r } = e, i = p.useRef(null), a = Se(ke, e.__scopeMenu), s = lt(ke, e.__scopeMenu), u = ce(t, i), d = p.useRef(!1), l = () => {
1832
1800
  const c = i.current;
1833
1801
  if (!n && c) {
1834
- const m = new CustomEvent(_t, { bubbles: !0, cancelable: !0 });
1835
- c.addEventListener(_t, (h) => o?.(h), { once: !0 }), co(c, m), m.defaultPrevented ? d.current = !1 : a.onClose();
1802
+ const m = new CustomEvent(Pt, { bubbles: !0, cancelable: !0 });
1803
+ c.addEventListener(Pt, (h) => o?.(h), { once: !0 }), io(c, m), m.defaultPrevented ? d.current = !1 : a.onClose();
1836
1804
  }
1837
1805
  };
1838
1806
  return /* @__PURE__ */ f(
1839
- hn,
1807
+ fn,
1840
1808
  {
1841
1809
  ...r,
1842
1810
  ref: u,
@@ -1850,16 +1818,16 @@ var ke = "MenuItem", _t = "menu.itemSelect", Ke = p.forwardRef(
1850
1818
  }),
1851
1819
  onKeyDown: D(e.onKeyDown, (c) => {
1852
1820
  const m = s.searchRef.current !== "";
1853
- n || m && c.key === " " || Je.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1821
+ n || m && c.key === " " || Ze.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
1854
1822
  })
1855
1823
  }
1856
1824
  );
1857
1825
  }
1858
1826
  );
1859
- Ke.displayName = ke;
1860
- var hn = p.forwardRef(
1827
+ Ve.displayName = ke;
1828
+ var fn = p.forwardRef(
1861
1829
  (e, t) => {
1862
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = ut(ke, n), s = cn(n), u = p.useRef(null), d = ce(t, u), [l, c] = p.useState(!1), [m, h] = p.useState("");
1830
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = lt(ke, n), s = rn(n), u = p.useRef(null), d = ce(t, u), [l, c] = p.useState(!1), [m, h] = p.useState("");
1863
1831
  return p.useEffect(() => {
1864
1832
  const g = u.current;
1865
1833
  g && h((g.textContent ?? "").trim());
@@ -1869,7 +1837,7 @@ var hn = p.forwardRef(
1869
1837
  scope: n,
1870
1838
  disabled: o,
1871
1839
  textValue: r ?? m,
1872
- children: /* @__PURE__ */ f(yo, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ f(
1840
+ children: /* @__PURE__ */ f(vo, { asChild: !0, ...s, focusable: !o, children: /* @__PURE__ */ f(
1873
1841
  te.div,
1874
1842
  {
1875
1843
  role: "menuitem",
@@ -1895,17 +1863,17 @@ var hn = p.forwardRef(
1895
1863
  }
1896
1864
  );
1897
1865
  }
1898
- ), ii = "MenuCheckboxItem", gn = p.forwardRef(
1866
+ ), ri = "MenuCheckboxItem", pn = p.forwardRef(
1899
1867
  (e, t) => {
1900
1868
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
1901
- return /* @__PURE__ */ f(bn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ f(
1902
- Ke,
1869
+ return /* @__PURE__ */ f(vn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ f(
1870
+ Ve,
1903
1871
  {
1904
1872
  role: "menuitemcheckbox",
1905
1873
  "aria-checked": Le(n) ? "mixed" : n,
1906
1874
  ...r,
1907
1875
  ref: t,
1908
- "data-state": ht(n),
1876
+ "data-state": mt(n),
1909
1877
  onSelect: D(
1910
1878
  r.onSelect,
1911
1879
  () => o?.(Le(n) ? !0 : !n),
@@ -1915,29 +1883,29 @@ var hn = p.forwardRef(
1915
1883
  ) });
1916
1884
  }
1917
1885
  );
1918
- gn.displayName = ii;
1919
- var wn = "MenuRadioGroup", [ai, si] = le(
1920
- wn,
1886
+ pn.displayName = ri;
1887
+ var mn = "MenuRadioGroup", [ii, ai] = le(
1888
+ mn,
1921
1889
  { value: void 0, onValueChange: () => {
1922
1890
  } }
1923
- ), vn = p.forwardRef(
1891
+ ), hn = p.forwardRef(
1924
1892
  (e, t) => {
1925
1893
  const { value: n, onValueChange: o, ...r } = e, i = Be(o);
1926
- return /* @__PURE__ */ f(ai, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ f(ft, { ...r, ref: t }) });
1894
+ return /* @__PURE__ */ f(ii, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ f(dt, { ...r, ref: t }) });
1927
1895
  }
1928
1896
  );
1929
- vn.displayName = wn;
1930
- var xn = "MenuRadioItem", yn = p.forwardRef(
1897
+ hn.displayName = mn;
1898
+ var gn = "MenuRadioItem", wn = p.forwardRef(
1931
1899
  (e, t) => {
1932
- const { value: n, ...o } = e, r = si(xn, e.__scopeMenu), i = n === r.value;
1933
- return /* @__PURE__ */ f(bn, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ f(
1934
- Ke,
1900
+ const { value: n, ...o } = e, r = ai(gn, e.__scopeMenu), i = n === r.value;
1901
+ return /* @__PURE__ */ f(vn, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ f(
1902
+ Ve,
1935
1903
  {
1936
1904
  role: "menuitemradio",
1937
1905
  "aria-checked": i,
1938
1906
  ...o,
1939
1907
  ref: t,
1940
- "data-state": ht(i),
1908
+ "data-state": mt(i),
1941
1909
  onSelect: D(
1942
1910
  o.onSelect,
1943
1911
  () => r.onValueChange?.(n),
@@ -1947,13 +1915,13 @@ var xn = "MenuRadioItem", yn = p.forwardRef(
1947
1915
  ) });
1948
1916
  }
1949
1917
  );
1950
- yn.displayName = xn;
1951
- var pt = "MenuItemIndicator", [bn, ci] = le(
1952
- pt,
1918
+ wn.displayName = gn;
1919
+ var ft = "MenuItemIndicator", [vn, si] = le(
1920
+ ft,
1953
1921
  { checked: !1 }
1954
- ), Mn = p.forwardRef(
1922
+ ), xn = p.forwardRef(
1955
1923
  (e, t) => {
1956
- const { __scopeMenu: n, forceMount: o, ...r } = e, i = ci(pt, n);
1924
+ const { __scopeMenu: n, forceMount: o, ...r } = e, i = si(ft, n);
1957
1925
  return /* @__PURE__ */ f(
1958
1926
  $e,
1959
1927
  {
@@ -1963,15 +1931,15 @@ var pt = "MenuItemIndicator", [bn, ci] = le(
1963
1931
  {
1964
1932
  ...r,
1965
1933
  ref: t,
1966
- "data-state": ht(i.checked)
1934
+ "data-state": mt(i.checked)
1967
1935
  }
1968
1936
  )
1969
1937
  }
1970
1938
  );
1971
1939
  }
1972
1940
  );
1973
- Mn.displayName = pt;
1974
- var li = "MenuSeparator", Cn = p.forwardRef(
1941
+ xn.displayName = ft;
1942
+ var ci = "MenuSeparator", yn = p.forwardRef(
1975
1943
  (e, t) => {
1976
1944
  const { __scopeMenu: n, ...o } = e;
1977
1945
  return /* @__PURE__ */ f(
@@ -1985,18 +1953,18 @@ var li = "MenuSeparator", Cn = p.forwardRef(
1985
1953
  );
1986
1954
  }
1987
1955
  );
1988
- Cn.displayName = li;
1989
- var ui = "MenuArrow", Rn = p.forwardRef(
1956
+ yn.displayName = ci;
1957
+ var li = "MenuArrow", bn = p.forwardRef(
1990
1958
  (e, t) => {
1991
1959
  const { __scopeMenu: n, ...o } = e, r = Re(n);
1992
1960
  return /* @__PURE__ */ f(Hr, { ...r, ...o, ref: t });
1993
1961
  }
1994
1962
  );
1995
- Rn.displayName = ui;
1996
- var mt = "MenuSub", [di, Sn] = le(mt), An = (e) => {
1997
- const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, i = re(mt, t), a = Re(t), [s, u] = p.useState(null), [d, l] = p.useState(null), c = Be(r);
1998
- return p.useEffect(() => (i.open === !1 && c(!1), () => c(!1)), [i.open, c]), /* @__PURE__ */ f(rn, { ...a, children: /* @__PURE__ */ f(
1999
- ln,
1963
+ bn.displayName = li;
1964
+ var pt = "MenuSub", [ui, Mn] = le(pt), Cn = (e) => {
1965
+ const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, i = re(pt, t), a = Re(t), [s, u] = p.useState(null), [d, l] = p.useState(null), c = Be(r);
1966
+ return p.useEffect(() => (i.open === !1 && c(!1), () => c(!1)), [i.open, c]), /* @__PURE__ */ f(tn, { ...a, children: /* @__PURE__ */ f(
1967
+ an,
2000
1968
  {
2001
1969
  scope: t,
2002
1970
  open: o,
@@ -2004,11 +1972,11 @@ var mt = "MenuSub", [di, Sn] = le(mt), An = (e) => {
2004
1972
  content: d,
2005
1973
  onContentChange: l,
2006
1974
  children: /* @__PURE__ */ f(
2007
- di,
1975
+ ui,
2008
1976
  {
2009
1977
  scope: t,
2010
- contentId: Oe(),
2011
- triggerId: Oe(),
1978
+ contentId: Ee(),
1979
+ triggerId: Ee(),
2012
1980
  trigger: s,
2013
1981
  onTriggerChange: u,
2014
1982
  children: n
@@ -2017,10 +1985,10 @@ var mt = "MenuSub", [di, Sn] = le(mt), An = (e) => {
2017
1985
  }
2018
1986
  ) });
2019
1987
  };
2020
- An.displayName = mt;
2021
- var we = "MenuSubTrigger", _n = p.forwardRef(
1988
+ Cn.displayName = pt;
1989
+ var we = "MenuSubTrigger", Rn = p.forwardRef(
2022
1990
  (e, t) => {
2023
- const n = re(we, e.__scopeMenu), o = Se(we, e.__scopeMenu), r = Sn(we, e.__scopeMenu), i = ut(we, e.__scopeMenu), a = p.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: u } = i, d = { __scopeMenu: e.__scopeMenu }, l = p.useCallback(() => {
1991
+ const n = re(we, e.__scopeMenu), o = Se(we, e.__scopeMenu), r = Mn(we, e.__scopeMenu), i = lt(we, e.__scopeMenu), a = p.useRef(null), { pointerGraceTimerRef: s, onPointerGraceIntentChange: u } = i, d = { __scopeMenu: e.__scopeMenu }, l = p.useCallback(() => {
2024
1992
  a.current && window.clearTimeout(a.current), a.current = null;
2025
1993
  }, []);
2026
1994
  return p.useEffect(() => l, [l]), p.useEffect(() => {
@@ -2028,16 +1996,16 @@ var we = "MenuSubTrigger", _n = p.forwardRef(
2028
1996
  return () => {
2029
1997
  window.clearTimeout(c), u(null);
2030
1998
  };
2031
- }, [s, u]), /* @__PURE__ */ f(ct, { asChild: !0, ...d, children: /* @__PURE__ */ f(
2032
- hn,
1999
+ }, [s, u]), /* @__PURE__ */ f(st, { asChild: !0, ...d, children: /* @__PURE__ */ f(
2000
+ fn,
2033
2001
  {
2034
2002
  id: r.triggerId,
2035
2003
  "aria-haspopup": "menu",
2036
2004
  "aria-expanded": n.open,
2037
2005
  "aria-controls": r.contentId,
2038
- "data-state": On(n.open),
2006
+ "data-state": Pn(n.open),
2039
2007
  ...e,
2040
- ref: Pt(t, r.onTriggerChange),
2008
+ ref: _t(t, r.onTriggerChange),
2041
2009
  onClick: (c) => {
2042
2010
  e.onClick?.(c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
2043
2011
  },
@@ -2079,18 +2047,18 @@ var we = "MenuSubTrigger", _n = p.forwardRef(
2079
2047
  ),
2080
2048
  onKeyDown: D(e.onKeyDown, (c) => {
2081
2049
  const m = i.searchRef.current !== "";
2082
- e.disabled || m && c.key === " " || jr[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
2050
+ e.disabled || m && c.key === " " || zr[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
2083
2051
  })
2084
2052
  }
2085
2053
  ) });
2086
2054
  }
2087
2055
  );
2088
- _n.displayName = we;
2089
- var Pn = "MenuSubContent", Dn = p.forwardRef(
2056
+ Rn.displayName = we;
2057
+ var Sn = "MenuSubContent", An = p.forwardRef(
2090
2058
  (e, t) => {
2091
- const n = dn(K, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = re(K, e.__scopeMenu), a = Se(K, e.__scopeMenu), s = Sn(Pn, e.__scopeMenu), u = p.useRef(null), d = ce(t, u);
2059
+ const n = cn(V, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = re(V, e.__scopeMenu), a = Se(V, e.__scopeMenu), s = Mn(Sn, e.__scopeMenu), u = p.useRef(null), d = ce(t, u);
2092
2060
  return /* @__PURE__ */ f(ye.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ f($e, { present: o || i.open, children: /* @__PURE__ */ f(ye.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ f(
2093
- dt,
2061
+ ut,
2094
2062
  {
2095
2063
  id: s.contentId,
2096
2064
  "aria-labelledby": s.triggerId,
@@ -2112,41 +2080,41 @@ var Pn = "MenuSubContent", Dn = p.forwardRef(
2112
2080
  a.onClose(), l.preventDefault();
2113
2081
  }),
2114
2082
  onKeyDown: D(e.onKeyDown, (l) => {
2115
- const c = l.currentTarget.contains(l.target), m = Ur[a.dir].includes(l.key);
2083
+ const c = l.currentTarget.contains(l.target), m = jr[a.dir].includes(l.key);
2116
2084
  c && m && (i.onOpenChange(!1), s.trigger?.focus(), l.preventDefault());
2117
2085
  })
2118
2086
  }
2119
2087
  ) }) }) });
2120
2088
  }
2121
2089
  );
2122
- Dn.displayName = Pn;
2123
- function On(e) {
2090
+ An.displayName = Sn;
2091
+ function Pn(e) {
2124
2092
  return e ? "open" : "closed";
2125
2093
  }
2126
2094
  function Le(e) {
2127
2095
  return e === "indeterminate";
2128
2096
  }
2129
- function ht(e) {
2097
+ function mt(e) {
2130
2098
  return Le(e) ? "indeterminate" : e ? "checked" : "unchecked";
2131
2099
  }
2132
- function fi(e) {
2100
+ function di(e) {
2133
2101
  const t = document.activeElement;
2134
2102
  for (const n of e)
2135
2103
  if (n === t || (n.focus(), document.activeElement !== t)) return;
2136
2104
  }
2137
- function pi(e, t) {
2105
+ function fi(e, t) {
2138
2106
  return e.map((n, o) => e[(t + o) % e.length]);
2139
2107
  }
2140
- function mi(e, t, n) {
2108
+ function pi(e, t, n) {
2141
2109
  const r = t.length > 1 && Array.from(t).every((d) => d === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
2142
- let a = pi(e, Math.max(i, 0));
2110
+ let a = fi(e, Math.max(i, 0));
2143
2111
  r.length === 1 && (a = a.filter((d) => d !== n));
2144
2112
  const u = a.find(
2145
2113
  (d) => d.toLowerCase().startsWith(r.toLowerCase())
2146
2114
  );
2147
2115
  return u !== n ? u : void 0;
2148
2116
  }
2149
- function hi(e, t) {
2117
+ function mi(e, t) {
2150
2118
  const { x: n, y: o } = e;
2151
2119
  let r = !1;
2152
2120
  for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
@@ -2155,18 +2123,18 @@ function hi(e, t) {
2155
2123
  }
2156
2124
  return r;
2157
2125
  }
2158
- function gi(e, t) {
2126
+ function hi(e, t) {
2159
2127
  if (!t) return !1;
2160
2128
  const n = { x: e.clientX, y: e.clientY };
2161
- return hi(n, t);
2129
+ return mi(n, t);
2162
2130
  }
2163
2131
  function be(e) {
2164
2132
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
2165
2133
  }
2166
- var wi = un, vi = ct, xi = fn, yi = pn, bi = ft, Mi = mn, Ci = Ke, Ri = gn, Si = vn, Ai = yn, _i = Mn, Pi = Cn, Di = Rn, Oi = An, Ei = _n, Ni = Dn, Ve = "DropdownMenu", [Ti] = Qe(
2167
- Ve,
2168
- [sn]
2169
- ), W = sn(), [Ii, En] = Ti(Ve), Nn = (e) => {
2134
+ var gi = sn, wi = st, vi = ln, xi = un, yi = dt, bi = dn, Mi = Ve, Ci = pn, Ri = hn, Si = wn, Ai = xn, Pi = yn, _i = bn, Di = Cn, Ei = Rn, Oi = An, ze = "DropdownMenu", [Ni] = Je(
2135
+ ze,
2136
+ [on]
2137
+ ), W = on(), [Ti, _n] = Ni(ze), Dn = (e) => {
2170
2138
  const {
2171
2139
  __scopeDropdownMenu: t,
2172
2140
  children: n,
@@ -2179,28 +2147,28 @@ var wi = un, vi = ct, xi = fn, yi = pn, bi = ft, Mi = mn, Ci = Ke, Ri = gn, Si =
2179
2147
  prop: r,
2180
2148
  defaultProp: i ?? !1,
2181
2149
  onChange: a,
2182
- caller: Ve
2150
+ caller: ze
2183
2151
  });
2184
2152
  return /* @__PURE__ */ f(
2185
- Ii,
2153
+ Ti,
2186
2154
  {
2187
2155
  scope: t,
2188
- triggerId: Oe(),
2156
+ triggerId: Ee(),
2189
2157
  triggerRef: d,
2190
- contentId: Oe(),
2158
+ contentId: Ee(),
2191
2159
  open: l,
2192
2160
  onOpenChange: c,
2193
2161
  onOpenToggle: p.useCallback(() => c((m) => !m), [c]),
2194
2162
  modal: s,
2195
- children: /* @__PURE__ */ f(wi, { ...u, open: l, onOpenChange: c, dir: o, modal: s, children: n })
2163
+ children: /* @__PURE__ */ f(gi, { ...u, open: l, onOpenChange: c, dir: o, modal: s, children: n })
2196
2164
  }
2197
2165
  );
2198
2166
  };
2199
- Nn.displayName = Ve;
2200
- var Tn = "DropdownMenuTrigger", In = p.forwardRef(
2167
+ Dn.displayName = ze;
2168
+ var En = "DropdownMenuTrigger", On = p.forwardRef(
2201
2169
  (e, t) => {
2202
- const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = En(Tn, n), a = W(n);
2203
- return /* @__PURE__ */ f(vi, { asChild: !0, ...a, children: /* @__PURE__ */ f(
2170
+ const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = _n(En, n), a = W(n);
2171
+ return /* @__PURE__ */ f(wi, { asChild: !0, ...a, children: /* @__PURE__ */ f(
2204
2172
  te.button,
2205
2173
  {
2206
2174
  type: "button",
@@ -2212,7 +2180,7 @@ var Tn = "DropdownMenuTrigger", In = p.forwardRef(
2212
2180
  "data-disabled": o ? "" : void 0,
2213
2181
  disabled: o,
2214
2182
  ...r,
2215
- ref: Pt(t, i.triggerRef),
2183
+ ref: _t(t, i.triggerRef),
2216
2184
  onPointerDown: D(e.onPointerDown, (s) => {
2217
2185
  !o && s.button === 0 && s.ctrlKey === !1 && (i.onOpenToggle(), i.open || s.preventDefault());
2218
2186
  }),
@@ -2223,17 +2191,17 @@ var Tn = "DropdownMenuTrigger", In = p.forwardRef(
2223
2191
  ) });
2224
2192
  }
2225
2193
  );
2226
- In.displayName = Tn;
2227
- var ki = "DropdownMenuPortal", kn = (e) => {
2194
+ On.displayName = En;
2195
+ var Ii = "DropdownMenuPortal", Nn = (e) => {
2228
2196
  const { __scopeDropdownMenu: t, ...n } = e, o = W(t);
2229
- return /* @__PURE__ */ f(xi, { ...o, ...n });
2197
+ return /* @__PURE__ */ f(vi, { ...o, ...n });
2230
2198
  };
2231
- kn.displayName = ki;
2232
- var Ln = "DropdownMenuContent", Fn = p.forwardRef(
2199
+ Nn.displayName = Ii;
2200
+ var Tn = "DropdownMenuContent", In = p.forwardRef(
2233
2201
  (e, t) => {
2234
- const { __scopeDropdownMenu: n, ...o } = e, r = En(Ln, n), i = W(n), a = p.useRef(!1);
2202
+ const { __scopeDropdownMenu: n, ...o } = e, r = _n(Tn, n), i = W(n), a = p.useRef(!1);
2235
2203
  return /* @__PURE__ */ f(
2236
- yi,
2204
+ xi,
2237
2205
  {
2238
2206
  id: r.contentId,
2239
2207
  "aria-labelledby": r.triggerId,
@@ -2259,77 +2227,77 @@ var Ln = "DropdownMenuContent", Fn = p.forwardRef(
2259
2227
  );
2260
2228
  }
2261
2229
  );
2262
- Fn.displayName = Ln;
2263
- var Li = "DropdownMenuGroup", $n = p.forwardRef(
2230
+ In.displayName = Tn;
2231
+ var ki = "DropdownMenuGroup", kn = p.forwardRef(
2264
2232
  (e, t) => {
2265
2233
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2266
- return /* @__PURE__ */ f(bi, { ...r, ...o, ref: t });
2234
+ return /* @__PURE__ */ f(yi, { ...r, ...o, ref: t });
2267
2235
  }
2268
2236
  );
2269
- $n.displayName = Li;
2270
- var Fi = "DropdownMenuLabel", Bn = p.forwardRef(
2237
+ kn.displayName = ki;
2238
+ var Li = "DropdownMenuLabel", Ln = p.forwardRef(
2271
2239
  (e, t) => {
2272
2240
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2273
- return /* @__PURE__ */ f(Mi, { ...r, ...o, ref: t });
2241
+ return /* @__PURE__ */ f(bi, { ...r, ...o, ref: t });
2274
2242
  }
2275
2243
  );
2276
- Bn.displayName = Fi;
2277
- var $i = "DropdownMenuItem", Wn = p.forwardRef(
2244
+ Ln.displayName = Li;
2245
+ var Fi = "DropdownMenuItem", Fn = p.forwardRef(
2278
2246
  (e, t) => {
2279
2247
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2280
- return /* @__PURE__ */ f(Ci, { ...r, ...o, ref: t });
2248
+ return /* @__PURE__ */ f(Mi, { ...r, ...o, ref: t });
2281
2249
  }
2282
2250
  );
2283
- Wn.displayName = $i;
2284
- var Bi = "DropdownMenuCheckboxItem", zn = p.forwardRef((e, t) => {
2251
+ Fn.displayName = Fi;
2252
+ var $i = "DropdownMenuCheckboxItem", $n = p.forwardRef((e, t) => {
2285
2253
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2286
- return /* @__PURE__ */ f(Ri, { ...r, ...o, ref: t });
2254
+ return /* @__PURE__ */ f(Ci, { ...r, ...o, ref: t });
2287
2255
  });
2288
- zn.displayName = Bi;
2289
- var Wi = "DropdownMenuRadioGroup", zi = p.forwardRef((e, t) => {
2256
+ $n.displayName = $i;
2257
+ var Bi = "DropdownMenuRadioGroup", Wi = p.forwardRef((e, t) => {
2290
2258
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2291
- return /* @__PURE__ */ f(Si, { ...r, ...o, ref: t });
2259
+ return /* @__PURE__ */ f(Ri, { ...r, ...o, ref: t });
2292
2260
  });
2293
- zi.displayName = Wi;
2261
+ Wi.displayName = Bi;
2294
2262
  var Gi = "DropdownMenuRadioItem", Hi = p.forwardRef((e, t) => {
2295
2263
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2296
- return /* @__PURE__ */ f(Ai, { ...r, ...o, ref: t });
2264
+ return /* @__PURE__ */ f(Si, { ...r, ...o, ref: t });
2297
2265
  });
2298
2266
  Hi.displayName = Gi;
2299
- var Ki = "DropdownMenuItemIndicator", Gn = p.forwardRef((e, t) => {
2267
+ var Ki = "DropdownMenuItemIndicator", Bn = p.forwardRef((e, t) => {
2300
2268
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2301
- return /* @__PURE__ */ f(_i, { ...r, ...o, ref: t });
2269
+ return /* @__PURE__ */ f(Ai, { ...r, ...o, ref: t });
2302
2270
  });
2303
- Gn.displayName = Ki;
2304
- var Vi = "DropdownMenuSeparator", Hn = p.forwardRef((e, t) => {
2271
+ Bn.displayName = Ki;
2272
+ var Vi = "DropdownMenuSeparator", Wn = p.forwardRef((e, t) => {
2305
2273
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2306
2274
  return /* @__PURE__ */ f(Pi, { ...r, ...o, ref: t });
2307
2275
  });
2308
- Hn.displayName = Vi;
2309
- var ji = "DropdownMenuArrow", Ui = p.forwardRef(
2276
+ Wn.displayName = Vi;
2277
+ var zi = "DropdownMenuArrow", ji = p.forwardRef(
2310
2278
  (e, t) => {
2311
2279
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2312
- return /* @__PURE__ */ f(Di, { ...r, ...o, ref: t });
2280
+ return /* @__PURE__ */ f(_i, { ...r, ...o, ref: t });
2313
2281
  }
2314
2282
  );
2315
- Ui.displayName = ji;
2316
- var Xi = (e) => {
2283
+ ji.displayName = zi;
2284
+ var Ui = (e) => {
2317
2285
  const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: i } = e, a = W(t), [s, u] = Dt({
2318
2286
  prop: o,
2319
2287
  defaultProp: i ?? !1,
2320
2288
  onChange: r,
2321
2289
  caller: "DropdownMenuSub"
2322
2290
  });
2323
- return /* @__PURE__ */ f(Oi, { ...a, open: s, onOpenChange: u, children: n });
2324
- }, Yi = "DropdownMenuSubTrigger", Kn = p.forwardRef((e, t) => {
2291
+ return /* @__PURE__ */ f(Di, { ...a, open: s, onOpenChange: u, children: n });
2292
+ }, Xi = "DropdownMenuSubTrigger", Gn = p.forwardRef((e, t) => {
2325
2293
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2326
2294
  return /* @__PURE__ */ f(Ei, { ...r, ...o, ref: t });
2327
2295
  });
2328
- Kn.displayName = Yi;
2329
- var qi = "DropdownMenuSubContent", Vn = p.forwardRef((e, t) => {
2296
+ Gn.displayName = Xi;
2297
+ var Yi = "DropdownMenuSubContent", Hn = p.forwardRef((e, t) => {
2330
2298
  const { __scopeDropdownMenu: n, ...o } = e, r = W(n);
2331
2299
  return /* @__PURE__ */ f(
2332
- Ni,
2300
+ Oi,
2333
2301
  {
2334
2302
  ...r,
2335
2303
  ...o,
@@ -2345,9 +2313,9 @@ var qi = "DropdownMenuSubContent", Vn = p.forwardRef((e, t) => {
2345
2313
  }
2346
2314
  );
2347
2315
  });
2348
- Vn.displayName = qi;
2349
- var Zi = Nn, Ji = In, Qi = kn, ea = Fn, ta = $n, na = Bn, oa = Wn, ra = zn, ia = Gn, aa = Hn, sa = Xi, ca = Kn, la = Vn;
2350
- const jn = io(void 0);
2316
+ Hn.displayName = Yi;
2317
+ var qi = Dn, Zi = On, Ji = Nn, Qi = In, ea = kn, ta = Ln, na = Fn, oa = $n, ra = Bn, ia = Wn, aa = Ui, sa = Gn, ca = Hn;
2318
+ const Kn = no(void 0);
2351
2319
  function Ba({
2352
2320
  align: e = "end",
2353
2321
  sideOffset: t = 6,
@@ -2356,7 +2324,7 @@ function Ba({
2356
2324
  children: r,
2357
2325
  ...i
2358
2326
  }) {
2359
- const a = ao(
2327
+ const a = oo(
2360
2328
  () => ({
2361
2329
  align: e,
2362
2330
  sideOffset: t,
@@ -2365,24 +2333,24 @@ function Ba({
2365
2333
  }),
2366
2334
  [e, t, n, o]
2367
2335
  );
2368
- return /* @__PURE__ */ f(jn.Provider, { value: a, children: /* @__PURE__ */ f(Zi, { "data-slot": "dropdown-menu-root", ...i, children: r }) });
2336
+ return /* @__PURE__ */ f(Kn.Provider, { value: a, children: /* @__PURE__ */ f(qi, { "data-slot": "dropdown-menu-root", ...i, children: r }) });
2369
2337
  }
2370
- function Un() {
2371
- const e = so(jn);
2338
+ function Vn() {
2339
+ const e = ro(Kn);
2372
2340
  if (e === void 0)
2373
2341
  throw new Error("useDropdownMenu must be used within a DropdownMenuRoot");
2374
2342
  return e;
2375
2343
  }
2376
2344
  function Wa({ ...e }) {
2377
- return /* @__PURE__ */ f(Ji, { "data-slot": "dropdown-menu-trigger", ...e });
2345
+ return /* @__PURE__ */ f(Zi, { "data-slot": "dropdown-menu-trigger", ...e });
2378
2346
  }
2379
- function za({ className: e, children: t, ...n }) {
2380
- const { align: o, sideOffset: r } = Un();
2347
+ function Ga({ className: e, children: t, ...n }) {
2348
+ const { align: o, sideOffset: r } = Vn();
2381
2349
  return /* @__PURE__ */ f(
2382
- ea,
2350
+ Qi,
2383
2351
  {
2384
2352
  align: o,
2385
- className: V(
2353
+ className: z(
2386
2354
  "z-50 min-w-32 rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl",
2387
2355
  // Open styles
2388
2356
  "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
@@ -2397,16 +2365,16 @@ function za({ className: e, children: t, ...n }) {
2397
2365
  }
2398
2366
  );
2399
2367
  }
2400
- function ua({
2368
+ function la({
2401
2369
  className: e,
2402
2370
  variant: t = "default",
2403
2371
  children: n,
2404
2372
  ...o
2405
2373
  }) {
2406
2374
  return /* @__PURE__ */ f(
2407
- oa,
2375
+ na,
2408
2376
  {
2409
- className: V(
2377
+ className: z(
2410
2378
  "flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] py-2 pl-3 pr-5 outline-none transition-colors",
2411
2379
  // Font styles
2412
2380
  "font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium",
@@ -2425,7 +2393,7 @@ function ua({
2425
2393
  }
2426
2394
  );
2427
2395
  }
2428
- function da({
2396
+ function ua({
2429
2397
  className: e,
2430
2398
  variant: t = "default",
2431
2399
  children: n,
@@ -2433,10 +2401,10 @@ function da({
2433
2401
  ...r
2434
2402
  }) {
2435
2403
  return /* @__PURE__ */ f(
2436
- ra,
2404
+ oa,
2437
2405
  {
2438
2406
  checked: o,
2439
- className: V(
2407
+ className: z(
2440
2408
  "flex h-9 w-full cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1.5 outline-none transition-colors",
2441
2409
  // Font styles
2442
2410
  "font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium",
@@ -2453,36 +2421,36 @@ function da({
2453
2421
  ...r,
2454
2422
  children: /* @__PURE__ */ Fe("div", { className: "flex flex-1 items-center justify-between gap-2", children: [
2455
2423
  n,
2456
- /* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(ia, { children: /* @__PURE__ */ f(Tt, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 }) }) })
2424
+ /* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(ra, { children: /* @__PURE__ */ f(yo, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 }) }) })
2457
2425
  ] })
2458
2426
  }
2459
2427
  );
2460
2428
  }
2461
- function Ga({ className: e, ...t }) {
2429
+ function Ha({ className: e, ...t }) {
2462
2430
  return /* @__PURE__ */ f(
2463
- na,
2431
+ ta,
2464
2432
  {
2465
- className: V("sr-only", e),
2433
+ className: z("sr-only", e),
2466
2434
  "data-slot": "dropdown-menu-label",
2467
2435
  ...t
2468
2436
  }
2469
2437
  );
2470
2438
  }
2471
- function fa({ className: e, ...t }) {
2439
+ function da({ className: e, ...t }) {
2472
2440
  return /* @__PURE__ */ f(
2473
- ta,
2441
+ ea,
2474
2442
  {
2475
- className: V("flex flex-col gap-0.5", e),
2443
+ className: z("flex flex-col gap-0.5", e),
2476
2444
  "data-slot": "dropdown-menu-group",
2477
2445
  ...t
2478
2446
  }
2479
2447
  );
2480
2448
  }
2481
- function pa({ className: e, ...t }) {
2449
+ function fa({ className: e, ...t }) {
2482
2450
  return /* @__PURE__ */ f(
2483
- aa,
2451
+ ia,
2484
2452
  {
2485
- className: V(
2453
+ className: z(
2486
2454
  "relative my-1.5 after:absolute after:-left-2 after:-right-5 after:h-px after:bg-[var(--dropdown-menu-seperator,hsl(var(--contrast-100)))]",
2487
2455
  e
2488
2456
  ),
@@ -2491,10 +2459,10 @@ function pa({ className: e, ...t }) {
2491
2459
  }
2492
2460
  );
2493
2461
  }
2494
- function ma({ ...e }) {
2495
- return /* @__PURE__ */ f(Qi, { "data-slot": "dropdown-menu-portal", ...e });
2462
+ function pa({ ...e }) {
2463
+ return /* @__PURE__ */ f(Ji, { "data-slot": "dropdown-menu-portal", ...e });
2496
2464
  }
2497
- function ha({
2465
+ function ma({
2498
2466
  className: e,
2499
2467
  children: t,
2500
2468
  orientation: n = "vertical",
@@ -2503,35 +2471,35 @@ function ha({
2503
2471
  ...i
2504
2472
  }) {
2505
2473
  return /* @__PURE__ */ f(
2506
- Jn,
2474
+ Yn,
2507
2475
  {
2508
2476
  orientation: n,
2509
2477
  scrollHideDelay: o,
2510
2478
  type: r,
2511
- children: /* @__PURE__ */ Fe(Qn, { className: e, ...i, children: [
2512
- /* @__PURE__ */ f(eo, { children: t }),
2513
- /* @__PURE__ */ f(to, { children: /* @__PURE__ */ f(no, {}) }),
2514
- /* @__PURE__ */ f(oo, {})
2479
+ children: /* @__PURE__ */ Fe(qn, { className: e, ...i, children: [
2480
+ /* @__PURE__ */ f(Zn, { children: t }),
2481
+ /* @__PURE__ */ f(Jn, { children: /* @__PURE__ */ f(Qn, {}) }),
2482
+ /* @__PURE__ */ f(eo, {})
2515
2483
  ] })
2516
2484
  }
2517
2485
  );
2518
2486
  }
2519
- function ga({
2487
+ function ha({
2520
2488
  className: e,
2521
2489
  children: t,
2522
2490
  ...n
2523
2491
  }) {
2524
- const { showScrollArea: o, maxHeight: r } = Un();
2492
+ const { showScrollArea: o, maxHeight: r } = Vn();
2525
2493
  return /* @__PURE__ */ f(
2526
- ha,
2494
+ ma,
2527
2495
  {
2528
- className: V(o && "flex flex-col"),
2496
+ className: z(o && "flex flex-col"),
2529
2497
  style: { maxHeight: o ? `${r}px` : void 0 },
2530
2498
  ...n,
2531
2499
  children: /* @__PURE__ */ f(
2532
2500
  "div",
2533
2501
  {
2534
- className: V("flex flex-col gap-0.5 rounded-[inherit] p-2", e),
2502
+ className: z("flex flex-col gap-0.5 rounded-[inherit] p-2", e),
2535
2503
  "data-slot": "dropdown-menu-scroll-area",
2536
2504
  children: t
2537
2505
  }
@@ -2539,19 +2507,19 @@ function ga({
2539
2507
  }
2540
2508
  );
2541
2509
  }
2542
- function wa({ ...e }) {
2543
- return /* @__PURE__ */ f(sa, { "data-slot": "dropdown-menu-sub", ...e });
2510
+ function ga({ ...e }) {
2511
+ return /* @__PURE__ */ f(aa, { "data-slot": "dropdown-menu-sub", ...e });
2544
2512
  }
2545
- function va({
2513
+ function wa({
2546
2514
  children: e,
2547
2515
  variant: t = "default",
2548
2516
  className: n,
2549
2517
  ...o
2550
2518
  }) {
2551
2519
  return /* @__PURE__ */ f(
2552
- ca,
2520
+ sa,
2553
2521
  {
2554
- className: V(
2522
+ className: z(
2555
2523
  "flex h-9 cursor-pointer select-none items-center rounded-lg bg-[var(--dropdown-menu-item-background,transparent)] pl-3 pr-1 outline-none transition-colors",
2556
2524
  // Font styles
2557
2525
  "font-[family-name:var(--dropdown-menu-item-font-family,var(--font-family-body))] text-sm font-medium",
@@ -2568,20 +2536,20 @@ function va({
2568
2536
  ...o,
2569
2537
  children: /* @__PURE__ */ Fe("div", { className: "flex flex-1 items-center justify-between gap-2", children: [
2570
2538
  e,
2571
- /* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(kt, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 }) })
2539
+ /* @__PURE__ */ f("span", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ f(Nt, { absoluteStrokeWidth: !0, size: 16, strokeWidth: 1.5 }) })
2572
2540
  ] })
2573
2541
  }
2574
2542
  );
2575
2543
  }
2576
- function xa({
2544
+ function va({
2577
2545
  className: e,
2578
2546
  children: t,
2579
2547
  ...n
2580
2548
  }) {
2581
2549
  return /* @__PURE__ */ f(
2582
- la,
2550
+ ca,
2583
2551
  {
2584
- className: V(
2552
+ className: z(
2585
2553
  "z-50 min-w-32 origin-top-left rounded-2xl border border-[var(--dropdown-menu-border,hsl(var(--contrast-100)))] bg-[var(--dropdown-menu-background,hsl(var(--background)))] shadow-xl",
2586
2554
  // Open styles
2587
2555
  "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
@@ -2603,27 +2571,27 @@ function xa({
2603
2571
  }
2604
2572
  );
2605
2573
  }
2606
- function Ha({ menuNode: e, menuKey: t }) {
2574
+ function Ka({ menuNode: e, menuKey: t }) {
2607
2575
  function n(o, r) {
2608
2576
  switch (o.type) {
2609
2577
  case "item":
2610
- return /* @__PURE__ */ f(ua, { ...o.props }, r);
2578
+ return /* @__PURE__ */ f(la, { ...o.props }, r);
2611
2579
  case "checkbox":
2612
- return /* @__PURE__ */ f(da, { ...o.props }, r);
2580
+ return /* @__PURE__ */ f(ua, { ...o.props }, r);
2613
2581
  case "separator":
2614
- return /* @__PURE__ */ f(pa, { ...o.props }, r);
2582
+ return /* @__PURE__ */ f(fa, { ...o.props }, r);
2615
2583
  case "group":
2616
- return /* @__PURE__ */ f(fa, { ...o.props, children: o.items.map((i, a) => n(i, String(a))) }, r);
2584
+ return /* @__PURE__ */ f(da, { ...o.props, children: o.items.map((i, a) => n(i, String(a))) }, r);
2617
2585
  case "sub":
2618
- return /* @__PURE__ */ Fe(wa, { ...o.props, children: [
2619
- /* @__PURE__ */ f(va, { ...o.trigger.props }),
2620
- o.content && /* @__PURE__ */ f(ma, { children: /* @__PURE__ */ f(
2621
- xa,
2586
+ return /* @__PURE__ */ Fe(ga, { ...o.props, children: [
2587
+ /* @__PURE__ */ f(wa, { ...o.trigger.props }),
2588
+ o.content && /* @__PURE__ */ f(pa, { children: /* @__PURE__ */ f(
2589
+ va,
2622
2590
  {
2623
2591
  alignOffset: -8,
2624
- className: V(o.content.props?.className),
2592
+ className: z(o.content.props?.className),
2625
2593
  ...o.content.props,
2626
- children: /* @__PURE__ */ f(ga, { children: o.content.items.map((i, a) => n(i, String(a))) })
2594
+ children: /* @__PURE__ */ f(ha, { children: o.content.items.map((i, a) => n(i, String(a))) })
2627
2595
  }
2628
2596
  ) })
2629
2597
  ] }, r);
@@ -2633,22 +2601,21 @@ function Ha({ menuNode: e, menuKey: t }) {
2633
2601
  }
2634
2602
  export {
2635
2603
  Ba as D,
2636
- ha as S,
2604
+ ma as S,
2637
2605
  Wa as a,
2638
- za as b,
2639
- ua as c,
2640
- da as d,
2641
- Ga as e,
2642
- fa as f,
2643
- pa as g,
2644
- ma as h,
2645
- ga as i,
2646
- wa as j,
2647
- va as k,
2648
- xa as l,
2649
- Ha as m,
2650
- Fa as n,
2651
- $a as o,
2652
- Un as u
2606
+ Ga as b,
2607
+ la as c,
2608
+ ua as d,
2609
+ Ha as e,
2610
+ da as f,
2611
+ fa as g,
2612
+ pa as h,
2613
+ ha as i,
2614
+ ga as j,
2615
+ wa as k,
2616
+ va as l,
2617
+ Ka as m,
2618
+ $a as n,
2619
+ Vn as u
2653
2620
  };
2654
- //# sourceMappingURL=dropdown-menu-node-uYf2lhFv.js.map
2621
+ //# sourceMappingURL=dropdown-menu-node-C7Z-zRyr.js.map