@tangle-network/sandbox-cli 0.21.27 → 0.21.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/graph-viewer/{Analytics-DocMpB6T.js → Analytics-DFWW8Phh.js} +260 -275
  2. package/dist/graph-viewer/Checks-qgqV4xgV.js +155 -0
  3. package/dist/graph-viewer/{Conversations-CISiWrR9.js → Conversations-CGB45kpj.js} +112 -80
  4. package/dist/graph-viewer/{Files-Dh8p_Fpw.js → Files-DtZhf0ii.js} +121 -106
  5. package/dist/graph-viewer/LiveRun-C21wUKAY.js +210 -0
  6. package/dist/graph-viewer/Overview-BjeLsA2I.js +506 -0
  7. package/dist/graph-viewer/{RunPage-nJwCsArn.js → RunPage-CkkcBEUe.js} +22 -22
  8. package/dist/graph-viewer/{Timeline-bPjhV3il.js → Timeline-C2Xolk0t.js} +84 -84
  9. package/dist/graph-viewer/{Today-pebCsPJ1.js → Today-BVVDtSVN.js} +65 -58
  10. package/dist/graph-viewer/Topology-DO5XX8e4.js +545 -0
  11. package/dist/graph-viewer/{Traces-C5x2UvJh.js → Traces-BhMxjNgw.js} +79 -52
  12. package/dist/graph-viewer/{WallPages-DSmRm2v3.js → WallPages-4d9QUZDq.js} +3 -3
  13. package/dist/graph-viewer/index.js +103 -102
  14. package/dist/graph-viewer/{lazy-pages-CpmkG5o2.js → lazy-pages-DM0cZM10.js} +4 -4
  15. package/dist/graph-viewer/{record-part-Cx9GDQeo.js → record-part-CZal_IMH.js} +382 -352
  16. package/dist/graph-viewer/report-viewer.js +7 -7
  17. package/dist/graph-viewer/styles.css +596 -284
  18. package/dist/graph-viewer/{ui-CEhDqce8.js → ui-D8QZRsC3.js} +143 -111
  19. package/dist/graph-viewer/viewer/{AgentGraphCanvas-D7jjAE6i-DecKyUGA.js → AgentGraphCanvas-CMdOlSlh-4EervjeC.js} +54 -48
  20. package/dist/graph-viewer/viewer/{Analytics-CtKucZjs.js → Analytics-DD__nbLm.js} +203 -218
  21. package/dist/graph-viewer/viewer/{AnswerStrip-DsI9aF-i.js → AnswerStrip-CGUyXuYH.js} +2 -2
  22. package/dist/graph-viewer/viewer/Checks-Ds5M7eAW.js +156 -0
  23. package/dist/graph-viewer/viewer/{Conversations-DQBCyko6.js → Conversations-C1n0EBBd.js} +124 -92
  24. package/dist/graph-viewer/viewer/{Files-B-g25gSO.js → Files-Cjr7NMU_.js} +63 -48
  25. package/dist/graph-viewer/viewer/{LiveRun-BMQnTpTZ.js → LiveRun-uPTkPSjo.js} +1223 -1164
  26. package/dist/graph-viewer/viewer/{Outputs-DXnN1wEQ.js → Outputs-CumGyjQo.js} +6 -6
  27. package/dist/graph-viewer/viewer/Overview-4Umk14_2.js +507 -0
  28. package/dist/graph-viewer/viewer/{RunPage-ChipoSdO.js → RunPage-DZlBW7Va.js} +28 -28
  29. package/dist/graph-viewer/viewer/{Scores-CjriXjf_.js → Scores-ZS16yk0n.js} +3 -3
  30. package/dist/graph-viewer/viewer/{Timeline-DzEzobA0.js → Timeline-BnK6-yBR.js} +24 -24
  31. package/dist/graph-viewer/viewer/{Today-DLHe_wTA.js → Today-a_-oNigi.js} +69 -62
  32. package/dist/graph-viewer/viewer/Topology-CQPCLQT6.js +546 -0
  33. package/dist/graph-viewer/viewer/{Traces-BWBulSPE.js → Traces-C0IGk0L4.js} +75 -48
  34. package/dist/graph-viewer/viewer/{WallPages-Crj-qPoK.js → WallPages-CzWpyIfp.js} +8 -8
  35. package/dist/graph-viewer/viewer/{WorkflowGraph-DYsP_Kcg-C0O7M5iH.js → WorkflowGraph-DZ3xejKE-jRXKeSrg.js} +6 -6
  36. package/dist/graph-viewer/viewer/{agent-timeline-C-UIhXgu.js → agent-timeline-Cs9Qbpvo.js} +437 -425
  37. package/dist/graph-viewer/viewer/{bot-Bivadvxn.js → bot-D6Nrej7Z.js} +1 -1
  38. package/dist/graph-viewer/viewer/{chevron-right-WW7tFY6B.js → chevron-right-D_5IKLxu.js} +1 -1
  39. package/dist/graph-viewer/viewer/{createLucideIcon-Z6KTw8ff.js → createLucideIcon-yH0cxLMy.js} +1 -1
  40. package/dist/graph-viewer/viewer/{data-azhapQrS.js → data-CkWfWr7i.js} +1 -1
  41. package/dist/graph-viewer/viewer/{dist-CyOc-K4O.js → dist-C1-7EfoW.js} +3 -3
  42. package/dist/graph-viewer/viewer/{file-text-B34N7Soo.js → file-text-m7a3piQF.js} +1 -1
  43. package/dist/graph-viewer/viewer/{final-output-Db2D9cMT.js → final-output-kwY11u9X.js} +1 -1
  44. package/dist/graph-viewer/viewer/{highlights-Bgg6O5ub.js → highlights-Btsi5OXl.js} +2 -2
  45. package/dist/graph-viewer/viewer/{jsx-runtime-BSzbUOFc.js → jsx-runtime-DQWyJOhv.js} +1 -1
  46. package/dist/graph-viewer/viewer/{lazy-pages-fgtpXQ00.js → lazy-pages-BowaGsg-.js} +6 -6
  47. package/dist/graph-viewer/viewer/{markdown-BpJEJUTW.js → markdown-CX_sVrXB.js} +17 -17
  48. package/dist/graph-viewer/viewer/{model-brand-bTcMjQtB-C9bHPsPk.js → model-brand-bTcMjQtB-fagiBQam.js} +3 -3
  49. package/dist/graph-viewer/viewer/{page-header-C6YCPkzJ.js → page-header-Brq611fd.js} +3 -3
  50. package/dist/graph-viewer/viewer/{popover-DrLB9iar.js → popover-CvOAjlnk.js} +4 -4
  51. package/dist/graph-viewer/viewer/{react-CisnW4fB.js → react-CY3IbSNO.js} +24 -24
  52. package/dist/graph-viewer/viewer/{react-dom-C5NDYQCD.js → react-dom-t1L4_-il.js} +1 -1
  53. package/dist/graph-viewer/viewer/{record-part-d0gKKrMI.js → record-part-D3_Anfpe.js} +455 -425
  54. package/dist/graph-viewer/viewer/{segmented-control-ChhLMa6h.js → segmented-control-BaJmvTNd.js} +39 -39
  55. package/dist/graph-viewer/viewer/{shiki-BwlTRTY6.js → shiki-Qnby7Sh6.js} +2 -2
  56. package/dist/graph-viewer/viewer/{stream-tokenizer-CaVb21TO.js → stream-tokenizer-CWtnjmRd.js} +1 -1
  57. package/dist/graph-viewer/viewer/{terminal-BxRacTx0.js → terminal-83J_I4Ne.js} +1 -1
  58. package/dist/graph-viewer/viewer/{themes-BxrCCwH5.js → themes-1i1fzpRk.js} +1 -1
  59. package/dist/graph-viewer/viewer/{ui-DZiGjPwl.js → ui-C9b1rIUH.js} +222 -190
  60. package/dist/graph-viewer/viewer/{workspace-DalRxssx.js → workspace-CekmOBs3.js} +76 -76
  61. package/dist/graph-viewer/viewer/{x-B_F8B4lq.js → x-DOc2URqZ.js} +1 -1
  62. package/dist/graph-viewer/workspace-viewer.js +103 -102
  63. package/package.json +6 -6
  64. package/dist/graph-viewer/Checks-CbnY4tuh.js +0 -113
  65. package/dist/graph-viewer/LiveRun-C-yKwkKs.js +0 -190
  66. package/dist/graph-viewer/Overview-BaXPdCFC.js +0 -477
  67. package/dist/graph-viewer/Topology-CyhuK6XW.js +0 -550
  68. package/dist/graph-viewer/viewer/Checks-DZTgeYlV.js +0 -114
  69. package/dist/graph-viewer/viewer/Overview-u7-8-rGx.js +0 -478
  70. package/dist/graph-viewer/viewer/Topology-Dsmuu27J.js +0 -551
