@danxbot/ui 24.0.0 → 24.2.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/index.js CHANGED
@@ -178,6 +178,16 @@ const UO = {
178
178
  signature: [["path", { d: "m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284" }], ["path", { d: "M3 21h18" }]],
179
179
  /* --- pacing --- */
180
180
  timer: [["line", { x1: "10", x2: "14", y1: "2", y2: "2" }], ["line", { x1: "12", x2: "15", y1: "14", y2: "11" }], ["circle", { cx: "12", cy: "14", r: "8" }]],
181
+ /* --- tournament --- */
182
+ "circle-pause": [["circle", { cx: "12", cy: "12", r: "10" }], ["line", { x1: "10", x2: "10", y1: "15", y2: "9" }], ["line", { x1: "14", x2: "14", y1: "15", y2: "9" }]],
183
+ crown: [["path", { d: "M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z" }], ["path", { d: "M5 21h14" }]],
184
+ medal: [["path", { d: "M7.21 15 2.66 7.14a2 2 0 0 1 .13-2.2L4.4 2.8A2 2 0 0 1 6 2h12a2 2 0 0 1 1.6.8l1.6 2.14a2 2 0 0 1 .14 2.2L16.79 15" }], ["path", { d: "M11 12 5.12 2.2" }], ["path", { d: "m13 12 5.88-9.8" }], ["path", { d: "M8 7h8" }], ["circle", { cx: "12", cy: "17", r: "5" }], ["path", { d: "M12 18v-2h-.5" }]],
185
+ mountain: [["path", { d: "m8 3 4 8 5-5 5 15H2L8 3z" }]],
186
+ "piggy-bank": [["path", { d: "M11 17h3v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-3a3.16 3.16 0 0 0 2-2h1a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-1a5 5 0 0 0-2-4V3a4 4 0 0 0-3.2 1.6l-.3.4H11a6 6 0 0 0-6 6v1a5 5 0 0 0 2 4v3a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1z" }], ["path", { d: "M16 10h.01" }], ["path", { d: "M2 8v1a2 2 0 0 0 2 2h1" }]],
187
+ radio: [["path", { d: "M16.247 7.761a6 6 0 0 1 0 8.478" }], ["path", { d: "M19.075 4.933a10 10 0 0 1 0 14.134" }], ["path", { d: "M4.925 19.067a10 10 0 0 1 0-14.134" }], ["path", { d: "M7.753 16.239a6 6 0 0 1 0-8.478" }], ["circle", { cx: "12", cy: "12", r: "2" }]],
188
+ scale: [["path", { d: "m16 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }], ["path", { d: "m2 16 3-8 3 8c-.87.65-1.92 1-3 1s-2.13-.35-3-1Z" }], ["path", { d: "M7 21h10" }], ["path", { d: "M12 3v18" }], ["path", { d: "M3 7h2c2 0 5-1 7-2 2 1 5 2 7 2h2" }]],
189
+ signal: [["path", { d: "M2 20h.01" }], ["path", { d: "M7 20v-4" }], ["path", { d: "M12 20v-8" }], ["path", { d: "M17 20V8" }], ["path", { d: "M22 4v16" }]],
190
+ trophy: [["path", { d: "M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978" }], ["path", { d: "M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978" }], ["path", { d: "M18 9h1.5a1 1 0 0 0 0-5H18" }], ["path", { d: "M4 22h16" }], ["path", { d: "M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z" }], ["path", { d: "M6 9H4.5a1 1 0 0 1 0-5H6" }]],
181
191
  /* --- text authoring --- */
182
192
  "align-center": [["path", { d: "M21 5H3" }], ["path", { d: "M17 12H7" }], ["path", { d: "M19 19H5" }]],
183
193
  "align-left": [["path", { d: "M21 5H3" }], ["path", { d: "M15 12H3" }], ["path", { d: "M17 19H3" }]],
@@ -16962,7 +16972,7 @@ const Wg = /* @__PURE__ */ k.forwardRef(function(t, n) {
16962
16972
  });
16963
16973
  });
16964
16974
  process.env.NODE_ENV !== "production" && (Wg.displayName = "Input");
16965
- const ez = ht({
16975
+ const e5 = ht({
16966
16976
  base: [
16967
16977
  /* dx-field carries the WebKit search-clear suppression in components.css —
16968
16978
  without it a `type="search"` field with a trailing clear action renders
@@ -17043,7 +17053,7 @@ function Dt(e) {
17043
17053
  Wg,
17044
17054
  {
17045
17055
  ref: i,
17046
- className: H(ez({ size: n, hasLeading: c, hasTrailing: d }), t),
17056
+ className: H(e5({ size: n, hasLeading: c, hasTrailing: d }), t),
17047
17057
  ...a
17048
17058
  }
17049
17059
  );
@@ -17056,7 +17066,7 @@ function Dt(e) {
17056
17066
  /* @__PURE__ */ u("span", { className: H(Tw({ side: "trailing", size: n }), "[&>*]:pointer-events-auto"), children: l })
17057
17067
  ] }) : p;
17058
17068
  }
17059
- const tz = ht({
17069
+ const t5 = ht({
17060
17070
  base: [
17061
17071
  "w-full min-w-0 font-sans text-primary",
17062
17072
  "border border-field-border bg-field",
@@ -17089,13 +17099,13 @@ const tz = ht({
17089
17099
  },
17090
17100
  defaultVariants: { size: "md", resize: "vertical" }
17091
17101
  });
17092
- function nz({ className: e, size: t, resize: n, rows: r = 4, ref: o, ...s }) {
17102
+ function n5({ className: e, size: t, resize: n, rows: r = 4, ref: o, ...s }) {
17093
17103
  return /* @__PURE__ */ u(
17094
17104
  Wg,
17095
17105
  {
17096
17106
  ref: o,
17097
17107
  render: /* @__PURE__ */ u("textarea", { rows: r }),
17098
- className: H(tz({ size: t, resize: n }), e),
17108
+ className: H(t5({ size: t, resize: n }), e),
17099
17109
  ...s
17100
17110
  }
17101
17111
  );
@@ -17123,7 +17133,7 @@ function Zc(e) {
17123
17133
  function fE(e) {
17124
17134
  return typeof e?.then == "function";
17125
17135
  }
17126
- function rz(e, t, n) {
17136
+ function r5(e, t, n) {
17127
17137
  if (t === "")
17128
17138
  throw new Error(
17129
17139
  `${e}: ${n} refused a value with an empty reason. A refusal nobody can read leaves the field open with nothing beside it — return ${n === "validate" ? "null" : "nothing"} to accept the value, or say why it cannot be used.`
@@ -17179,7 +17189,7 @@ function hE(e) {
17179
17189
  f.current += 1, b();
17180
17190
  }
17181
17191
  function y(N, I) {
17182
- rz(t.current.component, N, I), g(!1), s(N), c((A) => A + 1);
17192
+ r5(t.current.component, N, I), g(!1), s(N), c((A) => A + 1);
17183
17193
  }
17184
17194
  function w(N) {
17185
17195
  g(!1), a(t.current.failureMessage), t.current.onError?.(N), c((I) => I + 1);
@@ -17270,7 +17280,7 @@ function hE(e) {
17270
17280
  whenIdle: S
17271
17281
  };
17272
17282
  }
17273
- const oz = ht({
17283
+ const o5 = ht({
17274
17284
  slots: {
17275
17285
  /* THE ONE GEOMETRY RECIPE. Every property that can move text inside the
17276
17286
  box lives here, on the SAME element in both states — there is no second
@@ -17349,33 +17359,33 @@ function bE(e, t) {
17349
17359
  const o = document.createTextNode(t);
17350
17360
  r.insertNode(o), r.setStartAfter(o), r.setEndAfter(o), n.removeAllRanges(), n.addRange(r), e.normalize();
17351
17361
  }
17352
- const sz = /* @__PURE__ */ new Set([
17362
+ const s5 = /* @__PURE__ */ new Set([
17353
17363
  "insertFromPaste",
17354
17364
  "insertFromPasteAsQuotation",
17355
17365
  "insertFromDrop",
17356
17366
  "insertReplacementText",
17357
17367
  "insertFromYank"
17358
17368
  ]);
17359
- function iz(e, t) {
17369
+ function i5(e, t) {
17360
17370
  return t === "multiline" ? e : t === "wrap" ? e.replace(/\r\n|\r|\n/g, " ") : e.replace(/\r\n|\r|\n/g, "");
17361
17371
  }
17362
- function az(e, t, n) {
17372
+ function a5(e, t, n) {
17363
17373
  const r = xe(n);
17364
17374
  r.current = n, _e(() => {
17365
17375
  const o = e.current;
17366
17376
  if (!o) return;
17367
17377
  function s(i) {
17368
- if (!sz.has(i.inputType)) return;
17378
+ if (!s5.has(i.inputType)) return;
17369
17379
  i.preventDefault();
17370
17380
  const a = e.current;
17371
17381
  if (!a) return;
17372
- const l = i.dataTransfer?.getData("text/plain") ?? i.data ?? "", c = iz(l, t);
17382
+ const l = i.dataTransfer?.getData("text/plain") ?? i.data ?? "", c = i5(l, t);
17373
17383
  bE(a, c), r.current();
17374
17384
  }
17375
17385
  return o.addEventListener("beforeinput", s), () => o.removeEventListener("beforeinput", s);
17376
17386
  }, [e, t]);
17377
17387
  }
17378
- function lz({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...s }) {
17388
+ function l5({ delayMs: e, session: t, elRef: n, openRef: r, composingRef: o, ...s }) {
17379
17389
  const i = e !== void 0, [a, l] = ne(!1), c = xe(null), d = xe(""), f = xe(""), p = xe("none"), h = xe(!1), m = xe(s);
17380
17390
  m.current = s;
17381
17391
  function g() {
@@ -17509,7 +17519,7 @@ function iee(e) {
17509
17519
  );
17510
17520
  qg("InlineEdit", p, h);
17511
17521
  const { inlineEdit: y, keyNames: w } = he(), C = i ?? y.empty, S = l === "multiline", R = e.failureMessage ?? // I18N-ALLOW: key ids of the retry chord, named by the catalog through chordLabel
17512
- y.failure(Su(S && c === void 0 ? "ctrl+enter" : "enter", w)), E = oz({ size: a }), N = p !== void 0, [I, A] = fi(p, !1, h), [D, P] = ne(t.length === 0), T = xe(null), $ = xe(!1), L = xe(!1), F = xe(!1), _ = hE({
17522
+ y.failure(Su(S && c === void 0 ? "ctrl+enter" : "enter", w)), E = o5({ size: a }), N = p !== void 0, [I, A] = fi(p, !1, h), [D, P] = ne(t.length === 0), T = xe(null), $ = xe(!1), L = xe(!1), F = xe(!1), _ = hE({
17513
17523
  component: "InlineEdit",
17514
17524
  value: t,
17515
17525
  onCommit: n,
@@ -17517,7 +17527,7 @@ function iee(e) {
17517
17527
  failureMessage: R,
17518
17528
  close: oe,
17519
17529
  refocus: () => T.current?.focus()
17520
- }), z = lz({
17530
+ }), z = l5({
17521
17531
  delayMs: c,
17522
17532
  session: _,
17523
17533
  elRef: T,
@@ -17542,7 +17552,7 @@ function iee(e) {
17542
17552
  function Y() {
17543
17553
  return T.current ? mE(T.current) : "";
17544
17554
  }
17545
- az(T, l, te);
17555
+ a5(T, l, te);
17546
17556
  function K() {
17547
17557
  N || G || W || O || A(!0);
17548
17558
  }
@@ -17624,8 +17634,8 @@ function iee(e) {
17624
17634
  "data-editing": W || void 0,
17625
17635
  className: H(
17626
17636
  E.box(),
17627
- cz({ editing: W, controlled: N, unavailable: G, pending: O, refused: V !== null }),
17628
- uz(l, W),
17637
+ c5({ editing: W, controlled: N, unavailable: G, pending: O, refused: V !== null }),
17638
+ u5(l, W),
17629
17639
  g
17630
17640
  ),
17631
17641
  onClick: K,
@@ -17648,7 +17658,7 @@ function iee(e) {
17648
17658
  ] });
17649
17659
  return G ? /* @__PURE__ */ u(Gt, { content: d.reason, children: Se }) : Se;
17650
17660
  }
17651
- function cz({
17661
+ function c5({
17652
17662
  editing: e,
17653
17663
  controlled: t,
17654
17664
  unavailable: n,
@@ -17671,7 +17681,7 @@ function cz({
17671
17681
  n && ["cursor-not-allowed", "hover:border-transparent hover:bg-transparent"]
17672
17682
  );
17673
17683
  }
17674
- function uz(e, t) {
17684
+ function u5(e, t) {
17675
17685
  return e === "multiline" ? "whitespace-pre-wrap break-words" : e === "wrap" ? "whitespace-normal break-words" : t ? "whitespace-nowrap overflow-x-auto" : "truncate";
17676
17686
  }
17677
17687
  function aee({
@@ -17685,7 +17695,7 @@ function aee({
17685
17695
  }) {
17686
17696
  qg("EditGutter", n, r);
17687
17697
  const [a, l] = fi(n, !1, r), c = xe(null), d = xe(null), f = !a && !o, p = xe("");
17688
- pz(c, d, f), hz(c, d, a);
17698
+ p5(c, d, f), h5(c, d, a);
17689
17699
  function h(m) {
17690
17700
  p.current !== "touch" || !f || m.target.closest("a, button, input, textarea, select, [role='button']") === null && l(!0);
17691
17701
  }
@@ -17727,33 +17737,33 @@ function aee({
17727
17737
  }
17728
17738
  );
17729
17739
  }
17730
- function dz(e, t) {
17740
+ function d5(e, t) {
17731
17741
  return document.createTreeWalker(e, NodeFilter.SHOW_TEXT, {
17732
17742
  acceptNode: (r) => t !== null && t.contains(r) || (r.textContent ?? "").trim() === "" ? NodeFilter.FILTER_REJECT : NodeFilter.FILTER_ACCEPT
17733
17743
  }).nextNode();
17734
17744
  }
17735
- function fz(e) {
17745
+ function f5(e) {
17736
17746
  for (let t = e.parentElement; t !== null && t !== document.body; t = t.parentElement) {
17737
17747
  const { overflowX: n } = getComputedStyle(t);
17738
17748
  if (n !== "visible") return t;
17739
17749
  }
17740
17750
  return null;
17741
17751
  }
17742
- function pz(e, t, n) {
17752
+ function p5(e, t, n) {
17743
17753
  const r = xe(!1);
17744
17754
  _e(() => {
17745
17755
  const o = e.current, s = t.current;
17746
17756
  if (!n || !o || !s) return;
17747
17757
  function i() {
17748
17758
  if (!o || !s) return;
17749
- const l = o.getBoundingClientRect(), c = s.getBoundingClientRect(), d = dz(o, s);
17759
+ const l = o.getBoundingClientRect(), c = s.getBoundingClientRect(), d = d5(o, s);
17750
17760
  if (d !== null) {
17751
17761
  const p = document.createRange();
17752
17762
  p.selectNodeContents(d);
17753
17763
  const h = p.getClientRects()[0];
17754
17764
  h !== void 0 && h.height > 0 && (s.style.top = `${h.top - l.top + (h.height - c.height) / 2}px`);
17755
17765
  }
17756
- const f = fz(o);
17766
+ const f = f5(o);
17757
17767
  f !== null && !r.current && c.left < f.getBoundingClientRect().left && (r.current = !0, console.warn(
17758
17768
  "[danxbot] EditGutter: an ancestor with `overflow` other than visible clips the pencil — it sits in the gutter LEFT of the field, outside its box. Leave that gutter inside the clipping box (padding on the clipping element, or move the overflow further out).",
17759
17769
  f
@@ -17764,7 +17774,7 @@ function pz(e, t, n) {
17764
17774
  return a.observe(o), () => a.disconnect();
17765
17775
  }, [e, t, n]);
17766
17776
  }
17767
- function hz(e, t, n) {
17777
+ function h5(e, t, n) {
17768
17778
  const r = xe(n);
17769
17779
  _e(() => {
17770
17780
  const o = r.current && !n;
@@ -17823,7 +17833,7 @@ function Kg(e, t, n) {
17823
17833
  }
17824
17834
  return r;
17825
17835
  }
17826
- function mz(e, t, n) {
17836
+ function m5(e, t, n) {
17827
17837
  const r = Kg(e, t, n);
17828
17838
  return r.length ? { start: r[0].start, end: r[r.length - 1].end } : null;
17829
17839
  }
@@ -17831,7 +17841,7 @@ function Cn(e, t, n, r, o) {
17831
17841
  if (!(!t || r <= n))
17832
17842
  for (const s of Kg(e, n, r)) t.span(s.start, s.end, o);
17833
17843
  }
17834
- const $h = /[!-/:-@[-`{-~]/, gz = 8;
17844
+ const $h = /[!-/:-@[-`{-~]/, g5 = 8;
17835
17845
  function Ow(e, t, n, r = "text", o = 0, s = e.text.length) {
17836
17846
  const i = Yg(yE(e, t, o, s, 0));
17837
17847
  return n && Lh(i, e, n, r), ps(i);
@@ -17857,28 +17867,28 @@ function yE(e, t, n, r, o) {
17857
17867
  }
17858
17868
  }
17859
17869
  if (d === "`") {
17860
- const f = bz(s, a, r);
17870
+ const f = b5(s, a, r);
17861
17871
  if (f) {
17862
17872
  c(a), i.push(f), a = f.b, l = a;
17863
17873
  continue;
17864
17874
  }
17865
17875
  }
17866
17876
  if (d === "<") {
17867
- const f = yz(s, a, r);
17877
+ const f = y5(s, a, r);
17868
17878
  if (f) {
17869
17879
  c(a), i.push(f), a = f.b, l = a;
17870
17880
  continue;
17871
17881
  }
17872
17882
  }
17873
17883
  if (d === "&") {
17874
- const f = Cz(s, a, r);
17884
+ const f = C5(s, a, r);
17875
17885
  if (f) {
17876
17886
  c(a), i.push(f), a = f.b, l = a;
17877
17887
  continue;
17878
17888
  }
17879
17889
  }
17880
17890
  if (d === "[" || d === "!" && s[a + 1] === "[") {
17881
- const f = Rz(e, t, a, r, o);
17891
+ const f = R5(e, t, a, r, o);
17882
17892
  if (f) {
17883
17893
  c(a), i.push(f), a = f.b, l = a;
17884
17894
  continue;
@@ -17887,7 +17897,7 @@ function yE(e, t, n, r, o) {
17887
17897
  if (d === "*" || d === "_" || d === "~") {
17888
17898
  let f = a;
17889
17899
  for (; f < r && s[f] === d; ) f++;
17890
- c(a), i.push(Nz(s, a, f, d, n, r)), a = f, l = a;
17900
+ c(a), i.push(N5(s, a, f, d, n, r)), a = f, l = a;
17891
17901
  continue;
17892
17902
  }
17893
17903
  if (d === `
@@ -17907,8 +17917,8 @@ function yE(e, t, n, r, o) {
17907
17917
  a += 1, l = a;
17908
17918
  continue;
17909
17919
  }
17910
- if ((d === "h" || d === "w") && Sz(s, a, n)) {
17911
- const f = Ez(s, a, r);
17920
+ if ((d === "h" || d === "w") && S5(s, a, n)) {
17921
+ const f = E5(s, a, r);
17912
17922
  if (f) {
17913
17923
  c(a), i.push(f), a = f.b, l = a;
17914
17924
  continue;
@@ -17918,7 +17928,7 @@ function yE(e, t, n, r, o) {
17918
17928
  }
17919
17929
  return c(r), i;
17920
17930
  }
17921
- function bz(e, t, n) {
17931
+ function b5(e, t, n) {
17922
17932
  let r = t;
17923
17933
  for (; r < n && e[r] === "`"; ) r++;
17924
17934
  const o = r - t;
@@ -17938,14 +17948,14 @@ function bz(e, t, n) {
17938
17948
  }
17939
17949
  return null;
17940
17950
  }
17941
- const vz = /^<([a-zA-Z][a-zA-Z0-9+.-]{1,31}:[^<>\u0000-\u0020]*)>/, xz = /^<([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>/;
17942
- function yz(e, t, n) {
17943
- const r = e.slice(t, n), o = vz.exec(r);
17951
+ const v5 = /^<([a-zA-Z][a-zA-Z0-9+.-]{1,31}:[^<>\u0000-\u0020]*)>/, x5 = /^<([^\s<>@]+@[^\s<>@]+\.[^\s<>@]+)>/;
17952
+ function y5(e, t, n) {
17953
+ const r = e.slice(t, n), o = v5.exec(r);
17944
17954
  if (o) return { t: "auto", a: t, b: t + o[0].length, href: o[1], label: o[1] };
17945
- const s = xz.exec(r);
17955
+ const s = x5.exec(r);
17946
17956
  return s ? { t: "auto", a: t, b: t + s[0].length, href: `mailto:${s[1]}`, label: s[1] } : null;
17947
17957
  }
17948
- const wz = {
17958
+ const w5 = {
17949
17959
  amp: "&",
17950
17960
  lt: "<",
17951
17961
  gt: ">",
@@ -17987,12 +17997,12 @@ const wz = {
17987
17997
  para: "¶",
17988
17998
  frac12: "½",
17989
17999
  frac14: "¼"
17990
- }, kz = /^&(?:#[xX]([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{1,31}));/;
17991
- function Cz(e, t, n) {
17992
- const r = kz.exec(e.slice(t, n));
18000
+ }, k5 = /^&(?:#[xX]([0-9a-fA-F]{1,6})|#(\d{1,7})|([a-zA-Z][a-zA-Z0-9]{1,31}));/;
18001
+ function C5(e, t, n) {
18002
+ const r = k5.exec(e.slice(t, n));
17993
18003
  if (!r) return null;
17994
18004
  let o;
17995
- return r[1] !== void 0 ? o = Aw(parseInt(r[1], 16)) : r[2] !== void 0 ? o = Aw(parseInt(r[2], 10)) : o = wz[r[3]], o === void 0 ? null : { t: "text", a: t, b: t + r[0].length, value: o, esc: !0 };
18005
+ return r[1] !== void 0 ? o = Aw(parseInt(r[1], 16)) : r[2] !== void 0 ? o = Aw(parseInt(r[2], 10)) : o = w5[r[3]], o === void 0 ? null : { t: "text", a: t, b: t + r[0].length, value: o, esc: !0 };
17996
18006
  }
17997
18007
  function Aw(e) {
17998
18008
  if (!Number.isFinite(e) || e <= 0 || e > 1114111) return "�";
@@ -18002,11 +18012,11 @@ function Aw(e) {
18002
18012
  return "�";
18003
18013
  }
18004
18014
  }
18005
- function Sz(e, t, n) {
18015
+ function S5(e, t, n) {
18006
18016
  const r = t > n ? e[t - 1] : " ";
18007
18017
  return /[\w/@.-]/.test(r) ? !1 : /^(https?:\/\/|www\.)/.test(e.slice(t, t + 8));
18008
18018
  }
18009
- function Ez(e, t, n) {
18019
+ function E5(e, t, n) {
18010
18020
  const r = /^(?:https?:\/\/|www\.)[^\s<>]+/.exec(e.slice(t, n));
18011
18021
  if (!r) return null;
18012
18022
  let o = r[0];
@@ -18024,19 +18034,19 @@ function Dw(e, t) {
18024
18034
  for (const r of e) r === t && n++;
18025
18035
  return n;
18026
18036
  }
18027
- function Nz(e, t, n, r, o, s) {
18037
+ function N5(e, t, n, r, o, s) {
18028
18038
  const i = t > o ? e[t - 1] : " ", a = n < s ? e[n] : " ", l = /\s/.test(i), c = /\s/.test(a), d = $h.test(i), f = $h.test(a), p = !c && (!f || l || d), h = !l && (!d || c || f), m = r === "_" ? p && (!h || d) : p, g = r === "_" ? h && (!p || f) : h;
18029
18039
  return { t: "delim", a: t, b: n, ch: r, len: n - t, olen: n - t, canOpen: m, canClose: g };
18030
18040
  }
18031
- function Rz(e, t, n, r, o) {
18041
+ function R5(e, t, n, r, o) {
18032
18042
  const s = e.text, i = s[n] === "!", a = i ? n + 1 : n, l = _w(s, a, r);
18033
18043
  if (l < 0) return null;
18034
18044
  const c = a + 1, d = l, f = s.slice(c, d);
18035
18045
  if (!i && f.startsWith("^") && f.length > 1 && !/\s/.test(f))
18036
18046
  return { t: "footref", a: n, b: l + 1, label: f.slice(1) };
18037
- const p = o >= gz ? [] : Yg(yE(e, t, c, d, o + 1));
18047
+ const p = o >= g5 ? [] : Yg(yE(e, t, c, d, o + 1));
18038
18048
  if (s[l + 1] === "(") {
18039
- const v = Iz(s, l + 1, r);
18049
+ const v = I5(s, l + 1, r);
18040
18050
  if (v)
18041
18051
  return {
18042
18052
  t: i ? "image" : "link",
@@ -18088,7 +18098,7 @@ function _w(e, t, n) {
18088
18098
  }
18089
18099
  return -1;
18090
18100
  }
18091
- function Iz(e, t, n) {
18101
+ function I5(e, t, n) {
18092
18102
  let r = t + 1;
18093
18103
  for (; r < n && /[ \t\n]/.test(e[r]); ) r++;
18094
18104
  let o = "";
@@ -18145,7 +18155,7 @@ function Yg(e) {
18145
18155
  let o = n - 1, s = null;
18146
18156
  for (; o >= 0; o--) {
18147
18157
  const m = t[o];
18148
- if (!(m.t !== "delim" || m.ch !== r.ch || !m.canOpen) && Mz(m, r)) {
18158
+ if (!(m.t !== "delim" || m.ch !== r.ch || !m.canOpen) && M5(m, r)) {
18149
18159
  s = m;
18150
18160
  break;
18151
18161
  }
@@ -18170,11 +18180,11 @@ function Yg(e) {
18170
18180
  }
18171
18181
  return t;
18172
18182
  }
18173
- function Mz(e, t) {
18183
+ function M5(e, t) {
18174
18184
  return e.t !== "delim" || t.t !== "delim" ? !1 : !t.canOpen && !e.canClose || (t.olen + e.olen) % 3 !== 0 ? !0 : t.olen % 3 === 0 && e.olen % 3 === 0;
18175
18185
  }
18176
18186
  function Zs(e, t, n, r, o, s, i) {
18177
- const a = mz(t, r, o);
18187
+ const a = m5(t, r, o);
18178
18188
  if (!a) {
18179
18189
  i();
18180
18190
  return;
@@ -18301,20 +18311,20 @@ function Xd(e) {
18301
18311
  }
18302
18312
  return t;
18303
18313
  }
18304
- const Tz = 12, Ha = /^( {0,3})(`{3,}|~{3,})(.*)$/, kE = /^( {0,3})(#{1,6})(?:[ \t]|$)/, CE = /^ {0,3}(?:\*[ \t]*){3,}$|^ {0,3}(?:-[ \t]*){3,}$|^ {0,3}(?:_[ \t]*){3,}$/, Xg = /^ {0,3}>[ \t]?/, pi = /^( {0,3})([-*+])(?:[ \t]|$)/, hi = /^( {0,3})(\d{1,9})([.)])(?:[ \t]|$)/, Pz = /^ {0,3}(=+|-+)[ \t]*$/, Zg = /^( {0,3})(\[\^([^\]\s]+)\]:)[ \t]*/d, SE = /^( {0,3})(\[([^\]]+)\]:)[ \t]*(<[^>]*>|\S+)(?:[ \t]+(["'(].*["')]))?[ \t]*$/d, Oz = /^\[([ xX])\](?:[ \t]+|$)/, Az = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/, Dz = /^(---|\+\+\+)[ \t]*$/;
18314
+ const T5 = 12, Ha = /^( {0,3})(`{3,}|~{3,})(.*)$/, kE = /^( {0,3})(#{1,6})(?:[ \t]|$)/, CE = /^ {0,3}(?:\*[ \t]*){3,}$|^ {0,3}(?:-[ \t]*){3,}$|^ {0,3}(?:_[ \t]*){3,}$/, Xg = /^ {0,3}>[ \t]?/, pi = /^( {0,3})([-*+])(?:[ \t]|$)/, hi = /^( {0,3})(\d{1,9})([.)])(?:[ \t]|$)/, P5 = /^ {0,3}(=+|-+)[ \t]*$/, Zg = /^( {0,3})(\[\^([^\]\s]+)\]:)[ \t]*/d, SE = /^( {0,3})(\[([^\]]+)\]:)[ \t]*(<[^>]*>|\S+)(?:[ \t]+(["'(].*["')]))?[ \t]*$/d, O5 = /^\[([ xX])\](?:[ \t]+|$)/, A5 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/, D5 = /^(---|\+\+\+)[ \t]*$/;
18305
18315
  function EE(e) {
18306
18316
  return Jg(e);
18307
18317
  }
18308
18318
  function Jg(e, t) {
18309
- const n = $z(e), r = { source: e, sink: t, refs: Fz(n), footnotes: [], ids: /* @__PURE__ */ new Map() }, o = [];
18319
+ const n = $5(e), r = { source: e, sink: t, refs: F5(n), footnotes: [], ids: /* @__PURE__ */ new Map() }, o = [];
18310
18320
  let s = 0;
18311
- const i = zz(n, r);
18321
+ const i = z5(n, r);
18312
18322
  return i && (o.push(i.node), s = i.next), o.push(...Zd(n.slice(s), r, 0, "text")), r.footnotes.length && o.push({ kind: "footnotes", items: r.footnotes }), o;
18313
18323
  }
18314
- function _z(e) {
18324
+ function _5(e) {
18315
18325
  return e.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-+|-+$/g, "");
18316
18326
  }
18317
- function $z(e) {
18327
+ function $5(e) {
18318
18328
  const t = [];
18319
18329
  let n = 0;
18320
18330
  for (; ; ) {
@@ -18362,7 +18372,7 @@ function ir(e, t) {
18362
18372
  e.source[n] === "\r" && n++, e.source[n] === `
18363
18373
  ` && n++, e.sink.close(n, n > t ? [{ start: t, end: n }] : void 0);
18364
18374
  }
18365
- function Lz(e, t, n) {
18375
+ function L5(e, t, n) {
18366
18376
  return { start: e[t].start, end: Vt(e[n]) };
18367
18377
  }
18368
18378
  function Qg(e, t, n, r) {
@@ -18383,7 +18393,7 @@ function Qg(e, t, n, r) {
18383
18393
  function Vt(e) {
18384
18394
  return e.start + e.text.length;
18385
18395
  }
18386
- function Fz(e) {
18396
+ function F5(e) {
18387
18397
  const t = /* @__PURE__ */ new Map();
18388
18398
  let n = null, r = !0;
18389
18399
  for (const o of e) {
@@ -18399,19 +18409,19 @@ function Fz(e) {
18399
18409
  const i = r ? SE.exec(o.text) : null;
18400
18410
  if (i) {
18401
18411
  const a = wE(i[3]);
18402
- t.has(a) || t.set(a, { href: Vz(i[4]), title: i[5] ? i[5].slice(1, -1) : void 0 }), r = !0;
18412
+ t.has(a) || t.set(a, { href: V5(i[4]), title: i[5] ? i[5].slice(1, -1) : void 0 }), r = !0;
18403
18413
  continue;
18404
18414
  }
18405
18415
  r = uo(o);
18406
18416
  }
18407
18417
  return t;
18408
18418
  }
18409
- function Vz(e) {
18419
+ function V5(e) {
18410
18420
  return (e.startsWith("<") && e.endsWith(">") ? e.slice(1, -1) : e).replace(/\\([!-/:-@[-`{-~])/g, "$1");
18411
18421
  }
18412
- function zz(e, t) {
18422
+ function z5(e, t) {
18413
18423
  if (!e.length) return null;
18414
- const n = Dz.exec(e[0].text);
18424
+ const n = D5.exec(e[0].text);
18415
18425
  if (!n) return null;
18416
18426
  let r = -1;
18417
18427
  for (let i = 1; i < e.length; i++)
@@ -18434,7 +18444,7 @@ function zz(e, t) {
18434
18444
  }
18435
18445
  function Zd(e, t, n, r) {
18436
18446
  const o = [];
18437
- if (n > Tz) return o;
18447
+ if (n > T5) return o;
18438
18448
  let s = 0;
18439
18449
  for (; s < e.length; ) {
18440
18450
  const i = e[s];
@@ -18442,12 +18452,12 @@ function Zd(e, t, n, r) {
18442
18452
  s++;
18443
18453
  continue;
18444
18454
  }
18445
- const a = Bz(e, s, t);
18455
+ const a = B5(e, s, t);
18446
18456
  if (a) {
18447
18457
  o.push(a.node), s = a.next;
18448
18458
  continue;
18449
18459
  }
18450
- const l = Uz(i, t, r);
18460
+ const l = U5(i, t, r);
18451
18461
  if (l) {
18452
18462
  o.push(l), s++;
18453
18463
  continue;
@@ -18458,41 +18468,41 @@ function Zd(e, t, n, r) {
18458
18468
  }
18459
18469
  if (Xg.test(i.text)) {
18460
18470
  Jt(t, { kind: "quote" }, i.start);
18461
- const p = jz(e, s, t, n);
18471
+ const p = j5(e, s, t, n);
18462
18472
  o.push(p.node), ir(t, Vt(e[p.next - 1])), s = p.next;
18463
18473
  continue;
18464
18474
  }
18465
18475
  const c = Zg.exec(i.text);
18466
18476
  if (c) {
18467
18477
  Jt(t, { kind: "footnoteDef", label: c[3] }, i.start);
18468
- const p = Wz(e, s, t, n);
18478
+ const p = W5(e, s, t, n);
18469
18479
  ir(t, Vt(e[p.next - 1])), s = p.next;
18470
18480
  continue;
18471
18481
  }
18472
18482
  const d = SE.exec(i.text);
18473
18483
  if (d) {
18474
- Jt(t, { kind: "linkDef" }, i.start), qz(i, d, t), ir(t, Vt(i)), s++;
18484
+ Jt(t, { kind: "linkDef" }, i.start), q5(i, d, t), ir(t, Vt(i)), s++;
18475
18485
  continue;
18476
18486
  }
18477
18487
  if (RE(e, s)) {
18478
18488
  Jt(t, { kind: "table" }, i.start);
18479
- const p = Kz(e, s, t);
18489
+ const p = K5(e, s, t);
18480
18490
  o.push(p.node), qr(t, Vt(e[p.next - 1])), s = p.next;
18481
18491
  continue;
18482
18492
  }
18483
18493
  if (pi.test(i.text) || hi.test(i.text)) {
18484
18494
  const p = hi.exec(i.text), m = !pi.exec(i.text) && !!p, g = { kind: "list", ordered: m, start: m ? Number(p[2]) : 1, tight: !0 };
18485
18495
  Jt(t, g, i.start);
18486
- const b = Gz(e, s, t, n, r, g);
18496
+ const b = G5(e, s, t, n, r, g);
18487
18497
  o.push(b.node), ir(t, Vt(e[b.next - 1])), s = b.next;
18488
18498
  continue;
18489
18499
  }
18490
18500
  if (Ua(i.text) >= 4) {
18491
- const p = Hz(e, s, t);
18501
+ const p = H5(e, s, t);
18492
18502
  o.push(p.node), s = p.next;
18493
18503
  continue;
18494
18504
  }
18495
- const f = Zz(e, s, t, r);
18505
+ const f = Z5(e, s, t, r);
18496
18506
  o.push(f.node), s = f.next;
18497
18507
  }
18498
18508
  return o;
@@ -18500,7 +18510,7 @@ function Zd(e, t, n, r) {
18500
18510
  function ml(e) {
18501
18511
  return Ha.test(e) || kE.test(e) || CE.test(e) || Xg.test(e) || pi.test(e) || hi.test(e) || Zg.test(e);
18502
18512
  }
18503
- function Bz(e, t, n) {
18513
+ function B5(e, t, n) {
18504
18514
  const r = e[t], o = Ha.exec(r.text);
18505
18515
  if (!o || o[2][0] === "`" && o[3].includes("`")) return null;
18506
18516
  const s = o[1].length, i = r.start + s;
@@ -18532,7 +18542,7 @@ function Bz(e, t, n) {
18532
18542
  `);
18533
18543
  return { node: { kind: "code", language: l, code: m, open: h }, next: p };
18534
18544
  }
18535
- function Hz(e, t, n) {
18545
+ function H5(e, t, n) {
18536
18546
  const r = [];
18537
18547
  let o = t;
18538
18548
  for (; o < e.length && (uo(e[o]) || Ua(e[o].text) >= 4); )
@@ -18548,7 +18558,7 @@ function Hz(e, t, n) {
18548
18558
  ), qr(n, i), ir(n, i), { node: { kind: "code", language: null, code: r.map((l) => ja(l, 4).text).join(`
18549
18559
  `), open: !1 }, next: o };
18550
18560
  }
18551
- function Uz(e, t, n) {
18561
+ function U5(e, t, n) {
18552
18562
  const r = kE.exec(e.text);
18553
18563
  if (!r) return null;
18554
18564
  const o = r[2].length, s = e.start + r[1].length;
@@ -18567,10 +18577,10 @@ function Uz(e, t, n) {
18567
18577
  return ir(t, Vt(e)), { kind: "heading", level: o, id: NE(t, d), children: d };
18568
18578
  }
18569
18579
  function NE(e, t) {
18570
- const n = _z(Xd(t)) || "section", r = e.ids.get(n) ?? 0;
18580
+ const n = _5(Xd(t)) || "section", r = e.ids.get(n) ?? 0;
18571
18581
  return e.ids.set(n, r + 1), r === 0 ? n : `${n}-${r}`;
18572
18582
  }
18573
- function jz(e, t, n, r) {
18583
+ function j5(e, t, n, r) {
18574
18584
  const o = [];
18575
18585
  let s = t;
18576
18586
  for (; s < e.length; ) {
@@ -18584,7 +18594,7 @@ function jz(e, t, n, r) {
18584
18594
  }
18585
18595
  return { node: { kind: "quote", children: Zd(o, n, r + 1, "quote") }, next: s };
18586
18596
  }
18587
- function Gz(e, t, n, r, o, s) {
18597
+ function G5(e, t, n, r, o, s) {
18588
18598
  const i = hi.exec(e[t].text), a = pi.exec(e[t].text), l = !a && !!i, c = l ? i[3] : a[2], d = l ? Number(i[2]) : 1, f = [];
18589
18599
  let p = !1, h = t;
18590
18600
  for (; h < e.length; ) {
@@ -18621,14 +18631,14 @@ function Gz(e, t, n, r, o, s) {
18621
18631
  T && (l ? T[3] : T[2]) === c && (p = !0);
18622
18632
  }
18623
18633
  let A = null;
18624
- const D = Oz.exec(N[0].text);
18634
+ const D = O5.exec(N[0].text);
18625
18635
  D && (A = D[1] !== " ", y.checked = A, on(n, N[0].start, N[0].start + 3, "marker"), N[0] = { text: N[0].text.slice(D[0].length), start: N[0].start + D[0].length }), f.push({ checked: A, children: Zd(N, n, r + 1, o) });
18626
18636
  const P = N[N.length - 1];
18627
18637
  ir(n, P.start + P.text.length);
18628
18638
  }
18629
18639
  return s && (s.tight = !p), { node: { kind: "list", ordered: l, start: d, tight: !p, items: f }, next: h };
18630
18640
  }
18631
- function Wz(e, t, n, r) {
18641
+ function W5(e, t, n, r) {
18632
18642
  const o = e[t], s = Zg.exec(o.text);
18633
18643
  if (!s) return null;
18634
18644
  const i = o.start + s[1].length;
@@ -18653,7 +18663,7 @@ function Wz(e, t, n, r) {
18653
18663
  }
18654
18664
  return n.footnotes.push({ label: s[3], children: Zd(a, n, r + 1, "text") }), { next: l };
18655
18665
  }
18656
- function qz(e, t, n) {
18666
+ function q5(e, t, n) {
18657
18667
  const r = e.start + t[1].length;
18658
18668
  on(n, r, r + t[2].length, "marker");
18659
18669
  const o = t.indices?.[4];
@@ -18664,7 +18674,7 @@ function qz(e, t, n) {
18664
18674
  function RE(e, t) {
18665
18675
  if (t + 1 >= e.length) return !1;
18666
18676
  const n = e[t], r = e[t + 1];
18667
- return !n.text.includes("|") || !r.text.includes("-") || !Az.test(r.text) ? !1 : Ra(n).cells.length === Ra(r).cells.length;
18677
+ return !n.text.includes("|") || !r.text.includes("-") || !A5.test(r.text) ? !1 : Ra(n).cells.length === Ra(r).cells.length;
18668
18678
  }
18669
18679
  function Ra(e) {
18670
18680
  const t = [], n = [], r = e.text;
@@ -18682,14 +18692,14 @@ function Lw(e) {
18682
18692
  const t = /^[ \t]*/.exec(e.text)[0].length;
18683
18693
  return { text: e.text.slice(t).replace(/[ \t]+$/, ""), start: e.start + t };
18684
18694
  }
18685
- function Kz(e, t, n) {
18695
+ function K5(e, t, n) {
18686
18696
  let r = t + 1;
18687
18697
  for (; r + 1 < e.length; ) {
18688
18698
  const d = e[r + 1];
18689
18699
  if (uo(d) || !d.text.includes("|") || ml(d.text)) break;
18690
18700
  r++;
18691
18701
  }
18692
- const s = Ra(e[t + 1]).cells.map(Xz), i = Ra(e[t]);
18702
+ const s = Ra(e[t + 1]).cells.map(X5), i = Ra(e[t]);
18693
18703
  for (const d of i.pipes) on(n, d.start, d.end, "punctuation");
18694
18704
  const a = Fw(n, e[t], i.cells, !0, s, wp(n, Vt(e[t])));
18695
18705
  on(n, e[t + 1].start, Vt(e[t + 1]), "marker");
@@ -18719,26 +18729,26 @@ function Fw(e, t, n, r, o, s) {
18719
18729
  };
18720
18730
  for (let c = 0; c < n.length; c++) {
18721
18731
  const d = n[c];
18722
- l(d.start), i.push(Yz(d, e, r, o[c] ?? null)), a = d.start + d.text.length;
18732
+ l(d.start), i.push(Y5(d, e, r, o[c] ?? null)), a = d.start + d.text.length;
18723
18733
  }
18724
18734
  return l(s), qr(e, s), i;
18725
18735
  }
18726
- function Yz(e, t, n, r) {
18736
+ function Y5(e, t, n, r) {
18727
18737
  Jt(t, { kind: "tableCell", header: n, align: r }, e.start);
18728
18738
  const o = Qg(t, [e], xE(e), "text");
18729
18739
  return qr(t, e.start + e.text.length), { children: o };
18730
18740
  }
18731
- function Xz(e) {
18741
+ function X5(e) {
18732
18742
  const t = e.text.trim(), n = t.startsWith(":"), r = t.endsWith(":");
18733
18743
  return n && r ? "center" : r ? "right" : n ? "left" : null;
18734
18744
  }
18735
- function Zz(e, t, n, r) {
18745
+ function Z5(e, t, n, r) {
18736
18746
  const o = [e[t]];
18737
18747
  let s = t + 1;
18738
18748
  for (; s < e.length; ) {
18739
18749
  const a = e[s];
18740
18750
  if (uo(a)) break;
18741
- const l = Pz.exec(a.text);
18751
+ const l = P5.exec(a.text);
18742
18752
  if (l) {
18743
18753
  on(n, a.start, Vt(a), "marker");
18744
18754
  const c = l[1][0] === "=" ? 1 : 2;
@@ -18751,7 +18761,7 @@ function Zz(e, t, n, r) {
18751
18761
  }
18752
18762
  Jt(n, { kind: "paragraph" }, e[t].start);
18753
18763
  const i = { kind: "paragraph", children: Vw(o, n, r) };
18754
- return ir(n, Lz(e, t, s - 1).end), { node: i, next: s };
18764
+ return ir(n, L5(e, t, s - 1).end), { node: i, next: s };
18755
18765
  }
18756
18766
  function Vw(e, t, n) {
18757
18767
  return Qg(t, e, vE(e), n);
@@ -18797,10 +18807,10 @@ function Jd(e) {
18797
18807
  if (e)
18798
18808
  return Eu.get(e.trim().toLowerCase());
18799
18809
  }
18800
- function Jz(e) {
18810
+ function J5(e) {
18801
18811
  return Jd(e)?.name ?? null;
18802
18812
  }
18803
- function Qz() {
18813
+ function Q5() {
18804
18814
  return [...new Set([...Eu.values()].map((e) => e.name))].sort();
18805
18815
  }
18806
18816
  const Fh = Zn({
@@ -18826,10 +18836,10 @@ const Fh = Zn({
18826
18836
  },
18827
18837
  close() {
18828
18838
  }
18829
- }), e5(e, n);
18839
+ }), ez(e, n);
18830
18840
  }
18831
18841
  });
18832
- function e5(e, t) {
18842
+ function ez(e, t) {
18833
18843
  t.sort((s, i) => s.start - i.start || s.end - i.end);
18834
18844
  const n = [];
18835
18845
  let r = 0;
@@ -18931,13 +18941,13 @@ const tb = /* @__PURE__ */ k.forwardRef(function(t, n) {
18931
18941
  process.env.NODE_ENV !== "production" && (tb.displayName = "DialogDescription");
18932
18942
  const nb = /* @__PURE__ */ k.createContext(void 0);
18933
18943
  process.env.NODE_ENV !== "production" && (nb.displayName = "DialogPortalContext");
18934
- function t5() {
18944
+ function tz() {
18935
18945
  const e = k.useContext(nb);
18936
18946
  if (e === void 0)
18937
18947
  throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Portal> is missing." : rt(26));
18938
18948
  return e;
18939
18949
  }
18940
- const n5 = {
18950
+ const nz = {
18941
18951
  ...Bs,
18942
18952
  ...In,
18943
18953
  nestedDialogOpen(e) {
@@ -18954,7 +18964,7 @@ const n5 = {
18954
18964
  initialFocus: a,
18955
18965
  ...l
18956
18966
  } = t, c = os(), d = c.useState("descriptionElementId"), f = c.useState("disablePointerDismissal"), p = c.useState("floatingRootContext"), h = c.useState("popupProps"), m = c.useState("modal"), g = c.useState("mounted"), b = c.useState("nested"), x = c.useState("nestedOpenDialogCount"), v = c.useState("open"), y = c.useState("openMethod"), w = c.useState("titleElementId"), C = c.useState("transitionStatus"), S = c.useState("role"), R = p.useState("floatingId");
18957
- t5(), an({
18967
+ tz(), an({
18958
18968
  open: v,
18959
18969
  ref: c.context.popupRef,
18960
18970
  onComplete() {
@@ -18983,7 +18993,7 @@ const n5 = {
18983
18993
  }
18984
18994
  }, l],
18985
18995
  ref: [n, c.context.popupRef, I],
18986
- stateAttributesMapping: n5
18996
+ stateAttributesMapping: nz
18987
18997
  });
18988
18998
  return /* @__PURE__ */ u(cl, {
18989
18999
  context: p,
@@ -19016,7 +19026,7 @@ const xl = /* @__PURE__ */ k.forwardRef(function(t, n) {
19016
19026
  }) : null;
19017
19027
  });
19018
19028
  process.env.NODE_ENV !== "production" && (xl.displayName = "DialogPortal");
19019
- function r5({
19029
+ function rz({
19020
19030
  store: e,
19021
19031
  parentContext: t,
19022
19032
  isDrawer: n
@@ -19066,7 +19076,7 @@ function r5({
19066
19076
  nestedOpenDrawerCount: d
19067
19077
  }), null;
19068
19078
  }
19069
- const o5 = {
19079
+ const oz = {
19070
19080
  ...$d,
19071
19081
  modal: (e) => e.modal,
19072
19082
  nested: (e) => e.nested,
@@ -19079,10 +19089,10 @@ const o5 = {
19079
19089
  viewportElement: (e) => e.viewportElement,
19080
19090
  role: (e) => e.role
19081
19091
  };
19082
- class s5 extends Vs {
19092
+ class sz extends Vs {
19083
19093
  constructor(t, n, r) {
19084
- const o = new Li(), s = i5(t, o, n, r);
19085
- super(s, a5(o), o5);
19094
+ const o = new Li(), s = iz(t, o, n, r);
19095
+ super(s, az(o), oz);
19086
19096
  }
19087
19097
  setOpen = (t, n) => {
19088
19098
  if (n.preventUnmountOnClose = () => {
@@ -19096,7 +19106,7 @@ class s5 extends Vs {
19096
19106
  Td(r, t, n.trigger), this.update(r);
19097
19107
  };
19098
19108
  }
19099
- function i5(e, t, n, r = !1) {
19109
+ function iz(e, t, n, r = !1) {
19100
19110
  const o = {
19101
19111
  ..._d(),
19102
19112
  modal: !0,
@@ -19113,7 +19123,7 @@ function i5(e, t, n, r = !1) {
19113
19123
  };
19114
19124
  return o.floatingRootContext = wg(t, n, r), o;
19115
19125
  }
19116
- function a5(e) {
19126
+ function az(e) {
19117
19127
  return {
19118
19128
  popupRef: /* @__PURE__ */ k.createRef(),
19119
19129
  backdropRef: /* @__PURE__ */ k.createRef(),
@@ -19144,7 +19154,7 @@ function ME(e, t) {
19144
19154
  disablePointerDismissal: b,
19145
19155
  nested: y,
19146
19156
  role: x
19147
- }, C = xg((A, D) => new s5({
19157
+ }, C = xg((A, D) => new sz({
19148
19158
  open: o,
19149
19159
  openProp: r,
19150
19160
  activeTriggerId: p,
@@ -19167,7 +19177,7 @@ function ME(e, t) {
19167
19177
  children: [d && /* @__PURE__ */ u(Md, {
19168
19178
  handle: d,
19169
19179
  store: C
19170
- }), I && /* @__PURE__ */ u(r5, {
19180
+ }), I && /* @__PURE__ */ u(rz, {
19171
19181
  store: C,
19172
19182
  parentContext: v?.context,
19173
19183
  isDrawer: h
@@ -19240,10 +19250,10 @@ const Qd = /* @__PURE__ */ k.forwardRef(function(t, n) {
19240
19250
  });
19241
19251
  });
19242
19252
  process.env.NODE_ENV !== "production" && (Qd.displayName = "DialogTrigger");
19243
- function l5(e) {
19253
+ function lz(e) {
19244
19254
  return ME("alert-dialog", e);
19245
19255
  }
19246
- const c5 = Qd;
19256
+ const cz = Qd;
19247
19257
  function TE(e) {
19248
19258
  const t = xe(null), n = xe(!1);
19249
19259
  return Qt(() => {
@@ -19426,12 +19436,12 @@ function ss({
19426
19436
  if (f === "")
19427
19437
  throw new Error("AlertDialog: confirmText must be a non-empty string (an empty phrase would make type-to-confirm a no-op).");
19428
19438
  const m = OE({ size: "sm" }), g = TE(t), b = PE(t, n);
19429
- return /* @__PURE__ */ M(l5, { open: t, onOpenChange: b, children: [
19430
- e && /* @__PURE__ */ u(c5, { render: e }),
19439
+ return /* @__PURE__ */ M(lz, { open: t, onOpenChange: b, children: [
19440
+ e && /* @__PURE__ */ u(cz, { render: e }),
19431
19441
  /* @__PURE__ */ M(xl, { children: [
19432
19442
  /* @__PURE__ */ u(gl, { className: m.backdrop() }),
19433
19443
  /* @__PURE__ */ u(vl, { ref: h, className: H(m.popup(), p), finalFocus: g, children: /* @__PURE__ */ u(
19434
- f5,
19444
+ fz,
19435
19445
  {
19436
19446
  s: m,
19437
19447
  title: r,
@@ -19448,11 +19458,11 @@ function ss({
19448
19458
  ] })
19449
19459
  ] });
19450
19460
  }
19451
- const u5 = (e) => /* @__PURE__ */ u("strong", { className: "font-mono font-semibold text-primary", children: e });
19452
- function d5({ phrase: e }) {
19453
- return /* @__PURE__ */ u(We, { children: he().dialog.typeToConfirm(e, u5) });
19461
+ const uz = (e) => /* @__PURE__ */ u("strong", { className: "font-mono font-semibold text-primary", children: e });
19462
+ function dz({ phrase: e }) {
19463
+ return /* @__PURE__ */ u(We, { children: he().dialog.typeToConfirm(e, uz) });
19454
19464
  }
19455
- function f5({
19465
+ function fz({
19456
19466
  s: e,
19457
19467
  title: t,
19458
19468
  description: n,
@@ -19476,7 +19486,7 @@ function f5({
19476
19486
  vt,
19477
19487
  {
19478
19488
  className: "mt-4",
19479
- label: /* @__PURE__ */ u(d5, { phrase: c }),
19489
+ label: /* @__PURE__ */ u(dz, { phrase: c }),
19480
19490
  children: /* @__PURE__ */ u(
19481
19491
  Dt,
19482
19492
  {
@@ -19513,9 +19523,9 @@ function AE({ title: e, children: t }) {
19513
19523
  return e ? /* @__PURE__ */ u(Gt, { content: e, children: t }) : t;
19514
19524
  }
19515
19525
  function wl({ nodes: e, renderCode: t }) {
19516
- return e.map((n, r) => /* @__PURE__ */ u(h5, { node: n, renderCode: t }, r));
19526
+ return e.map((n, r) => /* @__PURE__ */ u(hz, { node: n, renderCode: t }, r));
19517
19527
  }
19518
- const p5 = {
19528
+ const pz = {
19519
19529
  1: "text-xl",
19520
19530
  2: "text-lg",
19521
19531
  3: "text-base",
@@ -19523,7 +19533,7 @@ const p5 = {
19523
19533
  5: "text-sm",
19524
19534
  6: "text-xs uppercase tracking-wide text-secondary"
19525
19535
  };
19526
- function h5({ node: e, renderCode: t }) {
19536
+ function hz({ node: e, renderCode: t }) {
19527
19537
  switch (e.kind) {
19528
19538
  case "heading": {
19529
19539
  const n = `h${e.level}`;
@@ -19533,7 +19543,7 @@ function h5({ node: e, renderCode: t }) {
19533
19543
  id: e.id,
19534
19544
  className: H(
19535
19545
  "mt-4 mb-1 scroll-mt-4 font-display font-semibold text-primary first:mt-0",
19536
- p5[e.level]
19546
+ pz[e.level]
19537
19547
  ),
19538
19548
  children: /* @__PURE__ */ u(Fr, { nodes: e.children })
19539
19549
  }
@@ -19553,14 +19563,14 @@ function h5({ node: e, renderCode: t }) {
19553
19563
  case "rule":
19554
19564
  return /* @__PURE__ */ u("hr", { className: "my-3 border-0 border-t border-border-subtle" });
19555
19565
  case "list":
19556
- return /* @__PURE__ */ u(m5, { node: e, renderCode: t });
19566
+ return /* @__PURE__ */ u(mz, { node: e, renderCode: t });
19557
19567
  case "table":
19558
- return /* @__PURE__ */ u(b5, { node: e });
19568
+ return /* @__PURE__ */ u(bz, { node: e });
19559
19569
  case "footnotes":
19560
- return /* @__PURE__ */ u(v5, { node: e, renderCode: t });
19570
+ return /* @__PURE__ */ u(vz, { node: e, renderCode: t });
19561
19571
  }
19562
19572
  }
19563
- function m5({
19573
+ function mz({
19564
19574
  node: e,
19565
19575
  renderCode: t
19566
19576
  }) {
@@ -19576,11 +19586,11 @@ function m5({
19576
19586
  two bullets, one of which does nothing. */
19577
19587
  r ? "list-none pl-1" : e.ordered ? "list-decimal" : "list-disc"
19578
19588
  ),
19579
- children: e.items.map((o, s) => /* @__PURE__ */ u(g5, { item: o, tight: e.tight, renderCode: t }, s))
19589
+ children: e.items.map((o, s) => /* @__PURE__ */ u(gz, { item: o, tight: e.tight, renderCode: t }, s))
19580
19590
  }
19581
19591
  );
19582
19592
  }
19583
- function g5({
19593
+ function gz({
19584
19594
  item: e,
19585
19595
  tight: t,
19586
19596
  renderCode: n
@@ -19606,7 +19616,7 @@ const Bw = {
19606
19616
  center: "text-center",
19607
19617
  right: "text-right"
19608
19618
  };
19609
- function b5({ node: e }) {
19619
+ function bz({ node: e }) {
19610
19620
  const t = he().markdownRender;
19611
19621
  return (
19612
19622
  /* Focusable because it scrolls sideways. A region that can only be panned
@@ -19648,7 +19658,7 @@ function b5({ node: e }) {
19648
19658
  )
19649
19659
  );
19650
19660
  }
19651
- function v5({
19661
+ function vz({
19652
19662
  node: e,
19653
19663
  renderCode: t
19654
19664
  }) {
@@ -19659,16 +19669,16 @@ function v5({
19659
19669
  /* @__PURE__ */ u("a", { href: `#${_E(r.label)}`, "aria-label": n.backToReference, className: "text-accent-text", children: "↩" })
19660
19670
  ] }, r.label)) }) });
19661
19671
  }
19662
- const DE = (e) => `fn-${e}`, _E = (e) => `fnref-${e}`, x5 = "rounded-[4px] border border-border-subtle bg-surface-inset px-1 py-px font-mono text-[0.88em] text-primary", Hw = "text-accent-text underline decoration-accent-border underline-offset-2 transition-colors duration-(--dur-fast) hover:decoration-accent";
19672
+ const DE = (e) => `fn-${e}`, _E = (e) => `fnref-${e}`, xz = "rounded-[4px] border border-border-subtle bg-surface-inset px-1 py-px font-mono text-[0.88em] text-primary", Hw = "text-accent-text underline decoration-accent-border underline-offset-2 transition-colors duration-(--dur-fast) hover:decoration-accent";
19663
19673
  function Fr({ nodes: e }) {
19664
- return e.map((t, n) => /* @__PURE__ */ u(y5, { node: t }, n));
19674
+ return e.map((t, n) => /* @__PURE__ */ u(yz, { node: t }, n));
19665
19675
  }
19666
- function y5({ node: e }) {
19676
+ function yz({ node: e }) {
19667
19677
  switch (e.kind) {
19668
19678
  case "text":
19669
19679
  return /* @__PURE__ */ u(We, { children: e.value });
19670
19680
  case "code":
19671
- return /* @__PURE__ */ u("code", { className: x5, children: e.value });
19681
+ return /* @__PURE__ */ u("code", { className: xz, children: e.value });
19672
19682
  case "emphasis":
19673
19683
  return /* @__PURE__ */ u("em", { children: /* @__PURE__ */ u(Fr, { nodes: e.children }) });
19674
19684
  case "strong":
@@ -19681,7 +19691,7 @@ function y5({ node: e }) {
19681
19691
  return /* @__PURE__ */ u("sup", { id: _E(e.label), children: /* @__PURE__ */ u("a", { href: `#${DE(e.label)}`, className: Hw, children: e.label }) });
19682
19692
  case "image": {
19683
19693
  const t = Nu(e.src);
19684
- return t ? /* @__PURE__ */ u(w5, { src: t, alt: e.alt, title: e.title }) : /* @__PURE__ */ u("span", { className: "text-tertiary italic", children: e.alt });
19694
+ return t ? /* @__PURE__ */ u(wz, { src: t, alt: e.alt, title: e.title }) : /* @__PURE__ */ u("span", { className: "text-tertiary italic", children: e.alt });
19685
19695
  }
19686
19696
  case "link": {
19687
19697
  const t = Nu(e.href);
@@ -19701,7 +19711,7 @@ function y5({ node: e }) {
19701
19711
  }
19702
19712
  }
19703
19713
  }
19704
- function w5({ src: e, alt: t, title: n }) {
19714
+ function wz({ src: e, alt: t, title: n }) {
19705
19715
  const r = he().markdownRender, [o, s] = ne(!1);
19706
19716
  return /* @__PURE__ */ M(We, { children: [
19707
19717
  /* @__PURE__ */ u(AE, { title: n, children: /* @__PURE__ */ u(
@@ -19722,7 +19732,7 @@ function Nu(e) {
19722
19732
  const n = e.trim().replace(/[\u0000-\u0020]/g, "");
19723
19733
  return /^[a-z][a-z0-9+.-]*:/i.test(n) ? /^(https?|mailto|tel|ftp):/i.test(n) ? n : null : n;
19724
19734
  }
19725
- const ks = { "(": ")", "[": "]", "{": "}" }, Vh = /* @__PURE__ */ new Set(['"', "'", "`"]), k5 = /* @__PURE__ */ new Set([")", "]", "}"]), Uw = /[\p{L}\p{N}_$]/u;
19735
+ const ks = { "(": ")", "[": "]", "{": "}" }, Vh = /* @__PURE__ */ new Set(['"', "'", "`"]), kz = /* @__PURE__ */ new Set([")", "]", "}"]), Uw = /[\p{L}\p{N}_$]/u;
19726
19736
  function Ci(e, t, n, r, o) {
19727
19737
  e.focus(), e.setSelectionRange(t, n);
19728
19738
  let s = !1;
@@ -19741,23 +19751,23 @@ function $E(e, t) {
19741
19751
  return e.lastIndexOf(`
19742
19752
  `, t - 1) + 1;
19743
19753
  }
19744
- function C5(e, t) {
19754
+ function Cz(e, t) {
19745
19755
  const n = e.indexOf(`
19746
19756
  `, t);
19747
19757
  return n < 0 ? e.length : n;
19748
19758
  }
19749
- function S5(e, t) {
19759
+ function Sz(e, t) {
19750
19760
  const n = $E(e, t);
19751
19761
  return /^[ \t]*/.exec(e.slice(n, t))?.[0] ?? "";
19752
19762
  }
19753
- function E5(e, t, n) {
19763
+ function Ez(e, t, n) {
19754
19764
  const r = e.value, { selectionStart: o, selectionEnd: s } = e;
19755
19765
  if (!r.slice(o, s).includes(`
19756
19766
  `) && !n) {
19757
19767
  Ci(e, o, s, t, [o + t.length, o + t.length]);
19758
19768
  return;
19759
19769
  }
19760
- const a = $E(r, o), l = C5(r, s), c = r.slice(a, l).split(`
19770
+ const a = $E(r, o), l = Cz(r, s), c = r.slice(a, l).split(`
19761
19771
  `);
19762
19772
  let d = 0, f = 0;
19763
19773
  const p = c.map((h, m) => {
@@ -19775,21 +19785,21 @@ function E5(e, t, n) {
19775
19785
  Math.max(a, s + f)
19776
19786
  ]);
19777
19787
  }
19778
- function N5(e, t) {
19779
- const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = S5(n, r), i = r > 0 ? n[r - 1] : "", a = o < n.length ? n[o] : "", l = i in ks, c = l ? `
19788
+ function Nz(e, t) {
19789
+ const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = Sz(n, r), i = r > 0 ? n[r - 1] : "", a = o < n.length ? n[o] : "", l = i in ks, c = l ? `
19780
19790
  ${s}${t}` : `
19781
19791
  ${s}`, d = l && ks[i] === a ? `
19782
19792
  ${s}` : "", f = r + c.length;
19783
19793
  Ci(e, r, o, c + d, [f, f]);
19784
19794
  }
19785
- function R5(e, t) {
19795
+ function Rz(e, t) {
19786
19796
  const n = e.value, { selectionStart: r, selectionEnd: o } = e, s = t in ks, i = Vh.has(t);
19787
19797
  if (r !== o && (s || i)) {
19788
19798
  const c = i ? t : ks[t];
19789
19799
  return Ci(e, r, o, t + n.slice(r, o) + c, [r + 1, o + 1]), !0;
19790
19800
  }
19791
19801
  const a = o < n.length ? n[o] : "";
19792
- if ((k5.has(t) || i) && a === t)
19802
+ if ((kz.has(t) || i) && a === t)
19793
19803
  return e.setSelectionRange(o + 1, o + 1), !0;
19794
19804
  if (!s && !i || a && Uw.test(a)) return !1;
19795
19805
  if (i) {
@@ -19799,13 +19809,13 @@ function R5(e, t) {
19799
19809
  const l = i ? t : ks[t];
19800
19810
  return Ci(e, r, o, t + l, [r + 1, r + 1]), !0;
19801
19811
  }
19802
- function I5(e) {
19812
+ function Iz(e) {
19803
19813
  const { selectionStart: t, selectionEnd: n } = e;
19804
19814
  if (t !== n || t === 0) return !1;
19805
19815
  const r = e.value[t - 1], o = n < e.value.length ? e.value[n] : "", s = r in ks ? ks[r] : Vh.has(r) ? r : "";
19806
19816
  return !s || o !== s ? !1 : (Ci(e, t - 1, n + 1, "", [t - 1, t - 1]), !0);
19807
19817
  }
19808
- const LE = Rn(null), M5 = LE.Provider;
19818
+ const LE = Rn(null), Mz = LE.Provider;
19809
19819
  function kl(e) {
19810
19820
  const t = gn(LE);
19811
19821
  if (!t)
@@ -19815,11 +19825,11 @@ function kl(e) {
19815
19825
  function FE(e) {
19816
19826
  return e.trim().split(/\s+/).sort((t, n) => n.length - t.length).join("|");
19817
19827
  }
19818
- const T5 = FE(`
19828
+ const Tz = FE(`
19819
19829
  alias break case continue declare do done elif else esac eval exec exit export
19820
19830
  fi for function if in local readonly return select set shift source then time
19821
19831
  trap typeset unset until while
19822
- `), P5 = FE(`
19832
+ `), Pz = FE(`
19823
19833
  awk basename cat cd chmod chown cp curl cut date dirname docker echo env find
19824
19834
  git grep head jq kill ln ls make mkdir mv npm printf ps pwd read rm rmdir sed
19825
19835
  seq sleep sort ssh sudo tail tar tee test touch tr uname uniq wc wget which
@@ -19846,8 +19856,8 @@ function kp() {
19846
19856
  { match: /"/, token: "string", push: "dqString" },
19847
19857
  { match: /'/, token: "string", push: "sqString" },
19848
19858
  { match: /`/, token: "punctuation", push: "backtick" },
19849
- { match: new RegExp(`\\b(?:${T5})\\b`), token: "keyword" },
19850
- { match: new RegExp(`(?<![\\w./-])(?:${P5})(?![\\w./-])`), token: "function" },
19859
+ { match: new RegExp(`\\b(?:${Tz})\\b`), token: "keyword" },
19860
+ { match: new RegExp(`(?<![\\w./-])(?:${Pz})(?![\\w./-])`), token: "function" },
19851
19861
  /* Flags are named switches on a command — the same role an attribute plays
19852
19862
  on a tag, which is the closest honest category in the closed set. */
19853
19863
  { match: new RegExp("(?<=\\s)--?[A-Za-z][\\w-]*"), token: "attribute" },
@@ -19858,7 +19868,7 @@ function kp() {
19858
19868
  { match: /[(){}]/, token: "punctuation" }
19859
19869
  ];
19860
19870
  }
19861
- const O5 = Zn({
19871
+ const Oz = Zn({
19862
19872
  name: "bash",
19863
19873
  aliases: ["sh", "shell", "zsh", "ksh", "shellscript"],
19864
19874
  states: {
@@ -19884,7 +19894,7 @@ const O5 = Zn({
19884
19894
  ]
19885
19895
  }
19886
19896
  });
19887
- function A5() {
19897
+ function Az() {
19888
19898
  return [
19889
19899
  { match: /--[\w-]+/, token: "variable" },
19890
19900
  { match: /[$@][\w-]+/, token: "variable" },
@@ -19909,7 +19919,7 @@ function jw() {
19909
19919
  { match: /\/\/[^\n]*/, token: "comment" }
19910
19920
  ];
19911
19921
  }
19912
- const D5 = Zn({
19922
+ const Dz = Zn({
19913
19923
  name: "css",
19914
19924
  aliases: ["scss", "sass", "less", "postcss", "pcss"],
19915
19925
  states: {
@@ -19944,7 +19954,7 @@ const D5 = Zn({
19944
19954
  { match: /@[\w-]+(?=[\s({;])/, token: "atrule" },
19945
19955
  { match: /--[\w-]+(?=\s*:)/, token: "property" },
19946
19956
  { match: /-?[A-Za-z_][\w-]*(?=\s*:)/, token: "property" },
19947
- ...A5()
19957
+ ...Az()
19948
19958
  ],
19949
19959
  dqString: [
19950
19960
  { match: /\\[^]/, token: "escape" },
@@ -19964,14 +19974,14 @@ function Ru(e, t) {
19964
19974
  const n = new RegExp(`\\b${t}\\s*=\\s*("[^"]*"|'[^']*'|[^\\s>]+)`, "i").exec(e);
19965
19975
  return n ? n[1].replace(/^["']|["']$/g, "").trim() : null;
19966
19976
  }
19967
- function _5(e) {
19977
+ function _z(e) {
19968
19978
  const t = Ru(e, "lang")?.toLowerCase();
19969
19979
  if (t)
19970
19980
  return t === "ts" || t === "typescript" ? "typescript" : t === "tsx" ? "tsx" : t === "jsx" ? "jsx" : "javascript";
19971
19981
  const n = Ru(e, "type")?.toLowerCase() ?? "";
19972
19982
  return n.includes("typescript") ? "typescript" : n.includes("json") || n === "importmap" || n === "speculationrules" ? "json" : "javascript";
19973
19983
  }
19974
- function $5(e) {
19984
+ function $z(e) {
19975
19985
  const t = Ru(e, "lang")?.toLowerCase();
19976
19986
  return t === "scss" || t === "sass" ? "scss" : t === "less" ? "less" : "css";
19977
19987
  }
@@ -20008,20 +20018,20 @@ function zE(e, t) {
20008
20018
  {
20009
20019
  match: /(<script)(?=[\s/>])((?:"[^"]*"|'[^']*'|[^>"'])*)(>)/i,
20010
20020
  groups: ["tag", "attribute", "tag"],
20011
- embed: (n) => _5(n[2]),
20021
+ embed: (n) => _z(n[2]),
20012
20022
  until: e,
20013
20023
  untilToken: "tag"
20014
20024
  },
20015
20025
  {
20016
20026
  match: /(<style)(?=[\s/>])((?:"[^"]*"|'[^']*'|[^>"'])*)(>)/i,
20017
20027
  groups: ["tag", "attribute", "tag"],
20018
- embed: (n) => $5(n[2]),
20028
+ embed: (n) => $z(n[2]),
20019
20029
  until: t,
20020
20030
  untilToken: "tag"
20021
20031
  }
20022
20032
  ];
20023
20033
  }
20024
- const L5 = Zn({
20034
+ const Lz = Zn({
20025
20035
  name: "html",
20026
20036
  aliases: ["htm", "xml", "svg"],
20027
20037
  states: {
@@ -20049,11 +20059,11 @@ const Gw = ob(`
20049
20059
  do else export extends finally for from function get if import in instanceof
20050
20060
  let new of return set static super switch this throw try typeof var void
20051
20061
  while with yield
20052
- `), F5 = ob(`
20062
+ `), Fz = ob(`
20053
20063
  abstract accessor asserts declare enum global implements infer interface is
20054
20064
  keyof module namespace out override private protected public readonly require
20055
20065
  satisfies type unique
20056
- `), V5 = ob("any bigint boolean never number object string symbol unknown");
20066
+ `), Vz = ob("any bigint boolean never number object string symbol unknown");
20057
20067
  function Cl(e, t = []) {
20058
20068
  const n = [
20059
20069
  ...t,
@@ -20083,9 +20093,9 @@ function Cl(e, t = []) {
20083
20093
  happily end a keyword at `for$` and colour half an identifier. */
20084
20094
  { match: /\b(?:true|false)(?![\w$])/, token: "boolean" },
20085
20095
  { match: /\b(?:null|undefined)(?![\w$])/, token: "null" },
20086
- ...e.ts ? [{ match: new RegExp(`\\b(?:${V5})(?![\\w$])`), token: "type" }] : [],
20096
+ ...e.ts ? [{ match: new RegExp(`\\b(?:${Vz})(?![\\w$])`), token: "type" }] : [],
20087
20097
  {
20088
- match: new RegExp(`\\b(?:${e.ts ? `${Gw}|${F5}` : Gw})(?![\\w$])`),
20098
+ match: new RegExp(`\\b(?:${e.ts ? `${Gw}|${Fz}` : Gw})(?![\\w$])`),
20089
20099
  token: "keyword"
20090
20100
  },
20091
20101
  /* Decorators read as annotations, which is what `attribute` is for — the
@@ -20150,21 +20160,21 @@ function Cl(e, t = []) {
20150
20160
  { match: /\s+/, token: "text" }
20151
20161
  ]), s;
20152
20162
  }
20153
- const z5 = Zn({
20163
+ const zz = Zn({
20154
20164
  name: "javascript",
20155
20165
  aliases: ["js", "mjs", "cjs", "node"],
20156
20166
  states: Cl({ ts: !1, jsx: !1 })
20157
- }), B5 = Zn({
20167
+ }), Bz = Zn({
20158
20168
  name: "typescript",
20159
20169
  aliases: ["ts", "mts", "cts"],
20160
20170
  states: Cl({ ts: !0, jsx: !1 })
20161
- }), H5 = Zn({
20171
+ }), Hz = Zn({
20162
20172
  name: "jsx",
20163
20173
  states: Cl({ ts: !1, jsx: !0 })
20164
- }), U5 = Zn({
20174
+ }), Uz = Zn({
20165
20175
  name: "tsx",
20166
20176
  states: Cl({ ts: !0, jsx: !0 })
20167
- }), j5 = Zn({
20177
+ }), jz = Zn({
20168
20178
  name: "json",
20169
20179
  aliases: ["jsonc", "json5"],
20170
20180
  states: {
@@ -20203,7 +20213,7 @@ const z5 = Zn({
20203
20213
  { match: /\n/, token: "text", pop: !0 }
20204
20214
  ]
20205
20215
  }
20206
- }), G5 = Zn({
20216
+ }), Gz = Zn({
20207
20217
  name: "mongodb",
20208
20218
  aliases: ["mongo", "nosql"],
20209
20219
  states: Cl({ ts: !1, jsx: !1 }, [
@@ -20220,7 +20230,7 @@ const z5 = Zn({
20220
20230
  },
20221
20231
  { match: /\b(?:db|rs|sh|use)(?![\w$])/, token: "keyword" }
20222
20232
  ])
20223
- }), W5 = Zn({
20233
+ }), Wz = Zn({
20224
20234
  name: "plain",
20225
20235
  aliases: ["text", "txt", "plaintext", "none"],
20226
20236
  states: { root: [{ match: /[^]+/, token: "text" }] }
@@ -20240,17 +20250,17 @@ const Ww = ef(`
20240
20250
  revoke right rollback row rows savepoint schema select set show some table
20241
20251
  temporary then to transaction trigger truncate union unique unlock update
20242
20252
  usage use using vacuum values view when where while window with within
20243
- `), q5 = ef(`
20253
+ `), qz = ef(`
20244
20254
  array bigint binary bit blob bool boolean bytea char character clob date
20245
20255
  datetime decimal double float inet int int2 int4 int8 integer interval json
20246
20256
  jsonb longtext mediumint money numeric real serial smallint text time
20247
20257
  timestamp timestamptz tinyint uuid varbinary varchar xml year
20248
- `), K5 = ef(`
20258
+ `), Kz = ef(`
20249
20259
  auto_increment binlog change charset collation columns databases delayed
20250
20260
  describe engine fields fulltext high_priority keys kill low_priority modify
20251
20261
  optimize privileges processlist repair spatial straight_join tables unsigned
20252
20262
  variables warnings zerofill
20253
- `), Y5 = ef(`
20263
+ `), Yz = ef(`
20254
20264
  analyse concurrently conflict deferrable ilike immediate initially isnull
20255
20265
  materialized notnull nowait owned reindex reset returns similar tablespace
20256
20266
  unlogged variadic verbose
@@ -20276,7 +20286,7 @@ function sb(e) {
20276
20286
  { match: /\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?\b|\B\.\d+\b/, token: "number" },
20277
20287
  { match: /\bnull\b/i, token: "null" },
20278
20288
  { match: /\b(?:true|false)\b/i, token: "boolean" },
20279
- { match: new RegExp(`\\b(?:${q5})\\b`, "i"), token: "type" },
20289
+ { match: new RegExp(`\\b(?:${qz})\\b`, "i"), token: "type" },
20280
20290
  { match: new RegExp(`\\b(?:${t})\\b`, "i"), token: "keyword" },
20281
20291
  { match: /[A-Za-z_][\w$]*(?=\s*\()/, token: "function" },
20282
20292
  { match: new RegExp("(?<=\\.)[A-Za-z_][\\w$]*"), token: "property" },
@@ -20312,30 +20322,30 @@ function sb(e) {
20312
20322
  }
20313
20323
  });
20314
20324
  }
20315
- const X5 = sb({
20325
+ const Xz = sb({
20316
20326
  name: "sql",
20317
20327
  aliases: ["sqlite"],
20318
20328
  mysql: !1,
20319
20329
  postgres: !1,
20320
20330
  extra: ""
20321
- }), Z5 = sb({
20331
+ }), Zz = sb({
20322
20332
  name: "mysql",
20323
20333
  aliases: ["mariadb"],
20324
20334
  mysql: !0,
20325
20335
  postgres: !1,
20326
- extra: K5
20327
- }), J5 = sb({
20336
+ extra: Kz
20337
+ }), Jz = sb({
20328
20338
  name: "postgresql",
20329
20339
  aliases: ["postgres", "pgsql"],
20330
20340
  mysql: !1,
20331
20341
  postgres: !0,
20332
- extra: Y5
20342
+ extra: Yz
20333
20343
  });
20334
- function Q5(e) {
20344
+ function Qz(e) {
20335
20345
  const t = Ru(e, "lang")?.toLowerCase();
20336
20346
  return t && t !== "html" ? t : "html";
20337
20347
  }
20338
- const e4 = Zn({
20348
+ const e3 = Zn({
20339
20349
  name: "vue",
20340
20350
  states: {
20341
20351
  root: [
@@ -20344,7 +20354,7 @@ const e4 = Zn({
20344
20354
  {
20345
20355
  match: /(<template)(?=[\s/>])((?:"[^"]*"|'[^']*'|[^>"'])*)(>)/i,
20346
20356
  groups: ["tag", "attribute", "tag"],
20347
- embed: (e) => Q5(e[2]),
20357
+ embed: (e) => Qz(e[2]),
20348
20358
  until: /^<\/template\s*>/m,
20349
20359
  untilToken: "tag"
20350
20360
  },
@@ -20355,7 +20365,7 @@ const e4 = Zn({
20355
20365
  ],
20356
20366
  ...VE()
20357
20367
  }
20358
- }), t4 = Zn({
20368
+ }), t3 = Zn({
20359
20369
  name: "yaml",
20360
20370
  aliases: ["yml"],
20361
20371
  states: {
@@ -20404,43 +20414,43 @@ const e4 = Zn({
20404
20414
  { match: /\n/, token: "text", pop: !0 }
20405
20415
  ]
20406
20416
  }
20407
- }), n4 = [
20408
- W5,
20409
- j5,
20410
- t4,
20417
+ }), n3 = [
20418
+ Wz,
20419
+ jz,
20420
+ t3,
20411
20421
  Fh,
20412
- z5,
20413
- B5,
20414
- H5,
20415
- U5,
20416
- L5,
20417
- D5,
20418
- X5,
20419
- Z5,
20420
- J5,
20421
- G5,
20422
- O5,
20423
- e4
20424
- ], r4 = 12;
20425
- function o4(e, t) {
20422
+ zz,
20423
+ Bz,
20424
+ Hz,
20425
+ Uz,
20426
+ Lz,
20427
+ Dz,
20428
+ Xz,
20429
+ Zz,
20430
+ Jz,
20431
+ Gz,
20432
+ Oz,
20433
+ e3
20434
+ ], r3 = 12;
20435
+ function o3(e, t) {
20426
20436
  return ib(e, Jd(t), 0, 0);
20427
20437
  }
20428
20438
  function ib(e, t, n, r) {
20429
20439
  if (!e) return [];
20430
- if (!t || r > r4)
20440
+ if (!t || r > r3)
20431
20441
  return [{ start: n, end: n + e.length, type: "text", lang: t?.name ?? "text" }];
20432
20442
  if (t.tokenize) {
20433
20443
  const o = {
20434
20444
  sub: (s, i, a) => ib(s, Jd(i), a, r + 1)
20435
20445
  };
20436
- return s4(t.tokenize(e, o), n);
20446
+ return s3(t.tokenize(e, o), n);
20437
20447
  }
20438
- return i4(e, t, n, r);
20448
+ return i3(e, t, n, r);
20439
20449
  }
20440
- function s4(e, t) {
20450
+ function s3(e, t) {
20441
20451
  return t === 0 ? e : e.map((n) => ({ ...n, start: n.start + t, end: n.end + t }));
20442
20452
  }
20443
- function i4(e, t, n, r) {
20453
+ function i3(e, t, n, r) {
20444
20454
  const o = [], s = ["root"];
20445
20455
  let i = 0, a = 0;
20446
20456
  const l = () => {
@@ -20456,7 +20466,7 @@ function i4(e, t, n, r) {
20456
20466
  if (!(!m || m.index !== i)) {
20457
20467
  if (m[0].length === 0)
20458
20468
  throw new Error(`${t.name}.${c}[${p}] matched empty at ${i}`);
20459
- l(), l4(o, m, h, n, t.name), i += m[0].length, h.embed ? i = a4(e, m, h, o, t, n, r, i) : h.push ? s.push(h.push) : h.pop && s.length > 1 && s.pop(), a = i, f = !0;
20469
+ l(), l3(o, m, h, n, t.name), i += m[0].length, h.embed ? i = a3(e, m, h, o, t, n, r, i) : h.push ? s.push(h.push) : h.pop && s.length > 1 && s.pop(), a = i, f = !0;
20460
20470
  break;
20461
20471
  }
20462
20472
  }
@@ -20464,7 +20474,7 @@ function i4(e, t, n, r) {
20464
20474
  }
20465
20475
  return i = e.length, l(), o;
20466
20476
  }
20467
- function a4(e, t, n, r, o, s, i, a) {
20477
+ function a3(e, t, n, r, o, s, i, a) {
20468
20478
  const l = typeof n.embed == "function" ? n.embed(t) : n.embed, c = n.until, d = new RegExp(c.source, c.flags.replace("y", "") + "g");
20469
20479
  d.lastIndex = a;
20470
20480
  const f = d.exec(e), p = f ? f.index : e.length, h = e.slice(a, p);
@@ -20474,7 +20484,7 @@ function a4(e, t, n, r, o, s, i, a) {
20474
20484
  }
20475
20485
  return f ? (hs(r, s + f.index, s + f.index + f[0].length, n.untilToken ?? "punctuation", o.name), f.index + f[0].length) : e.length;
20476
20486
  }
20477
- function l4(e, t, n, r, o) {
20487
+ function l3(e, t, n, r, o) {
20478
20488
  const s = t.index, i = s + t[0].length;
20479
20489
  if (n.token) {
20480
20490
  hs(e, r + s, r + i, n.token, o);
@@ -20515,25 +20525,25 @@ let qw = !1;
20515
20525
  function tf() {
20516
20526
  if (!qw) {
20517
20527
  qw = !0;
20518
- for (const e of n4) IE(e);
20528
+ for (const e of n3) IE(e);
20519
20529
  }
20520
20530
  }
20521
20531
  function BE(e, t) {
20522
- return tf(), o4(e, t);
20532
+ return tf(), o3(e, t);
20523
20533
  }
20524
- function c4() {
20525
- return tf(), Qz();
20534
+ function c3() {
20535
+ return tf(), Q5();
20526
20536
  }
20527
20537
  function uee(e) {
20528
- return tf(), Jz(e);
20538
+ return tf(), J5(e);
20529
20539
  }
20530
20540
  function dee(e) {
20531
20541
  tf(), IE(e);
20532
20542
  }
20533
- function u4(e, t) {
20543
+ function u3(e, t) {
20534
20544
  return Oe(() => BE(e, t), [e, t]);
20535
20545
  }
20536
- const d4 = fd(function({
20546
+ const d3 = fd(function({
20537
20547
  source: t,
20538
20548
  tokens: n
20539
20549
  }) {
@@ -20542,7 +20552,7 @@ const d4 = fd(function({
20542
20552
  `
20543
20553
  `
20544
20554
  ] });
20545
- }), f4 = fd(function({
20555
+ }), f3 = fd(function({
20546
20556
  count: t,
20547
20557
  from: n
20548
20558
  }) {
@@ -20618,7 +20628,7 @@ const d4 = fd(function({
20618
20628
  }
20619
20629
  }), ab = /* @__PURE__ */ k.createContext(void 0);
20620
20630
  process.env.NODE_ENV !== "production" && (ab.displayName = "ToggleGroupContext");
20621
- function p4() {
20631
+ function p3() {
20622
20632
  return k.useContext(ab);
20623
20633
  }
20624
20634
  const lb = /* @__PURE__ */ k.createContext({
@@ -20633,7 +20643,7 @@ const lb = /* @__PURE__ */ k.createContext({
20633
20643
  }
20634
20644
  });
20635
20645
  process.env.NODE_ENV !== "production" && (lb.displayName = "CompositeListContext");
20636
- function h4() {
20646
+ function h3() {
20637
20647
  return k.useContext(lb);
20638
20648
  }
20639
20649
  function Rr(e = {}) {
@@ -20648,7 +20658,7 @@ function Rr(e = {}) {
20648
20658
  unregister: a,
20649
20659
  subscribeMapChange: l,
20650
20660
  nextIndexRef: c
20651
- } = h4(), d = k.useRef(-1), [f, p] = k.useState(s == null && t ? () => {
20661
+ } = h3(), d = k.useRef(-1), [f, p] = k.useState(s == null && t ? () => {
20652
20662
  if (d.current === -1) {
20653
20663
  const b = c.current;
20654
20664
  c.current += 1, d.current = b;
@@ -20743,7 +20753,7 @@ const UE = /* @__PURE__ */ k.forwardRef(function(t, n) {
20743
20753
  nativeButton: p = !0,
20744
20754
  style: h,
20745
20755
  ...m
20746
- } = t, g = Nt(f || void 0), b = p4(), x = b?.value ?? [], v = b ? void 0 : o, y = (s || b?.disabled) ?? !1;
20756
+ } = t, g = Nt(f || void 0), b = p3(), x = b?.value ?? [], v = b ? void 0 : o, y = (s || b?.disabled) ?? !1;
20747
20757
  process.env.NODE_ENV !== "production" && k.useEffect(() => {
20748
20758
  b && f === void 0 && b.isValueInitialized && Os("A `<Toggle>` component rendered in a `<ToggleGroup>` has no explicit `value` prop.", "This will cause issues between the Toggle Group and Toggle values.", "Provide the `<Toggle>` with a `value` prop matching the `<ToggleGroup>` values prop type.");
20749
20759
  }, [b, f, b?.isValueInitialized]);
@@ -20794,7 +20804,7 @@ function xo(e) {
20794
20804
  elementsRef: n,
20795
20805
  labelsRef: r,
20796
20806
  onMapChange: o
20797
- } = e, s = Ce(o), [, i] = k.useState(!1), a = jt(g4).current, l = jt(m4).current, c = k.useRef(0), d = k.useRef(!0), f = k.useRef([]), p = k.useRef(null), h = Ce(() => {
20807
+ } = e, s = Ce(o), [, i] = k.useState(!1), a = jt(g3).current, l = jt(m3).current, c = k.useRef(0), d = k.useRef(!0), f = k.useRef([]), p = k.useRef(null), h = Ce(() => {
20798
20808
  d.current || (d.current = !0, i((C) => !C));
20799
20809
  }), m = Ce((C, S) => {
20800
20810
  l.set(C, S), h();
@@ -20813,7 +20823,7 @@ function xo(e) {
20813
20823
  if (p.current?.disconnect(), p.current = null, typeof MutationObserver != "function" || C.length < 2)
20814
20824
  return;
20815
20825
  const S = new MutationObserver((E) => {
20816
- if (!x4(E))
20826
+ if (!x3(E))
20817
20827
  return;
20818
20828
  let N = null;
20819
20829
  for (const I of C)
@@ -20828,7 +20838,7 @@ function xo(e) {
20828
20838
  p.current = S;
20829
20839
  const R = /* @__PURE__ */ new Set();
20830
20840
  for (let E = 1; E < C.length; E += 1) {
20831
- const N = v4(C[E - 1], C[E]);
20841
+ const N = v3(C[E - 1], C[E]);
20832
20842
  N && R.add(N);
20833
20843
  }
20834
20844
  R.forEach((E) => S.observe(E, {
@@ -20836,7 +20846,7 @@ function xo(e) {
20836
20846
  }));
20837
20847
  }
20838
20848
  const v = Ce(() => {
20839
- const [C, S] = b4(l), R = b(C);
20849
+ const [C, S] = b3(l), R = b(C);
20840
20850
  x(S), f.current = C, d.current = !1, a.forEach((E) => E(R)), s(R);
20841
20851
  });
20842
20852
  Ee(() => (d.current || b(f.current), () => {
@@ -20859,13 +20869,13 @@ function xo(e) {
20859
20869
  children: t
20860
20870
  });
20861
20871
  }
20862
- function m4() {
20872
+ function m3() {
20863
20873
  return /* @__PURE__ */ new Map();
20864
20874
  }
20865
- function g4() {
20875
+ function g3() {
20866
20876
  return /* @__PURE__ */ new Set();
20867
20877
  }
20868
- function b4(e) {
20878
+ function b3(e) {
20869
20879
  const t = /* @__PURE__ */ new Set(), n = [], r = [];
20870
20880
  e.forEach((s, i) => {
20871
20881
  if (!i.isConnected)
@@ -20884,13 +20894,13 @@ function b4(e) {
20884
20894
  s.index = o, n.push(s), o += 1;
20885
20895
  }), t.size > 0 && n.sort((s, i) => s.index - i.index), [n, r.map((s) => s.element)];
20886
20896
  }
20887
- function v4(e, t) {
20897
+ function v3(e, t) {
20888
20898
  let n = e.parentElement;
20889
20899
  for (; n && !n.contains(t); )
20890
20900
  n = n.parentElement;
20891
20901
  return n;
20892
20902
  }
20893
- function x4(e) {
20903
+ function x3(e) {
20894
20904
  for (const t of e)
20895
20905
  for (let n = 0; n < t.removedNodes.length; n += 1)
20896
20906
  if (t.removedNodes[n].isConnected)
@@ -20903,8 +20913,8 @@ function jE(e, t) {
20903
20913
  function GE(e) {
20904
20914
  return e == null || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true";
20905
20915
  }
20906
- const cb = "data-composite-item-active", y4 = [];
20907
- function w4(e) {
20916
+ const cb = "data-composite-item-active", y3 = [];
20917
+ function w3(e) {
20908
20918
  const {
20909
20919
  loopFocus: t = !0,
20910
20920
  orientation: n = "both",
@@ -20917,7 +20927,7 @@ function w4(e) {
20917
20927
  enableHomeAndEndKeys: c = !1,
20918
20928
  stopEventPropagation: d,
20919
20929
  disabledIndices: f,
20920
- modifierKeys: p = y4
20930
+ modifierKeys: p = y3
20921
20931
  } = e, [h, m] = k.useState(0), g = r != null, b = k.useRef(null), x = Sn(b, l), v = k.useRef([]), y = k.useRef(!1), w = i ?? h, C = Ce((I, A = !1) => {
20922
20932
  if ((a ?? m)(I), A) {
20923
20933
  const D = v.current[I];
@@ -20951,7 +20961,7 @@ function w4(e) {
20951
20961
  }, [f, i, w, v, C]);
20952
20962
  const R = Ce((I, A, D) => o ? o(I, A, D, v) : D), E = Ce((I) => {
20953
20963
  const A = I.key === wu || I.key === ku;
20954
- if (!Us.has(I.key) || !c && A || k4(I, p) || !b.current)
20964
+ if (!Us.has(I.key) || !c && A || k3(I, p) || !b.current)
20955
20965
  return;
20956
20966
  const P = s === "rtl", T = P ? xu : yu, $ = P ? yu : xu, L = n === "vertical" ? vu : T, F = n === "vertical" ? bu : $, _ = Et(I.nativeEvent);
20957
20967
  if (_ != null && cw(_) && !GE(_)) {
@@ -20998,7 +21008,7 @@ function w4(e) {
20998
21008
  relayKeyboardEvent: E
20999
21009
  };
21000
21010
  }
21001
- function k4(e, t) {
21011
+ function k3(e, t) {
21002
21012
  for (const n of zF)
21003
21013
  if (!t.includes(n) && e.getModifierState(n))
21004
21014
  return !0;
@@ -21035,7 +21045,7 @@ function nf(e) {
21035
21045
  elementsRef: A,
21036
21046
  onMapChange: D,
21037
21047
  relayKeyboardEvent: P
21038
- } = w4({
21048
+ } = w3({
21039
21049
  grid: f,
21040
21050
  loopFocus: p,
21041
21051
  onLoop: h,
@@ -21321,7 +21331,7 @@ const ZE = /* @__PURE__ */ k.forwardRef(function(t, n) {
21321
21331
  });
21322
21332
  });
21323
21333
  process.env.NODE_ENV !== "production" && (ZE.displayName = "ToolbarInput");
21324
- const C4 = ht({
21334
+ const C3 = ht({
21325
21335
  base: [
21326
21336
  "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2",
21327
21337
  "rounded-md font-medium whitespace-nowrap text-secondary",
@@ -21346,7 +21356,7 @@ const C4 = ht({
21346
21356
  defaultVariants: { size: "md", iconOnly: !1 }
21347
21357
  });
21348
21358
  function Iu({ size: e, iconOnly: t, className: n, children: r, ref: o, ...s }) {
21349
- return /* @__PURE__ */ u(UE, { ref: o, className: H(C4({ size: e, iconOnly: t }), n), ...s, children: r });
21359
+ return /* @__PURE__ */ u(UE, { ref: o, className: H(C3({ size: e, iconOnly: t }), n), ...s, children: r });
21350
21360
  }
21351
21361
  function JE({
21352
21362
  className: e,
@@ -21434,7 +21444,7 @@ function gee({ className: e, children: t, ref: n, ...r }) {
21434
21444
  }
21435
21445
  );
21436
21446
  }
21437
- const S4 = /* @__PURE__ */ new Set([Fh.name, ...Fh.aliases ?? []]), E4 = (e) => !!e && S4.has(e.trim().toLowerCase());
21447
+ const S3 = /* @__PURE__ */ new Set([Fh.name, ...Fh.aliases ?? []]), E3 = (e) => !!e && S3.has(e.trim().toLowerCase());
21438
21448
  function QE({
21439
21449
  value: e,
21440
21450
  defaultValue: t,
@@ -21459,7 +21469,7 @@ function QE({
21459
21469
  ref: w,
21460
21470
  ...C
21461
21471
  }) {
21462
- const [S, R] = fi(e, t ?? "", n), [E, N] = fi(d, f, p), I = E4(o), A = Oe(
21472
+ const [S, R] = fi(e, t ?? "", n), [E, N] = fi(d, f, p), I = E3(o), A = Oe(
21463
21473
  () => I ? r ? ["source", "rendered"] : ["source", "rendered", "split"] : ["source"],
21464
21474
  [I, r]
21465
21475
  ), [D, P] = fi(
@@ -21502,7 +21512,7 @@ function QE({
21502
21512
  $
21503
21513
  ]
21504
21514
  ), K = js(), re = G ? c : l, oe = re === void 0 ? void 0 : { maxHeight: `calc(${re} * 1lh + 2 * var(--code-pad-y))` };
21505
- return /* @__PURE__ */ u(M5, { value: Y, children: /* @__PURE__ */ M(
21515
+ return /* @__PURE__ */ u(Mz, { value: Y, children: /* @__PURE__ */ M(
21506
21516
  "div",
21507
21517
  {
21508
21518
  ref: w,
@@ -21512,11 +21522,11 @@ function QE({
21512
21522
  className: H(K.root(), y),
21513
21523
  ...C,
21514
21524
  children: [
21515
- v ?? /* @__PURE__ */ u(O4, {}),
21525
+ v ?? /* @__PURE__ */ u(O3, {}),
21516
21526
  /* @__PURE__ */ M("div", { className: "relative min-w-0", children: [
21517
21527
  /* @__PURE__ */ M("div", { className: K.body(), children: [
21518
21528
  T !== "rendered" && /* @__PURE__ */ u(
21519
- N4,
21529
+ N3,
21520
21530
  {
21521
21531
  text: S,
21522
21532
  onText: R,
@@ -21544,7 +21554,7 @@ function QE({
21544
21554
  "flex min-w-0 flex-1",
21545
21555
  T === "split" && "border-t border-border-subtle md:border-t-0 md:border-l"
21546
21556
  ),
21547
- children: /* @__PURE__ */ u(R4, { text: S, style: oe, collapsed: G })
21557
+ children: /* @__PURE__ */ u(R3, { text: S, style: oe, collapsed: G })
21548
21558
  }
21549
21559
  )
21550
21560
  ] }),
@@ -21564,12 +21574,12 @@ function QE({
21564
21574
  ]
21565
21575
  }
21566
21576
  ),
21567
- !r && /* @__PURE__ */ u(A4, { tabLeaves: W })
21577
+ !r && /* @__PURE__ */ u(A3, { tabLeaves: W })
21568
21578
  ]
21569
21579
  }
21570
21580
  ) });
21571
21581
  }
21572
- function N4({
21582
+ function N3({
21573
21583
  text: e,
21574
21584
  onText: t,
21575
21585
  language: n,
@@ -21584,7 +21594,7 @@ function N4({
21584
21594
  tabLeaves: f,
21585
21595
  onTabLeavesChange: p
21586
21596
  }) {
21587
- const h = js(), m = u4(e, n), g = Oe(() => e.split(`
21597
+ const h = js(), m = u3(e, n), g = Oe(() => e.split(`
21588
21598
  `).length, [e]), b = s !== void 0 && !i, x = b ? String(s + g - 1).length : 0, v = xe(f), y = (C) => {
21589
21599
  v.current = C, p(C);
21590
21600
  }, w = (C) => {
@@ -21599,19 +21609,19 @@ function N4({
21599
21609
  y(!1);
21600
21610
  return;
21601
21611
  }
21602
- C.preventDefault(), E5(S, a, C.shiftKey);
21612
+ C.preventDefault(), Ez(S, a, C.shiftKey);
21603
21613
  return;
21604
21614
  }
21605
21615
  if (v.current && y(!1), !(C.ctrlKey || C.metaKey || C.altKey)) {
21606
21616
  if (C.key === "Enter") {
21607
- C.preventDefault(), N5(S, a);
21617
+ C.preventDefault(), Nz(S, a);
21608
21618
  return;
21609
21619
  }
21610
21620
  if (C.key === "Backspace") {
21611
- I5(S) && C.preventDefault();
21621
+ Iz(S) && C.preventDefault();
21612
21622
  return;
21613
21623
  }
21614
- C.key.length === 1 && R5(S, C.key) && C.preventDefault();
21624
+ C.key.length === 1 && Rz(S, C.key) && C.preventDefault();
21615
21625
  }
21616
21626
  }
21617
21627
  };
@@ -21630,7 +21640,7 @@ function N4({
21630
21640
  style: { "--code-digits": x },
21631
21641
  className: H(h.layers(), i ? "w-full" : "w-max min-w-full"),
21632
21642
  children: [
21633
- b && /* @__PURE__ */ u("div", { "data-code-gutter": "", "aria-hidden": "true", className: H(h.gutter(), "dx-code-nowrap"), children: /* @__PURE__ */ u(f4, { count: g, from: s }) }),
21643
+ b && /* @__PURE__ */ u("div", { "data-code-gutter": "", "aria-hidden": "true", className: H(h.gutter(), "dx-code-nowrap"), children: /* @__PURE__ */ u(f3, { count: g, from: s }) }),
21634
21644
  /* @__PURE__ */ u(
21635
21645
  "pre",
21636
21646
  {
@@ -21640,7 +21650,7 @@ function N4({
21640
21650
  h.pre(),
21641
21651
  i ? "dx-code-wrap min-w-0 flex-1" : "dx-code-nowrap w-max shrink-0"
21642
21652
  ),
21643
- children: /* @__PURE__ */ u(d4, { source: e, tokens: m })
21653
+ children: /* @__PURE__ */ u(d3, { source: e, tokens: m })
21644
21654
  }
21645
21655
  ),
21646
21656
  !o && /* @__PURE__ */ u(
@@ -21671,7 +21681,7 @@ function N4({
21671
21681
  }
21672
21682
  );
21673
21683
  }
21674
- function R4({
21684
+ function R3({
21675
21685
  text: e,
21676
21686
  style: t,
21677
21687
  collapsed: n
@@ -21720,7 +21730,7 @@ function tN({ className: e }) {
21720
21730
  const { filename: t, language: n } = kl("CodeEditorCaption"), r = js(), o = he().codeEditor;
21721
21731
  return /* @__PURE__ */ u("span", { "data-code-caption": "", className: H(r.caption(), e), children: t ?? n ?? o.captionFallback });
21722
21732
  }
21723
- function I4({ className: e }) {
21733
+ function I3({ className: e }) {
21724
21734
  const { copy: t, copied: n } = kl("CodeEditorCopyButton"), r = js(), o = he().codeEditor;
21725
21735
  return /* @__PURE__ */ u(Gt, { content: n ? o.copied : o.copy, children: /* @__PURE__ */ u(
21726
21736
  "button",
@@ -21734,7 +21744,7 @@ function I4({ className: e }) {
21734
21744
  }
21735
21745
  ) });
21736
21746
  }
21737
- function M4({ className: e }) {
21747
+ function M3({ className: e }) {
21738
21748
  const { wrap: t, setWrap: n } = kl("CodeEditorWrapToggle"), r = he().codeEditor;
21739
21749
  return /* @__PURE__ */ u(Gt, { content: t ? r.stopWrapping : r.wrapLongLines, children: /* @__PURE__ */ u(
21740
21750
  Iu,
@@ -21749,8 +21759,8 @@ function M4({ className: e }) {
21749
21759
  }
21750
21760
  ) });
21751
21761
  }
21752
- const T4 = { source: "code", rendered: "file-text", split: "columns-3" };
21753
- function P4({ className: e }) {
21762
+ const T3 = { source: "code", rendered: "file-text", split: "columns-3" };
21763
+ function P3({ className: e }) {
21754
21764
  const { view: t, setView: n, views: r } = kl("CodeEditorViewSwitch"), o = he().codeEditor;
21755
21765
  return r.length < 2 ? null : /* @__PURE__ */ u(
21756
21766
  JE,
@@ -21773,22 +21783,22 @@ function P4({ className: e }) {
21773
21783
  value: s,
21774
21784
  "aria-label": o.views[s],
21775
21785
  className: H("dx-tap shrink-0", s === "split" && "hidden md:inline-flex"),
21776
- children: /* @__PURE__ */ u(ue, { name: T4[s], size: "xs" })
21786
+ children: /* @__PURE__ */ u(ue, { name: T3[s], size: "xs" })
21777
21787
  }
21778
21788
  ) }, s))
21779
21789
  }
21780
21790
  );
21781
21791
  }
21782
- function O4() {
21792
+ function O3() {
21783
21793
  const { view: e } = kl("CodeEditorDefaultToolbar");
21784
21794
  return /* @__PURE__ */ M(eN, { children: [
21785
21795
  /* @__PURE__ */ u(tN, {}),
21786
- /* @__PURE__ */ u(P4, {}),
21787
- e !== "rendered" && /* @__PURE__ */ u(M4, {}),
21788
- /* @__PURE__ */ u(I4, {})
21796
+ /* @__PURE__ */ u(P3, {}),
21797
+ e !== "rendered" && /* @__PURE__ */ u(M3, {}),
21798
+ /* @__PURE__ */ u(I3, {})
21789
21799
  ] });
21790
21800
  }
21791
- function A4({ tabLeaves: e }) {
21801
+ function A3({ tabLeaves: e }) {
21792
21802
  const t = js(), n = he().codeEditor;
21793
21803
  return /* @__PURE__ */ u("div", { className: t.footer(), children: /* @__PURE__ */ u("span", { "data-code-hint": "", "aria-live": "polite", className: t.hint(), children: e ? n.tabLeavesHint : n.tabIndentsHint }) });
21794
21804
  }
@@ -21805,9 +21815,9 @@ function fb({ code: e, language: t, filename: n, streaming: r, className: o }) {
21805
21815
  }
21806
21816
  );
21807
21817
  }
21808
- const D4 = (e) => /* @__PURE__ */ u(fb, { code: e.code, language: e.language, streaming: e.open }), Si = fd(function({ children: t, className: n, renderCode: r }) {
21818
+ const D3 = (e) => /* @__PURE__ */ u(fb, { code: e.code, language: e.language, streaming: e.open }), Si = fd(function({ children: t, className: n, renderCode: r }) {
21809
21819
  const o = Oe(() => EE(t), [t]);
21810
- return /* @__PURE__ */ u("div", { className: H("text-sm leading-relaxed text-secondary", n), children: /* @__PURE__ */ u(wl, { nodes: o, renderCode: r ?? D4 }) });
21820
+ return /* @__PURE__ */ u("div", { className: H("text-sm leading-relaxed text-secondary", n), children: /* @__PURE__ */ u(wl, { nodes: o, renderCode: r ?? D3 }) });
21811
21821
  });
21812
21822
  function nN(e) {
21813
21823
  const t = Nu(e);
@@ -21855,7 +21865,7 @@ function Kw(e, t, n) {
21855
21865
  children: [ya(n)]
21856
21866
  };
21857
21867
  }
21858
- function _4(e, t, n) {
21868
+ function _3(e, t, n) {
21859
21869
  const r = t ? e.src : nN(e.src), o = t?.state ?? (r ? "stored" : "broken"), s = (a) => ({
21860
21870
  tag: "span",
21861
21871
  attrs: { "data-md-image-state": o },
@@ -21926,7 +21936,7 @@ function _4(e, t, n) {
21926
21936
  return s([i]);
21927
21937
  }
21928
21938
  }
21929
- const of = "data-md-syntax", $4 = "data-md", sf = "data-md-decoration";
21939
+ const of = "data-md-syntax", $3 = "data-md", sf = "data-md-decoration";
21930
21940
  function Bh(e) {
21931
21941
  switch (e.kind) {
21932
21942
  case "paragraph":
@@ -22001,9 +22011,9 @@ function Bh(e) {
22001
22011
  }
22002
22012
  }
22003
22013
  function rN(e, t, n) {
22004
- return e.kind === "image" ? _4(e, t?.(e.src) ?? null, n) : void 0;
22014
+ return e.kind === "image" ? _3(e, t?.(e.src) ?? null, n) : void 0;
22005
22015
  }
22006
- function L4(e, t) {
22016
+ function L3(e, t) {
22007
22017
  if (e.kind !== t.kind) return !1;
22008
22018
  const n = Bh(e), r = Bh(t);
22009
22019
  if (n.tag !== r.tag) return !1;
@@ -22017,27 +22027,27 @@ class mb extends Error {
22017
22027
  super(t), this.name = "CompositionConflictError";
22018
22028
  }
22019
22029
  }
22020
- function F4(e, t) {
22030
+ function F3(e, t) {
22021
22031
  const n = e.createTextNode(t.text);
22022
22032
  if (n[hb] = { start: t.start, end: t.end }, !t.syntax && !t.token) return n;
22023
22033
  const r = e.createElement("span");
22024
22034
  return t.syntax && r.setAttribute(of, ""), t.token && r.setAttribute(oN, t.token), r.appendChild(n), r;
22025
22035
  }
22026
22036
  const oN = "data-t";
22027
- function V4(e, t) {
22037
+ function V3(e, t) {
22028
22038
  const n = Bh(t.frame), r = e.createElement(n.tag);
22029
- r.setAttribute($4, t.frame.kind);
22039
+ r.setAttribute($3, t.frame.kind);
22030
22040
  for (const [o, s] of Object.entries(n.attrs ?? {})) r.setAttribute(o, s);
22031
22041
  return r[pb] = t.frame, r;
22032
22042
  }
22033
22043
  function Hh(e, t, n, r) {
22034
- if (t.type === "text") return F4(e, t);
22035
- const o = V4(e, t);
22044
+ if (t.type === "text") return F3(e, t);
22045
+ const o = V3(e, t);
22036
22046
  for (const i of t.children) o.appendChild(Hh(e, i, n, r));
22037
22047
  const s = rN(t.frame, n, r);
22038
22048
  return s && o.appendChild(dN(e, s)), o;
22039
22049
  }
22040
- function z4(e, t) {
22050
+ function z3(e, t) {
22041
22051
  if (!e) return null;
22042
22052
  if (!(t.syntax || !!t.token)) return e.nodeType === 3 ? e : null;
22043
22053
  if (e.nodeType !== 1) return null;
@@ -22046,25 +22056,25 @@ function z4(e, t) {
22046
22056
  const o = r.firstChild;
22047
22057
  return r.childNodes.length === 1 && o && o.nodeType === 3 ? o : null;
22048
22058
  }
22049
- function B4(e, t) {
22059
+ function B3(e, t) {
22050
22060
  if (!e || e.nodeType !== 1) return null;
22051
22061
  const n = e, r = n[pb];
22052
- return r && L4(r, t.frame) ? n : null;
22062
+ return r && L3(r, t.frame) ? n : null;
22053
22063
  }
22054
- function H4(e, t, n) {
22055
- const r = { textUpdated: 0, textUntouched: 0, elementsReused: 0, created: 0, removed: 0 }, o = e.lastChild && j4(e.lastChild) ? e.lastChild : null;
22056
- if (o && e.removeChild(o), aN(e, t, { protect: n.protect ?? null, images: n.images, imageStrings: n.imageStrings, stats: r }), G4(t)) {
22057
- const s = o ?? U4(e.ownerDocument);
22064
+ function H3(e, t, n) {
22065
+ const r = { textUpdated: 0, textUntouched: 0, elementsReused: 0, created: 0, removed: 0 }, o = e.lastChild && j3(e.lastChild) ? e.lastChild : null;
22066
+ if (o && e.removeChild(o), aN(e, t, { protect: n.protect ?? null, images: n.images, imageStrings: n.imageStrings, stats: r }), G3(t)) {
22067
+ const s = o ?? U3(e.ownerDocument);
22058
22068
  o || r.created++, e.appendChild(s);
22059
22069
  }
22060
22070
  return r;
22061
22071
  }
22062
22072
  const sN = "data-md-filler";
22063
- function U4(e) {
22073
+ function U3(e) {
22064
22074
  const t = e.createElement("br");
22065
22075
  return t.setAttribute(sN, ""), t;
22066
22076
  }
22067
- function j4(e) {
22077
+ function j3(e) {
22068
22078
  return e.nodeType === 1 && e.hasAttribute(sN);
22069
22079
  }
22070
22080
  function iN(e) {
@@ -22079,7 +22089,7 @@ function iN(e) {
22079
22089
  }
22080
22090
  return null;
22081
22091
  }
22082
- function G4(e) {
22092
+ function G3(e) {
22083
22093
  return iN(e) === `
22084
22094
  `;
22085
22095
  }
@@ -22088,7 +22098,7 @@ function aN(e, t, n) {
22088
22098
  for (let i = 0; i < t.length; i++) {
22089
22099
  const a = t[i], l = e.childNodes[i] ?? null;
22090
22100
  if (a.type === "text") {
22091
- const d = z4(l, a);
22101
+ const d = z3(l, a);
22092
22102
  if (d) {
22093
22103
  if (d.data === a.text)
22094
22104
  s.textUntouched++;
@@ -22105,9 +22115,9 @@ function aN(e, t, n) {
22105
22115
  Yw(e, i, Hh(r, a, n.images, n.imageStrings), o, s);
22106
22116
  continue;
22107
22117
  }
22108
- const c = B4(l, a);
22118
+ const c = B3(l, a);
22109
22119
  if (c) {
22110
- c[pb] = a.frame, s.elementsReused++, W4(c, a, n);
22120
+ c[pb] = a.frame, s.elementsReused++, W3(c, a, n);
22111
22121
  continue;
22112
22122
  }
22113
22123
  Yw(e, i, Hh(r, a, n.images, n.imageStrings), o, s);
@@ -22117,13 +22127,13 @@ function aN(e, t, n) {
22117
22127
  fN(i, o, "removed"), e.removeChild(i), s.removed++;
22118
22128
  }
22119
22129
  }
22120
- function W4(e, t, n) {
22121
- const r = rN(t.frame, n.images, n.imageStrings), o = q4(e);
22130
+ function W3(e, t, n) {
22131
+ const r = rN(t.frame, n.images, n.imageStrings), o = q3(e);
22122
22132
  if (o && e.removeChild(o), aN(e, t.children, n), !r) return;
22123
22133
  const s = o && lN(o, r) ? o : dN(e.ownerDocument, r);
22124
22134
  s !== o && n.stats.created++, e.appendChild(s);
22125
22135
  }
22126
- function q4(e) {
22136
+ function q3(e) {
22127
22137
  const t = e.lastChild;
22128
22138
  return t && t.nodeType === 1 && t.hasAttribute(sf) ? t : null;
22129
22139
  }
@@ -22135,9 +22145,9 @@ function lN(e, t) {
22135
22145
  const r = t.children ?? [];
22136
22146
  return e.children.length !== r.length ? !1 : r.every((o, s) => lN(e.children[s], o));
22137
22147
  }
22138
- const K4 = "http://www.w3.org/2000/svg";
22148
+ const K3 = "http://www.w3.org/2000/svg";
22139
22149
  function cN(e, t, n) {
22140
- const r = n || t.tag === "svg", o = r ? e.createElementNS(K4, t.tag) : e.createElement(t.tag);
22150
+ const r = n || t.tag === "svg", o = r ? e.createElementNS(K3, t.tag) : e.createElement(t.tag);
22141
22151
  for (const [s, i] of Object.entries(t.attrs)) o.setAttribute(s, i);
22142
22152
  for (const s of t.children ?? []) o.appendChild(cN(e, s, r));
22143
22153
  return o;
@@ -22166,7 +22176,7 @@ function fN(e, t, n) {
22166
22176
  function Wn(e) {
22167
22177
  return e[hb] ?? null;
22168
22178
  }
22169
- function Y4(e) {
22179
+ function Y3(e) {
22170
22180
  const t = [], n = (r) => {
22171
22181
  if (r.nodeType === 3) {
22172
22182
  Wn(r) && t.push(r);
@@ -22193,7 +22203,7 @@ function Cp(e, t) {
22193
22203
  return { node: r, offset: i ? o + 1 : o };
22194
22204
  }
22195
22205
  function jh(e, t, n = "after") {
22196
- const r = Y4(e);
22206
+ const r = Y3(e);
22197
22207
  if (!r.length) return null;
22198
22208
  let o = null;
22199
22209
  for (let a = 0; a < r.length; a++) {
@@ -22223,7 +22233,7 @@ function fo(e, t, n) {
22223
22233
  const s = af(o);
22224
22234
  if (s) return Wn(s).end;
22225
22235
  }
22226
- return X4(e, t);
22236
+ return X3(e, t);
22227
22237
  }
22228
22238
  function gb(e) {
22229
22239
  if (e.nodeType === 3) return Wn(e) ? e : null;
@@ -22241,7 +22251,7 @@ function af(e) {
22241
22251
  }
22242
22252
  return null;
22243
22253
  }
22244
- function X4(e, t) {
22254
+ function X3(e, t) {
22245
22255
  for (let n = t; n && n !== e.parentNode; n = n.parentNode) {
22246
22256
  for (let r = n.previousSibling; r; r = r.previousSibling) {
22247
22257
  const o = af(r);
@@ -22268,7 +22278,7 @@ function wa(e, t, n = "after") {
22268
22278
  const i = e.ownerDocument.getSelection();
22269
22279
  return i ? (i.setBaseAndExtent(o.node, o.offset, s.node, s.offset), !0) : !1;
22270
22280
  }
22271
- const Z4 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22281
+ const Z3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22272
22282
  function bee(e, t, n) {
22273
22283
  const r = Math.max(0, Math.min(t, e.length));
22274
22284
  if (n === 1 && r >= e.length) return e.length;
@@ -22276,7 +22286,7 @@ function bee(e, t, n) {
22276
22286
  const o = en(e, r), s = o.start, i = e.slice(s, o.end), a = r - s;
22277
22287
  if (n === -1 && a <= 0) return r - 1;
22278
22288
  const l = [0];
22279
- for (const d of Z4.segment(i)) l.push(d.index + d.segment.length);
22289
+ for (const d of Z3.segment(i)) l.push(d.index + d.segment.length);
22280
22290
  if (n === 1) {
22281
22291
  for (const d of l) if (d > a) return s + d;
22282
22292
  return r + 1;
@@ -22303,7 +22313,7 @@ class Sp extends Error {
22303
22313
  super(t), this.name = "ProjectionError";
22304
22314
  }
22305
22315
  }
22306
- function J4(e) {
22316
+ function J3(e) {
22307
22317
  const t = [], n = [];
22308
22318
  let r = 0;
22309
22319
  if (Jg(e, {
@@ -22333,18 +22343,18 @@ function J4(e) {
22333
22343
  throw new Sp(`${n.length} frame(s) left open: ${n.map((s) => s.frame.kind).join(", ")}`);
22334
22344
  return t;
22335
22345
  }
22336
- function Q4(e, t) {
22346
+ function Q3(e, t) {
22337
22347
  for (const n of e) if (t >= n.start && t < n.end) return !0;
22338
22348
  return !1;
22339
22349
  }
22340
- function e3(e, t, n) {
22350
+ function e4(e, t, n) {
22341
22351
  let r = n;
22342
22352
  for (const o of e)
22343
22353
  o.start > t && o.start < r && (r = o.start), o.end > t && o.end < r && (r = o.end);
22344
22354
  return r;
22345
22355
  }
22346
22356
  function Tu(e, t = {}) {
22347
- const n = J4(e), r = /* @__PURE__ */ new Map();
22357
+ const n = J3(e), r = /* @__PURE__ */ new Map();
22348
22358
  if (t.highlight)
22349
22359
  for (const d of n) {
22350
22360
  if (d.frame.kind !== "codeBody" || !d.content.length) continue;
@@ -22356,8 +22366,8 @@ function Tu(e, t = {}) {
22356
22366
  function a(d, f, p, h) {
22357
22367
  let m = f;
22358
22368
  for (; m < p; ) {
22359
- const g = h ? h.content : null, b = g !== null && !Q4(g, m);
22360
- let x = g === null ? p : Math.min(e3(g, m, p), p);
22369
+ const g = h ? h.content : null, b = g !== null && !Q3(g, m);
22370
+ let x = g === null ? p : Math.min(e4(g, m, p), p);
22361
22371
  const v = h ? r.get(h) : void 0;
22362
22372
  let y;
22363
22373
  if (v && !b) {
@@ -22394,16 +22404,16 @@ function Tu(e, t = {}) {
22394
22404
  const c = [];
22395
22405
  return l(c, e.length, null), c.length || c.push({ type: "text", start: 0, end: 0, text: "", syntax: !1 }), { source: e, children: c, frames: n };
22396
22406
  }
22397
- function t3(e) {
22407
+ function t4(e) {
22398
22408
  let t = "";
22399
- for (const n of e) t += n.type === "text" ? n.text : t3(n.children);
22409
+ for (const n of e) t += n.type === "text" ? n.text : t4(n.children);
22400
22410
  return t;
22401
22411
  }
22402
- const n3 = /^\s*blob:/i;
22412
+ const n4 = /^\s*blob:/i;
22403
22413
  function bb(e) {
22404
- return n3.test(e);
22414
+ return n4.test(e);
22405
22415
  }
22406
- function r3(e) {
22416
+ function r4(e) {
22407
22417
  if (!/blob:/i.test(e)) return [];
22408
22418
  const t = [];
22409
22419
  for (const n of Tu(e).frames) {
@@ -22412,14 +22422,14 @@ function r3(e) {
22412
22422
  }
22413
22423
  return t.sort((n, r) => n.start - r.start);
22414
22424
  }
22415
- const o3 = /[\\[\]*_`<>|!]/g;
22425
+ const o4 = /[\\[\]*_`<>|!]/g;
22416
22426
  function pN(e) {
22417
22427
  return e.trim().replace(/[\s()<>\\]/g, (t) => `%${t.charCodeAt(0).toString(16).toUpperCase().padStart(2, "0")}`);
22418
22428
  }
22419
22429
  function hN(e, t) {
22420
- return `![${t.replace(o3, "\\$&")}](${pN(e)})`;
22430
+ return `![${t.replace(o4, "\\$&")}](${pN(e)})`;
22421
22431
  }
22422
- function s3(e, t) {
22432
+ function s4(e, t) {
22423
22433
  const n = e.replace(/\.[^./\\]+$/, "").replace(/[\u0000-\u001f\u007f]+/g, " ").trim();
22424
22434
  return n.length ? n : t;
22425
22435
  }
@@ -22519,7 +22529,7 @@ function lf(e) {
22519
22529
  };
22520
22530
  }
22521
22531
  const vN = lf("**"), xN = lf("*"), yN = lf("`"), wN = lf("~~"), kN = /^(\s*)(#{1,6})(\s+)/;
22522
- function i3(e) {
22532
+ function i4(e) {
22523
22533
  const t = kN.exec(e);
22524
22534
  return t ? t[2].length : 0;
22525
22535
  }
@@ -22531,15 +22541,15 @@ function Ro(e) {
22531
22541
  }
22532
22542
  function Xw(e) {
22533
22543
  return (t, n) => {
22534
- const r = po(t, n)[0], o = i3(r.text), s = Math.max(0, Math.min(6, o + e));
22544
+ const r = po(t, n)[0], o = i4(r.text), s = Math.max(0, Math.min(6, o + e));
22535
22545
  return s === o ? null : Ro(s)(t, n);
22536
22546
  };
22537
22547
  }
22538
- const a3 = /^(\s*)([-*+])(\s+)/, l3 = /^(\s*)(\d{1,9})([.)])(\s+)/;
22548
+ const a4 = /^(\s*)([-*+])(\s+)/, l4 = /^(\s*)(\d{1,9})([.)])(\s+)/;
22539
22549
  function Nr(e) {
22540
- const t = a3.exec(e);
22550
+ const t = a4.exec(e);
22541
22551
  if (t) return { indent: t[1], marker: t[2], body: e.slice(t[0].length), ordered: !1 };
22542
- const n = l3.exec(e);
22552
+ const n = l4.exec(e);
22543
22553
  return n ? { indent: n[1], marker: n[2] + n[3], body: e.slice(n[0].length), ordered: !0 } : null;
22544
22554
  }
22545
22555
  function Zw(e) {
@@ -22557,7 +22567,7 @@ function Zw(e) {
22557
22567
  };
22558
22568
  }
22559
22569
  const Ga = " ", vb = /^\[([ xX])\]\s?/;
22560
- function c3(e, t) {
22570
+ function c4(e, t) {
22561
22571
  const n = Nr(e.slice(t.start, en(e, t.start).end));
22562
22572
  if (!n) return !1;
22563
22573
  const r = n.indent.length;
@@ -22573,22 +22583,22 @@ function c3(e, t) {
22573
22583
  }
22574
22584
  return !1;
22575
22585
  }
22576
- const u3 = (e, t) => {
22586
+ const u4 = (e, t) => {
22577
22587
  const n = po(e, t);
22578
- return Nr(n[0].text) && !c3(e, n[0]) ? null : zi(t, n, n.map((r) => Ga + r.text));
22579
- }, d3 = (e, t) => {
22588
+ return Nr(n[0].text) && !c4(e, n[0]) ? null : zi(t, n, n.map((r) => Ga + r.text));
22589
+ }, d4 = (e, t) => {
22580
22590
  const n = po(e, t);
22581
22591
  return n.some((r) => r.text.startsWith(" ") || r.text.startsWith(" ")) ? zi(
22582
22592
  t,
22583
22593
  n,
22584
22594
  n.map((r) => r.text.startsWith(Ga) ? r.text.slice(Ga.length) : r.text.replace(/^[ \t]/, ""))
22585
22595
  ) : null;
22586
- }, f3 = (e, t) => {
22596
+ }, f4 = (e, t) => {
22587
22597
  const n = po(e, t)[0], r = Nr(n.text);
22588
22598
  if (!r) return null;
22589
22599
  const o = n.text.slice(0, n.text.length - r.body.length), s = vb.exec(r.body), i = s ? `${o}[${s[1] === " " ? "x" : " "}] ${r.body.slice(s[0].length)}` : `${o}[ ] ${r.body}`;
22590
22600
  return zi(t, [n], [i]);
22591
- }, Pu = /^(\s*)>\s?/, p3 = (e, t) => {
22601
+ }, Pu = /^(\s*)>\s?/, p4 = (e, t) => {
22592
22602
  const n = po(e, t), r = n.every((o) => Pu.test(o.text));
22593
22603
  return zi(
22594
22604
  t,
@@ -22596,7 +22606,7 @@ const u3 = (e, t) => {
22596
22606
  n.map((o) => r ? o.text.replace(Pu, "$1") : `> ${o.text}`)
22597
22607
  );
22598
22608
  };
22599
- function h3(e = "") {
22609
+ function h4(e = "") {
22600
22610
  return (t, n) => {
22601
22611
  const r = Bi(t, sn(n).from);
22602
22612
  if (r) {
@@ -22638,14 +22648,14 @@ function Bi(e, t) {
22638
22648
  }
22639
22649
  return s && t >= s.start ? { start: s.start, end: e.length, bodyStart: s.end + 1, bodyEnd: e.length } : null;
22640
22650
  }
22641
- const m3 = (e, t) => {
22651
+ const m4 = (e, t) => {
22642
22652
  const n = en(e, sn(t).from), r = e.slice(n.start, n.end).trim().length === 0, o = r ? "---" : `
22643
22653
 
22644
22654
  ---
22645
22655
  `, s = r ? n.start : n.end;
22646
22656
  return { splice: { start: s, end: n.end, text: o }, select: hn(s + o.length) };
22647
22657
  };
22648
- function g3(e = "", t) {
22658
+ function g4(e = "", t) {
22649
22659
  return (n, r) => {
22650
22660
  const { from: o, to: s } = sn(r), i = n.slice(o, s), a = t ? ` "${t}"` : "", l = `[${i}](${e}${a})`;
22651
22661
  return {
@@ -22665,7 +22675,7 @@ function vee(e, t) {
22665
22675
  return { splice: { start: o, end: s, text: i }, select: hn(o + i.length) };
22666
22676
  };
22667
22677
  }
22668
- const b3 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/;
22678
+ const b4 = /^[ \t]*\|?[ \t]*:?-+:?[ \t]*(?:\|[ \t]*:?-+:?[ \t]*)*\|?[ \t]*$/;
22669
22679
  function El(e, t) {
22670
22680
  const n = en(e, t), r = (i) => {
22671
22681
  const a = en(e, i);
@@ -22682,7 +22692,7 @@ function El(e, t) {
22682
22692
  if (!o(a.text)) break;
22683
22693
  s.push(a), i = a.end;
22684
22694
  }
22685
- return s.length < 2 || !b3.test(s[1].text) ? null : { start: s[0].start, end: s[s.length - 1].end, rows: s };
22695
+ return s.length < 2 || !b4.test(s[1].text) ? null : { start: s[0].start, end: s[s.length - 1].end, rows: s };
22686
22696
  }
22687
22697
  function Ds(e) {
22688
22698
  let t = e.trim();
@@ -22697,7 +22707,7 @@ function CN(e, t, n) {
22697
22707
  const o = t.rows[r], i = (e.slice(o.start, Math.max(o.start, n)).match(/\|/g) ?? []).length, a = /^\s*\|/.test(o.text) ? 1 : 0;
22698
22708
  return { row: r, column: Math.max(0, i - a) };
22699
22709
  }
22700
- function v3(e, t = 3, n = 2) {
22710
+ function v4(e, t = 3, n = 2) {
22701
22711
  return (r, o) => {
22702
22712
  const s = en(r, sn(o).from), i = e(1), a = Cs(Array.from({ length: t }, (m, g) => e(g + 1))), l = Cs(Array.from({ length: t }, () => "---")), c = Array.from({ length: n }, () => Cs(Array.from({ length: t }, () => " "))).join(`
22703
22713
  `), d = `${a}
@@ -22784,7 +22794,7 @@ function RN(e) {
22784
22794
  };
22785
22795
  };
22786
22796
  }
22787
- const x3 = (e, t) => {
22797
+ const x4 = (e, t) => {
22788
22798
  const { from: n, to: r } = sn(t);
22789
22799
  if (n !== r) return null;
22790
22800
  const o = en(e, n), s = e.slice(o.start, o.end), i = (d, f) => ({
@@ -22812,7 +22822,7 @@ const x3 = (e, t) => {
22812
22822
  return { splice: { start: o.start, end: d, text: "" }, select: hn(o.start) };
22813
22823
  }
22814
22824
  return null;
22815
- }, y3 = (e, t) => {
22825
+ }, y4 = (e, t) => {
22816
22826
  const { from: n, to: r } = sn(t), o = en(e, n), s = e.slice(o.start, o.end), i = Nr(s);
22817
22827
  if (i) {
22818
22828
  const l = vb.exec(i.body);
@@ -22845,12 +22855,12 @@ ${a[0]}`;
22845
22855
  const n = RN(!0)(e, t);
22846
22856
  if (n) return n;
22847
22857
  const r = en(e, sn(t).from), o = e.slice(r.start, r.end);
22848
- return !Nr(o) && !Bi(e, sn(t).from) ? null : u3(e, t);
22858
+ return !Nr(o) && !Bi(e, sn(t).from) ? null : u4(e, t);
22849
22859
  }, MN = (e, t) => {
22850
22860
  const n = RN(!1)(e, t);
22851
22861
  if (n) return n;
22852
22862
  const r = en(e, sn(t).from), o = e.slice(r.start, r.end);
22853
- return !Nr(o) && !Bi(e, sn(t).from) ? null : d3(e, t);
22863
+ return !Nr(o) && !Bi(e, sn(t).from) ? null : d4(e, t);
22854
22864
  }, Jw = /* @__PURE__ */ new Set([
22855
22865
  "inline",
22856
22866
  "emphasis",
@@ -22862,7 +22872,7 @@ ${a[0]}`;
22862
22872
  "autolink",
22863
22873
  "footnoteRef",
22864
22874
  "hardBreak"
22865
- ]), w3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22875
+ ]), w4 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
22866
22876
  function TN(e, t = []) {
22867
22877
  for (const n of e)
22868
22878
  n.type === "text" ? t.push(n) : TN(n.children, t);
@@ -22880,7 +22890,7 @@ function Qw(e) {
22880
22890
  continue;
22881
22891
  }
22882
22892
  s.add(y.start);
22883
- for (const w of w3.segment(y.text)) {
22893
+ for (const w of w4.segment(y.text)) {
22884
22894
  const C = y.start + w.index, S = C + w.segment.length;
22885
22895
  o.push({ start: C, end: S }), s.add(S);
22886
22896
  }
@@ -22959,22 +22969,22 @@ function sr(e, t) {
22959
22969
  const n = Math.max(0, Math.min(t, e.source.length));
22960
22970
  return e.representative[n] ?? 0;
22961
22971
  }
22962
- function k3(e, t, n) {
22972
+ function k4(e, t, n) {
22963
22973
  const r = sr(e, t), s = e.stops.indexOf(r) + n;
22964
22974
  return s < 0 || s >= e.stops.length ? r : e.stops[s];
22965
22975
  }
22966
- function C3(e, t) {
22976
+ function C4(e, t) {
22967
22977
  let n = null;
22968
22978
  for (const r of e.graphemes)
22969
22979
  if (r.end <= t) n = r;
22970
22980
  else break;
22971
22981
  return n;
22972
22982
  }
22973
- function S3(e, t) {
22983
+ function S4(e, t) {
22974
22984
  for (const n of e.graphemes) if (n.start >= t) return n;
22975
22985
  return null;
22976
22986
  }
22977
- function E3(e, t) {
22987
+ function E4(e, t) {
22978
22988
  const { source: n } = e;
22979
22989
  let r = Math.max(0, Math.min(t, n.length));
22980
22990
  for (; r > 0 && n[r - 1] !== `
@@ -22982,7 +22992,7 @@ function E3(e, t) {
22982
22992
  for (const o of e.stops) if (o >= r) return o;
22983
22993
  return r;
22984
22994
  }
22985
- function N3(e, t) {
22995
+ function N4(e, t) {
22986
22996
  const { source: n } = e;
22987
22997
  let r = Math.max(0, Math.min(t, n.length));
22988
22998
  for (; r < n.length && n[r] !== `
@@ -23009,7 +23019,7 @@ function ON(e, t = []) {
23009
23019
  n.type === "text" ? t.push(n) : ON(n.children, t);
23010
23020
  return t;
23011
23021
  }
23012
- function R3(e, t) {
23022
+ function R4(e, t) {
23013
23023
  return Math.max(0, Math.min(e.end, t.end) - Math.max(e.start, t.start));
23014
23024
  }
23015
23025
  function Ou(e, t, n) {
@@ -23027,7 +23037,7 @@ function Ou(e, t, n) {
23027
23037
  if (!PN.has(g.frame.kind)) continue;
23028
23038
  let b = 0, x = 0;
23029
23039
  for (const v of g.content)
23030
- b += v.end - v.start, x += R3(v, { start: o, end: s });
23040
+ b += v.end - v.start, x += R4(v, { start: o, end: s });
23031
23041
  b > 0 && x === b && c.push(g);
23032
23042
  }
23033
23043
  let d = o, f = s;
@@ -23055,7 +23065,7 @@ function DN(e) {
23055
23065
  select: { anchor: e.start, head: e.start }
23056
23066
  };
23057
23067
  }
23058
- function I3(e, t, n) {
23068
+ function I4(e, t, n) {
23059
23069
  const { source: r } = e;
23060
23070
  let o = Math.max(0, Math.min(n, r.length));
23061
23071
  for (; o > 0 && r[o - 1] !== `
@@ -23067,37 +23077,37 @@ function I3(e, t, n) {
23067
23077
  for (const i of t.graphemes) if (i.start < s && i.end > o) return null;
23068
23078
  return { start: o, end: Math.min(r.length, s + 1) };
23069
23079
  }
23070
- function M3(e, t, n) {
23071
- const r = C3(t, n), o = AN(e, r ? r.end : 0, n);
23080
+ function M4(e, t, n) {
23081
+ const r = C4(t, n), o = AN(e, r ? r.end : 0, n);
23072
23082
  if (o) return DN(o);
23073
- const s = I3(e, t, n);
23083
+ const s = I4(e, t, n);
23074
23084
  return s ? { splice: { ...s, text: "" }, select: { anchor: s.start, head: s.start } } : r ? Ou(e, r.start, r.end) : null;
23075
23085
  }
23076
- function T3(e, t, n) {
23077
- const r = S3(t, n), o = AN(e, n, r ? r.start : e.source.length);
23086
+ function T4(e, t, n) {
23087
+ const r = S4(t, n), o = AN(e, n, r ? r.start : e.source.length);
23078
23088
  return o ? DN(o) : r ? Ou(e, r.start, r.end) : null;
23079
23089
  }
23080
- const P3 = (e) => ({
23090
+ const P4 = (e) => ({
23081
23091
  start: Math.min(e.anchor, e.head),
23082
23092
  end: Math.max(e.anchor, e.head)
23083
23093
  }), Ep = (e, t, n) => ({
23084
23094
  splice: { start: e, end: t, text: n },
23085
23095
  select: { anchor: e + n.length, head: e + n.length }
23086
23096
  });
23087
- function O3(e, t, n) {
23088
- const { start: r, end: o } = P3(t), s = r === o;
23097
+ function O4(e, t, n) {
23098
+ const { start: r, end: o } = P4(t), s = r === o;
23089
23099
  switch (n.kind) {
23090
23100
  case "insert":
23091
23101
  return Ep(r, o, n.text);
23092
23102
  case "backspace": {
23093
23103
  if (!s) return Ou(e.projection, r, o);
23094
- const i = x3(e.source, t);
23095
- return i || M3(e.projection, e.map, r);
23104
+ const i = x4(e.source, t);
23105
+ return i || M4(e.projection, e.map, r);
23096
23106
  }
23097
23107
  case "delete":
23098
- return s ? T3(e.projection, e.map, r) : Ou(e.projection, r, o);
23108
+ return s ? T4(e.projection, e.map, r) : Ou(e.projection, r, o);
23099
23109
  case "enter":
23100
- return y3(e.source, t) ?? Ep(r, o, `
23110
+ return y4(e.source, t) ?? Ep(r, o, `
23101
23111
  `);
23102
23112
  case "lineBreak":
23103
23113
  return Ep(r, o, `
@@ -23114,7 +23124,7 @@ const xb = [
23114
23124
  { id: "italic", key: "ctrl+i", group: "formatting", command: xN },
23115
23125
  { id: "inlineCode", key: "ctrl+e", group: "formatting", command: yN },
23116
23126
  { id: "strikethrough", key: "ctrl+shift+s", group: "formatting", command: wN },
23117
- { id: "link", key: "ctrl+k", group: "formatting", command: g3() },
23127
+ { id: "link", key: "ctrl+k", group: "formatting", command: g4() },
23118
23128
  { id: "image", key: "ctrl+shift+i", group: "formatting", request: "pickImages" },
23119
23129
  /* Headings */
23120
23130
  { id: "paragraph", key: "ctrl+0", group: "headings", command: Ro(0) },
@@ -23129,14 +23139,14 @@ const xb = [
23129
23139
  /* Lists */
23130
23140
  { id: "bulletList", key: "ctrl+shift+bracketleft", group: "lists", command: Zw(!1) },
23131
23141
  { id: "numberedList", key: "ctrl+shift+bracketright", group: "lists", command: Zw(!0) },
23132
- { id: "taskCheckbox", key: "ctrl+shift+x", group: "lists", command: f3 },
23142
+ { id: "taskCheckbox", key: "ctrl+shift+x", group: "lists", command: f4 },
23133
23143
  // I18N-ALLOW: the chord string "tab" is a key id matched against the registry and never rendered (chordLabel names it from the catalog); the scan reads the lone word as English
23134
23144
  { id: "indent", key: "tab", group: "lists", command: IN },
23135
23145
  { id: "outdent", key: "shift+tab", group: "lists", command: MN },
23136
23146
  /* Blocks */
23137
- { id: "codeBlock", key: "ctrl+shift+k", group: "blocks", command: h3() },
23138
- { id: "blockquote", key: "ctrl+shift+q", group: "blocks", command: p3 },
23139
- { id: "horizontalRule", key: "ctrl+shift+enter", group: "blocks", command: m3 },
23147
+ { id: "codeBlock", key: "ctrl+shift+k", group: "blocks", command: h4() },
23148
+ { id: "blockquote", key: "ctrl+shift+q", group: "blocks", command: p4 },
23149
+ { id: "horizontalRule", key: "ctrl+shift+enter", group: "blocks", command: m4 },
23140
23150
  /* Tables */
23141
23151
  { id: "table", key: "ctrl+alt+shift+t", group: "tables", request: "insertTable" },
23142
23152
  { id: "rowAbove", key: "ctrl+alt+shift+arrowup", group: "tables", command: Gh(!1) },
@@ -23150,27 +23160,27 @@ const xb = [
23150
23160
  { id: "alignCenter", key: "ctrl+alt+c", group: "tables", command: mi("center") },
23151
23161
  { id: "alignRight", key: "ctrl+alt+r", group: "tables", command: mi("right") }
23152
23162
  ];
23153
- function A3(e) {
23163
+ function A4(e) {
23154
23164
  const t = [];
23155
23165
  (e.ctrlKey || e.metaKey) && t.push("ctrl"), e.altKey && t.push("alt"), e.shiftKey && t.push("shift");
23156
23166
  const n = t.length ? t.join("+") + "+" : "", r = [n + e.key.toLowerCase()];
23157
23167
  return e.code && r.push(n + e.code.toLowerCase()), r;
23158
23168
  }
23159
- const D3 = new Map(xb.map((e) => [e.key, e]));
23160
- function _3(e) {
23161
- for (const t of A3(e)) {
23162
- const n = D3.get(t);
23169
+ const D4 = new Map(xb.map((e) => [e.key, e]));
23170
+ function _4(e) {
23171
+ for (const t of A4(e)) {
23172
+ const n = D4.get(t);
23163
23173
  if (n) return n;
23164
23174
  }
23165
23175
  return null;
23166
23176
  }
23167
- function $3(e) {
23177
+ function $4(e) {
23168
23178
  return e.replace(/([\\`*_[\]<>])/g, "\\$1");
23169
23179
  }
23170
23180
  function Jc(e, t) {
23171
23181
  return e.getAttribute(t) ?? "";
23172
23182
  }
23173
- function L3(e, t) {
23183
+ function L4(e, t) {
23174
23184
  const r = t(e).body;
23175
23185
  return r ? Wa(r, "").trim().replace(/\n{3,}/g, `
23176
23186
 
@@ -23178,12 +23188,12 @@ function L3(e, t) {
23178
23188
  }
23179
23189
  function Wa(e, t) {
23180
23190
  let n = "";
23181
- for (let r = e.firstChild; r; r = r.nextSibling) n += F3(r, t);
23191
+ for (let r = e.firstChild; r; r = r.nextSibling) n += F4(r, t);
23182
23192
  return n;
23183
23193
  }
23184
- function F3(e, t) {
23194
+ function F4(e, t) {
23185
23195
  if (e.nodeType === 3)
23186
- return $3(e.data.replace(/\s+/g, " "));
23196
+ return $4(e.data.replace(/\s+/g, " "));
23187
23197
  if (e.nodeType !== 1) return "";
23188
23198
  const n = e, r = n.tagName.toLowerCase(), o = () => Wa(n, t);
23189
23199
  switch (r) {
@@ -23230,7 +23240,7 @@ ${"#".repeat(Number(r[1]))} ${o()}
23230
23240
  case "strike":
23231
23241
  return Np(n) ? o() : `~~${o()}~~`;
23232
23242
  case "code":
23233
- return n.parentElement?.tagName.toLowerCase() === "pre" ? n.textContent ?? "" : B3(n.textContent ?? "");
23243
+ return n.parentElement?.tagName.toLowerCase() === "pre" ? n.textContent ?? "" : B4(n.textContent ?? "");
23234
23244
  case "pre":
23235
23245
  return `
23236
23246
 
@@ -23261,7 +23271,7 @@ ${Wa(n, t).trim().replace(/\n{3,}/g, `
23261
23271
  case "ol":
23262
23272
  return `
23263
23273
 
23264
- ${H3(n, t, r === "ol")}
23274
+ ${H4(n, t, r === "ol")}
23265
23275
 
23266
23276
  `;
23267
23277
  case "li":
@@ -23270,7 +23280,7 @@ ${t}- ${o().trim()}`;
23270
23280
  case "table":
23271
23281
  return `
23272
23282
 
23273
- ${U3(n)}
23283
+ ${U4(n)}
23274
23284
 
23275
23285
  `;
23276
23286
  case "script":
@@ -23278,12 +23288,12 @@ ${U3(n)}
23278
23288
  case "head":
23279
23289
  return "";
23280
23290
  case "span":
23281
- return V3(n, o());
23291
+ return V4(n, o());
23282
23292
  default:
23283
23293
  return o();
23284
23294
  }
23285
23295
  }
23286
- function V3(e, t) {
23296
+ function V4(e, t) {
23287
23297
  const n = Jc(e, "style").toLowerCase();
23288
23298
  if (!n) return t;
23289
23299
  let r = t;
@@ -23295,17 +23305,17 @@ function V3(e, t) {
23295
23305
  }
23296
23306
  return r;
23297
23307
  }
23298
- const z3 = /* @__PURE__ */ new Set(["p", "div", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", "table", "blockquote", "pre", "hr"]);
23308
+ const z4 = /* @__PURE__ */ new Set(["p", "div", "h1", "h2", "h3", "h4", "h5", "h6", "ul", "ol", "li", "table", "blockquote", "pre", "hr"]);
23299
23309
  function Np(e) {
23300
23310
  for (let t = e.firstChild; t; t = t.nextSibling)
23301
- if (t.nodeType === 1 && z3.has(t.tagName.toLowerCase())) return !0;
23311
+ if (t.nodeType === 1 && z4.has(t.tagName.toLowerCase())) return !0;
23302
23312
  return !1;
23303
23313
  }
23304
- function B3(e) {
23314
+ function B4(e) {
23305
23315
  const t = (e.match(/`+/g) ?? []).reduce((o, s) => Math.max(o, s.length), 0), n = "`".repeat(t + 1), r = e.startsWith("`") || e.endsWith("`") ? " " : "";
23306
23316
  return `${n}${r}${e}${r}${n}`;
23307
23317
  }
23308
- function H3(e, t, n) {
23318
+ function H4(e, t, n) {
23309
23319
  const r = [];
23310
23320
  let o = Number(e.getAttribute("start") ?? "1") || 1;
23311
23321
  for (let s = e.firstChild; s; s = s.nextSibling) {
@@ -23319,7 +23329,7 @@ ${a}`)}`);
23319
23329
  return r.join(`
23320
23330
  `);
23321
23331
  }
23322
- function U3(e) {
23332
+ function U4(e) {
23323
23333
  const t = [];
23324
23334
  for (const a of Array.from(e.querySelectorAll("tr"))) {
23325
23335
  const l = Array.from(a.querySelectorAll("th, td")).map(
@@ -23340,7 +23350,7 @@ function U3(e) {
23340
23350
  return [r(s), `| ${Array.from({ length: n }, () => "---").join(" | ")} |`, ...i.map(r)].join(`
23341
23351
  `);
23342
23352
  }
23343
- const j3 = /* @__PURE__ */ new Set([
23353
+ const j4 = /* @__PURE__ */ new Set([
23344
23354
  "insertText",
23345
23355
  "insertReplacementText",
23346
23356
  "insertFromPaste",
@@ -23349,7 +23359,7 @@ const j3 = /* @__PURE__ */ new Set([
23349
23359
  "insertFromYank",
23350
23360
  "insertTranspose",
23351
23361
  "insertLink"
23352
- ]), G3 = /* @__PURE__ */ new Set([
23362
+ ]), G4 = /* @__PURE__ */ new Set([
23353
23363
  "deleteContent",
23354
23364
  "deleteContentBackward",
23355
23365
  "deleteContentForward",
@@ -23363,7 +23373,7 @@ const j3 = /* @__PURE__ */ new Set([
23363
23373
  "deleteByDrag",
23364
23374
  "deleteByCut"
23365
23375
  ]);
23366
- function W3(e, t = {}) {
23376
+ function W4(e, t = {}) {
23367
23377
  const n = e.root, r = (f) => {
23368
23378
  const p = f.inputType;
23369
23379
  if (!f.cancelable) return;
@@ -23375,19 +23385,19 @@ function W3(e, t = {}) {
23375
23385
  f.preventDefault(), e.redo();
23376
23386
  return;
23377
23387
  }
23378
- const h = Z3(n, f) ?? J3(e);
23388
+ const h = Z4(n, f) ?? J4(e);
23379
23389
  if (!h) return;
23380
23390
  const m = e.getSelection(), g = m !== null && m.anchor === m.head ? m : null, b = (x, v, y = g ?? { anchor: h.start, head: h.end }) => {
23381
- const w = O3(
23391
+ const w = O4(
23382
23392
  { source: e.getSource(), projection: e.getProjection(), map: e.getCaretMap() },
23383
23393
  y,
23384
23394
  x
23385
23395
  );
23386
23396
  return w ? (e.apply(w.splice, w.select, v), !0) : !1;
23387
23397
  };
23388
- if (j3.has(p)) {
23398
+ if (j4.has(p)) {
23389
23399
  f.preventDefault();
23390
- const x = Q3(f);
23400
+ const x = Q4(f);
23391
23401
  if (x === null) {
23392
23402
  t.onUnhandled?.(p);
23393
23403
  return;
@@ -23395,7 +23405,7 @@ function W3(e, t = {}) {
23395
23405
  b({ kind: "insert", text: x }, "type");
23396
23406
  return;
23397
23407
  }
23398
- if (G3.has(p)) {
23408
+ if (G4.has(p)) {
23399
23409
  f.preventDefault(), b(
23400
23410
  { kind: p === "deleteContentBackward" || p === "deleteWordBackward" ? "backspace" : "delete" },
23401
23411
  "delete",
@@ -23424,8 +23434,8 @@ function W3(e, t = {}) {
23424
23434
  const g = Nu(m);
23425
23435
  g && (f.preventDefault(), n.ownerDocument.defaultView?.open(g, "_blank", "noopener,noreferrer"));
23426
23436
  }, a = (f) => {
23427
- if (q3(f.target)) return;
23428
- const p = _3(f);
23437
+ if (q4(f.target)) return;
23438
+ const p = _4(f);
23429
23439
  if (p?.request) {
23430
23440
  t.onRequest && (f.preventDefault(), t.onRequest(p.request));
23431
23441
  return;
@@ -23448,13 +23458,13 @@ function W3(e, t = {}) {
23448
23458
  }, l = n.ownerDocument, c = () => {
23449
23459
  const p = l.getSelection()?.anchorNode;
23450
23460
  !p || !n.contains(p) || e.snapCaret();
23451
- }, d = t.onImageFiles ? X3(e, t.onImageFiles) : () => {
23461
+ }, d = t.onImageFiles ? X4(e, t.onImageFiles) : () => {
23452
23462
  };
23453
23463
  return n.addEventListener("beforeinput", r), n.addEventListener("pointerdown", s), n.addEventListener("click", i), n.addEventListener("keydown", a), l.addEventListener("selectionchange", c), () => {
23454
23464
  d(), n.removeEventListener("beforeinput", r), n.removeEventListener("pointerdown", s), n.removeEventListener("click", i), n.removeEventListener("keydown", a), l.removeEventListener("selectionchange", c);
23455
23465
  };
23456
23466
  }
23457
- function q3(e) {
23467
+ function q4(e) {
23458
23468
  return e instanceof Element && e.closest(`[${sf}]`) !== null;
23459
23469
  }
23460
23470
  const e0 = "data-md-drop-target";
@@ -23464,14 +23474,14 @@ function t0(e) {
23464
23474
  function n0(e) {
23465
23475
  return e ? Array.from(e.items).some((t) => t.kind === "file" && t.type.startsWith("image/")) : !1;
23466
23476
  }
23467
- function K3(e, t) {
23477
+ function K4(e, t) {
23468
23478
  const n = new Set(t.map((o) => o.name)), r = e.split(/\r?\n/).map((o) => o.trim()).filter(Boolean);
23469
23479
  return r.length > 0 && r.every((o) => n.has(o) || n.has(o.split(/[\\/]/).pop() ?? ""));
23470
23480
  }
23471
23481
  function bc(e) {
23472
23482
  return !!e && Array.from(e.types).includes("Files");
23473
23483
  }
23474
- function Y3(e, t, n) {
23484
+ function Y4(e, t, n) {
23475
23485
  const r = e.root.ownerDocument;
23476
23486
  let o = null, s = 0;
23477
23487
  if (typeof r.caretPositionFromPoint == "function") {
@@ -23485,7 +23495,7 @@ function Y3(e, t, n) {
23485
23495
  const i = fo(e.root, o, s);
23486
23496
  return i === null ? null : sr(e.getCaretMap(), i);
23487
23497
  }
23488
- function X3(e, t) {
23498
+ function X4(e, t) {
23489
23499
  const n = e.root;
23490
23500
  let r = 0;
23491
23501
  const o = (d) => {
@@ -23495,7 +23505,7 @@ function X3(e, t) {
23495
23505
  const f = d.clipboardData, p = t0(f);
23496
23506
  if (!p.length) return;
23497
23507
  const h = f.getData("text/plain");
23498
- h.length && !K3(h, p) || (d.preventDefault(), t(p, e.getSelection()));
23508
+ h.length && !K4(h, p) || (d.preventDefault(), t(p, e.getSelection()));
23499
23509
  }, i = (d) => {
23500
23510
  !n.isContentEditable || !bc(d.dataTransfer) || (r++, o(n0(d.dataTransfer)));
23501
23511
  }, a = (d) => {
@@ -23507,14 +23517,14 @@ function X3(e, t) {
23507
23517
  d.preventDefault(), r = 0, o(!1);
23508
23518
  const f = t0(d.dataTransfer);
23509
23519
  if (!f.length) return;
23510
- const p = Y3(e, d.clientX, d.clientY);
23520
+ const p = Y4(e, d.clientX, d.clientY);
23511
23521
  t(f, p === null ? null : { anchor: p, head: p });
23512
23522
  };
23513
23523
  return n.addEventListener("paste", s), n.addEventListener("dragenter", i), n.addEventListener("dragover", a), n.addEventListener("dragleave", l), n.addEventListener("drop", c), () => {
23514
23524
  n.removeEventListener("paste", s), n.removeEventListener("dragenter", i), n.removeEventListener("dragover", a), n.removeEventListener("dragleave", l), n.removeEventListener("drop", c), o(!1);
23515
23525
  };
23516
23526
  }
23517
- function Z3(e, t) {
23527
+ function Z4(e, t) {
23518
23528
  const n = typeof t.getTargetRanges == "function" ? t.getTargetRanges() : [];
23519
23529
  if (!n.length) return null;
23520
23530
  let r = Number.POSITIVE_INFINITY, o = Number.NEGATIVE_INFINITY;
@@ -23525,17 +23535,17 @@ function Z3(e, t) {
23525
23535
  }
23526
23536
  return Number.isFinite(r) ? { start: r, end: o } : null;
23527
23537
  }
23528
- function J3(e) {
23538
+ function J4(e) {
23529
23539
  const t = e.getSelection();
23530
23540
  return t ? { start: Math.min(t.anchor, t.head), end: Math.max(t.anchor, t.head) } : null;
23531
23541
  }
23532
- function Q3(e) {
23542
+ function Q4(e) {
23533
23543
  if (typeof e.data == "string") return e.data;
23534
23544
  const t = e.dataTransfer;
23535
23545
  if (!t) return null;
23536
23546
  const n = t.getData("text/plain"), r = t.getData("text/html");
23537
23547
  if (r && r.trim().length) {
23538
- const o = L3(
23548
+ const o = L4(
23539
23549
  r,
23540
23550
  (s) => new DOMParser().parseFromString(s, "text/html")
23541
23551
  );
@@ -23818,7 +23828,7 @@ class rB {
23818
23828
  const r = Tu(this.source, { highlight: this.options.highlight });
23819
23829
  this.projection = r, this.caretStops = Qw(r), this.write(() => {
23820
23830
  try {
23821
- H4(this.root, r.children, { images: this.options.images, imageStrings: this.options.imageStrings() });
23831
+ H3(this.root, r.children, { images: this.options.images, imageStrings: this.options.imageStrings() });
23822
23832
  } catch (s) {
23823
23833
  if (s instanceof mb) {
23824
23834
  this.deferred = !0, this.options.onDesync?.(s.message);
@@ -23868,7 +23878,7 @@ class rB {
23868
23878
  moveCaret(t, n) {
23869
23879
  const r = this.getSelection();
23870
23880
  if (!r) return !1;
23871
- const o = !n && r.anchor !== r.head ? t === 1 ? Math.max(r.anchor, r.head) : Math.min(r.anchor, r.head) : k3(this.caretStops, r.head, t), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23881
+ const o = !n && r.anchor !== r.head ? t === 1 ? Math.max(r.anchor, r.head) : Math.min(r.anchor, r.head) : k4(this.caretStops, r.head, t), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23872
23882
  return this.write(() => wa(this.root, s, t === 1 ? "after" : "before")), !0;
23873
23883
  }
23874
23884
  /**
@@ -23885,7 +23895,7 @@ class rB {
23885
23895
  moveToLineEdge(t, n) {
23886
23896
  const r = this.getSelection();
23887
23897
  if (!r) return !1;
23888
- const o = t === "start" ? E3(this.caretStops, r.head) : N3(this.caretStops, r.head), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23898
+ const o = t === "start" ? E4(this.caretStops, r.head) : N4(this.caretStops, r.head), s = n ? { anchor: r.anchor, head: o } : { anchor: o, head: o };
23889
23899
  return this.write(() => wa(this.root, s, t === "start" ? "after" : "before")), !0;
23890
23900
  }
23891
23901
  /**
@@ -24083,7 +24093,7 @@ class iB {
24083
24093
  const b = this.env.createObjectURL(g);
24084
24094
  return this.entries.set(b, { file: g, state: s ? "uploading" : "local", controller: null }), b;
24085
24095
  });
24086
- let a = o.map((g, b) => hN(i[b], s3(g.name, this.options.defaultAlt()))).join(" ");
24096
+ let a = o.map((g, b) => hN(i[b], s4(g.name, this.options.defaultAlt()))).join(" ");
24087
24097
  const l = n ?? r.getSelection() ?? { anchor: r.getSource().length, head: r.getSource().length }, c = r.getCaretMap();
24088
24098
  let d = sr(c, Math.min(l.anchor, l.head)), f = sr(c, Math.max(l.anchor, l.head));
24089
24099
  const p = r.getSource(), h = gN(r.getProjection(), d);
@@ -24145,7 +24155,7 @@ class iB {
24145
24155
  const n = t.getSource();
24146
24156
  for (const [l, c] of this.entries)
24147
24157
  c.controller || n.includes(l) || t.remembers(l) || this.release(l);
24148
- const r = r3(n), o = [], s = /* @__PURE__ */ new Set(), i = {
24158
+ const r = r4(n), o = [], s = /* @__PURE__ */ new Set(), i = {
24149
24159
  uploading: 0,
24150
24160
  failed: 0,
24151
24161
  unstored: r.length,
@@ -25931,7 +25941,7 @@ function zB({
25931
25941
  }
25932
25942
  function BB({ language: e, run: t }) {
25933
25943
  const n = he().markdownAffordances, r = Oe(() => {
25934
- const o = c4().sort();
25944
+ const o = c3().sort();
25935
25945
  return e && !o.includes(e) ? [e, ...o] : o;
25936
25946
  }, [e]);
25937
25947
  return /* @__PURE__ */ M("label", { className: "flex items-center gap-1.5 px-1 text-xs text-tertiary", children: [
@@ -26251,7 +26261,7 @@ function QB({
26251
26261
  }))
26252
26262
  });
26253
26263
  C.current = ee, _(ee), te.attach(ee);
26254
- const Z = ee.bind(), de = te.bind(), pe = W3(ee, {
26264
+ const Z = ee.bind(), de = te.bind(), pe = W4(ee, {
26255
26265
  /* Paste and drop: the files go into the ONE pipeline the picker also
26256
26266
  uses, at the caret or the drop point. Focus follows a drop, the way it
26257
26267
  would follow dropped text — the caret is now after the new image. */
@@ -26321,7 +26331,7 @@ function QB({
26321
26331
  G();
26322
26332
  return;
26323
26333
  case "insertTable":
26324
- q(v3((ee) => b.current.tableColumnHeader(v.current(ee))));
26334
+ q(v4((ee) => b.current.tableColumnHeader(v.current(ee))));
26325
26335
  return;
26326
26336
  case "insertColumnLeft":
26327
26337
  q(Wh(!1, b.current.newColumnHeader));
@@ -44367,7 +44377,7 @@ const Y8 = {
44367
44377
  return t.filter((s) => !o.has(s.id));
44368
44378
  }, ct(e.options, "debugRows", "getCenterRows"));
44369
44379
  }
44370
- }, eW = {
44380
+ }, e9 = {
44371
44381
  getInitialState: (e) => ({
44372
44382
  rowSelection: {},
44373
44383
  ...e
@@ -44523,10 +44533,10 @@ function cm(e, t, n) {
44523
44533
  }
44524
44534
  }), o ? "all" : s ? "some" : !1;
44525
44535
  }
44526
- const um = /([0-9]+)/gm, tW = (e, t, n) => ZT(Ko(e.getValue(n)).toLowerCase(), Ko(t.getValue(n)).toLowerCase()), nW = (e, t, n) => ZT(Ko(e.getValue(n)), Ko(t.getValue(n))), rW = (e, t, n) => rx(Ko(e.getValue(n)).toLowerCase(), Ko(t.getValue(n)).toLowerCase()), oW = (e, t, n) => rx(Ko(e.getValue(n)), Ko(t.getValue(n))), sW = (e, t, n) => {
44536
+ const um = /([0-9]+)/gm, t9 = (e, t, n) => ZT(Ko(e.getValue(n)).toLowerCase(), Ko(t.getValue(n)).toLowerCase()), n9 = (e, t, n) => ZT(Ko(e.getValue(n)), Ko(t.getValue(n))), r9 = (e, t, n) => rx(Ko(e.getValue(n)).toLowerCase(), Ko(t.getValue(n)).toLowerCase()), o9 = (e, t, n) => rx(Ko(e.getValue(n)), Ko(t.getValue(n))), s9 = (e, t, n) => {
44527
44537
  const r = e.getValue(n), o = t.getValue(n);
44528
44538
  return r > o ? 1 : r < o ? -1 : 0;
44529
- }, iW = (e, t, n) => rx(e.getValue(n), t.getValue(n));
44539
+ }, i9 = (e, t, n) => rx(e.getValue(n), t.getValue(n));
44530
44540
  function rx(e, t) {
44531
44541
  return e === t ? 0 : e > t ? 1 : -1;
44532
44542
  }
@@ -44554,13 +44564,13 @@ function ZT(e, t) {
44554
44564
  return n.length - r.length;
44555
44565
  }
44556
44566
  const da = {
44557
- alphanumeric: tW,
44558
- alphanumericCaseSensitive: nW,
44559
- text: rW,
44560
- textCaseSensitive: oW,
44561
- datetime: sW,
44562
- basic: iW
44563
- }, aW = {
44567
+ alphanumeric: t9,
44568
+ alphanumericCaseSensitive: n9,
44569
+ text: r9,
44570
+ textCaseSensitive: o9,
44571
+ datetime: s9,
44572
+ basic: i9
44573
+ }, a9 = {
44564
44574
  getInitialState: (e) => ({
44565
44575
  sorting: [],
44566
44576
  ...e
@@ -44649,7 +44659,7 @@ const da = {
44649
44659
  e.setSorting(t ? [] : (n = (r = e.initialState) == null ? void 0 : r.sorting) != null ? n : []);
44650
44660
  }, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
44651
44661
  }
44652
- }, lW = [
44662
+ }, l9 = [
44653
44663
  M8,
44654
44664
  K8,
44655
44665
  U8,
@@ -44660,19 +44670,19 @@ const da = {
44660
44670
  //depends on ColumnFaceting
44661
44671
  X8,
44662
44672
  //depends on ColumnFiltering
44663
- aW,
44673
+ a9,
44664
44674
  B8,
44665
44675
  //depends on RowSorting
44666
44676
  Z8,
44667
44677
  J8,
44668
44678
  Q8,
44669
- eW,
44679
+ e9,
44670
44680
  W8
44671
44681
  ];
44672
- function cW(e) {
44682
+ function c9(e) {
44673
44683
  var t, n;
44674
44684
  process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
44675
- const r = [...lW, ...(t = e._features) != null ? t : []];
44685
+ const r = [...l9, ...(t = e._features) != null ? t : []];
44676
44686
  let o = {
44677
44687
  _features: r
44678
44688
  };
@@ -44776,7 +44786,7 @@ function cW(e) {
44776
44786
  }
44777
44787
  return o;
44778
44788
  }
44779
- function uW() {
44789
+ function u9() {
44780
44790
  return (e) => lt(() => [e.options.data], (t) => {
44781
44791
  const n = {
44782
44792
  rows: [],
@@ -44797,7 +44807,7 @@ function uW() {
44797
44807
  return n.rows = r(t), n;
44798
44808
  }, ct(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
44799
44809
  }
44800
- function dW(e) {
44810
+ function d9(e) {
44801
44811
  const t = [], n = (r) => {
44802
44812
  var o;
44803
44813
  t.push(r), (o = r.subRows) != null && o.length && r.getIsExpanded() && r.subRows.forEach(n);
@@ -44808,10 +44818,10 @@ function dW(e) {
44808
44818
  rowsById: e.rowsById
44809
44819
  };
44810
44820
  }
44811
- function fW(e, t, n) {
44812
- return n.options.filterFromLeafRows ? pW(e, t, n) : hW(e, t, n);
44821
+ function f9(e, t, n) {
44822
+ return n.options.filterFromLeafRows ? p9(e, t, n) : h9(e, t, n);
44813
44823
  }
44814
- function pW(e, t, n) {
44824
+ function p9(e, t, n) {
44815
44825
  var r;
44816
44826
  const o = [], s = {}, i = (r = n.options.maxLeafRowFilterDepth) != null ? r : 100, a = function(l, c) {
44817
44827
  c === void 0 && (c = 0);
@@ -44840,7 +44850,7 @@ function pW(e, t, n) {
44840
44850
  rowsById: s
44841
44851
  };
44842
44852
  }
44843
- function hW(e, t, n) {
44853
+ function h9(e, t, n) {
44844
44854
  var r;
44845
44855
  const o = [], s = {}, i = (r = n.options.maxLeafRowFilterDepth) != null ? r : 100, a = function(l, c) {
44846
44856
  c === void 0 && (c = 0);
@@ -44864,7 +44874,7 @@ function hW(e, t, n) {
44864
44874
  rowsById: s
44865
44875
  };
44866
44876
  }
44867
- function mW() {
44877
+ function m9() {
44868
44878
  return (e) => lt(() => [e.getPreFilteredRowModel(), e.getState().columnFilters, e.getState().globalFilter], (t, n, r) => {
44869
44879
  if (!t.rows.length || !(n != null && n.length) && !r) {
44870
44880
  for (let p = 0; p < t.flatRows.length; p++)
@@ -44928,10 +44938,10 @@ function mW() {
44928
44938
  return !1;
44929
44939
  return !0;
44930
44940
  };
44931
- return fW(t.rows, f, e);
44941
+ return f9(t.rows, f, e);
44932
44942
  }, ct(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
44933
44943
  }
44934
- function gW(e) {
44944
+ function g9(e) {
44935
44945
  return (t) => lt(() => [t.getState().pagination, t.getPrePaginationRowModel(), t.options.paginateExpandedRows ? void 0 : t.getState().expanded], (n, r) => {
44936
44946
  if (!r.rows.length)
44937
44947
  return r;
@@ -44951,7 +44961,7 @@ function gW(e) {
44951
44961
  rows: i,
44952
44962
  flatRows: a,
44953
44963
  rowsById: l
44954
- } : f = dW({
44964
+ } : f = d9({
44955
44965
  rows: i,
44956
44966
  flatRows: a,
44957
44967
  rowsById: l
@@ -44962,7 +44972,7 @@ function gW(e) {
44962
44972
  return f.rows.forEach(p), f;
44963
44973
  }, ct(t.options, "debugTable", "getPaginationRowModel"));
44964
44974
  }
44965
- function bW() {
44975
+ function b9() {
44966
44976
  return (e) => lt(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
44967
44977
  if (!n.rows.length || !(t != null && t.length))
44968
44978
  return n;
@@ -45012,21 +45022,21 @@ function bW() {
45012
45022
  }, ct(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
45013
45023
  }
45014
45024
  function Dc(e, t) {
45015
- return e ? vW(e) ? /* @__PURE__ */ k.createElement(e, t) : e : null;
45025
+ return e ? v9(e) ? /* @__PURE__ */ k.createElement(e, t) : e : null;
45016
45026
  }
45017
- function vW(e) {
45018
- return xW(e) || typeof e == "function" || yW(e);
45027
+ function v9(e) {
45028
+ return x9(e) || typeof e == "function" || y9(e);
45019
45029
  }
45020
- function xW(e) {
45030
+ function x9(e) {
45021
45031
  return typeof e == "function" && (() => {
45022
45032
  const t = Object.getPrototypeOf(e);
45023
45033
  return t.prototype && t.prototype.isReactComponent;
45024
45034
  })();
45025
45035
  }
45026
- function yW(e) {
45036
+ function y9(e) {
45027
45037
  return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
45028
45038
  }
45029
- function wW(e) {
45039
+ function w9(e) {
45030
45040
  const t = {
45031
45041
  state: {},
45032
45042
  // Dummy state
@@ -45036,7 +45046,7 @@ function wW(e) {
45036
45046
  renderFallbackValue: null,
45037
45047
  ...e
45038
45048
  }, [n] = k.useState(() => ({
45039
- current: cW(t)
45049
+ current: c9(t)
45040
45050
  })), [r, o] = k.useState(() => n.current.initialState);
45041
45051
  return n.current.setOptions((s) => ({
45042
45052
  ...s,
@@ -45052,7 +45062,7 @@ function wW(e) {
45052
45062
  }
45053
45063
  })), n.current;
45054
45064
  }
45055
- const kW = (e) => /* @__PURE__ */ u("span", { className: "font-semibold text-accent-text", children: e }), CW = [10, 25, 50, 100], d1 = {
45065
+ const k9 = (e) => /* @__PURE__ */ u("span", { className: "font-semibold text-accent-text", children: e }), C9 = [10, 25, 50, 100], d1 = {
45056
45066
  comfortable: "h-16",
45057
45067
  cozy: "h-[3.25rem]",
45058
45068
  compact: "h-11"
@@ -45061,7 +45071,7 @@ const kW = (e) => /* @__PURE__ */ u("span", { className: "font-semibold text-acc
45061
45071
  cozy: "px-4 text-sm",
45062
45072
  compact: "px-3 text-xs"
45063
45073
  };
45064
- function SW(e, t) {
45074
+ function S9(e, t) {
45065
45075
  const n = [];
45066
45076
  for (let r = 0; r < e.length; ) {
45067
45077
  const o = Math.max(1, Math.min(t(e[r].column.id) ?? 1, e.length - r));
@@ -45120,25 +45130,25 @@ function Of({
45120
45130
  }
45121
45131
  ) })
45122
45132
  )
45123
- }, ...t] : t, [t, r, y, w]), P = wW({
45133
+ }, ...t] : t, [t, r, y, w]), P = w9({
45124
45134
  data: e,
45125
45135
  columns: D,
45126
45136
  state: N ? { sorting: C, rowSelection: R, pagination: I } : { sorting: C, rowSelection: R },
45127
45137
  onSortingChange: S,
45128
45138
  onRowSelectionChange: E,
45129
45139
  enableRowSelection: r,
45130
- getCoreRowModel: uW(),
45131
- getSortedRowModel: bW(),
45132
- getFilteredRowModel: mW(),
45140
+ getCoreRowModel: u9(),
45141
+ getSortedRowModel: b9(),
45142
+ getFilteredRowModel: m9(),
45133
45143
  /* CONDITIONAL ON PURPOSE. TanStack paginates whenever this row model is
45134
45144
  registered — there is no "register it but leave it off". Registering it
45135
45145
  unconditionally would silently truncate every existing table that never
45136
45146
  asked for pages, which is exactly the regression `pageSize` being
45137
45147
  opt-in is meant to prevent. */
45138
- ...N ? { getPaginationRowModel: gW(), onPaginationChange: A } : {},
45148
+ ...N ? { getPaginationRowModel: g9(), onPaginationChange: A } : {},
45139
45149
  ...v ? { getRowId: v } : {}
45140
45150
  }), T = P.getRowModel().rows, $ = !i && T.length === 0, L = D.length, F = P.getFilteredRowModel().rows.length, _ = P.getAllLeafColumns().some((V) => V.columnDef.footer !== void 0), z = Array.from(
45141
- /* @__PURE__ */ new Set([...d ?? CW, I.pageSize])
45151
+ /* @__PURE__ */ new Set([...d ?? C9, I.pageSize])
45142
45152
  ).sort((V, U) => V - U);
45143
45153
  function O(V) {
45144
45154
  A({ pageIndex: 0, pageSize: V }), f?.(V);
@@ -45239,7 +45249,7 @@ function Of({
45239
45249
  it — see the prop's own doc for what that costs. */
45240
45250
  h?.(V.original, V.index)
45241
45251
  ),
45242
- children: SW(V.getVisibleCells(), (B) => g?.(V.original, B)).map(
45252
+ children: S9(V.getVisibleCells(), (B) => g?.(V.original, B)).map(
45243
45253
  ({ cell: B, span: j }) => /* @__PURE__ */ u(
45244
45254
  "td",
45245
45255
  {
@@ -45281,7 +45291,7 @@ function Of({
45281
45291
  )
45282
45292
  }
45283
45293
  ),
45284
- r && Object.keys(R).length > 0 && /* @__PURE__ */ u("p", { className: "text-xs text-secondary animate-fade-in", "aria-live": "polite", children: y.selectedCount(P.getSelectedRowModel().rows.length, w(P.getSelectedRowModel().rows.length), w(F), kW) }),
45294
+ r && Object.keys(R).length > 0 && /* @__PURE__ */ u("p", { className: "text-xs text-secondary animate-fade-in", "aria-live": "polite", children: y.selectedCount(P.getSelectedRowModel().rows.length, w(P.getSelectedRowModel().rows.length), w(F), k9) }),
45285
45295
  N && !i && F > 0 && /* @__PURE__ */ u(
45286
45296
  bG,
45287
45297
  {
@@ -45336,24 +45346,24 @@ const f1 = ht({
45336
45346
  gap: "bg-surface-inset text-tertiary italic"
45337
45347
  }
45338
45348
  }
45339
- }), EW = {
45349
+ }), E9 = {
45340
45350
  unchanged: " ",
45341
45351
  removed: "−",
45342
45352
  added: "+"
45343
45353
  };
45344
45354
  function yte({ before: e, after: t, label: n, context: r, className: o }) {
45345
- const s = he().lineDiff, i = zt(), a = NW(RW(p1(e), p1(t)), r);
45355
+ const s = he().lineDiff, i = zt(), a = N9(R9(p1(e), p1(t)), r);
45346
45356
  return /* @__PURE__ */ u("div", { role: "group", "aria-label": n, "data-slot": "line-diff", className: H("flex flex-col", o), children: a.map(
45347
45357
  (l, c) => l.kind === "gap" ? /* @__PURE__ */ M("div", { "data-slot": "line-diff-gap", className: f1({ kind: "gap" }), children: [
45348
45358
  /* @__PURE__ */ u("span", { "aria-hidden": !0, className: "select-none opacity-60", children: "⋯" }),
45349
45359
  /* @__PURE__ */ u("span", { children: s.unchangedLines(l.hidden, i(l.hidden)) })
45350
45360
  ] }, c) : /* @__PURE__ */ M("div", { className: f1({ kind: l.kind }), children: [
45351
- /* @__PURE__ */ u("span", { "aria-hidden": !0, className: "select-none opacity-60", children: EW[l.kind] }),
45361
+ /* @__PURE__ */ u("span", { "aria-hidden": !0, className: "select-none opacity-60", children: E9[l.kind] }),
45352
45362
  /* @__PURE__ */ u("span", { children: l.text.length === 0 ? " " : l.text })
45353
45363
  ] }, c)
45354
45364
  ) });
45355
45365
  }
45356
- function NW(e, t) {
45366
+ function N9(e, t) {
45357
45367
  if (t === void 0) return e;
45358
45368
  const n = e.map(() => !1);
45359
45369
  e.forEach((s, i) => {
@@ -45370,7 +45380,7 @@ function p1(e) {
45370
45380
  return e.length === 0 ? [] : e.split(`
45371
45381
  `);
45372
45382
  }
45373
- function RW(e, t) {
45383
+ function R9(e, t) {
45374
45384
  const n = e.length, r = t.length, o = Array.from({ length: n + 1 }, () => new Array(r + 1).fill(0));
45375
45385
  for (let l = n - 1; l >= 0; l--)
45376
45386
  for (let c = r - 1; c >= 0; c--)
@@ -45385,7 +45395,7 @@ function RW(e, t) {
45385
45395
  s.push({ kind: "added", text: t[a] }), a++;
45386
45396
  return s;
45387
45397
  }
45388
- const IW = {
45398
+ const I9 = {
45389
45399
  neutral: "border-border bg-surface-raised text-secondary",
45390
45400
  accent: "border-accent-border bg-accent-subtle text-accent-text",
45391
45401
  success: "border-success-border bg-success-subtle text-success-text",
@@ -45393,7 +45403,7 @@ const IW = {
45393
45403
  danger: "border-danger-border bg-danger-subtle text-danger-text",
45394
45404
  info: "border-info-border bg-info-subtle text-info-text",
45395
45405
  muted: "border-muted-border bg-muted-subtle text-muted-text"
45396
- }, MW = "border-dashed border-muted-border bg-surface text-muted-text", TW = {
45406
+ }, M9 = "border-dashed border-muted-border bg-surface text-muted-text", T9 = {
45397
45407
  neutral: "text-secondary",
45398
45408
  accent: "text-accent-text",
45399
45409
  success: "text-success-text",
@@ -45401,13 +45411,13 @@ const IW = {
45401
45411
  danger: "text-danger-text",
45402
45412
  info: "text-info-text",
45403
45413
  muted: "text-muted-text"
45404
- }, PW = {
45414
+ }, P9 = {
45405
45415
  sm: { chip: "size-5", overlap: "-ml-1.5", badge: "size-2.5", glyph: "xs" },
45406
45416
  md: { chip: "size-6", overlap: "-ml-2", badge: "size-3", glyph: "sm" },
45407
45417
  lg: { chip: "size-7", overlap: "-ml-2.5", badge: "size-3.5", glyph: "sm" }
45408
45418
  };
45409
45419
  function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s }) {
45410
- const i = PW[n];
45420
+ const i = P9[n];
45411
45421
  return /* @__PURE__ */ u(
45412
45422
  "span",
45413
45423
  {
@@ -45425,7 +45435,7 @@ function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s })
45425
45435
  "transition-[var(--tx-colors)] duration-(--dur-fast)",
45426
45436
  i.chip,
45427
45437
  l > 0 && i.overlap,
45428
- a.empty ? MW : IW[a.tone ?? "neutral"]
45438
+ a.empty ? M9 : I9[a.tone ?? "neutral"]
45429
45439
  ),
45430
45440
  children: [
45431
45441
  /* @__PURE__ */ u(ue, { name: a.icon, size: i.glyph }),
@@ -45435,7 +45445,7 @@ function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s })
45435
45445
  className: H(
45436
45446
  "absolute -right-1 -bottom-1 grid place-items-center rounded-full bg-surface ring-1 ring-surface",
45437
45447
  i.badge,
45438
- TW[a.badge.tone ?? "neutral"]
45448
+ T9[a.badge.tone ?? "neutral"]
45439
45449
  ),
45440
45450
  children: /* @__PURE__ */ u(ue, { name: a.badge.icon, className: "size-full" })
45441
45451
  }
@@ -45447,7 +45457,7 @@ function wte({ items: e, label: t, size: n = "md", className: r, ref: o, ...s })
45447
45457
  }
45448
45458
  );
45449
45459
  }
45450
- const dm = "danx-design:appearance", Gu = "danx-design:ready", Wu = "danx-design:error", OW = 500, Fl = {
45460
+ const dm = "danx-design:appearance", Gu = "danx-design:ready", Wu = "danx-design:error", O9 = 500, Fl = {
45451
45461
  theme: "theme",
45452
45462
  contrast: "contrast",
45453
45463
  uiScale: "ui-scale",
@@ -45469,7 +45479,7 @@ function h1(e) {
45469
45479
  }
45470
45480
  return t;
45471
45481
  }
45472
- function AW(e) {
45482
+ function A9(e) {
45473
45483
  if (!e2(e) || e.type !== dm) return null;
45474
45484
  const t = { type: dm };
45475
45485
  for (const n of QT) {
@@ -45481,41 +45491,41 @@ function AW(e) {
45481
45491
  }
45482
45492
  return t;
45483
45493
  }
45484
- function DW(e) {
45494
+ function D9(e) {
45485
45495
  return e2(e) ? e.type === Gu ? { type: Gu } : e.type === Wu && typeof e.message == "string" ? { type: Wu, message: e.message } : null : null;
45486
45496
  }
45487
45497
  const t2 = "default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:; connect-src 'none'; form-action 'none'; base-uri 'none'";
45488
- function _W(e) {
45498
+ function _9(e) {
45489
45499
  const t = e.createElement("meta");
45490
45500
  return t.setAttribute("http-equiv", "Content-Security-Policy"), t.setAttribute("content", t2), t;
45491
45501
  }
45492
- const $W = tv.map(
45502
+ const $9 = tv.map(
45493
45503
  (e) => `:root[data-theme="${e}"]{color-scheme:${e}}`
45494
45504
  ).join("");
45495
- function LW(e) {
45505
+ function L9(e) {
45496
45506
  const t = e.createElement("style");
45497
- return t.textContent = $W, t;
45507
+ return t.textContent = $9, t;
45498
45508
  }
45499
- function FW(e) {
45509
+ function F9(e) {
45500
45510
  return (e.doctype ? new XMLSerializer().serializeToString(e.doctype) : "") + e.documentElement.outerHTML;
45501
45511
  }
45502
- function VW(e, t) {
45512
+ function V9(e, t) {
45503
45513
  if (typeof e != "string" || e.trim() === "")
45504
45514
  throw new Error("SandboxedFrame: html must be a non-empty string");
45505
45515
  const n = new DOMParser().parseFromString(e, "text/html");
45506
- n.head.prepend(LW(n)), n.head.prepend(_W(n));
45516
+ n.head.prepend(L9(n)), n.head.prepend(_9(n));
45507
45517
  for (const [s, i] of Object.entries(Fl)) {
45508
45518
  const a = t[s];
45509
45519
  a !== void 0 && n.documentElement.setAttribute(`data-${i}`, a);
45510
45520
  }
45511
- const r = FW(n), o = new DOMParser().parseFromString(r, "text/html").head.firstElementChild;
45521
+ const r = F9(n), o = new DOMParser().parseFromString(r, "text/html").head.firstElementChild;
45512
45522
  if (!o || o.tagName !== "META" || o.getAttribute("http-equiv") !== "Content-Security-Policy" || o.getAttribute("content") !== t2)
45513
45523
  throw new Error(
45514
45524
  "SandboxedFrame: the Content-Security-Policy was not first in the document head; refusing to render"
45515
45525
  );
45516
45526
  return r;
45517
45527
  }
45518
- const Gp = { colorScheme: "normal" }, zW = Object.values(Fl).map((e) => `data-${e}`);
45528
+ const Gp = { colorScheme: "normal" }, z9 = Object.values(Fl).map((e) => `data-${e}`);
45519
45529
  function kte({
45520
45530
  html: e,
45521
45531
  title: t,
@@ -45527,7 +45537,7 @@ function kte({
45527
45537
  }) {
45528
45538
  const a = xe(null), l = xe(null), c = xe({ onReady: o, onError: s });
45529
45539
  c.current = { onReady: o, onError: s };
45530
- const d = Oe(() => VW(e, h1(document.documentElement)), [e]), f = () => {
45540
+ const d = Oe(() => V9(e, h1(document.documentElement)), [e]), f = () => {
45531
45541
  const g = a.current?.contentWindow;
45532
45542
  if (!g) return;
45533
45543
  const b = {
@@ -45541,12 +45551,12 @@ function kte({
45541
45551
  if (!g) return;
45542
45552
  const b = (v) => {
45543
45553
  if (v.source !== g.contentWindow) return;
45544
- const y = DW(v.data);
45545
- y && (y.type === Gu ? (f(), c.current.onReady?.()) : y.type === Wu && c.current.onError?.(y.message.slice(0, OW)));
45554
+ const y = D9(v.data);
45555
+ y && (y.type === Gu ? (f(), c.current.onReady?.()) : y.type === Wu && c.current.onError?.(y.message.slice(0, O9)));
45546
45556
  };
45547
45557
  window.addEventListener("message", b), g.addEventListener("load", f);
45548
45558
  const x = new MutationObserver(f);
45549
- return x.observe(document.documentElement, { attributes: !0, attributeFilter: zW }), () => {
45559
+ return x.observe(document.documentElement, { attributes: !0, attributeFilter: z9 }), () => {
45550
45560
  window.removeEventListener("message", b), g.removeEventListener("load", f), x.disconnect();
45551
45561
  };
45552
45562
  }, []), Qt(() => {
@@ -45602,10 +45612,10 @@ function kte({
45602
45612
  }
45603
45613
  ) });
45604
45614
  }
45605
- function BW(e) {
45615
+ function B9(e) {
45606
45616
  const t = (n) => {
45607
45617
  if (n.source !== window.parent) return;
45608
- const r = AW(n.data);
45618
+ const r = A9(n.data);
45609
45619
  if (!r) return;
45610
45620
  const o = {};
45611
45621
  for (const [s, i] of Object.entries(Fl)) {
@@ -45616,16 +45626,16 @@ function BW(e) {
45616
45626
  };
45617
45627
  return window.addEventListener("message", t), () => window.removeEventListener("message", t);
45618
45628
  }
45619
- function HW() {
45629
+ function H9() {
45620
45630
  const e = { type: Gu };
45621
45631
  window.parent.postMessage(e, "*");
45622
45632
  }
45623
- function UW(e) {
45633
+ function U9(e) {
45624
45634
  const t = { type: Wu, message: String(e) };
45625
45635
  window.parent.postMessage(t, "*");
45626
45636
  }
45627
- const Cte = { onAppearance: BW, ready: HW, reportError: UW };
45628
- function jW(e, t) {
45637
+ const Cte = { onAppearance: B9, ready: H9, reportError: U9 };
45638
+ function j9(e, t) {
45629
45639
  const n = [];
45630
45640
  for (const o of e)
45631
45641
  n.push({
@@ -45647,7 +45657,7 @@ function jW(e, t) {
45647
45657
  });
45648
45658
  return { items: n, containers: r };
45649
45659
  }
45650
- function GW(e, t) {
45660
+ function G9(e, t) {
45651
45661
  return t.x >= e.left && t.x <= e.right && t.y >= e.top && t.y <= e.bottom;
45652
45662
  }
45653
45663
  function qu(e) {
@@ -45656,17 +45666,17 @@ function qu(e) {
45656
45666
  function n2(e, t) {
45657
45667
  let n = null;
45658
45668
  for (const r of e.containers)
45659
- GW(r.rect, t) && (!n || qu(r.rect) < qu(n.rect)) && (n = r);
45669
+ G9(r.rect, t) && (!n || qu(r.rect) < qu(n.rect)) && (n = r);
45660
45670
  return n;
45661
45671
  }
45662
- function WW(e, t) {
45672
+ function W9(e, t) {
45663
45673
  const n = Math.max(e.left - t.x, 0, t.x - e.right), r = Math.max(e.top - t.y, 0, t.y - e.bottom);
45664
45674
  return Math.hypot(n, r);
45665
45675
  }
45666
- function qW(e, t) {
45676
+ function q9(e, t) {
45667
45677
  let n = null, r = 1 / 0;
45668
45678
  for (const o of e.containers) {
45669
- const s = WW(o.rect, t);
45679
+ const s = W9(o.rect, t);
45670
45680
  s > r + 1e-3 || (s < r - 1e-3 || n === null || qu(o.rect) < qu(n.rect)) && (n = o, r = s);
45671
45681
  }
45672
45682
  return n;
@@ -45676,7 +45686,7 @@ function eu(e, t, n) {
45676
45686
  (r) => r.container === t && r.id !== n
45677
45687
  );
45678
45688
  }
45679
- function KW(e, t, n, r) {
45689
+ function K9(e, t, n, r) {
45680
45690
  const o = eu(e, t.id, r), s = t.axis === "x" ? n.x : n.y;
45681
45691
  for (let i = 0; i < o.length; i++) {
45682
45692
  const a = o[i].rect, l = t.axis === "x" ? a.left + a.width / 2 : a.top + a.height / 2;
@@ -45685,8 +45695,8 @@ function KW(e, t, n, r) {
45685
45695
  return o.length;
45686
45696
  }
45687
45697
  function Wp(e, t, n) {
45688
- const r = n2(e, t) ?? qW(e, t);
45689
- return r ? { container: r.id, index: KW(e, r, t, n) } : null;
45698
+ const r = n2(e, t) ?? q9(e, t);
45699
+ return r ? { container: r.id, index: K9(e, r, t, n) } : null;
45690
45700
  }
45691
45701
  function fm(e, t) {
45692
45702
  return e === t ? !0 : !e || !t ? !1 : e.container === t.container && e.index === t.index;
@@ -45704,7 +45714,7 @@ function Vl(e, t, n) {
45704
45714
  function s2(e, t) {
45705
45715
  return e.phase !== "dragging" || e.over?.container !== t ? null : e.from?.container === t ? "own" : "other";
45706
45716
  }
45707
- function YW(e, t) {
45717
+ function Y9(e, t) {
45708
45718
  const n = e.getBoundingClientRect();
45709
45719
  return { x: t.x - n.left, y: t.y - n.top };
45710
45720
  }
@@ -45717,7 +45727,7 @@ const fa = {
45717
45727
  point: null,
45718
45728
  grab: null
45719
45729
  };
45720
- class XW {
45730
+ class X9 {
45721
45731
  state = fa;
45722
45732
  listeners = /* @__PURE__ */ new Set();
45723
45733
  items = /* @__PURE__ */ new Map();
@@ -45815,7 +45825,7 @@ class XW {
45815
45825
  * in flight without the drag having caused it.
45816
45826
  */
45817
45827
  remeasure() {
45818
- return this.layout = jW(this.items.values(), this.containers.values()), this.layout;
45828
+ return this.layout = j9(this.items.values(), this.containers.values()), this.layout;
45819
45829
  }
45820
45830
  getLayout() {
45821
45831
  return this.layout;
@@ -45840,7 +45850,7 @@ class XW {
45840
45850
  answer was 17.0,28.0, putting the clone ~8px left and ~14px above the
45841
45851
  card. The session is the only place that holds the item's registered
45842
45852
  element, so it is the only place that can be right. */
45843
- grab: t.point ? YW(n.element, t.point) : null
45853
+ grab: t.point ? Y9(n.element, t.point) : null
45844
45854
  }), t.pending || this.fan("onDragStart", { id: t.id, from: r, mode: t.mode }), !0;
45845
45855
  }
45846
45856
  /** Promote a `pending` pointer into a real drag once its constraint is met. */
@@ -45946,7 +45956,7 @@ class XW {
45946
45956
  return eu(n, t, this.state.id).length;
45947
45957
  }
45948
45958
  }
45949
- const ZW = {
45959
+ const Z9 = {
45950
45960
  /* 5px is below the travel of a deliberate click on every pointing device
45951
45961
  tested by the platforms that publish a figure, and above the jitter of a
45952
45962
  hand resting on a trackpad. */
@@ -45960,7 +45970,7 @@ const ZW = {
45960
45970
  tolerance: 8
45961
45971
  };
45962
45972
  function el(e, t, n = {}) {
45963
- const r = { ...ZW, ...n.activation };
45973
+ const r = { ...Z9, ...n.activation };
45964
45974
  let o = null, s = null, i = null, a = null, l = !1;
45965
45975
  const c = (S) => ({ x: S.clientX, y: S.clientY });
45966
45976
  function d() {
@@ -46027,7 +46037,7 @@ function el(e, t, n = {}) {
46027
46037
  g(), e.removeEventListener("pointerdown", v);
46028
46038
  };
46029
46039
  }
46030
- function JW(e, t, n) {
46040
+ function J9(e, t, n) {
46031
46041
  return el(
46032
46042
  t,
46033
46043
  {
@@ -46042,7 +46052,7 @@ function JW(e, t, n) {
46042
46052
  { activation: n.activation }
46043
46053
  );
46044
46054
  }
46045
- function QW(e) {
46055
+ function Q9(e) {
46046
46056
  function t(r) {
46047
46057
  r.key === "Escape" && e.getState().phase !== "idle" && (r.preventDefault(), e.cancel());
46048
46058
  }
@@ -46053,14 +46063,14 @@ function QW(e) {
46053
46063
  window.removeEventListener("keydown", t), window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", n);
46054
46064
  };
46055
46065
  }
46056
- const e9 = {
46066
+ const e7 = {
46057
46067
  y: { ArrowUp: -1, ArrowDown: 1 },
46058
46068
  x: { ArrowLeft: -1, ArrowRight: 1 }
46059
- }, t9 = {
46069
+ }, t7 = {
46060
46070
  y: { ArrowLeft: -1, ArrowRight: 1 },
46061
46071
  x: { ArrowUp: -1, ArrowDown: 1 }
46062
46072
  };
46063
- function n9(e, t, n) {
46073
+ function n7(e, t, n) {
46064
46074
  const r = n.axis ?? "y";
46065
46075
  function o() {
46066
46076
  const a = e.getState();
@@ -46079,12 +46089,12 @@ function n9(e, t, n) {
46079
46089
  return;
46080
46090
  }
46081
46091
  if (!o()) return;
46082
- const l = e9[r][a.key];
46092
+ const l = e7[r][a.key];
46083
46093
  if (l !== void 0) {
46084
46094
  a.preventDefault(), e.moveIndex(l);
46085
46095
  return;
46086
46096
  }
46087
- const c = t9[r][a.key];
46097
+ const c = t7[r][a.key];
46088
46098
  c !== void 0 && (a.preventDefault(), e.moveContainer(c));
46089
46099
  }
46090
46100
  function i(a) {
@@ -46096,12 +46106,12 @@ function n9(e, t, n) {
46096
46106
  t.removeEventListener("keydown", s), t.removeEventListener("focusout", i);
46097
46107
  };
46098
46108
  }
46099
- const r9 = /^(auto|scroll|overlay)$/;
46109
+ const r7 = /^(auto|scroll|overlay)$/;
46100
46110
  function i2(e, { axes: t = ["y"], mustOverflow: n = !1 } = {}) {
46101
46111
  const r = getComputedStyle(e);
46102
46112
  return t.some((o) => {
46103
46113
  const s = o === "y" ? r.overflowY : r.overflowX;
46104
- return r9.test(s) ? n ? o === "y" ? e.scrollHeight > e.clientHeight : e.scrollWidth > e.clientWidth : !0 : !1;
46114
+ return r7.test(s) ? n ? o === "y" ? e.scrollHeight > e.clientHeight : e.scrollWidth > e.clientWidth : !0 : !1;
46105
46115
  });
46106
46116
  }
46107
46117
  function ox(e, { includeSelf: t, ...n }) {
@@ -46176,7 +46186,7 @@ function sx(e, t = {}) {
46176
46186
  }
46177
46187
  return l = mI() ? n.reducedMaxSpeed : n.maxSpeed, r = requestAnimationFrame(d), c;
46178
46188
  }
46179
- function o9(e, t = {}) {
46189
+ function o7(e, t = {}) {
46180
46190
  function n() {
46181
46191
  const i = e.getState();
46182
46192
  if (i.phase !== "dragging" || i.mode !== "keyboard" || !i.over || !i.id) return;
@@ -46224,33 +46234,33 @@ function o9(e, t = {}) {
46224
46234
  s(), o?.();
46225
46235
  };
46226
46236
  }
46227
- const ix = Rn(null), s9 = ix.Provider;
46237
+ const ix = Rn(null), s7 = ix.Provider;
46228
46238
  function Ste(e) {
46229
46239
  const t = gn(ix);
46230
46240
  if (!t)
46231
46241
  throw new Error(`<${e}> must be rendered inside a <DragDrop>.`);
46232
46242
  return t;
46233
46243
  }
46234
- function i9(e) {
46244
+ function i7(e) {
46235
46245
  const t = xe(null);
46236
- t.current ??= new XW(e);
46246
+ t.current ??= new X9(e);
46237
46247
  const n = t.current;
46238
- return n.setCallbacks(e), _e(() => QW(n), [n]), n;
46248
+ return n.setCallbacks(e), _e(() => Q9(n), [n]), n;
46239
46249
  }
46240
46250
  function qi(e) {
46241
46251
  return Yn(e.subscribe, e.getState, e.getState);
46242
46252
  }
46243
- const a9 = () => () => {
46253
+ const a7 = () => () => {
46244
46254
  };
46245
- function l9() {
46255
+ function l7() {
46246
46256
  const e = gn(ix);
46247
46257
  return Yn(
46248
- e ? e.subscribe : a9,
46258
+ e ? e.subscribe : a7,
46249
46259
  () => e?.getState().phase === "dragging",
46250
46260
  () => !1
46251
46261
  );
46252
46262
  }
46253
- function c9(e, t) {
46263
+ function c7(e, t) {
46254
46264
  const { id: n, container: r, index: o, axis: s = "y", disabled: i = !1, activation: a } = t, [l, c] = ne(null), [d, f] = ne(null);
46255
46265
  _e(() => {
46256
46266
  if (l)
@@ -46259,10 +46269,10 @@ function c9(e, t) {
46259
46269
  const p = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, h = xe(a);
46260
46270
  h.current = a, _e(() => {
46261
46271
  if (!d || i) return;
46262
- const g = JW(e, d, {
46272
+ const g = J9(e, d, {
46263
46273
  id: n,
46264
46274
  activation: h.current
46265
- }), b = n9(e, d, { id: n, axis: s });
46275
+ }), b = n7(e, d, { id: n, axis: s });
46266
46276
  return () => {
46267
46277
  g(), b();
46268
46278
  };
@@ -46274,7 +46284,7 @@ function c9(e, t) {
46274
46284
  isDragging: m.phase === "dragging" && m.id === n
46275
46285
  };
46276
46286
  }
46277
- function u9(e, t) {
46287
+ function u7(e, t) {
46278
46288
  const { id: n, axis: r = "y", offset: o, total: s, crossDrop: i } = t, [a, l] = ne(null);
46279
46289
  _e(() => {
46280
46290
  if (a)
@@ -46287,7 +46297,7 @@ function u9(e, t) {
46287
46297
  overIndex: d ? c.over?.index ?? null : null
46288
46298
  };
46289
46299
  }
46290
- const c2 = "danxbot-dnd-instructions", d9 = 150;
46300
+ const c2 = "danxbot-dnd-instructions", d7 = 150;
46291
46301
  function g1(e, t, n) {
46292
46302
  return Vl(e.crossDropOf(n.container), t.container, n.container);
46293
46303
  }
@@ -46304,7 +46314,7 @@ function Kp(e, t, n, r, o, s) {
46304
46314
  totalText: a.format(i.total)
46305
46315
  };
46306
46316
  }
46307
- function f9(e, t = {}) {
46317
+ function f7(e, t = {}) {
46308
46318
  const [n, r] = ne(""), o = xe(t);
46309
46319
  o.current = t;
46310
46320
  const s = he().dragDrop, i = xe(s);
@@ -46320,7 +46330,7 @@ function f9(e, t = {}) {
46320
46330
  h(), p.current = Date.now(), r((y) => y === v ? y : v);
46321
46331
  }
46322
46332
  function g(v) {
46323
- const y = d9 - (Date.now() - p.current);
46333
+ const y = d7 - (Date.now() - p.current);
46324
46334
  if (y <= 0) {
46325
46335
  m(v);
46326
46336
  return;
@@ -46377,8 +46387,8 @@ function f9(e, t = {}) {
46377
46387
  };
46378
46388
  }, [e]), { message: n, instructionsId: c2 };
46379
46389
  }
46380
- function p9({ session: e, ...t }) {
46381
- const { message: n } = f9(e, t);
46390
+ function p7({ session: e, ...t }) {
46391
+ const { message: n } = f7(e, t);
46382
46392
  return /* @__PURE__ */ u(
46383
46393
  "div",
46384
46394
  {
@@ -46390,11 +46400,11 @@ function p9({ session: e, ...t }) {
46390
46400
  }
46391
46401
  );
46392
46402
  }
46393
- function h9({ id: e } = {}) {
46403
+ function h7({ id: e } = {}) {
46394
46404
  const t = he().dragDrop;
46395
46405
  return /* @__PURE__ */ u("p", { "data-dnd-instructions": "", id: e ?? c2, className: "sr-only", children: t.instructions });
46396
46406
  }
46397
- const u2 = Rn(null), d2 = Rn(null), f2 = Rn(null), p2 = Rn(!1), m9 = u2.Provider, g9 = d2.Provider, b1 = f2.Provider, b9 = p2.Provider;
46407
+ const u2 = Rn(null), d2 = Rn(null), f2 = Rn(null), p2 = Rn(!1), m7 = u2.Provider, g7 = d2.Provider, b1 = f2.Provider, b7 = p2.Provider;
46398
46408
  function h2() {
46399
46409
  return gn(p2);
46400
46410
  }
@@ -46647,8 +46657,8 @@ const Gs = ht({
46647
46657
  }
46648
46658
  },
46649
46659
  defaultVariants: { axis: "y", mode: "pointer", moving: !1 }
46650
- }), pm = { x: "left", y: "top" }, g2 = { x: "right", y: "bottom" }, v9 = { x: "width", y: "height" };
46651
- function x9(e, t, n) {
46660
+ }), pm = { x: "left", y: "top" }, g2 = { x: "right", y: "bottom" }, v7 = { x: "width", y: "height" };
46661
+ function x7(e, t, n) {
46652
46662
  const r = v1(e, t, n);
46653
46663
  if (r !== null) return r;
46654
46664
  for (const o of e.containers) {
@@ -46666,14 +46676,14 @@ function v1(e, t, n) {
46666
46676
  }
46667
46677
  return null;
46668
46678
  }
46669
- function y9(e) {
46679
+ function y7(e) {
46670
46680
  return e.phase !== "dragging" || !e.id || !e.point || !e.grab ? null : { x: e.point.x - e.grab.x, y: e.point.y - e.grab.y };
46671
46681
  }
46672
46682
  function b2(e, t, n) {
46673
46683
  if (t.phase !== "dragging" || !t.id || !t.from || !t.over || !e) return null;
46674
46684
  const r = e.containers.find((p) => p.id === n), o = e.items.find((p) => p.id === t.id);
46675
46685
  if (!r || !o) return null;
46676
- const s = r.axis, i = o.rect[v9[s]], a = x9(e, n, s), l = i + a, c = t.from.container === n ? t.from.index : null, d = t.over.container === n && !Vl(r.crossDrop, t.from.container, n) ? t.over.index : null, f = (p) => c !== null && p >= c ? -l : 0;
46686
+ const s = r.axis, i = o.rect[v7[s]], a = x7(e, n, s), l = i + a, c = t.from.container === n ? t.from.index : null, d = t.over.container === n && !Vl(r.crossDrop, t.from.container, n) ? t.over.index : null, f = (p) => c !== null && p >= c ? -l : 0;
46677
46687
  return {
46678
46688
  axis: s,
46679
46689
  restCount: e.items.filter(
@@ -46687,7 +46697,7 @@ function b2(e, t, n) {
46687
46697
  markerShift: f
46688
46698
  };
46689
46699
  }
46690
- function w9(e, t) {
46700
+ function w7(e, t) {
46691
46701
  if (t.phase !== "dragging" || !t.id || !t.over || !e) return null;
46692
46702
  const n = t.over.container, r = b2(e, t, n), o = e.containers.find((h) => h.id === n);
46693
46703
  if (!r || !o) return null;
@@ -46712,9 +46722,9 @@ function w9(e, t) {
46712
46722
  function v2(e, t) {
46713
46723
  return { translate: e === "x" ? `${t}px 0` : `0 ${t}px` };
46714
46724
  }
46715
- const k9 = () => {
46725
+ const k7 = () => {
46716
46726
  };
46717
- function C9(e) {
46727
+ function C7(e) {
46718
46728
  const t = xe([]), n = xe([]), r = xe(null), o = Re(() => {
46719
46729
  const i = t.current;
46720
46730
  if (i.length === 0) return;
@@ -46777,11 +46787,11 @@ function ax({
46777
46787
  children: r,
46778
46788
  ...o
46779
46789
  }) {
46780
- const s = i9(o), i = C9(o.onDragEnd !== void 0), a = Tt(), l = Gs(), { threshold: c, maxSpeed: d, reducedMaxSpeed: f } = e ?? {}, p = Oe(
46790
+ const s = i7(o), i = C7(o.onDragEnd !== void 0), a = Tt(), l = Gs(), { threshold: c, maxSpeed: d, reducedMaxSpeed: f } = e ?? {}, p = Oe(
46781
46791
  () => ({ threshold: c, maxSpeed: d, reducedMaxSpeed: f }),
46782
46792
  [c, d, f]
46783
46793
  );
46784
- _e(() => o9(s, p), [s, p]);
46794
+ _e(() => o7(s, p), [s, p]);
46785
46795
  const h = xe({
46786
46796
  item: /* @__PURE__ */ new Map(),
46787
46797
  container: /* @__PURE__ */ new Map()
@@ -46796,16 +46806,16 @@ function ax({
46796
46806
  [s, a, t, m, i]
46797
46807
  );
46798
46808
  return /* @__PURE__ */ M("div", { className: H(l.root(), n), children: [
46799
- /* @__PURE__ */ u(h9, { id: a }),
46809
+ /* @__PURE__ */ u(h7, { id: a }),
46800
46810
  /* @__PURE__ */ u(
46801
- p9,
46811
+ p7,
46802
46812
  {
46803
46813
  session: s,
46804
46814
  labelOf: (b) => h.current.item.get(b) ?? b,
46805
46815
  containerLabelOf: (b) => h.current.container.get(b) ?? b
46806
46816
  }
46807
46817
  ),
46808
- /* @__PURE__ */ u(s9, { value: s, children: /* @__PURE__ */ u(m9, { value: g, children: r }) })
46818
+ /* @__PURE__ */ u(s7, { value: s, children: /* @__PURE__ */ u(m7, { value: g, children: r }) })
46809
46819
  ] });
46810
46820
  }
46811
46821
  function lx({
@@ -46818,7 +46828,7 @@ function lx({
46818
46828
  className: i,
46819
46829
  children: a
46820
46830
  }) {
46821
- const { session: l, registerLabel: c } = Ki("DragDropContainer"), { setContainerRef: d, isOver: f } = u9(l, { id: e, axis: n, offset: r, total: o, crossDrop: s }), p = qi(l), h = Gs({ axis: n });
46831
+ const { session: l, registerLabel: c } = Ki("DragDropContainer"), { setContainerRef: d, isOver: f } = u7(l, { id: e, axis: n, offset: r, total: o, crossDrop: s }), p = qi(l), h = Gs({ axis: n });
46822
46832
  _e(
46823
46833
  () => c("container", e, t),
46824
46834
  [c, e, t]
@@ -46831,7 +46841,7 @@ function lx({
46831
46841
  "data-dnd-container": e,
46832
46842
  "data-dnd-over": f ? "true" : void 0,
46833
46843
  className: H(h.container(), i),
46834
- children: /* @__PURE__ */ M(g9, { value: g, children: [
46844
+ children: /* @__PURE__ */ M(g7, { value: g, children: [
46835
46845
  a,
46836
46846
  m && m.markerAt !== null && m.restCount === 0 && /* @__PURE__ */ u(w2, { shift: m, at: m.restCount })
46837
46847
  ] })
@@ -46845,7 +46855,7 @@ function cx({
46845
46855
  className: r,
46846
46856
  children: o
46847
46857
  }) {
46848
- const { session: s, renderCarried: i, registerLabel: a, census: l } = Ki("DragDropItem"), { id: c, axis: d, shift: f } = Df("DragDropItem"), { setItemRef: p, setHandleRef: h } = c9(s, {
46858
+ const { session: s, renderCarried: i, registerLabel: a, census: l } = Ki("DragDropItem"), { id: c, axis: d, shift: f } = Df("DragDropItem"), { setItemRef: p, setHandleRef: h } = c7(s, {
46849
46859
  id: e,
46850
46860
  container: c,
46851
46861
  index: t,
@@ -46897,17 +46907,17 @@ function cx({
46897
46907
  }
46898
46908
  ),
46899
46909
  y && w,
46900
- g && /* @__PURE__ */ u(S9, { id: e, state: m, layout: s.getLayout(), children: /* @__PURE__ */ u(b1, { value: { id: e, setHandleRef: k9, label: n }, children: i ? i(e) : o }) })
46910
+ g && /* @__PURE__ */ u(S7, { id: e, state: m, layout: s.getLayout(), children: /* @__PURE__ */ u(b1, { value: { id: e, setHandleRef: k7, label: n }, children: i ? i(e) : o }) })
46901
46911
  ] })
46902
46912
  );
46903
46913
  }
46904
- function S9({
46914
+ function S7({
46905
46915
  id: e,
46906
46916
  state: t,
46907
46917
  layout: n,
46908
46918
  children: r
46909
46919
  }) {
46910
- const o = t.mode ?? "pointer", s = Gs({ mode: o }), i = y9(t), a = i ? null : w9(n, t), l = i ? { left: i.x, top: i.y, width: n?.items.find((c) => c.id === e)?.rect.width } : a && { left: a.left, top: a.top, width: a.width };
46920
+ const o = t.mode ?? "pointer", s = Gs({ mode: o }), i = y7(t), a = i ? null : w7(n, t), l = i ? { left: i.x, top: i.y, width: n?.items.find((c) => c.id === e)?.rect.width } : a && { left: a.left, top: a.top, width: a.width };
46911
46921
  return l ? HO(
46912
46922
  /* @__PURE__ */ u(
46913
46923
  "div",
@@ -46916,13 +46926,13 @@ function S9({
46916
46926
  "aria-hidden": "true",
46917
46927
  className: s.overlay(),
46918
46928
  style: { translate: `${l.left}px ${l.top}px`, width: l.width },
46919
- children: /* @__PURE__ */ u(b9, { value: !0, children: r })
46929
+ children: /* @__PURE__ */ u(b7, { value: !0, children: r })
46920
46930
  }
46921
46931
  ),
46922
46932
  document.body
46923
46933
  ) : null;
46924
46934
  }
46925
- const E9 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
46935
+ const E7 = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
46926
46936
  function x2({ label: e, className: t, children: n }) {
46927
46937
  const { instructionsId: r, census: o } = Ki("DragDropSurface"), { axis: s } = Df("DragDropSurface"), { id: i, setHandleRef: a, label: l } = m2("DragDropSurface"), c = h2();
46928
46938
  _e(() => c ? void 0 : o.source(i), [o, i, c]);
@@ -46934,7 +46944,7 @@ function x2({ label: e, className: t, children: n }) {
46934
46944
  );
46935
46945
  return _e(() => {
46936
46946
  if (!f || c) return;
46937
- const b = f.querySelector(E9);
46947
+ const b = f.querySelector(E7);
46938
46948
  if (m(b === null), !b) return;
46939
46949
  const x = b.getAttribute("aria-describedby"), v = x ? x.split(/\s+/).filter(Boolean) : [];
46940
46950
  if (!v.includes(r))
@@ -47001,8 +47011,8 @@ function w2({
47001
47011
  }
47002
47012
  );
47003
47013
  }
47004
- const N9 = 200, k2 = (e) => ox(e, { includeSelf: !1 });
47005
- function R9(e) {
47014
+ const N7 = 200, k2 = (e) => ox(e, { includeSelf: !1 });
47015
+ function R7(e) {
47006
47016
  const t = e.getBoundingClientRect(), n = k2(e);
47007
47017
  if (n === null) {
47008
47018
  const i = e.ownerDocument.defaultView;
@@ -47011,7 +47021,7 @@ function R9(e) {
47011
47021
  const r = n.getBoundingClientRect(), o = parseFloat(getComputedStyle(n).borderTopWidth) || 0, s = t.top - r.top - o + n.scrollTop;
47012
47022
  return n.clientHeight - s;
47013
47023
  }
47014
- function I9(e = !0) {
47024
+ function I7(e = !0) {
47015
47025
  const [t, n] = ne(null);
47016
47026
  return Qt(() => {
47017
47027
  if (t === null) return;
@@ -47020,8 +47030,8 @@ function I9(e = !0) {
47020
47030
  t.style.removeProperty("height");
47021
47031
  return;
47022
47032
  }
47023
- const i = R9(t);
47024
- if (!(i >= N9)) {
47033
+ const i = R7(t);
47034
+ if (!(i >= N7)) {
47025
47035
  t.style.removeProperty("height");
47026
47036
  return;
47027
47037
  }
@@ -47050,7 +47060,7 @@ function C2(e, t) {
47050
47060
  function ux(e, t) {
47051
47061
  return (e?.offset ?? 0) + t;
47052
47062
  }
47053
- function M9(e, t, n) {
47063
+ function M7(e, t, n) {
47054
47064
  const r = /* @__PURE__ */ new Map();
47055
47065
  for (const i of t) r.set(i.id, []);
47056
47066
  const o = [];
@@ -47113,7 +47123,7 @@ function Ete(e, t, n) {
47113
47123
  );
47114
47124
  return o < r.length ? { beforeId: n(r[o]) } : o > 0 ? { afterId: n(r[o - 1]) } : {};
47115
47125
  }
47116
- function T9(e, t, n) {
47126
+ function T7(e, t, n) {
47117
47127
  const { from: r, to: o } = e;
47118
47128
  if (r.columnId !== o.columnId) return !1;
47119
47129
  if (o.lane) return !0;
@@ -47125,7 +47135,7 @@ function T9(e, t, n) {
47125
47135
  const s = ux(t, r.index);
47126
47136
  return o.edge === "top" ? s === 0 : s === C2(t, n) - 1;
47127
47137
  }
47128
- function P9(e, t) {
47138
+ function P7(e, t) {
47129
47139
  const { items: n, columns: r, accessors: o, validateMove: s } = e;
47130
47140
  if (t.moves.length === 0)
47131
47141
  return { verdict: { ok: !0 }, commit: [] };
@@ -47136,7 +47146,7 @@ function P9(e, t) {
47136
47146
  const g = o.getColumnId(m);
47137
47147
  l.set(g, (l.get(g) ?? 0) + 1);
47138
47148
  }
47139
- const c = new Map(r.map((m) => [m.id, m])), d = (m) => T9(m, c.get(m.from.columnId), l.get(m.from.columnId) ?? 0), f = /* @__PURE__ */ new Map();
47149
+ const c = new Map(r.map((m) => [m.id, m])), d = (m) => T7(m, c.get(m.from.columnId), l.get(m.from.columnId) ?? 0), f = /* @__PURE__ */ new Map();
47140
47150
  for (const m of t.moves)
47141
47151
  d(m) || f.set(
47142
47152
  m.from.columnId,
@@ -47267,18 +47277,18 @@ function x1(e, t, n) {
47267
47277
  o.has(s) || (o.add(s), r.push(s));
47268
47278
  return r.flatMap((s) => n.get(s) ?? []);
47269
47279
  }
47270
- const O9 = [];
47280
+ const O7 = [];
47271
47281
  function E2(e) {
47272
47282
  const { items: t, columns: n, accessors: r, validateMove: o, onMove: s, selection: i } = e, a = Oe(
47273
- () => M9(t, n, r),
47283
+ () => M7(t, n, r),
47274
47284
  [t, n, r]
47275
47285
  ), l = Re(
47276
47286
  (g) => {
47277
- const b = P9({ items: t, columns: n, accessors: r, validateMove: o }, g);
47287
+ const b = P7({ items: t, columns: n, accessors: r, validateMove: o }, g);
47278
47288
  return b.verdict.ok && b.commit.length > 0 && s({ moves: b.commit, source: g.source }), b.verdict;
47279
47289
  },
47280
47290
  [t, n, r, o, s]
47281
- ), c = i?.selected, d = i?.onChange, f = c ?? O9, p = Re(
47291
+ ), c = i?.selected, d = i?.onChange, f = c ?? O7, p = Re(
47282
47292
  (g) => {
47283
47293
  d?.(g);
47284
47294
  },
@@ -47456,7 +47466,7 @@ function Rte({
47456
47466
  className: d,
47457
47467
  ...f
47458
47468
  }) {
47459
- const p = y1({ fill: c }), h = he(), m = h.kanban, g = h.board, b = xt(), x = I9(c), [v, y] = ne(null), w = Oe(() => t.flatMap((T) => T.items), [t]), C = Oe(
47469
+ const p = y1({ fill: c }), h = he(), m = h.kanban, g = h.board, b = xt(), x = I7(c), [v, y] = ne(null), w = Oe(() => t.flatMap((T) => T.items), [t]), C = Oe(
47460
47470
  () => t.map((T) => ({
47461
47471
  id: T.id,
47462
47472
  label: T.label,
@@ -47645,21 +47655,21 @@ function Rte({
47645
47655
  );
47646
47656
  }
47647
47657
  const N2 = Rn(!1);
47648
- function A9() {
47658
+ function A7() {
47649
47659
  return gn(N2);
47650
47660
  }
47651
- const R2 = Rn(null), I2 = Rn(null), M2 = Rn(null), D9 = R2.Provider, _9 = I2.Provider, $9 = M2.Provider;
47661
+ const R2 = Rn(null), I2 = Rn(null), M2 = Rn(null), D7 = R2.Provider, _7 = I2.Provider, $7 = M2.Provider;
47652
47662
  function T2(e) {
47653
47663
  const t = gn(R2);
47654
47664
  if (!t) throw new Error(`<${e}> must be rendered inside a <Board>.`);
47655
47665
  return t;
47656
47666
  }
47657
- function L9(e) {
47667
+ function L7(e) {
47658
47668
  const t = gn(I2);
47659
47669
  if (!t) throw new Error(`<${e}> must be rendered inside a <BoardColumn>.`);
47660
47670
  return t;
47661
47671
  }
47662
- function F9(e) {
47672
+ function F7(e) {
47663
47673
  const t = gn(M2);
47664
47674
  if (!t) throw new Error(`<${e}> must be rendered inside a <BoardCard>.`);
47665
47675
  return t;
@@ -47812,7 +47822,7 @@ function Ite({
47812
47822
  renderCarried: w,
47813
47823
  className: H("flex flex-col gap-3", c),
47814
47824
  children: [
47815
- /* @__PURE__ */ u(D9, { value: E, children: /* @__PURE__ */ u("div", { className: H("flex min-h-0 flex-1 gap-4", d), children: p(h) }) }),
47825
+ /* @__PURE__ */ u(D7, { value: E, children: /* @__PURE__ */ u("div", { className: H("flex min-h-0 flex-1 gap-4", d), children: p(h) }) }),
47816
47826
  b && /* @__PURE__ */ M("div", { role: "status", "aria-live": "polite", className: zl().rejection(), children: [
47817
47827
  /* @__PURE__ */ u(ue, { name: "triangle-alert", size: "xs" }),
47818
47828
  b
@@ -47849,7 +47859,7 @@ function Tte({
47849
47859
  className: l.empty()
47850
47860
  }
47851
47861
  ), m = /* @__PURE__ */ u(
47852
- U9,
47862
+ U7,
47853
47863
  {
47854
47864
  count: e.counting ? null : e.count,
47855
47865
  wipLimit: e.wipLimit,
@@ -47874,8 +47884,8 @@ function Tte({
47874
47884
  ] })
47875
47885
  ] }),
47876
47886
  /* @__PURE__ */ M("div", { className: "relative flex min-h-0 flex-1 flex-col", children: [
47877
- e.reorderLocked !== void 0 && /* @__PURE__ */ u(z9, { columnId: e.id, message: e.reorderLocked }),
47878
- p === "lane" && /* @__PURE__ */ u(B9, { columnId: e.id }),
47887
+ e.reorderLocked !== void 0 && /* @__PURE__ */ u(z7, { columnId: e.id, message: e.reorderLocked }),
47888
+ p === "lane" && /* @__PURE__ */ u(B7, { columnId: e.id }),
47879
47889
  /* @__PURE__ */ u("div", { role: "list", "aria-label": e.label, className: l.list(), children: /* @__PURE__ */ u(
47880
47890
  lx,
47881
47891
  {
@@ -47886,8 +47896,8 @@ function Tte({
47886
47896
  total: e.counting ? void 0 : e.count,
47887
47897
  crossDrop: p,
47888
47898
  className: H("min-h-24 flex-1 p-2", r),
47889
- children: /* @__PURE__ */ u(_9, { value: f, children: /* @__PURE__ */ u(
47890
- V9,
47899
+ children: /* @__PURE__ */ u(_7, { value: f, children: /* @__PURE__ */ u(
47900
+ V7,
47891
47901
  {
47892
47902
  isEmpty: e.count === 0 && !e.counting,
47893
47903
  emptyState: h,
@@ -47901,7 +47911,7 @@ function Tte({
47901
47911
  }
47902
47912
  );
47903
47913
  }
47904
- function V9({
47914
+ function V7({
47905
47915
  isEmpty: e,
47906
47916
  emptyState: t,
47907
47917
  children: n
@@ -47909,19 +47919,19 @@ function V9({
47909
47919
  const { shift: r } = Df("BoardColumn");
47910
47920
  return e ? r && r.markerAt !== null ? null : /* @__PURE__ */ u(We, { children: t }) : /* @__PURE__ */ u(We, { children: n });
47911
47921
  }
47912
- function z9({ columnId: e, message: t }) {
47922
+ function z7({ columnId: e, message: t }) {
47913
47923
  const { session: n } = Ki("BoardColumn"), r = qi(n);
47914
47924
  return s2(r, e) !== "own" ? null : /* @__PURE__ */ M("div", { role: "status", "data-board-reorder-locked": "", className: zl().reorderLocked(), children: [
47915
47925
  /* @__PURE__ */ u(ue, { name: "info", size: "xs" }),
47916
47926
  t
47917
47927
  ] });
47918
47928
  }
47919
- function B9({ columnId: e }) {
47929
+ function B7({ columnId: e }) {
47920
47930
  const { session: t } = Ki("BoardColumn"), n = qi(t);
47921
47931
  return s2(n, e) !== "other" ? null : /* @__PURE__ */ u("div", { "aria-hidden": "true", "data-board-lane-drop": "", className: zl().laneDrop() });
47922
47932
  }
47923
- const H9 = "–";
47924
- function U9({
47933
+ const H7 = "–";
47934
+ function U7({
47925
47935
  count: e,
47926
47936
  wipLimit: t,
47927
47937
  overWip: n,
@@ -47938,13 +47948,13 @@ function U9({
47938
47948
  ),
47939
47949
  children: [
47940
47950
  n && /* @__PURE__ */ u(ue, { name: "triangle-alert", size: "xs" }),
47941
- n && e !== null && t !== void 0 ? s(i.format(e), i.format(t)) : e === null ? H9 : i.format(e)
47951
+ n && e !== null && t !== void 0 ? s(i.format(e), i.format(t)) : e === null ? H7 : i.format(e)
47942
47952
  ]
47943
47953
  }
47944
47954
  );
47945
47955
  }
47946
47956
  function Pte({ id: e, index: t, label: n, className: r, children: o }) {
47947
- const { columnId: s } = L9("BoardCard"), i = xe(!1), a = Re(() => (i.current = !0, () => {
47957
+ const { columnId: s } = L7("BoardCard"), i = xe(!1), a = Re(() => (i.current = !0, () => {
47948
47958
  i.current = !1;
47949
47959
  }), []);
47950
47960
  _e(() => {
@@ -47956,10 +47966,10 @@ function Pte({ id: e, index: t, label: n, className: r, children: o }) {
47956
47966
  () => ({ itemId: e, index: t, label: n, registerHandle: a }),
47957
47967
  [e, t, n, a]
47958
47968
  );
47959
- return /* @__PURE__ */ u(cx, { id: e, index: t, label: n, className: r, children: /* @__PURE__ */ u($9, { value: l, children: /* @__PURE__ */ u("div", { role: "listitem", children: o(/* @__PURE__ */ u(j9, { columnId: s })) }) }) });
47969
+ return /* @__PURE__ */ u(cx, { id: e, index: t, label: n, className: r, children: /* @__PURE__ */ u($7, { value: l, children: /* @__PURE__ */ u("div", { role: "listitem", children: o(/* @__PURE__ */ u(j7, { columnId: s })) }) }) });
47960
47970
  }
47961
- function j9({ columnId: e }) {
47962
- const t = T2("BoardCardHandle"), n = F9("BoardCardHandle"), r = A9(), [o, s] = ne(!1), i = zl(), a = he().board, { registerHandle: l } = n;
47971
+ function j7({ columnId: e }) {
47972
+ const t = T2("BoardCardHandle"), n = F7("BoardCardHandle"), r = A7(), [o, s] = ne(!1), i = zl(), a = he().board, { registerHandle: l } = n;
47963
47973
  _e(() => l(), [l]);
47964
47974
  const c = t.columns.find((w) => w.id === e), d = t.columns.filter((w) => w.id !== e), f = ux(c, n.index), p = c?.items.length ?? 0;
47965
47975
  function h(w) {
@@ -47998,17 +48008,17 @@ function j9({ columnId: e }) {
47998
48008
  )
47999
48009
  ] });
48000
48010
  }
48001
- function G9(e) {
48011
+ function G7(e) {
48002
48012
  return e ? e.shown ? "ready" : e.status === "ready" ? "waiting" : e.status : "unheld";
48003
48013
  }
48004
- function W9(e, t) {
48014
+ function W7(e, t) {
48005
48015
  return e > 0 ? e : t > 0 ? 1 : 0;
48006
48016
  }
48007
- function q9(e, t, n, r) {
48017
+ function q7(e, t, n, r) {
48008
48018
  return Math.min(t, n - e * t) * r;
48009
48019
  }
48010
- const K9 = 0.5;
48011
- function Y9(e) {
48020
+ const K7 = 0.5;
48021
+ function Y7(e) {
48012
48022
  const [t, n] = ne(e), r = xe(/* @__PURE__ */ new Set()), o = xe(/* @__PURE__ */ new Map()), s = xe({ height: 0, count: 0 }), i = xe(null), a = Re((c) => {
48013
48023
  const d = o.current.get(c);
48014
48024
  d && (s.current.height += d.height, s.current.count += d.count, o.current.delete(c));
@@ -48024,7 +48034,7 @@ function Y9(e) {
48024
48034
  f += m.height, p += m.count;
48025
48035
  if (p === 0) return;
48026
48036
  const h = f / p;
48027
- n((m) => Math.abs(m - h) < K9 ? m : h);
48037
+ n((m) => Math.abs(m - h) < K7 ? m : h);
48028
48038
  });
48029
48039
  i.current = c;
48030
48040
  for (const d of r.current) c.observe(d);
@@ -48040,15 +48050,15 @@ function Y9(e) {
48040
48050
  );
48041
48051
  return { pitch: t, observe: l };
48042
48052
  }
48043
- function X9(e) {
48053
+ function X7(e) {
48044
48054
  return Number(e.dataset.page);
48045
48055
  }
48046
- function Z9(e) {
48056
+ function Z7(e) {
48047
48057
  if (e.size === 0) return null;
48048
- const t = [...e].map(X9).sort((n, r) => n - r);
48058
+ const t = [...e].map(X7).sort((n, r) => n - r);
48049
48059
  return t[Math.floor((t.length - 1) / 2)];
48050
48060
  }
48051
- function J9(e, t) {
48061
+ function J7(e, t) {
48052
48062
  const n = xe(/* @__PURE__ */ new Set()), r = xe(/* @__PURE__ */ new Set()), o = xe(null);
48053
48063
  return _e(() => {
48054
48064
  if (!e) return;
@@ -48056,7 +48066,7 @@ function J9(e, t) {
48056
48066
  (a) => {
48057
48067
  for (const c of a)
48058
48068
  c.isIntersecting ? r.current.add(c.target) : r.current.delete(c.target);
48059
- const l = Z9(r.current);
48069
+ const l = Z7(r.current);
48060
48070
  l !== null && t(l);
48061
48071
  },
48062
48072
  { root: e.el }
@@ -48070,20 +48080,20 @@ function J9(e, t) {
48070
48080
  n.current.delete(i), o.current?.unobserve(i), r.current.delete(i);
48071
48081
  }), []) };
48072
48082
  }
48073
- function Q9() {
48083
+ function Q7() {
48074
48084
  const [e, t] = ne(null);
48075
48085
  return { ref: Re((r) => {
48076
48086
  t(r ? { el: ox(r, { includeSelf: !0 }) } : null);
48077
48087
  }, []), scroller: e };
48078
48088
  }
48079
- const e7 = 0.1, t7 = 12;
48080
- function n7(e) {
48081
- const t = Math.min(t7, Math.round(e * e7)), n = Math.max(1, e - t);
48089
+ const eW = 0.1, tW = 12;
48090
+ function nW(e) {
48091
+ const t = Math.min(tW, Math.round(e * eW)), n = Math.max(1, e - t);
48082
48092
  return {
48083
48093
  backgroundImage: `repeating-linear-gradient(to bottom, var(--surface-raised) 0, var(--surface-raised) ${n}px, transparent ${n}px, transparent ${e}px)`
48084
48094
  };
48085
48095
  }
48086
- function r7({
48096
+ function rW({
48087
48097
  page: e,
48088
48098
  status: t,
48089
48099
  children: n,
@@ -48105,7 +48115,7 @@ function r7({
48105
48115
  "data-count": d ? r : void 0,
48106
48116
  "aria-hidden": d || t === "error" ? void 0 : !0,
48107
48117
  className: H("min-w-0 shrink-0", t === "loading" && "animate-pulse"),
48108
- style: d ? void 0 : { minHeight: o, ...t === "loading" ? n7(s) : null },
48118
+ style: d ? void 0 : { minHeight: o, ...t === "loading" ? nW(s) : null },
48109
48119
  children: [
48110
48120
  d && n,
48111
48121
  t === "error" && /* @__PURE__ */ M("div", { role: "alert", className: "flex items-center gap-2 px-3 py-2 text-xs text-danger-text", children: [
@@ -48123,9 +48133,9 @@ function Ote({
48123
48133
  estimatedItemHeight: r,
48124
48134
  className: o
48125
48135
  }) {
48126
- const s = he().pagedWindowList, { setAnchorPage: i, setFrozen: a, invalidatePage: l, pageSize: c, pageCount: d, epoch: f, offset: p } = e, h = l9();
48136
+ const s = he().pagedWindowList, { setAnchorPage: i, setFrozen: a, invalidatePage: l, pageSize: c, pageCount: d, epoch: f, offset: p } = e, h = l7();
48127
48137
  _e(() => (a(h), () => a(!1)), [h, a]);
48128
- const { ref: m, scroller: g } = Q9(), { observe: b } = J9(g, i), { pitch: x, observe: v } = Y9(r), y = Re(
48138
+ const { ref: m, scroller: g } = Q7(), { observe: b } = J7(g, i), { pitch: x, observe: v } = Y7(r), y = Re(
48129
48139
  (D) => {
48130
48140
  if (!D) return;
48131
48141
  const P = b(D), T = v(D);
@@ -48140,17 +48150,17 @@ function Ote({
48140
48150
  }, [f, g]);
48141
48151
  const C = new Map(e.pages.map((D) => [D.page, D])), S = e.total ?? c, R = Math.max(1, Math.round(x)), E = [];
48142
48152
  let N = 0;
48143
- const I = W9(d, C.size);
48153
+ const I = W7(d, C.size);
48144
48154
  for (let D = 0; D < I; D++) {
48145
- const P = C.get(D), T = G9(P), $ = N, L = T === "ready" ? P.items : [];
48155
+ const P = C.get(D), T = G7(P), $ = N, L = T === "ready" ? P.items : [];
48146
48156
  N += L.length, E.push(
48147
48157
  /* @__PURE__ */ u(
48148
- r7,
48158
+ rW,
48149
48159
  {
48150
48160
  page: D,
48151
48161
  status: T,
48152
48162
  count: L.length,
48153
- height: q9(D, c, S, R),
48163
+ height: q7(D, c, S, R),
48154
48164
  pitch: R,
48155
48165
  blockRef: y,
48156
48166
  errorText: s.failed,
@@ -48174,13 +48184,13 @@ function Ote({
48174
48184
  }
48175
48185
  );
48176
48186
  }
48177
- const o7 = 200;
48178
- function s7(e, t, n) {
48187
+ const oW = 200;
48188
+ function sW(e, t, n) {
48179
48189
  const r = Math.floor((n - 1) / 2), o = Math.max(0, e - r), s = Math.min(t - 1, e + (n - 1 - r)), i = [];
48180
48190
  for (let a = o; a <= s; a++) i.push(a);
48181
48191
  return i;
48182
48192
  }
48183
- class i7 {
48193
+ class iW {
48184
48194
  pageSize;
48185
48195
  windowPages;
48186
48196
  settleMs;
@@ -48214,7 +48224,7 @@ class i7 {
48214
48224
  loadPage: r,
48215
48225
  loadCount: o,
48216
48226
  mode: s = "pages",
48217
- settleMs: i = o7
48227
+ settleMs: i = oW
48218
48228
  }) {
48219
48229
  if (!Number.isInteger(t) || t < 1)
48220
48230
  throw new Error(`PagedWindowStore: pageSize must be a positive integer, got ${t}.`);
@@ -48319,7 +48329,7 @@ class i7 {
48319
48329
  if (this.mode === "count") return [];
48320
48330
  if (this.total === null || this.total === 0) return [0];
48321
48331
  const t = Math.min(this.appliedAnchor, this.pageCount() - 1);
48322
- return s7(t, this.pageCount(), this.windowPages);
48332
+ return sW(t, this.pageCount(), this.windowPages);
48323
48333
  }
48324
48334
  /** Bring the held pages to the wanted ones — unless frozen, when that waits for the thaw. */
48325
48335
  sync() {
@@ -48482,7 +48492,7 @@ function Ate({
48482
48492
  settleMs: i
48483
48493
  }) {
48484
48494
  const a = xe(null);
48485
- a.current ??= new i7({ pageSize: e, windowPages: t, loadPage: n, loadCount: r, mode: s, settleMs: i });
48495
+ a.current ??= new iW({ pageSize: e, windowPages: t, loadPage: n, loadCount: r, mode: s, settleMs: i });
48486
48496
  const l = a.current, c = xe({ pageSize: e, windowPages: t, settleMs: i });
48487
48497
  if (c.current.pageSize !== e || c.current.windowPages !== t || c.current.settleMs !== i)
48488
48498
  throw new Error(
@@ -48516,7 +48526,7 @@ const P2 = (e) => (t) => {
48516
48526
  archive: "folder",
48517
48527
  table: "table",
48518
48528
  file: "file"
48519
- }, a7 = [
48529
+ }, aW = [
48520
48530
  [/^image\//, "image"],
48521
48531
  [/^video\//, "video"],
48522
48532
  [/^audio\//, "audio"],
@@ -48525,15 +48535,15 @@ const P2 = (e) => (t) => {
48525
48535
  [/pdf/, "text"],
48526
48536
  [/zip|tar|gzip|compressed/, "archive"],
48527
48537
  [/csv|sheet|excel/, "table"]
48528
- ], l7 = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif"], c7 = ["mp4", "webm", "mov", "m4v", "ogv"], u7 = ["ts", "tsx", "js", "jsx", "py", "rs", "go", "json", "sh", "css"], d7 = ["md", "txt", "rtf", "pdf", "doc", "docx", "ppt", "pptx"], f7 = ["csv", "xlsx", "xls"];
48538
+ ], lW = ["png", "jpg", "jpeg", "gif", "webp", "svg", "avif"], cW = ["mp4", "webm", "mov", "m4v", "ogv"], uW = ["ts", "tsx", "js", "jsx", "py", "rs", "go", "json", "sh", "css"], dW = ["md", "txt", "rtf", "pdf", "doc", "docx", "ppt", "pptx"], fW = ["csv", "xlsx", "xls"];
48529
48539
  function dx(e) {
48530
- const t = e.mimeType ?? "", n = a7.find(([o]) => o.test(t));
48540
+ const t = e.mimeType ?? "", n = aW.find(([o]) => o.test(t));
48531
48541
  if (n) return n[1];
48532
48542
  const r = e.name.split(".").pop()?.toLowerCase() ?? "";
48533
- return l7.includes(r) ? "image" : c7.includes(r) ? "video" : u7.includes(r) ? "code" : d7.includes(r) ? "text" : f7.includes(r) ? "table" : "file";
48543
+ return lW.includes(r) ? "image" : cW.includes(r) ? "video" : uW.includes(r) ? "code" : dW.includes(r) ? "text" : fW.includes(r) ? "table" : "file";
48534
48544
  }
48535
- const p7 = (e) => O2[e], fx = (e) => O2[dx(e)], px = (e) => dx(e) === "image", hx = (e) => dx(e) === "video";
48536
- function h7(e) {
48545
+ const pW = (e) => O2[e], fx = (e) => O2[dx(e)], px = (e) => dx(e) === "image", hx = (e) => dx(e) === "video";
48546
+ function hW(e) {
48537
48547
  return e.includes("#") ? e : `${e}#t=0.001`;
48538
48548
  }
48539
48549
  function hm({ file: e, iconSize: t, className: n }) {
@@ -48541,7 +48551,7 @@ function hm({ file: e, iconSize: t, className: n }) {
48541
48551
  return s && r !== s ? /* @__PURE__ */ u("img", { src: s, alt: "", loading: "lazy", className: n, onError: () => o(s) }) : hx(e) && e.url && r !== e.url ? /* @__PURE__ */ u(
48542
48552
  "video",
48543
48553
  {
48544
- src: h7(e.url),
48554
+ src: hW(e.url),
48545
48555
  preload: "metadata",
48546
48556
  muted: !0,
48547
48557
  playsInline: !0,
@@ -48758,7 +48768,7 @@ function D2({
48758
48768
  }
48759
48769
  );
48760
48770
  }
48761
- function m7({
48771
+ function mW({
48762
48772
  value: e,
48763
48773
  onValueChange: t,
48764
48774
  onSubmit: n,
@@ -48934,15 +48944,15 @@ function Yo(e, t, n = {}) {
48934
48944
  const o = n.zone ?? _2(), s = Kn(o, r);
48935
48945
  return wU(Nn(t, xU).format(yU(s)));
48936
48946
  }
48937
- const g7 = String.raw`(?:,?\s+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\s*([^\d\s].*?))?)?`, b7 = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?\s*(Z|[+-]\d{2}:?\d{2})$/;
48947
+ const gW = String.raw`(?:,?\s+(\d{1,2}):(\d{2})(?::(\d{2}))?(?:\s*([^\d\s].*?))?)?`, bW = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?\s*(Z|[+-]\d{2}:?\d{2})$/;
48938
48948
  function Dte(e, t, n = {}) {
48939
48949
  const r = VI(e, t).trim();
48940
48950
  if (r === "") return null;
48941
- if (b7.test(r)) {
48951
+ if (bW.test(r)) {
48942
48952
  const g = $2(r);
48943
48953
  return g === null ? null : new Date(g).toISOString();
48944
48954
  }
48945
- const { order: o, source: s } = zI(t), i = new RegExp(`^${s}${g7}$`).exec(r);
48955
+ const { order: o, source: s } = zI(t), i = new RegExp(`^${s}${gW}$`).exec(r);
48946
48956
  if (!i) return null;
48947
48957
  const { year: a, month: l, day: c } = BI(o, i);
48948
48958
  if (l < 1 || l > 12 || c < 1 || c > Ni(a, l)) return null;
@@ -48983,7 +48993,7 @@ function Fte(e, t) {
48983
48993
  function mx(e) {
48984
48994
  return typeof e == "number" ? e : e instanceof Date ? e.getTime() : Date.parse(e);
48985
48995
  }
48986
- function v7(e, t, n, r = Date.now()) {
48996
+ function vW(e, t, n, r = Date.now()) {
48987
48997
  const o = Ut(n, {}).format, s = mx(e);
48988
48998
  if (Number.isNaN(s)) return t.unknown;
48989
48999
  const i = Math.max(0, Math.round((r - s) / 1e3));
@@ -48997,11 +49007,11 @@ function v7(e, t, n, r = Date.now()) {
48997
49007
  const f = Math.round(c / 7);
48998
49008
  return t.weeksAgo(f, o(f));
48999
49009
  }
49000
- const x7 = 1e3, Yp = 3600 * 1e3, _o = /* @__PURE__ */ new Set();
49010
+ const xW = 1e3, Yp = 3600 * 1e3, _o = /* @__PURE__ */ new Set();
49001
49011
  let tu;
49002
- function y7(e, t, n) {
49012
+ function yW(e, t, n) {
49003
49013
  const r = t(e, n);
49004
- let o = n, s = x7, i;
49014
+ let o = n, s = xW, i;
49005
49015
  for (; ; ) {
49006
49016
  const a = n + Math.min(s, Yp);
49007
49017
  if (t(e, a) !== r) {
@@ -49025,12 +49035,12 @@ function Ku() {
49025
49035
  if (gx(), _o.size === 0 || document.visibilityState === "hidden") return;
49026
49036
  let e = 1 / 0;
49027
49037
  for (const { nextChangeAt: t } of _o) e = Math.min(e, t);
49028
- tu = setTimeout(w7, Math.max(1, e - Date.now()));
49038
+ tu = setTimeout(wW, Math.max(1, e - Date.now()));
49029
49039
  }
49030
49040
  function bx(e) {
49031
- e.nextChangeAt = y7(e.at, e.format, Date.now());
49041
+ e.nextChangeAt = yW(e.at, e.format, Date.now());
49032
49042
  }
49033
- function w7() {
49043
+ function wW() {
49034
49044
  const e = Date.now();
49035
49045
  for (const t of [..._o])
49036
49046
  t.nextChangeAt > e || (t.onChange(), bx(t));
@@ -49045,19 +49055,19 @@ function k1() {
49045
49055
  e.onChange(), bx(e);
49046
49056
  Ku();
49047
49057
  }
49048
- function k7(e, t, n) {
49058
+ function kW(e, t, n) {
49049
49059
  const r = { at: e, format: t, onChange: n, nextChangeAt: 0 };
49050
49060
  return bx(r), _o.size === 0 && document.addEventListener("visibilitychange", k1), _o.add(r), Ku(), () => {
49051
49061
  _o.delete(r), _o.size === 0 ? (gx(), document.removeEventListener("visibilitychange", k1)) : Ku();
49052
49062
  };
49053
49063
  }
49054
- function C7() {
49064
+ function CW() {
49055
49065
  const e = he().relativeAge, t = xt();
49056
- return Oe(() => (n, r) => v7(n, e, t, r), [e, t]);
49066
+ return Oe(() => (n, r) => vW(n, e, t, r), [e, t]);
49057
49067
  }
49058
49068
  function vx(e, t) {
49059
- const n = C7(), r = t ?? n, o = mx(e), s = !Number.isNaN(o), i = Re(
49060
- (a) => s ? k7(o, r, a) : () => {
49069
+ const n = CW(), r = t ?? n, o = mx(e), s = !Number.isNaN(o), i = Re(
49070
+ (a) => s ? kW(o, r, a) : () => {
49061
49071
  },
49062
49072
  [o, s, r]
49063
49073
  );
@@ -49067,13 +49077,13 @@ function Xo({ at: e, format: t, tooltip: n, className: r }) {
49067
49077
  const o = xt(), s = vx(e, t), i = mx(e), a = !Number.isNaN(i), l = n === !1 ? null : n ?? (a ? Yo(i, o) : null), c = /* @__PURE__ */ u("time", { dateTime: a ? new Date(i).toISOString() : void 0, className: r, children: s });
49068
49078
  return l === null ? c : /* @__PURE__ */ u(Gt, { content: l, children: c });
49069
49079
  }
49070
- function S7(e) {
49080
+ function SW(e) {
49071
49081
  let t = e;
49072
49082
  (t.match(/`/g) ?? []).length % 2 === 1 && (t += "`"), (t.match(/\*\*/g) ?? []).length % 2 === 1 && (t += "**");
49073
49083
  const o = (t.match(/\[/g) ?? []).length - (t.match(/\]/g) ?? []).length;
49074
49084
  return o > 0 && (t += "]".repeat(o)), t;
49075
49085
  }
49076
- function E7(e) {
49086
+ function EW(e) {
49077
49087
  const t = e.split(`
49078
49088
  `), n = [];
49079
49089
  let r = 0;
@@ -49082,7 +49092,7 @@ function E7(e) {
49082
49092
  if (!o) {
49083
49093
  const l = r;
49084
49094
  for (; r < t.length && !Ha.test(t[r]); ) r++;
49085
- n.push(S7(t.slice(l, r).join(`
49095
+ n.push(SW(t.slice(l, r).join(`
49086
49096
  `)));
49087
49097
  continue;
49088
49098
  }
@@ -49094,11 +49104,11 @@ function E7(e) {
49094
49104
  return n.join(`
49095
49105
  `);
49096
49106
  }
49097
- const N7 = fd(function({
49107
+ const NW = fd(function({
49098
49108
  children: t,
49099
49109
  ...n
49100
49110
  }) {
49101
- const r = Oe(() => E7(t), [t]);
49111
+ const r = Oe(() => EW(t), [t]);
49102
49112
  return /* @__PURE__ */ u(Si, { ...n, children: r });
49103
49113
  }), Lc = [
49104
49114
  "var(--color-accent)",
@@ -49107,7 +49117,7 @@ const N7 = fd(function({
49107
49117
  "var(--color-success)",
49108
49118
  "var(--color-brand)"
49109
49119
  ];
49110
- function R7({
49120
+ function RW({
49111
49121
  segments: e,
49112
49122
  capacity: t,
49113
49123
  limits: n,
@@ -49235,7 +49245,7 @@ function R7({
49235
49245
  l
49236
49246
  ),
49237
49247
  children: [
49238
- /* @__PURE__ */ u(I7, { fraction: m, tone: b, label: d.dialLabel }),
49248
+ /* @__PURE__ */ u(IW, { fraction: m, tone: b, label: d.dialLabel }),
49239
49249
  /* @__PURE__ */ u(
49240
49250
  "span",
49241
49251
  {
@@ -49261,7 +49271,7 @@ function R7({
49261
49271
  }
49262
49272
  );
49263
49273
  }
49264
- function I7({ fraction: e, tone: t, label: n }) {
49274
+ function IW({ fraction: e, tone: t, label: n }) {
49265
49275
  const r = t === "danger" ? "danger" : t === "warning" ? "warning" : "accent";
49266
49276
  return /* @__PURE__ */ u(
49267
49277
  oU,
@@ -49288,13 +49298,13 @@ function L2({ children: e, active: t = !0, className: n }) {
49288
49298
  }
49289
49299
  );
49290
49300
  }
49291
- const M7 = {
49301
+ const MW = {
49292
49302
  running: { icon: "loader-circle", className: "animate-spin text-accent-text" },
49293
49303
  success: { icon: "check", className: "text-success" },
49294
49304
  error: { icon: "circle-x", className: "text-danger" }
49295
49305
  };
49296
- function T7({ part: e, defaultOpen: t = !1, className: n }) {
49297
- const r = he().chat.message, o = M7[e.status], { added: s, removed: i } = e.stats ?? {}, a = /* @__PURE__ */ M("span", { className: "flex w-full items-center gap-2 text-left", children: [
49306
+ function TW({ part: e, defaultOpen: t = !1, className: n }) {
49307
+ const r = he().chat.message, o = MW[e.status], { added: s, removed: i } = e.stats ?? {}, a = /* @__PURE__ */ M("span", { className: "flex w-full items-center gap-2 text-left", children: [
49298
49308
  /* @__PURE__ */ u(ue, { name: o.icon, size: "xs", className: H("shrink-0", o.className) }),
49299
49309
  /* @__PURE__ */ u("span", { className: "min-w-0 flex-1 truncate text-xs text-secondary", children: e.status === "running" ? /* @__PURE__ */ u(L2, { children: e.summary }) : e.summary }),
49300
49310
  s !== void 0 && s > 0 && /* @__PURE__ */ M("span", { className: "shrink-0 font-mono text-2xs text-success", children: [
@@ -49344,7 +49354,7 @@ function T7({ part: e, defaultOpen: t = !1, className: n }) {
49344
49354
  }
49345
49355
  );
49346
49356
  }
49347
- function P7({ text: e, label: t, streaming: n }) {
49357
+ function PW({ text: e, label: t, streaming: n }) {
49348
49358
  const r = he().chat.message;
49349
49359
  return /* @__PURE__ */ u(
49350
49360
  Vb,
@@ -49388,7 +49398,7 @@ function C1({ reason: e, name: t }) {
49388
49398
  }
49389
49399
  );
49390
49400
  }
49391
- function O7({
49401
+ function OW({
49392
49402
  part: e,
49393
49403
  context: t,
49394
49404
  renderers: n,
@@ -49399,13 +49409,13 @@ function O7({
49399
49409
  const i = he().chat.message;
49400
49410
  switch (e.type) {
49401
49411
  case "text":
49402
- return n?.text ? /* @__PURE__ */ u(We, { children: n.text(e, t) }) : /* @__PURE__ */ u(N7, { children: e.text });
49412
+ return n?.text ? /* @__PURE__ */ u(We, { children: n.text(e, t) }) : /* @__PURE__ */ u(NW, { children: e.text });
49403
49413
  case "code":
49404
49414
  return n?.code ? /* @__PURE__ */ u(We, { children: n.code(e, t) }) : /* @__PURE__ */ u(fb, { code: e.code, language: e.language, filename: e.filename });
49405
49415
  case "reasoning":
49406
- return n?.reasoning ? /* @__PURE__ */ u(We, { children: n.reasoning(e, t) }) : /* @__PURE__ */ u(P7, { text: e.text, label: e.label, streaming: e.streaming });
49416
+ return n?.reasoning ? /* @__PURE__ */ u(We, { children: n.reasoning(e, t) }) : /* @__PURE__ */ u(PW, { text: e.text, label: e.label, streaming: e.streaming });
49407
49417
  case "tool":
49408
- return n?.tool ? /* @__PURE__ */ u(We, { children: n.tool(e, t) }) : /* @__PURE__ */ u(T7, { part: e });
49418
+ return n?.tool ? /* @__PURE__ */ u(We, { children: n.tool(e, t) }) : /* @__PURE__ */ u(TW, { part: e });
49409
49419
  case "file":
49410
49420
  return n?.file ? /* @__PURE__ */ u(We, { children: n.file(e, t) }) : /* @__PURE__ */ u("div", { className: "my-1.5", children: /* @__PURE__ */ u(
49411
49421
  A2,
@@ -49432,7 +49442,7 @@ function O7({
49432
49442
  }
49433
49443
  }
49434
49444
  }
49435
- function A7({
49445
+ function AW({
49436
49446
  message: e,
49437
49447
  renderers: t,
49438
49448
  components: n,
@@ -49462,7 +49472,7 @@ function A7({
49462
49472
  }
49463
49473
  ),
49464
49474
  e.parts.map((C, S) => /* @__PURE__ */ u(
49465
- O7,
49475
+ OW,
49466
49476
  {
49467
49477
  part: C,
49468
49478
  context: x,
@@ -49616,7 +49626,7 @@ function S1({
49616
49626
  }
49617
49627
  ) });
49618
49628
  }
49619
- function D7({
49629
+ function DW({
49620
49630
  children: e,
49621
49631
  threshold: t = 64,
49622
49632
  jumpLabel: n,
@@ -49696,7 +49706,7 @@ function D7({
49696
49706
  )
49697
49707
  ] });
49698
49708
  }
49699
- function _7(e) {
49709
+ function _W(e) {
49700
49710
  const t = e.flatMap(
49701
49711
  (n) => n.pages && n.pages.length > 0 ? n.pages.map((r) => ({ file: n, page: r })) : [{ file: n, page: null }]
49702
49712
  );
@@ -49708,7 +49718,7 @@ function Xp(e) {
49708
49718
  function _f(e) {
49709
49719
  return `${e.file.id}\0${e.page?.id ?? ""}`;
49710
49720
  }
49711
- function $7(e, t) {
49721
+ function $W(e, t) {
49712
49722
  if (e.length === 0) return null;
49713
49723
  if (t) {
49714
49724
  const n = e.find((r) => r.file.id === t.fileId && (r.page?.id ?? null) === t.pageId);
@@ -49716,7 +49726,7 @@ function $7(e, t) {
49716
49726
  }
49717
49727
  return e[0] ?? null;
49718
49728
  }
49719
- function L7(e, t) {
49729
+ function LW(e, t) {
49720
49730
  const n = (i) => !t.fileId || i.file.id === t.fileId, r = e.filter(n), o = r.length > 0 ? r : e;
49721
49731
  return (t.pageId ? o.find((i) => i.page?.id === t.pageId) : void 0) ?? o.find((i) => i.page?.marked) ?? o[0] ?? null;
49722
49732
  }
@@ -49724,13 +49734,13 @@ function mm(e, t, n) {
49724
49734
  const { file: r, page: o } = e;
49725
49735
  return o ? o.number === null || o.number === void 0 ? t.unnumberedPageOf(r.name) : t.pageOf(r.name, n(o.number)) : r.name;
49726
49736
  }
49727
- function F7({ open: e, files: t, initialFileId: n, initialPageId: r, onFrameChange: o }) {
49737
+ function FW({ open: e, files: t, initialFileId: n, initialPageId: r, onFrameChange: o }) {
49728
49738
  const [s, i] = ne(t);
49729
49739
  t.length > 0 && t !== s && i(t);
49730
- const a = t.length > 0 ? t : s, l = Oe(() => _7(a), [a]), c = () => {
49731
- const v = L7(l, { fileId: n, pageId: r });
49740
+ const a = t.length > 0 ? t : s, l = Oe(() => _W(a), [a]), c = () => {
49741
+ const v = LW(l, { fileId: n, pageId: r });
49732
49742
  return v ? Xp(v) : null;
49733
- }, [d, f] = ne(() => e ? c() : null), [p, h] = ne(e), m = $7(l, d);
49743
+ }, [d, f] = ne(() => e ? c() : null), [p, h] = ne(e), m = $W(l, d);
49734
49744
  if (e !== p)
49735
49745
  h(e), e && f(c());
49736
49746
  else if (e && m) {
@@ -49750,14 +49760,14 @@ function F7({ open: e, files: t, initialFileId: n, initialPageId: r, onFrameChan
49750
49760
  e && m && b.current?.(m);
49751
49761
  }, [e, x]), { frames: l, frame: m, go: g };
49752
49762
  }
49753
- const V7 = "input, textarea, select, video, audio, [contenteditable]:not([contenteditable='false'])";
49754
- function z7(e) {
49763
+ const VW = "input, textarea, select, video, audio, [contenteditable]:not([contenteditable='false'])";
49764
+ function zW(e) {
49755
49765
  const [t, n] = ne(null), r = xe(e);
49756
49766
  return r.current = e, _e(() => {
49757
49767
  if (!t) return;
49758
49768
  const o = (s) => {
49759
49769
  const i = s.target;
49760
- if (!(i instanceof Element) || s.ctrlKey || s.metaKey || s.altKey || i.closest(V7)) return;
49770
+ if (!(i instanceof Element) || s.ctrlKey || s.metaKey || s.altKey || i.closest(VW)) return;
49761
49771
  const { go: a, index: l, total: c, zoom: d } = r.current;
49762
49772
  switch (s.key) {
49763
49773
  case "ArrowRight":
@@ -49812,7 +49822,7 @@ function Yu(e, t = {}) {
49812
49822
  const n = t.minScale ?? Hr.minScale, r = t.maxScale ?? Hr.maxScale;
49813
49823
  return Math.min(Math.max(e, n), r);
49814
49824
  }
49815
- function B7(e, t) {
49825
+ function BW(e, t) {
49816
49826
  return {
49817
49827
  x: (t.x - e.x) / e.scale,
49818
49828
  y: (t.y - e.y) / e.scale
@@ -49825,7 +49835,7 @@ function E1(e, t) {
49825
49835
  };
49826
49836
  }
49827
49837
  function tl(e, t, n, r = {}) {
49828
- const o = Yu(e.scale * n, r), s = B7(e, t);
49838
+ const o = Yu(e.scale * n, r), s = BW(e, t);
49829
49839
  return {
49830
49840
  scale: o,
49831
49841
  x: t.x - s.x * o,
@@ -49840,7 +49850,7 @@ function gm(e, t, n) {
49840
49850
  y: t.height / 2 - r.y * n
49841
49851
  };
49842
49852
  }
49843
- function H7(e) {
49853
+ function HW(e) {
49844
49854
  if (e.length === 0) return null;
49845
49855
  let t = 1 / 0, n = 1 / 0, r = -1 / 0, o = -1 / 0;
49846
49856
  for (const s of e)
@@ -49857,7 +49867,7 @@ function xx(e, t, n = {}) {
49857
49867
  });
49858
49868
  return gm(e, t, l);
49859
49869
  }
49860
- function U7(e, t, n = {}) {
49870
+ function UW(e, t, n = {}) {
49861
49871
  if (e.width <= 0 || e.height <= 0 || t.width <= 0)
49862
49872
  return { scale: Yu(1, n), x: 0, y: 0 };
49863
49873
  const r = Yu(t.width / e.width, n);
@@ -49873,7 +49883,7 @@ function N1(e, t, n) {
49873
49883
  bottom: o.y > t.height + Fc
49874
49884
  };
49875
49885
  }
49876
- function j7(e, t, n = {}) {
49886
+ function jW(e, t, n = {}) {
49877
49887
  const { minReadableScale: r, focusBox: o = e, ...s } = n, i = xx(e, t, s);
49878
49888
  if (r === void 0 || i.scale >= r)
49879
49889
  return { camera: i, overflow: N1(e, t, i) };
@@ -49884,11 +49894,11 @@ function j7(e, t, n = {}) {
49884
49894
  };
49885
49895
  return { camera: d, overflow: N1(e, t, d) };
49886
49896
  }
49887
- const G7 = "button, a, input, textarea, select, [role='button']";
49897
+ const GW = "button, a, input, textarea, select, [role='button']";
49888
49898
  function yx(e) {
49889
- return e instanceof Element && e.closest(G7) !== null;
49899
+ return e instanceof Element && e.closest(GW) !== null;
49890
49900
  }
49891
- const W7 = 5, R1 = 240, q7 = 1.0025;
49901
+ const WW = 5, R1 = 240, qW = 1.0025;
49892
49902
  function I1(e, t) {
49893
49903
  return Math.hypot(e.x - t.x, e.y - t.y);
49894
49904
  }
@@ -49922,7 +49932,7 @@ function F2(e) {
49922
49932
  const c = (g) => {
49923
49933
  if (r.current.disabled) return;
49924
49934
  g.preventDefault(), r.current.onGestureStart?.();
49925
- const b = a.getBoundingClientRect(), x = { x: g.clientX - b.left, y: g.clientY - b.top }, v = Math.max(-R1, Math.min(R1, g.deltaY)), y = Math.pow(q7, -v);
49935
+ const b = a.getBoundingClientRect(), x = { x: g.clientX - b.left, y: g.clientY - b.top }, v = Math.max(-R1, Math.min(R1, g.deltaY)), y = Math.pow(qW, -v);
49926
49936
  r.current.setCamera((w) => tl(w, x, y, r.current.zoomBounds));
49927
49937
  };
49928
49938
  a.addEventListener("wheel", c, { passive: !1 });
@@ -49931,7 +49941,7 @@ function F2(e) {
49931
49941
  if (!x.pointers.has(g)) return;
49932
49942
  const v = x.mode === "pan", y = x.downTarget, w = x.travelled;
49933
49943
  if (x.pointers.delete(g), a.hasPointerCapture(g) && a.releasePointerCapture(g), x.pointers.size === 0)
49934
- x.mode = "idle", x.originPoint = null, x.originCamera = null, x.pinchDistance = null, x.pinchMidpoint = null, x.downTarget = null, x.frame = null, n(!1), !b && v && w < W7 && y && !r.current.disabled && r.current.onClick?.({ target: y });
49944
+ x.mode = "idle", x.originPoint = null, x.originCamera = null, x.pinchDistance = null, x.pinchMidpoint = null, x.downTarget = null, x.frame = null, n(!1), !b && v && w < WW && y && !r.current.disabled && r.current.onClick?.({ target: y });
49935
49945
  else {
49936
49946
  const [[, C]] = x.pointers;
49937
49947
  x.mode = "pan", x.originPoint = C, x.originCamera = r.current.camera, x.pinchDistance = null, x.pinchMidpoint = null, x.travelled = 1 / 0;
@@ -49987,16 +49997,16 @@ function F2(e) {
49987
49997
  );
49988
49998
  return { panning: t, bindViewport: i };
49989
49999
  }
49990
- const Oa = { minScale: 0.05, maxScale: 8 }, T1 = 1.25, V2 = 1e-3, K7 = { x: 0, y: 0, scale: 1 };
50000
+ const Oa = { minScale: 0.05, maxScale: 8 }, T1 = 1.25, V2 = 1e-3, KW = { x: 0, y: 0, scale: 1 };
49991
50001
  function Zp(e, t) {
49992
50002
  return t !== null && Math.abs(e.scale - t.scale) < V2;
49993
50003
  }
49994
- function Y7(e, t, n) {
49995
- return e === "width" ? U7(t, n, Oa) : xx({ x: 0, y: 0, ...t }, n, { ...Oa, padding: 0, maxScale: 1 });
50004
+ function YW(e, t, n) {
50005
+ return e === "width" ? UW(t, n, Oa) : xx({ x: 0, y: 0, ...t }, n, { ...Oa, padding: 0, maxScale: 1 });
49996
50006
  }
49997
- function X7({ frameKey: e, fit: t }) {
49998
- const [n, r] = ne(K7), [o, s] = ne(null), [i, a] = ne(null), l = i?.key === e ? i.size : null, c = Oe(
49999
- () => t && l && o && o.width > 0 && o.height > 0 ? Y7(t, l, o) : null,
50007
+ function XW({ frameKey: e, fit: t }) {
50008
+ const [n, r] = ne(KW), [o, s] = ne(null), [i, a] = ne(null), l = i?.key === e ? i.size : null, c = Oe(
50009
+ () => t && l && o && o.width > 0 && o.height > 0 ? YW(t, l, o) : null,
50000
50010
  [t, l, o]
50001
50011
  ), d = xe({ key: "", fit: null }), f = l ? `${e}|${l.width}x${l.height}` : e;
50002
50012
  Qt(() => {
@@ -50047,7 +50057,7 @@ function X7({ frameKey: e, fit: t }) {
50047
50057
  toggleActual: x
50048
50058
  };
50049
50059
  }
50050
- function Z7({ onJump: e, noMatch: t }) {
50060
+ function ZW({ onJump: e, noMatch: t }) {
50051
50061
  const n = he().fileViewer, [r, o] = ne(""), [s, i] = ne(null), a = () => {
50052
50062
  const l = r.trim();
50053
50063
  if (!/^\d+$/.test(l)) {
@@ -50085,7 +50095,7 @@ function Z7({ onJump: e, noMatch: t }) {
50085
50095
  s ? /* @__PURE__ */ u("p", { className: "text-2xs text-danger-text", children: s }) : null
50086
50096
  ] });
50087
50097
  }
50088
- function J7({ frame: e, onGo: t }) {
50098
+ function JW({ frame: e, onGo: t }) {
50089
50099
  const n = he().fileViewer, r = zt(), o = e.page?.number;
50090
50100
  return /* @__PURE__ */ M("div", { className: "flex items-center gap-1", children: [
50091
50101
  /* @__PURE__ */ u(
@@ -50111,7 +50121,7 @@ function J7({ frame: e, onGo: t }) {
50111
50121
  )
50112
50122
  ] });
50113
50123
  }
50114
- function Q7({ frame: e, frames: t, go: n, zoom: r, zoomable: o, markLabel: s, headerActions: i, onDownload: a, labelled: l = !1 }) {
50124
+ function QW({ frame: e, frames: t, go: n, zoom: r, zoomable: o, markLabel: s, headerActions: i, onDownload: a, labelled: l = !1 }) {
50115
50125
  const c = he().fileViewer, d = xt(), f = zt(), p = Oe(
50116
50126
  () => t.filter((v) => v.page?.marked).map((v) => v.index),
50117
50127
  [t]
@@ -50154,7 +50164,7 @@ function Q7({ frame: e, frames: t, go: n, zoom: r, zoomable: o, markLabel: s, he
50154
50164
  "aria-label": c.jumpToPage,
50155
50165
  trigger: l ? /* @__PURE__ */ u(et, { size: "xs", variant: "ghost", leadingIcon: /* @__PURE__ */ u(ue, { name: "list-ordered", size: "xs" }), children: c.jumpToPage }) : /* @__PURE__ */ u(st, { size: "xs", icon: /* @__PURE__ */ u(ue, { name: "list-ordered", size: "xs" }), label: c.jumpToPage }),
50156
50166
  children: /* @__PURE__ */ u("div", { className: "flex w-52 flex-col gap-1.5 p-2", children: /* @__PURE__ */ u(
50157
- Z7,
50167
+ ZW,
50158
50168
  {
50159
50169
  onJump: (v) => {
50160
50170
  const y = m(v);
@@ -50255,7 +50265,7 @@ function z2({
50255
50265
  role: "status",
50256
50266
  className: "flex size-full flex-col items-center justify-center gap-1.5 bg-surface-inset p-2 text-center @min-[16rem]:min-h-32 @min-[16rem]:gap-3 @min-[16rem]:p-4",
50257
50267
  children: [
50258
- /* @__PURE__ */ u(ue, { name: p7("video"), size: "lg", className: "text-tertiary" }),
50268
+ /* @__PURE__ */ u(ue, { name: pW("video"), size: "lg", className: "text-tertiary" }),
50259
50269
  /* @__PURE__ */ u("p", { className: "text-sm text-secondary", children: l.cannotPlay }),
50260
50270
  s && /* @__PURE__ */ M(et, { variant: "outline", size: "sm", onClick: s, children: [
50261
50271
  /* @__PURE__ */ u(ue, { name: "download", size: "sm" }),
@@ -50400,8 +50410,8 @@ function oq({
50400
50410
  overlay: f,
50401
50411
  renderBody: p
50402
50412
  }) {
50403
- const h = he().fileViewer, m = xt(), g = c ?? h.marked, { frames: b, frame: x, go: v } = F7({ open: e, files: n, initialFileId: r, initialPageId: o, onFrameChange: s }), y = x?.index ?? 0, w = x && !x.page && p ? p(x.file) : null, C = x ? nq(x, w) : { kind: "file", fit: null }, S = X7({ frameKey: x ? _f(x) : "", fit: C.fit }), R = C.fit !== null, E = z7({ go: v, index: y, total: b.length, zoom: R ? S : null }), N = Ui("lg"), [I, A] = ne(!0), D = x ? /* @__PURE__ */ u(
50404
- Q7,
50413
+ const h = he().fileViewer, m = xt(), g = c ?? h.marked, { frames: b, frame: x, go: v } = FW({ open: e, files: n, initialFileId: r, initialPageId: o, onFrameChange: s }), y = x?.index ?? 0, w = x && !x.page && p ? p(x.file) : null, C = x ? nq(x, w) : { kind: "file", fit: null }, S = XW({ frameKey: x ? _f(x) : "", fit: C.fit }), R = C.fit !== null, E = zW({ go: v, index: y, total: b.length, zoom: R ? S : null }), N = Ui("lg"), [I, A] = ne(!0), D = x ? /* @__PURE__ */ u(
50414
+ QW,
50405
50415
  {
50406
50416
  frame: x,
50407
50417
  frames: b,
@@ -50434,7 +50444,7 @@ function oq({
50434
50444
  onClick: () => A((L) => !L)
50435
50445
  }
50436
50446
  ),
50437
- x ? /* @__PURE__ */ u(J7, { frame: x, onGo: v }) : null,
50447
+ x ? /* @__PURE__ */ u(JW, { frame: x, onGo: v }) : null,
50438
50448
  N ? /* @__PURE__ */ u(
50439
50449
  wn,
50440
50450
  {
@@ -50761,7 +50771,7 @@ function cq({
50761
50771
  ),
50762
50772
  h !== void 0 && m && /* @__PURE__ */ u(aq, { levels: p, value: h, onValueChange: m }),
50763
50773
  g && /* @__PURE__ */ u(
50764
- R7,
50774
+ RW,
50765
50775
  {
50766
50776
  segments: g.segments,
50767
50777
  capacity: g.capacity,
@@ -50788,7 +50798,7 @@ function cq({
50788
50798
  ] }),
50789
50799
  i && /* @__PURE__ */ u("div", { className: "ml-auto flex items-center gap-1", children: i })
50790
50800
  ] }),
50791
- /* @__PURE__ */ u(D7, { className: "px-4 py-4", children: e.length === 0 ? a ?? /* @__PURE__ */ u(
50801
+ /* @__PURE__ */ u(DW, { className: "px-4 py-4", children: e.length === 0 ? a ?? /* @__PURE__ */ u(
50792
50802
  Il,
50793
50803
  {
50794
50804
  icon: "message-square",
@@ -50796,7 +50806,7 @@ function cq({
50796
50806
  description: R.emptyDescription
50797
50807
  }
50798
50808
  ) : e.map((T, $) => /* @__PURE__ */ u(
50799
- A7,
50809
+ AW,
50800
50810
  {
50801
50811
  message: T,
50802
50812
  renderers: t,
@@ -50813,7 +50823,7 @@ function cq({
50813
50823
  /* @__PURE__ */ M("div", { className: "shrink-0 px-4 pt-1 pb-4", children: [
50814
50824
  v && /* @__PURE__ */ u("div", { className: "px-1 pb-1.5", children: v }),
50815
50825
  /* @__PURE__ */ u(
50816
- m7,
50826
+ mW,
50817
50827
  {
50818
50828
  ...S,
50819
50829
  hint: y,
@@ -53087,7 +53097,7 @@ function rK({
53087
53097
  }
53088
53098
  ) }),
53089
53099
  /* @__PURE__ */ u(vt, { label: c.description, description: c.descriptionHint, children: /* @__PURE__ */ u(
53090
- nz,
53100
+ n5,
53091
53101
  {
53092
53102
  value: p,
53093
53103
  onChange: (v) => h(v.target.value),
@@ -58849,7 +58859,7 @@ function FZ(e, t) {
58849
58859
  const f = n.get(d.to);
58850
58860
  f && o.push(f);
58851
58861
  }
58852
- const s = H7(o), i = e.edges.find((d) => d.to === t)?.from, a = i ? n.get(i) : void 0;
58862
+ const s = HW(o), i = e.edges.find((d) => d.to === t)?.from, a = i ? n.get(i) : void 0;
58853
58863
  if (!a) return s;
58854
58864
  const l = Math.min(s.y, a.y), c = Math.max(s.y + s.height, a.y + a.height);
58855
58865
  return { x: s.x, y: l, width: s.width, height: c - l };
@@ -58911,7 +58921,7 @@ function HZ(e) {
58911
58921
  }, [S]), N = xe(!1), [I, A] = ne(zZ);
58912
58922
  _e(() => {
58913
58923
  if (!v) return;
58914
- const _ = x.current, z = w.current.frameBox ?? w.current.contentBox, O = { ...w.current.fitBounds, padding: w.current.framePadding ?? Hr.fitPadding }, { camera: V, overflow: U } = j7(z, _, {
58924
+ const _ = x.current, z = w.current.frameBox ?? w.current.contentBox, O = { ...w.current.fitBounds, padding: w.current.framePadding ?? Hr.fitPadding }, { camera: V, overflow: U } = jW(z, _, {
58915
58925
  ...O,
58916
58926
  minReadableScale: w.current.minReadableScale,
58917
58927
  focusBox: w.current.focusBox ?? z
@@ -61765,10 +61775,10 @@ export {
61765
61775
  fb as CodeBlock,
61766
61776
  QE as CodeEditor,
61767
61777
  tN as CodeEditorCaption,
61768
- I4 as CodeEditorCopyButton,
61778
+ I3 as CodeEditorCopyButton,
61769
61779
  eN as CodeEditorToolbar,
61770
- P4 as CodeEditorViewSwitch,
61771
- M4 as CodeEditorWrapToggle,
61780
+ P3 as CodeEditorViewSwitch,
61781
+ M3 as CodeEditorWrapToggle,
61772
61782
  Vb as Collapsible,
61773
61783
  TH as CollapsiblePanel,
61774
61784
  IH as CollapsibleRoot,
@@ -61777,18 +61787,18 @@ export {
61777
61787
  Xee as ComboboxGroup,
61778
61788
  Yee as ComboboxItem,
61779
61789
  jee as CommandPalette,
61780
- m7 as Composer,
61790
+ mW as Composer,
61781
61791
  pte as ConcentricRing,
61782
61792
  WK as ConfidenceBar,
61783
61793
  G1 as ConfidenceMeter,
61784
61794
  qK as ConfidenceReadout,
61785
61795
  Nee as ConnectionCard,
61786
- R7 as ContextMeter,
61796
+ RW as ContextMeter,
61787
61797
  Bte as CopyValue,
61788
61798
  $1 as DEFAULT_PALETTE_KEY,
61789
61799
  dm as DESIGN_FRAME_APPEARANCE,
61790
61800
  Wu as DESIGN_FRAME_ERROR,
61791
- OW as DESIGN_FRAME_ERROR_MAX_LENGTH,
61801
+ O9 as DESIGN_FRAME_ERROR_MAX_LENGTH,
61792
61802
  Gu as DESIGN_FRAME_READY,
61793
61803
  c2 as DRAG_INSTRUCTIONS_ID,
61794
61804
  gne as DangerZone,
@@ -61807,10 +61817,10 @@ export {
61807
61817
  y2 as DragDropHandle,
61808
61818
  cx as DragDropItem,
61809
61819
  x2 as DragDropSurface,
61810
- h9 as DragInstructions,
61811
- p9 as DragLiveRegion,
61812
- XW as DragSession,
61813
- s9 as DragSessionProvider,
61820
+ h7 as DragInstructions,
61821
+ p7 as DragLiveRegion,
61822
+ X9 as DragSession,
61823
+ s7 as DragSessionProvider,
61814
61824
  ree as ENGLISH_UI_STRINGS,
61815
61825
  kq as EVENT_PALETTE,
61816
61826
  aee as EditGutter,
@@ -61859,9 +61869,9 @@ export {
61859
61869
  IB as MenuRadioGroup,
61860
61870
  MB as MenuRadioItem,
61861
61871
  QN as MenuSeparator,
61862
- A7 as Message,
61863
- O7 as MessagePartView,
61864
- D7 as MessageScroller,
61872
+ AW as Message,
61873
+ OW as MessagePartView,
61874
+ DW as MessageScroller,
61865
61875
  eU as Meter,
61866
61876
  sq as ModelSelector,
61867
61877
  Zee as MultiCombobox,
@@ -61872,11 +61882,11 @@ export {
61872
61882
  _ne as OperationCard,
61873
61883
  ZP as OperationDetail,
61874
61884
  XP as OperationHeader,
61875
- o7 as PAGED_WINDOW_SETTLE_MS,
61885
+ oW as PAGED_WINDOW_SETTLE_MS,
61876
61886
  bk as PARENT_POSITION,
61877
- Z7 as PageNumberJumpField,
61887
+ ZW as PageNumberJumpField,
61878
61888
  Ote as PagedWindowList,
61879
- i7 as PagedWindowStore,
61889
+ iW as PagedWindowStore,
61880
61890
  mG as Pagination,
61881
61891
  bG as PaginationBar,
61882
61892
  ute as Panel,
@@ -61948,7 +61958,7 @@ export {
61948
61958
  lte as StatusChecklist,
61949
61959
  tT as StatusSelect,
61950
61960
  ate as Stepper,
61951
- N7 as StreamingMarkdown,
61961
+ NW as StreamingMarkdown,
61952
61962
  bQ as SubscriptionRegistry,
61953
61963
  Gb as Switch,
61954
61964
  Ree as SwitchField,
@@ -61960,7 +61970,7 @@ export {
61960
61970
  mne as TeamSettingsForm,
61961
61971
  ene as TeamSwitcher,
61962
61972
  fP as TermsAcceptance,
61963
- nz as Textarea,
61973
+ n5 as Textarea,
61964
61974
  Aee as ThemeMenu,
61965
61975
  vte as TimeSeriesChart,
61966
61976
  Cee as Timeline,
@@ -61968,7 +61978,7 @@ export {
61968
61978
  Tee as Toaster,
61969
61979
  Iu as Toggle,
61970
61980
  JE as ToggleGroup,
61971
- T7 as ToolCall,
61981
+ TW as ToolCall,
61972
61982
  fee as Toolbar,
61973
61983
  hee as ToolbarButton,
61974
61984
  gee as ToolbarGroup,
@@ -62001,14 +62011,14 @@ export {
62001
62011
  If as assertSteps,
62002
62012
  Fee as atMidnight,
62003
62013
  Vee as atTime,
62004
- o9 as attachAutoScroll,
62005
- W3 as attachInput,
62006
- n9 as attachKeyboardSensor,
62007
- JW as attachPointerSensor,
62008
- QW as attachSessionWindowListeners,
62014
+ o7 as attachAutoScroll,
62015
+ W4 as attachInput,
62016
+ n7 as attachKeyboardSensor,
62017
+ J9 as attachPointerSensor,
62018
+ Q9 as attachSessionWindowListeners,
62009
62019
  jQ as beginOptimisticWrite,
62010
62020
  Au as blockAt,
62011
- M9 as buildBoardModel,
62021
+ M7 as buildBoardModel,
62012
62022
  Qp as calendarDragResult,
62013
62023
  Qw as caretMap,
62014
62024
  CN as cellAt,
@@ -62018,7 +62028,7 @@ export {
62018
62028
  Jv as chartSeriesColor,
62019
62029
  cee as checkCoverage,
62020
62030
  Su as chordLabel,
62021
- A3 as chordsOf,
62031
+ A4 as chordsOf,
62022
62032
  Yu as clampScale,
62023
62033
  N6 as clearStored,
62024
62034
  H as cn,
@@ -62047,8 +62057,8 @@ export {
62047
62057
  SN as deleteRow,
62048
62058
  NN as deleteTable,
62049
62059
  Ou as deleteVisible,
62050
- T3 as deleteVisibleAfter,
62051
- M3 as deleteVisibleBefore,
62060
+ T4 as deleteVisibleAfter,
62061
+ M4 as deleteVisibleBefore,
62052
62062
  kx as deriveRoadmapItemStatus,
62053
62063
  S2 as describeMoveRejection,
62054
62064
  q2 as describeTarget,
@@ -62061,10 +62071,10 @@ export {
62061
62071
  Zu as eventLabel,
62062
62072
  Bi as fenceAround,
62063
62073
  fx as fileIconFor,
62064
- r3 as findUnstoredImages,
62074
+ r4 as findUnstoredImages,
62065
62075
  xx as fitBox,
62066
- j7 as fitBoxWithFloor,
62067
- U7 as fitWidth,
62076
+ jW as fitBoxWithFloor,
62077
+ UW as fitWidth,
62068
62078
  Ho as flushRecordNotifications,
62069
62079
  Lte as formatBoolean,
62070
62080
  vs as formatBytes,
@@ -62080,23 +62090,23 @@ export {
62080
62090
  Ik as getIcon,
62081
62091
  Qq as getNetworkSpeed,
62082
62092
  zf as getRecordStoreTenant,
62083
- S3 as graphemeAfter,
62084
- C3 as graphemeBefore,
62093
+ S4 as graphemeAfter,
62094
+ C4 as graphemeBefore,
62085
62095
  xJ as groupOperations,
62086
62096
  ZQ as hasIcon,
62087
- i3 as headingLevel,
62088
- _3 as hotkeyFor,
62097
+ i4 as headingLevel,
62098
+ _4 as hotkeyFor,
62089
62099
  Bee as hoursInDay,
62090
- L3 as htmlFragmentToMarkdown,
62100
+ L4 as htmlFragmentToMarkdown,
62091
62101
  XQ as iconNames,
62092
- u3 as indentLines,
62102
+ u4 as indentLines,
62093
62103
  Rq as initialFocusDay,
62094
62104
  Wh as insertColumn,
62095
62105
  vee as insertImage,
62096
- g3 as insertLink,
62106
+ g4 as insertLink,
62097
62107
  Gh as insertRow,
62098
- m3 as insertRule,
62099
- v3 as insertTable,
62108
+ m4 as insertRule,
62109
+ v4 as insertTable,
62100
62110
  LI as instantAtFraction,
62101
62111
  zee as instantToPlainDate,
62102
62112
  Kn as instantToPlainDateTime,
@@ -62119,8 +62129,8 @@ export {
62119
62129
  dK as leastPrivilegeRoleId,
62120
62130
  Ma as legalSectionAnchor,
62121
62131
  en as lineAt,
62122
- E3 as lineStartStop,
62123
- c4 as listLanguages,
62132
+ E4 as lineStartStop,
62133
+ c3 as listLanguages,
62124
62134
  Xu as longDate,
62125
62135
  vJ as mergedParameters,
62126
62136
  mU as monthGridDays,
@@ -62137,7 +62147,7 @@ export {
62137
62147
  Vu as offsetAt,
62138
62148
  kJ as operationAnchorId,
62139
62149
  tre as optimisticWrite,
62140
- d3 as outdentLines,
62150
+ d4 as outdentLines,
62141
62151
  U2 as packBand,
62142
62152
  Oq as packLanes,
62143
62153
  nl as paletteFor,
@@ -62152,7 +62162,7 @@ export {
62152
62162
  av as plainDateTimeToInstant,
62153
62163
  ux as positionInColumn,
62154
62164
  Tu as project,
62155
- t3 as projectedText,
62165
+ t4 as projectedText,
62156
62166
  Mne as provenanceStateLabel,
62157
62167
  Ine as ratedConfidence,
62158
62168
  pQ as readRealtimeEpoch,
@@ -62165,7 +62175,7 @@ export {
62165
62175
  Bne as recordStoreStats,
62166
62176
  pO as registerActiveRead,
62167
62177
  dee as registerGrammar,
62168
- v7 as relativeAge,
62178
+ vW as relativeAge,
62169
62179
  Yne as resetActiveReads,
62170
62180
  nre as resetOptimisticWrites,
62171
62181
  jne as resetRealtimeSignals,
@@ -62174,9 +62184,9 @@ export {
62174
62184
  Wq as resetSimStores,
62175
62185
  Xne as resetSlots,
62176
62186
  pa as resolveCalendarTarget,
62177
- O3 as resolveKey,
62187
+ O4 as resolveKey,
62178
62188
  uee as resolveLanguage,
62179
- P9 as resolveMove,
62189
+ P7 as resolveMove,
62180
62190
  Ff as resolveSchema,
62181
62191
  Wp as resolveTarget,
62182
62192
  yJ as resolveWebhooks,
@@ -62193,7 +62203,7 @@ export {
62193
62203
  V1 as setSimSettings,
62194
62204
  Uc as simulateLatency,
62195
62205
  LQ as slotKeys,
62196
- y3 as smartEnter,
62206
+ y4 as smartEnter,
62197
62207
  MN as smartShiftTab,
62198
62208
  IN as smartTab,
62199
62209
  Ute as snapFractionToInstant,
@@ -62205,7 +62215,7 @@ export {
62205
62215
  Xa as startOfWeek,
62206
62216
  bee as stepOffset,
62207
62217
  vG as stepStatus,
62208
- k3 as stepStop,
62218
+ k4 as stepStop,
62209
62219
  yG as stepperProgress,
62210
62220
  Ol as storageKey,
62211
62221
  Ax as subscribeToKey,
@@ -62221,37 +62231,37 @@ export {
62221
62231
  mo as timeOfDay,
62222
62232
  gq as timeSegments,
62223
62233
  bm as timedBandSegment,
62224
- B7 as toContentPoint,
62234
+ BW as toContentPoint,
62225
62235
  mx as toEpochMs,
62226
62236
  E1 as toScreenPoint,
62227
62237
  vN as toggleBold,
62228
62238
  yN as toggleCode,
62229
- h3 as toggleCodeBlock,
62239
+ h4 as toggleCodeBlock,
62230
62240
  lf as toggleInline,
62231
62241
  xN as toggleItalic,
62232
62242
  Zw as toggleList,
62233
- p3 as toggleQuote,
62243
+ p4 as toggleQuote,
62234
62244
  wN as toggleStrike,
62235
- f3 as toggleTask,
62245
+ f4 as toggleTask,
62236
62246
  BE as tokenize,
62237
62247
  j1 as toneForIndex,
62238
62248
  Cx as trackIds,
62239
62249
  OK as trackProgress,
62240
- H7 as unionBox,
62250
+ HW as unionBox,
62241
62251
  $B as unwrapConstruct,
62242
62252
  E2 as useBoard,
62243
62253
  _q as useCalendarDrag,
62244
62254
  Gee as useCommandPalette,
62245
62255
  M6 as useContrast,
62246
- i9 as useCreateDragSession,
62247
- f9 as useDragAnnouncements,
62248
- l9 as useDragLive,
62256
+ i7 as useCreateDragSession,
62257
+ f7 as useDragAnnouncements,
62258
+ l7 as useDragLive,
62249
62259
  Ste as useDragSession,
62250
62260
  qi as useDragState,
62251
- c9 as useDraggable,
62252
- u9 as useDropContainer,
62261
+ c7 as useDraggable,
62262
+ u7 as useDropContainer,
62253
62263
  zq as useEventKeyboard,
62254
- I9 as useFillHeight,
62264
+ I7 as useFillHeight,
62255
62265
  Nq as useGridNavigation,
62256
62266
  Xte as useHasPermission,
62257
62267
  T6 as useMotionPreference,
@@ -62279,7 +62289,7 @@ export {
62279
62289
  he as useUiStrings,
62280
62290
  Lee as weekDays,
62281
62291
  vm as weekdayName,
62282
- s7 as windowPageNumbers,
62292
+ sW as windowPageNumbers,
62283
62293
  zr as write,
62284
62294
  HJ as writeAll,
62285
62295
  wa as writeSelection,