teodor-new-chat-ui 4.3.489 → 4.3.490
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.esm.js +185 -185
- package/dist/index.umd.js +17 -17
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2,8 +2,8 @@ var Pg = Object.defineProperty;
|
|
|
2
2
|
var Mg = (e, t, n) => t in e ? Pg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var Kl = (e, t, n) => Mg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as h from "react";
|
|
5
|
-
import L, { useMemo as Be, createContext as
|
|
6
|
-
import { Slot as Bg, createSlot as
|
|
5
|
+
import L, { useMemo as Be, createContext as Dr, useContext as Lr, useState as pe, useRef as Pe, useCallback as le, useEffect as Qe, useReducer as Og, useLayoutEffect as Dg, createElement as Qo, memo as Lg, useImperativeHandle as $g, forwardRef as Fg, isValidElement as wi } from "react";
|
|
6
|
+
import { Slot as Bg, createSlot as Nr, createSlottable as zg } from "@radix-ui/react-slot";
|
|
7
7
|
import { cva as wo } from "class-variance-authority";
|
|
8
8
|
import { clsx as Hg } from "clsx";
|
|
9
9
|
import { twMerge as Ug } from "tailwind-merge";
|
|
@@ -162,8 +162,8 @@ function Xl(e) {
|
|
|
162
162
|
}
|
|
163
163
|
const px = {}, xr = typeof import.meta < "u" ? px : void 0;
|
|
164
164
|
var Du;
|
|
165
|
-
const hx = ((Du = xr == null ? void 0 : xr.VITE_DEBUG_HISTORY_INTERRUPTS) == null ? void 0 : Du.toLowerCase()) === "false" || (xr == null ? void 0 : xr.VITE_DEBUG_HISTORY_INTERRUPTS) === "0",
|
|
166
|
-
function
|
|
165
|
+
const hx = ((Du = xr == null ? void 0 : xr.VITE_DEBUG_HISTORY_INTERRUPTS) == null ? void 0 : Du.toLowerCase()) === "false" || (xr == null ? void 0 : xr.VITE_DEBUG_HISTORY_INTERRUPTS) === "0", qr = !hx;
|
|
166
|
+
function Tr(e) {
|
|
167
167
|
const r = [...(Array.isArray(e == null ? void 0 : e.checkpoints) ? (e == null ? void 0 : e.checkpoints) ?? [] : e != null && e.checkpoints ? Object.values(e.checkpoints) : []).map((s, i) => mx(s, i)).filter((s) => !!s)].sort((s, i) => Jl(i.createdAt) - Jl(s.createdAt)), o = r[0] ?? null;
|
|
168
168
|
return {
|
|
169
169
|
threadId: (e == null ? void 0 : e.threadId) ?? "",
|
|
@@ -255,7 +255,7 @@ function wx(e) {
|
|
|
255
255
|
}
|
|
256
256
|
function bx(e, t, n, r, o) {
|
|
257
257
|
const s = t.length, i = yx(e, n);
|
|
258
|
-
if (
|
|
258
|
+
if (qr && console.debug("[historyUtils] deriveInterruptFromSnapshot", {
|
|
259
259
|
checkpointId: r,
|
|
260
260
|
checkpointNs: o,
|
|
261
261
|
fallbackIndex: n,
|
|
@@ -264,25 +264,25 @@ function bx(e, t, n, r, o) {
|
|
|
264
264
|
messageInterrupt: i,
|
|
265
265
|
rawInterrupts: t.slice(Math.max(0, s - 3))
|
|
266
266
|
}), i)
|
|
267
|
-
return
|
|
267
|
+
return qr && console.debug("[historyUtils] interrupt found in messages", i), i;
|
|
268
268
|
for (let a = s - 1; a >= 0; a -= 1) {
|
|
269
269
|
const l = t[a];
|
|
270
270
|
if (!l || typeof l != "object") {
|
|
271
|
-
|
|
271
|
+
qr && console.debug("[historyUtils] skipping invalid raw interrupt entry", { entry: l, index: a });
|
|
272
272
|
continue;
|
|
273
273
|
}
|
|
274
274
|
const c = l, d = c.value ?? l;
|
|
275
275
|
if (d == null) {
|
|
276
|
-
|
|
276
|
+
qr && console.debug("[historyUtils] skipping raw interrupt without value", { entry: l, index: a });
|
|
277
277
|
continue;
|
|
278
278
|
}
|
|
279
279
|
const m = {
|
|
280
280
|
id: typeof c.id == "string" && c.id.trim() ? c.id : `interrupt-${r ?? n}-${a}`,
|
|
281
281
|
value: d
|
|
282
282
|
};
|
|
283
|
-
return
|
|
283
|
+
return qr && console.debug("[historyUtils] interrupt derived from raw entry", m), m;
|
|
284
284
|
}
|
|
285
|
-
return
|
|
285
|
+
return null;
|
|
286
286
|
}
|
|
287
287
|
function yx(e, t) {
|
|
288
288
|
var n;
|
|
@@ -1014,9 +1014,9 @@ function Wu(e, t) {
|
|
|
1014
1014
|
const { toString: Cx } = Object.prototype, { getPrototypeOf: Ma } = Object, { iterator: Ps, toStringTag: Vu } = Symbol, Ms = /* @__PURE__ */ ((e) => (t) => {
|
|
1015
1015
|
const n = Cx.call(t);
|
|
1016
1016
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
1017
|
-
})(/* @__PURE__ */ Object.create(null)), mn = (e) => (e = e.toLowerCase(), (t) => Ms(t) === e), Os = (e) => (t) => typeof t === e, { isArray:
|
|
1017
|
+
})(/* @__PURE__ */ Object.create(null)), mn = (e) => (e = e.toLowerCase(), (t) => Ms(t) === e), Os = (e) => (t) => typeof t === e, { isArray: $r } = Array, Ar = Os("undefined");
|
|
1018
1018
|
function So(e) {
|
|
1019
|
-
return e !== null && !
|
|
1019
|
+
return e !== null && !Ar(e) && e.constructor !== null && !Ar(e.constructor) && Ut(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
1020
1020
|
}
|
|
1021
1021
|
const Ku = mn("ArrayBuffer");
|
|
1022
1022
|
function Ex(e) {
|
|
@@ -1045,7 +1045,7 @@ function Co(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
1045
1045
|
if (e === null || typeof e > "u")
|
|
1046
1046
|
return;
|
|
1047
1047
|
let r, o;
|
|
1048
|
-
if (typeof e != "object" && (e = [e]),
|
|
1048
|
+
if (typeof e != "object" && (e = [e]), $r(e))
|
|
1049
1049
|
for (r = 0, o = e.length; r < o; r++)
|
|
1050
1050
|
t.call(null, e[r], r, e);
|
|
1051
1051
|
else {
|
|
@@ -1068,11 +1068,11 @@ function Gu(e, t) {
|
|
|
1068
1068
|
return o;
|
|
1069
1069
|
return null;
|
|
1070
1070
|
}
|
|
1071
|
-
const Xn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yu = (e) => !
|
|
1071
|
+
const Xn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yu = (e) => !Ar(e) && e !== Xn;
|
|
1072
1072
|
function Gi() {
|
|
1073
1073
|
const { caseless: e, skipUndefined: t } = Yu(this) && this || {}, n = {}, r = (o, s) => {
|
|
1074
1074
|
const i = e && Gu(n, s) || s;
|
|
1075
|
-
es(n[i]) && es(o) ? n[i] = Gi(n[i], o) : es(o) ? n[i] = Gi({}, o) :
|
|
1075
|
+
es(n[i]) && es(o) ? n[i] = Gi(n[i], o) : es(o) ? n[i] = Gi({}, o) : $r(o) ? n[i] = o.slice() : (!t || !Ar(o)) && (n[i] = o);
|
|
1076
1076
|
};
|
|
1077
1077
|
for (let o = 0, s = arguments.length; o < s; o++)
|
|
1078
1078
|
arguments[o] && Co(arguments[o], r);
|
|
@@ -1100,7 +1100,7 @@ const zx = (e, t, n, { allOwnKeys: r } = {}) => (Co(t, (o, s) => {
|
|
|
1100
1100
|
return r !== -1 && r === n;
|
|
1101
1101
|
}, Kx = (e) => {
|
|
1102
1102
|
if (!e) return null;
|
|
1103
|
-
if (
|
|
1103
|
+
if ($r(e)) return e;
|
|
1104
1104
|
let t = e.length;
|
|
1105
1105
|
if (!qu(t)) return null;
|
|
1106
1106
|
const n = new Array(t);
|
|
@@ -1152,7 +1152,7 @@ const zx = (e, t, n, { allOwnKeys: r } = {}) => (Co(t, (o, s) => {
|
|
|
1152
1152
|
n[s] = !0;
|
|
1153
1153
|
});
|
|
1154
1154
|
};
|
|
1155
|
-
return
|
|
1155
|
+
return $r(e) ? r(e) : r(String(e).split(t)), n;
|
|
1156
1156
|
}, tv = () => {
|
|
1157
1157
|
}, nv = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
1158
1158
|
function rv(e) {
|
|
@@ -1167,10 +1167,10 @@ const ov = (e) => {
|
|
|
1167
1167
|
return r;
|
|
1168
1168
|
if (!("toJSON" in r)) {
|
|
1169
1169
|
t[o] = r;
|
|
1170
|
-
const s =
|
|
1170
|
+
const s = $r(r) ? [] : {};
|
|
1171
1171
|
return Co(r, (i, a) => {
|
|
1172
1172
|
const l = n(i, o + 1);
|
|
1173
|
-
!
|
|
1173
|
+
!Ar(l) && (s[a] = l);
|
|
1174
1174
|
}), t[o] = void 0, s;
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
@@ -1185,7 +1185,7 @@ const ov = (e) => {
|
|
|
1185
1185
|
typeof setImmediate == "function",
|
|
1186
1186
|
Ut(Xn.postMessage)
|
|
1187
1187
|
), av = typeof queueMicrotask < "u" ? queueMicrotask.bind(Xn) : typeof process < "u" && process.nextTick || Ju, lv = (e) => e != null && Ut(e[Ps]), W = {
|
|
1188
|
-
isArray:
|
|
1188
|
+
isArray: $r,
|
|
1189
1189
|
isArrayBuffer: Ku,
|
|
1190
1190
|
isBuffer: So,
|
|
1191
1191
|
isFormData: Mx,
|
|
@@ -1200,7 +1200,7 @@ const ov = (e) => {
|
|
|
1200
1200
|
isRequest: Lx,
|
|
1201
1201
|
isResponse: $x,
|
|
1202
1202
|
isHeaders: Fx,
|
|
1203
|
-
isUndefined:
|
|
1203
|
+
isUndefined: Ar,
|
|
1204
1204
|
isDate: Nx,
|
|
1205
1205
|
isFile: Ax,
|
|
1206
1206
|
isBlob: jx,
|
|
@@ -1827,10 +1827,10 @@ function Si(e, t) {
|
|
|
1827
1827
|
function sd(e) {
|
|
1828
1828
|
return !!(e && e.__CANCEL__);
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function Fr(e, t, n) {
|
|
1831
1831
|
Ae.call(this, e ?? "canceled", Ae.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1832
1832
|
}
|
|
1833
|
-
W.inherits(
|
|
1833
|
+
W.inherits(Fr, Ae, {
|
|
1834
1834
|
__CANCEL__: !0
|
|
1835
1835
|
});
|
|
1836
1836
|
function id(e, t, n) {
|
|
@@ -2076,7 +2076,7 @@ const ld = (e) => {
|
|
|
2076
2076
|
}, s === void 0 && i.setContentType(null), "setRequestHeader" in x && W.forEach(i.toJSON(), function(C, y) {
|
|
2077
2077
|
x.setRequestHeader(y, C);
|
|
2078
2078
|
}), W.isUndefined(o.withCredentials) || (x.withCredentials = !!o.withCredentials), a && a !== "json" && (x.responseType = o.responseType), c && ([m, v] = ps(c, !0), x.addEventListener("progress", m)), l && x.upload && ([f, p] = ps(l), x.upload.addEventListener("progress", f), x.upload.addEventListener("loadend", p)), (o.cancelToken || o.signal) && (d = (S) => {
|
|
2079
|
-
x && (r(!S || S.type ? new
|
|
2079
|
+
x && (r(!S || S.type ? new Fr(null, e, x) : S), x.abort(), x = null);
|
|
2080
2080
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
2081
2081
|
const w = jv(o.url);
|
|
2082
2082
|
if (w && Pt.protocols.indexOf(w) === -1) {
|
|
@@ -2093,7 +2093,7 @@ const ld = (e) => {
|
|
|
2093
2093
|
if (!o) {
|
|
2094
2094
|
o = !0, a();
|
|
2095
2095
|
const d = c instanceof Error ? c : this.reason;
|
|
2096
|
-
r.abort(d instanceof Ae ? d : new
|
|
2096
|
+
r.abort(d instanceof Ae ? d : new Fr(d instanceof Error ? d.message : d));
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
2099
|
let i = t && setTimeout(() => {
|
|
@@ -2371,7 +2371,7 @@ const pc = (e) => `- ${e}`, qv = (e) => W.isFunction(e) || e === null || e === !
|
|
|
2371
2371
|
};
|
|
2372
2372
|
function Ti(e) {
|
|
2373
2373
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2374
|
-
throw new
|
|
2374
|
+
throw new Fr(null, e);
|
|
2375
2375
|
}
|
|
2376
2376
|
function hc(e) {
|
|
2377
2377
|
return Ti(e), e.headers = Wt.from(e.headers), e.data = Si.call(
|
|
@@ -2588,7 +2588,7 @@ let Yv = class fd {
|
|
|
2588
2588
|
r.unsubscribe(s);
|
|
2589
2589
|
}, i;
|
|
2590
2590
|
}, t(function(s, i, a) {
|
|
2591
|
-
r.reason || (r.reason = new
|
|
2591
|
+
r.reason || (r.reason = new Fr(s, i, a), n(r.reason));
|
|
2592
2592
|
});
|
|
2593
2593
|
}
|
|
2594
2594
|
/**
|
|
@@ -2721,7 +2721,7 @@ function pd(e) {
|
|
|
2721
2721
|
}
|
|
2722
2722
|
const Tt = pd(Eo);
|
|
2723
2723
|
Tt.Axios = er;
|
|
2724
|
-
Tt.CanceledError =
|
|
2724
|
+
Tt.CanceledError = Fr;
|
|
2725
2725
|
Tt.CancelToken = Yv;
|
|
2726
2726
|
Tt.isCancel = sd;
|
|
2727
2727
|
Tt.VERSION = dd;
|
|
@@ -2949,7 +2949,7 @@ async function ow(e, t = 50, n = 0) {
|
|
|
2949
2949
|
const r = { limit: t, offset: n };
|
|
2950
2950
|
return e && (r.thread_id = e), await tn("/files", { params: r });
|
|
2951
2951
|
}
|
|
2952
|
-
const hd =
|
|
2952
|
+
const hd = Dr(null);
|
|
2953
2953
|
function sw({ children: e, apiConfig: t }) {
|
|
2954
2954
|
const n = Mn;
|
|
2955
2955
|
if (t) {
|
|
@@ -2999,7 +2999,7 @@ async function aw(e = []) {
|
|
|
2999
2999
|
return { contentParts: t, filesInfo: n };
|
|
3000
3000
|
}
|
|
3001
3001
|
function $s() {
|
|
3002
|
-
const e =
|
|
3002
|
+
const e = Lr(hd);
|
|
3003
3003
|
if (!e) throw new Error("useApi must be used within ApiProvider");
|
|
3004
3004
|
return e;
|
|
3005
3005
|
}
|
|
@@ -3289,7 +3289,7 @@ function fw(e = {}) {
|
|
|
3289
3289
|
else if (xe.type === "state_history") {
|
|
3290
3290
|
$.current = xe;
|
|
3291
3291
|
try {
|
|
3292
|
-
const xt =
|
|
3292
|
+
const xt = Tr(xe).latest;
|
|
3293
3293
|
xt && (_.current = xt.checkpointId ?? null, D.current = xt.checkpointNs ?? null, v(xt.checkpointId ?? null));
|
|
3294
3294
|
} catch (Me) {
|
|
3295
3295
|
console.warn("[use-chat] Failed to hydrate state_history payload", Me);
|
|
@@ -3593,7 +3593,7 @@ function mw({
|
|
|
3593
3593
|
clearShareStatus: z
|
|
3594
3594
|
};
|
|
3595
3595
|
}
|
|
3596
|
-
const vd =
|
|
3596
|
+
const vd = Dr(null);
|
|
3597
3597
|
function gw({
|
|
3598
3598
|
children: e,
|
|
3599
3599
|
initialThreadId: t = null,
|
|
@@ -3654,7 +3654,7 @@ function gw({
|
|
|
3654
3654
|
return /* @__PURE__ */ u.jsx(vd.Provider, { value: w, children: e });
|
|
3655
3655
|
}
|
|
3656
3656
|
function Ro() {
|
|
3657
|
-
const e =
|
|
3657
|
+
const e = Lr(vd);
|
|
3658
3658
|
if (!e) throw new Error("useThreads must be used within a ThreadsProvider");
|
|
3659
3659
|
return e;
|
|
3660
3660
|
}
|
|
@@ -3736,7 +3736,7 @@ function ao(e) {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
return e;
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function jr(e) {
|
|
3740
3740
|
if (typeof e == "string") return e;
|
|
3741
3741
|
if (wd(e)) return "";
|
|
3742
3742
|
try {
|
|
@@ -3750,21 +3750,21 @@ function vw(e) {
|
|
|
3750
3750
|
return typeof e != "string" ? !1 : /^[\s\n]*[-*]\s|^[\s\n]*#+\s|```|^\s*\[.*\]\(|^>\s/.test(e);
|
|
3751
3751
|
}
|
|
3752
3752
|
function ww(e) {
|
|
3753
|
-
const t =
|
|
3753
|
+
const t = jr(e);
|
|
3754
3754
|
return typeof e == "string" && vw(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
|
|
3755
3755
|
}
|
|
3756
|
-
function
|
|
3756
|
+
function _r(e) {
|
|
3757
3757
|
if (e == null) return e;
|
|
3758
3758
|
if (typeof e == "string") {
|
|
3759
3759
|
const t = e.trim();
|
|
3760
3760
|
if (t.startsWith("{") || t.startsWith("[")) {
|
|
3761
3761
|
const n = Io(t);
|
|
3762
3762
|
if (n !== null)
|
|
3763
|
-
return
|
|
3763
|
+
return _r(n);
|
|
3764
3764
|
}
|
|
3765
3765
|
return e;
|
|
3766
3766
|
}
|
|
3767
|
-
return typeof e == "object" && !Array.isArray(e) && e.content !== void 0 ?
|
|
3767
|
+
return typeof e == "object" && !Array.isArray(e) && e.content !== void 0 ? _r(e.content) : e;
|
|
3768
3768
|
}
|
|
3769
3769
|
function bw(e) {
|
|
3770
3770
|
return e.filter((t) => t.type === "text").map((t) => t.text).join("");
|
|
@@ -4019,7 +4019,7 @@ function Ec(e, t) {
|
|
|
4019
4019
|
return { ...e, messages: [...e.messages, s] };
|
|
4020
4020
|
}
|
|
4021
4021
|
if (t.type === "state_history") {
|
|
4022
|
-
const s =
|
|
4022
|
+
const s = Tr(t), i = s.interrupt, a = s.latest, l = i === null ? cw(e.messages) : e.messages;
|
|
4023
4023
|
return {
|
|
4024
4024
|
...e,
|
|
4025
4025
|
messages: l,
|
|
@@ -4071,10 +4071,10 @@ function za(e, t) {
|
|
|
4071
4071
|
function Aw(e) {
|
|
4072
4072
|
if (e == null)
|
|
4073
4073
|
return [];
|
|
4074
|
-
const t =
|
|
4074
|
+
const t = _r(e);
|
|
4075
4075
|
if (typeof t == "string" && t.trim())
|
|
4076
4076
|
return [{ type: "text", text: t }];
|
|
4077
|
-
const n =
|
|
4077
|
+
const n = jr(t ?? e);
|
|
4078
4078
|
return n ? [{ type: "text", text: n }] : [];
|
|
4079
4079
|
}
|
|
4080
4080
|
function Sd(e, t) {
|
|
@@ -4162,7 +4162,7 @@ function Mw({
|
|
|
4162
4162
|
getMessages: c
|
|
4163
4163
|
}) {
|
|
4164
4164
|
const [d, f] = pe(null), p = Be(
|
|
4165
|
-
() =>
|
|
4165
|
+
() => Tr(d),
|
|
4166
4166
|
[d]
|
|
4167
4167
|
).checkpoints, v = dx(p), g = v.timeline, [x, b] = pe(!1), [w, S] = pe(!1), [C, y] = pe(null), T = Pe(r), E = Pe(null), N = Pe(null), _ = Pe(null), D = Pe(null), $ = Pe(null), H = Pe(/* @__PURE__ */ new Map()), Y = Pe(null);
|
|
4168
4168
|
Qe(() => {
|
|
@@ -4214,7 +4214,7 @@ function Mw({
|
|
|
4214
4214
|
);
|
|
4215
4215
|
return;
|
|
4216
4216
|
}
|
|
4217
|
-
const { checkpoints: se } =
|
|
4217
|
+
const { checkpoints: se } = Tr(re), ae = se.find((be) => be.messages && be.messages.length > 0) ?? (F ? se.find((be) => be.checkpointId === F) : null) ?? se[0];
|
|
4218
4218
|
t((ae == null ? void 0 : ae.messages) ?? [], {
|
|
4219
4219
|
checkpointId: (ae == null ? void 0 : ae.checkpointId) ?? null,
|
|
4220
4220
|
checkpointNs: (ae == null ? void 0 : ae.checkpointNs) ?? null,
|
|
@@ -4253,7 +4253,7 @@ function Mw({
|
|
|
4253
4253
|
const F = I.threadId ?? T.current;
|
|
4254
4254
|
if (!F || T.current && T.current !== F)
|
|
4255
4255
|
return;
|
|
4256
|
-
const { checkpoints: U } =
|
|
4256
|
+
const { checkpoints: U } = Tr(I);
|
|
4257
4257
|
if (!U.length)
|
|
4258
4258
|
return;
|
|
4259
4259
|
const O = U.find((q) => q.messages && q.messages.length > 0) ?? U.find((q) => !!q.checkpointId) ?? U[0], j = _.current === F;
|
|
@@ -4278,7 +4278,7 @@ function Mw({
|
|
|
4278
4278
|
});
|
|
4279
4279
|
if (T.current !== O)
|
|
4280
4280
|
return;
|
|
4281
|
-
const { checkpoints: q } =
|
|
4281
|
+
const { checkpoints: q } = Tr(j), J = q.find(
|
|
4282
4282
|
(ne) => ne.checkpointId === I && (F ? ne.checkpointNs === F : !0)
|
|
4283
4283
|
);
|
|
4284
4284
|
if (!J) {
|
|
@@ -4356,14 +4356,14 @@ function Mw({
|
|
|
4356
4356
|
resetHistoryState: B
|
|
4357
4357
|
};
|
|
4358
4358
|
}
|
|
4359
|
-
const Td =
|
|
4359
|
+
const Td = Dr(null), Cd = Dr(null);
|
|
4360
4360
|
function Fs() {
|
|
4361
|
-
const e =
|
|
4361
|
+
const e = Lr(Td);
|
|
4362
4362
|
if (!e) throw new Error("useThreadState must be used within a ThreadStateProvider");
|
|
4363
4363
|
return e;
|
|
4364
4364
|
}
|
|
4365
4365
|
function Ow() {
|
|
4366
|
-
const e =
|
|
4366
|
+
const e = Lr(Cd);
|
|
4367
4367
|
if (!e)
|
|
4368
4368
|
throw new Error("useThreadStateUpdater must be used within a ThreadStateProvider");
|
|
4369
4369
|
return e;
|
|
@@ -4515,7 +4515,7 @@ function Fw(e, t) {
|
|
|
4515
4515
|
}
|
|
4516
4516
|
throw new Error(`Message ${t} not found in timeline`);
|
|
4517
4517
|
}
|
|
4518
|
-
const Ed =
|
|
4518
|
+
const Ed = Dr(null), kd = Dr(!1);
|
|
4519
4519
|
function Bw({
|
|
4520
4520
|
children: e,
|
|
4521
4521
|
initialThreadId: t = null,
|
|
@@ -4690,12 +4690,12 @@ function zw({
|
|
|
4690
4690
|
return /* @__PURE__ */ u.jsx(Ed.Provider, { value: K, children: e });
|
|
4691
4691
|
}
|
|
4692
4692
|
function Hw() {
|
|
4693
|
-
const e =
|
|
4693
|
+
const e = Lr(Ed);
|
|
4694
4694
|
if (!e) throw new Error("useStream must be used within StreamingProvider");
|
|
4695
4695
|
return e;
|
|
4696
4696
|
}
|
|
4697
4697
|
function EN() {
|
|
4698
|
-
return
|
|
4698
|
+
return Lr(kd);
|
|
4699
4699
|
}
|
|
4700
4700
|
function Rc(e) {
|
|
4701
4701
|
return typeof e == "object" && e !== null;
|
|
@@ -4764,7 +4764,7 @@ function Jr(e) {
|
|
|
4764
4764
|
return r(...n);
|
|
4765
4765
|
}, []);
|
|
4766
4766
|
}
|
|
4767
|
-
function
|
|
4767
|
+
function Cr(e) {
|
|
4768
4768
|
if (!(typeof globalThis > "u"))
|
|
4769
4769
|
return globalThis[e];
|
|
4770
4770
|
}
|
|
@@ -4776,9 +4776,9 @@ function Vw(e) {
|
|
|
4776
4776
|
}
|
|
4777
4777
|
function Rd() {
|
|
4778
4778
|
const e = [
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4779
|
+
Cr("__API_BASE_URL__"),
|
|
4780
|
+
Cr("__CHAT_API_BASE_URL__"),
|
|
4781
|
+
Cr("__CHAT_API_URL__")
|
|
4782
4782
|
];
|
|
4783
4783
|
for (const t of e) {
|
|
4784
4784
|
const n = Vw(t);
|
|
@@ -4787,9 +4787,9 @@ function Rd() {
|
|
|
4787
4787
|
}
|
|
4788
4788
|
function Id() {
|
|
4789
4789
|
const e = [
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4790
|
+
Cr("__API_AUTH_TOKEN__"),
|
|
4791
|
+
Cr("__CHAT_API_KEY__"),
|
|
4792
|
+
Cr("__CHAT_AUTH_TOKEN__")
|
|
4793
4793
|
];
|
|
4794
4794
|
for (const t of e)
|
|
4795
4795
|
if (typeof t == "string" && t.trim())
|
|
@@ -5070,7 +5070,7 @@ var nb = [
|
|
|
5070
5070
|
"svg",
|
|
5071
5071
|
"ul"
|
|
5072
5072
|
], me = nb.reduce((e, t) => {
|
|
5073
|
-
const n =
|
|
5073
|
+
const n = Nr(`Primitive.${t}`), r = h.forwardRef((o, s) => {
|
|
5074
5074
|
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
5075
5075
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(l, { ...a, ref: s });
|
|
5076
5076
|
});
|
|
@@ -5088,14 +5088,14 @@ function Bs(e) {
|
|
|
5088
5088
|
return /* @__PURE__ */ u.jsx(o, { scope: x, itemMap: S, collectionRef: w, children: b });
|
|
5089
5089
|
};
|
|
5090
5090
|
i.displayName = t;
|
|
5091
|
-
const a = e + "CollectionSlot", l =
|
|
5091
|
+
const a = e + "CollectionSlot", l = Nr(a), c = L.forwardRef(
|
|
5092
5092
|
(g, x) => {
|
|
5093
5093
|
const { scope: b, children: w } = g, S = s(a, b), C = $e(x, S.collectionRef);
|
|
5094
5094
|
return /* @__PURE__ */ u.jsx(l, { ref: C, children: w });
|
|
5095
5095
|
}
|
|
5096
5096
|
);
|
|
5097
5097
|
c.displayName = a;
|
|
5098
|
-
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m =
|
|
5098
|
+
const d = e + "CollectionItemSlot", f = "data-radix-collection-item", m = Nr(d), p = L.forwardRef(
|
|
5099
5099
|
(g, x) => {
|
|
5100
5100
|
const { scope: b, children: w, ...S } = g, C = L.useRef(null), y = $e(x, C), T = s(d, b);
|
|
5101
5101
|
return L.useEffect(() => (T.itemMap.set(C, { ref: C, ...S }), () => void T.itemMap.delete(C))), /* @__PURE__ */ u.jsx(m, { [f]: "", ref: y, children: w });
|
|
@@ -5146,7 +5146,7 @@ var sb = "DismissableLayer", na = "dismissableLayer.update", ib = "dismissableLa
|
|
|
5146
5146
|
layers: /* @__PURE__ */ new Set(),
|
|
5147
5147
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5148
5148
|
branches: /* @__PURE__ */ new Set()
|
|
5149
|
-
}),
|
|
5149
|
+
}), Br = h.forwardRef(
|
|
5150
5150
|
(e, t) => {
|
|
5151
5151
|
const {
|
|
5152
5152
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -5194,7 +5194,7 @@ var sb = "DismissableLayer", na = "dismissableLayer.update", ib = "dismissableLa
|
|
|
5194
5194
|
);
|
|
5195
5195
|
}
|
|
5196
5196
|
);
|
|
5197
|
-
|
|
5197
|
+
Br.displayName = sb;
|
|
5198
5198
|
var lb = "DismissableLayerBranch", _d = h.forwardRef((e, t) => {
|
|
5199
5199
|
const n = h.useContext(jd), r = h.useRef(null), o = $e(t, r);
|
|
5200
5200
|
return h.useEffect(() => {
|
|
@@ -5258,7 +5258,7 @@ function Pd(e, t, n, { discrete: r }) {
|
|
|
5258
5258
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
5259
5259
|
t && o.addEventListener(e, t, { once: !0 }), r ? Ha(o, s) : o.dispatchEvent(s);
|
|
5260
5260
|
}
|
|
5261
|
-
var db =
|
|
5261
|
+
var db = Br, fb = _d, ki = 0;
|
|
5262
5262
|
function Ua() {
|
|
5263
5263
|
h.useEffect(() => {
|
|
5264
5264
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
@@ -5429,7 +5429,7 @@ function jn(e, t) {
|
|
|
5429
5429
|
function _n(e) {
|
|
5430
5430
|
return e.split("-")[0];
|
|
5431
5431
|
}
|
|
5432
|
-
function
|
|
5432
|
+
function zr(e) {
|
|
5433
5433
|
return e.split("-")[1];
|
|
5434
5434
|
}
|
|
5435
5435
|
function Wa(e) {
|
|
@@ -5447,7 +5447,7 @@ function Ka(e) {
|
|
|
5447
5447
|
}
|
|
5448
5448
|
function kb(e, t, n) {
|
|
5449
5449
|
n === void 0 && (n = !1);
|
|
5450
|
-
const r =
|
|
5450
|
+
const r = zr(e), o = Ka(e), s = Va(o);
|
|
5451
5451
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
5452
5452
|
return t.reference[s] > t.floating[s] && (i = gs(i)), [i, gs(i)];
|
|
5453
5453
|
}
|
|
@@ -5472,7 +5472,7 @@ function Ab(e, t, n) {
|
|
|
5472
5472
|
}
|
|
5473
5473
|
}
|
|
5474
5474
|
function jb(e, t, n, r) {
|
|
5475
|
-
const o =
|
|
5475
|
+
const o = zr(e);
|
|
5476
5476
|
let s = Ab(_n(e), n === "start", r);
|
|
5477
5477
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(oa)))), s;
|
|
5478
5478
|
}
|
|
@@ -5552,7 +5552,7 @@ function $c(e, t, n) {
|
|
|
5552
5552
|
y: r.y
|
|
5553
5553
|
};
|
|
5554
5554
|
}
|
|
5555
|
-
switch (
|
|
5555
|
+
switch (zr(t)) {
|
|
5556
5556
|
case "start":
|
|
5557
5557
|
p[i] -= m * (n && c ? -1 : 1);
|
|
5558
5558
|
break;
|
|
@@ -5692,7 +5692,7 @@ const Mb = (e) => ({
|
|
|
5692
5692
|
}, p = Ka(o), v = Va(p), g = await i.getDimensions(c), x = p === "y", b = x ? "top" : "left", w = x ? "bottom" : "right", S = x ? "clientHeight" : "clientWidth", C = s.reference[v] + s.reference[p] - m[p] - s.floating[v], y = m[p] - s.reference[p], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
5693
5693
|
let E = T ? T[S] : 0;
|
|
5694
5694
|
(!E || !await (i.isElement == null ? void 0 : i.isElement(T))) && (E = a.floating[S] || s.floating[v]);
|
|
5695
|
-
const N = C / 2 - y / 2, _ = E / 2 - g[v] / 2 - 1, D = Ln(f[b], _), $ = Ln(f[w], _), H = D, Y = E - g[v] - $, P = E / 2 - g[v] / 2 + N, V = ra(H, P, Y), K = !l.arrow &&
|
|
5695
|
+
const N = C / 2 - y / 2, _ = E / 2 - g[v] / 2 - 1, D = Ln(f[b], _), $ = Ln(f[w], _), H = D, Y = E - g[v] - $, P = E / 2 - g[v] / 2 + N, V = ra(H, P, Y), K = !l.arrow && zr(o) != null && P !== V && s.reference[v] / 2 - (P < H ? D : $) - g[v] / 2 < 0, z = K ? P < H ? P - H : P - Y : 0;
|
|
5696
5696
|
return {
|
|
5697
5697
|
[p]: m[p] + z,
|
|
5698
5698
|
data: {
|
|
@@ -5845,7 +5845,7 @@ async function Lb(e, t) {
|
|
|
5845
5845
|
placement: n,
|
|
5846
5846
|
platform: r,
|
|
5847
5847
|
elements: o
|
|
5848
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = _n(n), a =
|
|
5848
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = _n(n), a = zr(n), l = Sn(n) === "y", c = Dd.has(i) ? -1 : 1, d = s && l ? -1 : 1, f = jn(t, e);
|
|
5849
5849
|
let {
|
|
5850
5850
|
mainAxis: m,
|
|
5851
5851
|
crossAxis: p,
|
|
@@ -6002,7 +6002,7 @@ const $b = function(e) {
|
|
|
6002
6002
|
apply: l = () => {
|
|
6003
6003
|
},
|
|
6004
6004
|
...c
|
|
6005
|
-
} = jn(e, t), d = await lo(t, c), f = _n(o), m =
|
|
6005
|
+
} = jn(e, t), d = await lo(t, c), f = _n(o), m = zr(o), p = Sn(o) === "y", {
|
|
6006
6006
|
width: v,
|
|
6007
6007
|
height: g
|
|
6008
6008
|
} = s.floating;
|
|
@@ -6031,7 +6031,7 @@ const $b = function(e) {
|
|
|
6031
6031
|
function Us() {
|
|
6032
6032
|
return typeof window < "u";
|
|
6033
6033
|
}
|
|
6034
|
-
function
|
|
6034
|
+
function Hr(e) {
|
|
6035
6035
|
return Ld(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6036
6036
|
}
|
|
6037
6037
|
function Jt(e) {
|
|
@@ -6066,7 +6066,7 @@ function No(e) {
|
|
|
6066
6066
|
}
|
|
6067
6067
|
const Ub = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
6068
6068
|
function Wb(e) {
|
|
6069
|
-
return Ub.has(
|
|
6069
|
+
return Ub.has(Hr(e));
|
|
6070
6070
|
}
|
|
6071
6071
|
const Vb = [":popover-open", ":modal"];
|
|
6072
6072
|
function Ws(e) {
|
|
@@ -6085,7 +6085,7 @@ function qa(e) {
|
|
|
6085
6085
|
}
|
|
6086
6086
|
function Yb(e) {
|
|
6087
6087
|
let t = $n(e);
|
|
6088
|
-
for (; En(t) && !
|
|
6088
|
+
for (; En(t) && !Pr(t); ) {
|
|
6089
6089
|
if (qa(t))
|
|
6090
6090
|
return t;
|
|
6091
6091
|
if (Ws(t))
|
|
@@ -6098,8 +6098,8 @@ function Ga() {
|
|
|
6098
6098
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
6099
6099
|
}
|
|
6100
6100
|
const Xb = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
6101
|
-
function
|
|
6102
|
-
return Xb.has(
|
|
6101
|
+
function Pr(e) {
|
|
6102
|
+
return Xb.has(Hr(e));
|
|
6103
6103
|
}
|
|
6104
6104
|
function pn(e) {
|
|
6105
6105
|
return Jt(e).getComputedStyle(e);
|
|
@@ -6114,7 +6114,7 @@ function Vs(e) {
|
|
|
6114
6114
|
};
|
|
6115
6115
|
}
|
|
6116
6116
|
function $n(e) {
|
|
6117
|
-
if (
|
|
6117
|
+
if (Hr(e) === "html")
|
|
6118
6118
|
return e;
|
|
6119
6119
|
const t = (
|
|
6120
6120
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -6127,7 +6127,7 @@ function $n(e) {
|
|
|
6127
6127
|
}
|
|
6128
6128
|
function $d(e) {
|
|
6129
6129
|
const t = $n(e);
|
|
6130
|
-
return
|
|
6130
|
+
return Pr(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : En(t) && No(t) ? t : $d(t);
|
|
6131
6131
|
}
|
|
6132
6132
|
function co(e, t, n) {
|
|
6133
6133
|
var r;
|
|
@@ -6155,7 +6155,7 @@ function Fd(e) {
|
|
|
6155
6155
|
function Ya(e) {
|
|
6156
6156
|
return fn(e) ? e : e.contextElement;
|
|
6157
6157
|
}
|
|
6158
|
-
function
|
|
6158
|
+
function Er(e) {
|
|
6159
6159
|
const t = Ya(e);
|
|
6160
6160
|
if (!En(t))
|
|
6161
6161
|
return Cn(1);
|
|
@@ -6185,14 +6185,14 @@ function sr(e, t, n, r) {
|
|
|
6185
6185
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
6186
6186
|
const o = e.getBoundingClientRect(), s = Ya(e);
|
|
6187
6187
|
let i = Cn(1);
|
|
6188
|
-
t && (r ? fn(r) && (i =
|
|
6188
|
+
t && (r ? fn(r) && (i = Er(r)) : i = Er(e));
|
|
6189
6189
|
const a = Zb(s, n, r) ? Bd(s) : Cn(0);
|
|
6190
6190
|
let l = (o.left + a.x) / i.x, c = (o.top + a.y) / i.y, d = o.width / i.x, f = o.height / i.y;
|
|
6191
6191
|
if (s) {
|
|
6192
6192
|
const m = Jt(s), p = r && fn(r) ? Jt(r) : r;
|
|
6193
6193
|
let v = m, g = sa(v);
|
|
6194
6194
|
for (; g && r && p !== v; ) {
|
|
6195
|
-
const x =
|
|
6195
|
+
const x = Er(g), b = g.getBoundingClientRect(), w = pn(g), S = b.left + (g.clientLeft + parseFloat(w.paddingLeft)) * x.x, C = b.top + (g.clientTop + parseFloat(w.paddingTop)) * x.y;
|
|
6196
6196
|
l *= x.x, c *= x.y, d *= x.x, f *= x.y, l += S, c += C, v = Jt(g), g = sa(v);
|
|
6197
6197
|
}
|
|
6198
6198
|
}
|
|
@@ -6229,9 +6229,9 @@ function Qb(e) {
|
|
|
6229
6229
|
scrollTop: 0
|
|
6230
6230
|
}, c = Cn(1);
|
|
6231
6231
|
const d = Cn(0), f = En(r);
|
|
6232
|
-
if ((f || !f && !s) && ((
|
|
6232
|
+
if ((f || !f && !s) && ((Hr(r) !== "body" || No(i)) && (l = Vs(r)), En(r))) {
|
|
6233
6233
|
const p = sr(r);
|
|
6234
|
-
c =
|
|
6234
|
+
c = Er(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
6235
6235
|
}
|
|
6236
6236
|
const m = i && !f && !s ? zd(i, l) : Cn(0);
|
|
6237
6237
|
return {
|
|
@@ -6278,7 +6278,7 @@ function ny(e, t) {
|
|
|
6278
6278
|
}
|
|
6279
6279
|
const ry = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
6280
6280
|
function oy(e, t) {
|
|
6281
|
-
const n = sr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = En(e) ?
|
|
6281
|
+
const n = sr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = En(e) ? Er(e) : Cn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, l = o * s.x, c = r * s.y;
|
|
6282
6282
|
return {
|
|
6283
6283
|
width: i,
|
|
6284
6284
|
height: a,
|
|
@@ -6307,16 +6307,16 @@ function Uc(e, t, n) {
|
|
|
6307
6307
|
}
|
|
6308
6308
|
function Hd(e, t) {
|
|
6309
6309
|
const n = $n(e);
|
|
6310
|
-
return n === t || !fn(n) ||
|
|
6310
|
+
return n === t || !fn(n) || Pr(n) ? !1 : pn(n).position === "fixed" || Hd(n, t);
|
|
6311
6311
|
}
|
|
6312
6312
|
function sy(e, t) {
|
|
6313
6313
|
const n = t.get(e);
|
|
6314
6314
|
if (n)
|
|
6315
6315
|
return n;
|
|
6316
|
-
let r = co(e, [], !1).filter((a) => fn(a) &&
|
|
6316
|
+
let r = co(e, [], !1).filter((a) => fn(a) && Hr(a) !== "body"), o = null;
|
|
6317
6317
|
const s = pn(e).position === "fixed";
|
|
6318
6318
|
let i = s ? $n(e) : e;
|
|
6319
|
-
for (; fn(i) && !
|
|
6319
|
+
for (; fn(i) && !Pr(i); ) {
|
|
6320
6320
|
const a = pn(i), l = qa(i);
|
|
6321
6321
|
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && ry.has(o.position) || No(i) && !l && Hd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = $n(i);
|
|
6322
6322
|
}
|
|
@@ -6361,7 +6361,7 @@ function ly(e, t, n) {
|
|
|
6361
6361
|
l.x = Ks(o);
|
|
6362
6362
|
}
|
|
6363
6363
|
if (r || !r && !s)
|
|
6364
|
-
if ((
|
|
6364
|
+
if ((Hr(t) !== "body" || No(o)) && (a = Vs(t)), r) {
|
|
6365
6365
|
const p = sr(t, !0, s, t);
|
|
6366
6366
|
l.x = p.x + t.clientLeft, l.y = p.y + t.clientTop;
|
|
6367
6367
|
} else o && c();
|
|
@@ -6391,7 +6391,7 @@ function Ud(e, t) {
|
|
|
6391
6391
|
return n;
|
|
6392
6392
|
if (!En(e)) {
|
|
6393
6393
|
let o = $n(e);
|
|
6394
|
-
for (; o && !
|
|
6394
|
+
for (; o && !Pr(o); ) {
|
|
6395
6395
|
if (fn(o) && !Ni(o))
|
|
6396
6396
|
return o;
|
|
6397
6397
|
o = $n(o);
|
|
@@ -6401,7 +6401,7 @@ function Ud(e, t) {
|
|
|
6401
6401
|
let r = Wc(e, t);
|
|
6402
6402
|
for (; r && Wb(r) && Ni(r); )
|
|
6403
6403
|
r = Wc(r, t);
|
|
6404
|
-
return r &&
|
|
6404
|
+
return r && Pr(r) && Ni(r) && !qa(r) ? n : r || Yb(e) || n;
|
|
6405
6405
|
}
|
|
6406
6406
|
const cy = async function(e) {
|
|
6407
6407
|
const t = this.getOffsetParent || Ud, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -6426,7 +6426,7 @@ const dy = {
|
|
|
6426
6426
|
getElementRects: cy,
|
|
6427
6427
|
getClientRects: ey,
|
|
6428
6428
|
getDimensions: ay,
|
|
6429
|
-
getScale:
|
|
6429
|
+
getScale: Er,
|
|
6430
6430
|
isElement: fn,
|
|
6431
6431
|
isRTL: uy
|
|
6432
6432
|
};
|
|
@@ -6757,7 +6757,7 @@ function qd(e) {
|
|
|
6757
6757
|
n(void 0);
|
|
6758
6758
|
}, [e]), t;
|
|
6759
6759
|
}
|
|
6760
|
-
var Xa = "Popper", [Gd,
|
|
6760
|
+
var Xa = "Popper", [Gd, Ur] = gn(Xa), [My, Yd] = Gd(Xa), Xd = (e) => {
|
|
6761
6761
|
const { __scopePopper: t, children: n } = e, [r, o] = h.useState(null);
|
|
6762
6762
|
return /* @__PURE__ */ u.jsx(My, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
6763
6763
|
};
|
|
@@ -7197,7 +7197,7 @@ var e0 = sf, t0 = lf, n0 = function(e) {
|
|
|
7197
7197
|
return null;
|
|
7198
7198
|
var t = Array.isArray(e) ? e[0] : e;
|
|
7199
7199
|
return t.ownerDocument.body;
|
|
7200
|
-
},
|
|
7200
|
+
}, vr = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Vo = {}, _i = 0, uf = function(e) {
|
|
7201
7201
|
return e && (e.host || uf(e.parentNode));
|
|
7202
7202
|
}, r0 = function(e, t) {
|
|
7203
7203
|
return t.map(function(n) {
|
|
@@ -7221,8 +7221,8 @@ var e0 = sf, t0 = lf, n0 = function(e) {
|
|
|
7221
7221
|
d(m);
|
|
7222
7222
|
else
|
|
7223
7223
|
try {
|
|
7224
|
-
var p = m.getAttribute(r), v = p !== null && p !== "false", g = (
|
|
7225
|
-
|
|
7224
|
+
var p = m.getAttribute(r), v = p !== null && p !== "false", g = (vr.get(m) || 0) + 1, x = (s.get(m) || 0) + 1;
|
|
7225
|
+
vr.set(m, g), s.set(m, x), i.push(m), g === 1 && v && Wo.set(m, !0), x === 1 && m.setAttribute(n, "true"), v || m.setAttribute(r, "true");
|
|
7226
7226
|
} catch (b) {
|
|
7227
7227
|
console.error("aria-hidden: cannot operate on ", m, b);
|
|
7228
7228
|
}
|
|
@@ -7230,9 +7230,9 @@ var e0 = sf, t0 = lf, n0 = function(e) {
|
|
|
7230
7230
|
};
|
|
7231
7231
|
return d(t), a.clear(), _i++, function() {
|
|
7232
7232
|
i.forEach(function(f) {
|
|
7233
|
-
var m =
|
|
7234
|
-
|
|
7235
|
-
}), _i--, _i || (
|
|
7233
|
+
var m = vr.get(f) - 1, p = s.get(f) - 1;
|
|
7234
|
+
vr.set(f, m), s.set(f, p), m || (Wo.has(f) || f.removeAttribute(r), Wo.delete(f)), p || f.removeAttribute(n);
|
|
7235
|
+
}), _i--, _i || (vr = /* @__PURE__ */ new WeakMap(), vr = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), Vo = {});
|
|
7236
7236
|
};
|
|
7237
7237
|
}, nl = function(e, t, n) {
|
|
7238
7238
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -7470,14 +7470,14 @@ var w0 = function() {
|
|
|
7470
7470
|
right: t[2],
|
|
7471
7471
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
7472
7472
|
};
|
|
7473
|
-
}, C0 = hf(),
|
|
7473
|
+
}, C0 = hf(), kr = "data-scroll-locked", E0 = function(e, t, n, r) {
|
|
7474
7474
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
7475
7475
|
return n === void 0 && (n = "margin"), `
|
|
7476
7476
|
.`.concat(i0, ` {
|
|
7477
7477
|
overflow: hidden `).concat(r, `;
|
|
7478
7478
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
7479
7479
|
}
|
|
7480
|
-
body[`).concat(
|
|
7480
|
+
body[`).concat(kr, `] {
|
|
7481
7481
|
overflow: hidden `).concat(r, `;
|
|
7482
7482
|
overscroll-behavior: contain;
|
|
7483
7483
|
`).concat([
|
|
@@ -7510,18 +7510,18 @@ var w0 = function() {
|
|
|
7510
7510
|
margin-right: 0 `).concat(r, `;
|
|
7511
7511
|
}
|
|
7512
7512
|
|
|
7513
|
-
body[`).concat(
|
|
7513
|
+
body[`).concat(kr, `] {
|
|
7514
7514
|
`).concat(a0, ": ").concat(a, `px;
|
|
7515
7515
|
}
|
|
7516
7516
|
`);
|
|
7517
7517
|
}, Gc = function() {
|
|
7518
|
-
var e = parseInt(document.body.getAttribute(
|
|
7518
|
+
var e = parseInt(document.body.getAttribute(kr) || "0", 10);
|
|
7519
7519
|
return isFinite(e) ? e : 0;
|
|
7520
7520
|
}, k0 = function() {
|
|
7521
7521
|
h.useEffect(function() {
|
|
7522
|
-
return document.body.setAttribute(
|
|
7522
|
+
return document.body.setAttribute(kr, (Gc() + 1).toString()), function() {
|
|
7523
7523
|
var e = Gc() - 1;
|
|
7524
|
-
e <= 0 ? document.body.removeAttribute(
|
|
7524
|
+
e <= 0 ? document.body.removeAttribute(kr) : document.body.setAttribute(kr, e.toString());
|
|
7525
7525
|
};
|
|
7526
7526
|
}, []);
|
|
7527
7527
|
}, R0 = function(e) {
|
|
@@ -7543,7 +7543,7 @@ if (typeof window < "u")
|
|
|
7543
7543
|
} catch {
|
|
7544
7544
|
aa = !1;
|
|
7545
7545
|
}
|
|
7546
|
-
var
|
|
7546
|
+
var wr = aa ? { passive: !1 } : !1, I0 = function(e) {
|
|
7547
7547
|
return e.tagName === "TEXTAREA";
|
|
7548
7548
|
}, mf = function(e, t) {
|
|
7549
7549
|
if (!(e instanceof Element))
|
|
@@ -7619,7 +7619,7 @@ var br = aa ? { passive: !1 } : !1, I0 = function(e) {
|
|
|
7619
7619
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
7620
7620
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
7621
7621
|
`);
|
|
7622
|
-
}, L0 = 0,
|
|
7622
|
+
}, L0 = 0, br = [];
|
|
7623
7623
|
function $0(e) {
|
|
7624
7624
|
var t = h.useRef([]), n = h.useRef([0, 0]), r = h.useRef(), o = h.useState(L0++)[0], s = h.useState(hf)[0], i = h.useRef(e);
|
|
7625
7625
|
h.useEffect(function() {
|
|
@@ -7654,7 +7654,7 @@ function $0(e) {
|
|
|
7654
7654
|
return M0(_, x, g, _ === "h" ? S : C);
|
|
7655
7655
|
}, []), l = h.useCallback(function(g) {
|
|
7656
7656
|
var x = g;
|
|
7657
|
-
if (!(!
|
|
7657
|
+
if (!(!br.length || br[br.length - 1] !== s)) {
|
|
7658
7658
|
var b = "deltaY" in x ? Xc(x) : qo(x), w = t.current.filter(function(y) {
|
|
7659
7659
|
return y.name === x.type && (y.target === x.target || x.target === y.shadowParent) && O0(y.delta, b);
|
|
7660
7660
|
})[0];
|
|
@@ -7684,14 +7684,14 @@ function $0(e) {
|
|
|
7684
7684
|
c(g.type, qo(g), g.target, a(g, e.lockRef.current));
|
|
7685
7685
|
}, []);
|
|
7686
7686
|
h.useEffect(function() {
|
|
7687
|
-
return
|
|
7687
|
+
return br.push(s), e.setCallbacks({
|
|
7688
7688
|
onScrollCapture: f,
|
|
7689
7689
|
onWheelCapture: f,
|
|
7690
7690
|
onTouchMoveCapture: m
|
|
7691
|
-
}), document.addEventListener("wheel", l,
|
|
7692
|
-
|
|
7691
|
+
}), document.addEventListener("wheel", l, wr), document.addEventListener("touchmove", l, wr), document.addEventListener("touchstart", d, wr), function() {
|
|
7692
|
+
br = br.filter(function(g) {
|
|
7693
7693
|
return g !== s;
|
|
7694
|
-
}), document.removeEventListener("wheel", l,
|
|
7694
|
+
}), document.removeEventListener("wheel", l, wr), document.removeEventListener("touchmove", l, wr), document.removeEventListener("touchstart", d, wr);
|
|
7695
7695
|
};
|
|
7696
7696
|
}, []);
|
|
7697
7697
|
var p = e.removeScrollBar, v = e.inert;
|
|
@@ -7720,9 +7720,9 @@ var la = ["Enter", " "], z0 = ["ArrowDown", "PageUp", "Home"], vf = ["ArrowUp",
|
|
|
7720
7720
|
rtl: ["ArrowRight"]
|
|
7721
7721
|
}, _o = "Menu", [uo, V0, K0] = Bs(_o), [dr, wf] = gn(_o, [
|
|
7722
7722
|
K0,
|
|
7723
|
-
|
|
7723
|
+
Ur,
|
|
7724
7724
|
of
|
|
7725
|
-
]), Ys =
|
|
7725
|
+
]), Ys = Ur(), bf = of(), [q0, fr] = dr(_o), [G0, Po] = dr(_o), yf = (e) => {
|
|
7726
7726
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Ys(t), [l, c] = h.useState(null), d = h.useRef(!1), f = St(s), m = zs(o);
|
|
7727
7727
|
return h.useEffect(() => {
|
|
7728
7728
|
const p = () => {
|
|
@@ -7809,7 +7809,7 @@ var on = "MenuContent", [J0, sl] = dr(on), Cf = h.forwardRef(
|
|
|
7809
7809
|
onDismiss: () => n.onOpenChange(!1)
|
|
7810
7810
|
}
|
|
7811
7811
|
);
|
|
7812
|
-
}), eS =
|
|
7812
|
+
}), eS = Nr("MenuContent.ScrollLock"), il = h.forwardRef(
|
|
7813
7813
|
(e, t) => {
|
|
7814
7814
|
const {
|
|
7815
7815
|
__scopeMenu: n,
|
|
@@ -7877,7 +7877,7 @@ var on = "MenuContent", [J0, sl] = dr(on), Cf = h.forwardRef(
|
|
|
7877
7877
|
}),
|
|
7878
7878
|
onUnmountAutoFocus: i,
|
|
7879
7879
|
children: /* @__PURE__ */ u.jsx(
|
|
7880
|
-
|
|
7880
|
+
Br,
|
|
7881
7881
|
{
|
|
7882
7882
|
asChild: !0,
|
|
7883
7883
|
disableOutsidePointerEvents: a,
|
|
@@ -8899,7 +8899,7 @@ function sT({
|
|
|
8899
8899
|
] })
|
|
8900
8900
|
] });
|
|
8901
8901
|
}
|
|
8902
|
-
const iT = L.memo(sT), Qs = 0, Un = 1,
|
|
8902
|
+
const iT = L.memo(sT), Qs = 0, Un = 1, Wr = 2, fp = 4;
|
|
8903
8903
|
function Qc(e) {
|
|
8904
8904
|
return () => e;
|
|
8905
8905
|
}
|
|
@@ -8923,7 +8923,7 @@ function cT(...e) {
|
|
|
8923
8923
|
e.map(aT);
|
|
8924
8924
|
};
|
|
8925
8925
|
}
|
|
8926
|
-
function
|
|
8926
|
+
function Vr() {
|
|
8927
8927
|
}
|
|
8928
8928
|
function ei(e, t) {
|
|
8929
8929
|
return t(e), e;
|
|
@@ -8941,7 +8941,7 @@ function _e(e, t) {
|
|
|
8941
8941
|
e(Qs, t);
|
|
8942
8942
|
}
|
|
8943
8943
|
function pl(e) {
|
|
8944
|
-
e(
|
|
8944
|
+
e(Wr);
|
|
8945
8945
|
}
|
|
8946
8946
|
function yt(e) {
|
|
8947
8947
|
return e(fp);
|
|
@@ -8989,7 +8989,7 @@ function Q(e, ...t) {
|
|
|
8989
8989
|
const n = dT(...t);
|
|
8990
8990
|
return (r, o) => {
|
|
8991
8991
|
switch (r) {
|
|
8992
|
-
case
|
|
8992
|
+
case Wr:
|
|
8993
8993
|
pl(e);
|
|
8994
8994
|
return;
|
|
8995
8995
|
case Un:
|
|
@@ -9041,8 +9041,8 @@ function fT(e) {
|
|
|
9041
9041
|
return function(o, s) {
|
|
9042
9042
|
switch (o) {
|
|
9043
9043
|
case Un:
|
|
9044
|
-
return s ? n === s ? void 0 : (r(), n = s, t = et(e, s), t) : (r(),
|
|
9045
|
-
case
|
|
9044
|
+
return s ? n === s ? void 0 : (r(), n = s, t = et(e, s), t) : (r(), Vr);
|
|
9045
|
+
case Wr:
|
|
9046
9046
|
r(), n = null;
|
|
9047
9047
|
return;
|
|
9048
9048
|
}
|
|
@@ -9078,7 +9078,7 @@ function Ue() {
|
|
|
9078
9078
|
r(n);
|
|
9079
9079
|
});
|
|
9080
9080
|
return;
|
|
9081
|
-
case
|
|
9081
|
+
case Wr:
|
|
9082
9082
|
e.splice(0, e.length);
|
|
9083
9083
|
return;
|
|
9084
9084
|
case Un:
|
|
@@ -9121,7 +9121,7 @@ function Rt(...e) {
|
|
|
9121
9121
|
});
|
|
9122
9122
|
}), function(s, i) {
|
|
9123
9123
|
switch (s) {
|
|
9124
|
-
case
|
|
9124
|
+
case Wr: {
|
|
9125
9125
|
pl(t);
|
|
9126
9126
|
return;
|
|
9127
9127
|
}
|
|
@@ -9136,7 +9136,7 @@ function Te(e, t = hp) {
|
|
|
9136
9136
|
function ca(...e) {
|
|
9137
9137
|
return function(t, n) {
|
|
9138
9138
|
switch (t) {
|
|
9139
|
-
case
|
|
9139
|
+
case Wr:
|
|
9140
9140
|
return;
|
|
9141
9141
|
case Un:
|
|
9142
9142
|
return cT(...e.map((r) => et(r, n)));
|
|
@@ -9350,7 +9350,7 @@ function hn(e, t, n = "k") {
|
|
|
9350
9350
|
function Xt(e, t, n) {
|
|
9351
9351
|
return it(e) ? wp(t, n, 1) : t === e.k ? It(e, { k: t, v: n }) : t < e.k ? ru(It(e, { l: Xt(e.l, t, n) })) : ru(It(e, { r: Xt(e.r, t, n) }));
|
|
9352
9352
|
}
|
|
9353
|
-
function
|
|
9353
|
+
function Rr() {
|
|
9354
9354
|
return po;
|
|
9355
9355
|
}
|
|
9356
9356
|
function ti(e, t, n) {
|
|
@@ -9500,12 +9500,12 @@ function gl({ index: e }, t) {
|
|
|
9500
9500
|
function yT() {
|
|
9501
9501
|
return {
|
|
9502
9502
|
groupIndices: [],
|
|
9503
|
-
groupOffsetTree:
|
|
9503
|
+
groupOffsetTree: Rr(),
|
|
9504
9504
|
lastIndex: 0,
|
|
9505
9505
|
lastOffset: 0,
|
|
9506
9506
|
lastSize: 0,
|
|
9507
9507
|
offsetTree: [],
|
|
9508
|
-
sizeTree:
|
|
9508
|
+
sizeTree: Rr()
|
|
9509
9509
|
};
|
|
9510
9510
|
}
|
|
9511
9511
|
function ST(e, t) {
|
|
@@ -9572,7 +9572,7 @@ function kT(e, [t, n, r, o]) {
|
|
|
9572
9572
|
const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } = pa(e.offsetTree, a, i, o);
|
|
9573
9573
|
return {
|
|
9574
9574
|
groupIndices: n,
|
|
9575
|
-
groupOffsetTree: n.reduce((m, p) => Xt(m, p, go(p, f, o)),
|
|
9575
|
+
groupOffsetTree: n.reduce((m, p) => Xt(m, p, go(p, f, o)), Rr()),
|
|
9576
9576
|
lastIndex: l,
|
|
9577
9577
|
lastOffset: c,
|
|
9578
9578
|
lastSize: d,
|
|
@@ -9648,7 +9648,7 @@ const AT = {
|
|
|
9648
9648
|
Ce((y) => y.length > 0),
|
|
9649
9649
|
Le(g, p),
|
|
9650
9650
|
de(([y, T, E]) => {
|
|
9651
|
-
const N = y.reduce((_, D, $) => Xt(_, D, go(D, T.offsetTree, E) || $),
|
|
9651
|
+
const N = y.reduce((_, D, $) => Xt(_, D, go(D, T.offsetTree, E) || $), Rr());
|
|
9652
9652
|
return {
|
|
9653
9653
|
...T,
|
|
9654
9654
|
groupIndices: y,
|
|
@@ -9806,7 +9806,7 @@ const AT = {
|
|
|
9806
9806
|
if (T.groupIndices.length > 0) {
|
|
9807
9807
|
if (it(T.sizeTree))
|
|
9808
9808
|
return T;
|
|
9809
|
-
let N =
|
|
9809
|
+
let N = Rr();
|
|
9810
9810
|
const _ = yt(x);
|
|
9811
9811
|
let D = 0, $ = 0, H = 0;
|
|
9812
9812
|
for (; D < -y; ) {
|
|
@@ -9826,7 +9826,7 @@ const AT = {
|
|
|
9826
9826
|
...pa(T.offsetTree, 0, N, E)
|
|
9827
9827
|
};
|
|
9828
9828
|
} else {
|
|
9829
|
-
const N = Jn(T.sizeTree).reduce((_, { k: D, v: $ }) => Xt(_, Math.max(0, D + y), $),
|
|
9829
|
+
const N = Jn(T.sizeTree).reduce((_, { k: D, v: $ }) => Xt(_, Math.max(0, D + y), $), Rr());
|
|
9830
9830
|
return {
|
|
9831
9831
|
...T,
|
|
9832
9832
|
sizeTree: N,
|
|
@@ -11139,7 +11139,7 @@ function $i(e) {
|
|
|
11139
11139
|
function JT(e) {
|
|
11140
11140
|
return "body" in e;
|
|
11141
11141
|
}
|
|
11142
|
-
function Fp(e, t, n, r =
|
|
11142
|
+
function Fp(e, t, n, r = Vr, o, s) {
|
|
11143
11143
|
const i = L.useRef(null), a = L.useRef(null), l = L.useRef(null), c = L.useCallback(
|
|
11144
11144
|
(m) => {
|
|
11145
11145
|
let p, v, g;
|
|
@@ -11200,7 +11200,7 @@ function Sl(e) {
|
|
|
11200
11200
|
return e;
|
|
11201
11201
|
}
|
|
11202
11202
|
const ZT = /* @__PURE__ */ Xe(() => {
|
|
11203
|
-
const e = oe((a) => `Item ${a}`), t = oe((a) => `Group ${a}`), n = oe({}), r = oe(Sl), o = oe("div"), s = oe(
|
|
11203
|
+
const e = oe((a) => `Item ${a}`), t = oe((a) => `Group ${a}`), n = oe({}), r = oe(Sl), o = oe("div"), s = oe(Vr), i = (a, l = null) => Ot(
|
|
11204
11204
|
Q(
|
|
11205
11205
|
n,
|
|
11206
11206
|
de((c) => c[a]),
|
|
@@ -11233,7 +11233,7 @@ const ZT = /* @__PURE__ */ Xe(() => {
|
|
|
11233
11233
|
n,
|
|
11234
11234
|
m,
|
|
11235
11235
|
f,
|
|
11236
|
-
e ?
|
|
11236
|
+
e ? Vr : a,
|
|
11237
11237
|
p,
|
|
11238
11238
|
v,
|
|
11239
11239
|
o,
|
|
@@ -11513,7 +11513,7 @@ const cC = ({ children: e }) => {
|
|
|
11513
11513
|
] })), t = oe(null), n = oe((c) => /* @__PURE__ */ u.jsxs("td", { colSpan: 1e3, children: [
|
|
11514
11514
|
"Group ",
|
|
11515
11515
|
c
|
|
11516
|
-
] })), r = oe(null), o = oe(null), s = oe({}), i = oe(Sl), a = oe(
|
|
11516
|
+
] })), r = oe(null), o = oe(null), s = oe({}), i = oe(Sl), a = oe(Vr), l = (c, d = null) => Ot(
|
|
11517
11517
|
Q(
|
|
11518
11518
|
s,
|
|
11519
11519
|
de((f) => f[c]),
|
|
@@ -11838,7 +11838,7 @@ function ha(e, t, n, r) {
|
|
|
11838
11838
|
return i > 0 ? i + t.row : i;
|
|
11839
11839
|
}
|
|
11840
11840
|
const SC = /* @__PURE__ */ Xe(() => {
|
|
11841
|
-
const e = oe((f) => `Item ${f}`), t = oe({}), n = oe(null), r = oe("virtuoso-grid-item"), o = oe("virtuoso-grid-list"), s = oe(Sl), i = oe("div"), a = oe(
|
|
11841
|
+
const e = oe((f) => `Item ${f}`), t = oe({}), n = oe(null), r = oe("virtuoso-grid-item"), o = oe("virtuoso-grid-list"), s = oe(Sl), i = oe("div"), a = oe(Vr), l = (f, m = null) => Ot(
|
|
11842
11842
|
Q(
|
|
11843
11843
|
t,
|
|
11844
11844
|
de((p) => p[f]),
|
|
@@ -12086,7 +12086,7 @@ var Es = "DialogOverlay", Jp = h.forwardRef(
|
|
|
12086
12086
|
}
|
|
12087
12087
|
);
|
|
12088
12088
|
Jp.displayName = Es;
|
|
12089
|
-
var MC =
|
|
12089
|
+
var MC = Nr("DialogOverlay.RemoveScroll"), OC = h.forwardRef(
|
|
12090
12090
|
(e, t) => {
|
|
12091
12091
|
const { __scopeDialog: n, ...r } = e, o = xn(Es, n);
|
|
12092
12092
|
return (
|
|
@@ -12174,7 +12174,7 @@ var DC = h.forwardRef(
|
|
|
12174
12174
|
onMountAutoFocus: o,
|
|
12175
12175
|
onUnmountAutoFocus: s,
|
|
12176
12176
|
children: /* @__PURE__ */ u.jsx(
|
|
12177
|
-
|
|
12177
|
+
Br,
|
|
12178
12178
|
{
|
|
12179
12179
|
role: "dialog",
|
|
12180
12180
|
id: a.contentId,
|
|
@@ -14082,7 +14082,7 @@ we.walkTokens;
|
|
|
14082
14082
|
we.parseInline;
|
|
14083
14083
|
zn.parse;
|
|
14084
14084
|
Bn.lex;
|
|
14085
|
-
function
|
|
14085
|
+
function Ir({
|
|
14086
14086
|
content: e,
|
|
14087
14087
|
className: t = "",
|
|
14088
14088
|
allowHtml: n = !1,
|
|
@@ -14184,7 +14184,7 @@ function hE({ artifact: e, idx: t = 0 }) {
|
|
|
14184
14184
|
}
|
|
14185
14185
|
const mE = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
|
|
14186
14186
|
function ma({ data: e }) {
|
|
14187
|
-
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: mE, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children:
|
|
14187
|
+
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: mE, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: jr(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: jr(e) });
|
|
14188
14188
|
}
|
|
14189
14189
|
function gE({ message: e, isStreaming: t = !1 }) {
|
|
14190
14190
|
const n = e.name ?? "tool", r = Be(() => {
|
|
@@ -14296,7 +14296,7 @@ function vE({
|
|
|
14296
14296
|
if (typeof i == "string")
|
|
14297
14297
|
d = /* @__PURE__ */ u.jsx("p", { className: "text-sm leading-relaxed text-blue-800/90 dark:text-blue-200/90 whitespace-pre-wrap", children: i });
|
|
14298
14298
|
else {
|
|
14299
|
-
const f =
|
|
14299
|
+
const f = jr(i);
|
|
14300
14300
|
d = /* @__PURE__ */ u.jsx("pre", { className: "max-h-48 overflow-auto rounded bg-blue-100/60 p-2 text-xs text-blue-900/90 dark:bg-blue-900/40 dark:text-blue-100/80", children: f });
|
|
14301
14301
|
}
|
|
14302
14302
|
return /* @__PURE__ */ u.jsxs(
|
|
@@ -14385,7 +14385,7 @@ function bE({
|
|
|
14385
14385
|
}) {
|
|
14386
14386
|
const s = Math.max(e.length - r, 0), i = e.substring(0, r);
|
|
14387
14387
|
return /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
14388
|
-
/* @__PURE__ */ u.jsx("div", { className: te("text-sm text-[hsl(var(--chat-bubble-user-text))]", o && "text-xs"), children: t ? /* @__PURE__ */ u.jsx(
|
|
14388
|
+
/* @__PURE__ */ u.jsx("div", { className: te("text-sm text-[hsl(var(--chat-bubble-user-text))]", o && "text-xs"), children: t ? /* @__PURE__ */ u.jsx(Ir, { content: e, allowHtml: !1 }) : /* @__PURE__ */ u.jsxs(
|
|
14389
14389
|
"pre",
|
|
14390
14390
|
{
|
|
14391
14391
|
className: te(
|
|
@@ -14577,7 +14577,7 @@ function kE(e) {
|
|
|
14577
14577
|
const s = EE(r) ?? r[r.length - 1];
|
|
14578
14578
|
if (!s)
|
|
14579
14579
|
return null;
|
|
14580
|
-
const i = s.output ?? s.payload ?? s, a =
|
|
14580
|
+
const i = s.output ?? s.payload ?? s, a = _r(i), l = CE(a);
|
|
14581
14581
|
return l && l.length ? {
|
|
14582
14582
|
kind: "issues",
|
|
14583
14583
|
value: a,
|
|
@@ -14610,7 +14610,7 @@ function RE({
|
|
|
14610
14610
|
return /* @__PURE__ */ u.jsx(ma, { data: y });
|
|
14611
14611
|
const T = typeof y == "string" ? y : (() => {
|
|
14612
14612
|
try {
|
|
14613
|
-
return
|
|
14613
|
+
return jr(y);
|
|
14614
14614
|
} catch {
|
|
14615
14615
|
return String(y ?? "");
|
|
14616
14616
|
}
|
|
@@ -14619,7 +14619,7 @@ function RE({
|
|
|
14619
14619
|
}, d = (C) => {
|
|
14620
14620
|
if (C == null) return null;
|
|
14621
14621
|
const { content: y, isMarkdown: T } = ww(C);
|
|
14622
|
-
return T ? /* @__PURE__ */ u.jsx(
|
|
14622
|
+
return T ? /* @__PURE__ */ u.jsx(Ir, { content: y, className: "text-current" }) : c(C);
|
|
14623
14623
|
}, f = (C) => /* @__PURE__ */ u.jsxs("div", { className: "space-y-2 rounded-2xl border border-muted-foreground/30 bg-white/80 p-4 shadow-sm shadow-slate-900/10", children: [
|
|
14624
14624
|
/* @__PURE__ */ u.jsx("div", { className: "text-[11px] font-semibold uppercase tracking-[0.4em] text-muted-foreground", children: "Structured dictionary" }),
|
|
14625
14625
|
/* @__PURE__ */ u.jsx(ma, { data: C })
|
|
@@ -14632,10 +14632,10 @@ function RE({
|
|
|
14632
14632
|
const E = (l.text ?? "").trim();
|
|
14633
14633
|
if (!E)
|
|
14634
14634
|
return null;
|
|
14635
|
-
const N =
|
|
14635
|
+
const N = _r(E);
|
|
14636
14636
|
return d(N);
|
|
14637
14637
|
}
|
|
14638
|
-
const C = ao(l), y =
|
|
14638
|
+
const C = ao(l), y = _r(C);
|
|
14639
14639
|
return d(y);
|
|
14640
14640
|
}, p = () => (a == null ? void 0 : a.kind) === "dict" ? f(a.data) : m(), g = (() => {
|
|
14641
14641
|
if (r) {
|
|
@@ -14834,8 +14834,8 @@ function AE({
|
|
|
14834
14834
|
if (!G) return null;
|
|
14835
14835
|
const { stablePart: U, tailPart: O } = G;
|
|
14836
14836
|
return !U && !O ? null : /* @__PURE__ */ u.jsxs("div", { className: "space-y-2", children: [
|
|
14837
|
-
U ? /* @__PURE__ */ u.jsx(
|
|
14838
|
-
O ? /* @__PURE__ */ u.jsx(
|
|
14837
|
+
U ? /* @__PURE__ */ u.jsx(Ir, { content: U, allowHtml: !1 }) : null,
|
|
14838
|
+
O ? /* @__PURE__ */ u.jsx(Ir, { content: O, allowHtml: !1 }) : null
|
|
14839
14839
|
] });
|
|
14840
14840
|
}, [G]), A = Be(() => {
|
|
14841
14841
|
if (!m)
|
|
@@ -14869,7 +14869,7 @@ function AE({
|
|
|
14869
14869
|
isCompact: _
|
|
14870
14870
|
},
|
|
14871
14871
|
O
|
|
14872
|
-
) : /* @__PURE__ */ u.jsx(
|
|
14872
|
+
) : /* @__PURE__ */ u.jsx(Ir, { content: j, allowHtml: !1 }, O);
|
|
14873
14873
|
}
|
|
14874
14874
|
if (U.type === "image_url") {
|
|
14875
14875
|
const j = U;
|
|
@@ -15401,7 +15401,7 @@ const Ol = Lg(function({
|
|
|
15401
15401
|
a && /* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Assistant" })
|
|
15402
15402
|
] }),
|
|
15403
15403
|
/* @__PURE__ */ u.jsx(
|
|
15404
|
-
|
|
15404
|
+
Ir,
|
|
15405
15405
|
{
|
|
15406
15406
|
content: I.content,
|
|
15407
15407
|
className: "text-current"
|
|
@@ -16060,11 +16060,11 @@ function Iu(e) {
|
|
|
16060
16060
|
function WE(e, t, n) {
|
|
16061
16061
|
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, xa(e, t, Iu(e), Iu(t), 0, 0, {});
|
|
16062
16062
|
}
|
|
16063
|
-
var Qr = '[cmdk-group=""]', Vi = '[cmdk-group-items=""]', VE = '[cmdk-group-heading=""]', Rh = '[cmdk-item=""]', Nu = `${Rh}:not([aria-disabled="true"])`, va = "cmdk-item-select",
|
|
16064
|
-
let n =
|
|
16063
|
+
var Qr = '[cmdk-group=""]', Vi = '[cmdk-group-items=""]', VE = '[cmdk-group-heading=""]', Rh = '[cmdk-item=""]', Nu = `${Rh}:not([aria-disabled="true"])`, va = "cmdk-item-select", yr = "data-value", KE = (e, t, n) => WE(e, t, n), Ih = h.createContext(void 0), Fo = () => h.useContext(Ih), Nh = h.createContext(void 0), Dl = () => h.useContext(Nh), Ah = h.createContext(void 0), jh = h.forwardRef((e, t) => {
|
|
16064
|
+
let n = Sr(() => {
|
|
16065
16065
|
var A, B;
|
|
16066
16066
|
return { search: "", value: (B = (A = e.value) != null ? A : e.defaultValue) != null ? B : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
16067
|
-
}), r =
|
|
16067
|
+
}), r = Sr(() => /* @__PURE__ */ new Set()), o = Sr(() => /* @__PURE__ */ new Map()), s = Sr(() => /* @__PURE__ */ new Map()), i = Sr(() => /* @__PURE__ */ new Set()), a = _h(e), { label: l, children: c, value: d, onValueChange: f, filter: m, shouldFilter: p, loop: v, disablePointerSelection: g = !1, vimBindings: x = !0, ...b } = e, w = Dt(), S = Dt(), C = Dt(), y = h.useRef(null), T = rk();
|
|
16068
16068
|
lr(() => {
|
|
16069
16069
|
if (d !== void 0) {
|
|
16070
16070
|
let A = d.trim();
|
|
@@ -16136,12 +16136,12 @@ var Qr = '[cmdk-group=""]', Vi = '[cmdk-group-items=""]', VE = '[cmdk-group-head
|
|
|
16136
16136
|
U ? U.appendChild(F.parentElement === U ? F : F.closest(`${Vi} > *`)) : I.appendChild(F.parentElement === I ? F : F.closest(`${Vi} > *`));
|
|
16137
16137
|
}), B.sort((F, U) => U[1] - F[1]).forEach((F) => {
|
|
16138
16138
|
var U;
|
|
16139
|
-
let O = (U = y.current) == null ? void 0 : U.querySelector(`${Qr}[${
|
|
16139
|
+
let O = (U = y.current) == null ? void 0 : U.querySelector(`${Qr}[${yr}="${encodeURIComponent(F[0])}"]`);
|
|
16140
16140
|
O == null || O.parentElement.appendChild(O);
|
|
16141
16141
|
});
|
|
16142
16142
|
}
|
|
16143
16143
|
function $() {
|
|
16144
|
-
let A = V().find((I) => I.getAttribute("aria-disabled") !== "true"), B = A == null ? void 0 : A.getAttribute(
|
|
16144
|
+
let A = V().find((I) => I.getAttribute("aria-disabled") !== "true"), B = A == null ? void 0 : A.getAttribute(yr);
|
|
16145
16145
|
E.setState("value", B || void 0);
|
|
16146
16146
|
}
|
|
16147
16147
|
function H() {
|
|
@@ -16177,17 +16177,17 @@ var Qr = '[cmdk-group=""]', Vi = '[cmdk-group-items=""]', VE = '[cmdk-group-head
|
|
|
16177
16177
|
}
|
|
16178
16178
|
function K(A) {
|
|
16179
16179
|
let B = V()[A];
|
|
16180
|
-
B && E.setState("value", B.getAttribute(
|
|
16180
|
+
B && E.setState("value", B.getAttribute(yr));
|
|
16181
16181
|
}
|
|
16182
16182
|
function z(A) {
|
|
16183
16183
|
var B;
|
|
16184
16184
|
let I = P(), F = V(), U = F.findIndex((j) => j === I), O = F[U + A];
|
|
16185
|
-
(B = a.current) != null && B.loop && (O = U + A < 0 ? F[F.length - 1] : U + A === F.length ? F[0] : F[U + A]), O && E.setState("value", O.getAttribute(
|
|
16185
|
+
(B = a.current) != null && B.loop && (O = U + A < 0 ? F[F.length - 1] : U + A === F.length ? F[0] : F[U + A]), O && E.setState("value", O.getAttribute(yr));
|
|
16186
16186
|
}
|
|
16187
16187
|
function M(A) {
|
|
16188
16188
|
let B = P(), I = B == null ? void 0 : B.closest(Qr), F;
|
|
16189
16189
|
for (; I && !F; ) I = A > 0 ? tk(I, Qr) : nk(I, Qr), F = I == null ? void 0 : I.querySelector(Nu);
|
|
16190
|
-
F ? E.setState("value", F.getAttribute(
|
|
16190
|
+
F ? E.setState("value", F.getAttribute(yr)) : z(A);
|
|
16191
16191
|
}
|
|
16192
16192
|
let k = () => K(V().length - 1), G = (A) => {
|
|
16193
16193
|
A.preventDefault(), A.metaKey ? k() : A.altKey ? M(1) : z(1);
|
|
@@ -16314,7 +16314,7 @@ function _h(e) {
|
|
|
16314
16314
|
}), t;
|
|
16315
16315
|
}
|
|
16316
16316
|
var lr = typeof window > "u" ? h.useEffect : h.useLayoutEffect;
|
|
16317
|
-
function
|
|
16317
|
+
function Sr(e) {
|
|
16318
16318
|
let t = h.useRef();
|
|
16319
16319
|
return t.current === void 0 && (t.current = e()), t;
|
|
16320
16320
|
}
|
|
@@ -16333,11 +16333,11 @@ function Ph(e, t, n, r = []) {
|
|
|
16333
16333
|
if (typeof d == "object" && "current" in d) return d.current ? (c = d.current.textContent) == null ? void 0 : c.trim() : o.current;
|
|
16334
16334
|
}
|
|
16335
16335
|
})(), l = r.map((c) => c.trim());
|
|
16336
|
-
s.value(e, a, l), (i = t.current) == null || i.setAttribute(
|
|
16336
|
+
s.value(e, a, l), (i = t.current) == null || i.setAttribute(yr, a), o.current = a;
|
|
16337
16337
|
}), o;
|
|
16338
16338
|
}
|
|
16339
16339
|
var rk = () => {
|
|
16340
|
-
let [e, t] = h.useState(), n =
|
|
16340
|
+
let [e, t] = h.useState(), n = Sr(() => /* @__PURE__ */ new Map());
|
|
16341
16341
|
return lr(() => {
|
|
16342
16342
|
n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
|
|
16343
16343
|
}, [e]), (r, o) => {
|
|
@@ -16612,7 +16612,7 @@ var ck = h.forwardRef((e, t) => {
|
|
|
16612
16612
|
i(a ? c : d);
|
|
16613
16613
|
}
|
|
16614
16614
|
}, 10);
|
|
16615
|
-
return
|
|
16615
|
+
return Mr(n.viewport, l), Mr(n.content, l), /* @__PURE__ */ u.jsx(Kt, { present: r || s, children: /* @__PURE__ */ u.jsx(
|
|
16616
16616
|
Fl,
|
|
16617
16617
|
{
|
|
16618
16618
|
"data-state": s ? "visible" : "hidden",
|
|
@@ -16779,7 +16779,7 @@ var ck = h.forwardRef((e, t) => {
|
|
|
16779
16779
|
(v == null ? void 0 : v.contains($)) && y(D, C);
|
|
16780
16780
|
};
|
|
16781
16781
|
return document.addEventListener("wheel", _, { passive: !1 }), () => document.removeEventListener("wheel", _, { passive: !1 });
|
|
16782
|
-
}, [S, v, C, y]), h.useEffect(T, [r, T]),
|
|
16782
|
+
}, [S, v, C, y]), h.useEffect(T, [r, T]), Mr(v, E), Mr(p.content, E), /* @__PURE__ */ u.jsx(
|
|
16783
16783
|
pk,
|
|
16784
16784
|
{
|
|
16785
16785
|
scope: n,
|
|
@@ -16861,11 +16861,11 @@ var Bl = "ScrollAreaCorner", Gh = h.forwardRef(
|
|
|
16861
16861
|
Gh.displayName = Bl;
|
|
16862
16862
|
var mk = h.forwardRef((e, t) => {
|
|
16863
16863
|
const { __scopeScrollArea: n, ...r } = e, o = an(Bl, n), [s, i] = h.useState(0), [a, l] = h.useState(0), c = !!(s && a);
|
|
16864
|
-
return
|
|
16864
|
+
return Mr(o.scrollbarX, () => {
|
|
16865
16865
|
var f;
|
|
16866
16866
|
const d = ((f = o.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
16867
16867
|
o.onCornerHeightChange(d), l(d);
|
|
16868
|
-
}),
|
|
16868
|
+
}), Mr(o.scrollbarY, () => {
|
|
16869
16869
|
var f;
|
|
16870
16870
|
const d = ((f = o.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
16871
16871
|
o.onCornerWidthChange(d), i(d);
|
|
@@ -16929,7 +16929,7 @@ function li(e, t) {
|
|
|
16929
16929
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
16930
16930
|
}, [n, t]);
|
|
16931
16931
|
}
|
|
16932
|
-
function
|
|
16932
|
+
function Mr(e, t) {
|
|
16933
16933
|
const n = St(t);
|
|
16934
16934
|
Nt(() => {
|
|
16935
16935
|
let r = 0;
|
|
@@ -17661,10 +17661,10 @@ var im = Object.freeze({
|
|
|
17661
17661
|
)
|
|
17662
17662
|
);
|
|
17663
17663
|
ci.displayName = _k;
|
|
17664
|
-
var Pk = ci, Mk = [" ", "Enter", "ArrowUp", "ArrowDown"], Ok = [" ", "Enter"], cr = "Select", [ui, di, Dk] = Bs(cr), [
|
|
17664
|
+
var Pk = ci, Mk = [" ", "Enter", "ArrowUp", "ArrowDown"], Ok = [" ", "Enter"], cr = "Select", [ui, di, Dk] = Bs(cr), [Kr, LN] = gn(cr, [
|
|
17665
17665
|
Dk,
|
|
17666
|
-
|
|
17667
|
-
]), fi =
|
|
17666
|
+
Ur
|
|
17667
|
+
]), fi = Ur(), [Lk, Kn] = Kr(cr), [$k, Fk] = Kr(cr), am = (e) => {
|
|
17668
17668
|
const {
|
|
17669
17669
|
__scopeSelect: t,
|
|
17670
17670
|
children: n,
|
|
@@ -17837,7 +17837,7 @@ var ur = "SelectContent", hm = h.forwardRef(
|
|
|
17837
17837
|
}
|
|
17838
17838
|
);
|
|
17839
17839
|
hm.displayName = ur;
|
|
17840
|
-
var un = 10, [mm, qn] =
|
|
17840
|
+
var un = 10, [mm, qn] = Kr(ur), Hk = "SelectContentImpl", Uk = Nr("SelectContent.RemoveScroll"), gm = h.forwardRef(
|
|
17841
17841
|
(e, t) => {
|
|
17842
17842
|
const {
|
|
17843
17843
|
__scopeSelect: n,
|
|
@@ -17958,7 +17958,7 @@ var un = 10, [mm, qn] = qr(ur), Hk = "SelectContentImpl", Uk = Ar("SelectContent
|
|
|
17958
17958
|
(j = w.trigger) == null || j.focus({ preventScroll: !0 }), O.preventDefault();
|
|
17959
17959
|
}),
|
|
17960
17960
|
children: /* @__PURE__ */ u.jsx(
|
|
17961
|
-
|
|
17961
|
+
Br,
|
|
17962
17962
|
{
|
|
17963
17963
|
asChild: !0,
|
|
17964
17964
|
disableOutsidePointerEvents: !0,
|
|
@@ -18142,7 +18142,7 @@ var Vk = "SelectPopperPosition", ya = h.forwardRef((e, t) => {
|
|
|
18142
18142
|
);
|
|
18143
18143
|
});
|
|
18144
18144
|
ya.displayName = Vk;
|
|
18145
|
-
var [Kk, zl] =
|
|
18145
|
+
var [Kk, zl] = Kr(ur, {}), Sa = "SelectViewport", vm = h.forwardRef(
|
|
18146
18146
|
(e, t) => {
|
|
18147
18147
|
const { __scopeSelect: n, nonce: r, ...o } = e, s = qn(Sa, n), i = zl(Sa, n), a = $e(t, s.onViewportChange), l = h.useRef(0);
|
|
18148
18148
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
@@ -18195,7 +18195,7 @@ var [Kk, zl] = qr(ur, {}), Sa = "SelectViewport", vm = h.forwardRef(
|
|
|
18195
18195
|
}
|
|
18196
18196
|
);
|
|
18197
18197
|
vm.displayName = Sa;
|
|
18198
|
-
var wm = "SelectGroup", [qk, Gk] =
|
|
18198
|
+
var wm = "SelectGroup", [qk, Gk] = Kr(wm), Yk = h.forwardRef(
|
|
18199
18199
|
(e, t) => {
|
|
18200
18200
|
const { __scopeSelect: n, ...r } = e, o = Dt();
|
|
18201
18201
|
return /* @__PURE__ */ u.jsx(qk, { scope: n, id: o, children: /* @__PURE__ */ u.jsx(me.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
@@ -18209,7 +18209,7 @@ var bm = "SelectLabel", ym = h.forwardRef(
|
|
|
18209
18209
|
}
|
|
18210
18210
|
);
|
|
18211
18211
|
ym.displayName = bm;
|
|
18212
|
-
var As = "SelectItem", [Xk, Sm] =
|
|
18212
|
+
var As = "SelectItem", [Xk, Sm] = Kr(As), Tm = h.forwardRef(
|
|
18213
18213
|
(e, t) => {
|
|
18214
18214
|
const {
|
|
18215
18215
|
__scopeSelect: n,
|
|
@@ -18820,8 +18820,8 @@ const IR = h.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18820
18820
|
));
|
|
18821
18821
|
IR.displayName = si.displayName;
|
|
18822
18822
|
var [hi, UN] = gn("Tooltip", [
|
|
18823
|
-
|
|
18824
|
-
]), mi =
|
|
18823
|
+
Ur
|
|
18824
|
+
]), mi = Ur(), Qm = "TooltipProvider", NR = 700, ka = "tooltip.open", [AR, Hl] = hi(Qm), eg = (e) => {
|
|
18825
18825
|
const {
|
|
18826
18826
|
__scopeTooltip: t,
|
|
18827
18827
|
delayDuration: n = NR,
|
|
@@ -18938,13 +18938,13 @@ var Ra = "TooltipTrigger", ng = h.forwardRef(
|
|
|
18938
18938
|
ng.displayName = Ra;
|
|
18939
18939
|
var _R = "TooltipPortal", [WN, PR] = hi(_R, {
|
|
18940
18940
|
forceMount: void 0
|
|
18941
|
-
}),
|
|
18941
|
+
}), Or = "TooltipContent", rg = h.forwardRef(
|
|
18942
18942
|
(e, t) => {
|
|
18943
|
-
const n = PR(
|
|
18943
|
+
const n = PR(Or, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, i = gi(Or, e.__scopeTooltip);
|
|
18944
18944
|
return /* @__PURE__ */ u.jsx(Kt, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u.jsx(og, { side: o, ...s, ref: t }) : /* @__PURE__ */ u.jsx(MR, { side: o, ...s, ref: t }) });
|
|
18945
18945
|
}
|
|
18946
18946
|
), MR = h.forwardRef((e, t) => {
|
|
18947
|
-
const n = gi(
|
|
18947
|
+
const n = gi(Or, e.__scopeTooltip), r = Hl(Or, e.__scopeTooltip), o = h.useRef(null), s = $e(t, o), [i, a] = h.useState(null), { trigger: l, onClose: c } = n, d = o.current, { onPointerInTransitChange: f } = r, m = h.useCallback(() => {
|
|
18948
18948
|
a(null), f(!1);
|
|
18949
18949
|
}, [f]), p = h.useCallback(
|
|
18950
18950
|
(v, g) => {
|
|
@@ -18978,7 +18978,7 @@ var _R = "TooltipPortal", [WN, PR] = hi(_R, {
|
|
|
18978
18978
|
onEscapeKeyDown: s,
|
|
18979
18979
|
onPointerDownOutside: i,
|
|
18980
18980
|
...a
|
|
18981
|
-
} = e, l = gi(
|
|
18981
|
+
} = e, l = gi(Or, n), c = mi(n), { onClose: d } = l;
|
|
18982
18982
|
return h.useEffect(() => (document.addEventListener(ka, d), () => document.removeEventListener(ka, d)), [d]), h.useEffect(() => {
|
|
18983
18983
|
if (l.trigger) {
|
|
18984
18984
|
const f = (m) => {
|
|
@@ -18988,7 +18988,7 @@ var _R = "TooltipPortal", [WN, PR] = hi(_R, {
|
|
|
18988
18988
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
18989
18989
|
}
|
|
18990
18990
|
}, [l.trigger, d]), /* @__PURE__ */ u.jsx(
|
|
18991
|
-
|
|
18991
|
+
Br,
|
|
18992
18992
|
{
|
|
18993
18993
|
asChild: !0,
|
|
18994
18994
|
disableOutsidePointerEvents: !1,
|
|
@@ -19021,7 +19021,7 @@ var _R = "TooltipPortal", [WN, PR] = hi(_R, {
|
|
|
19021
19021
|
);
|
|
19022
19022
|
}
|
|
19023
19023
|
);
|
|
19024
|
-
rg.displayName =
|
|
19024
|
+
rg.displayName = Or;
|
|
19025
19025
|
var sg = "TooltipArrow", $R = h.forwardRef(
|
|
19026
19026
|
(e, t) => {
|
|
19027
19027
|
const { __scopeTooltip: n, ...r } = e, o = mi(n);
|
|
@@ -19993,7 +19993,7 @@ export {
|
|
|
19993
19993
|
tm as Input,
|
|
19994
19994
|
vE as InterruptPartRenderer,
|
|
19995
19995
|
jk as Label,
|
|
19996
|
-
|
|
19996
|
+
Ir as MarkdownContent,
|
|
19997
19997
|
Ol as MessageComponent,
|
|
19998
19998
|
Eh as MessageList,
|
|
19999
19999
|
Th as MessageRow,
|
|
@@ -20052,7 +20052,7 @@ export {
|
|
|
20052
20052
|
Sh as getMessageDomKey,
|
|
20053
20053
|
Uu as getPreviewForMessage,
|
|
20054
20054
|
sn as httpClient,
|
|
20055
|
-
|
|
20055
|
+
Tr as hydrateHistorySnapshots,
|
|
20056
20056
|
lw as isEnvelope,
|
|
20057
20057
|
ow as listFiles,
|
|
20058
20058
|
Gw as loadStoredSettings,
|