@pstdio/ui 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{MermaidComponent-AmAjWLPm.js → MermaidComponent-BVMyKttu.js} +2 -2
  2. package/dist/{MermaidComponent-AmAjWLPm.js.map → MermaidComponent-BVMyKttu.js.map} +1 -1
  3. package/dist/chat-ui.js +1 -1
  4. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  5. package/dist/components/diff-viewer/file-change-badge.d.ts +3 -0
  6. package/dist/components/diff-viewer/file-list-panel.d.ts +0 -1
  7. package/dist/components/diff-viewer/index.d.ts +1 -0
  8. package/dist/components/param-editor/param-editor.types.d.ts +2 -0
  9. package/dist/components/tree-list/tree-list-background.d.ts +8 -0
  10. package/dist/components/tree-list/tree-list-drag.d.ts +7 -0
  11. package/dist/components/tree-list/tree-list-inline-creation-story.d.ts +3 -0
  12. package/dist/components/tree-list/tree-list-inline-input.d.ts +9 -0
  13. package/dist/components/tree-list/tree-list-move-surface.d.ts +7 -0
  14. package/dist/components/tree-list/tree-list-node-row.d.ts +1 -0
  15. package/dist/components/tree-list/tree-list.d.ts +2 -0
  16. package/dist/components/tree-list/tree-list.types.d.ts +13 -0
  17. package/dist/data-table.js +5 -5
  18. package/dist/diff.js +796 -815
  19. package/dist/diff.js.map +1 -1
  20. package/dist/{edit-mode-data-table-4GMiDy75.js → edit-mode-data-table-D6NeiDJx.js} +3 -3
  21. package/dist/{edit-mode-data-table-4GMiDy75.js.map → edit-mode-data-table-D6NeiDJx.js.map} +1 -1
  22. package/dist/{editor-config-Dyh8n5A2.js → editor-config-D9OksZ93.js} +3 -3
  23. package/dist/{editor-config-Dyh8n5A2.js.map → editor-config-D9OksZ93.js.map} +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +324 -349
  26. package/dist/index.js.map +1 -1
  27. package/dist/{kanban-renderer-toolbar-BcUZvGyY.js → kanban-renderer-toolbar-CpegGbwq.js} +2 -2
  28. package/dist/{kanban-renderer-toolbar-BcUZvGyY.js.map → kanban-renderer-toolbar-CpegGbwq.js.map} +1 -1
  29. package/dist/kanban-renderer.js +5 -5
  30. package/dist/{lazy-markdown-editor-CWSREEhf.js → lazy-markdown-editor-B7uP2ALS.js} +2 -2
  31. package/dist/{lazy-markdown-editor-CWSREEhf.js.map → lazy-markdown-editor-B7uP2ALS.js.map} +1 -1
  32. package/dist/{list-row-B8L4TGsh.js → list-row-9oxy-F0v.js} +228 -253
  33. package/dist/list-row-9oxy-F0v.js.map +1 -0
  34. package/dist/{param-editor-w3xH-t8A.js → param-editor-B8Ff9Nm8.js} +2 -2
  35. package/dist/{param-editor-w3xH-t8A.js.map → param-editor-B8Ff9Nm8.js.map} +1 -1
  36. package/dist/{param-editor-field-C8zRDStn.js → param-editor-field-Cu4pto_a.js} +3 -3
  37. package/dist/{param-editor-field-C8zRDStn.js.map → param-editor-field-Cu4pto_a.js.map} +1 -1
  38. package/dist/{rich-message-jZ2oPQhU.js → rich-message-DdFYRzTo.js} +2 -2
  39. package/dist/{rich-message-jZ2oPQhU.js.map → rich-message-DdFYRzTo.js.map} +1 -1
  40. package/dist/rich-text.js +4 -4
  41. package/dist/theme/recipes/input.d.ts +32 -0
  42. package/dist/{theme-J8K8KbZi.js → theme-BH4fSst9.js} +33 -1
  43. package/dist/theme-BH4fSst9.js.map +1 -0
  44. package/dist/theme.js +1 -1
  45. package/dist/tree-list-uV4UFj0x.js +1116 -0
  46. package/dist/tree-list-uV4UFj0x.js.map +1 -0
  47. package/package.json +1 -1
  48. package/dist/list-row-B8L4TGsh.js.map +0 -1
  49. package/dist/theme-J8K8KbZi.js.map +0 -1
  50. package/dist/tree-list-CC13pOYi.js +0 -1033
  51. package/dist/tree-list-CC13pOYi.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Avatar as at, Box as V, Text as W, Stack as j, HStack as re, chakra as Ie, Textarea as rn, Spacer as Ft, IconButton as We, Icon as se, Timeline as we, Dialog as X, CloseButton as Ht, Input as Mt, InputGroup as Vt, Kbd as ln, Collapsible as Xe, Flex as ge, Badge as Ne, Button as de, Skeleton as mt, Portal as Je, Breadcrumb as fe, AbsoluteCenter as sn, Center as an, Popover as qe, Grid as pt, defineSlotRecipe as cn, createSlotRecipeContext as dn, createToaster as un, Toaster as fn, Toast as Le, Spinner as Gt, Editable as Be, Menu as Ve } from "@chakra-ui/react";
2
- import { ChakraProvider as _l } from "@chakra-ui/react";
2
+ import { ChakraProvider as kl } from "@chakra-ui/react";
3
3
  import { jsx as s, jsxs as x, Fragment as Fe } from "react/jsx-runtime";
4
4
  import { c as P } from "react/compiler-runtime";
5
5
  import * as gt from "react";
@@ -7,19 +7,19 @@ import { Children as hn, useState as ue, useEffect as he, useRef as je, Fragment
7
7
  import { Paperclip as bn, ArrowUp as xn, Check as et, ArrowRight as Sn, ArrowLeft as vn, Option as xt, Command as Ye, ChevronRight as yn, Bell as Cn, X as wn, Search as Ut, SquareArrowOutUpRight as In, Minus as Tn, FileText as Pn, FolderOpen as An, Folder as Qt, Home as Rn, ChevronUp as En, ChevronDown as kn, GripVertical as _n, Trash2 as $n, Plus as On } from "lucide-react";
8
8
  import { T as Ue, S as tt, c as He } from "./browser-storage-DPtOQJx0.js";
9
9
  import { useVirtualizer as Dn } from "@tanstack/react-virtual";
10
- import { L as nt, H as Ln, R as Xt } from "./list-row-B8L4TGsh.js";
11
- import { c as Ol, b as Dl } from "./list-row-B8L4TGsh.js";
12
- import { T as zn } from "./tree-list-CC13pOYi.js";
13
- import { R as zl } from "./tree-list-CC13pOYi.js";
10
+ import { L as nt, H as Ln, R as Xt } from "./list-row-9oxy-F0v.js";
11
+ import { c as $l, b as Ol } from "./list-row-9oxy-F0v.js";
12
+ import { T as zn } from "./tree-list-uV4UFj0x.js";
13
+ import { R as Ll } from "./tree-list-uV4UFj0x.js";
14
14
  import { A as ft } from "./radio-cLMEBBZk.js";
15
- import { R as Bl, a as Wl } from "./radio-cLMEBBZk.js";
16
- import { g as Nn, o as Bn, c as Wn } from "./param-editor-field-C8zRDStn.js";
17
- import { d as Hl, e as Ml, f as Vl, A as Gl, B as jl, C as Ul, h as Ql, D as Xl, F as ql, H as Yl, M as Kl, N as Zl, j as Jl, P as es, k as ts, l as ns, k as os, m as rs, n as is, R as ls, p as ss, q as as, S as cs, b as ds, T as us, V as fs, r as hs, s as ms, a as ps } from "./param-editor-field-C8zRDStn.js";
18
- import { h as bs } from "./dialog-accept-shortcut-DAEBsoWW.js";
19
- import { P as Ss, a as vs, b as ys } from "./param-editor-w3xH-t8A.js";
15
+ import { R as Nl, a as Bl } from "./radio-cLMEBBZk.js";
16
+ import { g as Nn, o as Bn, c as Wn } from "./param-editor-field-Cu4pto_a.js";
17
+ import { d as Fl, e as Hl, f as Ml, A as Vl, B as Gl, C as jl, h as Ul, D as Ql, F as Xl, H as ql, M as Yl, N as Kl, j as Zl, P as Jl, k as es, l as ts, k as ns, m as os, n as rs, R as is, p as ls, q as ss, S as as, b as cs, T as ds, V as us, r as fs, s as hs, a as ms } from "./param-editor-field-Cu4pto_a.js";
18
+ import { h as gs } from "./dialog-accept-shortcut-DAEBsoWW.js";
19
+ import { P as xs, a as Ss, b as vs } from "./param-editor-B8Ff9Nm8.js";
20
20
  import { g as Fn } from "./number-input-WUfejtNx.js";
21
- import { C as ws, R as Is, S as Ts, W as Ps, r as As, b as Rs, s as Es } from "./number-input-WUfejtNx.js";
22
- import { E as _s } from "./empty-state-Bo4HVrgr.js";
21
+ import { C as Cs, R as ws, S as Is, W as Ts, r as Ps, b as As, s as Rs } from "./number-input-WUfejtNx.js";
22
+ import { E as ks } from "./empty-state-Bo4HVrgr.js";
23
23
  import { useStore as ot } from "zustand";
24
24
  import { persist as rt, createJSONStorage as it } from "zustand/middleware";
25
25
  import { createStore as lt } from "zustand/vanilla";
@@ -34,9 +34,9 @@ import "@fontsource/playfair-display/700.css";
34
34
  import "@fontsource/onest/400.css";
35
35
  import "@fontsource/onest/500.css";
36
36
  import "@fontsource/onest/700.css";
37
- import { c as Os, a as Ds, t as Ls } from "./theme-J8K8KbZi.js";
38
- import { T as Ns, a as Bs, d as Ws, b as Fs, c as Hs, e as Ms, g as Vs, i as Gs, u as js } from "./theme-preference-DyymrYpR.js";
39
- import { i as Qs } from "./lazy-markdown-editor-CWSREEhf.js";
37
+ import { c as $s, a as Os, t as Ds } from "./theme-BH4fSst9.js";
38
+ import { T as zs, a as Ns, d as Bs, b as Ws, c as Fs, e as Hs, g as Ms, i as Vs, u as Gs } from "./theme-preference-DyymrYpR.js";
39
+ import { i as Us } from "./lazy-markdown-editor-B7uP2ALS.js";
40
40
  const st = (o) => {
41
41
  const e = P(14), {
42
42
  actor: t,
@@ -271,7 +271,7 @@ const st = (o) => {
271
271
  }, e[3] = r) : r = e[3];
272
272
  let i;
273
273
  return e[4] !== t || e[5] !== n ? (i = /* @__PURE__ */ s(we.Root, { size: "sm", variant: "plain", width: "full", css: r, ...n, children: t }), e[4] = t, e[5] = n, e[6] = i) : i = e[6], i;
274
- }, qi = {
274
+ }, Xi = {
275
275
  Root: oo,
276
276
  Header: ro,
277
277
  Feed: io,
@@ -281,7 +281,7 @@ const st = (o) => {
281
281
  Reply: Zn,
282
282
  Composer: eo,
283
283
  Avatar: st
284
- }, Yi = 48, so = (o) => {
284
+ }, qi = 48, so = (o) => {
285
285
  const e = typeof o.label == "string" ? o.label : "", t = typeof o.secondaryLabel == "string" ? o.secondaryLabel : "";
286
286
  return `${e} ${o.searchText ?? ""} ${t}`;
287
287
  }, Yt = (o, e) => o.trimStart().startsWith(e), ao = (o, e = [], t) => e.find((r) => r.inputPrefix && Yt(o, r.inputPrefix))?.id ?? t ?? e.find((r) => !r.inputPrefix)?.id ?? e[0]?.id, co = (o, e = [], t) => {
@@ -354,32 +354,7 @@ const st = (o) => {
354
354
  top: u.start
355
355
  }, children: d.type === "group" ? /* @__PURE__ */ s(W, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", pb: "2xs", children: d.label }) : /* @__PURE__ */ s(nt, { variant: "full-width", ...go(d.entry), isSelected: d.entryIndex === t, tabIndex: -1, onPointerMove: () => r(d.entryIndex) }) }, u.key) : null;
356
356
  }) });
