teodor-new-chat-ui 4.3.154 → 4.3.155
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 +379 -371
- package/dist/index.umd.js +24 -24
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var dg = Object.defineProperty;
|
|
2
2
|
var fg = (e, t, n) => t in e ? dg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var cc = (e, t, n) => fg(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as v from "react";
|
|
5
5
|
import V, { createContext as Bo, useContext as ti, useReducer as hg, useRef as Te, useCallback as ce, useEffect as St, useMemo as ct, useState as ve, startTransition as go, useLayoutEffect as pg, createElement as gs, useImperativeHandle as mg } from "react";
|
|
6
|
-
import { Square as gg, Send as xg, ChevronRight as ed, Check as
|
|
6
|
+
import { Square as gg, Send as xg, ChevronRight as ed, Check as tl, Circle as yg, X as Xr, ExternalLink as vg, Download as wg, Image as bg, FileText as uc, Loader as nl, Bot as Bi, Wrench as Sg, User as Cg, Paperclip as ya, ChevronUp as rl, ChevronDown as ni, ChevronLeft as Tg, Copy as dc, Edit as fc, RotateCcw as va, Info as kg, Loader2 as xs, Edit3 as td, Plus as Rg, FileSpreadsheet as Eg, MessageSquarePlus as Ig, MessageSquare as Ng, Calendar as Ag, Trash2 as _g, Settings as jg, Server as Pg, EyeOff as Og, Eye as Mg, Layout as Dg, MessageCircle as Lg, Save as Fg } from "lucide-react";
|
|
7
7
|
import { Slot as $g, createSlot as no } from "@radix-ui/react-slot";
|
|
8
8
|
import { cva as ri } from "class-variance-authority";
|
|
9
9
|
import { clsx as zg } from "clsx";
|
|
@@ -20,10 +20,10 @@ var wa = { exports: {} }, xo = {};
|
|
|
20
20
|
* This source code is licensed under the MIT license found in the
|
|
21
21
|
* LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var hc;
|
|
24
24
|
function Hg() {
|
|
25
|
-
if (
|
|
26
|
-
|
|
25
|
+
if (hc) return xo;
|
|
26
|
+
hc = 1;
|
|
27
27
|
var e = V, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
28
28
|
function i(a, l, c) {
|
|
29
29
|
var d, f = {}, h = null, p = null;
|
|
@@ -44,9 +44,9 @@ var yo = {};
|
|
|
44
44
|
* This source code is licensed under the MIT license found in the
|
|
45
45
|
* LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
var
|
|
47
|
+
var pc;
|
|
48
48
|
function Ug() {
|
|
49
|
-
return
|
|
49
|
+
return pc || (pc = 1, process.env.NODE_ENV !== "production" && function() {
|
|
50
50
|
var e = V, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), m = Symbol.iterator, g = "@@iterator";
|
|
51
51
|
function x(E) {
|
|
52
52
|
if (E === null || typeof E != "object")
|
|
@@ -641,7 +641,7 @@ function rd(e, t) {
|
|
|
641
641
|
return e.apply(t, arguments);
|
|
642
642
|
};
|
|
643
643
|
}
|
|
644
|
-
const { toString: Wg } = Object.prototype, { getPrototypeOf:
|
|
644
|
+
const { toString: Wg } = Object.prototype, { getPrototypeOf: ol } = Object, { iterator: si, toStringTag: od } = Symbol, ii = /* @__PURE__ */ ((e) => (t) => {
|
|
645
645
|
const n = Wg.call(t);
|
|
646
646
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
647
647
|
})(/* @__PURE__ */ Object.create(null)), zn = (e) => (e = e.toLowerCase(), (t) => ii(t) === e), ai = (e) => (t) => typeof t === e, { isArray: ao } = Array, ro = ai("undefined");
|
|
@@ -656,7 +656,7 @@ function Vg(e) {
|
|
|
656
656
|
const Kg = ai("string"), gn = ai("function"), id = ai("number"), Uo = (e) => e !== null && typeof e == "object", qg = (e) => e === !0 || e === !1, ys = (e) => {
|
|
657
657
|
if (ii(e) !== "object")
|
|
658
658
|
return !1;
|
|
659
|
-
const t =
|
|
659
|
+
const t = ol(e);
|
|
660
660
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(od in e) && !(si in e);
|
|
661
661
|
}, Gg = (e) => {
|
|
662
662
|
if (!Uo(e) || Ho(e))
|
|
@@ -721,7 +721,7 @@ const ax = (e, t, n, { allOwnKeys: r } = {}) => (Wo(t, (o, s) => {
|
|
|
721
721
|
do {
|
|
722
722
|
for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
|
|
723
723
|
i = o[s], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
|
|
724
|
-
e = n !== !1 &&
|
|
724
|
+
e = n !== !1 && ol(e);
|
|
725
725
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
726
726
|
return t;
|
|
727
727
|
}, dx = (e, t, n) => {
|
|
@@ -737,7 +737,7 @@ const ax = (e, t, n, { allOwnKeys: r } = {}) => (Wo(t, (o, s) => {
|
|
|
737
737
|
for (; t-- > 0; )
|
|
738
738
|
n[t] = e[t];
|
|
739
739
|
return n;
|
|
740
|
-
}, hx = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
740
|
+
}, hx = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && ol(Uint8Array)), px = (e, t) => {
|
|
741
741
|
const r = (e && e[si]).call(e);
|
|
742
742
|
let o;
|
|
743
743
|
for (; (o = r.next()) && !o.done; ) {
|
|
@@ -755,7 +755,7 @@ const ax = (e, t, n, { allOwnKeys: r } = {}) => (Wo(t, (o, s) => {
|
|
|
755
755
|
function(n, r, o) {
|
|
756
756
|
return r.toUpperCase() + o;
|
|
757
757
|
}
|
|
758
|
-
),
|
|
758
|
+
), mc = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yx = zn("RegExp"), cd = (e, t) => {
|
|
759
759
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
760
760
|
Wo(n, (o, s) => {
|
|
761
761
|
let i;
|
|
@@ -854,8 +854,8 @@ const Tx = (e) => {
|
|
|
854
854
|
forEachEntry: px,
|
|
855
855
|
matchAll: mx,
|
|
856
856
|
isHTMLForm: gx,
|
|
857
|
-
hasOwnProperty:
|
|
858
|
-
hasOwnProp:
|
|
857
|
+
hasOwnProperty: mc,
|
|
858
|
+
hasOwnProp: mc,
|
|
859
859
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
860
860
|
reduceDescriptors: cd,
|
|
861
861
|
freezeMethods: vx,
|
|
@@ -933,7 +933,7 @@ function Sa(e) {
|
|
|
933
933
|
function hd(e) {
|
|
934
934
|
return O.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
936
|
+
function gc(e, t, n) {
|
|
937
937
|
return e ? e.concat(t).map(function(o, s) {
|
|
938
938
|
return o = hd(o), !n && s ? "[" + o + "]" : o;
|
|
939
939
|
}).join(n ? "." : "") : t;
|
|
@@ -976,12 +976,12 @@ function li(e, t, n) {
|
|
|
976
976
|
return g = hd(g), y.forEach(function(S, T) {
|
|
977
977
|
!(O.isUndefined(S) || S === null) && t.append(
|
|
978
978
|
// eslint-disable-next-line no-nested-ternary
|
|
979
|
-
i === !0 ?
|
|
979
|
+
i === !0 ? gc([g], T, s) : i === null ? g : g + "[]",
|
|
980
980
|
c(S)
|
|
981
981
|
);
|
|
982
982
|
}), !1;
|
|
983
983
|
}
|
|
984
|
-
return Sa(m) ? !0 : (t.append(
|
|
984
|
+
return Sa(m) ? !0 : (t.append(gc(x, g, s), c(m)), !1);
|
|
985
985
|
}
|
|
986
986
|
const f = [], h = Object.assign(_x, {
|
|
987
987
|
defaultVisitor: d,
|
|
@@ -1007,7 +1007,7 @@ function li(e, t, n) {
|
|
|
1007
1007
|
throw new TypeError("data must be an object");
|
|
1008
1008
|
return p(e), t;
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function xc(e) {
|
|
1011
1011
|
const t = {
|
|
1012
1012
|
"!": "%21",
|
|
1013
1013
|
"'": "%27",
|
|
@@ -1021,17 +1021,17 @@ function gc(e) {
|
|
|
1021
1021
|
return t[r];
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function sl(e, t) {
|
|
1025
1025
|
this._pairs = [], e && li(e, this, t);
|
|
1026
1026
|
}
|
|
1027
|
-
const pd =
|
|
1027
|
+
const pd = sl.prototype;
|
|
1028
1028
|
pd.append = function(t, n) {
|
|
1029
1029
|
this._pairs.push([t, n]);
|
|
1030
1030
|
};
|
|
1031
1031
|
pd.toString = function(t) {
|
|
1032
1032
|
const n = t ? function(r) {
|
|
1033
|
-
return t.call(this, r,
|
|
1034
|
-
} :
|
|
1033
|
+
return t.call(this, r, xc);
|
|
1034
|
+
} : xc;
|
|
1035
1035
|
return this._pairs.map(function(o) {
|
|
1036
1036
|
return n(o[0]) + "=" + n(o[1]);
|
|
1037
1037
|
}, "").join("&");
|
|
@@ -1048,13 +1048,13 @@ function md(e, t, n) {
|
|
|
1048
1048
|
});
|
|
1049
1049
|
const o = n && n.serialize;
|
|
1050
1050
|
let s;
|
|
1051
|
-
if (o ? s = o(t, n) : s = O.isURLSearchParams(t) ? t.toString() : new
|
|
1051
|
+
if (o ? s = o(t, n) : s = O.isURLSearchParams(t) ? t.toString() : new sl(t, n).toString(r), s) {
|
|
1052
1052
|
const i = e.indexOf("#");
|
|
1053
1053
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
1054
1054
|
}
|
|
1055
1055
|
return e;
|
|
1056
1056
|
}
|
|
1057
|
-
class
|
|
1057
|
+
class yc {
|
|
1058
1058
|
constructor() {
|
|
1059
1059
|
this.handlers = [];
|
|
1060
1060
|
}
|
|
@@ -1112,7 +1112,7 @@ const gd = {
|
|
|
1112
1112
|
silentJSONParsing: !0,
|
|
1113
1113
|
forcedJSONParsing: !0,
|
|
1114
1114
|
clarifyTimeoutError: !1
|
|
1115
|
-
}, Px = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
1115
|
+
}, Px = typeof URLSearchParams < "u" ? URLSearchParams : sl, Ox = typeof FormData < "u" ? FormData : null, Mx = typeof Blob < "u" ? Blob : null, Dx = {
|
|
1116
1116
|
isBrowser: !0,
|
|
1117
1117
|
classes: {
|
|
1118
1118
|
URLSearchParams: Px,
|
|
@@ -1120,10 +1120,10 @@ const gd = {
|
|
|
1120
1120
|
Blob: Mx
|
|
1121
1121
|
},
|
|
1122
1122
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
1123
|
-
},
|
|
1124
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $x =
|
|
1123
|
+
}, il = typeof window < "u" && typeof document < "u", Ca = typeof navigator == "object" && navigator || void 0, Lx = il && (!Ca || ["ReactNative", "NativeScript", "NS"].indexOf(Ca.product) < 0), Fx = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
1124
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", $x = il && window.location.href || "http://localhost", zx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1125
1125
|
__proto__: null,
|
|
1126
|
-
hasBrowserEnv:
|
|
1126
|
+
hasBrowserEnv: il,
|
|
1127
1127
|
hasStandardBrowserEnv: Lx,
|
|
1128
1128
|
hasStandardBrowserWebWorkerEnv: Fx,
|
|
1129
1129
|
navigator: Ca,
|
|
@@ -1271,7 +1271,7 @@ const Vx = O.toObjectSet([
|
|
|
1271
1271
|
`).forEach(function(i) {
|
|
1272
1272
|
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && Vx[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1273
1273
|
}), t;
|
|
1274
|
-
},
|
|
1274
|
+
}, vc = Symbol("internals");
|
|
1275
1275
|
function vo(e) {
|
|
1276
1276
|
return e && String(e).trim().toLowerCase();
|
|
1277
1277
|
}
|
|
@@ -1426,7 +1426,7 @@ let xn = class {
|
|
|
1426
1426
|
return n.forEach((o) => r.set(o)), r;
|
|
1427
1427
|
}
|
|
1428
1428
|
static accessor(t) {
|
|
1429
|
-
const r = (this[
|
|
1429
|
+
const r = (this[vc] = this[vc] = {
|
|
1430
1430
|
accessors: {}
|
|
1431
1431
|
}).accessors, o = this.prototype;
|
|
1432
1432
|
function s(i) {
|
|
@@ -1524,14 +1524,14 @@ const Ps = (e, t, n = 3) => {
|
|
|
1524
1524
|
};
|
|
1525
1525
|
e(f);
|
|
1526
1526
|
}, n);
|
|
1527
|
-
},
|
|
1527
|
+
}, wc = (e, t) => {
|
|
1528
1528
|
const n = e != null;
|
|
1529
1529
|
return [(r) => t[0]({
|
|
1530
1530
|
lengthComputable: n,
|
|
1531
1531
|
total: e,
|
|
1532
1532
|
loaded: r
|
|
1533
1533
|
}), t[1]];
|
|
1534
|
-
},
|
|
1534
|
+
}, bc = (e) => (...t) => O.asap(() => e(...t)), ey = nn.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, nn.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1535
1535
|
new URL(nn.origin),
|
|
1536
1536
|
nn.navigator && /(msie|trident)/i.test(nn.navigator.userAgent)
|
|
1537
1537
|
) : () => !0, ty = nn.hasStandardBrowserEnv ? (
|
|
@@ -1571,7 +1571,7 @@ function wd(e, t, n) {
|
|
|
1571
1571
|
let r = !ny(t);
|
|
1572
1572
|
return e && (r || n == !1) ? ry(e, t) : t;
|
|
1573
1573
|
}
|
|
1574
|
-
const
|
|
1574
|
+
const Sc = (e) => e instanceof xn ? { ...e } : e;
|
|
1575
1575
|
function Ar(e, t) {
|
|
1576
1576
|
t = t || {};
|
|
1577
1577
|
const n = {};
|
|
@@ -1629,7 +1629,7 @@ function Ar(e, t) {
|
|
|
1629
1629
|
socketPath: i,
|
|
1630
1630
|
responseEncoding: i,
|
|
1631
1631
|
validateStatus: a,
|
|
1632
|
-
headers: (c, d, f) => o(
|
|
1632
|
+
headers: (c, d, f) => o(Sc(c), Sc(d), f, !0)
|
|
1633
1633
|
};
|
|
1634
1634
|
return O.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
1635
1635
|
const f = l[d] || o, h = f(e[d], t[d], d);
|
|
@@ -1766,7 +1766,7 @@ const bd = (e) => {
|
|
|
1766
1766
|
} finally {
|
|
1767
1767
|
await t.cancel();
|
|
1768
1768
|
}
|
|
1769
|
-
},
|
|
1769
|
+
}, Cc = (e, t, n, r) => {
|
|
1770
1770
|
const o = ly(e, t);
|
|
1771
1771
|
let s = 0, i, a = (l) => {
|
|
1772
1772
|
i || (i = !0, r && r(l));
|
|
@@ -1795,13 +1795,13 @@ const bd = (e) => {
|
|
|
1795
1795
|
}, {
|
|
1796
1796
|
highWaterMark: 2
|
|
1797
1797
|
});
|
|
1798
|
-
},
|
|
1798
|
+
}, Tc = 64 * 1024, { isFunction: ns } = O, uy = (({ Request: e, Response: t }) => ({
|
|
1799
1799
|
Request: e,
|
|
1800
1800
|
Response: t
|
|
1801
1801
|
}))(O.global), {
|
|
1802
|
-
ReadableStream:
|
|
1803
|
-
TextEncoder:
|
|
1804
|
-
} = O.global,
|
|
1802
|
+
ReadableStream: kc,
|
|
1803
|
+
TextEncoder: Rc
|
|
1804
|
+
} = O.global, Ec = (e, ...t) => {
|
|
1805
1805
|
try {
|
|
1806
1806
|
return !!e(...t);
|
|
1807
1807
|
} catch {
|
|
@@ -1814,17 +1814,17 @@ const bd = (e) => {
|
|
|
1814
1814
|
const { fetch: t, Request: n, Response: r } = e, o = t ? ns(t) : typeof fetch == "function", s = ns(n), i = ns(r);
|
|
1815
1815
|
if (!o)
|
|
1816
1816
|
return !1;
|
|
1817
|
-
const a = o && ns(
|
|
1817
|
+
const a = o && ns(kc), l = o && (typeof Rc == "function" ? /* @__PURE__ */ ((m) => (g) => m.encode(g))(new Rc()) : async (m) => new Uint8Array(await new n(m).arrayBuffer())), c = s && a && Ec(() => {
|
|
1818
1818
|
let m = !1;
|
|
1819
1819
|
const g = new n(nn.origin, {
|
|
1820
|
-
body: new
|
|
1820
|
+
body: new kc(),
|
|
1821
1821
|
method: "POST",
|
|
1822
1822
|
get duplex() {
|
|
1823
1823
|
return m = !0, "half";
|
|
1824
1824
|
}
|
|
1825
1825
|
}).headers.has("Content-Type");
|
|
1826
1826
|
return m && !g;
|
|
1827
|
-
}), d = i && a &&
|
|
1827
|
+
}), d = i && a && Ec(() => O.isReadableStream(new r("").body)), f = {
|
|
1828
1828
|
stream: d && ((m) => m.body)
|
|
1829
1829
|
};
|
|
1830
1830
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((m) => {
|
|
@@ -1882,11 +1882,11 @@ const bd = (e) => {
|
|
|
1882
1882
|
duplex: "half"
|
|
1883
1883
|
}), ge;
|
|
1884
1884
|
if (O.isFormData(y) && (ge = Q.headers.get("content-type")) && A.setContentType(ge), Q.body) {
|
|
1885
|
-
const [je, J] =
|
|
1885
|
+
const [je, J] = wc(
|
|
1886
1886
|
B,
|
|
1887
|
-
Ps(
|
|
1887
|
+
Ps(bc(b))
|
|
1888
1888
|
);
|
|
1889
|
-
y =
|
|
1889
|
+
y = Cc(Q.body, Tc, je, J);
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
O.isString(N) || (N = N ? "include" : "omit");
|
|
@@ -1907,12 +1907,12 @@ const bd = (e) => {
|
|
|
1907
1907
|
["status", "statusText", "headers"].forEach((ue) => {
|
|
1908
1908
|
Q[ue] = F[ue];
|
|
1909
1909
|
});
|
|
1910
|
-
const ge = O.toFiniteNumber(F.headers.get("content-length")), [je, J] = C &&
|
|
1910
|
+
const ge = O.toFiniteNumber(F.headers.get("content-length")), [je, J] = C && wc(
|
|
1911
1911
|
ge,
|
|
1912
|
-
Ps(
|
|
1912
|
+
Ps(bc(C), !0)
|
|
1913
1913
|
) || [];
|
|
1914
1914
|
F = new r(
|
|
1915
|
-
|
|
1915
|
+
Cc(F.body, Tc, je, () => {
|
|
1916
1916
|
J && J(), P && P();
|
|
1917
1917
|
}),
|
|
1918
1918
|
Q
|
|
@@ -1968,7 +1968,7 @@ O.forEach(Ta, (e, t) => {
|
|
|
1968
1968
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1969
1969
|
}
|
|
1970
1970
|
});
|
|
1971
|
-
const
|
|
1971
|
+
const Ic = (e) => `- ${e}`, hy = (e) => O.isFunction(e) || e === null || e === !1, Cd = {
|
|
1972
1972
|
getAdapter: (e, t) => {
|
|
1973
1973
|
e = O.isArray(e) ? e : [e];
|
|
1974
1974
|
const { length: n } = e;
|
|
@@ -1988,8 +1988,8 @@ const Ec = (e) => `- ${e}`, hy = (e) => O.isFunction(e) || e === null || e === !
|
|
|
1988
1988
|
([l, c]) => `adapter ${l} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1989
1989
|
);
|
|
1990
1990
|
let a = n ? i.length > 1 ? `since :
|
|
1991
|
-
` + i.map(
|
|
1992
|
-
`) : " " +
|
|
1991
|
+
` + i.map(Ic).join(`
|
|
1992
|
+
`) : " " + Ic(i[0]) : "as no adapter specified";
|
|
1993
1993
|
throw new $e(
|
|
1994
1994
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1995
1995
|
"ERR_NOT_SUPPORT"
|
|
@@ -2003,7 +2003,7 @@ function Wi(e) {
|
|
|
2003
2003
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
2004
2004
|
throw new lo(null, e);
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function Nc(e) {
|
|
2007
2007
|
return Wi(e), e.headers = xn.from(e.headers), e.data = Ui.call(
|
|
2008
2008
|
e,
|
|
2009
2009
|
e.transformRequest
|
|
@@ -2027,7 +2027,7 @@ const Td = "1.12.2", ci = {};
|
|
|
2027
2027
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
2028
2028
|
};
|
|
2029
2029
|
});
|
|
2030
|
-
const
|
|
2030
|
+
const Ac = {};
|
|
2031
2031
|
ci.transitional = function(t, n, r) {
|
|
2032
2032
|
function o(s, i) {
|
|
2033
2033
|
return "[Axios v" + Td + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
|
|
@@ -2038,7 +2038,7 @@ ci.transitional = function(t, n, r) {
|
|
|
2038
2038
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
2039
2039
|
$e.ERR_DEPRECATED
|
|
2040
2040
|
);
|
|
2041
|
-
return n && !
|
|
2041
|
+
return n && !Ac[i] && (Ac[i] = !0, console.warn(
|
|
2042
2042
|
o(
|
|
2043
2043
|
i,
|
|
2044
2044
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -2073,8 +2073,8 @@ const ws = {
|
|
|
2073
2073
|
let Ir = class {
|
|
2074
2074
|
constructor(t) {
|
|
2075
2075
|
this.defaults = t || {}, this.interceptors = {
|
|
2076
|
-
request: new
|
|
2077
|
-
response: new
|
|
2076
|
+
request: new yc(),
|
|
2077
|
+
response: new yc()
|
|
2078
2078
|
};
|
|
2079
2079
|
}
|
|
2080
2080
|
/**
|
|
@@ -2139,7 +2139,7 @@ let Ir = class {
|
|
|
2139
2139
|
});
|
|
2140
2140
|
let d, f = 0, h;
|
|
2141
2141
|
if (!l) {
|
|
2142
|
-
const m = [
|
|
2142
|
+
const m = [Nc.bind(this), void 0];
|
|
2143
2143
|
for (m.unshift(...a), m.push(...c), h = m.length, d = Promise.resolve(n); f < h; )
|
|
2144
2144
|
d = d.then(m[f++], m[f++]);
|
|
2145
2145
|
return d;
|
|
@@ -2156,7 +2156,7 @@ let Ir = class {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
2158
|
try {
|
|
2159
|
-
d =
|
|
2159
|
+
d = Nc.call(this, p);
|
|
2160
2160
|
} catch (m) {
|
|
2161
2161
|
return Promise.reject(m);
|
|
2162
2162
|
}
|
|
@@ -2386,7 +2386,7 @@ const {
|
|
|
2386
2386
|
formToJSON: $R,
|
|
2387
2387
|
getAdapter: zR,
|
|
2388
2388
|
mergeConfig: BR
|
|
2389
|
-
} = Bt,
|
|
2389
|
+
} = Bt, _c = typeof window < "u" ? window.__API_BASE_URL__ : void 0, jc = _c ? or(_c) : void 0;
|
|
2390
2390
|
function or(e) {
|
|
2391
2391
|
const n = (e != null && e.trim() ? e.trim() : "/api/chat").replace(/\/+$/, "");
|
|
2392
2392
|
return n ? n.endsWith("/chat") ? n : `${n}/chat` : "/api/chat";
|
|
@@ -2397,7 +2397,7 @@ let Ea = null;
|
|
|
2397
2397
|
function yy() {
|
|
2398
2398
|
return Os;
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function Ia(e) {
|
|
2401
2401
|
Os = e, Ra.forEach((t) => t(e));
|
|
2402
2402
|
}
|
|
2403
2403
|
function vy(e) {
|
|
@@ -2409,18 +2409,26 @@ function HR(e) {
|
|
|
2409
2409
|
const wy = 3e4, by = 9e4, An = Bt.create({
|
|
2410
2410
|
// Only set baseURL when configured — do NOT fall back to localhost. Falling back causes
|
|
2411
2411
|
// noisy network requests to the frontend Dev server when the backend isn't configured.
|
|
2412
|
-
...
|
|
2412
|
+
...jc ? { baseURL: jc } : {},
|
|
2413
2413
|
timeout: wy,
|
|
2414
2414
|
withCredentials: !0
|
|
2415
2415
|
});
|
|
2416
2416
|
An.interceptors.request.use((e) => (Os && (e.headers.Authorization = `Bearer ${Os}`), e));
|
|
2417
2417
|
An.interceptors.response.use(
|
|
2418
2418
|
(e) => {
|
|
2419
|
+
var t;
|
|
2420
|
+
if (typeof window < "u" && (e != null && e.data))
|
|
2421
|
+
try {
|
|
2422
|
+
const n = (t = e.data) == null ? void 0 : t.token;
|
|
2423
|
+
n && typeof n == "string" && (localStorage.setItem("authToken", n), Ia(n));
|
|
2424
|
+
} catch (n) {
|
|
2425
|
+
console.warn("[chat-api] Error storing token:", n);
|
|
2426
|
+
}
|
|
2419
2427
|
if (Ea && (e != null && e.data))
|
|
2420
2428
|
try {
|
|
2421
2429
|
Ea(e.data);
|
|
2422
|
-
} catch (
|
|
2423
|
-
console.warn("[chat-api] Error in token sync handler:",
|
|
2430
|
+
} catch (n) {
|
|
2431
|
+
console.warn("[chat-api] Error in token sync handler:", n);
|
|
2424
2432
|
}
|
|
2425
2433
|
return e;
|
|
2426
2434
|
},
|
|
@@ -2448,14 +2456,14 @@ class Ty {
|
|
|
2448
2456
|
return t ? or(String(t)) : "";
|
|
2449
2457
|
}
|
|
2450
2458
|
updateConfig(t) {
|
|
2451
|
-
t.baseUrl && (An.defaults.baseURL = or(String(t.baseUrl))), t.authToken !== void 0 &&
|
|
2459
|
+
t.baseUrl && (An.defaults.baseURL = or(String(t.baseUrl))), t.authToken !== void 0 && Ia(t.authToken);
|
|
2452
2460
|
}
|
|
2453
2461
|
// ---- Token Management ----
|
|
2454
2462
|
getAuthToken() {
|
|
2455
2463
|
return yy();
|
|
2456
2464
|
}
|
|
2457
2465
|
setAuthToken(t) {
|
|
2458
|
-
|
|
2466
|
+
Ia(t);
|
|
2459
2467
|
}
|
|
2460
2468
|
onTokenChange(t) {
|
|
2461
2469
|
return vy(t);
|
|
@@ -2588,7 +2596,7 @@ const Iy = {
|
|
|
2588
2596
|
function: "tool",
|
|
2589
2597
|
system: "system"
|
|
2590
2598
|
};
|
|
2591
|
-
function
|
|
2599
|
+
function al(e) {
|
|
2592
2600
|
if (!e || typeof e != "object") return !1;
|
|
2593
2601
|
const t = e;
|
|
2594
2602
|
return "values" in t && "config" in t && typeof t.values == "object" && t.values !== null && typeof t.config == "object" && t.config !== null;
|
|
@@ -2598,7 +2606,7 @@ function Jr(e, t) {
|
|
|
2598
2606
|
}
|
|
2599
2607
|
function Ms(e) {
|
|
2600
2608
|
const t = Array.isArray(e == null ? void 0 : e.checkpoints) ? (e == null ? void 0 : e.checkpoints) ?? [] : e != null && e.checkpoints ? Object.values(e.checkpoints) : [], n = (e == null ? void 0 : e.threadId) ?? "", r = t[0];
|
|
2601
|
-
if (!
|
|
2609
|
+
if (!al(r))
|
|
2602
2610
|
return {
|
|
2603
2611
|
threadId: n,
|
|
2604
2612
|
latest: null,
|
|
@@ -2616,7 +2624,7 @@ function Ms(e) {
|
|
|
2616
2624
|
};
|
|
2617
2625
|
}
|
|
2618
2626
|
function Nd(e, t) {
|
|
2619
|
-
if (!
|
|
2627
|
+
if (!al(e)) return null;
|
|
2620
2628
|
const n = e.values ?? { messages: [] }, r = Array.isArray(n == null ? void 0 : n.messages) ? n.messages : [], { messages: o, ...s } = n, i = Object.keys(s).length ? s : null, a = e.tasks, l = Array.isArray(a) ? a.filter((N) => !!N && typeof N == "object").map((N) => ({ ...N })) : a === null ? null : void 0, c = r.map((N, _) => Ly(N, _)).filter((N) => !!N), d = mn(e.config), f = mn(d == null ? void 0 : d.configurable), h = Ut(f, ["checkpoint_id", "checkpointId"]), p = Ut(f, ["checkpoint_ns", "checkpointNs"]), m = mn(e == null ? void 0 : e.parentConfig), g = mn(m == null ? void 0 : m.configurable), x = Ut(g, ["checkpoint_id", "checkpointId"]) ?? null, y = Ut(g, ["checkpoint_ns", "checkpointNs"]) ?? null, w = e == null ? void 0 : e.createdAt, S = typeof w == "string" && w.trim() ? w : new Date(Date.now() - t).toISOString(), T = c[c.length - 1] ?? null, C = mn(e == null ? void 0 : e.metadata), b = Ut(C, ["branch_label", "branchLabel"]), k = Ut(g, ["checkpoint_id", "checkpointId"]), A = Array.isArray(e.next) ? [...e.next] : (e == null ? void 0 : e.next) === null ? null : void 0;
|
|
2621
2629
|
return {
|
|
2622
2630
|
messages: c,
|
|
@@ -2646,7 +2654,7 @@ function Ny(e, t, n) {
|
|
|
2646
2654
|
function Ay(e) {
|
|
2647
2655
|
const t = /* @__PURE__ */ new Map();
|
|
2648
2656
|
e.forEach((o, s) => {
|
|
2649
|
-
if (!
|
|
2657
|
+
if (!al(o)) return;
|
|
2650
2658
|
const i = Nd(o, s);
|
|
2651
2659
|
if (!(i != null && i.checkpointId)) return;
|
|
2652
2660
|
const a = Jr(i.checkpointId, i.checkpointNs ?? null), l = t.get(a);
|
|
@@ -3209,7 +3217,7 @@ function Fc(e) {
|
|
|
3209
3217
|
};
|
|
3210
3218
|
return n(e.id), n(e == null ? void 0 : e.call_id), n(e == null ? void 0 : e.callId), Array.from(t);
|
|
3211
3219
|
}
|
|
3212
|
-
function
|
|
3220
|
+
function ll(e) {
|
|
3213
3221
|
if (!e) return [];
|
|
3214
3222
|
const t = /* @__PURE__ */ new Set(), n = (o) => {
|
|
3215
3223
|
typeof o == "string" && o.trim() && t.add(o.trim());
|
|
@@ -3230,7 +3238,7 @@ function Ki(e, t, n, r) {
|
|
|
3230
3238
|
typeof l == "string" && l.trim() && o.add(l.trim());
|
|
3231
3239
|
};
|
|
3232
3240
|
if (e) {
|
|
3233
|
-
const l =
|
|
3241
|
+
const l = ll(e);
|
|
3234
3242
|
for (const c of l)
|
|
3235
3243
|
s(c);
|
|
3236
3244
|
}
|
|
@@ -3250,7 +3258,7 @@ function os(e, t) {
|
|
|
3250
3258
|
const n = /* @__PURE__ */ new Set();
|
|
3251
3259
|
for (const o of t)
|
|
3252
3260
|
typeof o == "string" && o.trim() && n.add(o.trim());
|
|
3253
|
-
const r =
|
|
3261
|
+
const r = ll(e);
|
|
3254
3262
|
for (const o of r)
|
|
3255
3263
|
n.add(o);
|
|
3256
3264
|
return Array.from(n);
|
|
@@ -3276,7 +3284,7 @@ function $c(e, t, n) {
|
|
|
3276
3284
|
for (let i = e.messages.length - 1; i >= 0; i--) {
|
|
3277
3285
|
const a = e.messages[i];
|
|
3278
3286
|
if (a.role !== "tool") continue;
|
|
3279
|
-
if (
|
|
3287
|
+
if (ll(a).some((c) => r.has(c)))
|
|
3280
3288
|
return i;
|
|
3281
3289
|
}
|
|
3282
3290
|
if (typeof n == "string" && n.trim())
|
|
@@ -3833,7 +3841,7 @@ function Uc(e, t = Ss) {
|
|
|
3833
3841
|
function jr() {
|
|
3834
3842
|
return typeof window < "u" && typeof window.localStorage < "u";
|
|
3835
3843
|
}
|
|
3836
|
-
function
|
|
3844
|
+
function cl(e) {
|
|
3837
3845
|
if (!jr()) return null;
|
|
3838
3846
|
try {
|
|
3839
3847
|
return window.localStorage.getItem(e);
|
|
@@ -3841,7 +3849,7 @@ function ll(e) {
|
|
|
3841
3849
|
return null;
|
|
3842
3850
|
}
|
|
3843
3851
|
}
|
|
3844
|
-
function
|
|
3852
|
+
function Na(e, t) {
|
|
3845
3853
|
if (!jr()) return !1;
|
|
3846
3854
|
try {
|
|
3847
3855
|
return window.localStorage.setItem(e, t), !0;
|
|
@@ -3849,7 +3857,7 @@ function Ia(e, t) {
|
|
|
3849
3857
|
return !1;
|
|
3850
3858
|
}
|
|
3851
3859
|
}
|
|
3852
|
-
function
|
|
3860
|
+
function Aa(e) {
|
|
3853
3861
|
if (jr())
|
|
3854
3862
|
try {
|
|
3855
3863
|
window.localStorage.removeItem(e);
|
|
@@ -3917,11 +3925,11 @@ function Wc(e, t) {
|
|
|
3917
3925
|
return e.value === t.value;
|
|
3918
3926
|
}
|
|
3919
3927
|
}
|
|
3920
|
-
function
|
|
3928
|
+
function ul(e, t) {
|
|
3921
3929
|
return `${e}${t}`;
|
|
3922
3930
|
}
|
|
3923
3931
|
function cv(e, t) {
|
|
3924
|
-
const n =
|
|
3932
|
+
const n = cl(ul(e, t));
|
|
3925
3933
|
if (!n) return null;
|
|
3926
3934
|
try {
|
|
3927
3935
|
const r = JSON.parse(n);
|
|
@@ -3943,8 +3951,8 @@ function uv(e, t, n = 100) {
|
|
|
3943
3951
|
messages: r.messages.slice(-n)
|
|
3944
3952
|
},
|
|
3945
3953
|
updatedAt: Date.now()
|
|
3946
|
-
}, s =
|
|
3947
|
-
if (!
|
|
3954
|
+
}, s = ul(e, t.threadId), i = JSON.stringify(o);
|
|
3955
|
+
if (!Na(s, i))
|
|
3948
3956
|
try {
|
|
3949
3957
|
const a = [];
|
|
3950
3958
|
for (let l = 0; l < window.localStorage.length; l++) {
|
|
@@ -3965,13 +3973,13 @@ function uv(e, t, n = 100) {
|
|
|
3965
3973
|
}
|
|
3966
3974
|
a.sort((l, c) => l.updatedAt - c.updatedAt);
|
|
3967
3975
|
for (const l of a)
|
|
3968
|
-
if (window.localStorage.removeItem(l.key),
|
|
3976
|
+
if (window.localStorage.removeItem(l.key), Na(s, i))
|
|
3969
3977
|
break;
|
|
3970
3978
|
} catch {
|
|
3971
3979
|
}
|
|
3972
3980
|
}
|
|
3973
3981
|
function dv(e, t) {
|
|
3974
|
-
|
|
3982
|
+
Aa(ul(e, t));
|
|
3975
3983
|
}
|
|
3976
3984
|
function fv(e) {
|
|
3977
3985
|
if (jr())
|
|
@@ -4015,7 +4023,7 @@ function Md(e) {
|
|
|
4015
4023
|
};
|
|
4016
4024
|
}) : [];
|
|
4017
4025
|
}
|
|
4018
|
-
const gv = "cachedThreads", xv = "v1",
|
|
4026
|
+
const gv = "cachedThreads", xv = "v1", _a = 200;
|
|
4019
4027
|
function yv(e) {
|
|
4020
4028
|
let t = 5381;
|
|
4021
4029
|
for (let n = 0; n < e.length; n++)
|
|
@@ -4026,7 +4034,7 @@ function Xi(e, t) {
|
|
|
4026
4034
|
return `cachedThreads:v1:${e}:${yv(t || "anon")}`;
|
|
4027
4035
|
}
|
|
4028
4036
|
function vv() {
|
|
4029
|
-
const e =
|
|
4037
|
+
const e = cl(gv);
|
|
4030
4038
|
if (!e) return [];
|
|
4031
4039
|
try {
|
|
4032
4040
|
const t = JSON.parse(e);
|
|
@@ -4040,7 +4048,7 @@ function vv() {
|
|
|
4040
4048
|
}
|
|
4041
4049
|
}
|
|
4042
4050
|
function wv(e) {
|
|
4043
|
-
const t =
|
|
4051
|
+
const t = cl(e);
|
|
4044
4052
|
if (!t) return [];
|
|
4045
4053
|
try {
|
|
4046
4054
|
const n = JSON.parse(t);
|
|
@@ -4053,8 +4061,8 @@ function wv(e) {
|
|
|
4053
4061
|
return [];
|
|
4054
4062
|
}
|
|
4055
4063
|
}
|
|
4056
|
-
function
|
|
4057
|
-
|
|
4064
|
+
function ja(e, t) {
|
|
4065
|
+
Na(e, JSON.stringify(t));
|
|
4058
4066
|
}
|
|
4059
4067
|
function Ji(e) {
|
|
4060
4068
|
const t = wv(e);
|
|
@@ -4062,7 +4070,7 @@ function Ji(e) {
|
|
|
4062
4070
|
const n = vv();
|
|
4063
4071
|
if (n.length > 0)
|
|
4064
4072
|
try {
|
|
4065
|
-
|
|
4073
|
+
ja(e, n.slice(0, _a));
|
|
4066
4074
|
} catch {
|
|
4067
4075
|
}
|
|
4068
4076
|
return n;
|
|
@@ -4394,7 +4402,7 @@ function Cv({
|
|
|
4394
4402
|
const U = R.map((he) => `${he.threadId}:${he.updatedAt ?? ""}:${he.messageCount ?? ""}`).join("|");
|
|
4395
4403
|
if (R.length === 0) {
|
|
4396
4404
|
try {
|
|
4397
|
-
|
|
4405
|
+
Aa(w);
|
|
4398
4406
|
} catch {
|
|
4399
4407
|
}
|
|
4400
4408
|
ln.current = "";
|
|
@@ -4404,8 +4412,8 @@ function Cv({
|
|
|
4404
4412
|
return;
|
|
4405
4413
|
const K = () => {
|
|
4406
4414
|
try {
|
|
4407
|
-
const he = R.slice(0,
|
|
4408
|
-
|
|
4415
|
+
const he = R.slice(0, _a);
|
|
4416
|
+
ja(w, he), ln.current = U;
|
|
4409
4417
|
} catch {
|
|
4410
4418
|
} finally {
|
|
4411
4419
|
Ot.current = null;
|
|
@@ -4674,7 +4682,7 @@ function Cv({
|
|
|
4674
4682
|
const R = b.map((U) => `${U.threadId}:${U.updatedAt ?? ""}:${U.messageCount ?? ""}`).join("|");
|
|
4675
4683
|
if (b.length === 0) {
|
|
4676
4684
|
try {
|
|
4677
|
-
|
|
4685
|
+
Aa(w);
|
|
4678
4686
|
} catch {
|
|
4679
4687
|
}
|
|
4680
4688
|
ln.current = "";
|
|
@@ -4684,8 +4692,8 @@ function Cv({
|
|
|
4684
4692
|
return;
|
|
4685
4693
|
const I = () => {
|
|
4686
4694
|
try {
|
|
4687
|
-
const U = b.slice(0,
|
|
4688
|
-
|
|
4695
|
+
const U = b.slice(0, _a);
|
|
4696
|
+
ja(w, U), ln.current = R;
|
|
4689
4697
|
} catch {
|
|
4690
4698
|
} finally {
|
|
4691
4699
|
Ot.current = null;
|
|
@@ -4768,7 +4776,7 @@ function Cv({
|
|
|
4768
4776
|
}
|
|
4769
4777
|
},
|
|
4770
4778
|
[c, $t, dt, lt, Fe]
|
|
4771
|
-
),
|
|
4779
|
+
), nc = ce(
|
|
4772
4780
|
async (R, I) => {
|
|
4773
4781
|
try {
|
|
4774
4782
|
await c.updateThread(R, I), C((U) => {
|
|
@@ -4855,7 +4863,7 @@ function Cv({
|
|
|
4855
4863
|
an,
|
|
4856
4864
|
Yt
|
|
4857
4865
|
]
|
|
4858
|
-
),
|
|
4866
|
+
), rc = ce(async () => {
|
|
4859
4867
|
await at(async () => {
|
|
4860
4868
|
const R = Ce.current;
|
|
4861
4869
|
R && dt(R), Xe.current = null, A(null), Ce.current = null, Qe.current = null, $t(), ee(void 0), G(void 0), ae(void 0), We();
|
|
@@ -4865,7 +4873,7 @@ function Cv({
|
|
|
4865
4873
|
console.warn("[ChatSessionProvider] Failed to clear lastThreadId:", I);
|
|
4866
4874
|
}
|
|
4867
4875
|
}, "clearCurrentThread");
|
|
4868
|
-
}, [$t, dt, at, We]),
|
|
4876
|
+
}, [$t, dt, at, We]), oc = ce(
|
|
4869
4877
|
async (R, I) => {
|
|
4870
4878
|
const U = Ce.current;
|
|
4871
4879
|
if (!U) throw new Error("No active thread");
|
|
@@ -4879,10 +4887,10 @@ function Cv({
|
|
|
4879
4887
|
await cr(U, R, I ?? void 0, !0);
|
|
4880
4888
|
},
|
|
4881
4889
|
[Rt, at, Pt, cr]
|
|
4882
|
-
),
|
|
4890
|
+
), sc = ce(async () => {
|
|
4883
4891
|
if (!Ce.current) throw new Error("No active thread");
|
|
4884
4892
|
await cr(Ce.current, void 0, void 0, !0);
|
|
4885
|
-
}, [cr]),
|
|
4893
|
+
}, [cr]), ic = ce(
|
|
4886
4894
|
async () => {
|
|
4887
4895
|
if (!Ce.current) throw new Error("No active thread");
|
|
4888
4896
|
if (ge || !ne) return;
|
|
@@ -4935,7 +4943,7 @@ function Cv({
|
|
|
4935
4943
|
an,
|
|
4936
4944
|
Yt
|
|
4937
4945
|
]
|
|
4938
|
-
),
|
|
4946
|
+
), ac = ce(
|
|
4939
4947
|
(R) => {
|
|
4940
4948
|
if (R != null && R.threadId) {
|
|
4941
4949
|
if (R.checkpointId) {
|
|
@@ -5019,7 +5027,7 @@ function Cv({
|
|
|
5019
5027
|
Oe,
|
|
5020
5028
|
Ve
|
|
5021
5029
|
]
|
|
5022
|
-
),
|
|
5030
|
+
), lc = ce(
|
|
5023
5031
|
async (R, I, U) => {
|
|
5024
5032
|
if (!Ce.current)
|
|
5025
5033
|
throw new Error("No active thread to handle interrupt");
|
|
@@ -5118,7 +5126,7 @@ function Cv({
|
|
|
5118
5126
|
actions: {
|
|
5119
5127
|
createThread: Vr,
|
|
5120
5128
|
deleteThread: ts,
|
|
5121
|
-
renameThread:
|
|
5129
|
+
renameThread: nc,
|
|
5122
5130
|
refreshThreads: () => Ae()
|
|
5123
5131
|
},
|
|
5124
5132
|
persistThreadsCache: ze,
|
|
@@ -5131,7 +5139,7 @@ function Cv({
|
|
|
5131
5139
|
z,
|
|
5132
5140
|
Vr,
|
|
5133
5141
|
ts,
|
|
5134
|
-
|
|
5142
|
+
nc,
|
|
5135
5143
|
Ae,
|
|
5136
5144
|
ze,
|
|
5137
5145
|
L,
|
|
@@ -5157,34 +5165,34 @@ function Cv({
|
|
|
5157
5165
|
isHistoryLoading: ge,
|
|
5158
5166
|
error: B,
|
|
5159
5167
|
hasMore: ne,
|
|
5160
|
-
loadOlder:
|
|
5161
|
-
seedFromSnapshot:
|
|
5168
|
+
loadOlder: ic,
|
|
5169
|
+
seedFromSnapshot: ac,
|
|
5162
5170
|
clearState: $t,
|
|
5163
|
-
navigateToCheckpoint:
|
|
5164
|
-
returnToLatest:
|
|
5171
|
+
navigateToCheckpoint: oc,
|
|
5172
|
+
returnToLatest: sc,
|
|
5165
5173
|
loadThread: cr,
|
|
5166
|
-
clearThread:
|
|
5167
|
-
respondToInterrupt:
|
|
5174
|
+
clearThread: rc,
|
|
5175
|
+
respondToInterrupt: lc
|
|
5168
5176
|
};
|
|
5169
5177
|
}, [
|
|
5170
|
-
|
|
5178
|
+
rc,
|
|
5171
5179
|
$t,
|
|
5172
5180
|
k,
|
|
5173
5181
|
W,
|
|
5174
5182
|
ne,
|
|
5175
5183
|
ge,
|
|
5176
5184
|
M,
|
|
5177
|
-
|
|
5185
|
+
ic,
|
|
5178
5186
|
cr,
|
|
5179
5187
|
H.assemblingId,
|
|
5180
5188
|
H.lastBranch,
|
|
5181
5189
|
H.lastCheckpointId,
|
|
5182
5190
|
H.lastCheckpointNs,
|
|
5183
5191
|
H.messages,
|
|
5184
|
-
rc,
|
|
5185
|
-
ac,
|
|
5186
5192
|
oc,
|
|
5187
|
-
|
|
5193
|
+
lc,
|
|
5194
|
+
sc,
|
|
5195
|
+
ac,
|
|
5188
5196
|
B,
|
|
5189
5197
|
st
|
|
5190
5198
|
]), ug = ct(
|
|
@@ -5201,13 +5209,13 @@ function Cv({
|
|
|
5201
5209
|
);
|
|
5202
5210
|
return /* @__PURE__ */ u.jsx(Sv.Provider, { value: !0, children: /* @__PURE__ */ u.jsx(Fd.Provider, { value: ug, children: /* @__PURE__ */ u.jsx(Dd.Provider, { value: lg, children: /* @__PURE__ */ u.jsx(Ld.Provider, { value: cg, children: e }) }) }) });
|
|
5203
5211
|
}
|
|
5204
|
-
function
|
|
5212
|
+
function dl() {
|
|
5205
5213
|
const e = ti(Dd);
|
|
5206
5214
|
if (!e)
|
|
5207
5215
|
throw new Error("useThreads must be used within ChatSessionProvider");
|
|
5208
5216
|
return e;
|
|
5209
5217
|
}
|
|
5210
|
-
function
|
|
5218
|
+
function fl() {
|
|
5211
5219
|
const e = ti(Ld);
|
|
5212
5220
|
if (!e)
|
|
5213
5221
|
throw new Error("useThreadState must be used within ChatSessionProvider");
|
|
@@ -5425,7 +5433,7 @@ function Kc(e, t) {
|
|
|
5425
5433
|
return e(t);
|
|
5426
5434
|
e != null && (e.current = t);
|
|
5427
5435
|
}
|
|
5428
|
-
function
|
|
5436
|
+
function hl(...e) {
|
|
5429
5437
|
return (t) => {
|
|
5430
5438
|
let n = !1;
|
|
5431
5439
|
const r = e.map((o) => {
|
|
@@ -5442,7 +5450,7 @@ function fl(...e) {
|
|
|
5442
5450
|
};
|
|
5443
5451
|
}
|
|
5444
5452
|
function nt(...e) {
|
|
5445
|
-
return v.useCallback(
|
|
5453
|
+
return v.useCallback(hl(...e), e);
|
|
5446
5454
|
}
|
|
5447
5455
|
function Iv(e, t) {
|
|
5448
5456
|
const n = v.createContext(t), r = (s) => {
|
|
@@ -5586,7 +5594,7 @@ var Pv = [
|
|
|
5586
5594
|
function zd(e, t) {
|
|
5587
5595
|
e && oi.flushSync(() => e.dispatchEvent(t));
|
|
5588
5596
|
}
|
|
5589
|
-
function
|
|
5597
|
+
function pl(e) {
|
|
5590
5598
|
const t = e + "CollectionProvider", [n, r] = ar(t), [o, s] = n(
|
|
5591
5599
|
t,
|
|
5592
5600
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -5649,7 +5657,7 @@ function Mv(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5649
5657
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
5650
5658
|
}, [n, t]);
|
|
5651
5659
|
}
|
|
5652
|
-
var Dv = "DismissableLayer",
|
|
5660
|
+
var Dv = "DismissableLayer", Pa = "dismissableLayer.update", Lv = "dismissableLayer.pointerDownOutside", Fv = "dismissableLayer.focusOutside", qc, Bd = v.createContext({
|
|
5653
5661
|
layers: /* @__PURE__ */ new Set(),
|
|
5654
5662
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
5655
5663
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -5681,7 +5689,7 @@ var Dv = "DismissableLayer", ja = "dismissableLayer.update", Lv = "dismissableLa
|
|
|
5681
5689
|
d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Gc());
|
|
5682
5690
|
}, [d, c]), v.useEffect(() => {
|
|
5683
5691
|
const k = () => p({});
|
|
5684
|
-
return document.addEventListener(
|
|
5692
|
+
return document.addEventListener(Pa, k), () => document.removeEventListener(Pa, k);
|
|
5685
5693
|
}, []), /* @__PURE__ */ u.jsx(
|
|
5686
5694
|
De.div,
|
|
5687
5695
|
{
|
|
@@ -5758,7 +5766,7 @@ function Hv(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
5758
5766
|
};
|
|
5759
5767
|
}
|
|
5760
5768
|
function Gc() {
|
|
5761
|
-
const e = new CustomEvent(
|
|
5769
|
+
const e = new CustomEvent(Pa);
|
|
5762
5770
|
document.dispatchEvent(e);
|
|
5763
5771
|
}
|
|
5764
5772
|
function Hd(e, t, n, { discrete: r }) {
|
|
@@ -5766,7 +5774,7 @@ function Hd(e, t, n, { discrete: r }) {
|
|
|
5766
5774
|
t && o.addEventListener(e, t, { once: !0 }), r ? zd(o, s) : o.dispatchEvent(s);
|
|
5767
5775
|
}
|
|
5768
5776
|
var ea = 0;
|
|
5769
|
-
function
|
|
5777
|
+
function ml() {
|
|
5770
5778
|
v.useEffect(() => {
|
|
5771
5779
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
5772
5780
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Yc()), document.body.insertAdjacentElement("beforeend", e[1] ?? Yc()), ea++, () => {
|
|
@@ -5927,7 +5935,7 @@ const Zv = ["top", "right", "bottom", "left"], hr = Math.min, vn = Math.max, Ds
|
|
|
5927
5935
|
start: "end",
|
|
5928
5936
|
end: "start"
|
|
5929
5937
|
};
|
|
5930
|
-
function
|
|
5938
|
+
function Oa(e, t, n) {
|
|
5931
5939
|
return vn(e, hr(t, n));
|
|
5932
5940
|
}
|
|
5933
5941
|
function sr(e, t) {
|
|
@@ -5939,30 +5947,30 @@ function ir(e) {
|
|
|
5939
5947
|
function co(e) {
|
|
5940
5948
|
return e.split("-")[1];
|
|
5941
5949
|
}
|
|
5942
|
-
function
|
|
5950
|
+
function gl(e) {
|
|
5943
5951
|
return e === "x" ? "y" : "x";
|
|
5944
5952
|
}
|
|
5945
|
-
function
|
|
5953
|
+
function xl(e) {
|
|
5946
5954
|
return e === "y" ? "height" : "width";
|
|
5947
5955
|
}
|
|
5948
5956
|
const tw = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
5949
5957
|
function Kn(e) {
|
|
5950
5958
|
return tw.has(ir(e)) ? "y" : "x";
|
|
5951
5959
|
}
|
|
5952
|
-
function
|
|
5953
|
-
return
|
|
5960
|
+
function yl(e) {
|
|
5961
|
+
return gl(Kn(e));
|
|
5954
5962
|
}
|
|
5955
5963
|
function nw(e, t, n) {
|
|
5956
5964
|
n === void 0 && (n = !1);
|
|
5957
|
-
const r = co(e), o =
|
|
5965
|
+
const r = co(e), o = yl(e), s = xl(o);
|
|
5958
5966
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
5959
5967
|
return t.reference[s] > t.floating[s] && (i = Ls(i)), [i, Ls(i)];
|
|
5960
5968
|
}
|
|
5961
5969
|
function rw(e) {
|
|
5962
5970
|
const t = Ls(e);
|
|
5963
|
-
return [
|
|
5971
|
+
return [Ma(e), t, Ma(t)];
|
|
5964
5972
|
}
|
|
5965
|
-
function
|
|
5973
|
+
function Ma(e) {
|
|
5966
5974
|
return e.replace(/start|end/g, (t) => ew[t]);
|
|
5967
5975
|
}
|
|
5968
5976
|
const eu = ["left", "right"], tu = ["right", "left"], ow = ["top", "bottom"], sw = ["bottom", "top"];
|
|
@@ -5981,7 +5989,7 @@ function iw(e, t, n) {
|
|
|
5981
5989
|
function aw(e, t, n, r) {
|
|
5982
5990
|
const o = co(e);
|
|
5983
5991
|
let s = iw(ir(e), n === "start", r);
|
|
5984
|
-
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(
|
|
5992
|
+
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Ma)))), s;
|
|
5985
5993
|
}
|
|
5986
5994
|
function Ls(e) {
|
|
5987
5995
|
return e.replace(/left|right|bottom|top/g, (t) => Qv[t]);
|
|
@@ -6026,7 +6034,7 @@ function nu(e, t, n) {
|
|
|
6026
6034
|
reference: r,
|
|
6027
6035
|
floating: o
|
|
6028
6036
|
} = e;
|
|
6029
|
-
const s = Kn(t), i =
|
|
6037
|
+
const s = Kn(t), i = yl(t), a = xl(i), l = ir(t), c = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, h = r[a] / 2 - o[a] / 2;
|
|
6030
6038
|
let p;
|
|
6031
6039
|
switch (l) {
|
|
6032
6040
|
case "top":
|
|
@@ -6196,10 +6204,10 @@ const uw = (e) => ({
|
|
|
6196
6204
|
const f = Wd(d), h = {
|
|
6197
6205
|
x: n,
|
|
6198
6206
|
y: r
|
|
6199
|
-
}, p =
|
|
6207
|
+
}, p = yl(o), m = xl(p), g = await i.getDimensions(c), x = p === "y", y = x ? "top" : "left", w = x ? "bottom" : "right", S = x ? "clientHeight" : "clientWidth", T = s.reference[m] + s.reference[p] - h[p] - s.floating[m], C = h[p] - s.reference[p], b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
6200
6208
|
let k = b ? b[S] : 0;
|
|
6201
6209
|
(!k || !await (i.isElement == null ? void 0 : i.isElement(b))) && (k = a.floating[S] || s.floating[m]);
|
|
6202
|
-
const A = T / 2 - C / 2, N = k / 2 - g[m] / 2 - 1, _ = hr(f[y], N), M = hr(f[w], N), $ = _, z = k - g[m] - M, P = k / 2 - g[m] / 2 + A, B =
|
|
6210
|
+
const A = T / 2 - C / 2, N = k / 2 - g[m] / 2 - 1, _ = hr(f[y], N), M = hr(f[w], N), $ = _, z = k - g[m] - M, P = k / 2 - g[m] / 2 + A, B = Oa($, P, z), j = !l.arrow && co(o) != null && P !== B && s.reference[m] / 2 - (P < $ ? _ : M) - g[m] / 2 < 0, W = j ? P < $ ? P - $ : P - z : 0;
|
|
6203
6211
|
return {
|
|
6204
6212
|
[p]: h[p] + W,
|
|
6205
6213
|
data: {
|
|
@@ -6424,15 +6432,15 @@ const pw = function(e) {
|
|
|
6424
6432
|
} = sr(e, t), c = {
|
|
6425
6433
|
x: n,
|
|
6426
6434
|
y: r
|
|
6427
|
-
}, d = await Ao(t, l), f = Kn(ir(o)), h =
|
|
6435
|
+
}, d = await Ao(t, l), f = Kn(ir(o)), h = gl(f);
|
|
6428
6436
|
let p = c[h], m = c[f];
|
|
6429
6437
|
if (s) {
|
|
6430
6438
|
const x = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", w = p + d[x], S = p - d[y];
|
|
6431
|
-
p =
|
|
6439
|
+
p = Oa(w, p, S);
|
|
6432
6440
|
}
|
|
6433
6441
|
if (i) {
|
|
6434
6442
|
const x = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", w = m + d[x], S = m - d[y];
|
|
6435
|
-
m =
|
|
6443
|
+
m = Oa(w, m, S);
|
|
6436
6444
|
}
|
|
6437
6445
|
const g = a.fn({
|
|
6438
6446
|
...t,
|
|
@@ -6469,7 +6477,7 @@ const pw = function(e) {
|
|
|
6469
6477
|
} = sr(e, t), d = {
|
|
6470
6478
|
x: n,
|
|
6471
6479
|
y: r
|
|
6472
|
-
}, f = Kn(o), h =
|
|
6480
|
+
}, f = Kn(o), h = gl(f);
|
|
6473
6481
|
let p = d[h], m = d[f];
|
|
6474
6482
|
const g = sr(a, t), x = typeof g == "number" ? {
|
|
6475
6483
|
mainAxis: g,
|
|
@@ -6586,14 +6594,14 @@ function pi(e) {
|
|
|
6586
6594
|
});
|
|
6587
6595
|
}
|
|
6588
6596
|
const Sw = ["transform", "translate", "scale", "rotate", "perspective"], Cw = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Tw = ["paint", "layout", "strict", "content"];
|
|
6589
|
-
function
|
|
6590
|
-
const t =
|
|
6597
|
+
function vl(e) {
|
|
6598
|
+
const t = wl(), n = Ln(e) ? Fn(e) : e;
|
|
6591
6599
|
return Sw.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Cw.some((r) => (n.willChange || "").includes(r)) || Tw.some((r) => (n.contain || "").includes(r));
|
|
6592
6600
|
}
|
|
6593
6601
|
function kw(e) {
|
|
6594
6602
|
let t = pr(e);
|
|
6595
6603
|
for (; Yn(t) && !so(t); ) {
|
|
6596
|
-
if (
|
|
6604
|
+
if (vl(t))
|
|
6597
6605
|
return t;
|
|
6598
6606
|
if (pi(t))
|
|
6599
6607
|
return null;
|
|
@@ -6601,7 +6609,7 @@ function kw(e) {
|
|
|
6601
6609
|
}
|
|
6602
6610
|
return null;
|
|
6603
6611
|
}
|
|
6604
|
-
function
|
|
6612
|
+
function wl() {
|
|
6605
6613
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
6606
6614
|
}
|
|
6607
6615
|
const Rw = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
@@ -6641,12 +6649,12 @@ function _o(e, t, n) {
|
|
|
6641
6649
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6642
6650
|
const o = qd(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = bn(o);
|
|
6643
6651
|
if (s) {
|
|
6644
|
-
const a =
|
|
6652
|
+
const a = Da(i);
|
|
6645
6653
|
return t.concat(i, i.visualViewport || [], Ko(o) ? o : [], a && n ? _o(a) : []);
|
|
6646
6654
|
}
|
|
6647
6655
|
return t.concat(o, _o(o, [], n));
|
|
6648
6656
|
}
|
|
6649
|
-
function
|
|
6657
|
+
function Da(e) {
|
|
6650
6658
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
6651
6659
|
}
|
|
6652
6660
|
function Gd(e) {
|
|
@@ -6659,11 +6667,11 @@ function Gd(e) {
|
|
|
6659
6667
|
$: a
|
|
6660
6668
|
};
|
|
6661
6669
|
}
|
|
6662
|
-
function
|
|
6670
|
+
function bl(e) {
|
|
6663
6671
|
return Ln(e) ? e : e.contextElement;
|
|
6664
6672
|
}
|
|
6665
6673
|
function Zr(e) {
|
|
6666
|
-
const t =
|
|
6674
|
+
const t = bl(e);
|
|
6667
6675
|
if (!Yn(t))
|
|
6668
6676
|
return Gn(1);
|
|
6669
6677
|
const n = t.getBoundingClientRect(), {
|
|
@@ -6680,7 +6688,7 @@ function Zr(e) {
|
|
|
6680
6688
|
const Ew = /* @__PURE__ */ Gn(0);
|
|
6681
6689
|
function Yd(e) {
|
|
6682
6690
|
const t = bn(e);
|
|
6683
|
-
return !
|
|
6691
|
+
return !wl() || !t.visualViewport ? Ew : {
|
|
6684
6692
|
x: t.visualViewport.offsetLeft,
|
|
6685
6693
|
y: t.visualViewport.offsetTop
|
|
6686
6694
|
};
|
|
@@ -6690,17 +6698,17 @@ function Iw(e, t, n) {
|
|
|
6690
6698
|
}
|
|
6691
6699
|
function Pr(e, t, n, r) {
|
|
6692
6700
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
6693
|
-
const o = e.getBoundingClientRect(), s =
|
|
6701
|
+
const o = e.getBoundingClientRect(), s = bl(e);
|
|
6694
6702
|
let i = Gn(1);
|
|
6695
6703
|
t && (r ? Ln(r) && (i = Zr(r)) : i = Zr(e));
|
|
6696
6704
|
const a = Iw(s, n, r) ? Yd(s) : Gn(0);
|
|
6697
6705
|
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;
|
|
6698
6706
|
if (s) {
|
|
6699
6707
|
const h = bn(s), p = r && Ln(r) ? bn(r) : r;
|
|
6700
|
-
let m = h, g =
|
|
6708
|
+
let m = h, g = Da(m);
|
|
6701
6709
|
for (; g && r && p !== m; ) {
|
|
6702
6710
|
const x = Zr(g), y = g.getBoundingClientRect(), w = Fn(g), S = y.left + (g.clientLeft + parseFloat(w.paddingLeft)) * x.x, T = y.top + (g.clientTop + parseFloat(w.paddingTop)) * x.y;
|
|
6703
|
-
l *= x.x, c *= x.y, d *= x.x, f *= x.y, l += S, c += T, m = bn(g), g =
|
|
6711
|
+
l *= x.x, c *= x.y, d *= x.x, f *= x.y, l += S, c += T, m = bn(g), g = Da(m);
|
|
6704
6712
|
}
|
|
6705
6713
|
}
|
|
6706
6714
|
return Fs({
|
|
@@ -6768,7 +6776,7 @@ function jw(e, t) {
|
|
|
6768
6776
|
let s = r.clientWidth, i = r.clientHeight, a = 0, l = 0;
|
|
6769
6777
|
if (o) {
|
|
6770
6778
|
s = o.width, i = o.height;
|
|
6771
|
-
const d =
|
|
6779
|
+
const d = wl();
|
|
6772
6780
|
(!d || d && t === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
6773
6781
|
}
|
|
6774
6782
|
const c = gi(r);
|
|
@@ -6824,7 +6832,7 @@ function Mw(e, t) {
|
|
|
6824
6832
|
const s = Fn(e).position === "fixed";
|
|
6825
6833
|
let i = s ? pr(e) : e;
|
|
6826
6834
|
for (; Ln(i) && !so(i); ) {
|
|
6827
|
-
const a = Fn(i), l =
|
|
6835
|
+
const a = Fn(i), l = vl(i);
|
|
6828
6836
|
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && Pw.has(o.position) || Ko(i) && !l && Jd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = pr(i);
|
|
6829
6837
|
}
|
|
6830
6838
|
return t.set(e, r), r;
|
|
@@ -6908,7 +6916,7 @@ function Zd(e, t) {
|
|
|
6908
6916
|
let r = lu(e, t);
|
|
6909
6917
|
for (; r && ww(r) && ra(r); )
|
|
6910
6918
|
r = lu(r, t);
|
|
6911
|
-
return r && so(r) && ra(r) && !
|
|
6919
|
+
return r && so(r) && ra(r) && !vl(r) ? n : r || kw(e) || n;
|
|
6912
6920
|
}
|
|
6913
6921
|
const $w = async function(e) {
|
|
6914
6922
|
const t = this.getOffsetParent || Zd, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -6994,7 +7002,7 @@ function Uw(e, t, n, r) {
|
|
|
6994
7002
|
elementResize: i = typeof ResizeObserver == "function",
|
|
6995
7003
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
6996
7004
|
animationFrame: l = !1
|
|
6997
|
-
} = r, c =
|
|
7005
|
+
} = r, c = bl(e), d = o || s ? [...c ? _o(c) : [], ..._o(t)] : [];
|
|
6998
7006
|
d.forEach((y) => {
|
|
6999
7007
|
o && y.addEventListener("scroll", n, {
|
|
7000
7008
|
passive: !0
|
|
@@ -7264,11 +7272,11 @@ function nf(e) {
|
|
|
7264
7272
|
n(void 0);
|
|
7265
7273
|
}, [e]), t;
|
|
7266
7274
|
}
|
|
7267
|
-
var
|
|
7275
|
+
var Sl = "Popper", [rf, xi] = ar(Sl), [ub, of] = rf(Sl), sf = (e) => {
|
|
7268
7276
|
const { __scopePopper: t, children: n } = e, [r, o] = v.useState(null);
|
|
7269
7277
|
return /* @__PURE__ */ u.jsx(ub, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
7270
7278
|
};
|
|
7271
|
-
sf.displayName =
|
|
7279
|
+
sf.displayName = Sl;
|
|
7272
7280
|
var af = "PopperAnchor", lf = v.forwardRef(
|
|
7273
7281
|
(e, t) => {
|
|
7274
7282
|
const { __scopePopper: n, virtualRef: r, ...o } = e, s = of(af, n), i = v.useRef(null), a = nt(t, i), l = v.useRef(null);
|
|
@@ -7279,7 +7287,7 @@ var af = "PopperAnchor", lf = v.forwardRef(
|
|
|
7279
7287
|
}
|
|
7280
7288
|
);
|
|
7281
7289
|
lf.displayName = af;
|
|
7282
|
-
var
|
|
7290
|
+
var Cl = "PopperContent", [db, fb] = rf(Cl), cf = v.forwardRef(
|
|
7283
7291
|
(e, t) => {
|
|
7284
7292
|
var ee, D, G, se, ae, H;
|
|
7285
7293
|
const {
|
|
@@ -7297,7 +7305,7 @@ var Sl = "PopperContent", [db, fb] = rf(Sl), cf = v.forwardRef(
|
|
|
7297
7305
|
updatePositionStrategy: p = "optimized",
|
|
7298
7306
|
onPlaced: m,
|
|
7299
7307
|
...g
|
|
7300
|
-
} = e, x = of(
|
|
7308
|
+
} = e, x = of(Cl, n), [y, w] = v.useState(null), S = nt(t, (Ue) => w(Ue)), [T, C] = v.useState(null), b = nf(T), k = (b == null ? void 0 : b.width) ?? 0, A = (b == null ? void 0 : b.height) ?? 0, N = r + (s !== "center" ? "-" + s : ""), _ = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, M = Array.isArray(c) ? c : [c], $ = M.length > 0, z = {
|
|
7301
7309
|
padding: _,
|
|
7302
7310
|
boundary: M.filter(pb),
|
|
7303
7311
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -7393,7 +7401,7 @@ var Sl = "PopperContent", [db, fb] = rf(Sl), cf = v.forwardRef(
|
|
|
7393
7401
|
);
|
|
7394
7402
|
}
|
|
7395
7403
|
);
|
|
7396
|
-
cf.displayName =
|
|
7404
|
+
cf.displayName = Cl;
|
|
7397
7405
|
var uf = "PopperArrow", hb = {
|
|
7398
7406
|
top: "bottom",
|
|
7399
7407
|
right: "left",
|
|
@@ -7535,11 +7543,11 @@ function vb(e) {
|
|
|
7535
7543
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
7536
7544
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
7537
7545
|
}
|
|
7538
|
-
var sa = "rovingFocusGroup.onEntryFocus", wb = { bubbles: !1, cancelable: !0 }, qo = "RovingFocusGroup", [
|
|
7546
|
+
var sa = "rovingFocusGroup.onEntryFocus", wb = { bubbles: !1, cancelable: !0 }, qo = "RovingFocusGroup", [La, xf, bb] = pl(qo), [Sb, yf] = ar(
|
|
7539
7547
|
qo,
|
|
7540
7548
|
[bb]
|
|
7541
7549
|
), [Cb, Tb] = Sb(qo), vf = v.forwardRef(
|
|
7542
|
-
(e, t) => /* @__PURE__ */ u.jsx(
|
|
7550
|
+
(e, t) => /* @__PURE__ */ u.jsx(La.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(La.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(kb, { ...e, ref: t }) }) })
|
|
7543
7551
|
);
|
|
7544
7552
|
vf.displayName = qo;
|
|
7545
7553
|
var kb = v.forwardRef((e, t) => {
|
|
@@ -7628,7 +7636,7 @@ var kb = v.forwardRef((e, t) => {
|
|
|
7628
7636
|
if (r)
|
|
7629
7637
|
return p(), () => m();
|
|
7630
7638
|
}, [r, p, m]), /* @__PURE__ */ u.jsx(
|
|
7631
|
-
|
|
7639
|
+
La.ItemSlot,
|
|
7632
7640
|
{
|
|
7633
7641
|
scope: n,
|
|
7634
7642
|
id: c,
|
|
@@ -7741,7 +7749,7 @@ var Ab = vf, _b = bf, jb = function(e) {
|
|
|
7741
7749
|
qr.set(f, h), s.set(f, p), h || (ls.has(f) || f.removeAttribute(r), ls.delete(f)), p || f.removeAttribute(n);
|
|
7742
7750
|
}), ia--, ia || (qr = /* @__PURE__ */ new WeakMap(), qr = /* @__PURE__ */ new WeakMap(), ls = /* @__PURE__ */ new WeakMap(), cs = {});
|
|
7743
7751
|
};
|
|
7744
|
-
},
|
|
7752
|
+
}, Tl = function(e, t, n) {
|
|
7745
7753
|
n === void 0 && (n = "data-aria-hidden");
|
|
7746
7754
|
var r = Array.from(Array.isArray(e) ? e : [e]), o = jb(e);
|
|
7747
7755
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Ob(r, o, n, "aria-hidden")) : function() {
|
|
@@ -8038,19 +8046,19 @@ var Yb = function() {
|
|
|
8038
8046
|
return Qb(o);
|
|
8039
8047
|
}, [o]);
|
|
8040
8048
|
return v.createElement(e0, { styles: t0(s, !t, o, n ? "" : "!important") });
|
|
8041
|
-
},
|
|
8049
|
+
}, Fa = !1;
|
|
8042
8050
|
if (typeof window < "u")
|
|
8043
8051
|
try {
|
|
8044
8052
|
var us = Object.defineProperty({}, "passive", {
|
|
8045
8053
|
get: function() {
|
|
8046
|
-
return
|
|
8054
|
+
return Fa = !0, !0;
|
|
8047
8055
|
}
|
|
8048
8056
|
});
|
|
8049
8057
|
window.addEventListener("test", us, us), window.removeEventListener("test", us, us);
|
|
8050
8058
|
} catch {
|
|
8051
|
-
|
|
8059
|
+
Fa = !1;
|
|
8052
8060
|
}
|
|
8053
|
-
var Gr =
|
|
8061
|
+
var Gr = Fa ? { passive: !1 } : !1, o0 = function(e) {
|
|
8054
8062
|
return e.tagName === "TEXTAREA";
|
|
8055
8063
|
}, If = function(e, t) {
|
|
8056
8064
|
if (!(e instanceof Element))
|
|
@@ -8219,13 +8227,13 @@ var wi = v.forwardRef(function(e, t) {
|
|
|
8219
8227
|
return v.createElement(vi, Vn({}, e, { ref: t, sideCar: g0 }));
|
|
8220
8228
|
});
|
|
8221
8229
|
wi.classNames = vi.classNames;
|
|
8222
|
-
var
|
|
8223
|
-
ltr: [
|
|
8224
|
-
rtl: [
|
|
8230
|
+
var $a = ["Enter", " "], x0 = ["ArrowDown", "PageUp", "Home"], _f = ["ArrowUp", "PageDown", "End"], y0 = [...x0, ..._f], v0 = {
|
|
8231
|
+
ltr: [...$a, "ArrowRight"],
|
|
8232
|
+
rtl: [...$a, "ArrowLeft"]
|
|
8225
8233
|
}, w0 = {
|
|
8226
8234
|
ltr: ["ArrowLeft"],
|
|
8227
8235
|
rtl: ["ArrowRight"]
|
|
8228
|
-
}, Go = "Menu", [jo, b0, S0] =
|
|
8236
|
+
}, Go = "Menu", [jo, b0, S0] = pl(Go), [Fr, jf] = ar(Go, [
|
|
8229
8237
|
S0,
|
|
8230
8238
|
xi,
|
|
8231
8239
|
yf
|
|
@@ -8261,21 +8269,21 @@ var Fa = ["Enter", " "], x0 = ["ArrowDown", "PageUp", "Home"], _f = ["ArrowUp",
|
|
|
8261
8269
|
) });
|
|
8262
8270
|
};
|
|
8263
8271
|
Of.displayName = Go;
|
|
8264
|
-
var k0 = "MenuAnchor",
|
|
8272
|
+
var k0 = "MenuAnchor", kl = v.forwardRef(
|
|
8265
8273
|
(e, t) => {
|
|
8266
8274
|
const { __scopeMenu: n, ...r } = e, o = bi(n);
|
|
8267
8275
|
return /* @__PURE__ */ u.jsx(pf, { ...o, ...r, ref: t });
|
|
8268
8276
|
}
|
|
8269
8277
|
);
|
|
8270
|
-
|
|
8271
|
-
var
|
|
8278
|
+
kl.displayName = k0;
|
|
8279
|
+
var Rl = "MenuPortal", [R0, Mf] = Fr(Rl, {
|
|
8272
8280
|
forceMount: void 0
|
|
8273
8281
|
}), Df = (e) => {
|
|
8274
|
-
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = $r(
|
|
8282
|
+
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = $r(Rl, t);
|
|
8275
8283
|
return /* @__PURE__ */ u.jsx(R0, { scope: t, forceMount: n, children: /* @__PURE__ */ u.jsx(_n, { present: n || s.open, children: /* @__PURE__ */ u.jsx(yi, { asChild: !0, container: o, children: r }) }) });
|
|
8276
8284
|
};
|
|
8277
|
-
Df.displayName =
|
|
8278
|
-
var Nn = "MenuContent", [E0,
|
|
8285
|
+
Df.displayName = Rl;
|
|
8286
|
+
var Nn = "MenuContent", [E0, El] = Fr(Nn), Lf = v.forwardRef(
|
|
8279
8287
|
(e, t) => {
|
|
8280
8288
|
const n = Mf(Nn, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(Nn, e.__scopeMenu), i = Yo(Nn, e.__scopeMenu);
|
|
8281
8289
|
return /* @__PURE__ */ u.jsx(jo.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(_n, { present: r || s.open, children: /* @__PURE__ */ u.jsx(jo.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ u.jsx(I0, { ...o, ref: t }) : /* @__PURE__ */ u.jsx(N0, { ...o, ref: t }) }) }) });
|
|
@@ -8285,9 +8293,9 @@ var Nn = "MenuContent", [E0, Rl] = Fr(Nn), Lf = v.forwardRef(
|
|
|
8285
8293
|
const n = $r(Nn, e.__scopeMenu), r = v.useRef(null), o = nt(t, r);
|
|
8286
8294
|
return v.useEffect(() => {
|
|
8287
8295
|
const s = r.current;
|
|
8288
|
-
if (s) return
|
|
8296
|
+
if (s) return Tl(s);
|
|
8289
8297
|
}, []), /* @__PURE__ */ u.jsx(
|
|
8290
|
-
|
|
8298
|
+
Il,
|
|
8291
8299
|
{
|
|
8292
8300
|
...e,
|
|
8293
8301
|
ref: o,
|
|
@@ -8306,7 +8314,7 @@ var Nn = "MenuContent", [E0, Rl] = Fr(Nn), Lf = v.forwardRef(
|
|
|
8306
8314
|
), N0 = v.forwardRef((e, t) => {
|
|
8307
8315
|
const n = $r(Nn, e.__scopeMenu);
|
|
8308
8316
|
return /* @__PURE__ */ u.jsx(
|
|
8309
|
-
|
|
8317
|
+
Il,
|
|
8310
8318
|
{
|
|
8311
8319
|
...e,
|
|
8312
8320
|
ref: t,
|
|
@@ -8316,7 +8324,7 @@ var Nn = "MenuContent", [E0, Rl] = Fr(Nn), Lf = v.forwardRef(
|
|
|
8316
8324
|
onDismiss: () => n.onOpenChange(!1)
|
|
8317
8325
|
}
|
|
8318
8326
|
);
|
|
8319
|
-
}), A0 = no("MenuContent.ScrollLock"),
|
|
8327
|
+
}), A0 = no("MenuContent.ScrollLock"), Il = v.forwardRef(
|
|
8320
8328
|
(e, t) => {
|
|
8321
8329
|
const {
|
|
8322
8330
|
__scopeMenu: n,
|
|
@@ -8340,7 +8348,7 @@ var Nn = "MenuContent", [E0, Rl] = Fr(Nn), Lf = v.forwardRef(
|
|
|
8340
8348
|
_.current = se, window.clearTimeout(N.current), se !== "" && (N.current = window.setTimeout(() => G(""), 1e3));
|
|
8341
8349
|
})(ne), ke && setTimeout(() => ke.focus());
|
|
8342
8350
|
};
|
|
8343
|
-
v.useEffect(() => () => window.clearTimeout(N.current), []),
|
|
8351
|
+
v.useEffect(() => () => window.clearTimeout(N.current), []), ml();
|
|
8344
8352
|
const F = v.useCallback((L) => {
|
|
8345
8353
|
var Q, ge;
|
|
8346
8354
|
return z.current === ((Q = $.current) == null ? void 0 : Q.side) && W0(L, (ge = $.current) == null ? void 0 : ge.area);
|
|
@@ -8454,13 +8462,13 @@ var Nn = "MenuContent", [E0, Rl] = Fr(Nn), Lf = v.forwardRef(
|
|
|
8454
8462
|
}
|
|
8455
8463
|
);
|
|
8456
8464
|
Lf.displayName = Nn;
|
|
8457
|
-
var _0 = "MenuGroup",
|
|
8465
|
+
var _0 = "MenuGroup", Nl = v.forwardRef(
|
|
8458
8466
|
(e, t) => {
|
|
8459
8467
|
const { __scopeMenu: n, ...r } = e;
|
|
8460
8468
|
return /* @__PURE__ */ u.jsx(De.div, { role: "group", ...r, ref: t });
|
|
8461
8469
|
}
|
|
8462
8470
|
);
|
|
8463
|
-
|
|
8471
|
+
Nl.displayName = _0;
|
|
8464
8472
|
var j0 = "MenuLabel", Ff = v.forwardRef(
|
|
8465
8473
|
(e, t) => {
|
|
8466
8474
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -8470,7 +8478,7 @@ var j0 = "MenuLabel", Ff = v.forwardRef(
|
|
|
8470
8478
|
Ff.displayName = j0;
|
|
8471
8479
|
var zs = "MenuItem", gu = "menu.itemSelect", Si = v.forwardRef(
|
|
8472
8480
|
(e, t) => {
|
|
8473
|
-
const { disabled: n = !1, onSelect: r, ...o } = e, s = v.useRef(null), i = Yo(zs, e.__scopeMenu), a =
|
|
8481
|
+
const { disabled: n = !1, onSelect: r, ...o } = e, s = v.useRef(null), i = Yo(zs, e.__scopeMenu), a = El(zs, e.__scopeMenu), l = nt(t, s), c = v.useRef(!1), d = () => {
|
|
8474
8482
|
const f = s.current;
|
|
8475
8483
|
if (!n && f) {
|
|
8476
8484
|
const h = new CustomEvent(gu, { bubbles: !0, cancelable: !0 });
|
|
@@ -8494,7 +8502,7 @@ var zs = "MenuItem", gu = "menu.itemSelect", Si = v.forwardRef(
|
|
|
8494
8502
|
}),
|
|
8495
8503
|
onKeyDown: xe(e.onKeyDown, (f) => {
|
|
8496
8504
|
const h = a.searchRef.current !== "";
|
|
8497
|
-
n || h && f.key === " " ||
|
|
8505
|
+
n || h && f.key === " " || $a.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
8498
8506
|
})
|
|
8499
8507
|
}
|
|
8500
8508
|
);
|
|
@@ -8503,7 +8511,7 @@ var zs = "MenuItem", gu = "menu.itemSelect", Si = v.forwardRef(
|
|
|
8503
8511
|
Si.displayName = zs;
|
|
8504
8512
|
var $f = v.forwardRef(
|
|
8505
8513
|
(e, t) => {
|
|
8506
|
-
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i =
|
|
8514
|
+
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = El(zs, n), a = Pf(n), l = v.useRef(null), c = nt(t, l), [d, f] = v.useState(!1), [h, p] = v.useState("");
|
|
8507
8515
|
return v.useEffect(() => {
|
|
8508
8516
|
const m = l.current;
|
|
8509
8517
|
m && p((m.textContent ?? "").trim());
|
|
@@ -8549,7 +8557,7 @@ var $f = v.forwardRef(
|
|
|
8549
8557
|
"aria-checked": Bs(n) ? "mixed" : n,
|
|
8550
8558
|
...o,
|
|
8551
8559
|
ref: t,
|
|
8552
|
-
"data-state":
|
|
8560
|
+
"data-state": _l(n),
|
|
8553
8561
|
onSelect: xe(
|
|
8554
8562
|
o.onSelect,
|
|
8555
8563
|
() => r == null ? void 0 : r(Bs(n) ? !0 : !n),
|
|
@@ -8567,7 +8575,7 @@ var Bf = "MenuRadioGroup", [O0, M0] = Fr(
|
|
|
8567
8575
|
), Hf = v.forwardRef(
|
|
8568
8576
|
(e, t) => {
|
|
8569
8577
|
const { value: n, onValueChange: r, ...o } = e, s = Qt(r);
|
|
8570
|
-
return /* @__PURE__ */ u.jsx(O0, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ u.jsx(
|
|
8578
|
+
return /* @__PURE__ */ u.jsx(O0, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ u.jsx(Nl, { ...o, ref: t }) });
|
|
8571
8579
|
}
|
|
8572
8580
|
);
|
|
8573
8581
|
Hf.displayName = Bf;
|
|
@@ -8581,7 +8589,7 @@ var Uf = "MenuRadioItem", Wf = v.forwardRef(
|
|
|
8581
8589
|
"aria-checked": s,
|
|
8582
8590
|
...r,
|
|
8583
8591
|
ref: t,
|
|
8584
|
-
"data-state":
|
|
8592
|
+
"data-state": _l(s),
|
|
8585
8593
|
onSelect: xe(
|
|
8586
8594
|
r.onSelect,
|
|
8587
8595
|
() => {
|
|
@@ -8595,12 +8603,12 @@ var Uf = "MenuRadioItem", Wf = v.forwardRef(
|
|
|
8595
8603
|
}
|
|
8596
8604
|
);
|
|
8597
8605
|
Wf.displayName = Uf;
|
|
8598
|
-
var
|
|
8599
|
-
|
|
8606
|
+
var Al = "MenuItemIndicator", [Vf, D0] = Fr(
|
|
8607
|
+
Al,
|
|
8600
8608
|
{ checked: !1 }
|
|
8601
8609
|
), Kf = v.forwardRef(
|
|
8602
8610
|
(e, t) => {
|
|
8603
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s = D0(
|
|
8611
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = D0(Al, n);
|
|
8604
8612
|
return /* @__PURE__ */ u.jsx(
|
|
8605
8613
|
_n,
|
|
8606
8614
|
{
|
|
@@ -8610,14 +8618,14 @@ var Nl = "MenuItemIndicator", [Vf, D0] = Fr(
|
|
|
8610
8618
|
{
|
|
8611
8619
|
...o,
|
|
8612
8620
|
ref: t,
|
|
8613
|
-
"data-state":
|
|
8621
|
+
"data-state": _l(s.checked)
|
|
8614
8622
|
}
|
|
8615
8623
|
)
|
|
8616
8624
|
}
|
|
8617
8625
|
);
|
|
8618
8626
|
}
|
|
8619
8627
|
);
|
|
8620
|
-
Kf.displayName =
|
|
8628
|
+
Kf.displayName = Al;
|
|
8621
8629
|
var L0 = "MenuSeparator", qf = v.forwardRef(
|
|
8622
8630
|
(e, t) => {
|
|
8623
8631
|
const { __scopeMenu: n, ...r } = e;
|
|
@@ -8642,7 +8650,7 @@ var F0 = "MenuArrow", Gf = v.forwardRef(
|
|
|
8642
8650
|
Gf.displayName = F0;
|
|
8643
8651
|
var $0 = "MenuSub", [UR, Yf] = Fr($0), wo = "MenuSubTrigger", Xf = v.forwardRef(
|
|
8644
8652
|
(e, t) => {
|
|
8645
|
-
const n = $r(wo, e.__scopeMenu), r = Yo(wo, e.__scopeMenu), o = Yf(wo, e.__scopeMenu), s =
|
|
8653
|
+
const n = $r(wo, e.__scopeMenu), r = Yo(wo, e.__scopeMenu), o = Yf(wo, e.__scopeMenu), s = El(wo, e.__scopeMenu), i = v.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: l } = s, c = { __scopeMenu: e.__scopeMenu }, d = v.useCallback(() => {
|
|
8646
8654
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
8647
8655
|
}, []);
|
|
8648
8656
|
return v.useEffect(() => d, [d]), v.useEffect(() => {
|
|
@@ -8650,7 +8658,7 @@ var $0 = "MenuSub", [UR, Yf] = Fr($0), wo = "MenuSubTrigger", Xf = v.forwardRef(
|
|
|
8650
8658
|
return () => {
|
|
8651
8659
|
window.clearTimeout(f), l(null);
|
|
8652
8660
|
};
|
|
8653
|
-
}, [a, l]), /* @__PURE__ */ u.jsx(
|
|
8661
|
+
}, [a, l]), /* @__PURE__ */ u.jsx(kl, { asChild: !0, ...c, children: /* @__PURE__ */ u.jsx(
|
|
8654
8662
|
$f,
|
|
8655
8663
|
{
|
|
8656
8664
|
id: o.triggerId,
|
|
@@ -8659,7 +8667,7 @@ var $0 = "MenuSub", [UR, Yf] = Fr($0), wo = "MenuSubTrigger", Xf = v.forwardRef(
|
|
|
8659
8667
|
"aria-controls": o.contentId,
|
|
8660
8668
|
"data-state": Qf(n.open),
|
|
8661
8669
|
...e,
|
|
8662
|
-
ref:
|
|
8670
|
+
ref: hl(t, o.onTriggerChange),
|
|
8663
8671
|
onClick: (f) => {
|
|
8664
8672
|
var h;
|
|
8665
8673
|
(h = e.onClick) == null || h.call(e, f), !(e.disabled || f.defaultPrevented) && (f.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
@@ -8715,7 +8723,7 @@ var Jf = "MenuSubContent", Zf = v.forwardRef(
|
|
|
8715
8723
|
(e, t) => {
|
|
8716
8724
|
const n = Mf(Nn, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = $r(Nn, e.__scopeMenu), i = Yo(Nn, e.__scopeMenu), a = Yf(Jf, e.__scopeMenu), l = v.useRef(null), c = nt(t, l);
|
|
8717
8725
|
return /* @__PURE__ */ u.jsx(jo.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(_n, { present: r || s.open, children: /* @__PURE__ */ u.jsx(jo.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ u.jsx(
|
|
8718
|
-
|
|
8726
|
+
Il,
|
|
8719
8727
|
{
|
|
8720
8728
|
id: a.contentId,
|
|
8721
8729
|
"aria-labelledby": a.triggerId,
|
|
@@ -8753,7 +8761,7 @@ function Qf(e) {
|
|
|
8753
8761
|
function Bs(e) {
|
|
8754
8762
|
return e === "indeterminate";
|
|
8755
8763
|
}
|
|
8756
|
-
function
|
|
8764
|
+
function _l(e) {
|
|
8757
8765
|
return Bs(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
8758
8766
|
}
|
|
8759
8767
|
function z0(e) {
|
|
@@ -8790,7 +8798,7 @@ function W0(e, t) {
|
|
|
8790
8798
|
function Po(e) {
|
|
8791
8799
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
8792
8800
|
}
|
|
8793
|
-
var V0 = Of, K0 =
|
|
8801
|
+
var V0 = Of, K0 = kl, q0 = Df, G0 = Lf, Y0 = Nl, X0 = Ff, J0 = Si, Z0 = zf, Q0 = Hf, eS = Wf, tS = Kf, nS = qf, rS = Gf, oS = Xf, sS = Zf, Ci = "DropdownMenu", [iS, WR] = ar(
|
|
8794
8802
|
Ci,
|
|
8795
8803
|
[jf]
|
|
8796
8804
|
), cn = jf(), [aS, eh] = iS(Ci), th = (e) => {
|
|
@@ -8839,7 +8847,7 @@ var nh = "DropdownMenuTrigger", rh = v.forwardRef(
|
|
|
8839
8847
|
"data-disabled": r ? "" : void 0,
|
|
8840
8848
|
disabled: r,
|
|
8841
8849
|
...o,
|
|
8842
|
-
ref:
|
|
8850
|
+
ref: hl(t, s.triggerRef),
|
|
8843
8851
|
onPointerDown: xe(e.onPointerDown, (a) => {
|
|
8844
8852
|
!r && a.button === 0 && a.ctrlKey === !1 && (s.onOpenToggle(), s.open || a.preventDefault());
|
|
8845
8853
|
}),
|
|
@@ -9009,7 +9017,7 @@ const Th = v.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
|
|
|
9009
9017
|
}
|
|
9010
9018
|
) }));
|
|
9011
9019
|
Th.displayName = mh.displayName;
|
|
9012
|
-
const
|
|
9020
|
+
const za = v.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u.jsx(
|
|
9013
9021
|
xh,
|
|
9014
9022
|
{
|
|
9015
9023
|
ref: r,
|
|
@@ -9021,7 +9029,7 @@ const $a = v.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
9021
9029
|
...n
|
|
9022
9030
|
}
|
|
9023
9031
|
));
|
|
9024
|
-
|
|
9032
|
+
za.displayName = xh.displayName;
|
|
9025
9033
|
const AS = v.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ u.jsxs(
|
|
9026
9034
|
yh,
|
|
9027
9035
|
{
|
|
@@ -9033,7 +9041,7 @@ const AS = v.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
9033
9041
|
checked: n,
|
|
9034
9042
|
...r,
|
|
9035
9043
|
children: [
|
|
9036
|
-
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(wh, { children: /* @__PURE__ */ u.jsx(
|
|
9044
|
+
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(wh, { children: /* @__PURE__ */ u.jsx(tl, { className: "h-4 w-4" }) }) }),
|
|
9037
9045
|
t
|
|
9038
9046
|
]
|
|
9039
9047
|
}
|
|
@@ -9132,7 +9140,7 @@ function yu(e, t) {
|
|
|
9132
9140
|
function FS(e, t) {
|
|
9133
9141
|
return (n) => e(t, n);
|
|
9134
9142
|
}
|
|
9135
|
-
function
|
|
9143
|
+
function jl(e) {
|
|
9136
9144
|
return e !== void 0;
|
|
9137
9145
|
}
|
|
9138
9146
|
function $S(...e) {
|
|
@@ -9157,7 +9165,7 @@ function xt(e, t) {
|
|
|
9157
9165
|
function He(e, t) {
|
|
9158
9166
|
e(Ti, t);
|
|
9159
9167
|
}
|
|
9160
|
-
function
|
|
9168
|
+
function Pl(e) {
|
|
9161
9169
|
e(fo);
|
|
9162
9170
|
}
|
|
9163
9171
|
function zt(e) {
|
|
@@ -9207,7 +9215,7 @@ function X(e, ...t) {
|
|
|
9207
9215
|
return (r, o) => {
|
|
9208
9216
|
switch (r) {
|
|
9209
9217
|
case fo:
|
|
9210
|
-
|
|
9218
|
+
Pl(e);
|
|
9211
9219
|
return;
|
|
9212
9220
|
case yr:
|
|
9213
9221
|
return xt(e, n(o));
|
|
@@ -9339,7 +9347,7 @@ function Wt(...e) {
|
|
|
9339
9347
|
}), function(s, i) {
|
|
9340
9348
|
switch (s) {
|
|
9341
9349
|
case fo: {
|
|
9342
|
-
|
|
9350
|
+
Pl(t);
|
|
9343
9351
|
return;
|
|
9344
9352
|
}
|
|
9345
9353
|
case yr:
|
|
@@ -9350,7 +9358,7 @@ function Wt(...e) {
|
|
|
9350
9358
|
function _e(e, t = Eh) {
|
|
9351
9359
|
return X(e, Nt(t));
|
|
9352
9360
|
}
|
|
9353
|
-
function
|
|
9361
|
+
function Ba(...e) {
|
|
9354
9362
|
return function(t, n) {
|
|
9355
9363
|
switch (t) {
|
|
9356
9364
|
case fo:
|
|
@@ -9391,9 +9399,9 @@ const VS = {
|
|
|
9391
9399
|
{ singleton: !0 }
|
|
9392
9400
|
);
|
|
9393
9401
|
function zr(e, t, n) {
|
|
9394
|
-
return
|
|
9402
|
+
return Ol(e, t, n).callbackRef;
|
|
9395
9403
|
}
|
|
9396
|
-
function
|
|
9404
|
+
function Ol(e, t, n) {
|
|
9397
9405
|
const r = V.useRef(null);
|
|
9398
9406
|
let o = (i) => {
|
|
9399
9407
|
};
|
|
@@ -9429,7 +9437,7 @@ function qS(e, t, n, r, o, s, i, a, l) {
|
|
|
9429
9437
|
},
|
|
9430
9438
|
[e, t, o, s, i, r, a]
|
|
9431
9439
|
);
|
|
9432
|
-
return
|
|
9440
|
+
return Ol(c, n, l);
|
|
9433
9441
|
}
|
|
9434
9442
|
function GS(e, t, n, r) {
|
|
9435
9443
|
const o = e.length;
|
|
@@ -9473,7 +9481,7 @@ function Ih(e, t, n) {
|
|
|
9473
9481
|
},
|
|
9474
9482
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
9475
9483
|
[e, t]
|
|
9476
|
-
), { callbackRef: s, ref: i } =
|
|
9484
|
+
), { callbackRef: s, ref: i } = Ol(o, !0, n), a = V.useCallback(() => {
|
|
9477
9485
|
o(i.current);
|
|
9478
9486
|
}, [o, i]);
|
|
9479
9487
|
return V.useEffect(() => {
|
|
@@ -9574,9 +9582,9 @@ function Ri(e, t, n) {
|
|
|
9574
9582
|
if (Ct(e))
|
|
9575
9583
|
return [];
|
|
9576
9584
|
const r = $n(e, t)[0];
|
|
9577
|
-
return YS(
|
|
9585
|
+
return YS(Ua(e, r, n));
|
|
9578
9586
|
}
|
|
9579
|
-
function
|
|
9587
|
+
function Ha(e, t) {
|
|
9580
9588
|
if (Ct(e)) return Oo;
|
|
9581
9589
|
const { k: n, l: r, r: o } = e;
|
|
9582
9590
|
if (t === n) {
|
|
@@ -9588,17 +9596,17 @@ function Ba(e, t) {
|
|
|
9588
9596
|
const [s, i] = _h(r);
|
|
9589
9597
|
return Is(Gt(e, { k: s, l: Ah(r), v: i }));
|
|
9590
9598
|
}
|
|
9591
|
-
} else return t < n ? Is(Gt(e, { l:
|
|
9599
|
+
} else return t < n ? Is(Gt(e, { l: Ha(r, t) })) : Is(Gt(e, { r: Ha(o, t) }));
|
|
9592
9600
|
}
|
|
9593
9601
|
function Er(e) {
|
|
9594
9602
|
return Ct(e) ? [] : [...Er(e.l), { k: e.k, v: e.v }, ...Er(e.r)];
|
|
9595
9603
|
}
|
|
9596
|
-
function
|
|
9604
|
+
function Ua(e, t, n) {
|
|
9597
9605
|
if (Ct(e))
|
|
9598
9606
|
return [];
|
|
9599
9607
|
const { k: r, l: o, r: s, v: i } = e;
|
|
9600
9608
|
let a = [];
|
|
9601
|
-
return r > t && (a = a.concat(
|
|
9609
|
+
return r > t && (a = a.concat(Ua(o, t, n))), r >= t && r <= n && a.push({ k: r, v: i }), r <= n && (a = a.concat(Ua(s, t, n))), a;
|
|
9602
9610
|
}
|
|
9603
9611
|
function Is(e) {
|
|
9604
9612
|
const { l: t, lvl: n, r } = e;
|
|
@@ -9619,7 +9627,7 @@ function Is(e) {
|
|
|
9619
9627
|
throw new Error("Unexpected empty nodes");
|
|
9620
9628
|
} else {
|
|
9621
9629
|
if (ua(e))
|
|
9622
|
-
return
|
|
9630
|
+
return Wa(Gt(e, { lvl: n - 1 }));
|
|
9623
9631
|
if (!Ct(r) && !Ct(r.l)) {
|
|
9624
9632
|
const o = r.l, s = ua(o) ? r.lvl - 1 : r.lvl;
|
|
9625
9633
|
return Gt(o, {
|
|
@@ -9628,7 +9636,7 @@ function Is(e) {
|
|
|
9628
9636
|
r: o.l
|
|
9629
9637
|
}),
|
|
9630
9638
|
lvl: o.lvl + 1,
|
|
9631
|
-
r:
|
|
9639
|
+
r: Wa(Gt(r, { l: o.r, lvl: s }))
|
|
9632
9640
|
});
|
|
9633
9641
|
} else
|
|
9634
9642
|
throw new Error("Unexpected empty nodes");
|
|
@@ -9656,13 +9664,13 @@ function jh(e, t, n, r = Oo, o = Oo) {
|
|
|
9656
9664
|
return { k: e, l: r, lvl: n, r: o, v: t };
|
|
9657
9665
|
}
|
|
9658
9666
|
function bu(e) {
|
|
9659
|
-
return
|
|
9667
|
+
return Wa(Ph(e));
|
|
9660
9668
|
}
|
|
9661
9669
|
function Ph(e) {
|
|
9662
9670
|
const { l: t } = e;
|
|
9663
9671
|
return !Ct(t) && t.lvl === e.lvl ? Gt(t, { r: Gt(e, { l: t.r }) }) : e;
|
|
9664
9672
|
}
|
|
9665
|
-
function
|
|
9673
|
+
function Wa(e) {
|
|
9666
9674
|
const { lvl: t, r: n } = e;
|
|
9667
9675
|
return !Ct(n) && !Ct(n.r) && n.lvl === t && n.r.lvl === t ? Gt(n, { l: Gt(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
9668
9676
|
}
|
|
@@ -9675,7 +9683,7 @@ function Oh(e, t) {
|
|
|
9675
9683
|
function Do(e, t) {
|
|
9676
9684
|
return !!(e && e[0] === t[0] && e[1] === t[1]);
|
|
9677
9685
|
}
|
|
9678
|
-
const
|
|
9686
|
+
const Ml = ut(
|
|
9679
9687
|
() => ({ recalcInProgress: te(!1) }),
|
|
9680
9688
|
[],
|
|
9681
9689
|
{ singleton: !0 }
|
|
@@ -9711,7 +9719,7 @@ function mr(e, t) {
|
|
|
9711
9719
|
function Ei(e) {
|
|
9712
9720
|
return !Ct(e.groupOffsetTree);
|
|
9713
9721
|
}
|
|
9714
|
-
function
|
|
9722
|
+
function Dl({ index: e }, t) {
|
|
9715
9723
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
9716
9724
|
}
|
|
9717
9725
|
function JS() {
|
|
@@ -9738,7 +9746,7 @@ function ZS(e, t) {
|
|
|
9738
9746
|
continue;
|
|
9739
9747
|
let l = !1, c = !1;
|
|
9740
9748
|
for (const { end: d, start: f, value: h } of a)
|
|
9741
|
-
l ? (o >= f || s === h) && (e =
|
|
9749
|
+
l ? (o >= f || s === h) && (e = Ha(e, f)) : (c = h !== s, l = !0), d > o && o >= f && h !== s && (e = wn(e, o + 1, h));
|
|
9742
9750
|
c && (e = wn(e, i, s));
|
|
9743
9751
|
}
|
|
9744
9752
|
return [e, n];
|
|
@@ -9752,7 +9760,7 @@ function eC({ offset: e }, t) {
|
|
|
9752
9760
|
function Lo(e, t, n) {
|
|
9753
9761
|
if (t.length === 0)
|
|
9754
9762
|
return 0;
|
|
9755
|
-
const { index: r, offset: o, size: s } = Mh(t, e,
|
|
9763
|
+
const { index: r, offset: o, size: s } = Mh(t, e, Dl), i = e - r, a = s * i + (i - 1) * n + o;
|
|
9756
9764
|
return a > 0 ? a + n : a;
|
|
9757
9765
|
}
|
|
9758
9766
|
function Dh(e, t) {
|
|
@@ -9773,7 +9781,7 @@ function Lh(e, t, n) {
|
|
|
9773
9781
|
}
|
|
9774
9782
|
}
|
|
9775
9783
|
function tC(e, t, n, r = 0) {
|
|
9776
|
-
return r > 0 && (t = Math.max(t, Mh(e, r,
|
|
9784
|
+
return r > 0 && (t = Math.max(t, Mh(e, r, Dl).offset)), Nh(XS(e, t, n, eC), oC);
|
|
9777
9785
|
}
|
|
9778
9786
|
function nC(e, [t, n, r, o]) {
|
|
9779
9787
|
t.length > 0 && r("received item sizes", t, yn.DEBUG);
|
|
@@ -9786,7 +9794,7 @@ function nC(e, [t, n, r, o]) {
|
|
|
9786
9794
|
[i, a] = ZS(i, t);
|
|
9787
9795
|
if (i === s)
|
|
9788
9796
|
return e;
|
|
9789
|
-
const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } =
|
|
9797
|
+
const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: f } = Va(e.offsetTree, a, i, o);
|
|
9790
9798
|
return {
|
|
9791
9799
|
groupIndices: n,
|
|
9792
9800
|
groupOffsetTree: n.reduce((h, p) => wn(h, p, Lo(p, f, o)), eo()),
|
|
@@ -9809,10 +9817,10 @@ function Su(e, t) {
|
|
|
9809
9817
|
n += t[r + 1] - t[r] - 1, r++;
|
|
9810
9818
|
return r - (n === e ? 0 : 1);
|
|
9811
9819
|
}
|
|
9812
|
-
function
|
|
9820
|
+
function Va(e, t, n, r) {
|
|
9813
9821
|
let o = e, s = 0, i = 0, a = 0, l = 0;
|
|
9814
9822
|
if (t !== 0) {
|
|
9815
|
-
l = Hs(o, t - 1,
|
|
9823
|
+
l = Hs(o, t - 1, Dl), a = o[l].offset;
|
|
9816
9824
|
const c = $n(n, t - 1);
|
|
9817
9825
|
s = c[0], i = c[1], o.length && o[l].size === $n(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
|
|
9818
9826
|
} else
|
|
@@ -10040,14 +10048,14 @@ const iC = {
|
|
|
10040
10048
|
return {
|
|
10041
10049
|
...b,
|
|
10042
10050
|
sizeTree: A,
|
|
10043
|
-
...
|
|
10051
|
+
...Va(b.offsetTree, 0, A, k)
|
|
10044
10052
|
};
|
|
10045
10053
|
} else {
|
|
10046
10054
|
const A = Er(b.sizeTree).reduce((N, { k: _, v: M }) => wn(N, Math.max(0, _ + C), M), eo());
|
|
10047
10055
|
return {
|
|
10048
10056
|
...b,
|
|
10049
10057
|
sizeTree: A,
|
|
10050
|
-
...
|
|
10058
|
+
...Va(b.offsetTree, 0, A, k)
|
|
10051
10059
|
};
|
|
10052
10060
|
}
|
|
10053
10061
|
})
|
|
@@ -10075,7 +10083,7 @@ const iC = {
|
|
|
10075
10083
|
unshiftWith: s
|
|
10076
10084
|
};
|
|
10077
10085
|
},
|
|
10078
|
-
At(vr,
|
|
10086
|
+
At(vr, Ml),
|
|
10079
10087
|
{ singleton: !0 }
|
|
10080
10088
|
);
|
|
10081
10089
|
function aC(e) {
|
|
@@ -10207,12 +10215,12 @@ function cC(e) {
|
|
|
10207
10215
|
};
|
|
10208
10216
|
};
|
|
10209
10217
|
}
|
|
10210
|
-
function
|
|
10218
|
+
function Ll(e, t) {
|
|
10211
10219
|
e == 0 ? t() : requestAnimationFrame(() => {
|
|
10212
|
-
|
|
10220
|
+
Ll(e - 1, t);
|
|
10213
10221
|
});
|
|
10214
10222
|
}
|
|
10215
|
-
function
|
|
10223
|
+
function Fl(e, t) {
|
|
10216
10224
|
const n = t - 1;
|
|
10217
10225
|
return typeof e == "number" ? e : e.index === "LAST" ? n : e.index;
|
|
10218
10226
|
}
|
|
@@ -10239,13 +10247,13 @@ const Jo = ut(
|
|
|
10239
10247
|
X(
|
|
10240
10248
|
Wt(t, i),
|
|
10241
10249
|
Ke(a, n, e, c),
|
|
10242
|
-
Pe(([[, d], f, { sizeTree: h }, p, m]) => d && (!Ct(h) ||
|
|
10250
|
+
Pe(([[, d], f, { sizeTree: h }, p, m]) => d && (!Ct(h) || jl(p)) && !f && !m),
|
|
10243
10251
|
Ke(l)
|
|
10244
10252
|
),
|
|
10245
10253
|
([, d]) => {
|
|
10246
10254
|
Dn(o, () => {
|
|
10247
10255
|
He(c, !0);
|
|
10248
|
-
}),
|
|
10256
|
+
}), Ll(4, () => {
|
|
10249
10257
|
Dn(r, () => {
|
|
10250
10258
|
He(a, !0);
|
|
10251
10259
|
}), He(s, d);
|
|
@@ -10275,12 +10283,12 @@ const Fo = "up", Co = "down", uC = "none", dC = {
|
|
|
10275
10283
|
}, fC = 0, Zo = ut(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
10276
10284
|
const i = te(!1), a = te(!0), l = tt(), c = tt(), d = te(4), f = te(fC), h = on(
|
|
10277
10285
|
X(
|
|
10278
|
-
|
|
10286
|
+
Ba(X(_e(o), Or(1), Wn(!0)), X(_e(o), Or(1), Wn(!1), vu(100))),
|
|
10279
10287
|
Nt()
|
|
10280
10288
|
),
|
|
10281
10289
|
!1
|
|
10282
10290
|
), p = on(
|
|
10283
|
-
X(
|
|
10291
|
+
X(Ba(X(n, Wn(!0)), X(n, Wn(!1), vu(200))), Nt()),
|
|
10284
10292
|
!1
|
|
10285
10293
|
);
|
|
10286
10294
|
be(
|
|
@@ -10412,7 +10420,7 @@ function ku(e, t) {
|
|
|
10412
10420
|
var n;
|
|
10413
10421
|
return typeof e == "number" ? e : (n = e[t]) != null ? n : 0;
|
|
10414
10422
|
}
|
|
10415
|
-
const
|
|
10423
|
+
const $l = ut(
|
|
10416
10424
|
([{ deviation: e, fixedHeaderHeight: t, headerHeight: n, scrollTop: r, viewportHeight: o }]) => {
|
|
10417
10425
|
const s = tt(), i = te(0), a = te(0), l = te(0), c = on(
|
|
10418
10426
|
X(
|
|
@@ -10516,7 +10524,7 @@ function Bh(e, t, n, r, o, s) {
|
|
|
10516
10524
|
break;
|
|
10517
10525
|
i++;
|
|
10518
10526
|
}
|
|
10519
|
-
const a = e + i, l =
|
|
10527
|
+
const a = e + i, l = Fl(t, a), c = Array.from({ length: a }).map((d, f) => ({
|
|
10520
10528
|
data: s[f + l],
|
|
10521
10529
|
index: f + l,
|
|
10522
10530
|
offset: 0,
|
|
@@ -10603,7 +10611,7 @@ const Br = ut(
|
|
|
10603
10611
|
return L === 0 ? { ...da, totalCount: A } : Bh(L, _, N, z, P, B || []);
|
|
10604
10612
|
if (Ct(F))
|
|
10605
10613
|
return L > 0 ? null : Ns(
|
|
10606
|
-
hC(
|
|
10614
|
+
hC(Fl(_, A), j, B),
|
|
10607
10615
|
[],
|
|
10608
10616
|
A,
|
|
10609
10617
|
P,
|
|
@@ -10653,7 +10661,7 @@ const Br = ut(
|
|
|
10653
10661
|
be(
|
|
10654
10662
|
X(
|
|
10655
10663
|
e,
|
|
10656
|
-
Pe(
|
|
10664
|
+
Pe(jl),
|
|
10657
10665
|
pe((b) => b == null ? void 0 : b.length)
|
|
10658
10666
|
),
|
|
10659
10667
|
o
|
|
@@ -10717,12 +10725,12 @@ const Br = ut(
|
|
|
10717
10725
|
At(
|
|
10718
10726
|
Jn,
|
|
10719
10727
|
Fh,
|
|
10720
|
-
|
|
10728
|
+
$l,
|
|
10721
10729
|
Jo,
|
|
10722
10730
|
Xo,
|
|
10723
10731
|
Zo,
|
|
10724
10732
|
wr,
|
|
10725
|
-
|
|
10733
|
+
Ml
|
|
10726
10734
|
),
|
|
10727
10735
|
{ singleton: !0 }
|
|
10728
10736
|
), Hh = ut(
|
|
@@ -10872,7 +10880,7 @@ const gC = (e, t) => typeof e == "function" ? Eu(e(t)) : t && Eu(e), xC = ut(
|
|
|
10872
10880
|
});
|
|
10873
10881
|
const S = te(null), T = tt();
|
|
10874
10882
|
return be(
|
|
10875
|
-
|
|
10883
|
+
Ba(
|
|
10876
10884
|
X(
|
|
10877
10885
|
_e(r),
|
|
10878
10886
|
pe((C) => {
|
|
@@ -10983,7 +10991,7 @@ const gC = (e, t) => typeof e == "function" ? Eu(e(t)) : t && Eu(e), xC = ut(
|
|
|
10983
10991
|
},
|
|
10984
10992
|
At(Zo),
|
|
10985
10993
|
{ singleton: !0 }
|
|
10986
|
-
),
|
|
10994
|
+
), zl = ut(([{ scrollContainerState: e, scrollTo: t }]) => {
|
|
10987
10995
|
const n = tt(), r = tt(), o = tt(), s = te(!1), i = te(void 0);
|
|
10988
10996
|
return be(
|
|
10989
10997
|
X(
|
|
@@ -11033,7 +11041,7 @@ const gC = (e, t) => typeof e == "function" ? Eu(e(t)) : t && Eu(e), xC = ut(
|
|
|
11033
11041
|
const T = rC(m.sizeTree);
|
|
11034
11042
|
x && y !== null && w !== null && (g = y.scrollTop - w.offsetTop), g -= S, p({ ranges: T, scrollTop: g });
|
|
11035
11043
|
}
|
|
11036
|
-
), be(X(d, Pe(
|
|
11044
|
+
), be(X(d, Pe(jl), pe(bC)), o), be(
|
|
11037
11045
|
X(
|
|
11038
11046
|
s,
|
|
11039
11047
|
Ke(d),
|
|
@@ -11047,7 +11055,7 @@ const gC = (e, t) => typeof e == "function" ? Eu(e(t)) : t && Eu(e), xC = ut(
|
|
|
11047
11055
|
restoreStateFrom: d
|
|
11048
11056
|
};
|
|
11049
11057
|
},
|
|
11050
|
-
At(Jn, un, Jo, wr,
|
|
11058
|
+
At(Jn, un, Jo, wr, zl)
|
|
11051
11059
|
);
|
|
11052
11060
|
function bC(e) {
|
|
11053
11061
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -11145,7 +11153,7 @@ const CC = Kh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11145
11153
|
}
|
|
11146
11154
|
), { deviation: e };
|
|
11147
11155
|
},
|
|
11148
|
-
At(un, Zo, Br, Jn, vr,
|
|
11156
|
+
At(un, Zo, Br, Jn, vr, Ml)
|
|
11149
11157
|
), kC = ut(
|
|
11150
11158
|
([
|
|
11151
11159
|
e,
|
|
@@ -11173,14 +11181,14 @@ const CC = Kh(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
11173
11181
|
...d
|
|
11174
11182
|
}),
|
|
11175
11183
|
At(
|
|
11176
|
-
|
|
11184
|
+
$l,
|
|
11177
11185
|
yC,
|
|
11178
11186
|
wr,
|
|
11179
11187
|
Vh,
|
|
11180
11188
|
Hh,
|
|
11181
11189
|
vC,
|
|
11182
11190
|
pC,
|
|
11183
|
-
|
|
11191
|
+
zl,
|
|
11184
11192
|
Wh,
|
|
11185
11193
|
vr,
|
|
11186
11194
|
Uh
|
|
@@ -11305,7 +11313,7 @@ function Gh(e, t, n) {
|
|
|
11305
11313
|
for (const k of i)
|
|
11306
11314
|
k in S && xt(C[k], S[k]);
|
|
11307
11315
|
return () => {
|
|
11308
|
-
Object.values(C).map(
|
|
11316
|
+
Object.values(C).map(Pl);
|
|
11309
11317
|
};
|
|
11310
11318
|
}, [S, C, T]), fs(() => {
|
|
11311
11319
|
l(T, S);
|
|
@@ -11407,17 +11415,17 @@ function Zh(e, t, n, r = ho, o, s) {
|
|
|
11407
11415
|
}
|
|
11408
11416
|
return { scrollByCallback: f, scrollerRef: i, scrollToCallback: d };
|
|
11409
11417
|
}
|
|
11410
|
-
const ha = "-webkit-sticky", Iu = "sticky",
|
|
11418
|
+
const ha = "-webkit-sticky", Iu = "sticky", Bl = Kh(() => {
|
|
11411
11419
|
if (typeof document > "u")
|
|
11412
11420
|
return Iu;
|
|
11413
11421
|
const e = document.createElement("div");
|
|
11414
11422
|
return e.style.position = ha, e.style.position === ha ? ha : Iu;
|
|
11415
11423
|
});
|
|
11416
|
-
function
|
|
11424
|
+
function Hl(e) {
|
|
11417
11425
|
return e;
|
|
11418
11426
|
}
|
|
11419
11427
|
const IC = /* @__PURE__ */ ut(() => {
|
|
11420
|
-
const e = te((a) => `Item ${a}`), t = te((a) => `Group ${a}`), n = te({}), r = te(
|
|
11428
|
+
const e = te((a) => `Item ${a}`), t = te((a) => `Group ${a}`), n = te({}), r = te(Hl), o = te("div"), s = te(ho), i = (a, l = null) => on(
|
|
11421
11429
|
X(
|
|
11422
11430
|
n,
|
|
11423
11431
|
pe((c) => c[a]),
|
|
@@ -11445,7 +11453,7 @@ const IC = /* @__PURE__ */ ut(() => {
|
|
|
11445
11453
|
}), NC = /* @__PURE__ */ ut(
|
|
11446
11454
|
([e, t]) => ({ ...e, ...t }),
|
|
11447
11455
|
At(qh, IC)
|
|
11448
|
-
), AC = ({ height: e }) => /* @__PURE__ */ u.jsx("div", { style: { height: e } }), _C = { overflowAnchor: "none", position:
|
|
11456
|
+
), AC = ({ height: e }) => /* @__PURE__ */ u.jsx("div", { style: { height: e } }), _C = { overflowAnchor: "none", position: Bl(), zIndex: 1 }, Qh = { overflowAnchor: "none" }, jC = { ...Qh, display: "inline-block", height: "100%" }, Nu = /* @__PURE__ */ V.memo(function({ showTopList: e = !1 }) {
|
|
11449
11457
|
const t = Me("listState"), n = En("sizeRanges"), r = Me("useWindowScroll"), o = Me("customScrollParent"), s = En("windowScrollContainerState"), i = En("scrollContainerState"), a = o || r ? s : i, l = Me("itemContent"), c = Me("context"), d = Me("groupContent"), f = Me("trackItemSizes"), h = Me("itemSize"), p = Me("log"), m = En("gap"), g = Me("horizontalDirection"), { callbackRef: x } = qS(
|
|
11450
11458
|
n,
|
|
11451
11459
|
h,
|
|
@@ -11457,7 +11465,7 @@ const IC = /* @__PURE__ */ ut(() => {
|
|
|
11457
11465
|
g,
|
|
11458
11466
|
Me("skipAnimationFrameInResizeObserver")
|
|
11459
11467
|
), [y, w] = V.useState(0);
|
|
11460
|
-
|
|
11468
|
+
Ul("deviation", (P) => {
|
|
11461
11469
|
y !== P && w(P);
|
|
11462
11470
|
});
|
|
11463
11471
|
const S = Me("EmptyPlaceholder"), T = Me("ScrollSeekPlaceholder") || AC, C = Me("ListComponent"), b = Me("ItemComponent"), k = Me("GroupComponent"), A = Me("computeItemKey"), N = Me("isSeeking"), _ = Me("groupIndices").length > 0, M = Me("alignToBottom"), $ = Me("initialItemFinalLocationReached"), z = e ? {} : {
|
|
@@ -11540,7 +11548,7 @@ const IC = /* @__PURE__ */ ut(() => {
|
|
|
11540
11548
|
width: "100%",
|
|
11541
11549
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
11542
11550
|
}), MC = {
|
|
11543
|
-
position:
|
|
11551
|
+
position: Bl(),
|
|
11544
11552
|
top: 0,
|
|
11545
11553
|
width: "100%",
|
|
11546
11554
|
zIndex: 1
|
|
@@ -11661,7 +11669,7 @@ const $C = ({ children: e }) => {
|
|
|
11661
11669
|
] });
|
|
11662
11670
|
}), {
|
|
11663
11671
|
Component: UC,
|
|
11664
|
-
useEmitter:
|
|
11672
|
+
useEmitter: Ul,
|
|
11665
11673
|
useEmitterValue: Me,
|
|
11666
11674
|
usePublisher: En
|
|
11667
11675
|
} = /* @__PURE__ */ Gh(
|
|
@@ -11723,14 +11731,14 @@ const $C = ({ children: e }) => {
|
|
|
11723
11731
|
}
|
|
11724
11732
|
},
|
|
11725
11733
|
HC
|
|
11726
|
-
), WC = /* @__PURE__ */ ep({ useEmitter:
|
|
11734
|
+
), WC = /* @__PURE__ */ ep({ useEmitter: Ul, useEmitterValue: Me, usePublisher: En }), VC = /* @__PURE__ */ tp({ useEmitter: Ul, useEmitterValue: Me, usePublisher: En }), KC = UC, qC = /* @__PURE__ */ ut(() => {
|
|
11727
11735
|
const e = te((c) => /* @__PURE__ */ u.jsxs("td", { children: [
|
|
11728
11736
|
"Item $",
|
|
11729
11737
|
c
|
|
11730
11738
|
] })), t = te(null), n = te((c) => /* @__PURE__ */ u.jsxs("td", { colSpan: 1e3, children: [
|
|
11731
11739
|
"Group ",
|
|
11732
11740
|
c
|
|
11733
|
-
] })), r = te(null), o = te(null), s = te({}), i = te(
|
|
11741
|
+
] })), r = te(null), o = te(null), s = te({}), i = te(Hl), a = te(ho), l = (c, d = null) => on(
|
|
11734
11742
|
X(
|
|
11735
11743
|
s,
|
|
11736
11744
|
pe((f) => f[c]),
|
|
@@ -11760,7 +11768,7 @@ const $C = ({ children: e }) => {
|
|
|
11760
11768
|
};
|
|
11761
11769
|
});
|
|
11762
11770
|
At(qh, qC);
|
|
11763
|
-
|
|
11771
|
+
Bl();
|
|
11764
11772
|
const Au = {
|
|
11765
11773
|
bottom: 0,
|
|
11766
11774
|
itemHeight: 0,
|
|
@@ -11819,7 +11827,7 @@ const JC = /* @__PURE__ */ ut(
|
|
|
11819
11827
|
Pe(([D, G, se, ae, , H]) => D && !G && se.height !== 0 && ae.height !== 0 && !H)
|
|
11820
11828
|
),
|
|
11821
11829
|
([, , , , D]) => {
|
|
11822
|
-
He(Q, !0),
|
|
11830
|
+
He(Q, !0), Ll(1, () => {
|
|
11823
11831
|
He(M, D);
|
|
11824
11832
|
}), Dn(X(c), () => {
|
|
11825
11833
|
He(t, [0, 0]), He(ne, !0);
|
|
@@ -11897,7 +11905,7 @@ const JC = /* @__PURE__ */ ut(
|
|
|
11897
11905
|
if (ye === 0 && (D === 0 || Ze === 0))
|
|
11898
11906
|
return Au;
|
|
11899
11907
|
if (ot === 0) {
|
|
11900
|
-
const st =
|
|
11908
|
+
const st = Fl(Le, D), sn = st + Math.max(ye - 1, 0);
|
|
11901
11909
|
return YC(Pu(st, sn, re));
|
|
11902
11910
|
}
|
|
11903
11911
|
const Xe = np(Ze, ot, rt);
|
|
@@ -11977,7 +11985,7 @@ const JC = /* @__PURE__ */ ut(
|
|
|
11977
11985
|
const Ue = $h(D), { align: re, behavior: ye, offset: Oe } = Ue;
|
|
11978
11986
|
let Le = Ue.index;
|
|
11979
11987
|
Le === "LAST" && (Le = ae - 1), Le = To(0, Le, pa(ae - 1, Le));
|
|
11980
|
-
let rt =
|
|
11988
|
+
let rt = Ka(G, H, se, Le);
|
|
11981
11989
|
return re === "end" ? rt = ju(rt - G.height + se.height) : re === "center" && (rt = ju(rt - G.height / 2 + se.height / 2)), Oe && (rt += Oe), { behavior: ye, top: rt };
|
|
11982
11990
|
})
|
|
11983
11991
|
),
|
|
@@ -12038,7 +12046,7 @@ const JC = /* @__PURE__ */ ut(
|
|
|
12038
12046
|
...C
|
|
12039
12047
|
};
|
|
12040
12048
|
},
|
|
12041
|
-
At(
|
|
12049
|
+
At($l, un, Zo, Vh, wr, zl, vr)
|
|
12042
12050
|
);
|
|
12043
12051
|
function np(e, t, n) {
|
|
12044
12052
|
return To(1, Vs((e + n) / (Vs(t) + n)));
|
|
@@ -12047,15 +12055,15 @@ function Ou(e, t, n, r) {
|
|
|
12047
12055
|
const { height: o } = n;
|
|
12048
12056
|
if (o === void 0 || r.length === 0)
|
|
12049
12057
|
return { bottom: 0, top: 0 };
|
|
12050
|
-
const s =
|
|
12051
|
-
return { bottom:
|
|
12058
|
+
const s = Ka(e, t, n, r[0].index);
|
|
12059
|
+
return { bottom: Ka(e, t, n, r[r.length - 1].index) + o, top: s };
|
|
12052
12060
|
}
|
|
12053
|
-
function
|
|
12061
|
+
function Ka(e, t, n, r) {
|
|
12054
12062
|
const o = np(e.width, n.width, t.column), s = Vs(r / o), i = s * n.height + To(0, s - 1) * t.row;
|
|
12055
12063
|
return i > 0 ? i + t.row : i;
|
|
12056
12064
|
}
|
|
12057
12065
|
const ZC = /* @__PURE__ */ ut(() => {
|
|
12058
|
-
const e = te((f) => `Item ${f}`), t = te({}), n = te(null), r = te("virtuoso-grid-item"), o = te("virtuoso-grid-list"), s = te(
|
|
12066
|
+
const e = te((f) => `Item ${f}`), t = te({}), n = te(null), r = te("virtuoso-grid-item"), o = te("virtuoso-grid-list"), s = te(Hl), i = te("div"), a = te(ho), l = (f, h = null) => on(
|
|
12059
12067
|
X(
|
|
12060
12068
|
t,
|
|
12061
12069
|
pe((p) => p[f]),
|
|
@@ -12390,7 +12398,7 @@ function hT({ ...e }) {
|
|
|
12390
12398
|
update: n
|
|
12391
12399
|
};
|
|
12392
12400
|
}
|
|
12393
|
-
function
|
|
12401
|
+
function Wl() {
|
|
12394
12402
|
const [e, t] = v.useState(_s);
|
|
12395
12403
|
return v.useEffect(() => (As.push(t), () => {
|
|
12396
12404
|
const n = As.indexOf(t);
|
|
@@ -12432,7 +12440,7 @@ async function mT(e, t = 50, n = 0) {
|
|
|
12432
12440
|
const r = { limit: t, offset: n };
|
|
12433
12441
|
return e && (r.thread_id = e), await Mn("/files", { params: r });
|
|
12434
12442
|
}
|
|
12435
|
-
function
|
|
12443
|
+
function Vl(e) {
|
|
12436
12444
|
const t = e == null ? void 0 : e.trim();
|
|
12437
12445
|
if (!t || !(t.startsWith("{") || t.startsWith("["))) return null;
|
|
12438
12446
|
try {
|
|
@@ -12510,7 +12518,7 @@ function Ks(e) {
|
|
|
12510
12518
|
if (typeof e == "string") {
|
|
12511
12519
|
const t = e.trim();
|
|
12512
12520
|
if (t.startsWith("{") || t.startsWith("[")) {
|
|
12513
|
-
const n =
|
|
12521
|
+
const n = Vl(t);
|
|
12514
12522
|
if (n !== null)
|
|
12515
12523
|
return Ks(n);
|
|
12516
12524
|
}
|
|
@@ -12560,7 +12568,7 @@ var dp = "DialogTrigger", fp = v.forwardRef(
|
|
|
12560
12568
|
"aria-haspopup": "dialog",
|
|
12561
12569
|
"aria-expanded": o.open,
|
|
12562
12570
|
"aria-controls": o.contentId,
|
|
12563
|
-
"data-state":
|
|
12571
|
+
"data-state": Gl(o.open),
|
|
12564
12572
|
...r,
|
|
12565
12573
|
ref: s,
|
|
12566
12574
|
onClick: xe(e.onClick, o.onOpenToggle)
|
|
@@ -12569,13 +12577,13 @@ var dp = "DialogTrigger", fp = v.forwardRef(
|
|
|
12569
12577
|
}
|
|
12570
12578
|
);
|
|
12571
12579
|
fp.displayName = dp;
|
|
12572
|
-
var
|
|
12580
|
+
var Kl = "DialogPortal", [vT, hp] = cp(Kl, {
|
|
12573
12581
|
forceMount: void 0
|
|
12574
12582
|
}), pp = (e) => {
|
|
12575
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Bn(
|
|
12583
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = Bn(Kl, t);
|
|
12576
12584
|
return /* @__PURE__ */ u.jsx(vT, { scope: t, forceMount: n, children: v.Children.map(r, (i) => /* @__PURE__ */ u.jsx(_n, { present: n || s.open, children: /* @__PURE__ */ u.jsx(yi, { asChild: !0, container: o, children: i }) })) });
|
|
12577
12585
|
};
|
|
12578
|
-
pp.displayName =
|
|
12586
|
+
pp.displayName = Kl;
|
|
12579
12587
|
var qs = "DialogOverlay", mp = v.forwardRef(
|
|
12580
12588
|
(e, t) => {
|
|
12581
12589
|
const n = hp(qs, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = Bn(qs, e.__scopeDialog);
|
|
@@ -12592,7 +12600,7 @@ var wT = no("DialogOverlay.RemoveScroll"), bT = v.forwardRef(
|
|
|
12592
12600
|
/* @__PURE__ */ u.jsx(wi, { as: wT, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
12593
12601
|
De.div,
|
|
12594
12602
|
{
|
|
12595
|
-
"data-state":
|
|
12603
|
+
"data-state": Gl(o.open),
|
|
12596
12604
|
...r,
|
|
12597
12605
|
ref: t,
|
|
12598
12606
|
style: { pointerEvents: "auto", ...r.style }
|
|
@@ -12612,7 +12620,7 @@ var ST = v.forwardRef(
|
|
|
12612
12620
|
const n = Bn(Mr, e.__scopeDialog), r = v.useRef(null), o = nt(t, n.contentRef, r);
|
|
12613
12621
|
return v.useEffect(() => {
|
|
12614
12622
|
const s = r.current;
|
|
12615
|
-
if (s) return
|
|
12623
|
+
if (s) return Tl(s);
|
|
12616
12624
|
}, []), /* @__PURE__ */ u.jsx(
|
|
12617
12625
|
xp,
|
|
12618
12626
|
{
|
|
@@ -12661,7 +12669,7 @@ var ST = v.forwardRef(
|
|
|
12661
12669
|
), xp = v.forwardRef(
|
|
12662
12670
|
(e, t) => {
|
|
12663
12671
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...i } = e, a = Bn(Mr, n), l = v.useRef(null), c = nt(t, l);
|
|
12664
|
-
return
|
|
12672
|
+
return ml(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
12665
12673
|
/* @__PURE__ */ u.jsx(
|
|
12666
12674
|
fi,
|
|
12667
12675
|
{
|
|
@@ -12677,7 +12685,7 @@ var ST = v.forwardRef(
|
|
|
12677
12685
|
id: a.contentId,
|
|
12678
12686
|
"aria-describedby": a.descriptionId,
|
|
12679
12687
|
"aria-labelledby": a.titleId,
|
|
12680
|
-
"data-state":
|
|
12688
|
+
"data-state": Gl(a.open),
|
|
12681
12689
|
...i,
|
|
12682
12690
|
ref: c,
|
|
12683
12691
|
onDismiss: () => a.onOpenChange(!1)
|
|
@@ -12691,13 +12699,13 @@ var ST = v.forwardRef(
|
|
|
12691
12699
|
] })
|
|
12692
12700
|
] });
|
|
12693
12701
|
}
|
|
12694
|
-
),
|
|
12702
|
+
), ql = "DialogTitle", yp = v.forwardRef(
|
|
12695
12703
|
(e, t) => {
|
|
12696
|
-
const { __scopeDialog: n, ...r } = e, o = Bn(
|
|
12704
|
+
const { __scopeDialog: n, ...r } = e, o = Bn(ql, n);
|
|
12697
12705
|
return /* @__PURE__ */ u.jsx(De.h2, { id: o.titleId, ...r, ref: t });
|
|
12698
12706
|
}
|
|
12699
12707
|
);
|
|
12700
|
-
yp.displayName =
|
|
12708
|
+
yp.displayName = ql;
|
|
12701
12709
|
var vp = "DialogDescription", wp = v.forwardRef(
|
|
12702
12710
|
(e, t) => {
|
|
12703
12711
|
const { __scopeDialog: n, ...r } = e, o = Bn(vp, n);
|
|
@@ -12720,12 +12728,12 @@ var bp = "DialogClose", Sp = v.forwardRef(
|
|
|
12720
12728
|
}
|
|
12721
12729
|
);
|
|
12722
12730
|
Sp.displayName = bp;
|
|
12723
|
-
function
|
|
12731
|
+
function Gl(e) {
|
|
12724
12732
|
return e ? "open" : "closed";
|
|
12725
12733
|
}
|
|
12726
12734
|
var Cp = "DialogTitleWarning", [KR, Tp] = Iv(Cp, {
|
|
12727
12735
|
contentName: Mr,
|
|
12728
|
-
titleName:
|
|
12736
|
+
titleName: ql,
|
|
12729
12737
|
docsSlug: "dialog"
|
|
12730
12738
|
}), TT = ({ titleId: e }) => {
|
|
12731
12739
|
const t = Tp(Cp), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
@@ -12832,7 +12840,7 @@ const AT = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
12832
12840
|
));
|
|
12833
12841
|
AT.displayName = ji.displayName;
|
|
12834
12842
|
function _T({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
12835
|
-
const [s, i] = ve(!1), [a, l] = ve(null), [c, d] = ve(null), { toast: f } =
|
|
12843
|
+
const [s, i] = ve(!1), [a, l] = ve(null), [c, d] = ve(null), { toast: f } = Wl(), h = V.useCallback(async () => {
|
|
12836
12844
|
if (n) {
|
|
12837
12845
|
i(!0), d(null), l(null);
|
|
12838
12846
|
try {
|
|
@@ -12864,7 +12872,7 @@ function _T({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
12864
12872
|
console.error("Failed to open file externally:", y), f({ title: "Failed to open file", description: String(y), variant: "destructive" });
|
|
12865
12873
|
}
|
|
12866
12874
|
}, g = () => s ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-center py-12", children: [
|
|
12867
|
-
/* @__PURE__ */ u.jsx(
|
|
12875
|
+
/* @__PURE__ */ u.jsx(nl, { className: "h-8 w-8 animate-spin mr-3" }),
|
|
12868
12876
|
/* @__PURE__ */ u.jsx("span", { children: "Loading file..." })
|
|
12869
12877
|
] }) : c ? /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [
|
|
12870
12878
|
/* @__PURE__ */ u.jsx("div", { className: "text-red-500 mb-4", children: "⚠️" }),
|
|
@@ -12885,7 +12893,7 @@ function _T({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
12885
12893
|
title: r
|
|
12886
12894
|
}
|
|
12887
12895
|
) }) : o.startsWith("text/") || o.includes("json") || o.includes("xml") ? /* @__PURE__ */ u.jsx("div", { className: "bg-gray-50 dark:bg-gray-900 rounded-lg p-4 max-h-[70vh] overflow-auto", children: /* @__PURE__ */ u.jsx("pre", { className: "whitespace-pre-wrap font-mono text-sm", children: a }) }) : /* @__PURE__ */ u.jsxs("div", { className: "flex flex-col items-center justify-center py-12 text-center", children: [
|
|
12888
|
-
/* @__PURE__ */ u.jsx(
|
|
12896
|
+
/* @__PURE__ */ u.jsx(uc, { className: "h-16 w-16 text-gray-400 mb-4" }),
|
|
12889
12897
|
/* @__PURE__ */ u.jsx("p", { className: "text-lg font-medium mb-2", children: r }),
|
|
12890
12898
|
/* @__PURE__ */ u.jsxs("p", { className: "text-sm text-muted-foreground mb-4", children: [
|
|
12891
12899
|
o,
|
|
@@ -12894,7 +12902,7 @@ function _T({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
12894
12902
|
" bytes"
|
|
12895
12903
|
] }),
|
|
12896
12904
|
/* @__PURE__ */ u.jsx("p", { className: "text-sm text-muted-foreground", children: "This file type cannot be previewed. Use download or external view." })
|
|
12897
|
-
] }) : /* @__PURE__ */ u.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ u.jsx("p", { className: "text-muted-foreground", children: "No content to display" }) }), x = () => o.startsWith("image/") ? /* @__PURE__ */ u.jsx(bg, { className: "h-5 w-5" }) : /* @__PURE__ */ u.jsx(
|
|
12905
|
+
] }) : /* @__PURE__ */ u.jsx("div", { className: "flex items-center justify-center py-12", children: /* @__PURE__ */ u.jsx("p", { className: "text-muted-foreground", children: "No content to display" }) }), x = () => o.startsWith("image/") ? /* @__PURE__ */ u.jsx(bg, { className: "h-5 w-5" }) : /* @__PURE__ */ u.jsx(uc, { className: "h-5 w-5" });
|
|
12898
12906
|
return /* @__PURE__ */ u.jsx(IT, { open: e, onOpenChange: t, children: /* @__PURE__ */ u.jsxs(Np, { className: "max-w-4xl max-h-[90vh] overflow-hidden", children: [
|
|
12899
12907
|
/* @__PURE__ */ u.jsx(Ap, { children: /* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
12900
12908
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
@@ -13116,7 +13124,7 @@ function KT(e, t) {
|
|
|
13116
13124
|
}).join(`
|
|
13117
13125
|
`);
|
|
13118
13126
|
}
|
|
13119
|
-
class
|
|
13127
|
+
class Yl {
|
|
13120
13128
|
constructor(t) {
|
|
13121
13129
|
this.options = t || Hr;
|
|
13122
13130
|
}
|
|
@@ -13669,7 +13677,7 @@ function Uu(e) {
|
|
|
13669
13677
|
}
|
|
13670
13678
|
class gr {
|
|
13671
13679
|
constructor(t) {
|
|
13672
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Hr, this.options.tokenizer = this.options.tokenizer || new
|
|
13680
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = t || Hr, this.options.tokenizer = this.options.tokenizer || new Yl(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = {
|
|
13673
13681
|
inLink: !1,
|
|
13674
13682
|
inRawBlock: !1,
|
|
13675
13683
|
top: !0
|
|
@@ -13887,7 +13895,7 @@ class gr {
|
|
|
13887
13895
|
return n;
|
|
13888
13896
|
}
|
|
13889
13897
|
}
|
|
13890
|
-
class
|
|
13898
|
+
class Xl {
|
|
13891
13899
|
constructor(t) {
|
|
13892
13900
|
this.options = t || Hr;
|
|
13893
13901
|
}
|
|
@@ -14102,7 +14110,7 @@ class Lp {
|
|
|
14102
14110
|
}
|
|
14103
14111
|
class xr {
|
|
14104
14112
|
constructor(t) {
|
|
14105
|
-
this.options = t || Hr, this.options.renderer = this.options.renderer || new
|
|
14113
|
+
this.options = t || Hr, this.options.renderer = this.options.renderer || new Xl(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.textRenderer = new Dp(), this.slugger = new Lp();
|
|
14106
14114
|
}
|
|
14107
14115
|
/**
|
|
14108
14116
|
* Static Parse Method
|
|
@@ -14291,7 +14299,7 @@ class Ys {
|
|
|
14291
14299
|
return t;
|
|
14292
14300
|
}
|
|
14293
14301
|
}
|
|
14294
|
-
|
|
14302
|
+
cc(Ys, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
14295
14303
|
"preprocess",
|
|
14296
14304
|
"postprocess"
|
|
14297
14305
|
]));
|
|
@@ -14400,7 +14408,7 @@ Se.use = function(...e) {
|
|
|
14400
14408
|
}
|
|
14401
14409
|
o.childTokens && (t.childTokens[o.name] = o.childTokens);
|
|
14402
14410
|
}), r.extensions = t), n.renderer) {
|
|
14403
|
-
const o = Se.defaults.renderer || new
|
|
14411
|
+
const o = Se.defaults.renderer || new Xl();
|
|
14404
14412
|
for (const s in n.renderer) {
|
|
14405
14413
|
const i = o[s];
|
|
14406
14414
|
o[s] = (...a) => {
|
|
@@ -14411,7 +14419,7 @@ Se.use = function(...e) {
|
|
|
14411
14419
|
r.renderer = o;
|
|
14412
14420
|
}
|
|
14413
14421
|
if (n.tokenizer) {
|
|
14414
|
-
const o = Se.defaults.tokenizer || new
|
|
14422
|
+
const o = Se.defaults.tokenizer || new Yl();
|
|
14415
14423
|
for (const s in n.tokenizer) {
|
|
14416
14424
|
const i = o[s];
|
|
14417
14425
|
o[s] = (...a) => {
|
|
@@ -14473,11 +14481,11 @@ Se.walkTokens = function(e, t) {
|
|
|
14473
14481
|
Se.parseInline = Fp(gr.lexInline, xr.parseInline);
|
|
14474
14482
|
Se.Parser = xr;
|
|
14475
14483
|
Se.parser = xr.parse;
|
|
14476
|
-
Se.Renderer =
|
|
14484
|
+
Se.Renderer = Xl;
|
|
14477
14485
|
Se.TextRenderer = Dp;
|
|
14478
14486
|
Se.Lexer = gr;
|
|
14479
14487
|
Se.lexer = gr.lex;
|
|
14480
|
-
Se.Tokenizer =
|
|
14488
|
+
Se.Tokenizer = Yl;
|
|
14481
14489
|
Se.Slugger = Lp;
|
|
14482
14490
|
Se.Hooks = Ys;
|
|
14483
14491
|
Se.parse = Se;
|
|
@@ -14649,7 +14657,7 @@ const Vu = V.memo(function({
|
|
|
14649
14657
|
defaultCheckpointId: A = null,
|
|
14650
14658
|
messageParentCheckpointId: N = null
|
|
14651
14659
|
}) {
|
|
14652
|
-
const [_, M] = ve(!1), [$, z] = ve("preview"), [P, B] = ve(!1), { currentThreadId: j } =
|
|
14660
|
+
const [_, M] = ve(!1), [$, z] = ve("preview"), [P, B] = ve(!1), { currentThreadId: j } = dl(), { respondToInterrupt: W } = fl(), F = l === "phone" || l === "half-screen", L = t.role, ne = L === "tool", Q = ct(() => "type" in t && t.type === "default_message" ? t : null, [t]), ge = !!Q, je = !(r && L !== "user"), {
|
|
14653
14661
|
uploadingFiles: J,
|
|
14654
14662
|
handleFileClick: ue,
|
|
14655
14663
|
fileViewerOpen: ke,
|
|
@@ -14823,7 +14831,7 @@ const Vu = V.memo(function({
|
|
|
14823
14831
|
}
|
|
14824
14832
|
}, [w, T, S, W]), kt = V.useCallback(({ part: Y, i: Ee }) => {
|
|
14825
14833
|
if (Y.type === "text") {
|
|
14826
|
-
const we = Y.text ?? "", at = we.trim(), vt =
|
|
14834
|
+
const we = Y.text ?? "", at = we.trim(), vt = Vl(at);
|
|
14827
14835
|
return vt && L !== "tool" ? /* @__PURE__ */ u.jsx(zp, { data: vt }, Ee) : L === "user" && c && at.length > d ? /* @__PURE__ */ u.jsx(
|
|
14828
14836
|
nk,
|
|
14829
14837
|
{
|
|
@@ -14858,7 +14866,7 @@ const Vu = V.memo(function({
|
|
|
14858
14866
|
className: `inline-flex items-center gap-2 rounded px-2 py-1 text-xs bg-gray-100 border hover:bg-gray-200
|
|
14859
14867
|
dark:bg-background/10 dark:border-border/30 dark:hover:bg-background/20`,
|
|
14860
14868
|
children: [
|
|
14861
|
-
J[Ee] ? /* @__PURE__ */ u.jsx(
|
|
14869
|
+
J[Ee] ? /* @__PURE__ */ u.jsx(nl, { className: "h-4 w-4 animate-spin" }) : null,
|
|
14862
14870
|
/* @__PURE__ */ u.jsxs("span", { className: "truncate max-w-[180px]", children: [
|
|
14863
14871
|
at,
|
|
14864
14872
|
J[Ee] ? " (processing)" : ""
|
|
@@ -14997,7 +15005,7 @@ const Vu = V.memo(function({
|
|
|
14997
15005
|
children: [
|
|
14998
15006
|
/* @__PURE__ */ u.jsx("span", { children: ae.name ?? "Tool Output" }),
|
|
14999
15007
|
ae.toolCallId && /* @__PURE__ */ u.jsx("span", { className: "opacity-70", children: ae.toolCallId.slice(0, 8) }),
|
|
15000
|
-
$ === "expanded" ? /* @__PURE__ */ u.jsx(
|
|
15008
|
+
$ === "expanded" ? /* @__PURE__ */ u.jsx(rl, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(ni, { className: "h-3 w-3" })
|
|
15001
15009
|
]
|
|
15002
15010
|
}
|
|
15003
15011
|
)
|
|
@@ -15076,7 +15084,7 @@ const Vu = V.memo(function({
|
|
|
15076
15084
|
className: oe("h-6 w-6 p-0 hover:bg-foreground/10", G, F && "h-5 w-5"),
|
|
15077
15085
|
"aria-label": "Copy message",
|
|
15078
15086
|
title: "Copy message",
|
|
15079
|
-
children: /* @__PURE__ */ u.jsx(
|
|
15087
|
+
children: /* @__PURE__ */ u.jsx(dc, { className: oe(_ ? "text-success" : G, F ? "h-3 w-3" : "h-4 w-4") })
|
|
15080
15088
|
}
|
|
15081
15089
|
) }),
|
|
15082
15090
|
L === "user" && p && /* @__PURE__ */ u.jsx(
|
|
@@ -15087,7 +15095,7 @@ const Vu = V.memo(function({
|
|
|
15087
15095
|
onClick: Ye,
|
|
15088
15096
|
className: oe("h-6 w-6 p-0 hover:bg-foreground/10", G, F && "h-5 w-5"),
|
|
15089
15097
|
"aria-label": "Edit message",
|
|
15090
|
-
children: /* @__PURE__ */ u.jsx(
|
|
15098
|
+
children: /* @__PURE__ */ u.jsx(fc, { className: oe(G, F ? "h-3 w-3" : "h-4 w-4") })
|
|
15091
15099
|
}
|
|
15092
15100
|
),
|
|
15093
15101
|
L === "assistant" && m && /* @__PURE__ */ u.jsx(
|
|
@@ -15135,7 +15143,7 @@ const Vu = V.memo(function({
|
|
|
15135
15143
|
size: "sm",
|
|
15136
15144
|
onClick: () => Ce(),
|
|
15137
15145
|
className: oe("h-6 w-6 p-0 hover:bg-background/50 text-current", F && "h-5 w-5"),
|
|
15138
|
-
children: /* @__PURE__ */ u.jsx(
|
|
15146
|
+
children: /* @__PURE__ */ u.jsx(dc, { className: oe(_ ? "text-success" : "text-current", F ? "h-3 w-3" : "h-4 w-4") })
|
|
15139
15147
|
}
|
|
15140
15148
|
),
|
|
15141
15149
|
L === "user" && p && /* @__PURE__ */ u.jsx(
|
|
@@ -15145,7 +15153,7 @@ const Vu = V.memo(function({
|
|
|
15145
15153
|
size: "sm",
|
|
15146
15154
|
onClick: Ye,
|
|
15147
15155
|
className: oe("h-6 w-6 p-0 hover:bg-background/50 text-current", F && "h-5 w-5"),
|
|
15148
|
-
children: /* @__PURE__ */ u.jsx(
|
|
15156
|
+
children: /* @__PURE__ */ u.jsx(fc, { className: oe("text-current", F ? "h-3 w-3" : "h-4 w-4") })
|
|
15149
15157
|
}
|
|
15150
15158
|
),
|
|
15151
15159
|
L === "assistant" && m && /* @__PURE__ */ u.jsx(
|
|
@@ -15250,7 +15258,7 @@ function ek({
|
|
|
15250
15258
|
);
|
|
15251
15259
|
}
|
|
15252
15260
|
function tk(e) {
|
|
15253
|
-
const { allowFileOpen: t, currentThreadId: n } = e, { toast: r } =
|
|
15261
|
+
const { allowFileOpen: t, currentThreadId: n } = e, { toast: r } = Wl(), [o, s] = ve({}), [i, a] = ve(null), [l, c] = ve(!1), d = V.useCallback(() => {
|
|
15254
15262
|
c(!1), a(null);
|
|
15255
15263
|
}, []), f = V.useCallback((p) => {
|
|
15256
15264
|
a(p), c(!0);
|
|
@@ -15352,7 +15360,7 @@ function nk({
|
|
|
15352
15360
|
className: "h-6 text-xs !text-[hsl(var(--chat-bubble-user-text))]",
|
|
15353
15361
|
onClick: () => n(!t),
|
|
15354
15362
|
children: t ? /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
15355
|
-
/* @__PURE__ */ u.jsx(
|
|
15363
|
+
/* @__PURE__ */ u.jsx(rl, { className: "h-3 w-3 mr-1" }),
|
|
15356
15364
|
" Show less"
|
|
15357
15365
|
] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
15358
15366
|
/* @__PURE__ */ u.jsx(ni, { className: "h-3 w-3 mr-1" }),
|
|
@@ -15367,7 +15375,7 @@ function nk({
|
|
|
15367
15375
|
function rk({ message: e, viewMode: t }) {
|
|
15368
15376
|
const r = $p(e).name || "tool", o = (c) => {
|
|
15369
15377
|
if (c == null) return null;
|
|
15370
|
-
const d = typeof c == "string" ?
|
|
15378
|
+
const d = typeof c == "string" ? Vl(c) ?? c : c;
|
|
15371
15379
|
if (d && typeof d == "object")
|
|
15372
15380
|
return /* @__PURE__ */ u.jsx(zp, { data: d });
|
|
15373
15381
|
const f = typeof d == "string" ? d : (() => {
|
|
@@ -15388,7 +15396,7 @@ function rk({ message: e, viewMode: t }) {
|
|
|
15388
15396
|
const i = e.content.find((c) => c.type !== "tool_call");
|
|
15389
15397
|
if (!i)
|
|
15390
15398
|
return /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
15391
|
-
/* @__PURE__ */ u.jsx(
|
|
15399
|
+
/* @__PURE__ */ u.jsx(nl, { className: "h-4 w-4 animate-spin" }),
|
|
15392
15400
|
/* @__PURE__ */ u.jsxs("span", { children: [
|
|
15393
15401
|
"Waiting for ",
|
|
15394
15402
|
r,
|
|
@@ -15699,7 +15707,7 @@ function xa({
|
|
|
15699
15707
|
onExcelUploadSuccess: p,
|
|
15700
15708
|
onError: m
|
|
15701
15709
|
}) {
|
|
15702
|
-
const { api: g } = Id(), { currentThreadId: x } =
|
|
15710
|
+
const { api: g } = Id(), { currentThreadId: x } = dl(), {
|
|
15703
15711
|
threadId: y,
|
|
15704
15712
|
messages: w,
|
|
15705
15713
|
hasMore: S,
|
|
@@ -15712,7 +15720,7 @@ function xa({
|
|
|
15712
15720
|
checkpoints: _,
|
|
15713
15721
|
interrupt: M,
|
|
15714
15722
|
metadata: $
|
|
15715
|
-
} =
|
|
15723
|
+
} = fl(), { isStreaming: z, error: P, connectionState: B, submit: j, stop: W } = Tv(), F = y ?? x ?? null, L = (N == null ? void 0 : N.id) ?? null, ne = (N == null ? void 0 : N.namespace) ?? null, Q = ($ == null ? void 0 : $.assemblingMessageId) ?? null, ge = M, [je, J] = ve(!1);
|
|
15716
15724
|
St(() => {
|
|
15717
15725
|
ge || J(!1);
|
|
15718
15726
|
}, [ge]);
|
|
@@ -16214,7 +16222,7 @@ function xa({
|
|
|
16214
16222
|
}
|
|
16215
16223
|
) }),
|
|
16216
16224
|
/* @__PURE__ */ u.jsxs(Th, { align: "start", sideOffset: 6, className: "w-52", children: [
|
|
16217
|
-
a && /* @__PURE__ */ u.jsxs(
|
|
16225
|
+
a && /* @__PURE__ */ u.jsxs(za, { onClick: () => {
|
|
16218
16226
|
var Z;
|
|
16219
16227
|
return (Z = Cn.current) == null ? void 0 : Z.click();
|
|
16220
16228
|
}, className: "cursor-pointer", children: [
|
|
@@ -16222,7 +16230,7 @@ function xa({
|
|
|
16222
16230
|
" Attach files or images"
|
|
16223
16231
|
] }),
|
|
16224
16232
|
l && /* @__PURE__ */ u.jsxs(
|
|
16225
|
-
|
|
16233
|
+
za,
|
|
16226
16234
|
{
|
|
16227
16235
|
onClick: () => {
|
|
16228
16236
|
var Z;
|
|
@@ -16274,13 +16282,13 @@ const Js = v.forwardRef(
|
|
|
16274
16282
|
)
|
|
16275
16283
|
);
|
|
16276
16284
|
Js.displayName = "Input";
|
|
16277
|
-
function
|
|
16285
|
+
function qa(e, [t, n]) {
|
|
16278
16286
|
return Math.min(n, Math.max(t, e));
|
|
16279
16287
|
}
|
|
16280
16288
|
function sk(e, t) {
|
|
16281
16289
|
return v.useReducer((n, r) => t[n][r] ?? n, e);
|
|
16282
16290
|
}
|
|
16283
|
-
var
|
|
16291
|
+
var Jl = "ScrollArea", [Hp, qR] = ar(Jl), [ik, jn] = Hp(Jl), Up = v.forwardRef(
|
|
16284
16292
|
(e, t) => {
|
|
16285
16293
|
const {
|
|
16286
16294
|
__scopeScrollArea: n,
|
|
@@ -16330,7 +16338,7 @@ var Xl = "ScrollArea", [Hp, qR] = ar(Xl), [ik, jn] = Hp(Xl), Up = v.forwardRef(
|
|
|
16330
16338
|
);
|
|
16331
16339
|
}
|
|
16332
16340
|
);
|
|
16333
|
-
Up.displayName =
|
|
16341
|
+
Up.displayName = Jl;
|
|
16334
16342
|
var Wp = "ScrollAreaViewport", Vp = v.forwardRef(
|
|
16335
16343
|
(e, t) => {
|
|
16336
16344
|
const { __scopeScrollArea: n, children: r, nonce: o, ...s } = e, i = jn(Wp, n), a = v.useRef(null), l = nt(t, a, i.onViewportChange);
|
|
@@ -16373,15 +16381,15 @@ var Wp = "ScrollAreaViewport", Vp = v.forwardRef(
|
|
|
16373
16381
|
}
|
|
16374
16382
|
);
|
|
16375
16383
|
Vp.displayName = Wp;
|
|
16376
|
-
var Zn = "ScrollAreaScrollbar",
|
|
16384
|
+
var Zn = "ScrollAreaScrollbar", Zl = v.forwardRef(
|
|
16377
16385
|
(e, t) => {
|
|
16378
16386
|
const { forceMount: n, ...r } = e, o = jn(Zn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
|
|
16379
16387
|
return v.useEffect(() => (a ? s(!0) : i(!0), () => {
|
|
16380
16388
|
a ? s(!1) : i(!1);
|
|
16381
|
-
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u.jsx(ak, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ u.jsx(lk, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ u.jsx(Kp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ u.jsx(
|
|
16389
|
+
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ u.jsx(ak, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ u.jsx(lk, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ u.jsx(Kp, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ u.jsx(Ql, { ...r, ref: t }) : null;
|
|
16382
16390
|
}
|
|
16383
16391
|
);
|
|
16384
|
-
|
|
16392
|
+
Zl.displayName = Zn;
|
|
16385
16393
|
var ak = v.forwardRef((e, t) => {
|
|
16386
16394
|
const { forceMount: n, ...r } = e, o = jn(Zn, e.__scopeScrollArea), [s, i] = v.useState(!1);
|
|
16387
16395
|
return v.useEffect(() => {
|
|
@@ -16440,7 +16448,7 @@ var ak = v.forwardRef((e, t) => {
|
|
|
16440
16448
|
return c.addEventListener("scroll", h), () => c.removeEventListener("scroll", h);
|
|
16441
16449
|
}
|
|
16442
16450
|
}, [o.viewport, s, l, i]), /* @__PURE__ */ u.jsx(_n, { present: n || a !== "hidden", children: /* @__PURE__ */ u.jsx(
|
|
16443
|
-
|
|
16451
|
+
Ql,
|
|
16444
16452
|
{
|
|
16445
16453
|
"data-state": a === "hidden" ? "hidden" : "visible",
|
|
16446
16454
|
...r,
|
|
@@ -16457,14 +16465,14 @@ var ak = v.forwardRef((e, t) => {
|
|
|
16457
16465
|
}
|
|
16458
16466
|
}, 10);
|
|
16459
16467
|
return io(n.viewport, l), io(n.content, l), /* @__PURE__ */ u.jsx(_n, { present: r || s, children: /* @__PURE__ */ u.jsx(
|
|
16460
|
-
|
|
16468
|
+
Ql,
|
|
16461
16469
|
{
|
|
16462
16470
|
"data-state": s ? "visible" : "hidden",
|
|
16463
16471
|
...o,
|
|
16464
16472
|
ref: t
|
|
16465
16473
|
}
|
|
16466
16474
|
) });
|
|
16467
|
-
}),
|
|
16475
|
+
}), Ql = v.forwardRef((e, t) => {
|
|
16468
16476
|
const { orientation: n = "vertical", ...r } = e, o = jn(Zn, e.__scopeScrollArea), s = v.useRef(null), i = v.useRef(0), [a, l] = v.useState({
|
|
16469
16477
|
content: 0,
|
|
16470
16478
|
viewport: 0,
|
|
@@ -16696,15 +16704,15 @@ var ak = v.forwardRef((e, t) => {
|
|
|
16696
16704
|
}
|
|
16697
16705
|
);
|
|
16698
16706
|
Yp.displayName = Zs;
|
|
16699
|
-
var
|
|
16707
|
+
var ec = "ScrollAreaCorner", Xp = v.forwardRef(
|
|
16700
16708
|
(e, t) => {
|
|
16701
|
-
const n = jn(
|
|
16709
|
+
const n = jn(ec, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
16702
16710
|
return n.type !== "scroll" && r ? /* @__PURE__ */ u.jsx(hk, { ...e, ref: t }) : null;
|
|
16703
16711
|
}
|
|
16704
16712
|
);
|
|
16705
|
-
Xp.displayName =
|
|
16713
|
+
Xp.displayName = ec;
|
|
16706
16714
|
var hk = v.forwardRef((e, t) => {
|
|
16707
|
-
const { __scopeScrollArea: n, ...r } = e, o = jn(
|
|
16715
|
+
const { __scopeScrollArea: n, ...r } = e, o = jn(ec, n), [s, i] = v.useState(0), [a, l] = v.useState(0), c = !!(s && a);
|
|
16708
16716
|
return io(o.scrollbarX, () => {
|
|
16709
16717
|
var f;
|
|
16710
16718
|
const d = ((f = o.scrollbarX) == null ? void 0 : f.offsetHeight) || 0;
|
|
@@ -16746,7 +16754,7 @@ function pk(e, t, n, r = "ltr") {
|
|
|
16746
16754
|
return Zp([l, c], f)(e);
|
|
16747
16755
|
}
|
|
16748
16756
|
function Gu(e, t, n = "ltr") {
|
|
16749
|
-
const r = Pi(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, l = n === "ltr" ? [0, i] : [i * -1, 0], c =
|
|
16757
|
+
const r = Pi(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, l = n === "ltr" ? [0, i] : [i * -1, 0], c = qa(e, l);
|
|
16750
16758
|
return Zp([0, i], [0, a])(c);
|
|
16751
16759
|
}
|
|
16752
16760
|
function Zp(e, t) {
|
|
@@ -16803,7 +16811,7 @@ const tm = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
16803
16811
|
));
|
|
16804
16812
|
tm.displayName = em.displayName;
|
|
16805
16813
|
const nm = v.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ u.jsx(
|
|
16806
|
-
|
|
16814
|
+
Zl,
|
|
16807
16815
|
{
|
|
16808
16816
|
ref: r,
|
|
16809
16817
|
orientation: t,
|
|
@@ -16817,7 +16825,7 @@ const nm = v.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r)
|
|
|
16817
16825
|
children: /* @__PURE__ */ u.jsx(Yp, { className: "relative flex-1 rounded-full bg-border" })
|
|
16818
16826
|
}
|
|
16819
16827
|
));
|
|
16820
|
-
nm.displayName =
|
|
16828
|
+
nm.displayName = Zl.displayName;
|
|
16821
16829
|
const Yu = 25;
|
|
16822
16830
|
function Xu({
|
|
16823
16831
|
className: e = "",
|
|
@@ -16837,7 +16845,7 @@ function Xu({
|
|
|
16837
16845
|
currentThreadId: h,
|
|
16838
16846
|
isLoading: p,
|
|
16839
16847
|
actions: m
|
|
16840
|
-
} =
|
|
16848
|
+
} = dl(), { loadThread: g } = fl(), { createThread: x, deleteThread: y, renameThread: w } = m, [S, T] = ve(Array.isArray(f) ? f : []), C = Te(S.length > 0), b = Te(null), k = Te(0), [A, N] = ve(null), [_, M] = ve(""), [$, z] = ve(!1);
|
|
16841
16849
|
St(() => {
|
|
16842
16850
|
const J = Array.isArray(f) ? f : [];
|
|
16843
16851
|
if (J.length > 0) {
|
|
@@ -16947,7 +16955,7 @@ function Xu({
|
|
|
16947
16955
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
16948
16956
|
/* @__PURE__ */ u.jsx("div", { className: "flex-1 min-w-0", children: A === J.threadId ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", onClick: (ue) => ue.stopPropagation(), children: [
|
|
16949
16957
|
/* @__PURE__ */ u.jsx(Js, { value: _, onChange: (ue) => M(ue.target.value), onKeyDown: (ue) => ne(ue, J.threadId), className: "h-6 text-sm", autoFocus: !0 }),
|
|
16950
|
-
/* @__PURE__ */ u.jsx(gt, { variant: "ghost", size: "sm", onClick: () => F(J.threadId), className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(
|
|
16958
|
+
/* @__PURE__ */ u.jsx(gt, { variant: "ghost", size: "sm", onClick: () => F(J.threadId), className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(tl, { size: 12 }) }),
|
|
16951
16959
|
/* @__PURE__ */ u.jsx(gt, { variant: "ghost", size: "sm", onClick: L, className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(Xr, { size: 12 }) })
|
|
16952
16960
|
] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
16953
16961
|
/* @__PURE__ */ u.jsx("div", { className: "font-medium text-sm truncate text-gray-900 dark:text-slate-100", children: je(J) }),
|
|
@@ -17270,7 +17278,7 @@ var gm = Object.freeze({
|
|
|
17270
17278
|
)
|
|
17271
17279
|
);
|
|
17272
17280
|
_k.displayName = Ak;
|
|
17273
|
-
var jk = [" ", "Enter", "ArrowUp", "ArrowDown"], Pk = [" ", "Enter"], Dr = "Select", [Di, Li, Ok] =
|
|
17281
|
+
var jk = [" ", "Enter", "ArrowUp", "ArrowDown"], Pk = [" ", "Enter"], Dr = "Select", [Di, Li, Ok] = pl(Dr), [po, JR] = ar(Dr, [
|
|
17274
17282
|
Ok,
|
|
17275
17283
|
xi
|
|
17276
17284
|
]), Fi = xi(), [Mk, br] = po(Dr), [Dk, Lk] = po(Dr), xm = (e) => {
|
|
@@ -17472,8 +17480,8 @@ var On = 10, [km, Sr] = po(Lr), zk = "SelectContentImpl", Bk = no("SelectContent
|
|
|
17472
17480
|
null
|
|
17473
17481
|
), $ = Li(n), [z, P] = v.useState(!1), B = v.useRef(!1);
|
|
17474
17482
|
v.useEffect(() => {
|
|
17475
|
-
if (S) return
|
|
17476
|
-
}, [S]),
|
|
17483
|
+
if (S) return Tl(S);
|
|
17484
|
+
}, [S]), ml();
|
|
17477
17485
|
const j = v.useCallback(
|
|
17478
17486
|
(ee) => {
|
|
17479
17487
|
const [D, ...G] = $().map((H) => H.ref.current), [se] = G.slice(-1), ae = document.activeElement;
|
|
@@ -17526,7 +17534,7 @@ var On = 10, [km, Sr] = po(Lr), zk = "SelectContentImpl", Bk = no("SelectContent
|
|
|
17526
17534
|
(w.value !== void 0 && w.value === D || se) && M(ee);
|
|
17527
17535
|
},
|
|
17528
17536
|
[w.value]
|
|
17529
|
-
), ue = r === "popper" ?
|
|
17537
|
+
), ue = r === "popper" ? Ga : Em, ke = ue === Ga ? {
|
|
17530
17538
|
side: a,
|
|
17531
17539
|
sideOffset: l,
|
|
17532
17540
|
align: c,
|
|
@@ -17622,7 +17630,7 @@ var Hk = "SelectItemAlignedPosition", Em = v.forwardRef((e, t) => {
|
|
|
17622
17630
|
if (s.trigger && s.valueNode && a && c && g && x && y) {
|
|
17623
17631
|
const k = s.trigger.getBoundingClientRect(), A = c.getBoundingClientRect(), N = s.valueNode.getBoundingClientRect(), _ = y.getBoundingClientRect();
|
|
17624
17632
|
if (s.dir !== "rtl") {
|
|
17625
|
-
const ae = _.left - A.left, H = N.left - ae, Ue = k.left - H, re = k.width + Ue, ye = Math.max(re, A.width), Oe = window.innerWidth - On, Le =
|
|
17633
|
+
const ae = _.left - A.left, H = N.left - ae, Ue = k.left - H, re = k.width + Ue, ye = Math.max(re, A.width), Oe = window.innerWidth - On, Le = qa(H, [
|
|
17626
17634
|
On,
|
|
17627
17635
|
// Prevents the content from going off the starting edge of the
|
|
17628
17636
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -17633,7 +17641,7 @@ var Hk = "SelectItemAlignedPosition", Em = v.forwardRef((e, t) => {
|
|
|
17633
17641
|
]);
|
|
17634
17642
|
a.style.minWidth = re + "px", a.style.left = Le + "px";
|
|
17635
17643
|
} else {
|
|
17636
|
-
const ae = A.right - _.right, H = window.innerWidth - N.right - ae, Ue = window.innerWidth - k.right - H, re = k.width + Ue, ye = Math.max(re, A.width), Oe = window.innerWidth - On, Le =
|
|
17644
|
+
const ae = A.right - _.right, H = window.innerWidth - N.right - ae, Ue = window.innerWidth - k.right - H, re = k.width + Ue, ye = Math.max(re, A.width), Oe = window.innerWidth - On, Le = qa(H, [
|
|
17637
17645
|
On,
|
|
17638
17646
|
Math.max(On, Oe - ye)
|
|
17639
17647
|
]);
|
|
@@ -17722,7 +17730,7 @@ var Hk = "SelectItemAlignedPosition", Em = v.forwardRef((e, t) => {
|
|
|
17722
17730
|
);
|
|
17723
17731
|
});
|
|
17724
17732
|
Em.displayName = Hk;
|
|
17725
|
-
var Uk = "SelectPopperPosition",
|
|
17733
|
+
var Uk = "SelectPopperPosition", Ga = v.forwardRef((e, t) => {
|
|
17726
17734
|
const {
|
|
17727
17735
|
__scopeSelect: n,
|
|
17728
17736
|
align: r = "start",
|
|
@@ -17750,10 +17758,10 @@ var Uk = "SelectPopperPosition", qa = v.forwardRef((e, t) => {
|
|
|
17750
17758
|
}
|
|
17751
17759
|
);
|
|
17752
17760
|
});
|
|
17753
|
-
|
|
17754
|
-
var [Wk,
|
|
17761
|
+
Ga.displayName = Uk;
|
|
17762
|
+
var [Wk, tc] = po(Lr, {}), Ya = "SelectViewport", Im = v.forwardRef(
|
|
17755
17763
|
(e, t) => {
|
|
17756
|
-
const { __scopeSelect: n, nonce: r, ...o } = e, s = Sr(
|
|
17764
|
+
const { __scopeSelect: n, nonce: r, ...o } = e, s = Sr(Ya, n), i = tc(Ya, n), a = nt(t, s.onViewportChange), l = v.useRef(0);
|
|
17757
17765
|
return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
17758
17766
|
/* @__PURE__ */ u.jsx(
|
|
17759
17767
|
"style",
|
|
@@ -17803,7 +17811,7 @@ var [Wk, ec] = po(Lr, {}), Ga = "SelectViewport", Im = v.forwardRef(
|
|
|
17803
17811
|
] });
|
|
17804
17812
|
}
|
|
17805
17813
|
);
|
|
17806
|
-
Im.displayName =
|
|
17814
|
+
Im.displayName = Ya;
|
|
17807
17815
|
var Nm = "SelectGroup", [Vk, Kk] = po(Nm), qk = v.forwardRef(
|
|
17808
17816
|
(e, t) => {
|
|
17809
17817
|
const { __scopeSelect: n, ...r } = e, o = rr();
|
|
@@ -17930,8 +17938,8 @@ var Mm = "SelectItemIndicator", Dm = v.forwardRef(
|
|
|
17930
17938
|
}
|
|
17931
17939
|
);
|
|
17932
17940
|
Dm.displayName = Mm;
|
|
17933
|
-
var
|
|
17934
|
-
const n = Sr(
|
|
17941
|
+
var Xa = "SelectScrollUpButton", Lm = v.forwardRef((e, t) => {
|
|
17942
|
+
const n = Sr(Xa, e.__scopeSelect), r = tc(Xa, e.__scopeSelect), [o, s] = v.useState(!1), i = nt(t, r.onScrollButtonChange);
|
|
17935
17943
|
return en(() => {
|
|
17936
17944
|
if (n.viewport && n.isPositioned) {
|
|
17937
17945
|
let a = function() {
|
|
@@ -17953,9 +17961,9 @@ var Ya = "SelectScrollUpButton", Lm = v.forwardRef((e, t) => {
|
|
|
17953
17961
|
}
|
|
17954
17962
|
) : null;
|
|
17955
17963
|
});
|
|
17956
|
-
Lm.displayName =
|
|
17957
|
-
var
|
|
17958
|
-
const n = Sr(
|
|
17964
|
+
Lm.displayName = Xa;
|
|
17965
|
+
var Ja = "SelectScrollDownButton", Fm = v.forwardRef((e, t) => {
|
|
17966
|
+
const n = Sr(Ja, e.__scopeSelect), r = tc(Ja, e.__scopeSelect), [o, s] = v.useState(!1), i = nt(t, r.onScrollButtonChange);
|
|
17959
17967
|
return en(() => {
|
|
17960
17968
|
if (n.viewport && n.isPositioned) {
|
|
17961
17969
|
let a = function() {
|
|
@@ -17977,7 +17985,7 @@ var Xa = "SelectScrollDownButton", Fm = v.forwardRef((e, t) => {
|
|
|
17977
17985
|
}
|
|
17978
17986
|
) : null;
|
|
17979
17987
|
});
|
|
17980
|
-
Fm.displayName =
|
|
17988
|
+
Fm.displayName = Ja;
|
|
17981
17989
|
var $m = v.forwardRef((e, t) => {
|
|
17982
17990
|
const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = Sr("SelectScrollButton", n), i = v.useRef(null), a = Li(n), l = v.useCallback(() => {
|
|
17983
17991
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
@@ -18012,13 +18020,13 @@ var $m = v.forwardRef((e, t) => {
|
|
|
18012
18020
|
}
|
|
18013
18021
|
);
|
|
18014
18022
|
zm.displayName = Yk;
|
|
18015
|
-
var
|
|
18023
|
+
var Za = "SelectArrow", Xk = v.forwardRef(
|
|
18016
18024
|
(e, t) => {
|
|
18017
|
-
const { __scopeSelect: n, ...r } = e, o = Fi(n), s = br(
|
|
18025
|
+
const { __scopeSelect: n, ...r } = e, o = Fi(n), s = br(Za, n), i = Sr(Za, n);
|
|
18018
18026
|
return s.open && i.position === "popper" ? /* @__PURE__ */ u.jsx(gf, { ...o, ...r, ref: t }) : null;
|
|
18019
18027
|
}
|
|
18020
18028
|
);
|
|
18021
|
-
Xk.displayName =
|
|
18029
|
+
Xk.displayName = Za;
|
|
18022
18030
|
var Jk = "SelectBubbleInput", Bm = v.forwardRef(
|
|
18023
18031
|
({ __scopeSelect: e, value: t, ...n }, r) => {
|
|
18024
18032
|
const o = v.useRef(null), s = nt(r, o), i = cm(t);
|
|
@@ -18075,7 +18083,7 @@ function Zk(e, t) {
|
|
|
18075
18083
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
18076
18084
|
}
|
|
18077
18085
|
var Qk = xm, Vm = vm, eR = bm, tR = Sm, nR = Cm, Km = Tm, rR = Im, qm = _m, Gm = Pm, oR = Om, sR = Dm, Ym = Lm, Xm = Fm, Jm = zm;
|
|
18078
|
-
const Ju = Qk, Zu = eR,
|
|
18086
|
+
const Ju = Qk, Zu = eR, Qa = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ u.jsxs(
|
|
18079
18087
|
Vm,
|
|
18080
18088
|
{
|
|
18081
18089
|
ref: r,
|
|
@@ -18090,7 +18098,7 @@ const Ju = Qk, Zu = eR, Za = v.forwardRef(({ className: e, children: t, ...n },
|
|
|
18090
18098
|
]
|
|
18091
18099
|
}
|
|
18092
18100
|
));
|
|
18093
|
-
|
|
18101
|
+
Qa.displayName = Vm.displayName;
|
|
18094
18102
|
const Zm = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
18095
18103
|
Ym,
|
|
18096
18104
|
{
|
|
@@ -18100,7 +18108,7 @@ const Zm = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18100
18108
|
e
|
|
18101
18109
|
),
|
|
18102
18110
|
...t,
|
|
18103
|
-
children: /* @__PURE__ */ u.jsx(
|
|
18111
|
+
children: /* @__PURE__ */ u.jsx(rl, { className: "h-4 w-4" })
|
|
18104
18112
|
}
|
|
18105
18113
|
));
|
|
18106
18114
|
Zm.displayName = Ym.displayName;
|
|
@@ -18117,7 +18125,7 @@ const Qm = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
|
18117
18125
|
}
|
|
18118
18126
|
));
|
|
18119
18127
|
Qm.displayName = Xm.displayName;
|
|
18120
|
-
const
|
|
18128
|
+
const el = v.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ u.jsx(nR, { children: /* @__PURE__ */ u.jsxs(
|
|
18121
18129
|
Km,
|
|
18122
18130
|
{
|
|
18123
18131
|
ref: o,
|
|
@@ -18144,7 +18152,7 @@ const Qa = v.forwardRef(({ className: e, children: t, position: n = "popper", ..
|
|
|
18144
18152
|
]
|
|
18145
18153
|
}
|
|
18146
18154
|
) }));
|
|
18147
|
-
|
|
18155
|
+
el.displayName = Km.displayName;
|
|
18148
18156
|
const iR = v.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
18149
18157
|
qm,
|
|
18150
18158
|
{
|
|
@@ -18164,7 +18172,7 @@ const kr = v.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
18164
18172
|
),
|
|
18165
18173
|
...n,
|
|
18166
18174
|
children: [
|
|
18167
|
-
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(sR, { children: /* @__PURE__ */ u.jsx(
|
|
18175
|
+
/* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(sR, { children: /* @__PURE__ */ u.jsx(tl, { className: "h-4 w-4" }) }) }),
|
|
18168
18176
|
/* @__PURE__ */ u.jsx(oR, { children: t })
|
|
18169
18177
|
]
|
|
18170
18178
|
}
|
|
@@ -18311,7 +18319,7 @@ const mR = {
|
|
|
18311
18319
|
}
|
|
18312
18320
|
};
|
|
18313
18321
|
function ZR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
18314
|
-
const [r, o] = ve(!1), [s, i] = ve(!1), [a, l] = ve(e), [c, d] = ve(!1), { toast: f } =
|
|
18322
|
+
const [r, o] = ve(!1), [s, i] = ve(!1), [a, l] = ve(e), [c, d] = ve(!1), { toast: f } = Wl();
|
|
18315
18323
|
St(() => {
|
|
18316
18324
|
const x = JSON.stringify(a) !== JSON.stringify(e);
|
|
18317
18325
|
d(x);
|
|
@@ -18441,8 +18449,8 @@ function ZR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18441
18449
|
ui: { ...y.ui, layout: x }
|
|
18442
18450
|
})),
|
|
18443
18451
|
children: [
|
|
18444
|
-
/* @__PURE__ */ u.jsx(
|
|
18445
|
-
/* @__PURE__ */ u.jsxs(
|
|
18452
|
+
/* @__PURE__ */ u.jsx(Qa, { children: /* @__PURE__ */ u.jsx(Zu, {}) }),
|
|
18453
|
+
/* @__PURE__ */ u.jsxs(el, { children: [
|
|
18446
18454
|
/* @__PURE__ */ u.jsx(kr, { value: "sidebar", children: "Sidebar Layout" }),
|
|
18447
18455
|
/* @__PURE__ */ u.jsx(kr, { value: "fullscreen", children: "Fullscreen" }),
|
|
18448
18456
|
/* @__PURE__ */ u.jsx(kr, { value: "tabs", children: "Tabbed Interface" })
|
|
@@ -18462,8 +18470,8 @@ function ZR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
18462
18470
|
ui: { ...y.ui, theme: x }
|
|
18463
18471
|
})),
|
|
18464
18472
|
children: [
|
|
18465
|
-
/* @__PURE__ */ u.jsx(
|
|
18466
|
-
/* @__PURE__ */ u.jsxs(
|
|
18473
|
+
/* @__PURE__ */ u.jsx(Qa, { children: /* @__PURE__ */ u.jsx(Zu, {}) }),
|
|
18474
|
+
/* @__PURE__ */ u.jsxs(el, { children: [
|
|
18467
18475
|
/* @__PURE__ */ u.jsx(kr, { value: "light", children: "Light" }),
|
|
18468
18476
|
/* @__PURE__ */ u.jsx(kr, { value: "dark", children: "Dark" }),
|
|
18469
18477
|
/* @__PURE__ */ u.jsx(kr, { value: "system", children: "System" })
|
|
@@ -18692,11 +18700,11 @@ export {
|
|
|
18692
18700
|
Pc as post,
|
|
18693
18701
|
Sy as put,
|
|
18694
18702
|
HR as registerChatTokenSyncHandler,
|
|
18695
|
-
|
|
18703
|
+
Ia as setChatToken,
|
|
18696
18704
|
Id as useApi,
|
|
18697
18705
|
Jy as useChatStream,
|
|
18698
18706
|
Ky as useMessagesReducer,
|
|
18699
18707
|
Tv as useStream,
|
|
18700
|
-
|
|
18701
|
-
|
|
18708
|
+
fl as useThreadState,
|
|
18709
|
+
dl as useThreads
|
|
18702
18710
|
};
|