@@ -2,29 +2,29 @@ import { createContext as e, useContext as t, useEffect as n, useLayoutEffect as
2
2
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
3
3
  import { createPortal as u } from "react-dom";
4
4
  //#region src/workspace/run/model.ts
5
- var d = (e) => e ? Date.parse(e) : NaN;
6
- function f(e, t) {
5
+ var d = (e) => e === "ok" || e === "done", f = (e) => e ? Date.parse(e) : NaN;
6
+ function p(e, t) {
7
7
  if (!e.length) return null;
8
8
  let n = [...e].sort((e, t) => e - t);
9
9
  return n[Math.min(n.length - 1, Math.max(0, Math.ceil(t / 100 * n.length) - 1))];
10
10
  }
11
- function p(e, t, n, r) {
11
+ function m(e, t, n, r) {
12
12
  return {
13
13
  name: e,
14
14
  calls: t.length,
15
15
  failures: n,
16
16
  ms: r,
17
17
  durations: t,
18
- p50: f(t, 50),
19
- p90: f(t, 90),
20
- p99: f(t, 99)
18
+ p50: p(t, 50),
19
+ p90: p(t, 90),
20
+ p99: p(t, 99)
21
21
  };
22
22
  }
23
- var m = (e) => e ? e.split("/").pop() ?? e : null, h = (e) => {
23
+ var h = (e) => e ? e.split("/").pop() ?? e : null, g = (e) => {
24
24
  let t = e.name ?? "", n = t.indexOf(" · ");
25
25
  return n >= 0 ? t.slice(n + 3) : null;
26
26
  };
27
- function g(e, t, n) {
27
+ function _(e, t, n) {
28
28
  return e.status === "running" || t && e.status === "waiting" ? {
29
29
  label: e.status === "waiting" ? "Waiting" : "Running",
30
30
  tone: "live"
@@ -33,7 +33,7 @@ function g(e, t, n) {
33
33
  tone: "ok"
34
34
  } : e.status === "succeeded" ? {
35
35
  label: "Done",
36
- tone: "ok"
36
+ tone: "done"
37
37
  } : e.status === "failed" ? {
38
38
  label: "Failed",
39
39
  tone: "fail"
@@ -45,8 +45,8 @@ function g(e, t, n) {
45
45
  tone: ""
46
46
  };
47
47
  }
48
- function _(e, t) {
49
- let n = e.nodes, r = new Map(e.edges.filter((e) => e.kind === "spawn").map((e) => [e.to, e.from])), i = new Set(n.map((e) => e.id)), a = n.map((e) => d(e.start)).filter(Number.isFinite), o = Number.isFinite(d(t.startedAt)) ? d(t.startedAt) : a.length ? Math.min(...a) : Date.now(), s = n.map((e) => d(e.end ?? e.lastAt)).filter(Number.isFinite), c = e.live ? Math.max(0, Date.now() - o) : t.durationMs ?? Math.max(0, (s.length ? Math.max(...s) : o) - o), l = (e) => {
48
+ function v(e, t) {
49
+ let n = e.nodes, r = new Map(e.edges.filter((e) => e.kind === "spawn").map((e) => [e.to, e.from])), i = new Set(n.map((e) => e.id)), a = n.map((e) => f(e.start)).filter(Number.isFinite), o = Number.isFinite(f(t.startedAt)) ? f(t.startedAt) : a.length ? Math.min(...a) : Date.now(), s = n.map((e) => f(e.end ?? e.lastAt)).filter(Number.isFinite), c = e.live ? Math.max(0, Date.now() - o) : t.durationMs ?? Math.max(0, (s.length ? Math.max(...s) : o) - o), l = (e) => {
50
50
  let t = r.get(e.id);
51
51
  if (t && i.has(t)) return t;
52
52
  let n = e.id.lastIndexOf(":"), a = n > 0 ? e.id.slice(0, n) : null;
@@ -58,7 +58,7 @@ function _(e, t) {
58
58
  kind: e.kind,
59
59
  failed: !!e.failed,
60
60
  tool: e.kind === "tool" ? e.tool ?? e.name?.split(" · ")[0] ?? "tool" : null,
61
- target: e.kind === "tool" ? h(e) : null,
61
+ target: e.kind === "tool" ? g(e) : null,
62
62
  model: e.model ?? null,
63
63
  latency: e.kind === "model" ? e.latencyMs ?? Math.max(0, e.endMs - e.startMs) : null,
64
64
  tokens: e.byClass ? {
@@ -79,12 +79,12 @@ function _(e, t) {
79
79
  };
80
80
  t.d.push(e.d), t.f += +!!e.failed, t.ms += e.d, a.set(e.tool, t);
81
81
  }
82
- let s = a.size ? [...a].map(([e, t]) => p(e, t.d, t.f, t.ms)) : Object.entries(n?.tools ?? {}).map(([e, t]) => ({
83
- ...p(e, [], t.failures, t.ms),
82
+ let s = a.size ? [...a].map(([e, t]) => m(e, t.d, t.f, t.ms)) : Object.entries(n?.tools ?? {}).map(([e, t]) => ({
83
+ ...m(e, [], t.failures, t.ms),
84
84
  calls: t.calls
85
85
  }));
86
86
  s.sort((e, t) => t.calls - e.calls || e.name.localeCompare(t.name));
87
- let c = i.map((e) => e.latency).filter((e) => Number.isFinite(e)), u = r.map((e) => e.t + e.d), _ = Number.isFinite(d(t.start)) ? d(t.start) - o : r[0]?.t ?? null, v = Number.isFinite(d(t.end)) ? d(t.end) - o : u.length ? Math.max(...u) : null, y = a.size ? r.filter((e) => e.kind === "tool").length : s.reduce((e, t) => e + t.calls, 0);
87
+ let c = i.map((e) => e.latency).filter((e) => Number.isFinite(e)), u = r.map((e) => e.t + e.d), d = Number.isFinite(f(t.start)) ? f(t.start) - o : r[0]?.t ?? null, v = Number.isFinite(f(t.end)) ? f(t.end) - o : u.length ? Math.max(...u) : null, y = a.size ? r.filter((e) => e.kind === "tool").length : s.reduce((e, t) => e + t.calls, 0);
88
88
  return {
89
89
  id: t.id,
90
90
  name: t.role ?? t.label,
@@ -95,10 +95,10 @@ function _(e, t) {
95
95
  depth: 0,
96
96
  team: null,
97
97
  status: t.status,
98
- state: g(t, e.live, r.length),
99
- model: m(t.model ?? Object.keys(n?.models ?? {})[0]),
98
+ state: _(t, e.live, r.length),
99
+ model: h(t.model ?? Object.keys(n?.models ?? {})[0]),
100
100
  harness: t.harness,
101
- start: _,
101
+ start: d,
102
102
  end: v,
103
103
  tokens: n?.tokens ?? null,
104
104
  byClass: n?.byClass ?? null,
@@ -111,9 +111,9 @@ function _(e, t) {
111
111
  toolFailures: r.length ? r.filter((e) => e.kind === "tool" && e.failed).length : n?.failures?.tool ?? 0,
112
112
  retries: (n?.retries?.model ?? 0) + (n?.retries?.tool ?? 0),
113
113
  latency: c.length ? {
114
- p50: f(c, 50),
115
- p90: f(c, 90),
116
- p99: f(c, 99)
114
+ p50: p(c, 50),
115
+ p90: p(c, 90),
116
+ p99: p(c, 99)
117
117
  } : {
118
118
  p50: n?.latencyMs?.p50 ?? null,
119
119
  p90: n?.latencyMs?.p90 ?? null,
@@ -123,18 +123,18 @@ function _(e, t) {
123
123
  busy: r.filter((e) => e.kind !== "waiting").reduce((e, t) => e + t.d, 0),
124
124
  first: r.length ? r[0].t : null,
125
125
  last: u.length ? Math.max(...u) : null,
126
- restarts: (t.restarts ?? []).map((e) => d(e) - o).filter(Number.isFinite),
126
+ restarts: (t.restarts ?? []).map((e) => f(e) - o).filter(Number.isFinite),
127
127
  turns: t.turns ?? null,
128
128
  commits: typeof t.shipped == "number" ? t.shipped : null
129
129
  };
130
- }), _ = new Map(u.map((e) => [e.id, e]));
131
- for (let e of u) e.parent && _.get(e.parent)?.children.push(e.id);
132
- let v = (e) => _.get(e)?.start ?? 2 ** 53 - 1;
130
+ }), d = new Map(u.map((e) => [e.id, e]));
131
+ for (let e of u) e.parent && d.get(e.parent)?.children.push(e.id);
132
+ let v = (e) => d.get(e)?.start ?? 2 ** 53 - 1;
133
133
  for (let e of u) e.children.sort((e, t) => v(e) - v(t));
134
134
  let y = u.find((e) => !e.parent) ?? null, b = [], x = /* @__PURE__ */ new Set(), S = (e, t) => {
135
135
  if (!x.has(e.id)) {
136
136
  x.add(e.id), e.depth = t, b.push(e);
137
- for (let n of e.children) S(_.get(n), t + 1);
137
+ for (let n of e.children) S(d.get(n), t + 1);
138
138
  }
139
139
  };
140
140
  for (let e of u.filter((e) => !e.parent).sort((e, t) => (e.start ?? 0) - (t.start ?? 0))) S(e, 0);
@@ -148,8 +148,8 @@ function _(e, t) {
148
148
  label: `${e.name} team`,
149
149
  members: e.children
150
150
  }));
151
- for (let e of T) for (let t of e.members) _.get(t).team = e.id;
152
- for (let e of T) _.get(e.id).team ??= e.id;
151
+ for (let e of T) for (let t of e.members) d.get(t).team = e.id;
152
+ for (let e of T) d.get(e.id).team ??= e.id;
153
153
  let E = u.flatMap((e) => e.steps.map((t) => ({
154
154
  agent: e,
155
155
  step: t
@@ -163,7 +163,7 @@ function _(e, t) {
163
163
  };
164
164
  t.d.push(e.d), t.f += +!!e.failed, t.ms += e.d, D.set(e.tool, t);
165
165
  }
166
- let O = [...D].map(([e, t]) => p(e, t.d, t.f, t.ms)).sort((e, t) => t.calls - e.calls), k = e.runUsage ?? null, A = (e) => u.some((t) => e(t) !== null) ? u.reduce((t, n) => t + (e(n) ?? 0), 0) : null, j = E.map(({ step: e }) => e.t + e.d), M = e.releases.map((e) => ({
166
+ let O = [...D].map(([e, t]) => m(e, t.d, t.f, t.ms)).sort((e, t) => t.calls - e.calls), k = e.runUsage ?? null, A = (e) => u.some((t) => e(t) !== null) ? u.reduce((t, n) => t + (e(n) ?? 0), 0) : null, j = E.map(({ step: e }) => e.t + e.d), M = e.releases.map((e) => ({
167
167
  ...e,
168
168
  tagged: !!e.taggedAt,
169
169
  taggedAt: e.taggedAt ?? e.at ?? null
@@ -173,7 +173,7 @@ function _(e, t) {
173
173
  duration: c,
174
174
  live: e.live,
175
175
  agents: u,
176
- byId: _,
176
+ byId: d,
177
177
  root: y,
178
178
  tree: b,
179
179
  teams: T,
@@ -194,8 +194,8 @@ function _(e, t) {
194
194
  lastStep: j.length ? Math.max(...j) : null
195
195
  },
196
196
  pauses: (e.pauses ?? []).map((e) => ({
197
- from: d(e.from) - o,
198
- to: d(e.to) - o,
197
+ from: f(e.from) - o,
198
+ to: f(e.to) - o,
199
199
  reason: e.reason
200
200
  })).filter((e) => Number.isFinite(e.from) && Number.isFinite(e.to)),
201
201
  releases: M,
@@ -203,7 +203,7 @@ function _(e, t) {
203
203
  ws: e
204
204
  };
205
205
  }
206
- function v(e) {
206
+ function y(e) {
207
207
  let t = /* @__PURE__ */ new Map();
208
208
  for (let n of e) for (let e of n.tools) {
209
209
  let n = t.get(e.name) ?? {
@@ -215,50 +215,79 @@ function v(e) {
215
215
  n.d.push(...e.durations), n.f += e.failures, n.ms += e.ms, n.calls += e.calls, t.set(e.name, n);
216
216
  }
217
217
  return [...t].map(([e, t]) => ({
218
- ...p(e, t.d, t.f, t.ms),
218
+ ...m(e, t.d, t.f, t.ms),
219
219
  calls: t.calls
220
220
  })).sort((e, t) => t.calls - e.calls);
221
221
  }
222
- var y = (e) => String(e).padStart(2, "0"), b = (e) => (t) => {
222
+ var b = (e) => String(e).padStart(2, "0"), x = (e) => (t) => {
223
223
  let n = new Date(e + t);
224
- return `${y(n.getUTCHours())}:${y(n.getUTCMinutes())}`;
225
- }, x = (e) => (t) => {
224
+ return `${b(n.getUTCHours())}:${b(n.getUTCMinutes())}`;
225
+ }, S = (e) => (t) => {
226
226
  let n = new Date(e + t);
227
- return `${y(n.getUTCHours())}:${y(n.getUTCMinutes())}:${y(n.getUTCSeconds())}`;
228
- }, S = (e, t, n = `${t}s`) => `${e.toLocaleString("en-US")} ${e === 1 ? t : n}`, C = (e, t, n) => {
229
- let r = b(e);
230
- return n === "now" ? `${r(t)}–now` : new Date(e + t).toISOString().slice(0, 10) === new Date(e + n).toISOString().slice(0, 10) ? `${r(t)}–${r(n)}` : `${r(t)}, ${T(n - t)}`;
231
- }, w = (e, t) => `${t ? `${new Date(e).toLocaleDateString("en-US", {
227
+ return `${b(n.getUTCHours())}:${b(n.getUTCMinutes())}:${b(n.getUTCSeconds())}`;
228
+ }, C = (e, t, n = `${t}s`) => `${e.toLocaleString("en-US")} ${e === 1 ? t : n}`, w = (e, t, n) => {
229
+ let r = x(e);
230
+ return n === "now" ? `${r(t)}–now` : new Date(e + t).toISOString().slice(0, 10) === new Date(e + n).toISOString().slice(0, 10) ? `${r(t)}–${r(n)}` : `${r(t)}, ${E(n - t)}`;
231
+ }, T = (e, t) => `${t ? `${new Date(e).toLocaleDateString("en-US", {
232
232
  month: "short",
233
233
  day: "numeric",
234
234
  timeZone: "UTC"
235
235
  })} ` : ""}${e.slice(11, 16)} UTC`;
236
- function T(e) {
236
+ function E(e) {
237
237
  if (e == null || !Number.isFinite(e)) return "—";
238
238
  if (e < 1e3) return `${Math.round(e)} ms`;
239
239
  if (e < 59500) return `${(e / 1e3).toFixed(+(e < 9950))} s`;
240
240
  if (e < 36e5) {
241
241
  let t = Math.round(e / 1e3);
242
- if (t < 3600) return t % 60 ? `${Math.floor(t / 60)}m ${y(t % 60)}s` : `${t / 60} min`;
242
+ if (t < 3600) return t % 60 ? `${Math.floor(t / 60)}m ${b(t % 60)}s` : `${t / 60} min`;
243
243
  }
244
244
  let t = Math.round(e / 6e4);
245
- return `${Math.floor(t / 60)}h ${y(t % 60)}m`;
245
+ return `${Math.floor(t / 60)}h ${b(t % 60)}m`;
246
246
  }
247
- function E(e) {
247
+ function D(e) {
248
248
  if (e == null || !Number.isFinite(e)) return "—";
249
249
  if (e < 1e3) return `${Math.round(e)}ms`;
250
250
  if (e < 59500) return `${(e / 1e3).toFixed(+(e < 9950))}s`;
251
251
  let t = Math.round(e / 1e3);
252
- return t < 3600 ? `${Math.floor(t / 60)}m${y(t % 60)}s` : T(e);
253
- }
254
- function D(e) {
255
- let t = Math.max(0, Math.round(e / 1e3)), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60);
256
- return `+${n ? `${n}:${y(r)}` : r}:${y(t % 60)}`;
252
+ return t < 3600 ? `${Math.floor(t / 60)}m${b(t % 60)}s` : E(e);
257
253
  }
258
254
  var O = (e) => e == null ? "—" : e.toLocaleString("en-US"), k = (e) => e == null ? "—" : new Intl.NumberFormat("en-US", {
259
255
  notation: "compact",
260
256
  maximumFractionDigits: e >= 1e8 ? 0 : e >= 1e6 ? 2 : 1
261
- }).format(e), A = (e) => e == null ? "—" : e >= 100 ? `$${e.toFixed(0)}` : `$${e.toFixed(2)}`, j = {
257
+ }).format(e), A = (e) => e == null ? "—" : e >= 100 ? `$${e.toFixed(0)}` : `$${e.toFixed(2)}`, j = (e) => e.length < 2 ? e.join("") : `${e.slice(0, -1).join(", ")} and ${e.at(-1)}`;
258
+ function M(e) {
259
+ let t = e?.latest;
260
+ if (!t) return {
261
+ word: "Not checked",
262
+ tone: "none",
263
+ note: null
264
+ };
265
+ if (t.solved) return {
266
+ word: "Passed",
267
+ tone: "ok",
268
+ note: t.tag ? `${t.tag} passed the check` : null
269
+ };
270
+ if (e?.held && (!e.held.tag || e.held.tag === t.tag)) {
271
+ let n = e.calibration?.uncalibrated ?? e.calibration?.stages?.filter((e) => e.state !== "calibrated").map((e) => e.name) ?? [];
272
+ return {
273
+ word: "Held",
274
+ tone: "held",
275
+ note: `${t.tag ? `${t.tag} passed; it` : "It"} counts once ${n.length ? `${j(n)} ${n.length === 1 ? "has" : "have"} a known-good fixture` : "its checker is calibrated"}`
276
+ };
277
+ }
278
+ return t.known ? {
279
+ word: "Not solved",
280
+ tone: "fail",
281
+ note: null
282
+ } : {
283
+ word: "No verdict",
284
+ tone: "none",
285
+ note: null
286
+ };
287
+ }
288
+ //#endregion
289
+ //#region src/workspace/run/ui.tsx
290
+ var N = {
262
291
  search: "M11 11l3.5 3.5M7 12.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11z",
263
292
  chevron: "M4 6l4 4 4-4",
264
293
  arrow: "M3 8h10M9 4l4 4-4 4",
@@ -278,27 +307,27 @@ var O = (e) => e == null ? "—" : e.toLocaleString("en-US"), k = (e) => e == nu
278
307
  down: "M8 2.5v11M3.5 9L8 13.5 12.5 9",
279
308
  file: "M9.5 1.8h-5a1.5 1.5 0 0 0-1.5 1.5v9.4a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5V5.3zM9.5 1.8v3.5H13M5.5 8.5h5M5.5 11h3.5"
280
309
  };
281
- function M({ name: e, size: t = 16, className: n }) {
310
+ function P({ name: e, size: t = 16, className: n }) {
282
311
  return /* @__PURE__ */ c("svg", {
283
312
  className: `rp-i${n ? ` ${n}` : ""}`,
284
313
  width: t,
285
314
  height: t,
286
315
  viewBox: "0 0 16 16",
287
316
  "aria-hidden": "true",
288
- children: /* @__PURE__ */ c("path", { d: j[e] })
317
+ children: /* @__PURE__ */ c("path", { d: N[e] })
289
318
  });
290
319
  }
291
- var N = ({ tone: e }) => /* @__PURE__ */ c("span", {
320
+ var F = ({ tone: e }) => /* @__PURE__ */ c("span", {
292
321
  className: `rp-dot${e ? ` ${e}` : ""}`,
293
322
  "aria-hidden": "true"
294
323
  });
295
- function P(e, t) {
324
+ function I(e, t) {
296
325
  if (e.length <= t) return e;
297
326
  let n = Math.ceil((t - 1) * .55);
298
327
  return `${e.slice(0, n)}…${e.slice(e.length - (t - 1 - n))}`;
299
328
  }
300
- var F = (e, t) => e.name.length <= t ? e.name : P(e.short, t);
301
- function I({ text: e, query: t }) {
329
+ var L = (e, t) => e.name.length <= t ? e.name : I(e.short, t);
330
+ function R({ text: e, query: t }) {
302
331
  let n = t.trim().toLowerCase(), r = n ? e.toLowerCase().indexOf(n) : -1;
303
332
  return r < 0 ? /* @__PURE__ */ c(s, { children: e }) : /* @__PURE__ */ l(s, { children: [
304
333
  e.slice(0, r),
@@ -306,8 +335,8 @@ function I({ text: e, query: t }) {
306
335
  e.slice(r + n.length)
307
336
  ] });
308
337
  }
309
- var L = e(null), R = () => t(L);
310
- function z({ children: e }) {
338
+ var z = e(null), B = () => t(z);
339
+ function V({ children: e }) {
311
340
  let [t, s] = o(null), d = a(!1), f = a(0), p = a(null), m = i(() => ({
312
341
  show: (e) => {
313
342
  d.current || (window.clearTimeout(f.current), s(e));
@@ -358,7 +387,7 @@ function z({ children: e }) {
358
387
  c = u + 14, c + n > e.r && (c = d - 14 - n), c < e.l && (c = Math.max(12, Math.min(i - n - 12, u + 14))), l = o.top + (o.bottom - o.top) / 2 - r / 2, l = r <= e.b - e.t ? Math.max(e.t, Math.min(l, e.b - r)) : Math.max(12, Math.min(l, a - r - 12));
359
388
  }
360
389
  e.style.left = `${Math.round(Math.max(12, c))}px`, e.style.top = `${Math.round(Math.max(12, Math.min(l, a - r - 12)))}px`;
361
- }, [t]), /* @__PURE__ */ l(L.Provider, {
390
+ }, [t]), /* @__PURE__ */ l(z.Provider, {
362
391
  value: m,
363
392
  children: [e, t && typeof document < "u" && u(/* @__PURE__ */ l("div", {
364
393
  ref: p,
@@ -373,7 +402,7 @@ function z({ children: e }) {
373
402
  className: "rp-card-x",
374
403
  "aria-label": "Close",
375
404
  onClick: m.hideNow,
376
- children: /* @__PURE__ */ c(M, {
405
+ children: /* @__PURE__ */ c(P, {
377
406
  name: "x",
378
407
  size: 14
379
408
  })
@@ -381,8 +410,8 @@ function z({ children: e }) {
381
410
  }), document.querySelector(".agent-record") ?? document.body)]
382
411
  });
383
412
  }
384
- function B(e, t = {}) {
385
- let n = R(), r = (r) => {
413
+ function H(e, t = {}) {
414
+ let n = B(), r = (r) => {
386
415
  let i = r.getBoundingClientRect();
387
416
  n.show({
388
417
  content: e(),
@@ -399,7 +428,7 @@ function B(e, t = {}) {
399
428
  onBlur: () => n.hide()
400
429
  };
401
430
  }
402
- function V({ tools: e, rows: t = 9 }) {
431
+ function U({ tools: e, rows: t = 9 }) {
403
432
  let n = Math.max(1, ...e.map((e) => e.calls));
404
433
  return /* @__PURE__ */ l("div", {
405
434
  className: "rp-tt",
@@ -417,7 +446,7 @@ function V({ tools: e, rows: t = 9 }) {
417
446
  className: "h r",
418
447
  children: "✕ · p50"
419
448
  }),
420
- e.slice(0, t).map((e) => /* @__PURE__ */ c(H, {
449
+ e.slice(0, t).map((e) => /* @__PURE__ */ c(W, {
421
450
  t: e,
422
451
  max: n
423
452
  }, e.name)),
@@ -436,14 +465,14 @@ function V({ tools: e, rows: t = 9 }) {
436
465
  ]
437
466
  });
438
467
  }
439
- function H({ t: e, max: t }) {
468
+ function W({ t: e, max: t }) {
440
469
  return /* @__PURE__ */ l(s, { children: [
441
470
  /* @__PURE__ */ c("span", {
442
471
  className: "l",
443
472
  title: e.name,
444
473
  children: e.name
445
474
  }),
446
- /* @__PURE__ */ c(U, {
475
+ /* @__PURE__ */ c(G, {
447
476
  ok: e.calls - e.failures,
448
477
  failed: e.failures,
449
478
  max: t
@@ -454,11 +483,11 @@ function H({ t: e, max: t }) {
454
483
  }),
455
484
  /* @__PURE__ */ c("span", {
456
485
  className: e.failures ? "f" : "r",
457
- children: e.failures ? `${e.failures} ✕` : E(e.p50)
486
+ children: e.failures ? `${e.failures} ✕` : D(e.p50)
458
487
  })
459
488
  ] });
460
489
  }
461
- function U({ ok: e, failed: t = 0, max: n }) {
490
+ function G({ ok: e, failed: t = 0, max: n }) {
462
491
  return /* @__PURE__ */ l("span", {
463
492
  className: "rp-bar",
464
493
  "aria-hidden": "true",
@@ -468,15 +497,15 @@ function U({ ok: e, failed: t = 0, max: n }) {
468
497
  })]
469
498
  });
470
499
  }
471
- var W = (e) => e.listUsd === null ? e.billedUsd === null ? "not recorded" : `${A(e.billedUsd)} billed` : `${A(e.listUsd)} list · ${A(e.billedUsd ?? 0)} billed`;
472
- function G({ m: e, a: t, head: n }) {
500
+ var K = (e) => e.listUsd === null ? e.billedUsd === null ? "not recorded" : `${A(e.billedUsd)} billed` : `${A(e.listUsd)} list · ${A(e.billedUsd ?? 0)} billed`;
501
+ function q({ m: e, a: t, head: n }) {
473
502
  let r = (t) => new Date(e.t0 + t).toISOString().slice(11, 16), i = t.parent ? e.byId.get(t.parent) : null;
474
503
  return /* @__PURE__ */ l(s, { children: [n ?? /* @__PURE__ */ l("div", {
475
504
  className: "rp-card-h",
476
505
  children: [/* @__PURE__ */ l("div", {
477
506
  className: "t",
478
507
  children: [
479
- /* @__PURE__ */ c(N, { tone: t.state.tone }),
508
+ /* @__PURE__ */ c(F, { tone: t.state.tone }),
480
509
  /* @__PURE__ */ c("span", {
481
510
  className: "nm",
482
511
  children: t.name
@@ -497,15 +526,15 @@ function G({ m: e, a: t, head: n }) {
497
526
  /* @__PURE__ */ c("dd", { children: t.tokens === null ? "not recorded" : k(t.tokens) }),
498
527
  t.tokens !== null && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("dt", { children: "In · out · cached" }), /* @__PURE__ */ c("dd", { children: t.byClass ? `${k(t.byClass.input)} · ${k(t.byClass.output)} · ${k(t.byClass.cacheRead)}` : /* @__PURE__ */ c("small", { children: "not recorded" }) })] }),
499
528
  /* @__PURE__ */ c("dt", { children: "Cost" }),
500
- /* @__PURE__ */ c("dd", { children: W(t) }),
529
+ /* @__PURE__ */ c("dd", { children: K(t) }),
501
530
  /* @__PURE__ */ c("dt", { children: "Model calls" }),
502
531
  /* @__PURE__ */ c("dd", { children: O(t.modelCalls) }),
503
532
  t.latency.p50 !== null && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("dt", { children: "Model p50 · p90 · p99" }), /* @__PURE__ */ l("dd", { children: [
504
- E(t.latency.p50),
533
+ D(t.latency.p50),
505
534
  " · ",
506
- E(t.latency.p90),
535
+ D(t.latency.p90),
507
536
  " · ",
508
- E(t.latency.p99)
537
+ D(t.latency.p99)
509
538
  ] })] }),
510
539
  /* @__PURE__ */ c("dt", { children: "Tool calls" }),
511
540
  /* @__PURE__ */ l("dd", { children: [O(t.toolCalls), t.toolFailures ? /* @__PURE__ */ l("span", {
@@ -527,11 +556,11 @@ function G({ m: e, a: t, head: n }) {
527
556
  ] }),
528
557
  /* @__PURE__ */ c("dt", { children: "Active" }),
529
558
  /* @__PURE__ */ c("dd", { children: t.first === null ? "never" : `${r(t.first)}–${t.state.tone === "live" ? "now" : r(t.last ?? t.first)} UTC` }),
530
- t.first !== null && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("dt", { children: "Busy" }), /* @__PURE__ */ c("dd", { children: T(t.busy) })] })
531
- ] })] }), t.tools.length > 0 && /* @__PURE__ */ l("section", { children: [/* @__PURE__ */ c("h6", { children: "Tool calls by tool" }), /* @__PURE__ */ c(V, { tools: t.tools })] })]
559
+ t.first !== null && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("dt", { children: "Busy" }), /* @__PURE__ */ c("dd", { children: E(t.busy) })] })
560
+ ] })] }), t.tools.length > 0 && /* @__PURE__ */ l("section", { children: [/* @__PURE__ */ c("h6", { children: "Tool calls by tool" }), /* @__PURE__ */ c(U, { tools: t.tools })] })]
532
561
  })] });
533
562
  }
534
- function K({ m: e, team: t }) {
563
+ function J({ m: e, team: t }) {
535
564
  let n = t.members.map((t) => e.byId.get(t)).filter(Boolean), r = /* @__PURE__ */ new Map();
536
565
  for (let e of n) for (let t of e.tools) {
537
566
  let e = r.get(t.name) ?? {
@@ -555,7 +584,7 @@ function K({ m: e, team: t }) {
555
584
  children: [/* @__PURE__ */ l("div", {
556
585
  className: "t",
557
586
  children: [
558
- /* @__PURE__ */ c(M, { name: "users" }),
587
+ /* @__PURE__ */ c(P, { name: "users" }),
559
588
  /* @__PURE__ */ c("span", {
560
589
  className: "nm",
561
590
  children: t.label
@@ -570,7 +599,7 @@ function K({ m: e, team: t }) {
570
599
  children: [
571
600
  a,
572
601
  " running · ",
573
- n.filter((e) => e.state.tone === "ok").length,
602
+ n.filter((e) => d(e.state.tone)).length,
574
603
  " done"
575
604
  ]
576
605
  })]
@@ -592,11 +621,11 @@ function K({ m: e, team: t }) {
592
621
  })] }),
593
622
  /* @__PURE__ */ c("dt", { children: "Commits" }),
594
623
  /* @__PURE__ */ c("dd", { children: i((e) => e.commits ?? 0) })
595
- ] })] }), /* @__PURE__ */ l("section", { children: [/* @__PURE__ */ c("h6", { children: "Tool calls by tool" }), /* @__PURE__ */ c(V, { tools: [...r.values()].sort((e, t) => t.calls - e.calls) })] })]
624
+ ] })] }), /* @__PURE__ */ l("section", { children: [/* @__PURE__ */ c("h6", { children: "Tool calls by tool" }), /* @__PURE__ */ c(U, { tools: [...r.values()].sort((e, t) => t.calls - e.calls) })] })]
596
625
  })] });
597
626
  }
598
- var q = 36;
599
- function J(e) {
627
+ var Y = 36;
628
+ function X(e) {
600
629
  let [t, n] = o(!1), r = a(null);
601
630
  return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l("button", {
602
631
  ref: r,
@@ -612,12 +641,12 @@ function J(e) {
612
641
  children: e.children
613
642
  }), /* @__PURE__ */ c("span", {
614
643
  className: "cv",
615
- children: /* @__PURE__ */ c(M, {
644
+ children: /* @__PURE__ */ c(P, {
616
645
  name: "chevron",
617
646
  size: 14
618
647
  })
619
648
  })]
620
- }), t && /* @__PURE__ */ c(Y, {
649
+ }), t && /* @__PURE__ */ c(Z, {
621
650
  ...e,
622
651
  anchor: r.current,
623
652
  onClose: (e) => {
@@ -625,7 +654,7 @@ function J(e) {
625
654
  }
626
655
  })] });
627
656
  }
628
- function Y(e) {
657
+ function Z(e) {
629
658
  let { options: t, groups: s, all: d, multi: f, anchor: p, onClose: m } = e, [h, g] = o(""), [_, v] = o(0), [y, b] = o(0), x = a(null), S = a(null), C = i(() => `pk-${Math.random().toString(36).slice(2, 8)}`, []), w = (t) => f ? e.value.has(t) : e.value === t, T = i(() => {
630
659
  let e = h.trim().toLowerCase(), n = (t) => !e || `${t.label} ${t.find ?? ""}`.toLowerCase().includes(e), r = [];
631
660
  d && !e && r.push({ kind: "all" });
@@ -691,13 +720,13 @@ function Y(e) {
691
720
  }, D = (e) => {
692
721
  let t = S.current;
693
722
  if (!t) return;
694
- let n = e * q;
695
- n < t.scrollTop ? t.scrollTop = n : n + q > t.scrollTop + t.clientHeight && (t.scrollTop = n + q - t.clientHeight);
723
+ let n = e * Y;
724
+ n < t.scrollTop ? t.scrollTop = n : n + Y > t.scrollTop + t.clientHeight && (t.scrollTop = n + Y - t.clientHeight);
696
725
  }, O = (e) => {
697
726
  let t = Math.max(0, Math.min(T.length - 1, e));
698
727
  v(t), D(t);
699
728
  }, k = (e) => {
700
- let t = Math.max(1, Math.floor((S.current?.clientHeight ?? 360) / q) - 1), n = {
729
+ let t = Math.max(1, Math.floor((S.current?.clientHeight ?? 360) / Y) - 1), n = {
701
730
  ArrowDown: () => O(_ + 1),
702
731
  ArrowUp: () => O(_ - 1),
703
732
  PageDown: () => O(_ + t),
@@ -709,7 +738,7 @@ function Y(e) {
709
738
  Tab: () => m(!1)
710
739
  }[e.key];
711
740
  n && (e.key !== "Tab" && e.preventDefault(), n());
712
- }, A = Math.min(T.length * q + 8, 296), j = Math.max(0, Math.floor(y / q) - 4), P = Math.min(T.length, Math.ceil((y + A) / q) + 4), F = f ? e.value.size === 0 : e.value === null;
741
+ }, A = Math.min(T.length * Y + 8, 296), j = Math.max(0, Math.floor(y / Y) - 4), M = Math.min(T.length, Math.ceil((y + A) / Y) + 4), N = f ? e.value.size === 0 : e.value === null;
713
742
  return u(/* @__PURE__ */ l("div", {
714
743
  ref: x,
715
744
  className: "rp-lb",
@@ -718,7 +747,7 @@ function Y(e) {
718
747
  /* @__PURE__ */ l("div", {
719
748
  className: "rp-lb-s",
720
749
  children: [
721
- /* @__PURE__ */ c(M, { name: "search" }),
750
+ /* @__PURE__ */ c(P, { name: "search" }),
722
751
  /* @__PURE__ */ c("input", {
723
752
  autoFocus: !0,
724
753
  value: h,
@@ -746,11 +775,11 @@ function Y(e) {
746
775
  onScroll: (e) => b(e.currentTarget.scrollTop),
747
776
  children: /* @__PURE__ */ c("div", {
748
777
  style: {
749
- height: T.length * q,
778
+ height: T.length * Y,
750
779
  position: "relative"
751
780
  },
752
- children: T.slice(j, P).map((e, t) => {
753
- let n = j + t, r = { top: n * q + 4 }, i = `rp-lb-r${n === _ ? " active" : ""}`;
781
+ children: T.slice(j, M).map((e, t) => {
782
+ let n = j + t, r = { top: n * Y + 4 }, i = `rp-lb-r${n === _ ? " active" : ""}`;
754
783
  if (e.kind === "group") {
755
784
  let t = e.members.filter((e) => w(e)).length;
756
785
  return /* @__PURE__ */ l("div", {
@@ -764,12 +793,12 @@ function Y(e) {
764
793
  children: [
765
794
  f ? /* @__PURE__ */ c("span", {
766
795
  className: `box${t && t < e.members.length ? " part" : ""}`,
767
- children: t === e.members.length ? /* @__PURE__ */ c(M, {
796
+ children: t === e.members.length ? /* @__PURE__ */ c(P, {
768
797
  name: "check",
769
798
  size: 12
770
799
  }) : t ? "–" : null
771
800
  }) : /* @__PURE__ */ c("span", { className: "ck" }),
772
- /* @__PURE__ */ c(M, {
801
+ /* @__PURE__ */ c(P, {
773
802
  name: "users",
774
803
  size: 14
775
804
  }),
@@ -784,7 +813,7 @@ function Y(e) {
784
813
  ]
785
814
  }, `g:${e.id}`);
786
815
  }
787
- let a = e.kind === "all" ? F : w(e.option.id), o = e.kind === "all" ? d.label : e.option.label, s = e.kind === "all" ? d.meta : e.option.meta;
816
+ let a = e.kind === "all" ? N : w(e.option.id), o = e.kind === "all" ? d.label : e.option.label, s = e.kind === "all" ? d.meta : e.option.meta;
788
817
  return /* @__PURE__ */ l("div", {
789
818
  id: `${C}-${n}`,
790
819
  role: "option",
@@ -796,21 +825,21 @@ function Y(e) {
796
825
  children: [
797
826
  f ? /* @__PURE__ */ c("span", {
798
827
  className: "box",
799
- children: a ? /* @__PURE__ */ c(M, {
828
+ children: a ? /* @__PURE__ */ c(P, {
800
829
  name: "check",
801
830
  size: 12
802
831
  }) : null
803
832
  }) : /* @__PURE__ */ c("span", {
804
833
  className: "ck",
805
- children: a ? /* @__PURE__ */ c(M, {
834
+ children: a ? /* @__PURE__ */ c(P, {
806
835
  name: "check",
807
836
  size: 14
808
837
  }) : null
809
838
  }),
810
- e.kind === "option" && e.option.tone !== void 0 && /* @__PURE__ */ c(N, { tone: e.option.tone }),
839
+ e.kind === "option" && e.option.tone !== void 0 && /* @__PURE__ */ c(F, { tone: e.option.tone }),
811
840
  /* @__PURE__ */ c("span", {
812
841
  className: "nm",
813
- children: /* @__PURE__ */ c(I, {
842
+ children: /* @__PURE__ */ c(R, {
814
843
  text: o,
815
844
  query: h
816
845
  })
@@ -851,7 +880,7 @@ function Y(e) {
851
880
  ]
852
881
  }), p.closest(".agent-record") ?? document.body);
853
882
  }
854
- function X(e, t = () => !0, n = (e) => e.tokens === null ? "—" : k(e.tokens)) {
883
+ function Q(e, t = () => !0, n = (e) => e.tokens === null ? "—" : k(e.tokens)) {
855
884
  return e.tree.filter(t).map((t) => ({
856
885
  id: t.id,
857
886
  label: t.name,
@@ -861,14 +890,15 @@ function X(e, t = () => !0, n = (e) => e.tokens === null ? "—" : k(e.tokens))
861
890
  group: e.teams.length && t.team && t.team !== t.id ? t.team : null
862
891
  }));
863
892
  }
864
- var Z = (e) => e.teams.length ? e.teams.map((e) => ({
893
+ var $ = (e) => e.teams.length ? e.teams.map((e) => ({
865
894
  id: e.id,
866
895
  label: e.label
867
896
  })) : void 0;
868
- function Q(e, t, r, i = 6) {
897
+ function ee(e, t, r, i = 6) {
869
898
  let [a, s] = o({
870
899
  top: 0,
871
- height: 800
900
+ height: 800,
901
+ width: 0
872
902
  });
873
903
  n(() => {
874
904
  let t = e.current;
@@ -876,7 +906,8 @@ function Q(e, t, r, i = 6) {
876
906
  let n = 0, r = () => {
877
907
  n = 0, s({
878
908
  top: t.scrollTop,
879
- height: t.clientHeight || 800
909
+ height: t.clientHeight || 800,
910
+ width: t.clientWidth
880
911
  });
881
912
  }, i = () => {
882
913
  n ||= requestAnimationFrame(r);
@@ -892,10 +923,11 @@ function Q(e, t, r, i = 6) {
892
923
  first: c,
893
924
  last: l,
894
925
  before: c * r,
895
- after: Math.max(0, (t - l) * r)
926
+ after: Math.max(0, (t - l) * r),
927
+ width: a.width
896
928
  };
897
929
  }
898
- function $() {
930
+ function te() {
899
931
  let e = "(max-width: 720px)", [t, r] = o(() => typeof window < "u" && window.matchMedia(e).matches);
900
932
  return n(() => {
901
933
  let t = window.matchMedia(e), n = () => r(t.matches);
@@ -903,4 +935,4 @@ function $() {
903
935
  }, []), t;
904
936
  }
905
937
  //#endregion
906
- export { w as A, T as C, f as D, D as E, S as O, O as S, v as T, Q as _, M as a, b, K as c, X as d, P as f, $ as g, B as h, I as i, A as j, C as k, W as l, R as m, U as n, J as o, F as p, z as r, N as s, G as t, Z as u, k as v, E as w, x, _ as y };
938
+ export { w as A, O as C, y as D, D as E, A as M, p as O, S, d as T, ee as _, P as a, M as b, J as c, Q as d, I as f, te as g, H as h, R as i, T as j, C as k, K as l, B as m, G as n, X as o, L as p, V as r, F as s, q as t, $ as u, k as v, E as w, x, v as y };