357
- }, St = (o) => o != null, vo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", yo = {
358
- bg: "transparent",
359
- border: "0",
360
- borderColor: "transparent",
361
- borderRadius: "0",
362
- boxShadow: "none",
363
- transition: "none",
364
- _hover: {
365
- bg: "transparent",
366
- borderColor: "transparent"
367
- },
368
- _active: {
369
- bg: "transparent",
370
- borderColor: "transparent"
371
- },
372
- _focus: {
373
- borderColor: "transparent",
374
- outline: "none",
375
- boxShadow: "none"
376
- },
377
- _focusVisible: {
378
- borderColor: "transparent",
379
- outline: "none",
380
- boxShadow: "none"
381
- }
382
- }, Kt = (o) => {
357
+ }, St = (o) => o != null, vo = (o, e) => o && e ? "space-between" : e ? "flex-end" : "flex-start", Kt = (o) => {
383
358
  const e = P(49), {
384
359
  children: t,
385
360
  searchValue: n,
@@ -412,7 +387,7 @@ const st = (o) => {
412
387
  let D;
413
388
  e[22] !== g ? (D = (M) => g(M.target.value), e[22] = g, e[23] = D) : D = e[23];
414
389
  let I;
415
- e[24] !== v || e[25] !== C || e[26] !== c || e[27] !== a || e[28] !== r || e[29] !== n || e[30] !== D ? (I = /* @__PURE__ */ s(Mt, { ref: a, value: n, placeholder: r, "aria-label": C, autoComplete: "off", autoFocus: c, mx: "xs", h: "3rem", ...yo, onChange: D, onKeyDown: v }), e[24] = v, e[25] = C, e[26] = c, e[27] = a, e[28] = r, e[29] = n, e[30] = D, e[31] = I) : I = e[31];
390
+ e[24] !== v || e[25] !== C || e[26] !== c || e[27] !== a || e[28] !== r || e[29] !== n || e[30] !== D ? (I = /* @__PURE__ */ s(Mt, { ref: a, value: n, placeholder: r, "aria-label": C, autoComplete: "off", autoFocus: c, mx: "xs", h: "3rem", variant: "borderless", onChange: D, onKeyDown: v }), e[24] = v, e[25] = C, e[26] = c, e[27] = a, e[28] = r, e[29] = n, e[30] = D, e[31] = I) : I = e[31];
416
391
  let y;
417
392
  e[32] !== l || e[33] !== I ? (y = /* @__PURE__ */ s(Vt, { startElement: l, width: "full", children: I }), e[32] = l, e[33] = I, e[34] = y) : y = e[34];
418
393
  let b;
@@ -439,7 +414,7 @@ const st = (o) => {
439
414
  } else
440
415
  O = e[15];
441
416
  return O;
442
- }, vt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, Ki = (o) => {
417
+ }, vt = (o, e, t) => typeof o == "function" ? o(e) : o ?? t, Yi = (o) => {
443
418
  const e = P(71), {
444
419
  open: t,
445
420
  entries: n,
@@ -549,7 +524,7 @@ const st = (o) => {
549
524
  return;
550
525
  }
551
526
  if (F.key === "ArrowUp") {
552
- F.preventDefault(), A(Co);
527
+ F.preventDefault(), A(yo);
553
528
  return;
554
529
  }
555
530
  if (F.key === "Enter") {
@@ -588,10 +563,10 @@ const st = (o) => {
588
563
  ve
589
564
  ] }), e[67] = t, e[68] = oe, e[69] = ve, e[70] = Pe) : Pe = e[70], Pe;
590
565
  };
591
- function Co(o) {
566
+ function yo(o) {
592
567
  return Math.max(o - 1, 0);
593
568
  }
594
- const wo = {
569
+ const Co = {
595
570
  alt: {
596
571
  label: "Alt"
597
572
  },
@@ -607,7 +582,7 @@ const wo = {
607
582
  shift: {
608
583
  label: "Shift"
609
584
  }
610
- }, Io = {
585
+ }, wo = {
611
586
  alt: {
612
587
  label: "Option",
613
588
  Icon: xt
@@ -635,7 +610,7 @@ const wo = {
635
610
  shift: {
636
611
  label: "Shift"
637
612
  }
638
- }, To = {
613
+ }, Io = {
639
614
  arrowleft: {
640
615
  label: "Arrow Left",
641
616
  Icon: vn
@@ -644,38 +619,38 @@ const wo = {
644
619
  label: "Arrow Right",
645
620
  Icon: Sn
646
621
  }
647
- }, Po = () => {
622
+ }, To = () => {
648
623
  if (typeof navigator > "u") return "linux";
649
624
  const o = navigator.platform?.toLowerCase() ?? "";
650
625
  return o.includes("mac") ? "mac" : o.includes("win") ? "win" : "linux";
651
- }, Ao = (o, e = Po()) => {
652
- const t = o.toLowerCase(), n = e === "mac" ? Io : wo;
653
- return To[t] ?? n[t] ?? {
626
+ }, Po = (o, e = To()) => {
627
+ const t = o.toLowerCase(), n = e === "mac" ? wo : Co;
628
+ return Io[t] ?? n[t] ?? {
654
629
  label: o
655
630
  };
656
- }, yt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Ro = (o) => (Array.isArray(o) ? o.map(yt) : [yt(o)]).map((t) => t.map((n) => Ao(n))), Zi = (o) => {
631
+ }, yt = (o) => o.split("+").map((e) => e.trim()).filter(Boolean), Ao = (o) => (Array.isArray(o) ? o.map(yt) : [yt(o)]).map((t) => t.map((n) => Po(n))), Ki = (o) => {
657
632
  const e = P(4), {
658
633
  binding: t
659
634
  } = o;
660
635
  let n;
661
636
  if (e[0] !== t) {
662
- const i = Ro(t);
637
+ const i = Ao(t);
663
638
  n = i.map((l, a) => /* @__PURE__ */ x(bt, { children: [
664
639
  l.map((c, u) => /* @__PURE__ */ x(bt, { children: [
665
640
  /* @__PURE__ */ s(ln, { fontSize: "xs", borderRadius: "0", display: "inline-flex", alignItems: "center", justifyContent: "center", "aria-label": c.label, children: c.Icon ? /* @__PURE__ */ s(c.Icon, { size: 12, "aria-hidden": "true" }) : c.label }),
666
641
  u < l.length - 1 ? " " : null
667
642
  ] }, `${c.label}-${u}`)),
668
643
  a < i.length - 1 ? " then " : null
669
- ] }, `${l.map(Eo).join("+")}-${a}`)), e[0] = t, e[1] = n;
644
+ ] }, `${l.map(Ro).join("+")}-${a}`)), e[0] = t, e[1] = n;
670
645
  } else
671
646
  n = e[1];
672
647
  let r;
673
648
  return e[2] !== n ? (r = /* @__PURE__ */ s(Fe, { children: n }), e[2] = n, e[3] = r) : r = e[3], r;
674
649
  };
675
- function Eo(o) {
650
+ function Ro(o) {
676
651
  return o.label;
677
652
  }
678
- function Ji(o) {
653
+ function Zi(o) {
679
654
  const e = P(14);
680
655
  let t, n, r, i, l, a;
681
656
  e[0] !== o ? ({
@@ -690,7 +665,7 @@ function Ji(o) {
690
665
  let h;
691
666
  return e[7] !== f || e[8] !== t || e[9] !== c || e[10] !== u || e[11] !== d || e[12] !== n ? (h = /* @__PURE__ */ s(re, { ...n, h: c, justify: "space-between", align: "center", borderBottomWidth: f, borderColor: "border.subtle", px: u, py: d, children: t }), e[7] = f, e[8] = t, e[9] = c, e[10] = u, e[11] = d, e[12] = n, e[13] = h) : h = e[13], h;
692
667
  }
693
- const el = (o) => {
668
+ const Ji = (o) => {
694
669
  const e = P(17), {
695
670
  children: t,
696
671
  title: n,
@@ -713,7 +688,7 @@ const el = (o) => {
713
688
  u
714
689
  ] }), e[4] = c, e[5] = d) : d = e[5];
715
690
  let f;
716
- e[6] !== i ? (f = i && /* @__PURE__ */ s(V, { marginLeft: "auto", onClick: ko, children: i }), e[6] = i, e[7] = f) : f = e[7];
691
+ e[6] !== i ? (f = i && /* @__PURE__ */ s(V, { marginLeft: "auto", onClick: Eo, children: i }), e[6] = i, e[7] = f) : f = e[7];
717
692
  let h;
718
693
  e[8] !== d || e[9] !== f ? (h = /* @__PURE__ */ x(ge, { children: [
719
694
  d,
@@ -727,12 +702,12 @@ const el = (o) => {
727
702
  p
728
703
  ] }), e[13] = l, e[14] = h, e[15] = p, e[16] = m) : m = e[16], m;
729
704
  };
730
- function ko(o) {
705
+ function Eo(o) {
731
706
  return o.stopPropagation();
732
707
  }
733
- const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", $o = (o) => o !== "normal", Oo = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), Do = (o, e) => {
708
+ const ko = "2.5rem", Ct = "2xs", el = "sm", Zt = (o) => o === "urgent" ? "red" : o === "high" ? "orange" : o === "low" ? "gray" : "blue", _o = (o) => o !== "normal", $o = (o) => [o.title, o.body, o.kind, o.priority, o.status, o.sourceLabel, o.targetLabel, o.searchText, ...(o.actions ?? []).map((e) => e.label)].filter(Boolean).join(" ").toLowerCase(), Oo = (o, e) => {
734
709
  const t = e.trim().toLowerCase();
735
- return t ? o.filter((n) => Oo(n).includes(t)) : o;
710
+ return t ? o.filter((n) => $o(n).includes(t)) : o;
736
711
  }, Jt = (o) => {
737
712
  const e = o.filter((r) => r.kind === "blocked"), t = o.filter((r) => r.kind !== "blocked" && (r.priority === "urgent" || r.priority === "high")), n = o.filter((r) => r.kind !== "blocked" && (r.priority === "normal" || r.priority === "low"));
738
713
  return [{
@@ -748,7 +723,7 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
748
723
  label: "Other",
749
724
  items: n
750
725
  }].filter((r) => r.items.length > 0);
751
- }, Lo = (o) => Jt(o).flatMap((e) => e.items), zo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), No = (o, e) => {
726
+ }, Do = (o) => Jt(o).flatMap((e) => e.items), Lo = (o) => [o.body, o.targetLabel, o.sourceLabel, o.timeLabel].filter(Boolean).join(" · "), zo = (o, e) => {
752
727
  const t = [];
753
728
  return e.onDismiss && t.push({
754
729
  id: "dismiss",
@@ -757,14 +732,14 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
757
732
  tooltip: "Dismiss",
758
733
  onAction: () => e.onDismiss?.(o)
759
734
  }), t;
760
- }, Bo = (o) => {
735
+ }, No = (o) => {
761
736
  const e = P(15), {
762
737
  actions: t,
763
738
  item: n,
764
739
  onRunAction: r
765
740
  } = o;
766
741
  let i;
767
- e[0] !== n.priority ? (i = $o(n.priority) ? /* @__PURE__ */ s(Ne, { size: "sm", colorPalette: Zt(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
742
+ e[0] !== n.priority ? (i = _o(n.priority) ? /* @__PURE__ */ s(Ne, { size: "sm", colorPalette: Zt(n.priority), textTransform: "capitalize", flexShrink: 0, children: n.priority }) : null, e[0] = n.priority, e[1] = i) : i = e[1];
768
743
  let l;
769
744
  e[2] !== n.status ? (l = n.status === "open" ? /* @__PURE__ */ s(Ne, { size: "sm", colorPalette: "blue", variant: "solid", flexShrink: 0, children: "New" }) : null, e[2] = n.status, e[3] = l) : l = e[3];
770
745
  let a;
@@ -781,7 +756,7 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
781
756
  l,
782
757
  a
783
758
  ] }), e[11] = i, e[12] = l, e[13] = a, e[14] = c) : c = e[14], c;
784
- }, Wo = (o) => {
759
+ }, Bo = (o) => {
785
760
  const {
786
761
  activeIndex: e,
787
762
  items: t,
@@ -794,14 +769,14 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
794
769
  /* @__PURE__ */ s(W, { textStyle: "label/XS/medium", color: "fg.muted", px: "sm", pt: "xs", children: c.label }),
795
770
  c.items.map((u) => {
796
771
  const d = a;
797
- return a += 1, /* @__PURE__ */ s(nt, { id: u.id, label: u.title, description: zo(u), icon: /* @__PURE__ */ s(se, { as: Cn, boxSize: "14px" }), iconColor: `${Zt(u.priority)}.500`, variant: "compact", isSelected: d === e, endContent: /* @__PURE__ */ s(Bo, { item: u, actions: u.actions ?? [], onRunAction: i }), actions: No(u, o), tabIndex: -1, onActivate: () => n?.(u), onPointerMove: () => r(d) }, u.id);
772
+ return a += 1, /* @__PURE__ */ s(nt, { id: u.id, label: u.title, description: Lo(u), icon: /* @__PURE__ */ s(se, { as: Cn, boxSize: "14px" }), iconColor: `${Zt(u.priority)}.500`, variant: "compact", isSelected: d === e, endContent: /* @__PURE__ */ s(No, { item: u, actions: u.actions ?? [], onRunAction: i }), actions: zo(u, o), tabIndex: -1, onActivate: () => n?.(u), onPointerMove: () => r(d) }, u.id);
798
773
  })
799
774
  ] }, c.id)) });
800
- }, Fo = () => {
775
+ }, Wo = () => {
801
776
  const o = P(1);
802
777
  let e;
803
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Ho) }), o[0] = e) : e = o[0], e;
804
- }, nl = (o) => {
778
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(j, { gap: "2", p: "sm", children: [0, 1, 2, 3].map(Fo) }), o[0] = e) : e = o[0], e;
779
+ }, tl = (o) => {
805
780
  const e = P(37), {
806
781
  autoFocus: t,
807
782
  emptyLabel: n,
@@ -816,7 +791,7 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
816
791
  query: h
817
792
  } = o, p = t === void 0 ? !1 : t, m = n === void 0 ? "No notifications." : n, g = c === void 0 ? !1 : c, [v, C] = ue(""), [R, E] = ue(0), O = je(null), S = h ?? v;
818
793
  let k, w;
819
- e[0] !== S || e[1] !== a ? (k = Do(a, S), w = Lo(k), e[0] = S, e[1] = a, e[2] = k, e[3] = w) : (k = e[2], w = e[3]);
794
+ e[0] !== S || e[1] !== a ? (k = Oo(a, S), w = Do(k), e[0] = S, e[1] = a, e[2] = k, e[3] = w) : (k = e[2], w = e[3]);
820
795
  const $ = w, T = $[R] ?? null;
821
796
  let A, L;
822
797
  e[4] !== p ? (A = () => {
@@ -841,7 +816,7 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
841
816
  return;
842
817
  }
843
818
  if (z.key === "ArrowUp") {
844
- z.preventDefault(), E(Mo);
819
+ z.preventDefault(), E(Ho);
845
820
  return;
846
821
  }
847
822
  if (z.key === "Enter") {
@@ -865,20 +840,20 @@ const _o = "2.5rem", Ct = "2xs", tl = "sm", Zt = (o) => o === "urgent" ? "red" :
865
840
  showHorizontalScrollbar: !1
866
841
  }, e[21] = H) : H = e[21];
867
842
  let M;
868
- e[22] !== R || e[23] !== m || e[24] !== r || e[25] !== k || e[26] !== g || e[27] !== o ? (M = r ? /* @__PURE__ */ s(V, { p: "sm", children: /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Fo, {}) : k.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Wo, { ...o, items: k, activeIndex: R, onActiveIndexChange: E }), e[22] = R, e[23] = m, e[24] = r, e[25] = k, e[26] = g, e[27] = o, e[28] = M) : M = e[28];
843
+ e[22] !== R || e[23] !== m || e[24] !== r || e[25] !== k || e[26] !== g || e[27] !== o ? (M = r ? /* @__PURE__ */ s(V, { p: "sm", children: /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: "Notifications unavailable", size: "sm", children: r }) }) : g ? /* @__PURE__ */ s(Wo, {}) : k.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", px: "sm", py: "md", children: m }) : /* @__PURE__ */ s(Bo, { ...o, items: k, activeIndex: R, onActiveIndexChange: E }), e[22] = R, e[23] = m, e[24] = r, e[25] = k, e[26] = g, e[27] = o, e[28] = M) : M = e[28];
869
844
  let G;
