@moises.ai/design-system 3.12.2 → 3.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], eu = [" ", "Enter"], jt = "Sele
31
31
  disabled: g,
32
32
  required: v,
33
33
  form: C
34
- } = n, m = kr(t), [y, k] = h.useState(null), [w, E] = h.useState(null), [R, S] = h.useState(!1), N = ja(u), [B, D] = lr({
34
+ } = n, m = kr(t), [y, k] = h.useState(null), [S, E] = h.useState(null), [R, w] = h.useState(!1), N = ja(u), [B, D] = lr({
35
35
  prop: s,
36
36
  defaultProp: o ?? !1,
37
37
  onChange: i,
@@ -49,10 +49,10 @@ var $d = [" ", "Enter", "ArrowUp", "ArrowDown"], eu = [" ", "Enter"], jt = "Sele
49
49
  scope: t,
50
50
  trigger: y,
51
51
  onTriggerChange: k,
52
- valueNode: w,
52
+ valueNode: S,
53
53
  onValueNodeChange: E,
54
54
  valueNodeHasChildren: R,
55
- onValueNodeHasChildrenChange: S,
55
+ onValueNodeHasChildrenChange: w,
56
56
  contentId: Ss(),
57
57
  value: O,
58
58
  onValueChange: T,
@@ -105,8 +105,8 @@ vo.displayName = jt;
105
105
  var ko = "SelectTrigger", yo = h.forwardRef(
106
106
  (n, t) => {
107
107
  const { __scopeSelect: r, disabled: s = !1, ...o } = n, i = kr(r), l = Nt(ko, r), c = l.disabled || s, d = De(t, l.onTriggerChange), u = vr(r), p = h.useRef("touch"), [A, g, v] = Lo((m) => {
108
- const y = u().filter((E) => !E.disabled), k = y.find((E) => E.value === l.value), w = Vo(y, m, k);
109
- w !== void 0 && l.onValueChange(w.value);
108
+ const y = u().filter((E) => !E.disabled), k = y.find((E) => E.value === l.value), S = Vo(y, m, k);
109
+ S !== void 0 && l.onValueChange(S.value);
110
110
  }), C = (m) => {
111
111
  c || (l.onOpenChange(!0), v()), m && (l.triggerPointerDownPosRef.current = {
112
112
  x: Math.round(m.pageX),
@@ -210,7 +210,7 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
210
210
  avoidCollisions: y,
211
211
  //
212
212
  ...k
213
- } = n, w = Nt(Gt, r), [E, R] = h.useState(null), [S, N] = h.useState(null), B = De(t, (L) => R(L)), [D, O] = h.useState(null), [T, J] = h.useState(
213
+ } = n, S = Nt(Gt, r), [E, R] = h.useState(null), [w, N] = h.useState(null), B = De(t, (L) => R(L)), [D, O] = h.useState(null), [T, J] = h.useState(
214
214
  null
215
215
  ), Q = vr(r), [F, M] = h.useState(!1), P = h.useRef(!1);
216
216
  h.useEffect(() => {
@@ -220,9 +220,9 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
220
220
  (L) => {
221
221
  const [ce, ...Se] = Q().map((ie) => ie.ref.current), [de] = Se.slice(-1), oe = document.activeElement;
222
222
  for (const ie of L)
223
- if (ie === oe || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === ce && S && (S.scrollTop = 0), ie === de && S && (S.scrollTop = S.scrollHeight), ie == null || ie.focus(), document.activeElement !== oe)) return;
223
+ if (ie === oe || (ie == null || ie.scrollIntoView({ block: "nearest" }), ie === ce && w && (w.scrollTop = 0), ie === de && w && (w.scrollTop = w.scrollHeight), ie == null || ie.focus(), document.activeElement !== oe)) return;
224
224
  },
225
- [Q, S]
225
+ [Q, w]
226
226
  ), H = h.useCallback(
227
227
  () => U([D, E]),
228
228
  [U, D, E]
@@ -230,7 +230,7 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
230
230
  h.useEffect(() => {
231
231
  F && H();
232
232
  }, [F, H]);
233
- const { onOpenChange: V, triggerPointerDownPosRef: W } = w;
233
+ const { onOpenChange: V, triggerPointerDownPosRef: W } = S;
234
234
  h.useEffect(() => {
235
235
  if (E) {
236
236
  let L = { x: 0, y: 0 };
@@ -259,15 +259,15 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
259
259
  }), me = h.useCallback(
260
260
  (L, ce, Se) => {
261
261
  const de = !P.current && !Se;
262
- (w.value !== void 0 && w.value === ce || de) && (O(L), de && (P.current = !0));
262
+ (S.value !== void 0 && S.value === ce || de) && (O(L), de && (P.current = !0));
263
263
  },
264
- [w.value]
264
+ [S.value]
265
265
  ), Te = h.useCallback(() => E == null ? void 0 : E.focus(), [E]), ne = h.useCallback(
266
266
  (L, ce, Se) => {
267
267
  const de = !P.current && !Se;
268
- (w.value !== void 0 && w.value === ce || de) && J(L);
268
+ (S.value !== void 0 && S.value === ce || de) && J(L);
269
269
  },
270
- [w.value]
270
+ [S.value]
271
271
  ), $ = s === "popper" ? os : Bo, K = $ === os ? {
272
272
  side: c,
273
273
  sideOffset: d,
@@ -285,7 +285,7 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
285
285
  {
286
286
  scope: r,
287
287
  content: E,
288
- viewport: S,
288
+ viewport: w,
289
289
  onViewportChange: N,
290
290
  itemRefCallback: me,
291
291
  selectedItem: D,
@@ -300,13 +300,13 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
300
300
  ql,
301
301
  {
302
302
  asChild: !0,
303
- trapped: w.open,
303
+ trapped: S.open,
304
304
  onMountAutoFocus: (L) => {
305
305
  L.preventDefault();
306
306
  },
307
307
  onUnmountAutoFocus: fe(o, (L) => {
308
308
  var ce;
309
- (ce = w.trigger) == null || ce.focus({ preventScroll: !0 }), L.preventDefault();
309
+ (ce = S.trigger) == null || ce.focus({ preventScroll: !0 }), L.preventDefault();
310
310
  }),
311
311
  children: /* @__PURE__ */ a(
312
312
  Yl,
@@ -316,14 +316,14 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
316
316
  onEscapeKeyDown: i,
317
317
  onPointerDownOutside: l,
318
318
  onFocusOutside: (L) => L.preventDefault(),
319
- onDismiss: () => w.onOpenChange(!1),
319
+ onDismiss: () => S.onOpenChange(!1),
320
320
  children: /* @__PURE__ */ a(
321
321
  $,
322
322
  {
323
323
  role: "listbox",
324
- id: w.contentId,
325
- "data-state": w.open ? "open" : "closed",
326
- dir: w.dir,
324
+ id: S.contentId,
325
+ "data-state": S.open ? "open" : "closed",
326
+ dir: S.dir,
327
327
  onContextMenu: (L) => L.preventDefault(),
328
328
  ...k,
329
329
  ...K,
@@ -360,7 +360,7 @@ var Xe = 10, [Ro, Bt] = dn(Gt), iu = "SelectContentImpl", lu = Xl("SelectContent
360
360
  );
361
361
  No.displayName = iu;
362
362
  var cu = "SelectItemAlignedPosition", Bo = h.forwardRef((n, t) => {
363
- const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Nt(Gt, r), l = Bt(Gt, r), [c, d] = h.useState(null), [u, p] = h.useState(null), A = De(t, (B) => p(B)), g = vr(r), v = h.useRef(!1), C = h.useRef(!0), { viewport: m, selectedItem: y, selectedItemText: k, focusSelectedItem: w } = l, E = h.useCallback(() => {
363
+ const { __scopeSelect: r, onPlaced: s, ...o } = n, i = Nt(Gt, r), l = Bt(Gt, r), [c, d] = h.useState(null), [u, p] = h.useState(null), A = De(t, (B) => p(B)), g = vr(r), v = h.useRef(!1), C = h.useRef(!0), { viewport: m, selectedItem: y, selectedItemText: k, focusSelectedItem: S } = l, E = h.useCallback(() => {
364
364
  if (i.trigger && i.valueNode && c && u && m && y && k) {
365
365
  const B = i.trigger.getBoundingClientRect(), D = u.getBoundingClientRect(), O = i.valueNode.getBoundingClientRect(), T = k.getBoundingClientRect();
366
366
  if (i.dir !== "rtl") {
@@ -416,15 +416,15 @@ var cu = "SelectItemAlignedPosition", Bo = h.forwardRef((n, t) => {
416
416
  s
417
417
  ]);
418
418
  wt(() => E(), [E]);
419
- const [R, S] = h.useState();
419
+ const [R, w] = h.useState();
420
420
  wt(() => {
421
- u && S(window.getComputedStyle(u).zIndex);
421
+ u && w(window.getComputedStyle(u).zIndex);
422
422
  }, [u]);
423
423
  const N = h.useCallback(
424
424
  (B) => {
425
- B && C.current === !0 && (E(), w == null || w(), C.current = !1);
425
+ B && C.current === !0 && (E(), S == null || S(), C.current = !1);
426
426
  },
427
- [E, w]
427
+ [E, S]
428
428
  );
429
429
  return /* @__PURE__ */ a(
430
430
  uu,
@@ -533,7 +533,7 @@ var [uu, zs] = dn(Gt, {}), is = "SelectViewport", xo = h.forwardRef(
533
533
  if (v > 0) {
534
534
  const C = window.innerHeight - Xe * 2, m = parseFloat(A.style.minHeight), y = parseFloat(A.style.height), k = Math.max(m, y);
535
535
  if (k < C) {
536
- const w = k + v, E = Math.min(C, w), R = w - E;
536
+ const S = k + v, E = Math.min(C, S), R = S - E;
537
537
  A.style.height = E + "px", A.style.bottom === "0px" && (p.scrollTop = R > 0 ? R : 0, A.style.justifyContent = "flex-end");
538
538
  }
539
539
  }
@@ -570,9 +570,9 @@ var dr = "SelectItem", [pu, Mo] = dn(dr), Uo = h.forwardRef(
570
570
  ...l
571
571
  } = n, c = Nt(dr, r), d = Bt(dr, r), u = c.value === s, [p, A] = h.useState(i ?? ""), [g, v] = h.useState(!1), C = De(
572
572
  t,
573
- (w) => {
573
+ (S) => {
574
574
  var E;
575
- return (E = d.itemRefCallback) == null ? void 0 : E.call(d, w, s, o);
575
+ return (E = d.itemRefCallback) == null ? void 0 : E.call(d, S, s, o);
576
576
  }
577
577
  ), m = Ss(), y = h.useRef("touch"), k = () => {
578
578
  o || (c.onValueChange(s), c.onOpenChange(!1));
@@ -589,8 +589,8 @@ var dr = "SelectItem", [pu, Mo] = dn(dr), Uo = h.forwardRef(
589
589
  disabled: o,
590
590
  textId: m,
591
591
  isSelected: u,
592
- onItemTextChange: h.useCallback((w) => {
593
- A((E) => E || ((w == null ? void 0 : w.textContent) ?? "").trim());
592
+ onItemTextChange: h.useCallback((S) => {
593
+ A((E) => E || ((S == null ? void 0 : S.textContent) ?? "").trim());
594
594
  }, []),
595
595
  children: /* @__PURE__ */ a(
596
596
  Cr.ItemSlot,
@@ -620,20 +620,20 @@ var dr = "SelectItem", [pu, Mo] = dn(dr), Uo = h.forwardRef(
620
620
  onPointerUp: fe(l.onPointerUp, () => {
621
621
  y.current === "mouse" && k();
622
622
  }),
623
- onPointerDown: fe(l.onPointerDown, (w) => {
624
- y.current = w.pointerType;
623
+ onPointerDown: fe(l.onPointerDown, (S) => {
624
+ y.current = S.pointerType;
625
625
  }),
626
- onPointerMove: fe(l.onPointerMove, (w) => {
626
+ onPointerMove: fe(l.onPointerMove, (S) => {
627
627
  var E;
628
- y.current = w.pointerType, o ? (E = d.onItemLeave) == null || E.call(d) : y.current === "mouse" && w.currentTarget.focus({ preventScroll: !0 });
628
+ y.current = S.pointerType, o ? (E = d.onItemLeave) == null || E.call(d) : y.current === "mouse" && S.currentTarget.focus({ preventScroll: !0 });
629
629
  }),
630
- onPointerLeave: fe(l.onPointerLeave, (w) => {
630
+ onPointerLeave: fe(l.onPointerLeave, (S) => {
631
631
  var E;
632
- w.currentTarget === document.activeElement && ((E = d.onItemLeave) == null || E.call(d));
632
+ S.currentTarget === document.activeElement && ((E = d.onItemLeave) == null || E.call(d));
633
633
  }),
634
- onKeyDown: fe(l.onKeyDown, (w) => {
634
+ onKeyDown: fe(l.onKeyDown, (S) => {
635
635
  var R;
636
- ((R = d.searchRef) == null ? void 0 : R.current) !== "" && w.key === " " || (eu.includes(w.key) && k(), w.key === " " && w.preventDefault());
636
+ ((R = d.searchRef) == null ? void 0 : R.current) !== "" && S.key === " " || (eu.includes(S.key) && k(), S.key === " " && S.preventDefault());
637
637
  })
638
638
  }
639
639
  )
@@ -651,8 +651,8 @@ var Rn = "SelectItemText", Oo = h.forwardRef(
651
651
  (k) => A(k),
652
652
  d.onItemTextChange,
653
653
  (k) => {
654
- var w;
655
- return (w = c.itemTextRefCallback) == null ? void 0 : w.call(c, k, d.value, d.disabled);
654
+ var S;
655
+ return (S = c.itemTextRefCallback) == null ? void 0 : S.call(c, k, d.value, d.disabled);
656
656
  }
657
657
  ), v = p == null ? void 0 : p.textContent, C = h.useMemo(
658
658
  () => /* @__PURE__ */ a("option", { value: d.value, disabled: d.disabled, children: v }, d.value),
@@ -842,7 +842,7 @@ var yu = vo, bu = yo, Iu = Io, Su = So, Eu = Eo, wu = wo, Ru = xo, Nu = Jo, Bu =
842
842
  inverted: v = !1,
843
843
  form: C,
844
844
  ...m
845
- } = n, y = h.useRef(/* @__PURE__ */ new Set()), k = h.useRef(0), E = l === "horizontal" ? Ou : Fu, [R = [], S] = lr({
845
+ } = n, y = h.useRef(/* @__PURE__ */ new Set()), k = h.useRef(0), E = l === "horizontal" ? Ou : Fu, [R = [], w] = lr({
846
846
  prop: p,
847
847
  defaultProp: u,
848
848
  onChange: (J) => {
@@ -863,7 +863,7 @@ var yu = vo, bu = yo, Iu = Io, Su = So, Eu = Eo, wu = wo, Ru = xo, Nu = Jo, Bu =
863
863
  }
864
864
  function T(J, Q, { commit: F } = { commit: !1 }) {
865
865
  const M = Gu(i), P = qu(Math.round((J - s) / i) * i + s, M), U = cr(P, [s, o]);
866
- S((H = []) => {
866
+ w((H = []) => {
867
867
  const V = Wu(H, U, Q);
868
868
  if (ju(V, d * i)) {
869
869
  k.current = V.indexOf(U);
@@ -935,8 +935,8 @@ var [Zo, _o] = Yo(un, {
935
935
  onStepKeyDown: u,
936
936
  ...p
937
937
  } = n, [A, g] = h.useState(null), v = De(t, (E) => g(E)), C = h.useRef(void 0), m = ja(o), y = m === "ltr", k = y && !i || !y && i;
938
- function w(E) {
939
- const R = C.current || A.getBoundingClientRect(), S = [0, R.width], B = Ws(S, k ? [r, s] : [s, r]);
938
+ function S(E) {
939
+ const R = C.current || A.getBoundingClientRect(), w = [0, R.width], B = Ws(w, k ? [r, s] : [s, r]);
940
940
  return C.current = R, B(E - R.left);
941
941
  }
942
942
  return /* @__PURE__ */ a(
@@ -959,19 +959,19 @@ var [Zo, _o] = Yo(un, {
959
959
  "--radix-slider-thumb-transform": "translateX(-50%)"
960
960
  },
961
961
  onSlideStart: (E) => {
962
- const R = w(E.clientX);
962
+ const R = S(E.clientX);
963
963
  l == null || l(R);
964
964
  },
965
965
  onSlideMove: (E) => {
966
- const R = w(E.clientX);
966
+ const R = S(E.clientX);
967
967
  c == null || c(R);
968
968
  },
969
969
  onSlideEnd: () => {
970
970
  C.current = void 0, d == null || d();
971
971
  },
972
972
  onStepKeyDown: (E) => {
973
- const S = qo[k ? "from-left" : "from-right"].includes(E.key);
974
- u == null || u({ event: E, direction: S ? -1 : 1 });
973
+ const w = qo[k ? "from-left" : "from-right"].includes(E.key);
974
+ u == null || u({ event: E, direction: w ? -1 : 1 });
975
975
  }
976
976
  }
977
977
  )
@@ -1113,7 +1113,7 @@ var As = "SliderThumb", ri = h.forwardRef(
1113
1113
  }
1114
1114
  ), Pu = h.forwardRef(
1115
1115
  (n, t) => {
1116
- const { __scopeSlider: r, index: s, name: o, ...i } = n, l = yr(As, r), c = _o(As, r), [d, u] = h.useState(null), p = De(t, (w) => u(w)), A = d ? l.form || !!d.closest("form") : !0, g = $l(d), v = l.values[s], C = v === void 0 ? 0 : ai(v, l.min, l.max), m = Hu(s, l.values.length), y = g == null ? void 0 : g[c.size], k = y ? Lu(y, C, c.direction) : 0;
1116
+ const { __scopeSlider: r, index: s, name: o, ...i } = n, l = yr(As, r), c = _o(As, r), [d, u] = h.useState(null), p = De(t, (S) => u(S)), A = d ? l.form || !!d.closest("form") : !0, g = $l(d), v = l.values[s], C = v === void 0 ? 0 : ai(v, l.min, l.max), m = Hu(s, l.values.length), y = g == null ? void 0 : g[c.size], k = y ? Lu(y, C, c.direction) : 0;
1117
1117
  return h.useEffect(() => {
1118
1118
  if (d)
1119
1119
  return l.thumbs.add(d), () => {
@@ -1424,15 +1424,15 @@ const gi = h.forwardRef((n, t) => {
1424
1424
  h.useEffect(() => m(o), [o]);
1425
1425
  const [y, k] = h.useState(i);
1426
1426
  h.useEffect(() => k(i), [i]);
1427
- const [w, E] = h.useState(l);
1427
+ const [S, E] = h.useState(l);
1428
1428
  h.useEffect(() => E(l), [l]);
1429
- const [R, S] = h.useState(c);
1430
- return h.useEffect(() => S(c), [c]), h.createElement(Ks, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: C, panelBackground: y, radius: w, scaling: R, onAppearanceChange: A, onAccentColorChange: v, onGrayColorChange: m, onPanelBackgroundChange: k, onRadiusChange: E, onScalingChange: S });
1429
+ const [R, w] = h.useState(c);
1430
+ return h.useEffect(() => w(c), [c]), h.createElement(Ks, { ...u, ref: t, isRoot: !0, hasBackground: d, appearance: p, accentColor: g, grayColor: C, panelBackground: y, radius: S, scaling: R, onAppearanceChange: A, onAccentColorChange: v, onGrayColorChange: m, onPanelBackgroundChange: k, onRadiusChange: E, onScalingChange: w });
1431
1431
  });
1432
1432
  gi.displayName = "ThemeRoot";
1433
1433
  const Ks = h.forwardRef((n, t) => {
1434
- const r = h.useContext(ur), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? Le.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? Le.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? Le.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? Le.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? Le.radius.default, scaling: A = (r == null ? void 0 : r.scaling) ?? Le.scaling.default, onAppearanceChange: g = _t, onAccentColorChange: v = _t, onGrayColorChange: C = _t, onPanelBackgroundChange: m = _t, onRadiusChange: y = _t, onScalingChange: k = _t, ...w } = n, E = s ? Ne : "div", R = d === "auto" ? ch(c) : d, S = n.appearance === "light" || n.appearance === "dark", N = i === void 0 ? o || S : i;
1435
- return h.createElement(ur.Provider, { value: h.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: p, scaling: A, onAppearanceChange: g, onAccentColorChange: v, onGrayColorChange: C, onPanelBackgroundChange: m, onRadiusChange: y, onScalingChange: k }), [l, c, d, R, u, p, A, g, v, C, m, y, k]) }, h.createElement(E, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": R, "data-has-background": N ? "true" : "false", "data-panel-background": u, "data-radius": p, "data-scaling": A, ref: t, ...w, className: b("radix-themes", { light: l === "light", dark: l === "dark" }, w.className) }));
1434
+ const r = h.useContext(ur), { asChild: s, isRoot: o, hasBackground: i, appearance: l = (r == null ? void 0 : r.appearance) ?? Le.appearance.default, accentColor: c = (r == null ? void 0 : r.accentColor) ?? Le.accentColor.default, grayColor: d = (r == null ? void 0 : r.resolvedGrayColor) ?? Le.grayColor.default, panelBackground: u = (r == null ? void 0 : r.panelBackground) ?? Le.panelBackground.default, radius: p = (r == null ? void 0 : r.radius) ?? Le.radius.default, scaling: A = (r == null ? void 0 : r.scaling) ?? Le.scaling.default, onAppearanceChange: g = _t, onAccentColorChange: v = _t, onGrayColorChange: C = _t, onPanelBackgroundChange: m = _t, onRadiusChange: y = _t, onScalingChange: k = _t, ...S } = n, E = s ? Ne : "div", R = d === "auto" ? ch(c) : d, w = n.appearance === "light" || n.appearance === "dark", N = i === void 0 ? o || w : i;
1435
+ return h.createElement(ur.Provider, { value: h.useMemo(() => ({ appearance: l, accentColor: c, grayColor: d, resolvedGrayColor: R, panelBackground: u, radius: p, scaling: A, onAppearanceChange: g, onAccentColorChange: v, onGrayColorChange: C, onPanelBackgroundChange: m, onRadiusChange: y, onScalingChange: k }), [l, c, d, R, u, p, A, g, v, C, m, y, k]) }, h.createElement(E, { "data-is-root-theme": o ? "true" : "false", "data-accent-color": c, "data-gray-color": R, "data-has-background": N ? "true" : "false", "data-panel-background": u, "data-radius": p, "data-scaling": A, ref: t, ...S, className: b("radix-themes", { light: l === "light", dark: l === "dark" }, S.className) }));
1436
1436
  });
1437
1437
  Ks.displayName = "ThemeImpl";
1438
1438
  const Tt = (n) => {
@@ -2359,8 +2359,8 @@ const im = "_menuContent_rvu92_1", lm = "_menuSubContent_rvu92_2", cm = "_slideD
2359
2359
  red: Mm,
2360
2360
  cyan: Um
2361
2361
  }, ia = (n) => {
2362
- const t = (r, s = "2", o, i = !0, l) => {
2363
- var c;
2362
+ const t = (r, s = "2", o, i = !0, l, c = !0) => {
2363
+ var d;
2364
2364
  switch (r.type) {
2365
2365
  case "custom":
2366
2366
  return /* @__PURE__ */ a(
@@ -2371,8 +2371,8 @@ const im = "_menuContent_rvu92_1", lm = "_menuSubContent_rvu92_2", cm = "_slideD
2371
2371
  Z.menuCustomRender,
2372
2372
  Z[`menuItem-size-${s}`]
2373
2373
  ),
2374
- onSelect: (d) => {
2375
- i || d.preventDefault();
2374
+ onSelect: (u) => {
2375
+ i || u.preventDefault();
2376
2376
  },
2377
2377
  disabled: r.disabled,
2378
2378
  asChild: !0,
@@ -2420,8 +2420,15 @@ const im = "_menuContent_rvu92_1", lm = "_menuSubContent_rvu92_2", cm = "_slideD
2420
2420
  ]
2421
2421
  }
2422
2422
  ),
2423
- /* @__PURE__ */ a(n.SubContent, { className: Z.menuSubContent, children: (c = r == null ? void 0 : r.children) == null ? void 0 : c.map(
2424
- (d) => t(d, s, o, i, l)
2423
+ /* @__PURE__ */ a(n.SubContent, { className: Z.menuSubContent, children: (d = r == null ? void 0 : r.children) == null ? void 0 : d.map(
2424
+ (u) => t(
2425
+ u,
2426
+ s,
2427
+ o,
2428
+ i,
2429
+ l,
2430
+ c
2431
+ )
2425
2432
  ) })
2426
2433
  ] }, r.key);
2427
2434
  case "item":
@@ -2436,9 +2443,9 @@ const im = "_menuContent_rvu92_1", lm = "_menuSubContent_rvu92_2", cm = "_slideD
2436
2443
  [Z.cyan]: r.color === "cyan" && !r.disabled
2437
2444
  }
2438
2445
  ),
2439
- onSelect: (d) => {
2440
- var u;
2441
- i || d.preventDefault(), (u = r.onClick) == null || u.call(r), o == null || o(r);
2446
+ onSelect: (u) => {
2447
+ var p;
2448
+ i || u.preventDefault(), (p = r.onClick) == null || p.call(r), o == null || o(r);
2442
2449
  },
2443
2450
  disabled: r.disabled,
2444
2451
  children: [
@@ -2461,18 +2468,18 @@ const im = "_menuContent_rvu92_1", lm = "_menuSubContent_rvu92_2", cm = "_slideD
2461
2468
  n.CheckboxItem,
2462
2469
  {
2463
2470
  checked: r.checked,
2464
- onCheckedChange: (d) => {
2465
- var u;
2466
- (u = r.onChange) == null || u.call(r, d), o == null || o({ ...r, checked: d });
2471
+ onCheckedChange: (u) => {
2472
+ var p;
2473
+ (p = r.onChange) == null || p.call(r, u), o == null || o({ ...r, checked: u });
2467
2474
  },
2468
- onSelect: (d) => {
2469
- i || d.preventDefault();
2475
+ onSelect: (u) => {
2476
+ i || u.preventDefault();
2470
2477
  },
2471
2478
  className: b(
2472
2479
  Z.menuItem,
2473
2480
  Z.menuCheckboxItem,
2474
2481
  {
2475
- [Z.menuItemSelected]: r.checked,
2482
+ [Z.menuItemSelected]: r.checked && c,
2476
2483
  [Z[`menuItem-size-${s}`]]: s,
2477
2484
  [Z.red]: r.color === "red" && !r.disabled,
2478
2485
  [Z.cyan]: r.color === "cyan" && !r.disabled
@@ -2888,17 +2895,17 @@ const ff = "_DataTable_kyf7f_1", Cf = "_titleText_kyf7f_23", vf = "_artistText_k
2888
2895
  if (u.length > 1) {
2889
2896
  const p = new Set(u), A = u.map((k) => n[k]).filter(Boolean), g = u.filter(
2890
2897
  (k) => k < i
2891
- ).length, v = i - g, m = [...n.filter((k, w) => !p.has(w))];
2898
+ ).length, v = i - g, m = [...n.filter((k, S) => !p.has(S))];
2892
2899
  return m.splice(v, 0, ...A), m.some(
2893
- (k, w) => {
2900
+ (k, S) => {
2894
2901
  var E;
2895
- return (k == null ? void 0 : k.id) !== ((E = n[w]) == null ? void 0 : E.id);
2902
+ return (k == null ? void 0 : k.id) !== ((E = n[S]) == null ? void 0 : E.id);
2896
2903
  }
2897
2904
  ) ? {
2898
2905
  order: r,
2899
2906
  move_before: i,
2900
2907
  orders: u,
2901
- rowIds: A.map((k, w) => Lt(k, w)).filter(Boolean),
2908
+ rowIds: A.map((k, S) => Lt(k, S)).filter(Boolean),
2902
2909
  mode: "multi"
2903
2910
  } : null;
2904
2911
  }
@@ -3008,7 +3015,7 @@ const ff = "_DataTable_kyf7f_1", Cf = "_titleText_kyf7f_23", vf = "_artistText_k
3008
3015
  u(D), A(D), v(Q), i == null || i(Q, B.activatorEvent);
3009
3016
  },
3010
3017
  [i, m, r, t]
3011
- ), w = x((B) => {
3018
+ ), S = x((B) => {
3012
3019
  var D;
3013
3020
  A((D = B.over) != null && D.id ? String(B.over.id) : null);
3014
3021
  }, []), E = x(
@@ -3053,27 +3060,27 @@ const ff = "_DataTable_kyf7f_1", Cf = "_titleText_kyf7f_23", vf = "_artistText_k
3053
3060
  m,
3054
3061
  t
3055
3062
  ]
3056
- ), S = ee(
3063
+ ), w = ee(
3057
3064
  () => ({
3058
3065
  sensors: C,
3059
3066
  collisionDetection: Kd,
3060
3067
  onDragStart: k,
3061
- onDragOver: w,
3068
+ onDragOver: S,
3062
3069
  onDragCancel: E,
3063
3070
  onDragEnd: R
3064
3071
  }),
3065
- [E, R, w, k, C]
3072
+ [E, R, S, k, C]
3066
3073
  ), N = ee(
3067
3074
  () => ({
3068
3075
  onDragStart: k,
3069
- onDragOver: w,
3076
+ onDragOver: S,
3070
3077
  onDragCancel: E,
3071
3078
  onDragEnd: R
3072
3079
  }),
3073
- [k, w, E, R]
3080
+ [k, S, E, R]
3074
3081
  );
3075
3082
  return {
3076
- dndContextProps: S,
3083
+ dndContextProps: w,
3077
3084
  activeDragRowId: d,
3078
3085
  overDragRowId: p,
3079
3086
  activeDragContext: g,
@@ -3124,22 +3131,22 @@ const ff = "_DataTable_kyf7f_1", Cf = "_titleText_kyf7f_23", vf = "_artistText_k
3124
3131
  )
3125
3132
  }
3126
3133
  ),
3127
- n.map((k, w) => /* @__PURE__ */ a(
3134
+ n.map((k, S) => /* @__PURE__ */ a(
3128
3135
  Tn,
3129
3136
  {
3130
3137
  className: b(q.columnHeaderCell, {
3131
- [q.columnProject]: w === 0,
3132
- [q.dataColumn]: w !== 0,
3138
+ [q.columnProject]: S === 0,
3139
+ [q.dataColumn]: S !== 0,
3133
3140
  [q.mobileVisibleDataColumn]: k.id === s,
3134
3141
  [q.sortedColumn]: Gn(t) === Gn(k.id)
3135
3142
  }),
3136
3143
  children: /* @__PURE__ */ f(I, { align: "center", gap: "3", height: "24px", children: [
3137
- w === 0 && o ? /* @__PURE__ */ a(G, { size: "2", weight: "regular", className: q.headerTextFirst, children: l }) : k.sortable ? /* @__PURE__ */ f(
3144
+ S === 0 && o ? /* @__PURE__ */ a(G, { size: "2", weight: "regular", className: q.headerTextFirst, children: l }) : k.sortable ? /* @__PURE__ */ f(
3138
3145
  "button",
3139
3146
  {
3140
3147
  type: "button",
3141
3148
  className: b(q.sortButton, {
3142
- [q.sortButtonFirst]: w === 0
3149
+ [q.sortButtonFirst]: S === 0
3143
3150
  }),
3144
3151
  onClick: () => m(k.id),
3145
3152
  children: [
@@ -3148,7 +3155,7 @@ const ff = "_DataTable_kyf7f_1", Cf = "_titleText_kyf7f_23", vf = "_artistText_k
3148
3155
  ]
3149
3156
  }
3150
3157
  ) : /* @__PURE__ */ a(G, { size: "2", className: q.headerText, children: k.label }),
3151
- w === 0 && g && /* @__PURE__ */ a(I, { gap: "2", className: q.headerActions, children: g({
3158
+ S === 0 && g && /* @__PURE__ */ a(I, { gap: "2", className: q.headerActions, children: g({
3152
3159
  selectedCount: c,
3153
3160
  total: d,
3154
3161
  anySelected: o,
@@ -3203,11 +3210,11 @@ const mC = we.memo(function({
3203
3210
  renderDataCell: m,
3204
3211
  rowDraggable: y,
3205
3212
  reorderable: k,
3206
- isDragOver: w,
3213
+ isDragOver: S,
3207
3214
  dndScopeId: E
3208
3215
  }) {
3209
3216
  var $;
3210
- const R = te(!1), S = te(!1), N = te(!1), B = te(!1), { listeners: D, setNodeRef: O, transform: T, transition: J, isDragging: Q } = qd({
3217
+ const R = te(!1), w = te(!1), N = te(!1), B = te(!1), { listeners: D, setNodeRef: O, transform: T, transition: J, isDragging: Q } = qd({
3211
3218
  id: r,
3212
3219
  disabled: !ba({ row: t, rowDraggable: y, reorderable: k }),
3213
3220
  data: {
@@ -3221,13 +3228,13 @@ const mC = we.memo(function({
3221
3228
  ...T ? { transform: Zd.Transform.toString(T) } : {},
3222
3229
  ...J ? { transition: J } : {}
3223
3230
  }, M = i ? { ...F, "--row-bg": "var(--aqua-alpha-2)" } : F, P = (K) => {
3224
- if (S.current) {
3225
- S.current = !1;
3231
+ if (w.current) {
3232
+ w.current = !1;
3226
3233
  return;
3227
3234
  }
3228
3235
  K.shiftKey ? (K.preventDefault(), v == null || v(t, s)) : A == null || A(t);
3229
3236
  }, U = (K) => {
3230
- K.pointerType === "touch" && (S.current = !0, K.shiftKey ? v == null || v(t, s) : A == null || A(t));
3237
+ K.pointerType === "touch" && (w.current = !0, K.shiftKey ? v == null || v(t, s) : A == null || A(t));
3231
3238
  }, H = (K) => {
3232
3239
  K.stopPropagation(), K.shiftKey && (K.preventDefault(), R.current = !0, v == null || v(t, s), setTimeout(() => {
3233
3240
  R.current = !1;
@@ -3274,7 +3281,7 @@ const mC = we.memo(function({
3274
3281
  [q.rowSelected]: i,
3275
3282
  [q.showDropdownOnSelect]: me,
3276
3283
  [q.rowDragging]: Q,
3277
- [q.rowDragOver]: ne && w,
3284
+ [q.rowDragOver]: ne && S,
3278
3285
  [q.rowReorderable]: ne
3279
3286
  }),
3280
3287
  style: M,
@@ -3394,7 +3401,7 @@ const mC = we.memo(function({
3394
3401
  overDragRowId: m,
3395
3402
  dndScopeId: y
3396
3403
  }) => {
3397
- const k = t.length + 1 + (d ? 1 : 0), w = x((R) => /* @__PURE__ */ f(I, { align: "center", gap: "3", children: [
3404
+ const k = t.length + 1 + (d ? 1 : 0), S = x((R) => /* @__PURE__ */ f(I, { align: "center", gap: "3", children: [
3398
3405
  /* @__PURE__ */ a(
3399
3406
  Ur,
3400
3407
  {
@@ -3409,9 +3416,9 @@ const mC = we.memo(function({
3409
3416
  /* @__PURE__ */ a(G, { size: "2", className: q.titleText, children: R.title }),
3410
3417
  /* @__PURE__ */ a(G, { size: "1", className: q.artistText, children: R.artist })
3411
3418
  ] })
3412
- ] }), []), E = x((R, S, N) => {
3419
+ ] }), []), E = x((R, w, N) => {
3413
3420
  var T;
3414
- const B = (R == null ? void 0 : R[S.id]) ?? (R == null ? void 0 : R[`${S.id}Formatted`]), D = ((T = S.render) == null ? void 0 : T.call(S, { row: R, value: B, column: S, index: N })) ?? B;
3421
+ const B = (R == null ? void 0 : R[w.id]) ?? (R == null ? void 0 : R[`${w.id}Formatted`]), D = ((T = w.render) == null ? void 0 : T.call(w, { row: R, value: B, column: w, index: N })) ?? B;
3415
3422
  return typeof D == "string" || typeof D == "number" || D == null ? /* @__PURE__ */ a(G, { size: "2", className: q.cellText, children: D }) : D;
3416
3423
  }, []);
3417
3424
  return /* @__PURE__ */ a(oa, { children: /* @__PURE__ */ f(Yd, { items: r, strategy: Xd, children: [
@@ -3423,14 +3430,14 @@ const mC = we.memo(function({
3423
3430
  colSpan: k
3424
3431
  }
3425
3432
  ),
3426
- n.map((R, S) => /* @__PURE__ */ a(
3433
+ n.map((R, w) => /* @__PURE__ */ a(
3427
3434
  mC,
3428
3435
  {
3429
3436
  rowId: R.id,
3430
3437
  row: R,
3431
- rowIndex: S,
3438
+ rowIndex: w,
3432
3439
  columns: t,
3433
- isSelected: s(R, S),
3440
+ isSelected: s(R, w),
3434
3441
  anyRowSelected: o,
3435
3442
  selectedCount: i,
3436
3443
  sortedKey: l,
@@ -3439,7 +3446,7 @@ const mC = we.memo(function({
3439
3446
  onRowClick: u,
3440
3447
  onSelectRow: p,
3441
3448
  onShiftClickRow: A,
3442
- renderProjectCell: w,
3449
+ renderProjectCell: S,
3443
3450
  renderDataCell: E,
3444
3451
  rowDraggable: g,
3445
3452
  reorderable: v,
@@ -3476,10 +3483,10 @@ const mC = we.memo(function({
3476
3483
  rowDraggable: m,
3477
3484
  onRowDragStart: y,
3478
3485
  onRowDragMove: k,
3479
- onRowDragEnd: w,
3486
+ onRowDragEnd: S,
3480
3487
  getDragPreviewLabel: E,
3481
3488
  getDragPreviewCountLabel: R,
3482
- renderDragPreview: S,
3489
+ renderDragPreview: w,
3483
3490
  renderDndContext: N = !0,
3484
3491
  dndScopeId: B,
3485
3492
  ...D
@@ -3545,7 +3552,7 @@ const mC = we.memo(function({
3545
3552
  reorderable: v,
3546
3553
  onReorder: C,
3547
3554
  onRowDragStart: y,
3548
- onRowDragEnd: w,
3555
+ onRowDragEnd: S,
3549
3556
  dndScopeId: B
3550
3557
  }), ie = te(oe);
3551
3558
  ie.current = oe;
@@ -3607,7 +3614,7 @@ const mC = we.memo(function({
3607
3614
  cC,
3608
3615
  {
3609
3616
  model: Se,
3610
- renderDragPreview: S,
3617
+ renderDragPreview: w,
3611
3618
  getDragPreviewLabel: E,
3612
3619
  getDragPreviewCountLabel: R
3613
3620
  }
@@ -3750,13 +3757,14 @@ const Sa = ia(Vc), ln = Ze(
3750
3757
  closeOnSelect: d = !0,
3751
3758
  sideOffset: u = 5,
3752
3759
  matchTriggerWidth: p = !1,
3753
- wrapCloseMenu: A,
3754
- ...g
3760
+ showSelectedItemBackground: A = !0,
3761
+ wrapCloseMenu: g,
3762
+ ...v
3755
3763
  }) => {
3756
- const v = g.open !== void 0, [C, m] = j(!1), y = v ? g.open : C, k = x((S) => {
3757
- var N;
3758
- v || m(S), (N = g == null ? void 0 : g.onOpenChange) == null || N.call(g, S);
3759
- }, [v, g == null ? void 0 : g.onOpenChange]), w = x(() => k(!1), [k]), E = A ? A(w) : w, R = {
3764
+ const C = v.open !== void 0, [m, y] = j(!1), k = C ? v.open : m, S = x((N) => {
3765
+ var B;
3766
+ C || y(N), (B = v == null ? void 0 : v.onOpenChange) == null || B.call(v, N);
3767
+ }, [C, v == null ? void 0 : v.onOpenChange]), E = x(() => S(!1), [S]), R = g ? g(E) : E, w = {
3760
3768
  ...p && {
3761
3769
  width: "var(--radix-dropdown-menu-trigger-width)",
3762
3770
  boxSizing: "border-box"
@@ -3766,9 +3774,9 @@ const Sa = ia(Vc), ln = Ze(
3766
3774
  return /* @__PURE__ */ a(Ie, { children: (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ f(
3767
3775
  Kc,
3768
3776
  {
3769
- ...g,
3770
- open: l ? !1 : y,
3771
- onOpenChange: l ? void 0 : k,
3777
+ ...v,
3778
+ open: l ? !1 : k,
3779
+ onOpenChange: l ? void 0 : S,
3772
3780
  children: [
3773
3781
  /* @__PURE__ */ a(
3774
3782
  Lc,
@@ -3786,27 +3794,28 @@ const Sa = ia(Vc), ln = Ze(
3786
3794
  {
3787
3795
  className: b(Z.menuContent, r),
3788
3796
  size: o,
3789
- side: g.side,
3790
- align: g.align,
3791
- style: R,
3797
+ side: v.side,
3798
+ align: v.align,
3799
+ style: w,
3792
3800
  sideOffset: u,
3793
3801
  alignOffset: 0,
3794
- onCloseAutoFocus: (S) => {
3795
- S.preventDefault();
3802
+ onCloseAutoFocus: (N) => {
3803
+ N.preventDefault();
3796
3804
  },
3797
- onClick: (S) => S.stopPropagation(),
3805
+ onClick: (N) => N.stopPropagation(),
3798
3806
  children: /* @__PURE__ */ a(
3799
3807
  Zt,
3800
3808
  {
3801
3809
  scrollbars: "vertical",
3802
3810
  style: { height: c },
3803
3811
  children: t == null ? void 0 : t.map(
3804
- (S) => Sa(
3805
- S,
3812
+ (N) => Sa(
3813
+ N,
3806
3814
  o,
3807
3815
  i,
3808
3816
  d,
3809
- E
3817
+ R,
3818
+ A
3810
3819
  )
3811
3820
  )
3812
3821
  }
@@ -3817,22 +3826,23 @@ const Sa = ia(Vc), ln = Ze(
3817
3826
  {
3818
3827
  className: b(Z.menuContent, r),
3819
3828
  size: o,
3820
- side: g.side,
3821
- align: g.align,
3822
- style: R,
3829
+ side: v.side,
3830
+ align: v.align,
3831
+ style: w,
3823
3832
  sideOffset: u,
3824
3833
  alignOffset: 0,
3825
- onCloseAutoFocus: (S) => {
3826
- S.preventDefault();
3834
+ onCloseAutoFocus: (N) => {
3835
+ N.preventDefault();
3827
3836
  },
3828
- onClick: (S) => S.stopPropagation(),
3837
+ onClick: (N) => N.stopPropagation(),
3829
3838
  children: t == null ? void 0 : t.map(
3830
- (S) => Sa(
3831
- S,
3839
+ (N) => Sa(
3840
+ N,
3832
3841
  o,
3833
3842
  i,
3834
3843
  d,
3835
- E
3844
+ R,
3845
+ A
3836
3846
  )
3837
3847
  )
3838
3848
  }
@@ -4059,12 +4069,12 @@ function jC({ initialScreen: n, animated: t, children: r }) {
4059
4069
  ), y = x(
4060
4070
  (J) => g(() => [{ name: J || n, params: {} }]),
4061
4071
  [g, n]
4062
- ), k = s.length > 1, w = ee(
4072
+ ), k = s.length > 1, S = ee(
4063
4073
  () => ({ push: v, pop: C, popTo: m, reset: y, canGoBack: k, stack: s }),
4064
4074
  [v, C, m, y, k, s]
4065
4075
  ), E = s[s.length - 1], R = A[E.name];
4066
4076
  if (!R) return null;
4067
- const S = ee(
4077
+ const w = ee(
4068
4078
  () => s.map((J, Q) => {
4069
4079
  var F;
4070
4080
  return (F = A[J.name]) != null && F.keepMounted ? { entry: J, stackIndex: Q } : null;
@@ -4079,7 +4089,7 @@ function jC({ initialScreen: n, animated: t, children: r }) {
4079
4089
  () => ({ name: E.name, params: E.params || {}, setOptions: O }),
4080
4090
  [E.name, E.params, O]
4081
4091
  );
4082
- return /* @__PURE__ */ a(ml.Provider, { value: w, children: /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
4092
+ return /* @__PURE__ */ a(ml.Provider, { value: S, children: /* @__PURE__ */ f("div", { style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }, children: [
4083
4093
  /* @__PURE__ */ a(
4084
4094
  fl,
4085
4095
  {
@@ -4104,7 +4114,7 @@ function jC({ initialScreen: n, animated: t, children: r }) {
4104
4114
  overflow: "hidden"
4105
4115
  },
4106
4116
  children: [
4107
- S.map(({ entry: J, stackIndex: Q }) => {
4117
+ w.map(({ entry: J, stackIndex: Q }) => {
4108
4118
  const F = A[J.name];
4109
4119
  if (!(F != null && F.component)) return null;
4110
4120
  const M = F.component, P = J.name === E.name, U = P ? T : { name: J.name, params: J.params || {}, setOptions: () => {
@@ -4556,8 +4566,8 @@ const cw = Mr, kv = "_sliderRoot_19e7a_23", yv = "_sliderTrack_19e7a_31", bv = "
4556
4566
  }, Rv = ({ onChangeValue: n, volume: t, disabled: r }) => {
4557
4567
  const [s, o] = j(!1), i = te(), l = te(0), c = x((R) => {
4558
4568
  if (R < 1e-3) return -1 / 0;
4559
- const S = 20 * Math.log10(R);
4560
- return S < -60 ? -60 : S;
4569
+ const w = 20 * Math.log10(R);
4570
+ return w < -60 ? -60 : w;
4561
4571
  }, []), d = x((R) => R === -1 / 0 || R <= -60 ? 0 : Math.pow(10, R / 20), []), u = ee(() => {
4562
4572
  const R = c(t);
4563
4573
  return R === -1 / 0 ? -60 : Math.max(-60, Math.min(6, R));
@@ -4583,7 +4593,7 @@ const cw = Mr, kv = "_sliderRoot_19e7a_23", yv = "_sliderTrack_19e7a_31", bv = "
4583
4593
  g();
4584
4594
  }, [g]), k = x(() => {
4585
4595
  n([1]), A();
4586
- }, [n, A]), w = x(() => {
4596
+ }, [n, A]), S = x(() => {
4587
4597
  const R = Date.now();
4588
4598
  R - l.current < 300 && k(), l.current = R;
4589
4599
  }, [k]), E = ee(
@@ -4615,7 +4625,7 @@ const cw = Mr, kv = "_sliderRoot_19e7a_23", yv = "_sliderTrack_19e7a_31", bv = "
4615
4625
  onPointerDown: m,
4616
4626
  onKeyDown: v,
4617
4627
  onBlur: y,
4618
- onClick: w
4628
+ onClick: S
4619
4629
  }
4620
4630
  ) }),
4621
4631
  /* @__PURE__ */ a(
@@ -4703,7 +4713,7 @@ const ca = Ze(function({
4703
4713
  hover: l = !1,
4704
4714
  resetPeakHold: c
4705
4715
  }) {
4706
- const [d, u] = t, p = vs(Ra(d ?? 0)), A = vs(Ra(u ?? 0)), [g, v] = j(!1), C = te(!1), m = te(null), y = te(0), k = te(null), [w, E] = j(0), [R, S] = j(!1), [N, B] = j(!1), [D, O] = j(!1);
4716
+ const [d, u] = t, p = vs(Ra(d ?? 0)), A = vs(Ra(u ?? 0)), [g, v] = j(!1), C = te(!1), m = te(null), y = te(0), k = te(null), [S, E] = j(0), [R, w] = j(!1), [N, B] = j(!1), [D, O] = j(!1);
4707
4717
  le(() => {
4708
4718
  y.current = 0, E(0);
4709
4719
  }, [c]), le(() => () => clearTimeout(k.current), []);
@@ -4712,15 +4722,15 @@ const ca = Ze(function({
4712
4722
  Math.min(100, Na(r) * 100)
4713
4723
  ), J = ks(p), Q = ks(A), F = Math.max(J, Q);
4714
4724
  le(() => {
4715
- F > y.current && (y.current = F, E(F), S(!0), clearTimeout(k.current), k.current = setTimeout(() => {
4716
- S(!1), requestAnimationFrame(() => {
4725
+ F > y.current && (y.current = F, E(F), w(!0), clearTimeout(k.current), k.current = setTimeout(() => {
4726
+ w(!1), requestAnimationFrame(() => {
4717
4727
  requestAnimationFrame(() => {
4718
4728
  y.current = 0, E(0);
4719
4729
  });
4720
4730
  });
4721
4731
  }, 400)), F <= 0 && (y.current = 0, E(0));
4722
4732
  }, [F]);
4723
- const M = Kv(w), P = w > 0, U = x(
4733
+ const M = Kv(S), P = S > 0, U = x(
4724
4734
  (ne) => {
4725
4735
  var K;
4726
4736
  if (!s) return;
@@ -4833,7 +4843,7 @@ const ca = Ze(function({
4833
4843
  {
4834
4844
  className: `${Je.peakDotTop} ${R ? Je.peakRising : ""}`,
4835
4845
  style: {
4836
- left: `min(calc(${w}% + 3px), calc(100% - 3px))`,
4846
+ left: `min(calc(${S}% + 3px), calc(100% - 3px))`,
4837
4847
  background: M,
4838
4848
  opacity: P ? 1 : 0
4839
4849
  }
@@ -4844,7 +4854,7 @@ const ca = Ze(function({
4844
4854
  {
4845
4855
  className: `${Je.peakDotBottom} ${R ? Je.peakRising : ""}`,
4846
4856
  style: {
4847
- left: `min(calc(${w}% + 3px), calc(100% - 3px))`,
4857
+ left: `min(calc(${S}% + 3px), calc(100% - 3px))`,
4848
4858
  background: M,
4849
4859
  opacity: P ? 1 : 0
4850
4860
  }
@@ -5033,10 +5043,10 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5033
5043
  if (E.preventDefault(), E.stopPropagation(), r) return;
5034
5044
  const R = E.wheelDelta ?? -E.deltaY * 25;
5035
5045
  if (!R || Math.abs(R) <= 50) return;
5036
- const S = Date.now();
5037
- if (S - A.current < 100) return;
5046
+ const w = Date.now();
5047
+ if (w - A.current < 100) return;
5038
5048
  const N = R > 0 ? 1 : -1, B = Qa(n, s, N);
5039
- t(B), A.current = S;
5049
+ t(B), A.current = w;
5040
5050
  },
5041
5051
  [t, n, s, r]
5042
5052
  ), v = x(
@@ -5053,7 +5063,7 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5053
5063
  if (!c || r) return;
5054
5064
  const R = u - E.clientY;
5055
5065
  if (Math.abs(R) <= 20) return;
5056
- const S = R > 0 ? 1 : -1, N = Qa(n, s, S);
5066
+ const w = R > 0 ? 1 : -1, N = Qa(n, s, w);
5057
5067
  t(N), p(E.clientY), A.current = Date.now();
5058
5068
  },
5059
5069
  [c, u, n, t, s, r]
@@ -5066,7 +5076,7 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5066
5076
  E.detail === 2 && !r && t(o);
5067
5077
  },
5068
5078
  [t, o, r]
5069
- ), w = x(
5079
+ ), S = x(
5070
5080
  (E) => {
5071
5081
  if (!i || r) return;
5072
5082
  const R = tk(s, E);
@@ -5078,7 +5088,7 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5078
5088
  containerRef: l,
5079
5089
  isDragging: c,
5080
5090
  handleClick: k,
5081
- handleDotClick: w
5091
+ handleDotClick: S
5082
5092
  };
5083
5093
  }, ak = ({
5084
5094
  className: n,
@@ -5099,8 +5109,8 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5099
5109
  defaultDot: d,
5100
5110
  clickableDots: o
5101
5111
  }), v = ee(() => typeof t == "object" && t !== null ? t.position : nk(t, i), [t, i]), { pointerRotation: C, pointerColor: m } = ee(() => rk(v, s), [v, s]), y = (k) => {
5102
- const w = Da[k.color] || Da.neutral, E = k.position === v, R = l === k.position && o;
5103
- return s ? w.default : E ? w.active : R ? w.hover : w.default;
5112
+ const S = Da[k.color] || Da.neutral, E = k.position === v, R = l === k.position && o;
5113
+ return s ? S.default : E ? S.active : R ? S.hover : S.default;
5104
5114
  };
5105
5115
  return /* @__PURE__ */ a(
5106
5116
  "div",
@@ -5146,15 +5156,15 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5146
5156
  }
5147
5157
  ),
5148
5158
  i == null ? void 0 : i.map((k) => {
5149
- const w = bl[k.position];
5150
- if (!w) return null;
5159
+ const S = bl[k.position];
5160
+ if (!S) return null;
5151
5161
  const E = y(k), R = o && !s;
5152
5162
  return /* @__PURE__ */ f(we.Fragment, { children: [
5153
5163
  R && /* @__PURE__ */ a(
5154
5164
  "circle",
5155
5165
  {
5156
- cx: w.x,
5157
- cy: w.y,
5166
+ cx: S.x,
5167
+ cy: S.y,
5158
5168
  r: 4,
5159
5169
  style: {
5160
5170
  cursor: "pointer",
@@ -5162,16 +5172,16 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5162
5172
  },
5163
5173
  onMouseEnter: () => c(k.position),
5164
5174
  onMouseLeave: () => c(null),
5165
- onClick: (S) => {
5166
- S.stopPropagation(), g(k.position);
5175
+ onClick: (w) => {
5176
+ w.stopPropagation(), g(k.position);
5167
5177
  }
5168
5178
  }
5169
5179
  ),
5170
5180
  /* @__PURE__ */ a(
5171
5181
  "circle",
5172
5182
  {
5173
- cx: w.x,
5174
- cy: w.y,
5183
+ cx: S.x,
5184
+ cy: S.y,
5175
5185
  r: 1,
5176
5186
  fill: E,
5177
5187
  style: {
@@ -5185,8 +5195,8 @@ const nr = 19.5, rr = 19.5, Ta = 14, Ja = 18, ek = [
5185
5195
  onMouseLeave: () => {
5186
5196
  R && c(null);
5187
5197
  },
5188
- onClick: (S) => {
5189
- R && (S.stopPropagation(), g(k.position));
5198
+ onClick: (w) => {
5199
+ R && (w.stopPropagation(), g(k.position));
5190
5200
  }
5191
5201
  }
5192
5202
  )
@@ -5432,13 +5442,13 @@ const Wk = "_listCardsItem_rjypk_1", Hk = "_listCardsItemDescriptionWrappable_rj
5432
5442
  style: g,
5433
5443
  ...v
5434
5444
  }) => {
5435
- const C = (i == null ? void 0 : i.id) || o, m = (i == null ? void 0 : i.name) || r, y = (i == null ? void 0 : i.description) || s, k = (i == null ? void 0 : i.image) || t, w = (i == null ? void 0 : i.icon) || c, E = k && (k != null && k.startsWith("url(")) ? k == null ? void 0 : k.substring(4, (k == null ? void 0 : k.length) - 1).replace(/"/g, "") : k, R = (D) => {
5445
+ const C = (i == null ? void 0 : i.id) || o, m = (i == null ? void 0 : i.name) || r, y = (i == null ? void 0 : i.description) || s, k = (i == null ? void 0 : i.image) || t, S = (i == null ? void 0 : i.icon) || c, E = k && (k != null && k.startsWith("url(")) ? k == null ? void 0 : k.substring(4, (k == null ? void 0 : k.length) - 1).replace(/"/g, "") : k, R = (D) => {
5436
5446
  D.stopPropagation(), D.preventDefault(), p == null || p();
5437
- }, S = {
5447
+ }, w = {
5438
5448
  1: { avatar: 60, icon: 15 },
5439
5449
  2: { avatar: 68, icon: 15 },
5440
5450
  3: { avatar: 80, icon: 15 }
5441
- }, N = typeof A == "string" ? parseInt(A, 10) : A, B = S[N] || S[1];
5451
+ }, N = typeof A == "string" ? parseInt(A, 10) : A, B = w[N] || w[1];
5442
5452
  return /* @__PURE__ */ a(
5443
5453
  Fn,
5444
5454
  {
@@ -5473,14 +5483,14 @@ const Wk = "_listCardsItem_rjypk_1", Hk = "_listCardsItemDescriptionWrappable_rj
5473
5483
  ),
5474
5484
  children: /* @__PURE__ */ a(d, { width: B.icon, height: B.icon })
5475
5485
  }
5476
- ) : w ? /* @__PURE__ */ a(
5486
+ ) : S ? /* @__PURE__ */ a(
5477
5487
  "div",
5478
5488
  {
5479
5489
  className: b(
5480
5490
  he.listCardsAvatarIcon,
5481
5491
  he[`listCardsAvatarIconSize${A}`]
5482
5492
  ),
5483
- children: w
5493
+ children: S
5484
5494
  }
5485
5495
  ) : /* @__PURE__ */ a(
5486
5496
  rt,
@@ -5576,8 +5586,8 @@ const Wk = "_listCardsItem_rjypk_1", Hk = "_listCardsItemDescriptionWrappable_rj
5576
5586
  "div",
5577
5587
  {
5578
5588
  className: he.clickableAvatar,
5579
- onClick: d ? (w) => {
5580
- w.stopPropagation(), w.preventDefault(), d(w);
5589
+ onClick: d ? (S) => {
5590
+ S.stopPropagation(), S.preventDefault(), d(S);
5581
5591
  } : void 0,
5582
5592
  children: u ? /* @__PURE__ */ a("div", { className: he.avatarContent, children: u }) : /* @__PURE__ */ a(rt, { src: k, className: he.listCardsAvatar })
5583
5593
  }
@@ -5598,8 +5608,8 @@ const Wk = "_listCardsItem_rjypk_1", Hk = "_listCardsItemDescriptionWrappable_rj
5598
5608
  he.favoriteButton,
5599
5609
  he.seeDetailsButton
5600
5610
  ),
5601
- onClick: (w) => {
5602
- w.stopPropagation(), w.preventDefault(), l(w);
5611
+ onClick: (S) => {
5612
+ S.stopPropagation(), S.preventDefault(), l(S);
5603
5613
  },
5604
5614
  children: i ? /* @__PURE__ */ a(ld, {}) : /* @__PURE__ */ a(cd, {})
5605
5615
  }
@@ -5611,8 +5621,8 @@ const Wk = "_listCardsItem_rjypk_1", Hk = "_listCardsItemDescriptionWrappable_rj
5611
5621
  he.buttonGhost,
5612
5622
  he.seeDetailsButton
5613
5623
  ),
5614
- onClick: (w) => {
5615
- w.stopPropagation(), w.preventDefault(), c(w);
5624
+ onClick: (S) => {
5625
+ S.stopPropagation(), S.preventDefault(), c(S);
5616
5626
  },
5617
5627
  children: p
5618
5628
  }
@@ -5936,7 +5946,7 @@ const Ny = "_content_19cv9_1", By = "_pan_19cv9_13", xy = "_disabled_19cv9_26",
5936
5946
  }));
5937
5947
  },
5938
5948
  [r]
5939
- ), w = x(
5949
+ ), S = x(
5940
5950
  (U) => {
5941
5951
  U.preventDefault(), U.stopPropagation();
5942
5952
  const H = U.wheelDelta ?? -U.deltaY * 25;
@@ -5946,7 +5956,7 @@ const Ny = "_content_19cv9_1", By = "_pan_19cv9_13", xy = "_disabled_19cv9_26",
5946
5956
  },
5947
5957
  [t, k]
5948
5958
  );
5949
- an("wheel", w, l);
5959
+ an("wheel", S, l);
5950
5960
  const E = x(
5951
5961
  (U) => {
5952
5962
  var V;
@@ -5963,7 +5973,7 @@ const Ny = "_content_19cv9_1", By = "_pan_19cv9_13", xy = "_disabled_19cv9_26",
5963
5973
  k(V), p.current = U.clientY;
5964
5974
  },
5965
5975
  [c, t, k]
5966
- ), S = x((U) => {
5976
+ ), w = x((U) => {
5967
5977
  var H, V;
5968
5978
  (V = (H = U.currentTarget) == null ? void 0 : H.releasePointerCapture) == null || V.call(H, U.pointerId), d(!1);
5969
5979
  }, []), N = x(
@@ -6045,8 +6055,8 @@ const Ny = "_content_19cv9_1", By = "_pan_19cv9_13", xy = "_disabled_19cv9_26",
6045
6055
  ),
6046
6056
  onPointerDown: E,
6047
6057
  onPointerMove: R,
6048
- onPointerUp: S,
6049
- onPointerCancel: S,
6058
+ onPointerUp: w,
6059
+ onPointerCancel: w,
6050
6060
  onFocus: () => C(!0),
6051
6061
  onBlur: () => C(!1),
6052
6062
  onKeyDown: B,
@@ -6355,15 +6365,15 @@ const C1 = ({
6355
6365
  onProjectClick: g,
6356
6366
  openedItem: v,
6357
6367
  setOpenedItem: C
6358
- } = dt(Or), [m, y] = j(!1), k = ee(() => m ? i : i.slice(0, 6), [i, m]), w = x(() => {
6368
+ } = dt(Or), [m, y] = j(!1), k = ee(() => m ? i : i.slice(0, 6), [i, m]), S = x(() => {
6359
6369
  if (c) return;
6360
6370
  y(!1);
6361
- const S = p.find((N) => N.id === n);
6362
- v === n ? (C(null), g == null || g(S, !1)) : (C(n), g == null || g(S, !0));
6363
- }, [n, v, C, g, p, c]), E = x((S) => {
6364
- S.preventDefault(), S.stopPropagation(), y(!m);
6365
- }, [m]), R = x((S) => {
6366
- S.stopPropagation(), A == null || A(i);
6371
+ const w = p.find((N) => N.id === n);
6372
+ v === n ? (C(null), g == null || g(w, !1)) : (C(n), g == null || g(w, !0));
6373
+ }, [n, v, C, g, p, c]), E = x((w) => {
6374
+ w.preventDefault(), w.stopPropagation(), y(!m);
6375
+ }, [m]), R = x((w) => {
6376
+ w.stopPropagation(), A == null || A(i);
6367
6377
  }, [A, i]);
6368
6378
  return /* @__PURE__ */ f(
6369
6379
  I,
@@ -6372,7 +6382,7 @@ const C1 = ({
6372
6382
  gap: "2",
6373
6383
  p: "1",
6374
6384
  className: `${zt.item} ${v === n ? zt.opened : ""} ${c ? zt.failed : ""}`,
6375
- onClick: w,
6385
+ onClick: S,
6376
6386
  ...u,
6377
6387
  children: [
6378
6388
  /* @__PURE__ */ f(I, { direction: "row", gap: "3", children: [
@@ -6585,17 +6595,17 @@ const C1 = ({
6585
6595
  ...n
6586
6596
  }) => {
6587
6597
  var k;
6588
- const { onClickTrack: t } = dt(Or), { projectId: r, id: s, title: o, cover: i, transfers: l, audioUrl: c, onChangeTransfer: d } = n, u = ee(() => l && l.length > 0, [l]), [p, A] = j(u ? parseInt(((k = l == null ? void 0 : l[0]) == null ? void 0 : k.pitchShift) ?? 0) : 0), g = ee(() => u ? Math.min(...l == null ? void 0 : l.map((w) => parseInt(w.pitchShift))) : 0, [l]), v = ee(() => u ? Math.max(...l == null ? void 0 : l.map((w) => parseInt(w.pitchShift))) : 0, [l]), C = x((w) => {
6598
+ const { onClickTrack: t } = dt(Or), { projectId: r, id: s, title: o, cover: i, transfers: l, audioUrl: c, onChangeTransfer: d } = n, u = ee(() => l && l.length > 0, [l]), [p, A] = j(u ? parseInt(((k = l == null ? void 0 : l[0]) == null ? void 0 : k.pitchShift) ?? 0) : 0), g = ee(() => u ? Math.min(...l == null ? void 0 : l.map((S) => parseInt(S.pitchShift))) : 0, [l]), v = ee(() => u ? Math.max(...l == null ? void 0 : l.map((S) => parseInt(S.pitchShift))) : 0, [l]), C = x((S) => {
6589
6599
  var E;
6590
- return u ? (E = l == null ? void 0 : l.find((R) => parseInt(R.pitchShift) === w)) == null ? void 0 : E.audioUrl : c;
6591
- }, [u, l, c]), m = x((w) => {
6592
- A(w), d == null || d(r, {
6600
+ return u ? (E = l == null ? void 0 : l.find((R) => parseInt(R.pitchShift) === S)) == null ? void 0 : E.audioUrl : c;
6601
+ }, [u, l, c]), m = x((S) => {
6602
+ A(S), d == null || d(r, {
6593
6603
  id: s,
6594
6604
  title: o,
6595
- audioUrl: C(w)
6605
+ audioUrl: C(S)
6596
6606
  });
6597
- }, [d, r, s, o, l]), y = x((w) => {
6598
- w.stopPropagation(), t == null || t({
6607
+ }, [d, r, s, o, l]), y = x((S) => {
6608
+ S.stopPropagation(), t == null || t({
6599
6609
  id: s,
6600
6610
  title: o,
6601
6611
  audioUrl: C(p)
@@ -6716,7 +6726,7 @@ const G1 = "_starButton_1a7x2_1", q1 = "_disabled_1a7x2_17", Y1 = "_readOnly_1a7
6716
6726
  maxLabel: p,
6717
6727
  ...A
6718
6728
  }) => {
6719
- const [g, v] = j(r || 0), [C, m] = j(0), y = t !== void 0 ? t : g, k = t !== void 0, w = x(
6729
+ const [g, v] = j(r || 0), [C, m] = j(0), y = t !== void 0 ? t : g, k = t !== void 0, S = x(
6720
6730
  (N) => {
6721
6731
  if (s || o) return;
6722
6732
  const B = N + 1, D = B === y ? 0 : B;
@@ -6732,7 +6742,7 @@ const G1 = "_starButton_1a7x2_1", q1 = "_disabled_1a7x2_17", Y1 = "_readOnly_1a7
6732
6742
  [s, o, n, C, l]
6733
6743
  ), R = x(() => {
6734
6744
  s || o || (m(0), l == null || l({ value: 0 }));
6735
- }, [s, o, l]), S = (N) => {
6745
+ }, [s, o, l]), w = (N) => {
6736
6746
  const B = C > 0 ? N < C : N < y, D = C > 0 && N < C, O = N < y;
6737
6747
  return /* @__PURE__ */ a(
6738
6748
  "button",
@@ -6745,7 +6755,7 @@ const G1 = "_starButton_1a7x2_1", q1 = "_disabled_1a7x2_17", Y1 = "_readOnly_1a7
6745
6755
  [Ke.disabled]: s,
6746
6756
  [Ke.readOnly]: o
6747
6757
  }),
6748
- onClick: () => w(N),
6758
+ onClick: () => S(N),
6749
6759
  disabled: s || o,
6750
6760
  "aria-label": `Rate ${N + 1} out of ${n}`,
6751
6761
  ...A,
@@ -6777,7 +6787,7 @@ const G1 = "_starButton_1a7x2_1", q1 = "_disabled_1a7x2_17", Y1 = "_readOnly_1a7
6777
6787
  "aria-label": `Rating: ${y} out of ${n} stars`,
6778
6788
  onMouseMove: E,
6779
6789
  onMouseLeave: R,
6780
- children: Array.from({ length: n }, (N, B) => S(B))
6790
+ children: Array.from({ length: n }, (N, B) => w(B))
6781
6791
  }
6782
6792
  ),
6783
6793
  (u || p) && /* @__PURE__ */ f(
@@ -6981,12 +6991,12 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
6981
6991
  horizontalWidth: m = "100%",
6982
6992
  verticalHeight: y = 200,
6983
6993
  scrollWheel: k = !1,
6984
- ...w
6994
+ ...S
6985
6995
  }) => {
6986
- const { onWheel: E, ...R } = w, S = C === "vertical", N = (T) => (T - c) / (d - c) * 100, B = x(
6996
+ const { onWheel: E, ...R } = S, w = C === "vertical", N = (T) => (T - c) / (d - c) * 100, B = x(
6987
6997
  (T) => {
6988
6998
  if (E == null || E(T), A || !r || T.defaultPrevented) return;
6989
- const J = S ? T.deltaY : Math.abs(T.deltaX) > Math.abs(T.deltaY) ? T.deltaX : T.deltaY;
6999
+ const J = w ? T.deltaY : Math.abs(T.deltaX) > Math.abs(T.deltaY) ? T.deltaX : T.deltaY;
6990
7000
  if (J === 0) return;
6991
7001
  T.preventDefault();
6992
7002
  const Q = (o == null ? void 0 : o[0]) ?? c, F = J < 0 ? 1 : -1, M = Math.min(
@@ -6998,7 +7008,7 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
6998
7008
  [
6999
7009
  A,
7000
7010
  r,
7001
- S,
7011
+ w,
7002
7012
  d,
7003
7013
  c,
7004
7014
  E,
@@ -7009,23 +7019,23 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7009
7019
  return /* @__PURE__ */ f(
7010
7020
  Ce,
7011
7021
  {
7012
- width: S ? "100%" : O,
7013
- className: b(S && ue.boxVertical),
7014
- style: S ? { "--slider-vertical-height": D } : void 0,
7022
+ width: w ? "100%" : O,
7023
+ className: b(w && ue.boxVertical),
7024
+ style: w ? { "--slider-vertical-height": D } : void 0,
7015
7025
  children: [
7016
7026
  t && /* @__PURE__ */ f(
7017
7027
  I,
7018
7028
  {
7019
7029
  mb: "2",
7020
7030
  width: "100%",
7021
- justify: S ? "center" : "between",
7031
+ justify: w ? "center" : "between",
7022
7032
  align: "center",
7023
7033
  gap: "2",
7024
7034
  children: [
7025
7035
  /* @__PURE__ */ f(I, { align: "center", gap: "2", wrap: "wrap", justify: "center", children: [
7026
7036
  /* @__PURE__ */ a(z, { size: "2", style: { color: "var(--white)" }, children: t }),
7027
7037
  l && /* @__PURE__ */ a(I, { children: /* @__PURE__ */ a(Ge, { content: l }) }),
7028
- S && i && /* @__PURE__ */ a(
7038
+ w && i && /* @__PURE__ */ a(
7029
7039
  z,
7030
7040
  {
7031
7041
  size: "2",
@@ -7035,7 +7045,7 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7035
7045
  }
7036
7046
  )
7037
7047
  ] }),
7038
- !S && i && /* @__PURE__ */ a(
7048
+ !w && i && /* @__PURE__ */ a(
7039
7049
  z,
7040
7050
  {
7041
7051
  size: "2",
@@ -7047,7 +7057,7 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7047
7057
  ]
7048
7058
  }
7049
7059
  ),
7050
- /* @__PURE__ */ a(I, { direction: "column", align: S ? "center" : void 0, children: /* @__PURE__ */ a(
7060
+ /* @__PURE__ */ a(I, { direction: "column", align: w ? "center" : void 0, children: /* @__PURE__ */ a(
7051
7061
  oi,
7052
7062
  {
7053
7063
  min: c,
@@ -7058,7 +7068,7 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7058
7068
  disabled: A,
7059
7069
  orientation: C,
7060
7070
  className: b(ue.sliderRoot, n, {
7061
- [ue.sliderRootVertical]: S
7071
+ [ue.sliderRootVertical]: w
7062
7072
  }),
7063
7073
  onWheel: k ? B : E,
7064
7074
  ...R,
@@ -7066,7 +7076,7 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7066
7076
  I,
7067
7077
  {
7068
7078
  className: b(ue.sliderContainer, {
7069
- [ue.sliderContainerVertical]: S
7079
+ [ue.sliderContainerVertical]: w
7070
7080
  }),
7071
7081
  children: [
7072
7082
  /* @__PURE__ */ f(
@@ -7076,10 +7086,10 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7076
7086
  [ue.sliderTrackSize1]: p === "1",
7077
7087
  [ue.sliderTrackSize2]: p === "2",
7078
7088
  [ue.sliderTrackSize3]: p === "3",
7079
- [ue.sliderTrackVertical]: S,
7080
- [ue.sliderTrackVerticalSize1]: S && p === "1",
7081
- [ue.sliderTrackVerticalSize2]: S && p === "2",
7082
- [ue.sliderTrackVerticalSize3]: S && p === "3"
7089
+ [ue.sliderTrackVertical]: w,
7090
+ [ue.sliderTrackVerticalSize1]: w && p === "1",
7091
+ [ue.sliderTrackVerticalSize2]: w && p === "2",
7092
+ [ue.sliderTrackVerticalSize3]: w && p === "3"
7083
7093
  }),
7084
7094
  children: [
7085
7095
  /* @__PURE__ */ a(
@@ -7111,9 +7121,9 @@ const bb = "_boxVertical_ujop8_21", Ib = "_sliderRoot_ujop8_27", Sb = "_sliderRo
7111
7121
  {
7112
7122
  className: b(ue.marker, {
7113
7123
  [ue.markerSize3]: p === "3",
7114
- [ue.markerVertical]: S
7124
+ [ue.markerVertical]: w
7115
7125
  }),
7116
- style: S ? {
7126
+ style: w ? {
7117
7127
  bottom: `${N(T)}%`
7118
7128
  } : {
7119
7129
  left: `${N(T)}%`
@@ -7178,12 +7188,12 @@ const qb = ({
7178
7188
  /* @__PURE__ */ f(I, { gap: "2", direction: "column", children: [
7179
7189
  /* @__PURE__ */ a(G, { size: "2", weight: "medium", children: n._("Input Level") }),
7180
7190
  /* @__PURE__ */ a("div", { className: vt.levelMeter, children: /* @__PURE__ */ a("div", { className: vt.levelMeterTrack, children: /* @__PURE__ */ a("div", { className: vt.levelMeterRow, children: Array.from({ length: 17 }, (m, y) => {
7181
- const k = Math.max(0, (C - 5) / 25) * 17, w = y < k;
7191
+ const k = Math.max(0, (C - 5) / 25) * 17, S = y < k;
7182
7192
  let E = "low";
7183
7193
  return y >= 15 ? E = "high" : y >= 11 && (E = "mid"), /* @__PURE__ */ a(
7184
7194
  "div",
7185
7195
  {
7186
- className: `${vt.levelMeterSegment} ${w ? `${vt.active} ${vt[E]}` : ""}`
7196
+ className: `${vt.levelMeterSegment} ${S ? `${vt.active} ${vt[E]}` : ""}`
7187
7197
  },
7188
7198
  `level-${y}`
7189
7199
  );
@@ -7492,10 +7502,10 @@ const Rl = ({
7492
7502
  droppable: m = !1,
7493
7503
  isDropTarget: y = !1,
7494
7504
  dndDroppableId: k,
7495
- onDragEnter: w,
7505
+ onDragEnter: S,
7496
7506
  onDragLeave: E,
7497
7507
  onDragOver: R,
7498
- onDrop: S
7508
+ onDrop: w
7499
7509
  }) => {
7500
7510
  const [N, B] = j(!1), D = !!k, { setNodeRef: O, isOver: T } = fo({
7501
7511
  id: k ?? "__setlist-item-noop__",
@@ -7527,10 +7537,10 @@ const Rl = ({
7527
7537
  onMouseEnter: J,
7528
7538
  onMouseLeave: Q,
7529
7539
  "data-setlist-id": t,
7530
- onDragEnter: m ? w : void 0,
7540
+ onDragEnter: m ? S : void 0,
7531
7541
  onDragLeave: m ? E : void 0,
7532
7542
  onDragOver: m ? R : void 0,
7533
- onDrop: m ? S : void 0,
7543
+ onDrop: m ? w : void 0,
7534
7544
  onKeyDown: r ? (P) => {
7535
7545
  (P.key === "Enter" || P.key === " ") && (P.preventDefault(), r == null || r());
7536
7546
  } : void 0,
@@ -7629,24 +7639,24 @@ const Rl = ({
7629
7639
  activeDropSetlistId: v = null,
7630
7640
  enableDndDropTargets: C = !1
7631
7641
  }) => {
7632
- const { close: m, isMobile: y } = xr(), [k, w] = j(null), E = (X) => {
7642
+ const { close: m, isMobile: y } = xr(), [k, S] = j(null), E = (X) => {
7633
7643
  r == null || r(X), y && m();
7634
7644
  }, R = () => {
7635
7645
  c == null || c(), y && m();
7636
- }, [S, N] = j(!1), [B, D] = j(!1), [O, T] = j(!1), [J, Q] = j(!1), F = te(null), M = te(null), P = te(null), U = te(p), H = 50, V = 200, W = 44, se = 4, ve = p && c ? 1 : 0, me = p && !S && !J, Te = n, ne = n.length + (c ? 1 : 0), $ = Math.min(4, ne), K = V + Math.max(0, $ - 1) * H, L = K, ce = () => {
7646
+ }, [w, N] = j(!1), [B, D] = j(!1), [O, T] = j(!1), [J, Q] = j(!1), F = te(null), M = te(null), P = te(null), U = te(p), H = 50, V = 200, W = 44, se = 4, ve = p && c ? 1 : 0, me = p && !w && !J, Te = n, ne = n.length + (c ? 1 : 0), $ = Math.min(4, ne), K = V + Math.max(0, $ - 1) * H, L = K, ce = () => {
7637
7647
  F.current && (clearTimeout(F.current), F.current = null), M.current && (clearTimeout(M.current), M.current = null), D(!1), T(!0), N(!0), M.current = setTimeout(() => {
7638
7648
  T(!1), M.current = null;
7639
7649
  }, L);
7640
7650
  }, Se = () => {
7641
- p && (F.current && (clearTimeout(F.current), F.current = null), B ? D(!1) : S || ce());
7651
+ p && (F.current && (clearTimeout(F.current), F.current = null), B ? D(!1) : w || ce());
7642
7652
  }, de = () => {
7643
- p && S && (M.current && (clearTimeout(M.current), M.current = null), T(!1), D(!0), F.current = setTimeout(() => {
7653
+ p && w && (M.current && (clearTimeout(M.current), M.current = null), T(!1), D(!0), F.current = setTimeout(() => {
7644
7654
  F.current = null, N(!1), D(!1);
7645
7655
  }, L));
7646
7656
  }, oe = (X) => {
7647
7657
  p && (X.stopPropagation(), ce());
7648
7658
  }, ie = () => {
7649
- p && !S && ce();
7659
+ p && !w && ce();
7650
7660
  }, qe = () => {
7651
7661
  if (!p) return;
7652
7662
  const X = P.current;
@@ -7801,7 +7811,7 @@ const Rl = ({
7801
7811
  },
7802
7812
  dropdownMenuOpen: k === X.id,
7803
7813
  onDropdownMenuOpenChange: (We) => {
7804
- w(We ? X.id : null);
7814
+ S(We ? X.id : null);
7805
7815
  },
7806
7816
  avatar: P0(X.icon),
7807
7817
  group: X.group,
@@ -7819,7 +7829,7 @@ const Rl = ({
7819
7829
  [_.staggerAnimateOut]: Me && B && ke,
7820
7830
  [_.fadeAnimateIn]: Me && O && !ke,
7821
7831
  [_.fadeAnimateOut]: Me && B && !ke,
7822
- [_.fadeHidden]: !ke && p && !S && !J
7832
+ [_.fadeHidden]: !ke && p && !w && !J
7823
7833
  }),
7824
7834
  style: {
7825
7835
  ...Ye(ze),
@@ -7904,19 +7914,19 @@ const Rl = ({
7904
7914
  mobileBreakpoint: d = ar,
7905
7915
  ...u
7906
7916
  }) => {
7907
- const p = gI(d), { isMobile: A, isOpen: g, open: v, close: C } = Nl(p), [m, y] = j(!1), [k, w] = j(!1), E = s ?? k, R = x(
7917
+ const p = gI(d), { isMobile: A, isOpen: g, open: v, close: C } = Nl(p), [m, y] = j(!1), [k, S] = j(!1), E = s ?? k, R = x(
7908
7918
  (V) => {
7909
- s == null && w(V), o == null || o(V);
7919
+ s == null && S(V), o == null || o(V);
7910
7920
  },
7911
7921
  [s, o]
7912
- ), S = A ? !1 : r && !E, N = () => {
7922
+ ), w = A ? !1 : r && !E, N = () => {
7913
7923
  A || (y(!1), R(!1), i((V) => !V));
7914
7924
  }, B = () => {
7915
7925
  A || y(!0);
7916
7926
  }, D = () => {
7917
7927
  A || y(!1);
7918
7928
  }, O = (V) => {
7919
- S ? N() : l && l(V);
7929
+ w ? N() : l && l(V);
7920
7930
  }, T = () => {
7921
7931
  A || !r || R(!0);
7922
7932
  }, J = () => {
@@ -7927,7 +7937,7 @@ const Rl = ({
7927
7937
  T();
7928
7938
  }, M = (V) => {
7929
7939
  A || !r || (V.preventDefault(), T());
7930
- }, P = S ? "Expand menu" : "Moises", U = "Moises";
7940
+ }, P = w ? "Expand menu" : "Moises", U = "Moises";
7931
7941
  le(() => {
7932
7942
  if (!E) return;
7933
7943
  const V = () => {
@@ -7944,7 +7954,7 @@ const Rl = ({
7944
7954
  "div",
7945
7955
  {
7946
7956
  className: b(re.logoToggleContainer, {
7947
- [re.logoToggleContainerCollapsed]: S
7957
+ [re.logoToggleContainerCollapsed]: w
7948
7958
  }),
7949
7959
  children: [
7950
7960
  /* @__PURE__ */ a(
@@ -7953,7 +7963,7 @@ const Rl = ({
7953
7963
  width: 32,
7954
7964
  height: 17,
7955
7965
  className: b(re.logoInContainer, {
7956
- [re.logoInContainerHidden]: S && m
7966
+ [re.logoInContainerHidden]: w && m
7957
7967
  })
7958
7968
  }
7959
7969
  ),
@@ -7963,7 +7973,7 @@ const Rl = ({
7963
7973
  width: 16,
7964
7974
  height: 16,
7965
7975
  className: b(re.toggleInContainer, {
7966
- [re.toggleInContainerVisible]: S && m
7976
+ [re.toggleInContainerVisible]: w && m
7967
7977
  })
7968
7978
  }
7969
7979
  )
@@ -7975,7 +7985,7 @@ const Rl = ({
7975
7985
  {
7976
7986
  height: 12.269,
7977
7987
  className: b(re.moisesIcon, {
7978
- [re.moisesIconHidden]: S
7988
+ [re.moisesIconHidden]: w
7979
7989
  })
7980
7990
  }
7981
7991
  )
@@ -7984,7 +7994,7 @@ const Rl = ({
7984
7994
  "div",
7985
7995
  {
7986
7996
  className: b(re.root, {
7987
- [re.rootCollapsed]: S,
7997
+ [re.rootCollapsed]: w,
7988
7998
  [re.rootMobile]: A
7989
7999
  }),
7990
8000
  ...u,
@@ -8012,7 +8022,7 @@ const Rl = ({
8012
8022
  gap: "2",
8013
8023
  height: "38px",
8014
8024
  style: {
8015
- cursor: S || l ? "pointer" : "default"
8025
+ cursor: w || l ? "pointer" : "default"
8016
8026
  },
8017
8027
  children: [
8018
8028
  /* @__PURE__ */ a(pa, { width: 32, height: 17 }),
@@ -8065,13 +8075,13 @@ const Rl = ({
8065
8075
  onDragOver: M,
8066
8076
  onDrop: J,
8067
8077
  children: [
8068
- S ? /* @__PURE__ */ a("div", { className: re.headerWrapper, children: /* @__PURE__ */ a(_e, { content: c, side: "right", sideOffset: 5, align: "center", alignOffset: 0, children: /* @__PURE__ */ a("div", { className: re.tooltipTriggerWrapper, children: /* @__PURE__ */ f(
8078
+ w ? /* @__PURE__ */ a("div", { className: re.headerWrapper, children: /* @__PURE__ */ a(_e, { content: c, side: "right", sideOffset: 5, align: "center", alignOffset: 0, children: /* @__PURE__ */ a("div", { className: re.tooltipTriggerWrapper, children: /* @__PURE__ */ f(
8069
8079
  I,
8070
8080
  {
8071
8081
  align: "center",
8072
8082
  justify: "between",
8073
8083
  className: b(re.header, {
8074
- [re.headerCollapsed]: S
8084
+ [re.headerCollapsed]: w
8075
8085
  }),
8076
8086
  children: [
8077
8087
  /* @__PURE__ */ a(
@@ -8087,7 +8097,7 @@ const Rl = ({
8087
8097
  align: "center",
8088
8098
  gap: "2",
8089
8099
  style: {
8090
- cursor: S || l ? "pointer" : "default"
8100
+ cursor: w || l ? "pointer" : "default"
8091
8101
  },
8092
8102
  children: H
8093
8103
  }
@@ -8100,7 +8110,7 @@ const Rl = ({
8100
8110
  type: "button",
8101
8111
  onClick: N,
8102
8112
  className: b(re.toggleButton, {
8103
- [re.toggleButtonHidden]: S
8113
+ [re.toggleButtonHidden]: w
8104
8114
  }),
8105
8115
  "aria-label": "Collapse menu",
8106
8116
  children: /* @__PURE__ */ a(Pr, { width: 16, height: 16 })
@@ -8114,7 +8124,7 @@ const Rl = ({
8114
8124
  align: "center",
8115
8125
  justify: "between",
8116
8126
  className: b(re.header, {
8117
- [re.headerCollapsed]: S
8127
+ [re.headerCollapsed]: w
8118
8128
  }),
8119
8129
  children: [
8120
8130
  /* @__PURE__ */ a(
@@ -8130,7 +8140,7 @@ const Rl = ({
8130
8140
  align: "center",
8131
8141
  gap: "2",
8132
8142
  style: {
8133
- cursor: S || l ? "pointer" : "default"
8143
+ cursor: w || l ? "pointer" : "default"
8134
8144
  },
8135
8145
  children: H
8136
8146
  }
@@ -8143,7 +8153,7 @@ const Rl = ({
8143
8153
  type: "button",
8144
8154
  onClick: N,
8145
8155
  className: b(re.toggleButton, {
8146
- [re.toggleButtonHidden]: S
8156
+ [re.toggleButtonHidden]: w
8147
8157
  }),
8148
8158
  "aria-label": "Collapse menu",
8149
8159
  children: /* @__PURE__ */ a(Pr, { width: 16, height: 16 })
@@ -8189,26 +8199,26 @@ const mI = "_sectionTitle_bwlze_1", fI = "_separator_bwlze_17", Ua = {
8189
8199
  sidebarTooltip: C,
8190
8200
  children: m
8191
8201
  }) => {
8192
- const [y, k] = j(!1), [w, E] = j(!1), { isMobile: R } = Nl(), S = R ? !1 : y && !w;
8202
+ const [y, k] = j(!1), [S, E] = j(!1), { isMobile: R } = Nl(), w = R ? !1 : y && !S;
8193
8203
  return /* @__PURE__ */ f(Ie, { children: [
8194
8204
  /* @__PURE__ */ f(
8195
8205
  Bl,
8196
8206
  {
8197
8207
  isCollapsed: y,
8198
- isTemporarilyExpandedByDrag: w,
8208
+ isTemporarilyExpandedByDrag: S,
8199
8209
  onTemporarilyExpandedByDragChange: E,
8200
8210
  onCollapsedChange: k,
8201
8211
  tooltip: C,
8202
8212
  children: [
8203
8213
  /* @__PURE__ */ f(I, { direction: "column", children: [
8204
- /* @__PURE__ */ a(Oa, { title: "PRODUCTS", collapsed: S }),
8214
+ /* @__PURE__ */ a(Oa, { title: "PRODUCTS", collapsed: w }),
8205
8215
  /* @__PURE__ */ a(
8206
8216
  o1,
8207
8217
  {
8208
8218
  products: o,
8209
8219
  selectedProductId: i,
8210
8220
  onProductClick: l,
8211
- collapsed: S
8221
+ collapsed: w
8212
8222
  }
8213
8223
  )
8214
8224
  ] }),
@@ -8218,7 +8228,7 @@ const mI = "_sectionTitle_bwlze_1", fI = "_separator_bwlze_17", Ua = {
8218
8228
  direction: "column",
8219
8229
  style: { overflow: "hidden", flex: 1, minHeight: 0 },
8220
8230
  children: [
8221
- /* @__PURE__ */ a(Oa, { title: "SETLISTS", collapsed: S }),
8231
+ /* @__PURE__ */ a(Oa, { title: "SETLISTS", collapsed: w }),
8222
8232
  /* @__PURE__ */ a(
8223
8233
  z0,
8224
8234
  {
@@ -8228,7 +8238,7 @@ const mI = "_sectionTitle_bwlze_1", fI = "_separator_bwlze_17", Ua = {
8228
8238
  onNewSetlistClick: p,
8229
8239
  newSetlistButtonTooltip: A,
8230
8240
  expandButtonTooltip: g,
8231
- collapsed: S,
8241
+ collapsed: w,
8232
8242
  isMobile: R
8233
8243
  }
8234
8244
  )
@@ -8245,7 +8255,7 @@ const mI = "_sectionTitle_bwlze_1", fI = "_separator_bwlze_17", Ua = {
8245
8255
  /* @__PURE__ */ a(
8246
8256
  hg,
8247
8257
  {
8248
- collapsed: S,
8258
+ collapsed: w,
8249
8259
  additionalItems: n,
8250
8260
  selectedAdditionalItemId: t
8251
8261
  }
@@ -8255,7 +8265,7 @@ const mI = "_sectionTitle_bwlze_1", fI = "_separator_bwlze_17", Ua = {
8255
8265
  {
8256
8266
  user: r,
8257
8267
  menuOptions: r == null ? void 0 : r.menuOptions,
8258
- collapsed: S,
8268
+ collapsed: w,
8259
8269
  tooltip: v
8260
8270
  }
8261
8271
  )
@@ -8396,13 +8406,13 @@ const $n = (n) => {
8396
8406
  onFetchSuggestedTags: p,
8397
8407
  suggestedTagsLoading: A
8398
8408
  }) => {
8399
- const g = te(null), v = te(null), [C, m] = j(!1), y = x((S) => {
8400
- const N = S.target, B = N.scrollLeft + N.clientWidth >= N.scrollWidth - 2;
8409
+ const g = te(null), v = te(null), [C, m] = j(!1), y = x((w) => {
8410
+ const N = w.target, B = N.scrollLeft + N.clientWidth >= N.scrollWidth - 2;
8401
8411
  m(B);
8402
- }, []), k = !!l || !!d, w = x(
8403
- (S) => {
8412
+ }, []), k = !!l || !!d, S = x(
8413
+ (w) => {
8404
8414
  if (k) return;
8405
- const N = S.target.value;
8415
+ const N = w.target.value;
8406
8416
  t((B) => ({
8407
8417
  ...B,
8408
8418
  conditioningText: N
@@ -8421,16 +8431,16 @@ const $n = (n) => {
8421
8431
  m(!1);
8422
8432
  }, [u]);
8423
8433
  const E = x(
8424
- (S) => {
8434
+ (w) => {
8425
8435
  t((N) => ({
8426
8436
  ...N,
8427
- conditioningText: (N.conditioningText || "").trimEnd() + " " + S + " "
8437
+ conditioningText: (N.conditioningText || "").trimEnd() + " " + w + " "
8428
8438
  }));
8429
8439
  },
8430
8440
  [t]
8431
8441
  ), R = x(() => {
8432
- t((S) => ({
8433
- ...S,
8442
+ t((w) => ({
8443
+ ...w,
8434
8444
  conditioningAudio: null,
8435
8445
  conditioningAudioName: null,
8436
8446
  conditioningAudioSize: null,
@@ -8471,7 +8481,7 @@ const $n = (n) => {
8471
8481
  {
8472
8482
  value: n.conditioningText,
8473
8483
  onFocus: o,
8474
- onChange: w,
8484
+ onChange: S,
8475
8485
  placeholder: r._(
8476
8486
  `Describe your desired sound characteristics (ex: ${NI(
8477
8487
  n.instrument,
@@ -8525,11 +8535,11 @@ const $n = (n) => {
8525
8535
  children: /* @__PURE__ */ a(Nd, { width: 14, height: 14 })
8526
8536
  }
8527
8537
  ),
8528
- A && /* @__PURE__ */ a("div", { className: et.tagsWrapper, children: /* @__PURE__ */ a("div", { className: et.tagsContainer, children: PI.map((S, N) => /* @__PURE__ */ a(
8538
+ A && /* @__PURE__ */ a("div", { className: et.tagsWrapper, children: /* @__PURE__ */ a("div", { className: et.tagsContainer, children: PI.map((w, N) => /* @__PURE__ */ a(
8529
8539
  "div",
8530
8540
  {
8531
8541
  className: et.skeletonChip,
8532
- style: { width: S }
8542
+ style: { width: w }
8533
8543
  },
8534
8544
  N
8535
8545
  )) }) }),
@@ -8544,13 +8554,13 @@ const $n = (n) => {
8544
8554
  ref: v,
8545
8555
  className: et.tagsContainer,
8546
8556
  onScroll: y,
8547
- children: u.map((S) => /* @__PURE__ */ a(
8557
+ children: u.map((w) => /* @__PURE__ */ a(
8548
8558
  Pe,
8549
8559
  {
8550
8560
  className: et.tagChip,
8551
8561
  variant: "ghost",
8552
8562
  size: "2",
8553
- onClick: () => E(S),
8563
+ onClick: () => E(w),
8554
8564
  style: {
8555
8565
  borderRadius: "9999px",
8556
8566
  color: "rgba(241, 247, 254, 0.71)",
@@ -8558,9 +8568,9 @@ const $n = (n) => {
8558
8568
  paddingLeft: 14,
8559
8569
  paddingRight: 14
8560
8570
  },
8561
- children: S
8571
+ children: w
8562
8572
  },
8563
- S
8573
+ w
8564
8574
  ))
8565
8575
  }
8566
8576
  )
@@ -9042,10 +9052,10 @@ const or = {
9042
9052
  generateFromSelectionTrack: m,
9043
9053
  unmutedTracksCount: y,
9044
9054
  onMountConcurrency: k,
9045
- onClear: w,
9055
+ onClear: S,
9046
9056
  onInspireMe: E,
9047
9057
  inspireMeLoading: R,
9048
- onBoost: S,
9058
+ onBoost: w,
9049
9059
  boostLoading: N,
9050
9060
  suggestedTags: B,
9051
9061
  onFetchSuggestedTags: D,
@@ -9199,7 +9209,7 @@ const or = {
9199
9209
  onTextConditioningFocus: o,
9200
9210
  onInspireMe: E,
9201
9211
  inspireMeLoading: R,
9202
- onBoost: S,
9212
+ onBoost: w,
9203
9213
  boostLoading: N,
9204
9214
  suggestedTags: B,
9205
9215
  onFetchSuggestedTags: D,
@@ -9277,7 +9287,7 @@ const or = {
9277
9287
  inpaintingTrack: C,
9278
9288
  generateFromSelectionTrack: m,
9279
9289
  unmutedTracksCount: y,
9280
- onClear: w,
9290
+ onClear: S,
9281
9291
  i18n: l
9282
9292
  }
9283
9293
  ) }),
@@ -9303,7 +9313,7 @@ const or = {
9303
9313
  Ve,
9304
9314
  {
9305
9315
  type: "error",
9306
- onClick: w,
9316
+ onClick: S,
9307
9317
  ctaLabel: l._("Clear"),
9308
9318
  showBackground: !1,
9309
9319
  showIcon: !1,
@@ -9545,12 +9555,12 @@ const Pa = {
9545
9555
  name: n._("Other"),
9546
9556
  category: "paid"
9547
9557
  }
9548
- ], w = async (S) => {
9549
- if (S.isLocked) {
9550
- v(S.value);
9558
+ ], S = async (w) => {
9559
+ if (w.isLocked) {
9560
+ v(w.value);
9551
9561
  return;
9552
9562
  }
9553
- const N = S.value;
9563
+ const N = w.value;
9554
9564
  d((B) => {
9555
9565
  let D = [...B.selectedStems];
9556
9566
  if (D.includes(N))
@@ -9563,10 +9573,10 @@ const Pa = {
9563
9573
  }
9564
9574
  return D.includes("other") && D.length === 1 ? { ...B, selectedStems: [] } : { ...B, selectedStems: D };
9565
9575
  });
9566
- }, E = (S) => {
9576
+ }, E = (w) => {
9567
9577
  d((N) => ({
9568
9578
  ...N,
9569
- selectedStems: S.value
9579
+ selectedStems: w.value
9570
9580
  }));
9571
9581
  };
9572
9582
  return /* @__PURE__ */ f(I, { direction: "column", height: "100%", children: [
@@ -9575,10 +9585,10 @@ const Pa = {
9575
9585
  /* @__PURE__ */ a(
9576
9586
  Is,
9577
9587
  {
9578
- items: k.filter((S) => S.category === "free").map((S) => ({
9579
- name: S.name,
9580
- value: S.value,
9581
- icon: Pa[S.value]
9588
+ items: k.filter((w) => w.category === "free").map((w) => ({
9589
+ name: w.name,
9590
+ value: w.value,
9591
+ icon: Pa[w.value]
9582
9592
  })),
9583
9593
  value: c.selectedStems,
9584
9594
  onSelect: E
@@ -9589,18 +9599,18 @@ const Pa = {
9589
9599
  /* @__PURE__ */ a(
9590
9600
  Is,
9591
9601
  {
9592
- items: k.filter((S) => S.category === "paid").filter((S) => r.some((N) => N.value === S.value)).map((S) => {
9602
+ items: k.filter((w) => w.category === "paid").filter((w) => r.some((N) => N.value === w.value)).map((w) => {
9593
9603
  var N;
9594
9604
  return {
9595
- name: S.name,
9596
- value: S.value,
9597
- icon: Pa[S.value],
9598
- disabled: c.selectedStems.length === 0 && S.value === "Other",
9599
- isLocked: (N = r.find((B) => B.value === S.value)) == null ? void 0 : N.isLocked
9605
+ name: w.name,
9606
+ value: w.value,
9607
+ icon: Pa[w.value],
9608
+ disabled: c.selectedStems.length === 0 && w.value === "Other",
9609
+ isLocked: (N = r.find((B) => B.value === w.value)) == null ? void 0 : N.isLocked
9600
9610
  };
9601
9611
  }),
9602
9612
  value: c.selectedStems,
9603
- onSelect: w,
9613
+ onSelect: S,
9604
9614
  style: {
9605
9615
  marginBottom: "12px"
9606
9616
  }
@@ -10192,13 +10202,13 @@ const Zr = (n, t) => typeof n == "string" ? { title: n, description: "", variant
10192
10202
  const y = {
10193
10203
  ...Zr(C, "neutral"),
10194
10204
  id: `${Date.now()}-${BS++}`
10195
- }, k = y.duration ?? t, w = setTimeout(() => {
10205
+ }, k = y.duration ?? t, S = setTimeout(() => {
10196
10206
  u(y.id);
10197
10207
  }, k);
10198
- return d.current.set(y.id, w), c((E) => {
10199
- const R = [...E.slice(-(r - 1)), y], S = new Set(R.map((N) => N.id));
10208
+ return d.current.set(y.id, S), c((E) => {
10209
+ const R = [...E.slice(-(r - 1)), y], w = new Set(R.map((N) => N.id));
10200
10210
  return E.forEach((N) => {
10201
- if (!S.has(N.id)) {
10211
+ if (!w.has(N.id)) {
10202
10212
  const B = d.current.get(N.id);
10203
10213
  B && (clearTimeout(B), d.current.delete(N.id));
10204
10214
  }
@@ -10435,11 +10445,11 @@ const PS = "_track_2k5w9_1", zS = "_name_2k5w9_11", WS = "_line_2k5w9_22", HS =
10435
10445
  isAutoMuted: m,
10436
10446
  isSolo: y,
10437
10447
  isOpen: k,
10438
- instrumentSelected: w,
10448
+ instrumentSelected: S,
10439
10449
  device: E,
10440
10450
  channel: R,
10441
10451
  // State change listeners
10442
- onVolumeChange: S,
10452
+ onVolumeChange: w,
10443
10453
  onPanChange: N,
10444
10454
  onMutedChange: B,
10445
10455
  onRecordChange: D,
@@ -10520,7 +10530,7 @@ const PS = "_track_2k5w9_1", zS = "_name_2k5w9_11", WS = "_line_2k5w9_22", HS =
10520
10530
  Ee.instrumentIconButton,
10521
10531
  Ee.menuOptionsTrigger
10522
10532
  ),
10523
- children: w.icon
10533
+ children: S.icon
10524
10534
  }
10525
10535
  ),
10526
10536
  options: c,
@@ -10620,7 +10630,7 @@ const PS = "_track_2k5w9_1", zS = "_name_2k5w9_11", WS = "_line_2k5w9_22", HS =
10620
10630
  {
10621
10631
  linear: p,
10622
10632
  volume: A,
10623
- onVolumeChange: S
10633
+ onVolumeChange: w
10624
10634
  }
10625
10635
  ),
10626
10636
  r && /* @__PURE__ */ a(
@@ -10669,15 +10679,15 @@ function gw({ schema: n }) {
10669
10679
  r((E) => ({ ...E, [m]: y })), o((E) => ({ ...E, [m]: null }));
10670
10680
  return;
10671
10681
  }
10672
- const k = m, w = Object.fromEntries(
10682
+ const k = m, S = Object.fromEntries(
10673
10683
  Object.entries(k).map(([E]) => ({ [E]: null }))
10674
10684
  );
10675
- r((E) => ({ ...E, ...k })), o((E) => ({ ...E, ...w }));
10685
+ r((E) => ({ ...E, ...k })), o((E) => ({ ...E, ...S }));
10676
10686
  }, []), u = (m, y) => {
10677
- const k = t[m], w = (E) => d(m, E);
10678
- return y === "checkbox" || y === "switch" ? { checked: !!k, onCheckedChange: w } : { value: k ?? "", onChange: (E) => {
10687
+ const k = t[m], S = (E) => d(m, E);
10688
+ return y === "checkbox" || y === "switch" ? { checked: !!k, onCheckedChange: S } : { value: k ?? "", onChange: (E) => {
10679
10689
  var R;
10680
- return w(((R = E == null ? void 0 : E.target) == null ? void 0 : R.value) ?? E);
10690
+ return S(((R = E == null ? void 0 : E.target) == null ? void 0 : R.value) ?? E);
10681
10691
  } };
10682
10692
  }, p = () => {
10683
10693
  const m = n.safeParse(t);
@@ -10685,8 +10695,8 @@ function gw({ schema: n }) {
10685
10695
  return o({}), { isValid: !0, data: m.data };
10686
10696
  const y = {};
10687
10697
  for (const k of m.error.issues) {
10688
- const w = k.path.join(".");
10689
- y[w] || (y[w] = k.message);
10698
+ const S = k.path.join(".");
10699
+ y[S] || (y[S] = k.message);
10690
10700
  }
10691
10701
  return o(y), { isValid: !1, data: t };
10692
10702
  }, A = x((m) => (l.current.push(m), () => {
@@ -11128,25 +11138,25 @@ class hE extends zn {
11128
11138
  const A = (g) => {
11129
11139
  if (g.button !== i || (d.set(g.pointerId, g), d.size > 1)) return;
11130
11140
  let v = g.clientX, C = g.clientY, m = !1;
11131
- const y = Date.now(), k = r.getBoundingClientRect(), { left: w, top: E } = k, R = (O) => {
11141
+ const y = Date.now(), k = r.getBoundingClientRect(), { left: S, top: E } = k, R = (O) => {
11132
11142
  if (O.defaultPrevented || d.size > 1 || u && Date.now() - y < l) return;
11133
11143
  const T = O.clientX, J = O.clientY, Q = T - v, F = J - C;
11134
- (m || Math.abs(Q) > o || Math.abs(F) > o) && (O.preventDefault(), O.stopPropagation(), m || (c.set({ type: "start", x: v - w, y: C - E }), m = !0), c.set({ type: "move", x: T - w, y: J - E, deltaX: Q, deltaY: F }), v = T, C = J);
11135
- }, S = (O) => {
11144
+ (m || Math.abs(Q) > o || Math.abs(F) > o) && (O.preventDefault(), O.stopPropagation(), m || (c.set({ type: "start", x: v - S, y: C - E }), m = !0), c.set({ type: "move", x: T - S, y: J - E, deltaX: Q, deltaY: F }), v = T, C = J);
11145
+ }, w = (O) => {
11136
11146
  if (d.delete(O.pointerId), m) {
11137
11147
  const T = O.clientX, J = O.clientY;
11138
- c.set({ type: "end", x: T - w, y: J - E });
11148
+ c.set({ type: "end", x: T - S, y: J - E });
11139
11149
  }
11140
11150
  p();
11141
11151
  }, N = (O) => {
11142
- d.delete(O.pointerId), O.relatedTarget && O.relatedTarget !== document.documentElement || S(O);
11152
+ d.delete(O.pointerId), O.relatedTarget && O.relatedTarget !== document.documentElement || w(O);
11143
11153
  }, B = (O) => {
11144
11154
  m && (O.stopPropagation(), O.preventDefault());
11145
11155
  }, D = (O) => {
11146
11156
  O.defaultPrevented || d.size > 1 || m && O.preventDefault();
11147
11157
  };
11148
- document.addEventListener("pointermove", R), document.addEventListener("pointerup", S), document.addEventListener("pointerout", N), document.addEventListener("pointercancel", N), document.addEventListener("touchmove", D, { passive: !1 }), document.addEventListener("click", B, { capture: !0 }), p = () => {
11149
- document.removeEventListener("pointermove", R), document.removeEventListener("pointerup", S), document.removeEventListener("pointerout", N), document.removeEventListener("pointercancel", N), document.removeEventListener("touchmove", D), setTimeout(() => {
11158
+ document.addEventListener("pointermove", R), document.addEventListener("pointerup", w), document.addEventListener("pointerout", N), document.addEventListener("pointercancel", N), document.addEventListener("touchmove", D, { passive: !1 }), document.addEventListener("click", B, { capture: !0 }), p = () => {
11159
+ document.removeEventListener("pointermove", R), document.removeEventListener("pointerup", w), document.removeEventListener("pointerout", N), document.removeEventListener("pointercancel", N), document.removeEventListener("touchmove", D), setTimeout(() => {
11150
11160
  document.removeEventListener("click", B, { capture: !0 });
11151
11161
  }, 10);
11152
11162
  };
@@ -11310,16 +11320,16 @@ class hE extends zn {
11310
11320
  var t;
11311
11321
  }
11312
11322
  renderBarWaveform(t, r, s, o) {
11313
- const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: A, barMinHeight: g } = function({ width: C, height: m, length: y, options: k, pixelRatio: w }) {
11314
- const E = m / 2, R = k.barWidth ? k.barWidth * w : 1, S = k.barGap ? k.barGap * w : k.barWidth ? R / 2 : 0, N = R + S || 1;
11315
- return { halfHeight: E, barWidth: R, barGap: S, barRadius: k.barRadius || 0, barMinHeight: k.barMinHeight ? k.barMinHeight * w : 0, barIndexScale: y > 0 ? C / N / y : 0, barSpacing: N };
11316
- }({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), v = function({ channelData: C, barIndexScale: m, barSpacing: y, barWidth: k, halfHeight: w, vScale: E, canvasHeight: R, barAlign: S, barMinHeight: N }) {
11323
+ const { width: i, height: l } = s.canvas, { halfHeight: c, barWidth: d, barRadius: u, barIndexScale: p, barSpacing: A, barMinHeight: g } = function({ width: C, height: m, length: y, options: k, pixelRatio: S }) {
11324
+ const E = m / 2, R = k.barWidth ? k.barWidth * S : 1, w = k.barGap ? k.barGap * S : k.barWidth ? R / 2 : 0, N = R + w || 1;
11325
+ return { halfHeight: E, barWidth: R, barGap: w, barRadius: k.barRadius || 0, barMinHeight: k.barMinHeight ? k.barMinHeight * S : 0, barIndexScale: y > 0 ? C / N / y : 0, barSpacing: N };
11326
+ }({ width: i, height: l, length: (t[0] || []).length, options: r, pixelRatio: this.getPixelRatio() }), v = function({ channelData: C, barIndexScale: m, barSpacing: y, barWidth: k, halfHeight: S, vScale: E, canvasHeight: R, barAlign: w, barMinHeight: N }) {
11317
11327
  const B = C[0] || [], D = C[1] || B, O = B.length, T = [];
11318
11328
  let J = 0, Q = 0, F = 0;
11319
11329
  for (let M = 0; M <= O; M++) {
11320
11330
  const P = Math.round(M * m);
11321
11331
  if (P > J) {
11322
- const { topHeight: V, totalHeight: W } = cE({ maxTop: Q, maxBottom: F, halfHeight: w, vScale: E, barMinHeight: N, barAlign: S }), se = dE({ barAlign: S, halfHeight: w, topHeight: V, totalHeight: W, canvasHeight: R });
11332
+ const { topHeight: V, totalHeight: W } = cE({ maxTop: Q, maxBottom: F, halfHeight: S, vScale: E, barMinHeight: N, barAlign: w }), se = dE({ barAlign: w, halfHeight: S, topHeight: V, totalHeight: W, canvasHeight: R });
11323
11333
  T.push({ x: J * y, y: se, width: k, height: W }), J = P, Q = 0, F = 0;
11324
11334
  }
11325
11335
  const U = Math.abs(B[M] || 0), H = Math.abs(D[M] || 0);
@@ -11335,18 +11345,18 @@ class hE extends zn {
11335
11345
  const { width: i, height: l } = s.canvas, c = function({ channelData: d, width: u, height: p, vScale: A }) {
11336
11346
  const g = p / 2, v = d[0] || [];
11337
11347
  return [v, d[1] || v].map((C, m) => {
11338
- const y = C.length, k = y ? u / y : 0, w = g, E = m === 0 ? -1 : 1, R = [{ x: 0, y: w }];
11339
- let S = 0, N = 0;
11348
+ const y = C.length, k = y ? u / y : 0, S = g, E = m === 0 ? -1 : 1, R = [{ x: 0, y: S }];
11349
+ let w = 0, N = 0;
11340
11350
  for (let B = 0; B <= y; B++) {
11341
11351
  const D = Math.round(B * k);
11342
- if (D > S) {
11343
- const T = w + (Math.round(N * g * A) || 1) * E;
11344
- R.push({ x: S, y: T }), S = D, N = 0;
11352
+ if (D > w) {
11353
+ const T = S + (Math.round(N * g * A) || 1) * E;
11354
+ R.push({ x: w, y: T }), w = D, N = 0;
11345
11355
  }
11346
11356
  const O = Math.abs(C[B] || 0);
11347
11357
  O > N && (N = O);
11348
11358
  }
11349
- return R.push({ x: S, y: w }), R;
11359
+ return R.push({ x: w, y: S }), R;
11350
11360
  });
11351
11361
  }({ channelData: t, width: i, height: l, vScale: o });
11352
11362
  s.beginPath();
@@ -11397,9 +11407,9 @@ class hE extends zn {
11397
11407
  const m = C * p;
11398
11408
  let y = Math.min(u - m, p);
11399
11409
  if (y = Ka(y, r), y <= 0) return;
11400
- const k = function({ channelData: w, offset: E, clampedWidth: R, totalWidth: S }) {
11401
- return w.map((N) => {
11402
- const B = Math.floor(E / S * N.length), D = Math.floor((E + R) / S * N.length);
11410
+ const k = function({ channelData: S, offset: E, clampedWidth: R, totalWidth: w }) {
11411
+ return S.map((N) => {
11412
+ const B = Math.floor(E / w * N.length), D = Math.floor((E + R) / w * N.length);
11403
11413
  return N.slice(B, D);
11404
11414
  });
11405
11415
  }({ channelData: t, offset: m, clampedWidth: y, totalWidth: u });
@@ -11658,8 +11668,8 @@ class Mn extends lE {
11658
11668
  super({ media: r, mediaControls: t.mediaControls, autoplay: t.autoplay, playbackRate: t.audioRate }), this.plugins = [], this.decodedData = null, this.stopAtPosition = null, this.subscriptions = [], this.mediaSubscriptions = [], this.abortController = null, this.reactiveCleanups = [], this.options = Object.assign({}, pE, t);
11659
11669
  const { state: s, actions: o } = function(c) {
11660
11670
  var d, u, p, A, g, v;
11661
- const C = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : ye(0), m = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : ye(0), y = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : ye(!1), k = (A = c == null ? void 0 : c.isSeeking) !== null && A !== void 0 ? A : ye(!1), w = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : ye(1), E = (v = c == null ? void 0 : c.playbackRate) !== null && v !== void 0 ? v : ye(1), R = ye(null), S = ye(null), N = ye(""), B = ye(0), D = ye(0), O = Ht(() => !y.value, [y]), T = Ht(() => R.value !== null, [R]), J = Ht(() => T.value && m.value > 0, [T, m]), Q = Ht(() => C.value, [C]), F = Ht(() => m.value > 0 ? C.value / m.value : 0, [C, m]);
11662
- return { state: { currentTime: C, duration: m, isPlaying: y, isPaused: O, isSeeking: k, volume: w, playbackRate: E, audioBuffer: R, peaks: S, url: N, zoom: B, scrollPosition: D, canPlay: T, isReady: J, progress: Q, progressPercent: F }, actions: { setCurrentTime: (M) => {
11671
+ const C = (d = c == null ? void 0 : c.currentTime) !== null && d !== void 0 ? d : ye(0), m = (u = c == null ? void 0 : c.duration) !== null && u !== void 0 ? u : ye(0), y = (p = c == null ? void 0 : c.isPlaying) !== null && p !== void 0 ? p : ye(!1), k = (A = c == null ? void 0 : c.isSeeking) !== null && A !== void 0 ? A : ye(!1), S = (g = c == null ? void 0 : c.volume) !== null && g !== void 0 ? g : ye(1), E = (v = c == null ? void 0 : c.playbackRate) !== null && v !== void 0 ? v : ye(1), R = ye(null), w = ye(null), N = ye(""), B = ye(0), D = ye(0), O = Ht(() => !y.value, [y]), T = Ht(() => R.value !== null, [R]), J = Ht(() => T.value && m.value > 0, [T, m]), Q = Ht(() => C.value, [C]), F = Ht(() => m.value > 0 ? C.value / m.value : 0, [C, m]);
11672
+ return { state: { currentTime: C, duration: m, isPlaying: y, isPaused: O, isSeeking: k, volume: S, playbackRate: E, audioBuffer: R, peaks: w, url: N, zoom: B, scrollPosition: D, canPlay: T, isReady: J, progress: Q, progressPercent: F }, actions: { setCurrentTime: (M) => {
11663
11673
  const P = Math.max(0, Math.min(m.value || 1 / 0, M));
11664
11674
  C.set(P);
11665
11675
  }, setDuration: (M) => {
@@ -11670,14 +11680,14 @@ class Mn extends lE {
11670
11680
  k.set(M);
11671
11681
  }, setVolume: (M) => {
11672
11682
  const P = Math.max(0, Math.min(1, M));
11673
- w.set(P);
11683
+ S.set(P);
11674
11684
  }, setPlaybackRate: (M) => {
11675
11685
  const P = Math.max(0.1, Math.min(16, M));
11676
11686
  E.set(P);
11677
11687
  }, setAudioBuffer: (M) => {
11678
11688
  R.set(M), M && m.set(M.duration);
11679
11689
  }, setPeaks: (M) => {
11680
- S.set(M);
11690
+ w.set(M);
11681
11691
  }, setUrl: (M) => {
11682
11692
  N.set(M);
11683
11693
  }, setZoom: (M) => {
@@ -12051,7 +12061,7 @@ function Pl({
12051
12061
  classNamesButton: v,
12052
12062
  onPlayStateChange: C
12053
12063
  }) {
12054
- const [m, y] = j(!1), [k, w] = j(!1), [E, R] = j(!1), [S, N] = j(!1);
12064
+ const [m, y] = j(!1), [k, S] = j(!1), [E, R] = j(!1), [w, N] = j(!1);
12055
12065
  le(() => {
12056
12066
  typeof navigator < "u" && N(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
12057
12067
  }, []);
@@ -12064,14 +12074,14 @@ function Pl({
12064
12074
  T.current && ((W = T.current) == null || W.pause());
12065
12075
  }, []), Q = x(() => {
12066
12076
  var W, se;
12067
- T.current && (d && d.state.active && d.state.active !== T.current && d.state.active.pause(), S || (W = T.current) == null || W.setOptions({ progressColor: c }), (se = T.current) == null || se.play());
12068
- }, [S, c, d]);
12077
+ T.current && (d && d.state.active && d.state.active !== T.current && d.state.active.pause(), w || (W = T.current) == null || W.setOptions({ progressColor: c }), (se = T.current) == null || se.play());
12078
+ }, [w, c, d]);
12069
12079
  le(() => {
12070
12080
  var W;
12071
12081
  T.current && n && ((W = T.current) == null || W.load(n));
12072
12082
  }, [n]);
12073
12083
  const F = x((W) => {
12074
- T.current = W, w(!0), y(!1);
12084
+ T.current = W, S(!0), y(!1);
12075
12085
  }, []), M = x(
12076
12086
  (W) => {
12077
12087
  if (y(!0), r == null || r(!0), C == null || C(!0), d) {
@@ -12164,7 +12174,7 @@ function Pl({
12164
12174
  onPlay: M,
12165
12175
  onPause: P,
12166
12176
  onFinish: H,
12167
- backend: S ? "WebAudio" : "MediaElement"
12177
+ backend: w ? "WebAudio" : "MediaElement"
12168
12178
  }
12169
12179
  )
12170
12180
  }
@@ -12534,7 +12544,7 @@ const zE = "_footerVoiceForm_lsc2c_2", WE = {
12534
12544
  onClickUpgradeConcurrency: C,
12535
12545
  onRemoveTrack: m
12536
12546
  }) => {
12537
- const [y, k] = j(null), [w, E] = j(null), { submitted: R, handleSubmit: S } = da(p), [N, B] = j({
12547
+ const [y, k] = j(null), [S, E] = j(null), { submitted: R, handleSubmit: w } = da(p), [N, B] = j({
12538
12548
  lastPlayed: null,
12539
12549
  active: null,
12540
12550
  isPlaying: !1,
@@ -12551,9 +12561,9 @@ const zE = "_footerVoiceForm_lsc2c_2", WE = {
12551
12561
  [n, r]
12552
12562
  ), O = x(
12553
12563
  (P) => {
12554
- w !== P && E(P);
12564
+ S !== P && E(P);
12555
12565
  },
12556
- [w, E]
12566
+ [S, E]
12557
12567
  ), T = x(
12558
12568
  (P) => {
12559
12569
  E(null), N.active && N.active.pause(), B((U) => ({
@@ -12577,14 +12587,14 @@ const zE = "_footerVoiceForm_lsc2c_2", WE = {
12577
12587
  [t.trackName, t.trackId, t.customAudio]
12578
12588
  ), M = x(() => {
12579
12589
  if (!i) {
12580
- S();
12590
+ w();
12581
12591
  return;
12582
12592
  }
12583
12593
  Q && (D(Q.identifier), o(), r((P) => {
12584
12594
  var U;
12585
12595
  return ((U = P.selectedVoice) == null ? void 0 : U.identifier) === Q.identifier ? P : { ...P, selectedVoice: Q };
12586
- })), F && (Q ? S({ selectedVoice: Q }) : S());
12587
- }, [i, S, Q, D, o]);
12596
+ })), F && (Q ? w({ selectedVoice: Q }) : w());
12597
+ }, [i, w, Q, D, o]);
12588
12598
  return le(() => {
12589
12599
  var P;
12590
12600
  if (N.isPlaying === !1)
@@ -12602,7 +12612,7 @@ const zE = "_footerVoiceForm_lsc2c_2", WE = {
12602
12612
  voices: n,
12603
12613
  selectedId: y,
12604
12614
  handleSelect: D,
12605
- playingItem: w,
12615
+ playingItem: S,
12606
12616
  handleAvatarClick: O,
12607
12617
  handleDetailsClick: T,
12608
12618
  wavegroup: J,