@omg-dev/app 0.1.370 → 0.1.372

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.
@@ -1,4 +1,4 @@
1
- import { R as c, L as f, A as d } from "./streamdown-response-TIBUsHkA.js";
1
+ import { R as c, L as f, A as d } from "./streamdown-response-OVPK7bbP.js";
2
2
  import { useContext as p, useState as L, useEffect as N } from "react";
3
3
  import { jsx as x } from "react/jsx-runtime";
4
4
  var A = ({ code: s, language: e, raw: a, className: o, startLine: m, lineNumbers: u, ...g }) => {
@@ -1,4 +1,4 @@
1
- import { w as T, s as U, h as X, c as Y, v as G, S as J, o as k, l as Q, f as M, m as y } from "./streamdown-response-TIBUsHkA.js";
1
+ import { w as T, s as U, h as X, c as Y, v as G, S as J, o as k, l as Q, f as M, m as y } from "./streamdown-response-OVPK7bbP.js";
2
2
  import v from "./katex-jHfnQmlp.js";
3
3
  function Z(t, e) {
4
4
  return B(t, {}) || { type: "root", children: [] };
package/dist-lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { af as p, ag as m, ah as o } from "./embedded-Df_8ER4z.js";
3
+ import { ae as p, af as m, ag as o } from "./embedded-BPEyimn0.js";
4
4
  export {
5
5
  p as OmgAppSurface,
6
6
  m as OmgSettingsSurface,
@@ -0,0 +1,4 @@
1
+ import { p } from "./streamdown-response-OVPK7bbP.js";
2
+ export {
3
+ p as Mermaid
4
+ };
@@ -0,0 +1,316 @@
1
+ import { jsx as t, jsxs as s, Fragment as N } from "react/jsx-runtime";
2
+ import { r as H, n as Q, a as re, o as le, p as oe, q as ie, X, A, f as u, R as B, s as ce, u as de, v as J, T as ue, w as me, x as he, y as pe, L as fe } from "./embedded-BPEyimn0.js";
3
+ import { useState as a, useRef as L, useEffect as v, useCallback as ge } from "react";
4
+ function we({
5
+ initial: m,
6
+ scopedProject: w,
7
+ onRestore: K,
8
+ onPick: W,
9
+ onClose: y
10
+ }) {
11
+ const S = w && w !== "__all" ? w : "all", T = H(), [r, R] = a(
12
+ () => T.some((e) => e.status !== "sent") ? "stash" : "sessions"
13
+ ), [h, Y] = a(T), [o, k] = a(""), [p, Z] = a(""), [i, E] = a("all"), [n, P] = a(S), [l, D] = a(
14
+ S === "all" && m ? m : []
15
+ ), [f, F] = a(S === "all" && m ? m.length : 0), [g, M] = a({ agents: [], projects: [] }), [_, $] = a(!1), [I, G] = a(!1), U = L(null), q = L(l), c = L(0);
16
+ v(() => {
17
+ q.current = l;
18
+ }, [l]), v(() => {
19
+ const e = () => Y(H());
20
+ return window.addEventListener(Q, e), window.addEventListener("storage", e), () => {
21
+ window.removeEventListener(Q, e), window.removeEventListener("storage", e);
22
+ };
23
+ }, []), v(() => {
24
+ const e = window.setTimeout(() => Z(o.trim()), 220);
25
+ return () => window.clearTimeout(e);
26
+ }, [o]);
27
+ const j = ge(
28
+ (e) => {
29
+ const d = e ? ++c.current : c.current, ae = e ? 0 : q.current.length;
30
+ e ? $(!0) : G(!0);
31
+ const x = new URLSearchParams({ limit: String(25), offset: String(ae) });
32
+ p && x.set("search", p), i !== "all" && x.set("agent", i), n !== "all" && x.set("project", n), re(`/api/sessions/resumable?${x.toString()}`).then((b) => {
33
+ if (d !== c.current) return;
34
+ const z = Array.isArray(b.sessions) ? b.sessions : [];
35
+ D((ne) => e ? z : [...ne, ...z]), F(b.total ?? z.length), M(b.facets ?? { agents: [], projects: [] });
36
+ }).catch(() => {
37
+ d !== c.current || !e || (D([]), F(0), M({ agents: [], projects: [] }));
38
+ }).finally(() => {
39
+ d === c.current && (e ? $(!1) : G(!1));
40
+ });
41
+ },
42
+ [i, p, n]
43
+ );
44
+ v(() => {
45
+ r === "sessions" && j(!0);
46
+ }, [j, r]);
47
+ const C = o.trim().toLowerCase(), O = h.filter(
48
+ (e) => C ? `${e.text} ${e.sessionTitle ?? ""} ${e.project ?? ""}`.toLowerCase().includes(C) : !0
49
+ ), ee = _ && !l.length, V = i !== "all" || n !== "all" || !!p, te = l.length < f, se = (e) => e === "draft" ? "Draft" : e === "sending" ? "Sending" : e === "failed" ? "Failed" : "Sent";
50
+ return /* @__PURE__ */ t(
51
+ le,
52
+ {
53
+ open: !0,
54
+ repositionInputs: !1,
55
+ onOpenChange: (e) => {
56
+ e || y();
57
+ },
58
+ children: /* @__PURE__ */ t(oe, { className: "mx-auto w-full max-w-2xl sm:max-w-2xl", children: /* @__PURE__ */ s("div", { className: "flex min-h-0 flex-col overflow-hidden max-h-[72dvh] group-data-[paged=true]/drawer-content:max-h-none group-data-[paged=true]/drawer-content:flex-1", children: [
59
+ /* @__PURE__ */ s("header", { className: "shrink-0 border-b border-border/70 pb-2", children: [
60
+ /* @__PURE__ */ s("div", { className: "flex h-9 items-center gap-2", children: [
61
+ /* @__PURE__ */ t(ie, { className: "text-[15px] font-semibold", children: "Resume" }),
62
+ /* @__PURE__ */ t("span", { className: "text-xs text-muted-foreground", children: "Stash & sessions" }),
63
+ /* @__PURE__ */ t(
64
+ "button",
65
+ {
66
+ type: "button",
67
+ onClick: y,
68
+ "aria-label": "Close",
69
+ className: "ml-auto flex size-8 items-center justify-center rounded-full bg-muted text-muted-foreground transition hover:text-foreground active:scale-95",
70
+ children: /* @__PURE__ */ t(X, { className: "size-4" })
71
+ }
72
+ )
73
+ ] }),
74
+ /* @__PURE__ */ s("div", { className: "mt-2 flex items-center gap-2", children: [
75
+ /* @__PURE__ */ s("div", { className: "inline-flex h-8 shrink-0 items-center rounded-full bg-muted p-0.5 text-xs font-medium", children: [
76
+ /* @__PURE__ */ s(
77
+ "button",
78
+ {
79
+ type: "button",
80
+ onClick: () => R("stash"),
81
+ className: u(
82
+ "flex h-7 items-center gap-1.5 rounded-full px-3 transition",
83
+ r === "stash" ? "bg-background text-foreground shadow-sm" : "text-muted-foreground"
84
+ ),
85
+ children: [
86
+ /* @__PURE__ */ t(A, { className: "size-3.5" }),
87
+ "Stash",
88
+ h.length ? /* @__PURE__ */ t("span", { className: "tabular-nums opacity-60", children: h.length }) : null
89
+ ]
90
+ }
91
+ ),
92
+ /* @__PURE__ */ s(
93
+ "button",
94
+ {
95
+ type: "button",
96
+ onClick: () => R("sessions"),
97
+ className: u(
98
+ "flex h-7 items-center gap-1.5 rounded-full px-3 transition",
99
+ r === "sessions" ? "bg-background text-foreground shadow-sm" : "text-muted-foreground"
100
+ ),
101
+ children: [
102
+ /* @__PURE__ */ t(B, { className: "size-3.5" }),
103
+ "Sessions",
104
+ f ? /* @__PURE__ */ t("span", { className: "tabular-nums opacity-60", children: f }) : null
105
+ ]
106
+ }
107
+ )
108
+ ] }),
109
+ r === "stash" && h.length ? /* @__PURE__ */ t(
110
+ "button",
111
+ {
112
+ type: "button",
113
+ onClick: () => ce(),
114
+ className: "ml-auto h-8 rounded-full px-2.5 text-xs font-medium text-muted-foreground transition hover:bg-muted hover:text-destructive",
115
+ children: "Clear"
116
+ }
117
+ ) : null
118
+ ] }),
119
+ /* @__PURE__ */ s("div", { className: "mt-2 flex items-center gap-1.5", children: [
120
+ /* @__PURE__ */ s("div", { className: "relative min-w-0 flex-1", children: [
121
+ /* @__PURE__ */ t(de, { className: "pointer-events-none absolute left-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground/70" }),
122
+ /* @__PURE__ */ t(
123
+ "input",
124
+ {
125
+ ref: U,
126
+ value: o,
127
+ onChange: (e) => k(e.target.value),
128
+ placeholder: r === "stash" ? "Search prompts" : "Search sessions",
129
+ "aria-label": r === "stash" ? "Search stashed prompts" : "Search resumable sessions",
130
+ autoComplete: "off",
131
+ className: "h-8 w-full rounded-full border border-border bg-muted/40 pl-8 pr-8 text-xs outline-none transition focus:border-ring focus:bg-background"
132
+ }
133
+ ),
134
+ o ? /* @__PURE__ */ t(
135
+ "button",
136
+ {
137
+ type: "button",
138
+ onClick: () => {
139
+ var e;
140
+ k(""), (e = U.current) == null || e.focus();
141
+ },
142
+ "aria-label": "Clear search",
143
+ className: "absolute right-1.5 top-1/2 flex size-6 -translate-y-1/2 items-center justify-center rounded-full text-muted-foreground",
144
+ children: /* @__PURE__ */ t(X, { className: "size-3.5" })
145
+ }
146
+ ) : null
147
+ ] }),
148
+ r === "sessions" ? /* @__PURE__ */ s(N, { children: [
149
+ /* @__PURE__ */ s(
150
+ "select",
151
+ {
152
+ value: i,
153
+ onChange: (e) => E(e.target.value),
154
+ "aria-label": "Filter by agent",
155
+ className: "h-8 max-w-28 rounded-full border border-border bg-background px-2 text-xs outline-none",
156
+ children: [
157
+ /* @__PURE__ */ t("option", { value: "all", children: "All agents" }),
158
+ g.agents.map((e) => /* @__PURE__ */ s("option", { value: e.agent, children: [
159
+ e.agent,
160
+ " · ",
161
+ e.count
162
+ ] }, e.agent))
163
+ ]
164
+ }
165
+ ),
166
+ g.projects.length || n !== "all" ? /* @__PURE__ */ s(
167
+ "select",
168
+ {
169
+ value: n,
170
+ onChange: (e) => P(e.target.value),
171
+ "aria-label": "Filter by project",
172
+ className: "h-8 max-w-32 rounded-full border border-border bg-background px-2 text-xs outline-none",
173
+ children: [
174
+ /* @__PURE__ */ t("option", { value: "all", children: "All projects" }),
175
+ n !== "all" && !g.projects.some((e) => e.project === n) ? /* @__PURE__ */ t("option", { value: n, children: n }) : null,
176
+ g.projects.map((e) => /* @__PURE__ */ s("option", { value: e.project, children: [
177
+ e.project,
178
+ " · ",
179
+ e.count
180
+ ] }, e.project))
181
+ ]
182
+ }
183
+ ) : null
184
+ ] }) : null
185
+ ] })
186
+ ] }),
187
+ /* @__PURE__ */ t("div", { className: "min-h-0 max-h-[min(28rem,55dvh)] overflow-y-auto overscroll-contain pt-1", children: r === "stash" ? O.length ? /* @__PURE__ */ t("div", { className: "space-y-0.5", children: O.map((e) => /* @__PURE__ */ s(
188
+ "div",
189
+ {
190
+ className: "group flex items-center gap-1 rounded-xl transition hover:bg-muted",
191
+ children: [
192
+ /* @__PURE__ */ s(
193
+ "button",
194
+ {
195
+ type: "button",
196
+ onClick: () => {
197
+ K(e), y();
198
+ },
199
+ className: "flex min-w-0 flex-1 items-center gap-2.5 px-2 py-2 text-left active:scale-[0.99]",
200
+ children: [
201
+ /* @__PURE__ */ t(
202
+ "span",
203
+ {
204
+ className: u(
205
+ "flex size-7 shrink-0 items-center justify-center rounded-lg",
206
+ e.status === "draft" || e.status === "failed" ? "bg-primary/12 text-primary" : "bg-muted text-muted-foreground"
207
+ ),
208
+ children: /* @__PURE__ */ t(A, { className: "size-3.5" })
209
+ }
210
+ ),
211
+ /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
212
+ /* @__PURE__ */ t("span", { className: "line-clamp-2 text-sm leading-snug", children: e.text }),
213
+ /* @__PURE__ */ s("span", { className: "mt-0.5 flex items-center gap-1.5 text-[11px] text-muted-foreground", children: [
214
+ /* @__PURE__ */ t(
215
+ "span",
216
+ {
217
+ className: u(
218
+ "font-medium",
219
+ e.status === "failed" && "text-destructive",
220
+ e.status === "draft" && "text-primary"
221
+ ),
222
+ children: se(e.status)
223
+ }
224
+ ),
225
+ /* @__PURE__ */ t("span", { children: "·" }),
226
+ /* @__PURE__ */ t("span", { className: "truncate", children: e.source === "new-session" ? e.project || "New session" : e.sessionTitle || "Session" }),
227
+ /* @__PURE__ */ t("span", { children: "·" }),
228
+ /* @__PURE__ */ t("span", { className: "shrink-0 tabular-nums", children: J(e.updatedAt) })
229
+ ] })
230
+ ] })
231
+ ]
232
+ }
233
+ ),
234
+ /* @__PURE__ */ t(
235
+ "button",
236
+ {
237
+ type: "button",
238
+ onClick: () => me(e.id),
239
+ "aria-label": "Remove from Stash",
240
+ className: "mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-muted-foreground opacity-60 transition hover:bg-background hover:text-destructive group-hover:opacity-100",
241
+ children: /* @__PURE__ */ t(ue, { className: "size-3.5" })
242
+ }
243
+ )
244
+ ]
245
+ },
246
+ e.id
247
+ )) }) : /* @__PURE__ */ s("div", { className: "flex h-full min-h-48 flex-col items-center justify-center gap-2 px-4 text-center text-sm text-muted-foreground", children: [
248
+ /* @__PURE__ */ t(A, { className: "size-5" }),
249
+ /* @__PURE__ */ t("span", { children: C ? "No stashed prompts match" : "Typed and dictated prompts will appear here" })
250
+ ] }) : ee ? /* @__PURE__ */ t("div", { className: "animate-pulse space-y-1", "aria-hidden": !0, children: Array.from({ length: 6 }).map((e, d) => /* @__PURE__ */ s("div", { className: "flex items-center gap-2.5 px-2 py-2.5", children: [
251
+ /* @__PURE__ */ t("div", { className: "size-7 shrink-0 rounded-lg bg-muted" }),
252
+ /* @__PURE__ */ s("div", { className: "min-w-0 flex-1 space-y-1.5", children: [
253
+ /* @__PURE__ */ t("div", { className: "h-3 w-1/2 rounded bg-muted" }),
254
+ /* @__PURE__ */ t("div", { className: "h-2.5 w-3/4 rounded bg-muted/60" })
255
+ ] })
256
+ ] }, d)) }) : l.length === 0 ? /* @__PURE__ */ s("div", { className: "flex h-full min-h-48 flex-col items-center justify-center gap-2 px-4 text-center text-sm text-muted-foreground", children: [
257
+ /* @__PURE__ */ t(B, { className: "size-5" }),
258
+ /* @__PURE__ */ t("span", { children: V ? "No sessions match" : "No recent sessions to resume" }),
259
+ V ? /* @__PURE__ */ t(
260
+ "button",
261
+ {
262
+ type: "button",
263
+ onClick: () => {
264
+ k(""), E("all"), P("all");
265
+ },
266
+ className: "rounded-full border border-border px-3 py-1 text-xs font-medium text-foreground",
267
+ children: "Clear filters"
268
+ }
269
+ ) : null
270
+ ] }) : /* @__PURE__ */ s(N, { children: [
271
+ /* @__PURE__ */ t("div", { className: u("space-y-0.5 transition-opacity", _ && "opacity-60"), children: l.map((e) => /* @__PURE__ */ s(
272
+ "button",
273
+ {
274
+ type: "button",
275
+ onClick: () => W(e),
276
+ className: "flex w-full items-center gap-2.5 rounded-xl px-2 py-2 text-left transition hover:bg-muted active:scale-[0.99]",
277
+ children: [
278
+ /* @__PURE__ */ t("span", { className: "flex size-7 shrink-0 items-center justify-center rounded-lg bg-muted", children: /* @__PURE__ */ t(he, { session: e, className: "size-4", size: "sm" }) }),
279
+ /* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
280
+ /* @__PURE__ */ t("span", { className: "block truncate text-sm font-medium", children: e.title }),
281
+ /* @__PURE__ */ s("span", { className: "mt-0.5 flex items-center gap-1.5 text-[11px] text-muted-foreground", children: [
282
+ e.lastUserText ? /* @__PURE__ */ s(N, { children: [
283
+ /* @__PURE__ */ t("span", { className: "max-w-[60%] truncate", children: e.lastUserText }),
284
+ /* @__PURE__ */ t("span", { children: "·" })
285
+ ] }) : null,
286
+ /* @__PURE__ */ t("span", { className: "truncate", children: e.project }),
287
+ /* @__PURE__ */ t("span", { children: "·" }),
288
+ /* @__PURE__ */ t("span", { className: "shrink-0 tabular-nums", children: J(e.lastActivityAt) })
289
+ ] })
290
+ ] }),
291
+ /* @__PURE__ */ t(pe, { className: "size-3.5 shrink-0 text-muted-foreground/60" })
292
+ ]
293
+ },
294
+ e.sessionId
295
+ )) }),
296
+ te ? /* @__PURE__ */ t(
297
+ "button",
298
+ {
299
+ type: "button",
300
+ onClick: () => j(!1),
301
+ disabled: I,
302
+ className: "mt-1 flex w-full items-center justify-center gap-2 rounded-xl px-3 py-2.5 text-xs font-medium text-muted-foreground transition hover:bg-muted disabled:opacity-60",
303
+ children: I ? /* @__PURE__ */ s(N, { children: [
304
+ /* @__PURE__ */ t(fe, { className: "size-3.5 animate-spin" }),
305
+ " Loading…"
306
+ ] }) : `Load ${Math.min(25, f - l.length)} more`
307
+ }
308
+ ) : null
309
+ ] }) })
310
+ ] }) })
311
+ }
312
+ );
313
+ }
314
+ export {
315
+ we as default
316
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as s, jsxs as n, Fragment as $ } from "react/jsx-runtime";
2
- import { a as C, D as T, b as M, c as D, d as S, G as F, e as L, t as R, L as j, f as z } from "./embedded-Df_8ER4z.js";
2
+ import { a as C, D as T, b as M, c as D, d as S, G as F, e as L, t as R, L as j, f as z } from "./embedded-BPEyimn0.js";
3
3
  import { useState as g, useCallback as P, useEffect as U } from "react";
