@engrate/components 0.0.2 → 0.0.4

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.
@@ -23,12 +23,12 @@ function ue(e, t = []) {
23
23
  const c = s.createContext(i), l = n.length;
24
24
  n = [...n, i];
25
25
  const d = (p) => {
26
- const { scope: g, children: v, ...b } = p, m = g?.[e]?.[l] || c, h = s.useMemo(() => b, Object.values(b));
27
- return /* @__PURE__ */ u(m.Provider, { value: h, children: v });
26
+ const { scope: h, children: v, ...b } = p, m = h?.[e]?.[l] || c, g = s.useMemo(() => b, Object.values(b));
27
+ return /* @__PURE__ */ u(m.Provider, { value: g, children: v });
28
28
  };
29
29
  d.displayName = a + "Provider";
30
- function f(p, g) {
31
- const v = g?.[e]?.[l] || c, b = s.useContext(v);
30
+ function f(p, h) {
31
+ const v = h?.[e]?.[l] || c, b = s.useContext(v);
32
32
  if (b) return b;
33
33
  if (i !== void 0) return i;
34
34
  throw new Error(`\`${p}\` must be used within \`${a}\``);
@@ -104,7 +104,7 @@ function ve(e) {
104
104
  n((o) => o ?? String(ml++));
105
105
  }, [e]), e || (t ? `radix-${t}` : "");
106
106
  }
107
- var gl = s[" useInsertionEffect ".trim().toString()] || ae;
107
+ var hl = s[" useInsertionEffect ".trim().toString()] || ae;
108
108
  function be({
109
109
  prop: e,
110
110
  defaultProp: t,
@@ -112,7 +112,7 @@ function be({
112
112
  },
113
113
  caller: o
114
114
  }) {
115
- const [r, a, i] = hl({
115
+ const [r, a, i] = gl({
116
116
  defaultProp: t,
117
117
  onChange: n
118
118
  }), c = e !== void 0, l = c ? e : r;
@@ -137,12 +137,12 @@ function be({
137
137
  );
138
138
  return [l, d];
139
139
  }
140
- function hl({
140
+ function gl({
141
141
  defaultProp: e,
142
142
  onChange: t
143
143
  }) {
144
144
  const [n, o] = s.useState(e), r = s.useRef(n), a = s.useRef(t);
145
- return gl(() => {
145
+ return hl(() => {
146
146
  a.current = t;
147
147
  }, [t]), s.useEffect(() => {
148
148
  r.current !== n && (a.current?.(n), r.current = n);
@@ -251,21 +251,21 @@ var Nl = "DismissableLayer", Bn = "dismissableLayer.update", Tl = "dismissableLa
251
251
  onInteractOutside: i,
252
252
  onDismiss: c,
253
253
  ...l
254
- } = e, d = s.useContext(Cr), [f, p] = s.useState(null), g = f?.ownerDocument ?? globalThis?.document, [, v] = s.useState({}), b = U(t, (N) => p(N)), m = Array.from(d.layers), [h] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(h), y = f ? m.indexOf(f) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= w, E = Al((N) => {
254
+ } = e, d = s.useContext(Cr), [f, p] = s.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, v] = s.useState({}), b = U(t, (N) => p(N)), m = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), w = m.indexOf(g), y = f ? m.indexOf(f) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= w, E = Al((N) => {
255
255
  const R = N.target, L = [...d.branches].some((F) => F.contains(R));
256
256
  !C || L || (r?.(N), i?.(N), N.defaultPrevented || c?.());
257
- }, g), T = Il((N) => {
257
+ }, h), T = Il((N) => {
258
258
  const R = N.target;
259
259
  [...d.branches].some((F) => F.contains(R)) || (a?.(N), i?.(N), N.defaultPrevented || c?.());
260
- }, g);
260
+ }, h);
261
261
  return El((N) => {
262
262
  y === d.layers.size - 1 && (o?.(N), !N.defaultPrevented && c && (N.preventDefault(), c()));
263
- }, g), s.useEffect(() => {
263
+ }, h), s.useEffect(() => {
264
264
  if (f)
265
- return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Fo = g.body.style.pointerEvents, g.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), Vo(), () => {
266
- n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (g.body.style.pointerEvents = Fo);
265
+ return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Fo = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), Vo(), () => {
266
+ n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Fo);
267
267
  };
268
- }, [f, g, n, d]), s.useEffect(() => () => {
268
+ }, [f, h, n, d]), s.useEffect(() => () => {
269
269
  f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), Vo());
270
270
  }, [f, d]), s.useEffect(() => {
271
271
  const N = () => v({});
@@ -360,7 +360,7 @@ var _l = bt, kl = Sr, Nn = "focusScope.autoFocusOnMount", Tn = "focusScope.autoF
360
360
  onMountAutoFocus: r,
361
361
  onUnmountAutoFocus: a,
362
362
  ...i
363
- } = e, [c, l] = s.useState(null), d = ie(r), f = ie(a), p = s.useRef(null), g = U(t, (m) => l(m)), v = s.useRef({
363
+ } = e, [c, l] = s.useState(null), d = ie(r), f = ie(a), p = s.useRef(null), h = U(t, (m) => l(m)), v = s.useRef({
364
364
  paused: !1,
365
365
  pause() {
366
366
  this.paused = !0;
@@ -375,7 +375,7 @@ var _l = bt, kl = Sr, Nn = "focusScope.autoFocusOnMount", Tn = "focusScope.autoF
375
375
  if (v.paused || !c) return;
376
376
  const C = x.target;
377
377
  c.contains(C) ? p.current = C : Oe(p.current, { select: !0 });
378
- }, h = function(x) {
378
+ }, g = function(x) {
379
379
  if (v.paused || !c) return;
380
380
  const C = x.relatedTarget;
381
381
  C !== null && (c.contains(C) || Oe(p.current, { select: !0 }));
@@ -384,10 +384,10 @@ var _l = bt, kl = Sr, Nn = "focusScope.autoFocusOnMount", Tn = "focusScope.autoF
384
384
  for (const E of x)
385
385
  E.removedNodes.length > 0 && Oe(c);
386
386
  };
387
- document.addEventListener("focusin", m), document.addEventListener("focusout", h);
387
+ document.addEventListener("focusin", m), document.addEventListener("focusout", g);
388
388
  const y = new MutationObserver(w);
389
389
  return c && y.observe(c, { childList: !0, subtree: !0 }), () => {
390
- document.removeEventListener("focusin", m), document.removeEventListener("focusout", h), y.disconnect();
390
+ document.removeEventListener("focusin", m), document.removeEventListener("focusout", g), y.disconnect();
391
391
  };
392
392
  }
393
393
  }, [o, c, v.paused]), s.useEffect(() => {
@@ -409,15 +409,15 @@ var _l = bt, kl = Sr, Nn = "focusScope.autoFocusOnMount", Tn = "focusScope.autoF
409
409
  const b = s.useCallback(
410
410
  (m) => {
411
411
  if (!n && !o || v.paused) return;
412
- const h = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, w = document.activeElement;
413
- if (h && w) {
412
+ const g = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, w = document.activeElement;
413
+ if (g && w) {
414
414
  const y = m.currentTarget, [x, C] = Ll(y);
415
415
  x && C ? !m.shiftKey && w === C ? (m.preventDefault(), n && Oe(x, { select: !0 })) : m.shiftKey && w === x && (m.preventDefault(), n && Oe(C, { select: !0 })) : w === y && m.preventDefault();
416
416
  }
417
417
  },
418
418
  [n, o, v.paused]
419
419
  );
420
- return /* @__PURE__ */ u($.div, { tabIndex: -1, ...i, ref: g, onKeyDown: b });
420
+ return /* @__PURE__ */ u($.div, { tabIndex: -1, ...i, ref: h, onKeyDown: b });
421
421
  });
422
422
  Zt.displayName = Dl;
423
423
  function Ol(e, { select: t = !1 } = {}) {
@@ -516,8 +516,8 @@ function Gl(e) {
516
516
  }, [c]), ae(() => {
517
517
  const d = o.current, f = r.current;
518
518
  if (f !== e) {
519
- const g = a.current, v = Nt(d);
520
- e ? l("MOUNT") : v === "none" || d?.display === "none" ? l("UNMOUNT") : l(f && g !== v ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
519
+ const h = a.current, v = Nt(d);
520
+ e ? l("MOUNT") : v === "none" || d?.display === "none" ? l("UNMOUNT") : l(f && h !== v ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
521
521
  }
522
522
  }, [e, l]), ae(() => {
523
523
  if (t) {
@@ -525,16 +525,16 @@ function Gl(e) {
525
525
  const f = t.ownerDocument.defaultView ?? window, p = (v) => {
526
526
  const m = Nt(o.current).includes(CSS.escape(v.animationName));
527
527
  if (v.target === t && m && (l("ANIMATION_END"), !r.current)) {
528
- const h = t.style.animationFillMode;
528
+ const g = t.style.animationFillMode;
529
529
  t.style.animationFillMode = "forwards", d = f.setTimeout(() => {
530
- t.style.animationFillMode === "forwards" && (t.style.animationFillMode = h);
530
+ t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
531
531
  });
532
532
  }
533
- }, g = (v) => {
533
+ }, h = (v) => {
534
534
  v.target === t && (a.current = Nt(o.current));
535
535
  };
536
- return t.addEventListener("animationstart", g), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
537
- f.clearTimeout(d), t.removeEventListener("animationstart", g), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
536
+ return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
537
+ f.clearTimeout(d), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
538
538
  };
539
539
  } else
540
540
  l("ANIMATION_END");
@@ -714,11 +714,11 @@ var Pr = Jl(), An = function() {
714
714
  onScrollCapture: An,
715
715
  onWheelCapture: An,
716
716
  onTouchMoveCapture: An
717
- }), r = o[0], a = o[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, v = e.noRelative, b = e.noIsolation, m = e.inert, h = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, x = e.gapMode, C = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = g, T = ql([n, t]), N = Se(Se({}, C), r);
717
+ }), r = o[0], a = o[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, p = e.shards, h = e.sideCar, v = e.noRelative, b = e.noIsolation, m = e.inert, g = e.allowPinchZoom, w = e.as, y = w === void 0 ? "div" : w, x = e.gapMode, C = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = h, T = ql([n, t]), N = Se(Se({}, C), r);
718
718
  return s.createElement(
719
719
  s.Fragment,
720
720
  null,
721
- f && s.createElement(E, { sideCar: Pr, removeScrollBar: d, shards: p, noRelative: v, noIsolation: b, inert: m, setCallbacks: a, allowPinchZoom: !!h, lockRef: n, gapMode: x }),
721
+ f && s.createElement(E, { sideCar: Pr, removeScrollBar: d, shards: p, noRelative: v, noIsolation: b, inert: m, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: x }),
722
722
  i ? s.cloneElement(s.Children.only(c), Se(Se({}, N), { ref: T })) : s.createElement(y, Se({}, N, { className: l, ref: T }), c)
723
723
  );
724
724
  });
@@ -879,9 +879,9 @@ var Ze = Wn ? { passive: !1 } : !1, md = function(e) {
879
879
  n[t] !== "hidden" && // contains scroll inside self
880
880
  !(n.overflowY === n.overflowX && !md(e) && n[t] === "visible")
881
881
  );
882
- }, gd = function(e) {
883
- return Ar(e, "overflowY");
884
882
  }, hd = function(e) {
883
+ return Ar(e, "overflowY");
884
+ }, gd = function(e) {
885
885
  return Ar(e, "overflowX");
886
886
  }, jo = function(e, t) {
887
887
  var n = t.ownerDocument, o = t;
@@ -911,18 +911,18 @@ var Ze = Wn ? { passive: !1 } : !1, md = function(e) {
911
911
  o
912
912
  ];
913
913
  }, Ir = function(e, t) {
914
- return e === "v" ? gd(t) : hd(t);
914
+ return e === "v" ? hd(t) : gd(t);
915
915
  }, _r = function(e, t) {
916
916
  return e === "v" ? vd(t) : bd(t);
917
917
  }, wd = function(e, t) {
918
918
  return e === "h" && t === "rtl" ? -1 : 1;
919
919
  }, yd = function(e, t, n, o, r) {
920
- var a = wd(e, window.getComputedStyle(t).direction), i = a * o, c = n.target, l = t.contains(c), d = !1, f = i > 0, p = 0, g = 0;
920
+ var a = wd(e, window.getComputedStyle(t).direction), i = a * o, c = n.target, l = t.contains(c), d = !1, f = i > 0, p = 0, h = 0;
921
921
  do {
922
922
  if (!c)
923
923
  break;
924
- var v = _r(e, c), b = v[0], m = v[1], h = v[2], w = m - h - a * b;
925
- (b || w) && Ir(e, c) && (p += w, g += b);
924
+ var v = _r(e, c), b = v[0], m = v[1], g = v[2], w = m - g - a * b;
925
+ (b || w) && Ir(e, c) && (p += w, h += b);
926
926
  var y = c.parentNode;
927
927
  c = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
928
928
  } while (
@@ -930,7 +930,7 @@ var Ze = Wn ? { passive: !1 } : !1, md = function(e) {
930
930
  !l && c !== document.body || // self content
931
931
  l && (t.contains(c) || t === c)
932
932
  );
933
- return (f && Math.abs(p) < 1 || !f && Math.abs(g) < 1) && (d = !0), d;
933
+ return (f && Math.abs(p) < 1 || !f && Math.abs(h) < 1) && (d = !0), d;
934
934
  }, Pt = function(e) {
935
935
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
936
936
  }, Yo = function(e) {
@@ -953,16 +953,16 @@ function Rd(e) {
953
953
  if (e.inert) {
954
954
  document.body.classList.add("block-interactivity-".concat(r));
955
955
  var m = Ul([e.lockRef.current], (e.shards || []).map(Xo), !0).filter(Boolean);
956
- return m.forEach(function(h) {
957
- return h.classList.add("allow-interactivity-".concat(r));
956
+ return m.forEach(function(g) {
957
+ return g.classList.add("allow-interactivity-".concat(r));
958
958
  }), function() {
959
- document.body.classList.remove("block-interactivity-".concat(r)), m.forEach(function(h) {
960
- return h.classList.remove("allow-interactivity-".concat(r));
959
+ document.body.classList.remove("block-interactivity-".concat(r)), m.forEach(function(g) {
960
+ return g.classList.remove("allow-interactivity-".concat(r));
961
961
  });
962
962
  };
963
963
  }
964
964
  }, [e.inert, e.lockRef.current, e.shards]);
965
- var c = s.useCallback(function(m, h) {
965
+ var c = s.useCallback(function(m, g) {
966
966
  if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
967
967
  return !i.current.allowPinchZoom;
968
968
  var w = Pt(m), y = n.current, x = "deltaX" in m ? m.deltaX : y[0] - w[0], C = "deltaY" in m ? m.deltaY : y[1] - w[1], E, T = m.target, N = Math.abs(x) > Math.abs(C) ? "h" : "v";
@@ -979,26 +979,26 @@ function Rd(e) {
979
979
  if (!o.current && "changedTouches" in m && (x || C) && (o.current = E), !E)
980
980
  return !0;
981
981
  var W = o.current || E;
982
- return yd(W, h, m, W === "h" ? x : C);
982
+ return yd(W, g, m, W === "h" ? x : C);
983
983
  }, []), l = s.useCallback(function(m) {
984
- var h = m;
984
+ var g = m;
985
985
  if (!(!Qe.length || Qe[Qe.length - 1] !== a)) {
986
- var w = "deltaY" in h ? Yo(h) : Pt(h), y = t.current.filter(function(E) {
987
- return E.name === h.type && (E.target === h.target || h.target === E.shadowParent) && xd(E.delta, w);
986
+ var w = "deltaY" in g ? Yo(g) : Pt(g), y = t.current.filter(function(E) {
987
+ return E.name === g.type && (E.target === g.target || g.target === E.shadowParent) && xd(E.delta, w);
988
988
  })[0];
989
989
  if (y && y.should) {
990
- h.cancelable && h.preventDefault();
990
+ g.cancelable && g.preventDefault();
991
991
  return;
992
992
  }
993
993
  if (!y) {
994
994
  var x = (i.current.shards || []).map(Xo).filter(Boolean).filter(function(E) {
995
- return E.contains(h.target);
996
- }), C = x.length > 0 ? c(h, x[0]) : !i.current.noIsolation;
997
- C && h.cancelable && h.preventDefault();
995
+ return E.contains(g.target);
996
+ }), C = x.length > 0 ? c(g, x[0]) : !i.current.noIsolation;
997
+ C && g.cancelable && g.preventDefault();
998
998
  }
999
999
  }
1000
- }, []), d = s.useCallback(function(m, h, w, y) {
1001
- var x = { name: m, delta: h, target: w, should: y, shadowParent: Ed(w) };
1000
+ }, []), d = s.useCallback(function(m, g, w, y) {
1001
+ var x = { name: m, delta: g, target: w, should: y, shadowParent: Ed(w) };
1002
1002
  t.current.push(x), setTimeout(function() {
1003
1003
  t.current = t.current.filter(function(C) {
1004
1004
  return C !== x;
@@ -1008,14 +1008,14 @@ function Rd(e) {
1008
1008
  n.current = Pt(m), o.current = void 0;
1009
1009
  }, []), p = s.useCallback(function(m) {
1010
1010
  d(m.type, Yo(m), m.target, c(m, e.lockRef.current));
1011
- }, []), g = s.useCallback(function(m) {
1011
+ }, []), h = s.useCallback(function(m) {
1012
1012
  d(m.type, Pt(m), m.target, c(m, e.lockRef.current));
1013
1013
  }, []);
1014
1014
  s.useEffect(function() {
1015
1015
  return Qe.push(a), e.setCallbacks({
1016
1016
  onScrollCapture: p,
1017
1017
  onWheelCapture: p,
1018
- onTouchMoveCapture: g
1018
+ onTouchMoveCapture: h
1019
1019
  }), document.addEventListener("wheel", l, Ze), document.addEventListener("touchmove", l, Ze), document.addEventListener("touchstart", f, Ze), function() {
1020
1020
  Qe = Qe.filter(function(m) {
1021
1021
  return m !== a;
@@ -1064,22 +1064,22 @@ var Td = function(e) {
1064
1064
  };
1065
1065
  r.forEach(d);
1066
1066
  var f = function(p) {
1067
- !p || l.has(p) || Array.prototype.forEach.call(p.children, function(g) {
1068
- if (c.has(g))
1069
- f(g);
1067
+ !p || l.has(p) || Array.prototype.forEach.call(p.children, function(h) {
1068
+ if (c.has(h))
1069
+ f(h);
1070
1070
  else
1071
1071
  try {
1072
- var v = g.getAttribute(o), b = v !== null && v !== "false", m = (Je.get(g) || 0) + 1, h = (a.get(g) || 0) + 1;
1073
- Je.set(g, m), a.set(g, h), i.push(g), m === 1 && b && Mt.set(g, !0), h === 1 && g.setAttribute(n, "true"), b || g.setAttribute(o, "true");
1072
+ var v = h.getAttribute(o), b = v !== null && v !== "false", m = (Je.get(h) || 0) + 1, g = (a.get(h) || 0) + 1;
1073
+ Je.set(h, m), a.set(h, g), i.push(h), m === 1 && b && Mt.set(h, !0), g === 1 && h.setAttribute(n, "true"), b || h.setAttribute(o, "true");
1074
1074
  } catch (w) {
1075
- console.error("aria-hidden: cannot operate on ", g, w);
1075
+ console.error("aria-hidden: cannot operate on ", h, w);
1076
1076
  }
1077
1077
  });
1078
1078
  };
1079
1079
  return f(t), c.clear(), _n++, function() {
1080
1080
  i.forEach(function(p) {
1081
- var g = Je.get(p) - 1, v = a.get(p) - 1;
1082
- Je.set(p, g), a.set(p, v), g || (Mt.has(p) || p.removeAttribute(o), Mt.delete(p)), v || p.removeAttribute(n);
1081
+ var h = Je.get(p) - 1, v = a.get(p) - 1;
1082
+ Je.set(p, h), a.set(p, v), h || (Mt.has(p) || p.removeAttribute(o), Mt.delete(p)), v || p.removeAttribute(n);
1083
1083
  }), _n--, _n || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), At = {});
1084
1084
  };
1085
1085
  }, ro = function(e, t, n) {
@@ -1436,13 +1436,13 @@ var tu = "AlertDialogAction", ma = s.forwardRef(
1436
1436
  }
1437
1437
  );
1438
1438
  ma.displayName = tu;
1439
- var ga = "AlertDialogCancel", ha = s.forwardRef(
1439
+ var ha = "AlertDialogCancel", ga = s.forwardRef(
1440
1440
  (e, t) => {
1441
- const { __scopeAlertDialog: n, ...o } = e, { cancelRef: r } = Jd(ga, n), a = ke(n), i = U(t, r);
1441
+ const { __scopeAlertDialog: n, ...o } = e, { cancelRef: r } = Jd(ha, n), a = ke(n), i = U(t, r);
1442
1442
  return /* @__PURE__ */ u(tn, { ...a, ...o, ref: i });
1443
1443
  }
1444
1444
  );
1445
- ha.displayName = ga;
1445
+ ga.displayName = ha;
1446
1446
  var nu = ({ contentRef: e }) => {
1447
1447
  const t = `\`${nt}\` requires a description for the component to be accessible for screen reader users.
1448
1448
 
@@ -1456,7 +1456,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
1456
1456
  e.current?.getAttribute("aria-describedby")
1457
1457
  ) || console.warn(t);
1458
1458
  }, [t, e]), null;
1459
- }, ou = aa, ru = sa, au = ia, su = ca, iu = la, cu = ma, lu = ha, du = ua, uu = pa;
1459
+ }, ou = aa, ru = sa, au = ia, su = ca, iu = la, cu = ma, lu = ga, du = ua, uu = pa;
1460
1460
  function va(e) {
1461
1461
  var t, n, o = "";
1462
1462
  if (typeof e == "string" || typeof e == "number") o += e;
@@ -1476,26 +1476,26 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1476
1476
  const { variants: r, defaultVariants: a } = t, i = Object.keys(r).map((d) => {
1477
1477
  const f = n?.[d], p = a?.[d];
1478
1478
  if (f === null) return null;
1479
- const g = qo(f) || qo(p);
1480
- return r[d][g];
1479
+ const h = qo(f) || qo(p);
1480
+ return r[d][h];
1481
1481
  }), c = n && Object.entries(n).reduce((d, f) => {
1482
- let [p, g] = f;
1483
- return g === void 0 || (d[p] = g), d;
1482
+ let [p, h] = f;
1483
+ return h === void 0 || (d[p] = h), d;
1484
1484
  }, {}), l = t == null || (o = t.compoundVariants) === null || o === void 0 ? void 0 : o.reduce((d, f) => {
1485
- let { class: p, className: g, ...v } = f;
1485
+ let { class: p, className: h, ...v } = f;
1486
1486
  return Object.entries(v).every((b) => {
1487
- let [m, h] = b;
1488
- return Array.isArray(h) ? h.includes({
1487
+ let [m, g] = b;
1488
+ return Array.isArray(g) ? g.includes({
1489
1489
  ...a,
1490
1490
  ...c
1491
1491
  }[m]) : {
1492
1492
  ...a,
1493
1493
  ...c
1494
- }[m] === h;
1494
+ }[m] === g;
1495
1495
  }) ? [
1496
1496
  ...d,
1497
1497
  p,
1498
- g
1498
+ h
1499
1499
  ] : d;
1500
1500
  }, []);
1501
1501
  return Zo(e, i, l, n?.class, n?.className);
@@ -1513,7 +1513,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1513
1513
  nextPart: e,
1514
1514
  validators: t,
1515
1515
  classGroupId: n
1516
- }), zt = "-", Qo = [], mu = "arbitrary..", gu = (e) => {
1516
+ }), zt = "-", Qo = [], mu = "arbitrary..", hu = (e) => {
1517
1517
  const t = vu(e), {
1518
1518
  conflictingClassGroups: n,
1519
1519
  conflictingClassGroupModifiers: o
@@ -1521,7 +1521,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1521
1521
  return {
1522
1522
  getClassGroupId: (i) => {
1523
1523
  if (i.startsWith("[") && i.endsWith("]"))
1524
- return hu(i);
1524
+ return gu(i);
1525
1525
  const c = i.split(zt), l = c[0] === "" && c.length > 1 ? 1 : 0;
1526
1526
  return ya(c, l, t);
1527
1527
  },
@@ -1550,7 +1550,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1550
1550
  if (f.validator(c))
1551
1551
  return f.classGroupId;
1552
1552
  }
1553
- }, hu = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1553
+ }, gu = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
1554
1554
  const t = e.slice(1, -1), n = t.indexOf(":"), o = t.slice(0, n);
1555
1555
  return o ? mu + o : void 0;
1556
1556
  })(), vu = (e) => {
@@ -1646,30 +1646,30 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1646
1646
  let i = 0, c = 0, l = 0, d;
1647
1647
  const f = r.length;
1648
1648
  for (let m = 0; m < f; m++) {
1649
- const h = r[m];
1649
+ const g = r[m];
1650
1650
  if (i === 0 && c === 0) {
1651
- if (h === Jo) {
1651
+ if (g === Jo) {
1652
1652
  a.push(r.slice(l, m)), l = m + 1;
1653
1653
  continue;
1654
1654
  }
1655
- if (h === "/") {
1655
+ if (g === "/") {
1656
1656
  d = m;
1657
1657
  continue;
1658
1658
  }
1659
1659
  }
1660
- h === "[" ? i++ : h === "]" ? i-- : h === "(" ? c++ : h === ")" && c--;
1660
+ g === "[" ? i++ : g === "]" ? i-- : g === "(" ? c++ : g === ")" && c--;
1661
1661
  }
1662
1662
  const p = a.length === 0 ? r : r.slice(l);
1663
- let g = p, v = !1;
1664
- p.endsWith(zn) ? (g = p.slice(0, -1), v = !0) : (
1663
+ let h = p, v = !1;
1664
+ p.endsWith(zn) ? (h = p.slice(0, -1), v = !0) : (
1665
1665
  /**
1666
1666
  * In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
1667
1667
  * @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
1668
1668
  */
1669
- p.startsWith(zn) && (g = p.slice(1), v = !0)
1669
+ p.startsWith(zn) && (h = p.slice(1), v = !0)
1670
1670
  );
1671
1671
  const b = d && d > l ? d - l : void 0;
1672
- return er(a, v, g, b);
1672
+ return er(a, v, h, b);
1673
1673
  };
1674
1674
  if (t) {
1675
1675
  const r = t + Jo, a = o;
@@ -1700,7 +1700,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1700
1700
  cache: Ru(e.cacheSize),
1701
1701
  parseClassName: Nu(e),
1702
1702
  sortModifiers: Tu(e),
1703
- ...gu(e)
1703
+ ...hu(e)
1704
1704
  }), Mu = /\s+/, Au = (e, t) => {
1705
1705
  const {
1706
1706
  parseClassName: n,
@@ -1712,7 +1712,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1712
1712
  for (let d = c.length - 1; d >= 0; d -= 1) {
1713
1713
  const f = c[d], {
1714
1714
  isExternal: p,
1715
- modifiers: g,
1715
+ modifiers: h,
1716
1716
  hasImportantModifier: v,
1717
1717
  baseClassName: b,
1718
1718
  maybePostfixModifierPosition: m
@@ -1721,9 +1721,9 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1721
1721
  l = f + (l.length > 0 ? " " + l : l);
1722
1722
  continue;
1723
1723
  }
1724
- let h = !!m, w = o(h ? b.substring(0, m) : b);
1724
+ let g = !!m, w = o(g ? b.substring(0, m) : b);
1725
1725
  if (!w) {
1726
- if (!h) {
1726
+ if (!g) {
1727
1727
  l = f + (l.length > 0 ? " " + l : l);
1728
1728
  continue;
1729
1729
  }
@@ -1731,13 +1731,13 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1731
1731
  l = f + (l.length > 0 ? " " + l : l);
1732
1732
  continue;
1733
1733
  }
1734
- h = !1;
1734
+ g = !1;
1735
1735
  }
1736
- const y = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), x = v ? y + zn : y, C = x + w;
1736
+ const y = h.length === 0 ? "" : h.length === 1 ? h[0] : a(h).join(":"), x = v ? y + zn : y, C = x + w;
1737
1737
  if (i.indexOf(C) > -1)
1738
1738
  continue;
1739
1739
  i.push(C);
1740
- const E = r(w, h);
1740
+ const E = r(w, g);
1741
1741
  for (let T = 0; T < E.length; ++T) {
1742
1742
  const N = E[T];
1743
1743
  i.push(x + N);
@@ -1785,7 +1785,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1785
1785
  const o = Ra.exec(e);
1786
1786
  return o ? o[1] ? t(o[1]) : n : !1;
1787
1787
  }, Na = (e) => e === "position" || e === "percentage", Ta = (e) => e === "image" || e === "url", Pa = (e) => e === "length" || e === "size" || e === "bg-size", Ma = (e) => e === "length", Xu = (e) => e === "number", qu = (e) => e === "family-name", Aa = (e) => e === "shadow", rr = () => {
1788
- const e = re("color"), t = re("font"), n = re("text"), o = re("font-weight"), r = re("tracking"), a = re("leading"), i = re("breakpoint"), c = re("container"), l = re("spacing"), d = re("radius"), f = re("shadow"), p = re("inset-shadow"), g = re("text-shadow"), v = re("drop-shadow"), b = re("blur"), m = re("perspective"), h = re("aspect"), w = re("ease"), y = re("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
1788
+ const e = re("color"), t = re("font"), n = re("text"), o = re("font-weight"), r = re("tracking"), a = re("leading"), i = re("breakpoint"), c = re("container"), l = re("spacing"), d = re("radius"), f = re("shadow"), p = re("inset-shadow"), h = re("text-shadow"), v = re("drop-shadow"), b = re("blur"), m = re("perspective"), g = re("aspect"), w = re("ease"), y = re("animate"), x = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
1789
1789
  "center",
1790
1790
  "top",
1791
1791
  "bottom",
@@ -1859,7 +1859,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
1859
1859
  * @see https://tailwindcss.com/docs/aspect-ratio
1860
1860
  */
1861
1861
  aspect: [{
1862
- aspect: ["auto", "square", et, k, D, h]
1862
+ aspect: ["auto", "square", et, k, D, g]
1863
1863
  }],
1864
1864
  /**
1865
1865
  * Container
@@ -3259,7 +3259,7 @@ const qo = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Zo = ba, e
3259
3259
  * @see https://tailwindcss.com/docs/text-shadow
3260
3260
  */
3261
3261
  "text-shadow": [{
3262
- "text-shadow": ["none", g, _t, It]
3262
+ "text-shadow": ["none", h, _t, It]
3263
3263
  }],
3264
3264
  /**
3265
3265
  * Text Shadow Color
@@ -4355,17 +4355,17 @@ function sf(e) {
4355
4355
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
4356
4356
  }
4357
4357
  const lo = ee(
4358
- "inline-flex items-center justify-center whitespace-nowrap font-sans text-body font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
4358
+ "text-body focus-visible:ring-sunflower inline-flex items-center justify-center whitespace-nowrap font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
4359
4359
  {
4360
4360
  variants: {
4361
4361
  variant: {
4362
4362
  primary: "bg-sunflower text-primary hover:bg-sunflower-hover active:bg-sunflower-hover",
4363
- secondary: "border border-border bg-card text-primary hover:bg-alt active:bg-contrast",
4363
+ secondary: "border-border bg-card text-primary hover:bg-alt active:bg-contrast border",
4364
4364
  ghost: "text-primary hover:bg-alt active:bg-contrast"
4365
4365
  },
4366
4366
  size: {
4367
- sm: "rounded-pill px-4 py-1.5 text-small",
4368
- default: "rounded-pill px-6 py-2 text-small",
4367
+ sm: "rounded-pill text-small px-4 py-1.5",
4368
+ default: "rounded-pill text-small px-6 py-2",
4369
4369
  lg: "rounded-pill px-btn-x py-btn-y text-body",
4370
4370
  icon: "h-10 w-10 rounded-full"
4371
4371
  }
@@ -4386,7 +4386,7 @@ const lo = ee(
4386
4386
  )
4387
4387
  );
4388
4388
  cf.displayName = "Button";
4389
- const dw = ou, uw = ru, lf = au, Da = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4389
+ const lw = ou, dw = ru, lf = au, Da = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4390
4390
  su,
4391
4391
  {
4392
4392
  ref: n,
@@ -4404,10 +4404,10 @@ Da.displayName = "AlertDialogOverlay";
4404
4404
  const df = ee(
4405
4405
  [
4406
4406
  "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
4407
- "grid w-full gap-4 bg-main p-6 shadow-lg",
4407
+ "bg-main grid w-full gap-4 p-6 shadow-lg",
4408
4408
  "max-h-[85vh] overflow-y-auto",
4409
- "rounded-lg border border-border",
4410
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
4409
+ "border-border rounded-lg border",
4410
+ "focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
4411
4411
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
4412
4412
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
4413
4413
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -4475,7 +4475,7 @@ const mf = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4475
4475
  }
4476
4476
  ));
4477
4477
  mf.displayName = "AlertDialogTitle";
4478
- const gf = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4478
+ const hf = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4479
4479
  uu,
4480
4480
  {
4481
4481
  ref: n,
@@ -4483,8 +4483,8 @@ const gf = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4483
4483
  ...t
4484
4484
  }
4485
4485
  ));
4486
- gf.displayName = "AlertDialogDescription";
4487
- const hf = s.forwardRef(({ className: e, variant: t = "primary", size: n = "default", ...o }, r) => /* @__PURE__ */ u(
4486
+ hf.displayName = "AlertDialogDescription";
4487
+ const gf = s.forwardRef(({ className: e, variant: t = "primary", size: n = "default", ...o }, r) => /* @__PURE__ */ u(
4488
4488
  cu,
4489
4489
  {
4490
4490
  ref: r,
@@ -4492,7 +4492,7 @@ const hf = s.forwardRef(({ className: e, variant: t = "primary", size: n = "defa
4492
4492
  ...o
4493
4493
  }
4494
4494
  ));
4495
- hf.displayName = "AlertDialogAction";
4495
+ gf.displayName = "AlertDialogAction";
4496
4496
  const vf = s.forwardRef(({ className: e, variant: t = "secondary", size: n = "default", ...o }, r) => /* @__PURE__ */ u(
4497
4497
  lu,
4498
4498
  {
@@ -4503,7 +4503,7 @@ const vf = s.forwardRef(({ className: e, variant: t = "secondary", size: n = "de
4503
4503
  ));
4504
4504
  vf.displayName = "AlertDialogCancel";
4505
4505
  const bf = ee(
4506
- "inline-flex items-center justify-center whitespace-nowrap font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
4506
+ "focus-visible:ring-sunflower inline-flex items-center justify-center whitespace-nowrap font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
4507
4507
  {
4508
4508
  variants: {
4509
4509
  variant: {
@@ -4516,14 +4516,14 @@ const bf = ee(
4516
4516
  "electric-blue": "bg-electric-blue text-white",
4517
4517
  "deep-blue": "bg-deep-blue text-white",
4518
4518
  error: "bg-error text-white",
4519
- secondary: "border border-border bg-alt text-secondary"
4519
+ secondary: "border-border bg-alt text-secondary border"
4520
4520
  },
4521
4521
  size: {
4522
4522
  xs: "rounded-pill px-1.5 py-0.5 text-xs",
4523
4523
  sm: "rounded-pill px-2 py-0.5 text-xs",
4524
4524
  md: "rounded-pill px-2.5 py-1 text-sm",
4525
- lg: "rounded-pill px-3.5 py-1 text-body",
4526
- xl: "rounded-pill px-4 py-1.5 text-body"
4525
+ lg: "rounded-pill text-body px-3.5 py-1",
4526
+ xl: "rounded-pill text-body px-4 py-1.5"
4527
4527
  }
4528
4528
  },
4529
4529
  defaultVariants: {
@@ -4543,7 +4543,7 @@ const bf = ee(
4543
4543
  );
4544
4544
  wf.displayName = "Badge";
4545
4545
  const yf = ee(
4546
- "rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
4546
+ "focus-visible:ring-sunflower rounded transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
4547
4547
  {
4548
4548
  variants: {
4549
4549
  variant: {
@@ -4637,16 +4637,16 @@ function Rf(e) {
4637
4637
  value: f = "on",
4638
4638
  // @ts-expect-error
4639
4639
  internal_do_not_use_render: p
4640
- } = e, [g, v] = be({
4640
+ } = e, [h, v] = be({
4641
4641
  prop: n,
4642
4642
  defaultProp: r ?? !1,
4643
4643
  onChange: l,
4644
4644
  caller: rn
4645
- }), [b, m] = s.useState(null), [h, w] = s.useState(null), y = s.useRef(!1), x = b ? !!i || !!b.closest("form") : (
4645
+ }), [b, m] = s.useState(null), [g, w] = s.useState(null), y = s.useRef(!1), x = b ? !!i || !!b.closest("form") : (
4646
4646
  // We set this to true by default so that events bubble to forms without JS (SSR)
4647
4647
  !0
4648
4648
  ), C = {
4649
- checked: g,
4649
+ checked: h,
4650
4650
  disabled: a,
4651
4651
  setChecked: v,
4652
4652
  control: b,
@@ -4658,7 +4658,7 @@ function Rf(e) {
4658
4658
  required: d,
4659
4659
  defaultChecked: Le(r) ? !1 : r,
4660
4660
  isFormControl: x,
4661
- bubbleInput: h,
4661
+ bubbleInput: g,
4662
4662
  setBubbleInput: w
4663
4663
  };
4664
4664
  return /* @__PURE__ */ u(
@@ -4680,14 +4680,14 @@ var Oa = "CheckboxTrigger", La = s.forwardRef(
4680
4680
  required: d,
4681
4681
  setControl: f,
4682
4682
  setChecked: p,
4683
- hasConsumerStoppedPropagationRef: g,
4683
+ hasConsumerStoppedPropagationRef: h,
4684
4684
  isFormControl: v,
4685
4685
  bubbleInput: b
4686
- } = uo(Oa, e), m = U(r, f), h = s.useRef(l);
4686
+ } = uo(Oa, e), m = U(r, f), g = s.useRef(l);
4687
4687
  return s.useEffect(() => {
4688
4688
  const w = a?.form;
4689
4689
  if (w) {
4690
- const y = () => p(h.current);
4690
+ const y = () => p(g.current);
4691
4691
  return w.addEventListener("reset", y), () => w.removeEventListener("reset", y);
4692
4692
  }
4693
4693
  }, [a, p]), /* @__PURE__ */ u(
@@ -4707,7 +4707,7 @@ var Oa = "CheckboxTrigger", La = s.forwardRef(
4707
4707
  w.key === "Enter" && w.preventDefault();
4708
4708
  }),
4709
4709
  onClick: A(n, (w) => {
4710
- p((y) => Le(y) ? !0 : !y), b && v && (g.current = w.isPropagationStopped(), g.current || w.stopPropagation());
4710
+ p((y) => Le(y) ? !0 : !y), b && v && (h.current = w.isPropagationStopped(), h.current || w.stopPropagation());
4711
4711
  })
4712
4712
  }
4713
4713
  );
@@ -4740,7 +4740,7 @@ var $a = s.forwardRef(
4740
4740
  name: o,
4741
4741
  form: f,
4742
4742
  value: l,
4743
- internal_do_not_use_render: ({ isFormControl: g }) => /* @__PURE__ */ K(Ne, { children: [
4743
+ internal_do_not_use_render: ({ isFormControl: h }) => /* @__PURE__ */ K(Ne, { children: [
4744
4744
  /* @__PURE__ */ u(
4745
4745
  La,
4746
4746
  {
@@ -4749,7 +4749,7 @@ var $a = s.forwardRef(
4749
4749
  __scopeCheckbox: n
4750
4750
  }
4751
4751
  ),
4752
- g && /* @__PURE__ */ u(
4752
+ h && /* @__PURE__ */ u(
4753
4753
  Wa,
4754
4754
  {
4755
4755
  __scopeCheckbox: n
@@ -4795,11 +4795,11 @@ var Ba = "CheckboxBubbleInput", Wa = s.forwardRef(
4795
4795
  name: d,
4796
4796
  value: f,
4797
4797
  form: p,
4798
- bubbleInput: g,
4798
+ bubbleInput: h,
4799
4799
  setBubbleInput: v
4800
- } = uo(Ba, e), b = U(n, v), m = nn(a), h = on(o);
4800
+ } = uo(Ba, e), b = U(n, v), m = nn(a), g = on(o);
4801
4801
  s.useEffect(() => {
4802
- const y = g;
4802
+ const y = h;
4803
4803
  if (!y) return;
4804
4804
  const x = window.HTMLInputElement.prototype, E = Object.getOwnPropertyDescriptor(
4805
4805
  x,
@@ -4809,7 +4809,7 @@ var Ba = "CheckboxBubbleInput", Wa = s.forwardRef(
4809
4809
  const N = new Event("click", { bubbles: T });
4810
4810
  y.indeterminate = Le(a), E.call(y, Le(a) ? !1 : a), y.dispatchEvent(N);
4811
4811
  }
4812
- }, [g, m, a, r]);
4812
+ }, [h, m, a, r]);
4813
4813
  const w = s.useRef(Le(a) ? !1 : a);
4814
4814
  return /* @__PURE__ */ u(
4815
4815
  $.input,
@@ -4827,7 +4827,7 @@ var Ba = "CheckboxBubbleInput", Wa = s.forwardRef(
4827
4827
  ref: b,
4828
4828
  style: {
4829
4829
  ...t.style,
4830
- ...h,
4830
+ ...g,
4831
4831
  position: "absolute",
4832
4832
  pointerEvents: "none",
4833
4833
  opacity: 0,
@@ -4856,8 +4856,8 @@ const Nf = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
4856
4856
  {
4857
4857
  ref: n,
4858
4858
  className: P(
4859
- "peer h-5 w-5 shrink-0 rounded border border-border bg-card transition-colors",
4860
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
4859
+ "border-border bg-card peer h-5 w-5 shrink-0 rounded border transition-colors",
4860
+ "focus-visible:ring-sunflower focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
4861
4861
  "disabled:cursor-not-allowed disabled:opacity-50",
4862
4862
  "data-[state=checked]:border-sunflower data-[state=checked]:bg-sunflower data-[state=checked]:text-primary",
4863
4863
  e
@@ -4934,36 +4934,36 @@ function an(e) {
4934
4934
  t,
4935
4935
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
4936
4936
  ), i = (m) => {
4937
- const { scope: h, children: w } = m, y = Ge.useRef(null), x = Ge.useRef(/* @__PURE__ */ new Map()).current;
4938
- return /* @__PURE__ */ u(r, { scope: h, itemMap: x, collectionRef: y, children: w });
4937
+ const { scope: g, children: w } = m, y = Ge.useRef(null), x = Ge.useRef(/* @__PURE__ */ new Map()).current;
4938
+ return /* @__PURE__ */ u(r, { scope: g, itemMap: x, collectionRef: y, children: w });
4939
4939
  };
4940
4940
  i.displayName = t;
4941
4941
  const c = e + "CollectionSlot", l = /* @__PURE__ */ ar(c), d = Ge.forwardRef(
4942
- (m, h) => {
4943
- const { scope: w, children: y } = m, x = a(c, w), C = U(h, x.collectionRef);
4942
+ (m, g) => {
4943
+ const { scope: w, children: y } = m, x = a(c, w), C = U(g, x.collectionRef);
4944
4944
  return /* @__PURE__ */ u(l, { ref: C, children: y });
4945
4945
  }
4946
4946
  );
4947
4947
  d.displayName = c;
4948
- const f = e + "CollectionItemSlot", p = "data-radix-collection-item", g = /* @__PURE__ */ ar(f), v = Ge.forwardRef(
4949
- (m, h) => {
4950
- const { scope: w, children: y, ...x } = m, C = Ge.useRef(null), E = U(h, C), T = a(f, w);
4948
+ const f = e + "CollectionItemSlot", p = "data-radix-collection-item", h = /* @__PURE__ */ ar(f), v = Ge.forwardRef(
4949
+ (m, g) => {
4950
+ const { scope: w, children: y, ...x } = m, C = Ge.useRef(null), E = U(g, C), T = a(f, w);
4951
4951
  return Ge.useEffect(() => (T.itemMap.set(C, { ref: C, ...x }), () => {
4952
4952
  T.itemMap.delete(C);
4953
- })), /* @__PURE__ */ u(g, { [p]: "", ref: E, children: y });
4953
+ })), /* @__PURE__ */ u(h, { [p]: "", ref: E, children: y });
4954
4954
  }
4955
4955
  );
4956
4956
  v.displayName = f;
4957
4957
  function b(m) {
4958
- const h = a(e + "CollectionConsumer", m);
4958
+ const g = a(e + "CollectionConsumer", m);
4959
4959
  return Ge.useCallback(() => {
4960
- const y = h.collectionRef.current;
4960
+ const y = g.collectionRef.current;
4961
4961
  if (!y) return [];
4962
4962
  const x = Array.from(y.querySelectorAll(`[${p}]`));
4963
- return Array.from(h.itemMap.values()).sort(
4963
+ return Array.from(g.itemMap.values()).sort(
4964
4964
  (T, N) => x.indexOf(T.ref.current) - x.indexOf(N.ref.current)
4965
4965
  );
4966
- }, [h.collectionRef, h.itemMap]);
4966
+ }, [g.collectionRef, g.itemMap]);
4967
4967
  }
4968
4968
  return [
4969
4969
  { Provider: i, Slot: d, ItemSlot: v },
@@ -5087,7 +5087,7 @@ function cr(e, t, n) {
5087
5087
  reference: o,
5088
5088
  floating: r
5089
5089
  } = e;
5090
- const a = Re(t), i = mo(t), c = po(i), l = Ie(t), d = a === "y", f = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, g = o[c] / 2 - r[c] / 2;
5090
+ const a = Re(t), i = mo(t), c = po(i), l = Ie(t), d = a === "y", f = o.x + o.width / 2 - r.width / 2, p = o.y + o.height / 2 - r.height / 2, h = o[c] / 2 - r[c] / 2;
5091
5091
  let v;
5092
5092
  switch (l) {
5093
5093
  case "top":
@@ -5122,10 +5122,10 @@ function cr(e, t, n) {
5122
5122
  }
5123
5123
  switch (it(t)) {
5124
5124
  case "start":
5125
- v[i] -= g * (n && d ? -1 : 1);
5125
+ v[i] -= h * (n && d ? -1 : 1);
5126
5126
  break;
5127
5127
  case "end":
5128
- v[i] += g * (n && d ? -1 : 1);
5128
+ v[i] += h * (n && d ? -1 : 1);
5129
5129
  break;
5130
5130
  }
5131
5131
  return v;
@@ -5144,10 +5144,10 @@ async function Hf(e, t) {
5144
5144
  boundary: d = "clippingAncestors",
5145
5145
  rootBoundary: f = "viewport",
5146
5146
  elementContext: p = "floating",
5147
- altBoundary: g = !1,
5147
+ altBoundary: h = !1,
5148
5148
  padding: v = 0
5149
- } = Ae(t, e), b = Ga(v), h = c[g ? p === "floating" ? "reference" : "floating" : p], w = Kt(await a.getClippingRect({
5150
- element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
5149
+ } = Ae(t, e), b = Ga(v), g = c[h ? p === "floating" ? "reference" : "floating" : p], w = Kt(await a.getClippingRect({
5150
+ element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
5151
5151
  boundary: d,
5152
5152
  rootBoundary: f,
5153
5153
  strategy: l
@@ -5189,13 +5189,13 @@ const Uf = async (e, t, n) => {
5189
5189
  }), {
5190
5190
  x: f,
5191
5191
  y: p
5192
- } = cr(d, o, l), g = o, v = {}, b = 0;
5193
- for (let h = 0; h < c.length; h++) {
5192
+ } = cr(d, o, l), h = o, v = {}, b = 0;
5193
+ for (let g = 0; g < c.length; g++) {
5194
5194
  var m;
5195
5195
  const {
5196
5196
  name: w,
5197
5197
  fn: y
5198
- } = c[h], {
5198
+ } = c[g], {
5199
5199
  x,
5200
5200
  y: C,
5201
5201
  data: E,
@@ -5204,7 +5204,7 @@ const Uf = async (e, t, n) => {
5204
5204
  x: f,
5205
5205
  y: p,
5206
5206
  initialPlacement: o,
5207
- placement: g,
5207
+ placement: h,
5208
5208
  strategy: r,
5209
5209
  middlewareData: v,
5210
5210
  rects: d,
@@ -5223,19 +5223,19 @@ const Uf = async (e, t, n) => {
5223
5223
  ...v[w],
5224
5224
  ...E
5225
5225
  }
5226
- }, T && b <= 50 && (b++, typeof T == "object" && (T.placement && (g = T.placement), T.rects && (d = T.rects === !0 ? await i.getElementRects({
5226
+ }, T && b <= 50 && (b++, typeof T == "object" && (T.placement && (h = T.placement), T.rects && (d = T.rects === !0 ? await i.getElementRects({
5227
5227
  reference: e,
5228
5228
  floating: t,
5229
5229
  strategy: r
5230
5230
  }) : T.rects), {
5231
5231
  x: f,
5232
5232
  y: p
5233
- } = cr(d, g, l)), h = -1);
5233
+ } = cr(d, h, l)), g = -1);
5234
5234
  }
5235
5235
  return {
5236
5236
  x: f,
5237
5237
  y: p,
5238
- placement: g,
5238
+ placement: h,
5239
5239
  strategy: r,
5240
5240
  middlewareData: v
5241
5241
  };
@@ -5257,15 +5257,15 @@ const Uf = async (e, t, n) => {
5257
5257
  } = Ae(e, t) || {};
5258
5258
  if (d == null)
5259
5259
  return {};
5260
- const p = Ga(f), g = {
5260
+ const p = Ga(f), h = {
5261
5261
  x: n,
5262
5262
  y: o
5263
- }, v = mo(r), b = po(v), m = await i.getDimensions(d), h = v === "y", w = h ? "top" : "left", y = h ? "bottom" : "right", x = h ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[v] - g[v] - a.floating[b], E = g[v] - a.reference[v], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
5263
+ }, v = mo(r), b = po(v), m = await i.getDimensions(d), g = v === "y", w = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[v] - h[v] - a.floating[b], E = h[v] - a.reference[v], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
5264
5264
  let N = T ? T[x] : 0;
5265
5265
  (!N || !await (i.isElement == null ? void 0 : i.isElement(T))) && (N = c.floating[x] || a.floating[b]);
5266
5266
  const R = C / 2 - E / 2, L = N / 2 - m[b] / 2 - 1, F = $e(p[w], L), V = $e(p[y], L), W = F, G = N - m[b] - V, I = N / 2 - m[b] / 2 + R, z = Gn(W, I, G), O = !l.arrow && it(r) != null && I !== z && a.reference[b] / 2 - (I < W ? F : V) - m[b] / 2 < 0, B = O ? I < W ? I - W : I - G : 0;
5267
5267
  return {
5268
- [v]: g[v] + B,
5268
+ [v]: h[v] + B,
5269
5269
  data: {
5270
5270
  [v]: z,
5271
5271
  centerOffset: I - z - B,
@@ -5292,17 +5292,17 @@ const Uf = async (e, t, n) => {
5292
5292
  } = t, {
5293
5293
  mainAxis: f = !0,
5294
5294
  crossAxis: p = !0,
5295
- fallbackPlacements: g,
5295
+ fallbackPlacements: h,
5296
5296
  fallbackStrategy: v = "bestFit",
5297
5297
  fallbackAxisSideDirection: b = "none",
5298
5298
  flipAlignment: m = !0,
5299
- ...h
5299
+ ...g
5300
5300
  } = Ae(e, t);
5301
5301
  if ((n = a.arrow) != null && n.alignmentOffset)
5302
5302
  return {};
5303
- const w = Ie(r), y = Re(c), x = Ie(c) === c, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), E = g || (x || !m ? [Ut(c)] : Ff(c)), T = b !== "none";
5304
- !g && T && E.push(...zf(c, m, b, C));
5305
- const N = [c, ...E], R = await l.detectOverflow(t, h), L = [];
5303
+ const w = Ie(r), y = Re(c), x = Ie(c) === c, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), E = h || (x || !m ? [Ut(c)] : Ff(c)), T = b !== "none";
5304
+ !h && T && E.push(...zf(c, m, b, C));
5305
+ const N = [c, ...E], R = await l.detectOverflow(t, g), L = [];
5306
5306
  let F = ((o = a.flip) == null ? void 0 : o.overflows) || [];
5307
5307
  if (f && L.push(R[w]), p) {
5308
5308
  const I = $f(r, i, C);
@@ -5419,7 +5419,7 @@ async function Xf(e, t) {
5419
5419
  elements: r
5420
5420
  } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Ie(n), c = it(n), l = Re(n) === "y", d = Ha.has(i) ? -1 : 1, f = a && l ? -1 : 1, p = Ae(t, e);
5421
5421
  let {
5422
- mainAxis: g,
5422
+ mainAxis: h,
5423
5423
  crossAxis: v,
5424
5424
  alignmentAxis: b
5425
5425
  } = typeof p == "number" ? {
@@ -5433,9 +5433,9 @@ async function Xf(e, t) {
5433
5433
  };
5434
5434
  return c && typeof b == "number" && (v = c === "end" ? b * -1 : b), l ? {
5435
5435
  x: v * f,
5436
- y: g * d
5436
+ y: h * d
5437
5437
  } : {
5438
- x: g * d,
5438
+ x: h * d,
5439
5439
  y: v * f
5440
5440
  };
5441
5441
  }
@@ -5490,29 +5490,29 @@ const qf = function(e) {
5490
5490
  } = Ae(e, t), f = {
5491
5491
  x: n,
5492
5492
  y: o
5493
- }, p = await a.detectOverflow(t, d), g = Re(Ie(r)), v = fo(g);
5494
- let b = f[v], m = f[g];
5493
+ }, p = await a.detectOverflow(t, d), h = Re(Ie(r)), v = fo(h);
5494
+ let b = f[v], m = f[h];
5495
5495
  if (i) {
5496
5496
  const w = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", x = b + p[w], C = b - p[y];
5497
5497
  b = Gn(x, b, C);
5498
5498
  }
5499
5499
  if (c) {
5500
- const w = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", x = m + p[w], C = m - p[y];
5500
+ const w = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", x = m + p[w], C = m - p[y];
5501
5501
  m = Gn(x, m, C);
5502
5502
  }
5503
- const h = l.fn({
5503
+ const g = l.fn({
5504
5504
  ...t,
5505
5505
  [v]: b,
5506
- [g]: m
5506
+ [h]: m
5507
5507
  });
5508
5508
  return {
5509
- ...h,
5509
+ ...g,
5510
5510
  data: {
5511
- x: h.x - n,
5512
- y: h.y - o,
5511
+ x: g.x - n,
5512
+ y: g.y - o,
5513
5513
  enabled: {
5514
5514
  [v]: i,
5515
- [g]: c
5515
+ [h]: c
5516
5516
  }
5517
5517
  }
5518
5518
  };
@@ -5535,9 +5535,9 @@ const qf = function(e) {
5535
5535
  } = Ae(e, t), f = {
5536
5536
  x: n,
5537
5537
  y: o
5538
- }, p = Re(r), g = fo(p);
5539
- let v = f[g], b = f[p];
5540
- const m = Ae(c, t), h = typeof m == "number" ? {
5538
+ }, p = Re(r), h = fo(p);
5539
+ let v = f[h], b = f[p];
5540
+ const m = Ae(c, t), g = typeof m == "number" ? {
5541
5541
  mainAxis: m,
5542
5542
  crossAxis: 0
5543
5543
  } : {
@@ -5546,16 +5546,16 @@ const qf = function(e) {
5546
5546
  ...m
5547
5547
  };
5548
5548
  if (l) {
5549
- const x = g === "y" ? "height" : "width", C = a.reference[g] - a.floating[x] + h.mainAxis, E = a.reference[g] + a.reference[x] - h.mainAxis;
5549
+ const x = h === "y" ? "height" : "width", C = a.reference[h] - a.floating[x] + g.mainAxis, E = a.reference[h] + a.reference[x] - g.mainAxis;
5550
5550
  v < C ? v = C : v > E && (v = E);
5551
5551
  }
5552
5552
  if (d) {
5553
5553
  var w, y;
5554
- const x = g === "y" ? "width" : "height", C = Ha.has(Ie(r)), E = a.reference[p] - a.floating[x] + (C && ((w = i.offset) == null ? void 0 : w[p]) || 0) + (C ? 0 : h.crossAxis), T = a.reference[p] + a.reference[x] + (C ? 0 : ((y = i.offset) == null ? void 0 : y[p]) || 0) - (C ? h.crossAxis : 0);
5554
+ const x = h === "y" ? "width" : "height", C = Ha.has(Ie(r)), E = a.reference[p] - a.floating[x] + (C && ((w = i.offset) == null ? void 0 : w[p]) || 0) + (C ? 0 : g.crossAxis), T = a.reference[p] + a.reference[x] + (C ? 0 : ((y = i.offset) == null ? void 0 : y[p]) || 0) - (C ? g.crossAxis : 0);
5555
5555
  b < E ? b = E : b > T && (b = T);
5556
5556
  }
5557
5557
  return {
5558
- [g]: v,
5558
+ [h]: v,
5559
5559
  [p]: b
5560
5560
  };
5561
5561
  }
@@ -5575,15 +5575,15 @@ const qf = function(e) {
5575
5575
  apply: l = () => {
5576
5576
  },
5577
5577
  ...d
5578
- } = Ae(e, t), f = await i.detectOverflow(t, d), p = Ie(r), g = it(r), v = Re(r) === "y", {
5578
+ } = Ae(e, t), f = await i.detectOverflow(t, d), p = Ie(r), h = it(r), v = Re(r) === "y", {
5579
5579
  width: b,
5580
5580
  height: m
5581
5581
  } = a.floating;
5582
- let h, w;
5583
- p === "top" || p === "bottom" ? (h = p, w = g === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = p, h = g === "end" ? "top" : "bottom");
5584
- const y = m - f.top - f.bottom, x = b - f.left - f.right, C = $e(m - f[h], y), E = $e(b - f[w], x), T = !t.middlewareData.shift;
5582
+ let g, w;
5583
+ p === "top" || p === "bottom" ? (g = p, w = h === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = p, g = h === "end" ? "top" : "bottom");
5584
+ const y = m - f.top - f.bottom, x = b - f.left - f.right, C = $e(m - f[g], y), E = $e(b - f[w], x), T = !t.middlewareData.shift;
5585
5585
  let N = C, R = E;
5586
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (o = t.middlewareData.shift) != null && o.enabled.y && (N = y), T && !g) {
5586
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = x), (o = t.middlewareData.shift) != null && o.enabled.y && (N = y), T && !h) {
5587
5587
  const F = fe(f.left, 0), V = fe(f.right, 0), W = fe(f.top, 0), G = fe(f.bottom, 0);
5588
5588
  v ? R = b - 2 * (F !== 0 || V !== 0 ? F + V : fe(f.left, f.right)) : N = m - 2 * (W !== 0 || G !== 0 ? W + G : fe(f.top, f.bottom));
5589
5589
  }
@@ -5652,14 +5652,14 @@ function ln(e) {
5652
5652
  });
5653
5653
  }
5654
5654
  const rp = ["transform", "translate", "scale", "rotate", "perspective"], ap = ["transform", "translate", "scale", "rotate", "perspective", "filter"], sp = ["paint", "layout", "strict", "content"];
5655
- function go(e) {
5656
- const t = ho(), n = we(e) ? ye(e) : e;
5655
+ function ho(e) {
5656
+ const t = go(), n = we(e) ? ye(e) : e;
5657
5657
  return rp.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ap.some((o) => (n.willChange || "").includes(o)) || sp.some((o) => (n.contain || "").includes(o));
5658
5658
  }
5659
5659
  function ip(e) {
5660
5660
  let t = Fe(e);
5661
5661
  for (; Te(t) && !rt(t); ) {
5662
- if (go(t))
5662
+ if (ho(t))
5663
5663
  return t;
5664
5664
  if (ln(t))
5665
5665
  return null;
@@ -5667,7 +5667,7 @@ function ip(e) {
5667
5667
  }
5668
5668
  return null;
5669
5669
  }
5670
- function ho() {
5670
+ function go() {
5671
5671
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
5672
5672
  }
5673
5673
  const cp = /* @__PURE__ */ new Set(["html", "body", "#document"]);
@@ -5746,7 +5746,7 @@ function ot(e) {
5746
5746
  const lp = /* @__PURE__ */ Ee(0);
5747
5747
  function Ya(e) {
5748
5748
  const t = pe(e);
5749
- return !ho() || !t.visualViewport ? lp : {
5749
+ return !go() || !t.visualViewport ? lp : {
5750
5750
  x: t.visualViewport.offsetLeft,
5751
5751
  y: t.visualViewport.offsetTop
5752
5752
  };
@@ -5762,11 +5762,11 @@ function Ke(e, t, n, o) {
5762
5762
  const c = dp(a, n, o) ? Ya(a) : Ee(0);
5763
5763
  let l = (r.left + c.x) / i.x, d = (r.top + c.y) / i.y, f = r.width / i.x, p = r.height / i.y;
5764
5764
  if (a) {
5765
- const g = pe(a), v = o && we(o) ? pe(o) : o;
5766
- let b = g, m = Un(b);
5765
+ const h = pe(a), v = o && we(o) ? pe(o) : o;
5766
+ let b = h, m = Un(b);
5767
5767
  for (; m && o && v !== b; ) {
5768
- const h = ot(m), w = m.getBoundingClientRect(), y = ye(m), x = w.left + (m.clientLeft + parseFloat(y.paddingLeft)) * h.x, C = w.top + (m.clientTop + parseFloat(y.paddingTop)) * h.y;
5769
- l *= h.x, d *= h.y, f *= h.x, p *= h.y, l += x, d += C, b = pe(m), m = Un(b);
5768
+ const g = ot(m), w = m.getBoundingClientRect(), y = ye(m), x = w.left + (m.clientLeft + parseFloat(y.paddingLeft)) * g.x, C = w.top + (m.clientTop + parseFloat(y.paddingTop)) * g.y;
5769
+ l *= g.x, d *= g.y, f *= g.x, p *= g.y, l += x, d += C, b = pe(m), m = Un(b);
5770
5770
  }
5771
5771
  }
5772
5772
  return Kt({
@@ -5806,12 +5806,12 @@ function up(e) {
5806
5806
  const v = Ke(o);
5807
5807
  d = ot(o), f.x = v.x + o.clientLeft, f.y = v.y + o.clientTop;
5808
5808
  }
5809
- const g = i && !p && !a ? Xa(i, l) : Ee(0);
5809
+ const h = i && !p && !a ? Xa(i, l) : Ee(0);
5810
5810
  return {
5811
5811
  width: n.width * d.x,
5812
5812
  height: n.height * d.y,
5813
- x: n.x * d.x - l.scrollLeft * d.x + f.x + g.x,
5814
- y: n.y * d.y - l.scrollTop * d.y + f.y + g.y
5813
+ x: n.x * d.x - l.scrollLeft * d.x + f.x + h.x,
5814
+ y: n.y * d.y - l.scrollTop * d.y + f.y + h.y
5815
5815
  };
5816
5816
  }
5817
5817
  function fp(e) {
@@ -5834,12 +5834,12 @@ function mp(e, t) {
5834
5834
  let a = o.clientWidth, i = o.clientHeight, c = 0, l = 0;
5835
5835
  if (r) {
5836
5836
  a = r.width, i = r.height;
5837
- const f = ho();
5837
+ const f = go();
5838
5838
  (!f || f && t === "fixed") && (c = r.offsetLeft, l = r.offsetTop);
5839
5839
  }
5840
5840
  const d = un(o);
5841
5841
  if (d <= 0) {
5842
- const f = o.ownerDocument, p = f.body, g = getComputedStyle(p), v = f.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(o.clientWidth - p.clientWidth - v);
5842
+ const f = o.ownerDocument, p = f.body, h = getComputedStyle(p), v = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, b = Math.abs(o.clientWidth - p.clientWidth - v);
5843
5843
  b <= fr && (a -= b);
5844
5844
  } else d <= fr && (a += d);
5845
5845
  return {
@@ -5849,8 +5849,8 @@ function mp(e, t) {
5849
5849
  y: l
5850
5850
  };
5851
5851
  }
5852
- const gp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
5853
- function hp(e, t) {
5852
+ const hp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
5853
+ function gp(e, t) {
5854
5854
  const n = Ke(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, a = Te(e) ? ot(e) : Ee(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y, l = r * a.x, d = o * a.y;
5855
5855
  return {
5856
5856
  width: i,
@@ -5866,7 +5866,7 @@ function pr(e, t, n) {
5866
5866
  else if (t === "document")
5867
5867
  o = pp(Pe(e));
5868
5868
  else if (we(t))
5869
- o = hp(t, n);
5869
+ o = gp(t, n);
5870
5870
  else {
5871
5871
  const r = Ya(e);
5872
5872
  o = {
@@ -5890,8 +5890,8 @@ function vp(e, t) {
5890
5890
  const a = ye(e).position === "fixed";
5891
5891
  let i = a ? Fe(e) : e;
5892
5892
  for (; we(i) && !rt(i); ) {
5893
- const c = ye(i), l = go(i);
5894
- !l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r && gp.has(r.position) || yt(i) && !l && qa(e, i)) ? o = o.filter((f) => f !== i) : r = c, i = Fe(i);
5893
+ const c = ye(i), l = ho(i);
5894
+ !l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r && hp.has(r.position) || yt(i) && !l && qa(e, i)) ? o = o.filter((f) => f !== i) : r = c, i = Fe(i);
5895
5895
  }
5896
5896
  return t.set(e, o), o;
5897
5897
  }
@@ -5939,10 +5939,10 @@ function yp(e, t, n) {
5939
5939
  l.x = v.x + t.clientLeft, l.y = v.y + t.clientTop;
5940
5940
  } else r && d();
5941
5941
  a && !o && r && d();
5942
- const f = r && !o && !a ? Xa(r, c) : Ee(0), p = i.left + c.scrollLeft - l.x - f.x, g = i.top + c.scrollTop - l.y - f.y;
5942
+ const f = r && !o && !a ? Xa(r, c) : Ee(0), p = i.left + c.scrollLeft - l.x - f.x, h = i.top + c.scrollTop - l.y - f.y;
5943
5943
  return {
5944
5944
  x: p,
5945
- y: g,
5945
+ y: h,
5946
5946
  width: i.width,
5947
5947
  height: i.height
5948
5948
  };
@@ -5974,7 +5974,7 @@ function Za(e, t) {
5974
5974
  let o = mr(e, t);
5975
5975
  for (; o && np(o) && On(o); )
5976
5976
  o = mr(o, t);
5977
- return o && rt(o) && On(o) && !go(o) ? n : o || ip(e) || n;
5977
+ return o && rt(o) && On(o) && !ho(o) ? n : o || ip(e) || n;
5978
5978
  }
5979
5979
  const xp = async function(e) {
5980
5980
  const t = this.getOffsetParent || Za, n = this.getDimensions, o = await n(e.floating);
@@ -6018,13 +6018,13 @@ function Rp(e, t) {
6018
6018
  const d = e.getBoundingClientRect(), {
6019
6019
  left: f,
6020
6020
  top: p,
6021
- width: g,
6021
+ width: h,
6022
6022
  height: v
6023
6023
  } = d;
6024
- if (c || t(), !g || !v)
6024
+ if (c || t(), !h || !v)
6025
6025
  return;
6026
- const b = Ot(p), m = Ot(r.clientWidth - (f + g)), h = Ot(r.clientHeight - (p + v)), w = Ot(f), x = {
6027
- rootMargin: -b + "px " + -m + "px " + -h + "px " + -w + "px",
6026
+ const b = Ot(p), m = Ot(r.clientWidth - (f + h)), g = Ot(r.clientHeight - (p + v)), w = Ot(f), x = {
6027
+ rootMargin: -b + "px " + -m + "px " + -g + "px " + -w + "px",
6028
6028
  threshold: fe(0, $e(1, l)) || 1
6029
6029
  };
6030
6030
  let C = !0;
@@ -6067,19 +6067,19 @@ function Ep(e, t, n, o) {
6067
6067
  }), a && w.addEventListener("resize", n);
6068
6068
  });
6069
6069
  const p = d && c ? Rp(d, n) : null;
6070
- let g = -1, v = null;
6070
+ let h = -1, v = null;
6071
6071
  i && (v = new ResizeObserver((w) => {
6072
6072
  let [y] = w;
6073
- y && y.target === d && v && (v.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
6073
+ y && y.target === d && v && (v.unobserve(t), cancelAnimationFrame(h), h = requestAnimationFrame(() => {
6074
6074
  var x;
6075
6075
  (x = v) == null || x.observe(t);
6076
6076
  })), n();
6077
6077
  }), d && !l && v.observe(d), v.observe(t));
6078
6078
  let b, m = l ? Ke(e) : null;
6079
- l && h();
6080
- function h() {
6079
+ l && g();
6080
+ function g() {
6081
6081
  const w = Ke(e);
6082
- m && !Qa(m, w) && n(), m = w, b = requestAnimationFrame(h);
6082
+ m && !Qa(m, w) && n(), m = w, b = requestAnimationFrame(g);
6083
6083
  }
6084
6084
  return n(), () => {
6085
6085
  var w;
@@ -6088,7 +6088,7 @@ function Ep(e, t, n, o) {
6088
6088
  }), p?.(), (w = v) == null || w.disconnect(), v = null, l && cancelAnimationFrame(b);
6089
6089
  };
6090
6090
  }
6091
- const Np = qf, Tp = Zf, Pp = jf, Mp = Jf, Ap = Yf, gr = Kf, Ip = Qf, _p = (e, t, n) => {
6091
+ const Np = qf, Tp = Zf, Pp = jf, Mp = Jf, Ap = Yf, hr = Kf, Ip = Qf, _p = (e, t, n) => {
6092
6092
  const o = /* @__PURE__ */ new Map(), r = {
6093
6093
  platform: Sp,
6094
6094
  ...n
@@ -6136,7 +6136,7 @@ function jt(e, t) {
6136
6136
  function Ja(e) {
6137
6137
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
6138
6138
  }
6139
- function hr(e, t) {
6139
+ function gr(e, t) {
6140
6140
  const n = Ja(e);
6141
6141
  return Math.round(t * n) / n;
6142
6142
  }
@@ -6167,19 +6167,19 @@ function Op(e) {
6167
6167
  placement: t,
6168
6168
  middlewareData: {},
6169
6169
  isPositioned: !1
6170
- }), [g, v] = s.useState(o);
6171
- jt(g, o) || v(o);
6172
- const [b, m] = s.useState(null), [h, w] = s.useState(null), y = s.useCallback((S) => {
6170
+ }), [h, v] = s.useState(o);
6171
+ jt(h, o) || v(o);
6172
+ const [b, m] = s.useState(null), [g, w] = s.useState(null), y = s.useCallback((S) => {
6173
6173
  S !== T.current && (T.current = S, m(S));
6174
6174
  }, []), x = s.useCallback((S) => {
6175
6175
  S !== N.current && (N.current = S, w(S));
6176
- }, []), C = a || b, E = i || h, T = s.useRef(null), N = s.useRef(null), R = s.useRef(f), L = l != null, F = Ln(l), V = Ln(r), W = Ln(d), G = s.useCallback(() => {
6176
+ }, []), C = a || b, E = i || g, T = s.useRef(null), N = s.useRef(null), R = s.useRef(f), L = l != null, F = Ln(l), V = Ln(r), W = Ln(d), G = s.useCallback(() => {
6177
6177
  if (!T.current || !N.current)
6178
6178
  return;
6179
6179
  const S = {
6180
6180
  placement: t,
6181
6181
  strategy: n,
6182
- middleware: g
6182
+ middleware: h
6183
6183
  };
6184
6184
  V.current && (S.platform = V.current), _p(T.current, N.current, S).then((_) => {
6185
6185
  const Q = {
@@ -6194,7 +6194,7 @@ function Op(e) {
6194
6194
  p(Q);
6195
6195
  }));
6196
6196
  });
6197
- }, [g, t, n, V, W]);
6197
+ }, [h, t, n, V, W]);
6198
6198
  Bt(() => {
6199
6199
  d === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((S) => ({
6200
6200
  ...S,
@@ -6227,7 +6227,7 @@ function Op(e) {
6227
6227
  };
6228
6228
  if (!O.floating)
6229
6229
  return S;
6230
- const _ = hr(O.floating, f.x), Q = hr(O.floating, f.y);
6230
+ const _ = gr(O.floating, f.x), Q = gr(O.floating, f.y);
6231
6231
  return c ? {
6232
6232
  ...S,
6233
6233
  transform: "translate(" + _ + "px, " + Q + "px)",
@@ -6260,10 +6260,10 @@ const Lp = (e) => {
6260
6260
  element: o,
6261
6261
  padding: r
6262
6262
  } = typeof e == "function" ? e(n) : e;
6263
- return o && t(o) ? o.current != null ? gr({
6263
+ return o && t(o) ? o.current != null ? hr({
6264
6264
  element: o.current,
6265
6265
  padding: r
6266
- }).fn(n) : {} : o ? gr({
6266
+ }).fn(n) : {} : o ? hr({
6267
6267
  element: o,
6268
6268
  padding: r
6269
6269
  }).fn(n) : {};
@@ -6335,11 +6335,11 @@ var wo = "PopperContent", [jp, Yp] = ts(wo), ss = s.forwardRef(
6335
6335
  collisionBoundary: d = [],
6336
6336
  collisionPadding: f = 0,
6337
6337
  sticky: p = "partial",
6338
- hideWhenDetached: g = !1,
6338
+ hideWhenDetached: h = !1,
6339
6339
  updatePositionStrategy: v = "optimized",
6340
6340
  onPlaced: b,
6341
6341
  ...m
6342
- } = e, h = ns(wo, n), [w, y] = s.useState(null), x = U(t, (M) => y(M)), [C, E] = s.useState(null), T = on(C), N = T?.width ?? 0, R = T?.height ?? 0, L = o + (a !== "center" ? "-" + a : ""), F = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, V = Array.isArray(d) ? d : [d], W = V.length > 0, G = {
6342
+ } = e, g = ns(wo, n), [w, y] = s.useState(null), x = U(t, (M) => y(M)), [C, E] = s.useState(null), T = on(C), N = T?.width ?? 0, R = T?.height ?? 0, L = o + (a !== "center" ? "-" + a : ""), F = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, V = Array.isArray(d) ? d : [d], W = V.length > 0, G = {
6343
6343
  padding: F,
6344
6344
  boundary: V.filter(qp),
6345
6345
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -6352,7 +6352,7 @@ var wo = "PopperContent", [jp, Yp] = ts(wo), ss = s.forwardRef(
6352
6352
  animationFrame: v === "always"
6353
6353
  }),
6354
6354
  elements: {
6355
- reference: h.anchor
6355
+ reference: g.anchor
6356
6356
  },
6357
6357
  middleware: [
6358
6358
  $p({ mainAxis: r + R, alignmentAxis: i }),
@@ -6372,7 +6372,7 @@ var wo = "PopperContent", [jp, Yp] = ts(wo), ss = s.forwardRef(
6372
6372
  }),
6373
6373
  C && Gp({ element: C, padding: c }),
6374
6374
  Zp({ arrowWidth: N, arrowHeight: R }),
6375
- g && zp({ strategy: "referenceHidden", ...G })
6375
+ h && zp({ strategy: "referenceHidden", ...G })
6376
6376
  ]
6377
6377
  }), [_, Q] = ls(O), te = ie(b);
6378
6378
  ae(() => {
@@ -6494,9 +6494,9 @@ var Zp = (e) => ({
6494
6494
  name: "transformOrigin",
6495
6495
  options: e,
6496
6496
  fn(t) {
6497
- const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, c = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [d, f] = ls(n), p = { start: "0%", center: "50%", end: "100%" }[f], g = (r.arrow?.x ?? 0) + c / 2, v = (r.arrow?.y ?? 0) + l / 2;
6497
+ const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, c = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [d, f] = ls(n), p = { start: "0%", center: "50%", end: "100%" }[f], h = (r.arrow?.x ?? 0) + c / 2, v = (r.arrow?.y ?? 0) + l / 2;
6498
6498
  let b = "", m = "";
6499
- return d === "bottom" ? (b = i ? p : `${g}px`, m = `${-l}px`) : d === "top" ? (b = i ? p : `${g}px`, m = `${o.floating.height + l}px`) : d === "right" ? (b = `${-l}px`, m = i ? p : `${v}px`) : d === "left" && (b = `${o.floating.width + l}px`, m = i ? p : `${v}px`), { data: { x: b, y: m } };
6499
+ return d === "bottom" ? (b = i ? p : `${h}px`, m = `${-l}px`) : d === "top" ? (b = i ? p : `${h}px`, m = `${o.floating.height + l}px`) : d === "right" ? (b = `${-l}px`, m = i ? p : `${v}px`) : d === "left" && (b = `${o.floating.width + l}px`, m = i ? p : `${v}px`), { data: { x: b, y: m } };
6500
6500
  }
6501
6501
  });
6502
6502
  function ls(e) {
@@ -6522,14 +6522,14 @@ var om = s.forwardRef((e, t) => {
6522
6522
  onEntryFocus: d,
6523
6523
  preventScrollOnEntryFocus: f = !1,
6524
6524
  ...p
6525
- } = e, g = s.useRef(null), v = U(t, g), b = sn(a), [m, h] = be({
6525
+ } = e, h = s.useRef(null), v = U(t, h), b = sn(a), [m, g] = be({
6526
6526
  prop: i,
6527
6527
  defaultProp: c ?? null,
6528
6528
  onChange: l,
6529
6529
  caller: xt
6530
6530
  }), [w, y] = s.useState(!1), x = ie(d), C = ps(n), E = s.useRef(!1), [T, N] = s.useState(0);
6531
6531
  return s.useEffect(() => {
6532
- const R = g.current;
6532
+ const R = h.current;
6533
6533
  if (R)
6534
6534
  return R.addEventListener($n, x), () => R.removeEventListener($n, x);
6535
6535
  }, [x]), /* @__PURE__ */ u(
@@ -6541,8 +6541,8 @@ var om = s.forwardRef((e, t) => {
6541
6541
  loop: r,
6542
6542
  currentTabStopId: m,
6543
6543
  onItemFocus: s.useCallback(
6544
- (R) => h(R),
6545
- [h]
6544
+ (R) => g(R),
6545
+ [g]
6546
6546
  ),
6547
6547
  onItemShiftTab: s.useCallback(() => y(!0), []),
6548
6548
  onFocusableItemAdd: s.useCallback(
@@ -6582,7 +6582,7 @@ var om = s.forwardRef((e, t) => {
6582
6582
  )
6583
6583
  }
6584
6584
  );
6585
- }), gs = "RovingFocusGroupItem", hs = s.forwardRef(
6585
+ }), hs = "RovingFocusGroupItem", gs = s.forwardRef(
6586
6586
  (e, t) => {
6587
6587
  const {
6588
6588
  __scopeRovingFocusGroup: n,
@@ -6591,7 +6591,7 @@ var om = s.forwardRef((e, t) => {
6591
6591
  tabStopId: a,
6592
6592
  children: i,
6593
6593
  ...c
6594
- } = e, l = ve(), d = a || l, f = nm(gs, n), p = f.currentTabStopId === d, g = ps(n), { onFocusableItemAdd: v, onFocusableItemRemove: b, currentTabStopId: m } = f;
6594
+ } = e, l = ve(), d = a || l, f = nm(hs, n), p = f.currentTabStopId === d, h = ps(n), { onFocusableItemAdd: v, onFocusableItemRemove: b, currentTabStopId: m } = f;
6595
6595
  return s.useEffect(() => {
6596
6596
  if (o)
6597
6597
  return v(), () => b();
@@ -6609,25 +6609,25 @@ var om = s.forwardRef((e, t) => {
6609
6609
  "data-orientation": f.orientation,
6610
6610
  ...c,
6611
6611
  ref: t,
6612
- onMouseDown: A(e.onMouseDown, (h) => {
6613
- o ? f.onItemFocus(d) : h.preventDefault();
6612
+ onMouseDown: A(e.onMouseDown, (g) => {
6613
+ o ? f.onItemFocus(d) : g.preventDefault();
6614
6614
  }),
6615
6615
  onFocus: A(e.onFocus, () => f.onItemFocus(d)),
6616
- onKeyDown: A(e.onKeyDown, (h) => {
6617
- if (h.key === "Tab" && h.shiftKey) {
6616
+ onKeyDown: A(e.onKeyDown, (g) => {
6617
+ if (g.key === "Tab" && g.shiftKey) {
6618
6618
  f.onItemShiftTab();
6619
6619
  return;
6620
6620
  }
6621
- if (h.target !== h.currentTarget) return;
6622
- const w = sm(h, f.orientation, f.dir);
6621
+ if (g.target !== g.currentTarget) return;
6622
+ const w = sm(g, f.orientation, f.dir);
6623
6623
  if (w !== void 0) {
6624
- if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
6625
- h.preventDefault();
6626
- let x = g().filter((C) => C.focusable).map((C) => C.ref.current);
6624
+ if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
6625
+ g.preventDefault();
6626
+ let x = h().filter((C) => C.focusable).map((C) => C.ref.current);
6627
6627
  if (w === "last") x.reverse();
6628
6628
  else if (w === "prev" || w === "next") {
6629
6629
  w === "prev" && x.reverse();
6630
- const C = x.indexOf(h.currentTarget);
6630
+ const C = x.indexOf(g.currentTarget);
6631
6631
  x = f.loop ? im(x, C + 1) : x.slice(C + 1);
6632
6632
  }
6633
6633
  setTimeout(() => vs(x));
@@ -6640,7 +6640,7 @@ var om = s.forwardRef((e, t) => {
6640
6640
  );
6641
6641
  }
6642
6642
  );
6643
- hs.displayName = gs;
6643
+ gs.displayName = hs;
6644
6644
  var rm = {
6645
6645
  ArrowLeft: "prev",
6646
6646
  ArrowUp: "prev",
@@ -6667,7 +6667,7 @@ function vs(e, t = !1) {
6667
6667
  function im(e, t) {
6668
6668
  return e.map((n, o) => e[(t + o) % e.length]);
6669
6669
  }
6670
- var bs = ms, ws = hs;
6670
+ var bs = ms, ws = gs;
6671
6671
  // @__NO_SIDE_EFFECTS__
6672
6672
  function cm(e) {
6673
6673
  const t = /* @__PURE__ */ lm(e), n = s.forwardRef((o, r) => {
@@ -6711,18 +6711,18 @@ function pm(e) {
6711
6711
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
6712
6712
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
6713
6713
  }
6714
- var jn = ["Enter", " "], mm = ["ArrowDown", "PageUp", "Home"], ys = ["ArrowUp", "PageDown", "End"], gm = [...mm, ...ys], hm = {
6714
+ var jn = ["Enter", " "], mm = ["ArrowDown", "PageUp", "Home"], ys = ["ArrowUp", "PageDown", "End"], hm = [...mm, ...ys], gm = {
6715
6715
  ltr: [...jn, "ArrowRight"],
6716
6716
  rtl: [...jn, "ArrowLeft"]
6717
6717
  }, vm = {
6718
6718
  ltr: ["ArrowLeft"],
6719
6719
  rtl: ["ArrowRight"]
6720
- }, Ct = "Menu", [gt, bm, wm] = an(Ct), [qe, mn] = ue(Ct, [
6720
+ }, Ct = "Menu", [ht, bm, wm] = an(Ct), [qe, mn] = ue(Ct, [
6721
6721
  wm,
6722
6722
  fn,
6723
6723
  pn
6724
6724
  ]), St = fn(), xs = pn(), [Cs, Ve] = qe(Ct), [ym, Rt] = qe(Ct), Ss = (e) => {
6725
- const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: a, modal: i = !0 } = e, c = St(t), [l, d] = s.useState(null), f = s.useRef(!1), p = ie(a), g = sn(r);
6725
+ const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: a, modal: i = !0 } = e, c = St(t), [l, d] = s.useState(null), f = s.useRef(!1), p = ie(a), h = sn(r);
6726
6726
  return s.useEffect(() => {
6727
6727
  const v = () => {
6728
6728
  f.current = !0, document.addEventListener("pointerdown", b, { capture: !0, once: !0 }), document.addEventListener("pointermove", b, { capture: !0, once: !0 });
@@ -6744,7 +6744,7 @@ var jn = ["Enter", " "], mm = ["ArrowDown", "PageUp", "Home"], ys = ["ArrowUp",
6744
6744
  scope: t,
6745
6745
  onClose: s.useCallback(() => p(!1), [p]),
6746
6746
  isUsingKeyboardRef: f,
6747
- dir: g,
6747
+ dir: h,
6748
6748
  modal: i,
6749
6749
  children: o
6750
6750
  }
@@ -6767,14 +6767,14 @@ var Co = "MenuPortal", [Cm, Rs] = qe(Co, {
6767
6767
  return /* @__PURE__ */ u(Cm, { scope: t, forceMount: n, children: /* @__PURE__ */ u(xe, { present: n || a.open, children: /* @__PURE__ */ u(wt, { asChild: !0, container: r, children: o }) }) });
6768
6768
  };
6769
6769
  Es.displayName = Co;
6770
- var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6770
+ var he = "MenuContent", [Sm, So] = qe(he), Ns = s.forwardRef(
6771
6771
  (e, t) => {
6772
- const n = Rs(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = Ve(ge, e.__scopeMenu), i = Rt(ge, e.__scopeMenu);
6773
- return /* @__PURE__ */ u(gt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u(xe, { present: o || a.open, children: /* @__PURE__ */ u(gt.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u(Rm, { ...r, ref: t }) : /* @__PURE__ */ u(Em, { ...r, ref: t }) }) }) });
6772
+ const n = Rs(he, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = Ve(he, e.__scopeMenu), i = Rt(he, e.__scopeMenu);
6773
+ return /* @__PURE__ */ u(ht.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u(xe, { present: o || a.open, children: /* @__PURE__ */ u(ht.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u(Rm, { ...r, ref: t }) : /* @__PURE__ */ u(Em, { ...r, ref: t }) }) }) });
6774
6774
  }
6775
6775
  ), Rm = s.forwardRef(
6776
6776
  (e, t) => {
6777
- const n = Ve(ge, e.__scopeMenu), o = s.useRef(null), r = U(t, o);
6777
+ const n = Ve(he, e.__scopeMenu), o = s.useRef(null), r = U(t, o);
6778
6778
  return s.useEffect(() => {
6779
6779
  const a = o.current;
6780
6780
  if (a) return ro(a);
@@ -6796,7 +6796,7 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6796
6796
  );
6797
6797
  }
6798
6798
  ), Em = s.forwardRef((e, t) => {
6799
- const n = Ve(ge, e.__scopeMenu);
6799
+ const n = Ve(he, e.__scopeMenu);
6800
6800
  return /* @__PURE__ */ u(
6801
6801
  Ro,
6802
6802
  {
@@ -6821,11 +6821,11 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6821
6821
  onEscapeKeyDown: d,
6822
6822
  onPointerDownOutside: f,
6823
6823
  onFocusOutside: p,
6824
- onInteractOutside: g,
6824
+ onInteractOutside: h,
6825
6825
  onDismiss: v,
6826
6826
  disableOutsideScroll: b,
6827
6827
  ...m
6828
- } = e, h = Ve(ge, n), w = Rt(ge, n), y = St(n), x = xs(n), C = bm(n), [E, T] = s.useState(null), N = s.useRef(null), R = U(t, N, h.onContentChange), L = s.useRef(0), F = s.useRef(""), V = s.useRef(0), W = s.useRef(null), G = s.useRef("right"), I = s.useRef(0), z = b ? Jt : s.Fragment, O = b ? { as: Nm, allowPinchZoom: !0 } : void 0, B = (_) => {
6828
+ } = e, g = Ve(he, n), w = Rt(he, n), y = St(n), x = xs(n), C = bm(n), [E, T] = s.useState(null), N = s.useRef(null), R = U(t, N, g.onContentChange), L = s.useRef(0), F = s.useRef(""), V = s.useRef(0), W = s.useRef(null), G = s.useRef("right"), I = s.useRef(0), z = b ? Jt : s.Fragment, O = b ? { as: Nm, allowPinchZoom: !0 } : void 0, B = (_) => {
6829
6829
  const Q = F.current + _, te = C().filter((M) => !M.disabled), oe = document.activeElement, j = te.find((M) => M.ref.current === oe)?.textValue, X = te.map((M) => M.textValue), de = Fm(X, Q, j), se = te.find((M) => M.textValue === de)?.ref.current;
6830
6830
  (function M(q) {
6831
6831
  F.current = q, window.clearTimeout(L.current), q !== "" && (L.current = window.setTimeout(() => M(""), 1e3));
@@ -6877,7 +6877,7 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6877
6877
  onEscapeKeyDown: d,
6878
6878
  onPointerDownOutside: f,
6879
6879
  onFocusOutside: p,
6880
- onInteractOutside: g,
6880
+ onInteractOutside: h,
6881
6881
  onDismiss: v,
6882
6882
  children: /* @__PURE__ */ u(
6883
6883
  bs,
@@ -6898,7 +6898,7 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6898
6898
  {
6899
6899
  role: "menu",
6900
6900
  "aria-orientation": "vertical",
6901
- "data-state": Gs(h.open),
6901
+ "data-state": Gs(g.open),
6902
6902
  "data-radix-menu-content": "",
6903
6903
  dir: w.dir,
6904
6904
  ...y,
@@ -6909,7 +6909,7 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6909
6909
  const te = _.target.closest("[data-radix-menu-content]") === _.currentTarget, oe = _.ctrlKey || _.altKey || _.metaKey, j = _.key.length === 1;
6910
6910
  te && (_.key === "Tab" && _.preventDefault(), !oe && j && B(_.key));
6911
6911
  const X = N.current;
6912
- if (_.target !== X || !gm.includes(_.key)) return;
6912
+ if (_.target !== X || !hm.includes(_.key)) return;
6913
6913
  _.preventDefault();
6914
6914
  const se = C().filter((M) => !M.disabled).map((M) => M.ref.current);
6915
6915
  ys.includes(_.key) && se.reverse(), Lm(se);
@@ -6919,7 +6919,7 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6919
6919
  }),
6920
6920
  onPointerMove: A(
6921
6921
  e.onPointerMove,
6922
- ht((_) => {
6922
+ gt((_) => {
6923
6923
  const Q = _.target, te = I.current !== _.clientX;
6924
6924
  if (_.currentTarget.contains(Q) && te) {
6925
6925
  const oe = _.clientX > I.current ? "right" : "left";
@@ -6939,7 +6939,7 @@ var ge = "MenuContent", [Sm, So] = qe(ge), Ns = s.forwardRef(
6939
6939
  );
6940
6940
  }
6941
6941
  );
6942
- Ns.displayName = ge;
6942
+ Ns.displayName = he;
6943
6943
  var Tm = "MenuGroup", Eo = s.forwardRef(
6944
6944
  (e, t) => {
6945
6945
  const { __scopeMenu: n, ...o } = e;
@@ -6954,13 +6954,13 @@ var Pm = "MenuLabel", Ts = s.forwardRef(
6954
6954
  }
6955
6955
  );
6956
6956
  Ts.displayName = Pm;
6957
- var Yt = "MenuItem", vr = "menu.itemSelect", gn = s.forwardRef(
6957
+ var Yt = "MenuItem", vr = "menu.itemSelect", hn = s.forwardRef(
6958
6958
  (e, t) => {
6959
6959
  const { disabled: n = !1, onSelect: o, ...r } = e, a = s.useRef(null), i = Rt(Yt, e.__scopeMenu), c = So(Yt, e.__scopeMenu), l = U(t, a), d = s.useRef(!1), f = () => {
6960
6960
  const p = a.current;
6961
6961
  if (!n && p) {
6962
- const g = new CustomEvent(vr, { bubbles: !0, cancelable: !0 });
6963
- p.addEventListener(vr, (v) => o?.(v), { once: !0 }), no(p, g), g.defaultPrevented ? d.current = !1 : i.onClose();
6962
+ const h = new CustomEvent(vr, { bubbles: !0, cancelable: !0 });
6963
+ p.addEventListener(vr, (v) => o?.(v), { once: !0 }), no(p, h), h.defaultPrevented ? d.current = !1 : i.onClose();
6964
6964
  }
6965
6965
  };
6966
6966
  return /* @__PURE__ */ u(
@@ -6977,26 +6977,26 @@ var Yt = "MenuItem", vr = "menu.itemSelect", gn = s.forwardRef(
6977
6977
  d.current || p.currentTarget?.click();
6978
6978
  }),
6979
6979
  onKeyDown: A(e.onKeyDown, (p) => {
6980
- const g = c.searchRef.current !== "";
6981
- n || g && p.key === " " || jn.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
6980
+ const h = c.searchRef.current !== "";
6981
+ n || h && p.key === " " || jn.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
6982
6982
  })
6983
6983
  }
6984
6984
  );
6985
6985
  }
6986
6986
  );
6987
- gn.displayName = Yt;
6987
+ hn.displayName = Yt;
6988
6988
  var Ps = s.forwardRef(
6989
6989
  (e, t) => {
6990
- const { __scopeMenu: n, disabled: o = !1, textValue: r, ...a } = e, i = So(Yt, n), c = xs(n), l = s.useRef(null), d = U(t, l), [f, p] = s.useState(!1), [g, v] = s.useState("");
6990
+ const { __scopeMenu: n, disabled: o = !1, textValue: r, ...a } = e, i = So(Yt, n), c = xs(n), l = s.useRef(null), d = U(t, l), [f, p] = s.useState(!1), [h, v] = s.useState("");
6991
6991
  return s.useEffect(() => {
6992
6992
  const b = l.current;
6993
6993
  b && v((b.textContent ?? "").trim());
6994
6994
  }, [a.children]), /* @__PURE__ */ u(
6995
- gt.ItemSlot,
6995
+ ht.ItemSlot,
6996
6996
  {
6997
6997
  scope: n,
6998
6998
  disabled: o,
6999
- textValue: r ?? g,
6999
+ textValue: r ?? h,
7000
7000
  children: /* @__PURE__ */ u(ws, { asChild: !0, ...c, focusable: !o, children: /* @__PURE__ */ u(
7001
7001
  $.div,
7002
7002
  {
@@ -7008,13 +7008,13 @@ var Ps = s.forwardRef(
7008
7008
  ref: d,
7009
7009
  onPointerMove: A(
7010
7010
  e.onPointerMove,
7011
- ht((b) => {
7011
+ gt((b) => {
7012
7012
  o ? i.onItemLeave(b) : (i.onItemEnter(b), b.defaultPrevented || b.currentTarget.focus({ preventScroll: !0 }));
7013
7013
  })
7014
7014
  ),
7015
7015
  onPointerLeave: A(
7016
7016
  e.onPointerLeave,
7017
- ht((b) => i.onItemLeave(b))
7017
+ gt((b) => i.onItemLeave(b))
7018
7018
  ),
7019
7019
  onFocus: A(e.onFocus, () => p(!0)),
7020
7020
  onBlur: A(e.onBlur, () => p(!1))
@@ -7027,7 +7027,7 @@ var Ps = s.forwardRef(
7027
7027
  (e, t) => {
7028
7028
  const { checked: n = !1, onCheckedChange: o, ...r } = e;
7029
7029
  return /* @__PURE__ */ u(Ds, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ u(
7030
- gn,
7030
+ hn,
7031
7031
  {
7032
7032
  role: "menuitemcheckbox",
7033
7033
  "aria-checked": Xt(n) ? "mixed" : n,
@@ -7059,7 +7059,7 @@ var _s = "MenuRadioItem", ks = s.forwardRef(
7059
7059
  (e, t) => {
7060
7060
  const { value: n, ...o } = e, r = Im(_s, e.__scopeMenu), a = n === r.value;
7061
7061
  return /* @__PURE__ */ u(Ds, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ u(
7062
- gn,
7062
+ hn,
7063
7063
  {
7064
7064
  role: "menuitemradio",
7065
7065
  "aria-checked": a,
@@ -7171,7 +7171,7 @@ var ft = "MenuSubTrigger", Bs = s.forwardRef(
7171
7171
  },
7172
7172
  onPointerMove: A(
7173
7173
  e.onPointerMove,
7174
- ht((p) => {
7174
+ gt((p) => {
7175
7175
  a.onItemEnter(p), !p.defaultPrevented && !e.disabled && !n.open && !i.current && (a.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
7176
7176
  n.onOpenChange(!0), f();
7177
7177
  }, 100));
@@ -7179,20 +7179,20 @@ var ft = "MenuSubTrigger", Bs = s.forwardRef(
7179
7179
  ),
7180
7180
  onPointerLeave: A(
7181
7181
  e.onPointerLeave,
7182
- ht((p) => {
7182
+ gt((p) => {
7183
7183
  f();
7184
- const g = n.content?.getBoundingClientRect();
7185
- if (g) {
7186
- const v = n.content?.dataset.side, b = v === "right", m = b ? -5 : 5, h = g[b ? "left" : "right"], w = g[b ? "right" : "left"];
7184
+ const h = n.content?.getBoundingClientRect();
7185
+ if (h) {
7186
+ const v = n.content?.dataset.side, b = v === "right", m = b ? -5 : 5, g = h[b ? "left" : "right"], w = h[b ? "right" : "left"];
7187
7187
  a.onPointerGraceIntentChange({
7188
7188
  area: [
7189
7189
  // Apply a bleed on clientX to ensure that our exit point is
7190
7190
  // consistently within polygon bounds
7191
7191
  { x: p.clientX + m, y: p.clientY },
7192
- { x: h, y: g.top },
7193
- { x: w, y: g.top },
7194
- { x: w, y: g.bottom },
7195
- { x: h, y: g.bottom }
7192
+ { x: g, y: h.top },
7193
+ { x: w, y: h.top },
7194
+ { x: w, y: h.bottom },
7195
+ { x: g, y: h.bottom }
7196
7196
  ],
7197
7197
  side: v
7198
7198
  }), window.clearTimeout(c.current), c.current = window.setTimeout(
@@ -7206,8 +7206,8 @@ var ft = "MenuSubTrigger", Bs = s.forwardRef(
7206
7206
  })
7207
7207
  ),
7208
7208
  onKeyDown: A(e.onKeyDown, (p) => {
7209
- const g = a.searchRef.current !== "";
7210
- e.disabled || g && p.key === " " || hm[o.dir].includes(p.key) && (n.onOpenChange(!0), n.content?.focus(), p.preventDefault());
7209
+ const h = a.searchRef.current !== "";
7210
+ e.disabled || h && p.key === " " || gm[o.dir].includes(p.key) && (n.onOpenChange(!0), n.content?.focus(), p.preventDefault());
7211
7211
  })
7212
7212
  }
7213
7213
  ) });
@@ -7216,8 +7216,8 @@ var ft = "MenuSubTrigger", Bs = s.forwardRef(
7216
7216
  Bs.displayName = ft;
7217
7217
  var Ws = "MenuSubContent", zs = s.forwardRef(
7218
7218
  (e, t) => {
7219
- const n = Rs(ge, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = Ve(ge, e.__scopeMenu), i = Rt(ge, e.__scopeMenu), c = Fs(Ws, e.__scopeMenu), l = s.useRef(null), d = U(t, l);
7220
- return /* @__PURE__ */ u(gt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u(xe, { present: o || a.open, children: /* @__PURE__ */ u(gt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u(
7219
+ const n = Rs(he, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = Ve(he, e.__scopeMenu), i = Rt(he, e.__scopeMenu), c = Fs(Ws, e.__scopeMenu), l = s.useRef(null), d = U(t, l);
7220
+ return /* @__PURE__ */ u(ht.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u(xe, { present: o || a.open, children: /* @__PURE__ */ u(ht.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u(
7221
7221
  Ro,
7222
7222
  {
7223
7223
  id: c.contentId,
@@ -7240,8 +7240,8 @@ var Ws = "MenuSubContent", zs = s.forwardRef(
7240
7240
  i.onClose(), f.preventDefault();
7241
7241
  }),
7242
7242
  onKeyDown: A(e.onKeyDown, (f) => {
7243
- const p = f.currentTarget.contains(f.target), g = vm[i.dir].includes(f.key);
7244
- p && g && (a.onOpenChange(!1), c.trigger?.focus(), f.preventDefault());
7243
+ const p = f.currentTarget.contains(f.target), h = vm[i.dir].includes(f.key);
7244
+ p && h && (a.onOpenChange(!1), c.trigger?.focus(), f.preventDefault());
7245
7245
  })
7246
7246
  }
7247
7247
  ) }) }) });
@@ -7278,8 +7278,8 @@ function Vm(e, t) {
7278
7278
  const { x: n, y: o } = e;
7279
7279
  let r = !1;
7280
7280
  for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
7281
- const c = t[a], l = t[i], d = c.x, f = c.y, p = l.x, g = l.y;
7282
- f > o != g > o && n < (p - d) * (o - f) / (g - f) + d && (r = !r);
7281
+ const c = t[a], l = t[i], d = c.x, f = c.y, p = l.x, h = l.y;
7282
+ f > o != h > o && n < (p - d) * (o - f) / (h - f) + d && (r = !r);
7283
7283
  }
7284
7284
  return r;
7285
7285
  }
@@ -7288,10 +7288,10 @@ function Bm(e, t) {
7288
7288
  const n = { x: e.clientX, y: e.clientY };
7289
7289
  return Vm(n, t);
7290
7290
  }
7291
- function ht(e) {
7291
+ function gt(e) {
7292
7292
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
7293
7293
  }
7294
- var Hs = Ss, Us = xo, Ks = Es, js = Ns, Ys = Eo, Xs = Ts, qs = gn, Zs = Ms, Qs = Is, Js = ks, ei = Os, ti = Ls, ni = $s, oi = Vs, ri = Bs, ai = zs, Mo = "ContextMenu", [Wm] = ue(Mo, [
7294
+ var Hs = Ss, Us = xo, Ks = Es, js = Ns, Ys = Eo, Xs = Ts, qs = hn, Zs = Ms, Qs = Is, Js = ks, ei = Os, ti = Ls, ni = $s, oi = Vs, ri = Bs, ai = zs, Mo = "ContextMenu", [Wm] = ue(Mo, [
7295
7295
  mn
7296
7296
  ]), ce = mn(), [zm, si] = Wm(Mo), ii = (e) => {
7297
7297
  const { __scopeContextMenu: t, children: n, onOpenChange: o, dir: r, modal: a = !0 } = e, [i, c] = s.useState(!1), l = ce(t), d = ie(o), f = s.useCallback(
@@ -7329,8 +7329,8 @@ var ci = "ContextMenuTrigger", li = s.forwardRef(
7329
7329
  }), d = s.useRef(0), f = s.useCallback(
7330
7330
  () => window.clearTimeout(d.current),
7331
7331
  []
7332
- ), p = (g) => {
7333
- c.current = { x: g.clientX, y: g.clientY }, a.onOpenChange(!0);
7332
+ ), p = (h) => {
7333
+ c.current = { x: h.clientX, y: h.clientY }, a.onOpenChange(!0);
7334
7334
  };
7335
7335
  return s.useEffect(() => f, [f]), s.useEffect(() => {
7336
7336
  o && f();
@@ -7344,13 +7344,13 @@ var ci = "ContextMenuTrigger", li = s.forwardRef(
7344
7344
  ...r,
7345
7345
  ref: t,
7346
7346
  style: { WebkitTouchCallout: "none", ...e.style },
7347
- onContextMenu: o ? e.onContextMenu : A(e.onContextMenu, (g) => {
7348
- f(), p(g), g.preventDefault();
7347
+ onContextMenu: o ? e.onContextMenu : A(e.onContextMenu, (h) => {
7348
+ f(), p(h), h.preventDefault();
7349
7349
  }),
7350
7350
  onPointerDown: o ? e.onPointerDown : A(
7351
7351
  e.onPointerDown,
7352
- Lt((g) => {
7353
- f(), d.current = window.setTimeout(() => p(g), 700);
7352
+ Lt((h) => {
7353
+ f(), d.current = window.setTimeout(() => p(h), 700);
7354
7354
  })
7355
7355
  ),
7356
7356
  onPointerMove: o ? e.onPointerMove : A(e.onPointerMove, Lt(f)),
@@ -7412,18 +7412,18 @@ var Um = "ContextMenuLabel", mi = s.forwardRef(
7412
7412
  }
7413
7413
  );
7414
7414
  mi.displayName = Um;
7415
- var Km = "ContextMenuItem", gi = s.forwardRef(
7415
+ var Km = "ContextMenuItem", hi = s.forwardRef(
7416
7416
  (e, t) => {
7417
7417
  const { __scopeContextMenu: n, ...o } = e, r = ce(n);
7418
7418
  return /* @__PURE__ */ u(qs, { ...r, ...o, ref: t });
7419
7419
  }
7420
7420
  );
7421
- gi.displayName = Km;
7422
- var jm = "ContextMenuCheckboxItem", hi = s.forwardRef((e, t) => {
7421
+ hi.displayName = Km;
7422
+ var jm = "ContextMenuCheckboxItem", gi = s.forwardRef((e, t) => {
7423
7423
  const { __scopeContextMenu: n, ...o } = e, r = ce(n);
7424
7424
  return /* @__PURE__ */ u(Zs, { ...r, ...o, ref: t });
7425
7425
  });
7426
- hi.displayName = jm;
7426
+ gi.displayName = jm;
7427
7427
  var Ym = "ContextMenuRadioGroup", vi = s.forwardRef((e, t) => {
7428
7428
  const { __scopeContextMenu: n, ...o } = e, r = ce(n);
7429
7429
  return /* @__PURE__ */ u(Qs, { ...r, ...o, ref: t });
@@ -7461,12 +7461,12 @@ var xi = "ContextMenuSub", Ci = (e) => {
7461
7461
  return /* @__PURE__ */ u(oi, { ...i, open: c, onOpenChange: l, children: n });
7462
7462
  };
7463
7463
  Ci.displayName = xi;
7464
- var eg = "ContextMenuSubTrigger", Si = s.forwardRef((e, t) => {
7464
+ var eh = "ContextMenuSubTrigger", Si = s.forwardRef((e, t) => {
7465
7465
  const { __scopeContextMenu: n, ...o } = e, r = ce(n);
7466
7466
  return /* @__PURE__ */ u(ri, { ...r, ...o, ref: t });
7467
7467
  });
7468
- Si.displayName = eg;
7469
- var tg = "ContextMenuSubContent", Ri = s.forwardRef((e, t) => {
7468
+ Si.displayName = eh;
7469
+ var th = "ContextMenuSubContent", Ri = s.forwardRef((e, t) => {
7470
7470
  const { __scopeContextMenu: n, ...o } = e, r = ce(n);
7471
7471
  return /* @__PURE__ */ u(
7472
7472
  ai,
@@ -7485,17 +7485,17 @@ var tg = "ContextMenuSubContent", Ri = s.forwardRef((e, t) => {
7485
7485
  }
7486
7486
  );
7487
7487
  });
7488
- Ri.displayName = tg;
7488
+ Ri.displayName = th;
7489
7489
  function Lt(e) {
7490
7490
  return (t) => t.pointerType !== "mouse" ? e(t) : void 0;
7491
7491
  }
7492
- var ng = ii, og = li, rg = di, ag = fi, sg = pi, ig = mi, cg = gi, lg = hi, dg = vi, ug = bi, Ei = wi, fg = yi, pg = Ci, mg = Si, gg = Ri;
7493
- const fw = ng, pw = og, mw = sg, hg = rg, gw = pg, hw = dg, vg = s.forwardRef(({ className: e, inset: t, children: n, ...o }, r) => /* @__PURE__ */ K(
7494
- mg,
7492
+ var nh = ii, oh = li, rh = di, ah = fi, sh = pi, ih = mi, ch = hi, lh = gi, dh = vi, uh = bi, Ei = wi, fh = yi, ph = Ci, mh = Si, hh = Ri;
7493
+ const uw = nh, fw = oh, pw = sh, gh = rh, mw = ph, hw = dh, vh = s.forwardRef(({ className: e, inset: t, children: n, ...o }, r) => /* @__PURE__ */ K(
7494
+ mh,
7495
7495
  {
7496
7496
  ref: r,
7497
7497
  className: P(
7498
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-body outline-none",
7498
+ "text-body flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none",
7499
7499
  "focus:bg-vanilla focus:text-primary",
7500
7500
  "data-[state=open]:bg-vanilla data-[state=open]:text-primary",
7501
7501
  t && "pl-8",
@@ -7521,13 +7521,13 @@ const fw = ng, pw = og, mw = sg, hg = rg, gw = pg, hw = dg, vg = s.forwardRef(({
7521
7521
  ]
7522
7522
  }
7523
7523
  ));
7524
- vg.displayName = "ContextMenuSubTrigger";
7525
- const bg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7526
- gg,
7524
+ vh.displayName = "ContextMenuSubTrigger";
7525
+ const bh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7526
+ hh,
7527
7527
  {
7528
7528
  ref: n,
7529
7529
  className: P(
7530
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 font-sans text-primary shadow-lg",
7530
+ "border-border bg-card text-primary z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 font-sans shadow-lg",
7531
7531
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
7532
7532
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
7533
7533
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -7538,13 +7538,13 @@ const bg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7538
7538
  ...t
7539
7539
  }
7540
7540
  ));
7541
- bg.displayName = "ContextMenuSubContent";
7542
- const wg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(hg, { children: /* @__PURE__ */ u(
7543
- ag,
7541
+ bh.displayName = "ContextMenuSubContent";
7542
+ const wh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(gh, { children: /* @__PURE__ */ u(
7543
+ ah,
7544
7544
  {
7545
7545
  ref: n,
7546
7546
  className: P(
7547
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 font-sans text-primary shadow-md",
7547
+ "border-border bg-card text-primary z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 font-sans shadow-md",
7548
7548
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
7549
7549
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
7550
7550
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -7555,13 +7555,13 @@ const wg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(hg, { c
7555
7555
  ...t
7556
7556
  }
7557
7557
  ) }));
7558
- wg.displayName = "ContextMenuContent";
7559
- const yg = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
7560
- cg,
7558
+ wh.displayName = "ContextMenuContent";
7559
+ const yh = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
7560
+ ch,
7561
7561
  {
7562
7562
  ref: o,
7563
7563
  className: P(
7564
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-body outline-none",
7564
+ "text-body relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none",
7565
7565
  "focus:bg-vanilla focus:text-primary",
7566
7566
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
7567
7567
  t && "pl-8",
@@ -7570,13 +7570,13 @@ const yg = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */
7570
7570
  ...n
7571
7571
  }
7572
7572
  ));
7573
- yg.displayName = "ContextMenuItem";
7574
- const xg = s.forwardRef(({ className: e, children: t, checked: n, ...o }, r) => /* @__PURE__ */ K(
7575
- lg,
7573
+ yh.displayName = "ContextMenuItem";
7574
+ const xh = s.forwardRef(({ className: e, children: t, checked: n, ...o }, r) => /* @__PURE__ */ K(
7575
+ lh,
7576
7576
  {
7577
7577
  ref: r,
7578
7578
  className: P(
7579
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-body outline-none",
7579
+ "text-body relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none",
7580
7580
  "focus:bg-vanilla focus:text-primary",
7581
7581
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
7582
7582
  e
@@ -7602,13 +7602,13 @@ const xg = s.forwardRef(({ className: e, children: t, checked: n, ...o }, r) =>
7602
7602
  ]
7603
7603
  }
7604
7604
  ));
7605
- xg.displayName = "ContextMenuCheckboxItem";
7606
- const Cg = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ K(
7607
- ug,
7605
+ xh.displayName = "ContextMenuCheckboxItem";
7606
+ const Ch = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ K(
7607
+ uh,
7608
7608
  {
7609
7609
  ref: o,
7610
7610
  className: P(
7611
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-body outline-none",
7611
+ "text-body relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none",
7612
7612
  "focus:bg-vanilla focus:text-primary",
7613
7613
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
7614
7614
  e
@@ -7633,42 +7633,42 @@ const Cg = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__
7633
7633
  ]
7634
7634
  }
7635
7635
  ));
7636
- Cg.displayName = "ContextMenuRadioItem";
7637
- const Sg = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
7638
- ig,
7636
+ Ch.displayName = "ContextMenuRadioItem";
7637
+ const Sh = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
7638
+ ih,
7639
7639
  {
7640
7640
  ref: o,
7641
7641
  className: P(
7642
- "px-2 py-1.5 text-small font-semibold text-primary",
7642
+ "text-small text-primary px-2 py-1.5 font-semibold",
7643
7643
  t && "pl-8",
7644
7644
  e
7645
7645
  ),
7646
7646
  ...n
7647
7647
  }
7648
7648
  ));
7649
- Sg.displayName = "ContextMenuLabel";
7650
- const Rg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7651
- fg,
7649
+ Sh.displayName = "ContextMenuLabel";
7650
+ const Rh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7651
+ fh,
7652
7652
  {
7653
7653
  ref: n,
7654
- className: P("-mx-1 my-1 h-px bg-border", e),
7654
+ className: P("bg-border -mx-1 my-1 h-px", e),
7655
7655
  ...t
7656
7656
  }
7657
7657
  ));
7658
- Rg.displayName = "ContextMenuSeparator";
7659
- const Eg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7658
+ Rh.displayName = "ContextMenuSeparator";
7659
+ const Eh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7660
7660
  "span",
7661
7661
  {
7662
7662
  ref: n,
7663
7663
  className: P(
7664
- "ml-auto text-small tracking-widest text-tertiary",
7664
+ "text-small text-tertiary ml-auto tracking-widest",
7665
7665
  e
7666
7666
  ),
7667
7667
  ...t
7668
7668
  }
7669
7669
  ));
7670
- Eg.displayName = "ContextMenuShortcut";
7671
- const Ng = ee("shrink-0 bg-border", {
7670
+ Eh.displayName = "ContextMenuShortcut";
7671
+ const Nh = ee("bg-border shrink-0", {
7672
7672
  variants: {
7673
7673
  orientation: {
7674
7674
  horizontal: "h-px w-full",
@@ -7678,7 +7678,7 @@ const Ng = ee("shrink-0 bg-border", {
7678
7678
  defaultVariants: {
7679
7679
  orientation: "horizontal"
7680
7680
  }
7681
- }), Tg = s.forwardRef(
7681
+ }), Th = s.forwardRef(
7682
7682
  ({ className: e, orientation: t = "horizontal", decorative: n = !0, ...o }, r) => {
7683
7683
  const a = t ?? "horizontal";
7684
7684
  return /* @__PURE__ */ u(
@@ -7688,18 +7688,18 @@ const Ng = ee("shrink-0 bg-border", {
7688
7688
  role: n ? "none" : "separator",
7689
7689
  "aria-orientation": n ? void 0 : a,
7690
7690
  className: P(
7691
- Ng({ orientation: a, className: e })
7691
+ Nh({ orientation: a, className: e })
7692
7692
  ),
7693
7693
  ...o
7694
7694
  }
7695
7695
  );
7696
7696
  }
7697
7697
  );
7698
- Tg.displayName = "Divider";
7699
- var hn = "DropdownMenu", [Pg] = ue(
7700
- hn,
7698
+ Th.displayName = "Divider";
7699
+ var gn = "DropdownMenu", [Ph] = ue(
7700
+ gn,
7701
7701
  [mn]
7702
- ), le = mn(), [Mg, Ni] = Pg(hn), Ti = (e) => {
7702
+ ), le = mn(), [Mh, Ni] = Ph(gn), Ti = (e) => {
7703
7703
  const {
7704
7704
  __scopeDropdownMenu: t,
7705
7705
  children: n,
@@ -7712,10 +7712,10 @@ var hn = "DropdownMenu", [Pg] = ue(
7712
7712
  prop: r,
7713
7713
  defaultProp: a ?? !1,
7714
7714
  onChange: i,
7715
- caller: hn
7715
+ caller: gn
7716
7716
  });
7717
7717
  return /* @__PURE__ */ u(
7718
- Mg,
7718
+ Mh,
7719
7719
  {
7720
7720
  scope: t,
7721
7721
  triggerId: ve(),
@@ -7723,13 +7723,13 @@ var hn = "DropdownMenu", [Pg] = ue(
7723
7723
  contentId: ve(),
7724
7724
  open: f,
7725
7725
  onOpenChange: p,
7726
- onOpenToggle: s.useCallback(() => p((g) => !g), [p]),
7726
+ onOpenToggle: s.useCallback(() => p((h) => !h), [p]),
7727
7727
  modal: c,
7728
7728
  children: /* @__PURE__ */ u(Hs, { ...l, open: f, onOpenChange: p, dir: o, modal: c, children: n })
7729
7729
  }
7730
7730
  );
7731
7731
  };
7732
- Ti.displayName = hn;
7732
+ Ti.displayName = gn;
7733
7733
  var Pi = "DropdownMenuTrigger", Mi = s.forwardRef(
7734
7734
  (e, t) => {
7735
7735
  const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, a = Ni(Pi, n), i = le(n);
@@ -7757,11 +7757,11 @@ var Pi = "DropdownMenuTrigger", Mi = s.forwardRef(
7757
7757
  }
7758
7758
  );
7759
7759
  Mi.displayName = Pi;
7760
- var Ag = "DropdownMenuPortal", Ai = (e) => {
7760
+ var Ah = "DropdownMenuPortal", Ai = (e) => {
7761
7761
  const { __scopeDropdownMenu: t, ...n } = e, o = le(t);
7762
7762
  return /* @__PURE__ */ u(Ks, { ...o, ...n });
7763
7763
  };
7764
- Ai.displayName = Ag;
7764
+ Ai.displayName = Ah;
7765
7765
  var Ii = "DropdownMenuContent", _i = s.forwardRef(
7766
7766
  (e, t) => {
7767
7767
  const { __scopeDropdownMenu: n, ...o } = e, r = Ni(Ii, n), a = le(n), i = s.useRef(!1);
@@ -7793,60 +7793,60 @@ var Ii = "DropdownMenuContent", _i = s.forwardRef(
7793
7793
  }
7794
7794
  );
7795
7795
  _i.displayName = Ii;
7796
- var Ig = "DropdownMenuGroup", ki = s.forwardRef(
7796
+ var Ih = "DropdownMenuGroup", ki = s.forwardRef(
7797
7797
  (e, t) => {
7798
7798
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7799
7799
  return /* @__PURE__ */ u(Ys, { ...r, ...o, ref: t });
7800
7800
  }
7801
7801
  );
7802
- ki.displayName = Ig;
7803
- var _g = "DropdownMenuLabel", Di = s.forwardRef(
7802
+ ki.displayName = Ih;
7803
+ var _h = "DropdownMenuLabel", Di = s.forwardRef(
7804
7804
  (e, t) => {
7805
7805
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7806
7806
  return /* @__PURE__ */ u(Xs, { ...r, ...o, ref: t });
7807
7807
  }
7808
7808
  );
7809
- Di.displayName = _g;
7810
- var kg = "DropdownMenuItem", Oi = s.forwardRef(
7809
+ Di.displayName = _h;
7810
+ var kh = "DropdownMenuItem", Oi = s.forwardRef(
7811
7811
  (e, t) => {
7812
7812
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7813
7813
  return /* @__PURE__ */ u(qs, { ...r, ...o, ref: t });
7814
7814
  }
7815
7815
  );
7816
- Oi.displayName = kg;
7817
- var Dg = "DropdownMenuCheckboxItem", Li = s.forwardRef((e, t) => {
7816
+ Oi.displayName = kh;
7817
+ var Dh = "DropdownMenuCheckboxItem", Li = s.forwardRef((e, t) => {
7818
7818
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7819
7819
  return /* @__PURE__ */ u(Zs, { ...r, ...o, ref: t });
7820
7820
  });
7821
- Li.displayName = Dg;
7822
- var Og = "DropdownMenuRadioGroup", $i = s.forwardRef((e, t) => {
7821
+ Li.displayName = Dh;
7822
+ var Oh = "DropdownMenuRadioGroup", $i = s.forwardRef((e, t) => {
7823
7823
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7824
7824
  return /* @__PURE__ */ u(Qs, { ...r, ...o, ref: t });
7825
7825
  });
7826
- $i.displayName = Og;
7827
- var Lg = "DropdownMenuRadioItem", Fi = s.forwardRef((e, t) => {
7826
+ $i.displayName = Oh;
7827
+ var Lh = "DropdownMenuRadioItem", Fi = s.forwardRef((e, t) => {
7828
7828
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7829
7829
  return /* @__PURE__ */ u(Js, { ...r, ...o, ref: t });
7830
7830
  });
7831
- Fi.displayName = Lg;
7832
- var $g = "DropdownMenuItemIndicator", Vi = s.forwardRef((e, t) => {
7831
+ Fi.displayName = Lh;
7832
+ var $h = "DropdownMenuItemIndicator", Vi = s.forwardRef((e, t) => {
7833
7833
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7834
7834
  return /* @__PURE__ */ u(ei, { ...r, ...o, ref: t });
7835
7835
  });
7836
- Vi.displayName = $g;
7837
- var Fg = "DropdownMenuSeparator", Bi = s.forwardRef((e, t) => {
7836
+ Vi.displayName = $h;
7837
+ var Fh = "DropdownMenuSeparator", Bi = s.forwardRef((e, t) => {
7838
7838
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7839
7839
  return /* @__PURE__ */ u(ti, { ...r, ...o, ref: t });
7840
7840
  });
7841
- Bi.displayName = Fg;
7842
- var Vg = "DropdownMenuArrow", Bg = s.forwardRef(
7841
+ Bi.displayName = Fh;
7842
+ var Vh = "DropdownMenuArrow", Bh = s.forwardRef(
7843
7843
  (e, t) => {
7844
7844
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7845
7845
  return /* @__PURE__ */ u(ni, { ...r, ...o, ref: t });
7846
7846
  }
7847
7847
  );
7848
- Bg.displayName = Vg;
7849
- var Wg = (e) => {
7848
+ Bh.displayName = Vh;
7849
+ var Wh = (e) => {
7850
7850
  const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: a } = e, i = le(t), [c, l] = be({
7851
7851
  prop: o,
7852
7852
  defaultProp: a ?? !1,
@@ -7854,12 +7854,12 @@ var Wg = (e) => {
7854
7854
  caller: "DropdownMenuSub"
7855
7855
  });
7856
7856
  return /* @__PURE__ */ u(oi, { ...i, open: c, onOpenChange: l, children: n });
7857
- }, zg = "DropdownMenuSubTrigger", Wi = s.forwardRef((e, t) => {
7857
+ }, zh = "DropdownMenuSubTrigger", Wi = s.forwardRef((e, t) => {
7858
7858
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7859
7859
  return /* @__PURE__ */ u(ri, { ...r, ...o, ref: t });
7860
7860
  });
7861
- Wi.displayName = zg;
7862
- var Gg = "DropdownMenuSubContent", zi = s.forwardRef((e, t) => {
7861
+ Wi.displayName = zh;
7862
+ var Gh = "DropdownMenuSubContent", zi = s.forwardRef((e, t) => {
7863
7863
  const { __scopeDropdownMenu: n, ...o } = e, r = le(n);
7864
7864
  return /* @__PURE__ */ u(
7865
7865
  ai,
@@ -7878,19 +7878,19 @@ var Gg = "DropdownMenuSubContent", zi = s.forwardRef((e, t) => {
7878
7878
  }
7879
7879
  );
7880
7880
  });
7881
- zi.displayName = Gg;
7882
- var Hg = Ti, Gi = Mi, Ug = Ai, Kg = _i, jg = ki, Yg = Di, Xg = Oi, qg = Li, Zg = $i, Qg = Fi, Hi = Vi, Jg = Bi, eh = Wg, th = Wi, nh = zi;
7881
+ zi.displayName = Gh;
7882
+ var Hh = Ti, Gi = Mi, Uh = Ai, Kh = _i, jh = ki, Yh = Di, Xh = Oi, qh = Li, Zh = $i, Qh = Fi, Hi = Vi, Jh = Bi, eg = Wh, tg = Wi, ng = zi;
7883
7883
  const Ui = (...e) => e.filter((t, n, o) => !!t && t.trim() !== "" && o.indexOf(t) === n).join(" ").trim();
7884
- const oh = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7885
- const rh = (e) => e.replace(
7884
+ const og = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
7885
+ const rg = (e) => e.replace(
7886
7886
  /^([A-Z])|[\s-_]+(\w)/g,
7887
7887
  (t, n, o) => o ? o.toUpperCase() : n.toLowerCase()
7888
7888
  );
7889
7889
  const br = (e) => {
7890
- const t = rh(e);
7890
+ const t = rg(e);
7891
7891
  return t.charAt(0).toUpperCase() + t.slice(1);
7892
7892
  };
7893
- var ah = {
7893
+ var ag = {
7894
7894
  xmlns: "http://www.w3.org/2000/svg",
7895
7895
  width: 24,
7896
7896
  height: 24,
@@ -7901,13 +7901,13 @@ var ah = {
7901
7901
  strokeLinecap: "round",
7902
7902
  strokeLinejoin: "round"
7903
7903
  };
7904
- const sh = (e) => {
7904
+ const sg = (e) => {
7905
7905
  for (const t in e)
7906
7906
  if (t.startsWith("aria-") || t === "role" || t === "title")
7907
7907
  return !0;
7908
7908
  return !1;
7909
7909
  };
7910
- const ih = xr(
7910
+ const ig = xr(
7911
7911
  ({
7912
7912
  color: e = "currentColor",
7913
7913
  size: t = 24,
@@ -7921,13 +7921,13 @@ const ih = xr(
7921
7921
  "svg",
7922
7922
  {
7923
7923
  ref: l,
7924
- ...ah,
7924
+ ...ag,
7925
7925
  width: t,
7926
7926
  height: t,
7927
7927
  stroke: e,
7928
7928
  strokeWidth: o ? Number(n) * 24 / Number(t) : n,
7929
7929
  className: Ui("lucide", r),
7930
- ...!a && !sh(c) && { "aria-hidden": "true" },
7930
+ ...!a && !sg(c) && { "aria-hidden": "true" },
7931
7931
  ...c
7932
7932
  },
7933
7933
  [
@@ -7938,11 +7938,11 @@ const ih = xr(
7938
7938
  );
7939
7939
  const Ki = (e, t) => {
7940
7940
  const n = xr(
7941
- ({ className: o, ...r }, a) => Vn(ih, {
7941
+ ({ className: o, ...r }, a) => Vn(ig, {
7942
7942
  ref: a,
7943
7943
  iconNode: t,
7944
7944
  className: Ui(
7945
- `lucide-${oh(br(e))}`,
7945
+ `lucide-${og(br(e))}`,
7946
7946
  `lucide-${e}`,
7947
7947
  o
7948
7948
  ),
@@ -7951,20 +7951,20 @@ const Ki = (e, t) => {
7951
7951
  );
7952
7952
  return n.displayName = br(e), n;
7953
7953
  };
7954
- const ch = [
7954
+ const cg = [
7955
7955
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
7956
7956
  ["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
7957
7957
  ["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
7958
- ], lh = Ki("ellipsis", ch);
7959
- const dh = [
7958
+ ], lg = Ki("ellipsis", cg);
7959
+ const dg = [
7960
7960
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
7961
7961
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
7962
- ], ji = Ki("x", dh), vw = Hg, bw = Gi, ww = jg, uh = Ug, yw = eh, xw = Zg, fh = s.forwardRef(({ className: e, inset: t, children: n, ...o }, r) => /* @__PURE__ */ K(
7963
- th,
7962
+ ], ji = Ki("x", dg), gw = Hh, vw = Gi, bw = jh, ug = Uh, ww = eg, yw = Zh, fg = s.forwardRef(({ className: e, inset: t, children: n, ...o }, r) => /* @__PURE__ */ K(
7963
+ tg,
7964
7964
  {
7965
7965
  ref: r,
7966
7966
  className: P(
7967
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-body outline-none",
7967
+ "text-body flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none",
7968
7968
  "focus:bg-vanilla focus:text-primary",
7969
7969
  "data-[state=open]:bg-vanilla data-[state=open]:text-primary",
7970
7970
  t && "pl-8",
@@ -7990,13 +7990,13 @@ const dh = [
7990
7990
  ]
7991
7991
  }
7992
7992
  ));
7993
- fh.displayName = "DropdownMenuSubTrigger";
7994
- const ph = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7995
- nh,
7993
+ fg.displayName = "DropdownMenuSubTrigger";
7994
+ const pg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
7995
+ ng,
7996
7996
  {
7997
7997
  ref: n,
7998
7998
  className: P(
7999
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 font-sans text-primary shadow-lg",
7999
+ "border-border bg-card text-primary z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 font-sans shadow-lg",
8000
8000
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
8001
8001
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
8002
8002
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -8007,14 +8007,14 @@ const ph = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8007
8007
  ...t
8008
8008
  }
8009
8009
  ));
8010
- ph.displayName = "DropdownMenuSubContent";
8011
- const mh = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ u(uh, { children: /* @__PURE__ */ u(
8012
- Kg,
8010
+ pg.displayName = "DropdownMenuSubContent";
8011
+ const mg = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, o) => /* @__PURE__ */ u(ug, { children: /* @__PURE__ */ u(
8012
+ Kh,
8013
8013
  {
8014
8014
  ref: o,
8015
8015
  sideOffset: t,
8016
8016
  className: P(
8017
- "z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card p-1 font-sans text-primary shadow-md",
8017
+ "border-border bg-card text-primary z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 font-sans shadow-md",
8018
8018
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
8019
8019
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
8020
8020
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -8025,13 +8025,13 @@ const mh = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, o) => /* @__
8025
8025
  ...n
8026
8026
  }
8027
8027
  ) }));
8028
- mh.displayName = "DropdownMenuContent";
8029
- const gh = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
8030
- Xg,
8028
+ mg.displayName = "DropdownMenuContent";
8029
+ const hg = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
8030
+ Xh,
8031
8031
  {
8032
8032
  ref: o,
8033
8033
  className: P(
8034
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-body outline-none",
8034
+ "text-body relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 outline-none",
8035
8035
  "focus:bg-vanilla focus:text-primary",
8036
8036
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
8037
8037
  t && "pl-8",
@@ -8040,13 +8040,13 @@ const gh = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */
8040
8040
  ...n
8041
8041
  }
8042
8042
  ));
8043
- gh.displayName = "DropdownMenuItem";
8044
- const hh = s.forwardRef(({ className: e, children: t, checked: n, ...o }, r) => /* @__PURE__ */ K(
8045
- qg,
8043
+ hg.displayName = "DropdownMenuItem";
8044
+ const gg = s.forwardRef(({ className: e, children: t, checked: n, ...o }, r) => /* @__PURE__ */ K(
8045
+ qh,
8046
8046
  {
8047
8047
  ref: r,
8048
8048
  className: P(
8049
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-body outline-none",
8049
+ "text-body relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none",
8050
8050
  "focus:bg-vanilla focus:text-primary",
8051
8051
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
8052
8052
  e
@@ -8072,13 +8072,13 @@ const hh = s.forwardRef(({ className: e, children: t, checked: n, ...o }, r) =>
8072
8072
  ]
8073
8073
  }
8074
8074
  ));
8075
- hh.displayName = "DropdownMenuCheckboxItem";
8076
- const vh = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ K(
8077
- Qg,
8075
+ gg.displayName = "DropdownMenuCheckboxItem";
8076
+ const vg = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ K(
8077
+ Qh,
8078
8078
  {
8079
8079
  ref: o,
8080
8080
  className: P(
8081
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-body outline-none",
8081
+ "text-body relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none",
8082
8082
  "focus:bg-vanilla focus:text-primary",
8083
8083
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
8084
8084
  e
@@ -8103,42 +8103,42 @@ const vh = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__
8103
8103
  ]
8104
8104
  }
8105
8105
  ));
8106
- vh.displayName = "DropdownMenuRadioItem";
8107
- const bh = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
8108
- Yg,
8106
+ vg.displayName = "DropdownMenuRadioItem";
8107
+ const bg = s.forwardRef(({ className: e, inset: t, ...n }, o) => /* @__PURE__ */ u(
8108
+ Yh,
8109
8109
  {
8110
8110
  ref: o,
8111
8111
  className: P(
8112
- "px-2 py-1.5 text-small font-semibold text-primary",
8112
+ "text-small text-primary px-2 py-1.5 font-semibold",
8113
8113
  t && "pl-8",
8114
8114
  e
8115
8115
  ),
8116
8116
  ...n
8117
8117
  }
8118
8118
  ));
8119
- bh.displayName = "DropdownMenuLabel";
8120
- const wh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8121
- Jg,
8119
+ bg.displayName = "DropdownMenuLabel";
8120
+ const wg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8121
+ Jh,
8122
8122
  {
8123
8123
  ref: n,
8124
- className: P("-mx-1 my-1 h-px bg-border", e),
8124
+ className: P("bg-border -mx-1 my-1 h-px", e),
8125
8125
  ...t
8126
8126
  }
8127
8127
  ));
8128
- wh.displayName = "DropdownMenuSeparator";
8129
- const yh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8128
+ wg.displayName = "DropdownMenuSeparator";
8129
+ const yg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8130
8130
  "span",
8131
8131
  {
8132
8132
  ref: n,
8133
8133
  className: P(
8134
- "ml-auto text-small tracking-widest text-tertiary",
8134
+ "text-small text-tertiary ml-auto tracking-widest",
8135
8135
  e
8136
8136
  ),
8137
8137
  ...t
8138
8138
  }
8139
8139
  ));
8140
- yh.displayName = "DropdownMenuShortcut";
8141
- const xh = s.forwardRef(({ className: e, iconSize: t = "default", ...n }, o) => {
8140
+ yg.displayName = "DropdownMenuShortcut";
8141
+ const xg = s.forwardRef(({ className: e, iconSize: t = "default", ...n }, o) => {
8142
8142
  const r = {
8143
8143
  sm: "h-4 w-4",
8144
8144
  default: "h-5 w-5",
@@ -8149,9 +8149,9 @@ const xh = s.forwardRef(({ className: e, iconSize: t = "default", ...n }, o) =>
8149
8149
  {
8150
8150
  ref: o,
8151
8151
  className: P(
8152
- "inline-flex items-center justify-center rounded-md text-secondary transition-colors",
8152
+ "text-secondary inline-flex items-center justify-center rounded-md transition-colors",
8153
8153
  "hover:bg-vanilla hover:text-primary",
8154
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
8154
+ "focus-visible:ring-sunflower focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
8155
8155
  "disabled:pointer-events-none disabled:opacity-50",
8156
8156
  {
8157
8157
  sm: "h-7 w-7",
@@ -8162,14 +8162,14 @@ const xh = s.forwardRef(({ className: e, iconSize: t = "default", ...n }, o) =>
8162
8162
  ),
8163
8163
  ...n,
8164
8164
  children: [
8165
- /* @__PURE__ */ u(lh, { className: r[t] }),
8165
+ /* @__PURE__ */ u(lg, { className: r[t] }),
8166
8166
  /* @__PURE__ */ u("span", { className: "sr-only", children: "Open menu" })
8167
8167
  ]
8168
8168
  }
8169
8169
  );
8170
8170
  });
8171
- xh.displayName = "ActionsMenuButton";
8172
- const Ch = ee(
8171
+ xg.displayName = "ActionsMenuButton";
8172
+ const Cg = ee(
8173
8173
  "font-mono text-xs font-normal uppercase leading-5 tracking-[1.2px]",
8174
8174
  {
8175
8175
  variants: {
@@ -8189,18 +8189,18 @@ const Ch = ee(
8189
8189
  size: "default"
8190
8190
  }
8191
8191
  }
8192
- ), Sh = s.forwardRef(
8192
+ ), Sg = s.forwardRef(
8193
8193
  ({ className: e, variant: t, size: n, asChild: o = !1, ...r }, a) => /* @__PURE__ */ u(
8194
8194
  o ? Xe : "span",
8195
8195
  {
8196
- className: P(Ch({ variant: t, size: n, className: e })),
8196
+ className: P(Cg({ variant: t, size: n, className: e })),
8197
8197
  ref: a,
8198
8198
  ...r
8199
8199
  }
8200
8200
  )
8201
8201
  );
8202
- Sh.displayName = "Eyebrow";
8203
- var Rh = [
8202
+ Sg.displayName = "Eyebrow";
8203
+ var Rg = [
8204
8204
  "a",
8205
8205
  "button",
8206
8206
  "div",
@@ -8218,14 +8218,14 @@ var Rh = [
8218
8218
  "span",
8219
8219
  "svg",
8220
8220
  "ul"
8221
- ], Eh = Rh.reduce((e, t) => {
8221
+ ], Eg = Rg.reduce((e, t) => {
8222
8222
  const n = /* @__PURE__ */ ka(`Primitive.${t}`), o = s.forwardRef((r, a) => {
8223
8223
  const { asChild: i, ...c } = r, l = i ? n : t;
8224
8224
  return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...c, ref: a });
8225
8225
  });
8226
8226
  return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
8227
- }, {}), Nh = "Label", Yi = s.forwardRef((e, t) => /* @__PURE__ */ u(
8228
- Eh.label,
8227
+ }, {}), Ng = "Label", Yi = s.forwardRef((e, t) => /* @__PURE__ */ u(
8228
+ Eg.label,
8229
8229
  {
8230
8230
  ...e,
8231
8231
  ref: t,
@@ -8234,10 +8234,10 @@ var Rh = [
8234
8234
  }
8235
8235
  }
8236
8236
  ));
8237
- Yi.displayName = Nh;
8238
- var Th = Yi;
8239
- const Ph = ee(
8240
- "font-sans font-normal text-tertiary peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
8237
+ Yi.displayName = Ng;
8238
+ var Tg = Yi;
8239
+ const Pg = ee(
8240
+ "text-tertiary font-sans font-normal peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
8241
8241
  {
8242
8242
  variants: {
8243
8243
  size: {
@@ -8250,10 +8250,10 @@ const Ph = ee(
8250
8250
  }
8251
8251
  }
8252
8252
  ), Xi = s.forwardRef(({ className: e, size: t, ...n }, o) => /* @__PURE__ */ u(
8253
- Th,
8253
+ Tg,
8254
8254
  {
8255
8255
  ref: o,
8256
- className: P(Ph({ size: t }), e),
8256
+ className: P(Pg({ size: t }), e),
8257
8257
  ...n
8258
8258
  }
8259
8259
  ));
@@ -8264,7 +8264,7 @@ const qi = s.forwardRef(
8264
8264
  {
8265
8265
  ref: r,
8266
8266
  className: P(
8267
- "font-sans text-descriptive text-sm",
8267
+ "text-descriptive font-sans text-sm",
8268
8268
  t === "default" ? "text-tertiary" : "text-error",
8269
8269
  e
8270
8270
  ),
@@ -8274,7 +8274,7 @@ const qi = s.forwardRef(
8274
8274
  ) : null
8275
8275
  );
8276
8276
  qi.displayName = "FormMessage";
8277
- const Mh = s.forwardRef(
8277
+ const Mg = s.forwardRef(
8278
8278
  ({ className: e, label: t, labelSize: n, hint: o, error: r, htmlFor: a, children: i, ...c }, l) => {
8279
8279
  const d = a ? `${a}-message` : void 0;
8280
8280
  return /* @__PURE__ */ K(
@@ -8300,42 +8300,42 @@ const Mh = s.forwardRef(
8300
8300
  );
8301
8301
  }
8302
8302
  );
8303
- Mh.displayName = "FormField";
8304
- const Ah = ee("font-normal text-primary", {
8303
+ Mg.displayName = "FormField";
8304
+ const Ag = ee("text-primary font-normal", {
8305
8305
  variants: {
8306
8306
  level: {
8307
8307
  hero: "font-display text-hero",
8308
- h1: "font-sans text-h1",
8309
- h2: "font-sans text-h2",
8310
- h3: "font-sans text-h3",
8311
- h4: "font-sans text-h4"
8308
+ h1: "text-h1 font-sans",
8309
+ h2: "text-h2 font-sans",
8310
+ h3: "text-h3 font-sans",
8311
+ h4: "text-h4 font-sans"
8312
8312
  }
8313
8313
  },
8314
8314
  defaultVariants: {
8315
8315
  level: "h1"
8316
8316
  }
8317
- }), Ih = {
8317
+ }), Ig = {
8318
8318
  hero: "h1",
8319
8319
  h1: "h1",
8320
8320
  h2: "h2",
8321
8321
  h3: "h3",
8322
8322
  h4: "h4"
8323
- }, _h = s.forwardRef(
8323
+ }, _g = s.forwardRef(
8324
8324
  ({ className: e, level: t = "h1", as: n, asChild: o = !1, ...r }, a) => {
8325
- const i = n ?? Ih[t ?? "h1"];
8325
+ const i = n ?? Ig[t ?? "h1"];
8326
8326
  return /* @__PURE__ */ u(
8327
8327
  o ? Xe : i,
8328
8328
  {
8329
- className: P(Ah({ level: t, className: e })),
8329
+ className: P(Ag({ level: t, className: e })),
8330
8330
  ref: a,
8331
8331
  ...r
8332
8332
  }
8333
8333
  );
8334
8334
  }
8335
8335
  );
8336
- _h.displayName = "Heading";
8337
- const kh = ee(
8338
- "flex h-10 w-full rounded-md border bg-card px-3 py-2 font-sans text-body text-primary transition-colors placeholder:text-tertiary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
8336
+ _g.displayName = "Heading";
8337
+ const kg = ee(
8338
+ "bg-card text-body text-primary placeholder:text-tertiary flex h-10 w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
8339
8339
  {
8340
8340
  variants: {
8341
8341
  variant: {
@@ -8347,26 +8347,26 @@ const kh = ee(
8347
8347
  variant: "default"
8348
8348
  }
8349
8349
  }
8350
- ), Dh = s.forwardRef(
8350
+ ), Dg = s.forwardRef(
8351
8351
  ({ className: e, variant: t, type: n = "text", ...o }, r) => /* @__PURE__ */ u(
8352
8352
  "input",
8353
8353
  {
8354
8354
  type: n,
8355
- className: P(kh({ variant: t }), e),
8355
+ className: P(kg({ variant: t }), e),
8356
8356
  ref: r,
8357
8357
  ...o
8358
8358
  }
8359
8359
  )
8360
8360
  );
8361
- Dh.displayName = "Input";
8362
- const Oh = ee(
8363
- "inline-flex items-center font-sans transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
8361
+ Dg.displayName = "Input";
8362
+ const Og = ee(
8363
+ "focus-visible:ring-sunflower inline-flex items-center font-sans transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
8364
8364
  {
8365
8365
  variants: {
8366
8366
  variant: {
8367
- default: "text-primary underline underline-offset-4 hover:text-secondary",
8368
- muted: "text-secondary underline underline-offset-4 hover:text-primary",
8369
- nav: "text-primary no-underline hover:text-secondary hover:underline hover:underline-offset-4"
8367
+ default: "text-primary hover:text-secondary underline underline-offset-4",
8368
+ muted: "text-secondary hover:text-primary underline underline-offset-4",
8369
+ nav: "text-primary hover:text-secondary no-underline hover:underline hover:underline-offset-4"
8370
8370
  },
8371
8371
  size: {
8372
8372
  sm: "text-small",
@@ -8379,18 +8379,18 @@ const Oh = ee(
8379
8379
  size: "default"
8380
8380
  }
8381
8381
  }
8382
- ), Lh = s.forwardRef(
8382
+ ), Lg = s.forwardRef(
8383
8383
  ({ className: e, variant: t, size: n, asChild: o = !1, ...r }, a) => /* @__PURE__ */ u(
8384
8384
  o ? Xe : "a",
8385
8385
  {
8386
- className: P(Oh({ variant: t, size: n, className: e })),
8386
+ className: P(Og({ variant: t, size: n, className: e })),
8387
8387
  ref: a,
8388
8388
  ...r
8389
8389
  }
8390
8390
  )
8391
8391
  );
8392
- Lh.displayName = "Link";
8393
- const Cw = Zr, Sw = Qr, $h = Jr, Rw = tn, Zi = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8392
+ Lg.displayName = "Link";
8393
+ const xw = Zr, Cw = Qr, $g = Jr, Sw = tn, Zi = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8394
8394
  ea,
8395
8395
  {
8396
8396
  ref: n,
@@ -8405,13 +8405,13 @@ const Cw = Zr, Sw = Qr, $h = Jr, Rw = tn, Zi = s.forwardRef(({ className: e, ...
8405
8405
  }
8406
8406
  ));
8407
8407
  Zi.displayName = "ModalOverlay";
8408
- const Fh = ee(
8408
+ const Fg = ee(
8409
8409
  [
8410
8410
  "fixed left-1/2 top-1/2 z-50 -translate-x-1/2 -translate-y-1/2",
8411
- "grid w-full gap-4 bg-main p-6 shadow-lg",
8411
+ "bg-main grid w-full gap-4 p-6 shadow-lg",
8412
8412
  "max-h-[85vh] overflow-y-auto",
8413
- "rounded-lg border border-border",
8414
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
8413
+ "border-border rounded-lg border",
8414
+ "focus-visible:ring-sunflower focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
8415
8415
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
8416
8416
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
8417
8417
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -8432,13 +8432,13 @@ const Fh = ee(
8432
8432
  size: "default"
8433
8433
  }
8434
8434
  }
8435
- ), Vh = s.forwardRef(({ className: e, children: t, size: n, showCloseButton: o = !0, ...r }, a) => /* @__PURE__ */ K($h, { children: [
8435
+ ), Vg = s.forwardRef(({ className: e, children: t, size: n, showCloseButton: o = !0, ...r }, a) => /* @__PURE__ */ K($g, { children: [
8436
8436
  /* @__PURE__ */ u(Zi, {}),
8437
8437
  /* @__PURE__ */ K(
8438
8438
  ta,
8439
8439
  {
8440
8440
  ref: a,
8441
- className: P(Fh({ size: n }), e),
8441
+ className: P(Fg({ size: n }), e),
8442
8442
  ...r,
8443
8443
  children: [
8444
8444
  t,
@@ -8449,7 +8449,7 @@ const Fh = ee(
8449
8449
  "absolute right-4 top-4 rounded-sm opacity-70",
8450
8450
  "ring-offset-bg-main transition-opacity",
8451
8451
  "hover:opacity-100",
8452
- "focus:outline-none focus:ring-2 focus:ring-sunflower focus:ring-offset-2",
8452
+ "focus:ring-sunflower focus:outline-none focus:ring-2 focus:ring-offset-2",
8453
8453
  "disabled:pointer-events-none",
8454
8454
  "data-[state=open]:bg-bg-alt data-[state=open]:text-text-secondary"
8455
8455
  ),
@@ -8463,8 +8463,8 @@ const Fh = ee(
8463
8463
  }
8464
8464
  )
8465
8465
  ] }));
8466
- Vh.displayName = "ModalContent";
8467
- const Bh = s.forwardRef(
8466
+ Vg.displayName = "ModalContent";
8467
+ const Bg = s.forwardRef(
8468
8468
  ({ className: e, ...t }, n) => /* @__PURE__ */ u(
8469
8469
  "div",
8470
8470
  {
@@ -8477,8 +8477,8 @@ const Bh = s.forwardRef(
8477
8477
  }
8478
8478
  )
8479
8479
  );
8480
- Bh.displayName = "ModalHeader";
8481
- const Wh = s.forwardRef(
8480
+ Bg.displayName = "ModalHeader";
8481
+ const Wg = s.forwardRef(
8482
8482
  ({ className: e, ...t }, n) => /* @__PURE__ */ u(
8483
8483
  "div",
8484
8484
  {
@@ -8491,8 +8491,8 @@ const Wh = s.forwardRef(
8491
8491
  }
8492
8492
  )
8493
8493
  );
8494
- Wh.displayName = "ModalFooter";
8495
- const zh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8494
+ Wg.displayName = "ModalFooter";
8495
+ const zg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8496
8496
  na,
8497
8497
  {
8498
8498
  ref: n,
@@ -8503,8 +8503,8 @@ const zh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8503
8503
  ...t
8504
8504
  }
8505
8505
  ));
8506
- zh.displayName = "ModalTitle";
8507
- const Gh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8506
+ zg.displayName = "ModalTitle";
8507
+ const Gg = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8508
8508
  oa,
8509
8509
  {
8510
8510
  ref: n,
@@ -8512,8 +8512,8 @@ const Gh = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8512
8512
  ...t
8513
8513
  }
8514
8514
  ));
8515
- Gh.displayName = "ModalDescription";
8516
- var Ao = "Radio", [Hh, Qi] = ue(Ao), [Uh, Kh] = Hh(Ao), Ji = s.forwardRef(
8515
+ Gg.displayName = "ModalDescription";
8516
+ var Ao = "Radio", [Hg, Qi] = ue(Ao), [Ug, Kg] = Hg(Ao), Ji = s.forwardRef(
8517
8517
  (e, t) => {
8518
8518
  const {
8519
8519
  __scopeRadio: n,
@@ -8525,8 +8525,8 @@ var Ao = "Radio", [Hh, Qi] = ue(Ao), [Uh, Kh] = Hh(Ao), Ji = s.forwardRef(
8525
8525
  onCheck: l,
8526
8526
  form: d,
8527
8527
  ...f
8528
- } = e, [p, g] = s.useState(null), v = U(t, (h) => g(h)), b = s.useRef(!1), m = p ? d || !!p.closest("form") : !0;
8529
- return /* @__PURE__ */ K(Uh, { scope: n, checked: r, disabled: i, children: [
8528
+ } = e, [p, h] = s.useState(null), v = U(t, (g) => h(g)), b = s.useRef(!1), m = p ? d || !!p.closest("form") : !0;
8529
+ return /* @__PURE__ */ K(Ug, { scope: n, checked: r, disabled: i, children: [
8530
8530
  /* @__PURE__ */ u(
8531
8531
  $.button,
8532
8532
  {
@@ -8539,8 +8539,8 @@ var Ao = "Radio", [Hh, Qi] = ue(Ao), [Uh, Kh] = Hh(Ao), Ji = s.forwardRef(
8539
8539
  value: c,
8540
8540
  ...f,
8541
8541
  ref: v,
8542
- onClick: A(e.onClick, (h) => {
8543
- r || l?.(), m && (b.current = h.isPropagationStopped(), b.current || h.stopPropagation());
8542
+ onClick: A(e.onClick, (g) => {
8543
+ r || l?.(), m && (b.current = g.isPropagationStopped(), b.current || g.stopPropagation());
8544
8544
  })
8545
8545
  }
8546
8546
  ),
@@ -8564,7 +8564,7 @@ var Ao = "Radio", [Hh, Qi] = ue(Ao), [Uh, Kh] = Hh(Ao), Ji = s.forwardRef(
8564
8564
  Ji.displayName = Ao;
8565
8565
  var ec = "RadioIndicator", tc = s.forwardRef(
8566
8566
  (e, t) => {
8567
- const { __scopeRadio: n, forceMount: o, ...r } = e, a = Kh(ec, n);
8567
+ const { __scopeRadio: n, forceMount: o, ...r } = e, a = Kg(ec, n);
8568
8568
  return /* @__PURE__ */ u(xe, { present: o || a.checked, children: /* @__PURE__ */ u(
8569
8569
  $.span,
8570
8570
  {
@@ -8577,7 +8577,7 @@ var ec = "RadioIndicator", tc = s.forwardRef(
8577
8577
  }
8578
8578
  );
8579
8579
  tc.displayName = ec;
8580
- var jh = "RadioBubbleInput", nc = s.forwardRef(
8580
+ var jg = "RadioBubbleInput", nc = s.forwardRef(
8581
8581
  ({
8582
8582
  __scopeRadio: e,
8583
8583
  control: t,
@@ -8618,14 +8618,14 @@ var jh = "RadioBubbleInput", nc = s.forwardRef(
8618
8618
  );
8619
8619
  }
8620
8620
  );
8621
- nc.displayName = jh;
8621
+ nc.displayName = jg;
8622
8622
  function oc(e) {
8623
8623
  return e ? "checked" : "unchecked";
8624
8624
  }
8625
- var Yh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], vn = "RadioGroup", [Xh] = ue(vn, [
8625
+ var Yg = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], vn = "RadioGroup", [Xg] = ue(vn, [
8626
8626
  pn,
8627
8627
  Qi
8628
- ]), rc = pn(), ac = Qi(), [qh, Zh] = Xh(vn), sc = s.forwardRef(
8628
+ ]), rc = pn(), ac = Qi(), [qg, Zg] = Xg(vn), sc = s.forwardRef(
8629
8629
  (e, t) => {
8630
8630
  const {
8631
8631
  __scopeRadioGroup: n,
@@ -8638,22 +8638,22 @@ var Yh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], vn = "RadioGroup",
8638
8638
  dir: d,
8639
8639
  loop: f = !0,
8640
8640
  onValueChange: p,
8641
- ...g
8642
- } = e, v = rc(n), b = sn(d), [m, h] = be({
8641
+ ...h
8642
+ } = e, v = rc(n), b = sn(d), [m, g] = be({
8643
8643
  prop: a,
8644
8644
  defaultProp: r ?? null,
8645
8645
  onChange: p,
8646
8646
  caller: vn
8647
8647
  });
8648
8648
  return /* @__PURE__ */ u(
8649
- qh,
8649
+ qg,
8650
8650
  {
8651
8651
  scope: n,
8652
8652
  name: o,
8653
8653
  required: i,
8654
8654
  disabled: c,
8655
8655
  value: m,
8656
- onValueChange: h,
8656
+ onValueChange: g,
8657
8657
  children: /* @__PURE__ */ u(
8658
8658
  bs,
8659
8659
  {
@@ -8670,7 +8670,7 @@ var Yh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], vn = "RadioGroup",
8670
8670
  "aria-orientation": l,
8671
8671
  "data-disabled": c ? "" : void 0,
8672
8672
  dir: b,
8673
- ...g,
8673
+ ...h,
8674
8674
  ref: t
8675
8675
  }
8676
8676
  )
@@ -8683,11 +8683,11 @@ var Yh = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], vn = "RadioGroup",
8683
8683
  sc.displayName = vn;
8684
8684
  var ic = "RadioGroupItem", cc = s.forwardRef(
8685
8685
  (e, t) => {
8686
- const { __scopeRadioGroup: n, disabled: o, ...r } = e, a = Zh(ic, n), i = a.disabled || o, c = rc(n), l = ac(n), d = s.useRef(null), f = U(t, d), p = a.value === r.value, g = s.useRef(!1);
8686
+ const { __scopeRadioGroup: n, disabled: o, ...r } = e, a = Zg(ic, n), i = a.disabled || o, c = rc(n), l = ac(n), d = s.useRef(null), f = U(t, d), p = a.value === r.value, h = s.useRef(!1);
8687
8687
  return s.useEffect(() => {
8688
8688
  const v = (m) => {
8689
- Yh.includes(m.key) && (g.current = !0);
8690
- }, b = () => g.current = !1;
8689
+ Yg.includes(m.key) && (h.current = !0);
8690
+ }, b = () => h.current = !1;
8691
8691
  return document.addEventListener("keydown", v), document.addEventListener("keyup", b), () => {
8692
8692
  document.removeEventListener("keydown", v), document.removeEventListener("keyup", b);
8693
8693
  };
@@ -8713,7 +8713,7 @@ var ic = "RadioGroupItem", cc = s.forwardRef(
8713
8713
  v.key === "Enter" && v.preventDefault();
8714
8714
  }),
8715
8715
  onFocus: A(r.onFocus, () => {
8716
- g.current && d.current?.click();
8716
+ h.current && d.current?.click();
8717
8717
  })
8718
8718
  }
8719
8719
  )
@@ -8722,16 +8722,16 @@ var ic = "RadioGroupItem", cc = s.forwardRef(
8722
8722
  }
8723
8723
  );
8724
8724
  cc.displayName = ic;
8725
- var Qh = "RadioGroupIndicator", lc = s.forwardRef(
8725
+ var Qg = "RadioGroupIndicator", lc = s.forwardRef(
8726
8726
  (e, t) => {
8727
8727
  const { __scopeRadioGroup: n, ...o } = e, r = ac(n);
8728
8728
  return /* @__PURE__ */ u(tc, { ...r, ...o, ref: t });
8729
8729
  }
8730
8730
  );
8731
- lc.displayName = Qh;
8732
- var Jh = sc, ev = cc, tv = lc;
8731
+ lc.displayName = Qg;
8732
+ var Jg = sc, ev = cc, tv = lc;
8733
8733
  const nv = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8734
- Jh,
8734
+ Jg,
8735
8735
  {
8736
8736
  className: P("grid gap-2", e),
8737
8737
  ...t,
@@ -8744,14 +8744,14 @@ const ov = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
8744
8744
  {
8745
8745
  ref: n,
8746
8746
  className: P(
8747
- "aspect-square h-5 w-5 rounded-full border border-border bg-card transition-colors",
8748
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
8747
+ "border-border bg-card aspect-square h-5 w-5 rounded-full border transition-colors",
8748
+ "focus-visible:ring-sunflower focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
8749
8749
  "disabled:cursor-not-allowed disabled:opacity-50",
8750
8750
  "data-[state=checked]:border-sunflower",
8751
8751
  e
8752
8752
  ),
8753
8753
  ...t,
8754
- children: /* @__PURE__ */ u(tv, { className: "flex items-center justify-center", children: /* @__PURE__ */ u("span", { className: "h-2.5 w-2.5 rounded-full bg-sunflower" }) })
8754
+ children: /* @__PURE__ */ u(tv, { className: "flex items-center justify-center", children: /* @__PURE__ */ u("span", { className: "bg-sunflower h-2.5 w-2.5 rounded-full" }) })
8755
8755
  }
8756
8756
  ));
8757
8757
  ov.displayName = "RadioGroupItem";
@@ -8827,7 +8827,7 @@ Io.displayName = dv;
8827
8827
  var uv = [" ", "Enter", "ArrowUp", "ArrowDown"], fv = [" ", "Enter"], je = "Select", [bn, wn, pv] = an(je), [lt] = ue(je, [
8828
8828
  pv,
8829
8829
  fn
8830
- ]), yn = fn(), [mv, Be] = lt(je), [gv, hv] = lt(je), uc = (e) => {
8830
+ ]), yn = fn(), [mv, Be] = lt(je), [hv, gv] = lt(je), uc = (e) => {
8831
8831
  const {
8832
8832
  __scopeSelect: t,
8833
8833
  children: n,
@@ -8840,10 +8840,10 @@ var uv = [" ", "Enter", "ArrowUp", "ArrowDown"], fv = [" ", "Enter"], je = "Sele
8840
8840
  dir: d,
8841
8841
  name: f,
8842
8842
  autoComplete: p,
8843
- disabled: g,
8843
+ disabled: h,
8844
8844
  required: v,
8845
8845
  form: b
8846
- } = e, m = yn(t), [h, w] = s.useState(null), [y, x] = s.useState(null), [C, E] = s.useState(!1), T = sn(d), [N, R] = be({
8846
+ } = e, m = yn(t), [g, w] = s.useState(null), [y, x] = s.useState(null), [C, E] = s.useState(!1), T = sn(d), [N, R] = be({
8847
8847
  prop: o,
8848
8848
  defaultProp: r ?? !1,
8849
8849
  onChange: a,
@@ -8853,13 +8853,13 @@ var uv = [" ", "Enter", "ArrowUp", "ArrowDown"], fv = [" ", "Enter"], je = "Sele
8853
8853
  defaultProp: c,
8854
8854
  onChange: l,
8855
8855
  caller: je
8856
- }), V = s.useRef(null), W = h ? b || !!h.closest("form") : !0, [G, I] = s.useState(/* @__PURE__ */ new Set()), z = Array.from(G).map((O) => O.props.value).join(";");
8856
+ }), V = s.useRef(null), W = g ? b || !!g.closest("form") : !0, [G, I] = s.useState(/* @__PURE__ */ new Set()), z = Array.from(G).map((O) => O.props.value).join(";");
8857
8857
  return /* @__PURE__ */ u(yo, { ...m, children: /* @__PURE__ */ K(
8858
8858
  mv,
8859
8859
  {
8860
8860
  required: v,
8861
8861
  scope: t,
8862
- trigger: h,
8862
+ trigger: g,
8863
8863
  onTriggerChange: w,
8864
8864
  valueNode: y,
8865
8865
  onValueNodeChange: x,
@@ -8872,10 +8872,10 @@ var uv = [" ", "Enter", "ArrowUp", "ArrowDown"], fv = [" ", "Enter"], je = "Sele
8872
8872
  onOpenChange: R,
8873
8873
  dir: T,
8874
8874
  triggerPointerDownPosRef: V,
8875
- disabled: g,
8875
+ disabled: h,
8876
8876
  children: [
8877
8877
  /* @__PURE__ */ u(bn.Provider, { scope: t, children: /* @__PURE__ */ u(
8878
- gv,
8878
+ hv,
8879
8879
  {
8880
8880
  scope: e.__scopeSelect,
8881
8881
  onNativeOptionAdd: s.useCallback((O) => {
@@ -8900,7 +8900,7 @@ var uv = [" ", "Enter", "ArrowUp", "ArrowDown"], fv = [" ", "Enter"], je = "Sele
8900
8900
  autoComplete: p,
8901
8901
  value: L,
8902
8902
  onChange: (O) => F(O.target.value),
8903
- disabled: g,
8903
+ disabled: h,
8904
8904
  form: b,
8905
8905
  children: [
8906
8906
  L === void 0 ? /* @__PURE__ */ u("option", { value: "" }) : null,
@@ -8916,8 +8916,8 @@ var uv = [" ", "Enter", "ArrowUp", "ArrowDown"], fv = [" ", "Enter"], je = "Sele
8916
8916
  uc.displayName = je;
8917
8917
  var fc = "SelectTrigger", pc = s.forwardRef(
8918
8918
  (e, t) => {
8919
- const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = yn(n), i = Be(fc, n), c = i.disabled || o, l = U(t, i.onTriggerChange), d = wn(n), f = s.useRef("touch"), [p, g, v] = Fc((m) => {
8920
- const h = d().filter((x) => !x.disabled), w = h.find((x) => x.value === i.value), y = Vc(h, m, w);
8919
+ const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = yn(n), i = Be(fc, n), c = i.disabled || o, l = U(t, i.onTriggerChange), d = wn(n), f = s.useRef("touch"), [p, h, v] = Fc((m) => {
8920
+ const g = d().filter((x) => !x.disabled), w = g.find((x) => x.value === i.value), y = Vc(g, m, w);
8921
8921
  y !== void 0 && i.onValueChange(y.value);
8922
8922
  }), b = (m) => {
8923
8923
  c || (i.onOpenChange(!0), v()), m && (i.triggerPointerDownPosRef.current = {
@@ -8946,19 +8946,19 @@ var fc = "SelectTrigger", pc = s.forwardRef(
8946
8946
  }),
8947
8947
  onPointerDown: A(r.onPointerDown, (m) => {
8948
8948
  f.current = m.pointerType;
8949
- const h = m.target;
8950
- h.hasPointerCapture(m.pointerId) && h.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (b(m), m.preventDefault());
8949
+ const g = m.target;
8950
+ g.hasPointerCapture(m.pointerId) && g.releasePointerCapture(m.pointerId), m.button === 0 && m.ctrlKey === !1 && m.pointerType === "mouse" && (b(m), m.preventDefault());
8951
8951
  }),
8952
8952
  onKeyDown: A(r.onKeyDown, (m) => {
8953
- const h = p.current !== "";
8954
- !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && g(m.key), !(h && m.key === " ") && uv.includes(m.key) && (b(), m.preventDefault());
8953
+ const g = p.current !== "";
8954
+ !(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && h(m.key), !(g && m.key === " ") && uv.includes(m.key) && (b(), m.preventDefault());
8955
8955
  })
8956
8956
  }
8957
8957
  ) });
8958
8958
  }
8959
8959
  );
8960
8960
  pc.displayName = fc;
8961
- var mc = "SelectValue", gc = s.forwardRef(
8961
+ var mc = "SelectValue", hc = s.forwardRef(
8962
8962
  (e, t) => {
8963
8963
  const { __scopeSelect: n, className: o, style: r, children: a, placeholder: i = "", ...c } = e, l = Be(mc, n), { onValueNodeHasChildrenChange: d } = l, f = a !== void 0, p = U(t, l.onValueNodeChange);
8964
8964
  return ae(() => {
@@ -8974,14 +8974,14 @@ var mc = "SelectValue", gc = s.forwardRef(
8974
8974
  );
8975
8975
  }
8976
8976
  );
8977
- gc.displayName = mc;
8978
- var vv = "SelectIcon", hc = s.forwardRef(
8977
+ hc.displayName = mc;
8978
+ var vv = "SelectIcon", gc = s.forwardRef(
8979
8979
  (e, t) => {
8980
8980
  const { __scopeSelect: n, children: o, ...r } = e;
8981
8981
  return /* @__PURE__ */ u($.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
8982
8982
  }
8983
8983
  );
8984
- hc.displayName = vv;
8984
+ gc.displayName = vv;
8985
8985
  var bv = "SelectPortal", vc = (e) => /* @__PURE__ */ u(wt, { asChild: !0, ...e });
8986
8986
  vc.displayName = bv;
8987
8987
  var Ye = "SelectContent", bc = s.forwardRef(
@@ -9000,7 +9000,7 @@ var Ye = "SelectContent", bc = s.forwardRef(
9000
9000
  }
9001
9001
  );
9002
9002
  bc.displayName = Ye;
9003
- var he = 10, [wc, We] = lt(Ye), wv = "SelectContentImpl", yv = /* @__PURE__ */ rv("SelectContent.RemoveScroll"), yc = s.forwardRef(
9003
+ var ge = 10, [wc, We] = lt(Ye), wv = "SelectContentImpl", yv = /* @__PURE__ */ rv("SelectContent.RemoveScroll"), yc = s.forwardRef(
9004
9004
  (e, t) => {
9005
9005
  const {
9006
9006
  __scopeSelect: n,
@@ -9015,11 +9015,11 @@ var he = 10, [wc, We] = lt(Ye), wv = "SelectContentImpl", yv = /* @__PURE__ */ r
9015
9015
  align: d,
9016
9016
  alignOffset: f,
9017
9017
  arrowPadding: p,
9018
- collisionBoundary: g,
9018
+ collisionBoundary: h,
9019
9019
  collisionPadding: v,
9020
9020
  sticky: b,
9021
9021
  hideWhenDetached: m,
9022
- avoidCollisions: h,
9022
+ avoidCollisions: g,
9023
9023
  //
9024
9024
  ...w
9025
9025
  } = e, y = Be(Ye, n), [x, C] = s.useState(null), [E, T] = s.useState(null), N = U(t, (M) => C(M)), [R, L] = s.useState(null), [F, V] = s.useState(
@@ -9085,11 +9085,11 @@ var he = 10, [wc, We] = lt(Ye), wv = "SelectContentImpl", yv = /* @__PURE__ */ r
9085
9085
  align: d,
9086
9086
  alignOffset: f,
9087
9087
  arrowPadding: p,
9088
- collisionBoundary: g,
9088
+ collisionBoundary: h,
9089
9089
  collisionPadding: v,
9090
9090
  sticky: b,
9091
9091
  hideWhenDetached: m,
9092
- avoidCollisions: h
9092
+ avoidCollisions: g
9093
9093
  } : {};
9094
9094
  return /* @__PURE__ */ u(
9095
9095
  wc,
@@ -9170,30 +9170,30 @@ var he = 10, [wc, We] = lt(Ye), wv = "SelectContentImpl", yv = /* @__PURE__ */ r
9170
9170
  );
9171
9171
  yc.displayName = wv;
9172
9172
  var xv = "SelectItemAlignedPosition", xc = s.forwardRef((e, t) => {
9173
- const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Be(Ye, n), i = We(Ye, n), [c, l] = s.useState(null), [d, f] = s.useState(null), p = U(t, (N) => f(N)), g = wn(n), v = s.useRef(!1), b = s.useRef(!0), { viewport: m, selectedItem: h, selectedItemText: w, focusSelectedItem: y } = i, x = s.useCallback(() => {
9174
- if (a.trigger && a.valueNode && c && d && m && h && w) {
9173
+ const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Be(Ye, n), i = We(Ye, n), [c, l] = s.useState(null), [d, f] = s.useState(null), p = U(t, (N) => f(N)), h = wn(n), v = s.useRef(!1), b = s.useRef(!0), { viewport: m, selectedItem: g, selectedItemText: w, focusSelectedItem: y } = i, x = s.useCallback(() => {
9174
+ if (a.trigger && a.valueNode && c && d && m && g && w) {
9175
9175
  const N = a.trigger.getBoundingClientRect(), R = d.getBoundingClientRect(), L = a.valueNode.getBoundingClientRect(), F = w.getBoundingClientRect();
9176
9176
  if (a.dir !== "rtl") {
9177
- const Z = F.left - R.left, J = L.left - Z, me = N.left - J, ze = N.width + me, Sn = Math.max(ze, R.width), Rn = window.innerWidth - he, En = wr(J, [
9178
- he,
9177
+ const Z = F.left - R.left, J = L.left - Z, me = N.left - J, ze = N.width + me, Sn = Math.max(ze, R.width), Rn = window.innerWidth - ge, En = wr(J, [
9178
+ ge,
9179
9179
  // Prevents the content from going off the starting edge of the
9180
9180
  // viewport. It may still go off the ending edge, but this can be
9181
9181
  // controlled by the user since they may want to manage overflow in a
9182
9182
  // specific way.
9183
9183
  // https://github.com/radix-ui/primitives/issues/2049
9184
- Math.max(he, Rn - Sn)
9184
+ Math.max(ge, Rn - Sn)
9185
9185
  ]);
9186
9186
  c.style.minWidth = ze + "px", c.style.left = En + "px";
9187
9187
  } else {
9188
- const Z = R.right - F.right, J = window.innerWidth - L.right - Z, me = window.innerWidth - N.right - J, ze = N.width + me, Sn = Math.max(ze, R.width), Rn = window.innerWidth - he, En = wr(J, [
9189
- he,
9190
- Math.max(he, Rn - Sn)
9188
+ const Z = R.right - F.right, J = window.innerWidth - L.right - Z, me = window.innerWidth - N.right - J, ze = N.width + me, Sn = Math.max(ze, R.width), Rn = window.innerWidth - ge, En = wr(J, [
9189
+ ge,
9190
+ Math.max(ge, Rn - Sn)
9191
9191
  ]);
9192
9192
  c.style.minWidth = ze + "px", c.style.right = En + "px";
9193
9193
  }
9194
- const V = g(), W = window.innerHeight - he * 2, G = m.scrollHeight, I = window.getComputedStyle(d), z = parseInt(I.borderTopWidth, 10), O = parseInt(I.paddingTop, 10), B = parseInt(I.borderBottomWidth, 10), S = parseInt(I.paddingBottom, 10), _ = z + O + G + S + B, Q = Math.min(h.offsetHeight * 5, _), te = window.getComputedStyle(m), oe = parseInt(te.paddingTop, 10), j = parseInt(te.paddingBottom, 10), X = N.top + N.height / 2 - he, de = W - X, se = h.offsetHeight / 2, M = h.offsetTop + se, q = z + O + M, ne = _ - q;
9194
+ const V = h(), W = window.innerHeight - ge * 2, G = m.scrollHeight, I = window.getComputedStyle(d), z = parseInt(I.borderTopWidth, 10), O = parseInt(I.paddingTop, 10), B = parseInt(I.borderBottomWidth, 10), S = parseInt(I.paddingBottom, 10), _ = z + O + G + S + B, Q = Math.min(g.offsetHeight * 5, _), te = window.getComputedStyle(m), oe = parseInt(te.paddingTop, 10), j = parseInt(te.paddingBottom, 10), X = N.top + N.height / 2 - ge, de = W - X, se = g.offsetHeight / 2, M = g.offsetTop + se, q = z + O + M, ne = _ - q;
9195
9195
  if (q <= X) {
9196
- const Z = V.length > 0 && h === V[V.length - 1].ref.current;
9196
+ const Z = V.length > 0 && g === V[V.length - 1].ref.current;
9197
9197
  c.style.bottom = "0px";
9198
9198
  const J = d.clientHeight - m.offsetTop - m.offsetHeight, me = Math.max(
9199
9199
  de,
@@ -9202,7 +9202,7 @@ var xv = "SelectItemAlignedPosition", xc = s.forwardRef((e, t) => {
9202
9202
  ), ze = q + me;
9203
9203
  c.style.height = ze + "px";
9204
9204
  } else {
9205
- const Z = V.length > 0 && h === V[0].ref.current;
9205
+ const Z = V.length > 0 && g === V[0].ref.current;
9206
9206
  c.style.top = "0px";
9207
9207
  const me = Math.max(
9208
9208
  X,
@@ -9211,16 +9211,16 @@ var xv = "SelectItemAlignedPosition", xc = s.forwardRef((e, t) => {
9211
9211
  ) + ne;
9212
9212
  c.style.height = me + "px", m.scrollTop = q - X + m.offsetTop;
9213
9213
  }
9214
- c.style.margin = `${he}px 0`, c.style.minHeight = Q + "px", c.style.maxHeight = W + "px", o?.(), requestAnimationFrame(() => v.current = !0);
9214
+ c.style.margin = `${ge}px 0`, c.style.minHeight = Q + "px", c.style.maxHeight = W + "px", o?.(), requestAnimationFrame(() => v.current = !0);
9215
9215
  }
9216
9216
  }, [
9217
- g,
9217
+ h,
9218
9218
  a.trigger,
9219
9219
  a.valueNode,
9220
9220
  c,
9221
9221
  d,
9222
9222
  m,
9223
- h,
9223
+ g,
9224
9224
  w,
9225
9225
  a.dir,
9226
9226
  o
@@ -9278,7 +9278,7 @@ var Cv = "SelectPopperPosition", Yn = s.forwardRef((e, t) => {
9278
9278
  const {
9279
9279
  __scopeSelect: n,
9280
9280
  align: o = "start",
9281
- collisionPadding: r = he,
9281
+ collisionPadding: r = ge,
9282
9282
  ...a
9283
9283
  } = e, i = yn(n);
9284
9284
  return /* @__PURE__ */ u(
@@ -9337,11 +9337,11 @@ var [Sv, _o] = lt(Ye, {}), Xn = "SelectViewport", Cc = s.forwardRef(
9337
9337
  ...r.style
9338
9338
  },
9339
9339
  onScroll: A(r.onScroll, (d) => {
9340
- const f = d.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: g } = i;
9341
- if (g?.current && p) {
9340
+ const f = d.currentTarget, { contentWrapper: p, shouldExpandOnScrollRef: h } = i;
9341
+ if (h?.current && p) {
9342
9342
  const v = Math.abs(l.current - f.scrollTop);
9343
9343
  if (v > 0) {
9344
- const b = window.innerHeight - he * 2, m = parseFloat(p.style.minHeight), h = parseFloat(p.style.height), w = Math.max(m, h);
9344
+ const b = window.innerHeight - ge * 2, m = parseFloat(p.style.minHeight), g = parseFloat(p.style.height), w = Math.max(m, g);
9345
9345
  if (w < b) {
9346
9346
  const y = w + v, x = Math.min(b, y), C = y - x;
9347
9347
  p.style.height = x + "px", p.style.bottom === "0px" && (f.scrollTop = C > 0 ? C : 0, p.style.justifyContent = "flex-end");
@@ -9378,10 +9378,10 @@ var qt = "SelectItem", [Nv, Tc] = lt(qt), Pc = s.forwardRef(
9378
9378
  disabled: r = !1,
9379
9379
  textValue: a,
9380
9380
  ...i
9381
- } = e, c = Be(qt, n), l = We(qt, n), d = c.value === o, [f, p] = s.useState(a ?? ""), [g, v] = s.useState(!1), b = U(
9381
+ } = e, c = Be(qt, n), l = We(qt, n), d = c.value === o, [f, p] = s.useState(a ?? ""), [h, v] = s.useState(!1), b = U(
9382
9382
  t,
9383
9383
  (y) => l.itemRefCallback?.(y, o, r)
9384
- ), m = ve(), h = s.useRef("touch"), w = () => {
9384
+ ), m = ve(), g = s.useRef("touch"), w = () => {
9385
9385
  r || (c.onValueChange(o), c.onOpenChange(!1));
9386
9386
  };
9387
9387
  if (o === "")
@@ -9411,8 +9411,8 @@ var qt = "SelectItem", [Nv, Tc] = lt(qt), Pc = s.forwardRef(
9411
9411
  {
9412
9412
  role: "option",
9413
9413
  "aria-labelledby": m,
9414
- "data-highlighted": g ? "" : void 0,
9415
- "aria-selected": d && g,
9414
+ "data-highlighted": h ? "" : void 0,
9415
+ "aria-selected": d && h,
9416
9416
  "data-state": d ? "checked" : "unchecked",
9417
9417
  "aria-disabled": r || void 0,
9418
9418
  "data-disabled": r ? "" : void 0,
@@ -9422,16 +9422,16 @@ var qt = "SelectItem", [Nv, Tc] = lt(qt), Pc = s.forwardRef(
9422
9422
  onFocus: A(i.onFocus, () => v(!0)),
9423
9423
  onBlur: A(i.onBlur, () => v(!1)),
9424
9424
  onClick: A(i.onClick, () => {
9425
- h.current !== "mouse" && w();
9425
+ g.current !== "mouse" && w();
9426
9426
  }),
9427
9427
  onPointerUp: A(i.onPointerUp, () => {
9428
- h.current === "mouse" && w();
9428
+ g.current === "mouse" && w();
9429
9429
  }),
9430
9430
  onPointerDown: A(i.onPointerDown, (y) => {
9431
- h.current = y.pointerType;
9431
+ g.current = y.pointerType;
9432
9432
  }),
9433
9433
  onPointerMove: A(i.onPointerMove, (y) => {
9434
- h.current = y.pointerType, r ? l.onItemLeave?.() : h.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
9434
+ g.current = y.pointerType, r ? l.onItemLeave?.() : g.current === "mouse" && y.currentTarget.focus({ preventScroll: !0 });
9435
9435
  }),
9436
9436
  onPointerLeave: A(i.onPointerLeave, (y) => {
9437
9437
  y.currentTarget === document.activeElement && l.onItemLeave?.();
@@ -9450,7 +9450,7 @@ var qt = "SelectItem", [Nv, Tc] = lt(qt), Pc = s.forwardRef(
9450
9450
  Pc.displayName = qt;
9451
9451
  var pt = "SelectItemText", Mc = s.forwardRef(
9452
9452
  (e, t) => {
9453
- const { __scopeSelect: n, className: o, style: r, ...a } = e, i = Be(pt, n), c = We(pt, n), l = Tc(pt, n), d = hv(pt, n), [f, p] = s.useState(null), g = U(
9453
+ const { __scopeSelect: n, className: o, style: r, ...a } = e, i = Be(pt, n), c = We(pt, n), l = Tc(pt, n), d = gv(pt, n), [f, p] = s.useState(null), h = U(
9454
9454
  t,
9455
9455
  (w) => p(w),
9456
9456
  l.onItemTextChange,
@@ -9458,9 +9458,9 @@ var pt = "SelectItemText", Mc = s.forwardRef(
9458
9458
  ), v = f?.textContent, b = s.useMemo(
9459
9459
  () => /* @__PURE__ */ u("option", { value: l.value, disabled: l.disabled, children: v }, l.value),
9460
9460
  [l.disabled, l.value, v]
9461
- ), { onNativeOptionAdd: m, onNativeOptionRemove: h } = d;
9462
- return ae(() => (m(b), () => h(b)), [m, h, b]), /* @__PURE__ */ K(Ne, { children: [
9463
- /* @__PURE__ */ u($.span, { id: l.textId, ...a, ref: g }),
9461
+ ), { onNativeOptionAdd: m, onNativeOptionRemove: g } = d;
9462
+ return ae(() => (m(b), () => g(b)), [m, g, b]), /* @__PURE__ */ K(Ne, { children: [
9463
+ /* @__PURE__ */ u($.span, { id: l.textId, ...a, ref: h }),
9464
9464
  l.isSelected && i.valueNode && !i.valueNodeHasChildren ? vt.createPortal(a.children, i.valueNode) : null
9465
9465
  ] });
9466
9466
  }
@@ -9614,13 +9614,13 @@ function Vc(e, t, n) {
9614
9614
  function Av(e, t) {
9615
9615
  return e.map((n, o) => e[(t + o) % e.length]);
9616
9616
  }
9617
- var Iv = uc, _v = pc, kv = gc, Dv = hc, Ov = vc, Lv = bc, $v = Cc, Fv = Rc, Vv = Nc, Bv = Pc, Wv = Mc, zv = Ic, Gv = _c, Hv = kc, Uv = Oc;
9618
- const Ew = Iv, Nw = Fv, Tw = kv, Kv = s.forwardRef(({ className: e, children: t, variant: n = "default", ...o }, r) => /* @__PURE__ */ K(
9617
+ var Iv = uc, _v = pc, kv = hc, Dv = gc, Ov = vc, Lv = bc, $v = Cc, Fv = Rc, Vv = Nc, Bv = Pc, Wv = Mc, zv = Ic, Gv = _c, Hv = kc, Uv = Oc;
9618
+ const Rw = Iv, Ew = Fv, Nw = kv, Kv = s.forwardRef(({ className: e, children: t, variant: n = "default", ...o }, r) => /* @__PURE__ */ K(
9619
9619
  _v,
9620
9620
  {
9621
9621
  ref: r,
9622
9622
  className: P(
9623
- "flex h-10 w-full items-center justify-between rounded-md border bg-card px-3 py-2 font-sans text-body text-primary transition-colors",
9623
+ "bg-card text-body text-primary flex h-10 w-full items-center justify-between rounded-md border px-3 py-2 font-sans transition-colors",
9624
9624
  "placeholder:text-tertiary",
9625
9625
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
9626
9626
  "disabled:cursor-not-allowed disabled:opacity-50",
@@ -9706,7 +9706,7 @@ const jv = s.forwardRef(({ className: e, children: t, position: n = "popper", ..
9706
9706
  {
9707
9707
  ref: r,
9708
9708
  className: P(
9709
- "relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-border bg-card font-sans text-primary shadow-md",
9709
+ "border-border bg-card text-primary relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border font-sans shadow-md",
9710
9710
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
9711
9711
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
9712
9712
  "data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
@@ -9739,7 +9739,7 @@ const Yv = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
9739
9739
  {
9740
9740
  ref: n,
9741
9741
  className: P(
9742
- "py-1.5 pl-8 pr-2 text-small font-normal text-tertiary",
9742
+ "text-small text-tertiary py-1.5 pl-8 pr-2 font-normal",
9743
9743
  e
9744
9744
  ),
9745
9745
  ...t
@@ -9751,7 +9751,7 @@ const Xv = s.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__
9751
9751
  {
9752
9752
  ref: o,
9753
9753
  className: P(
9754
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-body outline-none",
9754
+ "text-body relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 outline-none",
9755
9755
  "focus:bg-vanilla focus:text-primary",
9756
9756
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
9757
9757
  e
@@ -9781,7 +9781,7 @@ const qv = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
9781
9781
  Uv,
9782
9782
  {
9783
9783
  ref: n,
9784
- className: P("-mx-1 my-1 h-px bg-border", e),
9784
+ className: P("bg-border -mx-1 my-1 h-px", e),
9785
9785
  ...t
9786
9786
  }
9787
9787
  ));
@@ -9799,7 +9799,7 @@ var xn = "Switch", [Zv] = ue(xn), [Qv, Jv] = Zv(xn), zc = s.forwardRef(
9799
9799
  onCheckedChange: d,
9800
9800
  form: f,
9801
9801
  ...p
9802
- } = e, [g, v] = s.useState(null), b = U(t, (x) => v(x)), m = s.useRef(!1), h = g ? f || !!g.closest("form") : !0, [w, y] = be({
9802
+ } = e, [h, v] = s.useState(null), b = U(t, (x) => v(x)), m = s.useRef(!1), g = h ? f || !!h.closest("form") : !0, [w, y] = be({
9803
9803
  prop: r,
9804
9804
  defaultProp: a ?? !1,
9805
9805
  onChange: d,
@@ -9820,14 +9820,14 @@ var xn = "Switch", [Zv] = ue(xn), [Qv, Jv] = Zv(xn), zc = s.forwardRef(
9820
9820
  ...p,
9821
9821
  ref: b,
9822
9822
  onClick: A(e.onClick, (x) => {
9823
- y((C) => !C), h && (m.current = x.isPropagationStopped(), m.current || x.stopPropagation());
9823
+ y((C) => !C), g && (m.current = x.isPropagationStopped(), m.current || x.stopPropagation());
9824
9824
  })
9825
9825
  }
9826
9826
  ),
9827
- h && /* @__PURE__ */ u(
9827
+ g && /* @__PURE__ */ u(
9828
9828
  Uc,
9829
9829
  {
9830
- control: g,
9830
+ control: h,
9831
9831
  bubbles: !m.current,
9832
9832
  name: o,
9833
9833
  value: l,
@@ -9908,7 +9908,7 @@ const ob = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
9908
9908
  {
9909
9909
  className: P(
9910
9910
  "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
9911
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2",
9911
+ "focus-visible:ring-sunflower focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
9912
9912
  "disabled:cursor-not-allowed disabled:opacity-50",
9913
9913
  "data-[state=checked]:bg-sunflower data-[state=unchecked]:bg-contrast",
9914
9914
  e
@@ -9928,7 +9928,7 @@ const ob = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
9928
9928
  ));
9929
9929
  ob.displayName = "Switch";
9930
9930
  const rb = ee(
9931
- "w-full caption-bottom border-collapse font-sans text-body",
9931
+ "text-body w-full caption-bottom border-collapse font-sans",
9932
9932
  {
9933
9933
  variants: {
9934
9934
  variant: {
@@ -9945,7 +9945,7 @@ const rb = ee(
9945
9945
  size: "default"
9946
9946
  }
9947
9947
  }
9948
- ), ab = ee("border-b border-border bg-alt", {
9948
+ ), ab = ee("border-border bg-alt border-b", {
9949
9949
  variants: {},
9950
9950
  defaultVariants: {}
9951
9951
  }), sb = ee("", {
@@ -9954,19 +9954,19 @@ const rb = ee(
9954
9954
  }), ib = ee("transition-colors", {
9955
9955
  variants: {
9956
9956
  variant: {
9957
- default: "border-b border-border hover:bg-alt/50",
9958
- striped: "border-b border-border even:bg-alt/30 hover:bg-alt"
9957
+ default: "border-border hover:bg-alt/50 border-b",
9958
+ striped: "border-border even:bg-alt/30 hover:bg-alt border-b"
9959
9959
  }
9960
9960
  },
9961
9961
  defaultVariants: {
9962
9962
  variant: "default"
9963
9963
  }
9964
9964
  }), cb = ee(
9965
- "text-left align-middle font-sans text-small font-normal text-primary [&:has([role=checkbox])]:pr-0",
9965
+ "text-small text-primary text-left align-middle font-sans font-normal [&:has([role=checkbox])]:pr-0",
9966
9966
  {
9967
9967
  variants: {
9968
9968
  sortable: {
9969
- true: "cursor-pointer select-none hover:bg-contrast",
9969
+ true: "hover:bg-contrast cursor-pointer select-none",
9970
9970
  false: ""
9971
9971
  },
9972
9972
  size: {
@@ -9980,7 +9980,7 @@ const rb = ee(
9980
9980
  }
9981
9981
  }
9982
9982
  ), lb = ee(
9983
- "align-middle text-secondary [&:has([role=checkbox])]:pr-0",
9983
+ "text-secondary align-middle [&:has([role=checkbox])]:pr-0",
9984
9984
  {
9985
9985
  variants: {
9986
9986
  size: {
@@ -10033,7 +10033,7 @@ const pb = s.forwardRef(
10033
10033
  {
10034
10034
  ref: n,
10035
10035
  className: P(
10036
- "border-t border-border bg-alt font-normal text-primary",
10036
+ "border-border bg-alt text-primary border-t font-normal",
10037
10037
  e
10038
10038
  ),
10039
10039
  ...t
@@ -10052,7 +10052,7 @@ const mb = s.forwardRef(
10052
10052
  )
10053
10053
  );
10054
10054
  mb.displayName = "TableRow";
10055
- const gb = s.forwardRef(
10055
+ const hb = s.forwardRef(
10056
10056
  ({
10057
10057
  className: e,
10058
10058
  children: t,
@@ -10114,8 +10114,8 @@ const gb = s.forwardRef(
10114
10114
  );
10115
10115
  }
10116
10116
  );
10117
- gb.displayName = "TableHead";
10118
- const hb = s.forwardRef(
10117
+ hb.displayName = "TableHead";
10118
+ const gb = s.forwardRef(
10119
10119
  ({ className: e, ...t }, n) => {
10120
10120
  const { size: o } = s.useContext(ko);
10121
10121
  return /* @__PURE__ */ u(
@@ -10128,17 +10128,17 @@ const hb = s.forwardRef(
10128
10128
  );
10129
10129
  }
10130
10130
  );
10131
- hb.displayName = "TableCell";
10131
+ gb.displayName = "TableCell";
10132
10132
  const vb = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
10133
10133
  "caption",
10134
10134
  {
10135
10135
  ref: n,
10136
- className: P("mt-4 text-small text-tertiary", e),
10136
+ className: P("text-small text-tertiary mt-4", e),
10137
10137
  ...t
10138
10138
  }
10139
10139
  ));
10140
10140
  vb.displayName = "TableCaption";
10141
- function Pw({
10141
+ function Tw({
10142
10142
  data: e,
10143
10143
  initialSortKey: t = null,
10144
10144
  initialSortDirection: n = "asc"
@@ -10147,13 +10147,13 @@ function Pw({
10147
10147
  r((f) => f === d ? (i((p) => p === "asc" ? "desc" : p === "desc" ? (r(null), null) : "asc"), f) : (i("asc"), d));
10148
10148
  }, []);
10149
10149
  return { sortedData: s.useMemo(() => !o || !a ? e : [...e].sort((d, f) => {
10150
- const p = d[o], g = f[o];
10151
- if (p === g) return 0;
10150
+ const p = d[o], h = f[o];
10151
+ if (p === h) return 0;
10152
10152
  let v = 0;
10153
- return typeof p == "string" && typeof g == "string" ? v = p.localeCompare(g) : typeof p == "number" && typeof g == "number" ? v = p - g : v = String(p).localeCompare(String(g)), a === "asc" ? v : -v;
10153
+ return typeof p == "string" && typeof h == "string" ? v = p.localeCompare(h) : typeof p == "number" && typeof h == "number" ? v = p - h : v = String(p).localeCompare(String(h)), a === "asc" ? v : -v;
10154
10154
  }), [e, o, a]), sortKey: o, sortDirection: a, handleSort: c };
10155
10155
  }
10156
- function Mw({
10156
+ function Pw({
10157
10157
  data: e,
10158
10158
  filterKeys: t
10159
10159
  }) {
@@ -10188,12 +10188,12 @@ const bb = s.forwardRef(
10188
10188
  );
10189
10189
  bb.displayName = "Tabs";
10190
10190
  const wb = ee(
10191
- "inline-flex items-center font-sans text-body transition-colors",
10191
+ "text-body inline-flex items-center font-sans transition-colors",
10192
10192
  {
10193
10193
  variants: {
10194
10194
  variant: {
10195
- default: "gap-1 border-b border-border",
10196
- pills: "gap-2 rounded-pill bg-alt p-1"
10195
+ default: "border-border gap-1 border-b",
10196
+ pills: "rounded-pill bg-alt gap-2 p-1"
10197
10197
  }
10198
10198
  },
10199
10199
  defaultVariants: {
@@ -10213,12 +10213,12 @@ const wb = ee(
10213
10213
  );
10214
10214
  yb.displayName = "TabList";
10215
10215
  const xb = ee(
10216
- "inline-flex items-center justify-center whitespace-nowrap font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sunflower focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
10216
+ "focus-visible:ring-sunflower inline-flex items-center justify-center whitespace-nowrap font-sans font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
10217
10217
  {
10218
10218
  variants: {
10219
10219
  variant: {
10220
- default: "border-b-2 border-transparent px-4 py-2 text-secondary hover:text-primary data-[state=active]:border-sunflower data-[state=active]:text-primary",
10221
- pills: "rounded-pill px-4 py-1.5 text-secondary hover:text-primary data-[state=active]:bg-card data-[state=active]:text-primary data-[state=active]:shadow-sm"
10220
+ default: "text-secondary hover:text-primary data-[state=active]:border-sunflower data-[state=active]:text-primary border-b-2 border-transparent px-4 py-2",
10221
+ pills: "rounded-pill text-secondary hover:text-primary data-[state=active]:bg-card data-[state=active]:text-primary px-4 py-1.5 data-[state=active]:shadow-sm"
10222
10222
  },
10223
10223
  size: {
10224
10224
  sm: "text-small",
@@ -10253,9 +10253,9 @@ Cb.displayName = "TabTrigger";
10253
10253
  const Sb = ee("font-sans", {
10254
10254
  variants: {
10255
10255
  size: {
10256
- sm: "mt-3 text-small",
10257
- default: "mt-4 text-body",
10258
- lg: "mt-6 text-body"
10256
+ sm: "text-small mt-3",
10257
+ default: "text-body mt-4",
10258
+ lg: "text-body mt-6"
10259
10259
  }
10260
10260
  },
10261
10261
  defaultVariants: {
@@ -10316,7 +10316,7 @@ const Eb = ee("font-sans", {
10316
10316
  );
10317
10317
  Nb.displayName = "Text";
10318
10318
  const Tb = ee(
10319
- "flex min-h-[80px] w-full rounded-md border bg-card px-3 py-2 font-sans text-body text-primary transition-colors placeholder:text-tertiary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
10319
+ "bg-card text-body text-primary placeholder:text-tertiary flex min-h-[80px] w-full rounded-md border px-3 py-2 font-sans transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
10320
10320
  {
10321
10321
  variants: {
10322
10322
  variant: {
@@ -10354,7 +10354,7 @@ var Do = "ToastProvider", [Oo, Mb, Ab] = an("Toast"), [Xc] = ue("Toast", [Ab]),
10354
10354
  swipeDirection: r = "right",
10355
10355
  swipeThreshold: a = 50,
10356
10356
  children: i
10357
- } = e, [c, l] = s.useState(null), [d, f] = s.useState(0), p = s.useRef(!1), g = s.useRef(!1);
10357
+ } = e, [c, l] = s.useState(null), [d, f] = s.useState(0), p = s.useRef(!1), h = s.useRef(!1);
10358
10358
  return n.trim() || console.error(
10359
10359
  `Invalid prop \`label\` supplied to \`${Do}\`. Expected non-empty \`string\`.`
10360
10360
  ), /* @__PURE__ */ u(Oo.Provider, { scope: t, children: /* @__PURE__ */ u(
@@ -10371,7 +10371,7 @@ var Do = "ToastProvider", [Oo, Mb, Ab] = an("Toast"), [Xc] = ue("Toast", [Ab]),
10371
10371
  onToastAdd: s.useCallback(() => f((v) => v + 1), []),
10372
10372
  onToastRemove: s.useCallback(() => f((v) => v - 1), []),
10373
10373
  isFocusedToastEscapeKeyDownRef: p,
10374
- isClosePausedRef: g,
10374
+ isClosePausedRef: h,
10375
10375
  children: i
10376
10376
  }
10377
10377
  ) });
@@ -10384,15 +10384,15 @@ var Zc = "ToastViewport", _b = ["F8"], Jn = "toast.viewportPause", eo = "toast.v
10384
10384
  hotkey: o = _b,
10385
10385
  label: r = "Notifications ({hotkey})",
10386
10386
  ...a
10387
- } = e, i = Cn(Zc, n), c = Mb(n), l = s.useRef(null), d = s.useRef(null), f = s.useRef(null), p = s.useRef(null), g = U(t, p, i.onViewportChange), v = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = i.toastCount > 0;
10387
+ } = e, i = Cn(Zc, n), c = Mb(n), l = s.useRef(null), d = s.useRef(null), f = s.useRef(null), p = s.useRef(null), h = U(t, p, i.onViewportChange), v = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = i.toastCount > 0;
10388
10388
  s.useEffect(() => {
10389
- const h = (w) => {
10389
+ const g = (w) => {
10390
10390
  o.length !== 0 && o.every((x) => w[x] || w.code === x) && p.current?.focus();
10391
10391
  };
10392
- return document.addEventListener("keydown", h), () => document.removeEventListener("keydown", h);
10392
+ return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
10393
10393
  }, [o]), s.useEffect(() => {
10394
- const h = l.current, w = p.current;
10395
- if (b && h && w) {
10394
+ const g = l.current, w = p.current;
10395
+ if (b && g && w) {
10396
10396
  const y = () => {
10397
10397
  if (!i.isClosePausedRef.current) {
10398
10398
  const T = new CustomEvent(Jn);
@@ -10404,33 +10404,33 @@ var Zc = "ToastViewport", _b = ["F8"], Jn = "toast.viewportPause", eo = "toast.v
10404
10404
  w.dispatchEvent(T), i.isClosePausedRef.current = !1;
10405
10405
  }
10406
10406
  }, C = (T) => {
10407
- !h.contains(T.relatedTarget) && x();
10407
+ !g.contains(T.relatedTarget) && x();
10408
10408
  }, E = () => {
10409
- h.contains(document.activeElement) || x();
10409
+ g.contains(document.activeElement) || x();
10410
10410
  };
10411
- return h.addEventListener("focusin", y), h.addEventListener("focusout", C), h.addEventListener("pointermove", y), h.addEventListener("pointerleave", E), window.addEventListener("blur", y), window.addEventListener("focus", x), () => {
10412
- h.removeEventListener("focusin", y), h.removeEventListener("focusout", C), h.removeEventListener("pointermove", y), h.removeEventListener("pointerleave", E), window.removeEventListener("blur", y), window.removeEventListener("focus", x);
10411
+ return g.addEventListener("focusin", y), g.addEventListener("focusout", C), g.addEventListener("pointermove", y), g.addEventListener("pointerleave", E), window.addEventListener("blur", y), window.addEventListener("focus", x), () => {
10412
+ g.removeEventListener("focusin", y), g.removeEventListener("focusout", C), g.removeEventListener("pointermove", y), g.removeEventListener("pointerleave", E), window.removeEventListener("blur", y), window.removeEventListener("focus", x);
10413
10413
  };
10414
10414
  }
10415
10415
  }, [b, i.isClosePausedRef]);
10416
10416
  const m = s.useCallback(
10417
- ({ tabbingDirection: h }) => {
10417
+ ({ tabbingDirection: g }) => {
10418
10418
  const y = c().map((x) => {
10419
10419
  const C = x.ref.current, E = [C, ...Ub(C)];
10420
- return h === "forwards" ? E : E.reverse();
10420
+ return g === "forwards" ? E : E.reverse();
10421
10421
  });
10422
- return (h === "forwards" ? y.reverse() : y).flat();
10422
+ return (g === "forwards" ? y.reverse() : y).flat();
10423
10423
  },
10424
10424
  [c]
10425
10425
  );
10426
10426
  return s.useEffect(() => {
10427
- const h = p.current;
10428
- if (h) {
10427
+ const g = p.current;
10428
+ if (g) {
10429
10429
  const w = (y) => {
10430
10430
  const x = y.altKey || y.ctrlKey || y.metaKey;
10431
10431
  if (y.key === "Tab" && !x) {
10432
10432
  const E = document.activeElement, T = y.shiftKey;
10433
- if (y.target === h && T) {
10433
+ if (y.target === g && T) {
10434
10434
  d.current?.focus();
10435
10435
  return;
10436
10436
  }
@@ -10438,7 +10438,7 @@ var Zc = "ToastViewport", _b = ["F8"], Jn = "toast.viewportPause", eo = "toast.v
10438
10438
  Fn(L.slice(F + 1)) ? y.preventDefault() : T ? d.current?.focus() : f.current?.focus();
10439
10439
  }
10440
10440
  };
10441
- return h.addEventListener("keydown", w), () => h.removeEventListener("keydown", w);
10441
+ return g.addEventListener("keydown", w), () => g.removeEventListener("keydown", w);
10442
10442
  }
10443
10443
  }, [c, m]), /* @__PURE__ */ K(
10444
10444
  kl,
@@ -10454,23 +10454,23 @@ var Zc = "ToastViewport", _b = ["F8"], Jn = "toast.viewportPause", eo = "toast.v
10454
10454
  {
10455
10455
  ref: d,
10456
10456
  onFocusFromOutsideViewport: () => {
10457
- const h = m({
10457
+ const g = m({
10458
10458
  tabbingDirection: "forwards"
10459
10459
  });
10460
- Fn(h);
10460
+ Fn(g);
10461
10461
  }
10462
10462
  }
10463
10463
  ),
10464
- /* @__PURE__ */ u(Oo.Slot, { scope: n, children: /* @__PURE__ */ u($.ol, { tabIndex: -1, ...a, ref: g }) }),
10464
+ /* @__PURE__ */ u(Oo.Slot, { scope: n, children: /* @__PURE__ */ u($.ol, { tabIndex: -1, ...a, ref: h }) }),
10465
10465
  b && /* @__PURE__ */ u(
10466
10466
  to,
10467
10467
  {
10468
10468
  ref: f,
10469
10469
  onFocusFromOutsideViewport: () => {
10470
- const h = m({
10470
+ const g = m({
10471
10471
  tabbingDirection: "backwards"
10472
10472
  });
10473
- Fn(h);
10473
+ Fn(g);
10474
10474
  }
10475
10475
  }
10476
10476
  )
@@ -10551,11 +10551,11 @@ var [$b, Fb] = Xc(Et, {
10551
10551
  onResume: d,
10552
10552
  onSwipeStart: f,
10553
10553
  onSwipeMove: p,
10554
- onSwipeCancel: g,
10554
+ onSwipeCancel: h,
10555
10555
  onSwipeEnd: v,
10556
10556
  ...b
10557
- } = e, m = Cn(Et, n), [h, w] = s.useState(null), y = U(t, (I) => w(I)), x = s.useRef(null), C = s.useRef(null), E = r || m.duration, T = s.useRef(0), N = s.useRef(E), R = s.useRef(0), { onToastAdd: L, onToastRemove: F } = m, V = ie(() => {
10558
- h?.contains(document.activeElement) && m.viewport?.focus(), i();
10557
+ } = e, m = Cn(Et, n), [g, w] = s.useState(null), y = U(t, (I) => w(I)), x = s.useRef(null), C = s.useRef(null), E = r || m.duration, T = s.useRef(0), N = s.useRef(E), R = s.useRef(0), { onToastAdd: L, onToastRemove: F } = m, V = ie(() => {
10558
+ g?.contains(document.activeElement) && m.viewport?.focus(), i();
10559
10559
  }), W = s.useCallback(
10560
10560
  (I) => {
10561
10561
  !I || I === 1 / 0 || (window.clearTimeout(R.current), T.current = (/* @__PURE__ */ new Date()).getTime(), R.current = window.setTimeout(V, I));
@@ -10578,7 +10578,7 @@ var [$b, Fb] = Xc(Et, {
10578
10578
  }, [m.viewport, E, l, d, W]), s.useEffect(() => {
10579
10579
  a && !m.isClosePausedRef.current && W(E);
10580
10580
  }, [a, E, m.isClosePausedRef, W]), s.useEffect(() => (L(), () => F()), [L, F]);
10581
- const G = s.useMemo(() => h ? il(h) : null, [h]);
10581
+ const G = s.useMemo(() => g ? il(g) : null, [g]);
10582
10582
  return m.viewport ? /* @__PURE__ */ K(Ne, { children: [
10583
10583
  G && /* @__PURE__ */ u(
10584
10584
  Bb,
@@ -10629,7 +10629,7 @@ var [$b, Fb] = Xc(Et, {
10629
10629
  discrete: !0
10630
10630
  }) : $t(
10631
10631
  Ob,
10632
- g,
10632
+ h,
10633
10633
  S,
10634
10634
  {
10635
10635
  discrete: !0
@@ -10757,7 +10757,7 @@ function Fn(e) {
10757
10757
  return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
10758
10758
  }
10759
10759
  var Kb = qc, jb = Qc, Yb = el, Xb = tl, qb = nl, Zb = rl, Qb = Lo;
10760
- const Aw = Kb, Jb = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
10760
+ const Mw = Kb, Jb = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
10761
10761
  jb,
10762
10762
  {
10763
10763
  ref: n,
@@ -10804,10 +10804,10 @@ const nw = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
10804
10804
  {
10805
10805
  ref: n,
10806
10806
  className: P(
10807
- "inline-flex h-8 shrink-0 items-center justify-center rounded-pill border border-border bg-transparent px-3 text-sm font-medium",
10807
+ "rounded-pill border-border inline-flex h-8 shrink-0 items-center justify-center border bg-transparent px-3 text-sm font-medium",
10808
10808
  "ring-offset-main transition-colors",
10809
10809
  "hover:bg-alt",
10810
- "focus:outline-none focus:ring-2 focus:ring-sunflower focus:ring-offset-2",
10810
+ "focus:ring-sunflower focus:outline-none focus:ring-2 focus:ring-offset-2",
10811
10811
  "disabled:pointer-events-none disabled:opacity-50",
10812
10812
  "group-[.error]:border-error/30 group-[.error]:hover:border-error/50 group-[.error]:hover:bg-error/10 group-[.error]:focus:ring-error",
10813
10813
  e
@@ -10821,9 +10821,9 @@ const ow = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ K(
10821
10821
  {
10822
10822
  ref: n,
10823
10823
  className: P(
10824
- "absolute right-2 top-2 rounded-sm p-1 text-secondary opacity-0 transition-opacity",
10824
+ "text-secondary absolute right-2 top-2 rounded-sm p-1 opacity-0 transition-opacity",
10825
10825
  "hover:text-primary",
10826
- "focus:opacity-100 focus:outline-none focus:ring-2 focus:ring-sunflower",
10826
+ "focus:ring-sunflower focus:opacity-100 focus:outline-none focus:ring-2",
10827
10827
  "group-hover:opacity-100",
10828
10828
  "group-[.error]:text-error/70 group-[.error]:hover:text-error group-[.error]:focus:ring-error group-[.error]:focus:ring-offset-error",
10829
10829
  e
@@ -10850,154 +10850,88 @@ const aw = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
10850
10850
  qb,
10851
10851
  {
10852
10852
  ref: n,
10853
- className: P("text-sm text-secondary", e),
10853
+ className: P("text-secondary text-sm", e),
10854
10854
  ...t
10855
10855
  }
10856
10856
  ));
10857
10857
  aw.displayName = "ToastDescription";
10858
- const sw = {
10859
- extend: {
10860
- colors: {
10861
- // Primary brand colors
10862
- sunflower: {
10863
- DEFAULT: "#FFBE26",
10864
- hover: "#E5AB22"
10865
- },
10866
- "lemon-meringue": "#FFF8A2",
10867
- vanilla: "#FFFCD0",
10868
- eggshell: "#FFFDE8",
10869
- // Grayscale palette
10870
- primary: "#1A1A1A",
10871
- secondary: "#4A4A4A",
10872
- tertiary: "#6A6A6A",
10873
- white: "#FFFFFF",
10874
- main: "#FAFAFA",
10875
- alt: "#F5F5F5",
10876
- card: "#F9F9F9",
10877
- contrast: "#EFEFEF",
10878
- border: "#E5E5E5",
10879
- // Complementary colors (use sparingly)
10880
- "warm-purple": "#721B5D",
10881
- "cool-purple": "#9B4ED8",
10882
- "electric-blue": "#0080FF",
10883
- "deep-blue": "#002FA7",
10884
- // Semantic colors
10885
- error: "#DC2626"
10886
- },
10887
- fontFamily: {
10888
- display: ["Libre Baskerville", "serif"],
10889
- sans: ["Work Sans", "sans-serif"],
10890
- mono: ["IBM Plex Mono", "monospace"]
10891
- },
10892
- fontSize: {
10893
- // Hero heading (Libre Baskerville only, 60pt+)
10894
- hero: ["3.75rem", { lineHeight: "1.1", letterSpacing: "-0.02em" }],
10895
- // Headings (Work Sans)
10896
- h1: ["2.5rem", { lineHeight: "1.025", letterSpacing: "-0.04em" }],
10897
- h2: ["1.875rem", { lineHeight: "1.067", letterSpacing: "-0.03em" }],
10898
- h3: ["1.5625rem", { lineHeight: "1.08", letterSpacing: "-0.02em" }],
10899
- h4: ["1.5625rem", { lineHeight: "1.08", letterSpacing: "-0.01em" }],
10900
- // Body text (Work Sans)
10901
- lead: ["1.25rem", { lineHeight: "1.1", letterSpacing: "-0.02em" }],
10902
- "semi-lead": ["0.9375rem", { lineHeight: "1.6", letterSpacing: "0" }],
10903
- "body-lg": ["0.875rem", { lineHeight: "1.25", letterSpacing: "0.01em" }],
10904
- body: ["1rem", { lineHeight: "1.5", letterSpacing: "0" }],
10905
- descriptive: ["0.75rem", { lineHeight: "1.75", letterSpacing: "0.04em" }],
10906
- // Labels (Work Sans)
10907
- small: ["0.875rem", { lineHeight: "1.5", letterSpacing: "0.01em" }],
10908
- label: ["0.75rem", { lineHeight: "1.4", letterSpacing: "0.02em" }],
10909
- "label-sm": ["0.625rem", { lineHeight: "2.4", letterSpacing: "0.14em" }]
10910
- },
10911
- borderRadius: {
10912
- pill: "9999px"
10913
- },
10914
- spacing: {
10915
- "btn-x": "2.5rem",
10916
- "btn-y": "1rem"
10917
- }
10918
- }
10919
- }, Iw = {
10920
- content: [],
10921
- theme: sw,
10922
- plugins: []
10923
- };
10924
10858
  export {
10925
- xh as ActionsMenuButton,
10926
- dw as AlertDialog,
10927
- hf as AlertDialogAction,
10859
+ xg as ActionsMenuButton,
10860
+ lw as AlertDialog,
10861
+ gf as AlertDialogAction,
10928
10862
  vf as AlertDialogCancel,
10929
10863
  uf as AlertDialogContent,
10930
- gf as AlertDialogDescription,
10864
+ hf as AlertDialogDescription,
10931
10865
  pf as AlertDialogFooter,
10932
10866
  ff as AlertDialogHeader,
10933
10867
  Da as AlertDialogOverlay,
10934
10868
  lf as AlertDialogPortal,
10935
10869
  mf as AlertDialogTitle,
10936
- uw as AlertDialogTrigger,
10870
+ dw as AlertDialogTrigger,
10937
10871
  wf as Badge,
10938
10872
  cf as Button,
10939
10873
  xf as Card,
10940
10874
  Nf as Checkbox,
10941
- fw as ContextMenu,
10942
- xg as ContextMenuCheckboxItem,
10943
- wg as ContextMenuContent,
10944
- mw as ContextMenuGroup,
10945
- yg as ContextMenuItem,
10946
- Sg as ContextMenuLabel,
10947
- hg as ContextMenuPortal,
10875
+ uw as ContextMenu,
10876
+ xh as ContextMenuCheckboxItem,
10877
+ wh as ContextMenuContent,
10878
+ pw as ContextMenuGroup,
10879
+ yh as ContextMenuItem,
10880
+ Sh as ContextMenuLabel,
10881
+ gh as ContextMenuPortal,
10948
10882
  hw as ContextMenuRadioGroup,
10949
- Cg as ContextMenuRadioItem,
10950
- Rg as ContextMenuSeparator,
10951
- Eg as ContextMenuShortcut,
10952
- gw as ContextMenuSub,
10953
- bg as ContextMenuSubContent,
10954
- vg as ContextMenuSubTrigger,
10955
- pw as ContextMenuTrigger,
10956
- Tg as Divider,
10957
- vw as DropdownMenu,
10958
- hh as DropdownMenuCheckboxItem,
10959
- mh as DropdownMenuContent,
10960
- ww as DropdownMenuGroup,
10961
- gh as DropdownMenuItem,
10962
- bh as DropdownMenuLabel,
10963
- uh as DropdownMenuPortal,
10964
- xw as DropdownMenuRadioGroup,
10965
- vh as DropdownMenuRadioItem,
10966
- wh as DropdownMenuSeparator,
10967
- yh as DropdownMenuShortcut,
10968
- yw as DropdownMenuSub,
10969
- ph as DropdownMenuSubContent,
10970
- fh as DropdownMenuSubTrigger,
10971
- bw as DropdownMenuTrigger,
10972
- Sh as Eyebrow,
10973
- Mh as FormField,
10883
+ Ch as ContextMenuRadioItem,
10884
+ Rh as ContextMenuSeparator,
10885
+ Eh as ContextMenuShortcut,
10886
+ mw as ContextMenuSub,
10887
+ bh as ContextMenuSubContent,
10888
+ vh as ContextMenuSubTrigger,
10889
+ fw as ContextMenuTrigger,
10890
+ Th as Divider,
10891
+ gw as DropdownMenu,
10892
+ gg as DropdownMenuCheckboxItem,
10893
+ mg as DropdownMenuContent,
10894
+ bw as DropdownMenuGroup,
10895
+ hg as DropdownMenuItem,
10896
+ bg as DropdownMenuLabel,
10897
+ ug as DropdownMenuPortal,
10898
+ yw as DropdownMenuRadioGroup,
10899
+ vg as DropdownMenuRadioItem,
10900
+ wg as DropdownMenuSeparator,
10901
+ yg as DropdownMenuShortcut,
10902
+ ww as DropdownMenuSub,
10903
+ pg as DropdownMenuSubContent,
10904
+ fg as DropdownMenuSubTrigger,
10905
+ vw as DropdownMenuTrigger,
10906
+ Sg as Eyebrow,
10907
+ Mg as FormField,
10974
10908
  qi as FormMessage,
10975
- _h as Heading,
10976
- Dh as Input,
10909
+ _g as Heading,
10910
+ Dg as Input,
10977
10911
  Xi as Label,
10978
- Lh as Link,
10979
- Cw as Modal,
10980
- Rw as ModalClose,
10981
- Vh as ModalContent,
10982
- Gh as ModalDescription,
10983
- Wh as ModalFooter,
10984
- Bh as ModalHeader,
10912
+ Lg as Link,
10913
+ xw as Modal,
10914
+ Sw as ModalClose,
10915
+ Vg as ModalContent,
10916
+ Gg as ModalDescription,
10917
+ Wg as ModalFooter,
10918
+ Bg as ModalHeader,
10985
10919
  Zi as ModalOverlay,
10986
- $h as ModalPortal,
10987
- zh as ModalTitle,
10988
- Sw as ModalTrigger,
10920
+ $g as ModalPortal,
10921
+ zg as ModalTitle,
10922
+ Cw as ModalTrigger,
10989
10923
  nv as RadioGroup,
10990
10924
  ov as RadioGroupItem,
10991
- Ew as Select,
10925
+ Rw as Select,
10992
10926
  jv as SelectContent,
10993
- Nw as SelectGroup,
10927
+ Ew as SelectGroup,
10994
10928
  Xv as SelectItem,
10995
10929
  Yv as SelectLabel,
10996
10930
  Wc as SelectScrollDownButton,
10997
10931
  Bc as SelectScrollUpButton,
10998
10932
  qv as SelectSeparator,
10999
10933
  Kv as SelectTrigger,
11000
- Tw as SelectValue,
10934
+ Nw as SelectValue,
11001
10935
  ob as Switch,
11002
10936
  Rb as TabContent,
11003
10937
  yb as TabList,
@@ -11005,9 +10939,9 @@ export {
11005
10939
  db as Table,
11006
10940
  fb as TableBody,
11007
10941
  vb as TableCaption,
11008
- hb as TableCell,
10942
+ gb as TableCell,
11009
10943
  pb as TableFooter,
11010
- gb as TableHead,
10944
+ hb as TableHead,
11011
10945
  ub as TableHeader,
11012
10946
  mb as TableRow,
11013
10947
  bb as Tabs,
@@ -11017,7 +10951,7 @@ export {
11017
10951
  nw as ToastAction,
11018
10952
  ow as ToastClose,
11019
10953
  aw as ToastDescription,
11020
- Aw as ToastProvider,
10954
+ Mw as ToastProvider,
11021
10955
  rw as ToastTitle,
11022
10956
  Jb as ToastViewport,
11023
10957
  df as alertDialogContentVariants,
@@ -11025,14 +10959,13 @@ export {
11025
10959
  lo as buttonVariants,
11026
10960
  yf as cardVariants,
11027
10961
  P as cn,
11028
- Ng as dividerVariants,
11029
- Iw as egComponentsPreset,
11030
- Ch as eyebrowVariants,
11031
- Ah as headingVariants,
11032
- kh as inputVariants,
11033
- Ph as labelVariants,
11034
- Oh as linkVariants,
11035
- Fh as modalContentVariants,
10962
+ Nh as dividerVariants,
10963
+ Cg as eyebrowVariants,
10964
+ Ag as headingVariants,
10965
+ kg as inputVariants,
10966
+ Pg as labelVariants,
10967
+ Og as linkVariants,
10968
+ Fg as modalContentVariants,
11036
10969
  Sb as tabContentVariants,
11037
10970
  wb as tabListVariants,
11038
10971
  xb as tabTriggerVariants,
@@ -11040,6 +10973,6 @@ export {
11040
10973
  Eb as textVariants,
11041
10974
  Tb as textareaVariants,
11042
10975
  ew as toastVariants,
11043
- Mw as useFilterableTable,
11044
- Pw as useSortableTable
10976
+ Pw as useFilterableTable,
10977
+ Tw as useSortableTable
11045
10978
  };