870
845
  return e[29] !== S || e[30] !== p || e[31] !== i || e[32] !== l || e[33] !== _ || e[34] !== M || e[35] !== y ? (G = /* @__PURE__ */ s(Kt, { searchValue: S, searchPlaceholder: "Search notifications", searchIcon: B, searchInputRef: O, searchAutoFocus: p, footerStart: l, footerEnd: i, scrollAreaProps: H, onSearchChange: y, onSearchKeyDown: _, children: M }), e[29] = S, e[30] = p, e[31] = i, e[32] = l, e[33] = _, e[34] = M, e[35] = y, e[36] = G) : G = e[36], G;
871
846
  };
872
- function Ho(o) {
847
+ function Fo(o) {
873
848
  return /* @__PURE__ */ x(j, { gap: "2xs", children: [
874
849
  /* @__PURE__ */ s(mt, { h: "4", w: o % 2 === 0 ? "68%" : "52%", borderRadius: "xs" }),
875
850
  /* @__PURE__ */ s(mt, { h: "3", w: "88%", borderRadius: "xs" })
876
851
  ] }, o);
877
852
  }
878
- function Mo(o) {
853
+ function Ho(o) {
879
854
  return Math.max(o - 1, 0);
880
855
  }
881
- const ol = (o) => {
856
+ const nl = (o) => {
882
857
  const e = P(6);
883
858
  let t, n;
884
859
  e[0] !== o ? ({
@@ -887,7 +862,7 @@ const ol = (o) => {
887
862
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
888
863
  let r;
889
864
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(ge, { as: "aside", direction: "column", h: "full", minH: "0", minW: "0", w: "full", overflow: "hidden", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
890
- }, Vo = "20rem", rl = (o) => {
865
+ }, Mo = "20rem", ol = (o) => {
891
866
  const e = P(15);
892
867
  let t, n, r, i, l, a;
893
868
  e[0] !== o ? ({
@@ -898,7 +873,7 @@ const ol = (o) => {
898
873
  resizable: a,
899
874
  ...i
900
875
  } = o, e[0] = o, e[1] = t, e[2] = n, e[3] = r, e[4] = i, e[5] = l, e[6] = a) : (t = e[1], n = e[2], r = e[3], i = e[4], l = e[5], a = e[6]);
901
- const c = l === void 0 ? "28rem" : l, u = a === void 0 ? !1 : a, d = r ?? (u ? Vo : c), f = u ? "full" : c;
876
+ const c = l === void 0 ? "28rem" : l, u = a === void 0 ? !1 : a, d = r ?? (u ? Mo : c), f = u ? "full" : c;
902
877
  let h;
903
878
  e[7] !== t ? (h = /* @__PURE__ */ s(ge, { flex: "1", minH: 0, direction: "column", children: t }), e[7] = t, e[8] = h) : h = e[8];
904
879
  let p;
@@ -906,7 +881,7 @@ const ol = (o) => {
906
881
  n,
907
882
  h
908
883
  ] }), e[9] = n, e[10] = d, e[11] = f, e[12] = i, e[13] = h, e[14] = p) : p = e[14], p;
909
- }, il = jt(function(e, t) {
884
+ }, rl = jt(function(e, t) {
910
885
  const n = P(19);
911
886
  let r, i, l, a, c;
912
887
  n[0] !== e ? ({
@@ -930,7 +905,7 @@ const ol = (o) => {
930
905
  n[13] !== m || n[14] !== c ? (g = c ? /* @__PURE__ */ s(Ue, { content: c, children: m }) : m, n[13] = m, n[14] = c, n[15] = g) : g = n[15];
931
906
  let v;
932
907
  return n[16] !== i || n[17] !== g ? (v = /* @__PURE__ */ s(Ie.div, { position: "fixed", bottom: "6", right: "6", zIndex: "docked", ...i, children: g }), n[16] = i, n[17] = g, n[18] = v) : v = n[18], v;
933
- }), ll = jt(function(e, t) {
908
+ }), il = jt(function(e, t) {
934
909
  const n = P(28), {
935
910
  isOpen: r,
936
911
  title: i,
@@ -977,7 +952,7 @@ const ol = (o) => {
977
952
  ] }), n[17] = L, n[18] = A, n[19] = N) : N = n[19];
978
953
  let D;
979
954
  return n[20] !== p || n[21] !== E || n[22] !== t || n[23] !== N || n[24] !== O || n[25] !== m || n[26] !== R ? (D = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(Ie.section, { ref: t, role: "dialog", "data-testid": m, "aria-label": O, position: "fixed", bottom: "3", right: "3", w: R, maxW: "calc(100vw - 2rem)", h: E, maxH: "calc(100vh - 2rem)", borderRadius: "xs", borderWidth: "1px", borderColor: "border.subtle", bg: "bg", overflow: "hidden", zIndex: "dropdown", ...p, children: N }) }), n[20] = p, n[21] = E, n[22] = t, n[23] = N, n[24] = O, n[25] = m, n[26] = R, n[27] = D) : D = n[27], D;
980
- }), Go = (o) => {
955
+ }), Vo = (o) => {
981
956
  const [e, t] = ue(!1), {
982
957
  headline: n,
983
958
  buttonText: r,
@@ -1019,10 +994,10 @@ const ol = (o) => {
1019
994
  ] }) })
1020
995
  ] }) })
1021
996
  );
1022
- }, jo = (o) => o.isDirectory ? o.isGitRepo ? An : Qt : Pn, Uo = (o, e) => {
997
+ }, Go = (o) => o.isDirectory ? o.isGitRepo ? An : Qt : Pn, jo = (o, e) => {
1023
998
  const t = e.trim().toLowerCase();
1024
999
  return t ? o.filter((n) => `${n.name} ${n.path}`.toLowerCase().includes(t)) : o;
1025
- }, Qo = (o) => {
1000
+ }, Uo = (o) => {
1026
1001
  const e = P(22), {
1027
1002
  entry: t,
1028
1003
  selectedPath: n,
@@ -1038,14 +1013,14 @@ const ol = (o) => {
1038
1013
  }, e[4] = t, e[5] = a, e[6] = i, e[7] = u) : u = e[7];
1039
1014
  const d = u, f = n === t.path, h = t.path, p = t.name;
1040
1015
  let m;
1041
- e[8] !== t ? (m = jo(t), e[8] = t, e[9] = m) : m = e[9];
1016
+ e[8] !== t ? (m = Go(t), e[8] = t, e[9] = m) : m = e[9];
1042
1017
  let g;
1043
1018
  e[10] !== m ? (g = /* @__PURE__ */ s(se, { as: m, boxSize: "16px" }), e[10] = m, e[11] = g) : g = e[11];
1044
1019
  let v;
1045
1020
  e[12] !== t.isGitRepo ? (v = t.isGitRepo ? /* @__PURE__ */ s(Ne, { textStyle: "label/XS/medium", px: "xs", py: "2px", colorPalette: "green", variant: "subtle", pointerEvents: "none", children: "Git repo" }) : void 0, e[12] = t.isGitRepo, e[13] = v) : v = e[13];
1046
1021
  let C;
1047
1022
  return e[14] !== t.name || e[15] !== t.path || e[16] !== d || e[17] !== c || e[18] !== f || e[19] !== g || e[20] !== v ? (C = /* @__PURE__ */ s(nt, { variant: "compact", isSelected: f, id: h, label: p, icon: g, endContent: v, disabled: c, onActivate: d }), e[14] = t.name, e[15] = t.path, e[16] = d, e[17] = c, e[18] = f, e[19] = g, e[20] = v, e[21] = C) : C = e[21], C;
1048
- }, Xo = (o) => {
1023
+ }, Qo = (o) => {
1049
1024
  if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(o.key))
1050
1025
  return;
1051
1026
  const e = Array.from(o.currentTarget.querySelectorAll('button[role="option"]:not(:disabled)'));
@@ -1053,7 +1028,7 @@ const ol = (o) => {
1053
1028
  return;
1054
1029
  const t = e.indexOf(document.activeElement), n = o.key === "Home" ? 0 : o.key === "End" ? e.length - 1 : o.key === "ArrowUp" ? t <= 0 ? e.length - 1 : t - 1 : t < 0 || t === e.length - 1 ? 0 : t + 1;
1055
1030
  o.preventDefault(), e[n]?.focus();
1056
- }, sl = (o) => {
1031
+ }, ll = (o) => {
1057
1032
  const e = P(68), {
1058
1033
  open: t,
1059
1034
  title: n,
@@ -1076,7 +1051,7 @@ const ol = (o) => {
1076
1051
  const S = O, k = u === void 0 ? !1 : u, w = d === void 0 ? "" : d, $ = f === void 0 ? !1 : f, [T, A] = ue("");
1077
1052
  let L;
1078
1053
  e[2] !== S ? (L = new Set(S), e[2] = S, e[3] = L) : L = e[3];
1079
- const N = L, D = Uo(l, T), I = R || "Home";
1054
+ const N = L, D = jo(l, T), I = R || "Home";
1080
1055
  let y, b;
1081
1056
  e[4] !== t || e[5] !== I ? (b = () => {
1082
1057
  !t || !I || A("");
@@ -1123,7 +1098,7 @@ const ol = (o) => {
1123
1098
  e[33] !== T ? (ye = /* @__PURE__ */ s(Vt, { startElement: F, width: "full", borderBottomWidth: "1px", borderColor: "border.subtle", children: /* @__PURE__ */ s(Mt, { mx: "xs", value: T, placeholder: "Search repositories", "aria-label": "Search repositories", autoComplete: "off", onChange: me }) }), e[33] = T, e[34] = ye) : ye = e[34];
1124
1099
  const Ce = k ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "Loading..." }) : w ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "red.500", p: "sm", children: w }) : D.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "sm", children: "No entries found." }) : /* @__PURE__ */ s(tt, { maxHeight: "320px", contentProps: {
1125
1100
  padding: "sm"
1126
- }, children: /* @__PURE__ */ s(j, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Xo, children: D.map((De) => /* @__PURE__ */ s(Qo, { entry: De, selectedPath: E, selectedPathSet: N, onEntryClick: v }, De.path)) }) });
1101
+ }, children: /* @__PURE__ */ s(j, { gap: "xs", role: "listbox", "aria-label": "Repository folders", onKeyDown: Qo, children: D.map((De) => /* @__PURE__ */ s(Uo, { entry: De, selectedPath: E, selectedPathSet: N, onEntryClick: v }, De.path)) }) });
1127
1102
  let pe;
