@altimateai/ui-components 0.0.5 → 0.0.6-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { j as r, C as Ro, a as Kr, b as Eo, S as Br, c as Ur, d as $t, e as Hr } from "./index2.js";
1
+ import { j as r, C as _o, a as jr, b as No, S as Or, c as kr, d as kt, e as $r } from "./index2.js";
2
2
  import * as s from "react";
3
- import W, { forwardRef as z } from "react";
4
- import { c as de, u as G, P as A, a as _, b as pe, R as Lt, S as $e, h as Ft, d as Vt, F as Gt, D as Kt, e as Wr, f as ce, g as ee, i as Bt, j as E, k as Ut, l as Ge, m as ot, A as Io, C as Mo, n as Do, o as Ao, p as zr, q as Ht, r as Yr, s as qr, t as ue, v as Xr, w as To, V as Zr } from "./Tooltip.js";
5
- import * as Po from "react-dom";
6
- var Wt = "Dialog", [jo, Oo] = de(Wt), [Jr, ie] = jo(Wt), ko = (e) => {
3
+ import W, { forwardRef as Y } from "react";
4
+ import { b as ue, u as B, P as T, d as N, e as me, R as $t, S as ke, h as Lt, f as Ft, F as Vt, D as Gt, g as Lr, i as ce, j as ee, k as Kt, c as I, a as Bt, l as Ve, m as tt, A as Ro, C as Io, n as Eo, o as Mo, p as Fr, q as Ut, r as de, s as Vr, t as Do, v as Gr, V as Kr } from "./Tooltip.js";
5
+ import * as Ao from "react-dom";
6
+ var Ht = "Dialog", [To, Po] = ue(Ht), [Br, ie] = To(Ht), jo = (e) => {
7
7
  const {
8
8
  __scopeDialog: o,
9
9
  children: t,
@@ -17,7 +17,7 @@ var Wt = "Dialog", [jo, Oo] = de(Wt), [Jr, ie] = jo(Wt), ko = (e) => {
17
17
  onChange: l
18
18
  });
19
19
  return /* @__PURE__ */ r.jsx(
20
- Jr,
20
+ Br,
21
21
  {
22
22
  scope: o,
23
23
  triggerRef: c,
@@ -33,50 +33,50 @@ var Wt = "Dialog", [jo, Oo] = de(Wt), [Jr, ie] = jo(Wt), ko = (e) => {
33
33
  }
34
34
  );
35
35
  };
36
- ko.displayName = Wt;
37
- var $o = "DialogTrigger", Lo = s.forwardRef(
36
+ jo.displayName = Ht;
37
+ var Oo = "DialogTrigger", ko = s.forwardRef(
38
38
  (e, o) => {
39
- const { __scopeDialog: t, ...n } = e, a = ie($o, t), l = G(o, a.triggerRef);
39
+ const { __scopeDialog: t, ...n } = e, a = ie(Oo, t), l = B(o, a.triggerRef);
40
40
  return /* @__PURE__ */ r.jsx(
41
- A.button,
41
+ T.button,
42
42
  {
43
43
  type: "button",
44
44
  "aria-haspopup": "dialog",
45
45
  "aria-expanded": a.open,
46
46
  "aria-controls": a.contentId,
47
- "data-state": qt(a.open),
47
+ "data-state": Yt(a.open),
48
48
  ...n,
49
49
  ref: l,
50
- onClick: _(e.onClick, a.onOpenToggle)
50
+ onClick: N(e.onClick, a.onOpenToggle)
51
51
  }
52
52
  );
53
53
  }
54
54
  );
55
- Lo.displayName = $o;
56
- var zt = "DialogPortal", [Qr, Fo] = jo(zt, {
55
+ ko.displayName = Oo;
56
+ var Wt = "DialogPortal", [Ur, $o] = To(Wt, {
57
57
  forceMount: void 0
58
- }), Vo = (e) => {
59
- const { __scopeDialog: o, forceMount: t, children: n, container: a } = e, l = ie(zt, o);
60
- return /* @__PURE__ */ r.jsx(Qr, { scope: o, forceMount: t, children: s.Children.map(n, (i) => /* @__PURE__ */ r.jsx(pe, { present: t || l.open, children: /* @__PURE__ */ r.jsx(Bt, { asChild: !0, container: a, children: i }) })) });
58
+ }), Lo = (e) => {
59
+ const { __scopeDialog: o, forceMount: t, children: n, container: a } = e, l = ie(Wt, o);
60
+ return /* @__PURE__ */ r.jsx(Ur, { scope: o, forceMount: t, children: s.Children.map(n, (i) => /* @__PURE__ */ r.jsx(me, { present: t || l.open, children: /* @__PURE__ */ r.jsx(Kt, { asChild: !0, container: a, children: i }) })) });
61
61
  };
62
- Vo.displayName = zt;
63
- var Ze = "DialogOverlay", Go = s.forwardRef(
62
+ Lo.displayName = Wt;
63
+ var Xe = "DialogOverlay", Fo = s.forwardRef(
64
64
  (e, o) => {
65
- const t = Fo(Ze, e.__scopeDialog), { forceMount: n = t.forceMount, ...a } = e, l = ie(Ze, e.__scopeDialog);
66
- return l.modal ? /* @__PURE__ */ r.jsx(pe, { present: n || l.open, children: /* @__PURE__ */ r.jsx(es, { ...a, ref: o }) }) : null;
65
+ const t = $o(Xe, e.__scopeDialog), { forceMount: n = t.forceMount, ...a } = e, l = ie(Xe, e.__scopeDialog);
66
+ return l.modal ? /* @__PURE__ */ r.jsx(me, { present: n || l.open, children: /* @__PURE__ */ r.jsx(Hr, { ...a, ref: o }) }) : null;
67
67
  }
68
68
  );
69
- Go.displayName = Ze;
70
- var es = s.forwardRef(
69
+ Fo.displayName = Xe;
70
+ var Hr = s.forwardRef(
71
71
  (e, o) => {
72
- const { __scopeDialog: t, ...n } = e, a = ie(Ze, t);
72
+ const { __scopeDialog: t, ...n } = e, a = ie(Xe, t);
73
73
  return (
74
74
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
75
75
  // ie. when `Overlay` and `Content` are siblings
76
- /* @__PURE__ */ r.jsx(Lt, { as: $e, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ r.jsx(
77
- A.div,
76
+ /* @__PURE__ */ r.jsx($t, { as: ke, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ r.jsx(
77
+ T.div,
78
78
  {
79
- "data-state": qt(a.open),
79
+ "data-state": Yt(a.open),
80
80
  ...n,
81
81
  ref: o,
82
82
  style: { pointerEvents: "auto", ...n.style }
@@ -84,46 +84,46 @@ var es = s.forwardRef(
84
84
  ) })
85
85
  );
86
86
  }
87
- ), Ce = "DialogContent", Ko = s.forwardRef(
87
+ ), be = "DialogContent", Vo = s.forwardRef(
88
88
  (e, o) => {
89
- const t = Fo(Ce, e.__scopeDialog), { forceMount: n = t.forceMount, ...a } = e, l = ie(Ce, e.__scopeDialog);
90
- return /* @__PURE__ */ r.jsx(pe, { present: n || l.open, children: l.modal ? /* @__PURE__ */ r.jsx(ts, { ...a, ref: o }) : /* @__PURE__ */ r.jsx(os, { ...a, ref: o }) });
89
+ const t = $o(be, e.__scopeDialog), { forceMount: n = t.forceMount, ...a } = e, l = ie(be, e.__scopeDialog);
90
+ return /* @__PURE__ */ r.jsx(me, { present: n || l.open, children: l.modal ? /* @__PURE__ */ r.jsx(Wr, { ...a, ref: o }) : /* @__PURE__ */ r.jsx(zr, { ...a, ref: o }) });
91
91
  }
92
92
  );
93
- Ko.displayName = Ce;
94
- var ts = s.forwardRef(
93
+ Vo.displayName = be;
94
+ var Wr = s.forwardRef(
95
95
  (e, o) => {
96
- const t = ie(Ce, e.__scopeDialog), n = s.useRef(null), a = G(o, t.contentRef, n);
96
+ const t = ie(be, e.__scopeDialog), n = s.useRef(null), a = B(o, t.contentRef, n);
97
97
  return s.useEffect(() => {
98
98
  const l = n.current;
99
- if (l) return Ft(l);
99
+ if (l) return Lt(l);
100
100
  }, []), /* @__PURE__ */ r.jsx(
101
- Bo,
101
+ Go,
102
102
  {
103
103
  ...e,
104
104
  ref: a,
105
105
  trapFocus: t.open,
106
106
  disableOutsidePointerEvents: !0,
107
- onCloseAutoFocus: _(e.onCloseAutoFocus, (l) => {
107
+ onCloseAutoFocus: N(e.onCloseAutoFocus, (l) => {
108
108
  var i;
109
109
  l.preventDefault(), (i = t.triggerRef.current) == null || i.focus();
110
110
  }),
111
- onPointerDownOutside: _(e.onPointerDownOutside, (l) => {
111
+ onPointerDownOutside: N(e.onPointerDownOutside, (l) => {
112
112
  const i = l.detail.originalEvent, c = i.button === 0 && i.ctrlKey === !0;
113
113
  (i.button === 2 || c) && l.preventDefault();
114
114
  }),
115
- onFocusOutside: _(
115
+ onFocusOutside: N(
116
116
  e.onFocusOutside,
117
117
  (l) => l.preventDefault()
118
118
  )
119
119
  }
120
120
  );
121
121
  }
122
- ), os = s.forwardRef(
122
+ ), zr = s.forwardRef(
123
123
  (e, o) => {
124
- const t = ie(Ce, e.__scopeDialog), n = s.useRef(!1), a = s.useRef(!1);
124
+ const t = ie(be, e.__scopeDialog), n = s.useRef(!1), a = s.useRef(!1);
125
125
  return /* @__PURE__ */ r.jsx(
126
- Bo,
126
+ Go,
127
127
  {
128
128
  ...e,
129
129
  ref: o,
@@ -142,12 +142,12 @@ var ts = s.forwardRef(
142
142
  }
143
143
  );
144
144
  }
145
- ), Bo = s.forwardRef(
145
+ ), Go = s.forwardRef(
146
146
  (e, o) => {
147
- const { __scopeDialog: t, trapFocus: n, onOpenAutoFocus: a, onCloseAutoFocus: l, ...i } = e, c = ie(Ce, t), d = s.useRef(null), u = G(o, d);
148
- return Vt(), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
147
+ const { __scopeDialog: t, trapFocus: n, onOpenAutoFocus: a, onCloseAutoFocus: l, ...i } = e, c = ie(be, t), d = s.useRef(null), u = B(o, d);
148
+ return Ft(), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
149
149
  /* @__PURE__ */ r.jsx(
150
- Gt,
150
+ Vt,
151
151
  {
152
152
  asChild: !0,
153
153
  loop: !0,
@@ -155,13 +155,13 @@ var ts = s.forwardRef(
155
155
  onMountAutoFocus: a,
156
156
  onUnmountAutoFocus: l,
157
157
  children: /* @__PURE__ */ r.jsx(
158
- Kt,
158
+ Gt,
159
159
  {
160
160
  role: "dialog",
161
161
  id: c.contentId,
162
162
  "aria-describedby": c.descriptionId,
163
163
  "aria-labelledby": c.titleId,
164
- "data-state": qt(c.open),
164
+ "data-state": Yt(c.open),
165
165
  ...i,
166
166
  ref: u,
167
167
  onDismiss: () => c.onOpenChange(!1)
@@ -170,49 +170,49 @@ var ts = s.forwardRef(
170
170
  }
171
171
  ),
172
172
  /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
173
- /* @__PURE__ */ r.jsx(as, { titleId: c.titleId }),
174
- /* @__PURE__ */ r.jsx(ss, { contentRef: d, descriptionId: c.descriptionId })
173
+ /* @__PURE__ */ r.jsx(qr, { titleId: c.titleId }),
174
+ /* @__PURE__ */ r.jsx(Zr, { contentRef: d, descriptionId: c.descriptionId })
175
175
  ] })
176
176
  ] });
177
177
  }
178
- ), Yt = "DialogTitle", Uo = s.forwardRef(
178
+ ), zt = "DialogTitle", Ko = s.forwardRef(
179
179
  (e, o) => {
180
- const { __scopeDialog: t, ...n } = e, a = ie(Yt, t);
181
- return /* @__PURE__ */ r.jsx(A.h2, { id: a.titleId, ...n, ref: o });
180
+ const { __scopeDialog: t, ...n } = e, a = ie(zt, t);
181
+ return /* @__PURE__ */ r.jsx(T.h2, { id: a.titleId, ...n, ref: o });
182
182
  }
183
183
  );
184
- Uo.displayName = Yt;
185
- var Ho = "DialogDescription", Wo = s.forwardRef(
184
+ Ko.displayName = zt;
185
+ var Bo = "DialogDescription", Uo = s.forwardRef(
186
186
  (e, o) => {
187
- const { __scopeDialog: t, ...n } = e, a = ie(Ho, t);
188
- return /* @__PURE__ */ r.jsx(A.p, { id: a.descriptionId, ...n, ref: o });
187
+ const { __scopeDialog: t, ...n } = e, a = ie(Bo, t);
188
+ return /* @__PURE__ */ r.jsx(T.p, { id: a.descriptionId, ...n, ref: o });
189
189
  }
190
190
  );
191
- Wo.displayName = Ho;
192
- var zo = "DialogClose", Yo = s.forwardRef(
191
+ Uo.displayName = Bo;
192
+ var Ho = "DialogClose", Wo = s.forwardRef(
193
193
  (e, o) => {
194
- const { __scopeDialog: t, ...n } = e, a = ie(zo, t);
194
+ const { __scopeDialog: t, ...n } = e, a = ie(Ho, t);
195
195
  return /* @__PURE__ */ r.jsx(
196
- A.button,
196
+ T.button,
197
197
  {
198
198
  type: "button",
199
199
  ...n,
200
200
  ref: o,
201
- onClick: _(e.onClick, () => a.onOpenChange(!1))
201
+ onClick: N(e.onClick, () => a.onOpenChange(!1))
202
202
  }
203
203
  );
204
204
  }
205
205
  );
206
- Yo.displayName = zo;
207
- function qt(e) {
206
+ Wo.displayName = Ho;
207
+ function Yt(e) {
208
208
  return e ? "open" : "closed";
209
209
  }
210
- var qo = "DialogTitleWarning", [ns, Xo] = Wr(qo, {
211
- contentName: Ce,
212
- titleName: Yt,
210
+ var zo = "DialogTitleWarning", [Yr, Yo] = Lr(zo, {
211
+ contentName: be,
212
+ titleName: zt,
213
213
  docsSlug: "dialog"
214
- }), as = ({ titleId: e }) => {
215
- const o = Xo(qo), t = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
214
+ }), qr = ({ titleId: e }) => {
215
+ const o = Yo(zo), t = `\`${o.contentName}\` requires a \`${o.titleName}\` for the component to be accessible for screen reader users.
216
216
 
217
217
  If you want to hide the \`${o.titleName}\`, you can wrap it with our VisuallyHidden component.
218
218
 
@@ -220,18 +220,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/${o.do
220
220
  return s.useEffect(() => {
221
221
  e && (document.getElementById(e) || console.error(t));
222
222
  }, [t, e]), null;
223
- }, rs = "DialogDescriptionWarning", ss = ({ contentRef: e, descriptionId: o }) => {
224
- const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xo(rs).contentName}}.`;
223
+ }, Xr = "DialogDescriptionWarning", Zr = ({ contentRef: e, descriptionId: o }) => {
224
+ const n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Yo(Xr).contentName}}.`;
225
225
  return s.useEffect(() => {
226
226
  var l;
227
227
  const a = (l = e.current) == null ? void 0 : l.getAttribute("aria-describedby");
228
228
  o && a && (document.getElementById(o) || console.warn(n));
229
229
  }, [n, e, o]), null;
230
- }, nt = ko, Xt = Lo, at = Vo, Me = Go, De = Ko, Ke = Uo, Be = Wo, Ae = Yo;
231
- const gd = nt, vd = Xt, hd = Ae, ls = at, Zo = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
232
- Me,
230
+ }, ot = jo, qt = ko, nt = Lo, Ee = Fo, Me = Vo, Ge = Ko, Ke = Uo, De = Wo;
231
+ const Jc = ot, Qc = qt, ed = De, Jr = nt, qo = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
232
+ Ee,
233
233
  {
234
- className: E(
234
+ className: I(
235
235
  "al-fixed al-inset-0 al-z-50 al-bg-black/80 al- data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0",
236
236
  e
237
237
  ),
@@ -239,8 +239,8 @@ const gd = nt, vd = Xt, hd = Ae, ls = at, Zo = s.forwardRef(({ className: e, ...
239
239
  ref: t
240
240
  }
241
241
  ));
242
- Zo.displayName = Me.displayName;
243
- const is = Ut(
242
+ qo.displayName = Ee.displayName;
243
+ const Qr = Bt(
244
244
  "al-fixed al-z-50 al-gap-4 al-bg-background al-p-6 al-shadow-lg al-transition al-ease-in-out data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-duration-300 data-[state=open]:al-duration-500",
245
245
  {
246
246
  variants: {
@@ -255,107 +255,107 @@ const is = Ut(
255
255
  side: "right"
256
256
  }
257
257
  }
258
- ), cs = s.forwardRef(({ side: e = "right", className: o, children: t, ...n }, a) => /* @__PURE__ */ r.jsxs(ls, { children: [
259
- /* @__PURE__ */ r.jsx(Zo, {}),
260
- /* @__PURE__ */ r.jsxs(De, { ref: a, className: E(is({ side: e }), o), ...n, children: [
258
+ ), es = s.forwardRef(({ side: e = "right", className: o, children: t, ...n }, a) => /* @__PURE__ */ r.jsxs(Jr, { children: [
259
+ /* @__PURE__ */ r.jsx(qo, {}),
260
+ /* @__PURE__ */ r.jsxs(Me, { ref: a, className: I(Qr({ side: e }), o), ...n, children: [
261
261
  t,
262
- /* @__PURE__ */ r.jsxs(Ae, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-secondary", children: [
263
- /* @__PURE__ */ r.jsx(Ro, { className: "al-h-4 al-w-4" }),
262
+ /* @__PURE__ */ r.jsxs(De, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-secondary", children: [
263
+ /* @__PURE__ */ r.jsx(_o, { className: "al-h-4 al-w-4" }),
264
264
  /* @__PURE__ */ r.jsx("span", { className: "al-sr-only", children: "Close" })
265
265
  ] })
266
266
  ] })
267
267
  ] }));
268
- cs.displayName = De.displayName;
269
- const ds = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
268
+ es.displayName = Me.displayName;
269
+ const ts = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
270
270
  "div",
271
271
  {
272
- className: E("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
272
+ className: I("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
273
273
  ...o
274
274
  }
275
275
  );
276
- ds.displayName = "SheetHeader";
277
- const us = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
276
+ ts.displayName = "SheetHeader";
277
+ const os = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
278
278
  "div",
279
279
  {
280
- className: E(
280
+ className: I(
281
281
  "al-flex al-flex-col-reverse sm:al-flex-row sm:al-justify-end sm:al-space-x-2",
282
282
  e
283
283
  ),
284
284
  ...o
285
285
  }
286
286
  );
287
- us.displayName = "SheetFooter";
288
- const ps = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
289
- Ke,
287
+ os.displayName = "SheetFooter";
288
+ const ns = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
289
+ Ge,
290
290
  {
291
291
  ref: t,
292
- className: E("al-text-lg al-font-semibold al-text-foreground", e),
292
+ className: I("al-text-lg al-font-semibold al-text-foreground", e),
293
293
  ...o
294
294
  }
295
295
  ));
296
- ps.displayName = Ke.displayName;
297
- const fs = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
298
- Be,
296
+ ns.displayName = Ge.displayName;
297
+ const as = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
298
+ Ke,
299
299
  {
300
300
  ref: t,
301
- className: E("al-text-sm al-text-muted-foreground", e),
301
+ className: I("al-text-sm al-text-muted-foreground", e),
302
302
  ...o
303
303
  }
304
304
  ));
305
- fs.displayName = Be.displayName;
306
- function rt(e) {
307
- const o = e + "CollectionProvider", [t, n] = de(o), [a, l] = t(
305
+ as.displayName = Ke.displayName;
306
+ function at(e) {
307
+ const o = e + "CollectionProvider", [t, n] = ue(o), [a, l] = t(
308
308
  o,
309
309
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
310
- ), i = (b) => {
311
- const { scope: g, children: m } = b, y = W.useRef(null), w = W.useRef(/* @__PURE__ */ new Map()).current;
312
- return /* @__PURE__ */ r.jsx(a, { scope: g, itemMap: w, collectionRef: y, children: m });
310
+ ), i = (w) => {
311
+ const { scope: g, children: m } = w, y = W.useRef(null), S = W.useRef(/* @__PURE__ */ new Map()).current;
312
+ return /* @__PURE__ */ r.jsx(a, { scope: g, itemMap: S, collectionRef: y, children: m });
313
313
  };
314
314
  i.displayName = o;
315
315
  const c = e + "CollectionSlot", d = W.forwardRef(
316
- (b, g) => {
317
- const { scope: m, children: y } = b, w = l(c, m), h = G(g, w.collectionRef);
318
- return /* @__PURE__ */ r.jsx($e, { ref: h, children: y });
316
+ (w, g) => {
317
+ const { scope: m, children: y } = w, S = l(c, m), h = B(g, S.collectionRef);
318
+ return /* @__PURE__ */ r.jsx(ke, { ref: h, children: y });
319
319
  }
320
320
  );
321
321
  d.displayName = c;
322
322
  const u = e + "CollectionItemSlot", f = "data-radix-collection-item", p = W.forwardRef(
323
- (b, g) => {
324
- const { scope: m, children: y, ...w } = b, h = W.useRef(null), S = G(g, h), D = l(u, m);
325
- return W.useEffect(() => (D.itemMap.set(h, { ref: h, ...w }), () => void D.itemMap.delete(h))), /* @__PURE__ */ r.jsx($e, { [f]: "", ref: S, children: y });
323
+ (w, g) => {
324
+ const { scope: m, children: y, ...S } = w, h = W.useRef(null), C = B(g, h), F = l(u, m);
325
+ return W.useEffect(() => (F.itemMap.set(h, { ref: h, ...S }), () => void F.itemMap.delete(h))), /* @__PURE__ */ r.jsx(ke, { [f]: "", ref: C, children: y });
326
326
  }
327
327
  );
328
328
  p.displayName = u;
329
- function v(b) {
330
- const g = l(e + "CollectionConsumer", b);
329
+ function x(w) {
330
+ const g = l(e + "CollectionConsumer", w);
331
331
  return W.useCallback(() => {
332
332
  const y = g.collectionRef.current;
333
333
  if (!y) return [];
334
- const w = Array.from(y.querySelectorAll(`[${f}]`));
334
+ const S = Array.from(y.querySelectorAll(`[${f}]`));
335
335
  return Array.from(g.itemMap.values()).sort(
336
- (D, j) => w.indexOf(D.ref.current) - w.indexOf(j.ref.current)
336
+ (F, k) => S.indexOf(F.ref.current) - S.indexOf(k.ref.current)
337
337
  );
338
338
  }, [g.collectionRef, g.itemMap]);
339
339
  }
340
340
  return [
341
341
  { Provider: i, Slot: d, ItemSlot: p },
342
- v,
342
+ x,
343
343
  n
344
344
  ];
345
345
  }
346
- var ms = s.createContext(void 0);
347
- function st(e) {
348
- const o = s.useContext(ms);
346
+ var rs = s.createContext(void 0);
347
+ function rt(e) {
348
+ const o = s.useContext(rs);
349
349
  return e || o || "ltr";
350
350
  }
351
- var xt = "rovingFocusGroup.onEntryFocus", gs = { bubbles: !1, cancelable: !0 }, lt = "RovingFocusGroup", [Rt, Jo, vs] = rt(lt), [hs, Qo] = de(
352
- lt,
353
- [vs]
354
- ), [xs, bs] = hs(lt), en = s.forwardRef(
355
- (e, o) => /* @__PURE__ */ r.jsx(Rt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r.jsx(Rt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r.jsx(ys, { ...e, ref: o }) }) })
356
- );
357
- en.displayName = lt;
358
- var ys = s.forwardRef((e, o) => {
351
+ var ht = "rovingFocusGroup.onEntryFocus", ss = { bubbles: !1, cancelable: !0 }, st = "RovingFocusGroup", [Nt, Xo, ls] = at(st), [is, Zo] = ue(
352
+ st,
353
+ [ls]
354
+ ), [cs, ds] = is(st), Jo = s.forwardRef(
355
+ (e, o) => /* @__PURE__ */ r.jsx(Nt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r.jsx(Nt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r.jsx(us, { ...e, ref: o }) }) })
356
+ );
357
+ Jo.displayName = st;
358
+ var us = s.forwardRef((e, o) => {
359
359
  const {
360
360
  __scopeRovingFocusGroup: t,
361
361
  orientation: n,
@@ -367,17 +367,17 @@ var ys = s.forwardRef((e, o) => {
367
367
  onEntryFocus: u,
368
368
  preventScrollOnEntryFocus: f = !1,
369
369
  ...p
370
- } = e, v = s.useRef(null), b = G(o, v), g = st(l), [m = null, y] = ce({
370
+ } = e, x = s.useRef(null), w = B(o, x), g = rt(l), [m = null, y] = ce({
371
371
  prop: i,
372
372
  defaultProp: c,
373
373
  onChange: d
374
- }), [w, h] = s.useState(!1), S = Ge(u), D = Jo(t), j = s.useRef(!1), [k, T] = s.useState(0);
374
+ }), [S, h] = s.useState(!1), C = Ve(u), F = Xo(t), k = s.useRef(!1), [j, D] = s.useState(0);
375
375
  return s.useEffect(() => {
376
- const $ = v.current;
377
- if ($)
378
- return $.addEventListener(xt, S), () => $.removeEventListener(xt, S);
379
- }, [S]), /* @__PURE__ */ r.jsx(
380
- xs,
376
+ const O = x.current;
377
+ if (O)
378
+ return O.addEventListener(ht, C), () => O.removeEventListener(ht, C);
379
+ }, [C]), /* @__PURE__ */ r.jsx(
380
+ cs,
381
381
  {
382
382
  scope: t,
383
383
  orientation: n,
@@ -385,48 +385,48 @@ var ys = s.forwardRef((e, o) => {
385
385
  loop: a,
386
386
  currentTabStopId: m,
387
387
  onItemFocus: s.useCallback(
388
- ($) => y($),
388
+ (O) => y(O),
389
389
  [y]
390
390
  ),
391
391
  onItemShiftTab: s.useCallback(() => h(!0), []),
392
392
  onFocusableItemAdd: s.useCallback(
393
- () => T(($) => $ + 1),
393
+ () => D((O) => O + 1),
394
394
  []
395
395
  ),
396
396
  onFocusableItemRemove: s.useCallback(
397
- () => T(($) => $ - 1),
397
+ () => D((O) => O - 1),
398
398
  []
399
399
  ),
400
400
  children: /* @__PURE__ */ r.jsx(
401
- A.div,
401
+ T.div,
402
402
  {
403
- tabIndex: w || k === 0 ? -1 : 0,
403
+ tabIndex: S || j === 0 ? -1 : 0,
404
404
  "data-orientation": n,
405
405
  ...p,
406
- ref: b,
406
+ ref: w,
407
407
  style: { outline: "none", ...e.style },
408
- onMouseDown: _(e.onMouseDown, () => {
409
- j.current = !0;
408
+ onMouseDown: N(e.onMouseDown, () => {
409
+ k.current = !0;
410
410
  }),
411
- onFocus: _(e.onFocus, ($) => {
412
- const U = !j.current;
413
- if ($.target === $.currentTarget && U && !w) {
414
- const H = new CustomEvent(xt, gs);
415
- if ($.currentTarget.dispatchEvent(H), !H.defaultPrevented) {
416
- const q = D().filter((V) => V.focusable), X = q.find((V) => V.active), oe = q.find((V) => V.id === m), Z = [X, oe, ...q].filter(
411
+ onFocus: N(e.onFocus, (O) => {
412
+ const U = !k.current;
413
+ if (O.target === O.currentTarget && U && !S) {
414
+ const H = new CustomEvent(ht, ss);
415
+ if (O.currentTarget.dispatchEvent(H), !H.defaultPrevented) {
416
+ const q = F().filter((V) => V.focusable), X = q.find((V) => V.active), oe = q.find((V) => V.id === m), Z = [X, oe, ...q].filter(
417
417
  Boolean
418
418
  ).map((V) => V.ref.current);
419
- nn(Z, f);
419
+ tn(Z, f);
420
420
  }
421
421
  }
422
- j.current = !1;
422
+ k.current = !1;
423
423
  }),
424
- onBlur: _(e.onBlur, () => h(!1))
424
+ onBlur: N(e.onBlur, () => h(!1))
425
425
  }
426
426
  )
427
427
  }
428
428
  );
429
- }), tn = "RovingFocusGroupItem", on = s.forwardRef(
429
+ }), Qo = "RovingFocusGroupItem", en = s.forwardRef(
430
430
  (e, o) => {
431
431
  const {
432
432
  __scopeRovingFocusGroup: t,
@@ -434,46 +434,46 @@ var ys = s.forwardRef((e, o) => {
434
434
  active: a = !1,
435
435
  tabStopId: l,
436
436
  ...i
437
- } = e, c = ee(), d = l || c, u = bs(tn, t), f = u.currentTabStopId === d, p = Jo(t), { onFocusableItemAdd: v, onFocusableItemRemove: b } = u;
437
+ } = e, c = ee(), d = l || c, u = ds(Qo, t), f = u.currentTabStopId === d, p = Xo(t), { onFocusableItemAdd: x, onFocusableItemRemove: w } = u;
438
438
  return s.useEffect(() => {
439
439
  if (n)
440
- return v(), () => b();
441
- }, [n, v, b]), /* @__PURE__ */ r.jsx(
442
- Rt.ItemSlot,
440
+ return x(), () => w();
441
+ }, [n, x, w]), /* @__PURE__ */ r.jsx(
442
+ Nt.ItemSlot,
443
443
  {
444
444
  scope: t,
445
445
  id: d,
446
446
  focusable: n,
447
447
  active: a,
448
448
  children: /* @__PURE__ */ r.jsx(
449
- A.span,
449
+ T.span,
450
450
  {
451
451
  tabIndex: f ? 0 : -1,
452
452
  "data-orientation": u.orientation,
453
453
  ...i,
454
454
  ref: o,
455
- onMouseDown: _(e.onMouseDown, (g) => {
455
+ onMouseDown: N(e.onMouseDown, (g) => {
456
456
  n ? u.onItemFocus(d) : g.preventDefault();
457
457
  }),
458
- onFocus: _(e.onFocus, () => u.onItemFocus(d)),
459
- onKeyDown: _(e.onKeyDown, (g) => {
458
+ onFocus: N(e.onFocus, () => u.onItemFocus(d)),
459
+ onKeyDown: N(e.onKeyDown, (g) => {
460
460
  if (g.key === "Tab" && g.shiftKey) {
461
461
  u.onItemShiftTab();
462
462
  return;
463
463
  }
464
464
  if (g.target !== g.currentTarget) return;
465
- const m = Ss(g, u.orientation, u.dir);
465
+ const m = ms(g, u.orientation, u.dir);
466
466
  if (m !== void 0) {
467
467
  if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
468
468
  g.preventDefault();
469
- let w = p().filter((h) => h.focusable).map((h) => h.ref.current);
470
- if (m === "last") w.reverse();
469
+ let S = p().filter((h) => h.focusable).map((h) => h.ref.current);
470
+ if (m === "last") S.reverse();
471
471
  else if (m === "prev" || m === "next") {
472
- m === "prev" && w.reverse();
473
- const h = w.indexOf(g.currentTarget);
474
- w = u.loop ? _s(w, h + 1) : w.slice(h + 1);
472
+ m === "prev" && S.reverse();
473
+ const h = S.indexOf(g.currentTarget);
474
+ S = u.loop ? gs(S, h + 1) : S.slice(h + 1);
475
475
  }
476
- setTimeout(() => nn(w));
476
+ setTimeout(() => tn(S));
477
477
  }
478
478
  })
479
479
  }
@@ -482,8 +482,8 @@ var ys = s.forwardRef((e, o) => {
482
482
  );
483
483
  }
484
484
  );
485
- on.displayName = tn;
486
- var ws = {
485
+ en.displayName = Qo;
486
+ var ps = {
487
487
  ArrowLeft: "prev",
488
488
  ArrowUp: "prev",
489
489
  ArrowRight: "next",
@@ -493,32 +493,28 @@ var ws = {
493
493
  PageDown: "last",
494
494
  End: "last"
495
495
  };
496
- function Cs(e, o) {
496
+ function fs(e, o) {
497
497
  return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
498
498
  }
499
- function Ss(e, o, t) {
500
- const n = Cs(e.key, t);
499
+ function ms(e, o, t) {
500
+ const n = fs(e.key, t);
501
501
  if (!(o === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(o === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
502
- return ws[n];
502
+ return ps[n];
503
503
  }
504
- function nn(e, o = !1) {
504
+ function tn(e, o = !1) {
505
505
  const t = document.activeElement;
506
506
  for (const n of e)
507
507
  if (n === t || (n.focus({ preventScroll: o }), document.activeElement !== t)) return;
508
508
  }
509
- function _s(e, o) {
509
+ function gs(e, o) {
510
510
  return e.map((t, n) => e[(o + n) % e.length]);
511
511
  }
512
- var Ns = en, Rs = on;
513
- function an(e) {
514
- const o = s.useRef({ value: e, previous: e });
515
- return s.useMemo(() => (o.current.value !== e && (o.current.previous = o.current.value, o.current.value = e), o.current.previous), [e]);
516
- }
517
- const Es = s.forwardRef(
512
+ var vs = Jo, hs = en;
513
+ const xs = s.forwardRef(
518
514
  ({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
519
515
  "textarea",
520
516
  {
521
- className: E(
517
+ className: I(
522
518
  "al-flex al-min-h-[80px] al-w-full al-rounded-md al-border al-border-input al-bg-background al-px-3 al-py-2 al-text-base al-ring-offset-background placeholder:al-text-muted-foreground focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 md:al-text-sm",
523
519
  e
524
520
  ),
@@ -527,28 +523,28 @@ const Es = s.forwardRef(
527
523
  }
528
524
  )
529
525
  );
530
- Es.displayName = "Textarea";
531
- var Et = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], rn = ["ArrowUp", "PageDown", "End"], Ms = [...Is, ...rn], Ds = {
532
- ltr: [...Et, "ArrowRight"],
533
- rtl: [...Et, "ArrowLeft"]
534
- }, As = {
526
+ xs.displayName = "Textarea";
527
+ var Rt = ["Enter", " "], ws = ["ArrowDown", "PageUp", "Home"], on = ["ArrowUp", "PageDown", "End"], ys = [...ws, ...on], bs = {
528
+ ltr: [...Rt, "ArrowRight"],
529
+ rtl: [...Rt, "ArrowLeft"]
530
+ }, Ss = {
535
531
  ltr: ["ArrowLeft"],
536
532
  rtl: ["ArrowRight"]
537
- }, Ue = "Menu", [Le, Ts, Ps] = rt(Ue), [Re, sn] = de(Ue, [
538
- Ps,
539
- ot,
540
- Qo
541
- ]), He = ot(), ln = Qo(), [cn, ve] = Re(Ue), [js, We] = Re(Ue), dn = (e) => {
542
- const { __scopeMenu: o, open: t = !1, children: n, dir: a, onOpenChange: l, modal: i = !0 } = e, c = He(o), [d, u] = s.useState(null), f = s.useRef(!1), p = Ge(l), v = st(a);
533
+ }, Be = "Menu", [$e, Cs, _s] = at(Be), [Ne, nn] = ue(Be, [
534
+ _s,
535
+ tt,
536
+ Zo
537
+ ]), Ue = tt(), an = Zo(), [rn, ge] = Ne(Be), [Ns, He] = Ne(Be), sn = (e) => {
538
+ const { __scopeMenu: o, open: t = !1, children: n, dir: a, onOpenChange: l, modal: i = !0 } = e, c = Ue(o), [d, u] = s.useState(null), f = s.useRef(!1), p = Ve(l), x = rt(a);
543
539
  return s.useEffect(() => {
544
- const b = () => {
540
+ const w = () => {
545
541
  f.current = !0, document.addEventListener("pointerdown", g, { capture: !0, once: !0 }), document.addEventListener("pointermove", g, { capture: !0, once: !0 });
546
542
  }, g = () => f.current = !1;
547
- return document.addEventListener("keydown", b, { capture: !0 }), () => {
548
- document.removeEventListener("keydown", b, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
543
+ return document.addEventListener("keydown", w, { capture: !0 }), () => {
544
+ document.removeEventListener("keydown", w, { capture: !0 }), document.removeEventListener("pointerdown", g, { capture: !0 }), document.removeEventListener("pointermove", g, { capture: !0 });
549
545
  };
550
- }, []), /* @__PURE__ */ r.jsx(Ht, { ...c, children: /* @__PURE__ */ r.jsx(
551
- cn,
546
+ }, []), /* @__PURE__ */ r.jsx(Ut, { ...c, children: /* @__PURE__ */ r.jsx(
547
+ rn,
552
548
  {
553
549
  scope: o,
554
550
  open: t,
@@ -556,12 +552,12 @@ var Et = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], rn = ["ArrowUp",
556
552
  content: d,
557
553
  onContentChange: u,
558
554
  children: /* @__PURE__ */ r.jsx(
559
- js,
555
+ Ns,
560
556
  {
561
557
  scope: o,
562
558
  onClose: s.useCallback(() => p(!1), [p]),
563
559
  isUsingKeyboardRef: f,
564
- dir: v,
560
+ dir: x,
565
561
  modal: i,
566
562
  children: n
567
563
  }
@@ -569,41 +565,41 @@ var Et = ["Enter", " "], Is = ["ArrowDown", "PageUp", "Home"], rn = ["ArrowUp",
569
565
  }
570
566
  ) });
571
567
  };
572
- dn.displayName = Ue;
573
- var Os = "MenuAnchor", Zt = s.forwardRef(
568
+ sn.displayName = Be;
569
+ var Rs = "MenuAnchor", Xt = s.forwardRef(
574
570
  (e, o) => {
575
- const { __scopeMenu: t, ...n } = e, a = He(t);
576
- return /* @__PURE__ */ r.jsx(Io, { ...a, ...n, ref: o });
571
+ const { __scopeMenu: t, ...n } = e, a = Ue(t);
572
+ return /* @__PURE__ */ r.jsx(Ro, { ...a, ...n, ref: o });
577
573
  }
578
574
  );
579
- Zt.displayName = Os;
580
- var Jt = "MenuPortal", [ks, un] = Re(Jt, {
575
+ Xt.displayName = Rs;
576
+ var Zt = "MenuPortal", [Is, ln] = Ne(Zt, {
581
577
  forceMount: void 0
582
- }), pn = (e) => {
583
- const { __scopeMenu: o, forceMount: t, children: n, container: a } = e, l = ve(Jt, o);
584
- return /* @__PURE__ */ r.jsx(ks, { scope: o, forceMount: t, children: /* @__PURE__ */ r.jsx(pe, { present: t || l.open, children: /* @__PURE__ */ r.jsx(Bt, { asChild: !0, container: a, children: n }) }) });
578
+ }), cn = (e) => {
579
+ const { __scopeMenu: o, forceMount: t, children: n, container: a } = e, l = ge(Zt, o);
580
+ return /* @__PURE__ */ r.jsx(Is, { scope: o, forceMount: t, children: /* @__PURE__ */ r.jsx(me, { present: t || l.open, children: /* @__PURE__ */ r.jsx(Kt, { asChild: !0, container: a, children: n }) }) });
585
581
  };
586
- pn.displayName = Jt;
587
- var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
582
+ cn.displayName = Zt;
583
+ var se = "MenuContent", [Es, Jt] = Ne(se), dn = s.forwardRef(
588
584
  (e, o) => {
589
- const t = un(se, e.__scopeMenu), { forceMount: n = t.forceMount, ...a } = e, l = ve(se, e.__scopeMenu), i = We(se, e.__scopeMenu);
590
- return /* @__PURE__ */ r.jsx(Le.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(pe, { present: n || l.open, children: /* @__PURE__ */ r.jsx(Le.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ r.jsx(Ls, { ...a, ref: o }) : /* @__PURE__ */ r.jsx(Fs, { ...a, ref: o }) }) }) });
585
+ const t = ln(se, e.__scopeMenu), { forceMount: n = t.forceMount, ...a } = e, l = ge(se, e.__scopeMenu), i = He(se, e.__scopeMenu);
586
+ return /* @__PURE__ */ r.jsx($e.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(me, { present: n || l.open, children: /* @__PURE__ */ r.jsx($e.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ r.jsx(Ms, { ...a, ref: o }) : /* @__PURE__ */ r.jsx(Ds, { ...a, ref: o }) }) }) });
591
587
  }
592
- ), Ls = s.forwardRef(
588
+ ), Ms = s.forwardRef(
593
589
  (e, o) => {
594
- const t = ve(se, e.__scopeMenu), n = s.useRef(null), a = G(o, n);
590
+ const t = ge(se, e.__scopeMenu), n = s.useRef(null), a = B(o, n);
595
591
  return s.useEffect(() => {
596
592
  const l = n.current;
597
- if (l) return Ft(l);
593
+ if (l) return Lt(l);
598
594
  }, []), /* @__PURE__ */ r.jsx(
599
- eo,
595
+ Qt,
600
596
  {
601
597
  ...e,
602
598
  ref: a,
603
599
  trapFocus: t.open,
604
600
  disableOutsidePointerEvents: t.open,
605
601
  disableOutsideScroll: !0,
606
- onFocusOutside: _(
602
+ onFocusOutside: N(
607
603
  e.onFocusOutside,
608
604
  (l) => l.preventDefault(),
609
605
  { checkForDefaultPrevented: !1 }
@@ -612,10 +608,10 @@ var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
612
608
  }
613
609
  );
614
610
  }
615
- ), Fs = s.forwardRef((e, o) => {
616
- const t = ve(se, e.__scopeMenu);
611
+ ), Ds = s.forwardRef((e, o) => {
612
+ const t = ge(se, e.__scopeMenu);
617
613
  return /* @__PURE__ */ r.jsx(
618
- eo,
614
+ Qt,
619
615
  {
620
616
  ...e,
621
617
  ref: o,
@@ -625,7 +621,7 @@ var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
625
621
  onDismiss: () => t.onOpenChange(!1)
626
622
  }
627
623
  );
628
- }), eo = s.forwardRef(
624
+ }), Qt = s.forwardRef(
629
625
  (e, o) => {
630
626
  const {
631
627
  __scopeMenu: t,
@@ -638,24 +634,24 @@ var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
638
634
  onEscapeKeyDown: u,
639
635
  onPointerDownOutside: f,
640
636
  onFocusOutside: p,
641
- onInteractOutside: v,
642
- onDismiss: b,
637
+ onInteractOutside: x,
638
+ onDismiss: w,
643
639
  disableOutsideScroll: g,
644
640
  ...m
645
- } = e, y = ve(se, t), w = We(se, t), h = He(t), S = ln(t), D = Ts(t), [j, k] = s.useState(null), T = s.useRef(null), $ = G(o, T, y.onContentChange), U = s.useRef(0), H = s.useRef(""), q = s.useRef(0), X = s.useRef(null), oe = s.useRef("right"), Y = s.useRef(0), Z = g ? Lt : s.Fragment, V = g ? { as: $e, allowPinchZoom: !0 } : void 0, ne = (R) => {
646
- var C, P;
647
- const Q = H.current + R, te = D().filter((L) => !L.disabled), x = document.activeElement, I = (C = te.find((L) => L.ref.current === x)) == null ? void 0 : C.textValue, M = te.map((L) => L.textValue), N = Zs(M, Q, I), O = (P = te.find((L) => L.textValue === N)) == null ? void 0 : P.ref.current;
648
- (function L(F) {
649
- H.current = F, window.clearTimeout(U.current), F !== "" && (U.current = window.setTimeout(() => L(""), 1e3));
650
- })(Q), O && setTimeout(() => O.focus());
641
+ } = e, y = ge(se, t), S = He(se, t), h = Ue(t), C = an(t), F = Cs(t), [k, j] = s.useState(null), D = s.useRef(null), O = B(o, D, y.onContentChange), U = s.useRef(0), H = s.useRef(""), q = s.useRef(0), X = s.useRef(null), oe = s.useRef("right"), z = s.useRef(0), Z = g ? $t : s.Fragment, V = g ? { as: ke, allowPinchZoom: !0 } : void 0, ne = (R) => {
642
+ var b, A;
643
+ const Q = H.current + R, te = F().filter(($) => !$.disabled), v = document.activeElement, E = (b = te.find(($) => $.ref.current === v)) == null ? void 0 : b.textValue, M = te.map(($) => $.textValue), _ = Ks(M, Q, E), P = (A = te.find(($) => $.textValue === _)) == null ? void 0 : A.ref.current;
644
+ (function $(L) {
645
+ H.current = L, window.clearTimeout(U.current), L !== "" && (U.current = window.setTimeout(() => $(""), 1e3));
646
+ })(Q), P && setTimeout(() => P.focus());
651
647
  };
652
- s.useEffect(() => () => window.clearTimeout(U.current), []), Vt();
648
+ s.useEffect(() => () => window.clearTimeout(U.current), []), Ft();
653
649
  const J = s.useCallback((R) => {
654
- var te, x;
655
- return oe.current === ((te = X.current) == null ? void 0 : te.side) && Qs(R, (x = X.current) == null ? void 0 : x.area);
650
+ var te, v;
651
+ return oe.current === ((te = X.current) == null ? void 0 : te.side) && Us(R, (v = X.current) == null ? void 0 : v.area);
656
652
  }, []);
657
653
  return /* @__PURE__ */ r.jsx(
658
- $s,
654
+ Es,
659
655
  {
660
656
  scope: t,
661
657
  searchRef: H,
@@ -668,7 +664,7 @@ var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
668
664
  onItemLeave: s.useCallback(
669
665
  (R) => {
670
666
  var Q;
671
- J(R) || ((Q = T.current) == null || Q.focus(), k(null));
667
+ J(R) || ((Q = D.current) == null || Q.focus(), j(null));
672
668
  },
673
669
  [J]
674
670
  ),
@@ -683,70 +679,70 @@ var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
683
679
  X.current = R;
684
680
  }, []),
685
681
  children: /* @__PURE__ */ r.jsx(Z, { ...V, children: /* @__PURE__ */ r.jsx(
686
- Gt,
682
+ Vt,
687
683
  {
688
684
  asChild: !0,
689
685
  trapped: a,
690
- onMountAutoFocus: _(l, (R) => {
686
+ onMountAutoFocus: N(l, (R) => {
691
687
  var Q;
692
- R.preventDefault(), (Q = T.current) == null || Q.focus({ preventScroll: !0 });
688
+ R.preventDefault(), (Q = D.current) == null || Q.focus({ preventScroll: !0 });
693
689
  }),
694
690
  onUnmountAutoFocus: i,
695
691
  children: /* @__PURE__ */ r.jsx(
696
- Kt,
692
+ Gt,
697
693
  {
698
694
  asChild: !0,
699
695
  disableOutsidePointerEvents: c,
700
696
  onEscapeKeyDown: u,
701
697
  onPointerDownOutside: f,
702
698
  onFocusOutside: p,
703
- onInteractOutside: v,
704
- onDismiss: b,
699
+ onInteractOutside: x,
700
+ onDismiss: w,
705
701
  children: /* @__PURE__ */ r.jsx(
706
- Ns,
702
+ vs,
707
703
  {
708
704
  asChild: !0,
709
- ...S,
710
- dir: w.dir,
705
+ ...C,
706
+ dir: S.dir,
711
707
  orientation: "vertical",
712
708
  loop: n,
713
- currentTabStopId: j,
714
- onCurrentTabStopIdChange: k,
715
- onEntryFocus: _(d, (R) => {
716
- w.isUsingKeyboardRef.current || R.preventDefault();
709
+ currentTabStopId: k,
710
+ onCurrentTabStopIdChange: j,
711
+ onEntryFocus: N(d, (R) => {
712
+ S.isUsingKeyboardRef.current || R.preventDefault();
717
713
  }),
718
714
  preventScrollOnEntryFocus: !0,
719
715
  children: /* @__PURE__ */ r.jsx(
720
- Mo,
716
+ Io,
721
717
  {
722
718
  role: "menu",
723
719
  "aria-orientation": "vertical",
724
- "data-state": Dn(y.open),
720
+ "data-state": In(y.open),
725
721
  "data-radix-menu-content": "",
726
- dir: w.dir,
722
+ dir: S.dir,
727
723
  ...h,
728
724
  ...m,
729
- ref: $,
725
+ ref: O,
730
726
  style: { outline: "none", ...m.style },
731
- onKeyDown: _(m.onKeyDown, (R) => {
732
- const te = R.target.closest("[data-radix-menu-content]") === R.currentTarget, x = R.ctrlKey || R.altKey || R.metaKey, I = R.key.length === 1;
733
- te && (R.key === "Tab" && R.preventDefault(), !x && I && ne(R.key));
734
- const M = T.current;
735
- if (R.target !== M || !Ms.includes(R.key)) return;
727
+ onKeyDown: N(m.onKeyDown, (R) => {
728
+ const te = R.target.closest("[data-radix-menu-content]") === R.currentTarget, v = R.ctrlKey || R.altKey || R.metaKey, E = R.key.length === 1;
729
+ te && (R.key === "Tab" && R.preventDefault(), !v && E && ne(R.key));
730
+ const M = D.current;
731
+ if (R.target !== M || !ys.includes(R.key)) return;
736
732
  R.preventDefault();
737
- const O = D().filter((C) => !C.disabled).map((C) => C.ref.current);
738
- rn.includes(R.key) && O.reverse(), qs(O);
733
+ const P = F().filter((b) => !b.disabled).map((b) => b.ref.current);
734
+ on.includes(R.key) && P.reverse(), Vs(P);
739
735
  }),
740
- onBlur: _(e.onBlur, (R) => {
736
+ onBlur: N(e.onBlur, (R) => {
741
737
  R.currentTarget.contains(R.target) || (window.clearTimeout(U.current), H.current = "");
742
738
  }),
743
- onPointerMove: _(
739
+ onPointerMove: N(
744
740
  e.onPointerMove,
745
- Fe((R) => {
746
- const Q = R.target, te = Y.current !== R.clientX;
741
+ Le((R) => {
742
+ const Q = R.target, te = z.current !== R.clientX;
747
743
  if (R.currentTarget.contains(Q) && te) {
748
- const x = R.clientX > Y.current ? "right" : "left";
749
- oe.current = x, Y.current = R.clientX;
744
+ const v = R.clientX > z.current ? "right" : "left";
745
+ oe.current = v, z.current = R.clientX;
750
746
  }
751
747
  })
752
748
  )
@@ -762,68 +758,68 @@ var se = "MenuContent", [$s, Qt] = Re(se), fn = s.forwardRef(
762
758
  );
763
759
  }
764
760
  );
765
- fn.displayName = se;
766
- var Vs = "MenuGroup", to = s.forwardRef(
761
+ dn.displayName = se;
762
+ var As = "MenuGroup", eo = s.forwardRef(
767
763
  (e, o) => {
768
764
  const { __scopeMenu: t, ...n } = e;
769
- return /* @__PURE__ */ r.jsx(A.div, { role: "group", ...n, ref: o });
765
+ return /* @__PURE__ */ r.jsx(T.div, { role: "group", ...n, ref: o });
770
766
  }
771
767
  );
772
- to.displayName = Vs;
773
- var Gs = "MenuLabel", mn = s.forwardRef(
768
+ eo.displayName = As;
769
+ var Ts = "MenuLabel", un = s.forwardRef(
774
770
  (e, o) => {
775
771
  const { __scopeMenu: t, ...n } = e;
776
- return /* @__PURE__ */ r.jsx(A.div, { ...n, ref: o });
772
+ return /* @__PURE__ */ r.jsx(T.div, { ...n, ref: o });
777
773
  }
778
774
  );
779
- mn.displayName = Gs;
780
- var Je = "MenuItem", xo = "menu.itemSelect", it = s.forwardRef(
775
+ un.displayName = Ts;
776
+ var Ze = "MenuItem", vo = "menu.itemSelect", lt = s.forwardRef(
781
777
  (e, o) => {
782
- const { disabled: t = !1, onSelect: n, ...a } = e, l = s.useRef(null), i = We(Je, e.__scopeMenu), c = Qt(Je, e.__scopeMenu), d = G(o, l), u = s.useRef(!1), f = () => {
778
+ const { disabled: t = !1, onSelect: n, ...a } = e, l = s.useRef(null), i = He(Ze, e.__scopeMenu), c = Jt(Ze, e.__scopeMenu), d = B(o, l), u = s.useRef(!1), f = () => {
783
779
  const p = l.current;
784
780
  if (!t && p) {
785
- const v = new CustomEvent(xo, { bubbles: !0, cancelable: !0 });
786
- p.addEventListener(xo, (b) => n == null ? void 0 : n(b), { once: !0 }), zr(p, v), v.defaultPrevented ? u.current = !1 : i.onClose();
781
+ const x = new CustomEvent(vo, { bubbles: !0, cancelable: !0 });
782
+ p.addEventListener(vo, (w) => n == null ? void 0 : n(w), { once: !0 }), Fr(p, x), x.defaultPrevented ? u.current = !1 : i.onClose();
787
783
  }
788
784
  };
789
785
  return /* @__PURE__ */ r.jsx(
790
- gn,
786
+ pn,
791
787
  {
792
788
  ...a,
793
789
  ref: d,
794
790
  disabled: t,
795
- onClick: _(e.onClick, f),
791
+ onClick: N(e.onClick, f),
796
792
  onPointerDown: (p) => {
797
- var v;
798
- (v = e.onPointerDown) == null || v.call(e, p), u.current = !0;
793
+ var x;
794
+ (x = e.onPointerDown) == null || x.call(e, p), u.current = !0;
799
795
  },
800
- onPointerUp: _(e.onPointerUp, (p) => {
801
- var v;
802
- u.current || (v = p.currentTarget) == null || v.click();
796
+ onPointerUp: N(e.onPointerUp, (p) => {
797
+ var x;
798
+ u.current || (x = p.currentTarget) == null || x.click();
803
799
  }),
804
- onKeyDown: _(e.onKeyDown, (p) => {
805
- const v = c.searchRef.current !== "";
806
- t || v && p.key === " " || Et.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
800
+ onKeyDown: N(e.onKeyDown, (p) => {
801
+ const x = c.searchRef.current !== "";
802
+ t || x && p.key === " " || Rt.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
807
803
  })
808
804
  }
809
805
  );
810
806
  }
811
807
  );
812
- it.displayName = Je;
813
- var gn = s.forwardRef(
808
+ lt.displayName = Ze;
809
+ var pn = s.forwardRef(
814
810
  (e, o) => {
815
- const { __scopeMenu: t, disabled: n = !1, textValue: a, ...l } = e, i = Qt(Je, t), c = ln(t), d = s.useRef(null), u = G(o, d), [f, p] = s.useState(!1), [v, b] = s.useState("");
811
+ const { __scopeMenu: t, disabled: n = !1, textValue: a, ...l } = e, i = Jt(Ze, t), c = an(t), d = s.useRef(null), u = B(o, d), [f, p] = s.useState(!1), [x, w] = s.useState("");
816
812
  return s.useEffect(() => {
817
813
  const g = d.current;
818
- g && b((g.textContent ?? "").trim());
814
+ g && w((g.textContent ?? "").trim());
819
815
  }, [l.children]), /* @__PURE__ */ r.jsx(
820
- Le.ItemSlot,
816
+ $e.ItemSlot,
821
817
  {
822
818
  scope: t,
823
819
  disabled: n,
824
- textValue: a ?? v,
825
- children: /* @__PURE__ */ r.jsx(Rs, { asChild: !0, ...c, focusable: !n, children: /* @__PURE__ */ r.jsx(
826
- A.div,
820
+ textValue: a ?? x,
821
+ children: /* @__PURE__ */ r.jsx(hs, { asChild: !0, ...c, focusable: !n, children: /* @__PURE__ */ r.jsx(
822
+ T.div,
827
823
  {
828
824
  role: "menuitem",
829
825
  "data-highlighted": f ? "" : void 0,
@@ -831,67 +827,67 @@ var gn = s.forwardRef(
831
827
  "data-disabled": n ? "" : void 0,
832
828
  ...l,
833
829
  ref: u,
834
- onPointerMove: _(
830
+ onPointerMove: N(
835
831
  e.onPointerMove,
836
- Fe((g) => {
832
+ Le((g) => {
837
833
  n ? i.onItemLeave(g) : (i.onItemEnter(g), g.defaultPrevented || g.currentTarget.focus({ preventScroll: !0 }));
838
834
  })
839
835
  ),
840
- onPointerLeave: _(
836
+ onPointerLeave: N(
841
837
  e.onPointerLeave,
842
- Fe((g) => i.onItemLeave(g))
838
+ Le((g) => i.onItemLeave(g))
843
839
  ),
844
- onFocus: _(e.onFocus, () => p(!0)),
845
- onBlur: _(e.onBlur, () => p(!1))
840
+ onFocus: N(e.onFocus, () => p(!0)),
841
+ onBlur: N(e.onBlur, () => p(!1))
846
842
  }
847
843
  ) })
848
844
  }
849
845
  );
850
846
  }
851
- ), Ks = "MenuCheckboxItem", vn = s.forwardRef(
847
+ ), Ps = "MenuCheckboxItem", fn = s.forwardRef(
852
848
  (e, o) => {
853
849
  const { checked: t = !1, onCheckedChange: n, ...a } = e;
854
- return /* @__PURE__ */ r.jsx(wn, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ r.jsx(
855
- it,
850
+ return /* @__PURE__ */ r.jsx(xn, { scope: e.__scopeMenu, checked: t, children: /* @__PURE__ */ r.jsx(
851
+ lt,
856
852
  {
857
853
  role: "menuitemcheckbox",
858
- "aria-checked": Qe(t) ? "mixed" : t,
854
+ "aria-checked": Je(t) ? "mixed" : t,
859
855
  ...a,
860
856
  ref: o,
861
- "data-state": ao(t),
862
- onSelect: _(
857
+ "data-state": no(t),
858
+ onSelect: N(
863
859
  a.onSelect,
864
- () => n == null ? void 0 : n(Qe(t) ? !0 : !t),
860
+ () => n == null ? void 0 : n(Je(t) ? !0 : !t),
865
861
  { checkForDefaultPrevented: !1 }
866
862
  )
867
863
  }
868
864
  ) });
869
865
  }
870
866
  );
871
- vn.displayName = Ks;
872
- var hn = "MenuRadioGroup", [Bs, Us] = Re(
873
- hn,
867
+ fn.displayName = Ps;
868
+ var mn = "MenuRadioGroup", [js, Os] = Ne(
869
+ mn,
874
870
  { value: void 0, onValueChange: () => {
875
871
  } }
876
- ), xn = s.forwardRef(
872
+ ), gn = s.forwardRef(
877
873
  (e, o) => {
878
- const { value: t, onValueChange: n, ...a } = e, l = Ge(n);
879
- return /* @__PURE__ */ r.jsx(Bs, { scope: e.__scopeMenu, value: t, onValueChange: l, children: /* @__PURE__ */ r.jsx(to, { ...a, ref: o }) });
874
+ const { value: t, onValueChange: n, ...a } = e, l = Ve(n);
875
+ return /* @__PURE__ */ r.jsx(js, { scope: e.__scopeMenu, value: t, onValueChange: l, children: /* @__PURE__ */ r.jsx(eo, { ...a, ref: o }) });
880
876
  }
881
877
  );
882
- xn.displayName = hn;
883
- var bn = "MenuRadioItem", yn = s.forwardRef(
878
+ gn.displayName = mn;
879
+ var vn = "MenuRadioItem", hn = s.forwardRef(
884
880
  (e, o) => {
885
- const { value: t, ...n } = e, a = Us(bn, e.__scopeMenu), l = t === a.value;
886
- return /* @__PURE__ */ r.jsx(wn, { scope: e.__scopeMenu, checked: l, children: /* @__PURE__ */ r.jsx(
887
- it,
881
+ const { value: t, ...n } = e, a = Os(vn, e.__scopeMenu), l = t === a.value;
882
+ return /* @__PURE__ */ r.jsx(xn, { scope: e.__scopeMenu, checked: l, children: /* @__PURE__ */ r.jsx(
883
+ lt,
888
884
  {
889
885
  role: "menuitemradio",
890
886
  "aria-checked": l,
891
887
  ...n,
892
888
  ref: o,
893
- "data-state": ao(l),
894
- onSelect: _(
889
+ "data-state": no(l),
890
+ onSelect: N(
895
891
  n.onSelect,
896
892
  () => {
897
893
  var i;
@@ -903,35 +899,35 @@ var bn = "MenuRadioItem", yn = s.forwardRef(
903
899
  ) });
904
900
  }
905
901
  );
906
- yn.displayName = bn;
907
- var oo = "MenuItemIndicator", [wn, Hs] = Re(
908
- oo,
902
+ hn.displayName = vn;
903
+ var to = "MenuItemIndicator", [xn, ks] = Ne(
904
+ to,
909
905
  { checked: !1 }
910
- ), Cn = s.forwardRef(
906
+ ), wn = s.forwardRef(
911
907
  (e, o) => {
912
- const { __scopeMenu: t, forceMount: n, ...a } = e, l = Hs(oo, t);
908
+ const { __scopeMenu: t, forceMount: n, ...a } = e, l = ks(to, t);
913
909
  return /* @__PURE__ */ r.jsx(
914
- pe,
910
+ me,
915
911
  {
916
- present: n || Qe(l.checked) || l.checked === !0,
912
+ present: n || Je(l.checked) || l.checked === !0,
917
913
  children: /* @__PURE__ */ r.jsx(
918
- A.span,
914
+ T.span,
919
915
  {
920
916
  ...a,
921
917
  ref: o,
922
- "data-state": ao(l.checked)
918
+ "data-state": no(l.checked)
923
919
  }
924
920
  )
925
921
  }
926
922
  );
927
923
  }
928
924
  );
929
- Cn.displayName = oo;
930
- var Ws = "MenuSeparator", Sn = s.forwardRef(
925
+ wn.displayName = to;
926
+ var $s = "MenuSeparator", yn = s.forwardRef(
931
927
  (e, o) => {
932
928
  const { __scopeMenu: t, ...n } = e;
933
929
  return /* @__PURE__ */ r.jsx(
934
- A.div,
930
+ T.div,
935
931
  {
936
932
  role: "separator",
937
933
  "aria-orientation": "horizontal",
@@ -941,18 +937,18 @@ var Ws = "MenuSeparator", Sn = s.forwardRef(
941
937
  );
942
938
  }
943
939
  );
944
- Sn.displayName = Ws;
945
- var zs = "MenuArrow", _n = s.forwardRef(
940
+ yn.displayName = $s;
941
+ var Ls = "MenuArrow", bn = s.forwardRef(
946
942
  (e, o) => {
947
- const { __scopeMenu: t, ...n } = e, a = He(t);
948
- return /* @__PURE__ */ r.jsx(Do, { ...a, ...n, ref: o });
943
+ const { __scopeMenu: t, ...n } = e, a = Ue(t);
944
+ return /* @__PURE__ */ r.jsx(Eo, { ...a, ...n, ref: o });
949
945
  }
950
946
  );
951
- _n.displayName = zs;
952
- var no = "MenuSub", [Ys, Nn] = Re(no), Rn = (e) => {
953
- const { __scopeMenu: o, children: t, open: n = !1, onOpenChange: a } = e, l = ve(no, o), i = He(o), [c, d] = s.useState(null), [u, f] = s.useState(null), p = Ge(a);
954
- return s.useEffect(() => (l.open === !1 && p(!1), () => p(!1)), [l.open, p]), /* @__PURE__ */ r.jsx(Ht, { ...i, children: /* @__PURE__ */ r.jsx(
955
- cn,
947
+ bn.displayName = Ls;
948
+ var oo = "MenuSub", [Fs, Sn] = Ne(oo), Cn = (e) => {
949
+ const { __scopeMenu: o, children: t, open: n = !1, onOpenChange: a } = e, l = ge(oo, o), i = Ue(o), [c, d] = s.useState(null), [u, f] = s.useState(null), p = Ve(a);
950
+ return s.useEffect(() => (l.open === !1 && p(!1), () => p(!1)), [l.open, p]), /* @__PURE__ */ r.jsx(Ut, { ...i, children: /* @__PURE__ */ r.jsx(
951
+ rn,
956
952
  {
957
953
  scope: o,
958
954
  open: n,
@@ -960,7 +956,7 @@ var no = "MenuSub", [Ys, Nn] = Re(no), Rn = (e) => {
960
956
  content: u,
961
957
  onContentChange: f,
962
958
  children: /* @__PURE__ */ r.jsx(
963
- Ys,
959
+ Fs,
964
960
  {
965
961
  scope: o,
966
962
  contentId: ee(),
@@ -973,10 +969,10 @@ var no = "MenuSub", [Ys, Nn] = Re(no), Rn = (e) => {
973
969
  }
974
970
  ) });
975
971
  };
976
- Rn.displayName = no;
977
- var je = "MenuSubTrigger", En = s.forwardRef(
972
+ Cn.displayName = oo;
973
+ var Pe = "MenuSubTrigger", _n = s.forwardRef(
978
974
  (e, o) => {
979
- const t = ve(je, e.__scopeMenu), n = We(je, e.__scopeMenu), a = Nn(je, e.__scopeMenu), l = Qt(je, e.__scopeMenu), i = s.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: d } = l, u = { __scopeMenu: e.__scopeMenu }, f = s.useCallback(() => {
975
+ const t = ge(Pe, e.__scopeMenu), n = He(Pe, e.__scopeMenu), a = Sn(Pe, e.__scopeMenu), l = Jt(Pe, e.__scopeMenu), i = s.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: d } = l, u = { __scopeMenu: e.__scopeMenu }, f = s.useCallback(() => {
980
976
  i.current && window.clearTimeout(i.current), i.current = null;
981
977
  }, []);
982
978
  return s.useEffect(() => f, [f]), s.useEffect(() => {
@@ -984,45 +980,45 @@ var je = "MenuSubTrigger", En = s.forwardRef(
984
980
  return () => {
985
981
  window.clearTimeout(p), d(null);
986
982
  };
987
- }, [c, d]), /* @__PURE__ */ r.jsx(Zt, { asChild: !0, ...u, children: /* @__PURE__ */ r.jsx(
988
- gn,
983
+ }, [c, d]), /* @__PURE__ */ r.jsx(Xt, { asChild: !0, ...u, children: /* @__PURE__ */ r.jsx(
984
+ pn,
989
985
  {
990
986
  id: a.triggerId,
991
987
  "aria-haspopup": "menu",
992
988
  "aria-expanded": t.open,
993
989
  "aria-controls": a.contentId,
994
- "data-state": Dn(t.open),
990
+ "data-state": In(t.open),
995
991
  ...e,
996
- ref: Ao(o, a.onTriggerChange),
992
+ ref: Mo(o, a.onTriggerChange),
997
993
  onClick: (p) => {
998
- var v;
999
- (v = e.onClick) == null || v.call(e, p), !(e.disabled || p.defaultPrevented) && (p.currentTarget.focus(), t.open || t.onOpenChange(!0));
994
+ var x;
995
+ (x = e.onClick) == null || x.call(e, p), !(e.disabled || p.defaultPrevented) && (p.currentTarget.focus(), t.open || t.onOpenChange(!0));
1000
996
  },
1001
- onPointerMove: _(
997
+ onPointerMove: N(
1002
998
  e.onPointerMove,
1003
- Fe((p) => {
999
+ Le((p) => {
1004
1000
  l.onItemEnter(p), !p.defaultPrevented && !e.disabled && !t.open && !i.current && (l.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
1005
1001
  t.onOpenChange(!0), f();
1006
1002
  }, 100));
1007
1003
  })
1008
1004
  ),
1009
- onPointerLeave: _(
1005
+ onPointerLeave: N(
1010
1006
  e.onPointerLeave,
1011
- Fe((p) => {
1012
- var b, g;
1007
+ Le((p) => {
1008
+ var w, g;
1013
1009
  f();
1014
- const v = (b = t.content) == null ? void 0 : b.getBoundingClientRect();
1015
- if (v) {
1016
- const m = (g = t.content) == null ? void 0 : g.dataset.side, y = m === "right", w = y ? -5 : 5, h = v[y ? "left" : "right"], S = v[y ? "right" : "left"];
1010
+ const x = (w = t.content) == null ? void 0 : w.getBoundingClientRect();
1011
+ if (x) {
1012
+ const m = (g = t.content) == null ? void 0 : g.dataset.side, y = m === "right", S = y ? -5 : 5, h = x[y ? "left" : "right"], C = x[y ? "right" : "left"];
1017
1013
  l.onPointerGraceIntentChange({
1018
1014
  area: [
1019
1015
  // Apply a bleed on clientX to ensure that our exit point is
1020
1016
  // consistently within polygon bounds
1021
- { x: p.clientX + w, y: p.clientY },
1022
- { x: h, y: v.top },
1023
- { x: S, y: v.top },
1024
- { x: S, y: v.bottom },
1025
- { x: h, y: v.bottom }
1017
+ { x: p.clientX + S, y: p.clientY },
1018
+ { x: h, y: x.top },
1019
+ { x: C, y: x.top },
1020
+ { x: C, y: x.bottom },
1021
+ { x: h, y: x.bottom }
1026
1022
  ],
1027
1023
  side: m
1028
1024
  }), window.clearTimeout(c.current), c.current = window.setTimeout(
@@ -1035,21 +1031,21 @@ var je = "MenuSubTrigger", En = s.forwardRef(
1035
1031
  }
1036
1032
  })
1037
1033
  ),
1038
- onKeyDown: _(e.onKeyDown, (p) => {
1039
- var b;
1040
- const v = l.searchRef.current !== "";
1041
- e.disabled || v && p.key === " " || Ds[n.dir].includes(p.key) && (t.onOpenChange(!0), (b = t.content) == null || b.focus(), p.preventDefault());
1034
+ onKeyDown: N(e.onKeyDown, (p) => {
1035
+ var w;
1036
+ const x = l.searchRef.current !== "";
1037
+ e.disabled || x && p.key === " " || bs[n.dir].includes(p.key) && (t.onOpenChange(!0), (w = t.content) == null || w.focus(), p.preventDefault());
1042
1038
  })
1043
1039
  }
1044
1040
  ) });
1045
1041
  }
1046
1042
  );
1047
- En.displayName = je;
1048
- var In = "MenuSubContent", Mn = s.forwardRef(
1043
+ _n.displayName = Pe;
1044
+ var Nn = "MenuSubContent", Rn = s.forwardRef(
1049
1045
  (e, o) => {
1050
- const t = un(se, e.__scopeMenu), { forceMount: n = t.forceMount, ...a } = e, l = ve(se, e.__scopeMenu), i = We(se, e.__scopeMenu), c = Nn(In, e.__scopeMenu), d = s.useRef(null), u = G(o, d);
1051
- return /* @__PURE__ */ r.jsx(Le.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(pe, { present: n || l.open, children: /* @__PURE__ */ r.jsx(Le.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(
1052
- eo,
1046
+ const t = ln(se, e.__scopeMenu), { forceMount: n = t.forceMount, ...a } = e, l = ge(se, e.__scopeMenu), i = He(se, e.__scopeMenu), c = Sn(Nn, e.__scopeMenu), d = s.useRef(null), u = B(o, d);
1047
+ return /* @__PURE__ */ r.jsx($e.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(me, { present: n || l.open, children: /* @__PURE__ */ r.jsx($e.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ r.jsx(
1048
+ Qt,
1053
1049
  {
1054
1050
  id: c.contentId,
1055
1051
  "aria-labelledby": c.triggerId,
@@ -1065,49 +1061,49 @@ var In = "MenuSubContent", Mn = s.forwardRef(
1065
1061
  i.isUsingKeyboardRef.current && ((p = d.current) == null || p.focus()), f.preventDefault();
1066
1062
  },
1067
1063
  onCloseAutoFocus: (f) => f.preventDefault(),
1068
- onFocusOutside: _(e.onFocusOutside, (f) => {
1064
+ onFocusOutside: N(e.onFocusOutside, (f) => {
1069
1065
  f.target !== c.trigger && l.onOpenChange(!1);
1070
1066
  }),
1071
- onEscapeKeyDown: _(e.onEscapeKeyDown, (f) => {
1067
+ onEscapeKeyDown: N(e.onEscapeKeyDown, (f) => {
1072
1068
  i.onClose(), f.preventDefault();
1073
1069
  }),
1074
- onKeyDown: _(e.onKeyDown, (f) => {
1075
- var b;
1076
- const p = f.currentTarget.contains(f.target), v = As[i.dir].includes(f.key);
1077
- p && v && (l.onOpenChange(!1), (b = c.trigger) == null || b.focus(), f.preventDefault());
1070
+ onKeyDown: N(e.onKeyDown, (f) => {
1071
+ var w;
1072
+ const p = f.currentTarget.contains(f.target), x = Ss[i.dir].includes(f.key);
1073
+ p && x && (l.onOpenChange(!1), (w = c.trigger) == null || w.focus(), f.preventDefault());
1078
1074
  })
1079
1075
  }
1080
1076
  ) }) }) });
1081
1077
  }
1082
1078
  );
1083
- Mn.displayName = In;
1084
- function Dn(e) {
1079
+ Rn.displayName = Nn;
1080
+ function In(e) {
1085
1081
  return e ? "open" : "closed";
1086
1082
  }
1087
- function Qe(e) {
1083
+ function Je(e) {
1088
1084
  return e === "indeterminate";
1089
1085
  }
1090
- function ao(e) {
1091
- return Qe(e) ? "indeterminate" : e ? "checked" : "unchecked";
1086
+ function no(e) {
1087
+ return Je(e) ? "indeterminate" : e ? "checked" : "unchecked";
1092
1088
  }
1093
- function qs(e) {
1089
+ function Vs(e) {
1094
1090
  const o = document.activeElement;
1095
1091
  for (const t of e)
1096
1092
  if (t === o || (t.focus(), document.activeElement !== o)) return;
1097
1093
  }
1098
- function Xs(e, o) {
1094
+ function Gs(e, o) {
1099
1095
  return e.map((t, n) => e[(o + n) % e.length]);
1100
1096
  }
1101
- function Zs(e, o, t) {
1097
+ function Ks(e, o, t) {
1102
1098
  const a = o.length > 1 && Array.from(o).every((u) => u === o[0]) ? o[0] : o, l = t ? e.indexOf(t) : -1;
1103
- let i = Xs(e, Math.max(l, 0));
1099
+ let i = Gs(e, Math.max(l, 0));
1104
1100
  a.length === 1 && (i = i.filter((u) => u !== t));
1105
1101
  const d = i.find(
1106
1102
  (u) => u.toLowerCase().startsWith(a.toLowerCase())
1107
1103
  );
1108
1104
  return d !== t ? d : void 0;
1109
1105
  }
1110
- function Js(e, o) {
1106
+ function Bs(e, o) {
1111
1107
  const { x: t, y: n } = e;
1112
1108
  let a = !1;
1113
1109
  for (let l = 0, i = o.length - 1; l < o.length; i = l++) {
@@ -1116,18 +1112,18 @@ function Js(e, o) {
1116
1112
  }
1117
1113
  return a;
1118
1114
  }
1119
- function Qs(e, o) {
1115
+ function Us(e, o) {
1120
1116
  if (!o) return !1;
1121
1117
  const t = { x: e.clientX, y: e.clientY };
1122
- return Js(t, o);
1118
+ return Bs(t, o);
1123
1119
  }
1124
- function Fe(e) {
1120
+ function Le(e) {
1125
1121
  return (o) => o.pointerType === "mouse" ? e(o) : void 0;
1126
1122
  }
1127
- var el = dn, tl = Zt, ol = pn, nl = fn, al = to, rl = mn, sl = it, ll = vn, il = xn, cl = yn, dl = Cn, ul = Sn, pl = _n, fl = Rn, ml = En, gl = Mn, ro = "DropdownMenu", [vl, xd] = de(
1128
- ro,
1129
- [sn]
1130
- ), ae = sn(), [hl, An] = vl(ro), Tn = (e) => {
1123
+ var Hs = sn, Ws = Xt, zs = cn, Ys = dn, qs = eo, Xs = un, Zs = lt, Js = fn, Qs = gn, el = hn, tl = wn, ol = yn, nl = bn, al = Cn, rl = _n, sl = Rn, ao = "DropdownMenu", [ll, td] = ue(
1124
+ ao,
1125
+ [nn]
1126
+ ), ae = nn(), [il, En] = ll(ao), Mn = (e) => {
1131
1127
  const {
1132
1128
  __scopeDropdownMenu: o,
1133
1129
  children: t,
@@ -1142,7 +1138,7 @@ var el = dn, tl = Zt, ol = pn, nl = fn, al = to, rl = mn, sl = it, ll = vn, il =
1142
1138
  onChange: i
1143
1139
  });
1144
1140
  return /* @__PURE__ */ r.jsx(
1145
- hl,
1141
+ il,
1146
1142
  {
1147
1143
  scope: o,
1148
1144
  triggerId: ee(),
@@ -1150,18 +1146,18 @@ var el = dn, tl = Zt, ol = pn, nl = fn, al = to, rl = mn, sl = it, ll = vn, il =
1150
1146
  contentId: ee(),
1151
1147
  open: f,
1152
1148
  onOpenChange: p,
1153
- onOpenToggle: s.useCallback(() => p((v) => !v), [p]),
1149
+ onOpenToggle: s.useCallback(() => p((x) => !x), [p]),
1154
1150
  modal: c,
1155
- children: /* @__PURE__ */ r.jsx(el, { ...d, open: f, onOpenChange: p, dir: n, modal: c, children: t })
1151
+ children: /* @__PURE__ */ r.jsx(Hs, { ...d, open: f, onOpenChange: p, dir: n, modal: c, children: t })
1156
1152
  }
1157
1153
  );
1158
1154
  };
1159
- Tn.displayName = ro;
1160
- var Pn = "DropdownMenuTrigger", jn = s.forwardRef(
1155
+ Mn.displayName = ao;
1156
+ var Dn = "DropdownMenuTrigger", An = s.forwardRef(
1161
1157
  (e, o) => {
1162
- const { __scopeDropdownMenu: t, disabled: n = !1, ...a } = e, l = An(Pn, t), i = ae(t);
1163
- return /* @__PURE__ */ r.jsx(tl, { asChild: !0, ...i, children: /* @__PURE__ */ r.jsx(
1164
- A.button,
1158
+ const { __scopeDropdownMenu: t, disabled: n = !1, ...a } = e, l = En(Dn, t), i = ae(t);
1159
+ return /* @__PURE__ */ r.jsx(Ws, { asChild: !0, ...i, children: /* @__PURE__ */ r.jsx(
1160
+ T.button,
1165
1161
  {
1166
1162
  type: "button",
1167
1163
  id: l.triggerId,
@@ -1172,39 +1168,39 @@ var Pn = "DropdownMenuTrigger", jn = s.forwardRef(
1172
1168
  "data-disabled": n ? "" : void 0,
1173
1169
  disabled: n,
1174
1170
  ...a,
1175
- ref: Ao(o, l.triggerRef),
1176
- onPointerDown: _(e.onPointerDown, (c) => {
1171
+ ref: Mo(o, l.triggerRef),
1172
+ onPointerDown: N(e.onPointerDown, (c) => {
1177
1173
  !n && c.button === 0 && c.ctrlKey === !1 && (l.onOpenToggle(), l.open || c.preventDefault());
1178
1174
  }),
1179
- onKeyDown: _(e.onKeyDown, (c) => {
1175
+ onKeyDown: N(e.onKeyDown, (c) => {
1180
1176
  n || (["Enter", " "].includes(c.key) && l.onOpenToggle(), c.key === "ArrowDown" && l.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(c.key) && c.preventDefault());
1181
1177
  })
1182
1178
  }
1183
1179
  ) });
1184
1180
  }
1185
1181
  );
1186
- jn.displayName = Pn;
1187
- var xl = "DropdownMenuPortal", On = (e) => {
1182
+ An.displayName = Dn;
1183
+ var cl = "DropdownMenuPortal", Tn = (e) => {
1188
1184
  const { __scopeDropdownMenu: o, ...t } = e, n = ae(o);
1189
- return /* @__PURE__ */ r.jsx(ol, { ...n, ...t });
1185
+ return /* @__PURE__ */ r.jsx(zs, { ...n, ...t });
1190
1186
  };
1191
- On.displayName = xl;
1192
- var kn = "DropdownMenuContent", $n = s.forwardRef(
1187
+ Tn.displayName = cl;
1188
+ var Pn = "DropdownMenuContent", jn = s.forwardRef(
1193
1189
  (e, o) => {
1194
- const { __scopeDropdownMenu: t, ...n } = e, a = An(kn, t), l = ae(t), i = s.useRef(!1);
1190
+ const { __scopeDropdownMenu: t, ...n } = e, a = En(Pn, t), l = ae(t), i = s.useRef(!1);
1195
1191
  return /* @__PURE__ */ r.jsx(
1196
- nl,
1192
+ Ys,
1197
1193
  {
1198
1194
  id: a.contentId,
1199
1195
  "aria-labelledby": a.triggerId,
1200
1196
  ...l,
1201
1197
  ...n,
1202
1198
  ref: o,
1203
- onCloseAutoFocus: _(e.onCloseAutoFocus, (c) => {
1199
+ onCloseAutoFocus: N(e.onCloseAutoFocus, (c) => {
1204
1200
  var d;
1205
1201
  i.current || (d = a.triggerRef.current) == null || d.focus(), i.current = !1, c.preventDefault();
1206
1202
  }),
1207
- onInteractOutside: _(e.onInteractOutside, (c) => {
1203
+ onInteractOutside: N(e.onInteractOutside, (c) => {
1208
1204
  const d = c.detail.originalEvent, u = d.button === 0 && d.ctrlKey === !0, f = d.button === 2 || u;
1209
1205
  (!a.modal || f) && (i.current = !0);
1210
1206
  }),
@@ -1220,76 +1216,76 @@ var kn = "DropdownMenuContent", $n = s.forwardRef(
1220
1216
  );
1221
1217
  }
1222
1218
  );
1223
- $n.displayName = kn;
1224
- var bl = "DropdownMenuGroup", Ln = s.forwardRef(
1219
+ jn.displayName = Pn;
1220
+ var dl = "DropdownMenuGroup", On = s.forwardRef(
1225
1221
  (e, o) => {
1226
1222
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1227
- return /* @__PURE__ */ r.jsx(al, { ...a, ...n, ref: o });
1223
+ return /* @__PURE__ */ r.jsx(qs, { ...a, ...n, ref: o });
1228
1224
  }
1229
1225
  );
1230
- Ln.displayName = bl;
1231
- var yl = "DropdownMenuLabel", Fn = s.forwardRef(
1226
+ On.displayName = dl;
1227
+ var ul = "DropdownMenuLabel", kn = s.forwardRef(
1232
1228
  (e, o) => {
1233
1229
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1234
- return /* @__PURE__ */ r.jsx(rl, { ...a, ...n, ref: o });
1230
+ return /* @__PURE__ */ r.jsx(Xs, { ...a, ...n, ref: o });
1235
1231
  }
1236
1232
  );
1237
- Fn.displayName = yl;
1238
- var wl = "DropdownMenuItem", Vn = s.forwardRef(
1233
+ kn.displayName = ul;
1234
+ var pl = "DropdownMenuItem", $n = s.forwardRef(
1239
1235
  (e, o) => {
1240
1236
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1241
- return /* @__PURE__ */ r.jsx(sl, { ...a, ...n, ref: o });
1237
+ return /* @__PURE__ */ r.jsx(Zs, { ...a, ...n, ref: o });
1242
1238
  }
1243
1239
  );
1244
- Vn.displayName = wl;
1245
- var Cl = "DropdownMenuCheckboxItem", Gn = s.forwardRef((e, o) => {
1240
+ $n.displayName = pl;
1241
+ var fl = "DropdownMenuCheckboxItem", Ln = s.forwardRef((e, o) => {
1246
1242
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1247
- return /* @__PURE__ */ r.jsx(ll, { ...a, ...n, ref: o });
1243
+ return /* @__PURE__ */ r.jsx(Js, { ...a, ...n, ref: o });
1248
1244
  });
1249
- Gn.displayName = Cl;
1250
- var Sl = "DropdownMenuRadioGroup", Kn = s.forwardRef((e, o) => {
1245
+ Ln.displayName = fl;
1246
+ var ml = "DropdownMenuRadioGroup", Fn = s.forwardRef((e, o) => {
1251
1247
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1252
- return /* @__PURE__ */ r.jsx(il, { ...a, ...n, ref: o });
1248
+ return /* @__PURE__ */ r.jsx(Qs, { ...a, ...n, ref: o });
1253
1249
  });
1254
- Kn.displayName = Sl;
1255
- var _l = "DropdownMenuRadioItem", Bn = s.forwardRef((e, o) => {
1250
+ Fn.displayName = ml;
1251
+ var gl = "DropdownMenuRadioItem", Vn = s.forwardRef((e, o) => {
1256
1252
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1257
- return /* @__PURE__ */ r.jsx(cl, { ...a, ...n, ref: o });
1253
+ return /* @__PURE__ */ r.jsx(el, { ...a, ...n, ref: o });
1258
1254
  });
1259
- Bn.displayName = _l;
1260
- var Nl = "DropdownMenuItemIndicator", Un = s.forwardRef((e, o) => {
1255
+ Vn.displayName = gl;
1256
+ var vl = "DropdownMenuItemIndicator", Gn = s.forwardRef((e, o) => {
1261
1257
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1262
- return /* @__PURE__ */ r.jsx(dl, { ...a, ...n, ref: o });
1258
+ return /* @__PURE__ */ r.jsx(tl, { ...a, ...n, ref: o });
1263
1259
  });
1264
- Un.displayName = Nl;
1265
- var Rl = "DropdownMenuSeparator", Hn = s.forwardRef((e, o) => {
1260
+ Gn.displayName = vl;
1261
+ var hl = "DropdownMenuSeparator", Kn = s.forwardRef((e, o) => {
1266
1262
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1267
- return /* @__PURE__ */ r.jsx(ul, { ...a, ...n, ref: o });
1263
+ return /* @__PURE__ */ r.jsx(ol, { ...a, ...n, ref: o });
1268
1264
  });
1269
- Hn.displayName = Rl;
1270
- var El = "DropdownMenuArrow", Il = s.forwardRef(
1265
+ Kn.displayName = hl;
1266
+ var xl = "DropdownMenuArrow", wl = s.forwardRef(
1271
1267
  (e, o) => {
1272
1268
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1273
- return /* @__PURE__ */ r.jsx(pl, { ...a, ...n, ref: o });
1269
+ return /* @__PURE__ */ r.jsx(nl, { ...a, ...n, ref: o });
1274
1270
  }
1275
1271
  );
1276
- Il.displayName = El;
1277
- var Ml = (e) => {
1272
+ wl.displayName = xl;
1273
+ var yl = (e) => {
1278
1274
  const { __scopeDropdownMenu: o, children: t, open: n, onOpenChange: a, defaultOpen: l } = e, i = ae(o), [c = !1, d] = ce({
1279
1275
  prop: n,
1280
1276
  defaultProp: l,
1281
1277
  onChange: a
1282
1278
  });
1283
- return /* @__PURE__ */ r.jsx(fl, { ...i, open: c, onOpenChange: d, children: t });
1284
- }, Dl = "DropdownMenuSubTrigger", Wn = s.forwardRef((e, o) => {
1279
+ return /* @__PURE__ */ r.jsx(al, { ...i, open: c, onOpenChange: d, children: t });
1280
+ }, bl = "DropdownMenuSubTrigger", Bn = s.forwardRef((e, o) => {
1285
1281
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1286
- return /* @__PURE__ */ r.jsx(ml, { ...a, ...n, ref: o });
1282
+ return /* @__PURE__ */ r.jsx(rl, { ...a, ...n, ref: o });
1287
1283
  });
1288
- Wn.displayName = Dl;
1289
- var Al = "DropdownMenuSubContent", zn = s.forwardRef((e, o) => {
1284
+ Bn.displayName = bl;
1285
+ var Sl = "DropdownMenuSubContent", Un = s.forwardRef((e, o) => {
1290
1286
  const { __scopeDropdownMenu: t, ...n } = e, a = ae(t);
1291
1287
  return /* @__PURE__ */ r.jsx(
1292
- gl,
1288
+ sl,
1293
1289
  {
1294
1290
  ...a,
1295
1291
  ...n,
@@ -1305,13 +1301,13 @@ var Al = "DropdownMenuSubContent", zn = s.forwardRef((e, o) => {
1305
1301
  }
1306
1302
  );
1307
1303
  });
1308
- zn.displayName = Al;
1309
- var Tl = Tn, Pl = jn, Yn = On, qn = $n, jl = Ln, Xn = Fn, Zn = Vn, Jn = Gn, Ol = Kn, Qn = Bn, ea = Un, ta = Hn, kl = Ml, oa = Wn, na = zn;
1310
- const bd = Tl, yd = Pl, wd = jl, Cd = Yn, Sd = kl, _d = Ol, $l = z(({ className: e, inset: o, children: t, ...n }, a) => /* @__PURE__ */ r.jsxs(
1311
- oa,
1304
+ Un.displayName = Sl;
1305
+ var Cl = Mn, _l = An, Hn = Tn, Wn = jn, Nl = On, zn = kn, Yn = $n, qn = Ln, Rl = Fn, Xn = Vn, Zn = Gn, Jn = Kn, Il = yl, Qn = Bn, ea = Un;
1306
+ const od = Cl, nd = _l, ad = Nl, rd = Hn, sd = Il, ld = Rl, El = Y(({ className: e, inset: o, children: t, ...n }, a) => /* @__PURE__ */ r.jsxs(
1307
+ Qn,
1312
1308
  {
1313
1309
  ref: a,
1314
- className: E(
1310
+ className: I(
1315
1311
  "al-flex al-cursor-default al-gap-2 al-select-none al-items-center al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none focus:al-bg-accent data-[state=open]:al-bg-accent [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
1316
1312
  o && "al-pl-8",
1317
1313
  e
@@ -1319,41 +1315,41 @@ const bd = Tl, yd = Pl, wd = jl, Cd = Yn, Sd = kl, _d = Ol, $l = z(({ className:
1319
1315
  ...n,
1320
1316
  children: [
1321
1317
  t,
1322
- /* @__PURE__ */ r.jsx(Kr, { className: "al-ml-auto" })
1318
+ /* @__PURE__ */ r.jsx(jr, { className: "al-ml-auto" })
1323
1319
  ]
1324
1320
  }
1325
1321
  ));
1326
- $l.displayName = oa.displayName;
1327
- const Ll = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1328
- na,
1322
+ El.displayName = Qn.displayName;
1323
+ const Ml = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1324
+ ea,
1329
1325
  {
1330
1326
  ref: t,
1331
- className: E(
1327
+ className: I(
1332
1328
  "al-z-50 al-min-w-[8rem] al-overflow-hidden al-rounded-md al-border al-bg-popover al-p-1 al-text-popover-foreground al-shadow-lg data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
1333
1329
  e
1334
1330
  ),
1335
1331
  ...o
1336
1332
  }
1337
1333
  ));
1338
- Ll.displayName = na.displayName;
1339
- const Fl = z(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r.jsx(Yn, { children: /* @__PURE__ */ r.jsx(
1340
- qn,
1334
+ Ml.displayName = ea.displayName;
1335
+ const Dl = Y(({ className: e, sideOffset: o = 4, ...t }, n) => /* @__PURE__ */ r.jsx(Hn, { children: /* @__PURE__ */ r.jsx(
1336
+ Wn,
1341
1337
  {
1342
1338
  ref: n,
1343
1339
  sideOffset: o,
1344
- className: E(
1340
+ className: I(
1345
1341
  "al-z-50 al-min-w-[8rem] al-overflow-hidden al-rounded-md al-border al-bg-popover al-p-1 al-text-popover-foreground al-shadow-md data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
1346
1342
  e
1347
1343
  ),
1348
1344
  ...t
1349
1345
  }
1350
1346
  ) }));
1351
- Fl.displayName = qn.displayName;
1352
- const Vl = z(({ className: e, inset: o, ...t }, n) => /* @__PURE__ */ r.jsx(
1353
- Zn,
1347
+ Dl.displayName = Wn.displayName;
1348
+ const Al = Y(({ className: e, inset: o, ...t }, n) => /* @__PURE__ */ r.jsx(
1349
+ Yn,
1354
1350
  {
1355
1351
  ref: n,
1356
- className: E(
1352
+ className: I(
1357
1353
  "al-relative al-flex al-cursor-default al-select-none al-items-center al-gap-2 al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none al-transition-colors focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
1358
1354
  o && "al-pl-8",
1359
1355
  e
@@ -1361,81 +1357,81 @@ const Vl = z(({ className: e, inset: o, ...t }, n) => /* @__PURE__ */ r.jsx(
1361
1357
  ...t
1362
1358
  }
1363
1359
  ));
1364
- Vl.displayName = Zn.displayName;
1365
- const Gl = z(({ className: e, children: o, checked: t, ...n }, a) => /* @__PURE__ */ r.jsxs(
1366
- Jn,
1360
+ Al.displayName = Yn.displayName;
1361
+ const Tl = Y(({ className: e, children: o, checked: t, ...n }, a) => /* @__PURE__ */ r.jsxs(
1362
+ qn,
1367
1363
  {
1368
1364
  ref: a,
1369
- className: E(
1365
+ className: I(
1370
1366
  "al-relative al-flex al-cursor-default al-select-none al-items-center al-rounded-sm al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-outline-none al-transition-colors focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50",
1371
1367
  e
1372
1368
  ),
1373
1369
  checked: t,
1374
1370
  ...n,
1375
1371
  children: [
1376
- /* @__PURE__ */ r.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ r.jsx(ea, { children: /* @__PURE__ */ r.jsx(Eo, { className: "al-h-4 al-w-4" }) }) }),
1372
+ /* @__PURE__ */ r.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ r.jsx(Zn, { children: /* @__PURE__ */ r.jsx(No, { className: "al-h-4 al-w-4" }) }) }),
1377
1373
  o
1378
1374
  ]
1379
1375
  }
1380
1376
  ));
1381
- Gl.displayName = Jn.displayName;
1382
- const Kl = z(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(
1383
- Qn,
1377
+ Tl.displayName = qn.displayName;
1378
+ const Pl = Y(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(
1379
+ Xn,
1384
1380
  {
1385
1381
  ref: n,
1386
- className: E(
1382
+ className: I(
1387
1383
  "al-relative al-flex al-cursor-default al-select-none al-items-center al-rounded-sm al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-outline-none al-transition-colors focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50",
1388
1384
  e
1389
1385
  ),
1390
1386
  ...t,
1391
1387
  children: [
1392
- /* @__PURE__ */ r.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ r.jsx(ea, { children: /* @__PURE__ */ r.jsx(Br, { className: "al-h-2 al-w-2 al-fill-current" }) }) }),
1388
+ /* @__PURE__ */ r.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ r.jsx(Zn, { children: /* @__PURE__ */ r.jsx(Or, { className: "al-h-2 al-w-2 al-fill-current" }) }) }),
1393
1389
  o
1394
1390
  ]
1395
1391
  }
1396
1392
  ));
1397
- Kl.displayName = Qn.displayName;
1398
- const Bl = z(({ className: e, inset: o, ...t }, n) => /* @__PURE__ */ r.jsx(
1399
- Xn,
1393
+ Pl.displayName = Xn.displayName;
1394
+ const jl = Y(({ className: e, inset: o, ...t }, n) => /* @__PURE__ */ r.jsx(
1395
+ zn,
1400
1396
  {
1401
1397
  ref: n,
1402
- className: E("al-px-2 al-py-1.5 al-text-sm al-font-semibold", o && "al-pl-8", e),
1398
+ className: I("al-px-2 al-py-1.5 al-text-sm al-font-semibold", o && "al-pl-8", e),
1403
1399
  ...t
1404
1400
  }
1405
1401
  ));
1406
- Bl.displayName = Xn.displayName;
1407
- const Ul = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1408
- ta,
1402
+ jl.displayName = zn.displayName;
1403
+ const Ol = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1404
+ Jn,
1409
1405
  {
1410
1406
  ref: t,
1411
- className: E("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
1407
+ className: I("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
1412
1408
  ...o
1413
1409
  }
1414
1410
  ));
1415
- Ul.displayName = ta.displayName;
1416
- const Hl = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1411
+ Ol.displayName = Jn.displayName;
1412
+ const kl = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1417
1413
  "span",
1418
1414
  {
1419
- className: E("al-ml-auto al-text-xs al-tracking-widest al-opacity-60", e),
1415
+ className: I("al-ml-auto al-text-xs al-tracking-widest al-opacity-60", e),
1420
1416
  ...o
1421
1417
  }
1422
1418
  );
1423
- Hl.displayName = "DropdownMenuShortcut";
1424
- var bo = 1, Wl = 0.9, zl = 0.8, Yl = 0.17, bt = 0.1, yt = 0.999, ql = 0.9999, Xl = 0.99, Zl = /[\\\/_+.#"@\[\(\{&]/, Jl = /[\\\/_+.#"@\[\(\{&]/g, Ql = /[\s-]/, aa = /[\s-]/g;
1419
+ kl.displayName = "DropdownMenuShortcut";
1420
+ var ho = 1, $l = 0.9, Ll = 0.8, Fl = 0.17, xt = 0.1, wt = 0.999, Vl = 0.9999, Gl = 0.99, Kl = /[\\\/_+.#"@\[\(\{&]/, Bl = /[\\\/_+.#"@\[\(\{&]/g, Ul = /[\s-]/, ta = /[\s-]/g;
1425
1421
  function It(e, o, t, n, a, l, i) {
1426
- if (l === o.length) return a === e.length ? bo : Xl;
1422
+ if (l === o.length) return a === e.length ? ho : Gl;
1427
1423
  var c = `${a},${l}`;
1428
1424
  if (i[c] !== void 0) return i[c];
1429
- for (var d = n.charAt(l), u = t.indexOf(d, a), f = 0, p, v, b, g; u >= 0; ) p = It(e, o, t, n, u + 1, l + 1, i), p > f && (u === a ? p *= bo : Zl.test(e.charAt(u - 1)) ? (p *= zl, b = e.slice(a, u - 1).match(Jl), b && a > 0 && (p *= Math.pow(yt, b.length))) : Ql.test(e.charAt(u - 1)) ? (p *= Wl, g = e.slice(a, u - 1).match(aa), g && a > 0 && (p *= Math.pow(yt, g.length))) : (p *= Yl, a > 0 && (p *= Math.pow(yt, u - a))), e.charAt(u) !== o.charAt(l) && (p *= ql)), (p < bt && t.charAt(u - 1) === n.charAt(l + 1) || n.charAt(l + 1) === n.charAt(l) && t.charAt(u - 1) !== n.charAt(l)) && (v = It(e, o, t, n, u + 1, l + 2, i), v * bt > p && (p = v * bt)), p > f && (f = p), u = t.indexOf(d, u + 1);
1425
+ for (var d = n.charAt(l), u = t.indexOf(d, a), f = 0, p, x, w, g; u >= 0; ) p = It(e, o, t, n, u + 1, l + 1, i), p > f && (u === a ? p *= ho : Kl.test(e.charAt(u - 1)) ? (p *= Ll, w = e.slice(a, u - 1).match(Bl), w && a > 0 && (p *= Math.pow(wt, w.length))) : Ul.test(e.charAt(u - 1)) ? (p *= $l, g = e.slice(a, u - 1).match(ta), g && a > 0 && (p *= Math.pow(wt, g.length))) : (p *= Fl, a > 0 && (p *= Math.pow(wt, u - a))), e.charAt(u) !== o.charAt(l) && (p *= Vl)), (p < xt && t.charAt(u - 1) === n.charAt(l + 1) || n.charAt(l + 1) === n.charAt(l) && t.charAt(u - 1) !== n.charAt(l)) && (x = It(e, o, t, n, u + 1, l + 2, i), x * xt > p && (p = x * xt)), p > f && (f = p), u = t.indexOf(d, u + 1);
1430
1426
  return i[c] = f, f;
1431
1427
  }
1432
- function yo(e) {
1433
- return e.toLowerCase().replace(aa, " ");
1428
+ function xo(e) {
1429
+ return e.toLowerCase().replace(ta, " ");
1434
1430
  }
1435
- function ei(e, o, t) {
1436
- return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, It(e, o, yo(e), yo(o), 0, 0, {});
1431
+ function Hl(e, o, t) {
1432
+ return e = t && t.length > 0 ? `${e + " " + t.join(" ")}` : e, It(e, o, xo(e), xo(o), 0, 0, {});
1437
1433
  }
1438
- var Mt = { exports: {} }, wt = {};
1434
+ var Et = { exports: {} }, yt = {};
1439
1435
  /**
1440
1436
  * @license React
1441
1437
  * use-sync-external-store-shim.production.js
@@ -1446,21 +1442,21 @@ var Mt = { exports: {} }, wt = {};
1446
1442
  * LICENSE file in the root directory of this source tree.
1447
1443
  */
1448
1444
  var wo;
1449
- function ti() {
1450
- if (wo) return wt;
1445
+ function Wl() {
1446
+ if (wo) return yt;
1451
1447
  wo = 1;
1452
1448
  var e = W;
1453
- function o(p, v) {
1454
- return p === v && (p !== 0 || 1 / p === 1 / v) || p !== p && v !== v;
1449
+ function o(p, x) {
1450
+ return p === x && (p !== 0 || 1 / p === 1 / x) || p !== p && x !== x;
1455
1451
  }
1456
1452
  var t = typeof Object.is == "function" ? Object.is : o, n = e.useState, a = e.useEffect, l = e.useLayoutEffect, i = e.useDebugValue;
1457
- function c(p, v) {
1458
- var b = v(), g = n({ inst: { value: b, getSnapshot: v } }), m = g[0].inst, y = g[1];
1453
+ function c(p, x) {
1454
+ var w = x(), g = n({ inst: { value: w, getSnapshot: x } }), m = g[0].inst, y = g[1];
1459
1455
  return l(
1460
1456
  function() {
1461
- m.value = b, m.getSnapshot = v, d(m) && y({ inst: m });
1457
+ m.value = w, m.getSnapshot = x, d(m) && y({ inst: m });
1462
1458
  },
1463
- [p, b, v]
1459
+ [p, w, x]
1464
1460
  ), a(
1465
1461
  function() {
1466
1462
  return d(m) && y({ inst: m }), p(function() {
@@ -1468,25 +1464,25 @@ function ti() {
1468
1464
  });
1469
1465
  },
1470
1466
  [p]
1471
- ), i(b), b;
1467
+ ), i(w), w;
1472
1468
  }
1473
1469
  function d(p) {
1474
- var v = p.getSnapshot;
1470
+ var x = p.getSnapshot;
1475
1471
  p = p.value;
1476
1472
  try {
1477
- var b = v();
1478
- return !t(p, b);
1473
+ var w = x();
1474
+ return !t(p, w);
1479
1475
  } catch {
1480
1476
  return !0;
1481
1477
  }
1482
1478
  }
1483
- function u(p, v) {
1484
- return v();
1479
+ function u(p, x) {
1480
+ return x();
1485
1481
  }
1486
1482
  var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? u : c;
1487
- return wt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, wt;
1483
+ return yt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, yt;
1488
1484
  }
1489
- var Ct = {};
1485
+ var bt = {};
1490
1486
  /**
1491
1487
  * @license React
1492
1488
  * use-sync-external-store-shim.development.js
@@ -1496,13 +1492,13 @@ var Ct = {};
1496
1492
  * This source code is licensed under the MIT license found in the
1497
1493
  * LICENSE file in the root directory of this source tree.
1498
1494
  */
1499
- var Co;
1500
- function oi() {
1501
- return Co || (Co = 1, process.env.NODE_ENV !== "production" && function() {
1502
- function e(b, g) {
1503
- return b === g && (b !== 0 || 1 / b === 1 / g) || b !== b && g !== g;
1495
+ var yo;
1496
+ function zl() {
1497
+ return yo || (yo = 1, process.env.NODE_ENV !== "production" && function() {
1498
+ function e(w, g) {
1499
+ return w === g && (w !== 0 || 1 / w === 1 / g) || w !== w && g !== g;
1504
1500
  }
1505
- function o(b, g) {
1501
+ function o(w, g) {
1506
1502
  f || a.startTransition === void 0 || (f = !0, console.error(
1507
1503
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1508
1504
  ));
@@ -1516,305 +1512,305 @@ function oi() {
1516
1512
  y = i({
1517
1513
  inst: { value: m, getSnapshot: g }
1518
1514
  });
1519
- var w = y[0].inst, h = y[1];
1515
+ var S = y[0].inst, h = y[1];
1520
1516
  return d(
1521
1517
  function() {
1522
- w.value = m, w.getSnapshot = g, t(w) && h({ inst: w });
1518
+ S.value = m, S.getSnapshot = g, t(S) && h({ inst: S });
1523
1519
  },
1524
- [b, m, g]
1520
+ [w, m, g]
1525
1521
  ), c(
1526
1522
  function() {
1527
- return t(w) && h({ inst: w }), b(function() {
1528
- t(w) && h({ inst: w });
1523
+ return t(S) && h({ inst: S }), w(function() {
1524
+ t(S) && h({ inst: S });
1529
1525
  });
1530
1526
  },
1531
- [b]
1527
+ [w]
1532
1528
  ), u(m), m;
1533
1529
  }
1534
- function t(b) {
1535
- var g = b.getSnapshot;
1536
- b = b.value;
1530
+ function t(w) {
1531
+ var g = w.getSnapshot;
1532
+ w = w.value;
1537
1533
  try {
1538
1534
  var m = g();
1539
- return !l(b, m);
1535
+ return !l(w, m);
1540
1536
  } catch {
1541
1537
  return !0;
1542
1538
  }
1543
1539
  }
1544
- function n(b, g) {
1540
+ function n(w, g) {
1545
1541
  return g();
1546
1542
  }
1547
1543
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1548
- var a = W, l = typeof Object.is == "function" ? Object.is : e, i = a.useState, c = a.useEffect, d = a.useLayoutEffect, u = a.useDebugValue, f = !1, p = !1, v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : o;
1549
- Ct.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : v, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1550
- }()), Ct;
1544
+ var a = W, l = typeof Object.is == "function" ? Object.is : e, i = a.useState, c = a.useEffect, d = a.useLayoutEffect, u = a.useDebugValue, f = !1, p = !1, x = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : o;
1545
+ bt.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : x, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1546
+ }()), bt;
1551
1547
  }
1552
- process.env.NODE_ENV === "production" ? Mt.exports = ti() : Mt.exports = oi();
1553
- var ni = Mt.exports, Pe = '[cmdk-group=""]', St = '[cmdk-group-items=""]', ai = '[cmdk-group-heading=""]', so = '[cmdk-item=""]', So = `${so}:not([aria-disabled="true"])`, Dt = "cmdk-item-select", we = "data-value", ri = (e, o, t) => ei(e, o, t), ra = s.createContext(void 0), ze = () => s.useContext(ra), sa = s.createContext(void 0), lo = () => s.useContext(sa), la = s.createContext(void 0), ia = s.forwardRef((e, o) => {
1554
- let t = Ee(() => {
1555
- var x, I;
1556
- return { search: "", value: (I = (x = e.value) != null ? x : e.defaultValue) != null ? I : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
1557
- }), n = Ee(() => /* @__PURE__ */ new Set()), a = Ee(() => /* @__PURE__ */ new Map()), l = Ee(() => /* @__PURE__ */ new Map()), i = Ee(() => /* @__PURE__ */ new Set()), c = ca(e), { label: d, children: u, value: f, onValueChange: p, filter: v, shouldFilter: b, loop: g, disablePointerSelection: m = !1, vimBindings: y = !0, ...w } = e, h = ee(), S = ee(), D = ee(), j = s.useRef(null), k = vi();
1548
+ process.env.NODE_ENV === "production" ? Et.exports = Wl() : Et.exports = zl();
1549
+ var Yl = Et.exports, Te = '[cmdk-group=""]', St = '[cmdk-group-items=""]', ql = '[cmdk-group-heading=""]', ro = '[cmdk-item=""]', bo = `${ro}:not([aria-disabled="true"])`, Mt = "cmdk-item-select", ye = "data-value", Xl = (e, o, t) => Hl(e, o, t), oa = s.createContext(void 0), We = () => s.useContext(oa), na = s.createContext(void 0), so = () => s.useContext(na), aa = s.createContext(void 0), ra = s.forwardRef((e, o) => {
1550
+ let t = Re(() => {
1551
+ var v, E;
1552
+ return { search: "", value: (E = (v = e.value) != null ? v : e.defaultValue) != null ? E : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
1553
+ }), n = Re(() => /* @__PURE__ */ new Set()), a = Re(() => /* @__PURE__ */ new Map()), l = Re(() => /* @__PURE__ */ new Map()), i = Re(() => /* @__PURE__ */ new Set()), c = sa(e), { label: d, children: u, value: f, onValueChange: p, filter: x, shouldFilter: w, loop: g, disablePointerSelection: m = !1, vimBindings: y = !0, ...S } = e, h = ee(), C = ee(), F = ee(), k = s.useRef(null), j = li();
1558
1554
  Se(() => {
1559
1555
  if (f !== void 0) {
1560
- let x = f.trim();
1561
- t.current.value = x, T.emit();
1556
+ let v = f.trim();
1557
+ t.current.value = v, D.emit();
1562
1558
  }
1563
1559
  }, [f]), Se(() => {
1564
- k(6, oe);
1560
+ j(6, oe);
1565
1561
  }, []);
1566
- let T = s.useMemo(() => ({ subscribe: (x) => (i.current.add(x), () => i.current.delete(x)), snapshot: () => t.current, setState: (x, I, M) => {
1567
- var N, O, C;
1568
- if (!Object.is(t.current[x], I)) {
1569
- if (t.current[x] = I, x === "search") X(), H(), k(1, q);
1570
- else if (x === "value" && (M || k(5, oe), ((N = c.current) == null ? void 0 : N.value) !== void 0)) {
1571
- let P = I ?? "";
1572
- (C = (O = c.current).onValueChange) == null || C.call(O, P);
1562
+ let D = s.useMemo(() => ({ subscribe: (v) => (i.current.add(v), () => i.current.delete(v)), snapshot: () => t.current, setState: (v, E, M) => {
1563
+ var _, P, b;
1564
+ if (!Object.is(t.current[v], E)) {
1565
+ if (t.current[v] = E, v === "search") X(), H(), j(1, q);
1566
+ else if (v === "value" && (M || j(5, oe), ((_ = c.current) == null ? void 0 : _.value) !== void 0)) {
1567
+ let A = E ?? "";
1568
+ (b = (P = c.current).onValueChange) == null || b.call(P, A);
1573
1569
  return;
1574
1570
  }
1575
- T.emit();
1571
+ D.emit();
1576
1572
  }
1577
1573
  }, emit: () => {
1578
- i.current.forEach((x) => x());
1579
- } }), []), $ = s.useMemo(() => ({ value: (x, I, M) => {
1580
- var N;
1581
- I !== ((N = l.current.get(x)) == null ? void 0 : N.value) && (l.current.set(x, { value: I, keywords: M }), t.current.filtered.items.set(x, U(I, M)), k(2, () => {
1582
- H(), T.emit();
1574
+ i.current.forEach((v) => v());
1575
+ } }), []), O = s.useMemo(() => ({ value: (v, E, M) => {
1576
+ var _;
1577
+ E !== ((_ = l.current.get(v)) == null ? void 0 : _.value) && (l.current.set(v, { value: E, keywords: M }), t.current.filtered.items.set(v, U(E, M)), j(2, () => {
1578
+ H(), D.emit();
1583
1579
  }));
1584
- }, item: (x, I) => (n.current.add(x), I && (a.current.has(I) ? a.current.get(I).add(x) : a.current.set(I, /* @__PURE__ */ new Set([x]))), k(3, () => {
1585
- X(), H(), t.current.value || q(), T.emit();
1580
+ }, item: (v, E) => (n.current.add(v), E && (a.current.has(E) ? a.current.get(E).add(v) : a.current.set(E, /* @__PURE__ */ new Set([v]))), j(3, () => {
1581
+ X(), H(), t.current.value || q(), D.emit();
1586
1582
  }), () => {
1587
- l.current.delete(x), n.current.delete(x), t.current.filtered.items.delete(x);
1588
- let M = Y();
1589
- k(4, () => {
1590
- X(), (M == null ? void 0 : M.getAttribute("id")) === x && q(), T.emit();
1583
+ l.current.delete(v), n.current.delete(v), t.current.filtered.items.delete(v);
1584
+ let M = z();
1585
+ j(4, () => {
1586
+ X(), (M == null ? void 0 : M.getAttribute("id")) === v && q(), D.emit();
1591
1587
  });
1592
- }), group: (x) => (a.current.has(x) || a.current.set(x, /* @__PURE__ */ new Set()), () => {
1593
- l.current.delete(x), a.current.delete(x);
1594
- }), filter: () => c.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: h, inputId: D, labelId: S, listInnerRef: j }), []);
1595
- function U(x, I) {
1596
- var M, N;
1597
- let O = (N = (M = c.current) == null ? void 0 : M.filter) != null ? N : ri;
1598
- return x ? O(x, t.current.search, I) : 0;
1588
+ }), group: (v) => (a.current.has(v) || a.current.set(v, /* @__PURE__ */ new Set()), () => {
1589
+ l.current.delete(v), a.current.delete(v);
1590
+ }), filter: () => c.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => c.current.disablePointerSelection, listId: h, inputId: F, labelId: C, listInnerRef: k }), []);
1591
+ function U(v, E) {
1592
+ var M, _;
1593
+ let P = (_ = (M = c.current) == null ? void 0 : M.filter) != null ? _ : Xl;
1594
+ return v ? P(v, t.current.search, E) : 0;
1599
1595
  }
1600
1596
  function H() {
1601
1597
  if (!t.current.search || c.current.shouldFilter === !1) return;
1602
- let x = t.current.filtered.items, I = [];
1603
- t.current.filtered.groups.forEach((N) => {
1604
- let O = a.current.get(N), C = 0;
1605
- O.forEach((P) => {
1606
- let L = x.get(P);
1607
- C = Math.max(L, C);
1608
- }), I.push([N, C]);
1598
+ let v = t.current.filtered.items, E = [];
1599
+ t.current.filtered.groups.forEach((_) => {
1600
+ let P = a.current.get(_), b = 0;
1601
+ P.forEach((A) => {
1602
+ let $ = v.get(A);
1603
+ b = Math.max($, b);
1604
+ }), E.push([_, b]);
1609
1605
  });
1610
- let M = j.current;
1611
- Z().sort((N, O) => {
1612
- var C, P;
1613
- let L = N.getAttribute("id"), F = O.getAttribute("id");
1614
- return ((C = x.get(F)) != null ? C : 0) - ((P = x.get(L)) != null ? P : 0);
1615
- }).forEach((N) => {
1616
- let O = N.closest(St);
1617
- O ? O.appendChild(N.parentElement === O ? N : N.closest(`${St} > *`)) : M.appendChild(N.parentElement === M ? N : N.closest(`${St} > *`));
1618
- }), I.sort((N, O) => O[1] - N[1]).forEach((N) => {
1619
- var O;
1620
- let C = (O = j.current) == null ? void 0 : O.querySelector(`${Pe}[${we}="${encodeURIComponent(N[0])}"]`);
1621
- C == null || C.parentElement.appendChild(C);
1606
+ let M = k.current;
1607
+ Z().sort((_, P) => {
1608
+ var b, A;
1609
+ let $ = _.getAttribute("id"), L = P.getAttribute("id");
1610
+ return ((b = v.get(L)) != null ? b : 0) - ((A = v.get($)) != null ? A : 0);
1611
+ }).forEach((_) => {
1612
+ let P = _.closest(St);
1613
+ P ? P.appendChild(_.parentElement === P ? _ : _.closest(`${St} > *`)) : M.appendChild(_.parentElement === M ? _ : _.closest(`${St} > *`));
1614
+ }), E.sort((_, P) => P[1] - _[1]).forEach((_) => {
1615
+ var P;
1616
+ let b = (P = k.current) == null ? void 0 : P.querySelector(`${Te}[${ye}="${encodeURIComponent(_[0])}"]`);
1617
+ b == null || b.parentElement.appendChild(b);
1622
1618
  });
1623
1619
  }
1624
1620
  function q() {
1625
- let x = Z().find((M) => M.getAttribute("aria-disabled") !== "true"), I = x == null ? void 0 : x.getAttribute(we);
1626
- T.setState("value", I || void 0);
1621
+ let v = Z().find((M) => M.getAttribute("aria-disabled") !== "true"), E = v == null ? void 0 : v.getAttribute(ye);
1622
+ D.setState("value", E || void 0);
1627
1623
  }
1628
1624
  function X() {
1629
- var x, I, M, N;
1625
+ var v, E, M, _;
1630
1626
  if (!t.current.search || c.current.shouldFilter === !1) {
1631
1627
  t.current.filtered.count = n.current.size;
1632
1628
  return;
1633
1629
  }
1634
1630
  t.current.filtered.groups = /* @__PURE__ */ new Set();
1635
- let O = 0;
1636
- for (let C of n.current) {
1637
- let P = (I = (x = l.current.get(C)) == null ? void 0 : x.value) != null ? I : "", L = (N = (M = l.current.get(C)) == null ? void 0 : M.keywords) != null ? N : [], F = U(P, L);
1638
- t.current.filtered.items.set(C, F), F > 0 && O++;
1631
+ let P = 0;
1632
+ for (let b of n.current) {
1633
+ let A = (E = (v = l.current.get(b)) == null ? void 0 : v.value) != null ? E : "", $ = (_ = (M = l.current.get(b)) == null ? void 0 : M.keywords) != null ? _ : [], L = U(A, $);
1634
+ t.current.filtered.items.set(b, L), L > 0 && P++;
1639
1635
  }
1640
- for (let [C, P] of a.current) for (let L of P) if (t.current.filtered.items.get(L) > 0) {
1641
- t.current.filtered.groups.add(C);
1636
+ for (let [b, A] of a.current) for (let $ of A) if (t.current.filtered.items.get($) > 0) {
1637
+ t.current.filtered.groups.add(b);
1642
1638
  break;
1643
1639
  }
1644
- t.current.filtered.count = O;
1640
+ t.current.filtered.count = P;
1645
1641
  }
1646
1642
  function oe() {
1647
- var x, I, M;
1648
- let N = Y();
1649
- N && (((x = N.parentElement) == null ? void 0 : x.firstChild) === N && ((M = (I = N.closest(Pe)) == null ? void 0 : I.querySelector(ai)) == null || M.scrollIntoView({ block: "nearest" })), N.scrollIntoView({ block: "nearest" }));
1643
+ var v, E, M;
1644
+ let _ = z();
1645
+ _ && (((v = _.parentElement) == null ? void 0 : v.firstChild) === _ && ((M = (E = _.closest(Te)) == null ? void 0 : E.querySelector(ql)) == null || M.scrollIntoView({ block: "nearest" })), _.scrollIntoView({ block: "nearest" }));
1650
1646
  }
1651
- function Y() {
1652
- var x;
1653
- return (x = j.current) == null ? void 0 : x.querySelector(`${so}[aria-selected="true"]`);
1647
+ function z() {
1648
+ var v;
1649
+ return (v = k.current) == null ? void 0 : v.querySelector(`${ro}[aria-selected="true"]`);
1654
1650
  }
1655
1651
  function Z() {
1656
- var x;
1657
- return Array.from(((x = j.current) == null ? void 0 : x.querySelectorAll(So)) || []);
1658
- }
1659
- function V(x) {
1660
- let I = Z()[x];
1661
- I && T.setState("value", I.getAttribute(we));
1662
- }
1663
- function ne(x) {
1664
- var I;
1665
- let M = Y(), N = Z(), O = N.findIndex((P) => P === M), C = N[O + x];
1666
- (I = c.current) != null && I.loop && (C = O + x < 0 ? N[N.length - 1] : O + x === N.length ? N[0] : N[O + x]), C && T.setState("value", C.getAttribute(we));
1667
- }
1668
- function J(x) {
1669
- let I = Y(), M = I == null ? void 0 : I.closest(Pe), N;
1670
- for (; M && !N; ) M = x > 0 ? mi(M, Pe) : gi(M, Pe), N = M == null ? void 0 : M.querySelector(So);
1671
- N ? T.setState("value", N.getAttribute(we)) : ne(x);
1672
- }
1673
- let R = () => V(Z().length - 1), Q = (x) => {
1674
- x.preventDefault(), x.metaKey ? R() : x.altKey ? J(1) : ne(1);
1675
- }, te = (x) => {
1676
- x.preventDefault(), x.metaKey ? V(0) : x.altKey ? J(-1) : ne(-1);
1652
+ var v;
1653
+ return Array.from(((v = k.current) == null ? void 0 : v.querySelectorAll(bo)) || []);
1654
+ }
1655
+ function V(v) {
1656
+ let E = Z()[v];
1657
+ E && D.setState("value", E.getAttribute(ye));
1658
+ }
1659
+ function ne(v) {
1660
+ var E;
1661
+ let M = z(), _ = Z(), P = _.findIndex((A) => A === M), b = _[P + v];
1662
+ (E = c.current) != null && E.loop && (b = P + v < 0 ? _[_.length - 1] : P + v === _.length ? _[0] : _[P + v]), b && D.setState("value", b.getAttribute(ye));
1663
+ }
1664
+ function J(v) {
1665
+ let E = z(), M = E == null ? void 0 : E.closest(Te), _;
1666
+ for (; M && !_; ) M = v > 0 ? ri(M, Te) : si(M, Te), _ = M == null ? void 0 : M.querySelector(bo);
1667
+ _ ? D.setState("value", _.getAttribute(ye)) : ne(v);
1668
+ }
1669
+ let R = () => V(Z().length - 1), Q = (v) => {
1670
+ v.preventDefault(), v.metaKey ? R() : v.altKey ? J(1) : ne(1);
1671
+ }, te = (v) => {
1672
+ v.preventDefault(), v.metaKey ? V(0) : v.altKey ? J(-1) : ne(-1);
1677
1673
  };
1678
- return s.createElement(A.div, { ref: o, tabIndex: -1, ...w, "cmdk-root": "", onKeyDown: (x) => {
1679
- var I;
1680
- if ((I = w.onKeyDown) == null || I.call(w, x), !x.defaultPrevented) switch (x.key) {
1674
+ return s.createElement(T.div, { ref: o, tabIndex: -1, ...S, "cmdk-root": "", onKeyDown: (v) => {
1675
+ var E;
1676
+ if ((E = S.onKeyDown) == null || E.call(S, v), !v.defaultPrevented) switch (v.key) {
1681
1677
  case "n":
1682
1678
  case "j": {
1683
- y && x.ctrlKey && Q(x);
1679
+ y && v.ctrlKey && Q(v);
1684
1680
  break;
1685
1681
  }
1686
1682
  case "ArrowDown": {
1687
- Q(x);
1683
+ Q(v);
1688
1684
  break;
1689
1685
  }
1690
1686
  case "p":
1691
1687
  case "k": {
1692
- y && x.ctrlKey && te(x);
1688
+ y && v.ctrlKey && te(v);
1693
1689
  break;
1694
1690
  }
1695
1691
  case "ArrowUp": {
1696
- te(x);
1692
+ te(v);
1697
1693
  break;
1698
1694
  }
1699
1695
  case "Home": {
1700
- x.preventDefault(), V(0);
1696
+ v.preventDefault(), V(0);
1701
1697
  break;
1702
1698
  }
1703
1699
  case "End": {
1704
- x.preventDefault(), R();
1700
+ v.preventDefault(), R();
1705
1701
  break;
1706
1702
  }
1707
1703
  case "Enter":
1708
- if (!x.nativeEvent.isComposing && x.keyCode !== 229) {
1709
- x.preventDefault();
1710
- let M = Y();
1704
+ if (!v.nativeEvent.isComposing && v.keyCode !== 229) {
1705
+ v.preventDefault();
1706
+ let M = z();
1711
1707
  if (M) {
1712
- let N = new Event(Dt);
1713
- M.dispatchEvent(N);
1708
+ let _ = new Event(Mt);
1709
+ M.dispatchEvent(_);
1714
1710
  }
1715
1711
  }
1716
1712
  }
1717
- } }, s.createElement("label", { "cmdk-label": "", htmlFor: $.inputId, id: $.labelId, style: xi }, d), ct(e, (x) => s.createElement(sa.Provider, { value: T }, s.createElement(ra.Provider, { value: $ }, x))));
1718
- }), si = s.forwardRef((e, o) => {
1713
+ } }, s.createElement("label", { "cmdk-label": "", htmlFor: O.inputId, id: O.labelId, style: ci }, d), it(e, (v) => s.createElement(na.Provider, { value: D }, s.createElement(oa.Provider, { value: O }, v))));
1714
+ }), Zl = s.forwardRef((e, o) => {
1719
1715
  var t, n;
1720
- let a = ee(), l = s.useRef(null), i = s.useContext(la), c = ze(), d = ca(e), u = (n = (t = d.current) == null ? void 0 : t.forceMount) != null ? n : i == null ? void 0 : i.forceMount;
1716
+ let a = ee(), l = s.useRef(null), i = s.useContext(aa), c = We(), d = sa(e), u = (n = (t = d.current) == null ? void 0 : t.forceMount) != null ? n : i == null ? void 0 : i.forceMount;
1721
1717
  Se(() => {
1722
1718
  if (!u) return c.item(a, i == null ? void 0 : i.id);
1723
1719
  }, [u]);
1724
- let f = da(a, l, [e.value, e.children, l], e.keywords), p = lo(), v = _e((k) => k.value && k.value === f.current), b = _e((k) => u || c.filter() === !1 ? !0 : k.search ? k.filtered.items.get(a) > 0 : !0);
1720
+ let f = la(a, l, [e.value, e.children, l], e.keywords), p = so(), x = Ce((j) => j.value && j.value === f.current), w = Ce((j) => u || c.filter() === !1 ? !0 : j.search ? j.filtered.items.get(a) > 0 : !0);
1725
1721
  s.useEffect(() => {
1726
- let k = l.current;
1727
- if (!(!k || e.disabled)) return k.addEventListener(Dt, g), () => k.removeEventListener(Dt, g);
1728
- }, [b, e.onSelect, e.disabled]);
1722
+ let j = l.current;
1723
+ if (!(!j || e.disabled)) return j.addEventListener(Mt, g), () => j.removeEventListener(Mt, g);
1724
+ }, [w, e.onSelect, e.disabled]);
1729
1725
  function g() {
1730
- var k, T;
1731
- m(), (T = (k = d.current).onSelect) == null || T.call(k, f.current);
1726
+ var j, D;
1727
+ m(), (D = (j = d.current).onSelect) == null || D.call(j, f.current);
1732
1728
  }
1733
1729
  function m() {
1734
1730
  p.setState("value", f.current, !0);
1735
1731
  }
1736
- if (!b) return null;
1737
- let { disabled: y, value: w, onSelect: h, forceMount: S, keywords: D, ...j } = e;
1738
- return s.createElement(A.div, { ref: Ve([l, o]), ...j, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!y, "aria-selected": !!v, "data-disabled": !!y, "data-selected": !!v, onPointerMove: y || c.getDisablePointerSelection() ? void 0 : m, onClick: y ? void 0 : g }, e.children);
1739
- }), li = s.forwardRef((e, o) => {
1740
- let { heading: t, children: n, forceMount: a, ...l } = e, i = ee(), c = s.useRef(null), d = s.useRef(null), u = ee(), f = ze(), p = _e((b) => a || f.filter() === !1 ? !0 : b.search ? b.filtered.groups.has(i) : !0);
1741
- Se(() => f.group(i), []), da(i, c, [e.value, e.heading, d]);
1742
- let v = s.useMemo(() => ({ id: i, forceMount: a }), [a]);
1743
- return s.createElement(A.div, { ref: Ve([c, o]), ...l, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, t && s.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, t), ct(e, (b) => s.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? u : void 0 }, s.createElement(la.Provider, { value: v }, b))));
1744
- }), ii = s.forwardRef((e, o) => {
1745
- let { alwaysRender: t, ...n } = e, a = s.useRef(null), l = _e((i) => !i.search);
1746
- return !t && !l ? null : s.createElement(A.div, { ref: Ve([a, o]), ...n, "cmdk-separator": "", role: "separator" });
1747
- }), ci = s.forwardRef((e, o) => {
1748
- let { onValueChange: t, ...n } = e, a = e.value != null, l = lo(), i = _e((f) => f.search), c = _e((f) => f.value), d = ze(), u = s.useMemo(() => {
1732
+ if (!w) return null;
1733
+ let { disabled: y, value: S, onSelect: h, forceMount: C, keywords: F, ...k } = e;
1734
+ return s.createElement(T.div, { ref: Fe([l, o]), ...k, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!y, "aria-selected": !!x, "data-disabled": !!y, "data-selected": !!x, onPointerMove: y || c.getDisablePointerSelection() ? void 0 : m, onClick: y ? void 0 : g }, e.children);
1735
+ }), Jl = s.forwardRef((e, o) => {
1736
+ let { heading: t, children: n, forceMount: a, ...l } = e, i = ee(), c = s.useRef(null), d = s.useRef(null), u = ee(), f = We(), p = Ce((w) => a || f.filter() === !1 ? !0 : w.search ? w.filtered.groups.has(i) : !0);
1737
+ Se(() => f.group(i), []), la(i, c, [e.value, e.heading, d]);
1738
+ let x = s.useMemo(() => ({ id: i, forceMount: a }), [a]);
1739
+ return s.createElement(T.div, { ref: Fe([c, o]), ...l, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, t && s.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, t), it(e, (w) => s.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": t ? u : void 0 }, s.createElement(aa.Provider, { value: x }, w))));
1740
+ }), Ql = s.forwardRef((e, o) => {
1741
+ let { alwaysRender: t, ...n } = e, a = s.useRef(null), l = Ce((i) => !i.search);
1742
+ return !t && !l ? null : s.createElement(T.div, { ref: Fe([a, o]), ...n, "cmdk-separator": "", role: "separator" });
1743
+ }), ei = s.forwardRef((e, o) => {
1744
+ let { onValueChange: t, ...n } = e, a = e.value != null, l = so(), i = Ce((f) => f.search), c = Ce((f) => f.value), d = We(), u = s.useMemo(() => {
1749
1745
  var f;
1750
- let p = (f = d.listInnerRef.current) == null ? void 0 : f.querySelector(`${so}[${we}="${encodeURIComponent(c)}"]`);
1746
+ let p = (f = d.listInnerRef.current) == null ? void 0 : f.querySelector(`${ro}[${ye}="${encodeURIComponent(c)}"]`);
1751
1747
  return p == null ? void 0 : p.getAttribute("id");
1752
1748
  }, []);
1753
1749
  return s.useEffect(() => {
1754
1750
  e.value != null && l.setState("search", e.value);
1755
- }, [e.value]), s.createElement(A.input, { ref: o, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": u, id: d.inputId, type: "text", value: a ? e.value : i, onChange: (f) => {
1751
+ }, [e.value]), s.createElement(T.input, { ref: o, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": u, id: d.inputId, type: "text", value: a ? e.value : i, onChange: (f) => {
1756
1752
  a || l.setState("search", f.target.value), t == null || t(f.target.value);
1757
1753
  } });
1758
- }), di = s.forwardRef((e, o) => {
1759
- let { children: t, label: n = "Suggestions", ...a } = e, l = s.useRef(null), i = s.useRef(null), c = ze();
1754
+ }), ti = s.forwardRef((e, o) => {
1755
+ let { children: t, label: n = "Suggestions", ...a } = e, l = s.useRef(null), i = s.useRef(null), c = We();
1760
1756
  return s.useEffect(() => {
1761
1757
  if (i.current && l.current) {
1762
1758
  let d = i.current, u = l.current, f, p = new ResizeObserver(() => {
1763
1759
  f = requestAnimationFrame(() => {
1764
- let v = d.offsetHeight;
1765
- u.style.setProperty("--cmdk-list-height", v.toFixed(1) + "px");
1760
+ let x = d.offsetHeight;
1761
+ u.style.setProperty("--cmdk-list-height", x.toFixed(1) + "px");
1766
1762
  });
1767
1763
  });
1768
1764
  return p.observe(d), () => {
1769
1765
  cancelAnimationFrame(f), p.unobserve(d);
1770
1766
  };
1771
1767
  }
1772
- }, []), s.createElement(A.div, { ref: Ve([l, o]), ...a, "cmdk-list": "", role: "listbox", "aria-label": n, id: c.listId }, ct(e, (d) => s.createElement("div", { ref: Ve([i, c.listInnerRef]), "cmdk-list-sizer": "" }, d)));
1773
- }), ui = s.forwardRef((e, o) => {
1768
+ }, []), s.createElement(T.div, { ref: Fe([l, o]), ...a, "cmdk-list": "", role: "listbox", "aria-label": n, id: c.listId }, it(e, (d) => s.createElement("div", { ref: Fe([i, c.listInnerRef]), "cmdk-list-sizer": "" }, d)));
1769
+ }), oi = s.forwardRef((e, o) => {
1774
1770
  let { open: t, onOpenChange: n, overlayClassName: a, contentClassName: l, container: i, ...c } = e;
1775
- return s.createElement(nt, { open: t, onOpenChange: n }, s.createElement(at, { container: i }, s.createElement(Me, { "cmdk-overlay": "", className: a }), s.createElement(De, { "aria-label": e.label, "cmdk-dialog": "", className: l }, s.createElement(ia, { ref: o, ...c }))));
1776
- }), pi = s.forwardRef((e, o) => _e((t) => t.filtered.count === 0) ? s.createElement(A.div, { ref: o, ...e, "cmdk-empty": "", role: "presentation" }) : null), fi = s.forwardRef((e, o) => {
1771
+ return s.createElement(ot, { open: t, onOpenChange: n }, s.createElement(nt, { container: i }, s.createElement(Ee, { "cmdk-overlay": "", className: a }), s.createElement(Me, { "aria-label": e.label, "cmdk-dialog": "", className: l }, s.createElement(ra, { ref: o, ...c }))));
1772
+ }), ni = s.forwardRef((e, o) => Ce((t) => t.filtered.count === 0) ? s.createElement(T.div, { ref: o, ...e, "cmdk-empty": "", role: "presentation" }) : null), ai = s.forwardRef((e, o) => {
1777
1773
  let { progress: t, children: n, label: a = "Loading...", ...l } = e;
1778
- return s.createElement(A.div, { ref: o, ...l, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, ct(e, (i) => s.createElement("div", { "aria-hidden": !0 }, i)));
1779
- }), re = Object.assign(ia, { List: di, Item: si, Input: ci, Group: li, Separator: ii, Dialog: ui, Empty: pi, Loading: fi });
1780
- function mi(e, o) {
1774
+ return s.createElement(T.div, { ref: o, ...l, "cmdk-loading": "", role: "progressbar", "aria-valuenow": t, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, it(e, (i) => s.createElement("div", { "aria-hidden": !0 }, i)));
1775
+ }), re = Object.assign(ra, { List: ti, Item: Zl, Input: ei, Group: Jl, Separator: Ql, Dialog: oi, Empty: ni, Loading: ai });
1776
+ function ri(e, o) {
1781
1777
  let t = e.nextElementSibling;
1782
1778
  for (; t; ) {
1783
1779
  if (t.matches(o)) return t;
1784
1780
  t = t.nextElementSibling;
1785
1781
  }
1786
1782
  }
1787
- function gi(e, o) {
1783
+ function si(e, o) {
1788
1784
  let t = e.previousElementSibling;
1789
1785
  for (; t; ) {
1790
1786
  if (t.matches(o)) return t;
1791
1787
  t = t.previousElementSibling;
1792
1788
  }
1793
1789
  }
1794
- function ca(e) {
1790
+ function sa(e) {
1795
1791
  let o = s.useRef(e);
1796
1792
  return Se(() => {
1797
1793
  o.current = e;
1798
1794
  }), o;
1799
1795
  }
1800
1796
  var Se = typeof window > "u" ? s.useEffect : s.useLayoutEffect;
1801
- function Ee(e) {
1797
+ function Re(e) {
1802
1798
  let o = s.useRef();
1803
1799
  return o.current === void 0 && (o.current = e()), o;
1804
1800
  }
1805
- function Ve(e) {
1801
+ function Fe(e) {
1806
1802
  return (o) => {
1807
1803
  e.forEach((t) => {
1808
1804
  typeof t == "function" ? t(o) : t != null && (t.current = o);
1809
1805
  });
1810
1806
  };
1811
1807
  }
1812
- function _e(e) {
1813
- let o = lo(), t = () => e(o.snapshot());
1814
- return ni.useSyncExternalStore(o.subscribe, t, t);
1808
+ function Ce(e) {
1809
+ let o = so(), t = () => e(o.snapshot());
1810
+ return Yl.useSyncExternalStore(o.subscribe, t, t);
1815
1811
  }
1816
- function da(e, o, t, n = []) {
1817
- let a = s.useRef(), l = ze();
1812
+ function la(e, o, t, n = []) {
1813
+ let a = s.useRef(), l = We();
1818
1814
  return Se(() => {
1819
1815
  var i;
1820
1816
  let c = (() => {
@@ -1824,117 +1820,117 @@ function da(e, o, t, n = []) {
1824
1820
  if (typeof f == "object" && "current" in f) return f.current ? (u = f.current.textContent) == null ? void 0 : u.trim() : a.current;
1825
1821
  }
1826
1822
  })(), d = n.map((u) => u.trim());
1827
- l.value(e, c, d), (i = o.current) == null || i.setAttribute(we, c), a.current = c;
1823
+ l.value(e, c, d), (i = o.current) == null || i.setAttribute(ye, c), a.current = c;
1828
1824
  }), a;
1829
1825
  }
1830
- var vi = () => {
1831
- let [e, o] = s.useState(), t = Ee(() => /* @__PURE__ */ new Map());
1826
+ var li = () => {
1827
+ let [e, o] = s.useState(), t = Re(() => /* @__PURE__ */ new Map());
1832
1828
  return Se(() => {
1833
1829
  t.current.forEach((n) => n()), t.current = /* @__PURE__ */ new Map();
1834
1830
  }, [e]), (n, a) => {
1835
1831
  t.current.set(n, a), o({});
1836
1832
  };
1837
1833
  };
1838
- function hi(e) {
1834
+ function ii(e) {
1839
1835
  let o = e.type;
1840
1836
  return typeof o == "function" ? o(e.props) : "render" in o ? o.render(e.props) : e;
1841
1837
  }
1842
- function ct({ asChild: e, children: o }, t) {
1843
- return e && s.isValidElement(o) ? s.cloneElement(hi(o), { ref: o.ref }, t(o.props.children)) : t(o);
1838
+ function it({ asChild: e, children: o }, t) {
1839
+ return e && s.isValidElement(o) ? s.cloneElement(ii(o), { ref: o.ref }, t(o.props.children)) : t(o);
1844
1840
  }
1845
- var xi = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
1846
- const bi = nt, Nd = Xt, yi = at, Rd = Ae, ua = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1847
- Me,
1841
+ var ci = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
1842
+ const di = ot, id = qt, ui = nt, cd = De, ia = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1843
+ Ee,
1848
1844
  {
1849
1845
  ref: t,
1850
- className: E(
1846
+ className: I(
1851
1847
  "al-fixed al-inset-0 al-z-50 al-bg-black/80 al- data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0",
1852
1848
  e
1853
1849
  ),
1854
1850
  ...o
1855
1851
  }
1856
1852
  ));
1857
- ua.displayName = Me.displayName;
1858
- const pa = z(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(yi, { children: [
1859
- /* @__PURE__ */ r.jsx(ua, {}),
1853
+ ia.displayName = Ee.displayName;
1854
+ const ca = Y(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(ui, { children: [
1855
+ /* @__PURE__ */ r.jsx(ia, {}),
1860
1856
  /* @__PURE__ */ r.jsxs(
1861
- De,
1857
+ Me,
1862
1858
  {
1863
1859
  ref: n,
1864
- className: E(
1860
+ className: I(
1865
1861
  "al-fixed al-left-[50%] al-top-[50%] al-z-50 al-grid al-w-full al-max-w-lg al-translate-x-[-50%] al-translate-y-[-50%] al-gap-4 al-border al-bg-background al-p-6 al-shadow-lg al-duration-200 data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[state=closed]:al-slide-out-to-left-1/2 data-[state=closed]:al-slide-out-to-top-[48%] data-[state=open]:al-slide-in-from-left-1/2 data-[state=open]:al-slide-in-from-top-[48%] sm:al-rounded-lg",
1866
1862
  e
1867
1863
  ),
1868
1864
  ...t,
1869
1865
  children: [
1870
1866
  o,
1871
- /* @__PURE__ */ r.jsxs(Ae, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-accent data-[state=open]:al-text-muted-foreground", children: [
1872
- /* @__PURE__ */ r.jsx(Ro, { className: "al-h-4 al-w-4" }),
1867
+ /* @__PURE__ */ r.jsxs(De, { className: "al-absolute al-right-4 al-top-4 al-rounded-sm al-opacity-70 al-ring-offset-background al-transition-opacity hover:al-opacity-100 focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-pointer-events-none data-[state=open]:al-bg-accent data-[state=open]:al-text-muted-foreground", children: [
1868
+ /* @__PURE__ */ r.jsx(_o, { className: "al-h-4 al-w-4" }),
1873
1869
  /* @__PURE__ */ r.jsx("span", { className: "al-sr-only", children: "Close" })
1874
1870
  ] })
1875
1871
  ]
1876
1872
  }
1877
1873
  )
1878
1874
  ] }));
1879
- pa.displayName = De.displayName;
1880
- const wi = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1875
+ ca.displayName = Me.displayName;
1876
+ const pi = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1881
1877
  "div",
1882
1878
  {
1883
- className: E("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
1879
+ className: I("al-flex al-flex-col al-space-y-1.5 al-text-center sm:al-text-left", e),
1884
1880
  ...o
1885
1881
  }
1886
1882
  );
1887
- wi.displayName = "DialogHeader";
1888
- const Ci = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1883
+ pi.displayName = "DialogHeader";
1884
+ const fi = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1889
1885
  "div",
1890
1886
  {
1891
- className: E(
1887
+ className: I(
1892
1888
  "al-flex al-flex-col-reverse sm:al-flex-row sm:al-justify-end sm:al-space-x-2",
1893
1889
  e
1894
1890
  ),
1895
1891
  ...o
1896
1892
  }
1897
1893
  );
1898
- Ci.displayName = "DialogFooter";
1899
- const Si = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1900
- Ke,
1894
+ fi.displayName = "DialogFooter";
1895
+ const mi = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1896
+ Ge,
1901
1897
  {
1902
1898
  ref: t,
1903
- className: E("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
1899
+ className: I("al-text-lg al-font-semibold al-leading-none al-tracking-tight", e),
1904
1900
  ...o
1905
1901
  }
1906
1902
  ));
1907
- Si.displayName = Ke.displayName;
1908
- const _i = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1909
- Be,
1903
+ mi.displayName = Ge.displayName;
1904
+ const gi = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1905
+ Ke,
1910
1906
  {
1911
1907
  ref: t,
1912
- className: E("al-text-sm al-text-muted-foreground", e),
1908
+ className: I("al-text-sm al-text-muted-foreground", e),
1913
1909
  ...o
1914
1910
  }
1915
1911
  ));
1916
- _i.displayName = Be.displayName;
1917
- const fa = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1912
+ gi.displayName = Ke.displayName;
1913
+ const da = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1918
1914
  re,
1919
1915
  {
1920
1916
  ref: t,
1921
- className: E(
1917
+ className: I(
1922
1918
  "al-flex al-h-full al-w-full al-flex-col al-overflow-hidden al-rounded-md al-bg-popover al-text-popover-foreground",
1923
1919
  e
1924
1920
  ),
1925
1921
  ...o
1926
1922
  }
1927
1923
  ));
1928
- fa.displayName = re.displayName;
1929
- const Ed = ({ children: e, ...o }) => /* @__PURE__ */ r.jsx(bi, { ...o, children: /* @__PURE__ */ r.jsx(pa, { className: "al-overflow-hidden al-p-0 al-shadow-lg", children: /* @__PURE__ */ r.jsx(fa, { className: "[&_[cmdk-group-heading]]:al-px-2 [&_[cmdk-group-heading]]:al-font-medium [&_[cmdk-group-heading]]:al-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:al-pt-0 [&_[cmdk-group]]:al-px-2 [&_[cmdk-input-wrapper]_svg]:al-h-5 [&_[cmdk-input-wrapper]_svg]:al-w-5 [&_[cmdk-input]]:al-h-12 [&_[cmdk-item]]:al-px-2 [&_[cmdk-item]]:al-py-3 [&_[cmdk-item]_svg]:al-h-5 [&_[cmdk-item]_svg]:al-w-5", children: e }) }) }), Ni = z(({ className: e, ...o }, t) => (
1924
+ da.displayName = re.displayName;
1925
+ const dd = ({ children: e, ...o }) => /* @__PURE__ */ r.jsx(di, { ...o, children: /* @__PURE__ */ r.jsx(ca, { className: "al-overflow-hidden al-p-0 al-shadow-lg", children: /* @__PURE__ */ r.jsx(da, { className: "[&_[cmdk-group-heading]]:al-px-2 [&_[cmdk-group-heading]]:al-font-medium [&_[cmdk-group-heading]]:al-text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:al-pt-0 [&_[cmdk-group]]:al-px-2 [&_[cmdk-input-wrapper]_svg]:al-h-5 [&_[cmdk-input-wrapper]_svg]:al-w-5 [&_[cmdk-input]]:al-h-12 [&_[cmdk-item]]:al-px-2 [&_[cmdk-item]]:al-py-3 [&_[cmdk-item]_svg]:al-h-5 [&_[cmdk-item]_svg]:al-w-5", children: e }) }) }), vi = Y(({ className: e, ...o }, t) => (
1930
1926
  // eslint-disable-next-line react/no-unknown-property
1931
1927
  /* @__PURE__ */ r.jsxs("div", { className: "al-flex al-items-center al-border-b al-px-3", "cmdk-input-wrapper": "", children: [
1932
- /* @__PURE__ */ r.jsx(Ur, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
1928
+ /* @__PURE__ */ r.jsx(kr, { className: "al-mr-2 al-h-4 al-w-4 al-shrink-0 al-opacity-50" }),
1933
1929
  /* @__PURE__ */ r.jsx(
1934
1930
  re.Input,
1935
1931
  {
1936
1932
  ref: t,
1937
- className: E(
1933
+ className: I(
1938
1934
  "al-flex al-h-11 al-w-full al-rounded-md al-bg-transparent al-py-3 al-text-sm al-outline-none placeholder:al-text-muted-foreground disabled:al-cursor-not-allowed disabled:al-opacity-50",
1939
1935
  e
1940
1936
  ),
@@ -1943,265 +1939,61 @@ const Ed = ({ children: e, ...o }) => /* @__PURE__ */ r.jsx(bi, { ...o, children
1943
1939
  )
1944
1940
  ] })
1945
1941
  ));
1946
- Ni.displayName = re.Input.displayName;
1947
- const Ri = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1942
+ vi.displayName = re.Input.displayName;
1943
+ const hi = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1948
1944
  re.List,
1949
1945
  {
1950
1946
  ref: t,
1951
- className: E("al-max-h-[300px] al-overflow-y-auto al-overflow-x-hidden", e),
1947
+ className: I("al-max-h-[300px] al-overflow-y-auto al-overflow-x-hidden", e),
1952
1948
  ...o
1953
1949
  }
1954
1950
  ));
1955
- Ri.displayName = re.List.displayName;
1956
- const Ei = z((e, o) => /* @__PURE__ */ r.jsx(re.Empty, { ref: o, className: "al-py-6 al-text-center al-text-sm", ...e }));
1957
- Ei.displayName = re.Empty.displayName;
1958
- const Ii = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1951
+ hi.displayName = re.List.displayName;
1952
+ const xi = Y((e, o) => /* @__PURE__ */ r.jsx(re.Empty, { ref: o, className: "al-py-6 al-text-center al-text-sm", ...e }));
1953
+ xi.displayName = re.Empty.displayName;
1954
+ const wi = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1959
1955
  re.Group,
1960
1956
  {
1961
1957
  ref: t,
1962
- className: E(
1958
+ className: I(
1963
1959
  "al-overflow-hidden al-p-1 al-text-foreground [&_[cmdk-group-heading]]:al-px-2 [&_[cmdk-group-heading]]:al-py-1.5 [&_[cmdk-group-heading]]:al-text-xs [&_[cmdk-group-heading]]:al-font-medium [&_[cmdk-group-heading]]:al-text-muted-foreground",
1964
1960
  e
1965
1961
  ),
1966
1962
  ...o
1967
1963
  }
1968
1964
  ));
1969
- Ii.displayName = re.Group.displayName;
1970
- const Mi = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1965
+ wi.displayName = re.Group.displayName;
1966
+ const yi = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1971
1967
  re.Separator,
1972
1968
  {
1973
1969
  ref: t,
1974
- className: E("al--mx-1 al-h-px al-bg-border", e),
1970
+ className: I("al--mx-1 al-h-px al-bg-border", e),
1975
1971
  ...o
1976
1972
  }
1977
1973
  ));
1978
- Mi.displayName = re.Separator.displayName;
1979
- const Di = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1974
+ yi.displayName = re.Separator.displayName;
1975
+ const bi = Y(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
1980
1976
  re.Item,
1981
1977
  {
1982
1978
  ref: t,
1983
1979
  role: "option",
1984
- className: E(
1980
+ className: I(
1985
1981
  "al-relative al-flex al-cursor-default al-gap-2 al-select-none al-items-center al-rounded-sm al-px-2 al-py-1.5 al-text-sm al-outline-none data-[disabled=true]:al-pointer-events-none data-[selected=true]:al-bg-accent data-[selected=true]:al-text-accent-foreground data-[disabled=true]:al-opacity-50 [&_svg]:al-pointer-events-none [&_svg]:al-size-4 [&_svg]:al-shrink-0",
1986
1982
  e
1987
1983
  ),
1988
1984
  ...o
1989
1985
  }
1990
1986
  ));
1991
- Di.displayName = re.Item.displayName;
1992
- const Ai = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1987
+ bi.displayName = re.Item.displayName;
1988
+ const Si = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
1993
1989
  "span",
1994
1990
  {
1995
- className: E("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
1991
+ className: I("al-ml-auto al-text-xs al-tracking-widest al-text-muted-foreground", e),
1996
1992
  ...o
1997
1993
  }
1998
1994
  );
1999
- Ai.displayName = "CommandShortcut";
2000
- var io = "Checkbox", [Ti, Id] = de(io), [Pi, ji] = Ti(io), ma = s.forwardRef(
2001
- (e, o) => {
2002
- const {
2003
- __scopeCheckbox: t,
2004
- name: n,
2005
- checked: a,
2006
- defaultChecked: l,
2007
- required: i,
2008
- disabled: c,
2009
- value: d = "on",
2010
- onCheckedChange: u,
2011
- form: f,
2012
- ...p
2013
- } = e, [v, b] = s.useState(null), g = G(o, (D) => b(D)), m = s.useRef(!1), y = v ? f || !!v.closest("form") : !0, [w = !1, h] = ce({
2014
- prop: a,
2015
- defaultProp: l,
2016
- onChange: u
2017
- }), S = s.useRef(w);
2018
- return s.useEffect(() => {
2019
- const D = v == null ? void 0 : v.form;
2020
- if (D) {
2021
- const j = () => h(S.current);
2022
- return D.addEventListener("reset", j), () => D.removeEventListener("reset", j);
2023
- }
2024
- }, [v, h]), /* @__PURE__ */ r.jsxs(Pi, { scope: t, state: w, disabled: c, children: [
2025
- /* @__PURE__ */ r.jsx(
2026
- A.button,
2027
- {
2028
- type: "button",
2029
- role: "checkbox",
2030
- "aria-checked": ge(w) ? "mixed" : w,
2031
- "aria-required": i,
2032
- "data-state": ha(w),
2033
- "data-disabled": c ? "" : void 0,
2034
- disabled: c,
2035
- value: d,
2036
- ...p,
2037
- ref: g,
2038
- onKeyDown: _(e.onKeyDown, (D) => {
2039
- D.key === "Enter" && D.preventDefault();
2040
- }),
2041
- onClick: _(e.onClick, (D) => {
2042
- h((j) => ge(j) ? !0 : !j), y && (m.current = D.isPropagationStopped(), m.current || D.stopPropagation());
2043
- })
2044
- }
2045
- ),
2046
- y && /* @__PURE__ */ r.jsx(
2047
- Oi,
2048
- {
2049
- control: v,
2050
- bubbles: !m.current,
2051
- name: n,
2052
- value: d,
2053
- checked: w,
2054
- required: i,
2055
- disabled: c,
2056
- form: f,
2057
- style: { transform: "translateX(-100%)" },
2058
- defaultChecked: ge(l) ? !1 : l
2059
- }
2060
- )
2061
- ] });
2062
- }
2063
- );
2064
- ma.displayName = io;
2065
- var ga = "CheckboxIndicator", va = s.forwardRef(
2066
- (e, o) => {
2067
- const { __scopeCheckbox: t, forceMount: n, ...a } = e, l = ji(ga, t);
2068
- return /* @__PURE__ */ r.jsx(pe, { present: n || ge(l.state) || l.state === !0, children: /* @__PURE__ */ r.jsx(
2069
- A.span,
2070
- {
2071
- "data-state": ha(l.state),
2072
- "data-disabled": l.disabled ? "" : void 0,
2073
- ...a,
2074
- ref: o,
2075
- style: { pointerEvents: "none", ...e.style }
2076
- }
2077
- ) });
2078
- }
2079
- );
2080
- va.displayName = ga;
2081
- var Oi = (e) => {
2082
- const { control: o, checked: t, bubbles: n = !0, defaultChecked: a, ...l } = e, i = s.useRef(null), c = an(t), d = Yr(o);
2083
- s.useEffect(() => {
2084
- const f = i.current, p = window.HTMLInputElement.prototype, b = Object.getOwnPropertyDescriptor(p, "checked").set;
2085
- if (c !== t && b) {
2086
- const g = new Event("click", { bubbles: n });
2087
- f.indeterminate = ge(t), b.call(f, ge(t) ? !1 : t), f.dispatchEvent(g);
2088
- }
2089
- }, [c, t, n]);
2090
- const u = s.useRef(ge(t) ? !1 : t);
2091
- return /* @__PURE__ */ r.jsx(
2092
- "input",
2093
- {
2094
- type: "checkbox",
2095
- "aria-hidden": !0,
2096
- defaultChecked: a ?? u.current,
2097
- ...l,
2098
- tabIndex: -1,
2099
- ref: i,
2100
- style: {
2101
- ...e.style,
2102
- ...d,
2103
- position: "absolute",
2104
- pointerEvents: "none",
2105
- opacity: 0,
2106
- margin: 0
2107
- }
2108
- }
2109
- );
2110
- };
2111
- function ge(e) {
2112
- return e === "indeterminate";
2113
- }
2114
- function ha(e) {
2115
- return ge(e) ? "indeterminate" : e ? "checked" : "unchecked";
2116
- }
2117
- var xa = ma, ki = va;
2118
- const $i = z(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2119
- xa,
2120
- {
2121
- ref: t,
2122
- className: E(
2123
- "al-peer al-h-4 al-w-4 al-shrink-0 al-rounded-xs al-border al-border-primary al-ring-offset-background focus-visible:al-outline-none focus-visible:al-ring-2 focus-visible:al-ring-ring focus-visible:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 data-[state=checked]:al-bg-primary data-[state=checked]:al-text-primary-foreground",
2124
- e
2125
- ),
2126
- ...o,
2127
- children: /* @__PURE__ */ r.jsx(
2128
- ki,
2129
- {
2130
- className: E("al-flex al-items-center al-justify-center al-text-current"),
2131
- children: /* @__PURE__ */ r.jsx(
2132
- "svg",
2133
- {
2134
- xmlns: "http://www.w3.org/2000/svg",
2135
- width: "16",
2136
- height: "16",
2137
- viewBox: "0 0 24 24",
2138
- fill: "none",
2139
- stroke: "currentColor",
2140
- strokeWidth: "2",
2141
- strokeLinecap: "round",
2142
- strokeLinejoin: "round",
2143
- children: /* @__PURE__ */ r.jsx("path", { d: "M20 6 9 17l-5-5" })
2144
- }
2145
- )
2146
- }
2147
- )
2148
- }
2149
- ));
2150
- $i.displayName = xa.displayName;
2151
- const Li = {
2152
- h1: "h1",
2153
- h2: "h2",
2154
- h3: "h3",
2155
- h4: "h4",
2156
- subheading: "h5",
2157
- body: "p",
2158
- caption: "span"
2159
- }, Fi = {
2160
- h1: "regular",
2161
- h2: "regular",
2162
- h3: "regular",
2163
- h4: "regular",
2164
- subheading: "medium",
2165
- body: "regular",
2166
- caption: "regular"
2167
- }, Md = ({
2168
- variant: e = "body",
2169
- children: o,
2170
- className: t,
2171
- weight: n,
2172
- size: a,
2173
- role: l
2174
- }) => {
2175
- const i = Li[e], c = Fi[e];
2176
- return /* @__PURE__ */ r.jsx(
2177
- i,
2178
- {
2179
- className: qr(
2180
- "al-text-gray-900",
2181
- {
2182
- "al-text-h1": e === "h1",
2183
- "al-text-h2": e === "h2",
2184
- "al-text-h3": e === "h3",
2185
- "al-text-h4": e === "h4",
2186
- "al-text-subheading": e === "subheading",
2187
- "al-text-body": e === "body",
2188
- "al-text-caption": e === "caption",
2189
- "al-font-regular": n === "regular" || !n && c === "regular",
2190
- "al-font-medium": n === "medium" || !n && c === "medium",
2191
- "al-font-semibold": n === "semibold" || !n && c === "semibold",
2192
- "al-font-bold": n === "bold" || !n && c === "bold",
2193
- "al-text-sm": a === "sm",
2194
- "al-text-md": a === "md",
2195
- "al-text-lg": a === "lg",
2196
- "al-text-xl": a === "xl"
2197
- },
2198
- t
2199
- ),
2200
- role: l,
2201
- children: o
2202
- }
2203
- );
2204
- }, Vi = Ut(
1995
+ Si.displayName = "CommandShortcut";
1996
+ const Ci = Bt(
2205
1997
  "al-inline-flex al-items-center al-rounded-full al-border al-px-2.5 al-py-0.5 al-text-xs al-font-semibold al-transition-colors focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2",
2206
1998
  {
2207
1999
  variants: {
@@ -2217,10 +2009,10 @@ const Li = {
2217
2009
  }
2218
2010
  }
2219
2011
  );
2220
- function Dd({ className: e, variant: o, ...t }) {
2221
- return /* @__PURE__ */ r.jsx("div", { className: E(Vi({ variant: o }), e), ...t });
2012
+ function ud({ className: e, variant: o, ...t }) {
2013
+ return /* @__PURE__ */ r.jsx("div", { className: I(Ci({ variant: o }), e), ...t });
2222
2014
  }
2223
- var co = "Collapsible", [Gi, ba] = de(co), [Ki, uo] = Gi(co), ya = s.forwardRef(
2015
+ var lo = "Collapsible", [_i, ua] = ue(lo), [Ni, io] = _i(lo), pa = s.forwardRef(
2224
2016
  (e, o) => {
2225
2017
  const {
2226
2018
  __scopeCollapsible: t,
@@ -2235,7 +2027,7 @@ var co = "Collapsible", [Gi, ba] = de(co), [Ki, uo] = Gi(co), ya = s.forwardRef(
2235
2027
  onChange: i
2236
2028
  });
2237
2029
  return /* @__PURE__ */ r.jsx(
2238
- Ki,
2030
+ Ni,
2239
2031
  {
2240
2032
  scope: t,
2241
2033
  disabled: l,
@@ -2243,9 +2035,9 @@ var co = "Collapsible", [Gi, ba] = de(co), [Ki, uo] = Gi(co), ya = s.forwardRef(
2243
2035
  open: d,
2244
2036
  onOpenToggle: s.useCallback(() => u((f) => !f), [u]),
2245
2037
  children: /* @__PURE__ */ r.jsx(
2246
- A.div,
2038
+ T.div,
2247
2039
  {
2248
- "data-state": fo(d),
2040
+ "data-state": uo(d),
2249
2041
  "data-disabled": l ? "" : void 0,
2250
2042
  ...c,
2251
2043
  ref: o
@@ -2255,60 +2047,60 @@ var co = "Collapsible", [Gi, ba] = de(co), [Ki, uo] = Gi(co), ya = s.forwardRef(
2255
2047
  );
2256
2048
  }
2257
2049
  );
2258
- ya.displayName = co;
2259
- var wa = "CollapsibleTrigger", Ca = s.forwardRef(
2050
+ pa.displayName = lo;
2051
+ var fa = "CollapsibleTrigger", ma = s.forwardRef(
2260
2052
  (e, o) => {
2261
- const { __scopeCollapsible: t, ...n } = e, a = uo(wa, t);
2053
+ const { __scopeCollapsible: t, ...n } = e, a = io(fa, t);
2262
2054
  return /* @__PURE__ */ r.jsx(
2263
- A.button,
2055
+ T.button,
2264
2056
  {
2265
2057
  type: "button",
2266
2058
  "aria-controls": a.contentId,
2267
2059
  "aria-expanded": a.open || !1,
2268
- "data-state": fo(a.open),
2060
+ "data-state": uo(a.open),
2269
2061
  "data-disabled": a.disabled ? "" : void 0,
2270
2062
  disabled: a.disabled,
2271
2063
  ...n,
2272
2064
  ref: o,
2273
- onClick: _(e.onClick, a.onOpenToggle)
2065
+ onClick: N(e.onClick, a.onOpenToggle)
2274
2066
  }
2275
2067
  );
2276
2068
  }
2277
2069
  );
2278
- Ca.displayName = wa;
2279
- var po = "CollapsibleContent", Sa = s.forwardRef(
2070
+ ma.displayName = fa;
2071
+ var co = "CollapsibleContent", ga = s.forwardRef(
2280
2072
  (e, o) => {
2281
- const { forceMount: t, ...n } = e, a = uo(po, e.__scopeCollapsible);
2282
- return /* @__PURE__ */ r.jsx(pe, { present: t || a.open, children: ({ present: l }) => /* @__PURE__ */ r.jsx(Bi, { ...n, ref: o, present: l }) });
2073
+ const { forceMount: t, ...n } = e, a = io(co, e.__scopeCollapsible);
2074
+ return /* @__PURE__ */ r.jsx(me, { present: t || a.open, children: ({ present: l }) => /* @__PURE__ */ r.jsx(Ri, { ...n, ref: o, present: l }) });
2283
2075
  }
2284
2076
  );
2285
- Sa.displayName = po;
2286
- var Bi = s.forwardRef((e, o) => {
2287
- const { __scopeCollapsible: t, present: n, children: a, ...l } = e, i = uo(po, t), [c, d] = s.useState(n), u = s.useRef(null), f = G(o, u), p = s.useRef(0), v = p.current, b = s.useRef(0), g = b.current, m = i.open || c, y = s.useRef(m), w = s.useRef(void 0);
2077
+ ga.displayName = co;
2078
+ var Ri = s.forwardRef((e, o) => {
2079
+ const { __scopeCollapsible: t, present: n, children: a, ...l } = e, i = io(co, t), [c, d] = s.useState(n), u = s.useRef(null), f = B(o, u), p = s.useRef(0), x = p.current, w = s.useRef(0), g = w.current, m = i.open || c, y = s.useRef(m), S = s.useRef(void 0);
2288
2080
  return s.useEffect(() => {
2289
2081
  const h = requestAnimationFrame(() => y.current = !1);
2290
2082
  return () => cancelAnimationFrame(h);
2291
- }, []), ue(() => {
2083
+ }, []), de(() => {
2292
2084
  const h = u.current;
2293
2085
  if (h) {
2294
- w.current = w.current || {
2086
+ S.current = S.current || {
2295
2087
  transitionDuration: h.style.transitionDuration,
2296
2088
  animationName: h.style.animationName
2297
2089
  }, h.style.transitionDuration = "0s", h.style.animationName = "none";
2298
- const S = h.getBoundingClientRect();
2299
- p.current = S.height, b.current = S.width, y.current || (h.style.transitionDuration = w.current.transitionDuration, h.style.animationName = w.current.animationName), d(n);
2090
+ const C = h.getBoundingClientRect();
2091
+ p.current = C.height, w.current = C.width, y.current || (h.style.transitionDuration = S.current.transitionDuration, h.style.animationName = S.current.animationName), d(n);
2300
2092
  }
2301
2093
  }, [i.open, n]), /* @__PURE__ */ r.jsx(
2302
- A.div,
2094
+ T.div,
2303
2095
  {
2304
- "data-state": fo(i.open),
2096
+ "data-state": uo(i.open),
2305
2097
  "data-disabled": i.disabled ? "" : void 0,
2306
2098
  id: i.contentId,
2307
2099
  hidden: !m,
2308
2100
  ...l,
2309
2101
  ref: f,
2310
2102
  style: {
2311
- "--radix-collapsible-content-height": v ? `${v}px` : void 0,
2103
+ "--radix-collapsible-content-height": x ? `${x}px` : void 0,
2312
2104
  "--radix-collapsible-content-width": g ? `${g}px` : void 0,
2313
2105
  ...e.style
2314
2106
  },
@@ -2316,23 +2108,23 @@ var Bi = s.forwardRef((e, o) => {
2316
2108
  }
2317
2109
  );
2318
2110
  });
2319
- function fo(e) {
2111
+ function uo(e) {
2320
2112
  return e ? "open" : "closed";
2321
2113
  }
2322
- var Ui = ya, Hi = Ca, Wi = Sa, fe = "Accordion", zi = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [mo, Yi, qi] = rt(fe), [dt, Ad] = de(fe, [
2323
- qi,
2324
- ba
2325
- ]), go = ba(), _a = W.forwardRef(
2114
+ var Ii = pa, Ei = ma, Mi = ga, pe = "Accordion", Di = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [po, Ai, Ti] = at(pe), [ct, pd] = ue(pe, [
2115
+ Ti,
2116
+ ua
2117
+ ]), fo = ua(), va = W.forwardRef(
2326
2118
  (e, o) => {
2327
2119
  const { type: t, ...n } = e, a = n, l = n;
2328
- return /* @__PURE__ */ r.jsx(mo.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ r.jsx(Qi, { ...l, ref: o }) : /* @__PURE__ */ r.jsx(Ji, { ...a, ref: o }) });
2120
+ return /* @__PURE__ */ r.jsx(po.Provider, { scope: e.__scopeAccordion, children: t === "multiple" ? /* @__PURE__ */ r.jsx(ki, { ...l, ref: o }) : /* @__PURE__ */ r.jsx(Oi, { ...a, ref: o }) });
2329
2121
  }
2330
2122
  );
2331
- _a.displayName = fe;
2332
- var [Na, Xi] = dt(fe), [Ra, Zi] = dt(
2333
- fe,
2123
+ va.displayName = pe;
2124
+ var [ha, Pi] = ct(pe), [xa, ji] = ct(
2125
+ pe,
2334
2126
  { collapsible: !1 }
2335
- ), Ji = W.forwardRef(
2127
+ ), Oi = W.forwardRef(
2336
2128
  (e, o) => {
2337
2129
  const {
2338
2130
  value: t,
@@ -2347,17 +2139,17 @@ var [Na, Xi] = dt(fe), [Ra, Zi] = dt(
2347
2139
  onChange: a
2348
2140
  });
2349
2141
  return /* @__PURE__ */ r.jsx(
2350
- Na,
2142
+ ha,
2351
2143
  {
2352
2144
  scope: e.__scopeAccordion,
2353
2145
  value: c ? [c] : [],
2354
2146
  onItemOpen: d,
2355
2147
  onItemClose: W.useCallback(() => l && d(""), [l, d]),
2356
- children: /* @__PURE__ */ r.jsx(Ra, { scope: e.__scopeAccordion, collapsible: l, children: /* @__PURE__ */ r.jsx(Ea, { ...i, ref: o }) })
2148
+ children: /* @__PURE__ */ r.jsx(xa, { scope: e.__scopeAccordion, collapsible: l, children: /* @__PURE__ */ r.jsx(wa, { ...i, ref: o }) })
2357
2149
  }
2358
2150
  );
2359
2151
  }
2360
- ), Qi = W.forwardRef((e, o) => {
2152
+ ), ki = W.forwardRef((e, o) => {
2361
2153
  const {
2362
2154
  value: t,
2363
2155
  defaultValue: n,
@@ -2372,93 +2164,93 @@ var [Na, Xi] = dt(fe), [Ra, Zi] = dt(
2372
2164
  (f) => c((p = []) => [...p, f]),
2373
2165
  [c]
2374
2166
  ), u = W.useCallback(
2375
- (f) => c((p = []) => p.filter((v) => v !== f)),
2167
+ (f) => c((p = []) => p.filter((x) => x !== f)),
2376
2168
  [c]
2377
2169
  );
2378
2170
  return /* @__PURE__ */ r.jsx(
2379
- Na,
2171
+ ha,
2380
2172
  {
2381
2173
  scope: e.__scopeAccordion,
2382
2174
  value: i,
2383
2175
  onItemOpen: d,
2384
2176
  onItemClose: u,
2385
- children: /* @__PURE__ */ r.jsx(Ra, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ r.jsx(Ea, { ...l, ref: o }) })
2177
+ children: /* @__PURE__ */ r.jsx(xa, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ r.jsx(wa, { ...l, ref: o }) })
2386
2178
  }
2387
2179
  );
2388
- }), [ec, ut] = dt(fe), Ea = W.forwardRef(
2180
+ }), [$i, dt] = ct(pe), wa = W.forwardRef(
2389
2181
  (e, o) => {
2390
- const { __scopeAccordion: t, disabled: n, dir: a, orientation: l = "vertical", ...i } = e, c = W.useRef(null), d = G(c, o), u = Yi(t), p = st(a) === "ltr", v = _(e.onKeyDown, (b) => {
2391
- var $;
2392
- if (!zi.includes(b.key)) return;
2393
- const g = b.target, m = u().filter((U) => {
2182
+ const { __scopeAccordion: t, disabled: n, dir: a, orientation: l = "vertical", ...i } = e, c = W.useRef(null), d = B(c, o), u = Ai(t), p = rt(a) === "ltr", x = N(e.onKeyDown, (w) => {
2183
+ var O;
2184
+ if (!Di.includes(w.key)) return;
2185
+ const g = w.target, m = u().filter((U) => {
2394
2186
  var H;
2395
2187
  return !((H = U.ref.current) != null && H.disabled);
2396
- }), y = m.findIndex((U) => U.ref.current === g), w = m.length;
2188
+ }), y = m.findIndex((U) => U.ref.current === g), S = m.length;
2397
2189
  if (y === -1) return;
2398
- b.preventDefault();
2190
+ w.preventDefault();
2399
2191
  let h = y;
2400
- const S = 0, D = w - 1, j = () => {
2401
- h = y + 1, h > D && (h = S);
2402
- }, k = () => {
2403
- h = y - 1, h < S && (h = D);
2192
+ const C = 0, F = S - 1, k = () => {
2193
+ h = y + 1, h > F && (h = C);
2194
+ }, j = () => {
2195
+ h = y - 1, h < C && (h = F);
2404
2196
  };
2405
- switch (b.key) {
2197
+ switch (w.key) {
2406
2198
  case "Home":
2407
- h = S;
2199
+ h = C;
2408
2200
  break;
2409
2201
  case "End":
2410
- h = D;
2202
+ h = F;
2411
2203
  break;
2412
2204
  case "ArrowRight":
2413
- l === "horizontal" && (p ? j() : k());
2205
+ l === "horizontal" && (p ? k() : j());
2414
2206
  break;
2415
2207
  case "ArrowDown":
2416
- l === "vertical" && j();
2208
+ l === "vertical" && k();
2417
2209
  break;
2418
2210
  case "ArrowLeft":
2419
- l === "horizontal" && (p ? k() : j());
2211
+ l === "horizontal" && (p ? j() : k());
2420
2212
  break;
2421
2213
  case "ArrowUp":
2422
- l === "vertical" && k();
2214
+ l === "vertical" && j();
2423
2215
  break;
2424
2216
  }
2425
- const T = h % w;
2426
- ($ = m[T].ref.current) == null || $.focus();
2217
+ const D = h % S;
2218
+ (O = m[D].ref.current) == null || O.focus();
2427
2219
  });
2428
2220
  return /* @__PURE__ */ r.jsx(
2429
- ec,
2221
+ $i,
2430
2222
  {
2431
2223
  scope: t,
2432
2224
  disabled: n,
2433
2225
  direction: a,
2434
2226
  orientation: l,
2435
- children: /* @__PURE__ */ r.jsx(mo.Slot, { scope: t, children: /* @__PURE__ */ r.jsx(
2436
- A.div,
2227
+ children: /* @__PURE__ */ r.jsx(po.Slot, { scope: t, children: /* @__PURE__ */ r.jsx(
2228
+ T.div,
2437
2229
  {
2438
2230
  ...i,
2439
2231
  "data-orientation": l,
2440
2232
  ref: d,
2441
- onKeyDown: n ? void 0 : v
2233
+ onKeyDown: n ? void 0 : x
2442
2234
  }
2443
2235
  ) })
2444
2236
  }
2445
2237
  );
2446
2238
  }
2447
- ), et = "AccordionItem", [tc, vo] = dt(et), Ia = W.forwardRef(
2239
+ ), Qe = "AccordionItem", [Li, mo] = ct(Qe), ya = W.forwardRef(
2448
2240
  (e, o) => {
2449
- const { __scopeAccordion: t, value: n, ...a } = e, l = ut(et, t), i = Xi(et, t), c = go(t), d = ee(), u = n && i.value.includes(n) || !1, f = l.disabled || e.disabled;
2241
+ const { __scopeAccordion: t, value: n, ...a } = e, l = dt(Qe, t), i = Pi(Qe, t), c = fo(t), d = ee(), u = n && i.value.includes(n) || !1, f = l.disabled || e.disabled;
2450
2242
  return /* @__PURE__ */ r.jsx(
2451
- tc,
2243
+ Li,
2452
2244
  {
2453
2245
  scope: t,
2454
2246
  open: u,
2455
2247
  disabled: f,
2456
2248
  triggerId: d,
2457
2249
  children: /* @__PURE__ */ r.jsx(
2458
- Ui,
2250
+ Ii,
2459
2251
  {
2460
2252
  "data-orientation": l.orientation,
2461
- "data-state": ja(u),
2253
+ "data-state": Ra(u),
2462
2254
  ...c,
2463
2255
  ...a,
2464
2256
  ref: o,
@@ -2473,15 +2265,15 @@ var [Na, Xi] = dt(fe), [Ra, Zi] = dt(
2473
2265
  );
2474
2266
  }
2475
2267
  );
2476
- Ia.displayName = et;
2477
- var Ma = "AccordionHeader", Da = W.forwardRef(
2268
+ ya.displayName = Qe;
2269
+ var ba = "AccordionHeader", Sa = W.forwardRef(
2478
2270
  (e, o) => {
2479
- const { __scopeAccordion: t, ...n } = e, a = ut(fe, t), l = vo(Ma, t);
2271
+ const { __scopeAccordion: t, ...n } = e, a = dt(pe, t), l = mo(ba, t);
2480
2272
  return /* @__PURE__ */ r.jsx(
2481
- A.h3,
2273
+ T.h3,
2482
2274
  {
2483
2275
  "data-orientation": a.orientation,
2484
- "data-state": ja(l.open),
2276
+ "data-state": Ra(l.open),
2485
2277
  "data-disabled": l.disabled ? "" : void 0,
2486
2278
  ...n,
2487
2279
  ref: o
@@ -2489,12 +2281,12 @@ var Ma = "AccordionHeader", Da = W.forwardRef(
2489
2281
  );
2490
2282
  }
2491
2283
  );
2492
- Da.displayName = Ma;
2493
- var At = "AccordionTrigger", Aa = W.forwardRef(
2284
+ Sa.displayName = ba;
2285
+ var Dt = "AccordionTrigger", Ca = W.forwardRef(
2494
2286
  (e, o) => {
2495
- const { __scopeAccordion: t, ...n } = e, a = ut(fe, t), l = vo(At, t), i = Zi(At, t), c = go(t);
2496
- return /* @__PURE__ */ r.jsx(mo.ItemSlot, { scope: t, children: /* @__PURE__ */ r.jsx(
2497
- Hi,
2287
+ const { __scopeAccordion: t, ...n } = e, a = dt(pe, t), l = mo(Dt, t), i = ji(Dt, t), c = fo(t);
2288
+ return /* @__PURE__ */ r.jsx(po.ItemSlot, { scope: t, children: /* @__PURE__ */ r.jsx(
2289
+ Ei,
2498
2290
  {
2499
2291
  "aria-disabled": l.open && !i.collapsible || void 0,
2500
2292
  "data-orientation": a.orientation,
@@ -2506,12 +2298,12 @@ var At = "AccordionTrigger", Aa = W.forwardRef(
2506
2298
  ) });
2507
2299
  }
2508
2300
  );
2509
- Aa.displayName = At;
2510
- var Ta = "AccordionContent", Pa = W.forwardRef(
2301
+ Ca.displayName = Dt;
2302
+ var _a = "AccordionContent", Na = W.forwardRef(
2511
2303
  (e, o) => {
2512
- const { __scopeAccordion: t, ...n } = e, a = ut(fe, t), l = vo(Ta, t), i = go(t);
2304
+ const { __scopeAccordion: t, ...n } = e, a = dt(pe, t), l = mo(_a, t), i = fo(t);
2513
2305
  return /* @__PURE__ */ r.jsx(
2514
- Wi,
2306
+ Mi,
2515
2307
  {
2516
2308
  role: "region",
2517
2309
  "aria-labelledby": l.triggerId,
@@ -2528,34 +2320,34 @@ var Ta = "AccordionContent", Pa = W.forwardRef(
2528
2320
  );
2529
2321
  }
2530
2322
  );
2531
- Pa.displayName = Ta;
2532
- function ja(e) {
2323
+ Na.displayName = _a;
2324
+ function Ra(e) {
2533
2325
  return e ? "open" : "closed";
2534
2326
  }
2535
- var oc = _a, nc = Ia, ac = Da, rc = Aa, sc = Pa;
2536
- const Td = oc, lc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(nc, { ref: t, className: E("al-border-b", e), ...o }));
2537
- lc.displayName = "AccordionItem";
2538
- const ic = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsx(ac, { className: "al-flex", children: /* @__PURE__ */ r.jsxs(
2539
- rc,
2327
+ var Fi = va, Vi = ya, Gi = Sa, Ki = Ca, Bi = Na;
2328
+ const fd = Fi, Ui = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(Vi, { ref: t, className: I("al-border-b", e), ...o }));
2329
+ Ui.displayName = "AccordionItem";
2330
+ const Hi = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsx(Gi, { className: "al-flex", children: /* @__PURE__ */ r.jsxs(
2331
+ Ki,
2540
2332
  {
2541
2333
  ref: n,
2542
- className: E(
2334
+ className: I(
2543
2335
  "al-flex al-flex-1 al-items-center al-justify-between al-py-4 al-font-medium al-transition-all hover:al-underline [&[data-state=open]>svg]:al-rotate-180",
2544
2336
  e
2545
2337
  ),
2546
2338
  ...t,
2547
2339
  children: [
2548
2340
  o,
2549
- /* @__PURE__ */ r.jsx($t, { className: "al-h-4 al-w-4 al-shrink-0 al-transition-transform al-duration-200" })
2341
+ /* @__PURE__ */ r.jsx(kt, { className: "al-h-4 al-w-4 al-shrink-0 al-transition-transform al-duration-200" })
2550
2342
  ]
2551
2343
  }
2552
2344
  ) }));
2553
- ic.displayName = "AccordionTrigger";
2554
- const cc = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsx(
2555
- sc,
2345
+ Hi.displayName = "AccordionTrigger";
2346
+ const Wi = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsx(
2347
+ Bi,
2556
2348
  {
2557
2349
  ref: n,
2558
- className: E(
2350
+ className: I(
2559
2351
  "al-overflow-hidden al-text-sm al-transition-all data-[state=closed]:al-animate-accordion-up data-[state=open]:al-animate-accordion-down",
2560
2352
  e
2561
2353
  ),
@@ -2563,28 +2355,28 @@ const cc = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__
2563
2355
  children: /* @__PURE__ */ r.jsx("div", { className: "al-pb-4 al-pt-0", children: o })
2564
2356
  }
2565
2357
  ));
2566
- cc.displayName = "AccordionContent";
2567
- const dc = 1, uc = 1e6;
2568
- let _t = 0;
2569
- function pc() {
2570
- return _t = (_t + 1) % Number.MAX_SAFE_INTEGER, _t.toString();
2358
+ Wi.displayName = "AccordionContent";
2359
+ const zi = 1, Yi = 1e6;
2360
+ let Ct = 0;
2361
+ function qi() {
2362
+ return Ct = (Ct + 1) % Number.MAX_SAFE_INTEGER, Ct.toString();
2571
2363
  }
2572
- const Nt = /* @__PURE__ */ new Map(), _o = (e) => {
2573
- if (Nt.has(e))
2364
+ const _t = /* @__PURE__ */ new Map(), So = (e) => {
2365
+ if (_t.has(e))
2574
2366
  return;
2575
2367
  const o = setTimeout(() => {
2576
- Nt.delete(e), ke({
2368
+ _t.delete(e), Oe({
2577
2369
  type: "REMOVE_TOAST",
2578
2370
  toastId: e
2579
2371
  });
2580
- }, uc);
2581
- Nt.set(e, o);
2582
- }, fc = (e, o) => {
2372
+ }, Yi);
2373
+ _t.set(e, o);
2374
+ }, Xi = (e, o) => {
2583
2375
  switch (o.type) {
2584
2376
  case "ADD_TOAST":
2585
2377
  return {
2586
2378
  ...e,
2587
- toasts: [o.toast, ...e.toasts].slice(0, dc)
2379
+ toasts: [o.toast, ...e.toasts].slice(0, zi)
2588
2380
  };
2589
2381
  case "UPDATE_TOAST":
2590
2382
  return {
@@ -2593,8 +2385,8 @@ const Nt = /* @__PURE__ */ new Map(), _o = (e) => {
2593
2385
  };
2594
2386
  case "DISMISS_TOAST": {
2595
2387
  const { toastId: t } = o;
2596
- return t ? _o(t) : e.toasts.forEach((n) => {
2597
- _o(n.id);
2388
+ return t ? So(t) : e.toasts.forEach((n) => {
2389
+ So(n.id);
2598
2390
  }), {
2599
2391
  ...e,
2600
2392
  toasts: e.toasts.map(
@@ -2614,19 +2406,19 @@ const Nt = /* @__PURE__ */ new Map(), _o = (e) => {
2614
2406
  toasts: e.toasts.filter((t) => t.id !== o.toastId)
2615
2407
  };
2616
2408
  }
2617
- }, qe = [];
2618
- let Xe = { toasts: [] };
2619
- function ke(e) {
2620
- Xe = fc(Xe, e), qe.forEach((o) => {
2621
- o(Xe);
2409
+ }, Ye = [];
2410
+ let qe = { toasts: [] };
2411
+ function Oe(e) {
2412
+ qe = Xi(qe, e), Ye.forEach((o) => {
2413
+ o(qe);
2622
2414
  });
2623
2415
  }
2624
- function mc({ ...e }) {
2625
- const o = pc(), t = (a) => ke({
2416
+ function Zi({ ...e }) {
2417
+ const o = qi(), t = (a) => Oe({
2626
2418
  type: "UPDATE_TOAST",
2627
2419
  toast: { ...a, id: o }
2628
- }), n = () => ke({ type: "DISMISS_TOAST", toastId: o });
2629
- return ke({
2420
+ }), n = () => Oe({ type: "DISMISS_TOAST", toastId: o });
2421
+ return Oe({
2630
2422
  type: "ADD_TOAST",
2631
2423
  toast: {
2632
2424
  ...e,
@@ -2642,68 +2434,68 @@ function mc({ ...e }) {
2642
2434
  update: t
2643
2435
  };
2644
2436
  }
2645
- function Pd() {
2646
- const [e, o] = s.useState(Xe);
2647
- return s.useEffect(() => (qe.push(o), () => {
2648
- const t = qe.indexOf(o);
2649
- t > -1 && qe.splice(t, 1);
2437
+ function md() {
2438
+ const [e, o] = s.useState(qe);
2439
+ return s.useEffect(() => (Ye.push(o), () => {
2440
+ const t = Ye.indexOf(o);
2441
+ t > -1 && Ye.splice(t, 1);
2650
2442
  }), [e]), {
2651
2443
  ...e,
2652
- toast: mc,
2653
- dismiss: (t) => ke({ type: "DISMISS_TOAST", toastId: t })
2444
+ toast: Zi,
2445
+ dismiss: (t) => Oe({ type: "DISMISS_TOAST", toastId: t })
2654
2446
  };
2655
2447
  }
2656
- var Oa = "AlertDialog", [gc, jd] = de(Oa, [
2657
- Oo
2658
- ]), me = Oo(), ka = (e) => {
2659
- const { __scopeAlertDialog: o, ...t } = e, n = me(o);
2660
- return /* @__PURE__ */ r.jsx(nt, { ...n, ...t, modal: !0 });
2448
+ var Ia = "AlertDialog", [Ji, gd] = ue(Ia, [
2449
+ Po
2450
+ ]), fe = Po(), Ea = (e) => {
2451
+ const { __scopeAlertDialog: o, ...t } = e, n = fe(o);
2452
+ return /* @__PURE__ */ r.jsx(ot, { ...n, ...t, modal: !0 });
2661
2453
  };
2662
- ka.displayName = Oa;
2663
- var vc = "AlertDialogTrigger", $a = s.forwardRef(
2454
+ Ea.displayName = Ia;
2455
+ var Qi = "AlertDialogTrigger", Ma = s.forwardRef(
2664
2456
  (e, o) => {
2665
- const { __scopeAlertDialog: t, ...n } = e, a = me(t);
2666
- return /* @__PURE__ */ r.jsx(Xt, { ...a, ...n, ref: o });
2457
+ const { __scopeAlertDialog: t, ...n } = e, a = fe(t);
2458
+ return /* @__PURE__ */ r.jsx(qt, { ...a, ...n, ref: o });
2667
2459
  }
2668
2460
  );
2669
- $a.displayName = vc;
2670
- var hc = "AlertDialogPortal", La = (e) => {
2671
- const { __scopeAlertDialog: o, ...t } = e, n = me(o);
2672
- return /* @__PURE__ */ r.jsx(at, { ...n, ...t });
2461
+ Ma.displayName = Qi;
2462
+ var ec = "AlertDialogPortal", Da = (e) => {
2463
+ const { __scopeAlertDialog: o, ...t } = e, n = fe(o);
2464
+ return /* @__PURE__ */ r.jsx(nt, { ...n, ...t });
2673
2465
  };
2674
- La.displayName = hc;
2675
- var xc = "AlertDialogOverlay", Fa = s.forwardRef(
2466
+ Da.displayName = ec;
2467
+ var tc = "AlertDialogOverlay", Aa = s.forwardRef(
2676
2468
  (e, o) => {
2677
- const { __scopeAlertDialog: t, ...n } = e, a = me(t);
2678
- return /* @__PURE__ */ r.jsx(Me, { ...a, ...n, ref: o });
2469
+ const { __scopeAlertDialog: t, ...n } = e, a = fe(t);
2470
+ return /* @__PURE__ */ r.jsx(Ee, { ...a, ...n, ref: o });
2679
2471
  }
2680
2472
  );
2681
- Fa.displayName = xc;
2682
- var Ie = "AlertDialogContent", [bc, yc] = gc(Ie), Va = s.forwardRef(
2473
+ Aa.displayName = tc;
2474
+ var Ie = "AlertDialogContent", [oc, nc] = Ji(Ie), Ta = s.forwardRef(
2683
2475
  (e, o) => {
2684
- const { __scopeAlertDialog: t, children: n, ...a } = e, l = me(t), i = s.useRef(null), c = G(o, i), d = s.useRef(null);
2476
+ const { __scopeAlertDialog: t, children: n, ...a } = e, l = fe(t), i = s.useRef(null), c = B(o, i), d = s.useRef(null);
2685
2477
  return /* @__PURE__ */ r.jsx(
2686
- ns,
2478
+ Yr,
2687
2479
  {
2688
2480
  contentName: Ie,
2689
- titleName: Ga,
2481
+ titleName: Pa,
2690
2482
  docsSlug: "alert-dialog",
2691
- children: /* @__PURE__ */ r.jsx(bc, { scope: t, cancelRef: d, children: /* @__PURE__ */ r.jsxs(
2692
- De,
2483
+ children: /* @__PURE__ */ r.jsx(oc, { scope: t, cancelRef: d, children: /* @__PURE__ */ r.jsxs(
2484
+ Me,
2693
2485
  {
2694
2486
  role: "alertdialog",
2695
2487
  ...l,
2696
2488
  ...a,
2697
2489
  ref: c,
2698
- onOpenAutoFocus: _(a.onOpenAutoFocus, (u) => {
2490
+ onOpenAutoFocus: N(a.onOpenAutoFocus, (u) => {
2699
2491
  var f;
2700
2492
  u.preventDefault(), (f = d.current) == null || f.focus({ preventScroll: !0 });
2701
2493
  }),
2702
2494
  onPointerDownOutside: (u) => u.preventDefault(),
2703
2495
  onInteractOutside: (u) => u.preventDefault(),
2704
2496
  children: [
2705
- /* @__PURE__ */ r.jsx(Xr, { children: n }),
2706
- /* @__PURE__ */ r.jsx(Cc, { contentRef: i })
2497
+ /* @__PURE__ */ r.jsx(Vr, { children: n }),
2498
+ /* @__PURE__ */ r.jsx(rc, { contentRef: i })
2707
2499
  ]
2708
2500
  }
2709
2501
  ) })
@@ -2711,37 +2503,37 @@ var Ie = "AlertDialogContent", [bc, yc] = gc(Ie), Va = s.forwardRef(
2711
2503
  );
2712
2504
  }
2713
2505
  );
2714
- Va.displayName = Ie;
2715
- var Ga = "AlertDialogTitle", Ka = s.forwardRef(
2506
+ Ta.displayName = Ie;
2507
+ var Pa = "AlertDialogTitle", ja = s.forwardRef(
2716
2508
  (e, o) => {
2717
- const { __scopeAlertDialog: t, ...n } = e, a = me(t);
2718
- return /* @__PURE__ */ r.jsx(Ke, { ...a, ...n, ref: o });
2509
+ const { __scopeAlertDialog: t, ...n } = e, a = fe(t);
2510
+ return /* @__PURE__ */ r.jsx(Ge, { ...a, ...n, ref: o });
2719
2511
  }
2720
2512
  );
2721
- Ka.displayName = Ga;
2722
- var Ba = "AlertDialogDescription", Ua = s.forwardRef((e, o) => {
2723
- const { __scopeAlertDialog: t, ...n } = e, a = me(t);
2724
- return /* @__PURE__ */ r.jsx(Be, { ...a, ...n, ref: o });
2513
+ ja.displayName = Pa;
2514
+ var Oa = "AlertDialogDescription", ka = s.forwardRef((e, o) => {
2515
+ const { __scopeAlertDialog: t, ...n } = e, a = fe(t);
2516
+ return /* @__PURE__ */ r.jsx(Ke, { ...a, ...n, ref: o });
2725
2517
  });
2726
- Ua.displayName = Ba;
2727
- var wc = "AlertDialogAction", Ha = s.forwardRef(
2518
+ ka.displayName = Oa;
2519
+ var ac = "AlertDialogAction", $a = s.forwardRef(
2728
2520
  (e, o) => {
2729
- const { __scopeAlertDialog: t, ...n } = e, a = me(t);
2730
- return /* @__PURE__ */ r.jsx(Ae, { ...a, ...n, ref: o });
2521
+ const { __scopeAlertDialog: t, ...n } = e, a = fe(t);
2522
+ return /* @__PURE__ */ r.jsx(De, { ...a, ...n, ref: o });
2731
2523
  }
2732
2524
  );
2733
- Ha.displayName = wc;
2734
- var Wa = "AlertDialogCancel", za = s.forwardRef(
2525
+ $a.displayName = ac;
2526
+ var La = "AlertDialogCancel", Fa = s.forwardRef(
2735
2527
  (e, o) => {
2736
- const { __scopeAlertDialog: t, ...n } = e, { cancelRef: a } = yc(Wa, t), l = me(t), i = G(o, a);
2737
- return /* @__PURE__ */ r.jsx(Ae, { ...l, ...n, ref: i });
2528
+ const { __scopeAlertDialog: t, ...n } = e, { cancelRef: a } = nc(La, t), l = fe(t), i = B(o, a);
2529
+ return /* @__PURE__ */ r.jsx(De, { ...l, ...n, ref: i });
2738
2530
  }
2739
2531
  );
2740
- za.displayName = Wa;
2741
- var Cc = ({ contentRef: e }) => {
2532
+ Fa.displayName = La;
2533
+ var rc = ({ contentRef: e }) => {
2742
2534
  const o = `\`${Ie}\` requires a description for the component to be accessible for screen reader users.
2743
2535
 
2744
- You can add a description to the \`${Ie}\` by passing a \`${Ba}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
2536
+ You can add a description to the \`${Ie}\` by passing a \`${Oa}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
2745
2537
 
2746
2538
  Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ie}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
2747
2539
 
@@ -2752,11 +2544,11 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
2752
2544
  (n = e.current) == null ? void 0 : n.getAttribute("aria-describedby")
2753
2545
  ) || console.warn(o);
2754
2546
  }, [o, e]), null;
2755
- }, Sc = ka, _c = $a, Nc = La, Ya = Fa, qa = Va, Xa = Ha, Za = za, Ja = Ka, Qa = Ua;
2756
- const Od = Sc, kd = _c, Rc = Nc, er = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2757
- Ya,
2547
+ }, sc = Ea, lc = Ma, ic = Da, Va = Aa, Ga = Ta, Ka = $a, Ba = Fa, Ua = ja, Ha = ka;
2548
+ const vd = sc, hd = lc, cc = ic, Wa = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2549
+ Va,
2758
2550
  {
2759
- className: E(
2551
+ className: I(
2760
2552
  "al-fixed al-inset-0 al-z-50 al-bg-black/80 al- data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0",
2761
2553
  e
2762
2554
  ),
@@ -2764,14 +2556,14 @@ const Od = Sc, kd = _c, Rc = Nc, er = s.forwardRef(({ className: e, ...o }, t) =
2764
2556
  ref: t
2765
2557
  }
2766
2558
  ));
2767
- er.displayName = Ya.displayName;
2768
- const Ec = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsxs(Rc, { children: [
2769
- /* @__PURE__ */ r.jsx(er, {}),
2559
+ Wa.displayName = Va.displayName;
2560
+ const dc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsxs(cc, { children: [
2561
+ /* @__PURE__ */ r.jsx(Wa, {}),
2770
2562
  /* @__PURE__ */ r.jsx(
2771
- qa,
2563
+ Ga,
2772
2564
  {
2773
2565
  ref: t,
2774
- className: E(
2566
+ className: I(
2775
2567
  "al-fixed al-left-[50%] al-top-[50%] al-z-50 al-grid al-w-full al-max-w-lg al-translate-x-[-50%] al-translate-y-[-50%] al-gap-4 al-border al-bg-background al-p-6 al-shadow-lg al-duration-200 data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[state=closed]:al-slide-out-to-left-1/2 data-[state=closed]:al-slide-out-to-top-[48%] data-[state=open]:al-slide-in-from-left-1/2 data-[state=open]:al-slide-in-from-top-[48%] sm:al-rounded-lg",
2776
2568
  e
2777
2569
  ),
@@ -2779,62 +2571,62 @@ const Ec = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsxs(Rc
2779
2571
  }
2780
2572
  )
2781
2573
  ] }));
2782
- Ec.displayName = qa.displayName;
2783
- const Ic = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
2574
+ dc.displayName = Ga.displayName;
2575
+ const uc = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
2784
2576
  "div",
2785
2577
  {
2786
- className: E("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
2578
+ className: I("al-flex al-flex-col al-space-y-2 al-text-center sm:al-text-left", e),
2787
2579
  ...o
2788
2580
  }
2789
2581
  );
2790
- Ic.displayName = "AlertDialogHeader";
2791
- const Mc = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
2582
+ uc.displayName = "AlertDialogHeader";
2583
+ const pc = ({ className: e, ...o }) => /* @__PURE__ */ r.jsx(
2792
2584
  "div",
2793
2585
  {
2794
- className: E(
2586
+ className: I(
2795
2587
  "al-flex al-flex-col-reverse sm:al-flex-row sm:al-justify-end sm:al-space-x-2",
2796
2588
  e
2797
2589
  ),
2798
2590
  ...o
2799
2591
  }
2800
2592
  );
2801
- Mc.displayName = "AlertDialogFooter";
2802
- const Dc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2803
- Ja,
2593
+ pc.displayName = "AlertDialogFooter";
2594
+ const fc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2595
+ Ua,
2804
2596
  {
2805
2597
  ref: t,
2806
- className: E("al-text-lg al-font-semibold", e),
2598
+ className: I("al-text-lg al-font-semibold", e),
2807
2599
  ...o
2808
2600
  }
2809
2601
  ));
2810
- Dc.displayName = Ja.displayName;
2811
- const Ac = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2812
- Qa,
2602
+ fc.displayName = Ua.displayName;
2603
+ const mc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2604
+ Ha,
2813
2605
  {
2814
2606
  ref: t,
2815
- className: E("al-text-sm al-text-muted-foreground", e),
2607
+ className: I("al-text-sm al-text-muted-foreground", e),
2816
2608
  ...o
2817
2609
  }
2818
2610
  ));
2819
- Ac.displayName = Qa.displayName;
2820
- const Tc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(Xa, { ref: t, className: E(To(), e), ...o }));
2821
- Tc.displayName = Xa.displayName;
2822
- const Pc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2823
- Za,
2611
+ mc.displayName = Ha.displayName;
2612
+ const gc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(Ka, { ref: t, className: I(Do(), e), ...o }));
2613
+ gc.displayName = Ka.displayName;
2614
+ const vc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
2615
+ Ba,
2824
2616
  {
2825
2617
  ref: t,
2826
- className: E(To({ variant: "outline" }), "al-mt-2 sm:al-mt-0", e),
2618
+ className: I(Do({ variant: "outline" }), "al-mt-2 sm:al-mt-0", e),
2827
2619
  ...o
2828
2620
  }
2829
2621
  ));
2830
- Pc.displayName = Za.displayName;
2831
- function No(e, [o, t]) {
2622
+ vc.displayName = Ba.displayName;
2623
+ function Co(e, [o, t]) {
2832
2624
  return Math.min(t, Math.max(o, e));
2833
2625
  }
2834
- var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Oc = [" ", "Enter"], Ye = "Select", [pt, ft, kc] = rt(Ye), [Te, $d] = de(Ye, [
2835
- kc,
2836
- ot
2837
- ]), mt = ot(), [$c, he] = Te(Ye), [Lc, Fc] = Te(Ye), tr = (e) => {
2626
+ var hc = [" ", "Enter", "ArrowUp", "ArrowDown"], xc = [" ", "Enter"], ze = "Select", [ut, pt, wc] = at(ze), [Ae, xd] = ue(ze, [
2627
+ wc,
2628
+ tt
2629
+ ]), ft = tt(), [yc, ve] = Ae(ze), [bc, Sc] = Ae(ze), za = (e) => {
2838
2630
  const {
2839
2631
  __scopeSelect: o,
2840
2632
  children: t,
@@ -2847,10 +2639,10 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Oc = [" ", "Enter"], Ye = "Sele
2847
2639
  dir: u,
2848
2640
  name: f,
2849
2641
  autoComplete: p,
2850
- disabled: v,
2851
- required: b,
2642
+ disabled: x,
2643
+ required: w,
2852
2644
  form: g
2853
- } = e, m = mt(o), [y, w] = s.useState(null), [h, S] = s.useState(null), [D, j] = s.useState(!1), k = st(u), [T = !1, $] = ce({
2645
+ } = e, m = ft(o), [y, S] = s.useState(null), [h, C] = s.useState(null), [F, k] = s.useState(!1), j = rt(u), [D = !1, O] = ce({
2854
2646
  prop: n,
2855
2647
  defaultProp: a,
2856
2648
  onChange: l
@@ -2858,36 +2650,36 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Oc = [" ", "Enter"], Ye = "Sele
2858
2650
  prop: i,
2859
2651
  defaultProp: c,
2860
2652
  onChange: d
2861
- }), q = s.useRef(null), X = y ? g || !!y.closest("form") : !0, [oe, Y] = s.useState(/* @__PURE__ */ new Set()), Z = Array.from(oe).map((V) => V.props.value).join(";");
2862
- return /* @__PURE__ */ r.jsx(Ht, { ...m, children: /* @__PURE__ */ r.jsxs(
2863
- $c,
2653
+ }), q = s.useRef(null), X = y ? g || !!y.closest("form") : !0, [oe, z] = s.useState(/* @__PURE__ */ new Set()), Z = Array.from(oe).map((V) => V.props.value).join(";");
2654
+ return /* @__PURE__ */ r.jsx(Ut, { ...m, children: /* @__PURE__ */ r.jsxs(
2655
+ yc,
2864
2656
  {
2865
- required: b,
2657
+ required: w,
2866
2658
  scope: o,
2867
2659
  trigger: y,
2868
- onTriggerChange: w,
2660
+ onTriggerChange: S,
2869
2661
  valueNode: h,
2870
- onValueNodeChange: S,
2871
- valueNodeHasChildren: D,
2872
- onValueNodeHasChildrenChange: j,
2662
+ onValueNodeChange: C,
2663
+ valueNodeHasChildren: F,
2664
+ onValueNodeHasChildrenChange: k,
2873
2665
  contentId: ee(),
2874
2666
  value: U,
2875
2667
  onValueChange: H,
2876
- open: T,
2877
- onOpenChange: $,
2878
- dir: k,
2668
+ open: D,
2669
+ onOpenChange: O,
2670
+ dir: j,
2879
2671
  triggerPointerDownPosRef: q,
2880
- disabled: v,
2672
+ disabled: x,
2881
2673
  children: [
2882
- /* @__PURE__ */ r.jsx(pt.Provider, { scope: o, children: /* @__PURE__ */ r.jsx(
2883
- Lc,
2674
+ /* @__PURE__ */ r.jsx(ut.Provider, { scope: o, children: /* @__PURE__ */ r.jsx(
2675
+ bc,
2884
2676
  {
2885
2677
  scope: e.__scopeSelect,
2886
2678
  onNativeOptionAdd: s.useCallback((V) => {
2887
- Y((ne) => new Set(ne).add(V));
2679
+ z((ne) => new Set(ne).add(V));
2888
2680
  }, []),
2889
2681
  onNativeOptionRemove: s.useCallback((V) => {
2890
- Y((ne) => {
2682
+ z((ne) => {
2891
2683
  const J = new Set(ne);
2892
2684
  return J.delete(V), J;
2893
2685
  });
@@ -2896,16 +2688,16 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Oc = [" ", "Enter"], Ye = "Sele
2896
2688
  }
2897
2689
  ) }),
2898
2690
  X ? /* @__PURE__ */ r.jsxs(
2899
- Er,
2691
+ wr,
2900
2692
  {
2901
2693
  "aria-hidden": !0,
2902
- required: b,
2694
+ required: w,
2903
2695
  tabIndex: -1,
2904
2696
  name: f,
2905
2697
  autoComplete: p,
2906
2698
  value: U,
2907
2699
  onChange: (V) => H(V.target.value),
2908
- disabled: v,
2700
+ disabled: x,
2909
2701
  form: g,
2910
2702
  children: [
2911
2703
  U === void 0 ? /* @__PURE__ */ r.jsx("option", { value: "" }) : null,
@@ -2918,20 +2710,20 @@ var jc = [" ", "Enter", "ArrowUp", "ArrowDown"], Oc = [" ", "Enter"], Ye = "Sele
2918
2710
  }
2919
2711
  ) });
2920
2712
  };
2921
- tr.displayName = Ye;
2922
- var or = "SelectTrigger", nr = s.forwardRef(
2713
+ za.displayName = ze;
2714
+ var Ya = "SelectTrigger", qa = s.forwardRef(
2923
2715
  (e, o) => {
2924
- const { __scopeSelect: t, disabled: n = !1, ...a } = e, l = mt(t), i = he(or, t), c = i.disabled || n, d = G(o, i.onTriggerChange), u = ft(t), f = s.useRef("touch"), [p, v, b] = Ir((m) => {
2925
- const y = u().filter((S) => !S.disabled), w = y.find((S) => S.value === i.value), h = Mr(y, m, w);
2716
+ const { __scopeSelect: t, disabled: n = !1, ...a } = e, l = ft(t), i = ve(Ya, t), c = i.disabled || n, d = B(o, i.onTriggerChange), u = pt(t), f = s.useRef("touch"), [p, x, w] = yr((m) => {
2717
+ const y = u().filter((C) => !C.disabled), S = y.find((C) => C.value === i.value), h = br(y, m, S);
2926
2718
  h !== void 0 && i.onValueChange(h.value);
2927
2719
  }), g = (m) => {
2928
- c || (i.onOpenChange(!0), b()), m && (i.triggerPointerDownPosRef.current = {
2720
+ c || (i.onOpenChange(!0), w()), m && (i.triggerPointerDownPosRef.current = {
2929
2721
  x: Math.round(m.pageX),
2930
2722
  y: Math.round(m.pageY)
2931
2723
  });
2932
2724
  };
2933
- return /* @__PURE__ */ r.jsx(Io, { asChild: !0, ...l, children: /* @__PURE__ */ r.jsx(
2934
- A.button,
2725
+ return /* @__PURE__ */ r.jsx(Ro, { asChild: !0, ...l, children: /* @__PURE__ */ r.jsx(
2726
+ T.button,
2935
2727
  {
2936
2728
  type: "button",
2937
2729
  role: "combobox",
@@ -2943,69 +2735,69 @@ var or = "SelectTrigger", nr = s.forwardRef(
2943
2735
  "data-state": i.open ? "open" : "closed",
2944
2736
  disabled: c,
2945
2737
  "data-disabled": c ? "" : void 0,
2946
- "data-placeholder": Rr(i.value) ? "" : void 0,
2738
+ "data-placeholder": xr(i.value) ? "" : void 0,
2947
2739
  ...a,
2948
2740
  ref: d,
2949
- onClick: _(a.onClick, (m) => {
2741
+ onClick: N(a.onClick, (m) => {
2950
2742
  m.currentTarget.focus(), f.current !== "mouse" && g(m);
2951
2743
  }),
2952
- onPointerDown: _(a.onPointerDown, (m) => {
2744
+ onPointerDown: N(a.onPointerDown, (m) => {
2953
2745
  f.current = m.pointerType;
2954
2746
  const y = m.target;
2955
2747
  y.hasPointerCapture(m.pointerId) && y.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (g(m), m.preventDefault());
2956
2748
  }),
2957
- onKeyDown: _(a.onKeyDown, (m) => {
2749
+ onKeyDown: N(a.onKeyDown, (m) => {
2958
2750
  const y = p.current !== "";
2959
- !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && v(m.key), !(y && m.key === " ") && jc.includes(m.key) && (g(), m.preventDefault());
2751
+ !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && x(m.key), !(y && m.key === " ") && hc.includes(m.key) && (g(), m.preventDefault());
2960
2752
  })
2961
2753
  }
2962
2754
  ) });
2963
2755
  }
2964
2756
  );
2965
- nr.displayName = or;
2966
- var ar = "SelectValue", rr = s.forwardRef(
2757
+ qa.displayName = Ya;
2758
+ var Xa = "SelectValue", Za = s.forwardRef(
2967
2759
  (e, o) => {
2968
- const { __scopeSelect: t, className: n, style: a, children: l, placeholder: i = "", ...c } = e, d = he(ar, t), { onValueNodeHasChildrenChange: u } = d, f = l !== void 0, p = G(o, d.onValueNodeChange);
2969
- return ue(() => {
2760
+ const { __scopeSelect: t, className: n, style: a, children: l, placeholder: i = "", ...c } = e, d = ve(Xa, t), { onValueNodeHasChildrenChange: u } = d, f = l !== void 0, p = B(o, d.onValueNodeChange);
2761
+ return de(() => {
2970
2762
  u(f);
2971
2763
  }, [u, f]), /* @__PURE__ */ r.jsx(
2972
- A.span,
2764
+ T.span,
2973
2765
  {
2974
2766
  ...c,
2975
2767
  ref: p,
2976
2768
  style: { pointerEvents: "none" },
2977
- children: Rr(d.value) ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i }) : l
2769
+ children: xr(d.value) ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i }) : l
2978
2770
  }
2979
2771
  );
2980
2772
  }
2981
2773
  );
2982
- rr.displayName = ar;
2983
- var Vc = "SelectIcon", sr = s.forwardRef(
2774
+ Za.displayName = Xa;
2775
+ var Cc = "SelectIcon", Ja = s.forwardRef(
2984
2776
  (e, o) => {
2985
2777
  const { __scopeSelect: t, children: n, ...a } = e;
2986
- return /* @__PURE__ */ r.jsx(A.span, { "aria-hidden": !0, ...a, ref: o, children: n || "▼" });
2778
+ return /* @__PURE__ */ r.jsx(T.span, { "aria-hidden": !0, ...a, ref: o, children: n || "▼" });
2987
2779
  }
2988
2780
  );
2989
- sr.displayName = Vc;
2990
- var Gc = "SelectPortal", lr = (e) => /* @__PURE__ */ r.jsx(Bt, { asChild: !0, ...e });
2991
- lr.displayName = Gc;
2992
- var Ne = "SelectContent", ir = s.forwardRef(
2781
+ Ja.displayName = Cc;
2782
+ var _c = "SelectPortal", Qa = (e) => /* @__PURE__ */ r.jsx(Kt, { asChild: !0, ...e });
2783
+ Qa.displayName = _c;
2784
+ var _e = "SelectContent", er = s.forwardRef(
2993
2785
  (e, o) => {
2994
- const t = he(Ne, e.__scopeSelect), [n, a] = s.useState();
2995
- if (ue(() => {
2786
+ const t = ve(_e, e.__scopeSelect), [n, a] = s.useState();
2787
+ if (de(() => {
2996
2788
  a(new DocumentFragment());
2997
2789
  }, []), !t.open) {
2998
2790
  const l = n;
2999
- return l ? Po.createPortal(
3000
- /* @__PURE__ */ r.jsx(cr, { scope: e.__scopeSelect, children: /* @__PURE__ */ r.jsx(pt.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ r.jsx("div", { children: e.children }) }) }),
2791
+ return l ? Ao.createPortal(
2792
+ /* @__PURE__ */ r.jsx(tr, { scope: e.__scopeSelect, children: /* @__PURE__ */ r.jsx(ut.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ r.jsx("div", { children: e.children }) }) }),
3001
2793
  l
3002
2794
  ) : null;
3003
2795
  }
3004
- return /* @__PURE__ */ r.jsx(dr, { ...e, ref: o });
2796
+ return /* @__PURE__ */ r.jsx(or, { ...e, ref: o });
3005
2797
  }
3006
2798
  );
3007
- ir.displayName = Ne;
3008
- var le = 10, [cr, xe] = Te(Ne), Kc = "SelectContentImpl", dr = s.forwardRef(
2799
+ er.displayName = _e;
2800
+ var le = 10, [tr, he] = Ae(_e), Nc = "SelectContentImpl", or = s.forwardRef(
3009
2801
  (e, o) => {
3010
2802
  const {
3011
2803
  __scopeSelect: t,
@@ -3020,149 +2812,149 @@ var le = 10, [cr, xe] = Te(Ne), Kc = "SelectContentImpl", dr = s.forwardRef(
3020
2812
  align: u,
3021
2813
  alignOffset: f,
3022
2814
  arrowPadding: p,
3023
- collisionBoundary: v,
3024
- collisionPadding: b,
2815
+ collisionBoundary: x,
2816
+ collisionPadding: w,
3025
2817
  sticky: g,
3026
2818
  hideWhenDetached: m,
3027
2819
  avoidCollisions: y,
3028
2820
  //
3029
- ...w
3030
- } = e, h = he(Ne, t), [S, D] = s.useState(null), [j, k] = s.useState(null), T = G(o, (C) => D(C)), [$, U] = s.useState(null), [H, q] = s.useState(
2821
+ ...S
2822
+ } = e, h = ve(_e, t), [C, F] = s.useState(null), [k, j] = s.useState(null), D = B(o, (b) => F(b)), [O, U] = s.useState(null), [H, q] = s.useState(
3031
2823
  null
3032
- ), X = ft(t), [oe, Y] = s.useState(!1), Z = s.useRef(!1);
2824
+ ), X = pt(t), [oe, z] = s.useState(!1), Z = s.useRef(!1);
3033
2825
  s.useEffect(() => {
3034
- if (S) return Ft(S);
3035
- }, [S]), Vt();
2826
+ if (C) return Lt(C);
2827
+ }, [C]), Ft();
3036
2828
  const V = s.useCallback(
3037
- (C) => {
3038
- const [P, ...L] = X().map((B) => B.ref.current), [F] = L.slice(-1), K = document.activeElement;
3039
- for (const B of C)
3040
- if (B === K || (B == null || B.scrollIntoView({ block: "nearest" }), B === P && j && (j.scrollTop = 0), B === F && j && (j.scrollTop = j.scrollHeight), B == null || B.focus(), document.activeElement !== K)) return;
2829
+ (b) => {
2830
+ const [A, ...$] = X().map((K) => K.ref.current), [L] = $.slice(-1), G = document.activeElement;
2831
+ for (const K of b)
2832
+ if (K === G || (K == null || K.scrollIntoView({ block: "nearest" }), K === A && k && (k.scrollTop = 0), K === L && k && (k.scrollTop = k.scrollHeight), K == null || K.focus(), document.activeElement !== G)) return;
3041
2833
  },
3042
- [X, j]
2834
+ [X, k]
3043
2835
  ), ne = s.useCallback(
3044
- () => V([$, S]),
3045
- [V, $, S]
2836
+ () => V([O, C]),
2837
+ [V, O, C]
3046
2838
  );
3047
2839
  s.useEffect(() => {
3048
2840
  oe && ne();
3049
2841
  }, [oe, ne]);
3050
2842
  const { onOpenChange: J, triggerPointerDownPosRef: R } = h;
3051
2843
  s.useEffect(() => {
3052
- if (S) {
3053
- let C = { x: 0, y: 0 };
3054
- const P = (F) => {
3055
- var K, B;
3056
- C = {
3057
- x: Math.abs(Math.round(F.pageX) - (((K = R.current) == null ? void 0 : K.x) ?? 0)),
3058
- y: Math.abs(Math.round(F.pageY) - (((B = R.current) == null ? void 0 : B.y) ?? 0))
2844
+ if (C) {
2845
+ let b = { x: 0, y: 0 };
2846
+ const A = (L) => {
2847
+ var G, K;
2848
+ b = {
2849
+ x: Math.abs(Math.round(L.pageX) - (((G = R.current) == null ? void 0 : G.x) ?? 0)),
2850
+ y: Math.abs(Math.round(L.pageY) - (((K = R.current) == null ? void 0 : K.y) ?? 0))
3059
2851
  };
3060
- }, L = (F) => {
3061
- C.x <= 10 && C.y <= 10 ? F.preventDefault() : S.contains(F.target) || J(!1), document.removeEventListener("pointermove", P), R.current = null;
2852
+ }, $ = (L) => {
2853
+ b.x <= 10 && b.y <= 10 ? L.preventDefault() : C.contains(L.target) || J(!1), document.removeEventListener("pointermove", A), R.current = null;
3062
2854
  };
3063
- return R.current !== null && (document.addEventListener("pointermove", P), document.addEventListener("pointerup", L, { capture: !0, once: !0 })), () => {
3064
- document.removeEventListener("pointermove", P), document.removeEventListener("pointerup", L, { capture: !0 });
2855
+ return R.current !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", $, { capture: !0, once: !0 })), () => {
2856
+ document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", $, { capture: !0 });
3065
2857
  };
3066
2858
  }
3067
- }, [S, J, R]), s.useEffect(() => {
3068
- const C = () => J(!1);
3069
- return window.addEventListener("blur", C), window.addEventListener("resize", C), () => {
3070
- window.removeEventListener("blur", C), window.removeEventListener("resize", C);
2859
+ }, [C, J, R]), s.useEffect(() => {
2860
+ const b = () => J(!1);
2861
+ return window.addEventListener("blur", b), window.addEventListener("resize", b), () => {
2862
+ window.removeEventListener("blur", b), window.removeEventListener("resize", b);
3071
2863
  };
3072
2864
  }, [J]);
3073
- const [Q, te] = Ir((C) => {
3074
- const P = X().filter((K) => !K.disabled), L = P.find((K) => K.ref.current === document.activeElement), F = Mr(P, C, L);
3075
- F && setTimeout(() => F.ref.current.focus());
3076
- }), x = s.useCallback(
3077
- (C, P, L) => {
3078
- const F = !Z.current && !L;
3079
- (h.value !== void 0 && h.value === P || F) && (U(C), F && (Z.current = !0));
2865
+ const [Q, te] = yr((b) => {
2866
+ const A = X().filter((G) => !G.disabled), $ = A.find((G) => G.ref.current === document.activeElement), L = br(A, b, $);
2867
+ L && setTimeout(() => L.ref.current.focus());
2868
+ }), v = s.useCallback(
2869
+ (b, A, $) => {
2870
+ const L = !Z.current && !$;
2871
+ (h.value !== void 0 && h.value === A || L) && (U(b), L && (Z.current = !0));
3080
2872
  },
3081
2873
  [h.value]
3082
- ), I = s.useCallback(() => S == null ? void 0 : S.focus(), [S]), M = s.useCallback(
3083
- (C, P, L) => {
3084
- const F = !Z.current && !L;
3085
- (h.value !== void 0 && h.value === P || F) && q(C);
2874
+ ), E = s.useCallback(() => C == null ? void 0 : C.focus(), [C]), M = s.useCallback(
2875
+ (b, A, $) => {
2876
+ const L = !Z.current && !$;
2877
+ (h.value !== void 0 && h.value === A || L) && q(b);
3086
2878
  },
3087
2879
  [h.value]
3088
- ), N = n === "popper" ? Tt : ur, O = N === Tt ? {
2880
+ ), _ = n === "popper" ? At : nr, P = _ === At ? {
3089
2881
  side: c,
3090
2882
  sideOffset: d,
3091
2883
  align: u,
3092
2884
  alignOffset: f,
3093
2885
  arrowPadding: p,
3094
- collisionBoundary: v,
3095
- collisionPadding: b,
2886
+ collisionBoundary: x,
2887
+ collisionPadding: w,
3096
2888
  sticky: g,
3097
2889
  hideWhenDetached: m,
3098
2890
  avoidCollisions: y
3099
2891
  } : {};
3100
2892
  return /* @__PURE__ */ r.jsx(
3101
- cr,
2893
+ tr,
3102
2894
  {
3103
2895
  scope: t,
3104
- content: S,
3105
- viewport: j,
3106
- onViewportChange: k,
3107
- itemRefCallback: x,
3108
- selectedItem: $,
3109
- onItemLeave: I,
2896
+ content: C,
2897
+ viewport: k,
2898
+ onViewportChange: j,
2899
+ itemRefCallback: v,
2900
+ selectedItem: O,
2901
+ onItemLeave: E,
3110
2902
  itemTextRefCallback: M,
3111
2903
  focusSelectedItem: ne,
3112
2904
  selectedItemText: H,
3113
2905
  position: n,
3114
2906
  isPositioned: oe,
3115
2907
  searchRef: Q,
3116
- children: /* @__PURE__ */ r.jsx(Lt, { as: $e, allowPinchZoom: !0, children: /* @__PURE__ */ r.jsx(
3117
- Gt,
2908
+ children: /* @__PURE__ */ r.jsx($t, { as: ke, allowPinchZoom: !0, children: /* @__PURE__ */ r.jsx(
2909
+ Vt,
3118
2910
  {
3119
2911
  asChild: !0,
3120
2912
  trapped: h.open,
3121
- onMountAutoFocus: (C) => {
3122
- C.preventDefault();
2913
+ onMountAutoFocus: (b) => {
2914
+ b.preventDefault();
3123
2915
  },
3124
- onUnmountAutoFocus: _(a, (C) => {
3125
- var P;
3126
- (P = h.trigger) == null || P.focus({ preventScroll: !0 }), C.preventDefault();
2916
+ onUnmountAutoFocus: N(a, (b) => {
2917
+ var A;
2918
+ (A = h.trigger) == null || A.focus({ preventScroll: !0 }), b.preventDefault();
3127
2919
  }),
3128
2920
  children: /* @__PURE__ */ r.jsx(
3129
- Kt,
2921
+ Gt,
3130
2922
  {
3131
2923
  asChild: !0,
3132
2924
  disableOutsidePointerEvents: !0,
3133
2925
  onEscapeKeyDown: l,
3134
2926
  onPointerDownOutside: i,
3135
- onFocusOutside: (C) => C.preventDefault(),
2927
+ onFocusOutside: (b) => b.preventDefault(),
3136
2928
  onDismiss: () => h.onOpenChange(!1),
3137
2929
  children: /* @__PURE__ */ r.jsx(
3138
- N,
2930
+ _,
3139
2931
  {
3140
2932
  role: "listbox",
3141
2933
  id: h.contentId,
3142
2934
  "data-state": h.open ? "open" : "closed",
3143
2935
  dir: h.dir,
3144
- onContextMenu: (C) => C.preventDefault(),
3145
- ...w,
3146
- ...O,
3147
- onPlaced: () => Y(!0),
3148
- ref: T,
2936
+ onContextMenu: (b) => b.preventDefault(),
2937
+ ...S,
2938
+ ...P,
2939
+ onPlaced: () => z(!0),
2940
+ ref: D,
3149
2941
  style: {
3150
2942
  // flex layout so we can place the scroll buttons properly
3151
2943
  display: "flex",
3152
2944
  flexDirection: "column",
3153
2945
  // reset the outline by default as the content MAY get focused
3154
2946
  outline: "none",
3155
- ...w.style
2947
+ ...S.style
3156
2948
  },
3157
- onKeyDown: _(w.onKeyDown, (C) => {
3158
- const P = C.ctrlKey || C.altKey || C.metaKey;
3159
- if (C.key === "Tab" && C.preventDefault(), !P && C.key.length === 1 && te(C.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(C.key)) {
3160
- let F = X().filter((K) => !K.disabled).map((K) => K.ref.current);
3161
- if (["ArrowUp", "End"].includes(C.key) && (F = F.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(C.key)) {
3162
- const K = C.target, B = F.indexOf(K);
3163
- F = F.slice(B + 1);
2949
+ onKeyDown: N(S.onKeyDown, (b) => {
2950
+ const A = b.ctrlKey || b.altKey || b.metaKey;
2951
+ if (b.key === "Tab" && b.preventDefault(), !A && b.key.length === 1 && te(b.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(b.key)) {
2952
+ let L = X().filter((G) => !G.disabled).map((G) => G.ref.current);
2953
+ if (["ArrowUp", "End"].includes(b.key) && (L = L.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(b.key)) {
2954
+ const G = b.target, K = L.indexOf(G);
2955
+ L = L.slice(K + 1);
3164
2956
  }
3165
- setTimeout(() => V(F)), C.preventDefault();
2957
+ setTimeout(() => V(L)), b.preventDefault();
3166
2958
  }
3167
2959
  })
3168
2960
  }
@@ -3175,81 +2967,81 @@ var le = 10, [cr, xe] = Te(Ne), Kc = "SelectContentImpl", dr = s.forwardRef(
3175
2967
  );
3176
2968
  }
3177
2969
  );
3178
- dr.displayName = Kc;
3179
- var Bc = "SelectItemAlignedPosition", ur = s.forwardRef((e, o) => {
3180
- const { __scopeSelect: t, onPlaced: n, ...a } = e, l = he(Ne, t), i = xe(Ne, t), [c, d] = s.useState(null), [u, f] = s.useState(null), p = G(o, (T) => f(T)), v = ft(t), b = s.useRef(!1), g = s.useRef(!0), { viewport: m, selectedItem: y, selectedItemText: w, focusSelectedItem: h } = i, S = s.useCallback(() => {
3181
- if (l.trigger && l.valueNode && c && u && m && y && w) {
3182
- const T = l.trigger.getBoundingClientRect(), $ = u.getBoundingClientRect(), U = l.valueNode.getBoundingClientRect(), H = w.getBoundingClientRect();
2970
+ or.displayName = Nc;
2971
+ var Rc = "SelectItemAlignedPosition", nr = s.forwardRef((e, o) => {
2972
+ const { __scopeSelect: t, onPlaced: n, ...a } = e, l = ve(_e, t), i = he(_e, t), [c, d] = s.useState(null), [u, f] = s.useState(null), p = B(o, (D) => f(D)), x = pt(t), w = s.useRef(!1), g = s.useRef(!0), { viewport: m, selectedItem: y, selectedItemText: S, focusSelectedItem: h } = i, C = s.useCallback(() => {
2973
+ if (l.trigger && l.valueNode && c && u && m && y && S) {
2974
+ const D = l.trigger.getBoundingClientRect(), O = u.getBoundingClientRect(), U = l.valueNode.getBoundingClientRect(), H = S.getBoundingClientRect();
3183
2975
  if (l.dir !== "rtl") {
3184
- const K = H.left - $.left, B = U.left - K, be = T.left - B, ye = T.width + be, gt = Math.max(ye, $.width), vt = window.innerWidth - le, ht = No(B, [
2976
+ const G = H.left - O.left, K = U.left - G, xe = D.left - K, we = D.width + xe, mt = Math.max(we, O.width), gt = window.innerWidth - le, vt = Co(K, [
3185
2977
  le,
3186
2978
  // Prevents the content from going off the starting edge of the
3187
2979
  // viewport. It may still go off the ending edge, but this can be
3188
2980
  // controlled by the user since they may want to manage overflow in a
3189
2981
  // specific way.
3190
2982
  // https://github.com/radix-ui/primitives/issues/2049
3191
- Math.max(le, vt - gt)
2983
+ Math.max(le, gt - mt)
3192
2984
  ]);
3193
- c.style.minWidth = ye + "px", c.style.left = ht + "px";
2985
+ c.style.minWidth = we + "px", c.style.left = vt + "px";
3194
2986
  } else {
3195
- const K = $.right - H.right, B = window.innerWidth - U.right - K, be = window.innerWidth - T.right - B, ye = T.width + be, gt = Math.max(ye, $.width), vt = window.innerWidth - le, ht = No(B, [
2987
+ const G = O.right - H.right, K = window.innerWidth - U.right - G, xe = window.innerWidth - D.right - K, we = D.width + xe, mt = Math.max(we, O.width), gt = window.innerWidth - le, vt = Co(K, [
3196
2988
  le,
3197
- Math.max(le, vt - gt)
2989
+ Math.max(le, gt - mt)
3198
2990
  ]);
3199
- c.style.minWidth = ye + "px", c.style.right = ht + "px";
2991
+ c.style.minWidth = we + "px", c.style.right = vt + "px";
3200
2992
  }
3201
- const q = v(), X = window.innerHeight - le * 2, oe = m.scrollHeight, Y = window.getComputedStyle(u), Z = parseInt(Y.borderTopWidth, 10), V = parseInt(Y.paddingTop, 10), ne = parseInt(Y.borderBottomWidth, 10), J = parseInt(Y.paddingBottom, 10), R = Z + V + oe + J + ne, Q = Math.min(y.offsetHeight * 5, R), te = window.getComputedStyle(m), x = parseInt(te.paddingTop, 10), I = parseInt(te.paddingBottom, 10), M = T.top + T.height / 2 - le, N = X - M, O = y.offsetHeight / 2, C = y.offsetTop + O, P = Z + V + C, L = R - P;
3202
- if (P <= M) {
3203
- const K = q.length > 0 && y === q[q.length - 1].ref.current;
2993
+ const q = x(), X = window.innerHeight - le * 2, oe = m.scrollHeight, z = window.getComputedStyle(u), Z = parseInt(z.borderTopWidth, 10), V = parseInt(z.paddingTop, 10), ne = parseInt(z.borderBottomWidth, 10), J = parseInt(z.paddingBottom, 10), R = Z + V + oe + J + ne, Q = Math.min(y.offsetHeight * 5, R), te = window.getComputedStyle(m), v = parseInt(te.paddingTop, 10), E = parseInt(te.paddingBottom, 10), M = D.top + D.height / 2 - le, _ = X - M, P = y.offsetHeight / 2, b = y.offsetTop + P, A = Z + V + b, $ = R - A;
2994
+ if (A <= M) {
2995
+ const G = q.length > 0 && y === q[q.length - 1].ref.current;
3204
2996
  c.style.bottom = "0px";
3205
- const B = u.clientHeight - m.offsetTop - m.offsetHeight, be = Math.max(
3206
- N,
3207
- O + // viewport might have padding bottom, include it to avoid a scrollable viewport
3208
- (K ? I : 0) + B + ne
3209
- ), ye = P + be;
3210
- c.style.height = ye + "px";
2997
+ const K = u.clientHeight - m.offsetTop - m.offsetHeight, xe = Math.max(
2998
+ _,
2999
+ P + // viewport might have padding bottom, include it to avoid a scrollable viewport
3000
+ (G ? E : 0) + K + ne
3001
+ ), we = A + xe;
3002
+ c.style.height = we + "px";
3211
3003
  } else {
3212
- const K = q.length > 0 && y === q[0].ref.current;
3004
+ const G = q.length > 0 && y === q[0].ref.current;
3213
3005
  c.style.top = "0px";
3214
- const be = Math.max(
3006
+ const xe = Math.max(
3215
3007
  M,
3216
3008
  Z + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
3217
- (K ? x : 0) + O
3218
- ) + L;
3219
- c.style.height = be + "px", m.scrollTop = P - M + m.offsetTop;
3009
+ (G ? v : 0) + P
3010
+ ) + $;
3011
+ c.style.height = xe + "px", m.scrollTop = A - M + m.offsetTop;
3220
3012
  }
3221
- c.style.margin = `${le}px 0`, c.style.minHeight = Q + "px", c.style.maxHeight = X + "px", n == null || n(), requestAnimationFrame(() => b.current = !0);
3013
+ c.style.margin = `${le}px 0`, c.style.minHeight = Q + "px", c.style.maxHeight = X + "px", n == null || n(), requestAnimationFrame(() => w.current = !0);
3222
3014
  }
3223
3015
  }, [
3224
- v,
3016
+ x,
3225
3017
  l.trigger,
3226
3018
  l.valueNode,
3227
3019
  c,
3228
3020
  u,
3229
3021
  m,
3230
3022
  y,
3231
- w,
3023
+ S,
3232
3024
  l.dir,
3233
3025
  n
3234
3026
  ]);
3235
- ue(() => S(), [S]);
3236
- const [D, j] = s.useState();
3237
- ue(() => {
3238
- u && j(window.getComputedStyle(u).zIndex);
3027
+ de(() => C(), [C]);
3028
+ const [F, k] = s.useState();
3029
+ de(() => {
3030
+ u && k(window.getComputedStyle(u).zIndex);
3239
3031
  }, [u]);
3240
- const k = s.useCallback(
3241
- (T) => {
3242
- T && g.current === !0 && (S(), h == null || h(), g.current = !1);
3032
+ const j = s.useCallback(
3033
+ (D) => {
3034
+ D && g.current === !0 && (C(), h == null || h(), g.current = !1);
3243
3035
  },
3244
- [S, h]
3036
+ [C, h]
3245
3037
  );
3246
3038
  return /* @__PURE__ */ r.jsx(
3247
- Hc,
3039
+ Ec,
3248
3040
  {
3249
3041
  scope: t,
3250
3042
  contentWrapper: c,
3251
- shouldExpandOnScrollRef: b,
3252
- onScrollButtonChange: k,
3043
+ shouldExpandOnScrollRef: w,
3044
+ onScrollButtonChange: j,
3253
3045
  children: /* @__PURE__ */ r.jsx(
3254
3046
  "div",
3255
3047
  {
@@ -3258,10 +3050,10 @@ var Bc = "SelectItemAlignedPosition", ur = s.forwardRef((e, o) => {
3258
3050
  display: "flex",
3259
3051
  flexDirection: "column",
3260
3052
  position: "fixed",
3261
- zIndex: D
3053
+ zIndex: F
3262
3054
  },
3263
3055
  children: /* @__PURE__ */ r.jsx(
3264
- A.div,
3056
+ T.div,
3265
3057
  {
3266
3058
  ...a,
3267
3059
  ref: p,
@@ -3280,16 +3072,16 @@ var Bc = "SelectItemAlignedPosition", ur = s.forwardRef((e, o) => {
3280
3072
  }
3281
3073
  );
3282
3074
  });
3283
- ur.displayName = Bc;
3284
- var Uc = "SelectPopperPosition", Tt = s.forwardRef((e, o) => {
3075
+ nr.displayName = Rc;
3076
+ var Ic = "SelectPopperPosition", At = s.forwardRef((e, o) => {
3285
3077
  const {
3286
3078
  __scopeSelect: t,
3287
3079
  align: n = "start",
3288
3080
  collisionPadding: a = le,
3289
3081
  ...l
3290
- } = e, i = mt(t);
3082
+ } = e, i = ft(t);
3291
3083
  return /* @__PURE__ */ r.jsx(
3292
- Mo,
3084
+ Io,
3293
3085
  {
3294
3086
  ...i,
3295
3087
  ...l,
@@ -3309,10 +3101,10 @@ var Uc = "SelectPopperPosition", Tt = s.forwardRef((e, o) => {
3309
3101
  }
3310
3102
  );
3311
3103
  });
3312
- Tt.displayName = Uc;
3313
- var [Hc, ho] = Te(Ne, {}), Pt = "SelectViewport", pr = s.forwardRef(
3104
+ At.displayName = Ic;
3105
+ var [Ec, go] = Ae(_e, {}), Tt = "SelectViewport", ar = s.forwardRef(
3314
3106
  (e, o) => {
3315
- const { __scopeSelect: t, nonce: n, ...a } = e, l = xe(Pt, t), i = ho(Pt, t), c = G(o, l.onViewportChange), d = s.useRef(0);
3107
+ const { __scopeSelect: t, nonce: n, ...a } = e, l = he(Tt, t), i = go(Tt, t), c = B(o, l.onViewportChange), d = s.useRef(0);
3316
3108
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3317
3109
  /* @__PURE__ */ r.jsx(
3318
3110
  "style",
@@ -3323,8 +3115,8 @@ var [Hc, ho] = Te(Ne, {}), Pt = "SelectViewport", pr = s.forwardRef(
3323
3115
  nonce: n
3324
3116
  }
3325
3117
  ),
3326
- /* @__PURE__ */ r.jsx(pt.Slot, { scope: t, children: /* @__PURE__ */ r.jsx(
3327
- A.div,
3118
+ /* @__PURE__ */ r.jsx(ut.Slot, { scope: t, children: /* @__PURE__ */ r.jsx(
3119
+ T.div,
3328
3120
  {
3329
3121
  "data-radix-select-viewport": "",
3330
3122
  role: "presentation",
@@ -3343,15 +3135,15 @@ var [Hc, ho] = Te(Ne, {}), Pt = "SelectViewport", pr = s.forwardRef(
3343
3135
  overflow: "hidden auto",
3344
3136
  ...a.style
3345
3137
  },
3346
- onScroll: _(a.onScroll, (u) => {
3347
- const f = u.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: v } = i;
3348
- if (v != null && v.current && p) {
3349
- const b = Math.abs(d.current - f.scrollTop);
3350
- if (b > 0) {
3351
- const g = window.innerHeight - le * 2, m = parseFloat(p.style.minHeight), y = parseFloat(p.style.height), w = Math.max(m, y);
3352
- if (w < g) {
3353
- const h = w + b, S = Math.min(g, h), D = h - S;
3354
- p.style.height = S + "px", p.style.bottom === "0px" && (f.scrollTop = D > 0 ? D : 0, p.style.justifyContent = "flex-end");
3138
+ onScroll: N(a.onScroll, (u) => {
3139
+ const f = u.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: x } = i;
3140
+ if (x != null && x.current && p) {
3141
+ const w = Math.abs(d.current - f.scrollTop);
3142
+ if (w > 0) {
3143
+ const g = window.innerHeight - le * 2, m = parseFloat(p.style.minHeight), y = parseFloat(p.style.height), S = Math.max(m, y);
3144
+ if (S < g) {
3145
+ const h = S + w, C = Math.min(g, h), F = h - C;
3146
+ p.style.height = C + "px", p.style.bottom === "0px" && (f.scrollTop = F > 0 ? F : 0, p.style.justifyContent = "flex-end");
3355
3147
  }
3356
3148
  }
3357
3149
  }
@@ -3362,22 +3154,22 @@ var [Hc, ho] = Te(Ne, {}), Pt = "SelectViewport", pr = s.forwardRef(
3362
3154
  ] });
3363
3155
  }
3364
3156
  );
3365
- pr.displayName = Pt;
3366
- var fr = "SelectGroup", [Wc, zc] = Te(fr), mr = s.forwardRef(
3157
+ ar.displayName = Tt;
3158
+ var rr = "SelectGroup", [Mc, Dc] = Ae(rr), sr = s.forwardRef(
3367
3159
  (e, o) => {
3368
3160
  const { __scopeSelect: t, ...n } = e, a = ee();
3369
- return /* @__PURE__ */ r.jsx(Wc, { scope: t, id: a, children: /* @__PURE__ */ r.jsx(A.div, { role: "group", "aria-labelledby": a, ...n, ref: o }) });
3161
+ return /* @__PURE__ */ r.jsx(Mc, { scope: t, id: a, children: /* @__PURE__ */ r.jsx(T.div, { role: "group", "aria-labelledby": a, ...n, ref: o }) });
3370
3162
  }
3371
3163
  );
3372
- mr.displayName = fr;
3373
- var gr = "SelectLabel", vr = s.forwardRef(
3164
+ sr.displayName = rr;
3165
+ var lr = "SelectLabel", ir = s.forwardRef(
3374
3166
  (e, o) => {
3375
- const { __scopeSelect: t, ...n } = e, a = zc(gr, t);
3376
- return /* @__PURE__ */ r.jsx(A.div, { id: a.id, ...n, ref: o });
3167
+ const { __scopeSelect: t, ...n } = e, a = Dc(lr, t);
3168
+ return /* @__PURE__ */ r.jsx(T.div, { id: a.id, ...n, ref: o });
3377
3169
  }
3378
3170
  );
3379
- vr.displayName = gr;
3380
- var tt = "SelectItem", [Yc, hr] = Te(tt), xr = s.forwardRef(
3171
+ ir.displayName = lr;
3172
+ var et = "SelectItem", [Ac, cr] = Ae(et), dr = s.forwardRef(
3381
3173
  (e, o) => {
3382
3174
  const {
3383
3175
  __scopeSelect: t,
@@ -3385,13 +3177,13 @@ var tt = "SelectItem", [Yc, hr] = Te(tt), xr = s.forwardRef(
3385
3177
  disabled: a = !1,
3386
3178
  textValue: l,
3387
3179
  ...i
3388
- } = e, c = he(tt, t), d = xe(tt, t), u = c.value === n, [f, p] = s.useState(l ?? ""), [v, b] = s.useState(!1), g = G(
3180
+ } = e, c = ve(et, t), d = he(et, t), u = c.value === n, [f, p] = s.useState(l ?? ""), [x, w] = s.useState(!1), g = B(
3389
3181
  o,
3390
3182
  (h) => {
3391
- var S;
3392
- return (S = d.itemRefCallback) == null ? void 0 : S.call(d, h, n, a);
3183
+ var C;
3184
+ return (C = d.itemRefCallback) == null ? void 0 : C.call(d, h, n, a);
3393
3185
  }
3394
- ), m = ee(), y = s.useRef("touch"), w = () => {
3186
+ ), m = ee(), y = s.useRef("touch"), S = () => {
3395
3187
  a || (c.onValueChange(n), c.onOpenChange(!1));
3396
3188
  };
3397
3189
  if (n === "")
@@ -3399,7 +3191,7 @@ var tt = "SelectItem", [Yc, hr] = Te(tt), xr = s.forwardRef(
3399
3191
  "A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
3400
3192
  );
3401
3193
  return /* @__PURE__ */ r.jsx(
3402
- Yc,
3194
+ Ac,
3403
3195
  {
3404
3196
  scope: t,
3405
3197
  value: n,
@@ -3407,50 +3199,50 @@ var tt = "SelectItem", [Yc, hr] = Te(tt), xr = s.forwardRef(
3407
3199
  textId: m,
3408
3200
  isSelected: u,
3409
3201
  onItemTextChange: s.useCallback((h) => {
3410
- p((S) => S || ((h == null ? void 0 : h.textContent) ?? "").trim());
3202
+ p((C) => C || ((h == null ? void 0 : h.textContent) ?? "").trim());
3411
3203
  }, []),
3412
3204
  children: /* @__PURE__ */ r.jsx(
3413
- pt.ItemSlot,
3205
+ ut.ItemSlot,
3414
3206
  {
3415
3207
  scope: t,
3416
3208
  value: n,
3417
3209
  disabled: a,
3418
3210
  textValue: f,
3419
3211
  children: /* @__PURE__ */ r.jsx(
3420
- A.div,
3212
+ T.div,
3421
3213
  {
3422
3214
  role: "option",
3423
3215
  "aria-labelledby": m,
3424
- "data-highlighted": v ? "" : void 0,
3425
- "aria-selected": u && v,
3216
+ "data-highlighted": x ? "" : void 0,
3217
+ "aria-selected": u && x,
3426
3218
  "data-state": u ? "checked" : "unchecked",
3427
3219
  "aria-disabled": a || void 0,
3428
3220
  "data-disabled": a ? "" : void 0,
3429
3221
  tabIndex: a ? void 0 : -1,
3430
3222
  ...i,
3431
3223
  ref: g,
3432
- onFocus: _(i.onFocus, () => b(!0)),
3433
- onBlur: _(i.onBlur, () => b(!1)),
3434
- onClick: _(i.onClick, () => {
3435
- y.current !== "mouse" && w();
3224
+ onFocus: N(i.onFocus, () => w(!0)),
3225
+ onBlur: N(i.onBlur, () => w(!1)),
3226
+ onClick: N(i.onClick, () => {
3227
+ y.current !== "mouse" && S();
3436
3228
  }),
3437
- onPointerUp: _(i.onPointerUp, () => {
3438
- y.current === "mouse" && w();
3229
+ onPointerUp: N(i.onPointerUp, () => {
3230
+ y.current === "mouse" && S();
3439
3231
  }),
3440
- onPointerDown: _(i.onPointerDown, (h) => {
3232
+ onPointerDown: N(i.onPointerDown, (h) => {
3441
3233
  y.current = h.pointerType;
3442
3234
  }),
3443
- onPointerMove: _(i.onPointerMove, (h) => {
3444
- var S;
3445
- y.current = h.pointerType, a ? (S = d.onItemLeave) == null || S.call(d) : y.current === "mouse" && h.currentTarget.focus({ preventScroll: !0 });
3235
+ onPointerMove: N(i.onPointerMove, (h) => {
3236
+ var C;
3237
+ y.current = h.pointerType, a ? (C = d.onItemLeave) == null || C.call(d) : y.current === "mouse" && h.currentTarget.focus({ preventScroll: !0 });
3446
3238
  }),
3447
- onPointerLeave: _(i.onPointerLeave, (h) => {
3448
- var S;
3449
- h.currentTarget === document.activeElement && ((S = d.onItemLeave) == null || S.call(d));
3239
+ onPointerLeave: N(i.onPointerLeave, (h) => {
3240
+ var C;
3241
+ h.currentTarget === document.activeElement && ((C = d.onItemLeave) == null || C.call(d));
3450
3242
  }),
3451
- onKeyDown: _(i.onKeyDown, (h) => {
3452
- var D;
3453
- ((D = d.searchRef) == null ? void 0 : D.current) !== "" && h.key === " " || (Oc.includes(h.key) && w(), h.key === " " && h.preventDefault());
3243
+ onKeyDown: N(i.onKeyDown, (h) => {
3244
+ var F;
3245
+ ((F = d.searchRef) == null ? void 0 : F.current) !== "" && h.key === " " || (xc.includes(h.key) && S(), h.key === " " && h.preventDefault());
3454
3246
  })
3455
3247
  }
3456
3248
  )
@@ -3460,38 +3252,38 @@ var tt = "SelectItem", [Yc, hr] = Te(tt), xr = s.forwardRef(
3460
3252
  );
3461
3253
  }
3462
3254
  );
3463
- xr.displayName = tt;
3464
- var Oe = "SelectItemText", br = s.forwardRef(
3255
+ dr.displayName = et;
3256
+ var je = "SelectItemText", ur = s.forwardRef(
3465
3257
  (e, o) => {
3466
- const { __scopeSelect: t, className: n, style: a, ...l } = e, i = he(Oe, t), c = xe(Oe, t), d = hr(Oe, t), u = Fc(Oe, t), [f, p] = s.useState(null), v = G(
3258
+ const { __scopeSelect: t, className: n, style: a, ...l } = e, i = ve(je, t), c = he(je, t), d = cr(je, t), u = Sc(je, t), [f, p] = s.useState(null), x = B(
3467
3259
  o,
3468
- (w) => p(w),
3260
+ (S) => p(S),
3469
3261
  d.onItemTextChange,
3470
- (w) => {
3262
+ (S) => {
3471
3263
  var h;
3472
- return (h = c.itemTextRefCallback) == null ? void 0 : h.call(c, w, d.value, d.disabled);
3264
+ return (h = c.itemTextRefCallback) == null ? void 0 : h.call(c, S, d.value, d.disabled);
3473
3265
  }
3474
- ), b = f == null ? void 0 : f.textContent, g = s.useMemo(
3475
- () => /* @__PURE__ */ r.jsx("option", { value: d.value, disabled: d.disabled, children: b }, d.value),
3476
- [d.disabled, d.value, b]
3266
+ ), w = f == null ? void 0 : f.textContent, g = s.useMemo(
3267
+ () => /* @__PURE__ */ r.jsx("option", { value: d.value, disabled: d.disabled, children: w }, d.value),
3268
+ [d.disabled, d.value, w]
3477
3269
  ), { onNativeOptionAdd: m, onNativeOptionRemove: y } = u;
3478
- return ue(() => (m(g), () => y(g)), [m, y, g]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3479
- /* @__PURE__ */ r.jsx(A.span, { id: d.textId, ...l, ref: v }),
3480
- d.isSelected && i.valueNode && !i.valueNodeHasChildren ? Po.createPortal(l.children, i.valueNode) : null
3270
+ return de(() => (m(g), () => y(g)), [m, y, g]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3271
+ /* @__PURE__ */ r.jsx(T.span, { id: d.textId, ...l, ref: x }),
3272
+ d.isSelected && i.valueNode && !i.valueNodeHasChildren ? Ao.createPortal(l.children, i.valueNode) : null
3481
3273
  ] });
3482
3274
  }
3483
3275
  );
3484
- br.displayName = Oe;
3485
- var yr = "SelectItemIndicator", wr = s.forwardRef(
3276
+ ur.displayName = je;
3277
+ var pr = "SelectItemIndicator", fr = s.forwardRef(
3486
3278
  (e, o) => {
3487
3279
  const { __scopeSelect: t, ...n } = e;
3488
- return hr(yr, t).isSelected ? /* @__PURE__ */ r.jsx(A.span, { "aria-hidden": !0, ...n, ref: o }) : null;
3280
+ return cr(pr, t).isSelected ? /* @__PURE__ */ r.jsx(T.span, { "aria-hidden": !0, ...n, ref: o }) : null;
3489
3281
  }
3490
3282
  );
3491
- wr.displayName = yr;
3492
- var jt = "SelectScrollUpButton", Cr = s.forwardRef((e, o) => {
3493
- const t = xe(jt, e.__scopeSelect), n = ho(jt, e.__scopeSelect), [a, l] = s.useState(!1), i = G(o, n.onScrollButtonChange);
3494
- return ue(() => {
3283
+ fr.displayName = pr;
3284
+ var Pt = "SelectScrollUpButton", mr = s.forwardRef((e, o) => {
3285
+ const t = he(Pt, e.__scopeSelect), n = go(Pt, e.__scopeSelect), [a, l] = s.useState(!1), i = B(o, n.onScrollButtonChange);
3286
+ return de(() => {
3495
3287
  if (t.viewport && t.isPositioned) {
3496
3288
  let c = function() {
3497
3289
  const u = d.scrollTop > 0;
@@ -3501,7 +3293,7 @@ var jt = "SelectScrollUpButton", Cr = s.forwardRef((e, o) => {
3501
3293
  return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
3502
3294
  }
3503
3295
  }, [t.viewport, t.isPositioned]), a ? /* @__PURE__ */ r.jsx(
3504
- _r,
3296
+ vr,
3505
3297
  {
3506
3298
  ...e,
3507
3299
  ref: i,
@@ -3512,10 +3304,10 @@ var jt = "SelectScrollUpButton", Cr = s.forwardRef((e, o) => {
3512
3304
  }
3513
3305
  ) : null;
3514
3306
  });
3515
- Cr.displayName = jt;
3516
- var Ot = "SelectScrollDownButton", Sr = s.forwardRef((e, o) => {
3517
- const t = xe(Ot, e.__scopeSelect), n = ho(Ot, e.__scopeSelect), [a, l] = s.useState(!1), i = G(o, n.onScrollButtonChange);
3518
- return ue(() => {
3307
+ mr.displayName = Pt;
3308
+ var jt = "SelectScrollDownButton", gr = s.forwardRef((e, o) => {
3309
+ const t = he(jt, e.__scopeSelect), n = go(jt, e.__scopeSelect), [a, l] = s.useState(!1), i = B(o, n.onScrollButtonChange);
3310
+ return de(() => {
3519
3311
  if (t.viewport && t.isPositioned) {
3520
3312
  let c = function() {
3521
3313
  const u = d.scrollHeight - d.clientHeight, f = Math.ceil(d.scrollTop) < u;
@@ -3525,7 +3317,7 @@ var Ot = "SelectScrollDownButton", Sr = s.forwardRef((e, o) => {
3525
3317
  return c(), d.addEventListener("scroll", c), () => d.removeEventListener("scroll", c);
3526
3318
  }
3527
3319
  }, [t.viewport, t.isPositioned]), a ? /* @__PURE__ */ r.jsx(
3528
- _r,
3320
+ vr,
3529
3321
  {
3530
3322
  ...e,
3531
3323
  ref: i,
@@ -3536,54 +3328,54 @@ var Ot = "SelectScrollDownButton", Sr = s.forwardRef((e, o) => {
3536
3328
  }
3537
3329
  ) : null;
3538
3330
  });
3539
- Sr.displayName = Ot;
3540
- var _r = s.forwardRef((e, o) => {
3541
- const { __scopeSelect: t, onAutoScroll: n, ...a } = e, l = xe("SelectScrollButton", t), i = s.useRef(null), c = ft(t), d = s.useCallback(() => {
3331
+ gr.displayName = jt;
3332
+ var vr = s.forwardRef((e, o) => {
3333
+ const { __scopeSelect: t, onAutoScroll: n, ...a } = e, l = he("SelectScrollButton", t), i = s.useRef(null), c = pt(t), d = s.useCallback(() => {
3542
3334
  i.current !== null && (window.clearInterval(i.current), i.current = null);
3543
3335
  }, []);
3544
- return s.useEffect(() => () => d(), [d]), ue(() => {
3336
+ return s.useEffect(() => () => d(), [d]), de(() => {
3545
3337
  var f;
3546
3338
  const u = c().find((p) => p.ref.current === document.activeElement);
3547
3339
  (f = u == null ? void 0 : u.ref.current) == null || f.scrollIntoView({ block: "nearest" });
3548
3340
  }, [c]), /* @__PURE__ */ r.jsx(
3549
- A.div,
3341
+ T.div,
3550
3342
  {
3551
3343
  "aria-hidden": !0,
3552
3344
  ...a,
3553
3345
  ref: o,
3554
3346
  style: { flexShrink: 0, ...a.style },
3555
- onPointerDown: _(a.onPointerDown, () => {
3347
+ onPointerDown: N(a.onPointerDown, () => {
3556
3348
  i.current === null && (i.current = window.setInterval(n, 50));
3557
3349
  }),
3558
- onPointerMove: _(a.onPointerMove, () => {
3350
+ onPointerMove: N(a.onPointerMove, () => {
3559
3351
  var u;
3560
3352
  (u = l.onItemLeave) == null || u.call(l), i.current === null && (i.current = window.setInterval(n, 50));
3561
3353
  }),
3562
- onPointerLeave: _(a.onPointerLeave, () => {
3354
+ onPointerLeave: N(a.onPointerLeave, () => {
3563
3355
  d();
3564
3356
  })
3565
3357
  }
3566
3358
  );
3567
- }), qc = "SelectSeparator", Nr = s.forwardRef(
3359
+ }), Tc = "SelectSeparator", hr = s.forwardRef(
3568
3360
  (e, o) => {
3569
3361
  const { __scopeSelect: t, ...n } = e;
3570
- return /* @__PURE__ */ r.jsx(A.div, { "aria-hidden": !0, ...n, ref: o });
3362
+ return /* @__PURE__ */ r.jsx(T.div, { "aria-hidden": !0, ...n, ref: o });
3571
3363
  }
3572
3364
  );
3573
- Nr.displayName = qc;
3574
- var kt = "SelectArrow", Xc = s.forwardRef(
3365
+ hr.displayName = Tc;
3366
+ var Ot = "SelectArrow", Pc = s.forwardRef(
3575
3367
  (e, o) => {
3576
- const { __scopeSelect: t, ...n } = e, a = mt(t), l = he(kt, t), i = xe(kt, t);
3577
- return l.open && i.position === "popper" ? /* @__PURE__ */ r.jsx(Do, { ...a, ...n, ref: o }) : null;
3368
+ const { __scopeSelect: t, ...n } = e, a = ft(t), l = ve(Ot, t), i = he(Ot, t);
3369
+ return l.open && i.position === "popper" ? /* @__PURE__ */ r.jsx(Eo, { ...a, ...n, ref: o }) : null;
3578
3370
  }
3579
3371
  );
3580
- Xc.displayName = kt;
3581
- function Rr(e) {
3372
+ Pc.displayName = Ot;
3373
+ function xr(e) {
3582
3374
  return e === "" || e === void 0;
3583
3375
  }
3584
- var Er = s.forwardRef(
3376
+ var wr = s.forwardRef(
3585
3377
  (e, o) => {
3586
- const { value: t, ...n } = e, a = s.useRef(null), l = G(o, a), i = an(t);
3378
+ const { value: t, ...n } = e, a = s.useRef(null), l = B(o, a), i = Gr(t);
3587
3379
  return s.useEffect(() => {
3588
3380
  const c = a.current, d = window.HTMLSelectElement.prototype, f = Object.getOwnPropertyDescriptor(
3589
3381
  d,
@@ -3593,12 +3385,12 @@ var Er = s.forwardRef(
3593
3385
  const p = new Event("change", { bubbles: !0 });
3594
3386
  f.call(c, t), c.dispatchEvent(p);
3595
3387
  }
3596
- }, [i, t]), /* @__PURE__ */ r.jsx(Zr, { asChild: !0, children: /* @__PURE__ */ r.jsx("select", { ...n, ref: l, defaultValue: t }) });
3388
+ }, [i, t]), /* @__PURE__ */ r.jsx(Kr, { asChild: !0, children: /* @__PURE__ */ r.jsx("select", { ...n, ref: l, defaultValue: t }) });
3597
3389
  }
3598
3390
  );
3599
- Er.displayName = "BubbleSelect";
3600
- function Ir(e) {
3601
- const o = Ge(e), t = s.useRef(""), n = s.useRef(0), a = s.useCallback(
3391
+ wr.displayName = "BubbleSelect";
3392
+ function yr(e) {
3393
+ const o = Ve(e), t = s.useRef(""), n = s.useRef(0), a = s.useCallback(
3602
3394
  (i) => {
3603
3395
  const c = t.current + i;
3604
3396
  o(c), function d(u) {
@@ -3611,60 +3403,60 @@ function Ir(e) {
3611
3403
  }, []);
3612
3404
  return s.useEffect(() => () => window.clearTimeout(n.current), []), [t, a, l];
3613
3405
  }
3614
- function Mr(e, o, t) {
3406
+ function br(e, o, t) {
3615
3407
  const a = o.length > 1 && Array.from(o).every((u) => u === o[0]) ? o[0] : o, l = t ? e.indexOf(t) : -1;
3616
- let i = Zc(e, Math.max(l, 0));
3408
+ let i = jc(e, Math.max(l, 0));
3617
3409
  a.length === 1 && (i = i.filter((u) => u !== t));
3618
3410
  const d = i.find(
3619
3411
  (u) => u.textValue.toLowerCase().startsWith(a.toLowerCase())
3620
3412
  );
3621
3413
  return d !== t ? d : void 0;
3622
3414
  }
3623
- function Zc(e, o) {
3415
+ function jc(e, o) {
3624
3416
  return e.map((t, n) => e[(o + n) % e.length]);
3625
3417
  }
3626
- var Jc = tr, Dr = nr, Qc = rr, ed = sr, td = lr, Ar = ir, od = pr, nd = mr, Tr = vr, Pr = xr, ad = br, rd = wr, jr = Cr, Or = Sr, kr = Nr;
3627
- const sd = Jc, Ld = nd, ld = Qc, $r = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(
3628
- Dr,
3418
+ var Oc = za, Sr = qa, kc = Za, $c = Ja, Lc = Qa, Cr = er, Fc = ar, Vc = sr, _r = ir, Nr = dr, Gc = ur, Kc = fr, Rr = mr, Ir = gr, Er = hr;
3419
+ const Bc = Oc, wd = Vc, Uc = kc, Mr = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(
3420
+ Sr,
3629
3421
  {
3630
3422
  ref: n,
3631
- className: E(
3423
+ className: I(
3632
3424
  "al-flex al-h-10 al-items-center al-justify-between al-rounded-md al-border al-border-input al-bg-transparent al-px-3 al-py-2 al-text-sm al-ring-offset-background placeholder:al-text-muted-foreground focus:al-outline-none focus:al-ring-2 focus:al-ring-ring focus:al-ring-offset-2 disabled:al-cursor-not-allowed disabled:al-opacity-50 [&>span]:al-line-clamp-1 data-[placeholder]:al-text-muted-foreground",
3633
3425
  e
3634
3426
  ),
3635
3427
  ...t,
3636
3428
  children: [
3637
3429
  o,
3638
- /* @__PURE__ */ r.jsx(ed, { asChild: !0, children: /* @__PURE__ */ r.jsx($t, { className: "al-h-4 al-w-4 al-opacity-50 al-ml-2" }) })
3430
+ /* @__PURE__ */ r.jsx($c, { asChild: !0, children: /* @__PURE__ */ r.jsx(kt, { className: "al-h-4 al-w-4 al-opacity-50 al-ml-2" }) })
3639
3431
  ]
3640
3432
  }
3641
3433
  ));
3642
- $r.displayName = Dr.displayName;
3643
- const Lr = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3644
- jr,
3434
+ Mr.displayName = Sr.displayName;
3435
+ const Dr = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3436
+ Rr,
3645
3437
  {
3646
3438
  ref: t,
3647
- className: E("al-flex al-cursor-default al-items-center al-justify-center al-py-1", e),
3439
+ className: I("al-flex al-cursor-default al-items-center al-justify-center al-py-1", e),
3648
3440
  ...o,
3649
- children: /* @__PURE__ */ r.jsx(Hr, { className: "al-h-4 al-w-4" })
3441
+ children: /* @__PURE__ */ r.jsx($r, { className: "al-h-4 al-w-4" })
3650
3442
  }
3651
3443
  ));
3652
- Lr.displayName = jr.displayName;
3653
- const Fr = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3654
- Or,
3444
+ Dr.displayName = Rr.displayName;
3445
+ const Ar = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3446
+ Ir,
3655
3447
  {
3656
3448
  ref: t,
3657
- className: E("al-flex al-cursor-default al-items-center al-justify-center al-py-1", e),
3449
+ className: I("al-flex al-cursor-default al-items-center al-justify-center al-py-1", e),
3658
3450
  ...o,
3659
- children: /* @__PURE__ */ r.jsx($t, { className: "al-h-4 al-w-4" })
3451
+ children: /* @__PURE__ */ r.jsx(kt, { className: "al-h-4 al-w-4" })
3660
3452
  }
3661
3453
  ));
3662
- Fr.displayName = Or.displayName;
3663
- const Vr = s.forwardRef(({ className: e, children: o, position: t = "popper", ...n }, a) => /* @__PURE__ */ r.jsx(td, { children: /* @__PURE__ */ r.jsxs(
3664
- Ar,
3454
+ Ar.displayName = Ir.displayName;
3455
+ const Tr = s.forwardRef(({ className: e, children: o, position: t = "popper", ...n }, a) => /* @__PURE__ */ r.jsx(Lc, { children: /* @__PURE__ */ r.jsxs(
3456
+ Cr,
3665
3457
  {
3666
3458
  ref: a,
3667
- className: E(
3459
+ className: I(
3668
3460
  "al-relative al-z-[100] al-max-h-96 al-min-w-[8rem] al-overflow-hidden al-rounded-md al-border al-bg-popover al-text-popover-foreground al-shadow-md data-[state=open]:al-animate-in data-[state=closed]:al-animate-out data-[state=closed]:al-fade-out-0 data-[state=open]:al-fade-in-0 data-[state=closed]:al-zoom-out-95 data-[state=open]:al-zoom-in-95 data-[side=bottom]:al-slide-in-from-top-2 data-[side=left]:al-slide-in-from-right-2 data-[side=right]:al-slide-in-from-left-2 data-[side=top]:al-slide-in-from-bottom-2",
3669
3461
  t === "popper" && "data-[side=bottom]:al-translate-y-1 data-[side=left]:al--translate-x-1 data-[side=right]:al-translate-x-1 data-[side=top]:al--translate-y-1",
3670
3462
  e
@@ -3672,57 +3464,57 @@ const Vr = s.forwardRef(({ className: e, children: o, position: t = "popper", ..
3672
3464
  position: t,
3673
3465
  ...n,
3674
3466
  children: [
3675
- /* @__PURE__ */ r.jsx(Lr, {}),
3467
+ /* @__PURE__ */ r.jsx(Dr, {}),
3676
3468
  /* @__PURE__ */ r.jsx(
3677
- od,
3469
+ Fc,
3678
3470
  {
3679
- className: E(
3471
+ className: I(
3680
3472
  "al-p-1",
3681
3473
  t === "popper" && "al-h-[var(--radix-select-trigger-height)] al-w-full al-min-w-[var(--radix-select-trigger-width)]"
3682
3474
  ),
3683
3475
  children: o
3684
3476
  }
3685
3477
  ),
3686
- /* @__PURE__ */ r.jsx(Fr, {})
3478
+ /* @__PURE__ */ r.jsx(Ar, {})
3687
3479
  ]
3688
3480
  }
3689
3481
  ) }));
3690
- Vr.displayName = Ar.displayName;
3691
- const id = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3692
- Tr,
3482
+ Tr.displayName = Cr.displayName;
3483
+ const Hc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3484
+ _r,
3693
3485
  {
3694
3486
  ref: t,
3695
- className: E("al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-font-semibold", e),
3487
+ className: I("al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-font-semibold", e),
3696
3488
  ...o
3697
3489
  }
3698
3490
  ));
3699
- id.displayName = Tr.displayName;
3700
- const Gr = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(
3701
- Pr,
3491
+ Hc.displayName = _r.displayName;
3492
+ const Pr = s.forwardRef(({ className: e, children: o, ...t }, n) => /* @__PURE__ */ r.jsxs(
3493
+ Nr,
3702
3494
  {
3703
3495
  ref: n,
3704
- className: E(
3496
+ className: I(
3705
3497
  "al-relative al-flex al-w-full al-cursor-default al-select-none al-items-center al-rounded-sm al-py-1.5 al-pl-8 al-pr-2 al-text-sm al-outline-none focus:al-bg-accent focus:al-text-accent-foreground data-[disabled]:al-pointer-events-none data-[disabled]:al-opacity-50",
3706
3498
  e
3707
3499
  ),
3708
3500
  ...t,
3709
3501
  children: [
3710
- /* @__PURE__ */ r.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ r.jsx(rd, { children: /* @__PURE__ */ r.jsx(Eo, { className: "al-h-4 al-w-4" }) }) }),
3711
- /* @__PURE__ */ r.jsx(ad, { children: o })
3502
+ /* @__PURE__ */ r.jsx("span", { className: "al-absolute al-left-2 al-flex al-h-3.5 al-w-3.5 al-items-center al-justify-center", children: /* @__PURE__ */ r.jsx(Kc, { children: /* @__PURE__ */ r.jsx(No, { className: "al-h-4 al-w-4" }) }) }),
3503
+ /* @__PURE__ */ r.jsx(Gc, { children: o })
3712
3504
  ]
3713
3505
  }
3714
3506
  ));
3715
- Gr.displayName = Pr.displayName;
3716
- const cd = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3717
- kr,
3507
+ Pr.displayName = Nr.displayName;
3508
+ const Wc = s.forwardRef(({ className: e, ...o }, t) => /* @__PURE__ */ r.jsx(
3509
+ Er,
3718
3510
  {
3719
3511
  ref: t,
3720
- className: E("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
3512
+ className: I("al--mx-1 al-my-1 al-h-px al-bg-muted", e),
3721
3513
  ...o
3722
3514
  }
3723
3515
  ));
3724
- cd.displayName = kr.displayName;
3725
- const dd = Ut(
3516
+ Wc.displayName = Er.displayName;
3517
+ const zc = Bt(
3726
3518
  [
3727
3519
  "al-flex al-items-center al-justify-between al-rounded-md",
3728
3520
  "al-text-sm al-font-normal",
@@ -3778,117 +3570,114 @@ const dd = Ut(
3778
3570
  size: "default"
3779
3571
  }
3780
3572
  }
3781
- ), ud = z(
3782
- ({ options: e, onChange: o, value: t, placeholder: n, className: a, disabled: l, icon: i, variant: c, size: d, open: u }, f) => /* @__PURE__ */ r.jsxs(sd, { value: t, onValueChange: o, disabled: l, open: u, children: [
3783
- /* @__PURE__ */ r.jsxs($r, { ref: f, className: E(dd({ variant: c, size: d, className: a })), children: [
3573
+ ), Yc = Y(
3574
+ ({ options: e, onChange: o, value: t, placeholder: n, className: a, disabled: l, icon: i, variant: c, size: d, open: u }, f) => /* @__PURE__ */ r.jsxs(Bc, { value: t, onValueChange: o, disabled: l, open: u, children: [
3575
+ /* @__PURE__ */ r.jsxs(Mr, { ref: f, className: I(zc({ variant: c, size: d, className: a })), children: [
3784
3576
  i && /* @__PURE__ */ r.jsx("div", { className: "al-mr-2", children: i }),
3785
- /* @__PURE__ */ r.jsx(ld, { placeholder: n })
3577
+ /* @__PURE__ */ r.jsx(Uc, { placeholder: n })
3786
3578
  ] }),
3787
- /* @__PURE__ */ r.jsx(Vr, { children: e.map((p) => /* @__PURE__ */ r.jsx(Gr, { value: p.value, children: p.label }, p.value)) })
3579
+ /* @__PURE__ */ r.jsx(Tr, { children: e.map((p) => /* @__PURE__ */ r.jsx(Pr, { value: p.value, children: p.label }, p.value)) })
3788
3580
  ] })
3789
3581
  );
3790
- ud.displayName = "NativeSelect";
3582
+ Yc.displayName = "NativeSelect";
3791
3583
  export {
3792
- wd as $,
3793
- tl as A,
3794
- ls as B,
3795
- fa as C,
3796
- Zo as D,
3797
- vd as E,
3798
- hd as F,
3799
- al as G,
3800
- ds as H,
3801
- Rs as I,
3802
- us as J,
3803
- ps as K,
3804
- rl as L,
3805
- fs as M,
3806
- Es as N,
3807
- bd as O,
3808
- ol as P,
3809
- yd as Q,
3810
- Ns as R,
3811
- gd as S,
3812
- Md as T,
3813
- Fl as U,
3814
- Vl as V,
3815
- Gl as W,
3816
- Kl as X,
3817
- Bl as Y,
3818
- Ul as Z,
3819
- Hl as _,
3820
- st as a,
3821
- Cd as a0,
3822
- Sd as a1,
3823
- Ll as a2,
3824
- $l as a3,
3825
- _d as a4,
3826
- Ed as a5,
3827
- Ai as a6,
3828
- Mi as a7,
3829
- bi as a8,
3830
- yi as a9,
3831
- Pc as aA,
3832
- ud as aB,
3833
- sd as aC,
3834
- Ld as aD,
3835
- ld as aE,
3836
- $r as aF,
3837
- Vr as aG,
3838
- id as aH,
3839
- Gr as aI,
3840
- cd as aJ,
3841
- Lr as aK,
3842
- Fr as aL,
3843
- ua as aa,
3844
- Rd as ab,
3845
- Nd as ac,
3846
- pa as ad,
3847
- wi as ae,
3848
- Ci as af,
3849
- Si as ag,
3850
- _i as ah,
3851
- Dd as ai,
3852
- Vi as aj,
3853
- Td as ak,
3854
- lc as al,
3855
- ic as am,
3856
- cc as an,
3857
- fc as ao,
3858
- mc as ap,
3859
- Od as aq,
3860
- Rc as ar,
3861
- er as as,
3862
- kd as at,
3863
- Ec as au,
3864
- Ic as av,
3865
- Mc as aw,
3866
- Dc as ax,
3867
- Ac as ay,
3868
- Tc as az,
3869
- rt as b,
3870
- Qo as c,
3871
- Pd as d,
3872
- Ni as e,
3873
- Ri as f,
3874
- Ei as g,
3875
- Ii as h,
3876
- Di as i,
3877
- $i as j,
3878
- cs as k,
3879
- No as l,
3880
- sn as m,
3881
- nl as n,
3882
- sl as o,
3883
- ll as p,
3884
- il as q,
3885
- cl as r,
3886
- dl as s,
3887
- ul as t,
3888
- an as u,
3889
- pl as v,
3890
- ml as w,
3891
- gl as x,
3892
- el as y,
3893
- fl as z
3584
+ Ml as $,
3585
+ Ws as A,
3586
+ Qc as B,
3587
+ da as C,
3588
+ ed as D,
3589
+ ts as E,
3590
+ os as F,
3591
+ qs as G,
3592
+ ns as H,
3593
+ hs as I,
3594
+ as as J,
3595
+ od as K,
3596
+ Xs as L,
3597
+ nd as M,
3598
+ Dl as N,
3599
+ Al as O,
3600
+ zs as P,
3601
+ Tl as Q,
3602
+ vs as R,
3603
+ Jc as S,
3604
+ xs as T,
3605
+ Pl as U,
3606
+ jl as V,
3607
+ Ol as W,
3608
+ kl as X,
3609
+ ad as Y,
3610
+ rd as Z,
3611
+ sd as _,
3612
+ at as a,
3613
+ El as a0,
3614
+ ld as a1,
3615
+ dd as a2,
3616
+ Si as a3,
3617
+ yi as a4,
3618
+ di as a5,
3619
+ ui as a6,
3620
+ ia as a7,
3621
+ cd as a8,
3622
+ id as a9,
3623
+ wd as aA,
3624
+ Uc as aB,
3625
+ Mr as aC,
3626
+ Tr as aD,
3627
+ Hc as aE,
3628
+ Pr as aF,
3629
+ Wc as aG,
3630
+ Dr as aH,
3631
+ Ar as aI,
3632
+ ca as aa,
3633
+ pi as ab,
3634
+ fi as ac,
3635
+ mi as ad,
3636
+ gi as ae,
3637
+ ud as af,
3638
+ Ci as ag,
3639
+ fd as ah,
3640
+ Ui as ai,
3641
+ Hi as aj,
3642
+ Wi as ak,
3643
+ Xi as al,
3644
+ Zi as am,
3645
+ vd as an,
3646
+ cc as ao,
3647
+ Wa as ap,
3648
+ hd as aq,
3649
+ dc as ar,
3650
+ uc as as,
3651
+ pc as at,
3652
+ fc as au,
3653
+ mc as av,
3654
+ gc as aw,
3655
+ vc as ax,
3656
+ Yc as ay,
3657
+ Bc as az,
3658
+ md as b,
3659
+ Zo as c,
3660
+ vi as d,
3661
+ hi as e,
3662
+ xi as f,
3663
+ wi as g,
3664
+ bi as h,
3665
+ es as i,
3666
+ Co as j,
3667
+ nn as k,
3668
+ Ys as l,
3669
+ Zs as m,
3670
+ Js as n,
3671
+ Qs as o,
3672
+ el as p,
3673
+ tl as q,
3674
+ ol as r,
3675
+ nl as s,
3676
+ rl as t,
3677
+ rt as u,
3678
+ sl as v,
3679
+ Hs as w,
3680
+ al as x,
3681
+ Jr as y,
3682
+ qo as z
3894
3683
  };