@umriss-ui/core 0.56.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.js CHANGED
@@ -3,7 +3,7 @@ import "./core.css";
3
3
  import { useMemo as ke, useContext as it, createContext as yt, useSyncExternalStore as vs, useState as F, useEffect as re, useRef as E, useLayoutEffect as Te, useId as Ce, cloneElement as oa, useCallback as de, useImperativeHandle as qo, Children as bs, isValidElement as ys, Fragment as ws } from "react";
4
4
  import { jsx as l, jsxs as D, Fragment as Me } from "react/jsx-runtime";
5
5
  import { D as Ko, f as ks, I as ra, b as xs, a as Wo, s as $s } from "./formats--E1bx2-N.js";
6
- import { w as ib } from "./formats--E1bx2-N.js";
6
+ import { w as i1 } from "./formats--E1bx2-N.js";
7
7
  import { flushSync as Ns, createPortal as jo } from "react-dom";
8
8
  function I(...e) {
9
9
  return e.filter(Boolean).join(" ");
@@ -541,7 +541,7 @@ function pt({ ref: e, size: t = 9, ...n }) {
541
541
  }
542
542
  ) });
543
543
  }
544
- function W1({ ref: e, size: t = 12, ...n }) {
544
+ function Wv({ ref: e, size: t = 12, ...n }) {
545
545
  return /* @__PURE__ */ D("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: [
546
546
  /* @__PURE__ */ l("path", { d: "M2 5h0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }),
547
547
  /* @__PURE__ */ l("path", { d: "M5 5h0", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round" }),
@@ -567,7 +567,7 @@ function an({ ref: e, size: t = 10, ...n }) {
567
567
  }
568
568
  ) });
569
569
  }
570
- function j1({ ref: e, size: t = 10, ...n }) {
570
+ function jv({ ref: e, size: t = 10, ...n }) {
571
571
  return /* @__PURE__ */ l("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ l(
572
572
  "path",
573
573
  {
@@ -592,7 +592,7 @@ function Us({ ref: e, size: t = 10, ...n }) {
592
592
  }
593
593
  ) });
594
594
  }
595
- function U1({ ref: e, size: t = 10, ...n }) {
595
+ function Uv({ ref: e, size: t = 10, ...n }) {
596
596
  return /* @__PURE__ */ l("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ l(
597
597
  "path",
598
598
  {
@@ -604,7 +604,7 @@ function U1({ ref: e, size: t = 10, ...n }) {
604
604
  }
605
605
  ) });
606
606
  }
607
- function V1({ ref: e, size: t = 10, ...n }) {
607
+ function Vv({ ref: e, size: t = 10, ...n }) {
608
608
  return /* @__PURE__ */ l("svg", { ref: e, viewBox: "0 0 10 10", width: t, height: t, "aria-hidden": "true", ...n, children: /* @__PURE__ */ l(
609
609
  "path",
610
610
  {
@@ -645,12 +645,7 @@ function ca({ ref: e, size: t = 12, range: n = !1, ...o }) {
645
645
  )
646
646
  ] });
647
647
  }
648
- function da({
649
- ref: e,
650
- tone: t,
651
- size: n = 16,
652
- ...o
653
- }) {
648
+ function da({ ref: e, tone: t, size: n = 16, ...o }) {
654
649
  return /* @__PURE__ */ D("svg", { ref: e, viewBox: "0 0 10 10", width: n, height: n, "aria-hidden": "true", ...o, children: [
655
650
  t === "success" && /* @__PURE__ */ l("path", { d: "M2.2 5.3 4.2 7.3l3.6-4.1", fill: "none", stroke: "currentColor", strokeWidth: "1.4", strokeLinecap: "round", strokeLinejoin: "round" }),
656
651
  t === "danger" && /* @__PURE__ */ D(Me, { children: [
@@ -688,7 +683,7 @@ const ko = {
688
683
  danger: { role: "alert" },
689
684
  loading: { role: "status", live: "polite" }
690
685
  };
691
- function G1({ ref: e, tone: t = "neutral", title: n, actions: o, onDismiss: r, dismissLabel: a, className: s, children: i, ...c }) {
686
+ function Gv({ ref: e, tone: t = "neutral", title: n, actions: o, onDismiss: r, dismissLabel: a, className: s, children: i, ...c }) {
692
687
  const d = ge(), { role: p, live: f } = ko[t];
693
688
  return /* @__PURE__ */ D(
694
689
  "div",
@@ -722,7 +717,7 @@ function el(e) {
722
717
  const t = e.trim().split(/\s+/).filter(Boolean), n = (o) => Array.from(o)[0]?.toLocaleUpperCase() ?? "";
723
718
  return t.length < 2 ? n(t[0] ?? "") : n(t[0]) + n(t[t.length - 1]);
724
719
  }
725
- function Y1({ ref: e, name: t, src: n, initials: o, size: r = "md", className: a, ...s }) {
720
+ function Yv({ ref: e, name: t, src: n, initials: o, size: r = "md", className: a, ...s }) {
726
721
  const [i, c] = F(), d = n !== void 0 && n !== i, p = Array.from(t).reduce((f, m) => f + m.codePointAt(0), 0) % 2 === 0 ? bn.neutral : bn.accent;
727
722
  return /* @__PURE__ */ l("span", { ref: e, role: "img", "aria-label": t, className: I(bn.avatar, bn[r], p, a), ...s, children: d ? /* @__PURE__ */ l("img", { className: bn.image, src: n, alt: "", onError: () => c(n) }) : /* @__PURE__ */ l("span", { "aria-hidden": "true", children: o ?? el(t) }) });
728
723
  }
@@ -736,7 +731,7 @@ const tl = "_badge_lfkbx_4 _text_1ftkm_22", nl = "_text_lfkbx_29", ol = "_pill_l
736
731
  warning: ll,
737
732
  danger: il
738
733
  };
739
- function X1({ ref: e, tone: t = "neutral", pill: n = !1, className: o, children: r, ...a }) {
734
+ function Xv({ ref: e, tone: t = "neutral", pill: n = !1, className: o, children: r, ...a }) {
740
735
  return /* @__PURE__ */ l("span", { ref: e, className: I(Kn.badge, n && Kn.pill, Kn[t], o), ...a, children: /* @__PURE__ */ l("span", { className: Kn.text, children: r }) });
741
736
  }
742
737
  function no() {
@@ -748,7 +743,7 @@ function no() {
748
743
  }
749
744
  const xo = /* @__PURE__ */ new Set(), fa = (e, t) => `${e}
750
745
  ${t}`;
751
- function Q1(e, t) {
746
+ function Qv(e, t) {
752
747
  return xo.has(fa(e, t));
753
748
  }
754
749
  function Rn(e, t, n) {
@@ -877,7 +872,7 @@ function ma(e, t) {
877
872
  return Te(() => o.dispose, [o]), { handlers: r, touching: o.touching };
878
873
  }
879
874
  const Yo = /* @__PURE__ */ yt(null);
880
- function Z1(e, t) {
875
+ function Zv(e, t) {
881
876
  const n = it(Yo);
882
877
  return e !== void 0 ? e : n?.densityGiven ? n.density === "compact" ? "compact" : "regular" : t;
883
878
  }
@@ -885,7 +880,7 @@ const bl = {
885
880
  density: "comfortable",
886
881
  portalTarget: null,
887
882
  toast: {}
888
- }, Xo = () => it(Yo) ?? bl, J1 = () => Xo().density, yl = () => Xo().toast;
883
+ }, Xo = () => it(Yo) ?? bl, Jv = () => Xo().density, yl = () => Xo().toast;
889
884
  function Qo() {
890
885
  const { portalTarget: e } = Xo();
891
886
  return ke(
@@ -893,7 +888,7 @@ function Qo() {
893
888
  [e]
894
889
  );
895
890
  }
896
- function ev({
891
+ function eb({
897
892
  density: e,
898
893
  portalTarget: t = null,
899
894
  toast: n,
@@ -1225,7 +1220,7 @@ function qe() {
1225
1220
  function Yl({ children: e }) {
1226
1221
  return /* @__PURE__ */ l(or, { value: null, children: e });
1227
1222
  }
1228
- function tv({ ref: e, label: t, hint: n, error: o, required: r = !1, fieldId: a, labelPlacement: s = "top", className: i, children: c, ...d }) {
1223
+ function tb({ ref: e, label: t, hint: n, error: o, required: r = !1, fieldId: a, labelPlacement: s = "top", className: i, children: c, ...d }) {
1229
1224
  const p = Ce(), f = a ?? p, m = `${f}-message`, h = `${f}-label`, u = !!(o ?? n), g = /* @__PURE__ */ D(Me, { children: [
1230
1225
  /* @__PURE__ */ l(
1231
1226
  or,
@@ -1506,7 +1501,7 @@ function li({ ref: e, onSelect: t, tone: n = "default", role: o = "menuitem", cl
1506
1501
  }
1507
1502
  );
1508
1503
  }
1509
- function nv({ ref: e, className: t, ...n }) {
1504
+ function nb({ ref: e, className: t, ...n }) {
1510
1505
  return /* @__PURE__ */ l("div", { ref: e, className: I(rn.separator, t), ...n, role: "separator" });
1511
1506
  }
1512
1507
  const ii = "_group_8xmlt_9", ci = "_split_8xmlt_90", di = "_trigger_8xmlt_90", ui = "_arrow_8xmlt_97", Un = {
@@ -1518,7 +1513,7 @@ const ii = "_group_8xmlt_9", ci = "_split_8xmlt_90", di = "_trigger_8xmlt_90", u
1518
1513
  function fi({ ref: e, size: t, className: n, children: o, ...r }) {
1519
1514
  return /* @__PURE__ */ l("div", { ref: e, role: "group", className: I(Un.group, n), ...r, children: t ? /* @__PURE__ */ l(fl, { size: t, children: o }) : o });
1520
1515
  }
1521
- function ov({
1516
+ function ob({
1522
1517
  ref: e,
1523
1518
  children: t,
1524
1519
  menu: n,
@@ -1578,7 +1573,7 @@ const mi = "_card_b9syc_4 _text_1ftkm_22", hi = "_header_b9syc_22", pi = "_divid
1578
1573
  collapseButton: $i,
1579
1574
  flush: Ni
1580
1575
  }, lr = /* @__PURE__ */ yt(null);
1581
- function rv({
1576
+ function rb({
1582
1577
  ref: e,
1583
1578
  collapsible: t = !1,
1584
1579
  defaultCollapsed: n = !1,
@@ -1599,7 +1594,7 @@ function rv({
1599
1594
  }
1600
1595
  ) });
1601
1596
  }
1602
- function av({ ref: e, title: t, eyebrow: n, actions: o, divider: r = !1, className: a, ...s }) {
1597
+ function ab({ ref: e, title: t, eyebrow: n, actions: o, divider: r = !1, className: a, ...s }) {
1603
1598
  const i = it(lr), c = ge();
1604
1599
  return /* @__PURE__ */ D("div", { ref: e, className: I(mt.header, r && mt.divider, a), ...s, children: [
1605
1600
  /* @__PURE__ */ D("div", { className: mt.headerText, children: [
@@ -1622,7 +1617,7 @@ function av({ ref: e, title: t, eyebrow: n, actions: o, divider: r = !1, classNa
1622
1617
  ] })
1623
1618
  ] });
1624
1619
  }
1625
- function sv({ ref: e, flush: t = !1, className: n, children: o, ...r }) {
1620
+ function sb({ ref: e, flush: t = !1, className: n, children: o, ...r }) {
1626
1621
  const a = it(lr), s = /* @__PURE__ */ l(
1627
1622
  "div",
1628
1623
  {
@@ -1774,13 +1769,13 @@ function Xe(e, t) {
1774
1769
  o.textContent = e, n.replaceChildren(o);
1775
1770
  }, Bi);
1776
1771
  }
1777
- function lv() {
1772
+ function lb() {
1778
1773
  oo(), !(typeof document > "u") && document.querySelectorAll("[data-umriss-announcer]").forEach((e) => e.replaceChildren());
1779
1774
  }
1780
1775
  function oo() {
1781
1776
  on !== null && clearTimeout(on), on = null;
1782
1777
  }
1783
- const zi = "_dialog_14fxc_7 _text_1ftkm_22 _raised_1ftkm_53", Hi = "_pane_14fxc_2", qi = "_head_14fxc_91", Ki = "_close_14fxc_98", Wi = "_field_14fxc_112 _field_1ftkm_100", ji = "_bodyWrap_14fxc_152", Ui = "_body_14fxc_152", Vi = "_list_14fxc_173 _scroll_1ftkm_106", Gi = "_groupHeading_14fxc_183", Yi = "_row_14fxc_192", Xi = "_rowActive_14fxc_206", Qi = "_icon_14fxc_214", Zi = "_name_14fxc_223", Ji = "_mark_14fxc_234", ec = "_group_14fxc_183", tc = "_noFinds_14fxc_245", nc = "_moreFinds_14fxc_246", oc = "_footer_14fxc_255", rc = "_key_14fxc_271", Re = {
1778
+ const zi = "_dialog_7cr65_7 _text_1ftkm_22 _raised_1ftkm_53", Hi = "_pane_7cr65_2", qi = "_head_7cr65_91", Ki = "_close_7cr65_98", Wi = "_field_7cr65_112 _field_1ftkm_100", ji = "_bodyWrap_7cr65_152", Ui = "_body_7cr65_152", Vi = "_list_7cr65_173 _scroll_1ftkm_106", Gi = "_groupHeading_7cr65_183", Yi = "_row_7cr65_192", Xi = "_rowActive_7cr65_206", Qi = "_icon_7cr65_214", Zi = "_name_7cr65_223", Ji = "_mark_7cr65_234", ec = "_group_7cr65_183", tc = "_noFinds_7cr65_245", nc = "_moreFinds_7cr65_246", oc = "_footer_7cr65_255", rc = "_key_7cr65_271", Re = {
1784
1779
  dialog: zi,
1785
1780
  pane: Hi,
1786
1781
  head: qi,
@@ -2041,7 +2036,7 @@ function xc(e) {
2041
2036
  }, []);
2042
2037
  return { activeId: o, setHeld: n, keyboardTakesOver: a, pointerMoves: s, pointerSweeps: i };
2043
2038
  }
2044
- function iv({
2039
+ function ib({
2045
2040
  ref: e,
2046
2041
  open: t,
2047
2042
  onClose: n,
@@ -2184,7 +2179,7 @@ function Dc(e) {
2184
2179
  return !1;
2185
2180
  }
2186
2181
  }
2187
- function cv(e, t = {}) {
2182
+ function cb(e, t = {}) {
2188
2183
  const n = t.target ?? null, o = E({ onOpen: e, options: t });
2189
2184
  re(() => {
2190
2185
  o.current = { onOpen: e, options: t };
@@ -2329,7 +2324,7 @@ function Ln(e, t) {
2329
2324
  const m = d - p, h = d - f;
2330
2325
  return $n(m, t) === p ? new Date(m) : new Date($n(h, t) === f ? h : m);
2331
2326
  }
2332
- function dv(e, t) {
2327
+ function db(e, t) {
2333
2328
  const { year: n, month: o, day: r } = bt(e, t);
2334
2329
  return Ln({ year: n, month: o, day: r }, t);
2335
2330
  }
@@ -2590,7 +2585,7 @@ function sn(e, { natural: t, extra: n } = {}) {
2590
2585
  const o = e !== void 0 && Number.isFinite(e), r = {};
2591
2586
  return o ? (r["--_chars"] = Mr(e), r.inlineSize = "fit-content") : t !== void 0 && Number.isFinite(t) && (r["--_chars"] = Mr(t)), n !== void 0 && n > 0 && (r["--_extra"] = n), Object.keys(r).length > 0 ? r : void 0;
2592
2587
  }
2593
- function uv(e) {
2588
+ function ub(e) {
2594
2589
  const {
2595
2590
  ref: t,
2596
2591
  options: n,
@@ -2799,7 +2794,7 @@ const fr = (e) => Math.max(0, Math.min(1, e)), Ta = (e) => Math.round(fr(e) * 10
2799
2794
  sparklineAccent: pd,
2800
2795
  sparklineDot: _d
2801
2796
  };
2802
- function fv({ ref: e, value: t, tone: n = "accent", showLabel: o = !0, label: r, className: a, ...s }) {
2797
+ function fb({ ref: e, value: t, tone: n = "accent", showLabel: o = !0, label: r, className: a, ...s }) {
2803
2798
  const i = Ze(), c = ge(), d = fr(t);
2804
2799
  return /* @__PURE__ */ D(
2805
2800
  "span",
@@ -3501,7 +3496,7 @@ function Fn({
3501
3496
  }
3502
3497
  );
3503
3498
  }
3504
- function mv(e) {
3499
+ function mb(e) {
3505
3500
  const {
3506
3501
  ref: t,
3507
3502
  placeholder: n,
@@ -3756,7 +3751,7 @@ function It({ value: e, onValue: t, max: n, label: o, next: r, own: a, disabled:
3756
3751
  ] })
3757
3752
  ] });
3758
3753
  }
3759
- function hv(e) {
3754
+ function hb(e) {
3760
3755
  const {
3761
3756
  ref: t,
3762
3757
  withSeconds: n = !1,
@@ -3940,7 +3935,7 @@ const mr = (e, t) => mf.map((n) => ({
3940
3935
  const { from: o, to: r } = hf(n, at(t));
3941
3936
  return { from: Tn(o, t), to: Tn(r, t) };
3942
3937
  }
3943
- })), pv = mr(fn);
3938
+ })), pb = mr(fn);
3944
3939
  function pf(e, t) {
3945
3940
  const n = He(e).getTime(), o = He(pn(e, 1)).getTime(), r = He(t).getTime();
3946
3941
  return r === n || r === o ? null : r < n ? He(t) : pn(He(t), -1);
@@ -3992,7 +3987,7 @@ function Oa(e, t, n, o, r) {
3992
3987
  to: n === "day" ? Tn(s, r) : Ed(s, o, r)
3993
3988
  };
3994
3989
  }
3995
- function _v(e) {
3990
+ function _b(e) {
3996
3991
  const {
3997
3992
  ref: t,
3998
3993
  placeholder: n,
@@ -4146,7 +4141,7 @@ const go = { hour: "00", minute: "00", second: "00" }, vo = (e) => ({
4146
4141
  const o = bt(e, n);
4147
4142
  return { hour: ht(o.hours), minute: ht(o.minutes), second: ht(t ? o.seconds : 0) };
4148
4143
  }, Fr = (e, t) => e ? e.kind === "ambiguous" ? t === "earlier" ? e.earlier : e.later : e.date : null;
4149
- function gv(e) {
4144
+ function gb(e) {
4150
4145
  const {
4151
4146
  ref: t,
4152
4147
  withSeconds: n = !1,
@@ -4425,7 +4420,7 @@ const yf = "_divider_1q6fz_7", wf = "_strong_1q6fz_12", kf = "_horizontal_1q6fz_
4425
4420
  withLabel: $f,
4426
4421
  label: Nf
4427
4422
  };
4428
- function vv({ ref: e, orientation: t = "horizontal", strong: n = !1, label: o, className: r, ...a }) {
4423
+ function vb({ ref: e, orientation: t = "horizontal", strong: n = !1, label: o, className: r, ...a }) {
4429
4424
  const s = I(
4430
4425
  cn.divider,
4431
4426
  t === "vertical" ? cn.vertical : cn.horizontal,
@@ -4456,7 +4451,7 @@ const Cf = "_empty_1dx25_4 _text_1ftkm_22", Df = "_icon_1dx25_14", Sf = "_title_
4456
4451
  description: Mf,
4457
4452
  action: Tf
4458
4453
  };
4459
- function bv({ ref: e, title: t, description: n, action: o, icon: r, className: a, ...s }) {
4454
+ function bb({ ref: e, title: t, description: n, action: o, icon: r, className: a, ...s }) {
4460
4455
  return /* @__PURE__ */ D("div", { ref: e, className: I(wn.empty, a), ...s, children: [
4461
4456
  r && /* @__PURE__ */ l("div", { className: wn.icon, children: r }),
4462
4457
  /* @__PURE__ */ l("p", { className: wn.title, children: t }),
@@ -4468,7 +4463,7 @@ const Af = "_stack_9r3lk_4", Rf = "_grid_9r3lk_9", za = {
4468
4463
  stack: Af,
4469
4464
  grid: Rf
4470
4465
  }, Ha = (e) => `var(--u-space-${e})`;
4471
- function yv({ ref: e, direction: t = "column", gap: n = 3, align: o, justify: r, wrap: a = !1, className: s, style: i, children: c, ...d }) {
4466
+ function yb({ ref: e, direction: t = "column", gap: n = 3, align: o, justify: r, wrap: a = !1, className: s, style: i, children: c, ...d }) {
4472
4467
  return /* @__PURE__ */ l(
4473
4468
  "div",
4474
4469
  {
@@ -4488,7 +4483,7 @@ function yv({ ref: e, direction: t = "column", gap: n = 3, align: o, justify: r,
4488
4483
  );
4489
4484
  }
4490
4485
  const Ir = "minmax(0, 1fr)";
4491
- function wv({ ref: e, columns: t = 2, minItemWidth: n, gap: o = 4, className: r, style: a, children: s, ...i }) {
4486
+ function wb({ ref: e, columns: t = 2, minItemWidth: n, gap: o = 4, className: r, style: a, children: s, ...i }) {
4492
4487
  return /* @__PURE__ */ l(
4493
4488
  "div",
4494
4489
  {
@@ -4747,7 +4742,7 @@ function ja(e, t, n) {
4747
4742
  };
4748
4743
  }, [e, t, n]);
4749
4744
  }
4750
- const jf = "_dialog_581o1_12 _text_1ftkm_22 _raised_1ftkm_53", Uf = "_spacerTop_581o1_39", Vf = "_spacerBottom_581o1_44", Gf = "_sheet_581o1_2", Yf = "_sm_581o1_62", Xf = "_md_581o1_63", Qf = "_lg_581o1_64", Zf = "_header_581o1_114", Jf = "_headerText_581o1_122", em = "_title_581o1_129", tm = "_description_581o1_137", nm = "_close_581o1_147", om = "_footer_581o1_153", rm = "_body_581o1_157 _scroll_1ftkm_106", am = "_drawer_581o1_186", sm = "_drawerSheet_581o1_202", lm = "_modalIn_581o1_1", im = "_modalOut_581o1_1", cm = "_backdropIn_581o1_1", dm = "_backdropOut_581o1_1", um = "_drawerInRight_581o1_1", fm = "_drawerInLeft_581o1_1", rt = {
4745
+ const jf = "_dialog_ombao_12 _text_1ftkm_22 _raised_1ftkm_53", Uf = "_spacerTop_ombao_39", Vf = "_spacerBottom_ombao_44", Gf = "_sheet_ombao_2", Yf = "_sm_ombao_62", Xf = "_md_ombao_63", Qf = "_lg_ombao_64", Zf = "_header_ombao_114", Jf = "_headerText_ombao_122", em = "_title_ombao_129", tm = "_description_ombao_137", nm = "_close_ombao_147", om = "_footer_ombao_153", rm = "_body_ombao_157 _scroll_1ftkm_106", am = "_drawer_ombao_186", sm = "_drawerSheet_ombao_202", lm = "_modalIn_ombao_1", im = "_modalOut_ombao_1", cm = "_backdropIn_ombao_1", dm = "_backdropOut_ombao_1", um = "_drawerInRight_ombao_1", fm = "_drawerInLeft_ombao_1", rt = {
4751
4746
  dialog: jf,
4752
4747
  spacerTop: Uf,
4753
4748
  spacerBottom: Vf,
@@ -4784,7 +4779,7 @@ function hm({ ref: e, size: t = "md", closeOnBackdrop: n = !0, ...o }) {
4784
4779
  }
4785
4780
  );
4786
4781
  }
4787
- function kv({ ref: e, side: t = "right", className: n, ...o }) {
4782
+ function kb({ ref: e, side: t = "right", className: n, ...o }) {
4788
4783
  return /* @__PURE__ */ l(
4789
4784
  Va,
4790
4785
  {
@@ -4856,7 +4851,7 @@ function pm({ ref: e, title: t, description: n, hideClose: o = !1, className: r,
4856
4851
  !o && /* @__PURE__ */ l(Dn, { size: "sm", "aria-label": c.close, className: rt.close, "data-dialog-close": !0, onClick: () => i?.onClose(), children: /* @__PURE__ */ l(pt, {}) })
4857
4852
  ] });
4858
4853
  }
4859
- function xv({
4854
+ function xb({
4860
4855
  ref: e,
4861
4856
  className: t,
4862
4857
  children: n,
@@ -4872,7 +4867,7 @@ function _m({
4872
4867
  }) {
4873
4868
  return /* @__PURE__ */ l("div", { ref: e, "data-umriss-footer": "", className: I(rt.footer, t), ...o, children: n });
4874
4869
  }
4875
- function $v({
4870
+ function $b({
4876
4871
  ref: e,
4877
4872
  open: t,
4878
4873
  onClose: n,
@@ -4977,7 +4972,7 @@ function Qm(e, t, n, o, r) {
4977
4972
  return s;
4978
4973
  }
4979
4974
  const zr = '[role="option"]:not([aria-disabled])';
4980
- function Nv(e) {
4975
+ function Nb(e) {
4981
4976
  const {
4982
4977
  ref: t,
4983
4978
  options: n,
@@ -5454,7 +5449,7 @@ function Ga({
5454
5449
  })
5455
5450
  };
5456
5451
  }
5457
- function Cv(e) {
5452
+ function Cb(e) {
5458
5453
  const {
5459
5454
  ref: t,
5460
5455
  options: n,
@@ -5515,7 +5510,7 @@ const ch = "_skeleton_6mkat_4", dh = "_circle_6mkat_19", Hr = {
5515
5510
  skeleton: ch,
5516
5511
  circle: dh
5517
5512
  };
5518
- function Dv({ ref: e, width: t, height: n, circle: o = !1, className: r, style: a, ...s }) {
5513
+ function Db({ ref: e, width: t, height: n, circle: o = !1, className: r, style: a, ...s }) {
5519
5514
  return /* @__PURE__ */ l(
5520
5515
  "span",
5521
5516
  {
@@ -5540,7 +5535,7 @@ const uh = "_group_1fno2_7", fh = "_tag_1fno2_16 _text_1ftkm_22", mh = "_removab
5540
5535
  danger: yh,
5541
5536
  remove: wh
5542
5537
  }, Ya = /* @__PURE__ */ yt(!1);
5543
- function Sv({ ref: e, className: t, children: n, onKeyDown: o, onFocus: r, ...a }) {
5538
+ function Sb({ ref: e, className: t, children: n, onKeyDown: o, onFocus: r, ...a }) {
5544
5539
  const s = E(null), i = de(
5545
5540
  () => Array.from(s.current?.querySelectorAll("[data-tag]") ?? []),
5546
5541
  []
@@ -5584,7 +5579,7 @@ function Sv({ ref: e, className: t, children: n, onKeyDown: o, onFocus: r, ...a
5584
5579
  }
5585
5580
  );
5586
5581
  }
5587
- function Mv({ ref: e, tone: t = "neutral", children: n, onRemove: o, removeLabel: r, disabled: a = !1, className: s, onKeyDown: i, ...c }) {
5582
+ function Mb({ ref: e, tone: t = "neutral", children: n, onRemove: o, removeLabel: r, disabled: a = !1, className: s, onKeyDown: i, ...c }) {
5588
5583
  const d = it(Ya), p = ge(), f = !!o && !a, m = r ?? (typeof n == "string" ? p.removeTag(n) : p.remove), h = (g) => {
5589
5584
  if (!g) {
5590
5585
  o?.();
@@ -5643,7 +5638,7 @@ function pr(e) {
5643
5638
  throw new Error(`${e} must be used inside <Tabs>.`);
5644
5639
  return t;
5645
5640
  }
5646
- function Tv({ ref: e, value: t, defaultValue: n, onValueChange: o, className: r, children: a, ...s }) {
5641
+ function Tb({ ref: e, value: t, defaultValue: n, onValueChange: o, className: r, children: a, ...s }) {
5647
5642
  const i = Ce(), [c, d] = F(n ?? ""), p = t !== void 0;
5648
5643
  return /* @__PURE__ */ l("div", { ref: e, className: r, ...s, children: /* @__PURE__ */ l(Xa, { value: { value: p ? t : c, onChange: (m) => {
5649
5644
  p || d(m), o?.(m);
@@ -5653,7 +5648,7 @@ function qr(e, t) {
5653
5648
  const n = t.offsetLeft, o = n + t.offsetWidth;
5654
5649
  n < e.scrollLeft ? e.scrollLeft = n : o > e.scrollLeft + e.clientWidth && (e.scrollLeft = o - e.clientWidth);
5655
5650
  }
5656
- function Av({
5651
+ function Ab({
5657
5652
  ref: e,
5658
5653
  className: t,
5659
5654
  children: n,
@@ -5716,7 +5711,7 @@ function Av({
5716
5711
  }
5717
5712
  );
5718
5713
  }
5719
- function Rv({ ref: e, value: t, className: n, children: o, onClick: r, ...a }) {
5714
+ function Rb({ ref: e, value: t, className: n, children: o, onClick: r, ...a }) {
5720
5715
  const s = pr("Tab"), i = s.value === t, c = s.value === "";
5721
5716
  return /* @__PURE__ */ l(
5722
5717
  "button",
@@ -5737,7 +5732,7 @@ function Rv({ ref: e, value: t, className: n, children: o, onClick: r, ...a }) {
5737
5732
  }
5738
5733
  );
5739
5734
  }
5740
- function Ev({ ref: e, value: t, className: n, children: o, ...r }) {
5735
+ function Eb({ ref: e, value: t, className: n, children: o, ...r }) {
5741
5736
  const a = pr("TabPanel");
5742
5737
  return a.value !== t ? null : /* @__PURE__ */ l(
5743
5738
  "div",
@@ -5763,7 +5758,7 @@ const Ch = (e, t) => t === void 0 ? void 0 : t - e.length, Dh = (e, t, n) => !n
5763
5758
  count: Lh,
5764
5759
  countOver: Ph
5765
5760
  };
5766
- function Lv(e) {
5761
+ function Lb(e) {
5767
5762
  const {
5768
5763
  ref: t,
5769
5764
  size: n,
@@ -6045,7 +6040,7 @@ function mp({
6045
6040
  }, [o, a, i, e]), c;
6046
6041
  }
6047
6042
  const Ja = /* @__PURE__ */ yt(null);
6048
- function Pv() {
6043
+ function Pb() {
6049
6044
  const e = it(Ja);
6050
6045
  if (!e)
6051
6046
  throw new Error("useToast requires a <ToastProvider> around the application.");
@@ -6055,7 +6050,7 @@ function hp({ tone: e }) {
6055
6050
  return e === "loading" ? /* @__PURE__ */ l(Go, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ l(da, { tone: e });
6056
6051
  }
6057
6052
  let yo = 0;
6058
- function Fv({ children: e, held: t = !1 }) {
6053
+ function Fb({ children: e, held: t = !1 }) {
6059
6054
  const n = yl(), o = E(!1);
6060
6055
  re(() => (no() && yo > 0 && !o.current && (o.current = !0, console.warn(
6061
6056
  "@umriss-ui/core: a second ToastProvider is mounted while another one stands. Use one ToastProvider per application, at its root: two decks stand at the same place."
@@ -6268,7 +6263,7 @@ const pp = "_tree_fglrg_10 _text_1ftkm_22", _p = "_row_fglrg_23", gp = "_active_
6268
6263
  disabled: Dp,
6269
6264
  loading: Sp
6270
6265
  }, Mp = 600;
6271
- function Iv({
6266
+ function Ib({
6272
6267
  ref: e,
6273
6268
  tree: t,
6274
6269
  "aria-label": n,
@@ -6443,7 +6438,7 @@ function Iv({
6443
6438
  }
6444
6439
  );
6445
6440
  }
6446
- function Bv({ ref: e, tree: t, placeholder: n, ...o }) {
6441
+ function Bb({ ref: e, tree: t, placeholder: n, ...o }) {
6447
6442
  const r = ge();
6448
6443
  return /* @__PURE__ */ l(
6449
6444
  ro,
@@ -6711,7 +6706,7 @@ function Ip(e, t) {
6711
6706
  for (const a of e) r(a);
6712
6707
  return o;
6713
6708
  }
6714
- function Ov(e, t) {
6709
+ function Ob(e, t) {
6715
6710
  const {
6716
6711
  reader: n,
6717
6712
  defaultExpanded: o,
@@ -6928,7 +6923,7 @@ const Op = "_text_1xt1b_7 _text_1ftkm_22", zp = "_heading_1xt1b_11 _text_1ftkm_2
6928
6923
  mono: Kp,
6929
6924
  link: Wp
6930
6925
  };
6931
- function zv({
6926
+ function zb({
6932
6927
  ref: e,
6933
6928
  as: t = "p",
6934
6929
  size: n = "md",
@@ -6968,7 +6963,7 @@ const jp = {
6968
6963
  5: "sm",
6969
6964
  6: "xs"
6970
6965
  };
6971
- function Hv({
6966
+ function Hb({
6972
6967
  ref: e,
6973
6968
  level: t = 2,
6974
6969
  size: n,
@@ -6998,7 +6993,7 @@ function Hv({
6998
6993
  }
6999
6994
  );
7000
6995
  }
7001
- function qv({ ref: e, size: t = "md", external: n = !1, className: o, children: r, href: a, ...s }) {
6996
+ function qb({ ref: e, size: t = "md", external: n = !1, className: o, children: r, href: a, ...s }) {
7002
6997
  return /* @__PURE__ */ l(
7003
6998
  "a",
7004
6999
  {
@@ -7017,7 +7012,7 @@ const zo = {
7017
7012
  warning: 2,
7018
7013
  alarm: 3
7019
7014
  };
7020
- function Kv(e) {
7015
+ function Kb(e) {
7021
7016
  return zo[e];
7022
7017
  }
7023
7018
  function Up(e) {
@@ -7126,7 +7121,7 @@ function Jr({
7126
7121
  s !== null && /* @__PURE__ */ l("span", { className: ot.age, children: n.relative(s) })
7127
7122
  ] });
7128
7123
  }
7129
- function Wv({ ref: e, label: t, value: n, unit: o, decimals: r, limits: a, history: s, asOf: i, ages: c, quality: d, className: p, ...f }) {
7124
+ function Wb({ ref: e, label: t, value: n, unit: o, decimals: r, limits: a, history: s, asOf: i, ages: c, quality: d, className: p, ...f }) {
7130
7125
  const m = typeof n == "string" ? void 0 : n;
7131
7126
  lt("Stat", "value", typeof n == "string", "a number, null or undefined"), lt("Stat", "asOf", typeof i == "string", "a Date, a number of milliseconds or null");
7132
7127
  const h = Ze(), u = ge(), g = Yp(m, a), k = g.verdict, $ = p_(k, u), _ = k !== "unknown", w = (a?.limits?.length ?? 0) > 0 || !_, T = __(g.deviation, r, h, u), b = _ ? h.number(m, r) : u.statAbsentValue, C = d === "bad" ? u.qualityBad : d === "uncertain" ? u.qualityUncertain : null, A = i !== void 0 && c !== void 0, v = `${t}: ${_ ? `${b}${o ? ` ${o}` : ""}` : $}${_ && w && k !== "ok" ? `, ${$}` : ""}${C ? `, ${C}` : ""}`, N = C && /* @__PURE__ */ l("span", { className: ot.quality, "data-quality": d, children: C });
@@ -7159,7 +7154,7 @@ function Wv({ ref: e, label: t, value: n, unit: o, decimals: r, limits: a, histo
7159
7154
  );
7160
7155
  }
7161
7156
  const g_ = { userSelect: "none", WebkitTouchCallout: "none" };
7162
- function jv(e) {
7157
+ function jb(e) {
7163
7158
  const { handlers: t, touching: n } = ma(e);
7164
7159
  return {
7165
7160
  ...t,
@@ -7175,7 +7170,7 @@ function jv(e) {
7175
7170
  style: g_
7176
7171
  };
7177
7172
  }
7178
- function Uv({ open: e, onOpenChange: t, position: n, "aria-label": o, children: r }) {
7173
+ function Ub({ open: e, onOpenChange: t, position: n, "aria-label": o, children: r }) {
7179
7174
  const a = E(null), s = E(null);
7180
7175
  Te(() => {
7181
7176
  if (!e) return;
@@ -7231,7 +7226,7 @@ const v_ = "_wrapper_1gqat_8 _text_1ftkm_22", b_ = "_sm_1gqat_26", y_ = "_track_
7231
7226
  invalid: $_,
7232
7227
  label: N_
7233
7228
  };
7234
- function Vv({ ref: e, label: t, size: n, invalid: o, className: r, style: a, id: s, onChange: i, onCheckedChange: c, ...d }) {
7229
+ function Vb({ ref: e, label: t, size: n, invalid: o, className: r, style: a, id: s, onChange: i, onCheckedChange: c, ...d }) {
7235
7230
  const p = We(n), f = qe(), m = s ?? f?.id, h = o ?? f?.invalid ?? !1, u = Ce(), g = f && t && !d["aria-label"] && !d["aria-labelledby"] ? u : void 0;
7236
7231
  return /* @__PURE__ */ D("label", { className: I(Ut.wrapper, p === "sm" && Ut.sm, f && Ut.field, r), style: a, htmlFor: m, children: [
7237
7232
  /* @__PURE__ */ l(
@@ -7293,7 +7288,7 @@ function ds(e, t, n, o, r) {
7293
7288
  return;
7294
7289
  }
7295
7290
  }
7296
- function Gv(e) {
7291
+ function Gb(e) {
7297
7292
  const {
7298
7293
  ref: t,
7299
7294
  min: n = 0,
@@ -7361,7 +7356,7 @@ const E_ = "_rangeSlider_1sey1_10 _slider_14d78_12 _text_1ftkm_22 _extent_1ftkm_
7361
7356
  raised: B_,
7362
7357
  readout: O_
7363
7358
  }, ta = (e) => Array.isArray(e) && e.length === 2 && e.every((t) => typeof t == "number" && Number.isFinite(t));
7364
- function Yv(e) {
7359
+ function Yb(e) {
7365
7360
  const {
7366
7361
  ref: t,
7367
7362
  min: n = 0,
@@ -7447,7 +7442,7 @@ function W_(e) {
7447
7442
  const t = typeof e == "string" ? /^(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?$/.exec(e) : null;
7448
7443
  return t ? [ht(Math.min(23, +t[1])), ht(Math.min(59, +t[2])), ht(Math.min(59, +(t[3] ?? 0)))] : ["", "", ""];
7449
7444
  }
7450
- function Xv(e) {
7445
+ function Xb(e) {
7451
7446
  const {
7452
7447
  ref: t,
7453
7448
  withSeconds: n = !1,
@@ -7509,7 +7504,7 @@ const j_ = "_progress_12jrb_10 _text_1ftkm_22", U_ = "_track_12jrb_19", V_ = "_f
7509
7504
  sweep: G_,
7510
7505
  label: Y_
7511
7506
  };
7512
- function Qv({ ref: e, value: t, label: n, valueText: o, showLabel: r = !1, className: a, ...s }) {
7507
+ function Qb({ ref: e, value: t, label: n, valueText: o, showLabel: r = !1, className: a, ...s }) {
7513
7508
  const i = Ze(), c = ge(), d = t !== void 0, p = d ? fr(t) : 0;
7514
7509
  return /* @__PURE__ */ D(
7515
7510
  "div",
@@ -7550,7 +7545,7 @@ const X_ = "_accordion_13syu_8 _text_1ftkm_22", Q_ = "_item_13syu_14", Z_ = "_he
7550
7545
  collapseInner: ag,
7551
7546
  panel: sg
7552
7547
  }, us = /* @__PURE__ */ yt(null);
7553
- function Zv({
7548
+ function Zb({
7554
7549
  ref: e,
7555
7550
  type: t = "single",
7556
7551
  value: n,
@@ -7581,7 +7576,7 @@ function Zv({
7581
7576
  };
7582
7577
  return /* @__PURE__ */ l("div", { ref: e, className: I($t.accordion, s), ...d, "data-accordion": "", onKeyDown: g, children: /* @__PURE__ */ l(us, { value: { open: h, toggle: u, headingLevel: a }, children: c }) });
7583
7578
  }
7584
- function Jv({ ref: e, value: t, title: n, disabled: o = !1, className: r, children: a, ...s }) {
7579
+ function Jb({ ref: e, value: t, title: n, disabled: o = !1, className: r, children: a, ...s }) {
7585
7580
  const i = it(us), c = Ce(), d = `${c}-header`, p = `${c}-panel`, f = i?.open.includes(t) ?? !1, m = `h${i?.headingLevel ?? 3}`;
7586
7581
  return /* @__PURE__ */ D("div", { ref: e, className: I($t.item, r), ...s, children: [
7587
7582
  /* @__PURE__ */ l(m, { className: $t.heading, children: /* @__PURE__ */ D(
@@ -7625,7 +7620,7 @@ const ig = "_breadcrumb_18s1i_9 _text_1ftkm_22", cg = "_list_18s1i_15", dg = "_i
7625
7620
  separator: _g,
7626
7621
  measure: gg
7627
7622
  }, jn = /* @__PURE__ */ l(an, { size: 8, className: Oe.separator });
7628
- function eb({ ref: e, items: t, className: n, ...o }) {
7623
+ function e1({ ref: e, items: t, className: n, ...o }) {
7629
7624
  const r = ge(), a = E(null), s = E(null), [i, c] = F(0), d = de(() => {
7630
7625
  const u = a.current, g = s.current;
7631
7626
  if (!u || !g) return;
@@ -7688,7 +7683,7 @@ const vg = "_splitter_slvxn_10", bg = "_vertical_slvxn_17", yg = "_pane_slvxn_22
7688
7683
  separator: wg,
7689
7684
  grip: kg
7690
7685
  };
7691
- function tb({
7686
+ function t1({
7692
7687
  ref: e,
7693
7688
  orientation: t = "horizontal",
7694
7689
  value: n,
@@ -7794,7 +7789,7 @@ const Cg = "_stepper_1oo0f_11 _text_1ftkm_22", Dg = "_step_1oo0f_11", Sg = "_don
7794
7789
  upcoming: Pg,
7795
7790
  vertical: Fg
7796
7791
  }, Ig = (e, t, n) => e.failed ? "failed" : t < n ? "done" : t === n ? "current" : "upcoming";
7797
- function nb({ ref: e, steps: t, current: n, orientation: o = "horizontal", className: r, ...a }) {
7792
+ function n1({ ref: e, steps: t, current: n, orientation: o = "horizontal", className: r, ...a }) {
7798
7793
  const s = ge(), i = E(null), [c, d] = F("row"), p = de(() => {
7799
7794
  const m = i.current;
7800
7795
  if (!m || o === "vertical" || m.clientWidth <= 0) return;
@@ -7907,7 +7902,7 @@ const Og = "_zone_orks7_13 _text_1ftkm_22 _extent_1ftkm_85", zg = "_dragging_ork
7907
7902
  remove: Qg,
7908
7903
  rejected: Zg
7909
7904
  }, na = [], Jg = (e, t) => e < 1e6 ? `${t.number(Math.max(e > 0 ? 1 : 0, Math.round(e / 1e3)), 0)} kB` : `${t.number(e / 1e6, 1)} MB`;
7910
- function ob(e) {
7905
+ function o1(e) {
7911
7906
  const {
7912
7907
  ref: t,
7913
7908
  invalid: n,
@@ -7999,19 +7994,19 @@ function ob(e) {
7999
7994
  }
8000
7995
  );
8001
7996
  }
8002
- const e1 = "_control_dii28_13 _text_1ftkm_22", t1 = "_fill_dii28_33", n1 = "_segment_dii28_38", o1 = "_invalid_dii28_44", r1 = "_input_dii28_91", a1 = "_icon_dii28_108", s1 = "_label_dii28_119", l1 = "_disabled_dii28_156", i1 = "_sm_dii28_217", c1 = "_inset_dii28_172", xt = {
8003
- control: e1,
8004
- fill: t1,
8005
- segment: n1,
8006
- invalid: o1,
8007
- input: r1,
8008
- icon: a1,
8009
- label: s1,
8010
- disabled: l1,
8011
- sm: i1,
8012
- inset: c1
7997
+ const ev = "_control_dii28_13 _text_1ftkm_22", tv = "_fill_dii28_33", nv = "_segment_dii28_38", ov = "_invalid_dii28_44", rv = "_input_dii28_91", av = "_icon_dii28_108", sv = "_label_dii28_119", lv = "_disabled_dii28_156", iv = "_sm_dii28_217", cv = "_inset_dii28_172", xt = {
7998
+ control: ev,
7999
+ fill: tv,
8000
+ segment: nv,
8001
+ invalid: ov,
8002
+ input: rv,
8003
+ icon: av,
8004
+ label: sv,
8005
+ disabled: lv,
8006
+ sm: iv,
8007
+ inset: cv
8013
8008
  };
8014
- function rb(e) {
8009
+ function r1(e) {
8015
8010
  const {
8016
8011
  ref: t,
8017
8012
  options: n,
@@ -8099,15 +8094,15 @@ function Ho(e) {
8099
8094
  });
8100
8095
  return 0.2126 * t + 0.7152 * n + 0.0722 * o;
8101
8096
  }
8102
- function d1(e, t) {
8097
+ function dv(e, t) {
8103
8098
  const [n, o] = [Ho(e), Ho(t)].sort((r, a) => a - r);
8104
8099
  return (n + 0.05) / (o + 0.05);
8105
8100
  }
8106
- const u1 = "_track_ly4fw_36", f1 = "_square_ly4fw_8", m1 = "_hue_ly4fw_9", h1 = "_handle_ly4fw_49", Cn = {
8107
- track: u1,
8108
- square: f1,
8109
- hue: m1,
8110
- handle: h1
8101
+ const uv = "_track_ly4fw_36", fv = "_square_ly4fw_8", mv = "_hue_ly4fw_9", hv = "_handle_ly4fw_49", Cn = {
8102
+ track: uv,
8103
+ square: fv,
8104
+ hue: mv,
8105
+ handle: hv
8111
8106
  }, fs = ({ h: e }) => to({ h: e, s: 1, v: 1 }), An = (e, t, n) => Math.min(n, Math.max(t, e));
8112
8107
  function ms(e) {
8113
8108
  const t = (n) => {
@@ -8123,7 +8118,7 @@ function ms(e) {
8123
8118
  }
8124
8119
  };
8125
8120
  }
8126
- function p1({ hsv: e, onChange: t }) {
8121
+ function pv({ hsv: e, onChange: t }) {
8127
8122
  const n = ge(), o = Math.round(e.s * 100), r = Math.round(e.v * 100), a = (s) => {
8128
8123
  const i = s.shiftKey ? 0.1 : 0.01, c = { ArrowRight: [i, 0], ArrowLeft: [-i, 0], ArrowUp: [0, i], ArrowDown: [0, -i] }[s.key];
8129
8124
  c && (s.preventDefault(), t({ ...e, s: An(e.s + c[0], 0, 1), v: An(e.v + c[1], 0, 1) }));
@@ -8147,7 +8142,7 @@ function p1({ hsv: e, onChange: t }) {
8147
8142
  }
8148
8143
  );
8149
8144
  }
8150
- function _1({ hsv: e, onChange: t }) {
8145
+ function _v({ hsv: e, onChange: t }) {
8151
8146
  const n = ge(), o = Math.round(e.h), r = (a) => {
8152
8147
  const s = { Home: 0, End: 360 }[a.key], i = { ArrowRight: 1, ArrowUp: 1, ArrowLeft: -1, ArrowDown: -1, PageUp: 15, PageDown: -15 }[a.key];
8153
8148
  s === void 0 && i === void 0 || (a.preventDefault(), t({ ...e, h: An(s ?? e.h + i, 0, 360) }));
@@ -8173,29 +8168,29 @@ function _1({ hsv: e, onChange: t }) {
8173
8168
  }
8174
8169
  );
8175
8170
  }
8176
- const g1 = "_swatch_7scj3_4", v1 = "_chevron_7scj3_20", b1 = "_row_7scj3_40", y1 = "_labelled_7scj3_46", w1 = "_label_7scj3_46", k1 = "_channels_7scj3_58", x1 = "_hex_7scj3_65", $1 = "_contrasts_7scj3_70", N1 = "_contrast_7scj3_70", C1 = "_chip_7scj3_91", D1 = "_surface_7scj3_110", S1 = "_ratio_7scj3_116", M1 = "_pass_7scj3_121", T1 = "_fail_7scj3_122", A1 = "_swatches_7scj3_134", R1 = "_choice_7scj3_140", E1 = "_compare_7scj3_176", L1 = "_foot_7scj3_198", P1 = "_footClear_7scj3_206", F1 = "_panel_7scj3_26 _text_1ftkm_22", Pe = {
8177
- swatch: g1,
8178
- chevron: v1,
8179
- row: b1,
8180
- labelled: y1,
8181
- label: w1,
8182
- channels: k1,
8183
- hex: x1,
8184
- contrasts: $1,
8185
- contrast: N1,
8186
- chip: C1,
8187
- surface: D1,
8188
- ratio: S1,
8189
- pass: M1,
8190
- fail: T1,
8191
- swatches: A1,
8192
- choice: R1,
8193
- compare: E1,
8194
- foot: L1,
8195
- footClear: P1,
8196
- panel: F1
8197
- }, I1 = (e) => Ho(e) > 0.179 ? "#000000" : "#ffffff";
8198
- function B1() {
8171
+ const gv = "_swatch_13oij_4", vv = "_chevron_13oij_20", bv = "_row_13oij_40", yv = "_labelled_13oij_46", wv = "_label_13oij_46", kv = "_channels_13oij_58", xv = "_hex_13oij_65", $v = "_contrasts_13oij_70", Nv = "_contrast_13oij_70", Cv = "_chip_13oij_91", Dv = "_surface_13oij_110", Sv = "_ratio_13oij_116", Mv = "_pass_13oij_121", Tv = "_fail_13oij_122", Av = "_swatches_13oij_134", Rv = "_choice_13oij_140", Ev = "_compare_13oij_176", Lv = "_foot_13oij_198", Pv = "_footClear_13oij_206", Fv = "_panel_13oij_26 _text_1ftkm_22", Pe = {
8172
+ swatch: gv,
8173
+ chevron: vv,
8174
+ row: bv,
8175
+ labelled: yv,
8176
+ label: wv,
8177
+ channels: kv,
8178
+ hex: xv,
8179
+ contrasts: $v,
8180
+ contrast: Nv,
8181
+ chip: Cv,
8182
+ surface: Dv,
8183
+ ratio: Sv,
8184
+ pass: Mv,
8185
+ fail: Tv,
8186
+ swatches: Av,
8187
+ choice: Rv,
8188
+ compare: Ev,
8189
+ foot: Lv,
8190
+ footClear: Pv,
8191
+ panel: Fv
8192
+ }, Iv = (e) => Ho(e) > 0.179 ? "#000000" : "#ffffff";
8193
+ function Bv() {
8199
8194
  const e = (t, n) => {
8200
8195
  if (typeof document > "u") return n;
8201
8196
  const o = document.createElement("div");
@@ -8205,14 +8200,14 @@ function B1() {
8205
8200
  };
8206
8201
  return [e("light", "#ffffff"), e("dark", "#1e1e20")];
8207
8202
  }
8208
- function O1({ start: e, current: t, swatches: n, contrastAgainst: o, onColor: r, onDone: a, onCancel: s, onClear: i }) {
8203
+ function Ov({ start: e, current: t, swatches: n, contrastAgainst: o, onColor: r, onDone: a, onCancel: s, onClear: i }) {
8209
8204
  const c = ge(), [d, p] = F(() => wo(e ?? "#000000"));
8210
8205
  t && t !== to(d) && p(wo(t, d));
8211
8206
  const [f, m] = F(null), h = (v) => {
8212
8207
  v !== t && r(v);
8213
8208
  }, u = (v) => {
8214
8209
  p((N) => wo(v, N)), h(v);
8215
- }, [g, k] = F(B1)[0], $ = o ?? [
8210
+ }, [g, k] = F(Bv)[0], $ = o ?? [
8216
8211
  { name: c.colorSurfaceLight, value: g },
8217
8212
  { name: c.colorSurfaceDark, value: k }
8218
8213
  ], _ = (n ?? []).flatMap(({ name: v, value: N }) => {
@@ -8231,8 +8226,8 @@ function O1({ start: e, current: t, swatches: n, contrastAgainst: o, onColor: r,
8231
8226
  v && u(v), m(null);
8232
8227
  };
8233
8228
  return /* @__PURE__ */ D(Me, { children: [
8234
- /* @__PURE__ */ l(p1, { hsv: d, onChange: b }),
8235
- /* @__PURE__ */ l(_1, { hsv: d, onChange: b }),
8229
+ /* @__PURE__ */ l(pv, { hsv: d, onChange: b }),
8230
+ /* @__PURE__ */ l(_v, { hsv: d, onChange: b }),
8236
8231
  /* @__PURE__ */ D("div", { className: Pe.row, children: [
8237
8232
  /* @__PURE__ */ D("div", { className: Pe.labelled, children: [
8238
8233
  /* @__PURE__ */ l("span", { className: Pe.label, "aria-hidden": !0, children: c.colorHex }),
@@ -8270,7 +8265,7 @@ function O1({ start: e, current: t, swatches: n, contrastAgainst: o, onColor: r,
8270
8265
  /* @__PURE__ */ l(Wf, { size: "sm", "aria-label": N, min: 0, max: 255, decimals: 0, value: w[y], onValueChange: (L) => T(y, L) })
8271
8266
  ] }, v)) }),
8272
8267
  t && $.length > 0 && /* @__PURE__ */ l("div", { className: Pe.contrasts, children: $.map(({ name: v, value: N }) => {
8273
- const y = d1(t, N), L = y >= 3;
8268
+ const y = dv(t, N), L = y >= 3;
8274
8269
  return /* @__PURE__ */ D("span", { className: Pe.contrast, children: [
8275
8270
  /* @__PURE__ */ l("span", { className: Pe.chip, style: { "--_surface": N, "--_color": t }, "aria-hidden": !0 }),
8276
8271
  /* @__PURE__ */ l("span", { className: Pe.surface, children: v }),
@@ -8282,7 +8277,7 @@ function O1({ start: e, current: t, swatches: n, contrastAgainst: o, onColor: r,
8282
8277
  ] }, v);
8283
8278
  }) }),
8284
8279
  _.length > 0 && /* @__PURE__ */ l("div", { role: "group", "aria-label": c.colorSwatches, className: Pe.swatches, children: _.map(({ name: v, hex: N }) => /* @__PURE__ */ l("button", { type: "button", title: v, "aria-label": v, "aria-pressed": N === t, className: Pe.choice, style: { "--_color": N }, onClick: () => u(N) }, v + N)) }),
8285
- /* @__PURE__ */ l("div", { className: Pe.compare, role: "img", "aria-label": c.colorBeforeAfter(e ?? c.colorNone, t ?? c.colorNone), children: [[c.colorBefore, e], [c.colorAfter, t]].map(([v, N]) => /* @__PURE__ */ D("span", { style: { "--_color": N ?? "transparent", "--_ink": N ? I1(N) : void 0 }, children: [
8280
+ /* @__PURE__ */ l("div", { className: Pe.compare, role: "img", "aria-label": c.colorBeforeAfter(e ?? c.colorNone, t ?? c.colorNone), children: [[c.colorBefore, e], [c.colorAfter, t]].map(([v, N]) => /* @__PURE__ */ D("span", { style: { "--_color": N ?? "transparent", "--_ink": N ? Iv(N) : void 0 }, children: [
8286
8281
  v,
8287
8282
  " ",
8288
8283
  (N ?? c.colorNone).toUpperCase()
@@ -8294,7 +8289,7 @@ function O1({ start: e, current: t, swatches: n, contrastAgainst: o, onColor: r,
8294
8289
  ] })
8295
8290
  ] });
8296
8291
  }
8297
- function ab(e) {
8292
+ function a1(e) {
8298
8293
  const { ref: t, placeholder: n, clearable: o = !1, disabled: r = !1, invalid: a, size: s, chars: i, className: c, name: d, formValue: p, swatches: f, contrastAgainst: m, ...h } = e, u = ct(h), [g, k, , $] = _t("ColorPicker", e, null), _ = g == null ? null : mn(g);
8299
8294
  lt("ColorPicker", "value", g != null && _ === null, "a hex colour such as #2563eb, or null");
8300
8295
  const x = We(s), w = qe(), T = ge(), b = a ?? w?.invalid ?? !1, [C, A] = F(!1), [v, N] = F(null), y = E(!1), L = E(null), B = E(null), O = Ce(), S = n ?? T.colorPlaceholder, R = () => {
@@ -8355,7 +8350,7 @@ function ab(e) {
8355
8350
  className: Pe.panel,
8356
8351
  closeOnTabOut: !0,
8357
8352
  children: /* @__PURE__ */ l(
8358
- O1,
8353
+ Ov,
8359
8354
  {
8360
8355
  start: v,
8361
8356
  current: _,
@@ -8374,98 +8369,98 @@ function ab(e) {
8374
8369
  ] });
8375
8370
  }
8376
8371
  export {
8377
- Zv as Accordion,
8378
- Jv as AccordionItem,
8379
- G1 as Alert,
8372
+ Zb as Accordion,
8373
+ Jb as AccordionItem,
8374
+ Gv as Alert,
8380
8375
  an as AngleGlyph,
8381
- Y1 as Avatar,
8382
- X1 as Badge,
8383
- eb as Breadcrumb,
8376
+ Yv as Avatar,
8377
+ Xv as Badge,
8378
+ e1 as Breadcrumb,
8384
8379
  Ee as Button,
8385
8380
  fi as ButtonGroup,
8386
8381
  ca as CalendarGlyph,
8387
- rv as Card,
8388
- sv as CardBody,
8389
- av as CardHeader,
8382
+ rb as Card,
8383
+ sb as CardBody,
8384
+ ab as CardHeader,
8390
8385
  xa as Checkbox,
8391
8386
  ua as ClockGlyph,
8392
- ab as ColorPicker,
8393
- uv as Combobox,
8394
- iv as CommandPalette,
8395
- $v as ConfirmDialog,
8396
- Uv as ContextMenu,
8387
+ a1 as ColorPicker,
8388
+ ub as Combobox,
8389
+ ib as CommandPalette,
8390
+ $b as ConfirmDialog,
8391
+ Ub as ContextMenu,
8397
8392
  fl as ControlSizeProvider,
8398
8393
  pt as CrossGlyph,
8399
8394
  Ko as DEFAULT_FORMATS,
8400
8395
  aa as DEFAULT_LANGUAGE,
8401
- pv as DEFAULT_PRESETS,
8396
+ pb as DEFAULT_PRESETS,
8402
8397
  Wo as DEFAULT_SEPARATORS,
8403
8398
  fn as DEFAULT_WORDING,
8404
- mv as DatePicker,
8405
- _v as DateRangePicker,
8406
- hv as DateTimePicker,
8407
- gv as DateTimeRangePicker,
8408
- vv as Divider,
8409
- kv as Drawer,
8399
+ mb as DatePicker,
8400
+ _b as DateRangePicker,
8401
+ hb as DateTimePicker,
8402
+ gb as DateTimeRangePicker,
8403
+ vb as Divider,
8404
+ kb as Drawer,
8410
8405
  Vs as DropperGlyph,
8411
- bv as EmptyState,
8412
- j1 as EndGlyph,
8413
- ob as FileInput,
8414
- tv as FormField,
8406
+ bb as EmptyState,
8407
+ jv as EndGlyph,
8408
+ o1 as FileInput,
8409
+ tb as FormField,
8415
8410
  Yl as FormFieldBoundary,
8416
- wv as Grid,
8417
- U1 as GridGlyph,
8411
+ wb as Grid,
8412
+ Uv as GridGlyph,
8418
8413
  Us as GripGlyph,
8419
- Hv as Heading,
8414
+ Hb as Heading,
8420
8415
  Dn as IconButton,
8421
8416
  ro as Input,
8422
8417
  zs as LanguageProvider,
8423
- qv as Link,
8424
- V1 as MeasureGlyph,
8418
+ qb as Link,
8419
+ Vv as MeasureGlyph,
8425
8420
  ka as Menu,
8426
8421
  li as MenuItem,
8427
- nv as MenuSeparator,
8428
- fv as Meter,
8422
+ nb as MenuSeparator,
8423
+ fb as Meter,
8429
8424
  js as MinusGlyph,
8430
8425
  hm as Modal,
8431
- xv as ModalBody,
8426
+ xb as ModalBody,
8432
8427
  _m as ModalFooter,
8433
8428
  pm as ModalHeader,
8434
- W1 as MoreGlyph,
8435
- Nv as MultiSelect,
8429
+ Wv as MoreGlyph,
8430
+ Nb as MultiSelect,
8436
8431
  Wf as NumberInput,
8437
8432
  Ws as PlusGlyph,
8438
8433
  Ot as Popover,
8439
- Qv as ProgressBar,
8440
- Cv as RadioGroup,
8441
- Yv as RangeSlider,
8442
- rb as SegmentedControl,
8434
+ Qb as ProgressBar,
8435
+ Cb as RadioGroup,
8436
+ Yb as RangeSlider,
8437
+ r1 as SegmentedControl,
8443
8438
  Er as Select,
8444
- Dv as Skeleton,
8445
- Gv as Slider,
8439
+ Db as Skeleton,
8440
+ Gb as Slider,
8446
8441
  gd as Sparkline,
8447
8442
  Go as Spinner,
8448
- ov as SplitButton,
8449
- tb as Splitter,
8450
- yv as Stack,
8451
- Wv as Stat,
8452
- nb as Stepper,
8453
- Vv as Switch,
8454
- Rv as Tab,
8455
- Av as TabList,
8456
- Ev as TabPanel,
8457
- Tv as Tabs,
8458
- Mv as Tag,
8459
- Sv as TagGroup,
8460
- zv as Text,
8461
- Lv as Textarea,
8462
- Xv as TimeInput,
8463
- Fv as ToastProvider,
8443
+ ob as SplitButton,
8444
+ t1 as Splitter,
8445
+ yb as Stack,
8446
+ Wb as Stat,
8447
+ n1 as Stepper,
8448
+ Vb as Switch,
8449
+ Rb as Tab,
8450
+ Ab as TabList,
8451
+ Eb as TabPanel,
8452
+ Tb as Tabs,
8453
+ Mb as Tag,
8454
+ Sb as TagGroup,
8455
+ zb as Text,
8456
+ Lb as Textarea,
8457
+ Xb as TimeInput,
8458
+ Fb as ToastProvider,
8464
8459
  da as ToneGlyph,
8465
8460
  Tl as Tooltip,
8466
- Bv as TreeSearch,
8467
- Iv as TreeView,
8468
- ev as UmrissProvider,
8461
+ Bb as TreeSearch,
8462
+ Ib as TreeView,
8463
+ eb as UmrissProvider,
8469
8464
  Qn as VisuallyHidden,
8470
8465
  is as age,
8471
8466
  Fp as allBranches,
@@ -8477,34 +8472,34 @@ export {
8477
8472
  vf as formatDuration,
8478
8473
  ks as formatsFor,
8479
8474
  Zp as freshness,
8480
- Q1 as hasWarned,
8475
+ Qv as hasWarned,
8481
8476
  Bs as mergeLanguage,
8482
8477
  Jn as rangeDays,
8483
- lv as resetAnnouncer,
8478
+ lb as resetAnnouncer,
8484
8479
  Pc as scrollForRow,
8485
8480
  $s as separatorsOf,
8486
8481
  Tp as treeModel,
8487
- cv as useCommandPaletteShortcut,
8488
- jv as useContextMenuTrigger,
8489
- J1 as useDensity,
8490
- Z1 as useDensityFor,
8482
+ cb as useCommandPaletteShortcut,
8483
+ jb as useContextMenuTrigger,
8484
+ Jv as useDensity,
8485
+ Zv as useDensityFor,
8491
8486
  qe as useFormField,
8492
8487
  Ze as useFormats,
8493
8488
  e_ as useFreshness,
8494
8489
  Jt as useLanguage,
8495
8490
  Qo as usePortalTarget,
8496
8491
  ia as useTimeZoneLabel,
8497
- Pv as useToast,
8492
+ Pb as useToast,
8498
8493
  yl as useToastConfig,
8499
- Ov as useTree,
8494
+ Ob as useTree,
8500
8495
  Xo as useUmriss,
8501
8496
  dr as useVirtual,
8502
8497
  ge as useWording,
8503
- Kv as verdictWeight,
8498
+ Kb as verdictWeight,
8504
8499
  ho as visibleWindow,
8505
8500
  Rn as warnOnce,
8506
- ib as writeNumber,
8507
- dv as zoneDayStart,
8501
+ i1 as writeNumber,
8502
+ db as zoneDayStart,
8508
8503
  bt as zoneFields,
8509
8504
  Ln as zoneInstant
8510
8505
  };