@inkorange/space-ui 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { forwardRef as ae, createElement as ot, isValidElement as Re, cloneElement as Xe, useId as se, useMemo as pe, Children as _t, useRef as P, useState as Q, useCallback as _e, useLayoutEffect as we, useEffect as te, createContext as Ee, useContext as qe } from "react";
3
- import { jsx as n, jsxs as N, Fragment as he } from "react/jsx-runtime";
4
- const ze = {
2
+ import { forwardRef as ae, createElement as ot, isValidElement as ze, cloneElement as Xe, useId as se, useMemo as _e, Children as pt, useRef as F, useState as Q, useCallback as pe, useLayoutEffect as we, useEffect as te, createContext as Re, useContext as Ee } from "react";
3
+ import { jsx as n, jsxs as L, Fragment as he } from "react/jsx-runtime";
4
+ const Ie = {
5
5
  0: "0",
6
6
  1: "var(--spacing-xs)",
7
7
  2: "var(--spacing-sm)",
@@ -12,46 +12,46 @@ const ze = {
12
12
  };
13
13
  function ve({ m: e, mt: t, mb: o, p: r, pb: a }, l) {
14
14
  const s = {
15
- ...e !== void 0 && { margin: ze[e] },
16
- ...t !== void 0 && { marginTop: ze[t] },
17
- ...o !== void 0 && { marginBottom: ze[o] },
18
- ...r !== void 0 && { padding: ze[r] },
19
- ...a !== void 0 && { paddingBottom: ze[a] },
15
+ ...e !== void 0 && { margin: Ie[e] },
16
+ ...t !== void 0 && { marginTop: Ie[t] },
17
+ ...o !== void 0 && { marginBottom: Ie[o] },
18
+ ...r !== void 0 && { padding: Ie[r] },
19
+ ...a !== void 0 && { paddingBottom: Ie[a] },
20
20
  ...l
21
21
  };
22
22
  return Object.keys(s).length > 0 ? s : void 0;
23
23
  }
24
- function R(...e) {
24
+ function z(...e) {
25
25
  return e.filter(Boolean).join(" ");
26
26
  }
27
- const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt = "_size3_4vcq4_16", At = "_size4_4vcq4_21", jt = "_size5_4vcq4_27", Ot = "_size6_4vcq4_33", Zt = "_medium_4vcq4_39", Bt = "_bold_4vcq4_43", Vt = "_colorMuted_4vcq4_47", Wt = "_colorDanger_4vcq4_51", Pt = "_colorSuccess_4vcq4_55", Ft = "_colorWarning_4vcq4_59", Ve = {
28
- text: It,
29
- size1: Ht,
30
- size2: St,
27
+ const Ht = "_text_rzzow_1", St = "_size1_rzzow_5", qt = "_size2_rzzow_11", Tt = "_size3_rzzow_16", At = "_size4_rzzow_21", Ot = "_size5_rzzow_27", Zt = "_size6_rzzow_33", Bt = "_medium_rzzow_39", Vt = "_bold_rzzow_43", Wt = "_colorMuted_rzzow_47", Pt = "_colorDanger_rzzow_51", Ft = "_colorSuccess_rzzow_55", jt = "_colorWarning_rzzow_59", We = {
28
+ text: Ht,
29
+ size1: St,
30
+ size2: qt,
31
31
  size3: Tt,
32
32
  size4: At,
33
- size5: jt,
34
- size6: Ot,
35
- medium: Zt,
36
- bold: Bt,
37
- colorMuted: Vt,
38
- colorDanger: Wt,
39
- colorSuccess: Pt,
40
- colorWarning: Ft
33
+ size5: Ot,
34
+ size6: Zt,
35
+ medium: Bt,
36
+ bold: Vt,
37
+ colorMuted: Wt,
38
+ colorDanger: Pt,
39
+ colorSuccess: Ft,
40
+ colorWarning: jt
41
41
  }, Gt = ae(function({ as: t = "span", size: o, weight: r, color: a, className: l, style: s, m: c, mt: h, mb: m, p: i, pb: g, ...$ }, w) {
42
42
  return ot(t, {
43
43
  ...$,
44
44
  ref: w,
45
- className: R(
46
- Ve.text,
47
- o && Ve[`size${o}`],
48
- r && Ve[r],
49
- a && Ve[`color${a[0].toUpperCase()}${a.slice(1)}`],
45
+ className: z(
46
+ We.text,
47
+ o && We[`size${o}`],
48
+ r && We[r],
49
+ a && We[`color${a[0].toUpperCase()}${a.slice(1)}`],
50
50
  l
51
51
  ),
52
52
  style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
53
53
  });
54
- }), Ut = "_heading_vs4zk_1", Kt = "_size4_vs4zk_7", Xt = "_size5_vs4zk_13", Yt = "_size6_vs4zk_19", Qt = "_size7_vs4zk_25", Jt = "_size8_vs4zk_31", en = "_size9_vs4zk_37", tn = "_colorMuted_vs4zk_43", nn = "_colorDanger_vs4zk_47", on = "_alignCenter_vs4zk_51", Ie = {
54
+ }), Ut = "_heading_15fm0_1", Kt = "_size4_15fm0_7", Xt = "_size5_15fm0_13", Yt = "_size6_15fm0_19", Qt = "_size7_15fm0_25", Jt = "_size8_15fm0_31", en = "_size9_15fm0_37", tn = "_colorMuted_15fm0_43", nn = "_colorDanger_15fm0_47", on = "_alignCenter_15fm0_51", He = {
55
55
  heading: Ut,
56
56
  size4: Kt,
57
57
  size5: Xt,
@@ -66,38 +66,38 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
66
66
  return ot(t, {
67
67
  ...$,
68
68
  ref: w,
69
- className: R(
70
- Ie.heading,
71
- o && Ie[`size${o}`],
72
- r === "muted" && Ie.colorMuted,
73
- r === "danger" && Ie.colorDanger,
74
- a === "center" && Ie.alignCenter,
69
+ className: z(
70
+ He.heading,
71
+ o && He[`size${o}`],
72
+ r === "muted" && He.colorMuted,
73
+ r === "danger" && He.colorDanger,
74
+ a === "center" && He.alignCenter,
75
75
  l
76
76
  ),
77
77
  style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
78
78
  });
79
- }), sn = "_link_1qa7j_1", an = "_size1_1qa7j_10", ln = "_size2_1qa7j_16", cn = "_size3_1qa7j_21", at = {
79
+ }), sn = "_link_1o4sa_1", an = "_size1_1o4sa_10", ln = "_size2_1o4sa_16", cn = "_size3_1o4sa_21", at = {
80
80
  link: sn,
81
81
  size1: an,
82
82
  size2: ln,
83
83
  size3: cn
84
84
  }, al = ae(function({ asChild: t, size: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, children: i, ...g }, $) {
85
- const w = R(at.link, o && at[`size${o}`], r), p = ve({ m: l, mt: s, mb: c, p: h, pb: m }, a);
86
- if (t && Re(i)) {
85
+ const w = z(at.link, o && at[`size${o}`], r), _ = ve({ m: l, mt: s, mb: c, p: h, pb: m }, a);
86
+ if (t && ze(i)) {
87
87
  const b = i;
88
88
  return Xe(b, {
89
89
  ...g,
90
- className: R(w, b.props.className),
91
- style: { ...p, ...b.props.style }
90
+ className: z(w, b.props.className),
91
+ style: { ..._, ...b.props.style }
92
92
  });
93
93
  }
94
- return /* @__PURE__ */ n("a", { ...g, ref: $, className: w, style: p, children: i });
95
- }), dn = "_flex_v4ziu_1", un = "_gap1_v4ziu_5", fn = "_gap2_v4ziu_9", _n = "_gap3_v4ziu_13", pn = "_gap4_v4ziu_17", hn = "_gap5_v4ziu_21", mn = "_gap6_v4ziu_25", gn = "_directionRow_v4ziu_29", Cn = "_directionColumn_v4ziu_33", vn = "_alignStart_v4ziu_37", bn = "_alignCenter_v4ziu_41", $n = "_alignEnd_v4ziu_45", wn = "_alignBaseline_v4ziu_49", xn = "_alignStretch_v4ziu_53", yn = "_justifyStart_v4ziu_57", kn = "_justifyCenter_v4ziu_61", Nn = "_justifyEnd_v4ziu_65", Ln = "_justifyBetween_v4ziu_69", Mn = "_wrapWrap_v4ziu_73", Rn = "_wrapNowrap_v4ziu_77", xe = {
94
+ return /* @__PURE__ */ n("a", { ...g, ref: $, className: w, style: _, children: i });
95
+ }), dn = "_flex_v4ziu_1", un = "_gap1_v4ziu_5", fn = "_gap2_v4ziu_9", pn = "_gap3_v4ziu_13", _n = "_gap4_v4ziu_17", hn = "_gap5_v4ziu_21", mn = "_gap6_v4ziu_25", gn = "_directionRow_v4ziu_29", Cn = "_directionColumn_v4ziu_33", vn = "_alignStart_v4ziu_37", bn = "_alignCenter_v4ziu_41", $n = "_alignEnd_v4ziu_45", wn = "_alignBaseline_v4ziu_49", yn = "_alignStretch_v4ziu_53", xn = "_justifyStart_v4ziu_57", Nn = "_justifyCenter_v4ziu_61", Ln = "_justifyEnd_v4ziu_65", Mn = "_justifyBetween_v4ziu_69", kn = "_wrapWrap_v4ziu_73", zn = "_wrapNowrap_v4ziu_77", ye = {
96
96
  flex: dn,
97
97
  gap1: un,
98
98
  gap2: fn,
99
- gap3: _n,
100
- gap4: pn,
99
+ gap3: pn,
100
+ gap4: _n,
101
101
  gap5: hn,
102
102
  gap6: mn,
103
103
  directionRow: gn,
@@ -106,68 +106,68 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
106
106
  alignCenter: bn,
107
107
  alignEnd: $n,
108
108
  alignBaseline: wn,
109
- alignStretch: xn,
110
- justifyStart: yn,
111
- justifyCenter: kn,
112
- justifyEnd: Nn,
113
- justifyBetween: Ln,
114
- wrapWrap: Mn,
115
- wrapNowrap: Rn
116
- }, We = (e) => e[0].toUpperCase() + e.slice(1), ll = ae(function({ asChild: t, gap: o, direction: r, align: a, justify: l, wrap: s, className: c, style: h, m, mt: i, mb: g, p: $, pb: w, children: p, ...b }, v) {
117
- const M = R(
118
- xe.flex,
119
- o && xe[`gap${o}`],
120
- r && xe[`direction${We(r)}`],
121
- a && xe[`align${We(a)}`],
122
- l && xe[`justify${We(l)}`],
123
- s && xe[`wrap${We(s)}`],
109
+ alignStretch: yn,
110
+ justifyStart: xn,
111
+ justifyCenter: Nn,
112
+ justifyEnd: Ln,
113
+ justifyBetween: Mn,
114
+ wrapWrap: kn,
115
+ wrapNowrap: zn
116
+ }, Pe = (e) => e[0].toUpperCase() + e.slice(1), ll = ae(function({ asChild: t, gap: o, direction: r, align: a, justify: l, wrap: s, className: c, style: h, m, mt: i, mb: g, p: $, pb: w, children: _, ...b }, v) {
117
+ const k = z(
118
+ ye.flex,
119
+ o && ye[`gap${o}`],
120
+ r && ye[`direction${Pe(r)}`],
121
+ a && ye[`align${Pe(a)}`],
122
+ l && ye[`justify${Pe(l)}`],
123
+ s && ye[`wrap${Pe(s)}`],
124
124
  c
125
- ), z = ve({ m, mt: i, mb: g, p: $, pb: w }, h);
126
- if (t && Re(p)) {
127
- const I = p;
128
- return Xe(I, {
125
+ ), I = ve({ m, mt: i, mb: g, p: $, pb: w }, h);
126
+ if (t && ze(_)) {
127
+ const H = _;
128
+ return Xe(H, {
129
129
  ...b,
130
- className: R(M, I.props.className),
131
- style: { ...z, ...I.props.style }
130
+ className: z(k, H.props.className),
131
+ style: { ...I, ...H.props.style }
132
132
  });
133
133
  }
134
- return /* @__PURE__ */ n("div", { ...b, ref: v, className: M, style: z, children: p });
134
+ return /* @__PURE__ */ n("div", { ...b, ref: v, className: k, style: I, children: _ });
135
135
  }), cl = ae(function({ style: t, m: o, mt: r, mb: a, p: l, pb: s, ...c }, h) {
136
136
  return /* @__PURE__ */ n("div", { ...c, ref: h, style: ve({ m: o, mt: r, mb: a, p: l, pb: s }, t) });
137
- }), En = "_grid_erpqq_1", qn = "_cols1_erpqq_5", Dn = "_cols2_erpqq_9", zn = "_cols3_erpqq_13", In = "_smCols2_erpqq_18", Hn = "_smCols3_erpqq_21", Sn = "_mdCols2_erpqq_26", Tn = "_mdCols3_erpqq_29", An = "_gap1_erpqq_33", jn = "_gap2_erpqq_37", On = "_gap3_erpqq_41", Zn = "_gap4_erpqq_45", Bn = "_gap5_erpqq_49", Vn = "_gap6_erpqq_53", ye = {
138
- grid: En,
139
- cols1: qn,
137
+ }), Rn = "_grid_erpqq_1", En = "_cols1_erpqq_5", Dn = "_cols2_erpqq_9", In = "_cols3_erpqq_13", Hn = "_smCols2_erpqq_18", Sn = "_smCols3_erpqq_21", qn = "_mdCols2_erpqq_26", Tn = "_mdCols3_erpqq_29", An = "_gap1_erpqq_33", On = "_gap2_erpqq_37", Zn = "_gap3_erpqq_41", Bn = "_gap4_erpqq_45", Vn = "_gap5_erpqq_49", Wn = "_gap6_erpqq_53", xe = {
138
+ grid: Rn,
139
+ cols1: En,
140
140
  cols2: Dn,
141
- cols3: zn,
142
- smCols2: In,
143
- smCols3: Hn,
144
- mdCols2: Sn,
141
+ cols3: In,
142
+ smCols2: Hn,
143
+ smCols3: Sn,
144
+ mdCols2: qn,
145
145
  mdCols3: Tn,
146
146
  gap1: An,
147
- gap2: jn,
148
- gap3: On,
149
- gap4: Zn,
150
- gap5: Bn,
151
- gap6: Vn
147
+ gap2: On,
148
+ gap3: Zn,
149
+ gap4: Bn,
150
+ gap5: Vn,
151
+ gap6: Wn
152
152
  }, il = ae(function({ columns: t, gap: o, className: r, style: a, m: l, mt: s, mb: c, p: h, pb: m, ...i }, g) {
153
- const $ = typeof t == "string" ? [ye[`cols${t}`]] : t ? [
154
- t.initial && ye[`cols${t.initial}`],
155
- t.sm && ye[`smCols${t.sm}`],
156
- t.md && ye[`mdCols${t.md}`]
153
+ const $ = typeof t == "string" ? [xe[`cols${t}`]] : t ? [
154
+ t.initial && xe[`cols${t.initial}`],
155
+ t.sm && xe[`smCols${t.sm}`],
156
+ t.md && xe[`mdCols${t.md}`]
157
157
  ] : [];
158
158
  return /* @__PURE__ */ n(
159
159
  "div",
160
160
  {
161
161
  ...i,
162
162
  ref: g,
163
- className: R(ye.grid, ...$, o && ye[`gap${o}`], r),
163
+ className: z(xe.grid, ...$, o && xe[`gap${o}`], r),
164
164
  style: ve({ m: l, mt: s, mb: c, p: h, pb: m }, a)
165
165
  }
166
166
  );
167
- }), Wn = "_badge_1twqf_2", Pn = "_size1_1twqf_10", Fn = "_size2_1twqf_19", Gn = "_colorMuted_1twqf_28", Un = "_colorPrimary_1twqf_33", Kn = "_colorSuccess_1twqf_38", Xn = "_colorDanger_1twqf_43", Yn = "_colorWarning_1twqf_48", Qn = "_colorCyan_1twqf_53", Jn = "_colorPurple_1twqf_58", eo = "_colorOrange_1twqf_63", to = "_colorAccent_1twqf_68", no = "_colorYellow_1twqf_73", oo = "_solid_1twqf_81", ro = "_wrap_1twqf_89", He = {
168
- badge: Wn,
169
- size1: Pn,
170
- size2: Fn,
167
+ }), Pn = "_badge_3q9da_2", Fn = "_size1_3q9da_10", jn = "_size2_3q9da_17", Gn = "_colorMuted_3q9da_24", Un = "_colorPrimary_3q9da_29", Kn = "_colorSuccess_3q9da_34", Xn = "_colorDanger_3q9da_39", Yn = "_colorWarning_3q9da_44", Qn = "_colorCyan_3q9da_49", Jn = "_colorPurple_3q9da_54", eo = "_colorOrange_3q9da_59", to = "_colorAccent_3q9da_64", no = "_colorYellow_3q9da_69", oo = "_solid_3q9da_77", ro = "_wrap_3q9da_85", Se = {
168
+ badge: Pn,
169
+ size1: Fn,
170
+ size2: jn,
171
171
  colorMuted: Gn,
172
172
  colorPrimary: Un,
173
173
  colorSuccess: Kn,
@@ -186,12 +186,12 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
186
186
  {
187
187
  ...$,
188
188
  ref: w,
189
- className: R(
190
- He.badge,
191
- He[`color${so(t)}`],
192
- o === "solid" && He.solid,
193
- He[`size${r}`],
194
- a && He.wrap,
189
+ className: z(
190
+ Se.badge,
191
+ Se[`color${so(t)}`],
192
+ o === "solid" && Se.solid,
193
+ Se[`size${r}`],
194
+ a && Se.wrap,
195
195
  l
196
196
  ),
197
197
  style: ve({ m: c, mt: h, mb: m, p: i, pb: g }, s)
@@ -207,20 +207,20 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
207
207
  ...r,
208
208
  ref: a,
209
209
  role: "separator",
210
- className: R(lt.separator, t === "4" && lt.full, o)
210
+ className: z(lt.separator, t === "4" && lt.full, o)
211
211
  }
212
212
  );
213
- }), co = "_card_1ooot_2", io = "_image_1ooot_14", uo = "_hasImage_1ooot_41", Je = {
213
+ }), co = "_card_4k34c_2", io = "_image_4k34c_14", uo = "_hasImage_4k34c_41", Je = {
214
214
  card: co,
215
215
  image: io,
216
216
  hasImage: uo
217
217
  }, fl = ae(function({ className: t, style: o, image: r, children: a, m: l, mt: s, mb: c, p: h, pb: m, ...i }, g) {
218
- return /* @__PURE__ */ N(
218
+ return /* @__PURE__ */ L(
219
219
  "div",
220
220
  {
221
221
  ...i,
222
222
  ref: g,
223
- className: R(Je.card, r != null && Je.hasImage, t),
223
+ className: z(Je.card, r != null && Je.hasImage, t),
224
224
  style: ve({ m: l, mt: s, mb: c, p: h, pb: m }, o),
225
225
  children: [
226
226
  r != null && /* @__PURE__ */ n("div", { className: Je.image, children: r }),
@@ -228,10 +228,10 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
228
228
  ]
229
229
  }
230
230
  );
231
- }), fo = "_spaceButton_kjhqx_14", _o = "_rimRotate_kjhqx_1", po = "_glintSweep_kjhqx_1", ho = "_iconOnly_kjhqx_97", mo = "_lg_kjhqx_104", go = "_sm_kjhqx_110", Co = "_micro_kjhqx_122", vo = "_stars_kjhqx_136", bo = "_fullWidth_kjhqx_141", $o = "_ember_kjhqx_147", wo = "_label_kjhqx_157", xo = "_star_kjhqx_136", yo = "_twinkle_kjhqx_1", ge = {
231
+ }), fo = "_spaceButton_1ewbr_14", po = "_rimRotate_1ewbr_1", _o = "_glintSweep_1ewbr_1", ho = "_iconOnly_1ewbr_105", mo = "_lg_1ewbr_113", go = "_sm_1ewbr_120", Co = "_micro_1ewbr_133", vo = "_stars_1ewbr_150", bo = "_fullWidth_1ewbr_155", $o = "_ember_1ewbr_161", wo = "_label_1ewbr_171", yo = "_star_1ewbr_150", xo = "_twinkle_1ewbr_1", ge = {
232
232
  spaceButton: fo,
233
- rimRotate: _o,
234
- glintSweep: po,
233
+ rimRotate: po,
234
+ glintSweep: _o,
235
235
  iconOnly: ho,
236
236
  lg: mo,
237
237
  sm: go,
@@ -240,17 +240,17 @@ const It = "_text_4vcq4_1", Ht = "_size1_4vcq4_5", St = "_size2_4vcq4_11", Tt =
240
240
  fullWidth: bo,
241
241
  ember: $o,
242
242
  label: wo,
243
- star: xo,
244
- twinkle: yo
243
+ star: yo,
244
+ twinkle: xo
245
245
  };
246
- function ko(e) {
246
+ function No(e) {
247
247
  return function() {
248
248
  e |= 0, e = e + 1831565813 | 0;
249
249
  let t = Math.imul(e ^ e >>> 15, 1 | e);
250
250
  return t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t, ((t ^ t >>> 14) >>> 0) / 4294967296;
251
251
  };
252
252
  }
253
- function No(e) {
253
+ function Lo(e) {
254
254
  let t = 2166136261;
255
255
  for (let o = 0; o < e.length; o++)
256
256
  t ^= e.charCodeAt(o), t = Math.imul(t, 16777619);
@@ -258,8 +258,8 @@ function No(e) {
258
258
  }
259
259
  const Ue = ae(
260
260
  function({ iconOnly: t, ember: o, size: r = "md", fullWidth: a, animated: l = !0, className: s, children: c, ...h }, m) {
261
- const i = se(), g = pe(() => {
262
- const w = ko(No(i));
261
+ const i = se(), g = _e(() => {
262
+ const w = No(Lo(i));
263
263
  return Array.from({ length: 3 }, () => ({
264
264
  top: `${12 + w() * 58}%`,
265
265
  left: `${8 + w() * 80}%`,
@@ -274,7 +274,7 @@ const Ue = ae(
274
274
  a ? ge.fullWidth : "",
275
275
  s ?? ""
276
276
  ].filter(Boolean).join(" ");
277
- return /* @__PURE__ */ N(
277
+ return /* @__PURE__ */ L(
278
278
  "button",
279
279
  {
280
280
  ref: m,
@@ -282,7 +282,7 @@ const Ue = ae(
282
282
  "data-animated": l ? void 0 : "false",
283
283
  ...h,
284
284
  children: [
285
- r !== "micro" && /* @__PURE__ */ n("span", { className: ge.stars, "aria-hidden": !0, children: g.map((w, p) => /* @__PURE__ */ n("i", { className: ge.star, style: w }, p)) }),
285
+ r !== "micro" && /* @__PURE__ */ n("span", { className: ge.stars, "aria-hidden": !0, children: g.map((w, _) => /* @__PURE__ */ n("i", { className: ge.star, style: w }, _)) }),
286
286
  /* @__PURE__ */ n("span", { className: ge.label, children: c })
287
287
  ]
288
288
  }
@@ -296,7 +296,7 @@ const Ue = ae(
296
296
  xmlns: "http://www.w3.org/2000/svg",
297
297
  "aria-hidden": !0
298
298
  };
299
- function _l(e) {
299
+ function pl(e) {
300
300
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
301
301
  "path",
302
302
  {
@@ -307,7 +307,7 @@ function _l(e) {
307
307
  }
308
308
  ) });
309
309
  }
310
- function pl(e) {
310
+ function _l(e) {
311
311
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
312
312
  "path",
313
313
  {
@@ -406,7 +406,7 @@ function wl(e) {
406
406
  }
407
407
  ) });
408
408
  }
409
- function xl(e) {
409
+ function yl(e) {
410
410
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
411
411
  "path",
412
412
  {
@@ -417,7 +417,7 @@ function xl(e) {
417
417
  }
418
418
  ) });
419
419
  }
420
- function yl(e) {
420
+ function xl(e) {
421
421
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
422
422
  "path",
423
423
  {
@@ -428,7 +428,7 @@ function yl(e) {
428
428
  }
429
429
  ) });
430
430
  }
431
- function kl(e) {
431
+ function Nl(e) {
432
432
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
433
433
  "path",
434
434
  {
@@ -439,7 +439,7 @@ function kl(e) {
439
439
  }
440
440
  ) });
441
441
  }
442
- function Nl(e) {
442
+ function Ll(e) {
443
443
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
444
444
  "path",
445
445
  {
@@ -450,7 +450,7 @@ function Nl(e) {
450
450
  }
451
451
  ) });
452
452
  }
453
- function Ll(e) {
453
+ function Ml(e) {
454
454
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
455
455
  "path",
456
456
  {
@@ -461,7 +461,7 @@ function Ll(e) {
461
461
  }
462
462
  ) });
463
463
  }
464
- function Ml(e) {
464
+ function kl(e) {
465
465
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
466
466
  "path",
467
467
  {
@@ -472,7 +472,7 @@ function Ml(e) {
472
472
  }
473
473
  ) });
474
474
  }
475
- function pt(e) {
475
+ function _t(e) {
476
476
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
477
477
  "path",
478
478
  {
@@ -494,7 +494,7 @@ function ht(e) {
494
494
  }
495
495
  ) });
496
496
  }
497
- function Rl(e) {
497
+ function zl(e) {
498
498
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
499
499
  "path",
500
500
  {
@@ -505,7 +505,7 @@ function Rl(e) {
505
505
  }
506
506
  ) });
507
507
  }
508
- function Lo(e) {
508
+ function Mo(e) {
509
509
  return /* @__PURE__ */ n("svg", { viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", ...e, children: /* @__PURE__ */ n(
510
510
  "path",
511
511
  {
@@ -514,7 +514,7 @@ function Lo(e) {
514
514
  }
515
515
  ) });
516
516
  }
517
- function Mo(e) {
517
+ function ko(e) {
518
518
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
519
519
  "path",
520
520
  {
@@ -525,7 +525,7 @@ function Mo(e) {
525
525
  }
526
526
  ) });
527
527
  }
528
- function Ro(e) {
528
+ function zo(e) {
529
529
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
530
530
  "path",
531
531
  {
@@ -536,7 +536,7 @@ function Ro(e) {
536
536
  }
537
537
  ) });
538
538
  }
539
- function Eo(e) {
539
+ function Ro(e) {
540
540
  return /* @__PURE__ */ n("svg", { ...J, ...e, children: /* @__PURE__ */ n(
541
541
  "path",
542
542
  {
@@ -547,19 +547,19 @@ function Eo(e) {
547
547
  }
548
548
  ) });
549
549
  }
550
- const qo = "_root_p5j1t_12", Do = "_viewport_p5j1t_17", zo = "_track_p5j1t_21", Io = "_slide_p5j1t_66", Ho = "_arrow_p5j1t_78", So = "_prev_p5j1t_99", To = "_next_p5j1t_104", Ao = "_arrowButton_p5j1t_109", jo = "_dots_p5j1t_115", Oo = "_dot_p5j1t_115", le = {
551
- root: qo,
550
+ const Eo = "_root_tv9ho_12", Do = "_viewport_tv9ho_17", Io = "_track_tv9ho_21", Ho = "_slide_tv9ho_66", So = "_arrow_tv9ho_78", qo = "_prev_tv9ho_99", To = "_next_tv9ho_104", Ao = "_arrowButton_tv9ho_109", Oo = "_dots_tv9ho_115", Zo = "_dot_tv9ho_115", le = {
551
+ root: Eo,
552
552
  viewport: Do,
553
- track: zo,
554
- slide: Io,
555
- arrow: Ho,
556
- prev: So,
553
+ track: Io,
554
+ slide: Ho,
555
+ arrow: So,
556
+ prev: qo,
557
557
  next: To,
558
558
  arrowButton: Ao,
559
- dots: jo,
560
- dot: Oo
559
+ dots: Oo,
560
+ dot: Zo
561
561
  };
562
- function El({
562
+ function Rl({
563
563
  children: e,
564
564
  perView: t = 1,
565
565
  step: o = "item",
@@ -569,101 +569,101 @@ function El({
569
569
  "aria-label": s = "Carousel",
570
570
  ...c
571
571
  }) {
572
- const h = _t.toArray(e), m = h.length, i = se(), g = P(null), $ = o === "page" ? Math.max(1, Math.floor(t)) : 1, w = m <= t ? 1 : o === "page" ? Math.ceil((m - t) / $) + 1 : Math.ceil(m - t) + 1, [p, b] = Q($), [v, M] = Q(Math.max(1, w)), [z, I] = Q(0), [Y, U] = Q(!0), [D, T] = Q(m <= t), Z = P([0]), X = P(0), y = P(0), L = P(() => {
573
- }), H = _e(() => {
572
+ const h = pt.toArray(e), m = h.length, i = se(), g = F(null), $ = o === "page" ? Math.max(1, Math.floor(t)) : 1, w = m <= t ? 1 : o === "page" ? Math.ceil((m - t) / $) + 1 : Math.ceil(m - t) + 1, [_, b] = Q($), [v, k] = Q(Math.max(1, w)), [I, H] = Q(0), [Y, U] = Q(!0), [D, T] = Q(m <= t), B = F([0]), X = F(0), x = F(0), M = F(() => {
573
+ }), S = pe(() => {
574
574
  const C = g.current;
575
575
  if (!C) return;
576
- const k = C.scrollLeft, B = Math.max(0, C.scrollWidth - C.clientWidth);
577
- if (Math.abs(B - X.current) > 1) {
578
- L.current();
576
+ const N = C.scrollLeft, V = Math.max(0, C.scrollWidth - C.clientWidth);
577
+ if (Math.abs(V - X.current) > 1) {
578
+ M.current();
579
579
  return;
580
580
  }
581
- const V = k <= 1, G = k >= y.current - 1;
582
- let _ = 0;
583
- G ? _ = Z.current.length - 1 : V || Z.current.forEach((x, d) => {
584
- Math.abs(x - k) <= Math.abs(Z.current[_] - k) && (_ = d);
585
- }), I(_), U(V), T(G);
586
- }, []), F = _e(() => {
581
+ const W = N <= 1, G = N >= x.current - 1;
582
+ let p = 0;
583
+ G ? p = B.current.length - 1 : W || B.current.forEach((y, d) => {
584
+ Math.abs(y - N) <= Math.abs(B.current[p] - N) && (p = d);
585
+ }), H(p), U(W), T(G);
586
+ }, []), j = pe(() => {
587
587
  const C = g.current;
588
588
  if (!C) return;
589
- const k = Array.from(C.children);
590
- if (!k.length) return;
591
- const B = Math.max(0, C.scrollWidth - C.clientWidth), V = k[0], G = k.length > 1 ? k[1].offsetLeft - V.offsetLeft - V.offsetWidth : 0, _ = (C.clientWidth + G) / (V.offsetWidth + G), x = o === "page" ? Math.max(1, Math.floor(_ + 0.01)) : 1, d = k[k.length - 1], u = Math.round(
592
- Math.max(0, Math.min(B, d.offsetLeft - V.offsetLeft + d.offsetWidth - C.clientWidth))
593
- ), q = [];
594
- k.forEach((j, O) => {
595
- if (O % x !== 0) return;
596
- const W = Math.round(Math.min(j.offsetLeft - V.offsetLeft, u));
597
- q[q.length - 1] !== W && q.push(W);
598
- }), u > 0 && q[q.length - 1] < u - 1 && q.push(u), Z.current = q, X.current = Math.round(B), y.current = u, b(x), M(q.length), H();
599
- }, [o, H]);
589
+ const N = Array.from(C.children);
590
+ if (!N.length) return;
591
+ const V = Math.max(0, C.scrollWidth - C.clientWidth), W = N[0], G = N.length > 1 ? N[1].offsetLeft - W.offsetLeft - W.offsetWidth : 0, p = (C.clientWidth + G) / (W.offsetWidth + G), y = o === "page" ? Math.max(1, Math.floor(p + 0.01)) : 1, d = N[N.length - 1], u = Math.round(
592
+ Math.max(0, Math.min(V, d.offsetLeft - W.offsetLeft + d.offsetWidth - C.clientWidth))
593
+ ), E = [];
594
+ N.forEach((O, Z) => {
595
+ if (Z % y !== 0) return;
596
+ const P = Math.round(Math.min(O.offsetLeft - W.offsetLeft, u));
597
+ E[E.length - 1] !== P && E.push(P);
598
+ }), u > 0 && E[E.length - 1] < u - 1 && E.push(u), B.current = E, X.current = Math.round(V), x.current = u, b(y), k(E.length), S();
599
+ }, [o, S]);
600
600
  we(() => {
601
- L.current = F, F();
602
- }, [F, m]), te(() => {
601
+ M.current = j, j();
602
+ }, [j, m]), te(() => {
603
603
  const C = g.current;
604
604
  if (!C) return;
605
- const k = new ResizeObserver(() => F());
606
- k.observe(C);
607
- const B = C.firstElementChild;
608
- B && k.observe(B);
609
- let V = 0;
605
+ const N = new ResizeObserver(() => j());
606
+ N.observe(C);
607
+ const V = C.firstElementChild;
608
+ V && N.observe(V);
609
+ let W = 0;
610
610
  const G = () => {
611
- cancelAnimationFrame(V), V = requestAnimationFrame(H);
611
+ cancelAnimationFrame(W), W = requestAnimationFrame(S);
612
612
  };
613
613
  return C.addEventListener("scroll", G, { passive: !0 }), () => {
614
- k.disconnect(), cancelAnimationFrame(V), C.removeEventListener("scroll", G);
614
+ N.disconnect(), cancelAnimationFrame(W), C.removeEventListener("scroll", G);
615
615
  };
616
- }, [F, H, m]), te(() => {
616
+ }, [j, S, m]), te(() => {
617
617
  const C = g.current;
618
618
  if (!C) return;
619
- const k = 4;
620
- let B = null, V = 0, G = 0, _ = !1, x = 0;
619
+ const N = 4;
620
+ let V = null, W = 0, G = 0, p = !1, y = 0;
621
621
  const d = () => {
622
- clearTimeout(x), delete C.dataset.settling;
623
- }, u = (S) => {
624
- S.pointerType !== "mouse" || S.button !== 0 || C.scrollWidth <= C.clientWidth || (d(), B = S.pointerId, V = S.clientX, G = C.scrollLeft, _ = !1);
625
- }, q = (S) => {
626
- if (S.pointerId !== B) return;
627
- const ee = S.clientX - V;
628
- if (!_) {
629
- if (Math.abs(ee) < k) return;
630
- _ = !0, C.setPointerCapture(S.pointerId), C.dataset.dragging = "";
622
+ clearTimeout(y), delete C.dataset.settling;
623
+ }, u = (q) => {
624
+ q.pointerType !== "mouse" || q.button !== 0 || C.scrollWidth <= C.clientWidth || (d(), V = q.pointerId, W = q.clientX, G = C.scrollLeft, p = !1);
625
+ }, E = (q) => {
626
+ if (q.pointerId !== V) return;
627
+ const ee = q.clientX - W;
628
+ if (!p) {
629
+ if (Math.abs(ee) < N) return;
630
+ p = !0, C.setPointerCapture(q.pointerId), C.dataset.dragging = "";
631
631
  }
632
632
  C.scrollLeft = G - ee;
633
- }, j = (S) => {
634
- if (S.pointerId !== B || (B = null, !_)) return;
633
+ }, O = (q) => {
634
+ if (q.pointerId !== V || (V = null, !p)) return;
635
635
  delete C.dataset.dragging;
636
- const ee = C.scrollLeft, ne = Z.current;
636
+ const ee = C.scrollLeft, ne = B.current;
637
637
  let ie = ne.reduce((me, De) => Math.abs(De - ee) < Math.abs(me - ee) ? De : me, ne[0]);
638
638
  ee > G + 1 && ie <= G + 1 ? ie = ne.find((me) => me > G + 1) ?? ie : ee < G - 1 && ie >= G - 1 && (ie = [...ne].reverse().find((me) => me < G - 1) ?? ie), C.dataset.settling = "";
639
639
  const Qe = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
640
- C.scrollTo({ left: ie, behavior: Qe ? "auto" : "smooth" }), C.addEventListener("scrollend", d, { once: !0 }), x = window.setTimeout(d, 700);
641
- }, O = (S) => {
642
- _ && (_ = !1, S.preventDefault(), S.stopPropagation());
643
- }, W = (S) => S.preventDefault();
644
- return C.addEventListener("pointerdown", u), C.addEventListener("pointermove", q), C.addEventListener("pointerup", j), C.addEventListener("pointercancel", j), C.addEventListener("click", O, !0), C.addEventListener("dragstart", W), () => {
645
- d(), C.removeEventListener("pointerdown", u), C.removeEventListener("pointermove", q), C.removeEventListener("pointerup", j), C.removeEventListener("pointercancel", j), C.removeEventListener("click", O, !0), C.removeEventListener("dragstart", W);
640
+ C.scrollTo({ left: ie, behavior: Qe ? "auto" : "smooth" }), C.addEventListener("scrollend", d, { once: !0 }), y = window.setTimeout(d, 700);
641
+ }, Z = (q) => {
642
+ p && (p = !1, q.preventDefault(), q.stopPropagation());
643
+ }, P = (q) => q.preventDefault();
644
+ return C.addEventListener("pointerdown", u), C.addEventListener("pointermove", E), C.addEventListener("pointerup", O), C.addEventListener("pointercancel", O), C.addEventListener("click", Z, !0), C.addEventListener("dragstart", P), () => {
645
+ d(), C.removeEventListener("pointerdown", u), C.removeEventListener("pointermove", E), C.removeEventListener("pointerup", O), C.removeEventListener("pointercancel", O), C.removeEventListener("click", Z, !0), C.removeEventListener("dragstart", P);
646
646
  };
647
647
  }, []);
648
648
  const f = (C) => {
649
- var k;
650
- return (k = g.current) == null ? void 0 : k.scrollTo({ left: C });
651
- }, E = (C) => {
652
- const k = g.current;
653
- if (!k) return;
654
- const B = k.scrollLeft, V = C > 0 ? Z.current.find((G) => G > B + 1) : [...Z.current].reverse().find((G) => G < B - 1);
655
- V !== void 0 && f(V);
649
+ var N;
650
+ return (N = g.current) == null ? void 0 : N.scrollTo({ left: C });
651
+ }, R = (C) => {
652
+ const N = g.current;
653
+ if (!N) return;
654
+ const V = N.scrollLeft, W = C > 0 ? B.current.find((G) => G > V + 1) : [...B.current].reverse().find((G) => G < V - 1);
655
+ W !== void 0 && f(W);
656
656
  }, A = v > 1;
657
- return /* @__PURE__ */ N(
657
+ return /* @__PURE__ */ L(
658
658
  "section",
659
659
  {
660
660
  ...c,
661
661
  "aria-roledescription": "carousel",
662
662
  "aria-label": s,
663
- className: R(le.root, l),
663
+ className: z(le.root, l),
664
664
  "data-scrollable": A ? "" : void 0,
665
665
  children: [
666
- /* @__PURE__ */ N("div", { className: le.viewport, children: [
666
+ /* @__PURE__ */ L("div", { className: le.viewport, children: [
667
667
  /* @__PURE__ */ n(
668
668
  "div",
669
669
  {
@@ -672,21 +672,21 @@ function El({
672
672
  className: le.track,
673
673
  tabIndex: 0,
674
674
  style: { "--_view-count-default": t },
675
- children: h.map((C, k) => /* @__PURE__ */ n(
675
+ children: h.map((C, N) => /* @__PURE__ */ n(
676
676
  "div",
677
677
  {
678
678
  className: le.slide,
679
679
  role: "group",
680
680
  "aria-roledescription": "slide",
681
- "aria-label": `${k + 1} of ${m}`,
682
- "data-snap": k % p === 0 ? "" : void 0,
681
+ "aria-label": `${N + 1} of ${m}`,
682
+ "data-snap": N % _ === 0 ? "" : void 0,
683
683
  children: C
684
684
  },
685
- C.key ?? k
685
+ C.key ?? N
686
686
  ))
687
687
  }
688
688
  ),
689
- /* @__PURE__ */ n("span", { className: R(le.arrow, le.prev), children: /* @__PURE__ */ n(
689
+ /* @__PURE__ */ n("span", { className: z(le.arrow, le.prev), children: /* @__PURE__ */ n(
690
690
  Ue,
691
691
  {
692
692
  iconOnly: !0,
@@ -695,11 +695,11 @@ function El({
695
695
  "aria-label": "Previous",
696
696
  "aria-controls": i,
697
697
  disabled: Y,
698
- onClick: () => E(-1),
698
+ onClick: () => R(-1),
699
699
  children: /* @__PURE__ */ n(ht, { "aria-hidden": "true" })
700
700
  }
701
701
  ) }),
702
- /* @__PURE__ */ n("span", { className: R(le.arrow, le.next), children: /* @__PURE__ */ n(
702
+ /* @__PURE__ */ n("span", { className: z(le.arrow, le.next), children: /* @__PURE__ */ n(
703
703
  Ue,
704
704
  {
705
705
  iconOnly: !0,
@@ -708,37 +708,37 @@ function El({
708
708
  "aria-label": "Next",
709
709
  "aria-controls": i,
710
710
  disabled: D,
711
- onClick: () => E(1),
712
- children: /* @__PURE__ */ n(pt, { "aria-hidden": "true" })
711
+ onClick: () => R(1),
712
+ children: /* @__PURE__ */ n(_t, { "aria-hidden": "true" })
713
713
  }
714
714
  ) })
715
715
  ] }),
716
- r && A && /* @__PURE__ */ n("div", { className: le.dots, children: Array.from({ length: v }, (C, k) => /* @__PURE__ */ n(
716
+ r && A && /* @__PURE__ */ n("div", { className: le.dots, children: Array.from({ length: v }, (C, N) => /* @__PURE__ */ n(
717
717
  "button",
718
718
  {
719
719
  type: "button",
720
720
  className: le.dot,
721
- "aria-label": o === "page" ? `Page ${k + 1} of ${v}` : `Position ${k + 1} of ${v}`,
721
+ "aria-label": o === "page" ? `Page ${N + 1} of ${v}` : `Position ${N + 1} of ${v}`,
722
722
  "aria-controls": i,
723
- "aria-current": k === z ? "true" : void 0,
724
- onClick: () => f(Z.current[k] ?? 0)
723
+ "aria-current": N === I ? "true" : void 0,
724
+ onClick: () => f(B.current[N] ?? 0)
725
725
  },
726
- k
726
+ N
727
727
  )) })
728
728
  ]
729
729
  }
730
730
  );
731
731
  }
732
- const Zo = "_nav_f248a_6", Bo = "_pages_f248a_21", Vo = "_item_f248a_30", Wo = "_current_f248a_48", Po = "_page_f248a_21", Fo = "_gap_f248a_82", Go = "_stepText_f248a_92", Uo = "_step_f248a_92", ce = {
733
- nav: Zo,
734
- pages: Bo,
735
- item: Vo,
736
- current: Wo,
737
- page: Po,
738
- gap: Fo,
732
+ const Bo = "_nav_mwel8_6", Vo = "_pages_mwel8_21", Wo = "_item_mwel8_30", Po = "_current_mwel8_48", Fo = "_page_mwel8_21", jo = "_gap_mwel8_82", Go = "_stepText_mwel8_92", Uo = "_step_mwel8_92", ce = {
733
+ nav: Bo,
734
+ pages: Vo,
735
+ item: Wo,
736
+ current: Po,
737
+ page: Fo,
738
+ gap: jo,
739
739
  stepText: Go,
740
740
  step: Uo
741
- }, Ko = "_spaceControl_4ou97_17", Xo = "_spaceSlider_4ou97_74", Yo = "_spacePanel_4ou97_111", Qo = "_spaceInput_4ou97_34", Jo = "_spaceTextArea_4ou97_226", er = {
741
+ }, Ko = "_spaceControl_1e9gg_17", Xo = "_spaceSlider_1e9gg_74", Yo = "_spacePanel_1e9gg_111", Qo = "_spaceInput_1e9gg_34", Jo = "_spaceTextArea_1e9gg_226", er = {
742
742
  spaceControl: Ko,
743
743
  spaceSlider: Xo,
744
744
  spacePanel: Yo,
@@ -749,12 +749,12 @@ function tr({ pageSize: e, totalItems: t }) {
749
749
  return e <= 0 ? 1 : Math.max(1, Math.ceil(t / e));
750
750
  }
751
751
  function nr(e, t, o = 1) {
752
- const r = (g, $) => Array.from({ length: Math.max(0, $ - g + 1) }, (w, p) => g + p), a = o * 2 + 5;
752
+ const r = (g, $) => Array.from({ length: Math.max(0, $ - g + 1) }, (w, _) => g + _), a = o * 2 + 5;
753
753
  if (t <= a) return r(1, t);
754
754
  const l = Math.min(Math.max(e, 1), t), s = Math.max(l - o, 1), c = Math.min(l + o, t), h = s > 3, m = c < t - 2, i = o * 2 + 3;
755
755
  return h ? m ? [1, null, ...r(s, c), null, t] : [1, null, ...r(t - i + 1, t)] : [...r(1, i), null, t];
756
756
  }
757
- function ql({
757
+ function El({
758
758
  pagination: e,
759
759
  onPageClick: t,
760
760
  siblings: o = 1,
@@ -768,12 +768,12 @@ function ql({
768
768
  const h = Math.min(Math.max(e.page, 1), c), m = (i) => {
769
769
  i !== h && i >= 1 && i <= c && t(i);
770
770
  };
771
- return /* @__PURE__ */ N("nav", { ...s, "aria-label": l, className: R(ce.nav, a), children: [
772
- /* @__PURE__ */ N(
771
+ return /* @__PURE__ */ L("nav", { ...s, "aria-label": l, className: z(ce.nav, a), children: [
772
+ /* @__PURE__ */ L(
773
773
  "button",
774
774
  {
775
775
  type: "button",
776
- className: R(ue.spaceControl, ce.item, ce.step),
776
+ className: z(ue.spaceControl, ce.item, ce.step),
777
777
  disabled: h <= 1,
778
778
  "aria-label": "Previous page",
779
779
  onClick: () => m(h - 1),
@@ -793,7 +793,7 @@ function ql({
793
793
  "button",
794
794
  {
795
795
  type: "button",
796
- className: R(
796
+ className: z(
797
797
  ue.spaceControl,
798
798
  ce.item,
799
799
  ce.page,
@@ -807,23 +807,23 @@ function ql({
807
807
  }
808
808
  ) }, i)
809
809
  ) }),
810
- /* @__PURE__ */ N(
810
+ /* @__PURE__ */ L(
811
811
  "button",
812
812
  {
813
813
  type: "button",
814
- className: R(ue.spaceControl, ce.item, ce.step),
814
+ className: z(ue.spaceControl, ce.item, ce.step),
815
815
  disabled: h >= c,
816
816
  "aria-label": "Next page",
817
817
  onClick: () => m(h + 1),
818
818
  children: [
819
819
  /* @__PURE__ */ n("span", { className: ce.stepText, children: "Next" }),
820
- /* @__PURE__ */ n(pt, { "aria-hidden": "true" })
820
+ /* @__PURE__ */ n(_t, { "aria-hidden": "true" })
821
821
  ]
822
822
  }
823
823
  )
824
824
  ] });
825
825
  }
826
- const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_dwcut_42", lr = "_orbit_dwcut_49", cr = "_planet_dwcut_58", ir = "_moon_dwcut_73", dr = "_label_dwcut_92", ke = {
826
+ const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_dwcut_42", lr = "_orbit_dwcut_49", cr = "_planet_dwcut_58", ir = "_moon_dwcut_73", dr = "_label_dwcut_92", Ne = {
827
827
  wrap: or,
828
828
  sm: rr,
829
829
  md: sr,
@@ -837,30 +837,30 @@ const or = "_wrap_dwcut_5", rr = "_sm_dwcut_30", sr = "_md_dwcut_36", ar = "_lg_
837
837
  "sp-loader-reduced-pulse": "_sp-loader-reduced-pulse_dwcut_1"
838
838
  };
839
839
  function Dl({ size: e = "md", label: t, className: o }) {
840
- return /* @__PURE__ */ N(
840
+ return /* @__PURE__ */ L(
841
841
  "div",
842
842
  {
843
- className: R(ke.wrap, ke[e], o),
843
+ className: z(Ne.wrap, Ne[e], o),
844
844
  role: "status",
845
845
  "aria-live": "polite",
846
846
  "aria-label": t ?? "Loading",
847
847
  children: [
848
- /* @__PURE__ */ N("span", { className: ke.orbit, children: [
849
- /* @__PURE__ */ n("span", { className: ke.planet }),
850
- /* @__PURE__ */ n("span", { className: ke.moon })
848
+ /* @__PURE__ */ L("span", { className: Ne.orbit, children: [
849
+ /* @__PURE__ */ n("span", { className: Ne.planet }),
850
+ /* @__PURE__ */ n("span", { className: Ne.moon })
851
851
  ] }),
852
- t && /* @__PURE__ */ n("span", { className: ke.label, children: t })
852
+ t && /* @__PURE__ */ n("span", { className: Ne.label, children: t })
853
853
  ]
854
854
  }
855
855
  );
856
856
  }
857
- const ur = "_content_1efo6_6", fr = {
857
+ const ur = "_content_3g9vd_6", fr = {
858
858
  content: ur
859
859
  };
860
860
  function Ye(e, t) {
861
861
  e.matches(":popover-open") || (e.dataset.instant = "", e.dataset.measuring = "", t(), delete e.dataset.measuring, e.offsetWidth, delete e.dataset.instant, e.offsetWidth, e.showPopover());
862
862
  }
863
- const _r = 350, pr = 80, Pe = 8, Se = 8;
863
+ const pr = 350, _r = 80, Fe = 8, qe = 8;
864
864
  function hr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
865
865
  const l = a.props;
866
866
  return Xe(a, {
@@ -894,16 +894,16 @@ function hr({ triggerRef: e, tooltipId: t, show: o, hide: r, children: a }) {
894
894
  });
895
895
  }
896
896
  function mr({ label: e, side: t = "bottom", children: o }) {
897
- const r = se(), [a, l] = Q(!1), [s, c] = Q(null), h = P(null), m = P(null), i = P(null), g = P(null), $ = () => {
897
+ const r = se(), [a, l] = Q(!1), [s, c] = Q(null), h = F(null), m = F(null), i = F(null), g = F(null), $ = () => {
898
898
  i.current && (clearTimeout(i.current), i.current = null), g.current && (clearTimeout(g.current), g.current = null);
899
899
  }, w = (b = !1) => {
900
900
  if ($(), b) {
901
901
  l(!0);
902
902
  return;
903
903
  }
904
- i.current = setTimeout(() => l(!0), _r);
905
- }, p = () => {
906
- $(), g.current = setTimeout(() => l(!1), pr);
904
+ i.current = setTimeout(() => l(!0), pr);
905
+ }, _ = () => {
906
+ $(), g.current = setTimeout(() => l(!1), _r);
907
907
  };
908
908
  return te(() => $, []), we(() => {
909
909
  const b = m.current;
@@ -914,31 +914,31 @@ function mr({ label: e, side: t = "bottom", children: o }) {
914
914
  }
915
915
  const v = h.current;
916
916
  if (!v) return;
917
- const M = () => {
918
- const z = v.getBoundingClientRect(), I = b.offsetWidth, Y = b.offsetHeight, U = (H, F, f, E) => Math.min(
919
- Math.max(H + F / 2 - f / 2, Se),
920
- Math.max(E - f - Se, Se)
921
- ), D = (H, F, f, E) => ({
922
- fitsNear: H >= Se,
923
- fitsFar: F + f <= E - Se
917
+ const k = () => {
918
+ const I = v.getBoundingClientRect(), H = b.offsetWidth, Y = b.offsetHeight, U = (S, j, f, R) => Math.min(
919
+ Math.max(S + j / 2 - f / 2, qe),
920
+ Math.max(R - f - qe, qe)
921
+ ), D = (S, j, f, R) => ({
922
+ fitsNear: S >= qe,
923
+ fitsFar: j + f <= R - qe
924
924
  });
925
925
  if (t === "left" || t === "right") {
926
- const H = z.right + Pe, F = z.left - I - Pe, { fitsNear: f, fitsFar: E } = D(F, H, I, window.innerWidth), A = t === "right" ? E || !f ? H : F : f || !E ? F : H;
927
- b.dataset.side = A === H ? "right" : "left", c({ top: U(z.top, z.height, Y, window.innerHeight), left: A });
926
+ const S = I.right + Fe, j = I.left - H - Fe, { fitsNear: f, fitsFar: R } = D(j, S, H, window.innerWidth), A = t === "right" ? R || !f ? S : j : f || !R ? j : S;
927
+ b.dataset.side = A === S ? "right" : "left", c({ top: U(I.top, I.height, Y, window.innerHeight), left: A });
928
928
  return;
929
929
  }
930
- const T = z.bottom + Pe, Z = z.top - Y - Pe, { fitsNear: X, fitsFar: y } = D(Z, T, Y, window.innerHeight), L = t === "bottom" ? y || !X ? T : Z : X || !y ? Z : T;
931
- b.dataset.side = L === T ? "bottom" : "top", c({ top: L, left: U(z.left, z.width, I, window.innerWidth) });
930
+ const T = I.bottom + Fe, B = I.top - Y - Fe, { fitsNear: X, fitsFar: x } = D(B, T, Y, window.innerHeight), M = t === "bottom" ? x || !X ? T : B : X || !x ? B : T;
931
+ b.dataset.side = M === T ? "bottom" : "top", c({ top: M, left: U(I.left, I.width, H, window.innerWidth) });
932
932
  };
933
- b.matches(":popover-open") ? M() : Ye(b, M);
934
- }, [a, t, e]), !e || !Re(o) ? /* @__PURE__ */ n(he, { children: o }) : /* @__PURE__ */ N(he, { children: [
933
+ b.matches(":popover-open") ? k() : Ye(b, k);
934
+ }, [a, t, e]), !e || !ze(o) ? /* @__PURE__ */ n(he, { children: o }) : /* @__PURE__ */ L(he, { children: [
935
935
  /* @__PURE__ */ n(
936
936
  hr,
937
937
  {
938
938
  triggerRef: h,
939
939
  tooltipId: r,
940
940
  show: w,
941
- hide: p,
941
+ hide: _,
942
942
  children: o
943
943
  }
944
944
  ),
@@ -959,13 +959,13 @@ function mr({ label: e, side: t = "bottom", children: o }) {
959
959
  )
960
960
  ] });
961
961
  }
962
- const gr = "_group_1tdav_4", Cr = "_segment_1tdav_15", vr = "_active_1tdav_35", br = "_vertical_1tdav_46", Fe = {
962
+ const gr = "_group_14c05_4", Cr = "_segment_14c05_15", vr = "_active_14c05_35", br = "_vertical_14c05_46", je = {
963
963
  group: gr,
964
964
  segment: Cr,
965
965
  active: vr,
966
966
  vertical: br
967
967
  };
968
- function zl({
968
+ function Il({
969
969
  options: e,
970
970
  value: t,
971
971
  onValueChange: o,
@@ -976,7 +976,7 @@ function zl({
976
976
  return /* @__PURE__ */ n(
977
977
  "div",
978
978
  {
979
- className: `${Fe.group} ${l ? Fe.vertical : ""} ${a}`,
979
+ className: `${je.group} ${l ? je.vertical : ""} ${a}`,
980
980
  role: "group",
981
981
  children: e.map((s) => (
982
982
  // A horizontal pill sits at the top of the scene, so its tooltips hang
@@ -987,7 +987,7 @@ function zl({
987
987
  "button",
988
988
  {
989
989
  type: "button",
990
- className: `${Fe.segment} ${s.value === t ? Fe.active : ""}`,
990
+ className: `${je.segment} ${s.value === t ? je.active : ""}`,
991
991
  "aria-label": s.label,
992
992
  "aria-pressed": s.value === t,
993
993
  onClick: () => {
@@ -1000,31 +1000,31 @@ function zl({
1000
1000
  }
1001
1001
  );
1002
1002
  }
1003
- const $r = "_root_12wb9_2", wr = "_trigger_12wb9_7", xr = "_labelWrap_12wb9_30", yr = "_sizer_12wb9_8", kr = "_triggerLabel_12wb9_70", Nr = "_chevron_12wb9_77", Lr = "_listbox_12wb9_82", Mr = "_item_12wb9_174", Ce = {
1003
+ const $r = "_root_10w57_2", wr = "_trigger_10w57_7", yr = "_labelWrap_10w57_30", xr = "_sizer_10w57_8", Nr = "_triggerLabel_10w57_70", Lr = "_chevron_10w57_77", Mr = "_listbox_10w57_82", kr = "_item_10w57_178", Ce = {
1004
1004
  root: $r,
1005
1005
  trigger: wr,
1006
- labelWrap: xr,
1007
- sizer: yr,
1008
- triggerLabel: kr,
1009
- chevron: Nr,
1010
- listbox: Lr,
1011
- item: Mr
1012
- }, mt = Ee(null), Rr = () => {
1013
- const e = qe(mt);
1006
+ labelWrap: yr,
1007
+ sizer: xr,
1008
+ triggerLabel: Nr,
1009
+ chevron: Lr,
1010
+ listbox: Mr,
1011
+ item: kr
1012
+ }, mt = Re(null), zr = () => {
1013
+ const e = Ee(mt);
1014
1014
  if (!e) throw new Error("Select.Item must be inside a Select");
1015
1015
  return e;
1016
- }, gt = (e, t) => `${e}-${encodeURIComponent(t)}`, Te = 4, Ne = 8;
1017
- function Er(e) {
1016
+ }, gt = (e, t) => `${e}-${encodeURIComponent(t)}`, Te = 4, Le = 8;
1017
+ function Rr(e) {
1018
1018
  const t = [], o = (r) => {
1019
- _t.forEach(r, (a) => {
1020
- if (!Re(a)) return;
1019
+ pt.forEach(r, (a) => {
1020
+ if (!ze(a)) return;
1021
1021
  const l = a.props;
1022
1022
  a.type === Ct && typeof l.value == "string" ? t.push({ value: l.value, label: l.children, disabled: l.disabled }) : l.children && o(l.children);
1023
1023
  });
1024
1024
  };
1025
1025
  return o(e), t;
1026
1026
  }
1027
- function qr({
1027
+ function Er({
1028
1028
  value: e,
1029
1029
  onValueChange: t,
1030
1030
  disabled: o,
@@ -1034,58 +1034,58 @@ function qr({
1034
1034
  children: s,
1035
1035
  ...c
1036
1036
  }) {
1037
- const [h, m] = Q(!1), [i, g] = Q(null), $ = se(), w = P(null), p = P(null), b = P(null), [v, M] = Q(null), [z, I] = Q(null), [Y, U] = Q(null), D = pe(() => Er(s), [s]), T = pe(() => D.filter((f) => !f.disabled).map((f) => f.value), [D]), Z = pe(() => D.map((f) => f.label), [D]), X = _e(
1037
+ const [h, m] = Q(!1), [i, g] = Q(null), $ = se(), w = F(null), _ = F(null), b = F(null), [v, k] = Q(null), [I, H] = Q(null), [Y, U] = Q(null), D = _e(() => Rr(s), [s]), T = _e(() => D.filter((f) => !f.disabled).map((f) => f.value), [D]), B = _e(() => D.map((f) => f.label), [D]), X = pe(
1038
1038
  (f) => {
1039
- var E;
1040
- return ((E = D.find((A) => A.value === f)) == null ? void 0 : E.label) ?? null;
1039
+ var R;
1040
+ return ((R = D.find((A) => A.value === f)) == null ? void 0 : R.label) ?? null;
1041
1041
  },
1042
1042
  [D]
1043
1043
  );
1044
1044
  te(() => {
1045
1045
  if (!h) return;
1046
- const f = (E) => {
1047
- p.current && !p.current.contains(E.target) && m(!1);
1046
+ const f = (R) => {
1047
+ _.current && !_.current.contains(R.target) && m(!1);
1048
1048
  };
1049
1049
  return document.addEventListener("mousedown", f), () => document.removeEventListener("mousedown", f);
1050
1050
  }, [h]);
1051
- const y = _e(() => {
1052
- const f = w.current, E = b.current;
1053
- if (!f || !E) return;
1051
+ const x = pe(() => {
1052
+ const f = w.current, R = b.current;
1053
+ if (!f || !R) return;
1054
1054
  const A = f.getBoundingClientRect();
1055
- M(f.offsetWidth);
1056
- const C = window.innerHeight - A.bottom - Ne, k = A.top - Ne, B = C < Math.min(E.offsetHeight + Te, 200) && k > C, V = Math.max(120, Math.min(380, B ? k - Te : C - Te));
1057
- I(V), E.dataset.side = B ? "top" : "bottom";
1058
- const G = Math.min(E.offsetHeight, V), _ = B ? Math.max(Ne, A.top - Te - G) : A.bottom + Te, x = Math.min(
1059
- Math.max(A.left, Ne),
1060
- Math.max(window.innerWidth - E.offsetWidth - Ne, Ne)
1055
+ k(f.offsetWidth);
1056
+ const C = window.innerHeight - A.bottom - Le, N = A.top - Le, V = C < Math.min(R.offsetHeight + Te, 200) && N > C, W = Math.max(120, Math.min(380, V ? N - Te : C - Te));
1057
+ H(W), R.dataset.side = V ? "top" : "bottom";
1058
+ const G = Math.min(R.offsetHeight, W), p = V ? Math.max(Le, A.top - Te - G) : A.bottom + Te, y = Math.min(
1059
+ Math.max(A.left, Le),
1060
+ Math.max(window.innerWidth - R.offsetWidth - Le, Le)
1061
1061
  );
1062
- U((d) => d && d.top === _ && d.left === x ? d : { top: _, left: x });
1062
+ U((d) => d && d.top === p && d.left === y ? d : { top: p, left: y });
1063
1063
  }, []);
1064
1064
  we(() => {
1065
1065
  const f = b.current;
1066
- f && (h ? (Ye(f, y), y()) : f.matches(":popover-open") && f.hidePopover());
1067
- }, [h, y]), te(() => {
1066
+ f && (h ? (Ye(f, x), x()) : f.matches(":popover-open") && f.hidePopover());
1067
+ }, [h, x]), te(() => {
1068
1068
  if (!h) return;
1069
- let f = 0, E = "";
1069
+ let f = 0, R = "";
1070
1070
  const A = () => {
1071
1071
  const C = w.current;
1072
1072
  if (C) {
1073
- const k = C.getBoundingClientRect(), B = `${k.top}|${k.left}|${k.width}|${window.innerWidth}|${window.innerHeight}`;
1074
- B !== E && (E = B, y());
1073
+ const N = C.getBoundingClientRect(), V = `${N.top}|${N.left}|${N.width}|${window.innerWidth}|${window.innerHeight}`;
1074
+ V !== R && (R = V, x());
1075
1075
  }
1076
1076
  f = requestAnimationFrame(A);
1077
1077
  };
1078
1078
  return f = requestAnimationFrame(A), () => cancelAnimationFrame(f);
1079
- }, [h, y]), te(() => {
1079
+ }, [h, x]), te(() => {
1080
1080
  var f;
1081
1081
  h && ((f = b.current) == null || f.focus());
1082
1082
  }, [h]);
1083
- const L = (f) => {
1083
+ const M = (f) => {
1084
1084
  g(f ?? T[0] ?? null), m(!0);
1085
- }, H = (f) => {
1086
- const E = i ? T.indexOf(i) : -1, A = Math.min(Math.max(E + f, 0), T.length - 1);
1085
+ }, S = (f) => {
1086
+ const R = i ? T.indexOf(i) : -1, A = Math.min(Math.max(R + f, 0), T.length - 1);
1087
1087
  g(T[A] ?? null);
1088
- }, F = e ? X(e) : null;
1088
+ }, j = e ? X(e) : null;
1089
1089
  return /* @__PURE__ */ n(
1090
1090
  mt.Provider,
1091
1091
  {
@@ -1102,34 +1102,34 @@ function qr({
1102
1102
  labelFor: X,
1103
1103
  triggerRef: w
1104
1104
  },
1105
- children: /* @__PURE__ */ N("div", { ref: p, className: Ce.root, children: [
1106
- /* @__PURE__ */ N(
1105
+ children: /* @__PURE__ */ L("div", { ref: _, className: Ce.root, children: [
1106
+ /* @__PURE__ */ L(
1107
1107
  "button",
1108
1108
  {
1109
1109
  type: "button",
1110
1110
  ...c,
1111
1111
  ref: w,
1112
1112
  disabled: o,
1113
- className: R(Ce.trigger, ue.spaceControl, "spSelectTrigger", l),
1113
+ className: z(Ce.trigger, ue.spaceControl, "spSelectTrigger", l),
1114
1114
  "data-animated": a ? void 0 : "false",
1115
1115
  "data-state": h ? "open" : "closed",
1116
1116
  "aria-haspopup": "listbox",
1117
1117
  "aria-expanded": h,
1118
1118
  "aria-controls": $,
1119
- onClick: () => h ? m(!1) : L(e || null),
1119
+ onClick: () => h ? m(!1) : M(e || null),
1120
1120
  onKeyDown: (f) => {
1121
- (f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(), L(e || null));
1121
+ (f.key === "ArrowDown" || f.key === "Enter" || f.key === " ") && (f.preventDefault(), M(e || null));
1122
1122
  },
1123
1123
  children: [
1124
- /* @__PURE__ */ N("span", { className: Ce.labelWrap, children: [
1125
- /* @__PURE__ */ N("span", { className: Ce.sizer, "data-sizer": "", "aria-hidden": "true", children: [
1126
- Z.map((f, E) => (
1124
+ /* @__PURE__ */ L("span", { className: Ce.labelWrap, children: [
1125
+ /* @__PURE__ */ L("span", { className: Ce.sizer, "data-sizer": "", "aria-hidden": "true", children: [
1126
+ B.map((f, R) => (
1127
1127
  // eslint-disable-next-line react/no-array-index-key
1128
- /* @__PURE__ */ n("span", { children: f }, E)
1128
+ /* @__PURE__ */ n("span", { children: f }, R)
1129
1129
  )),
1130
1130
  r && /* @__PURE__ */ n("span", { children: r })
1131
1131
  ] }),
1132
- /* @__PURE__ */ n("span", { className: Ce.triggerLabel, children: F ?? r ?? "" })
1132
+ /* @__PURE__ */ n("span", { className: Ce.triggerLabel, children: j ?? r ?? "" })
1133
1133
  ] }),
1134
1134
  /* @__PURE__ */ n("svg", { className: Ce.chevron, width: "9", height: "9", viewBox: "0 0 9 9", "aria-hidden": "true", children: /* @__PURE__ */ n("path", { d: "M0.5 3 L4.5 7 L8.5 3", fill: "none", stroke: "currentColor", strokeWidth: "1.2" }) })
1135
1135
  ]
@@ -1145,16 +1145,16 @@ function qr({
1145
1145
  popover: "manual",
1146
1146
  "data-side": "bottom",
1147
1147
  "aria-activedescendant": i ? gt($, i) : void 0,
1148
- className: R(Ce.listbox, ue.spacePanel),
1148
+ className: z(Ce.listbox, ue.spacePanel),
1149
1149
  "data-animated": a ? void 0 : "false",
1150
1150
  style: {
1151
1151
  ...v != null ? { "--_select-trigger-width": `${v}px` } : {},
1152
- ...z != null ? { maxHeight: `${z}px` } : {},
1152
+ ...I != null ? { maxHeight: `${I}px` } : {},
1153
1153
  ...Y ? { top: Y.top, left: Y.left } : {}
1154
1154
  },
1155
1155
  onKeyDown: (f) => {
1156
- var E, A;
1157
- f.key === "Escape" ? (f.stopPropagation(), m(!1), (E = w.current) == null || E.focus()) : f.key === "ArrowDown" ? (f.preventDefault(), H(1)) : f.key === "ArrowUp" ? (f.preventDefault(), H(-1)) : f.key === "Home" ? (f.preventDefault(), g(T[0] ?? null)) : f.key === "End" ? (f.preventDefault(), g(T[T.length - 1] ?? null)) : f.key === "Enter" || f.key === " " ? (f.preventDefault(), i && (t(i), m(!1), (A = w.current) == null || A.focus())) : f.key === "Tab" && m(!1);
1156
+ var R, A;
1157
+ f.key === "Escape" ? (f.stopPropagation(), m(!1), (R = w.current) == null || R.focus()) : f.key === "ArrowDown" ? (f.preventDefault(), S(1)) : f.key === "ArrowUp" ? (f.preventDefault(), S(-1)) : f.key === "Home" ? (f.preventDefault(), g(T[0] ?? null)) : f.key === "End" ? (f.preventDefault(), g(T[T.length - 1] ?? null)) : f.key === "Enter" || f.key === " " ? (f.preventDefault(), i && (t(i), m(!1), (A = w.current) == null || A.focus())) : f.key === "Tab" && m(!1);
1158
1158
  },
1159
1159
  children: s
1160
1160
  }
@@ -1164,7 +1164,7 @@ function qr({
1164
1164
  );
1165
1165
  }
1166
1166
  function Ct({ value: e, disabled: t, children: o }) {
1167
- const r = Rr(), a = r.value === e, l = r.highlighted === e;
1167
+ const r = zr(), a = r.value === e, l = r.highlighted === e;
1168
1168
  return /* @__PURE__ */ n(
1169
1169
  "div",
1170
1170
  {
@@ -1173,7 +1173,7 @@ function Ct({ value: e, disabled: t, children: o }) {
1173
1173
  "aria-selected": a,
1174
1174
  "aria-disabled": t || void 0,
1175
1175
  "data-highlighted": l ? "" : void 0,
1176
- className: R(Ce.item, "spSelectItem"),
1176
+ className: z(Ce.item, "spSelectItem"),
1177
1177
  onMouseEnter: () => !t && r.setHighlighted(e),
1178
1178
  onClick: () => {
1179
1179
  var s;
@@ -1183,55 +1183,55 @@ function Ct({ value: e, disabled: t, children: o }) {
1183
1183
  }
1184
1184
  );
1185
1185
  }
1186
- const Il = Object.assign(qr, { Item: Ct }), Dr = "_root_1lx7y_1", zr = "_input_1lx7y_7", Ir = "_slot_1lx7y_17", tt = {
1186
+ const Hl = Object.assign(Er, { Item: Ct }), Dr = "_root_1hali_1", Ir = "_input_1hali_7", Hr = "_slot_1hali_17", tt = {
1187
1187
  root: Dr,
1188
- input: zr,
1189
- slot: Ir
1190
- }, Hr = ae(function({ className: t, style: o, animated: r = !0, children: a, ...l }, s) {
1191
- return /* @__PURE__ */ N(
1188
+ input: Ir,
1189
+ slot: Hr
1190
+ }, Sr = ae(function({ className: t, style: o, animated: r = !0, children: a, ...l }, s) {
1191
+ return /* @__PURE__ */ L(
1192
1192
  "div",
1193
1193
  {
1194
- className: R(tt.root, ue.spaceInput, "spTextFieldRoot", t),
1194
+ className: z(tt.root, ue.spaceInput, "spTextFieldRoot", t),
1195
1195
  "data-animated": r ? void 0 : "false",
1196
1196
  style: o,
1197
1197
  children: [
1198
1198
  a,
1199
- /* @__PURE__ */ n("input", { ...l, ref: s, className: R(tt.input, "spTextFieldInput") })
1199
+ /* @__PURE__ */ n("input", { ...l, ref: s, className: z(tt.input, "spTextFieldInput") })
1200
1200
  ]
1201
1201
  }
1202
1202
  );
1203
1203
  });
1204
- function Sr({
1204
+ function qr({
1205
1205
  children: e
1206
1206
  }) {
1207
1207
  return /* @__PURE__ */ n("span", { className: tt.slot, children: e });
1208
1208
  }
1209
- const ct = Object.assign(Hr, { Slot: Sr }), Tr = "_root_1qu6w_1", Ar = "_textarea_1qu6w_6", it = {
1209
+ const ct = Object.assign(Sr, { Slot: qr }), Tr = "_root_1qu6w_1", Ar = "_textarea_1qu6w_6", it = {
1210
1210
  root: Tr,
1211
1211
  textarea: Ar
1212
- }, Hl = ae(function({ className: t, style: o, animated: r = !0, ...a }, l) {
1212
+ }, Sl = ae(function({ className: t, style: o, animated: r = !0, ...a }, l) {
1213
1213
  return /* @__PURE__ */ n(
1214
1214
  "div",
1215
1215
  {
1216
- className: R(it.root, ue.spaceInput, ue.spaceTextArea, "spTextFieldRoot", t),
1216
+ className: z(it.root, ue.spaceInput, ue.spaceTextArea, "spTextFieldRoot", t),
1217
1217
  "data-animated": r ? void 0 : "false",
1218
1218
  style: o,
1219
- children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className: R(it.textarea, "spTextAreaInput") })
1219
+ children: /* @__PURE__ */ n("textarea", { ...a, ref: l, className: z(it.textarea, "spTextAreaInput") })
1220
1220
  }
1221
1221
  );
1222
- }), jr = "_wrap_4p9as_12", Or = "_field_4p9as_16", Zr = "_panel_4p9as_25", Br = "_status_4p9as_91", Vr = "_list_4p9as_101", Wr = "_option_4p9as_114", Pr = "_active_4p9as_126", Fr = "_label_4p9as_136", Gr = "_meta_4p9as_143", Ur = "_footer_4p9as_149", de = {
1223
- wrap: jr,
1224
- field: Or,
1225
- panel: Zr,
1226
- status: Br,
1227
- list: Vr,
1228
- option: Wr,
1229
- active: Pr,
1230
- label: Fr,
1222
+ }), Or = "_wrap_sccqq_12", Zr = "_field_sccqq_16", Br = "_panel_sccqq_25", Vr = "_status_sccqq_91", Wr = "_list_sccqq_101", Pr = "_option_sccqq_114", Fr = "_active_sccqq_126", jr = "_label_sccqq_136", Gr = "_meta_sccqq_143", Ur = "_footer_sccqq_149", de = {
1223
+ wrap: Or,
1224
+ field: Zr,
1225
+ panel: Br,
1226
+ status: Vr,
1227
+ list: Wr,
1228
+ option: Pr,
1229
+ active: Fr,
1230
+ label: jr,
1231
1231
  meta: Gr,
1232
1232
  footer: Ur
1233
1233
  }, dt = 8, et = 8;
1234
- function Sl({
1234
+ function ql({
1235
1235
  value: e,
1236
1236
  onValueChange: t,
1237
1237
  options: o,
@@ -1246,97 +1246,97 @@ function Sl({
1246
1246
  animated: g = !0,
1247
1247
  className: $,
1248
1248
  style: w,
1249
- ...p
1249
+ ..._
1250
1250
  }) {
1251
- const [b, v] = Q(!1), [M, z] = Q(0), I = P(null), Y = P(null), U = P(null), D = se(), [T, Z] = Q(null), X = (_) => typeof _.label == "string" ? _.label : _.search ?? _.value, y = e.trim() !== "", L = pe(() => {
1252
- if (!y) return [];
1251
+ const [b, v] = Q(!1), [k, I] = Q(0), H = F(null), Y = F(null), U = F(null), D = se(), [T, B] = Q(null), X = (p) => typeof p.label == "string" ? p.label : p.search ?? p.value, x = e.trim() !== "", M = _e(() => {
1252
+ if (!x) return [];
1253
1253
  if (s) return o;
1254
- const _ = l ? e : e.toLowerCase();
1255
- return o.filter((x) => (l ? X(x) : X(x).toLowerCase()).includes(_));
1256
- }, [o, e, l, s, y]), H = pe(() => L.filter((_) => !_.disabled), [L]), F = y && (L.length > 0 || c || m != null), f = b && F;
1257
- te(() => z(0), [L]), te(() => {
1258
- var x;
1254
+ const p = l ? e : e.toLowerCase();
1255
+ return o.filter((y) => (l ? X(y) : X(y).toLowerCase()).includes(p));
1256
+ }, [o, e, l, s, x]), S = _e(() => M.filter((p) => !p.disabled), [M]), j = x && (M.length > 0 || c || m != null), f = b && j;
1257
+ te(() => I(0), [M]), te(() => {
1258
+ var y;
1259
1259
  if (!f) return;
1260
- const _ = (x = U.current) == null ? void 0 : x.querySelector(`[data-index="${M}"]`);
1261
- _ == null || _.scrollIntoView({ block: "nearest" });
1262
- }, [M, f]);
1263
- const E = _e(() => {
1264
- const _ = I.current, x = Y.current;
1265
- if (!_ || !x) return;
1266
- const u = (_.firstElementChild ?? _).getBoundingClientRect(), q = x.offsetHeight, j = window.innerHeight - u.bottom - et, O = j < q && u.top - et > j;
1267
- x.dataset.side = O ? "top" : "bottom";
1268
- const W = O ? Math.max(et, u.top - dt - q) : u.bottom + dt;
1269
- Z(
1270
- (S) => S && S.top === W && S.left === u.left && S.width === u.width ? S : { top: W, left: u.left, width: u.width }
1260
+ const p = (y = U.current) == null ? void 0 : y.querySelector(`[data-index="${k}"]`);
1261
+ p == null || p.scrollIntoView({ block: "nearest" });
1262
+ }, [k, f]);
1263
+ const R = pe(() => {
1264
+ const p = H.current, y = Y.current;
1265
+ if (!p || !y) return;
1266
+ const u = (p.firstElementChild ?? p).getBoundingClientRect(), E = y.offsetHeight, O = window.innerHeight - u.bottom - et, Z = O < E && u.top - et > O;
1267
+ y.dataset.side = Z ? "top" : "bottom";
1268
+ const P = Z ? Math.max(et, u.top - dt - E) : u.bottom + dt;
1269
+ B(
1270
+ (q) => q && q.top === P && q.left === u.left && q.width === u.width ? q : { top: P, left: u.left, width: u.width }
1271
1271
  );
1272
1272
  }, []);
1273
1273
  we(() => {
1274
- const _ = Y.current;
1275
- _ && (f ? (Ye(_, E), E()) : _.matches(":popover-open") && _.hidePopover());
1276
- }, [f, E]), te(() => {
1274
+ const p = Y.current;
1275
+ p && (f ? (Ye(p, R), R()) : p.matches(":popover-open") && p.hidePopover());
1276
+ }, [f, R]), te(() => {
1277
1277
  if (!f) return;
1278
- let _ = 0, x = "";
1278
+ let p = 0, y = "";
1279
1279
  const d = () => {
1280
- const u = I.current, q = Y.current;
1281
- if (u && q) {
1282
- const j = (u.firstElementChild ?? u).getBoundingClientRect(), O = `${j.top}|${j.left}|${j.width}|${q.offsetHeight}|${window.innerHeight}`;
1283
- O !== x && (x = O, E());
1280
+ const u = H.current, E = Y.current;
1281
+ if (u && E) {
1282
+ const O = (u.firstElementChild ?? u).getBoundingClientRect(), Z = `${O.top}|${O.left}|${O.width}|${E.offsetHeight}|${window.innerHeight}`;
1283
+ Z !== y && (y = Z, R());
1284
1284
  }
1285
- _ = requestAnimationFrame(d);
1285
+ p = requestAnimationFrame(d);
1286
1286
  };
1287
- return _ = requestAnimationFrame(d), () => cancelAnimationFrame(_);
1288
- }, [f, E]);
1289
- const A = _e(() => v(!1), []);
1287
+ return p = requestAnimationFrame(d), () => cancelAnimationFrame(p);
1288
+ }, [f, R]);
1289
+ const A = pe(() => v(!1), []);
1290
1290
  te(() => {
1291
1291
  if (!f) return;
1292
- const _ = (x) => {
1293
- const d = I.current;
1294
- d && x.target instanceof Node && !d.contains(x.target) && A();
1292
+ const p = (y) => {
1293
+ const d = H.current;
1294
+ d && y.target instanceof Node && !d.contains(y.target) && A();
1295
1295
  };
1296
- return document.addEventListener("pointerdown", _), () => document.removeEventListener("pointerdown", _);
1296
+ return document.addEventListener("pointerdown", p), () => document.removeEventListener("pointerdown", p);
1297
1297
  }, [f, A]);
1298
- const C = P(!1), k = (_) => {
1299
- _.disabled || (t(X(_)), r(_.value, _), C.current = !1, v(!1));
1300
- }, B = (_) => {
1301
- if (H.length === 0) return;
1302
- const x = L[M], u = ((x && !x.disabled ? H.indexOf(x) : -1) + _ + H.length) % H.length, q = H[u];
1303
- q && z(L.indexOf(q));
1304
- }, V = (_) => {
1305
- if (_.key === "Escape") {
1306
- f && _.stopPropagation(), v(!1);
1298
+ const C = F(!1), N = (p) => {
1299
+ p.disabled || (t(X(p)), r(p.value, p), C.current = !1, v(!1));
1300
+ }, V = (p) => {
1301
+ if (S.length === 0) return;
1302
+ const y = M[k], u = ((y && !y.disabled ? S.indexOf(y) : -1) + p + S.length) % S.length, E = S[u];
1303
+ E && I(M.indexOf(E));
1304
+ }, W = (p) => {
1305
+ if (p.key === "Escape") {
1306
+ f && p.stopPropagation(), v(!1);
1307
1307
  return;
1308
1308
  }
1309
- if (_.key === "Tab") {
1309
+ if (p.key === "Tab") {
1310
1310
  v(!1);
1311
1311
  return;
1312
1312
  }
1313
1313
  if (!f) {
1314
- _.key === "ArrowDown" && v(!0);
1314
+ p.key === "ArrowDown" && v(!0);
1315
1315
  return;
1316
1316
  }
1317
- if (_.key === "ArrowDown")
1318
- _.preventDefault(), C.current = !0, B(1);
1319
- else if (_.key === "ArrowUp")
1320
- _.preventDefault(), C.current = !0, B(-1);
1321
- else if (_.key === "Home") {
1322
- _.preventDefault(), C.current = !0;
1323
- const x = H[0];
1324
- x && z(L.indexOf(x));
1325
- } else if (_.key === "End") {
1326
- _.preventDefault(), C.current = !0;
1327
- const x = H[H.length - 1];
1328
- x && z(L.indexOf(x));
1329
- } else if (_.key === "Enter" || _.key === " " && C.current) {
1330
- const x = L[M];
1331
- x && !x.disabled && (_.preventDefault(), k(x));
1317
+ if (p.key === "ArrowDown")
1318
+ p.preventDefault(), C.current = !0, V(1);
1319
+ else if (p.key === "ArrowUp")
1320
+ p.preventDefault(), C.current = !0, V(-1);
1321
+ else if (p.key === "Home") {
1322
+ p.preventDefault(), C.current = !0;
1323
+ const y = S[0];
1324
+ y && I(M.indexOf(y));
1325
+ } else if (p.key === "End") {
1326
+ p.preventDefault(), C.current = !0;
1327
+ const y = S[S.length - 1];
1328
+ y && I(M.indexOf(y));
1329
+ } else if (p.key === "Enter" || p.key === " " && C.current) {
1330
+ const y = M[k];
1331
+ y && !y.disabled && (p.preventDefault(), N(y));
1332
1332
  }
1333
- }, G = f ? L[M] : void 0;
1334
- return /* @__PURE__ */ N("div", { ref: I, className: R(de.wrap, $), style: w, children: [
1333
+ }, G = f ? M[k] : void 0;
1334
+ return /* @__PURE__ */ L("div", { ref: H, className: z(de.wrap, $), style: w, children: [
1335
1335
  /* @__PURE__ */ n(
1336
1336
  ct,
1337
1337
  {
1338
- ...p,
1339
- type: p.type ?? "text",
1338
+ ..._,
1339
+ type: _.type ?? "text",
1340
1340
  role: "combobox",
1341
1341
  animated: g,
1342
1342
  className: de.field,
@@ -1344,38 +1344,38 @@ function Sl({
1344
1344
  "aria-expanded": f,
1345
1345
  "aria-controls": D,
1346
1346
  "aria-autocomplete": "list",
1347
- "aria-activedescendant": G && !G.disabled ? `${D}-${M}` : void 0,
1347
+ "aria-activedescendant": G && !G.disabled ? `${D}-${k}` : void 0,
1348
1348
  value: e,
1349
- onFocus: (_) => {
1350
- var x;
1351
- (x = p.onFocus) == null || x.call(p, _), v(!0);
1349
+ onFocus: (p) => {
1350
+ var y;
1351
+ (y = _.onFocus) == null || y.call(_, p), v(!0);
1352
1352
  },
1353
- onClick: (_) => {
1354
- var x;
1355
- (x = p.onClick) == null || x.call(p, _), v(!0);
1353
+ onClick: (p) => {
1354
+ var y;
1355
+ (y = _.onClick) == null || y.call(_, p), v(!0);
1356
1356
  },
1357
- onKeyDown: (_) => {
1358
- var x;
1359
- (x = p.onKeyDown) == null || x.call(p, _), V(_);
1357
+ onKeyDown: (p) => {
1358
+ var y;
1359
+ (y = _.onKeyDown) == null || y.call(_, p), W(p);
1360
1360
  },
1361
- onChange: (_) => {
1362
- C.current = !1, t(_.target.value), v(!0);
1361
+ onChange: (p) => {
1362
+ C.current = !1, t(p.target.value), v(!0);
1363
1363
  },
1364
1364
  children: a != null && /* @__PURE__ */ n(ct.Slot, { children: a })
1365
1365
  }
1366
1366
  ),
1367
- /* @__PURE__ */ N(
1367
+ /* @__PURE__ */ L(
1368
1368
  "div",
1369
1369
  {
1370
1370
  ref: Y,
1371
1371
  popover: "manual",
1372
1372
  "data-side": "bottom",
1373
- className: R(de.panel, ue.spacePanel),
1373
+ className: z(de.panel, ue.spacePanel),
1374
1374
  "data-animated": g ? void 0 : "false",
1375
1375
  style: T ? { top: T.top, left: T.left, width: T.width } : void 0,
1376
1376
  children: [
1377
- y && c && /* @__PURE__ */ n("p", { className: de.status, children: h }),
1378
- y && !c && L.length === 0 && m != null && /* @__PURE__ */ n("p", { className: de.status, children: m }),
1377
+ x && c && /* @__PURE__ */ n("p", { className: de.status, children: h }),
1378
+ x && !c && M.length === 0 && m != null && /* @__PURE__ */ n("p", { className: de.status, children: m }),
1379
1379
  /* @__PURE__ */ n(
1380
1380
  "ul",
1381
1381
  {
@@ -1383,30 +1383,30 @@ function Sl({
1383
1383
  id: D,
1384
1384
  role: "listbox",
1385
1385
  className: de.list,
1386
- hidden: c || L.length === 0,
1387
- children: L.map((_, x) => /* @__PURE__ */ N(
1386
+ hidden: c || M.length === 0,
1387
+ children: M.map((p, y) => /* @__PURE__ */ L(
1388
1388
  "li",
1389
1389
  {
1390
- id: `${D}-${x}`,
1391
- "data-index": x,
1390
+ id: `${D}-${y}`,
1391
+ "data-index": y,
1392
1392
  role: "option",
1393
- "aria-selected": x === M,
1394
- "aria-disabled": _.disabled || void 0,
1395
- className: R(
1393
+ "aria-selected": y === k,
1394
+ "aria-disabled": p.disabled || void 0,
1395
+ className: z(
1396
1396
  de.option,
1397
- x === M && !_.disabled && de.active,
1397
+ y === k && !p.disabled && de.active,
1398
1398
  "spAutocompleteOption"
1399
1399
  ),
1400
- onMouseEnter: () => !_.disabled && z(x),
1400
+ onMouseEnter: () => !p.disabled && I(y),
1401
1401
  onPointerDown: (d) => {
1402
- d.preventDefault(), k(_);
1402
+ d.preventDefault(), N(p);
1403
1403
  },
1404
1404
  children: [
1405
- /* @__PURE__ */ n("span", { className: de.label, children: _.label }),
1406
- _.meta != null && /* @__PURE__ */ n("span", { className: de.meta, children: _.meta })
1405
+ /* @__PURE__ */ n("span", { className: de.label, children: p.label }),
1406
+ p.meta != null && /* @__PURE__ */ n("span", { className: de.meta, children: p.meta })
1407
1407
  ]
1408
1408
  },
1409
- _.value
1409
+ p.value
1410
1410
  ))
1411
1411
  }
1412
1412
  ),
@@ -1424,15 +1424,15 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
1424
1424
  input: Jr
1425
1425
  }, Tl = ae(function({ value: t, onValueChange: o, min: r, max: a, step: l, disabled: s, className: c, "aria-label": h }, m) {
1426
1426
  const i = t[0] ?? r, g = a === r ? 0 : (i - r) / (a - r) * 100;
1427
- return /* @__PURE__ */ N("span", { className: R(Ae.root, ue.spaceSlider, c), "data-disabled": s || void 0, children: [
1428
- /* @__PURE__ */ n("span", { className: R(Ae.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: R(Ae.range, "spSliderRange"), style: { width: `${g}%` } }) }),
1429
- /* @__PURE__ */ n("span", { className: R(Ae.thumb, "spSliderThumb"), style: { left: `${g}%` } }),
1427
+ return /* @__PURE__ */ L("span", { className: z(Ae.root, ue.spaceSlider, c), "data-disabled": s || void 0, children: [
1428
+ /* @__PURE__ */ n("span", { className: z(Ae.track, "spSliderTrack"), children: /* @__PURE__ */ n("span", { className: z(Ae.range, "spSliderRange"), style: { width: `${g}%` } }) }),
1429
+ /* @__PURE__ */ n("span", { className: z(Ae.thumb, "spSliderThumb"), style: { left: `${g}%` } }),
1430
1430
  /* @__PURE__ */ n(
1431
1431
  "input",
1432
1432
  {
1433
1433
  ref: m,
1434
1434
  type: "range",
1435
- className: R(Ae.input, "spSliderInput"),
1435
+ className: z(Ae.input, "spSliderInput"),
1436
1436
  value: i,
1437
1437
  min: r,
1438
1438
  max: a,
@@ -1443,7 +1443,7 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
1443
1443
  }
1444
1444
  )
1445
1445
  ] });
1446
- }), es = "_root_1hrli_15", ts = "_plot_1hrli_24", ns = "_svg_1hrli_30", os = "_grid_1hrli_35", rs = "_zeroLine_1hrli_42", ss = "_axisLabel_1hrli_46", as = "_bar_1hrli_56", ls = "_hatch_1hrli_76", cs = "_partialNote_1hrli_80", is = "_line_1hrli_85", ds = "_area_1hrli_119", us = "_dot_1hrli_125", fs = "_crosshair_1hrli_136", _s = "_clickable_1hrli_143", ps = "_tooltip_1hrli_150", hs = "_tooltipHead_1hrli_164", ms = "_tooltipList_1hrli_170", gs = "_tooltipRow_1hrli_178", Cs = "_tooltipName_1hrli_186", vs = "_tooltipValue_1hrli_190", bs = "_swatch_1hrli_195", $s = "_legend_1hrli_202", ws = "_legendItem_1hrli_211", xs = "_data_1hrli_220", K = {
1446
+ }), es = "_root_1fiei_15", ts = "_plot_1fiei_24", ns = "_svg_1fiei_30", os = "_grid_1fiei_35", rs = "_zeroLine_1fiei_42", ss = "_axisLabel_1fiei_46", as = "_bar_1fiei_56", ls = "_hatch_1fiei_76", cs = "_partialNote_1fiei_80", is = "_line_1fiei_85", ds = "_area_1fiei_119", us = "_dot_1fiei_125", fs = "_crosshair_1fiei_136", ps = "_clickable_1fiei_143", _s = "_tooltip_1fiei_150", hs = "_tooltipHead_1fiei_164", ms = "_tooltipList_1fiei_170", gs = "_tooltipRow_1fiei_178", Cs = "_tooltipName_1fiei_186", vs = "_tooltipValue_1fiei_190", bs = "_swatch_1fiei_195", $s = "_legend_1fiei_202", ws = "_legendItem_1fiei_211", ys = "_data_1fiei_220", K = {
1447
1447
  root: es,
1448
1448
  plot: ts,
1449
1449
  svg: ns,
@@ -1457,8 +1457,8 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
1457
1457
  area: ds,
1458
1458
  dot: us,
1459
1459
  crosshair: fs,
1460
- clickable: _s,
1461
- tooltip: ps,
1460
+ clickable: ps,
1461
+ tooltip: _s,
1462
1462
  tooltipHead: hs,
1463
1463
  tooltipList: ms,
1464
1464
  tooltipRow: gs,
@@ -1467,7 +1467,7 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
1467
1467
  swatch: bs,
1468
1468
  legend: $s,
1469
1469
  legendItem: ws,
1470
- data: xs
1470
+ data: ys
1471
1471
  }, vt = [
1472
1472
  "var(--sp-chart-series-1-color)",
1473
1473
  "var(--sp-chart-series-2-color)",
@@ -1478,21 +1478,21 @@ const Kr = "_root_14a1b_1", Xr = "_track_14a1b_12", Yr = "_range_14a1b_22", Qr =
1478
1478
  "var(--sp-chart-series-7-color)",
1479
1479
  "var(--sp-chart-series-8-color)"
1480
1480
  ], nt = vt.length, Ke = (e) => vt[e % nt];
1481
- function ys(e) {
1481
+ function xs(e) {
1482
1482
  if (e <= 0) return 1;
1483
1483
  const t = 10 ** Math.floor(Math.log10(e)), o = e / t;
1484
1484
  return (o <= 1 ? 1 : o <= 2 ? 2 : o <= 5 ? 5 : 10) * t;
1485
1485
  }
1486
- function ks(e, { tickCount: t = 5, zeroBased: o = !0 } = {}) {
1487
- const r = e.filter((p) => Number.isFinite(p)), a = r.length ? Math.min(...r) : 0, l = r.length ? Math.max(...r) : 0;
1486
+ function Ns(e, { tickCount: t = 5, zeroBased: o = !0 } = {}) {
1487
+ const r = e.filter((_) => Number.isFinite(_)), a = r.length ? Math.min(...r) : 0, l = r.length ? Math.max(...r) : 0;
1488
1488
  let s = o ? Math.min(0, a) : a, c = o ? Math.max(0, l) : l;
1489
1489
  s === c && (s === 0 ? c = 1 : (s = Math.min(0, s), c = Math.max(0, c)));
1490
- const h = ys((c - s) / Math.max(1, t)), m = Math.floor(s / h) * h, i = Math.ceil(c / h) * h, g = [], $ = Math.round((i - m) / h);
1491
- for (let p = 0; p <= $; p++) g.push(Number((m + p * h).toPrecision(12)));
1490
+ const h = xs((c - s) / Math.max(1, t)), m = Math.floor(s / h) * h, i = Math.ceil(c / h) * h, g = [], $ = Math.round((i - m) / h);
1491
+ for (let _ = 0; _ <= $; _++) g.push(Number((m + _ * h).toPrecision(12)));
1492
1492
  const w = i - m || 1;
1493
- return { min: m, max: i, ticks: g, ratio: (p) => (p - m) / w };
1493
+ return { min: m, max: i, ticks: g, ratio: (_) => (_ - m) / w };
1494
1494
  }
1495
- function Ns(e, t = 0.25) {
1495
+ function Ls(e, t = 0.25) {
1496
1496
  if (e <= 0) return { centre: [], width: 0 };
1497
1497
  const o = 1 / e;
1498
1498
  return {
@@ -1500,14 +1500,14 @@ function Ns(e, t = 0.25) {
1500
1500
  width: o * (1 - t * 2)
1501
1501
  };
1502
1502
  }
1503
- function Ls(e, t, o, r, a, l = !0) {
1503
+ function Ms(e, t, o, r, a, l = !0) {
1504
1504
  const s = Math.max(0, Math.min(a, o / 2, r));
1505
1505
  return s === 0 ? `M${e},${t}h${o}v${r}h${-o}Z` : l ? `M${e},${t + r}V${t + s}a${s},${s} 0 0 1 ${s},${-s}h${o - s * 2}a${s},${s} 0 0 1 ${s},${s}V${t + r}Z` : `M${e},${t}V${t + r - s}a${s},${s} 0 0 0 ${s},${s}h${o - s * 2}a${s},${s} 0 0 0 ${s},${-s}V${t}Z`;
1506
1506
  }
1507
- function Ms(e) {
1507
+ function ks(e) {
1508
1508
  return e <= 0 ? [] : e === 1 ? [0.5] : Array.from({ length: e }, (t, o) => o / (e - 1));
1509
1509
  }
1510
- const Rs = () => {
1510
+ const zs = () => {
1511
1511
  var t, o;
1512
1512
  return ((o = (t = globalThis.process) == null ? void 0 : t.env) == null ? void 0 : o.NODE_ENV) !== "production";
1513
1513
  }, rt = (e) => Number.isInteger(e) ? e.toLocaleString("en-US") : e.toLocaleString("en-US", { maximumFractionDigits: 2 }), be = { top: 8, right: 8, bottom: 24 }, ut = 8;
@@ -1526,18 +1526,18 @@ function Al({
1526
1526
  onPointClick: g,
1527
1527
  className: $,
1528
1528
  "aria-label": w,
1529
- ...p
1529
+ ..._
1530
1530
  }) {
1531
- const b = se(), v = P(null), [M, z] = Q(0), [I, Y] = Q(null);
1531
+ const b = se(), v = F(null), [k, I] = Q(0), [H, Y] = Q(null);
1532
1532
  te(() => {
1533
1533
  const d = v.current;
1534
1534
  if (!d) return;
1535
- const u = new ResizeObserver(([q]) => {
1536
- z(Math.round(q.contentRect.width));
1535
+ const u = new ResizeObserver(([E]) => {
1536
+ I(Math.round(E.contentRect.width));
1537
1537
  });
1538
- return u.observe(d), z(Math.round(d.getBoundingClientRect().width)), () => u.disconnect();
1538
+ return u.observe(d), I(Math.round(d.getBoundingClientRect().width)), () => u.disconnect();
1539
1539
  }, []), te(() => {
1540
- if (!Rs()) return;
1540
+ if (!zs()) return;
1541
1541
  o.length > nt && console.warn(
1542
1542
  `Chart: ${o.length} series, but the palette names ${nt}. Past that the colours repeat. Group the tail into an "Other" series, or split the chart.`
1543
1543
  );
@@ -1546,68 +1546,68 @@ function Al({
1546
1546
  `Chart: ${d.map((u) => `"${u.name}"`).join(", ")} ${d.length === 1 ? "has" : "have"} a different number of values than there are categories (${t.length}). Values line up with categories by position, so the tail will be missing.`
1547
1547
  );
1548
1548
  }, [o, t.length]);
1549
- const U = a && (e === "bar" || e === "area"), D = e === "bar" && typeof i == "number" && i >= 0, T = (d) => D && d >= i, Z = pe(() => {
1549
+ const U = a && (e === "bar" || e === "area"), D = e === "bar" && typeof i == "number" && i >= 0, T = (d) => D && d >= i, B = _e(() => {
1550
1550
  const d = [];
1551
- return U ? t.forEach((u, q) => {
1552
- let j = 0, O = 0;
1553
- o.forEach((W) => {
1554
- const S = W.data[q];
1555
- typeof S == "number" && (S >= 0 ? j += S : O += S);
1556
- }), d.push(j, O);
1557
- }) : o.forEach((u) => u.data.forEach((q) => {
1558
- typeof q == "number" && d.push(q);
1559
- })), ks(d, { tickCount: h, zeroBased: e !== "line" || d.some((u) => u < 0) });
1560
- }, [o, t, U, h, e]), X = pe(() => Z.ticks.map(c), [Z.ticks, c]), y = Math.max(...X.map((d) => d.length * 7), 24) + ut, L = Math.max(0, M - y - be.right), H = Math.max(0, r - be.top - be.bottom), F = e === "bar" ? 0 : 16, f = (d) => y + F + d * Math.max(0, L - F * 2), E = (d) => be.top + (1 - Z.ratio(d)) * H, A = Ns(t.length), C = Ms(t.length), k = (d) => {
1551
+ return U ? t.forEach((u, E) => {
1552
+ let O = 0, Z = 0;
1553
+ o.forEach((P) => {
1554
+ const q = P.data[E];
1555
+ typeof q == "number" && (q >= 0 ? O += q : Z += q);
1556
+ }), d.push(O, Z);
1557
+ }) : o.forEach((u) => u.data.forEach((E) => {
1558
+ typeof E == "number" && d.push(E);
1559
+ })), Ns(d, { tickCount: h, zeroBased: e !== "line" || d.some((u) => u < 0) });
1560
+ }, [o, t, U, h, e]), X = _e(() => B.ticks.map(c), [B.ticks, c]), x = Math.max(...X.map((d) => d.length * 7), 24) + ut, M = Math.max(0, k - x - be.right), S = Math.max(0, r - be.top - be.bottom), j = e === "bar" ? 0 : 16, f = (d) => x + j + d * Math.max(0, M - j * 2), R = (d) => be.top + (1 - B.ratio(d)) * S, A = Ls(t.length), C = ks(t.length), N = (d) => {
1561
1561
  var u;
1562
1562
  return ((u = o[d]) == null ? void 0 : u.color) ?? Ke(d);
1563
- }, B = l ?? o.length > 1, V = pe(() => {
1563
+ }, V = l ?? o.length > 1, W = _e(() => {
1564
1564
  const d = o.map(() => []);
1565
- return t.forEach((u, q) => {
1566
- let j = 0, O = 0;
1567
- o.forEach((W, S) => {
1568
- const ee = W.data[q];
1565
+ return t.forEach((u, E) => {
1566
+ let O = 0, Z = 0;
1567
+ o.forEach((P, q) => {
1568
+ const ee = P.data[E];
1569
1569
  if (!U || typeof ee != "number") {
1570
- d[S][q] = 0;
1570
+ d[q][E] = 0;
1571
1571
  return;
1572
1572
  }
1573
- ee >= 0 ? (d[S][q] = j, j += ee) : (d[S][q] = O, O += ee);
1573
+ ee >= 0 ? (d[q][E] = O, O += ee) : (d[q][E] = Z, Z += ee);
1574
1574
  });
1575
1575
  }), d;
1576
- }, [o, t, U]), G = _e(
1576
+ }, [o, t, U]), G = pe(
1577
1577
  (d) => {
1578
1578
  const u = v.current;
1579
- if (!u || !t.length || L <= 0) return null;
1580
- const q = u.getBoundingClientRect(), j = e === "bar" ? L : Math.max(1, L - 32), O = (d - q.left - y - (e === "bar" ? 0 : 16)) / j, W = e === "bar" ? A.centre : C;
1581
- let S = 0;
1582
- return W.forEach((ee, ne) => {
1583
- Math.abs(ee - O) < Math.abs(W[S] - O) && (S = ne);
1584
- }), { index: S, x: f(W[S]) };
1579
+ if (!u || !t.length || M <= 0) return null;
1580
+ const E = u.getBoundingClientRect(), O = e === "bar" ? M : Math.max(1, M - 32), Z = (d - E.left - x - (e === "bar" ? 0 : 16)) / O, P = e === "bar" ? A.centre : C;
1581
+ let q = 0;
1582
+ return P.forEach((ee, ne) => {
1583
+ Math.abs(ee - Z) < Math.abs(P[q] - Z) && (q = ne);
1584
+ }), { index: q, x: f(P[q]) };
1585
1585
  },
1586
1586
  // x and the position arrays are derived from these; listing them keeps the
1587
1587
  // callback honest without re-creating it on every render.
1588
- [t.length, y, L, e, A.centre, C]
1588
+ [t.length, x, M, e, A.centre, C]
1589
1589
  // eslint-disable-line react-hooks/exhaustive-deps
1590
- ), _ = (d, u) => {
1591
- var j;
1592
- const q = (j = o[d]) == null ? void 0 : j.data[u];
1593
- typeof q != "number" || !g || g({
1590
+ ), p = (d, u) => {
1591
+ var O;
1592
+ const E = (O = o[d]) == null ? void 0 : O.data[u];
1593
+ typeof E != "number" || !g || g({
1594
1594
  series: o[d].name,
1595
1595
  seriesIndex: d,
1596
1596
  category: t[u],
1597
1597
  categoryIndex: u,
1598
- value: q
1598
+ value: E
1599
1599
  });
1600
- }, x = U || o.length === 1 ? A.width * L : A.width * L / o.length;
1601
- return /* @__PURE__ */ N(
1600
+ }, y = U || o.length === 1 ? A.width * M : A.width * M / o.length;
1601
+ return /* @__PURE__ */ L(
1602
1602
  "div",
1603
1603
  {
1604
- ...p,
1605
- className: R(K.root, $),
1604
+ ..._,
1605
+ className: z(K.root, $),
1606
1606
  "data-type": e,
1607
1607
  "data-animated": m ? "" : void 0,
1608
- style: { ...p.style },
1608
+ style: { ..._.style },
1609
1609
  children: [
1610
- /* @__PURE__ */ N(
1610
+ /* @__PURE__ */ L(
1611
1611
  "div",
1612
1612
  {
1613
1613
  ref: v,
@@ -1618,28 +1618,28 @@ function Al({
1618
1618
  },
1619
1619
  onPointerLeave: () => Y(null),
1620
1620
  children: [
1621
- /* @__PURE__ */ N(
1621
+ /* @__PURE__ */ L(
1622
1622
  "svg",
1623
1623
  {
1624
1624
  className: K.svg,
1625
- width: M || void 0,
1625
+ width: k || void 0,
1626
1626
  height: r,
1627
- viewBox: M ? `0 0 ${M} ${r}` : void 0,
1627
+ viewBox: k ? `0 0 ${k} ${r}` : void 0,
1628
1628
  role: "img",
1629
1629
  "aria-labelledby": w ? void 0 : b,
1630
1630
  "aria-label": w,
1631
1631
  children: [
1632
- /* @__PURE__ */ N("defs", { children: [
1633
- o.map((d, u) => /* @__PURE__ */ N("linearGradient", { id: `${b}-grad-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1634
- /* @__PURE__ */ n("stop", { offset: "0%", stopColor: k(u), stopOpacity: "1" }),
1635
- /* @__PURE__ */ n("stop", { offset: "100%", stopColor: k(u), stopOpacity: "0.55" })
1632
+ /* @__PURE__ */ L("defs", { children: [
1633
+ o.map((d, u) => /* @__PURE__ */ L("linearGradient", { id: `${b}-grad-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1634
+ /* @__PURE__ */ n("stop", { offset: "0%", stopColor: N(u), stopOpacity: "1" }),
1635
+ /* @__PURE__ */ n("stop", { offset: "100%", stopColor: N(u), stopOpacity: "0.55" })
1636
1636
  ] }, `grad-${u}`)),
1637
- o.map((d, u) => /* @__PURE__ */ N("linearGradient", { id: `${b}-area-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1638
- /* @__PURE__ */ n("stop", { offset: "0%", stopColor: k(u), stopOpacity: "0.45" }),
1639
- /* @__PURE__ */ n("stop", { offset: "100%", stopColor: k(u), stopOpacity: "0.02" })
1637
+ o.map((d, u) => /* @__PURE__ */ L("linearGradient", { id: `${b}-area-${u}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
1638
+ /* @__PURE__ */ n("stop", { offset: "0%", stopColor: N(u), stopOpacity: "0.45" }),
1639
+ /* @__PURE__ */ n("stop", { offset: "100%", stopColor: N(u), stopOpacity: "0.02" })
1640
1640
  ] }, `area-${u}`))
1641
1641
  ] }),
1642
- D && /* @__PURE__ */ n("defs", { children: o.map((d, u) => /* @__PURE__ */ N(
1642
+ D && /* @__PURE__ */ n("defs", { children: o.map((d, u) => /* @__PURE__ */ L(
1643
1643
  "pattern",
1644
1644
  {
1645
1645
  id: `${b}-hatch-${u}`,
@@ -1649,24 +1649,24 @@ function Al({
1649
1649
  patternTransform: "rotate(45)",
1650
1650
  children: [
1651
1651
  /* @__PURE__ */ n("rect", { width: "8", height: "8", fill: "transparent" }),
1652
- /* @__PURE__ */ n("line", { className: K.hatch, x1: "2", y1: "0", x2: "2", y2: "8", stroke: k(u) }),
1653
- /* @__PURE__ */ n("line", { className: K.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke: k(u) })
1652
+ /* @__PURE__ */ n("line", { className: K.hatch, x1: "2", y1: "0", x2: "2", y2: "8", stroke: N(u) }),
1653
+ /* @__PURE__ */ n("line", { className: K.hatch, x1: "6", y1: "0", x2: "6", y2: "8", stroke: N(u) })
1654
1654
  ]
1655
1655
  },
1656
1656
  `hatch-${u}`
1657
1657
  )) }),
1658
- s && Z.ticks.map((d) => /* @__PURE__ */ n(
1658
+ s && B.ticks.map((d) => /* @__PURE__ */ n(
1659
1659
  "line",
1660
1660
  {
1661
- className: R(K.grid, d === 0 && Z.min < 0 && K.zeroLine),
1662
- x1: y,
1663
- x2: y + L,
1664
- y1: E(d),
1665
- y2: E(d)
1661
+ className: z(K.grid, d === 0 && B.min < 0 && K.zeroLine),
1662
+ x1: x,
1663
+ x2: x + M,
1664
+ y1: R(d),
1665
+ y2: R(d)
1666
1666
  },
1667
1667
  `grid-${d}`
1668
1668
  )),
1669
- Z.ticks.map((d, u) => /* @__PURE__ */ n("text", { className: K.axisLabel, x: y - ut, y: E(d), textAnchor: "end", dominantBaseline: "middle", children: X[u] }, `label-${d}`)),
1669
+ B.ticks.map((d, u) => /* @__PURE__ */ n("text", { className: K.axisLabel, x: x - ut, y: R(d), textAnchor: "end", dominantBaseline: "middle", children: X[u] }, `label-${d}`)),
1670
1670
  t.map((d, u) => /* @__PURE__ */ n(
1671
1671
  "text",
1672
1672
  {
@@ -1679,99 +1679,99 @@ function Al({
1679
1679
  },
1680
1680
  `cat-${d}-${u}`
1681
1681
  )),
1682
- e === "bar" && o.map((d, u) => /* @__PURE__ */ n("g", { children: t.map((q, j) => {
1683
- const O = d.data[j];
1684
- if (typeof O != "number") return null;
1685
- const W = V[u][j], S = E(W + O), ee = E(W), ne = f(A.centre[j]) - A.width * L / 2, ie = U || o.length === 1 ? ne : ne + u * x, Qe = Math.max(1, x - (o.length > 1 && !U ? 2 : 0)), me = Math.max(1, Math.abs(ee - S)), De = D && j >= i;
1682
+ e === "bar" && o.map((d, u) => /* @__PURE__ */ n("g", { children: t.map((E, O) => {
1683
+ const Z = d.data[O];
1684
+ if (typeof Z != "number") return null;
1685
+ const P = W[u][O], q = R(P + Z), ee = R(P), ne = f(A.centre[O]) - A.width * M / 2, ie = U || o.length === 1 ? ne : ne + u * y, Qe = Math.max(1, y - (o.length > 1 && !U ? 2 : 0)), me = Math.max(1, Math.abs(ee - q)), De = D && O >= i;
1686
1686
  return /* @__PURE__ */ n(
1687
1687
  "path",
1688
1688
  {
1689
- className: R(K.bar, g && K.clickable),
1690
- d: Ls(ie, Math.min(S, ee), Qe, me, 4, O >= 0),
1689
+ className: z(K.bar, g && K.clickable),
1690
+ d: Ms(ie, Math.min(q, ee), Qe, me, 4, Z >= 0),
1691
1691
  fill: De ? `url(#${b}-hatch-${u})` : `url(#${b}-grad-${u})`,
1692
- color: k(u),
1693
- "data-dim": I && I.index !== j ? "" : void 0,
1694
- onClick: () => _(u, j),
1695
- children: /* @__PURE__ */ n("title", { children: `${d.name}, ${q}: ${c(O)}${De ? " so far" : ""}` })
1692
+ color: N(u),
1693
+ "data-dim": H && H.index !== O ? "" : void 0,
1694
+ onClick: () => p(u, O),
1695
+ children: /* @__PURE__ */ n("title", { children: `${d.name}, ${E}: ${c(Z)}${De ? " so far" : ""}` })
1696
1696
  },
1697
- `bar-${q}-${j}`
1697
+ `bar-${E}-${O}`
1698
1698
  );
1699
1699
  }) }, `bars-${d.name}-${u}`)),
1700
1700
  e !== "bar" && o.map((d, u) => {
1701
- const q = [];
1702
- let j = [];
1703
- return d.data.forEach((O, W) => {
1704
- if (typeof O != "number") {
1705
- j.length && q.push(j), j = [];
1701
+ const E = [];
1702
+ let O = [];
1703
+ return d.data.forEach((Z, P) => {
1704
+ if (typeof Z != "number") {
1705
+ O.length && E.push(O), O = [];
1706
1706
  return;
1707
1707
  }
1708
- j.push({ i: W, value: O, base: V[u][W] });
1709
- }), j.length && q.push(j), /* @__PURE__ */ N("g", { children: [
1710
- q.map((O, W) => {
1711
- const S = O.map((ne, ie) => `${ie === 0 ? "M" : "L"}${f(C[ne.i])},${E(ne.base + ne.value)}`).join(" "), ee = e === "area" ? `${S} L${f(C[O[O.length - 1].i])},${E(O[O.length - 1].base)} ` + O.slice().reverse().map((ne) => `L${f(C[ne.i])},${E(ne.base)}`).join(" ") + " Z" : null;
1712
- return /* @__PURE__ */ N("g", { children: [
1708
+ O.push({ i: P, value: Z, base: W[u][P] });
1709
+ }), O.length && E.push(O), /* @__PURE__ */ L("g", { children: [
1710
+ E.map((Z, P) => {
1711
+ const q = Z.map((ne, ie) => `${ie === 0 ? "M" : "L"}${f(C[ne.i])},${R(ne.base + ne.value)}`).join(" "), ee = e === "area" ? `${q} L${f(C[Z[Z.length - 1].i])},${R(Z[Z.length - 1].base)} ` + Z.slice().reverse().map((ne) => `L${f(C[ne.i])},${R(ne.base)}`).join(" ") + " Z" : null;
1712
+ return /* @__PURE__ */ L("g", { children: [
1713
1713
  ee && /* @__PURE__ */ n("path", { className: K.area, d: ee, fill: `url(#${b}-area-${u})` }),
1714
1714
  /* @__PURE__ */ n(
1715
1715
  "path",
1716
1716
  {
1717
1717
  className: K.line,
1718
- d: S,
1719
- stroke: k(u),
1720
- color: k(u),
1718
+ d: q,
1719
+ stroke: N(u),
1720
+ color: N(u),
1721
1721
  fill: "none",
1722
1722
  pathLength: 1
1723
1723
  }
1724
1724
  )
1725
- ] }, `run-${W}`);
1725
+ ] }, `run-${P}`);
1726
1726
  }),
1727
1727
  d.data.map(
1728
- (O, W) => typeof O == "number" ? /* @__PURE__ */ n(
1728
+ (Z, P) => typeof Z == "number" ? /* @__PURE__ */ n(
1729
1729
  "circle",
1730
1730
  {
1731
- className: R(K.dot, g && K.clickable),
1732
- cx: f(C[W]),
1733
- cy: E(V[u][W] + O),
1731
+ className: z(K.dot, g && K.clickable),
1732
+ cx: f(C[P]),
1733
+ cy: R(W[u][P] + Z),
1734
1734
  r: 4,
1735
- fill: k(u),
1736
- color: k(u),
1737
- "data-on": (I == null ? void 0 : I.index) === W ? "" : void 0,
1738
- onClick: () => _(u, W),
1739
- children: /* @__PURE__ */ n("title", { children: `${d.name}, ${t[W]}: ${c(O)}` })
1735
+ fill: N(u),
1736
+ color: N(u),
1737
+ "data-on": (H == null ? void 0 : H.index) === P ? "" : void 0,
1738
+ onClick: () => p(u, P),
1739
+ children: /* @__PURE__ */ n("title", { children: `${d.name}, ${t[P]}: ${c(Z)}` })
1740
1740
  },
1741
- `dot-${W}`
1741
+ `dot-${P}`
1742
1742
  ) : null
1743
1743
  )
1744
1744
  ] }, `line-${d.name}-${u}`);
1745
1745
  }),
1746
- I && /* @__PURE__ */ n(
1746
+ H && /* @__PURE__ */ n(
1747
1747
  "line",
1748
1748
  {
1749
1749
  className: K.crosshair,
1750
- x1: I.x,
1751
- x2: I.x,
1750
+ x1: H.x,
1751
+ x2: H.x,
1752
1752
  y1: be.top,
1753
- y2: be.top + H
1753
+ y2: be.top + S
1754
1754
  }
1755
1755
  )
1756
1756
  ]
1757
1757
  }
1758
1758
  ),
1759
- I && /* @__PURE__ */ N(
1759
+ H && /* @__PURE__ */ L(
1760
1760
  "div",
1761
1761
  {
1762
1762
  className: K.tooltip,
1763
- style: I.x > y + L / 2 ? { right: Math.max(0, M - I.x + 12) } : { left: I.x + 12 },
1763
+ style: H.x > x + M / 2 ? { right: Math.max(0, k - H.x + 12) } : { left: H.x + 12 },
1764
1764
  role: "status",
1765
1765
  children: [
1766
- /* @__PURE__ */ n("p", { className: K.tooltipHead, children: t[I.index] }),
1766
+ /* @__PURE__ */ n("p", { className: K.tooltipHead, children: t[H.index] }),
1767
1767
  /* @__PURE__ */ n("ul", { className: K.tooltipList, children: o.map((d, u) => {
1768
- const q = d.data[I.index];
1769
- return /* @__PURE__ */ N("li", { className: K.tooltipRow, children: [
1770
- /* @__PURE__ */ n("span", { className: K.swatch, style: { background: k(u) }, "aria-hidden": "true" }),
1768
+ const E = d.data[H.index];
1769
+ return /* @__PURE__ */ L("li", { className: K.tooltipRow, children: [
1770
+ /* @__PURE__ */ n("span", { className: K.swatch, style: { background: N(u) }, "aria-hidden": "true" }),
1771
1771
  /* @__PURE__ */ n("span", { className: K.tooltipName, children: d.name }),
1772
- /* @__PURE__ */ N("span", { className: K.tooltipValue, children: [
1773
- typeof q == "number" ? c(q) : "—",
1774
- T(I.index) && typeof q == "number" && /* @__PURE__ */ n("span", { className: K.partialNote, children: "so far" })
1772
+ /* @__PURE__ */ L("span", { className: K.tooltipValue, children: [
1773
+ typeof E == "number" ? c(E) : "—",
1774
+ T(H.index) && typeof E == "number" && /* @__PURE__ */ n("span", { className: K.partialNote, children: "so far" })
1775
1775
  ] })
1776
1776
  ] }, d.name);
1777
1777
  }) })
@@ -1781,40 +1781,40 @@ function Al({
1781
1781
  ]
1782
1782
  }
1783
1783
  ),
1784
- B && /* @__PURE__ */ n("ul", { className: K.legend, children: o.map((d, u) => /* @__PURE__ */ N("li", { className: K.legendItem, children: [
1785
- /* @__PURE__ */ n("span", { className: K.swatch, style: { background: k(u) }, "aria-hidden": "true" }),
1784
+ V && /* @__PURE__ */ n("ul", { className: K.legend, children: o.map((d, u) => /* @__PURE__ */ L("li", { className: K.legendItem, children: [
1785
+ /* @__PURE__ */ n("span", { className: K.swatch, style: { background: N(u) }, "aria-hidden": "true" }),
1786
1786
  d.name
1787
1787
  ] }, d.name)) }),
1788
- /* @__PURE__ */ N("table", { className: K.data, id: b, children: [
1788
+ /* @__PURE__ */ L("table", { className: K.data, id: b, children: [
1789
1789
  /* @__PURE__ */ n("caption", { children: w ?? "Chart data" }),
1790
- /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ N("tr", { children: [
1790
+ /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ L("tr", { children: [
1791
1791
  /* @__PURE__ */ n("th", { scope: "col", children: "Category" }),
1792
1792
  o.map((d) => /* @__PURE__ */ n("th", { scope: "col", children: d.name }, d.name))
1793
1793
  ] }) }),
1794
- /* @__PURE__ */ n("tbody", { children: t.map((d, u) => /* @__PURE__ */ N("tr", { children: [
1794
+ /* @__PURE__ */ n("tbody", { children: t.map((d, u) => /* @__PURE__ */ L("tr", { children: [
1795
1795
  /* @__PURE__ */ n("th", { scope: "row", children: d }),
1796
- o.map((q) => /* @__PURE__ */ N("td", { children: [
1797
- typeof q.data[u] == "number" ? c(q.data[u]) : "—",
1798
- T(u) && typeof q.data[u] == "number" ? " so far" : ""
1799
- ] }, q.name))
1796
+ o.map((E) => /* @__PURE__ */ L("td", { children: [
1797
+ typeof E.data[u] == "number" ? c(E.data[u]) : "—",
1798
+ T(u) && typeof E.data[u] == "number" ? " so far" : ""
1799
+ ] }, E.name))
1800
1800
  ] }, d)) })
1801
1801
  ] })
1802
1802
  ]
1803
1803
  }
1804
1804
  );
1805
1805
  }
1806
- const Es = "_root_90ktq_8", qs = "_row_90ktq_15", Ds = "_line_90ktq_21", zs = "_pressable_90ktq_36", Is = "_fill_90ktq_50", Hs = "_label_90ktq_58", Ss = "_track_90ktq_66", Ts = "_value_90ktq_101", As = "_percent_90ktq_106", fe = {
1807
- root: Es,
1808
- row: qs,
1806
+ const Rs = "_root_1v7ph_8", Es = "_row_1v7ph_15", Ds = "_line_1v7ph_21", Is = "_pressable_1v7ph_36", Hs = "_fill_1v7ph_50", Ss = "_label_1v7ph_58", qs = "_track_1v7ph_66", Ts = "_value_1v7ph_101", As = "_percent_1v7ph_106", fe = {
1807
+ root: Rs,
1808
+ row: Es,
1809
1809
  line: Ds,
1810
- pressable: zs,
1811
- fill: Is,
1812
- label: Hs,
1813
- track: Ss,
1810
+ pressable: Is,
1811
+ fill: Hs,
1812
+ label: Ss,
1813
+ track: qs,
1814
1814
  value: Ts,
1815
1815
  percent: As
1816
1816
  };
1817
- function jl({
1817
+ function Ol({
1818
1818
  items: e,
1819
1819
  max: t,
1820
1820
  showPercent: o = !1,
@@ -1831,19 +1831,19 @@ function jl({
1831
1831
  "div",
1832
1832
  {
1833
1833
  ...m,
1834
- className: R(fe.root, c),
1834
+ className: z(fe.root, c),
1835
1835
  role: "list",
1836
1836
  "aria-label": h,
1837
1837
  "data-animated": l ? "" : void 0,
1838
1838
  children: e.map(($, w) => {
1839
- const p = i > 0 ? Math.max(0, $.value) / i : 0, b = g > 0 ? $.value / g * 100 : 0, v = $.color ?? (a ? Ke(w) : "var(--sp-chart-series-1-color)"), M = /* @__PURE__ */ N(he, { children: [
1839
+ const _ = i > 0 ? Math.max(0, $.value) / i : 0, b = g > 0 ? $.value / g * 100 : 0, v = $.color ?? (a ? Ke(w) : "var(--sp-chart-series-1-color)"), k = /* @__PURE__ */ L(he, { children: [
1840
1840
  /* @__PURE__ */ n("span", { className: fe.label, children: $.label }),
1841
1841
  /* @__PURE__ */ n("span", { className: fe.track, children: /* @__PURE__ */ n(
1842
1842
  "span",
1843
1843
  {
1844
1844
  className: fe.fill,
1845
1845
  style: {
1846
- width: `${p * 100}%`,
1846
+ width: `${_ * 100}%`,
1847
1847
  background: v,
1848
1848
  // Each row starts a little after the one above, so a poll
1849
1849
  // reads as counting up rather than snapping into place.
@@ -1853,9 +1853,9 @@ function jl({
1853
1853
  }
1854
1854
  }
1855
1855
  ) }),
1856
- /* @__PURE__ */ N("span", { className: fe.value, children: [
1856
+ /* @__PURE__ */ L("span", { className: fe.value, children: [
1857
1857
  r($.value),
1858
- o && /* @__PURE__ */ N("span", { className: fe.percent, children: [
1858
+ o && /* @__PURE__ */ L("span", { className: fe.percent, children: [
1859
1859
  Math.round(b),
1860
1860
  "%"
1861
1861
  ] })
@@ -1865,24 +1865,24 @@ function jl({
1865
1865
  "button",
1866
1866
  {
1867
1867
  type: "button",
1868
- className: R(fe.line, fe.pressable),
1868
+ className: z(fe.line, fe.pressable),
1869
1869
  onClick: () => s($, w),
1870
- children: M
1870
+ children: k
1871
1871
  }
1872
- ) : /* @__PURE__ */ n("span", { className: fe.line, children: M }) }, `${$.label}-${w}`);
1872
+ ) : /* @__PURE__ */ n("span", { className: fe.line, children: k }) }, `${$.label}-${w}`);
1873
1873
  })
1874
1874
  }
1875
1875
  );
1876
1876
  }
1877
- const js = "_root_1y6jk_6", Os = "_svg_1y6jk_15", Zs = "_face_1y6jk_24", Bs = "_hole_1y6jk_25", Vs = "_slice_1y6jk_35", Ws = "_sweep_1y6jk_57", Ps = "_clickable_1y6jk_70", Fs = "_total_1y6jk_76", Gs = "_totalLabel_1y6jk_84", Us = "_legend_1y6jk_89", Ks = "_legendItem_1y6jk_98", Xs = "_legendName_1y6jk_113", Ys = "_legendValue_1y6jk_121", Qs = "_legendPercent_1y6jk_126", Js = "_swatch_1y6jk_131", oe = {
1878
- root: js,
1879
- svg: Os,
1880
- face: Zs,
1881
- hole: Bs,
1882
- slice: Vs,
1883
- sweep: Ws,
1884
- clickable: Ps,
1885
- total: Fs,
1877
+ const Os = "_root_ep6xn_6", Zs = "_svg_ep6xn_15", Bs = "_face_ep6xn_24", Vs = "_hole_ep6xn_25", Ws = "_slice_ep6xn_35", Ps = "_sweep_ep6xn_57", Fs = "_clickable_ep6xn_70", js = "_total_ep6xn_76", Gs = "_totalLabel_ep6xn_84", Us = "_legend_ep6xn_89", Ks = "_legendItem_ep6xn_98", Xs = "_legendName_ep6xn_113", Ys = "_legendValue_ep6xn_121", Qs = "_legendPercent_ep6xn_126", Js = "_swatch_ep6xn_131", oe = {
1878
+ root: Os,
1879
+ svg: Zs,
1880
+ face: Bs,
1881
+ hole: Vs,
1882
+ slice: Ws,
1883
+ sweep: Ps,
1884
+ clickable: Fs,
1885
+ total: js,
1886
1886
  totalLabel: Gs,
1887
1887
  legend: Us,
1888
1888
  legendItem: Ks,
@@ -1890,11 +1890,11 @@ const js = "_root_1y6jk_6", Os = "_svg_1y6jk_15", Zs = "_face_1y6jk_24", Bs = "_
1890
1890
  legendValue: Ys,
1891
1891
  legendPercent: Qs,
1892
1892
  swatch: Js
1893
- }, Le = (e, t, o) => {
1893
+ }, Me = (e, t, o) => {
1894
1894
  const r = o * 2 * Math.PI - Math.PI / 2;
1895
1895
  return { x: e + t * Math.cos(r), y: e + t * Math.sin(r) };
1896
1896
  };
1897
- function Ol({
1897
+ function Zl({
1898
1898
  slices: e,
1899
1899
  donut: t = !1,
1900
1900
  label: o,
@@ -1907,16 +1907,16 @@ function Ol({
1907
1907
  "aria-label": m,
1908
1908
  ...i
1909
1909
  }) {
1910
- const [g, $] = Q(null), w = se(), p = e.filter((D) => D.value > 0), b = p.reduce((D, T) => D + T.value, 0), v = r / 2, M = v - 2, z = t ? M * 0.62 : 0;
1911
- let I = 0;
1912
- const Y = p.map((D, T) => {
1913
- const Z = b > 0 ? D.value / b : 0, X = I;
1914
- I += Z;
1915
- const y = Le(v, M, X), L = Le(v, M, I), H = Z > 0.5 ? 1 : 0, F = Z >= 0.999, f = F ? t ? `M${v},${v - M} A${M},${M} 0 1 1 ${v - 0.01},${v - M} Z M${v},${v - z} A${z},${z} 0 1 0 ${v - 0.01},${v - z} Z` : `M${v},${v - M} A${M},${M} 0 1 1 ${v - 0.01},${v - M} Z` : t ? `M${y.x},${y.y} A${M},${M} 0 ${H} 1 ${L.x},${L.y} L${Le(v, z, I).x},${Le(v, z, I).y} A${z},${z} 0 ${H} 0 ${Le(v, z, X).x},${Le(v, z, X).y} Z` : `M${v},${v} L${y.x},${y.y} A${M},${M} 0 ${H} 1 ${L.x},${L.y} Z`;
1916
- return { slice: D, index: T, d: f, fraction: Z, fillRule: F && t ? "evenodd" : void 0 };
1910
+ const [g, $] = Q(null), w = se(), _ = e.filter((D) => D.value > 0), b = _.reduce((D, T) => D + T.value, 0), v = r / 2, k = v - 2, I = t ? k * 0.62 : 0;
1911
+ let H = 0;
1912
+ const Y = _.map((D, T) => {
1913
+ const B = b > 0 ? D.value / b : 0, X = H;
1914
+ H += B;
1915
+ const x = Me(v, k, X), M = Me(v, k, H), S = B > 0.5 ? 1 : 0, j = B >= 0.999, f = j ? t ? `M${v},${v - k} A${k},${k} 0 1 1 ${v - 0.01},${v - k} Z M${v},${v - I} A${I},${I} 0 1 0 ${v - 0.01},${v - I} Z` : `M${v},${v - k} A${k},${k} 0 1 1 ${v - 0.01},${v - k} Z` : t ? `M${x.x},${x.y} A${k},${k} 0 ${S} 1 ${M.x},${M.y} L${Me(v, I, H).x},${Me(v, I, H).y} A${I},${I} 0 ${S} 0 ${Me(v, I, X).x},${Me(v, I, X).y} Z` : `M${v},${v} L${x.x},${x.y} A${k},${k} 0 ${S} 1 ${M.x},${M.y} Z`;
1916
+ return { slice: D, index: T, d: f, fraction: B, fillRule: j && t ? "evenodd" : void 0 };
1917
1917
  }), U = (D) => e.indexOf(D);
1918
- return /* @__PURE__ */ N("div", { ...i, className: R(oe.root, h), "data-animated": l ? "" : void 0, children: [
1919
- /* @__PURE__ */ N(
1918
+ return /* @__PURE__ */ L("div", { ...i, className: z(oe.root, h), "data-animated": l ? "" : void 0, children: [
1919
+ /* @__PURE__ */ L(
1920
1920
  "svg",
1921
1921
  {
1922
1922
  className: oe.svg,
@@ -1926,23 +1926,23 @@ function Ol({
1926
1926
  role: "img",
1927
1927
  "aria-label": m ?? "Pie chart",
1928
1928
  children: [
1929
- /* @__PURE__ */ N("defs", { children: [
1930
- /* @__PURE__ */ N("radialGradient", { id: `${w}-face`, cx: "32%", cy: "26%", r: "78%", children: [
1929
+ /* @__PURE__ */ L("defs", { children: [
1930
+ /* @__PURE__ */ L("radialGradient", { id: `${w}-face`, cx: "32%", cy: "26%", r: "78%", children: [
1931
1931
  /* @__PURE__ */ n("stop", { offset: "0%", stopColor: "#fff", stopOpacity: "0.22" }),
1932
1932
  /* @__PURE__ */ n("stop", { offset: "55%", stopColor: "#fff", stopOpacity: "0.04" }),
1933
1933
  /* @__PURE__ */ n("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.28" })
1934
1934
  ] }),
1935
- /* @__PURE__ */ N("radialGradient", { id: `${w}-edge`, cx: "50%", cy: "50%", r: "50%", children: [
1935
+ /* @__PURE__ */ L("radialGradient", { id: `${w}-edge`, cx: "50%", cy: "50%", r: "50%", children: [
1936
1936
  /* @__PURE__ */ n("stop", { offset: "88%", stopColor: "#000", stopOpacity: "0" }),
1937
1937
  /* @__PURE__ */ n("stop", { offset: "100%", stopColor: "#000", stopOpacity: "0.45" })
1938
1938
  ] })
1939
1939
  ] }),
1940
- /* @__PURE__ */ N("g", { className: oe.sweep, children: [
1941
- Y.map(({ slice: D, index: T, d: Z, fillRule: X }) => /* @__PURE__ */ n(
1940
+ /* @__PURE__ */ L("g", { className: oe.sweep, children: [
1941
+ Y.map(({ slice: D, index: T, d: B, fillRule: X }) => /* @__PURE__ */ n(
1942
1942
  "path",
1943
1943
  {
1944
- className: R(oe.slice, c && oe.clickable),
1945
- d: Z,
1944
+ className: z(oe.slice, c && oe.clickable),
1945
+ d: B,
1946
1946
  fill: D.color ?? Ke(U(D)),
1947
1947
  fillRule: X,
1948
1948
  "data-dim": g !== null && g !== T ? "" : void 0,
@@ -1953,8 +1953,8 @@ function Ol({
1953
1953
  },
1954
1954
  `${D.label}-${T}`
1955
1955
  )),
1956
- /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: M, fill: `url(#${w}-face)` }),
1957
- /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: M, fill: `url(#${w}-edge)` }),
1956
+ /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: k, fill: `url(#${w}-face)` }),
1957
+ /* @__PURE__ */ n("circle", { className: oe.face, cx: v, cy: v, r: k, fill: `url(#${w}-edge)` }),
1958
1958
  t && // The wall of the hole, so the middle reads as cut through the
1959
1959
  // disc rather than printed on it.
1960
1960
  /* @__PURE__ */ n(
@@ -1963,7 +1963,7 @@ function Ol({
1963
1963
  className: oe.hole,
1964
1964
  cx: v,
1965
1965
  cy: v,
1966
- r: z,
1966
+ r: I,
1967
1967
  fill: "none",
1968
1968
  stroke: "#000",
1969
1969
  strokeOpacity: "0.45",
@@ -1971,14 +1971,14 @@ function Ol({
1971
1971
  }
1972
1972
  )
1973
1973
  ] }),
1974
- t && /* @__PURE__ */ N(he, { children: [
1975
- /* @__PURE__ */ n("text", { className: oe.total, x: v, y: v - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(g !== null ? p[g].value : b) }),
1976
- o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: v, y: v + 14, textAnchor: "middle", dominantBaseline: "middle", children: g !== null ? p[g].label : o })
1974
+ t && /* @__PURE__ */ L(he, { children: [
1975
+ /* @__PURE__ */ n("text", { className: oe.total, x: v, y: v - (o ? 6 : 0), textAnchor: "middle", dominantBaseline: "middle", children: s(g !== null ? _[g].value : b) }),
1976
+ o && /* @__PURE__ */ n("text", { className: oe.totalLabel, x: v, y: v + 14, textAnchor: "middle", dominantBaseline: "middle", children: g !== null ? _[g].label : o })
1977
1977
  ] })
1978
1978
  ]
1979
1979
  }
1980
1980
  ),
1981
- a && /* @__PURE__ */ n("ul", { className: oe.legend, children: p.map((D, T) => /* @__PURE__ */ N(
1981
+ a && /* @__PURE__ */ n("ul", { className: oe.legend, children: _.map((D, T) => /* @__PURE__ */ L(
1982
1982
  "li",
1983
1983
  {
1984
1984
  className: oe.legendItem,
@@ -1993,9 +1993,9 @@ function Ol({
1993
1993
  }
1994
1994
  ),
1995
1995
  /* @__PURE__ */ n("span", { className: oe.legendName, children: D.label }),
1996
- /* @__PURE__ */ N("span", { className: oe.legendValue, children: [
1996
+ /* @__PURE__ */ L("span", { className: oe.legendValue, children: [
1997
1997
  s(D.value),
1998
- /* @__PURE__ */ N("span", { className: oe.legendPercent, children: [
1998
+ /* @__PURE__ */ L("span", { className: oe.legendPercent, children: [
1999
1999
  b > 0 ? Math.round(D.value / b * 100) : 0,
2000
2000
  "%"
2001
2001
  ] })
@@ -2006,7 +2006,7 @@ function Ol({
2006
2006
  )) })
2007
2007
  ] });
2008
2008
  }
2009
- const ea = "_root_mmcx8_18", ta = "_item_mmcx8_24", na = "_selfLabeled_mmcx8_33", oa = "_label_mmcx8_37", ra = "_input_mmcx8_41", sa = "_box_mmcx8_57", aa = "_tick_mmcx8_80", la = "_dash_mmcx8_81", ca = "_tickPath_mmcx8_95", re = {
2009
+ const ea = "_root_czld4_18", ta = "_item_czld4_24", na = "_selfLabeled_czld4_33", oa = "_label_czld4_37", ra = "_input_czld4_41", sa = "_box_czld4_57", aa = "_tick_czld4_80", la = "_dash_czld4_81", ca = "_tickPath_czld4_95", re = {
2010
2010
  root: ea,
2011
2011
  item: ta,
2012
2012
  selfLabeled: na,
@@ -2016,7 +2016,7 @@ const ea = "_root_mmcx8_18", ta = "_item_mmcx8_24", na = "_selfLabeled_mmcx8_33"
2016
2016
  tick: aa,
2017
2017
  dash: la,
2018
2018
  tickPath: ca
2019
- }, bt = Ee(null);
2019
+ }, bt = Re(null);
2020
2020
  function $t({
2021
2021
  checked: e,
2022
2022
  indeterminate: t,
@@ -2025,10 +2025,10 @@ function $t({
2025
2025
  value: a,
2026
2026
  ariaLabel: l
2027
2027
  }) {
2028
- const s = P(null);
2028
+ const s = F(null);
2029
2029
  return te(() => {
2030
2030
  s.current && (s.current.indeterminate = t === !0);
2031
- }, [t]), /* @__PURE__ */ N(he, { children: [
2031
+ }, [t]), /* @__PURE__ */ L(he, { children: [
2032
2032
  /* @__PURE__ */ n(
2033
2033
  "input",
2034
2034
  {
@@ -2042,7 +2042,7 @@ function $t({
2042
2042
  onChange: (c) => r(c.currentTarget.checked)
2043
2043
  }
2044
2044
  ),
2045
- /* @__PURE__ */ N("span", { className: re.box, "aria-hidden": "true", children: [
2045
+ /* @__PURE__ */ L("span", { className: re.box, "aria-hidden": "true", children: [
2046
2046
  /* @__PURE__ */ n("svg", { className: re.tick, viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ n(
2047
2047
  "path",
2048
2048
  {
@@ -2067,10 +2067,10 @@ function ia({
2067
2067
  "aria-label": a,
2068
2068
  children: l
2069
2069
  }) {
2070
- return /* @__PURE__ */ n(bt.Provider, { value: { value: e, onValueChange: t, disabled: o }, children: /* @__PURE__ */ n("div", { role: "group", "aria-label": a, className: R(re.root, r), children: l }) });
2070
+ return /* @__PURE__ */ n(bt.Provider, { value: { value: e, onValueChange: t, disabled: o }, children: /* @__PURE__ */ n("div", { role: "group", "aria-label": a, className: z(re.root, r), children: l }) });
2071
2071
  }
2072
2072
  function da({ value: e, disabled: t, children: o }) {
2073
- const r = qe(bt);
2073
+ const r = Ee(bt);
2074
2074
  if (!r) throw new Error("CheckboxGroup.Item must be inside a CheckboxGroup");
2075
2075
  const a = t || r.disabled, l = r.value.includes(e), s = /* @__PURE__ */ n(
2076
2076
  $t,
@@ -2081,13 +2081,13 @@ function da({ value: e, disabled: t, children: o }) {
2081
2081
  onToggle: (c) => r.onValueChange(c ? [...r.value, e] : r.value.filter((h) => h !== e))
2082
2082
  }
2083
2083
  );
2084
- return o == null ? /* @__PURE__ */ n("span", { className: re.item, children: s }) : /* @__PURE__ */ N("label", { className: R(re.item, re.selfLabeled), children: [
2084
+ return o == null ? /* @__PURE__ */ n("span", { className: re.item, children: s }) : /* @__PURE__ */ L("label", { className: z(re.item, re.selfLabeled), children: [
2085
2085
  s,
2086
2086
  /* @__PURE__ */ n("span", { className: re.label, children: o })
2087
2087
  ] });
2088
2088
  }
2089
- const Zl = Object.assign(ia, { Item: da });
2090
- function Bl({
2089
+ const Bl = Object.assign(ia, { Item: da });
2090
+ function Vl({
2091
2091
  checked: e,
2092
2092
  onCheckedChange: t,
2093
2093
  indeterminate: o,
@@ -2106,27 +2106,27 @@ function Bl({
2106
2106
  onToggle: t
2107
2107
  }
2108
2108
  );
2109
- return s == null ? /* @__PURE__ */ n("span", { className: R(re.item, a), children: c }) : /* @__PURE__ */ N("label", { className: R(re.item, re.selfLabeled, a), children: [
2109
+ return s == null ? /* @__PURE__ */ n("span", { className: z(re.item, a), children: c }) : /* @__PURE__ */ L("label", { className: z(re.item, re.selfLabeled, a), children: [
2110
2110
  c,
2111
2111
  /* @__PURE__ */ n("span", { className: re.label, children: s })
2112
2112
  ] });
2113
2113
  }
2114
- const ua = "_root_1u1sq_15", fa = "_item_1u1sq_23", _a = "_selfLabeled_1u1sq_32", pa = "_input_1u1sq_36", ha = "_orb_1u1sq_52", ma = "_burst_1u1sq_99", $e = {
2114
+ const ua = "_root_mhh35_15", fa = "_item_mhh35_23", pa = "_selfLabeled_mhh35_32", _a = "_input_mhh35_36", ha = "_orb_mhh35_52", ma = "_burst_mhh35_99", $e = {
2115
2115
  root: ua,
2116
2116
  item: fa,
2117
- selfLabeled: _a,
2118
- input: pa,
2117
+ selfLabeled: pa,
2118
+ input: _a,
2119
2119
  orb: ha,
2120
2120
  burst: ma
2121
- }, wt = Ee(null);
2121
+ }, wt = Re(null);
2122
2122
  function ga({ value: e, onValueChange: t, disabled: o, className: r, children: a }) {
2123
2123
  const l = se();
2124
- return /* @__PURE__ */ n(wt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: R($e.root, r), children: a }) });
2124
+ return /* @__PURE__ */ n(wt.Provider, { value: { value: e, onValueChange: t, disabled: o, name: l }, children: /* @__PURE__ */ n("div", { role: "radiogroup", className: z($e.root, r), children: a }) });
2125
2125
  }
2126
2126
  function Ca({ value: e, disabled: t, children: o }) {
2127
- const r = qe(wt);
2127
+ const r = Ee(wt);
2128
2128
  if (!r) throw new Error("RadioGroup.Item must be inside a RadioGroup");
2129
- const a = t || r.disabled, l = /* @__PURE__ */ N(he, { children: [
2129
+ const a = t || r.disabled, l = /* @__PURE__ */ L(he, { children: [
2130
2130
  /* @__PURE__ */ n(
2131
2131
  "input",
2132
2132
  {
@@ -2139,17 +2139,17 @@ function Ca({ value: e, disabled: t, children: o }) {
2139
2139
  onChange: () => r.onValueChange(e)
2140
2140
  }
2141
2141
  ),
2142
- /* @__PURE__ */ n("span", { className: R($e.orb, "spRadioOrb"), "aria-hidden": "true", children: /* @__PURE__ */ n("span", { className: $e.burst }) })
2142
+ /* @__PURE__ */ n("span", { className: z($e.orb, "spRadioOrb"), "aria-hidden": "true", children: /* @__PURE__ */ n("span", { className: $e.burst }) })
2143
2143
  ] });
2144
- return o == null ? /* @__PURE__ */ n("span", { className: $e.item, children: l }) : /* @__PURE__ */ N("label", { className: R($e.item, $e.selfLabeled), children: [
2144
+ return o == null ? /* @__PURE__ */ n("span", { className: $e.item, children: l }) : /* @__PURE__ */ L("label", { className: z($e.item, $e.selfLabeled), children: [
2145
2145
  l,
2146
2146
  o
2147
2147
  ] });
2148
2148
  }
2149
- const Vl = Object.assign(ga, { Item: Ca }), va = "_progress_1cre6_16", ba = {
2149
+ const Wl = Object.assign(ga, { Item: Ca }), va = "_progress_1cre6_16", ba = {
2150
2150
  progress: va
2151
2151
  };
2152
- function Wl({ value: e, max: t = 100, className: o, style: r, ...a }) {
2152
+ function Pl({ value: e, max: t = 100, className: o, style: r, ...a }) {
2153
2153
  const l = t > 0 ? Math.min(Math.max(e / t * 100, 0), 100) : 0;
2154
2154
  return /* @__PURE__ */ n(
2155
2155
  "div",
@@ -2159,71 +2159,71 @@ function Wl({ value: e, max: t = 100, className: o, style: r, ...a }) {
2159
2159
  "aria-valuenow": e,
2160
2160
  "aria-valuemin": 0,
2161
2161
  "aria-valuemax": t,
2162
- className: R(ba.progress, o),
2162
+ className: z(ba.progress, o),
2163
2163
  style: r,
2164
2164
  children: /* @__PURE__ */ n("div", { style: { width: `${l}%`, height: "100%" } })
2165
2165
  }
2166
2166
  );
2167
2167
  }
2168
- const $a = "_message_1522x_14", wa = "_info_1522x_44", xa = "_warning_1522x_49", ya = "_alert_1522x_56", ka = "_icon_1522x_63", Na = "_body_1522x_74", La = "_title_1522x_83", Ma = "_text_1522x_90", Me = {
2168
+ const $a = "_message_ca22y_14", wa = "_info_ca22y_44", ya = "_warning_ca22y_49", xa = "_alert_ca22y_56", Na = "_icon_ca22y_63", La = "_body_ca22y_74", Ma = "_title_ca22y_83", ka = "_text_ca22y_90", ke = {
2169
2169
  message: $a,
2170
2170
  info: wa,
2171
- warning: xa,
2172
- alert: ya,
2173
- icon: ka,
2174
- body: Na,
2175
- title: La,
2176
- text: Ma
2171
+ warning: ya,
2172
+ alert: xa,
2173
+ icon: Na,
2174
+ body: La,
2175
+ title: Ma,
2176
+ text: ka
2177
+ }, za = {
2178
+ info: /* @__PURE__ */ n(ko, {}),
2179
+ warning: /* @__PURE__ */ n(zo, {}),
2180
+ alert: /* @__PURE__ */ n(Ro, {})
2177
2181
  }, Ra = {
2178
- info: /* @__PURE__ */ n(Mo, {}),
2179
- warning: /* @__PURE__ */ n(Ro, {}),
2180
- alert: /* @__PURE__ */ n(Eo, {})
2181
- }, Ea = {
2182
2182
  info: { role: "status", live: "polite" },
2183
2183
  warning: { role: "status", live: "polite" },
2184
2184
  alert: { role: "alert" }
2185
- }, Pl = ae(function({ variant: t = "info", title: o, icon: r, className: a, children: l, ...s }, c) {
2186
- const h = r === void 0 ? Ra[t] : r, { role: m, live: i } = Ea[t];
2187
- return /* @__PURE__ */ N(
2185
+ }, Fl = ae(function({ variant: t = "info", title: o, icon: r, className: a, children: l, ...s }, c) {
2186
+ const h = r === void 0 ? za[t] : r, { role: m, live: i } = Ra[t];
2187
+ return /* @__PURE__ */ L(
2188
2188
  "div",
2189
2189
  {
2190
2190
  ...s,
2191
2191
  ref: c,
2192
2192
  role: m,
2193
2193
  "aria-live": i,
2194
- className: R(Me.message, Me[t], a),
2194
+ className: z(ke.message, ke[t], a),
2195
2195
  children: [
2196
- h != null && /* @__PURE__ */ n("span", { className: Me.icon, "aria-hidden": "true", children: h }),
2197
- /* @__PURE__ */ N("div", { className: Me.body, children: [
2198
- o != null && /* @__PURE__ */ n("p", { className: Me.title, children: o }),
2199
- l != null && /* @__PURE__ */ n("div", { className: Me.text, children: l })
2196
+ h != null && /* @__PURE__ */ n("span", { className: ke.icon, "aria-hidden": "true", children: h }),
2197
+ /* @__PURE__ */ L("div", { className: ke.body, children: [
2198
+ o != null && /* @__PURE__ */ n("p", { className: ke.title, children: o }),
2199
+ l != null && /* @__PURE__ */ n("div", { className: ke.text, children: l })
2200
2200
  ] })
2201
2201
  ]
2202
2202
  }
2203
2203
  );
2204
- }), qa = "_dialog_zbndh_2", Da = "_inner_zbndh_71", za = "_size4_zbndh_76", Ia = "_title_zbndh_80", Ha = "_closeX_zbndh_88", Oe = {
2205
- dialog: qa,
2204
+ }), Ea = "_dialog_zbndh_2", Da = "_inner_zbndh_71", Ia = "_size4_zbndh_76", Ha = "_title_zbndh_80", Sa = "_closeX_zbndh_88", Ze = {
2205
+ dialog: Ea,
2206
2206
  inner: Da,
2207
- size4: za,
2208
- title: Ia,
2209
- closeX: Ha
2207
+ size4: Ia,
2208
+ title: Ha,
2209
+ closeX: Sa
2210
2210
  };
2211
2211
  let Ge = 0;
2212
- const xt = Ee(null), Be = () => {
2213
- const e = qe(xt);
2212
+ const yt = Re(null), Ve = () => {
2213
+ const e = Ee(yt);
2214
2214
  if (!e) throw new Error("Dialog parts must be inside a Dialog");
2215
2215
  return e;
2216
2216
  };
2217
- function yt(e) {
2217
+ function xt(e) {
2218
2218
  return function({ open: o, onOpenChange: r, children: a }) {
2219
- const [l, s] = Q(!1), c = o !== void 0, h = c ? o : l, m = (p) => {
2220
- c || s(p), r == null || r(p);
2219
+ const [l, s] = Q(!1), c = o !== void 0, h = c ? o : l, m = (_) => {
2220
+ c || s(_), r == null || r(_);
2221
2221
  }, i = se(), g = se(), [$, w] = Q(!1);
2222
- return /* @__PURE__ */ n(xt.Provider, { value: { open: h, setOpen: m, titleId: i, descId: g, alert: e, hasDesc: $, setHasDesc: w }, children: a });
2222
+ return /* @__PURE__ */ n(yt.Provider, { value: { open: h, setOpen: m, titleId: i, descId: g, alert: e, hasDesc: $, setHasDesc: w }, children: a });
2223
2223
  };
2224
2224
  }
2225
- const Sa = yt(!1), kt = (e, t) => {
2226
- if (!Re(e)) return e;
2225
+ const qa = xt(!1), Nt = (e, t) => {
2226
+ if (!ze(e)) return e;
2227
2227
  const o = e;
2228
2228
  return Xe(o, {
2229
2229
  onClick: (r) => {
@@ -2232,20 +2232,20 @@ const Sa = yt(!1), kt = (e, t) => {
2232
2232
  }
2233
2233
  });
2234
2234
  };
2235
- function Nt({
2235
+ function Lt({
2236
2236
  children: e
2237
2237
  }) {
2238
- const t = Be();
2239
- return /* @__PURE__ */ n(he, { children: kt(e, () => t.setOpen(!0)) });
2238
+ const t = Ve();
2239
+ return /* @__PURE__ */ n(he, { children: Nt(e, () => t.setOpen(!0)) });
2240
2240
  }
2241
2241
  function st({
2242
2242
  children: e
2243
2243
  }) {
2244
- const t = Be();
2245
- return /* @__PURE__ */ n(he, { children: kt(e, () => t.setOpen(!1)) });
2244
+ const t = Ve();
2245
+ return /* @__PURE__ */ n(he, { children: Nt(e, () => t.setOpen(!1)) });
2246
2246
  }
2247
- function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, ...l }) {
2248
- const s = Be(), c = P(null), h = P(!1), m = P(!1);
2247
+ function Mt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, ...l }) {
2248
+ const s = Ve(), c = F(null), h = F(!1), m = F(!1);
2249
2249
  return te(() => {
2250
2250
  const i = c.current;
2251
2251
  i && (s.open && !i.open ? i.showModal() : !s.open && i.open && i.close());
@@ -2262,7 +2262,7 @@ function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2262
2262
  role: s.alert ? "alertdialog" : void 0,
2263
2263
  "aria-labelledby": s.titleId,
2264
2264
  "aria-describedby": s.hasDesc ? s.descId : void 0,
2265
- className: R(Oe.dialog, "spDialog", e === "4" && Oe.size4, o),
2265
+ className: z(Ze.dialog, "spDialog", e === "4" && Ze.size4, o),
2266
2266
  style: { ...t ? { maxWidth: t } : null, ...r },
2267
2267
  onKeyDownCapture: (i) => {
2268
2268
  var g, $;
@@ -2284,15 +2284,15 @@ function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2284
2284
  onClick: (i) => {
2285
2285
  !s.alert && i.target === c.current && m.current && s.setOpen(!1);
2286
2286
  },
2287
- children: /* @__PURE__ */ N("div", { className: Oe.inner, children: [
2287
+ children: /* @__PURE__ */ L("div", { className: Ze.inner, children: [
2288
2288
  !s.alert && /* @__PURE__ */ n(
2289
2289
  "button",
2290
2290
  {
2291
2291
  type: "button",
2292
- className: Oe.closeX,
2292
+ className: Ze.closeX,
2293
2293
  "aria-label": "Close",
2294
2294
  onClick: () => s.setOpen(!1),
2295
- children: /* @__PURE__ */ n(Lo, { width: 16, height: 16 })
2295
+ children: /* @__PURE__ */ n(Mo, { width: 16, height: 16 })
2296
2296
  }
2297
2297
  ),
2298
2298
  a
@@ -2300,61 +2300,61 @@ function Lt({ size: e = "3", maxWidth: t, className: o, style: r, children: a, .
2300
2300
  }
2301
2301
  );
2302
2302
  }
2303
- function Mt({ className: e, ...t }) {
2304
- const o = Be();
2305
- return /* @__PURE__ */ n(rn, { as: "h2", size: "5", ...t, id: o.titleId, className: R(Oe.title, e) });
2303
+ function kt({ className: e, ...t }) {
2304
+ const o = Ve();
2305
+ return /* @__PURE__ */ n(rn, { as: "h2", size: "5", ...t, id: o.titleId, className: z(Ze.title, e) });
2306
2306
  }
2307
- function Rt(e) {
2308
- const t = Be(), { setHasDesc: o } = t;
2307
+ function zt(e) {
2308
+ const t = Ve(), { setHasDesc: o } = t;
2309
2309
  return we(() => (o(!0), () => o(!1)), [o]), /* @__PURE__ */ n(Gt, { as: "p", ...e, id: t.descId });
2310
2310
  }
2311
- const Fl = Object.assign(Sa, {
2312
- Trigger: Nt,
2311
+ const jl = Object.assign(qa, {
2312
+ Trigger: Lt,
2313
2313
  Close: st,
2314
- Content: Lt,
2315
- Title: Mt,
2316
- Description: Rt
2317
- }), Ta = st, Aa = st, Gl = Object.assign(yt(!0), {
2318
- Trigger: Nt,
2319
- Content: Lt,
2320
- Title: Mt,
2321
- Description: Rt,
2314
+ Content: Mt,
2315
+ Title: kt,
2316
+ Description: zt
2317
+ }), Ta = st, Aa = st, Gl = Object.assign(xt(!0), {
2318
+ Trigger: Lt,
2319
+ Content: Mt,
2320
+ Title: kt,
2321
+ Description: zt,
2322
2322
  Cancel: Ta,
2323
2323
  Action: Aa
2324
- }), ja = "_menu_11ctg_1", Oa = "_label_11ctg_51", Za = "_item_11ctg_61", Ba = "_danger_11ctg_80", Va = "_separator_11ctg_84", Ze = {
2325
- menu: ja,
2326
- label: Oa,
2327
- item: Za,
2328
- danger: Ba,
2329
- separator: Va
2330
- }, Et = Ee(null), Wa = () => {
2331
- const e = qe(Et);
2324
+ }), Oa = "_menu_1d12s_1", Za = "_label_1d12s_55", Ba = "_item_1d12s_65", Va = "_danger_1d12s_84", Wa = "_separator_1d12s_88", Be = {
2325
+ menu: Oa,
2326
+ label: Za,
2327
+ item: Ba,
2328
+ danger: Va,
2329
+ separator: Wa
2330
+ }, Rt = Re(null), Pa = () => {
2331
+ const e = Ee(Rt);
2332
2332
  if (!e) throw new Error("DropdownMenu parts must be inside a DropdownMenu");
2333
2333
  return e;
2334
2334
  };
2335
- function Pa({ label: e, align: t = "start", children: o, ...r }) {
2336
- const [a, l] = Q(!1), s = se(), c = P(null), h = P(null), m = P(null), i = P(a);
2335
+ function Fa({ label: e, align: t = "start", children: o, ...r }) {
2336
+ const [a, l] = Q(!1), s = se(), c = F(null), h = F(null), m = F(null), i = F(a);
2337
2337
  i.current = a;
2338
- const g = _e((p) => {
2339
- i.current !== p && (i.current = p, l(p));
2338
+ const g = pe((_) => {
2339
+ i.current !== _ && (i.current = _, l(_));
2340
2340
  }, []), [$, w] = Q(null);
2341
2341
  return we(() => {
2342
2342
  var b;
2343
- const p = h.current;
2344
- if (p)
2343
+ const _ = h.current;
2344
+ if (_)
2345
2345
  if (a) {
2346
2346
  const v = c.current;
2347
2347
  if (v) {
2348
- const M = v.getBoundingClientRect(), z = t === "end" ? "auto" : M.left, I = t === "end" ? window.innerWidth - M.right : "auto";
2349
- w({ top: M.bottom + 6, left: z, right: I });
2348
+ const k = v.getBoundingClientRect(), I = t === "end" ? "auto" : k.left, H = t === "end" ? window.innerWidth - k.right : "auto";
2349
+ w({ top: k.bottom + 6, left: I, right: H });
2350
2350
  }
2351
- p.showPopover(), (b = p.querySelector('[role="menuitem"]')) == null || b.focus();
2352
- } else p.matches(":popover-open") && p.hidePopover();
2351
+ _.showPopover(), (b = _.querySelector('[role="menuitem"]')) == null || b.focus();
2352
+ } else _.matches(":popover-open") && _.hidePopover();
2353
2353
  }, [a, t]), te(() => {
2354
2354
  if (!a) return;
2355
- const p = () => g(!1);
2356
- return window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
2357
- }, [a]), /* @__PURE__ */ N(Et.Provider, { value: { open: a, setOpen: g, menuId: s }, children: [
2355
+ const _ = () => g(!1);
2356
+ return window.addEventListener("resize", _), () => window.removeEventListener("resize", _);
2357
+ }, [a]), /* @__PURE__ */ L(Rt.Provider, { value: { open: a, setOpen: g, menuId: s }, children: [
2358
2358
  /* @__PURE__ */ n(
2359
2359
  Ue,
2360
2360
  {
@@ -2363,17 +2363,17 @@ function Pa({ label: e, align: t = "start", children: o, ...r }) {
2363
2363
  "aria-haspopup": "menu",
2364
2364
  "aria-expanded": a,
2365
2365
  "aria-controls": s,
2366
- onPointerDown: (p) => {
2366
+ onPointerDown: (_) => {
2367
2367
  var b;
2368
- (b = r.onPointerDown) == null || b.call(r, p), m.current = !i.current;
2368
+ (b = r.onPointerDown) == null || b.call(r, _), m.current = !i.current;
2369
2369
  },
2370
- onKeyDown: (p) => {
2370
+ onKeyDown: (_) => {
2371
2371
  var b;
2372
- (b = r.onKeyDown) == null || b.call(r, p), (p.key === "Enter" || p.key === " ") && (m.current = null);
2372
+ (b = r.onKeyDown) == null || b.call(r, _), (_.key === "Enter" || _.key === " ") && (m.current = null);
2373
2373
  },
2374
- onClick: (p) => {
2374
+ onClick: (_) => {
2375
2375
  var v;
2376
- (v = r.onClick) == null || v.call(r, p);
2376
+ (v = r.onClick) == null || v.call(r, _);
2377
2377
  const b = m.current ?? !i.current;
2378
2378
  m.current = null, g(b);
2379
2379
  },
@@ -2387,37 +2387,37 @@ function Pa({ label: e, align: t = "start", children: o, ...r }) {
2387
2387
  id: s,
2388
2388
  role: "menu",
2389
2389
  popover: "auto",
2390
- className: Ze.menu,
2390
+ className: Be.menu,
2391
2391
  style: $ ? {
2392
2392
  top: $.top,
2393
2393
  left: $.left === "auto" ? "auto" : $.left,
2394
2394
  right: $.right === "auto" ? "auto" : $.right
2395
2395
  } : void 0,
2396
- onToggle: (p) => {
2397
- p.nativeEvent.newState === "closed" && g(!1);
2396
+ onToggle: (_) => {
2397
+ _.nativeEvent.newState === "closed" && g(!1);
2398
2398
  },
2399
- onKeyDown: (p) => {
2400
- var M, z, I, Y, U, D;
2399
+ onKeyDown: (_) => {
2400
+ var k, I, H, Y, U, D;
2401
2401
  const b = Array.from(
2402
- ((M = h.current) == null ? void 0 : M.querySelectorAll('[role="menuitem"]')) ?? []
2402
+ ((k = h.current) == null ? void 0 : k.querySelectorAll('[role="menuitem"]')) ?? []
2403
2403
  ), v = b.indexOf(document.activeElement);
2404
- p.key === "ArrowDown" ? (p.preventDefault(), (z = b[Math.min(v + 1, b.length - 1)]) == null || z.focus()) : p.key === "ArrowUp" ? (p.preventDefault(), (I = b[Math.max(v - 1, 0)]) == null || I.focus()) : p.key === "Home" ? (p.preventDefault(), (Y = b[0]) == null || Y.focus()) : p.key === "End" ? (p.preventDefault(), (U = b[b.length - 1]) == null || U.focus()) : p.key === "Escape" && (g(!1), (D = c.current) == null || D.focus());
2404
+ _.key === "ArrowDown" ? (_.preventDefault(), (I = b[Math.min(v + 1, b.length - 1)]) == null || I.focus()) : _.key === "ArrowUp" ? (_.preventDefault(), (H = b[Math.max(v - 1, 0)]) == null || H.focus()) : _.key === "Home" ? (_.preventDefault(), (Y = b[0]) == null || Y.focus()) : _.key === "End" ? (_.preventDefault(), (U = b[b.length - 1]) == null || U.focus()) : _.key === "Escape" && (g(!1), (D = c.current) == null || D.focus());
2405
2405
  },
2406
2406
  children: o
2407
2407
  }
2408
2408
  )
2409
2409
  ] });
2410
2410
  }
2411
- function Fa({
2411
+ function ja({
2412
2412
  children: e
2413
2413
  }) {
2414
- return /* @__PURE__ */ n("div", { className: Ze.label, children: e });
2414
+ return /* @__PURE__ */ n("div", { className: Be.label, children: e });
2415
2415
  }
2416
2416
  function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
2417
- const a = Wa(), l = R(Ze.item, t === "danger" && Ze.danger), s = () => {
2417
+ const a = Pa(), l = z(Be.item, t === "danger" && Be.danger), s = () => {
2418
2418
  a.setOpen(!1), o == null || o();
2419
2419
  };
2420
- if (e && Re(r)) {
2420
+ if (e && ze(r)) {
2421
2421
  const c = r, {
2422
2422
  className: h,
2423
2423
  onClick: m,
@@ -2425,16 +2425,16 @@ function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
2425
2425
  role: g,
2426
2426
  tabIndex: $,
2427
2427
  ...w
2428
- } = c.props, p = c.ref;
2428
+ } = c.props, _ = c.ref;
2429
2429
  return ot(
2430
2430
  c.type,
2431
2431
  {
2432
2432
  key: c.key,
2433
- ref: p,
2433
+ ref: _,
2434
2434
  role: "menuitem",
2435
2435
  tabIndex: -1,
2436
2436
  ...w,
2437
- className: R(l, h),
2437
+ className: z(l, h),
2438
2438
  onClick: (b) => {
2439
2439
  m == null || m(b), a.setOpen(!1);
2440
2440
  }
@@ -2445,13 +2445,13 @@ function Ga({ asChild: e, color: t, onSelect: o, children: r }) {
2445
2445
  return /* @__PURE__ */ n("button", { type: "button", role: "menuitem", tabIndex: -1, className: l, onClick: s, children: r });
2446
2446
  }
2447
2447
  function Ua() {
2448
- return /* @__PURE__ */ n("div", { role: "separator", className: Ze.separator });
2448
+ return /* @__PURE__ */ n("div", { role: "separator", className: Be.separator });
2449
2449
  }
2450
- const Ul = Object.assign(Pa, { Item: Ga, Separator: Ua, Label: Fa }), Ka = "_list_1hc3r_19", Xa = "_trigger_1hc3r_28", qt = {
2450
+ const Ul = Object.assign(Fa, { Item: Ga, Separator: Ua, Label: ja }), Ka = "_list_1b44l_19", Xa = "_trigger_1b44l_28", Et = {
2451
2451
  list: Ka,
2452
2452
  trigger: Xa
2453
- }, Dt = Ee(null), zt = () => {
2454
- const e = qe(Dt);
2453
+ }, Dt = Re(null), It = () => {
2454
+ const e = Ee(Dt);
2455
2455
  if (!e) throw new Error("Tabs parts must be inside a Tabs");
2456
2456
  return e;
2457
2457
  };
@@ -2466,7 +2466,7 @@ function Qa({
2466
2466
  "div",
2467
2467
  {
2468
2468
  role: "tablist",
2469
- className: R(qt.list, "spTabsList"),
2469
+ className: z(Et.list, "spTabsList"),
2470
2470
  onKeyDown: (t) => {
2471
2471
  const o = Array.from(
2472
2472
  t.currentTarget.querySelectorAll('[role="tab"]')
@@ -2496,7 +2496,7 @@ function Qa({
2496
2496
  );
2497
2497
  }
2498
2498
  function Ja({ value: e, className: t, children: o, ...r }) {
2499
- const a = zt(), l = a.value === e;
2499
+ const a = It(), l = a.value === e;
2500
2500
  return /* @__PURE__ */ n(
2501
2501
  "button",
2502
2502
  {
@@ -2508,7 +2508,7 @@ function Ja({ value: e, className: t, children: o, ...r }) {
2508
2508
  "aria-controls": `${a.id}-panel-${e}`,
2509
2509
  tabIndex: l ? 0 : -1,
2510
2510
  "data-state": l ? "active" : "inactive",
2511
- className: R(qt.trigger, "spTabsTrigger", t),
2511
+ className: z(Et.trigger, "spTabsTrigger", t),
2512
2512
  onClick: () => a.onValueChange(e),
2513
2513
  children: o
2514
2514
  }
@@ -2518,12 +2518,12 @@ function el({
2518
2518
  value: e,
2519
2519
  children: t
2520
2520
  }) {
2521
- const o = zt();
2521
+ const o = It();
2522
2522
  return o.value !== e ? null : /* @__PURE__ */ n("div", { role: "tabpanel", id: `${o.id}-panel-${e}`, "aria-labelledby": `${o.id}-tab-${e}`, children: t });
2523
2523
  }
2524
- const Kl = Object.assign(Ya, { List: Qa, Trigger: Ja, Content: el }), tl = "_panel_4us94_9", nl = {
2524
+ const Kl = Object.assign(Ya, { List: Qa, Trigger: Ja, Content: el }), tl = "_panel_5axce_9", nl = {
2525
2525
  panel: tl
2526
- }, ft = 8, je = 8, ol = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
2526
+ }, ft = 8, Oe = 8, ol = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
2527
2527
  function Xl({
2528
2528
  label: e,
2529
2529
  children: t,
@@ -2536,63 +2536,63 @@ function Xl({
2536
2536
  onClick: h,
2537
2537
  ...m
2538
2538
  }) {
2539
- const [i, g] = Q(a), $ = o !== void 0, w = $ ? o : i, p = se(), b = se(), v = P(null), M = P(null), [z, I] = Q(null), Y = P(!1), U = P(!1), D = P(null), T = P(w);
2539
+ const [i, g] = Q(a), $ = o !== void 0, w = $ ? o : i, _ = se(), b = se(), v = F(null), k = F(null), [I, H] = Q(null), Y = F(!1), U = F(!1), D = F(null), T = F(w);
2540
2540
  T.current = w;
2541
- const Z = _e(
2542
- (y) => {
2543
- T.current !== y && (T.current = y, $ || g(y), r == null || r(y));
2541
+ const B = pe(
2542
+ (x) => {
2543
+ T.current !== x && (T.current = x, $ || g(x), r == null || r(x));
2544
2544
  },
2545
2545
  [$, r]
2546
- ), X = _e(() => {
2547
- const y = v.current, L = M.current;
2548
- if (!y || !L) return;
2549
- const H = y.getBoundingClientRect(), F = L.offsetWidth, f = L.offsetHeight, E = H.bottom + ft, A = H.top - f - ft, C = E + f <= window.innerHeight - je, k = A >= je, B = l === "bottom" ? C || !k ? E : A : k || !C ? A : E, V = B === E ? "bottom" : "top";
2550
- L.dataset.side = V;
2551
- const G = s === "start" ? H.left : s === "end" ? H.right - F : H.left + H.width / 2 - F / 2, _ = Math.min(
2552
- Math.max(G, je),
2553
- Math.max(window.innerWidth - F - je, je)
2546
+ ), X = pe(() => {
2547
+ const x = v.current, M = k.current;
2548
+ if (!x || !M) return;
2549
+ const S = x.getBoundingClientRect(), j = M.offsetWidth, f = M.offsetHeight, R = S.bottom + ft, A = S.top - f - ft, C = R + f <= window.innerHeight - Oe, N = A >= Oe, V = l === "bottom" ? C || !N ? R : A : N || !C ? A : R, W = V === R ? "bottom" : "top";
2550
+ M.dataset.side = W;
2551
+ const G = s === "start" ? S.left : s === "end" ? S.right - j : S.left + S.width / 2 - j / 2, p = Math.min(
2552
+ Math.max(G, Oe),
2553
+ Math.max(window.innerWidth - j - Oe, Oe)
2554
2554
  );
2555
- I(
2556
- (x) => x && x.top === B && x.left === _ && x.placed === V ? x : { top: B, left: _, placed: V }
2555
+ H(
2556
+ (y) => y && y.top === V && y.left === p && y.placed === W ? y : { top: V, left: p, placed: W }
2557
2557
  );
2558
2558
  }, [l, s]);
2559
2559
  return we(() => {
2560
- const y = M.current;
2561
- y && (w ? (Ye(y, X), X(), Y.current && (Y.current = !1, (y.querySelector(ol) ?? y).focus({ preventScroll: !0 }))) : y.matches(":popover-open") && y.hidePopover());
2560
+ const x = k.current;
2561
+ x && (w ? (Ye(x, X), X(), Y.current && (Y.current = !1, (x.querySelector(ol) ?? x).focus({ preventScroll: !0 }))) : x.matches(":popover-open") && x.hidePopover());
2562
2562
  }, [w, X]), te(() => {
2563
2563
  if (!w) return;
2564
- let y = 0, L = "";
2565
- const H = () => {
2566
- const F = v.current, f = M.current;
2567
- if (F && f) {
2568
- const E = F.getBoundingClientRect(), A = `${E.top}|${E.left}|${E.width}|${E.height}|${f.offsetWidth}|${f.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
2569
- A !== L && (L = A, X());
2564
+ let x = 0, M = "";
2565
+ const S = () => {
2566
+ const j = v.current, f = k.current;
2567
+ if (j && f) {
2568
+ const R = j.getBoundingClientRect(), A = `${R.top}|${R.left}|${R.width}|${R.height}|${f.offsetWidth}|${f.offsetHeight}|${window.innerWidth}|${window.innerHeight}`;
2569
+ A !== M && (M = A, X());
2570
2570
  }
2571
- y = requestAnimationFrame(H);
2571
+ x = requestAnimationFrame(S);
2572
2572
  };
2573
- return y = requestAnimationFrame(H), () => cancelAnimationFrame(y);
2574
- }, [w, X]), /* @__PURE__ */ N(he, { children: [
2573
+ return x = requestAnimationFrame(S), () => cancelAnimationFrame(x);
2574
+ }, [w, X]), /* @__PURE__ */ L(he, { children: [
2575
2575
  /* @__PURE__ */ n(
2576
2576
  Ue,
2577
2577
  {
2578
2578
  ...m,
2579
2579
  ref: v,
2580
- id: p,
2580
+ id: _,
2581
2581
  "aria-haspopup": "dialog",
2582
2582
  "aria-expanded": w,
2583
2583
  "aria-controls": b,
2584
- onPointerDown: (y) => {
2585
- var L;
2586
- (L = m.onPointerDown) == null || L.call(m, y), D.current = !T.current;
2584
+ onPointerDown: (x) => {
2585
+ var M;
2586
+ (M = m.onPointerDown) == null || M.call(m, x), D.current = !T.current;
2587
2587
  },
2588
- onKeyDown: (y) => {
2589
- var L;
2590
- (L = m.onKeyDown) == null || L.call(m, y), (y.key === "Enter" || y.key === " ") && (D.current = null);
2588
+ onKeyDown: (x) => {
2589
+ var M;
2590
+ (M = m.onKeyDown) == null || M.call(m, x), (x.key === "Enter" || x.key === " ") && (D.current = null);
2591
2591
  },
2592
- onClick: (y) => {
2593
- h == null || h(y);
2594
- const L = D.current ?? !T.current;
2595
- D.current = null, L && (Y.current = !0), Z(L);
2592
+ onClick: (x) => {
2593
+ h == null || h(x);
2594
+ const M = D.current ?? !T.current;
2595
+ D.current = null, M && (Y.current = !0), B(M);
2596
2596
  },
2597
2597
  children: e
2598
2598
  }
@@ -2600,22 +2600,22 @@ function Xl({
2600
2600
  /* @__PURE__ */ n(
2601
2601
  "div",
2602
2602
  {
2603
- ref: M,
2603
+ ref: k,
2604
2604
  id: b,
2605
2605
  popover: "auto",
2606
2606
  role: "dialog",
2607
- "aria-labelledby": p,
2607
+ "aria-labelledby": _,
2608
2608
  tabIndex: -1,
2609
- className: R(nl.panel, ue.spacePanel, c),
2609
+ className: z(nl.panel, ue.spacePanel, c),
2610
2610
  "data-animated": m.animated === !1 ? "false" : void 0,
2611
- "data-side": (z == null ? void 0 : z.placed) ?? l,
2612
- style: z ? { top: z.top, left: z.left } : void 0,
2613
- onKeyDown: (y) => {
2614
- y.key === "Escape" && (U.current = !0, y.stopPropagation());
2611
+ "data-side": (I == null ? void 0 : I.placed) ?? l,
2612
+ style: I ? { top: I.top, left: I.left } : void 0,
2613
+ onKeyDown: (x) => {
2614
+ x.key === "Escape" && (U.current = !0, x.stopPropagation());
2615
2615
  },
2616
- onToggle: (y) => {
2617
- var L;
2618
- y.nativeEvent.newState === "closed" && (U.current && (U.current = !1, (L = v.current) == null || L.focus()), Z(!1));
2616
+ onToggle: (x) => {
2617
+ var M;
2618
+ x.nativeEvent.newState === "closed" && (U.current && (U.current = !1, (M = v.current) == null || M.focus()), B(!1));
2619
2619
  },
2620
2620
  children: t
2621
2621
  }
@@ -2624,61 +2624,61 @@ function Xl({
2624
2624
  }
2625
2625
  export {
2626
2626
  Gl as AlertDialog,
2627
- Sl as Autocomplete,
2627
+ ql as Autocomplete,
2628
2628
  dl as Badge,
2629
- jl as BarList,
2630
- Rl as BookmarkIcon,
2629
+ Ol as BarList,
2630
+ zl as BookmarkIcon,
2631
2631
  cl as Box,
2632
2632
  Ue as Button,
2633
2633
  fl as Card,
2634
- El as Carousel,
2634
+ Rl as Carousel,
2635
2635
  Al as Chart,
2636
- pl as ChatBubbleIcon,
2636
+ _l as ChatBubbleIcon,
2637
2637
  bl as CheckIcon,
2638
- Bl as Checkbox,
2639
- Zl as CheckboxGroup,
2640
- Ml as ChevronDownIcon,
2638
+ Vl as Checkbox,
2639
+ Bl as CheckboxGroup,
2640
+ kl as ChevronDownIcon,
2641
2641
  ht as ChevronLeftIcon,
2642
- pt as ChevronRightIcon,
2643
- Ll as ChevronUpIcon,
2644
- Eo as CrossCircledIcon,
2645
- Fl as Dialog,
2642
+ _t as ChevronRightIcon,
2643
+ Ml as ChevronUpIcon,
2644
+ Ro as CrossCircledIcon,
2645
+ jl as Dialog,
2646
2646
  Ul as DropdownMenu,
2647
2647
  vl as EnterFullScreenIcon,
2648
- Ro as ExclamationTriangleIcon,
2648
+ zo as ExclamationTriangleIcon,
2649
2649
  Cl as ExitFullScreenIcon,
2650
2650
  ll as Flex,
2651
2651
  il as Grid,
2652
2652
  rn as Heading,
2653
2653
  gl as HeartFilledIcon,
2654
- Nl as HeartIcon,
2655
- zl as IconToggle,
2656
- Mo as InfoCircledIcon,
2654
+ Ll as HeartIcon,
2655
+ Il as IconToggle,
2656
+ ko as InfoCircledIcon,
2657
2657
  al as Link,
2658
2658
  Dl as Loader,
2659
- kl as MagnifyingGlassIcon,
2660
- Pl as Message,
2661
- yl as MinusIcon,
2662
- ql as Pagination,
2659
+ Nl as MagnifyingGlassIcon,
2660
+ Fl as Message,
2661
+ xl as MinusIcon,
2662
+ El as Pagination,
2663
2663
  ml as Pencil1Icon,
2664
- xl as PersonIcon,
2665
- Ol as PieChart,
2664
+ yl as PersonIcon,
2665
+ Zl as PieChart,
2666
2666
  hl as PlusIcon,
2667
2667
  Xl as Popover,
2668
- Wl as Progress,
2668
+ Pl as Progress,
2669
2669
  wl as QuestionMarkCircledIcon,
2670
- Vl as RadioGroup,
2671
- Il as Select,
2670
+ Wl as RadioGroup,
2671
+ Hl as Select,
2672
2672
  ul as Separator,
2673
- _l as Share2Icon,
2673
+ pl as Share2Icon,
2674
2674
  Tl as Slider,
2675
2675
  Kl as Tabs,
2676
2676
  Gt as Text,
2677
- Hl as TextArea,
2677
+ Sl as TextArea,
2678
2678
  ct as TextField,
2679
2679
  mr as Tooltip,
2680
2680
  $l as TrashIcon,
2681
- Lo as XIcon,
2681
+ Mo as XIcon,
2682
2682
  tr as pageCount,
2683
2683
  nr as pageWindow
2684
2684
  };