@danxbot/ui 7.9.4 → 7.9.7
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 +845 -835
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/lib/time/index.d.ts +1 -0
- package/dist/types/lib/time/relativeAge.d.ts +14 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -158,19 +158,19 @@ const yI = {
|
|
|
158
158
|
text: [["path", { d: "M12 4v16" }], ["path", { d: "M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2" }], ["path", { d: "M9 20h6" }]],
|
|
159
159
|
unlink: [["path", { d: "m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71" }], ["path", { d: "m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71" }], ["line", { x1: "8", x2: "8", y1: "2", y2: "5" }], ["line", { x1: "2", x2: "5", y1: "8", y2: "8" }], ["line", { x1: "16", x2: "16", y1: "19", y2: "22" }], ["line", { x1: "19", x2: "22", y1: "16", y2: "16" }]]
|
|
160
160
|
}, aa = new Map(Object.entries(yI));
|
|
161
|
-
function
|
|
161
|
+
function cG(e, t) {
|
|
162
162
|
aa.set(e, t);
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function uG(e) {
|
|
165
165
|
for (const [t, n] of Object.entries(e)) aa.set(t, n);
|
|
166
166
|
}
|
|
167
167
|
function xw(e) {
|
|
168
168
|
return aa.get(e);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function dG() {
|
|
171
171
|
return [...aa.keys()].sort();
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function fG(e) {
|
|
174
174
|
return aa.has(e);
|
|
175
175
|
}
|
|
176
176
|
function yw(e) {
|
|
@@ -13598,7 +13598,7 @@ function cn({ content: e, children: t, side: n = "top", className: r, defaultOpe
|
|
|
13598
13598
|
}
|
|
13599
13599
|
);
|
|
13600
13600
|
}
|
|
13601
|
-
function
|
|
13601
|
+
function pG({ children: e, delay: t = 0 }) {
|
|
13602
13602
|
return /* @__PURE__ */ p(N1, { delay: t, children: e });
|
|
13603
13603
|
}
|
|
13604
13604
|
const O1 = ft({
|
|
@@ -14134,7 +14134,7 @@ function A1({
|
|
|
14134
14134
|
const l = W(AA({ shape: e, sweep: t }), n), c = { width: r, height: o, ...s };
|
|
14135
14135
|
return a && a > 1 ? /* @__PURE__ */ p("span", { ref: i, className: "flex flex-col gap-3", "aria-busy": "true", "aria-label": "Loading", children: Array.from({ length: a }, (u, m) => /* @__PURE__ */ p("span", { "aria-hidden": !0, className: l, style: c }, m)) }) : /* @__PURE__ */ p("span", { ref: i, "aria-hidden": !0, className: l, style: c });
|
|
14136
14136
|
}
|
|
14137
|
-
function
|
|
14137
|
+
function mG({ lines: e = 3, className: t }) {
|
|
14138
14138
|
return /* @__PURE__ */ p("span", { className: W("flex flex-col gap-2", t), children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ p(
|
|
14139
14139
|
A1,
|
|
14140
14140
|
{
|
|
@@ -14185,7 +14185,7 @@ function DA({ active: e, message: t, children: n, className: r }) {
|
|
|
14185
14185
|
)
|
|
14186
14186
|
] });
|
|
14187
14187
|
}
|
|
14188
|
-
class
|
|
14188
|
+
class hG extends hI {
|
|
14189
14189
|
state = { error: null, resetKey: this.props.resetKey };
|
|
14190
14190
|
static getDerivedStateFromError(t) {
|
|
14191
14191
|
return { error: t };
|
|
@@ -15247,7 +15247,7 @@ function Tr({
|
|
|
15247
15247
|
}
|
|
15248
15248
|
);
|
|
15249
15249
|
}
|
|
15250
|
-
function
|
|
15250
|
+
function gG({ legend: e, description: t, className: n, children: r, ref: o }) {
|
|
15251
15251
|
return /* @__PURE__ */ P(K1, { ref: o, className: W("flex min-w-0 flex-col gap-3", n), children: [
|
|
15252
15252
|
e && /* @__PURE__ */ p(q1, { className: "font-sans text-sm font-semibold text-primary", children: e }),
|
|
15253
15253
|
t && /* @__PURE__ */ p("p", { className: "-mt-2 text-2xs text-tertiary", children: t }),
|
|
@@ -15388,7 +15388,7 @@ const UA = ft({
|
|
|
15388
15388
|
},
|
|
15389
15389
|
defaultVariants: { size: "md", resize: "vertical" }
|
|
15390
15390
|
});
|
|
15391
|
-
function
|
|
15391
|
+
function bG({ className: e, size: t, resize: n, rows: r = 4, ref: o, ...s }) {
|
|
15392
15392
|
return /* @__PURE__ */ p(
|
|
15393
15393
|
th,
|
|
15394
15394
|
{
|
|
@@ -15500,7 +15500,7 @@ const WA = /* @__PURE__ */ new Set([
|
|
|
15500
15500
|
"insertReplacementText",
|
|
15501
15501
|
"insertFromYank"
|
|
15502
15502
|
]);
|
|
15503
|
-
function
|
|
15503
|
+
function xG({
|
|
15504
15504
|
value: e,
|
|
15505
15505
|
onCommit: t,
|
|
15506
15506
|
validate: n,
|
|
@@ -16314,7 +16314,7 @@ function J1({
|
|
|
16314
16314
|
] })
|
|
16315
16315
|
] });
|
|
16316
16316
|
}
|
|
16317
|
-
function
|
|
16317
|
+
function yG({ children: e }) {
|
|
16318
16318
|
return /* @__PURE__ */ p(ba, { render: e });
|
|
16319
16319
|
}
|
|
16320
16320
|
function eS({
|
|
@@ -16371,7 +16371,7 @@ const nD = ft({
|
|
|
16371
16371
|
]
|
|
16372
16372
|
}
|
|
16373
16373
|
});
|
|
16374
|
-
function
|
|
16374
|
+
function vG({
|
|
16375
16375
|
value: e,
|
|
16376
16376
|
onChange: t,
|
|
16377
16377
|
configured: n,
|
|
@@ -17556,7 +17556,7 @@ function xy({ orientation: e = "horizontal", label: t, className: n, ref: r }) {
|
|
|
17556
17556
|
}
|
|
17557
17557
|
);
|
|
17558
17558
|
}
|
|
17559
|
-
function
|
|
17559
|
+
function wG({ children: e, maxHeight: t, className: n }) {
|
|
17560
17560
|
return /* @__PURE__ */ P(nS, { className: W("relative min-w-0", n), children: [
|
|
17561
17561
|
/* @__PURE__ */ p(
|
|
17562
17562
|
sS,
|
|
@@ -17684,7 +17684,7 @@ const vD = {
|
|
|
17684
17684
|
warning: "border-warning-border bg-warning-subtle text-warning-text",
|
|
17685
17685
|
danger: "border-danger-border bg-danger-subtle text-danger-text"
|
|
17686
17686
|
};
|
|
17687
|
-
function
|
|
17687
|
+
function SG({ items: e, className: t }) {
|
|
17688
17688
|
return /* @__PURE__ */ p("ol", { className: W("flex min-w-0 flex-col", t), children: e.map((n, r) => /* @__PURE__ */ P("li", { className: "relative flex min-w-0 gap-4 pb-6 last:pb-0", children: [
|
|
17689
17689
|
r < e.length - 1 && /* @__PURE__ */ p(
|
|
17690
17690
|
"span",
|
|
@@ -17864,7 +17864,7 @@ const gS = ft({
|
|
|
17864
17864
|
]
|
|
17865
17865
|
}
|
|
17866
17866
|
});
|
|
17867
|
-
function
|
|
17867
|
+
function CG(e) {
|
|
17868
17868
|
const {
|
|
17869
17869
|
label: t,
|
|
17870
17870
|
description: n,
|
|
@@ -17916,7 +17916,7 @@ function SG(e) {
|
|
|
17916
17916
|
] })
|
|
17917
17917
|
] });
|
|
17918
17918
|
}
|
|
17919
|
-
function
|
|
17919
|
+
function EG({
|
|
17920
17920
|
title: e,
|
|
17921
17921
|
description: t,
|
|
17922
17922
|
titleAs: n,
|
|
@@ -17946,7 +17946,7 @@ function wD({ term: e, children: t, mono: n, className: r }) {
|
|
|
17946
17946
|
}
|
|
17947
17947
|
);
|
|
17948
17948
|
}
|
|
17949
|
-
function
|
|
17949
|
+
function RG({ entries: e, children: t, className: n, ref: r, ...o }) {
|
|
17950
17950
|
return /* @__PURE__ */ p("dl", { ref: r, className: W("flex flex-col", n), ...o, children: e ? e.map(({ key: s, term: i, value: a, mono: l }) => /* @__PURE__ */ p(wD, { term: i, mono: l, children: a }, s)) : t });
|
|
17951
17951
|
}
|
|
17952
17952
|
const SD = {
|
|
@@ -17985,7 +17985,7 @@ const SD = {
|
|
|
17985
17985
|
function CD() {
|
|
17986
17986
|
return /* @__PURE__ */ p("span", { className: "grid size-9 shrink-0 place-items-center rounded-lg bg-surface-inset text-tertiary", children: /* @__PURE__ */ p(me, { name: "link", size: "md" }) });
|
|
17987
17987
|
}
|
|
17988
|
-
function
|
|
17988
|
+
function kG({
|
|
17989
17989
|
logo: e,
|
|
17990
17990
|
name: t,
|
|
17991
17991
|
description: n,
|
|
@@ -19361,7 +19361,7 @@ function TS({ size: e, className: t, ref: n, ...r }) {
|
|
|
19361
19361
|
}
|
|
19362
19362
|
) });
|
|
19363
19363
|
}
|
|
19364
|
-
function
|
|
19364
|
+
function NG({
|
|
19365
19365
|
className: e,
|
|
19366
19366
|
orientation: t = "vertical",
|
|
19367
19367
|
children: n,
|
|
@@ -19382,7 +19382,7 @@ function kG({
|
|
|
19382
19382
|
}
|
|
19383
19383
|
);
|
|
19384
19384
|
}
|
|
19385
|
-
function
|
|
19385
|
+
function IG({
|
|
19386
19386
|
label: e,
|
|
19387
19387
|
description: t,
|
|
19388
19388
|
error: n,
|
|
@@ -19405,7 +19405,7 @@ function NG({
|
|
|
19405
19405
|
}
|
|
19406
19406
|
);
|
|
19407
19407
|
}
|
|
19408
|
-
function
|
|
19408
|
+
function TG({
|
|
19409
19409
|
label: e,
|
|
19410
19410
|
description: t,
|
|
19411
19411
|
error: n,
|
|
@@ -19428,7 +19428,7 @@ function IG({
|
|
|
19428
19428
|
}
|
|
19429
19429
|
);
|
|
19430
19430
|
}
|
|
19431
|
-
function
|
|
19431
|
+
function MG({
|
|
19432
19432
|
label: e,
|
|
19433
19433
|
description: t,
|
|
19434
19434
|
error: n,
|
|
@@ -19451,7 +19451,7 @@ function TG({
|
|
|
19451
19451
|
}
|
|
19452
19452
|
);
|
|
19453
19453
|
}
|
|
19454
|
-
function
|
|
19454
|
+
function PG({ label: e, description: t, className: n, size: r, ...o }) {
|
|
19455
19455
|
return /* @__PURE__ */ P(
|
|
19456
19456
|
"label",
|
|
19457
19457
|
{
|
|
@@ -19514,7 +19514,7 @@ const jD = ft({
|
|
|
19514
19514
|
{ key: "unset", value: null, pos: 0.5 },
|
|
19515
19515
|
{ key: "yes", value: !0, pos: 1 }
|
|
19516
19516
|
], KD = (e) => wr.find((t) => t.value === e) ?? wr[1];
|
|
19517
|
-
function
|
|
19517
|
+
function OG({
|
|
19518
19518
|
value: e,
|
|
19519
19519
|
onValueChange: t,
|
|
19520
19520
|
"aria-label": n,
|
|
@@ -20490,7 +20490,7 @@ const Sy = {
|
|
|
20490
20490
|
"bottom-right": "bottom-4 right-4",
|
|
20491
20491
|
"bottom-center": "bottom-4 left-1/2 -translate-x-1/2"
|
|
20492
20492
|
};
|
|
20493
|
-
function
|
|
20493
|
+
function AG({ position: e = "bottom-right" }) {
|
|
20494
20494
|
const { toasts: t } = HS(), n = e.startsWith("top");
|
|
20495
20495
|
return /* @__PURE__ */ p(BS, { children: /* @__PURE__ */ p(
|
|
20496
20496
|
PS,
|
|
@@ -20589,7 +20589,7 @@ function OG({ position: e = "bottom-right" }) {
|
|
|
20589
20589
|
}
|
|
20590
20590
|
) });
|
|
20591
20591
|
}
|
|
20592
|
-
function
|
|
20592
|
+
function DG({ children: e, limit: t = 3 }) {
|
|
20593
20593
|
return /* @__PURE__ */ p(MS, { limit: t, children: e });
|
|
20594
20594
|
}
|
|
20595
20595
|
const Cy = {
|
|
@@ -20601,7 +20601,7 @@ const Cy = {
|
|
|
20601
20601
|
/* A loading toast ends when the work does, not on a clock. */
|
|
20602
20602
|
loading: 0
|
|
20603
20603
|
};
|
|
20604
|
-
function
|
|
20604
|
+
function _G() {
|
|
20605
20605
|
const e = HS();
|
|
20606
20606
|
return {
|
|
20607
20607
|
show({ title: t, description: n, tone: r = "info", timeout: o, action: s, onClose: i }) {
|
|
@@ -21977,7 +21977,7 @@ function Yi({ label: e, children: t }) {
|
|
|
21977
21977
|
function sC({ className: e }) {
|
|
21978
21978
|
return /* @__PURE__ */ p(Tu, { className: W("my-1 h-px bg-border-subtle", e) });
|
|
21979
21979
|
}
|
|
21980
|
-
function
|
|
21980
|
+
function VG({ label: e, icon: t, disabled: n, className: r, children: o }) {
|
|
21981
21981
|
return /* @__PURE__ */ P(m_, { disabled: n, children: [
|
|
21982
21982
|
/* @__PURE__ */ P(rC, { className: W($h, "pr-2"), children: [
|
|
21983
21983
|
t && /* @__PURE__ */ p("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: t }),
|
|
@@ -23226,7 +23226,7 @@ function My({
|
|
|
23226
23226
|
n
|
|
23227
23227
|
] });
|
|
23228
23228
|
}
|
|
23229
|
-
function
|
|
23229
|
+
function FG({ className: e, triggerClassName: t, iconOnly: n = !1 }) {
|
|
23230
23230
|
const { theme: r, setTheme: o } = G_(), { scale: s, setScale: i } = W_(), { contrast: a, setContrast: l } = q_(), { motion: c, setMotion: u } = X_(), m = $o.indexOf(s);
|
|
23231
23231
|
return /* @__PURE__ */ p(
|
|
23232
23232
|
jn,
|
|
@@ -23354,7 +23354,7 @@ function Q_(e) {
|
|
|
23354
23354
|
].join(" ");
|
|
23355
23355
|
}
|
|
23356
23356
|
const J_ = (e) => typeof e == "boolean";
|
|
23357
|
-
function
|
|
23357
|
+
function $G({
|
|
23358
23358
|
brand: e,
|
|
23359
23359
|
sections: t,
|
|
23360
23360
|
activeId: n,
|
|
@@ -24112,7 +24112,7 @@ function lV({
|
|
|
24112
24112
|
}
|
|
24113
24113
|
);
|
|
24114
24114
|
}
|
|
24115
|
-
function
|
|
24115
|
+
function LG({
|
|
24116
24116
|
files: e = [],
|
|
24117
24117
|
onFilesAdded: t,
|
|
24118
24118
|
onFileRemoved: n,
|
|
@@ -24371,7 +24371,7 @@ function DC({
|
|
|
24371
24371
|
);
|
|
24372
24372
|
}
|
|
24373
24373
|
const fV = (e) => e.toLocaleDateString(void 0, { day: "numeric", month: "short", year: "numeric" });
|
|
24374
|
-
function
|
|
24374
|
+
function zG({
|
|
24375
24375
|
value: e,
|
|
24376
24376
|
onValueChange: t,
|
|
24377
24377
|
range: n = !1,
|
|
@@ -24477,7 +24477,7 @@ function bV(e, t) {
|
|
|
24477
24477
|
for (let i = n; Fi(i, o) <= 0; i = $r(i, 1)) s.push(i);
|
|
24478
24478
|
return s;
|
|
24479
24479
|
}
|
|
24480
|
-
function
|
|
24480
|
+
function BG(e, t) {
|
|
24481
24481
|
const n = Zi(e, t);
|
|
24482
24482
|
return Array.from({ length: 7 }, (r, o) => $r(n, o));
|
|
24483
24483
|
}
|
|
@@ -24490,10 +24490,10 @@ function xV(e) {
|
|
|
24490
24490
|
throw new Error(`${e} is not a real date — ${n}-${r} has ${Gs(n, r)} days`);
|
|
24491
24491
|
return { year: n, month: r, day: o };
|
|
24492
24492
|
}
|
|
24493
|
-
function
|
|
24493
|
+
function HG(e) {
|
|
24494
24494
|
return { ...e, hour: 0, minute: 0, second: 0, millisecond: 0 };
|
|
24495
24495
|
}
|
|
24496
|
-
function
|
|
24496
|
+
function UG(e, t, n = 0) {
|
|
24497
24497
|
return { ...e, hour: t, minute: n, second: 0, millisecond: 0 };
|
|
24498
24498
|
}
|
|
24499
24499
|
const yV = "—";
|
|
@@ -24627,7 +24627,7 @@ function Fy(e, t) {
|
|
|
24627
24627
|
const [r, o] = (t || "00:00").split(":").map(Number);
|
|
24628
24628
|
return n.setHours(r ?? 0, o ?? 0, 0, 0), n.toISOString();
|
|
24629
24629
|
}
|
|
24630
|
-
function
|
|
24630
|
+
function GG({
|
|
24631
24631
|
value: e,
|
|
24632
24632
|
onValueChange: t,
|
|
24633
24633
|
onEditingChange: n,
|
|
@@ -24700,7 +24700,7 @@ function tf(e, t) {
|
|
|
24700
24700
|
function xl(e, t) {
|
|
24701
24701
|
return (e.slice(0, t).match(/\d/g) ?? []).length;
|
|
24702
24702
|
}
|
|
24703
|
-
function
|
|
24703
|
+
function jG({
|
|
24704
24704
|
value: e,
|
|
24705
24705
|
onValueChange: t,
|
|
24706
24706
|
onEditingChange: n,
|
|
@@ -24793,7 +24793,7 @@ function GG({
|
|
|
24793
24793
|
f ? /* @__PURE__ */ p("p", { id: l, className: "text-2xs text-danger-text", children: i }) : null
|
|
24794
24794
|
] });
|
|
24795
24795
|
}
|
|
24796
|
-
function
|
|
24796
|
+
function WG({ nodes: e, defaultExpanded: t = [], selectedId: n, onSelect: r, className: o }) {
|
|
24797
24797
|
const [s, i] = Ce(new Set(t)), a = [], l = (d, f) => {
|
|
24798
24798
|
for (const h of d)
|
|
24799
24799
|
a.push({ node: h, depth: f }), h.children?.length && s.has(h.id) && l(h.children, f + 1);
|
|
@@ -24923,7 +24923,7 @@ function zy(e, t) {
|
|
|
24923
24923
|
}
|
|
24924
24924
|
return o < n.length ? -1 : s - r.length * 0.05;
|
|
24925
24925
|
}
|
|
24926
|
-
function
|
|
24926
|
+
function KG({
|
|
24927
24927
|
items: e,
|
|
24928
24928
|
open: t,
|
|
24929
24929
|
onOpenChange: n,
|
|
@@ -25065,7 +25065,7 @@ function WG({
|
|
|
25065
25065
|
)
|
|
25066
25066
|
] }) });
|
|
25067
25067
|
}
|
|
25068
|
-
function
|
|
25068
|
+
function qG(e = "k") {
|
|
25069
25069
|
const [t, n] = Ce(!1);
|
|
25070
25070
|
return qe(() => {
|
|
25071
25071
|
function r(o) {
|
|
@@ -26041,7 +26041,7 @@ const mF = "—", hF = new Intl.NumberFormat("en-US", {
|
|
|
26041
26041
|
minimumFractionDigits: 2,
|
|
26042
26042
|
maximumFractionDigits: 2
|
|
26043
26043
|
});
|
|
26044
|
-
function
|
|
26044
|
+
function YG(e) {
|
|
26045
26045
|
return e == null || !Number.isFinite(e) ? mF : hF.format(e);
|
|
26046
26046
|
}
|
|
26047
26047
|
function gF(e) {
|
|
@@ -26102,7 +26102,7 @@ const bF = ft({
|
|
|
26102
26102
|
},
|
|
26103
26103
|
defaultVariants: { size: "md", align: "center" }
|
|
26104
26104
|
}), xF = /[-−-‒–—﹣]/;
|
|
26105
|
-
function
|
|
26105
|
+
function XG({
|
|
26106
26106
|
size: e,
|
|
26107
26107
|
align: t,
|
|
26108
26108
|
className: n,
|
|
@@ -26612,7 +26612,7 @@ const ZC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
26612
26612
|
});
|
|
26613
26613
|
});
|
|
26614
26614
|
process.env.NODE_ENV !== "production" && (ZC.displayName = "OTPFieldInput");
|
|
26615
|
-
function
|
|
26615
|
+
function ZG({
|
|
26616
26616
|
length: e = 6,
|
|
26617
26617
|
groupAfter: t,
|
|
26618
26618
|
className: n,
|
|
@@ -28649,7 +28649,7 @@ function IE(e) {
|
|
|
28649
28649
|
popupStyle: n === null ? void 0 : { width: `${n}px` }
|
|
28650
28650
|
};
|
|
28651
28651
|
}
|
|
28652
|
-
function
|
|
28652
|
+
function QG({
|
|
28653
28653
|
placeholder: e = "Search…",
|
|
28654
28654
|
emptyMessage: t = "Nothing matches that search.",
|
|
28655
28655
|
className: n,
|
|
@@ -28709,7 +28709,7 @@ function ZG({
|
|
|
28709
28709
|
}
|
|
28710
28710
|
);
|
|
28711
28711
|
}
|
|
28712
|
-
function
|
|
28712
|
+
function JG({ className: e, children: t, ref: n, ...r }) {
|
|
28713
28713
|
return /* @__PURE__ */ P(
|
|
28714
28714
|
bE,
|
|
28715
28715
|
{
|
|
@@ -28734,7 +28734,7 @@ function QG({ className: e, children: t, ref: n, ...r }) {
|
|
|
28734
28734
|
}
|
|
28735
28735
|
);
|
|
28736
28736
|
}
|
|
28737
|
-
function
|
|
28737
|
+
function ej({ label: e, children: t }) {
|
|
28738
28738
|
return /* @__PURE__ */ P(fE, { children: [
|
|
28739
28739
|
e && /* @__PURE__ */ p(pE, { className: "px-2 py-1.5 text-2xs font-semibold tracking-wide text-tertiary uppercase", children: e }),
|
|
28740
28740
|
t
|
|
@@ -28750,7 +28750,7 @@ const XF = [
|
|
|
28750
28750
|
"w-[min(24rem,90vw,var(--available-width))]",
|
|
28751
28751
|
"max-h-[min(28rem,var(--available-height))]"
|
|
28752
28752
|
];
|
|
28753
|
-
function
|
|
28753
|
+
function tj({
|
|
28754
28754
|
label: e,
|
|
28755
28755
|
placeholder: t = "Search…",
|
|
28756
28756
|
className: n,
|
|
@@ -28798,7 +28798,7 @@ function ej({
|
|
|
28798
28798
|
] }) }) })
|
|
28799
28799
|
] });
|
|
28800
28800
|
}
|
|
28801
|
-
function
|
|
28801
|
+
function nj({
|
|
28802
28802
|
placeholder: e = "Search…",
|
|
28803
28803
|
emptyMessage: t = "Nothing matches that search.",
|
|
28804
28804
|
renderChip: n,
|
|
@@ -30142,7 +30142,7 @@ function d$({ label: e, children: t }) {
|
|
|
30142
30142
|
t
|
|
30143
30143
|
] });
|
|
30144
30144
|
}
|
|
30145
|
-
function
|
|
30145
|
+
function rj({ className: e }) {
|
|
30146
30146
|
return /* @__PURE__ */ p(s$, { className: W("my-1 h-px bg-border-subtle", e) });
|
|
30147
30147
|
}
|
|
30148
30148
|
function f$({
|
|
@@ -30318,7 +30318,7 @@ const GE = [
|
|
|
30318
30318
|
},
|
|
30319
30319
|
defaultVariants: { placement: "corner" }
|
|
30320
30320
|
});
|
|
30321
|
-
function
|
|
30321
|
+
function oj({
|
|
30322
30322
|
identifier: e,
|
|
30323
30323
|
title: t,
|
|
30324
30324
|
subtitle: n,
|
|
@@ -30370,27 +30370,27 @@ function rj({
|
|
|
30370
30370
|
}
|
|
30371
30371
|
});
|
|
30372
30372
|
}
|
|
30373
|
-
function
|
|
30373
|
+
function sj({ className: e, children: t, ref: n }) {
|
|
30374
30374
|
const r = ai();
|
|
30375
30375
|
return /* @__PURE__ */ p("span", { ref: n, className: W(r.handle(), e), children: t });
|
|
30376
30376
|
}
|
|
30377
|
-
function
|
|
30377
|
+
function ij({ className: e, children: t, ref: n }) {
|
|
30378
30378
|
const r = ai();
|
|
30379
30379
|
return /* @__PURE__ */ p("span", { ref: n, className: W(r.eyebrow(), e), children: t });
|
|
30380
30380
|
}
|
|
30381
|
-
function
|
|
30381
|
+
function aj({ as: e = "h3", className: t, children: n, ref: r }) {
|
|
30382
30382
|
const o = ai();
|
|
30383
30383
|
return /* @__PURE__ */ p(e, { ref: r, className: W(o.title(), t), children: n });
|
|
30384
30384
|
}
|
|
30385
|
-
function
|
|
30385
|
+
function lj({ className: e, children: t, ref: n }) {
|
|
30386
30386
|
const r = ai();
|
|
30387
30387
|
return /* @__PURE__ */ p("div", { ref: n, className: W(r.badges(), e), children: t });
|
|
30388
30388
|
}
|
|
30389
|
-
function
|
|
30389
|
+
function cj({ placement: e, className: t, children: n, ref: r }) {
|
|
30390
30390
|
const o = ai({ placement: e });
|
|
30391
30391
|
return /* @__PURE__ */ p("div", { ref: r, className: W(o.media(), t), children: n });
|
|
30392
30392
|
}
|
|
30393
|
-
function
|
|
30393
|
+
function uj({ className: e, children: t, ref: n }) {
|
|
30394
30394
|
const r = ai();
|
|
30395
30395
|
return /* @__PURE__ */ p("div", { ref: n, className: W(r.meta(), e), children: t });
|
|
30396
30396
|
}
|
|
@@ -31000,7 +31000,7 @@ function x$({ className: e, children: t, variant: n, ref: r, ...o }) {
|
|
|
31000
31000
|
const s = Yu({ variant: n });
|
|
31001
31001
|
return /* @__PURE__ */ p(KE, { ref: r, className: W(s.tab(), e), ...o, children: t });
|
|
31002
31002
|
}
|
|
31003
|
-
function
|
|
31003
|
+
function dj({ className: e, children: t, ref: n, ...r }) {
|
|
31004
31004
|
const o = Yu({ fill: Rn(QE) });
|
|
31005
31005
|
return /* @__PURE__ */ p(
|
|
31006
31006
|
YE,
|
|
@@ -31600,7 +31600,7 @@ function P$(e) {
|
|
|
31600
31600
|
}
|
|
31601
31601
|
return null;
|
|
31602
31602
|
}
|
|
31603
|
-
function
|
|
31603
|
+
function fj({
|
|
31604
31604
|
items: e,
|
|
31605
31605
|
renderItem: t,
|
|
31606
31606
|
getKey: n,
|
|
@@ -31758,7 +31758,7 @@ const _$ = {
|
|
|
31758
31758
|
label: "text-tertiary"
|
|
31759
31759
|
}
|
|
31760
31760
|
};
|
|
31761
|
-
function
|
|
31761
|
+
function pj({
|
|
31762
31762
|
label: e,
|
|
31763
31763
|
steps: t,
|
|
31764
31764
|
current: n,
|
|
@@ -31968,7 +31968,7 @@ function nv({
|
|
|
31968
31968
|
}
|
|
31969
31969
|
);
|
|
31970
31970
|
}
|
|
31971
|
-
function
|
|
31971
|
+
function mj({
|
|
31972
31972
|
label: e,
|
|
31973
31973
|
states: t,
|
|
31974
31974
|
items: n,
|
|
@@ -32363,7 +32363,7 @@ function L$({
|
|
|
32363
32363
|
}
|
|
32364
32364
|
);
|
|
32365
32365
|
}
|
|
32366
|
-
function
|
|
32366
|
+
function hj({ className: e, children: t, ref: n, ...r }) {
|
|
32367
32367
|
return /* @__PURE__ */ p(
|
|
32368
32368
|
cR,
|
|
32369
32369
|
{
|
|
@@ -32377,7 +32377,7 @@ function mj({ className: e, children: t, ref: n, ...r }) {
|
|
|
32377
32377
|
}
|
|
32378
32378
|
);
|
|
32379
32379
|
}
|
|
32380
|
-
function
|
|
32380
|
+
function gj({ className: e }) {
|
|
32381
32381
|
return /* @__PURE__ */ p(
|
|
32382
32382
|
lR,
|
|
32383
32383
|
{
|
|
@@ -32385,7 +32385,7 @@ function hj({ className: e }) {
|
|
|
32385
32385
|
}
|
|
32386
32386
|
);
|
|
32387
32387
|
}
|
|
32388
|
-
function
|
|
32388
|
+
function bj({
|
|
32389
32389
|
variant: e,
|
|
32390
32390
|
size: t,
|
|
32391
32391
|
iconOnly: n,
|
|
@@ -32407,7 +32407,7 @@ function gj({
|
|
|
32407
32407
|
}
|
|
32408
32408
|
);
|
|
32409
32409
|
}
|
|
32410
|
-
function
|
|
32410
|
+
function xj({ focusableWhenDisabled: e, ref: t, ...n }) {
|
|
32411
32411
|
return /* @__PURE__ */ p(
|
|
32412
32412
|
fR,
|
|
32413
32413
|
{
|
|
@@ -32417,7 +32417,7 @@ function bj({ focusableWhenDisabled: e, ref: t, ...n }) {
|
|
|
32417
32417
|
}
|
|
32418
32418
|
);
|
|
32419
32419
|
}
|
|
32420
|
-
function
|
|
32420
|
+
function yj({ className: e, children: t, ref: n, ...r }) {
|
|
32421
32421
|
return /* @__PURE__ */ p(
|
|
32422
32422
|
uR,
|
|
32423
32423
|
{
|
|
@@ -32436,7 +32436,7 @@ function hR(e) {
|
|
|
32436
32436
|
return t;
|
|
32437
32437
|
}
|
|
32438
32438
|
const rv = (e, t, n) => Math.min(n, Math.max(t, e)), z$ = (e) => typeof e == "object" && e !== null && !Array.isArray(e) && Object.values(e).every((t) => typeof t == "number" && Number.isFinite(t));
|
|
32439
|
-
function
|
|
32439
|
+
function vj({
|
|
32440
32440
|
children: e,
|
|
32441
32441
|
direction: t = "horizontal",
|
|
32442
32442
|
narrowBelow: n = "md",
|
|
@@ -32623,7 +32623,7 @@ function yj({
|
|
|
32623
32623
|
}
|
|
32624
32624
|
) });
|
|
32625
32625
|
}
|
|
32626
|
-
function
|
|
32626
|
+
function wj({
|
|
32627
32627
|
children: e,
|
|
32628
32628
|
id: t,
|
|
32629
32629
|
label: n,
|
|
@@ -32706,7 +32706,7 @@ function vj({
|
|
|
32706
32706
|
}
|
|
32707
32707
|
);
|
|
32708
32708
|
}
|
|
32709
|
-
function
|
|
32709
|
+
function Sj({
|
|
32710
32710
|
label: e,
|
|
32711
32711
|
step: t = 4,
|
|
32712
32712
|
withGrip: n = !0,
|
|
@@ -32987,7 +32987,7 @@ function Sc({ src: e, name: t, fallback: n, status: r, size: o, shape: s, classN
|
|
|
32987
32987
|
r && /* @__PURE__ */ p("span", { className: W(l.status(), j$[r]), "aria-label": r, role: "img" })
|
|
32988
32988
|
] });
|
|
32989
32989
|
}
|
|
32990
|
-
function
|
|
32990
|
+
function Cj({ children: e, max: t = 4, size: n = "md", className: r }) {
|
|
32991
32991
|
const o = Array.isArray(e) ? e : [e], s = o.slice(0, t), i = o.length - s.length, a = vR({ size: n });
|
|
32992
32992
|
return /* @__PURE__ */ P("div", { className: W("flex items-center", r), children: [
|
|
32993
32993
|
s.map((l, c) => /* @__PURE__ */ p(
|
|
@@ -33102,7 +33102,7 @@ const X$ = ft({
|
|
|
33102
33102
|
},
|
|
33103
33103
|
defaultVariants: { size: "md", align: "start" }
|
|
33104
33104
|
});
|
|
33105
|
-
function
|
|
33105
|
+
function Ej({ stats: e, size: t = "md", align: n = "start", className: r, ref: o }) {
|
|
33106
33106
|
return e.length === 0 ? null : /* @__PURE__ */ p("div", { ref: o, className: W(X$({ size: t, align: n }), r), children: e.map((s, i) => (
|
|
33107
33107
|
/* INDEX IS THE KEY DELIBERATELY. A readout is a fixed, hand-authored
|
|
33108
33108
|
list per screen — never reordered, never filtered — so there is no
|
|
@@ -33116,7 +33116,7 @@ const Z$ = {
|
|
|
33116
33116
|
negative: "text-danger",
|
|
33117
33117
|
neutral: "text-accent"
|
|
33118
33118
|
};
|
|
33119
|
-
function
|
|
33119
|
+
function Rj({ values: e, sentiment: t = "neutral", className: n }) {
|
|
33120
33120
|
if (e.length < 2) return null;
|
|
33121
33121
|
const r = Math.min(...e), s = Math.max(...e) - r || 1, i = 100 / (e.length - 1), a = e.map((m, d) => [d * i, 30 - (m - r) / s * 26 - 2]), l = a.map(([m, d], f) => `${f ? "L" : "M"}${m.toFixed(2)} ${d.toFixed(2)}`).join(" "), [c, u] = a[a.length - 1];
|
|
33122
33122
|
return /* @__PURE__ */ P(
|
|
@@ -35042,7 +35042,7 @@ const YL = [10, 25, 50, 100], lv = {
|
|
|
35042
35042
|
cozy: "px-4 text-sm",
|
|
35043
35043
|
compact: "px-3 text-xs"
|
|
35044
35044
|
};
|
|
35045
|
-
function
|
|
35045
|
+
function kj({
|
|
35046
35046
|
data: e,
|
|
35047
35047
|
columns: t,
|
|
35048
35048
|
density: n = "cozy",
|
|
@@ -35287,7 +35287,7 @@ function XL({
|
|
|
35287
35287
|
r && /* @__PURE__ */ p("div", { className: "mt-1", children: r })
|
|
35288
35288
|
] });
|
|
35289
35289
|
}
|
|
35290
|
-
function
|
|
35290
|
+
function Nj({
|
|
35291
35291
|
primary: e,
|
|
35292
35292
|
secondary: t,
|
|
35293
35293
|
mono: n = !1
|
|
@@ -37337,7 +37337,7 @@ function Ho(e, t, n, r, o) {
|
|
|
37337
37337
|
}
|
|
37338
37338
|
e.push({ start: t, end: n, type: r, lang: o });
|
|
37339
37339
|
}
|
|
37340
|
-
function
|
|
37340
|
+
function Ij(e, t) {
|
|
37341
37341
|
let n = 0;
|
|
37342
37342
|
for (const r of t) {
|
|
37343
37343
|
if (r.start !== n)
|
|
@@ -37360,10 +37360,10 @@ function YR(e, t) {
|
|
|
37360
37360
|
function A5() {
|
|
37361
37361
|
return rd(), Vz();
|
|
37362
37362
|
}
|
|
37363
|
-
function
|
|
37363
|
+
function Tj(e) {
|
|
37364
37364
|
return rd(), _z(e);
|
|
37365
37365
|
}
|
|
37366
|
-
function
|
|
37366
|
+
function Mj(e) {
|
|
37367
37367
|
rd(), LR(e);
|
|
37368
37368
|
}
|
|
37369
37369
|
function D5(e, t) {
|
|
@@ -38284,7 +38284,7 @@ function Nl(e, t, n = "after") {
|
|
|
38284
38284
|
return i ? (i.setBaseAndExtent(o.node, o.offset, s.node, s.offset), !0) : !1;
|
|
38285
38285
|
}
|
|
38286
38286
|
const cB = new Intl.Segmenter(void 0, { granularity: "grapheme" });
|
|
38287
|
-
function
|
|
38287
|
+
function Pj(e, t, n) {
|
|
38288
38288
|
const r = Math.max(0, Math.min(t, e.length));
|
|
38289
38289
|
if (n === 1 && r >= e.length) return e.length;
|
|
38290
38290
|
if (n === -1 && r <= 0) return 0;
|
|
@@ -38669,7 +38669,7 @@ function IB(e = "", t) {
|
|
|
38669
38669
|
};
|
|
38670
38670
|
};
|
|
38671
38671
|
}
|
|
38672
|
-
function
|
|
38672
|
+
function Oj(e, t) {
|
|
38673
38673
|
if (!e.trim()) throw new Error("insertImage: src is required — an image with no source renders as a broken box");
|
|
38674
38674
|
return (n, r) => {
|
|
38675
38675
|
const { from: o, to: s } = Kt(r), i = uk(e, t ?? n.slice(o, s)), a = fk(kc(n), o);
|
|
@@ -40762,7 +40762,7 @@ function L3(e, t, n) {
|
|
|
40762
40762
|
return null;
|
|
40763
40763
|
}
|
|
40764
40764
|
const $k = kn(null);
|
|
40765
|
-
function
|
|
40765
|
+
function Aj({ uploadImage: e, children: t }) {
|
|
40766
40766
|
return /* @__PURE__ */ p($k.Provider, { value: e, children: t });
|
|
40767
40767
|
}
|
|
40768
40768
|
function z3(e) {
|
|
@@ -40879,7 +40879,7 @@ const U3 = { uploading: 0, failed: 0, unstored: 0, local: 0, retryable: 0, failu
|
|
|
40879
40879
|
blocks: "Blocks",
|
|
40880
40880
|
tables: "Tables"
|
|
40881
40881
|
};
|
|
40882
|
-
function
|
|
40882
|
+
function Dj({
|
|
40883
40883
|
value: e,
|
|
40884
40884
|
onChange: t,
|
|
40885
40885
|
readOnly: n = !t,
|
|
@@ -41180,7 +41180,7 @@ function Y3(e, t) {
|
|
|
41180
41180
|
function $v() {
|
|
41181
41181
|
return typeof window > "u" ? !1 : window.getComputedStyle(document.documentElement).getPropertyValue("--motion-travel").trim() === "1";
|
|
41182
41182
|
}
|
|
41183
|
-
function
|
|
41183
|
+
function _j({
|
|
41184
41184
|
lines: e,
|
|
41185
41185
|
children: t,
|
|
41186
41186
|
expanded: n,
|
|
@@ -41886,7 +41886,7 @@ function c4(e, t = {}) {
|
|
|
41886
41886
|
};
|
|
41887
41887
|
}
|
|
41888
41888
|
const Hk = kn(null), u4 = Hk.Provider;
|
|
41889
|
-
function
|
|
41889
|
+
function Vj(e) {
|
|
41890
41890
|
const t = Rn(Hk);
|
|
41891
41891
|
if (!t)
|
|
41892
41892
|
throw new Error(`<${e}> must be rendered inside a <DragDrop>.`);
|
|
@@ -42822,7 +42822,7 @@ function A4(e, t) {
|
|
|
42822
42822
|
);
|
|
42823
42823
|
return { verdict: { ok: !0 }, commit: m };
|
|
42824
42824
|
}
|
|
42825
|
-
function
|
|
42825
|
+
function Fj(e, t, n) {
|
|
42826
42826
|
if (n.length === 0) return e.slice();
|
|
42827
42827
|
if (n.length === 1 && n[0].from.columnId === n[0].to.columnId) {
|
|
42828
42828
|
const a = n[0], l = a.from.columnId, c = /* @__PURE__ */ new Map();
|
|
@@ -43040,7 +43040,7 @@ const Uv = ft({
|
|
|
43040
43040
|
},
|
|
43041
43041
|
defaultVariants: { refusing: !1, fill: !0 }
|
|
43042
43042
|
});
|
|
43043
|
-
function
|
|
43043
|
+
function $j({
|
|
43044
43044
|
label: e,
|
|
43045
43045
|
lanes: t,
|
|
43046
43046
|
getItemId: n,
|
|
@@ -43312,7 +43312,7 @@ const ub = ft({
|
|
|
43312
43312
|
},
|
|
43313
43313
|
defaultVariants: { overWip: !1 }
|
|
43314
43314
|
});
|
|
43315
|
-
function
|
|
43315
|
+
function Lj({
|
|
43316
43316
|
items: e,
|
|
43317
43317
|
columns: t,
|
|
43318
43318
|
accessors: n,
|
|
@@ -43374,10 +43374,10 @@ function $j({
|
|
|
43374
43374
|
}
|
|
43375
43375
|
);
|
|
43376
43376
|
}
|
|
43377
|
-
function
|
|
43377
|
+
function zj({ className: e, children: t }) {
|
|
43378
43378
|
return /* @__PURE__ */ p(eN, { className: e, children: /* @__PURE__ */ p(oN.Provider, { value: !0, children: t }) });
|
|
43379
43379
|
}
|
|
43380
|
-
function
|
|
43380
|
+
function Bj({
|
|
43381
43381
|
column: e,
|
|
43382
43382
|
emptyState: t,
|
|
43383
43383
|
className: n,
|
|
@@ -43439,7 +43439,7 @@ function U4({
|
|
|
43439
43439
|
}
|
|
43440
43440
|
);
|
|
43441
43441
|
}
|
|
43442
|
-
function
|
|
43442
|
+
function Hj({ id: e, index: t, label: n, className: r, children: o }) {
|
|
43443
43443
|
const { columnId: s } = z4("BoardCard"), i = Re(!1), a = De(() => (i.current = !0, () => {
|
|
43444
43444
|
i.current = !1;
|
|
43445
43445
|
}), []);
|
|
@@ -43582,7 +43582,7 @@ function lN({
|
|
|
43582
43582
|
type: "button",
|
|
43583
43583
|
onClick: () => s(e),
|
|
43584
43584
|
"aria-label": `Preview ${e.name}`,
|
|
43585
|
-
className: "absolute inset-0 z-
|
|
43585
|
+
className: "absolute inset-0 z-1 cursor-pointer rounded-[inherit] outline-none focus-visible:ring-2 focus-visible:ring-focus-ring"
|
|
43586
43586
|
}
|
|
43587
43587
|
),
|
|
43588
43588
|
m ? /* @__PURE__ */ P(lt, { children: [
|
|
@@ -43894,8 +43894,154 @@ function K4({
|
|
|
43894
43894
|
] })
|
|
43895
43895
|
] });
|
|
43896
43896
|
}
|
|
43897
|
-
const
|
|
43898
|
-
function
|
|
43897
|
+
const Ws = 36e5, q4 = 6e4, jv = /* @__PURE__ */ new Map();
|
|
43898
|
+
function Y4(e) {
|
|
43899
|
+
let t = jv.get(e);
|
|
43900
|
+
return t || (t = new Intl.DateTimeFormat("en-US", {
|
|
43901
|
+
timeZone: e,
|
|
43902
|
+
year: "numeric",
|
|
43903
|
+
month: "2-digit",
|
|
43904
|
+
day: "2-digit",
|
|
43905
|
+
hour: "2-digit",
|
|
43906
|
+
minute: "2-digit",
|
|
43907
|
+
second: "2-digit",
|
|
43908
|
+
/* `h23` EXPLICITLY, not `hour12: false`. Several ICU versions render
|
|
43909
|
+
midnight as hour "24" under `hour12: false`, which parses as a valid
|
|
43910
|
+
number and silently lands the reading on the wrong day. */
|
|
43911
|
+
hourCycle: "h23"
|
|
43912
|
+
}), jv.set(e, t)), t;
|
|
43913
|
+
}
|
|
43914
|
+
function Vn(e, t) {
|
|
43915
|
+
const n = Y4(e).formatToParts(new Date(t));
|
|
43916
|
+
let r = 0, o = 1, s = 1, i = 0, a = 0, l = 0;
|
|
43917
|
+
for (const u of n)
|
|
43918
|
+
switch (u.type) {
|
|
43919
|
+
case "year":
|
|
43920
|
+
r = Number(u.value);
|
|
43921
|
+
break;
|
|
43922
|
+
case "month":
|
|
43923
|
+
o = Number(u.value);
|
|
43924
|
+
break;
|
|
43925
|
+
case "day":
|
|
43926
|
+
s = Number(u.value);
|
|
43927
|
+
break;
|
|
43928
|
+
case "hour":
|
|
43929
|
+
i = Number(u.value);
|
|
43930
|
+
break;
|
|
43931
|
+
case "minute":
|
|
43932
|
+
a = Number(u.value);
|
|
43933
|
+
break;
|
|
43934
|
+
case "second":
|
|
43935
|
+
l = Number(u.value);
|
|
43936
|
+
break;
|
|
43937
|
+
}
|
|
43938
|
+
const c = (t % 1e3 + 1e3) % 1e3;
|
|
43939
|
+
return { year: r, month: o, day: s, hour: i, minute: a, second: l, millisecond: c };
|
|
43940
|
+
}
|
|
43941
|
+
function db(e) {
|
|
43942
|
+
const t = /* @__PURE__ */ new Date(0);
|
|
43943
|
+
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond), t.getTime();
|
|
43944
|
+
}
|
|
43945
|
+
function Oc(e, t) {
|
|
43946
|
+
return db(Vn(e, t)) - t;
|
|
43947
|
+
}
|
|
43948
|
+
function X4(e, t) {
|
|
43949
|
+
return e.year === t.year && e.month === t.month && e.day === t.day && e.hour === t.hour && e.minute === t.minute && e.second === t.second && e.millisecond === t.millisecond;
|
|
43950
|
+
}
|
|
43951
|
+
function Tp(e, t) {
|
|
43952
|
+
const n = db(t), r = Oc(e, n - 24 * Ws), o = Oc(e, n + 24 * Ws), s = [];
|
|
43953
|
+
for (const i of r === o ? [r] : [r, o]) {
|
|
43954
|
+
const a = n - i;
|
|
43955
|
+
X4(Vn(e, a), t) && s.push(a);
|
|
43956
|
+
}
|
|
43957
|
+
return s.sort((i, a) => i - a), s.filter((i, a) => a === 0 || i !== s[a - 1]);
|
|
43958
|
+
}
|
|
43959
|
+
function fb(e, t, n = "compatible") {
|
|
43960
|
+
const r = Tp(e, t);
|
|
43961
|
+
if (r.length === 1) return r[0];
|
|
43962
|
+
if (r.length > 1) {
|
|
43963
|
+
if (n === "reject") throw new Oy(t, e, "overlap");
|
|
43964
|
+
return n === "later" ? r[r.length - 1] : r[0];
|
|
43965
|
+
}
|
|
43966
|
+
if (n === "reject") throw new Oy(t, e, "gap");
|
|
43967
|
+
const o = db(t), s = Oc(e, o - 24 * Ws), i = Oc(e, o + 24 * Ws), a = i - s, l = o - s, c = o - i;
|
|
43968
|
+
return n === "earlier" ? Math.min(l, c) : a > 0 ? Math.max(l, c) : Math.min(l, c);
|
|
43969
|
+
}
|
|
43970
|
+
function Uj(e, t) {
|
|
43971
|
+
const n = Vn(e, t);
|
|
43972
|
+
return { year: n.year, month: n.month, day: n.day };
|
|
43973
|
+
}
|
|
43974
|
+
function sn(e, t) {
|
|
43975
|
+
const n = { ...t, hour: 0, minute: 0, second: 0, millisecond: 0 }, r = Tp(e, n);
|
|
43976
|
+
if (r.length > 0) return r[0];
|
|
43977
|
+
for (let o = 1; o <= 180; o++) {
|
|
43978
|
+
const s = Tp(e, {
|
|
43979
|
+
...t,
|
|
43980
|
+
hour: Math.floor(o / 60),
|
|
43981
|
+
minute: o % 60,
|
|
43982
|
+
second: 0,
|
|
43983
|
+
millisecond: 0
|
|
43984
|
+
});
|
|
43985
|
+
if (s.length > 0) return s[0];
|
|
43986
|
+
}
|
|
43987
|
+
throw new Error(
|
|
43988
|
+
`startOfDay: no instant exists in the first three hours of ${t.year}-${t.month}-${t.day} in ${e}`
|
|
43989
|
+
);
|
|
43990
|
+
}
|
|
43991
|
+
function Ks(e) {
|
|
43992
|
+
const t = /* @__PURE__ */ new Date(0);
|
|
43993
|
+
return t.setUTCFullYear(e.year, e.month - 1, e.day + 1), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
|
|
43994
|
+
}
|
|
43995
|
+
function pb(e, t) {
|
|
43996
|
+
return sn(e, Ks(t)) - sn(e, t);
|
|
43997
|
+
}
|
|
43998
|
+
function Gj(e, t) {
|
|
43999
|
+
return pb(e, t) / Ws;
|
|
44000
|
+
}
|
|
44001
|
+
function sa(e, t, n) {
|
|
44002
|
+
const r = sn(e, t);
|
|
44003
|
+
return (n - r) / pb(e, t);
|
|
44004
|
+
}
|
|
44005
|
+
function uN(e, t, n) {
|
|
44006
|
+
return sn(e, t) + n * pb(e, t);
|
|
44007
|
+
}
|
|
44008
|
+
function mo(e, t, n, r = "compatible") {
|
|
44009
|
+
const { days: o = 0, hours: s = 0, minutes: i = 0 } = n;
|
|
44010
|
+
let a = t;
|
|
44011
|
+
if (o !== 0) {
|
|
44012
|
+
const l = Vn(e, t), c = /* @__PURE__ */ new Date(0);
|
|
44013
|
+
c.setUTCFullYear(l.year, l.month - 1, l.day + o), a = fb(
|
|
44014
|
+
e,
|
|
44015
|
+
{
|
|
44016
|
+
year: c.getUTCFullYear(),
|
|
44017
|
+
month: c.getUTCMonth() + 1,
|
|
44018
|
+
day: c.getUTCDate(),
|
|
44019
|
+
hour: l.hour,
|
|
44020
|
+
minute: l.minute,
|
|
44021
|
+
second: l.second,
|
|
44022
|
+
millisecond: l.millisecond
|
|
44023
|
+
},
|
|
44024
|
+
r
|
|
44025
|
+
);
|
|
44026
|
+
}
|
|
44027
|
+
return a + s * Ws + i * q4;
|
|
44028
|
+
}
|
|
44029
|
+
function Z4(e) {
|
|
44030
|
+
const t = typeof e == "number" ? e : e instanceof Date ? e.getTime() : Date.parse(e);
|
|
44031
|
+
if (Number.isNaN(t)) return "unknown";
|
|
44032
|
+
const n = Math.max(0, Math.round((Date.now() - t) / 1e3));
|
|
44033
|
+
if (n < 45) return "just now";
|
|
44034
|
+
const r = Math.round(n / 60);
|
|
44035
|
+
if (r < 60) return `${String(r)}m ago`;
|
|
44036
|
+
const o = Math.round(n / 3600);
|
|
44037
|
+
if (o < 24) return `${String(o)}h ago`;
|
|
44038
|
+
const s = Math.floor(o / 24), i = o % 24;
|
|
44039
|
+
if (s < 7) return i > 0 ? `${String(s)}d ${String(i)}h ago` : `${String(s)}d ago`;
|
|
44040
|
+
const a = Math.round(s / 7);
|
|
44041
|
+
return `${String(a)}w ago`;
|
|
44042
|
+
}
|
|
44043
|
+
const Wv = /^```(\S*)\s*$/, Q4 = /^(#{1,6})\s+(.*)$/, Kv = /^\s*[-*+]\s+(.*)$/, qv = /^\s*(\d+)[.)]\s+(.*)$/, Ef = /^>\s?(.*)$/, J4 = /^(-{3,}|\*{3,}|_{3,})\s*$/;
|
|
44044
|
+
function eH(e) {
|
|
43899
44045
|
const t = e.split(`
|
|
43900
44046
|
`), n = [];
|
|
43901
44047
|
let r = [];
|
|
@@ -43904,14 +44050,14 @@ function X4(e) {
|
|
|
43904
44050
|
`) }), r = []);
|
|
43905
44051
|
};
|
|
43906
44052
|
for (let s = 0; s < t.length; s++) {
|
|
43907
|
-
const i = t[s], a =
|
|
44053
|
+
const i = t[s], a = Wv.exec(i);
|
|
43908
44054
|
if (a) {
|
|
43909
44055
|
o();
|
|
43910
44056
|
const d = a[1] || void 0, f = [];
|
|
43911
44057
|
s++;
|
|
43912
44058
|
let h = !1;
|
|
43913
44059
|
for (; s < t.length; s++) {
|
|
43914
|
-
if (
|
|
44060
|
+
if (Wv.test(t[s])) {
|
|
43915
44061
|
h = !0;
|
|
43916
44062
|
break;
|
|
43917
44063
|
}
|
|
@@ -43921,12 +44067,12 @@ function X4(e) {
|
|
|
43921
44067
|
`), language: d, open: !h });
|
|
43922
44068
|
continue;
|
|
43923
44069
|
}
|
|
43924
|
-
const l =
|
|
44070
|
+
const l = Q4.exec(i);
|
|
43925
44071
|
if (l) {
|
|
43926
44072
|
o(), n.push({ kind: "heading", level: l[1].length, text: l[2] });
|
|
43927
44073
|
continue;
|
|
43928
44074
|
}
|
|
43929
|
-
if (
|
|
44075
|
+
if (J4.test(i)) {
|
|
43930
44076
|
o(), n.push({ kind: "rule" });
|
|
43931
44077
|
continue;
|
|
43932
44078
|
}
|
|
@@ -43940,12 +44086,12 @@ function X4(e) {
|
|
|
43940
44086
|
`) });
|
|
43941
44087
|
continue;
|
|
43942
44088
|
}
|
|
43943
|
-
const u =
|
|
44089
|
+
const u = Kv.exec(i), m = qv.exec(i);
|
|
43944
44090
|
if (u || m) {
|
|
43945
44091
|
o();
|
|
43946
44092
|
const d = !!m, f = m ? Number(m[1]) : 1, h = [m ? m[2] : u[1]];
|
|
43947
44093
|
for (; s + 1 < t.length; ) {
|
|
43948
|
-
const g = t[s + 1], x = d ?
|
|
44094
|
+
const g = t[s + 1], x = d ? qv.exec(g) : Kv.exec(g);
|
|
43949
44095
|
if (!x) break;
|
|
43950
44096
|
s++, h.push(d ? x[2] : x[1]);
|
|
43951
44097
|
}
|
|
@@ -43960,21 +44106,21 @@ function X4(e) {
|
|
|
43960
44106
|
}
|
|
43961
44107
|
return o(), n;
|
|
43962
44108
|
}
|
|
43963
|
-
function
|
|
44109
|
+
function tH(e) {
|
|
43964
44110
|
let t = e;
|
|
43965
44111
|
(t.match(/`/g) ?? []).length % 2 === 1 && (t += "`"), (t.match(/\*\*/g) ?? []).length % 2 === 1 && (t += "**");
|
|
43966
44112
|
const o = (t.match(/\[/g) ?? []).length - (t.match(/\]/g) ?? []).length;
|
|
43967
44113
|
return o > 0 && (t += "]".repeat(o)), t;
|
|
43968
44114
|
}
|
|
43969
|
-
const
|
|
43970
|
-
function
|
|
44115
|
+
const Yv = /(`[^`]*`|\*\*[^*]+\*\*|\*[^*\n]+\*|!?\[[^\]]*\]\([^)\s]*\))/g;
|
|
44116
|
+
function Xv(e) {
|
|
43971
44117
|
const t = e.trim();
|
|
43972
44118
|
return /^(https?:\/\/|mailto:|\/|#)/i.test(t) ? t : void 0;
|
|
43973
44119
|
}
|
|
43974
44120
|
function Ml(e, t) {
|
|
43975
|
-
const n =
|
|
44121
|
+
const n = tH(e), r = [];
|
|
43976
44122
|
let o = 0, s;
|
|
43977
|
-
for (
|
|
44123
|
+
for (Yv.lastIndex = 0; (s = Yv.exec(n)) !== null; ) {
|
|
43978
44124
|
s.index > o && r.push(n.slice(o, s.index));
|
|
43979
44125
|
const i = s[0], a = `${t}-${s.index}`;
|
|
43980
44126
|
if (i.startsWith("`"))
|
|
@@ -43995,10 +44141,10 @@ function Ml(e, t) {
|
|
|
43995
44141
|
else if (i.startsWith("*"))
|
|
43996
44142
|
r.push(/* @__PURE__ */ p("em", { children: i.slice(1, -1) }, a));
|
|
43997
44143
|
else if (i.startsWith(", c = i.slice(2, l), u =
|
|
44144
|
+
const l = i.indexOf("]("), c = i.slice(2, l), u = Xv(i.slice(l + 2, -1));
|
|
43999
44145
|
r.push(u ? /* @__PURE__ */ p(UR, { src: u, alt: c }, a) : /* @__PURE__ */ p("span", { children: c }, a));
|
|
44000
44146
|
} else {
|
|
44001
|
-
const l = i.indexOf("]("), c = i.slice(1, l), u =
|
|
44147
|
+
const l = i.indexOf("]("), c = i.slice(1, l), u = Xv(i.slice(l + 2, -1));
|
|
44002
44148
|
r.push(
|
|
44003
44149
|
u ? /* @__PURE__ */ p(
|
|
44004
44150
|
"a",
|
|
@@ -44021,7 +44167,7 @@ function Ml(e, t) {
|
|
|
44021
44167
|
}
|
|
44022
44168
|
return o < n.length && r.push(n.slice(o)), r;
|
|
44023
44169
|
}
|
|
44024
|
-
function
|
|
44170
|
+
function dN({ code: e, language: t, filename: n, streaming: r, className: o }) {
|
|
44025
44171
|
return /* @__PURE__ */ p(
|
|
44026
44172
|
XR,
|
|
44027
44173
|
{
|
|
@@ -44033,14 +44179,14 @@ function uN({ code: e, language: t, filename: n, streaming: r, className: o }) {
|
|
|
44033
44179
|
}
|
|
44034
44180
|
);
|
|
44035
44181
|
}
|
|
44036
|
-
const
|
|
44182
|
+
const nH = Gc(function({ block: t, index: n }) {
|
|
44037
44183
|
switch (t.kind) {
|
|
44038
44184
|
case "heading": {
|
|
44039
44185
|
const r = `h${Math.min(6, t.level + 2)}`;
|
|
44040
44186
|
return /* @__PURE__ */ p(r, { className: "mt-4 mb-1 font-display text-base font-semibold text-primary first:mt-0", children: Ml(t.text, `h${n}`) });
|
|
44041
44187
|
}
|
|
44042
44188
|
case "code":
|
|
44043
|
-
return /* @__PURE__ */ p(
|
|
44189
|
+
return /* @__PURE__ */ p(dN, { code: t.code, language: t.language, streaming: t.open });
|
|
44044
44190
|
case "list": {
|
|
44045
44191
|
const r = t.ordered ? "ol" : "ul";
|
|
44046
44192
|
return /* @__PURE__ */ p(
|
|
@@ -44063,9 +44209,9 @@ const Q4 = Gc(function({ block: t, index: n }) {
|
|
|
44063
44209
|
default:
|
|
44064
44210
|
return /* @__PURE__ */ p("p", { className: "my-1.5 first:mt-0 last:mb-0", children: Ml(t.text, `p${n}`) });
|
|
44065
44211
|
}
|
|
44066
|
-
}),
|
|
44067
|
-
const r = Ye(() =>
|
|
44068
|
-
return /* @__PURE__ */ p("div", { className: W("text-sm leading-relaxed text-secondary", n), children: r.map((o, s) => /* @__PURE__ */ p(
|
|
44212
|
+
}), rH = Gc(function({ children: t, className: n }) {
|
|
44213
|
+
const r = Ye(() => eH(t), [t]);
|
|
44214
|
+
return /* @__PURE__ */ p("div", { className: W("text-sm leading-relaxed text-secondary", n), children: r.map((o, s) => /* @__PURE__ */ p(nH, { block: o, index: s }, `${o.kind}-${s}`)) });
|
|
44069
44215
|
}), Pl = [
|
|
44070
44216
|
"var(--color-accent)",
|
|
44071
44217
|
"var(--color-info)",
|
|
@@ -44073,7 +44219,7 @@ const Q4 = Gc(function({ block: t, index: n }) {
|
|
|
44073
44219
|
"var(--color-success)",
|
|
44074
44220
|
"var(--color-brand)"
|
|
44075
44221
|
];
|
|
44076
|
-
function
|
|
44222
|
+
function oH({
|
|
44077
44223
|
segments: e,
|
|
44078
44224
|
capacity: t,
|
|
44079
44225
|
limits: n,
|
|
@@ -44193,7 +44339,7 @@ function eH({
|
|
|
44193
44339
|
l
|
|
44194
44340
|
),
|
|
44195
44341
|
children: [
|
|
44196
|
-
/* @__PURE__ */ p(
|
|
44342
|
+
/* @__PURE__ */ p(sH, { fraction: m, tone: f }),
|
|
44197
44343
|
/* @__PURE__ */ P(
|
|
44198
44344
|
"span",
|
|
44199
44345
|
{
|
|
@@ -44222,7 +44368,7 @@ function eH({
|
|
|
44222
44368
|
}
|
|
44223
44369
|
);
|
|
44224
44370
|
}
|
|
44225
|
-
function
|
|
44371
|
+
function sH({ fraction: e, tone: t }) {
|
|
44226
44372
|
const n = t === "danger" ? "danger" : t === "warning" ? "warning" : "accent";
|
|
44227
44373
|
return /* @__PURE__ */ p(
|
|
44228
44374
|
iV,
|
|
@@ -44235,7 +44381,7 @@ function tH({ fraction: e, tone: t }) {
|
|
|
44235
44381
|
}
|
|
44236
44382
|
);
|
|
44237
44383
|
}
|
|
44238
|
-
function
|
|
44384
|
+
function fN({ children: e, active: t = !0, className: n }) {
|
|
44239
44385
|
return /* @__PURE__ */ p(
|
|
44240
44386
|
"span",
|
|
44241
44387
|
{
|
|
@@ -44249,15 +44395,15 @@ function dN({ children: e, active: t = !0, className: n }) {
|
|
|
44249
44395
|
}
|
|
44250
44396
|
);
|
|
44251
44397
|
}
|
|
44252
|
-
const
|
|
44398
|
+
const iH = {
|
|
44253
44399
|
running: { icon: "loader-circle", className: "animate-spin text-accent-text" },
|
|
44254
44400
|
success: { icon: "check", className: "text-success" },
|
|
44255
44401
|
error: { icon: "circle-x", className: "text-danger" }
|
|
44256
44402
|
};
|
|
44257
|
-
function
|
|
44258
|
-
const r =
|
|
44403
|
+
function aH({ part: e, defaultOpen: t = !1, className: n }) {
|
|
44404
|
+
const r = iH[e.status], { added: o, removed: s } = e.stats ?? {}, i = /* @__PURE__ */ P("span", { className: "flex w-full items-center gap-2 text-left", children: [
|
|
44259
44405
|
/* @__PURE__ */ p(me, { name: r.icon, size: "xs", className: W("shrink-0", r.className) }),
|
|
44260
|
-
/* @__PURE__ */ p("span", { className: "min-w-0 flex-1 truncate text-xs text-secondary", children: e.status === "running" ? /* @__PURE__ */ p(
|
|
44406
|
+
/* @__PURE__ */ p("span", { className: "min-w-0 flex-1 truncate text-xs text-secondary", children: e.status === "running" ? /* @__PURE__ */ p(fN, { children: e.summary }) : e.summary }),
|
|
44261
44407
|
o !== void 0 && o > 0 && /* @__PURE__ */ P("span", { className: "shrink-0 font-mono text-2xs text-success", children: [
|
|
44262
44408
|
"+",
|
|
44263
44409
|
o
|
|
@@ -44305,7 +44451,7 @@ function rH({ part: e, defaultOpen: t = !1, className: n }) {
|
|
|
44305
44451
|
}
|
|
44306
44452
|
);
|
|
44307
44453
|
}
|
|
44308
|
-
function
|
|
44454
|
+
function lH({ text: e, label: t, streaming: n }) {
|
|
44309
44455
|
return /* @__PURE__ */ p(
|
|
44310
44456
|
dh,
|
|
44311
44457
|
{
|
|
@@ -44314,7 +44460,7 @@ function oH({ text: e, label: t, streaming: n }) {
|
|
|
44314
44460
|
triggerClassName: "gap-1.5 px-1.5 py-1 text-2xs text-tertiary hover:text-secondary focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
44315
44461
|
trigger: /* @__PURE__ */ P(lt, { children: [
|
|
44316
44462
|
/* @__PURE__ */ p(me, { name: "brain", size: "xs" }),
|
|
44317
|
-
n ? /* @__PURE__ */ p(
|
|
44463
|
+
n ? /* @__PURE__ */ p(fN, { children: t ?? "Thinking…" }) : /* @__PURE__ */ p("span", { children: t ?? "Thought about it" }),
|
|
44318
44464
|
/* @__PURE__ */ p(
|
|
44319
44465
|
me,
|
|
44320
44466
|
{
|
|
@@ -44328,7 +44474,7 @@ function oH({ text: e, label: t, streaming: n }) {
|
|
|
44328
44474
|
}
|
|
44329
44475
|
);
|
|
44330
44476
|
}
|
|
44331
|
-
function
|
|
44477
|
+
function Zv({ reason: e, name: t }) {
|
|
44332
44478
|
return /* @__PURE__ */ P(
|
|
44333
44479
|
"div",
|
|
44334
44480
|
{
|
|
@@ -44347,7 +44493,7 @@ function Xv({ reason: e, name: t }) {
|
|
|
44347
44493
|
}
|
|
44348
44494
|
);
|
|
44349
44495
|
}
|
|
44350
|
-
function
|
|
44496
|
+
function cH({
|
|
44351
44497
|
part: e,
|
|
44352
44498
|
context: t,
|
|
44353
44499
|
renderers: n,
|
|
@@ -44357,13 +44503,13 @@ function sH({
|
|
|
44357
44503
|
}) {
|
|
44358
44504
|
switch (e.type) {
|
|
44359
44505
|
case "text":
|
|
44360
|
-
return n?.text ? /* @__PURE__ */ p(lt, { children: n.text(e, t) }) : /* @__PURE__ */ p(
|
|
44506
|
+
return n?.text ? /* @__PURE__ */ p(lt, { children: n.text(e, t) }) : /* @__PURE__ */ p(rH, { children: e.text });
|
|
44361
44507
|
case "code":
|
|
44362
|
-
return n?.code ? /* @__PURE__ */ p(lt, { children: n.code(e, t) }) : /* @__PURE__ */ p(
|
|
44508
|
+
return n?.code ? /* @__PURE__ */ p(lt, { children: n.code(e, t) }) : /* @__PURE__ */ p(dN, { code: e.code, language: e.language, filename: e.filename });
|
|
44363
44509
|
case "reasoning":
|
|
44364
|
-
return n?.reasoning ? /* @__PURE__ */ p(lt, { children: n.reasoning(e, t) }) : /* @__PURE__ */ p(
|
|
44510
|
+
return n?.reasoning ? /* @__PURE__ */ p(lt, { children: n.reasoning(e, t) }) : /* @__PURE__ */ p(lH, { text: e.text, label: e.label, streaming: e.streaming });
|
|
44365
44511
|
case "tool":
|
|
44366
|
-
return n?.tool ? /* @__PURE__ */ p(lt, { children: n.tool(e, t) }) : /* @__PURE__ */ p(
|
|
44512
|
+
return n?.tool ? /* @__PURE__ */ p(lt, { children: n.tool(e, t) }) : /* @__PURE__ */ p(aH, { part: e });
|
|
44367
44513
|
case "file":
|
|
44368
44514
|
return n?.file ? /* @__PURE__ */ p(lt, { children: n.file(e, t) }) : /* @__PURE__ */ p("div", { className: "my-1.5", children: /* @__PURE__ */ p(
|
|
44369
44515
|
lN,
|
|
@@ -44377,7 +44523,7 @@ function sH({
|
|
|
44377
44523
|
case "component": {
|
|
44378
44524
|
const i = r?.[e.component];
|
|
44379
44525
|
return i ? /* @__PURE__ */ p(lt, { children: i(e.props ?? {}, t) }) : /* @__PURE__ */ p(
|
|
44380
|
-
|
|
44526
|
+
Zv,
|
|
44381
44527
|
{
|
|
44382
44528
|
reason: "No component is registered under the name",
|
|
44383
44529
|
name: e.component
|
|
@@ -44385,10 +44531,10 @@ function sH({
|
|
|
44385
44531
|
);
|
|
44386
44532
|
}
|
|
44387
44533
|
default:
|
|
44388
|
-
return /* @__PURE__ */ p(
|
|
44534
|
+
return /* @__PURE__ */ p(Zv, { reason: "Unknown part type", name: String(e.type) });
|
|
44389
44535
|
}
|
|
44390
44536
|
}
|
|
44391
|
-
function
|
|
44537
|
+
function uH({
|
|
44392
44538
|
message: e,
|
|
44393
44539
|
renderers: t,
|
|
44394
44540
|
components: n,
|
|
@@ -44418,7 +44564,7 @@ function iH({
|
|
|
44418
44564
|
}
|
|
44419
44565
|
),
|
|
44420
44566
|
e.parts.map((S, C) => /* @__PURE__ */ p(
|
|
44421
|
-
|
|
44567
|
+
cH,
|
|
44422
44568
|
{
|
|
44423
44569
|
part: S,
|
|
44424
44570
|
context: x,
|
|
@@ -44483,20 +44629,14 @@ function iH({
|
|
|
44483
44629
|
}
|
|
44484
44630
|
) }),
|
|
44485
44631
|
/* @__PURE__ */ P("div", { className: W("flex min-w-0 flex-col", h ? "max-w-[min(42rem,85%)]" : "flex-1"), children: [
|
|
44486
|
-
!s &&
|
|
44632
|
+
!s && e.author?.name && /* @__PURE__ */ p(
|
|
44487
44633
|
"div",
|
|
44488
44634
|
{
|
|
44489
44635
|
className: W(
|
|
44490
44636
|
"mb-1 flex items-baseline gap-2 text-2xs text-tertiary",
|
|
44491
44637
|
h && "justify-end"
|
|
44492
44638
|
),
|
|
44493
|
-
children:
|
|
44494
|
-
e.author?.name && /* @__PURE__ */ p("span", { className: "font-semibold text-secondary", children: e.author.name }),
|
|
44495
|
-
a && e.createdAt && /* @__PURE__ */ p("time", { dateTime: String(e.createdAt), children: new Date(e.createdAt).toLocaleTimeString([], {
|
|
44496
|
-
hour: "numeric",
|
|
44497
|
-
minute: "2-digit"
|
|
44498
|
-
}) })
|
|
44499
|
-
]
|
|
44639
|
+
children: /* @__PURE__ */ p("span", { className: "font-semibold text-secondary", children: e.author.name })
|
|
44500
44640
|
}
|
|
44501
44641
|
),
|
|
44502
44642
|
/* @__PURE__ */ p(
|
|
@@ -44508,28 +44648,29 @@ function iH({
|
|
|
44508
44648
|
children: y
|
|
44509
44649
|
}
|
|
44510
44650
|
),
|
|
44511
|
-
!e.streaming && (v || o && o.length > 0) && /* @__PURE__ */ P(
|
|
44651
|
+
!e.streaming && (v || o && o.length > 0 || a && e.createdAt) && /* @__PURE__ */ P(
|
|
44512
44652
|
"div",
|
|
44513
44653
|
{
|
|
44654
|
+
"data-testid": "message-toolbar",
|
|
44514
44655
|
className: W(
|
|
44515
|
-
"flex items-center gap-
|
|
44656
|
+
"mt-1.5 flex items-center gap-1.5",
|
|
44516
44657
|
h && "justify-end",
|
|
44517
|
-
|
|
44518
|
-
|
|
44519
|
-
|
|
44520
|
-
|
|
44521
|
-
default; a pointer that can actually hover is what earns both the collapse AND
|
|
44522
|
-
the reveal-on-hover/focus. Without the media gate on the COLLAPSE half too, a
|
|
44523
|
-
hover-capable device reserved this row's height even while invisible — every
|
|
44524
|
-
message got a dead gap under it whether or not anything was hovered. */
|
|
44525
|
-
"mt-1.5 max-h-6 opacity-100 transition-[var(--tx-colors),opacity,max-height,margin] duration-(--dur-fast)",
|
|
44526
|
-
"[@media(hover:hover)]:mt-0 [@media(hover:hover)]:max-h-0 [@media(hover:hover)]:overflow-hidden [@media(hover:hover)]:opacity-0",
|
|
44527
|
-
"[@media(hover:hover)]:group-hover/message:mt-1.5 [@media(hover:hover)]:group-hover/message:max-h-6 [@media(hover:hover)]:group-hover/message:opacity-100",
|
|
44528
|
-
"[@media(hover:hover)]:group-focus-within/message:mt-1.5 [@media(hover:hover)]:group-focus-within/message:max-h-6 [@media(hover:hover)]:group-focus-within/message:opacity-100"
|
|
44658
|
+
"opacity-100 transition-[var(--tx-colors),opacity] duration-(--dur-fast)",
|
|
44659
|
+
"[@media(hover:hover)]:opacity-0",
|
|
44660
|
+
"[@media(hover:hover)]:group-hover/message:opacity-100",
|
|
44661
|
+
"[@media(hover:hover)]:group-focus-within/message:opacity-100"
|
|
44529
44662
|
),
|
|
44530
44663
|
children: [
|
|
44664
|
+
a && e.createdAt && /* @__PURE__ */ p(
|
|
44665
|
+
"time",
|
|
44666
|
+
{
|
|
44667
|
+
dateTime: new Date(e.createdAt).toISOString(),
|
|
44668
|
+
className: "shrink-0 rounded-full bg-surface-raised px-1.5 py-0.5 text-2xs text-tertiary",
|
|
44669
|
+
children: Z4(e.createdAt)
|
|
44670
|
+
}
|
|
44671
|
+
),
|
|
44531
44672
|
v && /* @__PURE__ */ p(
|
|
44532
|
-
|
|
44673
|
+
Qv,
|
|
44533
44674
|
{
|
|
44534
44675
|
action: {
|
|
44535
44676
|
id: "copy",
|
|
@@ -44548,7 +44689,7 @@ function iH({
|
|
|
44548
44689
|
message: e
|
|
44549
44690
|
}
|
|
44550
44691
|
),
|
|
44551
|
-
o?.map((S) => /* @__PURE__ */ p(
|
|
44692
|
+
o?.map((S) => /* @__PURE__ */ p(Qv, { action: S, message: e }, S.id))
|
|
44552
44693
|
]
|
|
44553
44694
|
}
|
|
44554
44695
|
)
|
|
@@ -44557,7 +44698,7 @@ function iH({
|
|
|
44557
44698
|
}
|
|
44558
44699
|
);
|
|
44559
44700
|
}
|
|
44560
|
-
function
|
|
44701
|
+
function Qv({
|
|
44561
44702
|
action: e,
|
|
44562
44703
|
message: t
|
|
44563
44704
|
}) {
|
|
@@ -44578,7 +44719,7 @@ function Zv({
|
|
|
44578
44719
|
}
|
|
44579
44720
|
) });
|
|
44580
44721
|
}
|
|
44581
|
-
function
|
|
44722
|
+
function jj({ children: e, variant: t = "rule", className: n }) {
|
|
44582
44723
|
return t === "note" ? /* @__PURE__ */ p(
|
|
44583
44724
|
"div",
|
|
44584
44725
|
{
|
|
@@ -44594,7 +44735,7 @@ function Hj({ children: e, variant: t = "rule", className: n }) {
|
|
|
44594
44735
|
/* @__PURE__ */ p("span", { className: "h-px flex-1 bg-border-subtle" })
|
|
44595
44736
|
] });
|
|
44596
44737
|
}
|
|
44597
|
-
function
|
|
44738
|
+
function dH({
|
|
44598
44739
|
children: e,
|
|
44599
44740
|
threshold: t = 64,
|
|
44600
44741
|
jumpLabel: n = "Jump to latest",
|
|
@@ -44674,7 +44815,7 @@ function aH({
|
|
|
44674
44815
|
)
|
|
44675
44816
|
] });
|
|
44676
44817
|
}
|
|
44677
|
-
function
|
|
44818
|
+
function fH({
|
|
44678
44819
|
models: e,
|
|
44679
44820
|
value: t,
|
|
44680
44821
|
onValueChange: n,
|
|
@@ -44730,7 +44871,7 @@ function lH({
|
|
|
44730
44871
|
),
|
|
44731
44872
|
children: [
|
|
44732
44873
|
/* @__PURE__ */ p(Yi, { label: "Models", children: f.map((x, y) => /* @__PURE__ */ p(
|
|
44733
|
-
|
|
44874
|
+
Jv,
|
|
44734
44875
|
{
|
|
44735
44876
|
model: x,
|
|
44736
44877
|
selected: x.id === t,
|
|
@@ -44740,7 +44881,7 @@ function lH({
|
|
|
44740
44881
|
x.id
|
|
44741
44882
|
)) }),
|
|
44742
44883
|
h.length > 0 && /* @__PURE__ */ p(lt, { children: m ? /* @__PURE__ */ p(Yi, { label: "More models", children: h.map((x) => /* @__PURE__ */ p(
|
|
44743
|
-
|
|
44884
|
+
Jv,
|
|
44744
44885
|
{
|
|
44745
44886
|
model: x,
|
|
44746
44887
|
selected: x.id === t,
|
|
@@ -44794,7 +44935,7 @@ function lH({
|
|
|
44794
44935
|
}
|
|
44795
44936
|
);
|
|
44796
44937
|
}
|
|
44797
|
-
function
|
|
44938
|
+
function Jv({
|
|
44798
44939
|
model: e,
|
|
44799
44940
|
selected: t,
|
|
44800
44941
|
shortcut: n,
|
|
@@ -44819,15 +44960,15 @@ function Qv({
|
|
|
44819
44960
|
n && /* @__PURE__ */ p("kbd", { className: "font-mono text-2xs text-tertiary", children: n })
|
|
44820
44961
|
] });
|
|
44821
44962
|
}
|
|
44822
|
-
const
|
|
44963
|
+
const pH = [
|
|
44823
44964
|
{ id: "minimal", label: "Minimal", description: "Fastest. Direct answers, little deliberation." },
|
|
44824
44965
|
{ id: "low", label: "Low", description: "Quick reasoning for routine work." },
|
|
44825
44966
|
{ id: "medium", label: "Medium", description: "Balanced — the sensible default." },
|
|
44826
44967
|
{ id: "high", label: "High", description: "Thorough reasoning on hard problems." },
|
|
44827
44968
|
{ id: "max", label: "Max", description: "Everything it has. Slowest by a distance." }
|
|
44828
44969
|
];
|
|
44829
|
-
function
|
|
44830
|
-
levels: e =
|
|
44970
|
+
function mH({
|
|
44971
|
+
levels: e = pH,
|
|
44831
44972
|
value: t,
|
|
44832
44973
|
onValueChange: n,
|
|
44833
44974
|
help: r,
|
|
@@ -44927,7 +45068,7 @@ function uH({
|
|
|
44927
45068
|
}
|
|
44928
45069
|
);
|
|
44929
45070
|
}
|
|
44930
|
-
function
|
|
45071
|
+
function hH({
|
|
44931
45072
|
messages: e,
|
|
44932
45073
|
renderers: t,
|
|
44933
45074
|
components: n,
|
|
@@ -44958,7 +45099,7 @@ function dH({
|
|
|
44958
45099
|
V.href = O.url, V.download = O.name, V.click();
|
|
44959
45100
|
}, T = /* @__PURE__ */ P(lt, { children: [
|
|
44960
45101
|
l && c !== void 0 && u && /* @__PURE__ */ p(
|
|
44961
|
-
|
|
45102
|
+
fH,
|
|
44962
45103
|
{
|
|
44963
45104
|
models: l,
|
|
44964
45105
|
value: c,
|
|
@@ -44966,9 +45107,9 @@ function dH({
|
|
|
44966
45107
|
options: m
|
|
44967
45108
|
}
|
|
44968
45109
|
),
|
|
44969
|
-
f !== void 0 && h && /* @__PURE__ */ p(
|
|
45110
|
+
f !== void 0 && h && /* @__PURE__ */ p(mH, { levels: d, value: f, onValueChange: h }),
|
|
44970
45111
|
g && /* @__PURE__ */ p(
|
|
44971
|
-
|
|
45112
|
+
oH,
|
|
44972
45113
|
{
|
|
44973
45114
|
segments: g.segments,
|
|
44974
45115
|
capacity: g.capacity,
|
|
@@ -44995,7 +45136,7 @@ function dH({
|
|
|
44995
45136
|
] }),
|
|
44996
45137
|
i && /* @__PURE__ */ p("div", { className: "ml-auto flex items-center gap-1", children: i })
|
|
44997
45138
|
] }),
|
|
44998
|
-
/* @__PURE__ */ p(
|
|
45139
|
+
/* @__PURE__ */ p(dH, { className: "px-4 py-4", children: e.length === 0 ? a ?? /* @__PURE__ */ p(
|
|
44999
45140
|
fh,
|
|
45000
45141
|
{
|
|
45001
45142
|
icon: "message-square",
|
|
@@ -45003,7 +45144,7 @@ function dH({
|
|
|
45003
45144
|
description: "Ask a question to start the conversation."
|
|
45004
45145
|
}
|
|
45005
45146
|
) : e.map((O, V) => /* @__PURE__ */ p(
|
|
45006
|
-
|
|
45147
|
+
uH,
|
|
45007
45148
|
{
|
|
45008
45149
|
message: O,
|
|
45009
45150
|
renderers: t,
|
|
@@ -45033,7 +45174,7 @@ function dH({
|
|
|
45033
45174
|
}
|
|
45034
45175
|
);
|
|
45035
45176
|
}
|
|
45036
|
-
function
|
|
45177
|
+
function Wj({
|
|
45037
45178
|
trigger: e,
|
|
45038
45179
|
side: t = "top",
|
|
45039
45180
|
align: n = "end",
|
|
@@ -45058,170 +45199,38 @@ function Uj({
|
|
|
45058
45199
|
children: /* @__PURE__ */ p(me, { name: "message-square", size: "md" })
|
|
45059
45200
|
}
|
|
45060
45201
|
),
|
|
45061
|
-
children: /* @__PURE__ */ p(
|
|
45202
|
+
children: /* @__PURE__ */ p(hH, { ...r, surface: "popover" })
|
|
45062
45203
|
}
|
|
45063
45204
|
);
|
|
45064
45205
|
}
|
|
45065
|
-
const
|
|
45066
|
-
function pH(e) {
|
|
45067
|
-
let t = Jv.get(e);
|
|
45068
|
-
return t || (t = new Intl.DateTimeFormat("en-US", {
|
|
45069
|
-
timeZone: e,
|
|
45070
|
-
year: "numeric",
|
|
45071
|
-
month: "2-digit",
|
|
45072
|
-
day: "2-digit",
|
|
45073
|
-
hour: "2-digit",
|
|
45074
|
-
minute: "2-digit",
|
|
45075
|
-
second: "2-digit",
|
|
45076
|
-
/* `h23` EXPLICITLY, not `hour12: false`. Several ICU versions render
|
|
45077
|
-
midnight as hour "24" under `hour12: false`, which parses as a valid
|
|
45078
|
-
number and silently lands the reading on the wrong day. */
|
|
45079
|
-
hourCycle: "h23"
|
|
45080
|
-
}), Jv.set(e, t)), t;
|
|
45081
|
-
}
|
|
45082
|
-
function Vn(e, t) {
|
|
45083
|
-
const n = pH(e).formatToParts(new Date(t));
|
|
45084
|
-
let r = 0, o = 1, s = 1, i = 0, a = 0, l = 0;
|
|
45085
|
-
for (const u of n)
|
|
45086
|
-
switch (u.type) {
|
|
45087
|
-
case "year":
|
|
45088
|
-
r = Number(u.value);
|
|
45089
|
-
break;
|
|
45090
|
-
case "month":
|
|
45091
|
-
o = Number(u.value);
|
|
45092
|
-
break;
|
|
45093
|
-
case "day":
|
|
45094
|
-
s = Number(u.value);
|
|
45095
|
-
break;
|
|
45096
|
-
case "hour":
|
|
45097
|
-
i = Number(u.value);
|
|
45098
|
-
break;
|
|
45099
|
-
case "minute":
|
|
45100
|
-
a = Number(u.value);
|
|
45101
|
-
break;
|
|
45102
|
-
case "second":
|
|
45103
|
-
l = Number(u.value);
|
|
45104
|
-
break;
|
|
45105
|
-
}
|
|
45106
|
-
const c = (t % 1e3 + 1e3) % 1e3;
|
|
45107
|
-
return { year: r, month: o, day: s, hour: i, minute: a, second: l, millisecond: c };
|
|
45108
|
-
}
|
|
45109
|
-
function db(e) {
|
|
45110
|
-
const t = /* @__PURE__ */ new Date(0);
|
|
45111
|
-
return t.setUTCFullYear(e.year, e.month - 1, e.day), t.setUTCHours(e.hour, e.minute, e.second, e.millisecond), t.getTime();
|
|
45112
|
-
}
|
|
45113
|
-
function Oc(e, t) {
|
|
45114
|
-
return db(Vn(e, t)) - t;
|
|
45115
|
-
}
|
|
45116
|
-
function mH(e, t) {
|
|
45117
|
-
return e.year === t.year && e.month === t.month && e.day === t.day && e.hour === t.hour && e.minute === t.minute && e.second === t.second && e.millisecond === t.millisecond;
|
|
45118
|
-
}
|
|
45119
|
-
function Tp(e, t) {
|
|
45120
|
-
const n = db(t), r = Oc(e, n - 24 * Ws), o = Oc(e, n + 24 * Ws), s = [];
|
|
45121
|
-
for (const i of r === o ? [r] : [r, o]) {
|
|
45122
|
-
const a = n - i;
|
|
45123
|
-
mH(Vn(e, a), t) && s.push(a);
|
|
45124
|
-
}
|
|
45125
|
-
return s.sort((i, a) => i - a), s.filter((i, a) => a === 0 || i !== s[a - 1]);
|
|
45126
|
-
}
|
|
45127
|
-
function fb(e, t, n = "compatible") {
|
|
45128
|
-
const r = Tp(e, t);
|
|
45129
|
-
if (r.length === 1) return r[0];
|
|
45130
|
-
if (r.length > 1) {
|
|
45131
|
-
if (n === "reject") throw new Oy(t, e, "overlap");
|
|
45132
|
-
return n === "later" ? r[r.length - 1] : r[0];
|
|
45133
|
-
}
|
|
45134
|
-
if (n === "reject") throw new Oy(t, e, "gap");
|
|
45135
|
-
const o = db(t), s = Oc(e, o - 24 * Ws), i = Oc(e, o + 24 * Ws), a = i - s, l = o - s, c = o - i;
|
|
45136
|
-
return n === "earlier" ? Math.min(l, c) : a > 0 ? Math.max(l, c) : Math.min(l, c);
|
|
45137
|
-
}
|
|
45138
|
-
function Gj(e, t) {
|
|
45139
|
-
const n = Vn(e, t);
|
|
45140
|
-
return { year: n.year, month: n.month, day: n.day };
|
|
45141
|
-
}
|
|
45142
|
-
function sn(e, t) {
|
|
45143
|
-
const n = { ...t, hour: 0, minute: 0, second: 0, millisecond: 0 }, r = Tp(e, n);
|
|
45144
|
-
if (r.length > 0) return r[0];
|
|
45145
|
-
for (let o = 1; o <= 180; o++) {
|
|
45146
|
-
const s = Tp(e, {
|
|
45147
|
-
...t,
|
|
45148
|
-
hour: Math.floor(o / 60),
|
|
45149
|
-
minute: o % 60,
|
|
45150
|
-
second: 0,
|
|
45151
|
-
millisecond: 0
|
|
45152
|
-
});
|
|
45153
|
-
if (s.length > 0) return s[0];
|
|
45154
|
-
}
|
|
45155
|
-
throw new Error(
|
|
45156
|
-
`startOfDay: no instant exists in the first three hours of ${t.year}-${t.month}-${t.day} in ${e}`
|
|
45157
|
-
);
|
|
45158
|
-
}
|
|
45159
|
-
function Ks(e) {
|
|
45160
|
-
const t = /* @__PURE__ */ new Date(0);
|
|
45161
|
-
return t.setUTCFullYear(e.year, e.month - 1, e.day + 1), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
|
|
45162
|
-
}
|
|
45163
|
-
function pb(e, t) {
|
|
45164
|
-
return sn(e, Ks(t)) - sn(e, t);
|
|
45165
|
-
}
|
|
45166
|
-
function jj(e, t) {
|
|
45167
|
-
return pb(e, t) / Ws;
|
|
45168
|
-
}
|
|
45169
|
-
function sa(e, t, n) {
|
|
45170
|
-
const r = sn(e, t);
|
|
45171
|
-
return (n - r) / pb(e, t);
|
|
45172
|
-
}
|
|
45173
|
-
function fN(e, t, n) {
|
|
45174
|
-
return sn(e, t) + n * pb(e, t);
|
|
45175
|
-
}
|
|
45176
|
-
function mo(e, t, n, r = "compatible") {
|
|
45177
|
-
const { days: o = 0, hours: s = 0, minutes: i = 0 } = n;
|
|
45178
|
-
let a = t;
|
|
45179
|
-
if (o !== 0) {
|
|
45180
|
-
const l = Vn(e, t), c = /* @__PURE__ */ new Date(0);
|
|
45181
|
-
c.setUTCFullYear(l.year, l.month - 1, l.day + o), a = fb(
|
|
45182
|
-
e,
|
|
45183
|
-
{
|
|
45184
|
-
year: c.getUTCFullYear(),
|
|
45185
|
-
month: c.getUTCMonth() + 1,
|
|
45186
|
-
day: c.getUTCDate(),
|
|
45187
|
-
hour: l.hour,
|
|
45188
|
-
minute: l.minute,
|
|
45189
|
-
second: l.second,
|
|
45190
|
-
millisecond: l.millisecond
|
|
45191
|
-
},
|
|
45192
|
-
r
|
|
45193
|
-
);
|
|
45194
|
-
}
|
|
45195
|
-
return a + s * Ws + i * fH;
|
|
45196
|
-
}
|
|
45197
|
-
const hH = "—";
|
|
45206
|
+
const gH = "—";
|
|
45198
45207
|
function Rf(e, t = 2) {
|
|
45199
45208
|
return String(e).padStart(t, "0");
|
|
45200
45209
|
}
|
|
45201
45210
|
function pN() {
|
|
45202
45211
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
45203
45212
|
}
|
|
45204
|
-
function
|
|
45213
|
+
function bH(e) {
|
|
45205
45214
|
if (typeof e == "number") return Number.isFinite(e) ? e : null;
|
|
45206
45215
|
const t = e.replace(/(\.\d{3})\d+/, "$1"), n = Date.parse(t);
|
|
45207
45216
|
return Number.isNaN(n) ? null : n;
|
|
45208
45217
|
}
|
|
45209
|
-
function
|
|
45210
|
-
if (e == null || e === "") return
|
|
45211
|
-
const n =
|
|
45218
|
+
function Kj(e, t = {}) {
|
|
45219
|
+
if (e == null || e === "") return gH;
|
|
45220
|
+
const n = bH(e);
|
|
45212
45221
|
if (n === null) return String(e);
|
|
45213
45222
|
const r = t.zone ?? pN(), o = Vn(r, n), s = (o.hour + 11) % 12 + 1, i = o.hour < 12 ? "AM" : "PM";
|
|
45214
45223
|
return `${Rf(o.month)}/${Rf(o.day)}/${o.year}, ${s}:${Rf(o.minute)} ${i}`;
|
|
45215
45224
|
}
|
|
45216
|
-
const
|
|
45217
|
-
function
|
|
45225
|
+
const xH = /^(\d{1,2})\/(\d{1,2})\/(\d{4})(?:,?\s+(\d{1,2}):(\d{2})(?::(\d{2}))?\s*([AaPp][Mm]))?$/, yH = /^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?\s*(Z|[+-]\d{2}:?\d{2})$/;
|
|
45226
|
+
function qj(e, t = {}) {
|
|
45218
45227
|
const n = e.trim();
|
|
45219
45228
|
if (n === "") return null;
|
|
45220
|
-
if (
|
|
45229
|
+
if (yH.test(n)) {
|
|
45221
45230
|
const d = n.replace(/(\.\d{3})\d+/, "$1"), f = Date.parse(d);
|
|
45222
45231
|
return Number.isNaN(f) ? null : new Date(f).toISOString();
|
|
45223
45232
|
}
|
|
45224
|
-
const r =
|
|
45233
|
+
const r = xH.exec(n);
|
|
45225
45234
|
if (!r) return null;
|
|
45226
45235
|
const o = Number(r[1]), s = Number(r[2]), i = Number(r[3]);
|
|
45227
45236
|
if (o < 1 || o > 12 || s < 1 || s > Gs(i, o)) return null;
|
|
@@ -45236,13 +45245,13 @@ function Kj(e, t = {}) {
|
|
|
45236
45245
|
const u = { year: i, month: o, day: s, hour: a, minute: l, second: c, millisecond: 0 }, m = t.zone ?? pN();
|
|
45237
45246
|
return new Date(fb(m, u)).toISOString();
|
|
45238
45247
|
}
|
|
45239
|
-
const
|
|
45240
|
-
function
|
|
45241
|
-
if (e == null || !Number.isFinite(e)) return
|
|
45248
|
+
const vH = "—";
|
|
45249
|
+
function Yj(e, t = {}) {
|
|
45250
|
+
if (e == null || !Number.isFinite(e)) return vH;
|
|
45242
45251
|
const { decimals: n } = t, r = n === void 0 ? { maximumFractionDigits: 6 } : { minimumFractionDigits: n, maximumFractionDigits: n };
|
|
45243
45252
|
return new Intl.NumberFormat("en-US", r).format(e);
|
|
45244
45253
|
}
|
|
45245
|
-
function
|
|
45254
|
+
function Xj(e) {
|
|
45246
45255
|
const t = e.trim();
|
|
45247
45256
|
if (t === "") return null;
|
|
45248
45257
|
const n = t.replace(/,/g, "");
|
|
@@ -45250,16 +45259,16 @@ function Yj(e) {
|
|
|
45250
45259
|
const r = Number(n);
|
|
45251
45260
|
return Number.isFinite(r) ? r : null;
|
|
45252
45261
|
}
|
|
45253
|
-
function
|
|
45262
|
+
function Zj(e, t = {}) {
|
|
45254
45263
|
const { trueLabel: n = "Yes", falseLabel: r = "No", unknownLabel: o = "Unknown" } = t;
|
|
45255
45264
|
return e === !0 ? n : e === !1 ? r : o;
|
|
45256
45265
|
}
|
|
45257
|
-
const
|
|
45258
|
-
function
|
|
45266
|
+
const wH = /* @__PURE__ */ new Set(["yes", "y", "true", "t", "1"]), SH = /* @__PURE__ */ new Set(["no", "n", "false", "f", "0"]);
|
|
45267
|
+
function Qj(e) {
|
|
45259
45268
|
const t = e.trim().toLowerCase();
|
|
45260
|
-
return
|
|
45269
|
+
return wH.has(t) ? !0 : SH.has(t) ? !1 : null;
|
|
45261
45270
|
}
|
|
45262
|
-
function
|
|
45271
|
+
function Jj(e, t = 250) {
|
|
45263
45272
|
const [n, r] = Ce(e);
|
|
45264
45273
|
return qe(() => {
|
|
45265
45274
|
if (t <= 0) {
|
|
@@ -45270,14 +45279,14 @@ function Qj(e, t = 250) {
|
|
|
45270
45279
|
return () => window.clearTimeout(o);
|
|
45271
45280
|
}, [e, t]), n;
|
|
45272
45281
|
}
|
|
45273
|
-
function
|
|
45282
|
+
function CH(e, t) {
|
|
45274
45283
|
const n = (e.priority ?? 0) - (t.priority ?? 0);
|
|
45275
45284
|
if (n !== 0) return n;
|
|
45276
45285
|
const r = t.endColumn - t.startColumn - (e.endColumn - e.startColumn);
|
|
45277
45286
|
return r !== 0 ? r : e.startColumn !== t.startColumn ? e.startColumn - t.startColumn : e.key < t.key ? -1 : e.key > t.key ? 1 : 0;
|
|
45278
45287
|
}
|
|
45279
45288
|
function mN(e, t) {
|
|
45280
|
-
const { columns: n, maxRows: r } = t, o = [...e].sort(
|
|
45289
|
+
const { columns: n, maxRows: r } = t, o = [...e].sort(CH), s = [], i = [];
|
|
45281
45290
|
for (const d of o) {
|
|
45282
45291
|
const f = Math.max(0, d.startColumn), h = Math.min(n - 1, d.endColumn);
|
|
45283
45292
|
if (h < f) continue;
|
|
@@ -45310,7 +45319,7 @@ function mN(e, t) {
|
|
|
45310
45319
|
}
|
|
45311
45320
|
return { placed: c, hidden: u, overflow: m, rows: l };
|
|
45312
45321
|
}
|
|
45313
|
-
function
|
|
45322
|
+
function EH(e, t, n) {
|
|
45314
45323
|
const r = [];
|
|
45315
45324
|
for (let o = 0; o < t.length; o++) {
|
|
45316
45325
|
const s = t[o], i = sa(e, s, n.start), a = sa(e, s, n.endExclusive);
|
|
@@ -45374,12 +45383,12 @@ function ew(e, t, n = 60) {
|
|
|
45374
45383
|
}
|
|
45375
45384
|
return i;
|
|
45376
45385
|
}
|
|
45377
|
-
function
|
|
45386
|
+
function e9(e, t, n, r) {
|
|
45378
45387
|
if (r <= 0) throw new Error(`snapMinutes must be positive, got ${r}`);
|
|
45379
|
-
const o = sn(e, t), s =
|
|
45388
|
+
const o = sn(e, t), s = uN(e, t, n), i = r * 6e4;
|
|
45380
45389
|
return o + Math.round((s - o) / i) * i;
|
|
45381
45390
|
}
|
|
45382
|
-
const
|
|
45391
|
+
const t9 = Ln, tw = /* @__PURE__ */ new Map();
|
|
45383
45392
|
function Do(e, t) {
|
|
45384
45393
|
const n = `${e ?? ""}|${JSON.stringify(t)}`;
|
|
45385
45394
|
let r = tw.get(n);
|
|
@@ -45396,7 +45405,7 @@ function Pp(e, t, n) {
|
|
|
45396
45405
|
function gN(e, t) {
|
|
45397
45406
|
return Do(t, { ...ui, day: "numeric" }).format(jr(e));
|
|
45398
45407
|
}
|
|
45399
|
-
function
|
|
45408
|
+
function n9(e, t) {
|
|
45400
45409
|
return Do(t, { ...ui, year: "numeric", month: "long" }).format(jr(e));
|
|
45401
45410
|
}
|
|
45402
45411
|
function Ac(e, t) {
|
|
@@ -45412,26 +45421,26 @@ function Zr(e, t, n, r = !0) {
|
|
|
45412
45421
|
const o = Vn(t, e), s = !r || o.minute === 0 ? { timeZone: t, hour: "numeric" } : { timeZone: t, hour: "numeric", minute: "2-digit" };
|
|
45413
45422
|
return Do(n, s).format(new Date(e));
|
|
45414
45423
|
}
|
|
45415
|
-
function
|
|
45424
|
+
function RH(e, t, n) {
|
|
45416
45425
|
return Do(n, { timeZone: e, timeZoneName: "shortOffset" }).formatToParts(
|
|
45417
45426
|
new Date(t)
|
|
45418
45427
|
).find((o) => o.type === "timeZoneName")?.value ?? e;
|
|
45419
45428
|
}
|
|
45420
|
-
function
|
|
45421
|
-
return e.allDay ?
|
|
45429
|
+
function kH(e, t, n) {
|
|
45430
|
+
return e.allDay ? NH(e, n) : IH(e, t, n);
|
|
45422
45431
|
}
|
|
45423
|
-
function
|
|
45424
|
-
const n =
|
|
45432
|
+
function NH(e, t) {
|
|
45433
|
+
const n = TH(e.endExclusive), r = n.year === e.start.year && n.month === e.start.month && n.day === e.start.day, o = Do(t, { ...ui, day: "numeric", month: "long" });
|
|
45425
45434
|
return r ? `All day, ${o.format(jr(e.start))}` : `All day, ${o.format(jr(e.start))} to ${o.format(jr(n))}`;
|
|
45426
45435
|
}
|
|
45427
|
-
function
|
|
45436
|
+
function IH(e, t, n) {
|
|
45428
45437
|
const r = Zr(e.start, t, n), o = Zr(e.endExclusive, t, n), s = Vn(t, e.start), i = Vn(t, e.endExclusive);
|
|
45429
45438
|
if (s.year === i.year && s.month === i.month && s.day === i.day)
|
|
45430
45439
|
return `${r} to ${o}`;
|
|
45431
45440
|
const a = Do(n, { ...ui, day: "numeric", month: "long" }), l = { year: i.year, month: i.month, day: i.day };
|
|
45432
45441
|
return `${r} to ${o} on ${a.format(jr(l))}`;
|
|
45433
45442
|
}
|
|
45434
|
-
function
|
|
45443
|
+
function TH(e) {
|
|
45435
45444
|
const t = jr(e);
|
|
45436
45445
|
return t.setUTCDate(t.getUTCDate() - 1), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
|
|
45437
45446
|
}
|
|
@@ -45440,7 +45449,7 @@ function nw(e, t, n) {
|
|
|
45440
45449
|
return t === 0 ? `${r}, no events` : t === 1 ? `${r}, 1 event` : `${r}, ${t} events`;
|
|
45441
45450
|
}
|
|
45442
45451
|
function Dc(e, t, n, r) {
|
|
45443
|
-
const o = [e.title,
|
|
45452
|
+
const o = [e.title, kH(e, t, r)];
|
|
45444
45453
|
return e.calendarLabel ? o.push(e.calendarLabel) : n && o.push(n), o.join(", ");
|
|
45445
45454
|
}
|
|
45446
45455
|
function Lo(e, t) {
|
|
@@ -45452,7 +45461,7 @@ function Lo(e, t) {
|
|
|
45452
45461
|
edge: `var(--event-${e}-edge)`
|
|
45453
45462
|
};
|
|
45454
45463
|
}
|
|
45455
|
-
const
|
|
45464
|
+
const MH = [
|
|
45456
45465
|
Lo("iris", "Violet"),
|
|
45457
45466
|
Lo("aqua", "Teal"),
|
|
45458
45467
|
Lo("mint", "Green"),
|
|
@@ -45460,14 +45469,14 @@ const TH = [
|
|
|
45460
45469
|
Lo("rose", "Red"),
|
|
45461
45470
|
Lo("azure", "Blue"),
|
|
45462
45471
|
Lo("slate", "Grey")
|
|
45463
|
-
], rw = "iris", ql = new Map(
|
|
45472
|
+
], rw = "iris", ql = new Map(MH.map((e) => [e.key, e]));
|
|
45464
45473
|
function _c(e) {
|
|
45465
45474
|
return e === void 0 ? ql.get(rw) : ql.get(e) ?? ql.get(rw);
|
|
45466
45475
|
}
|
|
45467
|
-
function
|
|
45476
|
+
function r9(e) {
|
|
45468
45477
|
return ql.has(e);
|
|
45469
45478
|
}
|
|
45470
|
-
function
|
|
45479
|
+
function PH(e, t, n, r) {
|
|
45471
45480
|
const o = r.ctrl || r.meta;
|
|
45472
45481
|
switch (e) {
|
|
45473
45482
|
case "ArrowLeft":
|
|
@@ -45481,7 +45490,7 @@ function MH(e, t, n, r) {
|
|
|
45481
45490
|
case "Home":
|
|
45482
45491
|
return o ? { year: t.year, month: t.month, day: 1 } : Zi(t, n);
|
|
45483
45492
|
case "End":
|
|
45484
|
-
return o ?
|
|
45493
|
+
return o ? OH(t) : $r(Zi(t, n), 6);
|
|
45485
45494
|
case "PageUp":
|
|
45486
45495
|
return Dy(t, r.shift ? -12 : -1);
|
|
45487
45496
|
case "PageDown":
|
|
@@ -45490,11 +45499,11 @@ function MH(e, t, n, r) {
|
|
|
45490
45499
|
return null;
|
|
45491
45500
|
}
|
|
45492
45501
|
}
|
|
45493
|
-
function
|
|
45502
|
+
function OH(e) {
|
|
45494
45503
|
const t = /* @__PURE__ */ new Date(0);
|
|
45495
45504
|
return t.setUTCFullYear(e.year, e.month, 0), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
|
|
45496
45505
|
}
|
|
45497
|
-
function
|
|
45506
|
+
function AH(e, t) {
|
|
45498
45507
|
const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Ce(e), [a, l] = Ce(!1), c = Re(s), u = De(
|
|
45499
45508
|
(d) => {
|
|
45500
45509
|
qo(c.current, d) || (c.current = d, i(d), (d.year !== n.year || d.month !== n.month) && o?.(d));
|
|
@@ -45510,7 +45519,7 @@ function OH(e, t) {
|
|
|
45510
45519
|
d.preventDefault(), l(!0);
|
|
45511
45520
|
return;
|
|
45512
45521
|
}
|
|
45513
|
-
const f =
|
|
45522
|
+
const f = PH(d.key, s, r, {
|
|
45514
45523
|
ctrl: d.ctrlKey,
|
|
45515
45524
|
shift: d.shiftKey,
|
|
45516
45525
|
meta: d.metaKey
|
|
@@ -45528,14 +45537,14 @@ function OH(e, t) {
|
|
|
45528
45537
|
onKeyDown: m
|
|
45529
45538
|
};
|
|
45530
45539
|
}
|
|
45531
|
-
function
|
|
45540
|
+
function DH(e, t, n, r) {
|
|
45532
45541
|
const o = (i) => i.year === t.year && i.month === t.month;
|
|
45533
45542
|
return r && e.some((i) => qo(i, r)) ? r : n && o(n) ? n : e.find(o) ?? e[0];
|
|
45534
45543
|
}
|
|
45535
|
-
function
|
|
45544
|
+
function _H(e, t) {
|
|
45536
45545
|
return e.year === t.year && e.month === t.month;
|
|
45537
45546
|
}
|
|
45538
|
-
const
|
|
45547
|
+
const VH = ft({
|
|
45539
45548
|
slots: {
|
|
45540
45549
|
root: "flex min-w-0 flex-col gap-2",
|
|
45541
45550
|
table: "w-full table-fixed border-collapse",
|
|
@@ -45589,7 +45598,7 @@ const _H = ft({
|
|
|
45589
45598
|
popoverList: "flex max-h-72 min-w-56 flex-col gap-1 overflow-y-auto"
|
|
45590
45599
|
}
|
|
45591
45600
|
}), kf = 26;
|
|
45592
|
-
function
|
|
45601
|
+
function o9({
|
|
45593
45602
|
month: e,
|
|
45594
45603
|
zone: t,
|
|
45595
45604
|
events: n,
|
|
@@ -45605,15 +45614,15 @@ function r9({
|
|
|
45605
45614
|
className: d,
|
|
45606
45615
|
label: f = "Month"
|
|
45607
45616
|
}) {
|
|
45608
|
-
const h =
|
|
45617
|
+
const h = VH(), g = Dt(), x = Ye(
|
|
45609
45618
|
() => bV(e, r),
|
|
45610
45619
|
[e.year, e.month, e.day, r]
|
|
45611
45620
|
), y = Ye(() => {
|
|
45612
45621
|
const R = [];
|
|
45613
45622
|
for (let k = 0; k < x.length; k += 7) R.push(x.slice(k, k + 7));
|
|
45614
45623
|
return R;
|
|
45615
|
-
}, [x]), w =
|
|
45616
|
-
|
|
45624
|
+
}, [x]), w = AH(
|
|
45625
|
+
DH(x, e, o, s),
|
|
45617
45626
|
{ month: e, weekStartsOn: r, onMonthChange: l }
|
|
45618
45627
|
), v = Re(/* @__PURE__ */ new Map()), S = Re(!1);
|
|
45619
45628
|
qe(() => {
|
|
@@ -45679,7 +45688,7 @@ function r9({
|
|
|
45679
45688
|
Ln(R)
|
|
45680
45689
|
)) }) }),
|
|
45681
45690
|
/* @__PURE__ */ p("tbody", { children: C.map((R) => /* @__PURE__ */ p("tr", { children: R.days.map((k, I) => {
|
|
45682
|
-
const T = Ln(k), N =
|
|
45691
|
+
const T = Ln(k), N = _H(k, e), O = o ? qo(k, o) : !1, V = s ? qo(k, s) : !1, D = qo(k, w.focusedDay), _ = R.placed.filter((A) => A.startColumn === I), U = R.hiddenByColumn[I], B = R.placed.filter((A) => A.startColumn <= I && A.endColumn >= I).length + U.length;
|
|
45683
45692
|
return /* @__PURE__ */ p(
|
|
45684
45693
|
"td",
|
|
45685
45694
|
{
|
|
@@ -45824,15 +45833,15 @@ const Ol = {
|
|
|
45824
45833
|
maxLanes: Number.POSITIVE_INFINITY,
|
|
45825
45834
|
minWidth: 0
|
|
45826
45835
|
};
|
|
45827
|
-
function
|
|
45836
|
+
function FH(e, t) {
|
|
45828
45837
|
return e.start < t.end && t.start < e.end;
|
|
45829
45838
|
}
|
|
45830
|
-
function
|
|
45839
|
+
function $H(e, t) {
|
|
45831
45840
|
if (e.start !== t.start) return e.start - t.start;
|
|
45832
45841
|
const n = t.end - t.start - (e.end - e.start);
|
|
45833
45842
|
return n !== 0 ? n : e.key < t.key ? -1 : e.key > t.key ? 1 : 0;
|
|
45834
45843
|
}
|
|
45835
|
-
function
|
|
45844
|
+
function LH(e, t = {}) {
|
|
45836
45845
|
const n = {
|
|
45837
45846
|
mode: t.mode ?? Ol.mode,
|
|
45838
45847
|
minSpan: t.minSpan ?? Ol.minSpan,
|
|
@@ -45844,7 +45853,7 @@ function $H(e, t = {}) {
|
|
|
45844
45853
|
/* Inflated HERE, before anything else looks at it, so collision and
|
|
45845
45854
|
geometry can never be computed from different spans. */
|
|
45846
45855
|
end: Math.max(l.end, l.start + n.minSpan)
|
|
45847
|
-
})).sort(
|
|
45856
|
+
})).sort($H), o = [];
|
|
45848
45857
|
let s = [], i = Number.NEGATIVE_INFINITY;
|
|
45849
45858
|
const a = () => {
|
|
45850
45859
|
if (s.length === 0) return;
|
|
@@ -45875,13 +45884,13 @@ function $H(e, t = {}) {
|
|
|
45875
45884
|
for (const l of r) {
|
|
45876
45885
|
l.start >= i && a();
|
|
45877
45886
|
let c = 0;
|
|
45878
|
-
for (; s.some((m) => m.column === c &&
|
|
45887
|
+
for (; s.some((m) => m.column === c && FH(m, l)); )
|
|
45879
45888
|
c++;
|
|
45880
45889
|
s.push({ ...l, column: c }), i = Math.max(i, l.end);
|
|
45881
45890
|
}
|
|
45882
45891
|
return a(), o;
|
|
45883
45892
|
}
|
|
45884
|
-
function
|
|
45893
|
+
function zH(e = {}) {
|
|
45885
45894
|
const { resolutionMs: t = 6e4, enabled: n = !0, fixed: r } = e, [o, s] = Ce(() => r ?? Date.now());
|
|
45886
45895
|
return qe(() => {
|
|
45887
45896
|
if (r !== void 0) {
|
|
@@ -45914,10 +45923,10 @@ function Ri(e, t) {
|
|
|
45914
45923
|
return {
|
|
45915
45924
|
dayIndex: s,
|
|
45916
45925
|
day: i.day,
|
|
45917
|
-
instant:
|
|
45926
|
+
instant: BH(n, i.day, uN(n, i.day, l), o)
|
|
45918
45927
|
};
|
|
45919
45928
|
}
|
|
45920
|
-
function
|
|
45929
|
+
function BH(e, t, n, r) {
|
|
45921
45930
|
if (r <= 0) throw new Error(`snapMinutes must be positive, got ${r}`);
|
|
45922
45931
|
const o = sn(e, t), s = r * 6e4;
|
|
45923
45932
|
return o + Math.round((n - o) / s) * s;
|
|
@@ -45964,7 +45973,7 @@ function xN(e, t, n) {
|
|
|
45964
45973
|
function ki(e, t, n) {
|
|
45965
45974
|
return sa(e, t, n);
|
|
45966
45975
|
}
|
|
45967
|
-
function
|
|
45976
|
+
function HH(e) {
|
|
45968
45977
|
const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Ce(null), [d, f] = Ce(null), [h, g] = Ce(!1), x = Re({ zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l });
|
|
45969
45978
|
x.current = { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l };
|
|
45970
45979
|
const y = Re({ columns: [], origin: null, anchor: null, last: null, spoken: null, point: null }), w = De(() => {
|
|
@@ -46105,7 +46114,7 @@ function BH(e) {
|
|
|
46105
46114
|
);
|
|
46106
46115
|
return { draft: u, creating: d, invalid: h, bindEvent: E, bindCanvas: I, preview: O, getPoint: T, onScrolled: N };
|
|
46107
46116
|
}
|
|
46108
|
-
const
|
|
46117
|
+
const UH = ft({
|
|
46109
46118
|
slots: {
|
|
46110
46119
|
root: "flex min-w-64 flex-col gap-3",
|
|
46111
46120
|
title: "text-sm font-semibold text-primary",
|
|
@@ -46115,7 +46124,7 @@ const HH = ft({
|
|
|
46115
46124
|
footer: "flex justify-end gap-2 border-t border-border-subtle pt-3"
|
|
46116
46125
|
}
|
|
46117
46126
|
});
|
|
46118
|
-
function
|
|
46127
|
+
function GH(e, t, n, r) {
|
|
46119
46128
|
const o = sn(e, t), s = sn(e, { ...t, day: t.day + 1 }) - o, i = n * 6e4, a = [];
|
|
46120
46129
|
for (let l = 0; l < s; l += i) {
|
|
46121
46130
|
const c = o + l;
|
|
@@ -46123,8 +46132,8 @@ function UH(e, t, n, r) {
|
|
|
46123
46132
|
}
|
|
46124
46133
|
return a;
|
|
46125
46134
|
}
|
|
46126
|
-
const
|
|
46127
|
-
function
|
|
46135
|
+
const jH = [15, 30, 45, 60, 90, 120, 180, 240, 300, 360, 480, 600, 720];
|
|
46136
|
+
function WH({
|
|
46128
46137
|
event: e,
|
|
46129
46138
|
zone: t,
|
|
46130
46139
|
days: n,
|
|
@@ -46135,10 +46144,10 @@ function jH({
|
|
|
46135
46144
|
locale: a,
|
|
46136
46145
|
className: l
|
|
46137
46146
|
}) {
|
|
46138
|
-
const c =
|
|
46147
|
+
const c = UH(), u = (() => {
|
|
46139
46148
|
const R = Vn(t, e.start);
|
|
46140
46149
|
return { year: R.year, month: R.month, day: R.day };
|
|
46141
|
-
})(), [m, d] = Ce(Ln(u)), f = n.find((R) => Ln(R) === m) ?? u, h =
|
|
46150
|
+
})(), [m, d] = Ce(Ln(u)), f = n.find((R) => Ln(R) === m) ?? u, h = GH(t, f, r, a), g = e.start - sn(t, u), [x, y] = Ce(String(g)), w = Math.round((e.endExclusive - e.start) / 6e4), [v, S] = Ce(String(w)), C = Array.from(/* @__PURE__ */ new Set([...jH, w])).filter((R) => R > 0 && R <= o).sort((R, k) => R - k), E = () => {
|
|
46142
46151
|
const R = h.find((N) => N.value === x) ?? h[0], k = Vn(t, R.instant), I = fb(t, {
|
|
46143
46152
|
...f,
|
|
46144
46153
|
hour: k.hour,
|
|
@@ -46192,7 +46201,7 @@ function jH({
|
|
|
46192
46201
|
] })
|
|
46193
46202
|
] });
|
|
46194
46203
|
}
|
|
46195
|
-
function
|
|
46204
|
+
function KH(e) {
|
|
46196
46205
|
const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Ce(null), [c, u] = Ce({}), m = Re(null), d = De(
|
|
46197
46206
|
(x, y) => {
|
|
46198
46207
|
const w = r[Math.max(0, Math.min(r.length - 1, y))];
|
|
@@ -46271,7 +46280,7 @@ function WH(e) {
|
|
|
46271
46280
|
}
|
|
46272
46281
|
return { grabbedId: a, delta: c, onKeyDown: h, preview: f };
|
|
46273
46282
|
}
|
|
46274
|
-
const
|
|
46283
|
+
const qH = ft({
|
|
46275
46284
|
slots: {
|
|
46276
46285
|
/* `relative` is what makes `overflow-hidden` true for the grid's
|
|
46277
46286
|
out-of-flow contents — the live-region announcements are `sr-only`,
|
|
@@ -46328,14 +46337,14 @@ const KH = ft({
|
|
|
46328
46337
|
nowDot: "absolute -top-1 -left-1 size-2 rounded-full bg-danger"
|
|
46329
46338
|
}
|
|
46330
46339
|
}), Dl = 56, If = 26, sw = 24;
|
|
46331
|
-
function
|
|
46340
|
+
function YH({
|
|
46332
46341
|
enabled: e,
|
|
46333
46342
|
actions: t,
|
|
46334
46343
|
children: n
|
|
46335
46344
|
}) {
|
|
46336
46345
|
return e ? /* @__PURE__ */ p(jn, { side: "right", align: "start", trigger: n, children: t }) : /* @__PURE__ */ p(lt, { children: n });
|
|
46337
46346
|
}
|
|
46338
|
-
function
|
|
46347
|
+
function s9({
|
|
46339
46348
|
days: e,
|
|
46340
46349
|
zone: t,
|
|
46341
46350
|
events: n,
|
|
@@ -46358,7 +46367,7 @@ function o9({
|
|
|
46358
46367
|
className: v,
|
|
46359
46368
|
label: S = "Schedule"
|
|
46360
46369
|
}) {
|
|
46361
|
-
const C =
|
|
46370
|
+
const C = qH(), E = Re(null), R = Re([]), [k, I] = Ce(""), T = zH({ fixed: m }), N = Ye(
|
|
46362
46371
|
() => e.length > 0 ? ew(t, e[0], s) : [],
|
|
46363
46372
|
[e, t, s]
|
|
46364
46373
|
), O = Ye(() => e.reduce(
|
|
@@ -46392,13 +46401,13 @@ function o9({
|
|
|
46392
46401
|
for (const Y of n) {
|
|
46393
46402
|
if (Y.allDay) continue;
|
|
46394
46403
|
const ee = Mp(t, e, Y);
|
|
46395
|
-
ee && ee.endColumn > ee.startColumn || L.push(...
|
|
46404
|
+
ee && ee.endColumn > ee.startColumn || L.push(...EH(t, [G], Y));
|
|
46396
46405
|
}
|
|
46397
46406
|
const $ = L.map((Y, ee) => ({
|
|
46398
46407
|
key: `${Y.event.id}:${ee}`,
|
|
46399
46408
|
start: Y.top,
|
|
46400
46409
|
end: Y.bottom
|
|
46401
|
-
})), j =
|
|
46410
|
+
})), j = LH($, { mode: u, minSpan: F, maxLanes: c, minWidth: 0.16 }), q = new Map($.map((Y, ee) => [Y.key, L[ee]]));
|
|
46402
46411
|
return {
|
|
46403
46412
|
day: G,
|
|
46404
46413
|
dayIndex: K,
|
|
@@ -46426,7 +46435,7 @@ function o9({
|
|
|
46426
46435
|
F.push({ day: e[G], left: L.left, right: L.right, top: L.top, bottom: L.bottom });
|
|
46427
46436
|
}
|
|
46428
46437
|
return F;
|
|
46429
|
-
}, [e]), A =
|
|
46438
|
+
}, [e]), A = HH({
|
|
46430
46439
|
zone: t,
|
|
46431
46440
|
days: e,
|
|
46432
46441
|
snapMinutes: d,
|
|
@@ -46438,7 +46447,7 @@ function o9({
|
|
|
46438
46447
|
onAnnounce: (F) => {
|
|
46439
46448
|
I(F), g?.(F);
|
|
46440
46449
|
}
|
|
46441
|
-
}), H =
|
|
46450
|
+
}), H = KH({
|
|
46442
46451
|
zone: t,
|
|
46443
46452
|
snapMinutes: d,
|
|
46444
46453
|
days: e,
|
|
@@ -46459,7 +46468,7 @@ function o9({
|
|
|
46459
46468
|
return /* @__PURE__ */ P("div", { className: W(C.root(), v), "aria-label": S, children: [
|
|
46460
46469
|
/* @__PURE__ */ P("div", { className: C.header(), children: [
|
|
46461
46470
|
/* @__PURE__ */ P("div", { className: C.headerRow(), children: [
|
|
46462
|
-
/* @__PURE__ */ p("div", { className: C.gutter(), style: { width: Dl }, children: /* @__PURE__ */ p("div", { className: C.zoneLabel(), children:
|
|
46471
|
+
/* @__PURE__ */ p("div", { className: C.gutter(), style: { width: Dl }, children: /* @__PURE__ */ p("div", { className: C.zoneLabel(), children: RH(t, T, y) }) }),
|
|
46463
46472
|
e.map((F) => {
|
|
46464
46473
|
const G = r ? qo(F, r) : !1;
|
|
46465
46474
|
return /* @__PURE__ */ P("div", { className: C.dayHead(), children: [
|
|
@@ -46571,11 +46580,11 @@ function o9({
|
|
|
46571
46580
|
const Y = _c(G.paletteKey), ee = H.preview(A.preview(G)), J = H.grabbedId === G.id, Z = A.draft?.id === G.id || J, ne = Z ? ki(t, F.day, ee.start) : q.start, te = Z ? ki(t, F.day, ee.endExclusive) : q.end, he = (L - K) * O < 30, fe = !!f && G.editable !== !1;
|
|
46572
46581
|
return /* @__PURE__ */ P("li", { className: "contents", children: [
|
|
46573
46582
|
/* @__PURE__ */ p(
|
|
46574
|
-
|
|
46583
|
+
YH,
|
|
46575
46584
|
{
|
|
46576
46585
|
enabled: fe && x,
|
|
46577
46586
|
actions: /* @__PURE__ */ p(
|
|
46578
|
-
|
|
46587
|
+
WH,
|
|
46579
46588
|
{
|
|
46580
46589
|
event: G,
|
|
46581
46590
|
zone: t,
|
|
@@ -46681,11 +46690,11 @@ function o9({
|
|
|
46681
46690
|
] })
|
|
46682
46691
|
] });
|
|
46683
46692
|
}
|
|
46684
|
-
function
|
|
46693
|
+
function i9(e) {
|
|
46685
46694
|
return e.allDay;
|
|
46686
46695
|
}
|
|
46687
46696
|
const yN = kn(null);
|
|
46688
|
-
function
|
|
46697
|
+
function a9({
|
|
46689
46698
|
currentUser: e,
|
|
46690
46699
|
roles: t,
|
|
46691
46700
|
permissions: n,
|
|
@@ -46761,7 +46770,7 @@ const _l = [
|
|
|
46761
46770
|
"hover:bg-surface-hover hover:text-primary",
|
|
46762
46771
|
"focus-visible:bg-surface-hover focus-visible:text-primary"
|
|
46763
46772
|
], iw = "text-2xs font-semibold tracking-widest text-tertiary uppercase";
|
|
46764
|
-
function
|
|
46773
|
+
function l9({
|
|
46765
46774
|
onNavigateProfile: e,
|
|
46766
46775
|
onNavigateRoles: t,
|
|
46767
46776
|
onSwitchTeam: n,
|
|
@@ -46841,56 +46850,56 @@ function a9({
|
|
|
46841
46850
|
);
|
|
46842
46851
|
}
|
|
46843
46852
|
const Op = /* @__PURE__ */ new Set();
|
|
46844
|
-
function
|
|
46853
|
+
function XH(e) {
|
|
46845
46854
|
return Op.add(e), () => Op.delete(e);
|
|
46846
46855
|
}
|
|
46847
|
-
async function
|
|
46856
|
+
async function ZH(e) {
|
|
46848
46857
|
const t = [...Op].filter((n) => !e || n.namespace === e);
|
|
46849
46858
|
await Promise.all(t.map((n) => n.reset()));
|
|
46850
46859
|
}
|
|
46851
46860
|
const vN = "demo:settings", wN = { networkSpeed: "typical", dataSource: "simulated" };
|
|
46852
|
-
function
|
|
46861
|
+
function QH(e) {
|
|
46853
46862
|
if (typeof e != "object" || e === null) return !1;
|
|
46854
46863
|
const t = e, n = t.networkSpeed, r = t.dataSource;
|
|
46855
46864
|
return (n === "instant" || n === "fast" || n === "typical" || n === "flaky") && (r === "simulated" || r === "live");
|
|
46856
46865
|
}
|
|
46857
|
-
let qs = Uh(vN,
|
|
46866
|
+
let qs = Uh(vN, QH) ?? wN;
|
|
46858
46867
|
const Ap = /* @__PURE__ */ new Set();
|
|
46859
|
-
function
|
|
46868
|
+
function JH() {
|
|
46860
46869
|
Gh(vN, qs), Ap.forEach((e) => e());
|
|
46861
46870
|
}
|
|
46862
|
-
function
|
|
46871
|
+
function eU(e) {
|
|
46863
46872
|
return Ap.add(e), () => Ap.delete(e);
|
|
46864
46873
|
}
|
|
46865
|
-
function
|
|
46874
|
+
function tU() {
|
|
46866
46875
|
return qs;
|
|
46867
46876
|
}
|
|
46868
|
-
function
|
|
46877
|
+
function nU() {
|
|
46869
46878
|
return wN;
|
|
46870
46879
|
}
|
|
46871
|
-
function
|
|
46872
|
-
return Pr(
|
|
46880
|
+
function rU() {
|
|
46881
|
+
return Pr(eU, tU, nU);
|
|
46873
46882
|
}
|
|
46874
46883
|
function aw(e) {
|
|
46875
|
-
qs = { ...qs, ...e },
|
|
46884
|
+
qs = { ...qs, ...e }, JH();
|
|
46876
46885
|
}
|
|
46877
|
-
function
|
|
46886
|
+
function oU() {
|
|
46878
46887
|
return qs.networkSpeed;
|
|
46879
46888
|
}
|
|
46880
|
-
function
|
|
46889
|
+
function c9() {
|
|
46881
46890
|
return qs.dataSource;
|
|
46882
46891
|
}
|
|
46883
|
-
const
|
|
46892
|
+
const sU = [
|
|
46884
46893
|
{ value: "instant", label: "Instant" },
|
|
46885
46894
|
{ value: "fast", label: "Fast" },
|
|
46886
46895
|
{ value: "typical", label: "Typical" },
|
|
46887
46896
|
{ value: "flaky", label: "Flaky" }
|
|
46888
|
-
],
|
|
46897
|
+
], iU = [
|
|
46889
46898
|
{ value: "simulated", label: "Simulated" },
|
|
46890
46899
|
{ value: "live", label: "Live" }
|
|
46891
46900
|
];
|
|
46892
|
-
function
|
|
46893
|
-
const { canAccessDevTools: t, roles: n, viewingAsRoleId: r, setViewingAsRoleId: o, effectiveRole: s, isImpersonating: i } = md(), { networkSpeed: a, dataSource: l } =
|
|
46901
|
+
function u9({ onOpenUseCaseLedger: e } = {}) {
|
|
46902
|
+
const { canAccessDevTools: t, roles: n, viewingAsRoleId: r, setViewingAsRoleId: o, effectiveRole: s, isImpersonating: i } = md(), { networkSpeed: a, dataSource: l } = rU(), [c, u] = Ce(!1), [m, d] = Ce(!1);
|
|
46894
46903
|
return t ? /* @__PURE__ */ p(
|
|
46895
46904
|
jn,
|
|
46896
46905
|
{
|
|
@@ -46958,7 +46967,7 @@ function c9({ onOpenUseCaseLedger: e } = {}) {
|
|
|
46958
46967
|
"aria-label": "Data source",
|
|
46959
46968
|
value: l,
|
|
46960
46969
|
onValueChange: (f) => aw({ dataSource: f }),
|
|
46961
|
-
children:
|
|
46970
|
+
children: iU.map((f) => /* @__PURE__ */ p(kr, { value: f.value, children: f.label }, f.value))
|
|
46962
46971
|
}
|
|
46963
46972
|
),
|
|
46964
46973
|
l === "live" && /* @__PURE__ */ p("p", { className: "text-2xs text-tertiary", children: "No live backend is configured in this demo — stores keep answering with simulated data. A consuming app wires its own fetcher per store to make this real." })
|
|
@@ -46971,7 +46980,7 @@ function c9({ onOpenUseCaseLedger: e } = {}) {
|
|
|
46971
46980
|
"aria-label": "Network speed",
|
|
46972
46981
|
value: a,
|
|
46973
46982
|
onValueChange: (f) => aw({ networkSpeed: f }),
|
|
46974
|
-
children:
|
|
46983
|
+
children: sU.map((f) => /* @__PURE__ */ p(kr, { value: f.value, children: f.label }, f.value))
|
|
46975
46984
|
}
|
|
46976
46985
|
)
|
|
46977
46986
|
] }),
|
|
@@ -46990,7 +46999,7 @@ function c9({ onOpenUseCaseLedger: e } = {}) {
|
|
|
46990
46999
|
confirmLabel: "Regenerate",
|
|
46991
47000
|
loading: m,
|
|
46992
47001
|
onConfirm: () => {
|
|
46993
|
-
d(!0),
|
|
47002
|
+
d(!0), ZH("demo").finally(() => {
|
|
46994
47003
|
d(!1), u(!1);
|
|
46995
47004
|
});
|
|
46996
47005
|
}
|
|
@@ -47005,7 +47014,7 @@ function c9({ onOpenUseCaseLedger: e } = {}) {
|
|
|
47005
47014
|
}
|
|
47006
47015
|
) : null;
|
|
47007
47016
|
}
|
|
47008
|
-
function
|
|
47017
|
+
function aU(e) {
|
|
47009
47018
|
if (!e.some((r) => r.category))
|
|
47010
47019
|
return [{ label: void 0, items: e }];
|
|
47011
47020
|
const t = [], n = /* @__PURE__ */ new Map();
|
|
@@ -47015,8 +47024,8 @@ function iU(e) {
|
|
|
47015
47024
|
}
|
|
47016
47025
|
return t.map((r) => ({ label: r, items: n.get(r) }));
|
|
47017
47026
|
}
|
|
47018
|
-
function
|
|
47019
|
-
const n = Ye(() =>
|
|
47027
|
+
function lU({ roles: e, permissions: t }) {
|
|
47028
|
+
const n = Ye(() => aU(t), [t]), r = e.length + 1;
|
|
47020
47029
|
return /* @__PURE__ */ p("div", { className: "relative w-full min-w-0 overflow-auto overscroll-x-contain rounded-xl border border-border bg-surface shadow-sm", children: /* @__PURE__ */ P("table", { className: "w-full border-collapse text-left", children: [
|
|
47021
47030
|
/* @__PURE__ */ p("caption", { className: "sr-only", children: "Which permissions each role has" }),
|
|
47022
47031
|
/* @__PURE__ */ p("thead", { className: "sticky top-0 z-10", children: /* @__PURE__ */ P("tr", { children: [
|
|
@@ -47067,7 +47076,7 @@ function aU({ roles: e, permissions: t }) {
|
|
|
47067
47076
|
] }, o.label ?? `__section-${s}`)) })
|
|
47068
47077
|
] }) });
|
|
47069
47078
|
}
|
|
47070
|
-
function
|
|
47079
|
+
function d9() {
|
|
47071
47080
|
const { actualUser: e, actualRole: t, effectiveRole: n, permissions: r, isImpersonating: o, currentTeam: s } = md(), [i, a] = Ce(e.name), [l, c] = Ce(e.email), u = Ye(
|
|
47072
47081
|
() => r.filter((m) => n?.permissionKeys.includes(m.key)),
|
|
47073
47082
|
[r, n]
|
|
@@ -47115,30 +47124,30 @@ function u9() {
|
|
|
47115
47124
|
] })
|
|
47116
47125
|
] });
|
|
47117
47126
|
}
|
|
47118
|
-
function
|
|
47127
|
+
function f9() {
|
|
47119
47128
|
const { roles: e, permissions: t } = md();
|
|
47120
47129
|
return /* @__PURE__ */ P("div", { className: "flex flex-col gap-5", children: [
|
|
47121
47130
|
/* @__PURE__ */ P("div", { children: [
|
|
47122
47131
|
/* @__PURE__ */ p("h1", { className: "font-display text-xl font-semibold text-primary", children: "Roles & Permissions" }),
|
|
47123
47132
|
/* @__PURE__ */ p("p", { className: "text-sm text-tertiary", children: "What each role can do. Contact an administrator to change a role's access." })
|
|
47124
47133
|
] }),
|
|
47125
|
-
/* @__PURE__ */ p(
|
|
47134
|
+
/* @__PURE__ */ p(lU, { roles: e, permissions: t })
|
|
47126
47135
|
] });
|
|
47127
47136
|
}
|
|
47128
|
-
function
|
|
47137
|
+
function cU(e, t) {
|
|
47129
47138
|
return t.every((n) => e.built[n] === !0);
|
|
47130
47139
|
}
|
|
47131
|
-
function
|
|
47140
|
+
function uU(e, t) {
|
|
47132
47141
|
return t.every((n) => e.built[n] !== !0);
|
|
47133
47142
|
}
|
|
47134
47143
|
function mb(e, t) {
|
|
47135
47144
|
const n = e.filter((r) => r.status !== "rejected");
|
|
47136
|
-
return n.length === 0 ? "unresolved" : n.every((r) => r.status === "verified" &&
|
|
47145
|
+
return n.length === 0 ? "unresolved" : n.every((r) => r.status === "verified" && cU(r, t)) ? "shipped" : n.every((r) => r.status === "pending" && uU(r, t)) ? "planned" : "in-progress";
|
|
47137
47146
|
}
|
|
47138
47147
|
function hb(e) {
|
|
47139
47148
|
return [...e].sort((t, n) => t.order - n.order).map((t) => t.id);
|
|
47140
47149
|
}
|
|
47141
|
-
function
|
|
47150
|
+
function dU(e, t) {
|
|
47142
47151
|
const n = e.filter((r) => r.status !== "rejected");
|
|
47143
47152
|
return {
|
|
47144
47153
|
built: n.filter((r) => r.built[t] === !0).length,
|
|
@@ -47159,7 +47168,7 @@ const zo = {
|
|
|
47159
47168
|
},
|
|
47160
47169
|
verified: { tone: "success", label: "Verified", icon: /* @__PURE__ */ p(me, { name: "circle-check", size: "xs" }) },
|
|
47161
47170
|
rejected: { tone: "danger", label: "Rejected", icon: /* @__PURE__ */ p(me, { name: "circle-x", size: "xs" }) }
|
|
47162
|
-
},
|
|
47171
|
+
}, fU = Object.keys(zo).map(
|
|
47163
47172
|
(e) => ({
|
|
47164
47173
|
value: e,
|
|
47165
47174
|
label: zo[e].label,
|
|
@@ -47169,7 +47178,7 @@ const zo = {
|
|
|
47169
47178
|
pulse: zo[e].live
|
|
47170
47179
|
})
|
|
47171
47180
|
);
|
|
47172
|
-
function
|
|
47181
|
+
function pU({
|
|
47173
47182
|
useCase: e,
|
|
47174
47183
|
tracks: t,
|
|
47175
47184
|
onStatusChange: n,
|
|
@@ -47197,7 +47206,7 @@ function fU({
|
|
|
47197
47206
|
size: "sm",
|
|
47198
47207
|
"aria-label": `Status for ${e.ref}`,
|
|
47199
47208
|
value: e.status,
|
|
47200
|
-
options:
|
|
47209
|
+
options: fU,
|
|
47201
47210
|
onValueChange: n
|
|
47202
47211
|
}
|
|
47203
47212
|
) : /* @__PURE__ */ p(Ht, { size: "sm", tone: s.tone, icon: s.icon, dot: s.live, pulse: s.live, children: s.label }),
|
|
@@ -47303,7 +47312,7 @@ function CN({
|
|
|
47303
47312
|
}
|
|
47304
47313
|
),
|
|
47305
47314
|
m && /* @__PURE__ */ p("div", { id: h, className: "flex flex-col gap-2 border-t border-border-subtle pt-3", children: s.map((g) => /* @__PURE__ */ p(
|
|
47306
|
-
|
|
47315
|
+
pU,
|
|
47307
47316
|
{
|
|
47308
47317
|
useCase: g,
|
|
47309
47318
|
tracks: i,
|
|
@@ -47315,12 +47324,12 @@ function CN({
|
|
|
47315
47324
|
] })
|
|
47316
47325
|
] });
|
|
47317
47326
|
}
|
|
47318
|
-
const
|
|
47327
|
+
const mU = [
|
|
47319
47328
|
{ status: "planned", label: "Planned" },
|
|
47320
47329
|
{ status: "in-progress", label: "In progress" },
|
|
47321
47330
|
{ status: "shipped", label: "Shipped" }
|
|
47322
47331
|
];
|
|
47323
|
-
function
|
|
47332
|
+
function hU(e) {
|
|
47324
47333
|
const t = /* @__PURE__ */ new Map();
|
|
47325
47334
|
for (const n of e) {
|
|
47326
47335
|
const r = t.get(n.goalRef);
|
|
@@ -47328,12 +47337,12 @@ function mU(e) {
|
|
|
47328
47337
|
}
|
|
47329
47338
|
return t;
|
|
47330
47339
|
}
|
|
47331
|
-
function
|
|
47340
|
+
function gU(e, t) {
|
|
47332
47341
|
const n = e.findIndex((r) => r.id === t);
|
|
47333
47342
|
if (n === -1) throw new Error(`No Phase with id "${t}" in the phases[] list.`);
|
|
47334
47343
|
return { phase: e[n], index: n };
|
|
47335
47344
|
}
|
|
47336
|
-
function
|
|
47345
|
+
function bU({
|
|
47337
47346
|
domains: e,
|
|
47338
47347
|
phases: t,
|
|
47339
47348
|
items: n,
|
|
@@ -47341,7 +47350,7 @@ function gU({
|
|
|
47341
47350
|
tracks: o,
|
|
47342
47351
|
className: s
|
|
47343
47352
|
}) {
|
|
47344
|
-
const i =
|
|
47353
|
+
const i = hU(r), a = hb(o), l = n.filter((u) => u.customerVisible), c = e.map((u, m) => ({
|
|
47345
47354
|
domain: u,
|
|
47346
47355
|
domainIndex: m,
|
|
47347
47356
|
items: l.filter((d) => d.domainSlug === u.slug)
|
|
@@ -47364,7 +47373,7 @@ function gU({
|
|
|
47364
47373
|
children: u.name
|
|
47365
47374
|
}
|
|
47366
47375
|
),
|
|
47367
|
-
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-3", children:
|
|
47376
|
+
/* @__PURE__ */ p("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-3", children: mU.map((f) => {
|
|
47368
47377
|
const h = d.filter(
|
|
47369
47378
|
(x) => mb(i.get(x.ref) ?? [], a) === f.status
|
|
47370
47379
|
), g = SN[f.status].tone;
|
|
@@ -47378,7 +47387,7 @@ function gU({
|
|
|
47378
47387
|
/* @__PURE__ */ p(Ht, { size: "sm", tone: g, children: h.length })
|
|
47379
47388
|
] }),
|
|
47380
47389
|
/* @__PURE__ */ p("div", { className: "flex flex-col gap-3", children: h.length === 0 ? /* @__PURE__ */ p("p", { className: "text-xs text-tertiary", children: "Nothing here yet." }) : h.map((x) => {
|
|
47381
|
-
const { phase: y, index: w } =
|
|
47390
|
+
const { phase: y, index: w } = gU(t, x.phaseId);
|
|
47382
47391
|
return /* @__PURE__ */ p(
|
|
47383
47392
|
CN,
|
|
47384
47393
|
{
|
|
@@ -47400,14 +47409,14 @@ function gU({
|
|
|
47400
47409
|
}) })
|
|
47401
47410
|
] }, u.slug)) });
|
|
47402
47411
|
}
|
|
47403
|
-
const
|
|
47412
|
+
const xU = [
|
|
47404
47413
|
{ value: "all", label: "All statuses" },
|
|
47405
47414
|
{ value: "planned", label: "Planned" },
|
|
47406
47415
|
{ value: "in-progress", label: "In progress" },
|
|
47407
47416
|
{ value: "shipped", label: "Shipped" },
|
|
47408
47417
|
{ value: "unresolved", label: "Unresolved" }
|
|
47409
47418
|
], Tf = "all";
|
|
47410
|
-
function
|
|
47419
|
+
function yU(e) {
|
|
47411
47420
|
const t = /* @__PURE__ */ new Map();
|
|
47412
47421
|
for (const n of e) {
|
|
47413
47422
|
const r = t.get(n.goalRef);
|
|
@@ -47415,12 +47424,12 @@ function xU(e) {
|
|
|
47415
47424
|
}
|
|
47416
47425
|
return t;
|
|
47417
47426
|
}
|
|
47418
|
-
function
|
|
47427
|
+
function vU(e, t) {
|
|
47419
47428
|
const n = e.findIndex((r) => r.id === t);
|
|
47420
47429
|
if (n === -1) throw new Error(`No Phase with id "${t}" in the phases[] list.`);
|
|
47421
47430
|
return { phase: e[n], index: n };
|
|
47422
47431
|
}
|
|
47423
|
-
function
|
|
47432
|
+
function p9({
|
|
47424
47433
|
domains: e,
|
|
47425
47434
|
phases: t,
|
|
47426
47435
|
items: n,
|
|
@@ -47430,7 +47439,7 @@ function f9({
|
|
|
47430
47439
|
onUseCaseBuiltChange: i,
|
|
47431
47440
|
className: a
|
|
47432
47441
|
}) {
|
|
47433
|
-
const [l, c] = Ce(Tf), [u, m] = Ce("all"), d = Ye(() =>
|
|
47442
|
+
const [l, c] = Ce(Tf), [u, m] = Ce("all"), d = Ye(() => yU(r), [r]), f = Ye(() => hb(o), [o]), h = Ye(() => e.map((g, x) => ({ domain: g, domainIndex: x })).filter(({ domain: g }) => l === Tf || g.slug === l).map(({ domain: g, domainIndex: x }) => ({
|
|
47434
47443
|
domain: g,
|
|
47435
47444
|
domainIndex: x,
|
|
47436
47445
|
items: n.filter((y) => y.domainSlug === g.slug).filter((y) => {
|
|
@@ -47454,7 +47463,7 @@ function f9({
|
|
|
47454
47463
|
{
|
|
47455
47464
|
value: u,
|
|
47456
47465
|
onValueChange: (g) => m(g),
|
|
47457
|
-
children:
|
|
47466
|
+
children: xU.map((g) => /* @__PURE__ */ p(kr, { value: g.value, children: g.label }, g.value))
|
|
47458
47467
|
}
|
|
47459
47468
|
) })
|
|
47460
47469
|
] }),
|
|
@@ -47469,7 +47478,7 @@ function f9({
|
|
|
47469
47478
|
g.description && /* @__PURE__ */ p("p", { className: "text-sm text-secondary", children: g.description })
|
|
47470
47479
|
] }),
|
|
47471
47480
|
/* @__PURE__ */ p("div", { className: "flex flex-col gap-3", children: y.map((w) => {
|
|
47472
|
-
const { phase: v, index: S } =
|
|
47481
|
+
const { phase: v, index: S } = vU(t, w.phaseId);
|
|
47473
47482
|
return /* @__PURE__ */ p(
|
|
47474
47483
|
CN,
|
|
47475
47484
|
{
|
|
@@ -47492,7 +47501,7 @@ function f9({
|
|
|
47492
47501
|
)) })
|
|
47493
47502
|
] });
|
|
47494
47503
|
}
|
|
47495
|
-
function
|
|
47504
|
+
function m9({
|
|
47496
47505
|
domains: e,
|
|
47497
47506
|
phases: t,
|
|
47498
47507
|
items: n,
|
|
@@ -47506,7 +47515,7 @@ function p9({
|
|
|
47506
47515
|
/* @__PURE__ */ p("p", { className: "text-sm text-secondary", children: "What we're building, organized by area." })
|
|
47507
47516
|
] }),
|
|
47508
47517
|
/* @__PURE__ */ p(
|
|
47509
|
-
|
|
47518
|
+
bU,
|
|
47510
47519
|
{
|
|
47511
47520
|
domains: e,
|
|
47512
47521
|
phases: t,
|
|
@@ -47517,7 +47526,7 @@ function p9({
|
|
|
47517
47526
|
)
|
|
47518
47527
|
] });
|
|
47519
47528
|
}
|
|
47520
|
-
function
|
|
47529
|
+
function h9({
|
|
47521
47530
|
phases: e,
|
|
47522
47531
|
roadmapItems: t,
|
|
47523
47532
|
onCreate: n,
|
|
@@ -47631,7 +47640,7 @@ function m9({
|
|
|
47631
47640
|
] })
|
|
47632
47641
|
] });
|
|
47633
47642
|
}
|
|
47634
|
-
function
|
|
47643
|
+
function g9({
|
|
47635
47644
|
tracks: e,
|
|
47636
47645
|
useCases: t,
|
|
47637
47646
|
onCreate: n,
|
|
@@ -47671,7 +47680,7 @@ function h9({
|
|
|
47671
47680
|
}
|
|
47672
47681
|
),
|
|
47673
47682
|
f.length === 0 ? /* @__PURE__ */ p("p", { className: "text-sm text-tertiary", children: "No tracks yet — add one below. Until there is at least one, nothing can be marked built." }) : /* @__PURE__ */ p(dd, { onDragEnd: y, children: /* @__PURE__ */ p(fd, { id: "tracks", label: "Build tracks", children: f.map((w, v) => {
|
|
47674
|
-
const { built: S, live: C } =
|
|
47683
|
+
const { built: S, live: C } = dU(t, w.id), E = S > 0;
|
|
47675
47684
|
return /* @__PURE__ */ p(pd, { id: w.id, index: v, label: w.name, children: /* @__PURE__ */ P("div", { className: "flex items-center gap-2 rounded-lg border border-border-subtle bg-surface p-2", children: [
|
|
47676
47685
|
/* @__PURE__ */ p(cb, {}),
|
|
47677
47686
|
c === w.id ? /* @__PURE__ */ p(
|
|
@@ -47743,16 +47752,16 @@ function h9({
|
|
|
47743
47752
|
] })
|
|
47744
47753
|
] });
|
|
47745
47754
|
}
|
|
47746
|
-
function
|
|
47755
|
+
function wU(e) {
|
|
47747
47756
|
return (!Number.isFinite(e) || e < 0 || e > 1) && nn(
|
|
47748
47757
|
"confidenceScore",
|
|
47749
47758
|
`received ${String(e)}, which is not a 0–1 score. If this is a rating on a small integer scale (say 4 out of 5), use ratedConfidence(rating, scale) — dividing it down into 0–1 makes it render as a percentage the scale cannot produce.`
|
|
47750
47759
|
), Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 0;
|
|
47751
47760
|
}
|
|
47752
|
-
function
|
|
47753
|
-
return { kind: "score", score:
|
|
47761
|
+
function b9(e) {
|
|
47762
|
+
return { kind: "score", score: wU(e) };
|
|
47754
47763
|
}
|
|
47755
|
-
function
|
|
47764
|
+
function x9(e, t) {
|
|
47756
47765
|
return !Number.isFinite(e) || !Number.isFinite(t) || t < 1 ? (nn(
|
|
47757
47766
|
"ratedConfidence",
|
|
47758
47767
|
`received ${String(e)} out of ${String(t)}, which is not a rating on a whole scale. Pass null instead of a rating you do not have — a bar at zero and a bar with nothing to show look identical and mean opposite things.`
|
|
@@ -47762,19 +47771,19 @@ function b9(e, t) {
|
|
|
47762
47771
|
scale: Math.round(t)
|
|
47763
47772
|
};
|
|
47764
47773
|
}
|
|
47765
|
-
function
|
|
47774
|
+
function SU(e) {
|
|
47766
47775
|
return e >= 0.9 ? "high" : e >= 0.7 ? "moderate" : "low";
|
|
47767
47776
|
}
|
|
47768
|
-
const
|
|
47777
|
+
const CU = {
|
|
47769
47778
|
high: "success",
|
|
47770
47779
|
moderate: "warning",
|
|
47771
47780
|
low: "danger"
|
|
47772
|
-
},
|
|
47781
|
+
}, EU = {
|
|
47773
47782
|
high: "High confidence",
|
|
47774
47783
|
moderate: "Moderate confidence",
|
|
47775
47784
|
low: "Low confidence"
|
|
47776
47785
|
};
|
|
47777
|
-
function
|
|
47786
|
+
function RU({
|
|
47778
47787
|
confidence: e,
|
|
47779
47788
|
unscoredLabel: t = "Not scored",
|
|
47780
47789
|
compact: n = !1,
|
|
@@ -47782,31 +47791,31 @@ function EU({
|
|
|
47782
47791
|
}) {
|
|
47783
47792
|
if (e === null)
|
|
47784
47793
|
return /* @__PURE__ */ p("p", { className: W("text-xs text-tertiary", r), "data-band": "none", children: t });
|
|
47785
|
-
const o =
|
|
47794
|
+
const o = SU(e), s = Math.round(e * 100);
|
|
47786
47795
|
return /* @__PURE__ */ p("div", { className: W("flex flex-col gap-1", r), "data-band": o, children: /* @__PURE__ */ p(
|
|
47787
47796
|
nV,
|
|
47788
47797
|
{
|
|
47789
47798
|
value: s,
|
|
47790
|
-
tone:
|
|
47799
|
+
tone: CU[o],
|
|
47791
47800
|
size: "sm",
|
|
47792
|
-
label: n ? void 0 :
|
|
47801
|
+
label: n ? void 0 : EU[o],
|
|
47793
47802
|
format: (i) => `${i}%`,
|
|
47794
47803
|
showValue: !0
|
|
47795
47804
|
}
|
|
47796
47805
|
) });
|
|
47797
47806
|
}
|
|
47798
|
-
function
|
|
47807
|
+
function kU(e, t) {
|
|
47799
47808
|
if (!Number.isFinite(e) || !Number.isFinite(t) || t <= 0 || e <= 0) return null;
|
|
47800
47809
|
const n = Math.round(Math.min(e, t) / t * 5);
|
|
47801
47810
|
return Math.max(1, Math.min(5, n));
|
|
47802
47811
|
}
|
|
47803
|
-
const
|
|
47812
|
+
const y9 = {
|
|
47804
47813
|
1: "Just a guess",
|
|
47805
47814
|
2: "Somewhat unsure",
|
|
47806
47815
|
3: "Fairly confident",
|
|
47807
47816
|
4: "Confident",
|
|
47808
47817
|
5: "Highly confident"
|
|
47809
|
-
},
|
|
47818
|
+
}, NU = ft({
|
|
47810
47819
|
slots: {
|
|
47811
47820
|
slot: "flex shrink-0 overflow-hidden rounded-full",
|
|
47812
47821
|
fill: "h-full rounded-full"
|
|
@@ -47836,14 +47845,14 @@ const x9 = {
|
|
|
47836
47845
|
},
|
|
47837
47846
|
defaultVariants: { size: "sm", level: "none" }
|
|
47838
47847
|
});
|
|
47839
|
-
function
|
|
47848
|
+
function IU({
|
|
47840
47849
|
rating: e,
|
|
47841
47850
|
scale: t,
|
|
47842
47851
|
label: n = "Confidence",
|
|
47843
47852
|
size: r,
|
|
47844
47853
|
className: o
|
|
47845
47854
|
}) {
|
|
47846
|
-
const s = e === null ? null :
|
|
47855
|
+
const s = e === null ? null : kU(e, t), i = s === null || e === null ? `${n} — not rated` : `${n} ${String(Math.round(e))} of ${String(Math.round(t))}`, a = NU({ size: r, level: s ?? "none" });
|
|
47847
47856
|
return /* @__PURE__ */ p(cn, { content: i, children: /* @__PURE__ */ p(
|
|
47848
47857
|
"span",
|
|
47849
47858
|
{
|
|
@@ -47855,7 +47864,7 @@ function NU({
|
|
|
47855
47864
|
}
|
|
47856
47865
|
) });
|
|
47857
47866
|
}
|
|
47858
|
-
function
|
|
47867
|
+
function TU({
|
|
47859
47868
|
confidence: e,
|
|
47860
47869
|
unscoredLabel: t = "Not scored",
|
|
47861
47870
|
ratingLabel: n,
|
|
@@ -47863,7 +47872,7 @@ function IU({
|
|
|
47863
47872
|
className: o
|
|
47864
47873
|
}) {
|
|
47865
47874
|
return e === null ? /* @__PURE__ */ p("p", { className: W("text-xs text-tertiary", o), "data-band": "none", children: t }) : e.kind === "rating" ? /* @__PURE__ */ p(
|
|
47866
|
-
|
|
47875
|
+
IU,
|
|
47867
47876
|
{
|
|
47868
47877
|
rating: e.rating,
|
|
47869
47878
|
scale: e.scale,
|
|
@@ -47871,7 +47880,7 @@ function IU({
|
|
|
47871
47880
|
className: o
|
|
47872
47881
|
}
|
|
47873
47882
|
) : /* @__PURE__ */ p(
|
|
47874
|
-
|
|
47883
|
+
RU,
|
|
47875
47884
|
{
|
|
47876
47885
|
confidence: e.score,
|
|
47877
47886
|
compact: r,
|
|
@@ -47910,16 +47919,16 @@ function RN({
|
|
|
47910
47919
|
}
|
|
47911
47920
|
);
|
|
47912
47921
|
}
|
|
47913
|
-
function
|
|
47922
|
+
function v9(e) {
|
|
47914
47923
|
return EN[e].label;
|
|
47915
47924
|
}
|
|
47916
|
-
const
|
|
47925
|
+
const MU = {
|
|
47917
47926
|
redacted: { icon: "eye-off", className: "italic text-tertiary" },
|
|
47918
47927
|
empty: { icon: "minus", className: "italic text-tertiary" },
|
|
47919
47928
|
failed: { icon: "triangle-alert", className: "text-danger-text" }
|
|
47920
47929
|
};
|
|
47921
47930
|
function Mf({ kind: e, children: t }) {
|
|
47922
|
-
const n =
|
|
47931
|
+
const n = MU[e];
|
|
47923
47932
|
return /* @__PURE__ */ P("span", { "data-absence": e, className: W("inline-flex items-center gap-1.5", n.className), children: [
|
|
47924
47933
|
/* @__PURE__ */ p(me, { name: n.icon, size: "xs" }),
|
|
47925
47934
|
t
|
|
@@ -47943,7 +47952,7 @@ function Ni({ icon: e, label: t, children: n }) {
|
|
|
47943
47952
|
/* @__PURE__ */ p("div", { className: "text-sm text-secondary", children: n })
|
|
47944
47953
|
] });
|
|
47945
47954
|
}
|
|
47946
|
-
function
|
|
47955
|
+
function PU({
|
|
47947
47956
|
record: e,
|
|
47948
47957
|
actions: t,
|
|
47949
47958
|
emptyLabel: n = "No value",
|
|
@@ -47963,7 +47972,7 @@ function MU({
|
|
|
47963
47972
|
i ?? /* @__PURE__ */ p(RN, { state: e.state, alwaysShow: !0 })
|
|
47964
47973
|
] }),
|
|
47965
47974
|
s ?? /* @__PURE__ */ p("p", { className: W("text-md text-primary", f && "text-danger-text"), children: y }),
|
|
47966
|
-
/* @__PURE__ */ p(
|
|
47975
|
+
/* @__PURE__ */ p(TU, { confidence: e.confidence, ratingLabel: o })
|
|
47967
47976
|
] }),
|
|
47968
47977
|
/* @__PURE__ */ p(xy, {}),
|
|
47969
47978
|
/* @__PURE__ */ P("div", { className: "flex flex-col gap-4 p-4", children: [
|
|
@@ -48042,7 +48051,7 @@ function MU({
|
|
|
48042
48051
|
] })
|
|
48043
48052
|
] });
|
|
48044
48053
|
}
|
|
48045
|
-
function
|
|
48054
|
+
function w9({
|
|
48046
48055
|
record: e,
|
|
48047
48056
|
actions: t,
|
|
48048
48057
|
emptyLabel: n = "No value",
|
|
@@ -48125,7 +48134,7 @@ function v9({
|
|
|
48125
48134
|
onOpenChange: u,
|
|
48126
48135
|
"aria-labelledby": h,
|
|
48127
48136
|
children: /* @__PURE__ */ p(
|
|
48128
|
-
|
|
48137
|
+
PU,
|
|
48129
48138
|
{
|
|
48130
48139
|
record: e,
|
|
48131
48140
|
actions: t,
|
|
@@ -48140,13 +48149,13 @@ function v9({
|
|
|
48140
48149
|
}
|
|
48141
48150
|
);
|
|
48142
48151
|
}
|
|
48143
|
-
const
|
|
48152
|
+
const OU = {
|
|
48144
48153
|
instant: 0,
|
|
48145
48154
|
fast: 0.4,
|
|
48146
48155
|
typical: 1,
|
|
48147
48156
|
flaky: 1.6
|
|
48148
|
-
},
|
|
48149
|
-
class
|
|
48157
|
+
}, AU = 120, DU = 0.4, _U = 0.2, VU = 0.12;
|
|
48158
|
+
class FU extends Error {
|
|
48150
48159
|
constructor(t) {
|
|
48151
48160
|
super(t), this.name = "SimNetworkError";
|
|
48152
48161
|
}
|
|
@@ -48155,14 +48164,14 @@ function uw(e) {
|
|
|
48155
48164
|
return new Promise((t) => setTimeout(t, e));
|
|
48156
48165
|
}
|
|
48157
48166
|
async function Vl(e) {
|
|
48158
|
-
const t =
|
|
48167
|
+
const t = oU(), n = OU[t];
|
|
48159
48168
|
if (n === 0) return;
|
|
48160
|
-
const r = 1 + (Math.random() * 2 - 1) *
|
|
48161
|
-
if (t === "flaky" && Math.random() <
|
|
48162
|
-
throw await uw(o), new
|
|
48169
|
+
const r = 1 + (Math.random() * 2 - 1) * _U, o = (AU + DU * e) * n * r;
|
|
48170
|
+
if (t === "flaky" && Math.random() < VU)
|
|
48171
|
+
throw await uw(o), new FU("Simulated network failure (Flaky mode).");
|
|
48163
48172
|
await uw(o);
|
|
48164
48173
|
}
|
|
48165
|
-
function
|
|
48174
|
+
function S9(e, t, n, r = {}) {
|
|
48166
48175
|
const o = r.namespace ?? "demo", s = `${o}:${e}`;
|
|
48167
48176
|
let i = Uh(s, (f) => Array.isArray(f)) ?? t;
|
|
48168
48177
|
const a = /* @__PURE__ */ new Set();
|
|
@@ -48206,7 +48215,7 @@ function w9(e, t, n, r = {}) {
|
|
|
48206
48215
|
await Vl(t.length), i = t, l();
|
|
48207
48216
|
}
|
|
48208
48217
|
};
|
|
48209
|
-
return
|
|
48218
|
+
return XH({ namespace: o, reset: d.reset }), d;
|
|
48210
48219
|
}
|
|
48211
48220
|
const lo = {
|
|
48212
48221
|
/* A node wide enough for a short title and a line of detail at the library's
|
|
@@ -48256,31 +48265,31 @@ function IN(e, t, n, r, o, s) {
|
|
|
48256
48265
|
function Dp(e, t, n) {
|
|
48257
48266
|
return (e.size + t.size) / 2 + n;
|
|
48258
48267
|
}
|
|
48259
|
-
const _p = (e) => e.parent && e.number > 0 ? e.parent.children[e.number - 1] : null,
|
|
48260
|
-
function
|
|
48268
|
+
const _p = (e) => e.parent && e.number > 0 ? e.parent.children[e.number - 1] : null, $U = (e) => e.parent && e.number > 0 ? e.parent.children[0] : null, Ss = (e) => e.children[0] ?? e.thread, Cs = (e) => (e.children.length ? e.children[e.children.length - 1] : void 0) ?? e.thread;
|
|
48269
|
+
function LU(e, t, n) {
|
|
48261
48270
|
const r = t.number - e.number;
|
|
48262
48271
|
t.change -= n / r, t.shift += n, e.change += n / r, t.prelim += n, t.mod += n;
|
|
48263
48272
|
}
|
|
48264
|
-
function
|
|
48273
|
+
function zU(e) {
|
|
48265
48274
|
let t = 0, n = 0;
|
|
48266
48275
|
for (let r = e.children.length - 1; r >= 0; r--) {
|
|
48267
48276
|
const o = e.children[r];
|
|
48268
48277
|
o.prelim += t, o.mod += t, n += o.change, t += o.shift + n;
|
|
48269
48278
|
}
|
|
48270
48279
|
}
|
|
48271
|
-
function
|
|
48280
|
+
function BU(e, t, n) {
|
|
48272
48281
|
return e.ancestor.parent === t.parent ? e.ancestor : n;
|
|
48273
48282
|
}
|
|
48274
|
-
function
|
|
48283
|
+
function HU(e, t, n) {
|
|
48275
48284
|
const r = _p(e);
|
|
48276
48285
|
if (!r) return t;
|
|
48277
|
-
let o = e, s = e, i = r, a =
|
|
48286
|
+
let o = e, s = e, i = r, a = $U(e);
|
|
48278
48287
|
if (!a) return t;
|
|
48279
48288
|
let l = o.mod, c = s.mod, u = i.mod, m = a.mod, d = t;
|
|
48280
48289
|
for (; Cs(i) && Ss(o); ) {
|
|
48281
48290
|
i = Cs(i), o = Ss(o), a = Ss(a), s = Cs(s), s.ancestor = e;
|
|
48282
48291
|
const f = i.prelim + u - (o.prelim + l) + Dp(i, o, n);
|
|
48283
|
-
f > 0 && (
|
|
48292
|
+
f > 0 && (LU(BU(i, e, d), e, f), l += f, c += f), u += i.mod, l += o.mod, m += a.mod, c += s.mod;
|
|
48284
48293
|
}
|
|
48285
48294
|
return Cs(i) && !Cs(s) ? (s.thread = Cs(i), s.mod += u - c) : (Ss(o) && !Ss(a) && (a.thread = Ss(o), a.mod += l - m), d = e), d;
|
|
48286
48295
|
}
|
|
@@ -48292,8 +48301,8 @@ function TN(e, t) {
|
|
|
48292
48301
|
}
|
|
48293
48302
|
let n = e.children[0];
|
|
48294
48303
|
for (const s of e.children)
|
|
48295
|
-
TN(s, t), n =
|
|
48296
|
-
|
|
48304
|
+
TN(s, t), n = HU(s, n, t);
|
|
48305
|
+
zU(e);
|
|
48297
48306
|
const r = (e.children[0].prelim + e.children[e.children.length - 1].prelim) / 2, o = _p(e);
|
|
48298
48307
|
o ? (e.prelim = o.prelim + Dp(o, e, t), e.mod = e.prelim - r) : e.prelim = r;
|
|
48299
48308
|
}
|
|
@@ -48301,7 +48310,7 @@ function MN(e, t) {
|
|
|
48301
48310
|
e.along = e.prelim + t;
|
|
48302
48311
|
for (const n of e.children) MN(n, t + e.mod);
|
|
48303
48312
|
}
|
|
48304
|
-
function
|
|
48313
|
+
function UU(e, t = {}) {
|
|
48305
48314
|
const n = {
|
|
48306
48315
|
nodeWidth: t.nodeWidth ?? lo.nodeWidth,
|
|
48307
48316
|
nodeHeight: t.nodeHeight ?? lo.nodeHeight,
|
|
@@ -48354,7 +48363,7 @@ function PN(e, t) {
|
|
|
48354
48363
|
return null;
|
|
48355
48364
|
}
|
|
48356
48365
|
const dw = (e, t, n) => Math.min(Math.max(e, t), n);
|
|
48357
|
-
function
|
|
48366
|
+
function GU(e) {
|
|
48358
48367
|
const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Ce({}), [l, c] = Ce(null), [u, m] = Ce(!1), d = Re({ layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i });
|
|
48359
48368
|
d.current = { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i };
|
|
48360
48369
|
const f = Re(null), h = Re({ frame: null, drag: null, pan: null, point: null }), g = De(() => {
|
|
@@ -48485,7 +48494,7 @@ function UU(e) {
|
|
|
48485
48494
|
return { offsets: i, draggingId: l, panning: u, bindViewport: R, bindNode: E, clearOffsets: k };
|
|
48486
48495
|
}
|
|
48487
48496
|
const Fl = 96;
|
|
48488
|
-
function
|
|
48497
|
+
function jU({ label: e, childCount: t }) {
|
|
48489
48498
|
return /* @__PURE__ */ P("div", { className: "flex h-full flex-col justify-center gap-1 px-3 py-2", children: [
|
|
48490
48499
|
/* @__PURE__ */ p("span", { className: "line-clamp-2 text-sm font-medium text-primary", children: e }),
|
|
48491
48500
|
t > 0 && /* @__PURE__ */ P("span", { className: "tabular text-2xs text-tertiary", children: [
|
|
@@ -48495,7 +48504,7 @@ function GU({ label: e, childCount: t }) {
|
|
|
48495
48504
|
] })
|
|
48496
48505
|
] });
|
|
48497
48506
|
}
|
|
48498
|
-
function
|
|
48507
|
+
function WU(e, t, n) {
|
|
48499
48508
|
if (n === "vertical") {
|
|
48500
48509
|
const l = e.x + e.width / 2, c = e.y + e.height, u = t.x + t.width / 2, m = t.y, d = (c + m) / 2;
|
|
48501
48510
|
return `M ${l} ${c} C ${l} ${d}, ${u} ${d}, ${u} ${m}`;
|
|
@@ -48503,7 +48512,7 @@ function jU(e, t, n) {
|
|
|
48503
48512
|
const r = e.x + e.width, o = e.y + e.height / 2, s = t.x, i = t.y + t.height / 2, a = (r + s) / 2;
|
|
48504
48513
|
return `M ${r} ${o} C ${a} ${o}, ${a} ${i}, ${s} ${i}`;
|
|
48505
48514
|
}
|
|
48506
|
-
function
|
|
48515
|
+
function C9({
|
|
48507
48516
|
root: e,
|
|
48508
48517
|
label: t,
|
|
48509
48518
|
renderNode: n,
|
|
@@ -48529,7 +48538,7 @@ function S9({
|
|
|
48529
48538
|
}
|
|
48530
48539
|
return L.length ? L : [e];
|
|
48531
48540
|
}, [e, f]), v = w[w.length - 1], S = Ye(
|
|
48532
|
-
() =>
|
|
48541
|
+
() => UU(v, { orientation: r, depth: o, nodeWidth: s, nodeHeight: i }),
|
|
48533
48542
|
[v, r, o, s, i]
|
|
48534
48543
|
), C = Ye(
|
|
48535
48544
|
() => ({
|
|
@@ -48556,7 +48565,7 @@ function S9({
|
|
|
48556
48565
|
j && (h(j.map((q) => q.id)), x(L), l?.(j[j.length - 1], j));
|
|
48557
48566
|
},
|
|
48558
48567
|
[E, e, l]
|
|
48559
|
-
), I =
|
|
48568
|
+
), I = GU({
|
|
48560
48569
|
layoutBoxOf: R,
|
|
48561
48570
|
planeSize: C,
|
|
48562
48571
|
onNodeClick: k,
|
|
@@ -48707,7 +48716,7 @@ function S9({
|
|
|
48707
48716
|
return !$ || !j ? null : /* @__PURE__ */ p(
|
|
48708
48717
|
"path",
|
|
48709
48718
|
{
|
|
48710
|
-
d:
|
|
48719
|
+
d: WU($, j, r),
|
|
48711
48720
|
fill: "none",
|
|
48712
48721
|
stroke: "currentColor",
|
|
48713
48722
|
strokeWidth: 1.5
|
|
@@ -48779,7 +48788,7 @@ function S9({
|
|
|
48779
48788
|
hasHiddenChildren: L.hasHiddenChildren,
|
|
48780
48789
|
isFocused: L.id === _,
|
|
48781
48790
|
isDragging: j
|
|
48782
|
-
}) : /* @__PURE__ */ p(
|
|
48791
|
+
}) : /* @__PURE__ */ p(jU, { label: L.node.label, childCount: L.childCount })
|
|
48783
48792
|
},
|
|
48784
48793
|
L.id
|
|
48785
48794
|
);
|
|
@@ -48813,24 +48822,24 @@ function hd(e) {
|
|
|
48813
48822
|
function ON(e) {
|
|
48814
48823
|
return e.__stale === !0;
|
|
48815
48824
|
}
|
|
48816
|
-
function
|
|
48825
|
+
function KU(e) {
|
|
48817
48826
|
const t = e.deleted_at ?? e.__deleted_at;
|
|
48818
48827
|
if (t != null)
|
|
48819
48828
|
return typeof t == "string" ? t : String(t);
|
|
48820
48829
|
}
|
|
48821
|
-
function
|
|
48830
|
+
function qU(e) {
|
|
48822
48831
|
return e.__deleted_at === null || e.deleted_at === null;
|
|
48823
48832
|
}
|
|
48824
|
-
const
|
|
48825
|
-
function
|
|
48833
|
+
const YU = 1e11, XU = 1e8;
|
|
48834
|
+
function ZU(e) {
|
|
48826
48835
|
if (e == null) return;
|
|
48827
48836
|
let t = typeof e == "number" ? e : Number(e);
|
|
48828
48837
|
if (!Number.isFinite(t) && typeof e == "string" && (t = Date.parse(e)), !Number.isFinite(t) || t <= 0) {
|
|
48829
48838
|
nn("recordStore", `ignoring an unreadable __timestamp: ${String(e)}`);
|
|
48830
48839
|
return;
|
|
48831
48840
|
}
|
|
48832
|
-
if (t >=
|
|
48833
|
-
if (t >=
|
|
48841
|
+
if (t >= YU) return t;
|
|
48842
|
+
if (t >= XU) return t * 1e3;
|
|
48834
48843
|
nn(
|
|
48835
48844
|
"recordStore",
|
|
48836
48845
|
`__timestamp ${String(e)} is implausible in seconds OR milliseconds — ordering is disabled for this write rather than guessed at`
|
|
@@ -48840,7 +48849,7 @@ function AN(e) {
|
|
|
48840
48849
|
return e.startsWith("__") || e === "deleted_at";
|
|
48841
48850
|
}
|
|
48842
48851
|
const Vc = /* @__PURE__ */ new Map();
|
|
48843
|
-
function
|
|
48852
|
+
function E9(e, t = {}) {
|
|
48844
48853
|
const n = di(e);
|
|
48845
48854
|
n !== e && nn(
|
|
48846
48855
|
"defineRecordType",
|
|
@@ -48848,26 +48857,26 @@ function C9(e, t = {}) {
|
|
|
48848
48857
|
);
|
|
48849
48858
|
const r = t.staleFields ?? [], o = Vc.get(n);
|
|
48850
48859
|
if (o)
|
|
48851
|
-
return
|
|
48860
|
+
return QU(o.staleFields, r) || nn(
|
|
48852
48861
|
"defineRecordType",
|
|
48853
48862
|
`"${n}" is registered twice with different staleFields — the first registration wins.`
|
|
48854
48863
|
), o;
|
|
48855
48864
|
const s = { type: n, staleFields: r };
|
|
48856
48865
|
return Vc.set(n, s), s;
|
|
48857
48866
|
}
|
|
48858
|
-
function
|
|
48867
|
+
function QU(e, t) {
|
|
48859
48868
|
return e === "*" || t === "*" ? e === t : e.length === t.length && e.every((n) => t.includes(n));
|
|
48860
48869
|
}
|
|
48861
|
-
function
|
|
48870
|
+
function JU(e) {
|
|
48862
48871
|
return Vc.get(e)?.staleFields ?? [];
|
|
48863
48872
|
}
|
|
48864
|
-
function
|
|
48873
|
+
function R9() {
|
|
48865
48874
|
Vc.clear();
|
|
48866
48875
|
}
|
|
48867
48876
|
const DN = -1, jt = /* @__PURE__ */ new Map(), ur = /* @__PURE__ */ new Map(), Lr = /* @__PURE__ */ new Map(), zr = /* @__PURE__ */ new Map(), ia = /* @__PURE__ */ new Set(), co = /* @__PURE__ */ new Map();
|
|
48868
48877
|
let yo = 0, ho;
|
|
48869
|
-
function
|
|
48870
|
-
e !== ho && (ho = e, jt.clear(), ur.clear(), Lr.clear(), _s.clear(), yo += 1,
|
|
48878
|
+
function e6(e) {
|
|
48879
|
+
e !== ho && (ho = e, jt.clear(), ur.clear(), Lr.clear(), _s.clear(), yo += 1, h6());
|
|
48871
48880
|
}
|
|
48872
48881
|
function gd() {
|
|
48873
48882
|
return ho;
|
|
@@ -48895,7 +48904,7 @@ function Er(e, t) {
|
|
|
48895
48904
|
const r = { options: t, touched: /* @__PURE__ */ new Set(), inFlight: /* @__PURE__ */ new Map() }, o = _N(e, n, r);
|
|
48896
48905
|
return o === "dropped-older" ? { verdict: o, keys: $l, reason: `older than the stored ${n.key}` } : { verdict: o, keys: [...r.touched] };
|
|
48897
48906
|
}
|
|
48898
|
-
function
|
|
48907
|
+
function t6(e, t) {
|
|
48899
48908
|
const n = [], r = /* @__PURE__ */ new Set();
|
|
48900
48909
|
for (const o of e) {
|
|
48901
48910
|
const s = Er(o, t);
|
|
@@ -48905,18 +48914,18 @@ function e6(e, t) {
|
|
|
48905
48914
|
return { results: n, keys: [...r] };
|
|
48906
48915
|
}
|
|
48907
48916
|
function _N(e, t, n) {
|
|
48908
|
-
const { key: r, type: o } = t, s =
|
|
48917
|
+
const { key: r, type: o } = t, s = ZU(e.__timestamp), i = jt.get(r);
|
|
48909
48918
|
if (i && i.timestamp !== void 0 && s !== void 0 && s < i.timestamp)
|
|
48910
48919
|
return nn("recordStore", `refused a strictly older write for ${r}`), "dropped-older";
|
|
48911
48920
|
const a = i ?? VN(r, o);
|
|
48912
48921
|
n.inFlight.set(e, r), n.touched.add(r);
|
|
48913
|
-
const l =
|
|
48922
|
+
const l = a6(e, n);
|
|
48914
48923
|
let c = !1;
|
|
48915
48924
|
a.hasBase || (a.hasBase = !0, c = !0);
|
|
48916
48925
|
for (const [m, d] of Object.entries(l))
|
|
48917
48926
|
(!(m in a.data) || !zp(a.data[m], d)) && (a.data[m] = d, c = !0);
|
|
48918
|
-
const u =
|
|
48919
|
-
return u !== void 0 ? a.deletedAt !== u && (a.deletedAt = u, c = !0) :
|
|
48927
|
+
const u = KU(e);
|
|
48928
|
+
return u !== void 0 ? a.deletedAt !== u && (a.deletedAt = u, c = !0) : qU(e) && a.deletedAt !== void 0 && (a.deletedAt = void 0, c = !0), n.options.source === "fetch" && n.options.tag !== void 0 && !a.tags.has(n.options.tag) && (a.tags.add(n.options.tag), c = !0), s6(o, a, n.options.source, new Set(Object.keys(l))) && (c = !0), s !== void 0 && (a.timestamp === void 0 || s > a.timestamp) && (a.timestamp = s), c ? (a.version += 1, yo += 1, vb(r), "applied") : "unchanged";
|
|
48920
48929
|
}
|
|
48921
48930
|
function VN(e, t) {
|
|
48922
48931
|
const n = {
|
|
@@ -48955,7 +48964,7 @@ function Fc(e, t) {
|
|
|
48955
48964
|
bb(e, n);
|
|
48956
48965
|
}
|
|
48957
48966
|
}
|
|
48958
|
-
function
|
|
48967
|
+
function n6(e, t, n, r) {
|
|
48959
48968
|
const o = jt.get(e);
|
|
48960
48969
|
if (!o || n.length === 0) return;
|
|
48961
48970
|
let s = !1;
|
|
@@ -48968,7 +48977,7 @@ function t6(e, t, n, r) {
|
|
|
48968
48977
|
);
|
|
48969
48978
|
i.length !== o.layers.length && (o.layers = i), s && bb(e, o);
|
|
48970
48979
|
}
|
|
48971
|
-
function
|
|
48980
|
+
function r6(e) {
|
|
48972
48981
|
return jt.get(e)?.deletedAt !== void 0;
|
|
48973
48982
|
}
|
|
48974
48983
|
function $c(e, t) {
|
|
@@ -48981,28 +48990,28 @@ function $N(e) {
|
|
|
48981
48990
|
}
|
|
48982
48991
|
return e.deletedAt;
|
|
48983
48992
|
}
|
|
48984
|
-
function
|
|
48993
|
+
function o6(e) {
|
|
48985
48994
|
return e.layers.some((t) => t.created);
|
|
48986
48995
|
}
|
|
48987
48996
|
function bb(e, t) {
|
|
48988
48997
|
t.version += 1, yo += 1, vb(e);
|
|
48989
48998
|
}
|
|
48990
|
-
function
|
|
48999
|
+
function s6(e, t, n, r) {
|
|
48991
49000
|
let o = !1;
|
|
48992
49001
|
if (n === "fetch") {
|
|
48993
49002
|
for (const s of r)
|
|
48994
49003
|
t.stale.delete(s) && (o = !0);
|
|
48995
49004
|
return o;
|
|
48996
49005
|
}
|
|
48997
|
-
for (const s of
|
|
49006
|
+
for (const s of i6(e, t, r))
|
|
48998
49007
|
t.stale.has(s) || (t.stale.add(s), o = !0);
|
|
48999
49008
|
return o;
|
|
49000
49009
|
}
|
|
49001
|
-
function
|
|
49002
|
-
const r =
|
|
49010
|
+
function i6(e, t, n) {
|
|
49011
|
+
const r = JU(e);
|
|
49003
49012
|
return r === "*" ? Object.keys(t.data).filter((o) => o !== "id" && !n.has(o)) : r.filter((o) => !n.has(o));
|
|
49004
49013
|
}
|
|
49005
|
-
function
|
|
49014
|
+
function a6(e, t) {
|
|
49006
49015
|
const n = {};
|
|
49007
49016
|
for (const [r, o] of Object.entries(e))
|
|
49008
49017
|
AN(r) || (n[r] = Fp(o, t));
|
|
@@ -49025,17 +49034,17 @@ function Fp(e, t) {
|
|
|
49025
49034
|
}
|
|
49026
49035
|
return e;
|
|
49027
49036
|
}
|
|
49028
|
-
function
|
|
49037
|
+
function l6(e) {
|
|
49029
49038
|
const t = ur.get(e);
|
|
49030
49039
|
if (t) {
|
|
49031
49040
|
if (t.atGlobal === yo) return t.value;
|
|
49032
|
-
if (
|
|
49041
|
+
if (c6(t.deps))
|
|
49033
49042
|
return t.atGlobal = yo, t.value;
|
|
49034
49043
|
}
|
|
49035
49044
|
const n = /* @__PURE__ */ new Map(), o = $p(e, n, /* @__PURE__ */ new Map());
|
|
49036
49045
|
return ur.set(e, { value: o, deps: n, atGlobal: yo }), o;
|
|
49037
49046
|
}
|
|
49038
|
-
function
|
|
49047
|
+
function c6(e) {
|
|
49039
49048
|
for (const [t, n] of e) {
|
|
49040
49049
|
const r = jt.get(t);
|
|
49041
49050
|
if ((r ? r.version : DN) !== n) return !1;
|
|
@@ -49085,16 +49094,16 @@ function Bi(e, t, n) {
|
|
|
49085
49094
|
return e;
|
|
49086
49095
|
}
|
|
49087
49096
|
const Va = Object.freeze({ status: "unknown" });
|
|
49088
|
-
function
|
|
49097
|
+
function u6() {
|
|
49089
49098
|
return Va;
|
|
49090
49099
|
}
|
|
49091
49100
|
function bd(e, t) {
|
|
49092
|
-
const n =
|
|
49101
|
+
const n = d6(e);
|
|
49093
49102
|
if (n.status !== "present") return n;
|
|
49094
49103
|
const r = jt.get(e);
|
|
49095
|
-
return r && (r.tags.has(t) ||
|
|
49104
|
+
return r && (r.tags.has(t) || o6(r)) ? n : Va;
|
|
49096
49105
|
}
|
|
49097
|
-
function
|
|
49106
|
+
function d6(e) {
|
|
49098
49107
|
const t = jt.get(e);
|
|
49099
49108
|
if (!t)
|
|
49100
49109
|
return Lr.delete(e), Va;
|
|
@@ -49104,7 +49113,7 @@ function u6(e) {
|
|
|
49104
49113
|
const i = Object.freeze({ status: "deleted", at: r });
|
|
49105
49114
|
return Lr.set(e, i), i;
|
|
49106
49115
|
}
|
|
49107
|
-
const o =
|
|
49116
|
+
const o = l6(e);
|
|
49108
49117
|
if (n && n.status === "present" && n.record === o && n.version === t.version)
|
|
49109
49118
|
return n;
|
|
49110
49119
|
const s = Object.freeze({
|
|
@@ -49115,33 +49124,33 @@ function u6(e) {
|
|
|
49115
49124
|
});
|
|
49116
49125
|
return Lr.set(e, s), s;
|
|
49117
49126
|
}
|
|
49118
|
-
function
|
|
49127
|
+
function k9(e, t, n) {
|
|
49119
49128
|
return bd(ro(e, t), n);
|
|
49120
49129
|
}
|
|
49121
49130
|
let _s = /* @__PURE__ */ new Set(), zn = null;
|
|
49122
49131
|
const xb = typeof requestAnimationFrame == "function", LN = typeof document < "u";
|
|
49123
|
-
function
|
|
49132
|
+
function f6() {
|
|
49124
49133
|
return LN && document.hidden;
|
|
49125
49134
|
}
|
|
49126
|
-
function
|
|
49127
|
-
return xb && !
|
|
49135
|
+
function p6(e) {
|
|
49136
|
+
return xb && !f6() ? requestAnimationFrame(e) : setTimeout(e, 0);
|
|
49128
49137
|
}
|
|
49129
49138
|
function yb(e) {
|
|
49130
49139
|
xb && cancelAnimationFrame(e), clearTimeout(e);
|
|
49131
49140
|
}
|
|
49132
49141
|
function vb(e) {
|
|
49133
|
-
_s.add(e), zn === null && (zn =
|
|
49142
|
+
_s.add(e), zn === null && (zn = p6(() => {
|
|
49134
49143
|
zn = null, vo();
|
|
49135
49144
|
}));
|
|
49136
49145
|
}
|
|
49137
|
-
function
|
|
49146
|
+
function m6() {
|
|
49138
49147
|
!LN || !xb || document.addEventListener("visibilitychange", () => {
|
|
49139
49148
|
!document.hidden || zn === null || (yb(zn), zn = setTimeout(() => {
|
|
49140
49149
|
zn = null, vo();
|
|
49141
49150
|
}, 0));
|
|
49142
49151
|
});
|
|
49143
49152
|
}
|
|
49144
|
-
|
|
49153
|
+
m6();
|
|
49145
49154
|
function vo() {
|
|
49146
49155
|
if (zn !== null && (yb(zn), zn = null), _s.size === 0) return;
|
|
49147
49156
|
const e = _s;
|
|
@@ -49162,7 +49171,7 @@ function vo() {
|
|
|
49162
49171
|
}
|
|
49163
49172
|
for (const n of [...ia]) n();
|
|
49164
49173
|
}
|
|
49165
|
-
function
|
|
49174
|
+
function h6() {
|
|
49166
49175
|
for (const e of [...zr.values()])
|
|
49167
49176
|
for (const t of [...e]) t();
|
|
49168
49177
|
for (const e of [...ia]) e();
|
|
@@ -49180,13 +49189,13 @@ function zN(e) {
|
|
|
49180
49189
|
const Sb = Object.freeze([]);
|
|
49181
49190
|
let Di = Sb;
|
|
49182
49191
|
function Cb() {
|
|
49183
|
-
const e =
|
|
49184
|
-
return
|
|
49192
|
+
const e = b6();
|
|
49193
|
+
return x6(Di, e) || (Di = Object.freeze(e)), Di;
|
|
49185
49194
|
}
|
|
49186
|
-
function
|
|
49195
|
+
function g6() {
|
|
49187
49196
|
return Sb;
|
|
49188
49197
|
}
|
|
49189
|
-
function
|
|
49198
|
+
function b6() {
|
|
49190
49199
|
const e = /* @__PURE__ */ new Map();
|
|
49191
49200
|
for (const [t, n] of jt)
|
|
49192
49201
|
if (n.stale.size !== 0)
|
|
@@ -49198,7 +49207,7 @@ function g6() {
|
|
|
49198
49207
|
}
|
|
49199
49208
|
return [...e].map(([t, n]) => ({ key: t, fields: Object.freeze([...n].sort()) })).sort((t, n) => t.key < n.key ? -1 : t.key > n.key ? 1 : 0);
|
|
49200
49209
|
}
|
|
49201
|
-
function
|
|
49210
|
+
function x6(e, t) {
|
|
49202
49211
|
return e.length !== t.length ? !1 : e.every((n, r) => {
|
|
49203
49212
|
const o = t[r];
|
|
49204
49213
|
return n.key === o.key && n.fields.length === o.fields.length && n.fields.every((s, i) => s === o.fields[i]);
|
|
@@ -49217,7 +49226,7 @@ function Eb(e) {
|
|
|
49217
49226
|
}
|
|
49218
49227
|
};
|
|
49219
49228
|
}
|
|
49220
|
-
function
|
|
49229
|
+
function y6() {
|
|
49221
49230
|
const e = /* @__PURE__ */ new Set(), t = [...co.keys()];
|
|
49222
49231
|
for (const r of zr.keys()) t.push(r);
|
|
49223
49232
|
for (const [r, o] of jt) o.layers.length > 0 && t.push(r);
|
|
@@ -49248,10 +49257,10 @@ function Lp(e, t) {
|
|
|
49248
49257
|
if (Ys(e))
|
|
49249
49258
|
for (const n of Object.values(e)) Lp(n, t);
|
|
49250
49259
|
}
|
|
49251
|
-
function
|
|
49260
|
+
function N9() {
|
|
49252
49261
|
zn !== null && (yb(zn), zn = null), jt.clear(), ur.clear(), Lr.clear(), zr.clear(), ia.clear(), co.clear(), _s = /* @__PURE__ */ new Set(), Di = Sb, yo = 0, ho = void 0;
|
|
49253
49262
|
}
|
|
49254
|
-
function
|
|
49263
|
+
function I9() {
|
|
49255
49264
|
return { records: jt.size, memos: ur.size, roots: co.size, listeners: zr.size };
|
|
49256
49265
|
}
|
|
49257
49266
|
function Ys(e) {
|
|
@@ -49269,7 +49278,7 @@ function zp(e, t) {
|
|
|
49269
49278
|
}
|
|
49270
49279
|
return !1;
|
|
49271
49280
|
}
|
|
49272
|
-
function
|
|
49281
|
+
function v6(e, t, n) {
|
|
49273
49282
|
const r = t == null ? null : ro(e.type, t), o = n.needs, s = De(
|
|
49274
49283
|
(l) => r === null ? () => {
|
|
49275
49284
|
} : wb(r, l),
|
|
@@ -49277,10 +49286,10 @@ function y6(e, t, n) {
|
|
|
49277
49286
|
), i = De(
|
|
49278
49287
|
() => r === null ? Va : bd(r, o),
|
|
49279
49288
|
[r, o]
|
|
49280
|
-
), a = Pr(s, i,
|
|
49289
|
+
), a = Pr(s, i, u6);
|
|
49281
49290
|
return qe(() => r === null ? void 0 : Eb([r]), [r]), a;
|
|
49282
49291
|
}
|
|
49283
|
-
function
|
|
49292
|
+
function T9(e, t, n) {
|
|
49284
49293
|
const r = n.needs, o = Ye(() => t.map((d) => ro(e.type, d)), [e.type, t.join("\0")]), s = o.join("\0"), i = De(
|
|
49285
49294
|
(d) => {
|
|
49286
49295
|
const f = o.map((h) => wb(h, d));
|
|
@@ -49296,26 +49305,26 @@ function I9(e, t, n) {
|
|
|
49296
49305
|
}, [s, r]), c = Ye(() => Object.freeze(o.map(() => Va)), [s]), u = De(() => c, [c]), m = Pr(i, l, u);
|
|
49297
49306
|
return qe(() => Eb(o), [s]), m;
|
|
49298
49307
|
}
|
|
49299
|
-
function
|
|
49300
|
-
return Pr(zN, Cb,
|
|
49308
|
+
function M9() {
|
|
49309
|
+
return Pr(zN, Cb, g6);
|
|
49301
49310
|
}
|
|
49302
|
-
const
|
|
49311
|
+
const w6 = 6e4, S6 = 6e4, C6 = 1e3, E6 = 3e4, R6 = 6;
|
|
49303
49312
|
let xd = 0;
|
|
49304
49313
|
const Lc = /* @__PURE__ */ new Set(), zc = /* @__PURE__ */ new Set();
|
|
49305
|
-
function
|
|
49314
|
+
function k6() {
|
|
49306
49315
|
return xd;
|
|
49307
49316
|
}
|
|
49308
49317
|
function Rb(e) {
|
|
49309
49318
|
return Lc.add(e), () => Lc.delete(e);
|
|
49310
49319
|
}
|
|
49311
|
-
function
|
|
49320
|
+
function N6(e) {
|
|
49312
49321
|
return zc.add(e), () => zc.delete(e);
|
|
49313
49322
|
}
|
|
49314
|
-
function
|
|
49323
|
+
function I6() {
|
|
49315
49324
|
xd += 1;
|
|
49316
49325
|
for (const e of [...Lc]) e();
|
|
49317
49326
|
}
|
|
49318
|
-
function
|
|
49327
|
+
function P9() {
|
|
49319
49328
|
xd = 0, Lc.clear(), zc.clear();
|
|
49320
49329
|
}
|
|
49321
49330
|
function yd(e) {
|
|
@@ -49325,16 +49334,16 @@ function kb(e) {
|
|
|
49325
49334
|
return e.kind === "all" ? "all" : e.kind === "ids" ? `ids:${e.ids.join(",")}` : `filter:${Bp(e.filter)}`;
|
|
49326
49335
|
}
|
|
49327
49336
|
function BN(e, t) {
|
|
49328
|
-
const n =
|
|
49337
|
+
const n = T6(t) ? t : yd(t);
|
|
49329
49338
|
return `${di(e)}|${kb(n)}`;
|
|
49330
49339
|
}
|
|
49331
|
-
function
|
|
49340
|
+
function T6(e) {
|
|
49332
49341
|
return typeof e == "object" && e !== null && !Array.isArray(e) && "kind" in e;
|
|
49333
49342
|
}
|
|
49334
49343
|
function Bp(e) {
|
|
49335
49344
|
return e === null || typeof e != "object" ? JSON.stringify(e) ?? "null" : Array.isArray(e) ? `[${e.map(Bp).join(",")}]` : `{${Object.entries(e).sort(([n], [r]) => n < r ? -1 : n > r ? 1 : 0).map(([n, r]) => `${JSON.stringify(n)}:${Bp(r)}`).join(",")}}`;
|
|
49336
49345
|
}
|
|
49337
|
-
class
|
|
49346
|
+
class M6 {
|
|
49338
49347
|
transport;
|
|
49339
49348
|
entries = /* @__PURE__ */ new Map();
|
|
49340
49349
|
channels = /* @__PURE__ */ new Map();
|
|
@@ -49350,11 +49359,11 @@ class T6 {
|
|
|
49350
49359
|
disposed = !1;
|
|
49351
49360
|
constructor(t) {
|
|
49352
49361
|
this.transport = t.transport, this.tenant = t.tenant, this.options = {
|
|
49353
|
-
keepaliveIntervalMs: t.keepaliveIntervalMs ??
|
|
49354
|
-
expiryMarginMs: t.expiryMarginMs ??
|
|
49355
|
-
baseBackoffMs: t.baseBackoffMs ??
|
|
49356
|
-
maxBackoffMs: t.maxBackoffMs ??
|
|
49357
|
-
maxAttempts: t.maxAttempts ??
|
|
49362
|
+
keepaliveIntervalMs: t.keepaliveIntervalMs ?? w6,
|
|
49363
|
+
expiryMarginMs: t.expiryMarginMs ?? S6,
|
|
49364
|
+
baseBackoffMs: t.baseBackoffMs ?? C6,
|
|
49365
|
+
maxBackoffMs: t.maxBackoffMs ?? E6,
|
|
49366
|
+
maxAttempts: t.maxAttempts ?? R6,
|
|
49358
49367
|
createdEventName: t.createdEventName ?? "created",
|
|
49359
49368
|
now: t.now ?? Date.now,
|
|
49360
49369
|
isSelfEvent: t.isSelfEvent,
|
|
@@ -49526,7 +49535,7 @@ class T6 {
|
|
|
49526
49535
|
try {
|
|
49527
49536
|
const r = await this.transport.subscribe(this.requestFor(t, this.tenant));
|
|
49528
49537
|
if (this.disposed) return;
|
|
49529
|
-
t.registered = !0, t.everRegistered = !0, t.keepaliveFailed = !1, t.expiresAt = r?.expiresAt, t.serverKeys = r?.keys ?? [], t.attempts = 0, t.lastError = void 0, this.diagnose({ kind: n ? "resubscribed" : "subscribed", key: t.key, type: t.type }), n &&
|
|
49538
|
+
t.registered = !0, t.everRegistered = !0, t.keepaliveFailed = !1, t.expiresAt = r?.expiresAt, t.serverKeys = r?.keys ?? [], t.attempts = 0, t.lastError = void 0, this.diagnose({ kind: n ? "resubscribed" : "subscribed", key: t.key, type: t.type }), n && I6();
|
|
49530
49539
|
} catch (r) {
|
|
49531
49540
|
if (this.disposed) return;
|
|
49532
49541
|
t.registered = !1, t.attempts += 1, t.lastError = Yl(r), this.lastError = t.lastError, this.diagnose({
|
|
@@ -49654,7 +49663,7 @@ class T6 {
|
|
|
49654
49663
|
this.diagnose({ kind: "self-event-dropped", type: t, event: n });
|
|
49655
49664
|
return;
|
|
49656
49665
|
}
|
|
49657
|
-
const s = Er(r, { source: "broadcast", tenant: o }), i = s.verdict === "applied" || s.verdict === "unchanged" ?
|
|
49666
|
+
const s = Er(r, { source: "broadcast", tenant: o }), i = s.verdict === "applied" || s.verdict === "unchanged" ? P6(r) : void 0;
|
|
49658
49667
|
this.diagnose({ kind: "event", type: t, event: n, key: i, message: s.verdict });
|
|
49659
49668
|
const a = {
|
|
49660
49669
|
type: t,
|
|
@@ -49742,7 +49751,7 @@ class T6 {
|
|
|
49742
49751
|
this.options.onDiagnostic?.({ ...t, at: this.options.now() });
|
|
49743
49752
|
}
|
|
49744
49753
|
}
|
|
49745
|
-
function
|
|
49754
|
+
function P6(e) {
|
|
49746
49755
|
const t = e.__type, n = e.id;
|
|
49747
49756
|
if (!(typeof t != "string" || t === "") && !(typeof n != "string" && typeof n != "number"))
|
|
49748
49757
|
return ro(t, n);
|
|
@@ -49758,22 +49767,22 @@ function Ii(e, t) {
|
|
|
49758
49767
|
}
|
|
49759
49768
|
}
|
|
49760
49769
|
const HN = kn(null);
|
|
49761
|
-
function
|
|
49770
|
+
function O9({
|
|
49762
49771
|
transport: e,
|
|
49763
49772
|
tenant: t,
|
|
49764
49773
|
ownsStoreTenant: n = !0,
|
|
49765
49774
|
children: r,
|
|
49766
49775
|
...o
|
|
49767
49776
|
}) {
|
|
49768
|
-
const [s] = Ce(() => new
|
|
49777
|
+
const [s] = Ce(() => new M6({ transport: e, tenant: t, ...o })), i = Re(t);
|
|
49769
49778
|
return qe(() => (s.start(), () => s.stop()), [s]), qe(() => {
|
|
49770
|
-
i.current !== t && (i.current = t, s.setTenant(t)), n &&
|
|
49779
|
+
i.current !== t && (i.current = t, s.setTenant(t)), n && e6(t);
|
|
49771
49780
|
}, [s, t, n]), /* @__PURE__ */ p(HN.Provider, { value: s, children: r });
|
|
49772
49781
|
}
|
|
49773
49782
|
function UN() {
|
|
49774
49783
|
return Rn(HN);
|
|
49775
49784
|
}
|
|
49776
|
-
function
|
|
49785
|
+
function A9(e, t, n) {
|
|
49777
49786
|
const r = UN(), o = kb(yd(t)), s = [...n].sort().join(","), i = Re({ scope: t, events: n });
|
|
49778
49787
|
i.current = { scope: t, events: n }, qe(() => {
|
|
49779
49788
|
if (r)
|
|
@@ -49787,7 +49796,7 @@ const fw = Object.freeze({
|
|
|
49787
49796
|
epoch: 0,
|
|
49788
49797
|
lastError: void 0
|
|
49789
49798
|
});
|
|
49790
|
-
function
|
|
49799
|
+
function D9() {
|
|
49791
49800
|
const e = UN(), t = De(
|
|
49792
49801
|
(o) => {
|
|
49793
49802
|
if (!e) return () => {
|
|
@@ -49801,13 +49810,13 @@ function A9() {
|
|
|
49801
49810
|
), n = De(() => e ? e.readHealth() : fw, [e]), r = De(() => fw, []);
|
|
49802
49811
|
return Pr(t, n, r);
|
|
49803
49812
|
}
|
|
49804
|
-
function
|
|
49805
|
-
return Pr(Rb,
|
|
49813
|
+
function _9() {
|
|
49814
|
+
return Pr(Rb, k6, () => 0);
|
|
49806
49815
|
}
|
|
49807
|
-
const
|
|
49816
|
+
const O6 = 1e3;
|
|
49808
49817
|
class GN {
|
|
49809
49818
|
constructor(t, n = {}) {
|
|
49810
|
-
this.run = t, this.minIntervalMs = n.minIntervalMs ??
|
|
49819
|
+
this.run = t, this.minIntervalMs = n.minIntervalMs ?? O6, this.now = n.now ?? Date.now;
|
|
49811
49820
|
}
|
|
49812
49821
|
run;
|
|
49813
49822
|
inFlight = !1;
|
|
@@ -49859,32 +49868,32 @@ class GN {
|
|
|
49859
49868
|
this.disposed = !0, this.timer !== null && (clearTimeout(this.timer), this.timer = null);
|
|
49860
49869
|
}
|
|
49861
49870
|
}
|
|
49862
|
-
let
|
|
49871
|
+
let A6 = 1;
|
|
49863
49872
|
const Vs = /* @__PURE__ */ new Map();
|
|
49864
49873
|
let Bc = null, Hp = null, Hc = null;
|
|
49865
49874
|
function jN(e) {
|
|
49866
|
-
const t =
|
|
49867
|
-
return Vs.set(t, e),
|
|
49875
|
+
const t = A6++;
|
|
49876
|
+
return Vs.set(t, e), D6(), () => {
|
|
49868
49877
|
Vs.delete(t), Vs.size === 0 && WN();
|
|
49869
49878
|
};
|
|
49870
49879
|
}
|
|
49871
|
-
function
|
|
49872
|
-
Bc || (Hc = Cb(), Bc = zN(
|
|
49880
|
+
function D6() {
|
|
49881
|
+
Bc || (Hc = Cb(), Bc = zN(_6), Hp = Rb(V6));
|
|
49873
49882
|
}
|
|
49874
49883
|
function WN() {
|
|
49875
49884
|
Bc?.(), Hp?.(), Bc = null, Hp = null, Hc = null;
|
|
49876
49885
|
}
|
|
49877
|
-
function
|
|
49886
|
+
function _6() {
|
|
49878
49887
|
const e = Cb();
|
|
49879
49888
|
if (e === Hc || (Hc = e, e.length === 0)) return;
|
|
49880
49889
|
const t = new Set(e.map((n) => n.key));
|
|
49881
49890
|
for (const n of [...Vs.values()])
|
|
49882
49891
|
n.roots().some((o) => t.has(o)) && n.request();
|
|
49883
49892
|
}
|
|
49884
|
-
function
|
|
49893
|
+
function V6() {
|
|
49885
49894
|
for (const e of [...Vs.values()]) e.request();
|
|
49886
49895
|
}
|
|
49887
|
-
function
|
|
49896
|
+
function V9() {
|
|
49888
49897
|
Vs.clear(), WN();
|
|
49889
49898
|
}
|
|
49890
49899
|
const vd = Object.freeze({
|
|
@@ -49894,21 +49903,21 @@ const vd = Object.freeze({
|
|
|
49894
49903
|
meta: void 0,
|
|
49895
49904
|
keys: Object.freeze([])
|
|
49896
49905
|
});
|
|
49897
|
-
function
|
|
49906
|
+
function F6() {
|
|
49898
49907
|
return vd;
|
|
49899
49908
|
}
|
|
49900
49909
|
const wn = /* @__PURE__ */ new Map(), Is = /* @__PURE__ */ new Map();
|
|
49901
49910
|
let Qo = null;
|
|
49902
|
-
function
|
|
49903
|
-
Qo || (Qo =
|
|
49904
|
-
e.isCreate &&
|
|
49911
|
+
function $6() {
|
|
49912
|
+
Qo || (Qo = N6((e) => {
|
|
49913
|
+
e.isCreate && U6(e);
|
|
49905
49914
|
}));
|
|
49906
49915
|
}
|
|
49907
|
-
function
|
|
49916
|
+
function L6() {
|
|
49908
49917
|
wn.size > 0 || !Qo || (Qo(), Qo = null);
|
|
49909
49918
|
}
|
|
49910
|
-
function
|
|
49911
|
-
const n =
|
|
49919
|
+
function z6(e, t) {
|
|
49920
|
+
const n = j6(t.type, t.createdScope);
|
|
49912
49921
|
let r = wn.get(e);
|
|
49913
49922
|
r || (r = {
|
|
49914
49923
|
id: e,
|
|
@@ -49925,7 +49934,7 @@ function L6(e, t) {
|
|
|
49925
49934
|
retainRelease: null,
|
|
49926
49935
|
snapshot: null,
|
|
49927
49936
|
dirty: !0
|
|
49928
|
-
}, wn.set(e, r)), r.type = t.type, r.tag = t.tag, r.created = n, r.refs += 1,
|
|
49937
|
+
}, wn.set(e, r)), r.type = t.type, r.tag = t.tag, r.created = n, r.refs += 1, $6();
|
|
49929
49938
|
let o = !1;
|
|
49930
49939
|
return () => {
|
|
49931
49940
|
if (o) return;
|
|
@@ -49933,46 +49942,46 @@ function L6(e, t) {
|
|
|
49933
49942
|
const s = wn.get(e);
|
|
49934
49943
|
if (s && (s.refs -= 1, !(s.refs > 0))) {
|
|
49935
49944
|
for (const i of s.memberReleases) i();
|
|
49936
|
-
s.memberReleases = [], s.retainRelease?.(), s.retainRelease = null, wn.delete(e),
|
|
49945
|
+
s.memberReleases = [], s.retainRelease?.(), s.retainRelease = null, wn.delete(e), L6();
|
|
49937
49946
|
}
|
|
49938
49947
|
};
|
|
49939
49948
|
}
|
|
49940
|
-
function
|
|
49949
|
+
function B6(e, t, n, r = []) {
|
|
49941
49950
|
const o = wn.get(e);
|
|
49942
49951
|
if (!o) return;
|
|
49943
49952
|
o.keys = [...t];
|
|
49944
49953
|
const s = /* @__PURE__ */ new Set([...o.keys, ...r]);
|
|
49945
49954
|
o.pending = o.pending.filter((i) => !s.has(i)), o.meta = n, Fa(o), $a(o);
|
|
49946
49955
|
}
|
|
49947
|
-
function
|
|
49956
|
+
function H6(e) {
|
|
49948
49957
|
return wn.get(e)?.pending ?? vd.keys;
|
|
49949
49958
|
}
|
|
49950
|
-
function
|
|
49959
|
+
function U6(e) {
|
|
49951
49960
|
const t = e.key;
|
|
49952
49961
|
if (t)
|
|
49953
49962
|
for (const n of wn.values())
|
|
49954
|
-
n.type !== e.type || !
|
|
49963
|
+
n.type !== e.type || !G6(n, e) || n.keys.includes(t) || n.pending.includes(t) || (n.pending = [...n.pending, t], Fa(n), $a(n));
|
|
49955
49964
|
}
|
|
49956
|
-
function
|
|
49965
|
+
function G6(e, t) {
|
|
49957
49966
|
const n = e.created;
|
|
49958
49967
|
return n ? n.scope.kind === "all" ? !0 : n.scope.kind === "ids" ? n.scope.ids.includes(String(t.payload.id)) : t.subscriptions === void 0 ? (nn(
|
|
49959
49968
|
"realtime",
|
|
49960
49969
|
`a "${t.event}" for ${t.type} carried no subscription attribution, so a list filtered by ${n.key} cannot tell which subscription it was sent for, and does not count it. The transport needs \`subscriptionsOf\`, and the server has to name the subscriptions an event satisfied.`
|
|
49961
49970
|
), !1) : t.subscriptions.includes(n.key) : !1;
|
|
49962
49971
|
}
|
|
49963
|
-
function
|
|
49972
|
+
function j6(e, t) {
|
|
49964
49973
|
return t === void 0 ? null : { scope: t, key: BN(e, t) };
|
|
49965
49974
|
}
|
|
49966
49975
|
function Fa(e) {
|
|
49967
49976
|
for (const n of e.memberReleases) n();
|
|
49968
49977
|
const t = Nb(e);
|
|
49969
|
-
e.memberReleases = t.map((n) => wb(n, () =>
|
|
49970
|
-
}
|
|
49971
|
-
function j6(e) {
|
|
49972
|
-
wn.has(e.id) && (W6(e), $a(e));
|
|
49978
|
+
e.memberReleases = t.map((n) => wb(n, () => W6(e))), e.retainRelease?.(), e.retainRelease = Eb(t);
|
|
49973
49979
|
}
|
|
49974
49980
|
function W6(e) {
|
|
49975
|
-
|
|
49981
|
+
wn.has(e.id) && (K6(e), $a(e));
|
|
49982
|
+
}
|
|
49983
|
+
function K6(e) {
|
|
49984
|
+
const t = (o) => r6(o), n = e.keys.filter((o) => !t(o)), r = e.pending.filter((o) => !t(o));
|
|
49976
49985
|
n.length === e.keys.length && r.length === e.pending.length || (e.keys = n, e.pending = r, Fa(e));
|
|
49977
49986
|
}
|
|
49978
49987
|
function $a(e) {
|
|
@@ -49981,7 +49990,7 @@ function $a(e) {
|
|
|
49981
49990
|
if (t)
|
|
49982
49991
|
for (const n of [...t]) n();
|
|
49983
49992
|
}
|
|
49984
|
-
function
|
|
49993
|
+
function q6(e, t, n, r) {
|
|
49985
49994
|
const o = [];
|
|
49986
49995
|
for (const s of wn.values()) {
|
|
49987
49996
|
if (s.type !== t) continue;
|
|
@@ -49999,23 +50008,23 @@ function pw(e, t) {
|
|
|
49999
50008
|
function Nb(e) {
|
|
50000
50009
|
return [...e.optimisticHead, ...e.keys, ...e.optimisticTail, ...e.pending];
|
|
50001
50010
|
}
|
|
50002
|
-
function
|
|
50011
|
+
function Y6(e, t) {
|
|
50003
50012
|
let n = Is.get(e);
|
|
50004
50013
|
return n || (n = /* @__PURE__ */ new Set(), Is.set(e, n)), n.add(t), () => {
|
|
50005
50014
|
const r = Is.get(e);
|
|
50006
50015
|
r && (r.delete(t), r.size === 0 && Is.delete(e));
|
|
50007
50016
|
};
|
|
50008
50017
|
}
|
|
50009
|
-
function
|
|
50018
|
+
function X6(e) {
|
|
50010
50019
|
const t = wn.get(e);
|
|
50011
50020
|
return t ? Nb(t) : vd.keys;
|
|
50012
50021
|
}
|
|
50013
|
-
function
|
|
50022
|
+
function Z6(e) {
|
|
50014
50023
|
const t = wn.get(e);
|
|
50015
50024
|
if (!t) return vd;
|
|
50016
50025
|
if (!t.dirty && t.snapshot) return t.snapshot;
|
|
50017
50026
|
const n = mw([...t.optimisticHead, ...t.keys, ...t.optimisticTail], t.tag), r = mw(t.pending, t.tag), o = Nb(t), s = t.snapshot;
|
|
50018
|
-
if (t.dirty = !1, s && hw(s.items, n) && hw(s.pending, r) && s.pendingCount === t.pending.length && s.meta === t.meta &&
|
|
50027
|
+
if (t.dirty = !1, s && hw(s.items, n) && hw(s.pending, r) && s.pendingCount === t.pending.length && s.meta === t.meta && Q6(s.keys, o))
|
|
50019
50028
|
return s;
|
|
50020
50029
|
const i = Object.freeze({
|
|
50021
50030
|
items: Object.freeze(n),
|
|
@@ -50037,10 +50046,10 @@ function mw(e, t) {
|
|
|
50037
50046
|
function hw(e, t) {
|
|
50038
50047
|
return e.length === t.length && e.every((n, r) => n === t[r]);
|
|
50039
50048
|
}
|
|
50040
|
-
function
|
|
50049
|
+
function Q6(e, t) {
|
|
50041
50050
|
return e.length === t.length && e.every((n, r) => n === t[r]);
|
|
50042
50051
|
}
|
|
50043
|
-
function
|
|
50052
|
+
function F9() {
|
|
50044
50053
|
for (const e of wn.values()) {
|
|
50045
50054
|
for (const t of e.memberReleases) t();
|
|
50046
50055
|
e.retainRelease?.();
|
|
@@ -50048,8 +50057,8 @@ function V9() {
|
|
|
50048
50057
|
wn.clear(), Is.clear(), Qo?.(), Qo = null;
|
|
50049
50058
|
}
|
|
50050
50059
|
const Xl = { inFlight: !1, settled: !1, error: void 0 };
|
|
50051
|
-
function
|
|
50052
|
-
const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : ro(e.type, t), l =
|
|
50060
|
+
function $9(e, t, n) {
|
|
50061
|
+
const { tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i } = n, a = t == null ? null : ro(e.type, t), l = v6(e, t, { needs: r }), [c, u] = Ce(Xl), m = Re(n.fetch);
|
|
50053
50062
|
m.current = n.fetch;
|
|
50054
50063
|
const d = Re(o);
|
|
50055
50064
|
d.current = o;
|
|
@@ -50092,7 +50101,7 @@ function F9(e, t, n) {
|
|
|
50092
50101
|
[l, c, g]
|
|
50093
50102
|
);
|
|
50094
50103
|
}
|
|
50095
|
-
function
|
|
50104
|
+
function L9(e, t) {
|
|
50096
50105
|
const { key: n, tag: r, tenant: o, enabled: s = !0, minRefetchIntervalMs: i, createdScope: a } = t, l = a === void 0 ? void 0 : yd(a), c = l === void 0 ? "" : kb(l), u = Re(l);
|
|
50097
50106
|
u.current = l;
|
|
50098
50107
|
const [m, d] = Ce({ slot: n, status: Xl }), f = m.slot === n ? m.status : Xl, h = Re(t.fetch);
|
|
@@ -50103,27 +50112,27 @@ function $9(e, t) {
|
|
|
50103
50112
|
qe(() => (x.current = !0, () => {
|
|
50104
50113
|
x.current = !1;
|
|
50105
50114
|
}), []), qe(
|
|
50106
|
-
() =>
|
|
50115
|
+
() => z6(n, { type: e.type, tag: r, createdScope: u.current }),
|
|
50107
50116
|
[n, e.type, r, c]
|
|
50108
50117
|
);
|
|
50109
|
-
const y = De((E) =>
|
|
50118
|
+
const y = De((E) => Y6(n, E), [n]), w = De(() => Z6(n), [n]), v = Pr(y, w, F6), S = Re(null);
|
|
50110
50119
|
qe(() => {
|
|
50111
50120
|
if (!s) {
|
|
50112
50121
|
S.current = null;
|
|
50113
50122
|
return;
|
|
50114
50123
|
}
|
|
50115
50124
|
const E = new GN(async () => {
|
|
50116
|
-
const k = g.current ?? gd(), I =
|
|
50125
|
+
const k = g.current ?? gd(), I = H6(n), T = (N) => d((O) => ({ slot: n, status: N(O.slot === n ? O.status : Xl) }));
|
|
50117
50126
|
T((N) => ({ ...N, inFlight: !0 }));
|
|
50118
50127
|
try {
|
|
50119
50128
|
const N = await h.current();
|
|
50120
|
-
|
|
50129
|
+
t6(N.items, { source: "fetch", tag: r, tenant: k }), B6(n, N.items.map((O) => J6(O, e.type)).filter(eG), N.meta, I), x.current && T(() => ({ inFlight: !1, settled: !0, error: void 0 }));
|
|
50121
50130
|
} catch (N) {
|
|
50122
50131
|
x.current && T(() => ({ inFlight: !1, settled: !0, error: KN(N) }));
|
|
50123
50132
|
}
|
|
50124
50133
|
}, { minIntervalMs: i });
|
|
50125
50134
|
S.current = E, E.runNow();
|
|
50126
|
-
const R = jN({ roots: () =>
|
|
50135
|
+
const R = jN({ roots: () => X6(n), request: () => E.request() });
|
|
50127
50136
|
return () => {
|
|
50128
50137
|
R(), E.dispose(), S.current === E && (S.current = null);
|
|
50129
50138
|
};
|
|
@@ -50145,26 +50154,26 @@ function $9(e, t) {
|
|
|
50145
50154
|
[v, f, s, C]
|
|
50146
50155
|
);
|
|
50147
50156
|
}
|
|
50148
|
-
function
|
|
50157
|
+
function z9(e, t) {
|
|
50149
50158
|
return Er(e, {
|
|
50150
50159
|
source: "fetch",
|
|
50151
50160
|
tag: t.tag,
|
|
50152
50161
|
tenant: t.tenant ?? gd()
|
|
50153
50162
|
});
|
|
50154
50163
|
}
|
|
50155
|
-
function
|
|
50164
|
+
function B9(e = 6e4) {
|
|
50156
50165
|
qe(() => {
|
|
50157
|
-
const t = setInterval(() =>
|
|
50166
|
+
const t = setInterval(() => y6(), e);
|
|
50158
50167
|
return () => clearInterval(t);
|
|
50159
50168
|
}, [e]);
|
|
50160
50169
|
}
|
|
50161
|
-
function
|
|
50170
|
+
function J6(e, t) {
|
|
50162
50171
|
const n = e.id;
|
|
50163
50172
|
if (typeof n != "string" && typeof n != "number") return;
|
|
50164
50173
|
const r = typeof e.__type == "string" && e.__type !== "" ? e.__type : t;
|
|
50165
50174
|
return ro(r, n);
|
|
50166
50175
|
}
|
|
50167
|
-
function
|
|
50176
|
+
function eG(e) {
|
|
50168
50177
|
return e !== void 0;
|
|
50169
50178
|
}
|
|
50170
50179
|
function KN(e) {
|
|
@@ -50172,10 +50181,10 @@ function KN(e) {
|
|
|
50172
50181
|
}
|
|
50173
50182
|
let gw = 0;
|
|
50174
50183
|
const Up = /* @__PURE__ */ new Map();
|
|
50175
|
-
function
|
|
50184
|
+
function tG(e, t) {
|
|
50176
50185
|
return t === void 0 ? e : `${e}\0${t}`;
|
|
50177
50186
|
}
|
|
50178
|
-
function
|
|
50187
|
+
function nG(e, t, n) {
|
|
50179
50188
|
const r = {}, o = n === void 0 ? void 0 : Gp($c(e, n));
|
|
50180
50189
|
for (const s of t) r[s] = o === void 0 ? $c(e, s) : o[s];
|
|
50181
50190
|
return r;
|
|
@@ -50183,8 +50192,8 @@ function tG(e, t, n) {
|
|
|
50183
50192
|
function Gp(e) {
|
|
50184
50193
|
return typeof e == "object" && e !== null && !Array.isArray(e) ? e : {};
|
|
50185
50194
|
}
|
|
50186
|
-
async function
|
|
50187
|
-
const r =
|
|
50195
|
+
async function H9(e, t, n = {}) {
|
|
50196
|
+
const r = rG(e, n);
|
|
50188
50197
|
let o;
|
|
50189
50198
|
try {
|
|
50190
50199
|
o = await t();
|
|
@@ -50193,10 +50202,10 @@ async function B9(e, t, n = {}) {
|
|
|
50193
50202
|
}
|
|
50194
50203
|
return r.commit(n.answer ? n.answer(o) : o), o;
|
|
50195
50204
|
}
|
|
50196
|
-
function
|
|
50205
|
+
function rG(e, t = {}) {
|
|
50197
50206
|
const n = t.tenant ?? gd(), r = e.type.type;
|
|
50198
|
-
if (e.kind === "create") return
|
|
50199
|
-
const o = e.id, s = ro(r, o), i = e.kind === "update" ? e.at : void 0, a = e.kind !== "update" ? {} : i === void 0 ? qN(e.patch) :
|
|
50207
|
+
if (e.kind === "create") return oG(e, r, n, t.tag);
|
|
50208
|
+
const o = e.id, s = ro(r, o), i = e.kind === "update" ? e.at : void 0, a = e.kind !== "update" ? {} : i === void 0 ? qN(e.patch) : sG(e.patch), l = e.kind === "delete" ? (/* @__PURE__ */ new Date()).toISOString() : void 0, c = FN(r, o, { fields: a, at: i, tombstone: l });
|
|
50200
50209
|
vo();
|
|
50201
50210
|
let u = !1;
|
|
50202
50211
|
return {
|
|
@@ -50205,7 +50214,7 @@ function nG(e, t = {}) {
|
|
|
50205
50214
|
commit(m) {
|
|
50206
50215
|
if (u) return;
|
|
50207
50216
|
u = !0;
|
|
50208
|
-
const d =
|
|
50217
|
+
const d = tG(s, i), f = Up.get(d);
|
|
50209
50218
|
if (f !== void 0 && f.through > c) {
|
|
50210
50219
|
const g = {};
|
|
50211
50220
|
for (const x of Object.keys(a)) x in f.values && (g[x] = f.values[x]);
|
|
@@ -50216,21 +50225,21 @@ function nG(e, t = {}) {
|
|
|
50216
50225
|
} else
|
|
50217
50226
|
e.kind === "delete" ? Er({ __type: r, id: o, deleted_at: l }, { source: "fetch", tenant: n }) : t.answerStored || (jp(m) ? Er(m, { source: "fetch", tag: t.tag, tenant: n }) : i === void 0 ? Er({ ...a, __type: r, id: o }, { source: "fetch", tenant: n }) : Er({ __type: r, id: o, [i]: { ...Gp($c(s, i)), ...a } }, { source: "fetch", tenant: n })), Up.set(d, {
|
|
50218
50227
|
through: c,
|
|
50219
|
-
values: { ...f?.values ?? {}, ...
|
|
50228
|
+
values: { ...f?.values ?? {}, ...nG(s, Object.keys(a), i) }
|
|
50220
50229
|
});
|
|
50221
|
-
|
|
50230
|
+
n6(s, c, Object.keys(a), i), Fc(s, c), vo();
|
|
50222
50231
|
},
|
|
50223
50232
|
rollback() {
|
|
50224
50233
|
u || (u = !0, Fc(s, c), vo());
|
|
50225
50234
|
}
|
|
50226
50235
|
};
|
|
50227
50236
|
}
|
|
50228
|
-
function
|
|
50237
|
+
function oG(e, t, n, r) {
|
|
50229
50238
|
gw -= 1;
|
|
50230
50239
|
const o = gw, s = ro(t, o), i = FN(t, o, {
|
|
50231
50240
|
fields: { ...qN(e.fields), id: o },
|
|
50232
50241
|
created: !0
|
|
50233
|
-
}), a =
|
|
50242
|
+
}), a = q6(s, t, e.lists, e.position ?? "start");
|
|
50234
50243
|
vo();
|
|
50235
50244
|
let l = !1;
|
|
50236
50245
|
const c = () => {
|
|
@@ -50266,7 +50275,7 @@ function qN(e) {
|
|
|
50266
50275
|
r === void 0 || AN(n) || n === "id" || (t[n] = r);
|
|
50267
50276
|
return t;
|
|
50268
50277
|
}
|
|
50269
|
-
function
|
|
50278
|
+
function sG(e) {
|
|
50270
50279
|
const t = {};
|
|
50271
50280
|
for (const [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r);
|
|
50272
50281
|
return t;
|
|
@@ -50274,45 +50283,45 @@ function oG(e) {
|
|
|
50274
50283
|
function jp(e) {
|
|
50275
50284
|
return typeof e == "object" && e !== null && hd(e) !== void 0;
|
|
50276
50285
|
}
|
|
50277
|
-
function
|
|
50286
|
+
function U9() {
|
|
50278
50287
|
Up.clear();
|
|
50279
50288
|
}
|
|
50280
50289
|
export {
|
|
50281
50290
|
w$ as Accordion,
|
|
50282
50291
|
S$ as AccordionItem,
|
|
50283
|
-
|
|
50292
|
+
l9 as AccountMenu,
|
|
50284
50293
|
eS as AlertDialog,
|
|
50285
50294
|
Oy as AmbiguousTimeError,
|
|
50286
|
-
|
|
50295
|
+
$G as AppShell,
|
|
50287
50296
|
lN as Attachment,
|
|
50288
50297
|
Gv as AttachmentAction,
|
|
50289
50298
|
cN as AttachmentList,
|
|
50290
50299
|
W4 as AttachmentPreview,
|
|
50291
50300
|
Sc as Avatar,
|
|
50292
|
-
|
|
50301
|
+
Cj as AvatarGroup,
|
|
50293
50302
|
Ht as Badge,
|
|
50294
|
-
|
|
50295
|
-
|
|
50296
|
-
|
|
50297
|
-
|
|
50303
|
+
Lj as Board,
|
|
50304
|
+
Hj as BoardCard,
|
|
50305
|
+
zj as BoardCardSurface,
|
|
50306
|
+
Bj as BoardColumn,
|
|
50298
50307
|
R$ as Breadcrumb,
|
|
50299
50308
|
St as Button,
|
|
50300
50309
|
lw as CATEGORY_TONES,
|
|
50301
|
-
|
|
50302
|
-
|
|
50303
|
-
|
|
50310
|
+
y9 as CONFIDENCE_LEVEL_LABELS,
|
|
50311
|
+
o9 as CalendarMonth,
|
|
50312
|
+
s9 as CalendarTimeGrid,
|
|
50304
50313
|
Kd as Callout,
|
|
50305
50314
|
wa as Card,
|
|
50306
50315
|
hS as CardFooter,
|
|
50307
50316
|
mh as CardHeader,
|
|
50308
|
-
|
|
50309
|
-
|
|
50310
|
-
|
|
50311
|
-
|
|
50312
|
-
|
|
50317
|
+
Nj as CellStack,
|
|
50318
|
+
hH as Chat,
|
|
50319
|
+
jj as ChatMarker,
|
|
50320
|
+
Wj as ChatPopover,
|
|
50321
|
+
fN as ChatStatus,
|
|
50313
50322
|
ip as Checkbox,
|
|
50314
|
-
|
|
50315
|
-
|
|
50323
|
+
IG as CheckboxField,
|
|
50324
|
+
dN as CodeBlock,
|
|
50316
50325
|
XR as CodeEditor,
|
|
50317
50326
|
QR as CodeEditorCaption,
|
|
50318
50327
|
B5 as CodeEditorCopyButton,
|
|
@@ -50320,30 +50329,30 @@ export {
|
|
|
50320
50329
|
G5 as CodeEditorViewSwitch,
|
|
50321
50330
|
H5 as CodeEditorWrapToggle,
|
|
50322
50331
|
dh as Collapsible,
|
|
50323
|
-
|
|
50324
|
-
|
|
50325
|
-
|
|
50326
|
-
|
|
50332
|
+
QG as Combobox,
|
|
50333
|
+
ej as ComboboxGroup,
|
|
50334
|
+
JG as ComboboxItem,
|
|
50335
|
+
KG as CommandPalette,
|
|
50327
50336
|
K4 as Composer,
|
|
50328
|
-
|
|
50329
|
-
|
|
50330
|
-
|
|
50331
|
-
|
|
50332
|
-
|
|
50337
|
+
IU as ConfidenceBar,
|
|
50338
|
+
RU as ConfidenceMeter,
|
|
50339
|
+
TU as ConfidenceReadout,
|
|
50340
|
+
kG as ConnectionCard,
|
|
50341
|
+
oH as ContextMeter,
|
|
50333
50342
|
Uk as DEFAULT_DRAG_STRINGS,
|
|
50334
|
-
|
|
50343
|
+
pH as DEFAULT_EFFORT_LEVELS,
|
|
50335
50344
|
rw as DEFAULT_PALETTE_KEY,
|
|
50336
50345
|
Gk as DRAG_INSTRUCTIONS_ID,
|
|
50337
|
-
|
|
50346
|
+
kj as DataTable,
|
|
50338
50347
|
DC as DateCalendar,
|
|
50339
50348
|
EV as DateField,
|
|
50340
|
-
|
|
50341
|
-
|
|
50342
|
-
|
|
50349
|
+
zG as DatePicker,
|
|
50350
|
+
GG as DateTimeField,
|
|
50351
|
+
RG as DescriptionList,
|
|
50343
50352
|
wD as DescriptionListItem,
|
|
50344
|
-
|
|
50353
|
+
u9 as DevToolsPopover,
|
|
50345
50354
|
J1 as Dialog,
|
|
50346
|
-
|
|
50355
|
+
yG as DialogClose,
|
|
50347
50356
|
dd as DragDrop,
|
|
50348
50357
|
fd as DragDropContainer,
|
|
50349
50358
|
cb as DragDropHandle,
|
|
@@ -50353,27 +50362,27 @@ export {
|
|
|
50353
50362
|
g4 as DragLiveRegion,
|
|
50354
50363
|
n4 as DragSession,
|
|
50355
50364
|
u4 as DragSessionProvider,
|
|
50356
|
-
|
|
50357
|
-
|
|
50365
|
+
MH as EVENT_PALETTE,
|
|
50366
|
+
mH as EffortControl,
|
|
50358
50367
|
fh as EmptyState,
|
|
50359
|
-
|
|
50360
|
-
|
|
50368
|
+
hG as ErrorBoundary,
|
|
50369
|
+
WH as EventActions,
|
|
50361
50370
|
Tr as Field,
|
|
50362
|
-
|
|
50363
|
-
|
|
50371
|
+
gG as FieldSet,
|
|
50372
|
+
LG as FileUpload,
|
|
50364
50373
|
ob as HOTKEYS,
|
|
50365
50374
|
me as Icon,
|
|
50366
50375
|
fn as IconButton,
|
|
50367
|
-
|
|
50368
|
-
|
|
50376
|
+
fj as InfiniteScroller,
|
|
50377
|
+
xG as InlineEdit,
|
|
50369
50378
|
dr as Input,
|
|
50370
|
-
|
|
50379
|
+
$j as KanbanBoard,
|
|
50371
50380
|
lo as LAYOUT_DEFAULTS,
|
|
50372
50381
|
DA as LoadingOverlay,
|
|
50373
50382
|
bN as MIN_DURATION_MINUTES,
|
|
50374
|
-
|
|
50375
|
-
|
|
50376
|
-
|
|
50383
|
+
rH as Markdown,
|
|
50384
|
+
Dj as MarkdownEditor,
|
|
50385
|
+
Aj as MarkdownImageUploadProvider,
|
|
50377
50386
|
td as MarkdownNodes,
|
|
50378
50387
|
h3 as MarkdownSurface,
|
|
50379
50388
|
Ca as Menu,
|
|
@@ -50382,103 +50391,103 @@ export {
|
|
|
50382
50391
|
S_ as MenuRadioGroup,
|
|
50383
50392
|
C_ as MenuRadioItem,
|
|
50384
50393
|
sC as MenuSeparator,
|
|
50385
|
-
|
|
50386
|
-
|
|
50387
|
-
|
|
50388
|
-
|
|
50394
|
+
VG as MenuSub,
|
|
50395
|
+
uH as Message,
|
|
50396
|
+
cH as MessagePartView,
|
|
50397
|
+
dH as MessageScroller,
|
|
50389
50398
|
nV as Meter,
|
|
50390
|
-
|
|
50391
|
-
|
|
50392
|
-
|
|
50393
|
-
|
|
50394
|
-
|
|
50399
|
+
fH as ModelSelector,
|
|
50400
|
+
nj as MultiCombobox,
|
|
50401
|
+
C9 as NodeCanvas,
|
|
50402
|
+
XG as NumberInput,
|
|
50403
|
+
ZG as OTPInput,
|
|
50395
50404
|
k$ as Pagination,
|
|
50396
50405
|
I$ as PaginationBar,
|
|
50397
|
-
|
|
50398
|
-
|
|
50399
|
-
|
|
50400
|
-
|
|
50401
|
-
|
|
50406
|
+
wj as Panel,
|
|
50407
|
+
vj as PanelGroup,
|
|
50408
|
+
Sj as PanelResizer,
|
|
50409
|
+
h9 as PhaseManager,
|
|
50410
|
+
jG as PhoneField,
|
|
50402
50411
|
jn as Popover,
|
|
50403
50412
|
Pi as PopoverClose,
|
|
50404
|
-
|
|
50413
|
+
d9 as ProfilePage,
|
|
50405
50414
|
tV as Progress,
|
|
50406
50415
|
iV as ProgressRing,
|
|
50407
50416
|
bf as ProjectionError,
|
|
50408
50417
|
RN as ProvenanceBadge,
|
|
50409
|
-
|
|
50410
|
-
|
|
50411
|
-
|
|
50418
|
+
PU as ProvenanceDetail,
|
|
50419
|
+
w9 as ProvenanceDisclosure,
|
|
50420
|
+
a9 as RBACProvider,
|
|
50412
50421
|
TS as Radio,
|
|
50413
|
-
|
|
50414
|
-
|
|
50415
|
-
|
|
50416
|
-
|
|
50417
|
-
|
|
50418
|
-
|
|
50419
|
-
|
|
50420
|
-
|
|
50421
|
-
|
|
50422
|
-
|
|
50423
|
-
|
|
50424
|
-
|
|
50422
|
+
PG as RadioCard,
|
|
50423
|
+
MG as RadioField,
|
|
50424
|
+
NG as RadioGroup,
|
|
50425
|
+
_j as ReadMore,
|
|
50426
|
+
O9 as RealtimeProvider,
|
|
50427
|
+
oj as RecordCard,
|
|
50428
|
+
lj as RecordCardBadges,
|
|
50429
|
+
ij as RecordCardEyebrow,
|
|
50430
|
+
sj as RecordCardHandle,
|
|
50431
|
+
cj as RecordCardMedia,
|
|
50432
|
+
uj as RecordCardMeta,
|
|
50433
|
+
aj as RecordCardTitle,
|
|
50425
50434
|
GN as RefetchRunner,
|
|
50426
50435
|
CN as RoadmapItemCard,
|
|
50427
|
-
|
|
50428
|
-
|
|
50429
|
-
|
|
50430
|
-
|
|
50431
|
-
|
|
50432
|
-
|
|
50433
|
-
|
|
50436
|
+
m9 as RoadmapPage,
|
|
50437
|
+
bU as RoadmapSwimlaneBoard,
|
|
50438
|
+
lU as RolePermissionMatrix,
|
|
50439
|
+
f9 as RolesPermissionsPage,
|
|
50440
|
+
wG as ScrollArea,
|
|
50441
|
+
tj as SearchSelect,
|
|
50442
|
+
vG as SecretField,
|
|
50434
50443
|
xo as Select,
|
|
50435
50444
|
d$ as SelectGroup,
|
|
50436
50445
|
kr as SelectItem,
|
|
50437
|
-
|
|
50446
|
+
rj as SelectSeparator,
|
|
50438
50447
|
xy as Separator,
|
|
50439
|
-
|
|
50440
|
-
|
|
50441
|
-
|
|
50448
|
+
EG as SettingGroup,
|
|
50449
|
+
CG as SettingRow,
|
|
50450
|
+
FU as SimNetworkError,
|
|
50442
50451
|
A1 as Skeleton,
|
|
50443
|
-
|
|
50452
|
+
mG as SkeletonText,
|
|
50444
50453
|
yC as Slider,
|
|
50445
|
-
|
|
50454
|
+
Rj as Sparkline,
|
|
50446
50455
|
Xs as Spinner,
|
|
50447
50456
|
Y$ as Stat,
|
|
50448
|
-
|
|
50449
|
-
|
|
50457
|
+
Ej as StatRow,
|
|
50458
|
+
mj as StatusChecklist,
|
|
50450
50459
|
f$ as StatusSelect,
|
|
50451
|
-
|
|
50452
|
-
|
|
50460
|
+
pj as Stepper,
|
|
50461
|
+
M6 as SubscriptionRegistry,
|
|
50453
50462
|
gc as Switch,
|
|
50454
|
-
|
|
50463
|
+
TG as SwitchField,
|
|
50455
50464
|
x$ as Tab,
|
|
50456
50465
|
b$ as TabList,
|
|
50457
|
-
|
|
50466
|
+
dj as TabPanel,
|
|
50458
50467
|
XL as TableEmptyState,
|
|
50459
50468
|
g$ as Tabs,
|
|
50460
|
-
|
|
50461
|
-
|
|
50462
|
-
|
|
50463
|
-
|
|
50464
|
-
|
|
50469
|
+
bG as Textarea,
|
|
50470
|
+
FG as ThemeMenu,
|
|
50471
|
+
SG as Timeline,
|
|
50472
|
+
DG as ToastProvider,
|
|
50473
|
+
AG as Toaster,
|
|
50465
50474
|
pR as Toggle,
|
|
50466
50475
|
L$ as ToggleGroup,
|
|
50467
|
-
|
|
50468
|
-
|
|
50469
|
-
|
|
50470
|
-
|
|
50471
|
-
|
|
50472
|
-
|
|
50476
|
+
aH as ToolCall,
|
|
50477
|
+
hj as Toolbar,
|
|
50478
|
+
bj as ToolbarButton,
|
|
50479
|
+
yj as ToolbarGroup,
|
|
50480
|
+
xj as ToolbarInput,
|
|
50481
|
+
gj as ToolbarSeparator,
|
|
50473
50482
|
cn as Tooltip,
|
|
50474
|
-
|
|
50475
|
-
|
|
50476
|
-
|
|
50477
|
-
|
|
50483
|
+
pG as TooltipProvider,
|
|
50484
|
+
g9 as TrackManager,
|
|
50485
|
+
WG as Tree,
|
|
50486
|
+
OG as TriStateSwitch,
|
|
50478
50487
|
Va as UNKNOWN_STATE,
|
|
50479
|
-
|
|
50480
|
-
|
|
50481
|
-
|
|
50488
|
+
pU as UseCaseCard,
|
|
50489
|
+
p9 as UseCaseLedgerPage,
|
|
50490
|
+
z6 as acquireSlot,
|
|
50482
50491
|
$r as addDays,
|
|
50483
50492
|
mo as addDuration,
|
|
50484
50493
|
Dy as addMonths,
|
|
@@ -50486,21 +50495,21 @@ export {
|
|
|
50486
50495
|
A$ as advanceBlockReason,
|
|
50487
50496
|
Ds as alignColumn,
|
|
50488
50497
|
hN as allDayBandSegment,
|
|
50489
|
-
|
|
50490
|
-
|
|
50498
|
+
U6 as appendCreated,
|
|
50499
|
+
Fj as applyBoardMoves,
|
|
50491
50500
|
ow as applyCalendarDelta,
|
|
50492
50501
|
ab as applyMove,
|
|
50493
|
-
|
|
50502
|
+
z9 as applyMutationResult,
|
|
50494
50503
|
Xu as assertSteps,
|
|
50495
|
-
|
|
50496
|
-
|
|
50504
|
+
HG as atMidnight,
|
|
50505
|
+
UG as atTime,
|
|
50497
50506
|
c4 as attachAutoScroll,
|
|
50498
50507
|
o3 as attachInput,
|
|
50499
50508
|
l4 as attachKeyboardSensor,
|
|
50500
50509
|
o4 as attachPointerSensor,
|
|
50501
50510
|
s4 as attachSessionWindowListeners,
|
|
50502
50511
|
MA as badgeVariants,
|
|
50503
|
-
|
|
50512
|
+
rG as beginOptimisticWrite,
|
|
50504
50513
|
Tc as blockAt,
|
|
50505
50514
|
O4 as buildBoardModel,
|
|
50506
50515
|
O1 as buttonVariants,
|
|
@@ -50510,28 +50519,28 @@ export {
|
|
|
50510
50519
|
yk as cellAt,
|
|
50511
50520
|
nw as cellLabel,
|
|
50512
50521
|
rs as cellsOf,
|
|
50513
|
-
|
|
50522
|
+
Ij as checkCoverage,
|
|
50514
50523
|
jB as chordsOf,
|
|
50515
50524
|
B_ as clearStored,
|
|
50516
50525
|
W as cn,
|
|
50517
50526
|
Fi as comparePlainDate,
|
|
50518
|
-
|
|
50519
|
-
|
|
50520
|
-
|
|
50527
|
+
SU as confidenceBand,
|
|
50528
|
+
kU as confidenceLevel,
|
|
50529
|
+
wU as confidenceScore,
|
|
50521
50530
|
Mc as constructAt,
|
|
50522
50531
|
Vk as convertBlock,
|
|
50523
50532
|
yI as coreIcons,
|
|
50524
|
-
|
|
50533
|
+
S9 as createSimStore,
|
|
50525
50534
|
Al as createdEvent,
|
|
50526
50535
|
sa as dayFraction,
|
|
50527
|
-
|
|
50536
|
+
t9 as dayKey,
|
|
50528
50537
|
pb as dayLengthMs,
|
|
50529
50538
|
mV as dayOfWeek,
|
|
50530
50539
|
ew as daySlots,
|
|
50531
50540
|
_y as daysBetween,
|
|
50532
50541
|
Gs as daysInMonth,
|
|
50533
50542
|
$n as defineGrammar,
|
|
50534
|
-
|
|
50543
|
+
E9 as defineRecordType,
|
|
50535
50544
|
wk as deleteColumn,
|
|
50536
50545
|
vk as deleteRow,
|
|
50537
50546
|
Sk as deleteTable,
|
|
@@ -50542,153 +50551,154 @@ export {
|
|
|
50542
50551
|
xN as describeTarget,
|
|
50543
50552
|
Sp as domPointAt,
|
|
50544
50553
|
k3 as editConstruct,
|
|
50545
|
-
|
|
50554
|
+
F6 as emptySlotSnapshot,
|
|
50546
50555
|
gV as endOfMonth,
|
|
50547
50556
|
Dc as eventLabel,
|
|
50548
50557
|
ci as fenceAround,
|
|
50549
50558
|
hB as findUnstoredImages,
|
|
50550
50559
|
vo as flushRecordNotifications,
|
|
50551
|
-
|
|
50560
|
+
Zj as formatBoolean,
|
|
50552
50561
|
ks as formatBytes,
|
|
50553
50562
|
eV as formatCompactNumber,
|
|
50554
|
-
|
|
50563
|
+
YG as formatCurrency,
|
|
50555
50564
|
vV as formatDate,
|
|
50556
|
-
|
|
50557
|
-
|
|
50558
|
-
|
|
50565
|
+
kH as formatDateRange,
|
|
50566
|
+
Kj as formatDateTime,
|
|
50567
|
+
Yj as formatNumber,
|
|
50559
50568
|
NV as formatPhone,
|
|
50560
50569
|
hl as formatTokens,
|
|
50561
|
-
|
|
50570
|
+
c9 as getDataSource,
|
|
50562
50571
|
xw as getIcon,
|
|
50563
|
-
|
|
50572
|
+
oU as getNetworkSpeed,
|
|
50564
50573
|
gd as getRecordStoreTenant,
|
|
50565
50574
|
VB as graphemeAfter,
|
|
50566
50575
|
_B as graphemeBefore,
|
|
50567
|
-
|
|
50576
|
+
fG as hasIcon,
|
|
50568
50577
|
xB as headingLevel,
|
|
50569
50578
|
KB as hotkeyFor,
|
|
50570
|
-
|
|
50579
|
+
Gj as hoursInDay,
|
|
50571
50580
|
YB as htmlFragmentToMarkdown,
|
|
50572
|
-
|
|
50581
|
+
dG as iconNames,
|
|
50573
50582
|
SB as indentLines,
|
|
50574
|
-
|
|
50583
|
+
DH as initialFocusDay,
|
|
50575
50584
|
Rp as insertColumn,
|
|
50576
|
-
|
|
50585
|
+
Oj as insertImage,
|
|
50577
50586
|
IB as insertLink,
|
|
50578
50587
|
Ep as insertRow,
|
|
50579
50588
|
NB as insertRule,
|
|
50580
50589
|
MB as insertTable,
|
|
50581
|
-
|
|
50582
|
-
|
|
50590
|
+
uN as instantAtFraction,
|
|
50591
|
+
Uj as instantToPlainDate,
|
|
50583
50592
|
Vn as instantToPlainDateTime,
|
|
50584
|
-
|
|
50585
|
-
|
|
50586
|
-
|
|
50593
|
+
i9 as isAllDay,
|
|
50594
|
+
cU as isFullyBuilt,
|
|
50595
|
+
_H as isInMonth,
|
|
50587
50596
|
Np as isNoOp,
|
|
50588
|
-
|
|
50597
|
+
r9 as isPaletteKey,
|
|
50589
50598
|
Vp as isRecordRef,
|
|
50590
50599
|
qo as isSameDate,
|
|
50591
|
-
|
|
50600
|
+
uU as isUnbuilt,
|
|
50592
50601
|
nb as isUnstoredImageSrc,
|
|
50593
50602
|
Ln as isoDateString,
|
|
50594
50603
|
Ay as isoDateTimeString,
|
|
50595
|
-
|
|
50604
|
+
UU as layoutTree,
|
|
50596
50605
|
Ut as lineAt,
|
|
50597
50606
|
FB as lineStartStop,
|
|
50598
50607
|
A5 as listLanguages,
|
|
50599
50608
|
Ac as longDate,
|
|
50600
50609
|
bV as monthGridDays,
|
|
50601
|
-
|
|
50610
|
+
n9 as monthTitle,
|
|
50602
50611
|
ir as nearestStop,
|
|
50603
50612
|
Ks as nextDay,
|
|
50604
|
-
|
|
50613
|
+
PH as nextDayForKey,
|
|
50605
50614
|
yd as normalizeScope,
|
|
50606
|
-
|
|
50615
|
+
ZU as normalizeTimestamp,
|
|
50607
50616
|
di as normalizeTypeName,
|
|
50608
50617
|
Oc as offsetAt,
|
|
50609
|
-
|
|
50618
|
+
H9 as optimisticWrite,
|
|
50610
50619
|
CB as outdentLines,
|
|
50611
50620
|
mN as packBand,
|
|
50612
|
-
|
|
50621
|
+
LH as packLanes,
|
|
50613
50622
|
_c as paletteFor,
|
|
50614
|
-
|
|
50623
|
+
Qj as parseBoolean,
|
|
50615
50624
|
gF as parseCurrency,
|
|
50616
50625
|
CV as parseDate,
|
|
50617
|
-
|
|
50626
|
+
qj as parseDateTime,
|
|
50618
50627
|
bz as parseMarkdown,
|
|
50619
|
-
|
|
50628
|
+
Xj as parseNumber,
|
|
50620
50629
|
IV as parsePhone,
|
|
50621
50630
|
xV as parsePlainDate,
|
|
50622
50631
|
PN as pathToNode,
|
|
50623
|
-
|
|
50632
|
+
k9 as peekRecord,
|
|
50624
50633
|
fb as plainDateTimeToInstant,
|
|
50625
50634
|
kc as project,
|
|
50626
50635
|
pB as projectedText,
|
|
50627
|
-
|
|
50628
|
-
|
|
50636
|
+
v9 as provenanceStateLabel,
|
|
50637
|
+
x9 as ratedConfidence,
|
|
50629
50638
|
j3 as readMoreVariants,
|
|
50630
|
-
|
|
50639
|
+
k6 as readRealtimeEpoch,
|
|
50631
50640
|
Cp as readSelection,
|
|
50632
|
-
|
|
50641
|
+
Z6 as readSlot,
|
|
50633
50642
|
Cb as readStaleness,
|
|
50634
50643
|
bd as readState,
|
|
50635
50644
|
Uh as readStored,
|
|
50636
50645
|
ro as recordKey,
|
|
50637
|
-
|
|
50646
|
+
I9 as recordStoreStats,
|
|
50638
50647
|
jN as registerActiveRead,
|
|
50639
|
-
|
|
50640
|
-
|
|
50641
|
-
|
|
50642
|
-
|
|
50643
|
-
|
|
50644
|
-
|
|
50645
|
-
|
|
50646
|
-
|
|
50647
|
-
|
|
50648
|
-
|
|
50648
|
+
Mj as registerGrammar,
|
|
50649
|
+
cG as registerIcon,
|
|
50650
|
+
uG as registerIcons,
|
|
50651
|
+
Z4 as relativeAge,
|
|
50652
|
+
V9 as resetActiveReads,
|
|
50653
|
+
U9 as resetOptimisticWrites,
|
|
50654
|
+
P9 as resetRealtimeSignals,
|
|
50655
|
+
N9 as resetRecordStore,
|
|
50656
|
+
R9 as resetRecordTypes,
|
|
50657
|
+
ZH as resetSimStores,
|
|
50658
|
+
F9 as resetSlots,
|
|
50649
50659
|
Ri as resolveCalendarTarget,
|
|
50650
50660
|
GB as resolveKey,
|
|
50651
|
-
|
|
50661
|
+
Tj as resolveLanguage,
|
|
50652
50662
|
A4 as resolveMove,
|
|
50653
50663
|
wf as resolveTarget,
|
|
50654
50664
|
Eb as retainKeys,
|
|
50655
50665
|
kp as sameTarget,
|
|
50656
50666
|
Ec as sanitizeHref,
|
|
50657
50667
|
kb as scopeKey,
|
|
50658
|
-
|
|
50668
|
+
b9 as scoredConfidence,
|
|
50659
50669
|
Tl as scrollVelocity,
|
|
50660
50670
|
R3 as setFenceLanguage,
|
|
50661
50671
|
ao as setHeading,
|
|
50662
|
-
|
|
50672
|
+
e6 as setRecordStoreTenant,
|
|
50663
50673
|
aw as setSimSettings,
|
|
50664
50674
|
Vl as simulateLatency,
|
|
50665
|
-
|
|
50675
|
+
X6 as slotKeys,
|
|
50666
50676
|
OB as smartEnter,
|
|
50667
50677
|
Rk as smartShiftTab,
|
|
50668
50678
|
Ek as smartTab,
|
|
50669
|
-
|
|
50670
|
-
|
|
50679
|
+
e9 as snapFractionToInstant,
|
|
50680
|
+
BH as snapInstant,
|
|
50671
50681
|
Yr as sourceOffsetAt,
|
|
50672
50682
|
sn as startOfDay,
|
|
50673
50683
|
hV as startOfMonth,
|
|
50674
50684
|
Zi as startOfWeek,
|
|
50675
|
-
|
|
50685
|
+
Pj as stepOffset,
|
|
50676
50686
|
O$ as stepStatus,
|
|
50677
50687
|
DB as stepStop,
|
|
50678
50688
|
D$ as stepperProgress,
|
|
50679
50689
|
ka as storageKey,
|
|
50680
50690
|
wb as subscribeToKey,
|
|
50681
50691
|
Rb as subscribeToRealtimeEpoch,
|
|
50682
|
-
|
|
50683
|
-
|
|
50692
|
+
N6 as subscribeToRealtimeEvents,
|
|
50693
|
+
Y6 as subscribeToSlot,
|
|
50684
50694
|
zN as subscribeToStaleness,
|
|
50685
50695
|
BN as subscriptionKey,
|
|
50686
|
-
|
|
50696
|
+
y6 as sweepRecords,
|
|
50687
50697
|
Da as tableAround,
|
|
50688
50698
|
Ck as tableTab,
|
|
50689
50699
|
V$ as tallyChecklist,
|
|
50690
50700
|
Zr as timeOfDay,
|
|
50691
|
-
|
|
50701
|
+
EH as timeSegments,
|
|
50692
50702
|
Mp as timedBandSegment,
|
|
50693
50703
|
mk as toggleBold,
|
|
50694
50704
|
gk as toggleCode,
|
|
@@ -50702,47 +50712,47 @@ export {
|
|
|
50702
50712
|
YR as tokenize,
|
|
50703
50713
|
cw as toneForIndex,
|
|
50704
50714
|
hb as trackIds,
|
|
50705
|
-
|
|
50715
|
+
dU as trackProgress,
|
|
50706
50716
|
N3 as unwrapConstruct,
|
|
50707
50717
|
rN as useBoard,
|
|
50708
|
-
|
|
50709
|
-
|
|
50718
|
+
HH as useCalendarDrag,
|
|
50719
|
+
qG as useCommandPalette,
|
|
50710
50720
|
q_ as useContrast,
|
|
50711
50721
|
d4 as useCreateDragSession,
|
|
50712
|
-
|
|
50722
|
+
Jj as useDebouncedValue,
|
|
50713
50723
|
h4 as useDragAnnouncements,
|
|
50714
|
-
|
|
50724
|
+
Vj as useDragSession,
|
|
50715
50725
|
ld as useDragState,
|
|
50716
50726
|
f4 as useDraggable,
|
|
50717
50727
|
p4 as useDropContainer,
|
|
50718
|
-
|
|
50728
|
+
KH as useEventKeyboard,
|
|
50719
50729
|
P4 as useFillHeight,
|
|
50720
|
-
|
|
50730
|
+
AH as useGridNavigation,
|
|
50721
50731
|
X_ as useMotionPreference,
|
|
50722
|
-
|
|
50732
|
+
zH as useNow,
|
|
50723
50733
|
vC as usePersistedState,
|
|
50724
50734
|
md as useRBAC,
|
|
50725
|
-
|
|
50726
|
-
|
|
50727
|
-
|
|
50735
|
+
A9 as useRealtime,
|
|
50736
|
+
_9 as useRealtimeEpoch,
|
|
50737
|
+
D9 as useRealtimeHealth,
|
|
50728
50738
|
UN as useRealtimeRegistry,
|
|
50729
|
-
|
|
50730
|
-
|
|
50731
|
-
|
|
50732
|
-
|
|
50733
|
-
|
|
50734
|
-
|
|
50735
|
-
|
|
50739
|
+
v6 as useRecord,
|
|
50740
|
+
L9 as useRecordListRead,
|
|
50741
|
+
$9 as useRecordRead,
|
|
50742
|
+
B9 as useRecordStoreSweep,
|
|
50743
|
+
T9 as useRecords,
|
|
50744
|
+
rU as useSimSettings,
|
|
50745
|
+
M9 as useStaleness,
|
|
50736
50746
|
G_ as useTheme,
|
|
50737
|
-
|
|
50747
|
+
_G as useToast,
|
|
50738
50748
|
W_ as useUiScale,
|
|
50739
|
-
|
|
50749
|
+
BG as weekDays,
|
|
50740
50750
|
Pp as weekdayName,
|
|
50741
50751
|
Er as write,
|
|
50742
|
-
|
|
50752
|
+
t6 as writeAll,
|
|
50743
50753
|
Nl as writeSelection,
|
|
50744
|
-
|
|
50754
|
+
B6 as writeSlot,
|
|
50745
50755
|
Gh as writeStored,
|
|
50746
|
-
|
|
50756
|
+
RH as zoneLabel
|
|
50747
50757
|
};
|
|
50748
50758
|
//# sourceMappingURL=index.js.map
|