1128
1103
  e[35] !== be || e[36] !== ye || e[37] !== Ce ? (pe = /* @__PURE__ */ x(be, { gap: Te, borderWidth: xe, borderRadius: Se, borderColor: ve, overflow: Pe, children: [
1129
1104
  ye,
@@ -1185,13 +1160,13 @@ const ol = (o) => {
1185
1160
  _hover: {
1186
1161
  textDecoration: "none"
1187
1162
  }
1188
- }, qo = (o) => !!(o.url || o.onClick), Yo = (o) => {
1163
+ }, Xo = (o) => !!(o.url || o.onClick), qo = (o) => {
1189
1164
  const e = P(14), {
1190
1165
  item: t,
1191
1166
  isCurrent: n,
1192
1167
  linkComponent: r
1193
1168
  } = o;
1194
- if (n && !qo(t)) {
1169
+ if (n && !Xo(t)) {
1195
1170
  let l;
1196
1171
  return e[0] !== t.title ? (l = /* @__PURE__ */ s(fe.CurrentLink, { ...wt, children: t.title }), e[0] = t.title, e[1] = l) : l = e[1], l;
1197
1172
  }
@@ -1209,12 +1184,12 @@ const ol = (o) => {
1209
1184
  }
1210
1185
  let i;
1211
1186
  return e[12] !== t.title ? (i = /* @__PURE__ */ s(fe.Link, { as: "span", ...wt, children: t.title }), e[12] = t.title, e[13] = i) : i = e[13], i;
1212
- }, Ko = (o) => {
1187
+ }, Yo = (o) => {
1213
1188
  const e = P(6), {
1214
1189
  item: t
1215
1190
  } = o;
1216
1191
  let n;
1217
- e[0] !== o ? (n = /* @__PURE__ */ s(Yo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1192
+ e[0] !== o ? (n = /* @__PURE__ */ s(qo, { ...o }), e[0] = o, e[1] = n) : n = e[1];
1218
1193
  const r = n;
1219
1194
  if (!t.contextMenuActions?.length)
1220
1195
  return r;
@@ -1224,7 +1199,7 @@ const ol = (o) => {
1224
1199
  }, e[2] = i) : i = e[2];
1225
1200
  let l;
1226
1201
  return e[3] !== r || e[4] !== t.contextMenuActions ? (l = /* @__PURE__ */ s(Xt, { actions: t.contextMenuActions, positioning: i, children: r }), e[3] = r, e[4] = t.contextMenuActions, e[5] = l) : l = e[5], l;
1227
- }, Zo = (o) => {
1202
+ }, Ko = (o) => {
1228
1203
  const e = P(3), {
1229
1204
  separator: t
1230
1205
  } = o;
@@ -1234,7 +1209,7 @@ const ol = (o) => {
1234
1209
  }
1235
1210
  let n;
1236
1211
  return e[1] !== t ? (n = /* @__PURE__ */ s(fe.Separator, { flexShrink: 0, children: t }), e[1] = t, e[2] = n) : n = e[2], n;
1237
- }, al = gt.forwardRef(function(e, t) {
1212
+ }, sl = gt.forwardRef(function(e, t) {
1238
1213
  const n = P(21);
1239
1214
  let r, i, l, a, c;
1240
1215
  n[0] !== e ? ({
@@ -1250,8 +1225,8 @@ const ol = (o) => {
1250
1225
  n[10] !== r || n[11] !== i.length || n[12] !== a ? (h = (p, m) => {
1251
1226
  const g = m === i.length - 1;
1252
1227
  return /* @__PURE__ */ x(gt.Fragment, { children: [
1253
- /* @__PURE__ */ s(fe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Ko, { item: p, isCurrent: g, linkComponent: r }) }),
1254
- g ? null : /* @__PURE__ */ s(Zo, { separator: a })
1228
+ /* @__PURE__ */ s(fe.Item, { minW: "0", flexShrink: g ? 1 : 0, overflow: "hidden", children: /* @__PURE__ */ s(Yo, { item: p, isCurrent: g, linkComponent: r }) }),
1229
+ g ? null : /* @__PURE__ */ s(Ko, { separator: a })
1255
1230
  ] }, m);
1256
1231
  }, n[10] = r, n[11] = i.length, n[12] = a, n[13] = h) : h = n[13], u = i.map(h), n[6] = r, n[7] = i, n[8] = a, n[9] = u;
1257
1232
  } else
@@ -1260,23 +1235,23 @@ const ol = (o) => {
1260
1235
  n[14] !== c || n[15] !== u ? (d = /* @__PURE__ */ s(fe.List, { gap: c, flexWrap: "nowrap", minW: "0", maxW: "100%", overflow: "hidden", children: u }), n[14] = c, n[15] = u, n[16] = d) : d = n[16];
1261
1236
  let f;
1262
1237
  return n[17] !== t || n[18] !== l || n[19] !== d ? (f = /* @__PURE__ */ s(fe.Root, { ref: t, ...l, children: d }), n[17] = t, n[18] = l, n[19] = d, n[20] = f) : f = n[20], f;
1263
- }), Jo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, er = (o) => {
1238
+ }), Zo = `url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%239C92AC' fill-opacity='0.2' fillRule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E")`, Jo = (o) => {
1264
1239
  const e = P(3);
1265
1240
  let t;
1266
1241
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = {
1267
1242
  backgroundClip: "padding-box",
1268
- backgroundImage: Jo,
1243
+ backgroundImage: Zo,
1269
1244
  display: "flex",
1270
1245
  width: "100%"
1271
1246
  }, e[0] = t) : t = e[0];
1272
1247
  let n;
1273
1248
  return e[1] !== o ? (n = /* @__PURE__ */ s(V, { ...o, css: t }), e[1] = o, e[2] = n) : n = e[2], n;
1274
- }, cl = (o) => {
1249
+ }, al = (o) => {
1275
1250
  const e = P(2);
1276
1251
  let t;
1277
1252
  return e[0] !== o ? (t = /* @__PURE__ */ s(V, { p: "2", children: /* @__PURE__ */ s(W, { color: "fg.muted", fontWeight: "medium", textStyle: "sm", whiteSpace: "nowrap", ...o }) }), e[0] = o, e[1] = t) : t = e[1], t;
1278
1253
  };
1279
- class dl extends mn {
1254
+ class cl extends mn {
1280
1255
  state = {
1281
1256
  error: null
1282
1257
  };
@@ -1301,10 +1276,10 @@ class dl extends mn {
1301
1276
  } = this.props, {
1302
1277
  error: r
1303
1278
  } = this.state;
1304
- return r ? t || /* @__PURE__ */ s(tr, { error: r, label: n, onReset: this.handleReset }) : e;
1279
+ return r ? t || /* @__PURE__ */ s(er, { error: r, label: n, onReset: this.handleReset }) : e;
1305
1280
  }
1306
1281
  }
1307
- const tr = (o) => {
1282
+ const er = (o) => {
1308
1283
  const e = P(12), {
1309
1284
  error: t,
1310
1285
  label: n,
@@ -1323,8 +1298,8 @@ const tr = (o) => {
1323
1298
  u
1324
1299
  ] }), e[6] = c, e[7] = u, e[8] = d) : d = e[8];
1325
1300
  let f;
1326
- return e[9] !== l || e[10] !== d ? (f = /* @__PURE__ */ s(er, { height: "100%", width: "100%", children: /* @__PURE__ */ s(sn, { children: /* @__PURE__ */ s(ft, { status: "error", title: l, children: d }) }) }), e[9] = l, e[10] = d, e[11] = f) : f = e[11], f;
1327
- }, nr = (o) => !!o && o !== "circle", or = (o) => {
1301
+ return e[9] !== l || e[10] !== d ? (f = /* @__PURE__ */ s(Jo, { height: "100%", width: "100%", children: /* @__PURE__ */ s(sn, { children: /* @__PURE__ */ s(ft, { status: "error", title: l, children: d }) }) }), e[9] = l, e[10] = d, e[11] = f) : f = e[11], f;
1302
+ }, tr = (o) => !!o && o !== "circle", nr = (o) => {
1328
1303
  const e = P(18);
1329
1304
  let t, n, r, i, l;
1330
1305
  e[0] !== o ? ({
@@ -1339,10 +1314,10 @@ const tr = (o) => {
1339
1314
  e[6] !== n || e[7] !== r ? (c = Nn(n, r), e[6] = n, e[7] = r, e[8] = c) : c = e[8];
1340
1315
  const u = c, d = `${t}.500/15`;
1341
1316
  let f;
1342
- e[9] !== u || e[10] !== t || e[11] !== n || e[12] !== a ? (f = a && nr(n) ? /* @__PURE__ */ s(se, { as: u, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(V, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = u, e[10] = t, e[11] = n, e[12] = a, e[13] = f) : f = e[13];
1317
+ e[9] !== u || e[10] !== t || e[11] !== n || e[12] !== a ? (f = a && tr(n) ? /* @__PURE__ */ s(se, { as: u, boxSize: "icon-xs", color: `${t}.500` }) : /* @__PURE__ */ s(V, { boxSize: "tag-swatch-dot", borderRadius: "full", bg: `${t}.500` }), e[9] = u, e[10] = t, e[11] = n, e[12] = a, e[13] = f) : f = e[13];
1343
1318
  let h;
1344
1319
  return e[14] !== i || e[15] !== d || e[16] !== f ? (h = /* @__PURE__ */ s(an, { boxSize: "tag-swatch", flexShrink: 0, borderRadius: "compact", bg: d, ...i, children: f }), e[14] = i, e[15] = d, e[16] = f, e[17] = h) : h = e[17], h;
1345
- }, rr = Ie("button", {
1320
+ }, or = Ie("button", {
1346
1321
  base: {
1347
1322
  display: "inline-flex",
1348
1323
  borderRadius: "compact",
@@ -1353,7 +1328,7 @@ const tr = (o) => {
1353
1328
  opacity: 0.5
1354
1329
  }
1355
1330
  }
1356
- }), ir = Ie("button", {
1331
+ }), rr = Ie("button", {
1357
1332
  base: {
1358
1333
  boxSize: "tag-color-dot",
1359
1334
  borderRadius: "full",
@@ -1366,7 +1341,7 @@ const tr = (o) => {
1366
1341
  outlineColor: "fg"
1367
1342
  }
1368
1343
  }
1369
- }), lr = Ie("button", {
1344
+ }), ir = Ie("button", {
1370
1345
  base: {
1371
1346
  display: "inline-flex",
1372
1347
  alignItems: "center",
@@ -1379,7 +1354,7 @@ const tr = (o) => {
1379
1354
  bg: "bg.hover"
1380
1355
  }
1381
1356
  }
1382
- }), sr = (o) => {
1357
+ }), lr = (o) => {
1383
1358
  const e = P(39), {
1384
1359
  color: t,
1385
1360
  colorOptions: n,
@@ -1398,9 +1373,9 @@ const tr = (o) => {
1398
1373
  placement: "bottom-start"
1399
1374
  }, e[0] = O) : O = e[0];
1400
1375
  let S;
1401
- e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(or, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = S) : S = e[5];
1376
+ e[1] !== t || e[2] !== r || e[3] !== m || e[4] !== g ? (S = /* @__PURE__ */ s(nr, { color: t, icon: r, iconOptions: m, showIcon: g }), e[1] = t, e[2] = r, e[3] = m, e[4] = g, e[5] = S) : S = e[5];
1402
1377
  let k;
1403
- e[6] !== R || e[7] !== c || e[8] !== S ? (k = /* @__PURE__ */ s(qe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(rr, { type: "button", disabled: c, "aria-label": R, children: S }) }), e[6] = R, e[7] = c, e[8] = S, e[9] = k) : k = e[9];
1378
+ e[6] !== R || e[7] !== c || e[8] !== S ? (k = /* @__PURE__ */ s(qe.Trigger, { asChild: !0, children: /* @__PURE__ */ s(or, { type: "button", disabled: c, "aria-label": R, children: S }) }), e[6] = R, e[7] = c, e[8] = S, e[9] = k) : k = e[9];
1404
1379
  const w = g ? "tag-picker" : "tag-picker-color-only";
1405
1380
  let $;
1406
1381
  e[10] !== v ? ($ = /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg.muted", children: v }), e[10] = v, e[11] = $) : $ = e[11];
@@ -1408,7 +1383,7 @@ const tr = (o) => {
1408
1383
  let A;
1409
1384
  if (e[12] !== t || e[13] !== p || e[14] !== l) {
1410
1385
  let b;
1411
- e[16] !== t || e[17] !== l ? (b = (_) => /* @__PURE__ */ s(ir, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = b) : b = e[18], A = p.map(b), e[12] = t, e[13] = p, e[14] = l, e[15] = A;
1386
+ e[16] !== t || e[17] !== l ? (b = (_) => /* @__PURE__ */ s(rr, { type: "button", bg: `${_}.500`, "aria-label": _, "aria-pressed": _ === t, "data-selected": _ === t ? "" : void 0, onClick: () => l(_) }, _), e[16] = t, e[17] = l, e[18] = b) : b = e[18], A = p.map(b), e[12] = t, e[13] = p, e[14] = l, e[15] = A;
1412
1387
  } else
1413
1388
  A = e[15];
1414
1389
  let L;
@@ -1419,7 +1394,7 @@ const tr = (o) => {
1419
1394
  /* @__PURE__ */ s(W, { textStyle: "label/S/medium", color: "fg.muted", children: C }),
1420
1395
  /* @__PURE__ */ s(pt, { templateColumns: "repeat(8, 1fr)", gap: "3xs", justifyItems: "center", children: m.map((b) => {
1421
1396
  const _ = b.value === E;
1422
- return /* @__PURE__ */ s(lr, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
1397
+ return /* @__PURE__ */ s(ir, { type: "button", color: _ ? `${t}.500` : void 0, bg: _ ? `${t}.500/15` : void 0, _hover: _ ? {
1423
1398
  bg: `${t}.500/15`
1424
1399
  } : void 0, "aria-label": b.label, "aria-pressed": _, onClick: () => a?.(b.value), children: /* @__PURE__ */ s(se, { as: b.icon, boxSize: "icon-xs" }) }, b.value ?? "none");
1425
1400
  }) })
@@ -1437,7 +1412,7 @@ const tr = (o) => {
1437
1412
  k,
1438
1413
  I
1439
1414
  ] }), e[36] = I, e[37] = k, e[38] = y) : y = e[38], y;
1440
- }, ar = (o) => {
1415
+ }, sr = (o) => {
1441
1416
  const e = P(6);
1442
1417
  let t, n;
1443
1418
  e[0] !== o ? ({
@@ -1446,7 +1421,7 @@ const tr = (o) => {
1446
1421
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1447
1422
  let r;
1448
1423
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(V, { borderWidth: "1px", borderColor: "border.subtle", borderRadius: "xs", bg: "bg", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1449
- }, cr = (o) => {
1424
+ }, ar = (o) => {
1450
1425
  const e = P(6);
1451
1426
  let t, n;
1452
1427
  e[0] !== o ? ({
@@ -1455,7 +1430,7 @@ const tr = (o) => {
1455
1430
  } = o, e[0] = o, e[1] = t, e[2] = n) : (t = e[1], n = e[2]);
1456
1431
  let r;
1457
1432
  return e[3] !== t || e[4] !== n ? (r = /* @__PURE__ */ s(V, { p: "md", ...n, children: t }), e[3] = t, e[4] = n, e[5] = r) : r = e[5], r;
1458
- }, ul = (o) => {
1433
+ }, dl = (o) => {
1459
1434
  const e = P(30), {
1460
1435
  icon: t,
1461
1436
  name: n,
@@ -1502,12 +1477,12 @@ const tr = (o) => {
1502
1477
  O
1503
1478
  ] }), e[22] = d, e[23] = O, e[24] = E, e[25] = S) : S = e[25];
1504
1479
  let k;
1505
- return e[26] !== f || e[27] !== S || e[28] !== R ? (k = /* @__PURE__ */ s(ar, { children: /* @__PURE__ */ s(cr, { children: /* @__PURE__ */ x(re, { gap: "4", alignItems: "flex-start", children: [
1480
+ return e[26] !== f || e[27] !== S || e[28] !== R ? (k = /* @__PURE__ */ s(sr, { children: /* @__PURE__ */ s(ar, { children: /* @__PURE__ */ x(re, { gap: "4", alignItems: "flex-start", children: [
1506
1481
  f,
1507
1482
  R,
1508
1483
  S
1509
1484
  ] }) }) }), e[26] = f, e[27] = S, e[28] = R, e[29] = k) : k = e[29], k;
1510
- }, dr = cn({
1485
+ }, cr = cn({
1511
1486
  className: "ps-segmented-control",
1512
1487
  slots: ["root", "item"],
1513
1488
  base: {
@@ -1576,11 +1551,11 @@ const tr = (o) => {
1576
1551
  size: "sm"
1577
1552
  }
1578
1553
  }), {
1579
- withProvider: ur,
1580
- withContext: fr
1554
+ withProvider: dr,
1555
+ withContext: ur
1581
1556
  } = dn({
1582
- recipe: dr
1583
- }), hr = ur("div", "root"), mr = fr("button", "item"), fl = (o) => {
1557
+ recipe: cr
1558
+ }), fr = dr("div", "root"), hr = ur("button", "item"), ul = (o) => {
1584
1559
  const e = P(20);
1585
1560
  let t, n, r, i, l, a;
1586
1561
  e[0] !== o ? ({
@@ -1596,24 +1571,24 @@ const tr = (o) => {
1596
1571
  let d;
1597
1572
  e[12] !== n || e[13] !== r || e[14] !== a ? (d = (f) => {
1598
1573
  const h = f.value === a;
1599
- return /* @__PURE__ */ s(mr, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1574
+ return /* @__PURE__ */ s(hr, { type: "button", "aria-pressed": h, "data-selected": h ? "" : void 0, disabled: n, onClick: () => r(f.value), children: f.label }, f.value);
1600
1575
  }, e[12] = n, e[13] = r, e[14] = a, e[15] = d) : d = e[15], c = i.map(d), e[7] = n, e[8] = r, e[9] = i, e[10] = a, e[11] = c;
1601
1576
  } else
1602
1577
  c = e[11];
1603
1578
  let u;
1604
- return e[16] !== t || e[17] !== l || e[18] !== c ? (u = /* @__PURE__ */ s(hr, { role: "group", "aria-label": t, ...l, children: c }), e[16] = t, e[17] = l, e[18] = c, e[19] = u) : u = e[19], u;
1605
- }, pr = un({
1579
+ return e[16] !== t || e[17] !== l || e[18] !== c ? (u = /* @__PURE__ */ s(fr, { role: "group", "aria-label": t, ...l, children: c }), e[16] = t, e[17] = l, e[18] = c, e[19] = u) : u = e[19], u;
1580
+ }, mr = un({
1606
1581
  placement: "top",
1607
1582
  pauseOnPageIdle: !0,
1608
1583
  duration: 1e4
1609
- }), hl = () => {
1584
+ }), fl = () => {
1610
1585
  const o = P(1);
1611
1586
  let e;
1612
- return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(fn, { toaster: pr, insetInline: {
1587
+ return o[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s(Je, { children: /* @__PURE__ */ s(fn, { toaster: mr, insetInline: {
1613
1588
  mdDown: "4"
1614
- }, children: gr }) }), o[0] = e) : e = o[0], e;
1589
+ }, children: pr }) }), o[0] = e) : e = o[0], e;
1615
1590
  };
1616
- function gr(o) {
1591
+ function pr(o) {
1617
1592
  return /* @__PURE__ */ x(Le.Root, { width: {
1618
1593
  md: "sm"
1619
1594
  }, alignItems: "start", borderRadius: "xs", gap: "xs", px: "sm", py: "xs", minH: "auto", children: [
@@ -1628,7 +1603,7 @@ function gr(o) {
1628
1603
  /* @__PURE__ */ s(Le.CloseTrigger, {})
1629
1604
  ] });
1630
1605
  }
1631
- const ml = (o) => {
1606
+ const hl = (o) => {
1632
1607
  const e = P(6);
1633
1608
  let t, n;
1634
1609
  e[0] !== o ? ({
@@ -1642,12 +1617,12 @@ const ml = (o) => {
1642
1617
  expandedSections: [],
1643
1618
  expandedNodes: [],
1644
1619
  width: null
1645
- }, br = "pstdio/ui/sidenav", xr = (o) => `${br}/${o}`, Tt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], Pt = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), Sr = (o) => ({
1620
+ }, gr = "pstdio/ui/sidenav", br = (o) => `${gr}/${o}`, Tt = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], Pt = (o, e, t) => t ? o.includes(e) ? o : [...o, e] : o.filter((n) => n !== e), xr = (o) => ({
1646
1621
  open: o.open,
1647
1622
  expandedSections: o.expandedSections,
1648
1623
  expandedNodes: o.expandedNodes,
1649
1624
  width: o.width
1650
- }), vr = (o) => {
1625
+ }), Sr = (o) => {
1651
1626
  const {
1652
1627
  storageKey: e,
1653
1628
  initialState: t
@@ -1691,15 +1666,15 @@ const ml = (o) => {
1691
1666
  })),
1692
1667
  reset: () => r(It)
1693
1668
  }), {
1694
- name: xr(e),
1669
+ name: br(e),
1695
1670
  storage: it(He),
1696
- partialize: Sr
1671
+ partialize: xr
1697
1672
  }));
1698
- }, At = /* @__PURE__ */ new Map(), yr = (o, e) => {
1673
+ }, At = /* @__PURE__ */ new Map(), vr = (o, e) => {
1699
1674
  const t = At.get(o);
1700
1675
  if (t)
1701
1676
  return t;
1702
- const n = vr({
1677
+ const n = Sr({
1703
1678
  storageKey: o,
1704
1679
  initialState: e
1705
1680
  });
@@ -1707,8 +1682,8 @@ const ml = (o) => {
1707
1682
  }, ze = (o, e, t) => {
1708
1683
  const n = P(3);
1709
1684
  let r;
1710
- return n[0] !== t || n[1] !== o ? (r = yr(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], ot(r, e);
1711
- }, Cr = (o) => {
1685
+ return n[0] !== t || n[1] !== o ? (r = vr(o, t), n[0] = t, n[1] = o, n[2] = r) : r = n[2], ot(r, e);
1686
+ }, yr = (o) => {
1712
1687
  const e = P(2), {
1713
1688
  children: t
1714
1689
  } = o;
@@ -1716,20 +1691,20 @@ const ml = (o) => {
1716
1691
  return null;
1717
1692
  let n;
1718
1693
  return e[0] !== t ? (n = /* @__PURE__ */ s(V, { bg: "bg", position: "sticky", bottom: "0", overflow: "hidden", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
1719
- }, wr = (o) => {
1694
+ }, Cr = (o) => {
1720
1695
  const e = P(2), {
1721
1696
  children: t
1722
1697
  } = o;
1723
1698
  let n;
1724
- return e[0] !== t ? (n = /* @__PURE__ */ s(re, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: _o, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(re, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1725
- }, Ir = 240, Tr = 200, Pr = 480, Ar = (o, e, t) => Math.min(Math.max(o, e), t), Rr = (o, e = Ir) => {
1699
+ return e[0] !== t ? (n = /* @__PURE__ */ s(re, { "data-testid": "sidenav-header", justify: "space-between", align: "center", minH: ko, bg: "bg", position: "sticky", top: "0", zIndex: "1", gap: "0", children: /* @__PURE__ */ s(re, { minW: "0", flex: "1", children: t }) }), e[0] = t, e[1] = n) : n = e[1], n;
1700
+ }, wr = 240, Ir = 200, Tr = 480, Pr = (o, e, t) => Math.min(Math.max(o, e), t), Ar = (o, e = wr) => {
1726
1701
  if (typeof o == "number") return o;
1727
1702
  if (typeof o == "string") {
1728
1703
  const t = parseInt(o, 10);
1729
1704
  if (!Number.isNaN(t)) return t;
1730
1705
  }
1731
1706
  return e;
1732
- }, pl = (o) => {
1707
+ }, ml = (o) => {
1733
1708
  const e = P(43), {
1734
1709
  storageKey: t,
1735
1710
  sections: n,
@@ -1752,9 +1727,9 @@ const ml = (o) => {
1752
1727
  } = o;
1753
1728
  let O;
1754
1729
  e[0] !== i ? (O = i === void 0 ? [] : i, e[0] = i, e[1] = O) : O = e[1];
1755
- const S = O, k = u === void 0 ? !0 : u, w = d === void 0 ? "No items available." : d, $ = g === void 0 ? !0 : g, T = C === void 0 ? Tr : C, A = R === void 0 ? Pr : R, L = E === void 0 ? !1 : E, N = je(null);
1730
+ const S = O, k = u === void 0 ? !0 : u, w = d === void 0 ? "No items available." : d, $ = g === void 0 ? !0 : g, T = C === void 0 ? Ir : C, A = R === void 0 ? Tr : R, L = E === void 0 ? !1 : E, N = je(null);
1756
1731
  let D;
1757
- e[2] !== v || e[3] !== c ? (D = Rr(c, v), e[2] = v, e[3] = c, e[4] = D) : D = e[4];
1732
+ e[2] !== v || e[3] !== c ? (D = Ar(c, v), e[2] = v, e[3] = c, e[4] = D) : D = e[4];
1758
1733
  const I = D;
1759
1734
  let y;
1760
1735
  e[5] !== f ? (y = f ? {
@@ -1765,20 +1740,20 @@ const ml = (o) => {
1765
1740
  ...y,
1766
1741
  width: I
1767
1742
  }, e[7] = I, e[8] = y, e[9] = b) : b = e[9];
1768
- const _ = b, B = ze(t, Er, _), H = ze(t, kr, _), M = ze(t, _r, _), G = ze(t, $r, _), z = ze(t, Or, _), Y = ze(t, Dr, _);
1743
+ const _ = b, B = ze(t, Rr, _), H = ze(t, Er, _), M = ze(t, kr, _), G = ze(t, _r, _), z = ze(t, $r, _), Y = ze(t, Or, _);
1769
1744
  let q, U;
1770
1745
  e[10] !== m || e[11] !== B ? (q = () => {
1771
1746
  m?.(B);
1772
1747
  }, U = [m, B], e[10] = m, e[11] = B, e[12] = q, e[13] = U) : (q = e[12], U = e[13]), he(q, U);
1773
1748
  const Q = H ?? I;
1774
1749
  let K;
1775
- e[14] !== A || e[15] !== T || e[16] !== Q ? (K = Ar(Q, T, A), e[14] = A, e[15] = T, e[16] = Q, e[17] = K) : K = e[17];
1750
+ e[14] !== A || e[15] !== T || e[16] !== Q ? (K = Pr(Q, T, A), e[14] = A, e[15] = T, e[16] = Q, e[17] = K) : K = e[17];
1776
1751
  const ae = K;
1777
1752
  if (!B && k)
1778
1753
  return null;
1779
1754
  const J = $ ? `${ae}px` : c ?? `${I}px`;
1780
1755
  let Z;
1781
- e[18] !== l ? (Z = /* @__PURE__ */ s(wr, { children: l }), e[18] = l, e[19] = Z) : Z = e[19];
1756
+ e[18] !== l ? (Z = /* @__PURE__ */ s(Cr, { children: l }), e[18] = l, e[19] = Z) : Z = e[19];
1782
1757
  let ee, ne;
1783
1758
  e[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ee = {
1784
1759
  display: "block",
@@ -1797,7 +1772,7 @@ const ml = (o) => {
1797
1772
  let te;
1798
1773
  e[22] !== r || e[23] !== w || e[24] !== G || e[25] !== M || e[26] !== h || e[27] !== p || e[28] !== n || e[29] !== Y || e[30] !== z || e[31] !== L ? (te = /* @__PURE__ */ s(tt, { flex: "1", mt: "lg", viewportRef: N, viewportProps: ee, contentProps: ne, children: /* @__PURE__ */ s(V, { w: "full", minW: "0", flex: "1 0 auto", display: "flex", flexDirection: "column", children: n.length === 0 ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", p: "3", children: w }) : /* @__PURE__ */ s(zn, { sections: n, expandedSectionIds: M, expandedNodeIds: G, activeNodeId: r, rowVariant: "compact", sectionGap: "md", nodeGap: "1px", linkComponent: h, onNavigate: p, onToggleSection: z, onToggleNode: Y, virtualize: L, scrollRef: N }) }) }), e[22] = r, e[23] = w, e[24] = G, e[25] = M, e[26] = h, e[27] = p, e[28] = n, e[29] = Y, e[30] = z, e[31] = L, e[32] = te) : te = e[32];
1799
1774
  let le;
1800
- e[33] !== a ? (le = /* @__PURE__ */ s(Cr, { children: a }), e[33] = a, e[34] = le) : le = e[34];
1775
+ e[33] !== a ? (le = /* @__PURE__ */ s(yr, { children: a }), e[33] = a, e[34] = le) : le = e[34];
1801
1776
  let ie;
1802
1777
  e[35] !== Z || e[36] !== te || e[37] !== le || e[38] !== J ? (ie = /* @__PURE__ */ x(ge, { as: "aside", "data-testid": "sidenav", direction: "column", position: "relative", h: "100%", w: J, minW: J, maxW: J, flexShrink: 0, borderRightWidth: "1px", borderRightColor: "border.subtle", bg: "bg", children: [
1803
1778
  Z,
@@ -1808,27 +1783,27 @@ const ml = (o) => {
1808
1783
  let oe;
1809
1784
  return e[40] !== ce || e[41] !== S ? (oe = /* @__PURE__ */ s(Xt, { actions: S, closeOnSelect: !1, children: ce }), e[40] = ce, e[41] = S, e[42] = oe) : oe = e[42], oe;
1810
1785
  };
1811
- function Er(o) {
1786
+ function Rr(o) {
1812
1787
  return o.open;
1813
1788
  }
1814
- function kr(o) {
1789
+ function Er(o) {
1815
1790
  return o.width;
1816
1791
  }
1817
- function _r(o) {
1792
+ function kr(o) {
1818
1793
  return o.expandedSections;
1819
1794
  }
1820
- function $r(o) {
1795
+ function _r(o) {
1821
1796
  return o.expandedNodes;
1822
1797
  }
1823
- function Or(o) {
1798
+ function $r(o) {
1824
1799
  return o.toggleSection;
1825
1800
  }
1826
- function Dr(o) {
1801
+ function Or(o) {
1827
1802
  return o.toggleNode;
1828
1803
  }
1829
1804
  const Rt = {
1830
1805
  tabOverrides: {}
1831
- }, Lr = "pstdio/ui/tab-visibility", zr = (o) => `${Lr}/${o}`, Nr = (o, e) => o ?? (e ? "hidden" : "shown"), dt = (o, e, t) => {
1806
+ }, Dr = "pstdio/ui/tab-visibility", Lr = (o) => `${Dr}/${o}`, zr = (o, e) => o ?? (e ? "hidden" : "shown"), dt = (o, e, t) => {
1832
1807
  if (t === void 0) {
1833
1808
  if (!(e in o)) return o;
1834
1809
  const {
@@ -1841,12 +1816,12 @@ const Rt = {
1841
1816
  ...o,
1842
1817
  [e]: t
1843
1818
  };
1844
- }, Br = (o, e, t) => {
1845
- const n = Nr(o[e], t);
1819
+ }, Nr = (o, e, t) => {
1820
+ const n = zr(o[e], t);
1846
1821
  return dt(o, e, n === "hidden" ? "shown" : "hidden");
1847
- }, Wr = (o) => ({
1822
+ }, Br = (o) => ({
1848
1823
  tabOverrides: o.tabOverrides
1849
- }), Fr = (o) => lt()(rt((e) => ({
1824
+ }), Wr = (o) => lt()(rt((e) => ({
1850
1825
  ...Rt,
1851
1826
  setTab: (t, n) => e((r) => ({
1852
1827
  ...r,
@@ -1854,7 +1829,7 @@ const Rt = {
1854
1829
  })),
1855
1830
  toggleTab: (t, n) => e((r) => ({
1856
1831
  ...r,
1857
- tabOverrides: Br(r.tabOverrides, t, n)
1832
+ tabOverrides: Nr(r.tabOverrides, t, n)
1858
1833
  })),
1859
1834
  clearTab: (t) => e((n) => ({
1860
1835
  ...n,
@@ -1862,25 +1837,25 @@ const Rt = {
1862
1837
  })),
1863
1838
  reset: () => e(Rt)
1864
1839
  }), {
1865
- name: zr(o.storageKey),
1840
+ name: Lr(o.storageKey),
1866
1841
  storage: it(He),
1867
- partialize: Wr
1868
- })), Et = /* @__PURE__ */ new Map(), Hr = (o) => {
1842
+ partialize: Br
1843
+ })), Et = /* @__PURE__ */ new Map(), Fr = (o) => {
1869
1844
  const e = Et.get(o);
1870
1845
  if (e) return e;
1871
- const t = Fr({
1846
+ const t = Wr({
1872
1847
  storageKey: o
1873
1848
  });
1874
1849
  return Et.set(o, t), t;
1875
- }, gl = (o, e) => {
1850
+ }, pl = (o, e) => {
1876
1851
  const t = P(2);
1877
1852
  let n;
1878
- return t[0] !== o ? (n = Hr(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
1879
- }, Mr = (o, e) => typeof o == "string" ? o : e, Me = (o, e) => o ?? (e ? "hidden" : "shown"), Ke = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Vr = (o, e) => Me(e[o.id], o.hiddenByDefault) === "shown", ht = (o, e) => {
1853
+ return t[0] !== o ? (n = Fr(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
1854
+ }, Hr = (o, e) => typeof o == "string" ? o : e, Me = (o, e) => o ?? (e ? "hidden" : "shown"), Ke = (o) => o.canHide === !0 || o.hiddenByDefault === !0, Mr = (o, e) => Me(e[o.id], o.hiddenByDefault) === "shown", ht = (o, e) => {
1880
1855
  let t = !1;
1881
1856
  const n = [];
1882
1857
  for (const r of o) {
1883
- if (!Vr(r, e)) {
1858
+ if (!Mr(r, e)) {
1884
1859
  t = !0;
1885
1860
  continue;
1886
1861
  }
@@ -1897,7 +1872,7 @@ const Rt = {
1897
1872
  n.push(r);
1898
1873
  }
1899
1874
  return t ? n : o;
1900
- }, bl = (o, e) => ht(o, e), xl = (o, e, t) => {
1875
+ }, gl = (o, e) => ht(o, e), bl = (o, e, t) => {
1901
1876
  let n = !1;
1902
1877
  const r = [];
1903
1878
  for (const i of o) {
@@ -1916,7 +1891,7 @@ const Rt = {
1916
1891
  r.push(i);
1917
1892
  }
1918
1893
  return n ? r : o;
1919
- }, en = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Gr = (o, e, t, n) => {
1894
+ }, en = (o, e) => o === "shown" ? e.visibleIcon : e.hiddenIcon, Vr = (o, e, t, n) => {
1920
1895
  const r = o.hiddenByDefault === !0, i = Me(e[o.id], r);
1921
1896
  return {
1922
1897
  key: `section:${o.id}`,
@@ -1928,12 +1903,12 @@ const Rt = {
1928
1903
  const r = o.hiddenByDefault === !0, i = Me(e[o.id], r);
1929
1904
  return {
1930
1905
  key: `node:${o.id}`,
1931
- label: Mr(o.label, o.id),
1906
+ label: Hr(o.label, o.id),
1932
1907
  icon: o.icon,
1933
1908
  onClick: () => t.onToggleNode(o.id, r),
1934
1909
  endContent: en(i, n)
1935
1910
  };
1936
- }, Sl = (o, e, t, n, r) => {
1911
+ }, xl = (o, e, t, n, r) => {
1937
1912
  const i = [], l = (c) => {
1938
1913
  c.length !== 0 && (i.length > 0 && (c[0] = {
1939
1914
  ...c[0],
@@ -1943,7 +1918,7 @@ const Rt = {
1943
1918
  l((o.headerNodes ?? []).filter(Ke).map((c) => ct(c, t, n, r)));
1944
1919
  const a = [];
1945
1920
  for (const c of o.sections) {
1946
- Ke(c) && a.push(Gr(c, e, n, r));
1921
+ Ke(c) && a.push(Vr(c, e, n, r));
1947
1922
  for (const u of c.nodes)
1948
1923
  Ke(u) && a.push(ct(u, t, n, r));
1949
1924
  }
@@ -1954,7 +1929,7 @@ const Rt = {
1954
1929
  separatorBefore: !0,
1955
1930
  onClick: n.onResetAll
1956
1931
  }), i;
1957
- }, vl = (o, e, t) => {
1932
+ }, Sl = (o, e, t) => {
1958
1933
  let n = !1;
1959
1934
  const r = [];
1960
1935
  for (const i of o) {
@@ -1973,7 +1948,7 @@ const Rt = {
1973
1948
  r.push(i);
1974
1949
  }
1975
1950
  return n ? r : o;
1976
- }, yl = (o, e, t, n, r, i) => {
1951
+ }, vl = (o, e, t, n, r, i) => {
1977
1952
  const l = [];
1978
1953
  let a = 0;
1979
1954
  for (const c of o) {
@@ -1995,7 +1970,7 @@ const Rt = {
1995
1970
  separatorBefore: !0,
1996
1971
  onClick: t.onResetAll
1997
1972
  }), l;
1998
- }, jr = (o) => {
1973
+ }, Gr = (o) => {
1999
1974
  const e = P(7), {
2000
1975
  children: t,
2001
1976
  hasChanges: n
@@ -2009,7 +1984,7 @@ const Rt = {
2009
1984
  r,
2010
1985
  i
2011
1986
  ] }), e[4] = r, e[5] = i, e[6] = l) : l = e[6], l;
2012
- }, Ur = (o) => {
1987
+ }, jr = (o) => {
2013
1988
  const e = P(20), {
2014
1989
  actions: t,
2015
1990
  disabled: n,
@@ -2043,7 +2018,7 @@ const Rt = {
2043
2018
  d,
2044
2019
  h
2045
2020
  ] }), e[17] = d, e[18] = h, e[19] = p) : p = e[19], p;
2046
- }, Qr = (o) => {
2021
+ }, Ur = (o) => {
2047
2022
  const e = P(65), {
2048
2023
  actionOptions: t,
2049
2024
  colorOptions: n,
@@ -2094,7 +2069,7 @@ const Rt = {
2094
2069
  e[11] !== v || e[12] !== C || e[13] !== y ? (_ = /* @__PURE__ */ s(ge, { cursor: "grab", color: "fg.subtle", _groupHover: I, "aria-label": y, ...v, ...C, children: b }), e[11] = v, e[12] = C, e[13] = y, e[14] = _) : _ = e[14];
2095
2070
  const B = `Change ${i.name} appearance`;
2096
2071
  let H;
2097
- e[15] !== n || e[16] !== r || e[17] !== l || e[18] !== d || e[19] !== h || e[20] !== c || e[21] !== B || e[22] !== i.color || e[23] !== i.icon ? (H = /* @__PURE__ */ s(sr, { color: i.color, colorOptions: n, icon: i.icon, iconOptions: r, showIcons: c, onColorChange: d, onIconChange: h, disabled: l, "aria-label": B }), e[15] = n, e[16] = r, e[17] = l, e[18] = d, e[19] = h, e[20] = c, e[21] = B, e[22] = i.color, e[23] = i.icon, e[24] = H) : H = e[24];
2072
+ e[15] !== n || e[16] !== r || e[17] !== l || e[18] !== d || e[19] !== h || e[20] !== c || e[21] !== B || e[22] !== i.color || e[23] !== i.icon ? (H = /* @__PURE__ */ s(lr, { color: i.color, colorOptions: n, icon: i.icon, iconOptions: r, showIcons: c, onColorChange: d, onIconChange: h, disabled: l, "aria-label": B }), e[15] = n, e[16] = r, e[17] = l, e[18] = d, e[19] = h, e[20] = c, e[21] = B, e[22] = i.color, e[23] = i.icon, e[24] = H) : H = e[24];
2098
2073
  let M;
2099
2074
  e[25] !== p || e[26] !== i.name ? (M = (ne) => {
2100
2075
  const te = ne.value.trim();
@@ -2110,7 +2085,7 @@ const Rt = {
2110
2085
  let q;
2111
2086
  e[34] !== l || e[35] !== m || e[36] !== a || e[37] !== i.isDefault || e[38] !== i.name ? (q = a ? /* @__PURE__ */ s(de, { size: "2xs", variant: i.isDefault ? "primary" : "ghost", onClick: m, disabled: l || i.isDefault, "aria-label": `Set ${i.name} as default`, children: /* @__PURE__ */ s(se, { as: et, boxSize: "icon-xs" }) }) : null, e[34] = l, e[35] = m, e[36] = a, e[37] = i.isDefault, e[38] = i.name, e[39] = q) : q = e[39];
2112
2087
  let U;
2113
- e[40] !== t || e[41] !== l || e[42] !== u || e[43] !== i.actions ? (U = t ? /* @__PURE__ */ s(Ur, { actions: i.actions ?? [], disabled: l, options: t, onChange: u }) : null, e[40] = t, e[41] = l, e[42] = u, e[43] = i.actions, e[44] = U) : U = e[44];
2088
+ e[40] !== t || e[41] !== l || e[42] !== u || e[43] !== i.actions ? (U = t ? /* @__PURE__ */ s(jr, { actions: i.actions ?? [], disabled: l, options: t, onChange: u }) : null, e[40] = t, e[41] = l, e[42] = u, e[43] = i.actions, e[44] = U) : U = e[44];
2114
2089
  let Q;
2115
2090
  e[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q = {
2116
2091
  color: "fg.error",
@@ -2130,7 +2105,7 @@ const Rt = {
2130
2105
  U,
2131
2106
  Z
2132
2107
  ] }), e[51] = R, e[52] = _, e[53] = H, e[54] = Y, e[55] = q, e[56] = w, e[57] = U, e[58] = Z, e[59] = $, e[60] = T, e[61] = A, e[62] = L, e[63] = D, e[64] = ee) : ee = e[64], ee;
2133
- }, Xr = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, qr = (o) => {
2108
+ }, Qr = (o) => o.length > 0 ? Math.max(...o.map((e) => e.sortOrder)) + 1 : 0, Xr = (o) => {
2134
2109
  const e = P(12), {
2135
2110
  title: t,
2136
2111
  hasChanges: n,
@@ -2139,7 +2114,7 @@ const Rt = {
2139
2114
  } = o;
2140
2115
  if (!i) {
2141
2116
  let d;
2142
- return e[0] !== n || e[1] !== t ? (d = /* @__PURE__ */ s(jr, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = d) : d = e[2], d;
2117
+ return e[0] !== n || e[1] !== t ? (d = /* @__PURE__ */ s(Gr, { hasChanges: n, children: t }), e[0] = n, e[1] = t, e[2] = d) : d = e[2], d;
2143
2118
  }
2144
2119
  let l;
2145
2120
  e[3] !== i || e[4] !== t ? (l = (d) => {
@@ -2153,7 +2128,7 @@ const Rt = {
2153
2128
  a,
2154
2129
  c
2155
2130
  ] }, t), e[8] = r, e[9] = l, e[10] = t, e[11] = u) : u = e[11], u;
2156
- }, Yr = Ie("button", {
2131
+ }, qr = Ie("button", {
2157
2132
  base: {
2158
2133
  display: "flex",
2159
2134
  alignItems: "center",
@@ -2176,7 +2151,7 @@ const Rt = {
2176
2151
  }
2177
2152
  }
2178
2153
  }
2179
- }), Kr = (o) => {
2154
+ }), Yr = (o) => {
2180
2155
  const {
2181
2156
  title: e,
2182
2157
  description: t,
@@ -2216,7 +2191,7 @@ const Rt = {
2216
2191
  name: h,
2217
2192
  color: g,
2218
2193
  icon: v,
2219
- sortOrder: Xr(r),
2194
+ sortOrder: Qr(r),
2220
2195
  isNew: !0
2221
2196
  }]);
2222
2197
  }, N = () => {
@@ -2226,7 +2201,7 @@ const Rt = {
2226
2201
  /* @__PURE__ */ x(j, { gap: "2xs", children: [
2227
2202
  e || n ? /* @__PURE__ */ x(ge, { minHeight: "tag-editor-row", alignItems: "center", justifyContent: "space-between", gap: "xs", children: [
2228
2203
  /* @__PURE__ */ x(j, { gap: "3xs", minWidth: "0", children: [
2229
- e ? /* @__PURE__ */ s(qr, { title: e, hasChanges: u, isSaving: d, onTitleChange: c }) : null,
2204
+ e ? /* @__PURE__ */ s(Xr, { title: e, hasChanges: u, isSaving: d, onTitleChange: c }) : null,
2230
2205
  t ? /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", color: "fg.muted", children: t }) : null
2231
2206
  ] }),
2232
2207
  n
@@ -2243,7 +2218,7 @@ const Rt = {
2243
2218
  ...H,
2244
2219
  sortOrder: M
2245
2220
  })));
2246
- }, children: /* @__PURE__ */ s(Qn, { items: r.map((I) => I.id), strategy: Xn, children: r.map((I, y) => /* @__PURE__ */ s(Qr, { value: I, isSaving: d, showDefault: S, showIcons: k, actionOptions: p, colorOptions: m, iconOptions: O, onNameChange: (b) => A(y, {
2221
+ }, children: /* @__PURE__ */ s(Qn, { items: r.map((I) => I.id), strategy: Xn, children: r.map((I, y) => /* @__PURE__ */ s(Ur, { value: I, isSaving: d, showDefault: S, showIcons: k, actionOptions: p, colorOptions: m, iconOptions: O, onNameChange: (b) => A(y, {
2247
2222
  name: b
2248
2223
  }), onColorChange: (b) => A(y, {
2249
2224
  color: b
@@ -2252,15 +2227,15 @@ const Rt = {
2252
2227
  }), onActionsChange: (b) => A(y, {
2253
2228
  actions: b
2254
2229
  }), onSetDefault: () => a?.(I), onDelete: () => $(I) }, I.id)) }) }),
2255
- /* @__PURE__ */ x(Yr, { type: "button", disabled: d, onClick: L, children: [
2230
+ /* @__PURE__ */ x(qr, { type: "button", disabled: d, onClick: L, children: [
2256
2231
  /* @__PURE__ */ s(se, { as: On, boxSize: "icon-xs" }),
2257
2232
  /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: f })
2258
2233
  ] })
2259
2234
  ] })
2260
2235
  ] }),
2261
- /* @__PURE__ */ s(Go, { open: !!w, onClose: () => $(null), onDelete: N, headline: R, notificationText: w ? E(w) : "", buttonText: C })
2236
+ /* @__PURE__ */ s(Vo, { open: !!w, onClose: () => $(null), onDelete: N, headline: R, notificationText: w ? E(w) : "", buttonText: C })
2262
2237
  ] });
2263
- }, Zr = (o) => {
2238
+ }, Kr = (o) => {
2264
2239
  const e = P(13), {
2265
2240
  onSave: t,
2266
2241
  onReset: n,
@@ -2279,11 +2254,11 @@ const Rt = {
2279
2254
  d,
2280
2255
  h
2281
2256
  ] }), e[10] = d, e[11] = h, e[12] = p) : p = e[12], p;
2282
- }, Jr = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), kt = (o, e) => o.map(e).sort(Jr), ei = (o, e) => o.find((t) => t.id === e.id), ti = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2257
+ }, Zr = (o, e) => o.sortOrder - e.sortOrder || o.name.localeCompare(e.name), kt = (o, e) => o.map(e).sort(Zr), Jr = (o, e) => o.find((t) => t.id === e.id), ei = (o, e, t, n) => t.size > 0 ? !0 : e.some((r) => {
2283
2258
  if (r.isNew) return !0;
2284
- const i = ei(o, r);
2259
+ const i = Jr(o, r);
2285
2260
  return i ? n(i, r) || r.sortOrder !== i.sortOrder : !0;
2286
- }), _t = (o) => o instanceof Error ? o.message : o ? String(o) : null, Cl = (o) => {
2261
+ }), _t = (o) => o instanceof Error ? o.message : o ? String(o) : null, yl = (o) => {
2287
2262
  const {
2288
2263
  errorTitle: e,
2289
2264
  loadingText: t = "Loading...",
@@ -2312,15 +2287,15 @@ const Rt = {
2312
2287
  } finally {
2313
2288
  v(!1);
2314
2289
  }
2315
- }, S = ti(E, f, p, u), k = _t(l) ?? _t(C);
2290
+ }, S = ei(E, f, p, u), k = _t(l) ?? _t(C);
2316
2291
  return /* @__PURE__ */ x(j, { boxSizing: "border-box", minH: "100%", p: "lg", gap: "lg", bg: "bg", color: "fg", children: [
2317
2292
  k ? /* @__PURE__ */ s(ft, { status: "error", colorPalette: "red", title: e, size: "sm", children: k }) : null,
2318
2293
  i === void 0 ? /* @__PURE__ */ x(re, { gap: "sm", color: "fg.muted", children: [
2319
2294
  /* @__PURE__ */ s(Gt, { size: "sm" }),
2320
2295
  /* @__PURE__ */ s(W, { textStyle: "paragraph/S/regular", children: t })
2321
- ] }) : /* @__PURE__ */ s(Kr, { ...d, values: f, onValuesChange: h, onDeleteValue: (T) => {
2296
+ ] }) : /* @__PURE__ */ s(Yr, { ...d, values: f, onValuesChange: h, onDeleteValue: (T) => {
2322
2297
  T.isNew || m(/* @__PURE__ */ new Set([...p, T.id])), h(f.filter((A) => A.id !== T.id));
2323
- }, hasChanges: S, isSaving: g, headerActions: /* @__PURE__ */ s(Zr, { hasChanges: S, isSaving: g, resetLabel: n, saveLabel: r, onSave: () => {
2298
+ }, hasChanges: S, isSaving: g, headerActions: /* @__PURE__ */ s(Kr, { hasChanges: S, isSaving: g, resetLabel: n, saveLabel: r, onSave: () => {
2324
2299
  O();
2325
2300
  }, onReset: () => {
2326
2301
  h(kt(E, c)), m(/* @__PURE__ */ new Set()), R(null);
@@ -2329,15 +2304,15 @@ const Rt = {
2329
2304
  }, $t = {
2330
2305
  sectionOrder: [],
2331
2306
  nodeOrderBySection: {}
2332
- }, ni = "pstdio/ui/tree-list-order", oi = (o) => `${ni}/${o}`, Ot = (o) => {
2307
+ }, ti = "pstdio/ui/tree-list-order", ni = (o) => `${ti}/${o}`, Ot = (o) => {
2333
2308
  const e = /* @__PURE__ */ new Set(), t = [];
2334
2309
  for (const n of o)
2335
2310
  e.has(n) || (e.add(n), t.push(n));
2336
2311
  return t;
2337
- }, ri = (o) => ({
2312
+ }, oi = (o) => ({
2338
2313
  sectionOrder: o.sectionOrder,
2339
2314
  nodeOrderBySection: o.nodeOrderBySection
2340
- }), ii = (o) => lt()(rt((e) => ({
2315
+ }), ri = (o) => lt()(rt((e) => ({
2341
2316
  ...$t,
2342
2317
  setSectionOrder: (t) => e((n) => ({
2343
2318
  ...n,
@@ -2367,20 +2342,20 @@ const Rt = {
2367
2342
  }),
2368
2343
  reset: () => e($t)
2369
2344
  }), {
2370
- name: oi(o.storageKey),
2345
+ name: ni(o.storageKey),
2371
2346
  storage: it(He),
2372
- partialize: ri
2373
- })), Dt = /* @__PURE__ */ new Map(), li = (o) => {
2347
+ partialize: oi
2348
+ })), Dt = /* @__PURE__ */ new Map(), ii = (o) => {
2374
2349
  const e = Dt.get(o);
2375
2350
  if (e) return e;
2376
- const t = ii({
2351
+ const t = ri({
2377
2352
  storageKey: o
2378
2353
  });
2379
2354
  return Dt.set(o, t), t;
2380
- }, wl = (o, e) => {
2355
+ }, Cl = (o, e) => {
2381
2356
  const t = P(2);
2382
2357
  let n;
2383
- return t[0] !== o ? (n = li(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2358
+ return t[0] !== o ? (n = ii(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2384
2359
  }, Lt = (o, e) => {
2385
2360
  if (e.length === 0) return o;
2386
2361
  const t = new Map(o.map((l, a) => [l.id, a])), n = /* @__PURE__ */ new Set(), r = [];
@@ -2399,7 +2374,7 @@ const Rt = {
2399
2374
  }
2400
2375
  }
2401
2376
  return i ? r : o;
2402
- }, Il = (o, e, t) => {
2377
+ }, wl = (o, e, t) => {
2403
2378
  let n = !1;
2404
2379
  const r = Lt(o, e);
2405
2380
  r !== o && (n = !0);
@@ -2420,7 +2395,7 @@ const Rt = {
2420
2395
  }, zt = {
2421
2396
  sectionOverrides: {},
2422
2397
  nodeOverrides: {}
2423
- }, si = "pstdio/ui/tree-list-visibility", ai = (o) => `${si}/${o}`, ci = (o, e) => o ?? (e ? "hidden" : "shown"), di = (o) => o === "hidden" ? "shown" : "hidden", Ge = (o, e, t) => {
2398
+ }, li = "pstdio/ui/tree-list-visibility", si = (o) => `${li}/${o}`, ai = (o, e) => o ?? (e ? "hidden" : "shown"), ci = (o) => o === "hidden" ? "shown" : "hidden", Ge = (o, e, t) => {
2424
2399
  if (t === void 0) {
2425
2400
  if (!(e in o)) return o;
2426
2401
  const {
@@ -2434,12 +2409,12 @@ const Rt = {
2434
2409
  [e]: t
2435
2410
  };
2436
2411
  }, Nt = (o, e, t) => {
2437
- const n = di(ci(o[e], t));
2412
+ const n = ci(ai(o[e], t));
2438
2413
  return Ge(o, e, n);
2439
- }, ui = (o) => ({
2414
+ }, di = (o) => ({
2440
2415
  sectionOverrides: o.sectionOverrides,
2441
2416
  nodeOverrides: o.nodeOverrides
2442
- }), fi = (o) => lt()(rt((e) => ({
2417
+ }), ui = (o) => lt()(rt((e) => ({
2443
2418
  ...zt,
2444
2419
  setSection: (t, n) => e((r) => ({
2445
2420
  ...r,
@@ -2467,78 +2442,78 @@ const Rt = {
2467
2442
  })),
2468
2443
  reset: () => e(zt)
2469
2444
  }), {
2470
- name: ai(o.storageKey),
2445
+ name: si(o.storageKey),
2471
2446
  storage: it(He),
2472
- partialize: ui
2473
- })), Bt = /* @__PURE__ */ new Map(), hi = (o) => {
2447
+ partialize: di
2448
+ })), Bt = /* @__PURE__ */ new Map(), fi = (o) => {
2474
2449
  const e = Bt.get(o);
2475
2450
  if (e) return e;
2476
- const t = fi({
2451
+ const t = ui({
2477
2452
  storageKey: o
2478
2453
  });
2479
2454
  return Bt.set(o, t), t;
2480
- }, Tl = (o, e) => {
2455
+ }, Il = (o, e) => {
2481
2456
  const t = P(2);
2482
2457
  let n;
2483
- return t[0] !== o ? (n = hi(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2484
- }, mi = [], tn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), pi = (o) => {
2458
+ return t[0] !== o ? (n = fi(o), t[0] = o, t[1] = n) : n = t[1], ot(n, e);
2459
+ }, hi = [], tn = (o, e) => typeof o == "string" && e.some((t) => t.id === o), mi = (o) => {
2485
2460
  const e = o.toLowerCase().split("."), t = [];
2486
2461
  for (let n = 1; n < e.length; n += 1) t.push(e.slice(n).join("."));
2487
2462
  return t;
2488
- }, gi = (o, e, t) => {
2463
+ }, pi = (o, e, t) => {
2489
2464
  if (t) return o.defaults.folder;
2490
2465
  const n = o.fileNames[e.toLowerCase()];
2491
2466
  if (n) return n;
2492
- for (const r of pi(e)) {
2467
+ for (const r of mi(e)) {
2493
2468
  const i = o.fileExtensions[r];
2494
2469
  if (i) return i;
2495
2470
  }
2496
2471
  return o.defaults.file;
2497
- }, bi = (o, e) => {
2472
+ }, gi = (o, e) => {
2498
2473
  if (e.fontId) {
2499
2474
  const t = o.fonts.find((n) => n.fontFamily === `${o.id}-${e.fontId}`);
2500
2475
  if (t) return t.fontFamily;
2501
2476
  }
2502
2477
  return o.fonts[0]?.fontFamily;
2503
- }, xi = (o) => {
2478
+ }, bi = (o) => {
2504
2479
  const e = /^\\([0-9a-fA-F]+)$/.exec(o);
2505
2480
  return e ? String.fromCodePoint(Number.parseInt(e[1], 16)) : o;
2506
- }, Si = (o, e, t = !1) => {
2481
+ }, xi = (o, e, t = !1) => {
2507
2482
  if (!o) return;
2508
- const n = gi(o, e, t);
2483
+ const n = pi(o, e, t);
2509
2484
  if (!n) return;
2510
2485
  const r = o.definitions[n];
2511
2486
  if (!r?.fontCharacter) return;
2512
- const i = bi(o, r);
2487
+ const i = gi(o, r);
2513
2488
  if (i)
2514
2489
  return {
2515
2490
  fontFamily: i,
2516
- fontCharacter: xi(r.fontCharacter),
2491
+ fontCharacter: bi(r.fontCharacter),
2517
2492
  fontColor: r.fontColor
2518
2493
  };
2519
- }, Wt = "data-pstdio-file-icon-fonts", vi = (o) => {
2494
+ }, Wt = "data-pstdio-file-icon-fonts", Si = (o) => {
2520
2495
  const e = o.src.map((t) => `url("${t.url}")${t.format ? ` format("${t.format}")` : ""}`).join(", ");
2521
2496
  return ["@font-face {", ` font-family: "${o.fontFamily}";`, ` src: ${e};`, ` font-weight: ${o.weight ?? "normal"};`, ` font-style: ${o.style ?? "normal"};`, "}"].join(`
2522
2497
  `);
2523
- }, yi = (o, e) => {
2498
+ }, vi = (o, e) => {
2524
2499
  if (typeof document > "u") return;
2525
2500
  let t = document.querySelector(`style[${Wt}]`);
2526
2501
  t || (t = document.createElement("style"), t.setAttribute(Wt, ""), document.head.appendChild(t));
2527
2502
  const n = e.find((r) => r.id === o);
2528
- t.textContent = (n?.fonts ?? []).map(vi).join(`
2503
+ t.textContent = (n?.fonts ?? []).map(Si).join(`
2529
2504
 
2530
2505
  `);
2531
- }, nn = "file-icon-theme-preference", ut = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, on = pn(null), Ci = (o) => {
2506
+ }, nn = "file-icon-theme-preference", ut = (o) => o.find((e) => e.id.endsWith(".seti"))?.id ?? o[0]?.id ?? null, on = pn(null), yi = (o) => {
2532
2507
  if (typeof window > "u") return ut(o);
2533
2508
  const e = He().getItem(nn);
2534
2509
  return tn(e, o) ? e : ut(o);
2535
- }, Pl = (o) => {
2510
+ }, Tl = (o) => {
2536
2511
  const e = P(18), {
2537
2512
  children: t,
2538
2513
  themePreferences: n
2539
- } = o, r = n === void 0 ? mi : n;
2514
+ } = o, r = n === void 0 ? hi : n;
2540
2515
  let i;
2541
- e[0] !== r ? (i = () => Ci(r), e[0] = r, e[1] = i) : i = e[1];
2516
+ e[0] !== r ? (i = () => yi(r), e[0] = r, e[1] = i) : i = e[1];
2542
2517
  const [l, a] = ue(i);
2543
2518
  let c, u;
2544
2519
  e[2] !== l || e[3] !== r ? (c = () => {
@@ -2547,7 +2522,7 @@ const Rt = {
2547
2522
  a(m);
2548
2523
  return;
2549
2524
  }
2550
- yi(m, r), typeof window < "u" && m && He().setItem(nn, m);
2525
+ vi(m, r), typeof window < "u" && m && He().setItem(nn, m);
2551
2526
  }, u = [l, r], e[2] = l, e[3] = r, e[4] = c, e[5] = u) : (c = e[4], u = e[5]), he(c, u);
2552
2527
  let d;
2553
2528
  if (e[6] !== l || e[7] !== r) {
@@ -2565,17 +2540,17 @@ const Rt = {
2565
2540
  }, e[11] = f, e[12] = l, e[13] = r, e[14] = h) : h = e[14];
2566
2541
  let p;
2567
2542
  return e[15] !== t || e[16] !== h ? (p = /* @__PURE__ */ s(on, { value: h, children: t }), e[15] = t, e[16] = h, e[17] = p) : p = e[17], p;
2568
- }, Al = () => {
2543
+ }, Pl = () => {
2569
2544
  const o = gn(on);
2570
2545
  if (!o)
2571
2546
  throw new Error("useFileIconThemePreference must be used within a FileIconThemePreferenceProvider");
2572
2547
  return o;
2573
- }, Rl = (o, e = {}) => {
2548
+ }, Al = (o, e = {}) => {
2574
2549
  const {
2575
2550
  isDirectory: t = !1,
2576
2551
  theme: n,
2577
2552
  size: r = 16
2578
- } = e, i = Si(n, o, t);
2553
+ } = e, i = xi(n, o, t);
2579
2554
  if (i) {
2580
2555
  const a = {
2581
2556
  fontFamily: `"${i.fontFamily}"`,
@@ -2591,9 +2566,9 @@ const Rt = {
2591
2566
  return /* @__PURE__ */ s(l, { size: r });
2592
2567
  };
2593
2568
  export {
2594
- Hl as ANCHOR_GRID_VALUES,
2595
- Ml as ActionInput,
2596
- qi as Activity,
2569
+ Fl as ANCHOR_GRID_VALUES,
2570
+ Hl as ActionInput,
2571
+ Xi as Activity,
2597
2572
  st as ActivityAvatar,
2598
2573
  Jn as ActivityComment,
2599
2574
  eo as ActivityComposer,
@@ -2604,129 +2579,129 @@ export {
2604
2579
  oo as ActivityRoot,
2605
2580
  lo as ActivityTimeline,
2606
2581
  ft as AlertMessage,
2607
- Vl as AnchorGridInput,
2608
- ol as AttachedMenu,
2609
- rl as AttachedPanel,
2610
- Gl as AttachmentChip,
2611
- jl as BooleanInput,
2612
- al as Breadcrumb,
2613
- il as BubbleButton,
2614
- ll as BubblePanel,
2615
- _l as ChakraProvider,
2616
- ws as Checkbox,
2617
- Ul as Chip,
2618
- Ql as ColorInput,
2619
- er as ContentPlaceholder,
2620
- cl as ContentPlaceholderLabel,
2621
- Yi as DEFAULT_PALETTE_ASSET_LIMIT,
2622
- Xl as DateInput,
2623
- Go as DeleteConfirmationModal,
2624
- _s as EmptyState,
2625
- dl as ErrorBoundary,
2626
- Pl as FileIconThemePreferenceProvider,
2627
- ql as FileUploadInput,
2582
+ Ml as AnchorGridInput,
2583
+ nl as AttachedMenu,
2584
+ ol as AttachedPanel,
2585
+ Vl as AttachmentChip,
2586
+ Gl as BooleanInput,
2587
+ sl as Breadcrumb,
2588
+ rl as BubbleButton,
2589
+ il as BubblePanel,
2590
+ kl as ChakraProvider,
2591
+ Cs as Checkbox,
2592
+ jl as Chip,
2593
+ Ul as ColorInput,
2594
+ Jo as ContentPlaceholder,
2595
+ al as ContentPlaceholderLabel,
2596
+ qi as DEFAULT_PALETTE_ASSET_LIMIT,
2597
+ Ql as DateInput,
2598
+ Vo as DeleteConfirmationModal,
2599
+ ks as EmptyState,
2600
+ cl as ErrorBoundary,
2601
+ Tl as FileIconThemePreferenceProvider,
2602
+ Xl as FileUploadInput,
2628
2603
  Ln as Header,
2629
- Ji as HorizontalMenuStack,
2630
- Yl as HorizontalTextInput,
2631
- sr as IconColorPicker,
2632
- ul as IntegrationCard,
2633
- el as ItemSection,
2604
+ Zi as HorizontalMenuStack,
2605
+ ql as HorizontalTextInput,
2606
+ lr as IconColorPicker,
2607
+ dl as IntegrationCard,
2608
+ Ji as ItemSection,
2634
2609
  nt as ListRow,
2635
- Kl as MarkdownInput,
2636
- nl as NotificationCenter,
2637
- Zl as NumberInput,
2610
+ Yl as MarkdownInput,
2611
+ tl as NotificationCenter,
2612
+ Kl as NumberInput,
2638
2613
  Ct as PANEL_HEADER_CONTROL_SIZE,
2639
- _o as PANEL_HEADER_HEIGHT,
2640
- tl as PANEL_HEADER_TAB_SIZE,
2641
- Ki as Palette,
2642
- Zi as PaletteShortcut,
2643
- Ss as ParamEditor,
2644
- Jl as ParamEditorControlItem,
2645
- ml as ParamEditorControlList,
2646
- es as ParamEditorField,
2647
- ts as ParamEditorFieldLabel,
2648
- ns as ParamEditorInlineGroup,
2649
- os as ParamEditorLabel,
2650
- rs as ParamEditorReadOnlyField,
2651
- is as ParamEditorReadOnlyValue,
2652
- vs as ParamEditorRow,
2653
- ys as ParamEditorSection,
2654
- Bl as Radio,
2655
- Wl as RadioGroup,
2656
- ls as RangeInput,
2657
- sl as RepoPickerDialog,
2658
- zl as ResizableSplitLayout,
2659
- Ol as ResourceActionMenu,
2660
- Is as ResourceBadge,
2614
+ ko as PANEL_HEADER_HEIGHT,
2615
+ el as PANEL_HEADER_TAB_SIZE,
2616
+ Yi as Palette,
2617
+ Ki as PaletteShortcut,
2618
+ xs as ParamEditor,
2619
+ Zl as ParamEditorControlItem,
2620
+ hl as ParamEditorControlList,
2621
+ Jl as ParamEditorField,
2622
+ es as ParamEditorFieldLabel,
2623
+ ts as ParamEditorInlineGroup,
2624
+ ns as ParamEditorLabel,
2625
+ os as ParamEditorReadOnlyField,
2626
+ rs as ParamEditorReadOnlyValue,
2627
+ Ss as ParamEditorRow,
2628
+ vs as ParamEditorSection,
2629
+ Nl as Radio,
2630
+ Bl as RadioGroup,
2631
+ is as RangeInput,
2632
+ ll as RepoPickerDialog,
2633
+ Ll as ResizableSplitLayout,
2634
+ $l as ResourceActionMenu,
2635
+ ws as ResourceBadge,
2661
2636
  Xt as ResourceContextMenu,
2662
- ss as ResourceInput,
2637
+ ls as ResourceInput,
2663
2638
  tt as ScrollArea,
2664
2639
  Kt as SearchModalContent,
2665
- Dl as SearchableMenu,
2666
- fl as SegmentedControl,
2667
- as as SegmentedInput,
2668
- cs as SelectionInput,
2669
- Ts as SessionIndicator,
2670
- pl as Sidenav,
2671
- ar as SimpleCard,
2672
- cr as SimpleCardBody,
2673
- ds as Switch,
2674
- Kr as TagEditor,
2675
- jr as TagEditorHeading,
2676
- Zr as TagEditorSaveBar,
2677
- Cl as TagSettingsPanel,
2678
- or as TagSwatch,
2679
- us as TextInput,
2680
- Ns as ThemePreferenceProvider,
2681
- hl as Toaster,
2640
+ Ol as SearchableMenu,
2641
+ ul as SegmentedControl,
2642
+ ss as SegmentedInput,
2643
+ as as SelectionInput,
2644
+ Is as SessionIndicator,
2645
+ ml as Sidenav,
2646
+ sr as SimpleCard,
2647
+ ar as SimpleCardBody,
2648
+ cs as Switch,
2649
+ Yr as TagEditor,
2650
+ Gr as TagEditorHeading,
2651
+ Kr as TagEditorSaveBar,
2652
+ yl as TagSettingsPanel,
2653
+ nr as TagSwatch,
2654
+ ds as TextInput,
2655
+ zs as ThemePreferenceProvider,
2656
+ fl as Toaster,
2682
2657
  Ue as Tooltip,
2683
2658
  zn as TreeList,
2684
- fs as VectorInput,
2685
- Ps as WorkspaceBadge,
2686
- yi as applyFileIconThemePreference,
2687
- Bs as applyThemePreference,
2688
- Il as applyTreeListOrder,
2689
- yl as buildTabVisibilityMenuActions,
2690
- Sl as buildTreeVisibilityMenuActions,
2691
- hs as createGlyphIcon,
2692
- Os as createMonacoThemeFromVsCodeTheme,
2693
- Ds as createThemePreferenceFromVsCodeTheme,
2694
- mi as defaultFileIconThemePreferences,
2695
- Ws as defaultThemePreferences,
2659
+ us as VectorInput,
2660
+ Ts as WorkspaceBadge,
2661
+ vi as applyFileIconThemePreference,
2662
+ Ns as applyThemePreference,
2663
+ wl as applyTreeListOrder,
2664
+ vl as buildTabVisibilityMenuActions,
2665
+ xl as buildTreeVisibilityMenuActions,
2666
+ fs as createGlyphIcon,
2667
+ $s as createMonacoThemeFromVsCodeTheme,
2668
+ Os as createThemePreferenceFromVsCodeTheme,
2669
+ hi as defaultFileIconThemePreferences,
2670
+ Bs as defaultThemePreferences,
2696
2671
  fo as filterPaletteEntries,
2697
- bl as filterVisibleNodes,
2698
- xl as filterVisibleSections,
2699
- vl as filterVisibleTabs,
2672
+ gl as filterVisibleNodes,
2673
+ bl as filterVisibleSections,
2674
+ Sl as filterVisibleTabs,
2700
2675
  Fn as getFileTypeIcon,
2701
2676
  Nn as getIconComponent,
2702
- Fs as getInitialThemePreference,
2703
- Hr as getTabVisibilityStore,
2704
- Hs as getThemePreferenceClassName,
2705
- Ms as getThemePreferenceClassNames,
2706
- Vs as getThemePreferenceMode,
2707
- li as getTreeListOrderStore,
2708
- hi as getTreeListVisibilityStore,
2709
- bs as handleDialogAcceptShortcut,
2710
- Qs as installPrismGlobal,
2711
- ms as isAnchorGridValue,
2677
+ Ws as getInitialThemePreference,
2678
+ Fr as getTabVisibilityStore,
2679
+ Fs as getThemePreferenceClassName,
2680
+ Hs as getThemePreferenceClassNames,
2681
+ Ms as getThemePreferenceMode,
2682
+ ii as getTreeListOrderStore,
2683
+ fi as getTreeListVisibilityStore,
2684
+ gs as handleDialogAcceptShortcut,
2685
+ Us as installPrismGlobal,
2686
+ hs as isAnchorGridValue,
2712
2687
  tn as isFileIconThemePreference,
2713
- ps as isParamEditorRichControl,
2714
- Gs as isThemePreference,
2688
+ ms as isParamEditorRichControl,
2689
+ Vs as isThemePreference,
2715
2690
  Wn as optionColors,
2716
2691
  Bn as optionIcons,
2717
- Ls as psTheme,
2718
- Rl as resolveFileIconElement,
2719
- Si as resolveFileIconGlyph,
2720
- As as resolveSessionIndicatorColor,
2721
- Rs as resolveSessionIndicatorIcon,
2692
+ Ds as psTheme,
2693
+ Al as resolveFileIconElement,
2694
+ xi as resolveFileIconGlyph,
2695
+ Ps as resolveSessionIndicatorColor,
2696
+ As as resolveSessionIndicatorIcon,
2722
2697
  Me as resolveVisibility,
2723
- Es as sessionCompletionStatuses,
2724
- pr as toaster,
2725
- Al as useFileIconThemePreference,
2698
+ Rs as sessionCompletionStatuses,
2699
+ mr as toaster,
2700
+ Pl as useFileIconThemePreference,
2726
2701
  ze as useSidenavStore,
2727
- gl as useTabVisibilityStore,
2728
- js as useThemePreference,
2729
- wl as useTreeListOrderStore,
2730
- Tl as useTreeListVisibilityStore
2702
+ pl as useTabVisibilityStore,
2703
+ Gs as useThemePreference,
2704
+ Cl as useTreeListOrderStore,
2705
+ Il as useTreeListVisibilityStore
2731
2706
  };
2732
2707
  //# sourceMappingURL=index.js.map