4
4
  function u({
5
5
  title: r,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as r, Fragment as me } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as w, useRef as fe, useContext as $e, useMemo as ze } from "react";
3
- import { E as ve, Q as he, U as Te, V as S, W as ge, Y as Se, Z as Pe, _ as je, B as Fe, L as pe, w as J, z as Ye, R as Ge, f as P, T as Be, $ as Ke, k as be, g as Ue, a0 as He, a as L, a1 as k, a2 as R, l as _, a3 as W, a4 as Ve, a5 as qe, a6 as Qe, a7 as Xe, P as Je, a8 as We } from "./embedded-Df_8ER4z.js";
3
+ import { z as ve, O as he, Q as Te, U as S, V as ge, W as Se, Y as Pe, Z as je, B as Fe, L as pe, v as J, y as Ye, R as Ge, f as P, T as Be, _ as Ke, k as be, g as Ue, $ as He, a as L, a0 as k, a1 as R, l as _, a2 as W, a3 as Ve, a4 as qe, a5 as Qe, a6 as Xe, P as Je, a7 as We } from "./embedded-BPEyimn0.js";
4
4
  /**
5
5
  * @license lucide-react v0.577.0 - ISC
6
6
  *
@@ -3,7 +3,7 @@ var Od = (e, t, n) => t in e ? Rd(e, t, { enumerable: !0, configurable: !0, writ
3
3
  var le = (e, t, n) => Od(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import { jsx as y, jsxs as J, Fragment as _t } from "react/jsx-runtime";
5
5
  import { memo as he, useId as Dd, useTransition as Pd, useMemo as Ee, useRef as Re, useEffect as De, useState as ge, createElement as Xa, isValidElement as Vt, cloneElement as Md, useContext as Pe, createContext as Jt, useCallback as ze, Suspense as wi, lazy as Zu } from "react";
6
- import { ae as Ju, f as eo, a9 as vd, m as Bd, aa as Fd } from "./embedded-Df_8ER4z.js";
6
+ import { ad as Ju, f as eo, a8 as vd, m as Bd, a9 as Fd } from "./embedded-BPEyimn0.js";
7
7
  import { createPortal as to } from "react-dom";
8
8
  import { f as Ur, p as Ka, e as Za, g as Ja, h as Jn, s as Mt, z as no, i as ro, j as io, k as Hd, l as es, w as Ud, b as zd, c as $d, m as jd, d as qd } from "./engine-compile-BeZvvx0I.js";
9
9
  import { g as ao } from "./_commonjsHelpers-C6fGbg64.js";
@@ -18959,7 +18959,7 @@ var yc = Jt(!1), kk = () => Pe(yc), Ua = (...e) => nc(Ju(e)), xk = (e, t) => {
18959
18959
  for (; t > 0 && e[t - 1] === `
18960
18960
  `; ) t--;
18961
18961
  return e.slice(0, t);
18962
- }, wk = Zu(() => import("./highlighted-body-OFNGDK62-DTdqhXV3.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), Lk = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
18962
+ }, wk = Zu(() => import("./highlighted-body-OFNGDK62-CTwfwBuo.js").then((e) => ({ default: e.HighlightedCodeBlockBody }))), Lk = ({ code: e, language: t, className: n, children: r, isIncomplete: i = !1, startLine: a, lineNumbers: s, ...u }) => {
18963
18963
  let o = ee(), l = Ee(() => Sk(e), [e]), d = Ee(() => ({ bg: "transparent", fg: "inherit", tokens: l.split(`
18964
18964
  `).map((f) => [{ content: f, color: "inherit", bgColor: "transparent", htmlStyle: {}, offset: 0 }]) }), [l]);
18965
18965
  return y(Cc.Provider, { value: { code: e }, children: J(Ik, { isIncomplete: i, language: t, children: [y(Nk, { language: t }), r ? y("div", { className: o("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"), children: y("div", { className: o("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"), "data-streamdown": "code-block-actions", children: r }) }) : null, y(wi, { fallback: y(Ck, { className: n, language: t, lineNumbers: s, result: d, startLine: a, ...u }), children: y(wk, { className: n, code: l, language: t, lineNumbers: s, raw: d, startLine: a, ...u }) })] }) });
@@ -19301,7 +19301,7 @@ var yc = Jt(!1), kk = () => Pe(yc), Ua = (...e) => nc(Ju(e)), xk = (e, t) => {
19301
19301
  }, Zk = ({ children: e, className: t, showControls: n, showCopy: r = !0, showDownload: i = !0, showFullscreen: a = !0, ...s }) => {
19302
19302
  let u = ee(), o = n && r, l = n && i, d = n && a, f = o || l || d;
19303
19303
  return J("div", { className: u("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"), "data-streamdown": "table-wrapper", children: [f ? J("div", { className: u("flex items-center justify-end gap-1"), children: [o ? y(Rc, {}) : null, l ? y(Oc, {}) : null, d ? y(Kk, { showCopy: o, showDownload: l, children: e }) : null] }) : null, y("div", { className: u("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"), children: y("table", { className: u("w-full divide-y divide-border", t), "data-streamdown": "table", ...s, children: e }) })] });
19304
- }, Jk = /startLine=(\d+)/, ex = /\bnoLineNumbers\b/, tx = Zu(() => import("./mermaid-GHXKKRXX-BVKClhDd.js").then((e) => ({ default: e.Mermaid }))), nx = /language-([^\s]+)/;
19304
+ }, Jk = /startLine=(\d+)/, ex = /\bnoLineNumbers\b/, tx = Zu(() => import("./mermaid-GHXKKRXX-kwXRpwaX.js").then((e) => ({ default: e.Mermaid }))), nx = /language-([^\s]+)/;
19305
19305
  function Jr(e, t) {
19306
19306
  if (!(e != null && e.position || t != null && t.position)) return !0;
19307
19307
  if (!(e != null && e.position && t != null && t.position)) return !1;
@@ -20814,7 +20814,7 @@ function S6(e) {
20814
20814
  }
20815
20815
  function w6() {
20816
20816
  return Tr || (Tr = Promise.all([
20817
- import("./index-e5lcUoLA.js"),
20817
+ import("./index-lySlrKSq.js"),
20818
20818
  import("./index-JkCQXUYs.js").then((e) => e.bp)
20819
20819
  ]).then(([e, t]) => {
20820
20820
  Hn = { math: e.math, mermaid: t.mermaid };