@mt-gloss/ui 0.1.52 → 0.1.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +320 -317
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -15,31 +15,31 @@ import Pt from "@mui/icons-material/AspectRatio";
15
15
  import Ft from "@mui/icons-material/Palette";
16
16
  import Et from "@mui/icons-material/PushPin";
17
17
  function Nn(e = {}) {
18
- const { enabled: t = !0, returnTo: a } = e, n = I(null);
18
+ const { enabled: t = !0, returnTo: n } = e, a = I(null);
19
19
  return O(() => {
20
- t && (n.current = a || document.activeElement);
21
- }, [t, a]), O(() => () => {
22
- t && n.current && setTimeout(() => {
23
- n.current?.focus?.();
20
+ t && (a.current = n || document.activeElement);
21
+ }, [t, n]), O(() => () => {
22
+ t && a.current && setTimeout(() => {
23
+ a.current?.focus?.();
24
24
  }, 0);
25
- }, [t]), n;
25
+ }, [t]), a;
26
26
  }
27
27
  function Dn(e) {
28
28
  const {
29
29
  items: t,
30
- activeIndex: a,
31
- onActiveIndexChange: n,
30
+ activeIndex: n,
31
+ onActiveIndexChange: a,
32
32
  loop: i = !0,
33
33
  orientation: s = "vertical",
34
34
  enabled: o = !0,
35
35
  isItemDisabled: l,
36
36
  onSelect: d,
37
37
  onEscape: c
38
- } = e, [f, h] = $(-1), g = a !== void 0 ? a : f, u = w(
38
+ } = e, [f, h] = $(-1), g = n !== void 0 ? n : f, u = w(
39
39
  (m) => {
40
- a === void 0 && h(m), n?.(m);
40
+ n === void 0 && h(m), a?.(m);
41
41
  },
42
- [a, n]
42
+ [n, a]
43
43
  ), N = w(() => t.map((m, v) => ({ item: m, index: v })).filter(({ item: m, index: v }) => !l?.(m, v)).map(({ index: m }) => m), [t, l]), b = w(
44
44
  (m, v) => {
45
45
  const k = N();
@@ -124,14 +124,14 @@ function Dn(e) {
124
124
  const At = ({
125
125
  label: e = "Set a target",
126
126
  unit: t,
127
- currentValue: a,
128
- onConfirm: n,
127
+ currentValue: n,
128
+ onConfirm: a,
129
129
  onSkip: i,
130
130
  hint: s
131
131
  }) => {
132
- const [o, l] = $(a != null ? String(a) : ""), d = () => {
132
+ const [o, l] = $(n != null ? String(n) : ""), d = () => {
133
133
  const u = parseFloat(o);
134
- Number.isNaN(u) || n(u);
134
+ Number.isNaN(u) || a(u);
135
135
  }, c = (u) => {
136
136
  u.key === "Enter" ? (u.preventDefault(), d()) : u.key === "Escape" && (u.preventDefault(), i?.());
137
137
  }, f = _t(), h = `gloss-target-input-field-${f}`, g = s ? `gloss-target-input-hint-${f}` : void 0;
@@ -288,8 +288,8 @@ const At = ({
288
288
  function Wt({
289
289
  open: e,
290
290
  anchorEl: t,
291
- statusId: a,
292
- onOpenInTable: n,
291
+ statusId: n,
292
+ onOpenInTable: a,
293
293
  onShowOnGraph: i,
294
294
  overflowActions: s,
295
295
  onClose: o
@@ -320,7 +320,7 @@ function Wt({
320
320
  "div",
321
321
  {
322
322
  ref: c,
323
- "data-status-chip-menu": a,
323
+ "data-status-chip-menu": n,
324
324
  role: "menu",
325
325
  "aria-label": "Status actions",
326
326
  style: f(),
@@ -333,7 +333,7 @@ function Wt({
333
333
  onMouseEnter: () => d("__primary"),
334
334
  onMouseLeave: () => d(null),
335
335
  onClick: () => {
336
- n(a), o();
336
+ a(n), o();
337
337
  },
338
338
  children: "Open in table"
339
339
  }
@@ -346,7 +346,7 @@ function Wt({
346
346
  onMouseEnter: () => d("__graph"),
347
347
  onMouseLeave: () => d(null),
348
348
  onClick: () => {
349
- i(a), o();
349
+ i(n), o();
350
350
  },
351
351
  children: "Show on graph"
352
352
  }
@@ -360,7 +360,7 @@ function Wt({
360
360
  onMouseEnter: () => d(u.id),
361
361
  onMouseLeave: () => d(null),
362
362
  onClick: () => {
363
- u.onSelect(a), o();
363
+ u.onSelect(n), o();
364
364
  },
365
365
  children: u.label
366
366
  },
@@ -420,7 +420,7 @@ function tt() {
420
420
  return "full";
421
421
  }
422
422
  }
423
- const Ee = ({ visible: e, variant: t, trigger: a, children: n, className: i }) => {
423
+ const Ee = ({ visible: e, variant: t, trigger: n, children: a, className: i }) => {
424
424
  const s = {
425
425
  "--gloss-swing-enter-ms": `${ge.enterDurationMs}ms`,
426
426
  "--gloss-swing-exit-ms": `${ge.exitDurationMs}ms`,
@@ -430,7 +430,7 @@ const Ee = ({ visible: e, variant: t, trigger: a, children: n, className: i }) =
430
430
  }, o = [
431
431
  "gloss-swing-reveal",
432
432
  `gloss-swing-reveal--${t}`,
433
- a === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
433
+ n === "hover+focus" ? "gloss-swing-reveal--hover-focus" : "",
434
434
  i ?? ""
435
435
  ].filter(Boolean).join(" ");
436
436
  return /* @__PURE__ */ r(
@@ -441,23 +441,23 @@ const Ee = ({ visible: e, variant: t, trigger: a, children: n, className: i }) =
441
441
  "data-visible": e ? "true" : "false",
442
442
  className: o,
443
443
  style: s,
444
- children: n
444
+ children: a
445
445
  }
446
446
  );
447
447
  }, jt = Nt(
448
- function({ state: t, onPointerDown: a, onPointerUp: n, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: d = "right", ariaLabel: c = "Resize card" }, f) {
448
+ function({ state: t, onPointerDown: n, onPointerUp: a, onPointerEnter: i, onPointerLeave: s, onKeyboardStep: o, onLostPointerCapture: l, edge: d = "right", ariaLabel: c = "Resize card" }, f) {
449
449
  const h = t === "handle-visible" || t === "dragging" || t === "settling", g = (b) => {
450
450
  try {
451
451
  b.currentTarget.setPointerCapture(b.pointerId);
452
452
  } catch {
453
453
  }
454
- a(b);
454
+ n(b);
455
455
  }, u = (b) => {
456
456
  try {
457
457
  b.currentTarget.hasPointerCapture?.(b.pointerId) && b.currentTarget.releasePointerCapture(b.pointerId);
458
458
  } catch {
459
459
  }
460
- n(b);
460
+ a(b);
461
461
  }, N = (b) => {
462
462
  !h || !o || (b.key === "ArrowRight" ? (b.preventDefault(), o("grow")) : b.key === "ArrowLeft" && (b.preventDefault(), o("shrink")));
463
463
  };
@@ -489,8 +489,8 @@ jt.displayName = "EdgeHoverHandle";
489
489
  function Gt({
490
490
  visible: e,
491
491
  targetColSpan: t,
492
- ghostWidth: a,
493
- enterMs: n = 180,
492
+ ghostWidth: n,
493
+ enterMs: a = 180,
494
494
  exitMs: i = 120
495
495
  }) {
496
496
  return /* @__PURE__ */ r(
@@ -504,8 +504,8 @@ function Gt({
504
504
  e ? "gloss-ghost-preview--visible" : ""
505
505
  ].filter(Boolean).join(" "),
506
506
  style: {
507
- width: a,
508
- transitionDuration: `${e ? n : i}ms`
507
+ width: n,
508
+ transitionDuration: `${e ? a : i}ms`
509
509
  }
510
510
  }
511
511
  );
@@ -552,7 +552,7 @@ class Vt {
552
552
  const [d, c] = this.samples, f = Math.max(1, c.t - d.t);
553
553
  return (c.x - d.x) / f * 1e3;
554
554
  }
555
- const [a, n, i] = this.samples, s = (i.x - n.x) / Math.max(1, i.t - n.t) * 1e3, o = (n.x - a.x) / Math.max(1, n.t - a.t) * 1e3, l = o;
555
+ const [n, a, i] = this.samples, s = (i.x - a.x) / Math.max(1, i.t - a.t) * 1e3, o = (a.x - n.x) / Math.max(1, a.t - n.t) * 1e3, l = o;
556
556
  return (s * 3 + o * 2 + l * 1) / 6;
557
557
  }
558
558
  }
@@ -579,8 +579,8 @@ const at = {
579
579
  function Kn({
580
580
  currentColSpan: e,
581
581
  stackable: t,
582
- onResize: a,
583
- onCancel: n,
582
+ onResize: n,
583
+ onCancel: a,
584
584
  step: i = 180,
585
585
  gap: s = 0,
586
586
  tuning: o,
@@ -669,11 +669,11 @@ function Kn({
669
669
  (C, E) => {
670
670
  const A = We(C), K = C !== e;
671
671
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
672
- S.jump(A), K && E ? a({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || n?.(), S.jump(0), y.current = "idle", b("idle");
672
+ S.jump(A), K && E ? n({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), S.jump(0), y.current = "idle", b("idle");
673
673
  return;
674
674
  }
675
675
  const q = U.current.getWeightedVelocity() * B.velocityMultiplier;
676
- y.current = "settling", b("settling"), K && E ? a({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || n?.(), H(), F.current = Ve(S, A, {
676
+ y.current = "settling", b("settling"), K && E ? n({ direction: E, targetColSpan: C, mode: t ? "slot-fill" : "sparkline-fidelity" }) : K || a?.(), H(), F.current = Ve(S, A, {
677
677
  type: "spring",
678
678
  stiffness: B.stiffness,
679
679
  damping: B.damping,
@@ -688,7 +688,7 @@ function Kn({
688
688
  }
689
689
  });
690
690
  },
691
- [We, e, t, a, n, S, B, H]
691
+ [We, e, t, n, a, S, B, H]
692
692
  ), ht = w(
693
693
  (C) => {
694
694
  if (y.current !== "dragging") return;
@@ -702,7 +702,7 @@ function Kn({
702
702
  if (Z(), y.current === "dragging") {
703
703
  const C = R.current;
704
704
  if (typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
705
- S.jump(C), n?.(), S.jump(0), y.current = "idle", b("idle");
705
+ S.jump(C), a?.(), S.jump(0), y.current = "idle", b("idle");
706
706
  return;
707
707
  }
708
708
  const A = U.current.getWeightedVelocity();
@@ -713,13 +713,13 @@ function Kn({
713
713
  mass: B.mass,
714
714
  velocity: A,
715
715
  onComplete: () => {
716
- F.current = null, n?.(), S.jump(0), y.current = "idle", b("idle");
716
+ F.current = null, a?.(), S.jump(0), y.current = "idle", b("idle");
717
717
  }
718
718
  });
719
719
  return;
720
720
  }
721
- y.current === "handle-visible" && (n?.(), y.current = "cancelled", b("cancelled"));
722
- }, [Z, S, n, B, H]);
721
+ y.current === "handle-visible" && (a?.(), y.current = "cancelled", b("cancelled"));
722
+ }, [Z, S, a, B, H]);
723
723
  O(() => {
724
724
  if (N !== "dragging" && N !== "handle-visible") return;
725
725
  const C = (E) => {
@@ -831,10 +831,10 @@ const ie = {
831
831
  sectionDividerStaggerMs: 40
832
832
  };
833
833
  function zn(e) {
834
- const { cardWidthPx: t, slotCount: a, activeSlotIdx: n, pillWidthPx: i } = e;
835
- if (n == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(a) || a <= 0 || !Number.isInteger(n) || n < 0 || n >= a)
834
+ const { cardWidthPx: t, slotCount: n, activeSlotIdx: a, pillWidthPx: i } = e;
835
+ if (a == null || !Number.isFinite(t) || t <= 0 || !Number.isFinite(n) || n <= 0 || !Number.isInteger(a) || a < 0 || a >= n)
836
836
  return;
837
- const s = (n + 0.5) * (t / a);
837
+ const s = (a + 0.5) * (t / n);
838
838
  return i != null && Number.isFinite(i) && i > 0 ? s - i / 2 : s;
839
839
  }
840
840
  const Wn = [
@@ -1108,8 +1108,8 @@ const Wn = [
1108
1108
  function nt({
1109
1109
  open: e,
1110
1110
  onDismiss: t,
1111
- anchorRef: a,
1112
- pages: n,
1111
+ anchorRef: n,
1112
+ pages: a,
1113
1113
  activePageId: i,
1114
1114
  onPageChange: s,
1115
1115
  onCreatePage: o,
@@ -1141,10 +1141,10 @@ function nt({
1141
1141
  },
1142
1142
  open: e,
1143
1143
  onDismiss: t,
1144
- anchorRef: a,
1144
+ anchorRef: n,
1145
1145
  className: "gloss-page-dropdown",
1146
1146
  children: [
1147
- /* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: n.map((g) => {
1147
+ /* @__PURE__ */ r("ul", { role: "menu", className: "gloss-page-dropdown__list", children: a.map((g) => {
1148
1148
  const u = g.id === i;
1149
1149
  return /* @__PURE__ */ D(
1150
1150
  "li",
@@ -1203,8 +1203,8 @@ function nt({
1203
1203
  nt.displayName = "PageDropdown";
1204
1204
  const Xt = function({
1205
1205
  currentIndex: t,
1206
- total: a,
1207
- pages: n,
1206
+ total: n,
1207
+ pages: a,
1208
1208
  onPageChange: i,
1209
1209
  onCreatePage: s,
1210
1210
  onManagePages: o,
@@ -1216,7 +1216,7 @@ const Xt = function({
1216
1216
  g((M) => !M);
1217
1217
  }, []), N = w(() => {
1218
1218
  g(!1);
1219
- }, []), b = n[t]?.id ?? "";
1219
+ }, []), b = a[t]?.id ?? "";
1220
1220
  return /* @__PURE__ */ D(
1221
1221
  "div",
1222
1222
  {
@@ -1238,7 +1238,7 @@ const Xt = function({
1238
1238
  className: `gloss-page-chip__trigger${d === "name" ? " gloss-page-chip__trigger--name" : ""}`,
1239
1239
  "aria-haspopup": "menu",
1240
1240
  "aria-expanded": h,
1241
- "aria-label": d === "name" ? `${c ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${a}. Click to switch pages.`,
1241
+ "aria-label": d === "name" ? `${c ?? "Page"}. Click to switch pages.` : `Page ${t + 1} of ${n}. Click to switch pages.`,
1242
1242
  onClick: u,
1243
1243
  children: d === "name" ? /* @__PURE__ */ D(te, { children: [
1244
1244
  /* @__PURE__ */ r("span", { className: "gloss-page-chip__trigger-name", children: c ?? "" }),
@@ -1246,7 +1246,7 @@ const Xt = function({
1246
1246
  ] }) : /* @__PURE__ */ D(te, { children: [
1247
1247
  t + 1,
1248
1248
  " / ",
1249
- a
1249
+ n
1250
1250
  ] })
1251
1251
  }
1252
1252
  ),
@@ -1256,7 +1256,7 @@ const Xt = function({
1256
1256
  open: h,
1257
1257
  onDismiss: N,
1258
1258
  anchorRef: f,
1259
- pages: n,
1259
+ pages: a,
1260
1260
  activePageId: b,
1261
1261
  onPageChange: i,
1262
1262
  onCreatePage: s,
@@ -1933,22 +1933,22 @@ function oa() {
1933
1933
  const [e, t] = $(() => typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches);
1934
1934
  return O(() => {
1935
1935
  if (typeof window > "u" || typeof window.matchMedia != "function") return;
1936
- const a = window.matchMedia("(prefers-reduced-motion: reduce)"), n = (i) => t(i.matches);
1937
- return typeof a.addEventListener == "function" ? (a.addEventListener("change", n), () => a.removeEventListener("change", n)) : (a.addListener?.(n), () => {
1938
- a.removeListener?.(n);
1936
+ const n = window.matchMedia("(prefers-reduced-motion: reduce)"), a = (i) => t(i.matches);
1937
+ return typeof n.addEventListener == "function" ? (n.addEventListener("change", a), () => n.removeEventListener("change", a)) : (n.addListener?.(a), () => {
1938
+ n.removeListener?.(a);
1939
1939
  });
1940
1940
  }, []), e;
1941
1941
  }
1942
1942
  const la = ({
1943
1943
  dimensions: e,
1944
1944
  onDimensionSelect: t,
1945
- activeDimension: a,
1946
- ariaCardTypeLabel: n,
1945
+ activeDimension: n,
1946
+ ariaCardTypeLabel: a,
1947
1947
  className: i
1948
1948
  }) => {
1949
1949
  const s = I(null), o = I([]), l = oa(), d = we(() => Array.from(e), [e]);
1950
1950
  if (d.length === 0) return null;
1951
- const c = n ? `Configure ${n}: choose a dimension` : void 0, f = l ? "10ms" : "200ms", h = (g, u) => {
1951
+ const c = a ? `Configure ${a}: choose a dimension` : void 0, f = l ? "10ms" : "200ms", h = (g, u) => {
1952
1952
  const N = d.length - 1, b = (p) => {
1953
1953
  const M = o.current[p];
1954
1954
  M && M.focus();
@@ -1993,7 +1993,7 @@ const la = ({
1993
1993
  "--gloss-reconfig-backside-buttons-transition-duration": f
1994
1994
  },
1995
1995
  children: d.map((g, u) => {
1996
- const N = ia[g], b = a === g;
1996
+ const N = ia[g], b = n === g;
1997
1997
  return /* @__PURE__ */ D(
1998
1998
  "button",
1999
1999
  {
@@ -2171,8 +2171,8 @@ function Oe(e) {
2171
2171
  }
2172
2172
  function ca(e) {
2173
2173
  let t = 0;
2174
- for (const n of e) {
2175
- const i = Oe(n.size), s = n.gridPosition.col + i.cols - 1;
2174
+ for (const a of e) {
2175
+ const i = Oe(a.size), s = a.gridPosition.col + i.cols - 1;
2176
2176
  s > t && (t = s);
2177
2177
  }
2178
2178
  return `repeat(${t > 0 ? t : Math.max(e.length, 1)}, minmax(0, 1fr))`;
@@ -2201,7 +2201,7 @@ const da = function(t) {
2201
2201
  })
2202
2202
  }
2203
2203
  );
2204
- const { cards: a, composite: n } = t;
2204
+ const { cards: n, composite: a } = t;
2205
2205
  return /* @__PURE__ */ D(
2206
2206
  "div",
2207
2207
  {
@@ -2217,25 +2217,25 @@ const da = function(t) {
2217
2217
  padding: "10px 12px 8px",
2218
2218
  overflow: "visible"
2219
2219
  },
2220
- role: n?.label ? "group" : void 0,
2221
- "aria-label": n?.label,
2220
+ role: a?.label ? "group" : void 0,
2221
+ "aria-label": a?.label,
2222
2222
  tabIndex: void 0,
2223
2223
  children: [
2224
- n?.accentColor && /* @__PURE__ */ r(
2224
+ a?.accentColor && /* @__PURE__ */ r(
2225
2225
  "div",
2226
2226
  {
2227
2227
  className: "gloss-metric-group__accent",
2228
- style: { background: n.accentColor }
2228
+ style: { background: a.accentColor }
2229
2229
  }
2230
2230
  ),
2231
- n?.label && /* @__PURE__ */ D("div", { className: "gloss-metric-group__label", children: [
2232
- /* @__PURE__ */ r("span", { children: n.label }),
2233
- n?.trend && /* @__PURE__ */ r(
2231
+ a?.label && /* @__PURE__ */ D("div", { className: "gloss-metric-group__label", children: [
2232
+ /* @__PURE__ */ r("span", { children: a.label }),
2233
+ a?.trend && /* @__PURE__ */ r(
2234
2234
  "span",
2235
2235
  {
2236
2236
  className: "gloss-metric-group__trend",
2237
- "data-direction": n.trend.direction,
2238
- children: n.trend.delta
2237
+ "data-direction": a.trend.direction,
2238
+ children: a.trend.delta
2239
2239
  }
2240
2240
  )
2241
2241
  ] }),
@@ -2246,9 +2246,9 @@ const da = function(t) {
2246
2246
  style: {
2247
2247
  display: "grid",
2248
2248
  gap: "var(--gloss-spacing-2, 8px)",
2249
- gridTemplateColumns: ca(a)
2249
+ gridTemplateColumns: ca(n)
2250
2250
  },
2251
- children: a.map((i) => {
2251
+ children: n.map((i) => {
2252
2252
  const s = Oe(i.size);
2253
2253
  return /* @__PURE__ */ r(
2254
2254
  "div",
@@ -2295,12 +2295,12 @@ function ga() {
2295
2295
  } catch {
2296
2296
  }
2297
2297
  }, [e]);
2298
- const a = w(
2298
+ const n = w(
2299
2299
  (s, o) => {
2300
2300
  t((l) => ({ ...l, [s]: o }));
2301
2301
  },
2302
2302
  []
2303
- ), n = w(
2303
+ ), a = w(
2304
2304
  (s) => {
2305
2305
  t((o) => ({ ...o, [s]: re[s] }));
2306
2306
  },
@@ -2308,7 +2308,7 @@ function ga() {
2308
2308
  ), i = w(() => {
2309
2309
  t({ ...re });
2310
2310
  }, []);
2311
- return { values: e, setValue: a, resetRow: n, resetAll: i };
2311
+ return { values: e, setValue: n, resetRow: a, resetAll: i };
2312
2312
  }
2313
2313
  const pa = [
2314
2314
  { key: "stiffness", label: "Spring stiffness", unit: "", min: 100, max: 1e3, step: 10 },
@@ -2344,12 +2344,12 @@ function fa() {
2344
2344
  }
2345
2345
  );
2346
2346
  }
2347
- function ba({ spec: e, value: t, onChange: a, onReset: n, flashing: i }) {
2347
+ function ba({ spec: e, value: t, onChange: n, onReset: a, flashing: i }) {
2348
2348
  const s = w(
2349
2349
  (o) => {
2350
- (o.key === "r" || o.key === "R") && (o.preventDefault(), n());
2350
+ (o.key === "r" || o.key === "R") && (o.preventDefault(), a());
2351
2351
  },
2352
- [n]
2352
+ [a]
2353
2353
  );
2354
2354
  return /* @__PURE__ */ D(
2355
2355
  "div",
@@ -2374,7 +2374,7 @@ function ba({ spec: e, value: t, onChange: a, onReset: n, flashing: i }) {
2374
2374
  step: e.step,
2375
2375
  value: t,
2376
2376
  "aria-label": e.label,
2377
- onChange: (o) => a(Number(o.target.value))
2377
+ onChange: (o) => n(Number(o.target.value))
2378
2378
  }
2379
2379
  ),
2380
2380
  /* @__PURE__ */ r(
@@ -2383,7 +2383,7 @@ function ba({ spec: e, value: t, onChange: a, onReset: n, flashing: i }) {
2383
2383
  type: "button",
2384
2384
  className: "gloss-dev-tuning-panel__reset",
2385
2385
  "aria-label": `Reset ${e.label}`,
2386
- onClick: n,
2386
+ onClick: a,
2387
2387
  children: /* @__PURE__ */ r(fa, {})
2388
2388
  }
2389
2389
  )
@@ -2404,15 +2404,15 @@ function ya(e = {}) {
2404
2404
  }
2405
2405
  ya.displayName = "DevTuningPanel";
2406
2406
  function wa() {
2407
- const e = ga(), { values: t, setValue: a, resetRow: n, resetAll: i } = e, [s, o] = $(null), l = I(null), d = w((g) => {
2407
+ const e = ga(), { values: t, setValue: n, resetRow: a, resetAll: i } = e, [s, o] = $(null), l = I(null), d = w((g) => {
2408
2408
  l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => {
2409
2409
  o(null), l.current = null;
2410
2410
  }, 200);
2411
2411
  }, []), c = w(
2412
2412
  (g, u) => {
2413
- a(g, u), g === "snapInPx" && u > t.snapOutPx && (a("snapOutPx", u), d("snapOutPx"));
2413
+ n(g, u), g === "snapInPx" && u > t.snapOutPx && (n("snapOutPx", u), d("snapOutPx"));
2414
2414
  },
2415
- [a, t.snapOutPx, d]
2415
+ [n, t.snapOutPx, d]
2416
2416
  ), f = we(() => pa, []), h = xt();
2417
2417
  return /* @__PURE__ */ D(
2418
2418
  Ce.div,
@@ -2443,7 +2443,7 @@ function wa() {
2443
2443
  spec: g,
2444
2444
  value: t[g.key],
2445
2445
  onChange: (u) => c(g.key, u),
2446
- onReset: () => n(g.key),
2446
+ onReset: () => a(g.key),
2447
2447
  flashing: s === g.key
2448
2448
  },
2449
2449
  g.key
@@ -2464,8 +2464,8 @@ function wa() {
2464
2464
  function vr({
2465
2465
  state: e,
2466
2466
  originX: t,
2467
- originY: a,
2468
- leftEdgeX: n,
2467
+ originY: n,
2468
+ leftEdgeX: a,
2469
2469
  rightEdgeX: i,
2470
2470
  minBoundaryX: s,
2471
2471
  snapBoundariesX: o,
@@ -2477,12 +2477,12 @@ function vr({
2477
2477
  style: g
2478
2478
  }) {
2479
2479
  if (e === "hidden") return null;
2480
- const u = Math.max(0, i - n), N = Math.max(0, d - l), b = {
2480
+ const u = Math.max(0, i - a), N = Math.max(0, d - l), b = {
2481
2481
  "--gloss-resize-envelope-enter-ms": `${c}ms`,
2482
2482
  "--gloss-resize-envelope-exit-ms": `${f}ms`,
2483
- "--gloss-resize-envelope-origin-x": `${t - n}px`,
2484
- "--gloss-resize-envelope-origin-y": `${a - l}px`,
2485
- left: n,
2483
+ "--gloss-resize-envelope-origin-x": `${t - a}px`,
2484
+ "--gloss-resize-envelope-origin-y": `${n - l}px`,
2485
+ left: a,
2486
2486
  top: l,
2487
2487
  width: u,
2488
2488
  height: N,
@@ -2510,7 +2510,7 @@ function vr({
2510
2510
  {
2511
2511
  className: "gloss-resize-envelope__edge gloss-resize-envelope__edge--min-boundary",
2512
2512
  "data-edge": "min-boundary",
2513
- style: { left: s - n }
2513
+ style: { left: s - a }
2514
2514
  }
2515
2515
  ),
2516
2516
  /* @__PURE__ */ r(
@@ -2526,7 +2526,7 @@ function vr({
2526
2526
  {
2527
2527
  className: "gloss-resize-envelope__snap-line",
2528
2528
  "data-snap-line": !0,
2529
- style: { left: p - n }
2529
+ style: { left: p - a }
2530
2530
  },
2531
2531
  p
2532
2532
  ))
@@ -2537,14 +2537,14 @@ function vr({
2537
2537
  function yr({
2538
2538
  density: e,
2539
2539
  canAccept: t,
2540
- blocked: a = !1,
2541
- proximityOpacity: n,
2540
+ blocked: n = !1,
2541
+ proximityOpacity: a,
2542
2542
  state: i,
2543
2543
  className: s,
2544
2544
  children: o,
2545
2545
  ...l
2546
2546
  }) {
2547
- const d = n != null ? { ...l.style, "--_proximity-opacity": String(n) } : l.style;
2547
+ const d = a != null ? { ...l.style, "--_proximity-opacity": String(a) } : l.style;
2548
2548
  return /* @__PURE__ */ r(
2549
2549
  "div",
2550
2550
  {
@@ -2552,34 +2552,34 @@ function yr({
2552
2552
  style: d,
2553
2553
  "data-density": e,
2554
2554
  "data-can-accept": t ? "true" : "false",
2555
- "data-blocked": a ? "true" : void 0,
2556
- "data-proximity-driven": n != null ? "true" : void 0,
2555
+ "data-blocked": n ? "true" : void 0,
2556
+ "data-proximity-driven": a != null ? "true" : void 0,
2557
2557
  "data-state": i ?? void 0,
2558
2558
  "data-testid": "gloss-drop-anchor-cell",
2559
2559
  className: [
2560
2560
  "gloss-drop-anchor-cell",
2561
- a && "gloss-drop-anchor-cell--blocked-pulse",
2561
+ n && "gloss-drop-anchor-cell--blocked-pulse",
2562
2562
  s
2563
2563
  ].filter(Boolean).join(" "),
2564
2564
  children: o
2565
2565
  }
2566
2566
  );
2567
2567
  }
2568
- function _a(e, t, a, n) {
2569
- const i = (e + a) / 2, s = Math.min(t, n) - 40;
2570
- return `M${e},${t} Q${i},${s} ${a},${n}`;
2568
+ function _a(e, t, n, a) {
2569
+ const i = (e + n) / 2, s = Math.min(t, a) - 40;
2570
+ return `M${e},${t} Q${i},${s} ${n},${a}`;
2571
2571
  }
2572
2572
  function wr({
2573
2573
  segments: e,
2574
2574
  durationMs: t = ie.spilloverArcDurationMs,
2575
- staggerMs: a = ie.spilloverStaggerMs,
2576
- className: n,
2575
+ staggerMs: n = ie.spilloverStaggerMs,
2576
+ className: a,
2577
2577
  style: i
2578
2578
  }) {
2579
2579
  return e.length === 0 ? null : /* @__PURE__ */ r(
2580
2580
  "svg",
2581
2581
  {
2582
- className: ["gloss-spillover-arc", n].filter(Boolean).join(" "),
2582
+ className: ["gloss-spillover-arc", a].filter(Boolean).join(" "),
2583
2583
  "data-testid": "gloss-spillover-arc",
2584
2584
  "aria-hidden": "true",
2585
2585
  overflow: "visible",
@@ -2591,7 +2591,7 @@ function wr({
2591
2591
  className: "gloss-spillover-arc__path",
2592
2592
  d: _a(s.fromX, s.fromY, s.toX, s.toY),
2593
2593
  style: {
2594
- animationDelay: `${o * a}ms`,
2594
+ animationDelay: `${o * n}ms`,
2595
2595
  animationDuration: `${t}ms`
2596
2596
  }
2597
2597
  },
@@ -2603,8 +2603,8 @@ function wr({
2603
2603
  function _r({
2604
2604
  state: e,
2605
2605
  staggerIndex: t = 0,
2606
- fadeInMs: a = ie.sectionDividerFadeInMs,
2607
- fadeOutMs: n = ie.sectionDividerFadeOutMs,
2606
+ fadeInMs: n = ie.sectionDividerFadeInMs,
2607
+ fadeOutMs: a = ie.sectionDividerFadeOutMs,
2608
2608
  staggerMs: i = ie.sectionDividerStaggerMs,
2609
2609
  variant: s = "dashed",
2610
2610
  className: o,
@@ -2612,8 +2612,8 @@ function _r({
2612
2612
  ...d
2613
2613
  }) {
2614
2614
  const c = {
2615
- "--gloss-section-divider-fade-in-ms": `${a}ms`,
2616
- "--gloss-section-divider-fade-out-ms": `${n}ms`,
2615
+ "--gloss-section-divider-fade-in-ms": `${n}ms`,
2616
+ "--gloss-section-divider-fade-out-ms": `${a}ms`,
2617
2617
  "--gloss-section-divider-stagger-delay": `${t * i}ms`,
2618
2618
  ...l
2619
2619
  };
@@ -2637,15 +2637,15 @@ function _r({
2637
2637
  function Nr({
2638
2638
  enabled: e,
2639
2639
  onCollapse: t,
2640
- onAdd: a,
2641
- addGlyphLabel: n,
2640
+ onAdd: n,
2641
+ addGlyphLabel: a,
2642
2642
  collapseGlyphLabel: i,
2643
2643
  className: s,
2644
2644
  style: o,
2645
2645
  onPack: l,
2646
2646
  ariaLabel: d
2647
2647
  }) {
2648
- const c = n ?? "Add card to this cell", f = i ?? d ?? "Pack row — shift cards left", h = t ?? l, g = yt();
2648
+ const c = a ?? "Add card to this cell", f = i ?? d ?? "Pack row — shift cards left", h = t ?? l, g = yt();
2649
2649
  return /* @__PURE__ */ D(ke.Fragment, { children: [
2650
2650
  /* @__PURE__ */ r(Ee, { visible: !g.isActive, variant: "pack", trigger: "hover+focus", children: /* @__PURE__ */ r(
2651
2651
  "button",
@@ -2660,7 +2660,7 @@ function Nr({
2660
2660
  ].filter(Boolean).join(" "),
2661
2661
  style: o,
2662
2662
  onClick: (u) => {
2663
- u.stopPropagation(), a?.();
2663
+ u.stopPropagation(), n?.();
2664
2664
  },
2665
2665
  children: /* @__PURE__ */ r("span", { "aria-hidden": "true", className: "gloss-empty-cell-pack-affordance__glyph", children: "+" })
2666
2666
  }
@@ -2687,15 +2687,15 @@ function Dr() {
2687
2687
  function kr({
2688
2688
  tint: e,
2689
2689
  colSpan: t,
2690
- colWidth: a,
2691
- rowHeight: n,
2690
+ colWidth: n,
2691
+ rowHeight: a,
2692
2692
  gap: i,
2693
2693
  x: s,
2694
2694
  y: o,
2695
2695
  children: l,
2696
2696
  className: d
2697
2697
  }) {
2698
- const c = t * a + (t - 1) * i;
2698
+ const c = t * n + (t - 1) * i;
2699
2699
  return /* @__PURE__ */ r(
2700
2700
  Ce.div,
2701
2701
  {
@@ -2707,7 +2707,7 @@ function kr({
2707
2707
  `gloss-drag-ghost--tint-${e}`,
2708
2708
  d
2709
2709
  ].filter(Boolean).join(" "),
2710
- style: { x: s, y: o, width: c, height: n },
2710
+ style: { x: s, y: o, width: c, height: a },
2711
2711
  children: l
2712
2712
  }
2713
2713
  );
@@ -2716,15 +2716,15 @@ const Na = 3;
2716
2716
  function lt({
2717
2717
  gesture: e,
2718
2718
  cell: t,
2719
- colSpan: a,
2720
- colWidth: n,
2719
+ colSpan: n,
2720
+ colWidth: a,
2721
2721
  gap: i,
2722
2722
  rowHeight: s,
2723
2723
  pattern: o = "solid",
2724
2724
  transitionMs: l = 120,
2725
2725
  className: d
2726
2726
  }) {
2727
- const c = a * n + (a - 1) * i, h = (t.section * Na + t.col) * (n + i), g = t.row * (s + i), u = e === "resize" ? 2.5 : 2, N = o === "dashed-retreated" ? "dashed" : "solid", b = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline";
2727
+ const c = n * a + (n - 1) * i, h = (t.section * Na + t.col) * (a + i), g = t.row * (s + i), u = e === "resize" ? 2.5 : 2, N = o === "dashed-retreated" ? "dashed" : "solid", b = e === "drag" ? "gloss-snap-outline" : "gloss-tracking-outline";
2728
2728
  return /* @__PURE__ */ r(
2729
2729
  "div",
2730
2730
  {
@@ -2759,17 +2759,17 @@ function Cr(e) {
2759
2759
  function xr({
2760
2760
  items: e,
2761
2761
  children: t,
2762
- className: a,
2763
- debugMagenta: n
2762
+ className: n,
2763
+ debugMagenta: a
2764
2764
  }) {
2765
- const i = process.env.NODE_ENV !== "production" && (n || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0);
2765
+ const i = process.env.NODE_ENV !== "production" && (a || typeof window < "u" && window.__GLOSS_CASCADE_PREVIEW_DEBUG__ === !0);
2766
2766
  return e.length === 0 ? null : /* @__PURE__ */ r(te, { children: e.map((s) => /* @__PURE__ */ r(
2767
2767
  Ce.div,
2768
2768
  {
2769
2769
  "data-card-id": s.cardId,
2770
2770
  "data-testid": "gloss-cascade-preview-item",
2771
2771
  "aria-hidden": "true",
2772
- className: ["gloss-cascade-preview-item", a].filter(Boolean).join(" "),
2772
+ className: ["gloss-cascade-preview-item", n].filter(Boolean).join(" "),
2773
2773
  style: {
2774
2774
  position: "absolute",
2775
2775
  left: s.left,
@@ -2788,12 +2788,12 @@ function xr({
2788
2788
  const Da = ({
2789
2789
  consumed: e,
2790
2790
  elapsed: t,
2791
- severity: a = "neutral"
2791
+ severity: n = "neutral"
2792
2792
  }) => {
2793
- const n = I(null), i = I(null);
2793
+ const a = I(null), i = I(null);
2794
2794
  O(() => {
2795
2795
  const l = Math.min(100, Math.max(0, e.value)), d = Math.min(100, Math.max(0, t.value)), c = requestAnimationFrame(() => {
2796
- n.current && (n.current.style.width = `${l}%`), i.current && (i.current.style.width = `${d}%`);
2796
+ a.current && (a.current.style.width = `${l}%`), i.current && (i.current.style.width = `${d}%`);
2797
2797
  });
2798
2798
  return () => cancelAnimationFrame(c);
2799
2799
  }, [e.value, t.value]);
@@ -2810,8 +2810,8 @@ const Da = ({
2810
2810
  /* @__PURE__ */ r("div", { className: "gloss-dual-pace-bars__track", children: /* @__PURE__ */ r(
2811
2811
  "div",
2812
2812
  {
2813
- ref: n,
2814
- className: `gloss-dual-pace-bars__fill gloss-dual-pace-bars__fill--consumed gloss-dual-pace-bars__fill--${a}`,
2813
+ ref: a,
2814
+ className: `gloss-dual-pace-bars__fill gloss-dual-pace-bars__fill--consumed gloss-dual-pace-bars__fill--${n}`,
2815
2815
  style: { width: "0%" },
2816
2816
  role: "meter",
2817
2817
  "aria-valuenow": Math.min(100, Math.max(0, e.value)),
@@ -2848,10 +2848,10 @@ const Da = ({
2848
2848
  ]
2849
2849
  }
2850
2850
  );
2851
- }, ka = ({ label: e, value: t, severity: a }) => /* @__PURE__ */ D(
2851
+ }, ka = ({ label: e, value: t, severity: n }) => /* @__PURE__ */ D(
2852
2852
  "div",
2853
2853
  {
2854
- className: `gloss-gap-readout gloss-gap-readout--${a}`,
2854
+ className: `gloss-gap-readout gloss-gap-readout--${n}`,
2855
2855
  "aria-label": `${e}: ${t}`,
2856
2856
  children: [
2857
2857
  /* @__PURE__ */ r("hr", { className: "gloss-gap-readout__separator" }),
@@ -2878,17 +2878,17 @@ const Da = ({
2878
2878
  }
2879
2879
  )
2880
2880
  ] }), Sr = (e) => {
2881
- const [t, a] = $(!1), n = e.target?.value, i = n !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
2881
+ const [t, n] = $(!1), a = e.target?.value, i = a !== void 0, s = e.paceGapUnit === "usd" ? "$" : "%", o = /* @__PURE__ */ r(
2882
2882
  At,
2883
2883
  {
2884
2884
  label: `Set a target for ${e.label}`,
2885
2885
  unit: s,
2886
- currentValue: n,
2886
+ currentValue: a,
2887
2887
  onConfirm: (l) => {
2888
- e.onTargetChange(l), a(!1);
2888
+ e.onTargetChange(l), n(!1);
2889
2889
  },
2890
2890
  onSkip: () => {
2891
- e.onTargetSkip?.(), a(!1);
2891
+ e.onTargetSkip?.(), n(!1);
2892
2892
  }
2893
2893
  }
2894
2894
  );
@@ -2898,7 +2898,7 @@ const Da = ({
2898
2898
  colSpan: 2,
2899
2899
  enableQuickSettings: !0,
2900
2900
  isFlipped: t,
2901
- onFlipChange: a,
2901
+ onFlipChange: n,
2902
2902
  quickConfigSlot: o,
2903
2903
  onRemove: e.onRemove,
2904
2904
  children: /* @__PURE__ */ D("div", { className: `gloss-pace-card ${e.isStale ? "gloss-metric-data-stale" : ""}`, children: [
@@ -2918,7 +2918,7 @@ const Da = ({
2918
2918
  Ca,
2919
2919
  {
2920
2920
  label: e.label,
2921
- onSetTarget: () => a(!0)
2921
+ onSetTarget: () => n(!0)
2922
2922
  }
2923
2923
  ) })
2924
2924
  ] })
@@ -2941,16 +2941,16 @@ const Da = ({
2941
2941
  ),
2942
2942
  /* @__PURE__ */ r("div", { className: "gloss-pace-tile-preview__gap-strip" })
2943
2943
  ] });
2944
- function xa({ id: e, label: t, selected: a, focused: n, disabled: i, badge: s, onClick: o }) {
2944
+ function xa({ id: e, label: t, selected: n, focused: a, disabled: i, badge: s, onClick: o }) {
2945
2945
  return /* @__PURE__ */ r(
2946
2946
  "span",
2947
2947
  {
2948
2948
  role: "radio",
2949
- "aria-checked": a,
2949
+ "aria-checked": n,
2950
2950
  "aria-disabled": i || void 0,
2951
- tabIndex: n ? 0 : -1,
2951
+ tabIndex: a ? 0 : -1,
2952
2952
  className: "gloss-lens-chip",
2953
- "data-selected": a || void 0,
2953
+ "data-selected": n || void 0,
2954
2954
  "data-disabled": i || void 0,
2955
2955
  onClick: () => {
2956
2956
  i || o(e);
@@ -2965,8 +2965,8 @@ function xa({ id: e, label: t, selected: a, focused: n, disabled: i, badge: s, o
2965
2965
  function Sa({
2966
2966
  lenses: e,
2967
2967
  value: t,
2968
- onChange: a,
2969
- "aria-label": n = "Lens"
2968
+ onChange: n,
2969
+ "aria-label": a = "Lens"
2970
2970
  }) {
2971
2971
  const [i, s] = $(
2972
2972
  () => Math.max(0, e.findIndex((l) => l.id === t))
@@ -2978,7 +2978,7 @@ function Sa({
2978
2978
  "div",
2979
2979
  {
2980
2980
  role: "radiogroup",
2981
- "aria-label": n,
2981
+ "aria-label": a,
2982
2982
  onKeyDown: (l) => {
2983
2983
  switch (l.key) {
2984
2984
  case "ArrowRight":
@@ -2999,7 +2999,7 @@ function Sa({
2999
2999
  case " ": {
3000
3000
  l.preventDefault();
3001
3001
  const d = e[i];
3002
- d && !d.disabled && a(d.id);
3002
+ d && !d.disabled && n(d.id);
3003
3003
  break;
3004
3004
  }
3005
3005
  }
@@ -3014,7 +3014,7 @@ function Sa({
3014
3014
  focused: d === i,
3015
3015
  disabled: l.disabled,
3016
3016
  badge: l.badge,
3017
- onClick: a
3017
+ onClick: n
3018
3018
  },
3019
3019
  l.id
3020
3020
  ))
@@ -3029,13 +3029,13 @@ function Ra({ heading: e, children: t }) {
3029
3029
  ] });
3030
3030
  }
3031
3031
  Ra.displayName = "StarterRail";
3032
- function Ma({ heading: e, children: t, emptyStateLabel: a }) {
3033
- const n = !t || Array.isArray(t) && t.length === 0;
3032
+ function Ma({ heading: e, children: t, emptyStateLabel: n }) {
3033
+ const a = !t || Array.isArray(t) && t.length === 0;
3034
3034
  return /* @__PURE__ */ D("section", { className: "gloss-more-in-lens-rail", "aria-label": e, children: [
3035
3035
  /* @__PURE__ */ r("header", { className: "gloss-more-in-lens-rail__heading", children: e }),
3036
3036
  /* @__PURE__ */ D("div", { className: "gloss-more-in-lens-rail__tiles", children: [
3037
3037
  t,
3038
- n && a && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: a })
3038
+ a && n && /* @__PURE__ */ r("p", { className: "gloss-more-in-lens-rail__empty", children: n })
3039
3039
  ] })
3040
3040
  ] });
3041
3041
  }
@@ -3043,8 +3043,8 @@ Ma.displayName = "MoreInLensRail";
3043
3043
  function X({
3044
3044
  lead: e,
3045
3045
  name: t,
3046
- secondary: a,
3047
- value: n,
3046
+ secondary: n,
3047
+ value: a,
3048
3048
  trail: i,
3049
3049
  variant: s = "default",
3050
3050
  onClick: o,
@@ -3059,8 +3059,8 @@ function X({
3059
3059
  ].filter(Boolean).join(" "), f = /* @__PURE__ */ D(te, { children: [
3060
3060
  e !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__lead", children: e }),
3061
3061
  /* @__PURE__ */ r("span", { className: "gloss-entity-row__name", title: t, children: t }),
3062
- a !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: a }),
3063
- /* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: n }),
3062
+ n !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__secondary", children: n }),
3063
+ /* @__PURE__ */ r("span", { className: "gloss-entity-row__value", children: a }),
3064
3064
  i !== void 0 && /* @__PURE__ */ r("span", { className: "gloss-entity-row__trail", children: i })
3065
3065
  ] });
3066
3066
  return o ? /* @__PURE__ */ r("div", { role: "listitem", className: c, style: d, children: /* @__PURE__ */ r(
@@ -3110,35 +3110,35 @@ ve.displayName = "SeverityDot";
3110
3110
  function ct({
3111
3111
  delta: e,
3112
3112
  direction: t = "flat",
3113
- "aria-label": a
3113
+ "aria-label": n
3114
3114
  }) {
3115
3115
  if (e === "new")
3116
3116
  return /* @__PURE__ */ r(
3117
3117
  "span",
3118
3118
  {
3119
3119
  role: "img",
3120
- "aria-label": a,
3120
+ "aria-label": n,
3121
3121
  className: "gloss-rank-delta gloss-rank-delta--new",
3122
3122
  children: "NEW"
3123
3123
  }
3124
3124
  );
3125
- const n = t === "up" ? "▲" : t === "down" ? "▼" : "—";
3125
+ const a = t === "up" ? "▲" : t === "down" ? "▼" : "—";
3126
3126
  return /* @__PURE__ */ D(
3127
3127
  "span",
3128
3128
  {
3129
3129
  role: "img",
3130
- "aria-label": a,
3130
+ "aria-label": n,
3131
3131
  className: `gloss-rank-delta gloss-rank-delta--${t}`,
3132
3132
  children: [
3133
- n,
3133
+ a,
3134
3134
  e
3135
3135
  ]
3136
3136
  }
3137
3137
  );
3138
3138
  }
3139
3139
  ct.displayName = "RankDelta";
3140
- function ye({ fill: e, variant: t = "default", className: a }) {
3141
- const n = Math.max(0, Math.min(100, e));
3140
+ function ye({ fill: e, variant: t = "default", className: n }) {
3141
+ const a = Math.max(0, Math.min(100, e));
3142
3142
  return /* @__PURE__ */ r(
3143
3143
  "div",
3144
3144
  {
@@ -3146,9 +3146,9 @@ function ye({ fill: e, variant: t = "default", className: a }) {
3146
3146
  className: [
3147
3147
  "gloss-magnitude-bar",
3148
3148
  `gloss-magnitude-bar--${t}`,
3149
- a ?? ""
3149
+ n ?? ""
3150
3150
  ].filter(Boolean).join(" "),
3151
- style: { "--_fill": `${n}%` },
3151
+ style: { "--_fill": `${a}%` },
3152
3152
  children: /* @__PURE__ */ r("div", { className: "gloss-magnitude-bar__fill" })
3153
3153
  }
3154
3154
  );
@@ -3158,11 +3158,11 @@ const Ta = (e) => e.rankDelta === "new" ? "New entry" : e.direction === "up" ? `
3158
3158
  function Ia({
3159
3159
  label: e,
3160
3160
  rows: t,
3161
- rowCount: a,
3162
- rankDeltaPeriod: n,
3161
+ rowCount: n,
3162
+ rankDeltaPeriod: a,
3163
3163
  isStale: i
3164
3164
  }) {
3165
- const s = a ?? 3;
3165
+ const s = n ?? 3;
3166
3166
  return /* @__PURE__ */ D(te, { children: [
3167
3167
  /* @__PURE__ */ r(
3168
3168
  he,
@@ -3206,7 +3206,7 @@ function Ia({
3206
3206
  }
3207
3207
  ),
3208
3208
  /* @__PURE__ */ D("div", { className: "gloss-leaderboard__zone-c", children: [
3209
- n ?? "WoW",
3209
+ a ?? "WoW",
3210
3210
  " rank change"
3211
3211
  ] })
3212
3212
  ] });
@@ -3227,19 +3227,19 @@ const Pa = () => /* @__PURE__ */ D(
3227
3227
  );
3228
3228
  Pa.displayName = "LeaderboardTilePreview";
3229
3229
  const Fa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warning severity" : "Info severity", Ea = (e, t) => {
3230
- const a = e.sourceValue;
3231
- if (typeof a != "number") return !1;
3230
+ const n = e.sourceValue;
3231
+ if (typeof n != "number") return !1;
3232
3232
  switch (t.condition) {
3233
3233
  case "lt":
3234
- return a < t.threshold;
3234
+ return n < t.threshold;
3235
3235
  case "gt":
3236
- return a > t.threshold;
3236
+ return n > t.threshold;
3237
3237
  case "eq":
3238
- return a === t.threshold;
3238
+ return n === t.threshold;
3239
3239
  case "gte":
3240
- return a >= t.threshold;
3240
+ return n >= t.threshold;
3241
3241
  case "lte":
3242
- return a <= t.threshold;
3242
+ return n <= t.threshold;
3243
3243
  default:
3244
3244
  return !1;
3245
3245
  }
@@ -3247,13 +3247,13 @@ const Fa = (e) => e === "critical" ? "Critical severity" : e === "warn" ? "Warni
3247
3247
  function Aa({
3248
3248
  label: e,
3249
3249
  rows: t,
3250
- rule: a,
3251
- rowCount: n,
3250
+ rule: n,
3251
+ rowCount: a,
3252
3252
  emptyStateLabel: i,
3253
3253
  ruleSubtitle: s,
3254
3254
  isStale: o
3255
3255
  }) {
3256
- const l = t.filter((c) => Ea(c, a)), d = l.slice(0, n ?? 3);
3256
+ const l = t.filter((c) => Ea(c, n)), d = l.slice(0, a ?? 3);
3257
3257
  return l.length === 0 ? /* @__PURE__ */ D(te, { children: [
3258
3258
  /* @__PURE__ */ r(
3259
3259
  he,
@@ -3340,19 +3340,19 @@ const qe = ["MTD", "QTD", "YTD", "LYTD", "7D"], Qe = ["$248K", "$612K", "$1.24M"
3340
3340
  ], La = ({
3341
3341
  slotCount: e = 3,
3342
3342
  labels: t = qe,
3343
- sampleValues: a = Qe
3343
+ sampleValues: n = Qe
3344
3344
  }) => {
3345
- const n = Array.from({ length: e }, (i, s) => ({
3345
+ const a = Array.from({ length: e }, (i, s) => ({
3346
3346
  label: t[s] ?? qe[s] ?? "",
3347
- value: a[s] ?? Qe[s] ?? "",
3347
+ value: n[s] ?? Qe[s] ?? "",
3348
3348
  sparkPath: Xe[s % Xe.length]
3349
3349
  }));
3350
- return e === 1 ? /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--single", "aria-hidden": "true", children: /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview__single-value", children: n[0].value }) }) : /* @__PURE__ */ r(
3350
+ return e === 1 ? /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--single", "aria-hidden": "true", children: /* @__PURE__ */ r("div", { className: "gloss-stacked-group-tile-preview__single-value", children: a[0].value }) }) : /* @__PURE__ */ r(
3351
3351
  "div",
3352
3352
  {
3353
3353
  className: `gloss-stacked-group-tile-preview gloss-stacked-group-tile-preview--slots-${e}`,
3354
3354
  "aria-hidden": "true",
3355
- children: n.map((i, s) => /* @__PURE__ */ D("div", { className: "gloss-stacked-group-tile-preview__row", children: [
3355
+ children: a.map((i, s) => /* @__PURE__ */ D("div", { className: "gloss-stacked-group-tile-preview__row", children: [
3356
3356
  /* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-label", children: i.label }),
3357
3357
  /* @__PURE__ */ r("span", { className: "gloss-stacked-group-tile-preview__row-value", children: i.value }),
3358
3358
  /* @__PURE__ */ r(
@@ -3418,15 +3418,15 @@ const Mr = {
3418
3418
  function Er({
3419
3419
  cell: e,
3420
3420
  variant: t,
3421
- rampColor: a,
3422
- colWidth: n,
3421
+ rampColor: n,
3422
+ colWidth: a,
3423
3423
  rowHeight: i,
3424
3424
  gap: s,
3425
3425
  className: o
3426
3426
  }) {
3427
- const d = (e.section * $a + e.col) * (n + s), c = e.row * (i + s), f = t === "eligibility" ? se.eligibilityFill : t === "commit" ? se.commitFill : t === "rejection" ? se.rejectionFill : (
3427
+ const d = (e.section * $a + e.col) * (a + s), c = e.row * (i + s), f = t === "eligibility" ? se.eligibilityFill : t === "commit" ? se.commitFill : t === "rejection" ? se.rejectionFill : (
3428
3428
  /* ramp */
3429
- a ?? se.eligibilityFill
3429
+ n ?? se.eligibilityFill
3430
3430
  ), h = t === "rejection", g = h ? se.rejectionStroke : "transparent", u = h ? "dashed" : "solid";
3431
3431
  return /* @__PURE__ */ r(
3432
3432
  "div",
@@ -3441,7 +3441,7 @@ function Er({
3441
3441
  "aria-hidden": "true",
3442
3442
  style: {
3443
3443
  transform: `translate(${d}px, ${c}px)`,
3444
- width: n,
3444
+ width: a,
3445
3445
  height: i,
3446
3446
  // Use background-color longhand (NOT background shorthand) so jsdom + DOM
3447
3447
  // both preserve `var(...)` in inline cssText. The shorthand getter strips
@@ -3461,12 +3461,12 @@ const Ba = 3, Ka = [
3461
3461
  function Ar({
3462
3462
  cell: e,
3463
3463
  fireKey: t,
3464
- colWidth: a,
3465
- rowHeight: n,
3464
+ colWidth: n,
3465
+ rowHeight: a,
3466
3466
  gap: i,
3467
3467
  className: s
3468
3468
  }) {
3469
- const l = (e.section * Ba + e.col) * (a + i) + a / 2, d = e.row * (n + i) + n / 2;
3469
+ const l = (e.section * Ba + e.col) * (n + i) + n / 2, d = e.row * (a + i) + a / 2;
3470
3470
  return tt() === "reduced" ? /* @__PURE__ */ r(
3471
3471
  "div",
3472
3472
  {
@@ -3546,14 +3546,14 @@ const za = Object.freeze({
3546
3546
  refusePulse: null,
3547
3547
  shrinkFreedCells: []
3548
3548
  });
3549
- function Wa(e, t, a) {
3550
- const n = Math.max(0, Math.min(1, a)), i = (h) => [
3549
+ function Wa(e, t, n) {
3550
+ const a = Math.max(0, Math.min(1, n)), i = (h) => [
3551
3551
  parseInt(h.slice(1, 3), 16),
3552
3552
  parseInt(h.slice(3, 5), 16),
3553
3553
  parseInt(h.slice(5, 7), 16)
3554
3554
  ], [s, o, l] = i(e), [d, c, f] = i(t);
3555
- return `rgb(${Math.round(s + (d - s) * n)}, ${Math.round(o + (c - o) * n)}, ${Math.round(
3556
- l + (f - l) * n
3555
+ return `rgb(${Math.round(s + (d - s) * a)}, ${Math.round(o + (c - o) * a)}, ${Math.round(
3556
+ l + (f - l) * a
3557
3557
  )})`;
3558
3558
  }
3559
3559
  function ja(e) {
@@ -3563,31 +3563,35 @@ function Ga(e) {
3563
3563
  return e !== "idle" && e !== "settling" && e !== "cancelled";
3564
3564
  }
3565
3565
  function Lr(e) {
3566
- const { edgeHover: t, sourceCell: a, cascadeResult: n, colWidth: i, rowHeight: s, gap: o } = e, d = tt() === "reduced", c = ke.useRef(t.currentColSpan), f = ke.useRef({ armed: !0, fireKey: 0, lastResult: null });
3566
+ const { edgeHover: t, sourceCell: n, cascadeResult: a, colWidth: i, rowHeight: s, gap: o } = e, d = tt() === "reduced", c = ke.useRef(t.currentColSpan), f = ke.useRef({ armed: !0, fireKey: 0, lastResult: null });
3567
3567
  if (!Ga(t.state))
3568
3568
  return f.current.armed = !0, f.current.lastResult = null, za;
3569
- const h = t.hysteresisTargetColSpan, g = t.previewColSpan, u = n?.result === "rejected";
3569
+ const h = t.hysteresisTargetColSpan, g = t.previewColSpan, u = a?.result === "rejected";
3570
3570
  u || (c.current = h), u && f.current.armed && f.current.lastResult !== "rejected" && (f.current.fireKey += 1, f.current.armed = !1), f.current.lastResult = u ? "rejected" : "ok";
3571
3571
  const N = u ? c.current : h, b = {
3572
- cell: a,
3572
+ cell: { section: 0, col: 0, row: 0 },
3573
3573
  colSpan: N,
3574
3574
  pattern: u ? "dashed-retreated" : "solid"
3575
3575
  }, p = [];
3576
3576
  if (u) {
3577
- const _ = a.col + c.current, T = a.col + h - 1;
3577
+ const _ = n.col + c.current, T = n.col + h - 1;
3578
3578
  for (let x = _; x <= T && x <= 2; x++)
3579
3579
  p.push({
3580
- cell: { section: a.section, col: x, row: a.row },
3580
+ cell: {
3581
+ section: 0,
3582
+ col: x - n.col,
3583
+ row: 0
3584
+ },
3581
3585
  variant: "rejection"
3582
3586
  });
3583
3587
  } else {
3584
3588
  const _ = Math.abs(g - h), T = Math.max(0, Math.min(1, 1 - _));
3585
- for (let x = a.col; x < a.col + h && x <= 2; x++) {
3586
- if (x === a.col) continue;
3587
- const m = x === a.col + h - 1, v = {
3588
- section: a.section,
3589
- col: x,
3590
- row: a.row
3589
+ for (let x = n.col; x < n.col + h && x <= 2; x++) {
3590
+ if (x === n.col) continue;
3591
+ const m = x === n.col + h - 1, v = {
3592
+ section: 0,
3593
+ col: x - n.col,
3594
+ row: 0
3591
3595
  };
3592
3596
  m && t.direction.startsWith("grow") && h > 1 && !d && _ > 0 && _ < 1 ? p.push({
3593
3597
  cell: v,
@@ -3598,20 +3602,19 @@ function Lr(e) {
3598
3602
  }
3599
3603
  const M = [];
3600
3604
  if (t.currentColSpan > h)
3601
- for (let _ = a.col + h; _ < a.col + t.currentColSpan && _ <= 2; _++)
3605
+ for (let _ = n.col + h; _ < n.col + t.currentColSpan && _ <= 2; _++)
3602
3606
  M.push({
3603
- section: a.section,
3604
- col: _,
3605
- row: a.row
3607
+ section: 0,
3608
+ col: _ - n.col,
3609
+ row: 0
3606
3610
  });
3607
3611
  const P = f.current.fireKey > 0 ? {
3608
3612
  cell: {
3609
- section: a.section,
3610
- // Past-boundary cell (best effort — first rejected col).
3613
+ section: 0,
3611
3614
  col: ja(
3612
- Math.min(a.col + c.current, 2)
3615
+ Math.min(c.current, 2)
3613
3616
  ),
3614
- row: a.row
3617
+ row: 0
3615
3618
  },
3616
3619
  fireKey: f.current.fireKey
3617
3620
  } : null;
@@ -3633,8 +3636,8 @@ const ne = {
3633
3636
  function Va({
3634
3637
  message: e,
3635
3638
  primaryAction: t,
3636
- onDismiss: a,
3637
- anchorEl: n,
3639
+ onDismiss: n,
3640
+ anchorEl: a,
3638
3641
  anchorSelector: i
3639
3642
  }) {
3640
3643
  const [s, o] = V.useState(null), l = V.useMemo(
@@ -3642,19 +3645,19 @@ function Va({
3642
3645
  []
3643
3646
  );
3644
3647
  V.useEffect(() => {
3645
- !n && !i && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
3648
+ !a && !i && (typeof process > "u" || process.env.NODE_ENV !== "production") && console.error(
3646
3649
  "[InlineNudge] requires anchorEl or anchorSelector. AP-07: Do not mount InlineNudge in Layout/** or _app.tsx."
3647
3650
  );
3648
- }, [n, i]), V.useLayoutEffect(() => {
3651
+ }, [a, i]), V.useLayoutEffect(() => {
3649
3652
  let c = null;
3650
- if (n ? c = n : i && (c = document.querySelector(i)), c) {
3653
+ if (a ? c = a : i && (c = document.querySelector(i)), c) {
3651
3654
  const f = c.getBoundingClientRect();
3652
3655
  o({
3653
3656
  top: f.bottom + window.scrollY + 6,
3654
3657
  left: f.left + window.scrollX
3655
3658
  });
3656
3659
  }
3657
- }, [n, i]);
3660
+ }, [a, i]);
3658
3661
  const d = s ? { top: s.top, left: s.left } : {};
3659
3662
  return /* @__PURE__ */ D(
3660
3663
  "div",
@@ -3681,7 +3684,7 @@ function Va({
3681
3684
  {
3682
3685
  type: "button",
3683
3686
  className: `${ne["gloss-inline-nudge__btn"]} ${ne["gloss-inline-nudge__btn--dismiss"]}`,
3684
- onClick: a,
3687
+ onClick: n,
3685
3688
  "aria-label": "Dismiss",
3686
3689
  children: "Dismiss"
3687
3690
  }
@@ -3695,13 +3698,13 @@ Va.displayName = "InlineNudge";
3695
3698
  function Le(e) {
3696
3699
  return e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888";
3697
3700
  }
3698
- function Ha(e, t, a) {
3699
- if (a <= t) {
3701
+ function Ha(e, t, n) {
3702
+ if (n <= t) {
3700
3703
  const o = e[0], l = o ? Le(o) : "#888";
3701
3704
  return `linear-gradient(to right, ${l}, ${l})`;
3702
3705
  }
3703
- const n = a - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
3704
- const l = (o.value - t) / n * 100;
3706
+ const a = n - t, s = [...e].sort((o, l) => o.value - l.value).map((o) => {
3707
+ const l = (o.value - t) / a * 100;
3705
3708
  return `${Le(o)} ${l.toFixed(2)}%`;
3706
3709
  });
3707
3710
  return s.length === 0 ? "linear-gradient(to right, #888 0%, #888 100%)" : s.length === 1 ? `linear-gradient(to right, ${s[0]}, ${s[0]})` : `linear-gradient(to right, ${s.join(", ")})`;
@@ -3712,8 +3715,8 @@ function Ua(e) {
3712
3715
  function Za({
3713
3716
  stops: e,
3714
3717
  onChange: t,
3715
- min: a = 0,
3716
- max: n = 100,
3718
+ min: n = 0,
3719
+ max: a = 100,
3717
3720
  step: i,
3718
3721
  disabled: s = !1
3719
3722
  }) {
@@ -3726,19 +3729,19 @@ function Za({
3726
3729
  O(() => {
3727
3730
  N.current !== u && (N.current = u, !c && g(e));
3728
3731
  }, [u, e, c]);
3729
- const b = we(() => Ha(h, a, n), [h, a, n]), p = w(
3732
+ const b = we(() => Ha(h, n, a), [h, n, a]), p = w(
3730
3733
  (m) => {
3731
- if (!d.current) return a;
3732
- const v = d.current.getBoundingClientRect(), k = v.width || 1, R = Math.max(0, Math.min(1, (m - v.left) / k)), y = a + R * (n - a);
3734
+ if (!d.current) return n;
3735
+ const v = d.current.getBoundingClientRect(), k = v.width || 1, R = Math.max(0, Math.min(1, (m - v.left) / k)), y = n + R * (a - n);
3733
3736
  return l(y);
3734
3737
  },
3735
- [a, n, l]
3738
+ [n, a, l]
3736
3739
  );
3737
3740
  O(() => {
3738
- n <= a && process.env.NODE_ENV !== "production" && console.warn(
3739
- `ThresholdRamp: max (${n}) must be greater than min (${a}); rendering degenerate strip.`
3741
+ a <= n && process.env.NODE_ENV !== "production" && console.warn(
3742
+ `ThresholdRamp: max (${a}) must be greater than min (${n}); rendering degenerate strip.`
3740
3743
  );
3741
- }, [a, n]);
3744
+ }, [n, a]);
3742
3745
  const M = w(
3743
3746
  (m, v) => {
3744
3747
  const k = h.find((R) => R.id === v);
@@ -3765,10 +3768,10 @@ function Za({
3765
3768
  window.removeEventListener("pointermove", m), window.removeEventListener("pointerup", v), window.removeEventListener("pointercancel", v);
3766
3769
  };
3767
3770
  }, [c, p]);
3768
- const T = n - a > 0 ? n - a : 1, x = w(
3771
+ const T = a - n > 0 ? a - n : 1, x = w(
3769
3772
  (m, v) => {
3770
3773
  if (s || v.disabled) return;
3771
- const k = n - a;
3774
+ const k = a - n;
3772
3775
  if (k <= 0) return;
3773
3776
  const R = m.shiftKey ? k / 20 : k / 100;
3774
3777
  let y = v.value;
@@ -3782,23 +3785,23 @@ function Za({
3782
3785
  y = v.value - R;
3783
3786
  break;
3784
3787
  case "Home":
3785
- y = a;
3788
+ y = n;
3786
3789
  break;
3787
3790
  case "End":
3788
- y = n;
3791
+ y = a;
3789
3792
  break;
3790
3793
  default:
3791
3794
  return;
3792
3795
  }
3793
3796
  m.preventDefault();
3794
- const S = Math.max(a, Math.min(n, y)), F = l(S);
3797
+ const S = Math.max(n, Math.min(a, y)), F = l(S);
3795
3798
  if (F === v.value) return;
3796
3799
  const H = h.map(
3797
3800
  (Y) => Y.id === v.id ? { ...Y, value: F } : Y
3798
3801
  );
3799
3802
  g(H), t(H);
3800
3803
  },
3801
- [s, a, n, h, t, l]
3804
+ [s, n, a, h, t, l]
3802
3805
  );
3803
3806
  return /* @__PURE__ */ r("div", { className: "gloss-threshold-ramp", "data-disabled": s || void 0, children: /* @__PURE__ */ r(
3804
3807
  "div",
@@ -3807,7 +3810,7 @@ function Za({
3807
3810
  className: "gloss-threshold-ramp__track",
3808
3811
  style: { background: b },
3809
3812
  children: h.map((m) => {
3810
- const v = (m.value - a) / T * 100;
3813
+ const v = (m.value - n) / T * 100;
3811
3814
  return /* @__PURE__ */ r(
3812
3815
  "span",
3813
3816
  {
@@ -3823,8 +3826,8 @@ function Za({
3823
3826
  "aria-label": m.label ?? `Stop at ${m.value}`,
3824
3827
  role: "slider",
3825
3828
  "aria-valuenow": m.value,
3826
- "aria-valuemin": a,
3827
- "aria-valuemax": n,
3829
+ "aria-valuemin": n,
3830
+ "aria-valuemax": a,
3828
3831
  "aria-disabled": m.disabled || s || void 0,
3829
3832
  tabIndex: m.disabled || s ? -1 : 0
3830
3833
  },
@@ -3840,29 +3843,29 @@ function Ya() {
3840
3843
  return kt(dt);
3841
3844
  }
3842
3845
  function qa({ option: e }) {
3843
- const t = Ya(), a = t?.isSelected(e.value) ?? !1, n = e.disabled || t?.groupDisabled, i = w(() => {
3844
- n || t?.select(e.value);
3845
- }, [n, t, e.value]), s = w(
3846
+ const t = Ya(), n = t?.isSelected(e.value) ?? !1, a = e.disabled || t?.groupDisabled, i = w(() => {
3847
+ a || t?.select(e.value);
3848
+ }, [a, t, e.value]), s = w(
3846
3849
  (c) => {
3847
- n || t?.onKeyNav(c, e.value);
3850
+ a || t?.onKeyNav(c, e.value);
3848
3851
  },
3849
- [n, t, e.value]
3850
- ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, d = n ? -1 : l ? 0 : -1;
3852
+ [a, t, e.value]
3853
+ ), o = e.colorToken ? `var(--gloss-color-${e.colorToken}, ${e.color ?? "#888"})` : e.color ?? "#888", l = t?.firstFocusableValue === e.value, d = a ? -1 : l ? 0 : -1;
3851
3854
  return /* @__PURE__ */ r(
3852
3855
  "button",
3853
3856
  {
3854
3857
  ref: (c) => t?.registerRef(e.value, c),
3855
3858
  type: "button",
3856
3859
  role: "radio",
3857
- "aria-checked": a,
3860
+ "aria-checked": n,
3858
3861
  className: "gloss-preset-swatch-row__swatch",
3859
3862
  style: { backgroundColor: o },
3860
- "data-selected": a || void 0,
3861
- "data-disabled": n || void 0,
3863
+ "data-selected": n || void 0,
3864
+ "data-disabled": a || void 0,
3862
3865
  ...process.env.NODE_ENV === "test" ? { "data-bg-color": o } : {},
3863
3866
  "aria-label": e.label ?? e.value,
3864
- "aria-disabled": n,
3865
- disabled: n,
3867
+ "aria-disabled": a,
3868
+ disabled: a,
3866
3869
  tabIndex: d,
3867
3870
  onClick: i,
3868
3871
  onKeyDown: s
@@ -3872,16 +3875,16 @@ function qa({ option: e }) {
3872
3875
  function Qa({
3873
3876
  swatches: e,
3874
3877
  value: t,
3875
- defaultValue: a,
3876
- onChange: n,
3878
+ defaultValue: n,
3879
+ onChange: a,
3877
3880
  disabled: i = !1,
3878
3881
  name: s
3879
3882
  }) {
3880
- const o = t !== void 0, [l, d] = $(a), c = o ? t : l, f = w(
3883
+ const o = t !== void 0, [l, d] = $(n), c = o ? t : l, f = w(
3881
3884
  (_) => {
3882
- o || d(_), n?.(_);
3885
+ o || d(_), a?.(_);
3883
3886
  },
3884
- [o, n]
3887
+ [o, a]
3885
3888
  ), h = w(
3886
3889
  (_) => c === _,
3887
3890
  [c]
@@ -3949,40 +3952,40 @@ function Qa({
3949
3952
  }
3950
3953
  Qa.displayName = "PresetSwatchRow";
3951
3954
  function $e(e, t) {
3952
- for (const a of e)
3953
- if (a.items.some((n) => n.id === t))
3954
- return a.zoneKey;
3955
+ for (const n of e)
3956
+ if (n.items.some((a) => a.id === t))
3957
+ return n.zoneKey;
3955
3958
  return null;
3956
3959
  }
3957
3960
  function et(e, t) {
3958
- const a = e.find((n) => n.zoneKey === t);
3959
- return a ? a.zoneKey : $e(e, t);
3961
+ const n = e.find((a) => a.zoneKey === t);
3962
+ return n ? n.zoneKey : $e(e, t);
3960
3963
  }
3961
- function Xa(e, t, a) {
3962
- const n = [...e], [i] = n.splice(t, 1);
3963
- return n.splice(a, 0, i), n;
3964
+ function Xa(e, t, n) {
3965
+ const a = [...e], [i] = a.splice(t, 1);
3966
+ return a.splice(n, 0, i), a;
3964
3967
  }
3965
3968
  function Ja(e) {
3966
- return e.map((t) => `${t.zoneKey}:${t.items.map((a) => a.id).join(",")}`).join("|");
3969
+ return e.map((t) => `${t.zoneKey}:${t.items.map((n) => n.id).join(",")}`).join("|");
3967
3970
  }
3968
3971
  function en(e) {
3969
- const [t, a] = $(
3972
+ const [t, n] = $(
3970
3973
  () => e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
3971
3974
  `useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
3972
3975
  ), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
3973
- ), [n, i] = $(null), [s, o] = $(null), l = I(null), d = I(e.onZoneChange);
3976
+ ), [a, i] = $(null), [s, o] = $(null), l = I(null), d = I(e.onZoneChange);
3974
3977
  d.current = e.onZoneChange;
3975
3978
  const c = we(
3976
3979
  () => Ja(e.zones),
3977
3980
  [e.zones]
3978
3981
  ), f = I(c);
3979
3982
  O(() => {
3980
- f.current !== c && (f.current = c, !n && a(
3983
+ f.current !== c && (f.current = c, !a && n(
3981
3984
  e.zones.map((p) => p.maxItems !== void 0 && p.items.length > p.maxItems ? (process.env.NODE_ENV !== "production" && console.warn(
3982
3985
  `useSortableZones: zone "${p.zoneKey}" exceeds maxItems (${p.items.length} > ${p.maxItems}); trimming to cap.`
3983
3986
  ), { ...p, items: p.items.slice(0, p.maxItems) }) : p)
3984
3987
  ));
3985
- }, [c, e.zones, n]);
3988
+ }, [c, e.zones, a]);
3986
3989
  const h = w(
3987
3990
  (p) => {
3988
3991
  const M = p.active.id;
@@ -4047,7 +4050,7 @@ function en(e) {
4047
4050
  ];
4048
4051
  m[v] = { ...R, items: U }, m[k] = { ...y, items: Z };
4049
4052
  }
4050
- a(m), d.current?.(m), _();
4053
+ n(m), d.current?.(m), _();
4051
4054
  },
4052
4055
  [t]
4053
4056
  ), N = w(
@@ -4070,7 +4073,7 @@ function en(e) {
4070
4073
  return {
4071
4074
  zones: t,
4072
4075
  activeZone: s,
4073
- activeItem: n,
4076
+ activeItem: a,
4074
4077
  getZoneProps: N,
4075
4078
  getItemProps: b,
4076
4079
  handleDragStart: h,
@@ -4094,30 +4097,30 @@ const tn = [
4094
4097
  "verticalListSortingStrategy"
4095
4098
  ];
4096
4099
  function nn(e, t) {
4097
- const a = [], n = e ?? {};
4100
+ const n = [], a = e ?? {};
4098
4101
  for (const s of tn)
4099
- n[s] === void 0 && a.push(`@dnd-kit/core:${s}`);
4102
+ a[s] === void 0 && n.push(`@dnd-kit/core:${s}`);
4100
4103
  const i = t ?? {};
4101
4104
  for (const s of an)
4102
- i[s] === void 0 && a.push(`@dnd-kit/sortable:${s}`);
4103
- return a.length === 0 ? { ok: !0 } : { ok: !1, missing: a };
4105
+ i[s] === void 0 && n.push(`@dnd-kit/sortable:${s}`);
4106
+ return n.length === 0 ? { ok: !0 } : { ok: !1, missing: n };
4104
4107
  }
4105
4108
  function rn() {
4106
4109
  return pe ? Promise.resolve(pe) : Ie ? Promise.resolve(null) : De || (De = (async () => {
4107
4110
  try {
4108
- const [e, t, a] = await Promise.all([
4111
+ const [e, t, n] = await Promise.all([
4109
4112
  import("@dnd-kit/core"),
4110
4113
  import("@dnd-kit/sortable"),
4111
4114
  import("@dnd-kit/utilities").catch(() => (process.env.NODE_ENV !== "production" && console.warn(
4112
4115
  "SortableZones: @dnd-kit/utilities failed to load; drag-overlay positioning will fall back (items may teleport instead of slide)."
4113
4116
  ), {}))
4114
- ]), n = nn(e, t);
4115
- return n.ok ? (pe = {
4117
+ ]), a = nn(e, t);
4118
+ return a.ok ? (pe = {
4116
4119
  core: e,
4117
4120
  sortable: t,
4118
- utilities: a
4121
+ utilities: n
4119
4122
  }, pe) : (Ie = !0, process.env.NODE_ENV !== "production" && console.error(
4120
- `SortableZones: @dnd-kit shape mismatch — missing exports: ${n.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
4123
+ `SortableZones: @dnd-kit shape mismatch — missing exports: ${a.missing.join(", ")}. Check installed versions against optionalDependencies in @mt-gloss/ui.`
4121
4124
  ), null);
4122
4125
  } catch {
4123
4126
  return Ie = !0, null;
@@ -4125,7 +4128,7 @@ function rn() {
4125
4128
  })(), De);
4126
4129
  }
4127
4130
  function sn(e) {
4128
- const { zones: t, onZoneChange: a, renderZone: n, renderItem: i, renderDragOverlay: s } = e, o = en({ zones: t, onZoneChange: a }), [l, d] = V.useState(pe);
4131
+ const { zones: t, onZoneChange: n, renderZone: a, renderItem: i, renderDragOverlay: s } = e, o = en({ zones: t, onZoneChange: n }), [l, d] = V.useState(pe);
4129
4132
  return V.useEffect(() => {
4130
4133
  if (l) return;
4131
4134
  let c = !0;
@@ -4139,21 +4142,21 @@ function sn(e) {
4139
4142
  {
4140
4143
  state: o,
4141
4144
  modules: l,
4142
- renderZone: n,
4145
+ renderZone: a,
4143
4146
  renderItem: i,
4144
4147
  renderDragOverlay: s
4145
4148
  }
4146
4149
  ) : /* @__PURE__ */ r("div", { "data-sortable-zones-passive": "true", children: o.zones.map((c) => {
4147
4150
  const f = c.items.map((h) => /* @__PURE__ */ r(V.Fragment, { children: i(h) }, h.id));
4148
- return /* @__PURE__ */ r("div", { ...o.getZoneProps(c.zoneKey), children: n(c.zoneKey, c.items, f) }, c.zoneKey);
4151
+ return /* @__PURE__ */ r("div", { ...o.getZoneProps(c.zoneKey), children: a(c.zoneKey, c.items, f) }, c.zoneKey);
4149
4152
  }) });
4150
4153
  }
4151
4154
  sn.displayName = "SortableZones";
4152
4155
  function ut({
4153
4156
  state: e,
4154
4157
  modules: t,
4155
- renderZone: a,
4156
- renderItem: n,
4158
+ renderZone: n,
4159
+ renderItem: a,
4157
4160
  renderDragOverlay: i
4158
4161
  }) {
4159
4162
  const { core: s, sortable: o, utilities: l } = t, { DndContext: d, DragOverlay: c, useSensors: f, useSensor: h, useDroppable: g, PointerSensor: u, KeyboardSensor: N, closestCenter: b } = s, { SortableContext: p, verticalListSortingStrategy: M } = o, P = f(
@@ -4176,7 +4179,7 @@ function ut({
4176
4179
  id: R.id,
4177
4180
  useSortable: o.useSortable,
4178
4181
  cssHelper: l.CSS,
4179
- children: n(R)
4182
+ children: a(R)
4180
4183
  },
4181
4184
  R.id
4182
4185
  ));
@@ -4186,47 +4189,47 @@ function ut({
4186
4189
  zoneKey: m.zoneKey,
4187
4190
  zoneProps: e.getZoneProps(m.zoneKey),
4188
4191
  useDroppable: g,
4189
- children: /* @__PURE__ */ r(x, { items: v, strategy: M, children: a(m.zoneKey, m.items, k) })
4192
+ children: /* @__PURE__ */ r(x, { items: v, strategy: M, children: n(m.zoneKey, m.items, k) })
4190
4193
  },
4191
4194
  m.zoneKey
4192
4195
  );
4193
4196
  }),
4194
- /* @__PURE__ */ r(T, { children: e.activeItem ? i?.(e.activeItem) ?? n(e.activeItem) : null })
4197
+ /* @__PURE__ */ r(T, { children: e.activeItem ? i?.(e.activeItem) ?? a(e.activeItem) : null })
4195
4198
  ]
4196
4199
  }
4197
4200
  );
4198
4201
  }
4199
4202
  ut.displayName = "SortableZonesInner";
4200
- function mt({ id: e, useSortable: t, cssHelper: a, children: n }) {
4203
+ function mt({ id: e, useSortable: t, cssHelper: n, children: a }) {
4201
4204
  const { attributes: i, listeners: s, setNodeRef: o, transform: l, transition: d, isDragging: c } = t({ id: e }), f = {
4202
- transform: a?.Transform?.toString(l) ?? void 0,
4205
+ transform: n?.Transform?.toString(l) ?? void 0,
4203
4206
  transition: d,
4204
4207
  opacity: c ? 0.5 : 1
4205
4208
  };
4206
- return /* @__PURE__ */ r("div", { ref: o, style: f, "data-sortable-item-id": e, ...i, ...s, children: n });
4209
+ return /* @__PURE__ */ r("div", { ref: o, style: f, "data-sortable-item-id": e, ...i, ...s, children: a });
4207
4210
  }
4208
4211
  mt.displayName = "SortableItem";
4209
4212
  function gt({
4210
4213
  zoneKey: e,
4211
4214
  zoneProps: t,
4212
- useDroppable: a,
4213
- children: n
4215
+ useDroppable: n,
4216
+ children: a
4214
4217
  }) {
4215
- const { setNodeRef: i, isOver: s } = a({ id: e });
4216
- return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: n });
4218
+ const { setNodeRef: i, isOver: s } = n({ id: e });
4219
+ return /* @__PURE__ */ r("div", { ref: i, "data-zone-is-over": s || void 0, ...t, children: a });
4217
4220
  }
4218
4221
  gt.displayName = "ZoneDroppable";
4219
4222
  function $r({
4220
4223
  slotLeft: e,
4221
4224
  slotCenter: t,
4222
- slotRight: a,
4223
- height: n = 36,
4225
+ slotRight: n,
4226
+ height: a = 36,
4224
4227
  className: i,
4225
4228
  style: s,
4226
4229
  "aria-label": o = "Dashboard navigation"
4227
4230
  }) {
4228
4231
  const l = {
4229
- "--gloss-bottom-toolbar-height": `${n}px`,
4232
+ "--gloss-bottom-toolbar-height": `${a}px`,
4230
4233
  ...s
4231
4234
  };
4232
4235
  return /* @__PURE__ */ D(
@@ -4259,7 +4262,7 @@ function $r({
4259
4262
  {
4260
4263
  className: "gloss-bottom-toolbar__slot gloss-bottom-toolbar__slot--right",
4261
4264
  "data-slot": "right",
4262
- children: a
4265
+ children: n
4263
4266
  }
4264
4267
  )
4265
4268
  ]
@@ -4269,8 +4272,8 @@ function $r({
4269
4272
  function Br({
4270
4273
  count: e,
4271
4274
  currentIndex: t,
4272
- onSelect: a,
4273
- "aria-label": n = "Sections",
4275
+ onSelect: n,
4276
+ "aria-label": a = "Sections",
4274
4277
  provisionalIndex: i,
4275
4278
  pulseIndex: s,
4276
4279
  pulseNonce: o,
@@ -4283,7 +4286,7 @@ function Br({
4283
4286
  "div",
4284
4287
  {
4285
4288
  role: "tablist",
4286
- "aria-label": n,
4289
+ "aria-label": a,
4287
4290
  "data-testid": "gloss-section-dots",
4288
4291
  className: "gloss-section-dots",
4289
4292
  onKeyDown: (b) => {
@@ -4291,11 +4294,11 @@ function Br({
4291
4294
  if (b.key === "ArrowRight") {
4292
4295
  b.preventDefault();
4293
4296
  const p = (c + 1) % e;
4294
- a(p), requestAnimationFrame(() => u.current[p]?.focus());
4297
+ n(p), requestAnimationFrame(() => u.current[p]?.focus());
4295
4298
  } else if (b.key === "ArrowLeft") {
4296
4299
  b.preventDefault();
4297
4300
  const p = (c - 1 + e) % e;
4298
- a(p), requestAnimationFrame(() => u.current[p]?.focus());
4301
+ n(p), requestAnimationFrame(() => u.current[p]?.focus());
4299
4302
  }
4300
4303
  }
4301
4304
  },
@@ -4327,7 +4330,7 @@ function Br({
4327
4330
  "gloss-section-dots__dot",
4328
4331
  p === c && "gloss-section-dots__dot--current"
4329
4332
  ].filter(Boolean).join(" "),
4330
- onClick: () => a(p)
4333
+ onClick: () => n(p)
4331
4334
  },
4332
4335
  p === s ? `${p}-${o ?? 0}` : p
4333
4336
  ))
@@ -4335,23 +4338,23 @@ function Br({
4335
4338
  }
4336
4339
  );
4337
4340
  }
4338
- const on = V.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
4339
- const i = { ...a };
4340
- return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: n, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(Be, { region: "toolbar", density: e, children: t }) });
4341
+ const on = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4342
+ const i = { ...n };
4343
+ return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-toolbar", role: "toolbar", ...i, children: /* @__PURE__ */ r(Be, { region: "toolbar", density: e, children: t }) });
4341
4344
  });
4342
4345
  on.displayName = "ContainerToolbar";
4343
- const ln = V.forwardRef(({ legend: e, description: t, density: a = "default", children: n, ...i }, s) => {
4346
+ const ln = V.forwardRef(({ legend: e, description: t, density: n = "default", children: a, ...i }, s) => {
4344
4347
  const o = { ...i };
4345
4348
  return delete o.className, delete o.style, /* @__PURE__ */ D("fieldset", { ref: s, className: "gloss-container-form-section", ...o, children: [
4346
4349
  e && /* @__PURE__ */ r("legend", { className: "gloss-container-form-section__legend", children: e }),
4347
4350
  t && /* @__PURE__ */ r("p", { className: "gloss-container-form-section__description", children: t }),
4348
- /* @__PURE__ */ r(Be, { region: "form-section", density: a, children: n })
4351
+ /* @__PURE__ */ r(Be, { region: "form-section", density: n, children: a })
4349
4352
  ] });
4350
4353
  });
4351
4354
  ln.displayName = "ContainerFormSection";
4352
- const cn = V.forwardRef(({ density: e = "compact", children: t, ...a }, n) => {
4353
- const i = { ...a };
4354
- return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: n, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(Be, { region: "table", density: e, children: t }) });
4355
+ const cn = V.forwardRef(({ density: e = "compact", children: t, ...n }, a) => {
4356
+ const i = { ...n };
4357
+ return delete i.className, delete i.style, /* @__PURE__ */ r("div", { ref: a, className: "gloss-container-table", ...i, children: /* @__PURE__ */ r(Be, { region: "table", density: e, children: t }) });
4355
4358
  });
4356
4359
  cn.displayName = "ContainerTable";
4357
4360
  export {