@versini/sassysaint 8.63.1 → 8.64.0
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/chunks/{AboutChangelog.COOGja4L.js → AboutChangelog.ClPdTj6q.js} +2 -2
- package/dist/chunks/{AboutEntry.7ncF_DIc.js → AboutEntry.CSTnhS8V.js} +5 -5
- package/dist/chunks/{App.DoVbmL2p.js → App.D79DErDb.js} +123 -123
- package/dist/chunks/{Chart.z1dHEeK6.js → Chart.anWx1EJ1.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DVMPxg2S.js → ChatBubbleAssistant.440b52to.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.BH4pmGH0.js → ChatBubbleUser.Btv6do4Q.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.DZZj5eGe.js → ChatHistoryTable.CItlSrv5.js} +43 -43
- package/dist/chunks/{HistoryEntry.BJMwUkDf.js → HistoryEntry.kMPC-6lA.js} +27 -27
- package/dist/chunks/{ProfileEntry.OkDRtUl8.js → ProfileEntry.Cf4tcjoj.js} +6 -6
- package/dist/chunks/{SettingsEntry.D1ZU-gPR.js → SettingsEntry.BeBSUqx6.js} +2 -2
- package/dist/chunks/{Table.BfS9Q50S.js → Table.CsQklVBG.js} +2 -2
- package/dist/chunks/{UsageEntry.D0J4ZEpB.js → UsageEntry.DQIU0kzt.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.D_wyyDyJ.js → UserMemoriesPanel.DSSLiVHt.js} +3 -3
- package/dist/chunks/{index.BnidGtMy.js → index.-j_njLEh.js} +1 -1
- package/dist/chunks/{index.B__EFtnc.js → index.BXUh8Hx0.js} +1 -1
- package/dist/chunks/{index.Bng14czd.js → index.C8_GUi7S.js} +3 -3
- package/dist/chunks/{index.Ok5GIj4k.js → index.CGFySwFw.js} +1 -1
- package/dist/chunks/{index.DrNBEhtX.js → index.CcY06_BE.js} +1 -1
- package/dist/chunks/{index.DCbJZ9UB.js → index.DqTXCFGJ.js} +610 -601
- package/dist/chunks/{index.CRxV0D78.js → index.sQ9g50Gu.js} +2 -2
- package/dist/chunks/{useMarkdown.CpO2Waej.js → useMarkdown.Bqr7iP8w.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as x, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
-
import { I as G, ACTION_SORT as
|
|
2
|
+
import { I as G, ACTION_SORT as Ka, ACTION_SEARCH as Qa, ACTION_RESET_PROMPT as eo, ACTION_TOGGLE_PROMPT as to, b$1 as es, te as ye, DEFAULT_ICON_ACTION_SIZE as Ee, isTauri as Bt, n as _e, useUserPreferences as Ze, isProbablyiPhone as Ae, serverUrl as ro, useEntitlements as no, L as wr, j as et, C as Qr, LOCAL_STORAGE_PREFIX as tt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ts, tt as jt, LOCAL_STORAGE_REASONING_DISCLOSURE as rs, useChatsHistory as oo, mutateCall as ns, SERVICE_TYPES as os, TOAST_CHAT_SAVED as as, PROMPT_CLASSNAME as ss, PROMPT_EDITABLE_AREA_CLASSNAME as is, i as cs, ERROR_MESSAGE as ls, e as ft, CLIPBOARD_PROMPT as en, INPUT_PLACEHOLDER_TEXT_MOBILE as tn, INPUT_PLACEHOLDER_TEXT_ENTER as rn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as nn, isProbablyMobile as Ir, z as us, FOOTER_DISCLAIMERS as on, h as ao, isProbablyiPad as ds, INPUT_BOTTOM_OFFSET_EXTRA as an, INPUT_BOTTOM_OFFSET_IPHONE as ps, INPUT_BOTTOM_OFFSET_IPAD as ms, INPUT_BOTTOM_OFFSET as so, getLayoutPaddingClass as Er, ot as hs, O as fs, _ as gs, c as vs, setNewProvider as ys, TOAST_PROVIDER_CHANGED as _s, LOG_OUT as sn, E as io, Y as cn, useServerCapabilities as bs, getMessageContaintWrapperClass as ws, UI_FOOTER_BUFFER as co, UI_BUTTON_SCROLL_BUFFER as Is, Logo as Es, UI_DEFAULT_MAIN_HEIGHT as ln, isPWAMode as Ts, UI_DEFAULT_MAIN_HEIGHT_IPHONE as Ss, APP_CLASSNAME as xs, K as un, Z as ks, LOCAL_STORAGE_SORT as Cs, LOCAL_STORAGE_SEARCH as Ns, LOCAL_STORAGE_SORT_TIMESTAMP as zs, LOCAL_STORAGE_SORT_TOKEN_USAGE as As, TOAST_CACHE_ENABLED as Os, TOAST_CACHE_DISABLED as Ms } from "./index.DqTXCFGJ.js";
|
|
3
3
|
import * as ae from "react";
|
|
4
4
|
import it, { useRef as J, useEffect as $, useState as P, useCallback as B, useSyncExternalStore as Pt, createContext as $s, useContext as te, useId as lo, forwardRef as uo, useMemo as Ve, Suspense as Vt, lazy as Te, useReducer as kt, useLayoutEffect as Ps } from "react";
|
|
5
5
|
import M from "clsx";
|
|
@@ -84,7 +84,7 @@ function Xs(e, t) {
|
|
|
84
84
|
}, []);
|
|
85
85
|
return $(() => (a.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ks() {
|
|
88
88
|
const e = J(null), [t, r] = P(!1);
|
|
89
89
|
return { ref: B((n) => {
|
|
90
90
|
typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
|
|
@@ -100,7 +100,7 @@ const pn = (e, t) => {
|
|
|
100
100
|
typeof t == "function" ? t() : t
|
|
101
101
|
);
|
|
102
102
|
window.localStorage.setItem(e, r), So(e, r);
|
|
103
|
-
},
|
|
103
|
+
}, Qs = (e) => {
|
|
104
104
|
window.localStorage.removeItem(e), So(e, null);
|
|
105
105
|
}, mn = (e) => window.localStorage.getItem(e), ei = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
106
106
|
function rt({
|
|
@@ -111,7 +111,7 @@ function rt({
|
|
|
111
111
|
(i) => {
|
|
112
112
|
try {
|
|
113
113
|
const s = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
114
|
-
s == null ?
|
|
114
|
+
s == null ? Qs(e) : pn(e, s);
|
|
115
115
|
} catch (s) {
|
|
116
116
|
console.warn(s);
|
|
117
117
|
}
|
|
@@ -1301,7 +1301,7 @@ const Xi = (e) => (t, r, n, o) => {
|
|
|
1301
1301
|
throw Bo(s, o?.callee), s;
|
|
1302
1302
|
}
|
|
1303
1303
|
return i.value;
|
|
1304
|
-
},
|
|
1304
|
+
}, Ki = (e) => async (t, r, n, o) => {
|
|
1305
1305
|
const a = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
1306
1306
|
let i = t._zod.run({ value: r, issues: [] }, a);
|
|
1307
1307
|
if (i instanceof Promise && (i = await i), i.issues.length) {
|
|
@@ -1317,7 +1317,7 @@ const Xi = (e) => (t, r, n, o) => {
|
|
|
1317
1317
|
success: !1,
|
|
1318
1318
|
error: new (e ?? Vo)(a.issues.map((i) => Pe(i, o, $e())))
|
|
1319
1319
|
} : { success: !0, data: a.value };
|
|
1320
|
-
},
|
|
1320
|
+
}, Qi = /* @__PURE__ */ Ho(Fo), Jo = (e) => async (t, r, n) => {
|
|
1321
1321
|
const o = n ? Object.assign(n, { async: !0 }) : { async: !0 };
|
|
1322
1322
|
let a = t._zod.run({ value: r, issues: [] }, o);
|
|
1323
1323
|
return a instanceof Promise && (a = await a), a.issues.length ? {
|
|
@@ -1369,7 +1369,7 @@ const Ic = (e) => {
|
|
|
1369
1369
|
continue: !t.abort
|
|
1370
1370
|
});
|
|
1371
1371
|
};
|
|
1372
|
-
}),
|
|
1372
|
+
}), Ko = /* @__PURE__ */ y("$ZodCheckGreaterThan", (e, t) => {
|
|
1373
1373
|
ue.init(e, t);
|
|
1374
1374
|
const r = Yo[typeof t.value];
|
|
1375
1375
|
e._zod.onattach.push((n) => {
|
|
@@ -1692,7 +1692,7 @@ const jc = {
|
|
|
1692
1692
|
e["~standard"] = {
|
|
1693
1693
|
validate: (o) => {
|
|
1694
1694
|
try {
|
|
1695
|
-
const a =
|
|
1695
|
+
const a = Qi(e, o);
|
|
1696
1696
|
return a.success ? { value: a.data } : { issues: a.error?.issues };
|
|
1697
1697
|
} catch {
|
|
1698
1698
|
return ec(e, o).then((i) => i.success ? { value: i.data } : { issues: i.error?.issues });
|
|
@@ -1781,9 +1781,9 @@ const jc = {
|
|
|
1781
1781
|
t.pattern ?? (t.pattern = rc), W.init(e, t);
|
|
1782
1782
|
}), Xc = /* @__PURE__ */ y("$ZodULID", (e, t) => {
|
|
1783
1783
|
t.pattern ?? (t.pattern = nc), W.init(e, t);
|
|
1784
|
-
}),
|
|
1784
|
+
}), Kc = /* @__PURE__ */ y("$ZodXID", (e, t) => {
|
|
1785
1785
|
t.pattern ?? (t.pattern = oc), W.init(e, t);
|
|
1786
|
-
}),
|
|
1786
|
+
}), Qc = /* @__PURE__ */ y("$ZodKSUID", (e, t) => {
|
|
1787
1787
|
t.pattern ?? (t.pattern = ac), W.init(e, t);
|
|
1788
1788
|
}), el = /* @__PURE__ */ y("$ZodISODateTime", (e, t) => {
|
|
1789
1789
|
t.pattern ?? (t.pattern = wc(t)), W.init(e, t);
|
|
@@ -1840,7 +1840,7 @@ const jc = {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
};
|
|
1842
1842
|
});
|
|
1843
|
-
function
|
|
1843
|
+
function Qo(e) {
|
|
1844
1844
|
if (e === "")
|
|
1845
1845
|
return !0;
|
|
1846
1846
|
if (e.length % 4 !== 0)
|
|
@@ -1855,7 +1855,7 @@ const cl = /* @__PURE__ */ y("$ZodBase64", (e, t) => {
|
|
|
1855
1855
|
t.pattern ?? (t.pattern = gc), W.init(e, t), e._zod.onattach.push((r) => {
|
|
1856
1856
|
r._zod.bag.contentEncoding = "base64";
|
|
1857
1857
|
}), e._zod.check = (r) => {
|
|
1858
|
-
|
|
1858
|
+
Qo(r.value) || r.issues.push({
|
|
1859
1859
|
code: "invalid_format",
|
|
1860
1860
|
format: "base64",
|
|
1861
1861
|
input: r.value,
|
|
@@ -1868,7 +1868,7 @@ function ll(e) {
|
|
|
1868
1868
|
if (!Go.test(e))
|
|
1869
1869
|
return !1;
|
|
1870
1870
|
const t = e.replace(/[-_]/g, (n) => n === "-" ? "+" : "/"), r = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
|
|
1871
|
-
return
|
|
1871
|
+
return Qo(r);
|
|
1872
1872
|
}
|
|
1873
1873
|
const ul = /* @__PURE__ */ y("$ZodBase64URL", (e, t) => {
|
|
1874
1874
|
t.pattern ?? (t.pattern = Go), W.init(e, t), e._zod.onattach.push((r) => {
|
|
@@ -2613,7 +2613,7 @@ function Xl(e, t) {
|
|
|
2613
2613
|
...S(t)
|
|
2614
2614
|
});
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function Kl(e, t) {
|
|
2617
2617
|
return new e({
|
|
2618
2618
|
type: "string",
|
|
2619
2619
|
format: "ipv4",
|
|
@@ -2622,7 +2622,7 @@ function Ql(e, t) {
|
|
|
2622
2622
|
...S(t)
|
|
2623
2623
|
});
|
|
2624
2624
|
}
|
|
2625
|
-
function
|
|
2625
|
+
function Ql(e, t) {
|
|
2626
2626
|
return new e({
|
|
2627
2627
|
type: "string",
|
|
2628
2628
|
format: "ipv6",
|
|
@@ -2777,7 +2777,7 @@ function dr(e, t) {
|
|
|
2777
2777
|
});
|
|
2778
2778
|
}
|
|
2779
2779
|
function Nn(e, t) {
|
|
2780
|
-
return new
|
|
2780
|
+
return new Ko({
|
|
2781
2781
|
check: "greater_than",
|
|
2782
2782
|
...S(t),
|
|
2783
2783
|
value: e,
|
|
@@ -2785,7 +2785,7 @@ function Nn(e, t) {
|
|
|
2785
2785
|
});
|
|
2786
2786
|
}
|
|
2787
2787
|
function pr(e, t) {
|
|
2788
|
-
return new
|
|
2788
|
+
return new Ko({
|
|
2789
2789
|
check: "greater_than",
|
|
2790
2790
|
...S(t),
|
|
2791
2791
|
value: e,
|
|
@@ -3204,7 +3204,7 @@ class An {
|
|
|
3204
3204
|
}
|
|
3205
3205
|
}
|
|
3206
3206
|
const c = this.metadataRegistry.get(t);
|
|
3207
|
-
return c && Object.assign(s.schema, c), this.io === "input" &&
|
|
3207
|
+
return c && Object.assign(s.schema, c), this.io === "input" && Q(t) && (delete s.schema.examples, delete s.schema.default), this.io === "input" && s.schema._prefault && ((n = s.schema).default ?? (n.default = s.schema._prefault)), delete s.schema._prefault, this.seen.get(t).schema;
|
|
3208
3208
|
}
|
|
3209
3209
|
emit(t, r) {
|
|
3210
3210
|
const n = {
|
|
@@ -3342,7 +3342,7 @@ function Cu(e, t) {
|
|
|
3342
3342
|
const r = new An(t);
|
|
3343
3343
|
return r.process(e), r.emit(e, t);
|
|
3344
3344
|
}
|
|
3345
|
-
function
|
|
3345
|
+
function Q(e, t) {
|
|
3346
3346
|
const r = t ?? { seen: /* @__PURE__ */ new Set() };
|
|
3347
3347
|
if (r.seen.has(e))
|
|
3348
3348
|
return !1;
|
|
@@ -3368,52 +3368,52 @@ function K(e, t) {
|
|
|
3368
3368
|
case "template_literal":
|
|
3369
3369
|
return !1;
|
|
3370
3370
|
case "array":
|
|
3371
|
-
return
|
|
3371
|
+
return Q(o.element, r);
|
|
3372
3372
|
case "object": {
|
|
3373
3373
|
for (const a in o.shape)
|
|
3374
|
-
if (
|
|
3374
|
+
if (Q(o.shape[a], r))
|
|
3375
3375
|
return !0;
|
|
3376
3376
|
return !1;
|
|
3377
3377
|
}
|
|
3378
3378
|
case "union": {
|
|
3379
3379
|
for (const a of o.options)
|
|
3380
|
-
if (
|
|
3380
|
+
if (Q(a, r))
|
|
3381
3381
|
return !0;
|
|
3382
3382
|
return !1;
|
|
3383
3383
|
}
|
|
3384
3384
|
case "intersection":
|
|
3385
|
-
return
|
|
3385
|
+
return Q(o.left, r) || Q(o.right, r);
|
|
3386
3386
|
case "tuple": {
|
|
3387
3387
|
for (const a of o.items)
|
|
3388
|
-
if (
|
|
3388
|
+
if (Q(a, r))
|
|
3389
3389
|
return !0;
|
|
3390
|
-
return !!(o.rest &&
|
|
3390
|
+
return !!(o.rest && Q(o.rest, r));
|
|
3391
3391
|
}
|
|
3392
3392
|
case "record":
|
|
3393
|
-
return
|
|
3393
|
+
return Q(o.keyType, r) || Q(o.valueType, r);
|
|
3394
3394
|
case "map":
|
|
3395
|
-
return
|
|
3395
|
+
return Q(o.keyType, r) || Q(o.valueType, r);
|
|
3396
3396
|
case "set":
|
|
3397
|
-
return
|
|
3397
|
+
return Q(o.valueType, r);
|
|
3398
3398
|
// inner types
|
|
3399
3399
|
case "promise":
|
|
3400
3400
|
case "optional":
|
|
3401
3401
|
case "nonoptional":
|
|
3402
3402
|
case "nullable":
|
|
3403
3403
|
case "readonly":
|
|
3404
|
-
return
|
|
3404
|
+
return Q(o.innerType, r);
|
|
3405
3405
|
case "lazy":
|
|
3406
|
-
return
|
|
3406
|
+
return Q(o.getter(), r);
|
|
3407
3407
|
case "default":
|
|
3408
|
-
return
|
|
3408
|
+
return Q(o.innerType, r);
|
|
3409
3409
|
case "prefault":
|
|
3410
|
-
return
|
|
3410
|
+
return Q(o.innerType, r);
|
|
3411
3411
|
case "custom":
|
|
3412
3412
|
return !1;
|
|
3413
3413
|
case "transform":
|
|
3414
3414
|
return !0;
|
|
3415
3415
|
case "pipe":
|
|
3416
|
-
return
|
|
3416
|
+
return Q(o.in, r) || Q(o.out, r);
|
|
3417
3417
|
case "success":
|
|
3418
3418
|
return !1;
|
|
3419
3419
|
case "catch":
|
|
@@ -3472,7 +3472,7 @@ const Zu = (e, t) => {
|
|
|
3472
3472
|
});
|
|
3473
3473
|
}, tr = y("ZodError", Zu, {
|
|
3474
3474
|
Parent: Error
|
|
3475
|
-
}), Du = /* @__PURE__ */ Xi(tr), Lu = /* @__PURE__ */
|
|
3475
|
+
}), Du = /* @__PURE__ */ Xi(tr), Lu = /* @__PURE__ */ Ki(tr), Uu = /* @__PURE__ */ Ho(tr), sa = /* @__PURE__ */ Jo(tr), q = /* @__PURE__ */ y("ZodType", (e, t) => (j.init(e, t), e.def = t, Object.defineProperty(e, "_def", { value: t }), e.check = (...r) => e.clone(
|
|
3476
3476
|
{
|
|
3477
3477
|
...t,
|
|
3478
3478
|
checks: [
|
|
@@ -3481,7 +3481,7 @@ const Zu = (e, t) => {
|
|
|
3481
3481
|
]
|
|
3482
3482
|
}
|
|
3483
3483
|
// { parent: true }
|
|
3484
|
-
), e.clone = (r, n) => He(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Du(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Uu(e, r, n), e.parseAsync = async (r, n) => Lu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => sa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check($d(r, n)), e.superRefine = (r) => e.check(Pd(r)), e.overwrite = (r) => e.check(Et(r)), e.optional = () =>
|
|
3484
|
+
), e.clone = (r, n) => He(e, r, n), e.brand = () => e, e.register = ((r, n) => (r.add(e, n), e)), e.parse = (r, n) => Du(e, r, n, { callee: e.parse }), e.safeParse = (r, n) => Uu(e, r, n), e.parseAsync = async (r, n) => Lu(e, r, n, { callee: e.parseAsync }), e.safeParseAsync = async (r, n) => sa(e, r, n), e.spa = e.safeParseAsync, e.refine = (r, n) => e.check($d(r, n)), e.superRefine = (r) => e.check(Pd(r)), e.overwrite = (r) => e.check(Et(r)), e.optional = () => K(e), e.nullable = () => $n(e), e.nullish = () => K($n(e)), e.nonoptional = (r) => Td(e, r), e.array = () => Se(e), e.or = (r) => ee([e, r]), e.and = (r) => hd(e, r), e.transform = (r) => Pn(e, yd(r)), e.default = (r) => wd(e, r), e.prefault = (r) => Ed(e, r), e.catch = (r) => xd(e, r), e.pipe = (r) => Pn(e, r), e.readonly = () => Nd(e), e.describe = (r) => {
|
|
3485
3485
|
const n = e.clone();
|
|
3486
3486
|
return lt.add(n, { description: r }), n;
|
|
3487
3487
|
}, Object.defineProperty(e, "description", {
|
|
@@ -3499,7 +3499,7 @@ const Zu = (e, t) => {
|
|
|
3499
3499
|
const r = e._zod.bag;
|
|
3500
3500
|
e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, e.regex = (...n) => e.check(fu(...n)), e.includes = (...n) => e.check(yu(...n)), e.startsWith = (...n) => e.check(_u(...n)), e.endsWith = (...n) => e.check(bu(...n)), e.min = (...n) => e.check(Gt(...n)), e.max = (...n) => e.check(oa(...n)), e.length = (...n) => e.check(aa(...n)), e.nonempty = (...n) => e.check(Gt(1, ...n)), e.lowercase = (n) => e.check(gu(n)), e.uppercase = (n) => e.check(vu(n)), e.trim = () => e.check(Iu()), e.normalize = (...n) => e.check(wu(...n)), e.toLowerCase = () => e.check(Eu()), e.toUpperCase = () => e.check(Tu());
|
|
3501
3501
|
}), Bu = /* @__PURE__ */ y("ZodString", (e, t) => {
|
|
3502
|
-
Ur.init(e, t), ia.init(e, t), e.email = (r) => e.check(Ll(ju, r)), e.url = (r) => e.check(Fl(Vu, r)), e.jwt = (r) => e.check(ou(nd, r)), e.emoji = (r) => e.check(Hl(Fu, r)), e.guid = (r) => e.check(kn(On, r)), e.uuid = (r) => e.check(Ul(zt, r)), e.uuidv4 = (r) => e.check(Bl(zt, r)), e.uuidv6 = (r) => e.check(jl(zt, r)), e.uuidv7 = (r) => e.check(Vl(zt, r)), e.nanoid = (r) => e.check(Jl(Hu, r)), e.guid = (r) => e.check(kn(On, r)), e.cuid = (r) => e.check(Gl(Ju, r)), e.cuid2 = (r) => e.check(Wl(Gu, r)), e.ulid = (r) => e.check(ql(Wu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(ru(td, r)), e.xid = (r) => e.check(Yl(qu, r)), e.ksuid = (r) => e.check(Xl(Yu, r)), e.ipv4 = (r) => e.check(
|
|
3502
|
+
Ur.init(e, t), ia.init(e, t), e.email = (r) => e.check(Ll(ju, r)), e.url = (r) => e.check(Fl(Vu, r)), e.jwt = (r) => e.check(ou(nd, r)), e.emoji = (r) => e.check(Hl(Fu, r)), e.guid = (r) => e.check(kn(On, r)), e.uuid = (r) => e.check(Ul(zt, r)), e.uuidv4 = (r) => e.check(Bl(zt, r)), e.uuidv6 = (r) => e.check(jl(zt, r)), e.uuidv7 = (r) => e.check(Vl(zt, r)), e.nanoid = (r) => e.check(Jl(Hu, r)), e.guid = (r) => e.check(kn(On, r)), e.cuid = (r) => e.check(Gl(Ju, r)), e.cuid2 = (r) => e.check(Wl(Gu, r)), e.ulid = (r) => e.check(ql(Wu, r)), e.base64 = (r) => e.check(na(ca, r)), e.base64url = (r) => e.check(ru(td, r)), e.xid = (r) => e.check(Yl(qu, r)), e.ksuid = (r) => e.check(Xl(Yu, r)), e.ipv4 = (r) => e.check(Kl(Xu, r)), e.ipv6 = (r) => e.check(Ql(Ku, r)), e.cidrv4 = (r) => e.check(eu(Qu, r)), e.cidrv6 = (r) => e.check(tu(ed, r)), e.e164 = (r) => e.check(nu(rd, r)), e.datetime = (r) => e.check(zu(r)), e.date = (r) => e.check(Ou(r)), e.time = (r) => e.check($u(r)), e.duration = (r) => e.check(Ru(r));
|
|
3503
3503
|
});
|
|
3504
3504
|
function w(e) {
|
|
3505
3505
|
return Dl(Bu, e);
|
|
@@ -3525,14 +3525,14 @@ const Y = /* @__PURE__ */ y("ZodStringFormat", (e, t) => {
|
|
|
3525
3525
|
}), Wu = /* @__PURE__ */ y("ZodULID", (e, t) => {
|
|
3526
3526
|
Xc.init(e, t), Y.init(e, t);
|
|
3527
3527
|
}), qu = /* @__PURE__ */ y("ZodXID", (e, t) => {
|
|
3528
|
-
Qc.init(e, t), Y.init(e, t);
|
|
3529
|
-
}), Yu = /* @__PURE__ */ y("ZodKSUID", (e, t) => {
|
|
3530
3528
|
Kc.init(e, t), Y.init(e, t);
|
|
3529
|
+
}), Yu = /* @__PURE__ */ y("ZodKSUID", (e, t) => {
|
|
3530
|
+
Qc.init(e, t), Y.init(e, t);
|
|
3531
3531
|
}), Xu = /* @__PURE__ */ y("ZodIPv4", (e, t) => {
|
|
3532
3532
|
ol.init(e, t), Y.init(e, t);
|
|
3533
|
-
}),
|
|
3533
|
+
}), Ku = /* @__PURE__ */ y("ZodIPv6", (e, t) => {
|
|
3534
3534
|
al.init(e, t), Y.init(e, t);
|
|
3535
|
-
}),
|
|
3535
|
+
}), Qu = /* @__PURE__ */ y("ZodCIDRv4", (e, t) => {
|
|
3536
3536
|
sl.init(e, t), Y.init(e, t);
|
|
3537
3537
|
}), ed = /* @__PURE__ */ y("ZodCIDRv6", (e, t) => {
|
|
3538
3538
|
il.init(e, t), Y.init(e, t);
|
|
@@ -3745,7 +3745,7 @@ function yd(e) {
|
|
|
3745
3745
|
const pa = /* @__PURE__ */ y("ZodOptional", (e, t) => {
|
|
3746
3746
|
kl.init(e, t), q.init(e, t), e.unwrap = () => e._zod.def.innerType;
|
|
3747
3747
|
});
|
|
3748
|
-
function
|
|
3748
|
+
function K(e) {
|
|
3749
3749
|
return new pa({
|
|
3750
3750
|
type: "optional",
|
|
3751
3751
|
innerType: e
|
|
@@ -4079,13 +4079,13 @@ function Xd(e) {
|
|
|
4079
4079
|
}
|
|
4080
4080
|
return t;
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function Kd() {
|
|
4083
4083
|
return { type: "boolean" };
|
|
4084
4084
|
}
|
|
4085
4085
|
function ha(e, t) {
|
|
4086
4086
|
return L(e.type._def, t);
|
|
4087
4087
|
}
|
|
4088
|
-
var
|
|
4088
|
+
var Qd = (e, t) => L(e.innerType._def, t);
|
|
4089
4089
|
function fa(e, t, r) {
|
|
4090
4090
|
const n = r ?? t.dateStrategy;
|
|
4091
4091
|
if (Array.isArray(n))
|
|
@@ -4743,7 +4743,7 @@ var kp = (e, t) => L(e.innerType._def, t), Cp = (e, t, r) => {
|
|
|
4743
4743
|
case z.ZodBigInt:
|
|
4744
4744
|
return Xd(e);
|
|
4745
4745
|
case z.ZodBoolean:
|
|
4746
|
-
return
|
|
4746
|
+
return Kd();
|
|
4747
4747
|
case z.ZodDate:
|
|
4748
4748
|
return fa(e, r);
|
|
4749
4749
|
case z.ZodUndefined:
|
|
@@ -4795,7 +4795,7 @@ var kp = (e, t) => L(e.innerType._def, t), Cp = (e, t, r) => {
|
|
|
4795
4795
|
case z.ZodReadonly:
|
|
4796
4796
|
return kp(e, r);
|
|
4797
4797
|
case z.ZodCatch:
|
|
4798
|
-
return
|
|
4798
|
+
return Qd(e, r);
|
|
4799
4799
|
case z.ZodPipeline:
|
|
4800
4800
|
return wp(e, r);
|
|
4801
4801
|
case z.ZodFunction:
|
|
@@ -5261,7 +5261,7 @@ var Xp = ee([
|
|
|
5261
5261
|
messageMetadata: H()
|
|
5262
5262
|
})
|
|
5263
5263
|
]);
|
|
5264
|
-
function
|
|
5264
|
+
function Kp(e) {
|
|
5265
5265
|
return e.type.startsWith("data-");
|
|
5266
5266
|
}
|
|
5267
5267
|
function Sa(e, t) {
|
|
@@ -5285,7 +5285,7 @@ function Sa(e, t) {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
return r;
|
|
5287
5287
|
}
|
|
5288
|
-
function
|
|
5288
|
+
function Qp(e) {
|
|
5289
5289
|
const t = ["ROOT"];
|
|
5290
5290
|
let r = -1, n = null;
|
|
5291
5291
|
function o(u, c, p) {
|
|
@@ -5537,7 +5537,7 @@ async function xa(e) {
|
|
|
5537
5537
|
if (e === void 0)
|
|
5538
5538
|
return { value: void 0, state: "undefined-input" };
|
|
5539
5539
|
let t = await Yt({ text: e });
|
|
5540
|
-
return t.success ? { value: t.value, state: "successful-parse" } : (t = await Yt({ text:
|
|
5540
|
+
return t.success ? { value: t.value, state: "successful-parse" } : (t = await Yt({ text: Qp(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
|
|
5541
5541
|
}
|
|
5542
5542
|
function Rt(e) {
|
|
5543
5543
|
return e.type.startsWith("tool-");
|
|
@@ -5875,7 +5875,7 @@ function rm({
|
|
|
5875
5875
|
break;
|
|
5876
5876
|
}
|
|
5877
5877
|
default:
|
|
5878
|
-
if (
|
|
5878
|
+
if (Kp(s)) {
|
|
5879
5879
|
r?.[s.type] != null && await Rn({
|
|
5880
5880
|
value: s.data,
|
|
5881
5881
|
schema: r[s.type]
|
|
@@ -6016,27 +6016,27 @@ var sm = () => ({
|
|
|
6016
6016
|
name: w(),
|
|
6017
6017
|
version: w()
|
|
6018
6018
|
}), Hr = nt({
|
|
6019
|
-
_meta:
|
|
6019
|
+
_meta: K(N({}).loose())
|
|
6020
6020
|
}), bt = Hr, lm = N({
|
|
6021
6021
|
method: w(),
|
|
6022
|
-
params:
|
|
6022
|
+
params: K(Hr)
|
|
6023
6023
|
}), um = nt({
|
|
6024
|
-
experimental:
|
|
6025
|
-
logging:
|
|
6026
|
-
prompts:
|
|
6024
|
+
experimental: K(N({}).loose()),
|
|
6025
|
+
logging: K(N({}).loose()),
|
|
6026
|
+
prompts: K(
|
|
6027
6027
|
nt({
|
|
6028
|
-
listChanged:
|
|
6028
|
+
listChanged: K(X())
|
|
6029
6029
|
})
|
|
6030
6030
|
),
|
|
6031
|
-
resources:
|
|
6031
|
+
resources: K(
|
|
6032
6032
|
nt({
|
|
6033
|
-
subscribe:
|
|
6034
|
-
listChanged:
|
|
6033
|
+
subscribe: K(X()),
|
|
6034
|
+
listChanged: K(X())
|
|
6035
6035
|
})
|
|
6036
6036
|
),
|
|
6037
|
-
tools:
|
|
6037
|
+
tools: K(
|
|
6038
6038
|
nt({
|
|
6039
|
-
listChanged:
|
|
6039
|
+
listChanged: K(X())
|
|
6040
6040
|
})
|
|
6041
6041
|
)
|
|
6042
6042
|
});
|
|
@@ -6044,16 +6044,16 @@ bt.extend({
|
|
|
6044
6044
|
protocolVersion: w(),
|
|
6045
6045
|
capabilities: um,
|
|
6046
6046
|
serverInfo: cm,
|
|
6047
|
-
instructions:
|
|
6047
|
+
instructions: K(w())
|
|
6048
6048
|
});
|
|
6049
6049
|
var dm = bt.extend({
|
|
6050
|
-
nextCursor:
|
|
6050
|
+
nextCursor: K(w())
|
|
6051
6051
|
}), pm = N({
|
|
6052
6052
|
name: w(),
|
|
6053
|
-
description:
|
|
6053
|
+
description: K(w()),
|
|
6054
6054
|
inputSchema: N({
|
|
6055
6055
|
type: T("object"),
|
|
6056
|
-
properties:
|
|
6056
|
+
properties: K(N({}).loose())
|
|
6057
6057
|
}).loose()
|
|
6058
6058
|
}).loose();
|
|
6059
6059
|
dm.extend({
|
|
@@ -6074,7 +6074,7 @@ var mm = N({
|
|
|
6074
6074
|
/**
|
|
6075
6075
|
* The MIME type of this resource, if known.
|
|
6076
6076
|
*/
|
|
6077
|
-
mimeType:
|
|
6077
|
+
mimeType: K(w())
|
|
6078
6078
|
}).loose(), fm = ka.extend({
|
|
6079
6079
|
text: w()
|
|
6080
6080
|
}), gm = ka.extend({
|
|
@@ -6106,14 +6106,14 @@ var nr = "2.0", ym = N({
|
|
|
6106
6106
|
error: N({
|
|
6107
6107
|
code: yt().int(),
|
|
6108
6108
|
message: w(),
|
|
6109
|
-
data:
|
|
6109
|
+
data: K(H())
|
|
6110
6110
|
})
|
|
6111
6111
|
}).strict(), wm = N({
|
|
6112
6112
|
jsonrpc: T(nr)
|
|
6113
6113
|
}).merge(
|
|
6114
6114
|
N({
|
|
6115
6115
|
method: w(),
|
|
6116
|
-
params:
|
|
6116
|
+
params: K(Hr)
|
|
6117
6117
|
})
|
|
6118
6118
|
).strict();
|
|
6119
6119
|
ee([
|
|
@@ -6641,7 +6641,7 @@ const Ca = async () => (gr || (gr = import(
|
|
|
6641
6641
|
"./index.790ujKXR.js"
|
|
6642
6642
|
)), gr), Na = async () => (vr || (vr = import(
|
|
6643
6643
|
/* webpackChunkName: "toast-utilities" */
|
|
6644
|
-
"./index.
|
|
6644
|
+
"./index.DqTXCFGJ.js"
|
|
6645
6645
|
).then((e) => e.utilities)), vr), Dm = async () => {
|
|
6646
6646
|
try {
|
|
6647
6647
|
await Promise.all([Ca(), Na()]);
|
|
@@ -6663,7 +6663,7 @@ const Ca = async () => (gr || (gr = import(
|
|
|
6663
6663
|
}, 100);
|
|
6664
6664
|
} catch {
|
|
6665
6665
|
}
|
|
6666
|
-
}, Xt = (e, t) => za(e, "success", t), Mf = (e, t) => za(e, "error", t), ht = "FOOTER_BOTTOM",
|
|
6666
|
+
}, Xt = (e, t) => za(e, "success", t), Mf = (e, t) => za(e, "error", t), ht = "FOOTER_BOTTOM", Kt = "FOOTER_TOP", Zt = "APP_SET_FOOTER_POSITION", Aa = "APP_SET_FOOTER_HEIGHT", Lm = (e, t) => {
|
|
6667
6667
|
switch (t.type) {
|
|
6668
6668
|
case Zt:
|
|
6669
6669
|
return {
|
|
@@ -6733,13 +6733,13 @@ const Ca = async () => (gr || (gr = import(
|
|
|
6733
6733
|
}
|
|
6734
6734
|
}, Bm = (e, t) => {
|
|
6735
6735
|
switch (t?.type) {
|
|
6736
|
-
case
|
|
6736
|
+
case Qa:
|
|
6737
6737
|
return {
|
|
6738
6738
|
searchString: t.payload.searchString,
|
|
6739
6739
|
sortedCell: e.sortedCell,
|
|
6740
6740
|
sortDirection: e.sortDirection
|
|
6741
6741
|
};
|
|
6742
|
-
case
|
|
6742
|
+
case Ka: {
|
|
6743
6743
|
const r = t.payload.sortDirection, n = r === at.ASC || r === at.DESC ? r : at.DESC;
|
|
6744
6744
|
return {
|
|
6745
6745
|
searchString: e.searchString,
|
|
@@ -6800,19 +6800,19 @@ var $a = (e, t, r) => {
|
|
|
6800
6800
|
function Gm(e, t) {
|
|
6801
6801
|
return t != null ? Jm(e, t) : e;
|
|
6802
6802
|
}
|
|
6803
|
-
var me, Dt, Lt, ut, dt, pt,
|
|
6803
|
+
var me, Dt, Lt, ut, dt, pt, Ke, zr, Ar, Wm = class {
|
|
6804
6804
|
constructor(e = []) {
|
|
6805
6805
|
we(this, me, void 0), we(this, Dt, "ready"), we(this, Lt, void 0), we(this, ut, /* @__PURE__ */ new Set()), we(this, dt, /* @__PURE__ */ new Set()), we(this, pt, /* @__PURE__ */ new Set()), this.pushMessage = (t) => {
|
|
6806
|
-
ze(this, me, F(this, me).concat(t)), F(this,
|
|
6806
|
+
ze(this, me, F(this, me).concat(t)), F(this, Ke).call(this);
|
|
6807
6807
|
}, this.popMessage = () => {
|
|
6808
|
-
ze(this, me, F(this, me).slice(0, -1)), F(this,
|
|
6808
|
+
ze(this, me, F(this, me).slice(0, -1)), F(this, Ke).call(this);
|
|
6809
6809
|
}, this.replaceMessage = (t, r) => {
|
|
6810
6810
|
ze(this, me, [
|
|
6811
6811
|
...F(this, me).slice(0, t),
|
|
6812
6812
|
// We deep clone the message here to ensure the new React Compiler (currently in RC) detects deeply nested parts/metadata changes:
|
|
6813
6813
|
this.snapshot(r),
|
|
6814
6814
|
...F(this, me).slice(t + 1)
|
|
6815
|
-
]), F(this,
|
|
6815
|
+
]), F(this, Ke).call(this);
|
|
6816
6816
|
}, this.snapshot = (t) => structuredClone(t), this["~registerMessagesCallback"] = (t, r) => {
|
|
6817
6817
|
const n = r ? Gm(t, r) : t;
|
|
6818
6818
|
return F(this, ut).add(n), () => {
|
|
@@ -6822,7 +6822,7 @@ var me, Dt, Lt, ut, dt, pt, Qe, zr, Ar, Wm = class {
|
|
|
6822
6822
|
F(this, dt).delete(t);
|
|
6823
6823
|
}), this["~registerErrorCallback"] = (t) => (F(this, pt).add(t), () => {
|
|
6824
6824
|
F(this, pt).delete(t);
|
|
6825
|
-
}), we(this,
|
|
6825
|
+
}), we(this, Ke, () => {
|
|
6826
6826
|
F(this, ut).forEach((t) => t());
|
|
6827
6827
|
}), we(this, zr, () => {
|
|
6828
6828
|
F(this, dt).forEach((t) => t());
|
|
@@ -6846,7 +6846,7 @@ var me, Dt, Lt, ut, dt, pt, Qe, zr, Ar, Wm = class {
|
|
|
6846
6846
|
return F(this, me);
|
|
6847
6847
|
}
|
|
6848
6848
|
set messages(e) {
|
|
6849
|
-
ze(this, me, [...e]), F(this,
|
|
6849
|
+
ze(this, me, [...e]), F(this, Ke).call(this);
|
|
6850
6850
|
}
|
|
6851
6851
|
};
|
|
6852
6852
|
me = /* @__PURE__ */ new WeakMap();
|
|
@@ -6855,16 +6855,16 @@ Lt = /* @__PURE__ */ new WeakMap();
|
|
|
6855
6855
|
ut = /* @__PURE__ */ new WeakMap();
|
|
6856
6856
|
dt = /* @__PURE__ */ new WeakMap();
|
|
6857
6857
|
pt = /* @__PURE__ */ new WeakMap();
|
|
6858
|
-
|
|
6858
|
+
Ke = /* @__PURE__ */ new WeakMap();
|
|
6859
6859
|
zr = /* @__PURE__ */ new WeakMap();
|
|
6860
6860
|
Ar = /* @__PURE__ */ new WeakMap();
|
|
6861
|
-
var
|
|
6861
|
+
var Qe, Fn = class extends Tm {
|
|
6862
6862
|
constructor({ messages: e, ...t }) {
|
|
6863
6863
|
const r = new Wm(e);
|
|
6864
|
-
super({ ...t, state: r }), we(this,
|
|
6864
|
+
super({ ...t, state: r }), we(this, Qe, void 0), this["~registerMessagesCallback"] = (n, o) => F(this, Qe)["~registerMessagesCallback"](n, o), this["~registerStatusCallback"] = (n) => F(this, Qe)["~registerStatusCallback"](n), this["~registerErrorCallback"] = (n) => F(this, Qe)["~registerErrorCallback"](n), ze(this, Qe, r);
|
|
6865
6865
|
}
|
|
6866
6866
|
};
|
|
6867
|
-
|
|
6867
|
+
Qe = /* @__PURE__ */ new WeakMap();
|
|
6868
6868
|
function qm({
|
|
6869
6869
|
experimental_throttle: e,
|
|
6870
6870
|
resume: t = !1,
|
|
@@ -7009,7 +7009,7 @@ const Jn = ({
|
|
|
7009
7009
|
};
|
|
7010
7010
|
}
|
|
7011
7011
|
}, []), r && _r ? /* @__PURE__ */ l(_r, { containerId: e, ...t }) : null;
|
|
7012
|
-
}, Xm = "z-20",
|
|
7012
|
+
}, Xm = "z-20", Km = "z-10", Gr = it.createContext({
|
|
7013
7013
|
state: {
|
|
7014
7014
|
searchString: "",
|
|
7015
7015
|
sortedCell: "",
|
|
@@ -7043,13 +7043,13 @@ const Jn = ({
|
|
|
7043
7043
|
}
|
|
7044
7044
|
}), qr = it.createContext({
|
|
7045
7045
|
state: {
|
|
7046
|
-
footerPosition:
|
|
7046
|
+
footerPosition: Kt,
|
|
7047
7047
|
footerHeight: 0,
|
|
7048
7048
|
footerOffset: 0
|
|
7049
7049
|
},
|
|
7050
7050
|
dispatch: () => {
|
|
7051
7051
|
}
|
|
7052
|
-
}),
|
|
7052
|
+
}), Qm = "av-tooltip", eh = "av-tooltip-arrow", Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, th = () => M("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), Gn = ({
|
|
7053
7053
|
mode: e
|
|
7054
7054
|
}) => M({
|
|
7055
7055
|
"bg-surface-darker": e === "dark" || e === "system",
|
|
@@ -7070,7 +7070,7 @@ const Jn = ({
|
|
|
7070
7070
|
arrowClassName: n
|
|
7071
7071
|
}) => {
|
|
7072
7072
|
const o = M("relative inline-block", t), a = M(
|
|
7073
|
-
|
|
7073
|
+
Qm,
|
|
7074
7074
|
th(),
|
|
7075
7075
|
Gn({ mode: e }),
|
|
7076
7076
|
rh({ mode: e }),
|
|
@@ -7320,7 +7320,7 @@ const ch = ({
|
|
|
7320
7320
|
)
|
|
7321
7321
|
}
|
|
7322
7322
|
);
|
|
7323
|
-
},
|
|
7323
|
+
}, Qt = (e) => {
|
|
7324
7324
|
const { check: t } = no();
|
|
7325
7325
|
return t(e);
|
|
7326
7326
|
}, lh = "av-messagebox", uh = "av-panel", dh = ({
|
|
@@ -7771,7 +7771,7 @@ const Fe = ({
|
|
|
7771
7771
|
}) => {
|
|
7772
7772
|
const d = /* @__PURE__ */ x(wr, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
7773
7773
|
/* @__PURE__ */ l(et, { children: !a && /* @__PURE__ */ l(
|
|
7774
|
-
|
|
7774
|
+
Qr,
|
|
7775
7775
|
{
|
|
7776
7776
|
noBorder: !0,
|
|
7777
7777
|
mode: "dark",
|
|
@@ -7784,7 +7784,7 @@ const Fe = ({
|
|
|
7784
7784
|
}
|
|
7785
7785
|
) }),
|
|
7786
7786
|
/* @__PURE__ */ l(et, { children: /* @__PURE__ */ l(
|
|
7787
|
-
|
|
7787
|
+
Qr,
|
|
7788
7788
|
{
|
|
7789
7789
|
noBorder: !0,
|
|
7790
7790
|
mode: "dark",
|
|
@@ -7844,7 +7844,7 @@ const Fe = ({
|
|
|
7844
7844
|
} = te(be), [u, c] = P(!1), [p, d] = P(!1), [f, v] = P(!1), [m, h] = rt({
|
|
7845
7845
|
key: tt + ts,
|
|
7846
7846
|
initialValue: ""
|
|
7847
|
-
}), g =
|
|
7847
|
+
}), g = Qt(jt.TOOL.MEMORIES), { data: I, isSuccess: _ } = Ze({
|
|
7848
7848
|
user: r?.username,
|
|
7849
7849
|
getAccessToken: t
|
|
7850
7850
|
}), E = (C) => {
|
|
@@ -8613,10 +8613,10 @@ const Rh = (e) => {
|
|
|
8613
8613
|
" ",
|
|
8614
8614
|
Ut(Mr)
|
|
8615
8615
|
] })
|
|
8616
|
-
] }), Ba = 24, Xh = 500, ja = 2,
|
|
8617
|
-
e.current && (e.current.style.height = `${
|
|
8616
|
+
] }), Ba = 24, Xh = 500, ja = 2, Kh = 5, Qh = Ba * ja, Xn = Kh * Ba, ef = "ready", tf = "streaming", rf = "error", nf = "submitted", Mt = (e) => {
|
|
8617
|
+
e.current && (e.current.style.height = `${Qh}px`);
|
|
8618
8618
|
}, of = () => {
|
|
8619
|
-
const { user: e, getAccessToken: t } = _e(), r =
|
|
8619
|
+
const { user: e, getAccessToken: t } = _e(), r = Qt(jt.ADDON.ATTACHMENTS), n = Qt(jt.ADDON.REASONING), [o, a] = P(null), [i, s] = P(!1), [u, c] = P(!1), {
|
|
8620
8620
|
dispatch: p,
|
|
8621
8621
|
state: {
|
|
8622
8622
|
reasoning: d,
|
|
@@ -8783,7 +8783,7 @@ const Rh = (e) => {
|
|
|
8783
8783
|
}), O.current && (O.current.value = "");
|
|
8784
8784
|
}, Ya = B(() => {
|
|
8785
8785
|
O.current && (O.current.value = ""), a(null);
|
|
8786
|
-
}, []),
|
|
8786
|
+
}, []), Kr = async (D) => {
|
|
8787
8787
|
D.preventDefault(), Mt(U);
|
|
8788
8788
|
const re = await t();
|
|
8789
8789
|
let ne;
|
|
@@ -8855,7 +8855,7 @@ const Rh = (e) => {
|
|
|
8855
8855
|
children: /* @__PURE__ */ l("p", { className: "m-0", children: k.current })
|
|
8856
8856
|
}
|
|
8857
8857
|
),
|
|
8858
|
-
/* @__PURE__ */ l("div", { className: de.wrapper, ref: We, children: /* @__PURE__ */ x("form", { onSubmit:
|
|
8858
|
+
/* @__PURE__ */ l("div", { className: de.wrapper, ref: We, children: /* @__PURE__ */ x("form", { onSubmit: Kr, children: [
|
|
8859
8859
|
/* @__PURE__ */ l("div", { id: qe, className: "sr-only", children: Ir() ? tn : u ? rn : nn }),
|
|
8860
8860
|
/* @__PURE__ */ x("div", { className: "relative", children: [
|
|
8861
8861
|
/* @__PURE__ */ l(
|
|
@@ -8869,7 +8869,7 @@ const Rh = (e) => {
|
|
|
8869
8869
|
onChange: Xa,
|
|
8870
8870
|
value: ce,
|
|
8871
8871
|
onKeyDown: qs([
|
|
8872
|
-
[u ? "enter" : "mod+Enter",
|
|
8872
|
+
[u ? "enter" : "mod+Enter", Kr]
|
|
8873
8873
|
]),
|
|
8874
8874
|
className: de.textArea,
|
|
8875
8875
|
"aria-labelledby": qe
|
|
@@ -8929,7 +8929,7 @@ const Rh = (e) => {
|
|
|
8929
8929
|
if (!d || !d.current)
|
|
8930
8930
|
return;
|
|
8931
8931
|
const I = d?.current?.style.getPropertyValue($t);
|
|
8932
|
-
if (a ===
|
|
8932
|
+
if (a === Kt && (t && !r || n) && I !== `${g}px` && (i({
|
|
8933
8933
|
type: Zt,
|
|
8934
8934
|
payload: {
|
|
8935
8935
|
footerPosition: ht,
|
|
@@ -8952,7 +8952,7 @@ const Rh = (e) => {
|
|
|
8952
8952
|
I !== `${_}px` && Number(_) > 0 && (i({
|
|
8953
8953
|
type: Zt,
|
|
8954
8954
|
payload: {
|
|
8955
|
-
footerPosition:
|
|
8955
|
+
footerPosition: Kt,
|
|
8956
8956
|
footerOffset: Number(_)
|
|
8957
8957
|
}
|
|
8958
8958
|
}), d?.current?.style.setProperty(
|
|
@@ -9092,38 +9092,38 @@ const Rh = (e) => {
|
|
|
9092
9092
|
}, cf = Te(
|
|
9093
9093
|
() => import(
|
|
9094
9094
|
/* webpackChunkName: "modal-chunk" */
|
|
9095
|
-
"./ProfileEntry.
|
|
9095
|
+
"./ProfileEntry.Cf4tcjoj.js"
|
|
9096
9096
|
).then((e) => ({
|
|
9097
9097
|
default: e.Profile
|
|
9098
9098
|
}))
|
|
9099
9099
|
), lf = Te(
|
|
9100
9100
|
() => import(
|
|
9101
9101
|
/* webpackChunkName: "modal-chunk" */
|
|
9102
|
-
"./SettingsEntry.
|
|
9102
|
+
"./SettingsEntry.BeBSUqx6.js"
|
|
9103
9103
|
).then((e) => ({
|
|
9104
9104
|
default: e.SettingsPanel
|
|
9105
9105
|
}))
|
|
9106
9106
|
), uf = Te(
|
|
9107
9107
|
() => import(
|
|
9108
9108
|
/* webpackChunkName: "modal-chunk" */
|
|
9109
|
-
"./HistoryEntry.
|
|
9109
|
+
"./HistoryEntry.kMPC-6lA.js"
|
|
9110
9110
|
).then((e) => ({
|
|
9111
9111
|
default: e.HistoryPanel
|
|
9112
9112
|
}))
|
|
9113
9113
|
), df = Te(
|
|
9114
9114
|
() => import(
|
|
9115
9115
|
/* webpackChunkName: "modal-chunk" */
|
|
9116
|
-
"./AboutEntry.
|
|
9116
|
+
"./AboutEntry.CSTnhS8V.js"
|
|
9117
9117
|
).then((e) => ({ default: e.About }))
|
|
9118
9118
|
), pf = Te(
|
|
9119
9119
|
() => import(
|
|
9120
9120
|
/* webpackChunkName: "modal-chunk" */
|
|
9121
|
-
"./UsageEntry.
|
|
9121
|
+
"./UsageEntry.DQIU0kzt.js"
|
|
9122
9122
|
).then((e) => ({ default: e.Usage }))
|
|
9123
9123
|
), mf = Te(
|
|
9124
9124
|
() => import(
|
|
9125
9125
|
/* webpackChunkName: "modal-chunk" */
|
|
9126
|
-
"./UserMemoriesPanel.
|
|
9126
|
+
"./UserMemoriesPanel.DSSLiVHt.js"
|
|
9127
9127
|
).then(
|
|
9128
9128
|
(e) => ({ default: e.default })
|
|
9129
9129
|
)
|
|
@@ -9163,7 +9163,7 @@ const Rh = (e) => {
|
|
|
9163
9163
|
const { logout: t, getAccessToken: r, user: n } = _e(), { data: o, isSuccess: a } = Ze({
|
|
9164
9164
|
user: n?.username,
|
|
9165
9165
|
getAccessToken: r
|
|
9166
|
-
}), [i, s] = P(null), [u, c] = P(!1), [p, d] = P(!1), [f, v] = P(!1), m =
|
|
9166
|
+
}), [i, s] = P(null), [u, c] = P(!1), [p, d] = P(!1), [f, v] = P(!1), m = Qt(jt.TOOL.MEMORIES);
|
|
9167
9167
|
$(() => {
|
|
9168
9168
|
a && o && m && v(o?.useMemory ?? !1);
|
|
9169
9169
|
}, [a, o, m]);
|
|
@@ -9171,23 +9171,23 @@ const Rh = (e) => {
|
|
|
9171
9171
|
p || Promise.all([
|
|
9172
9172
|
import(
|
|
9173
9173
|
/* webpackChunkName: "modal-chunk" */
|
|
9174
|
-
"./ProfileEntry.
|
|
9174
|
+
"./ProfileEntry.Cf4tcjoj.js"
|
|
9175
9175
|
),
|
|
9176
9176
|
import(
|
|
9177
9177
|
/* webpackChunkName: "modal-chunk" */
|
|
9178
|
-
"./SettingsEntry.
|
|
9178
|
+
"./SettingsEntry.BeBSUqx6.js"
|
|
9179
9179
|
),
|
|
9180
9180
|
import(
|
|
9181
9181
|
/* webpackChunkName: "modal-chunk" */
|
|
9182
|
-
"./HistoryEntry.
|
|
9182
|
+
"./HistoryEntry.kMPC-6lA.js"
|
|
9183
9183
|
),
|
|
9184
9184
|
import(
|
|
9185
9185
|
/* webpackChunkName: "modal-chunk" */
|
|
9186
|
-
"./AboutEntry.
|
|
9186
|
+
"./AboutEntry.CSTnhS8V.js"
|
|
9187
9187
|
),
|
|
9188
9188
|
import(
|
|
9189
9189
|
/* webpackChunkName: "modal-chunk" */
|
|
9190
|
-
"./UsageEntry.
|
|
9190
|
+
"./UsageEntry.DQIU0kzt.js"
|
|
9191
9191
|
)
|
|
9192
9192
|
]).finally(() => d(!0));
|
|
9193
9193
|
}, [p]), g = B((b) => {
|
|
@@ -9351,7 +9351,7 @@ const Rh = (e) => {
|
|
|
9351
9351
|
{
|
|
9352
9352
|
style: { bottom: `${t}px` },
|
|
9353
9353
|
className: n || M(
|
|
9354
|
-
|
|
9354
|
+
Km,
|
|
9355
9355
|
"fixed left-1/2 transform -translate-x-1/2 isolate"
|
|
9356
9356
|
),
|
|
9357
9357
|
children: /* @__PURE__ */ l(
|
|
@@ -9385,14 +9385,14 @@ const Rh = (e) => {
|
|
|
9385
9385
|
}
|
|
9386
9386
|
)
|
|
9387
9387
|
}
|
|
9388
|
-
) : null,
|
|
9388
|
+
) : null, Kn = "av-spinner", Va = ({
|
|
9389
9389
|
spinnerRef: e,
|
|
9390
9390
|
mode: t = "system",
|
|
9391
9391
|
type: r = "circle",
|
|
9392
9392
|
className: n
|
|
9393
9393
|
}) => {
|
|
9394
9394
|
const o = r === "circle" ? M(
|
|
9395
|
-
|
|
9395
|
+
Kn,
|
|
9396
9396
|
"h-8 w-8",
|
|
9397
9397
|
"align-[-0.125em]",
|
|
9398
9398
|
"border-4",
|
|
@@ -9404,7 +9404,7 @@ const Rh = (e) => {
|
|
|
9404
9404
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
|
9405
9405
|
},
|
|
9406
9406
|
n
|
|
9407
|
-
) : M(
|
|
9407
|
+
) : M(Kn, n), a = M("av-spinner__dot", {
|
|
9408
9408
|
"fill-copy-dark": t === "dark",
|
|
9409
9409
|
"fill-copy-accent": t === "light",
|
|
9410
9410
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
@@ -9433,18 +9433,18 @@ try {
|
|
|
9433
9433
|
} catch {
|
|
9434
9434
|
}
|
|
9435
9435
|
const yf = Te(
|
|
9436
|
-
() => import("./index.
|
|
9436
|
+
() => import("./index.CGFySwFw.js").then((e) => ({ default: e.Bubble }))
|
|
9437
9437
|
), Yr = (e) => /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(yf, { ...e }) });
|
|
9438
9438
|
Yr.displayName = "AsyncBubble";
|
|
9439
|
-
const
|
|
9439
|
+
const Qn = 1, _f = 150, bf = Te(
|
|
9440
9440
|
() => import(
|
|
9441
9441
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
9442
|
-
"./ChatBubbleAssistant.
|
|
9442
|
+
"./ChatBubbleAssistant.440b52to.js"
|
|
9443
9443
|
)
|
|
9444
9444
|
), wf = Te(
|
|
9445
9445
|
() => import(
|
|
9446
9446
|
/* webpackChunkName: "LazyMessageUser" */
|
|
9447
|
-
"./ChatBubbleUser.
|
|
9447
|
+
"./ChatBubbleUser.Btv6do4Q.js"
|
|
9448
9448
|
)
|
|
9449
9449
|
), If = it.memo(
|
|
9450
9450
|
({
|
|
@@ -9459,7 +9459,7 @@ const Kn = 1, _f = 150, bf = Te(
|
|
|
9459
9459
|
() => o && (a === "streaming" || a === "submitted")
|
|
9460
9460
|
);
|
|
9461
9461
|
return $(() => {
|
|
9462
|
-
if (o && i && t && t.trim().length >=
|
|
9462
|
+
if (o && i && t && t.trim().length >= Qn) {
|
|
9463
9463
|
const d = Date.now() - u.current, f = _f - d;
|
|
9464
9464
|
if (f > 0) {
|
|
9465
9465
|
const v = setTimeout(
|
|
@@ -9470,7 +9470,7 @@ const Kn = 1, _f = 150, bf = Te(
|
|
|
9470
9470
|
}
|
|
9471
9471
|
s(!1);
|
|
9472
9472
|
}
|
|
9473
|
-
}, [t, i, o]), e === io && t ? /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(wf, { content: t }) }) : (e === ft || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ l(Yr, { tail: !0, children: /* @__PURE__ */ l(Va, { type: "dots" }) }) : (e === ft || e === cn) && t && t.trim().length >=
|
|
9473
|
+
}, [t, i, o]), e === io && t ? /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(wf, { content: t }) }) : (e === ft || e === cn) && o && (a === "submitted" || a === "streaming") && i ? /* @__PURE__ */ l(Yr, { tail: !0, children: /* @__PURE__ */ l(Va, { type: "dots" }) }) : (e === ft || e === cn) && t && t.trim().length >= Qn ? /* @__PURE__ */ l(Vt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
|
|
9474
9474
|
bf,
|
|
9475
9475
|
{
|
|
9476
9476
|
role: e,
|
|
@@ -9527,7 +9527,7 @@ const Sf = () => {
|
|
|
9527
9527
|
o && /* @__PURE__ */ l(Yr, { tail: !0, children: /* @__PURE__ */ l(Va, { type: "dots" }) })
|
|
9528
9528
|
] }) : null;
|
|
9529
9529
|
}, xf = () => {
|
|
9530
|
-
const { isAuthenticated: e } = _e(), { ref: t, inViewport: r } =
|
|
9530
|
+
const { isAuthenticated: e } = _e(), { ref: t, inViewport: r } = Ks(), n = J(null), o = J(null), {
|
|
9531
9531
|
state: { footerPosition: a, footerHeight: i, footerOffset: s }
|
|
9532
9532
|
} = te(qr), {
|
|
9533
9533
|
state: { loading: u }
|
|
@@ -9593,7 +9593,7 @@ function Fa({
|
|
|
9593
9593
|
key: tt + As,
|
|
9594
9594
|
initialValue: at.ASC
|
|
9595
9595
|
}), g = Ve(() => ({
|
|
9596
|
-
footerPosition:
|
|
9596
|
+
footerPosition: Kt,
|
|
9597
9597
|
footerHeight: 0,
|
|
9598
9598
|
footerOffset: Ae() ? so : 0
|
|
9599
9599
|
}), []), [I, _] = kt(Lm, g), E = Ve(() => {
|
|
@@ -9752,7 +9752,7 @@ export {
|
|
|
9752
9752
|
at as e,
|
|
9753
9753
|
Vm as getDefaultExportFromCjs,
|
|
9754
9754
|
wh as oe,
|
|
9755
|
-
|
|
9755
|
+
Ks as p,
|
|
9756
9756
|
mi as p$1,
|
|
9757
9757
|
oi as p$2,
|
|
9758
9758
|
Dm as preloadToast,
|
|
@@ -9760,6 +9760,6 @@ export {
|
|
|
9760
9760
|
Xt as showSuccessToast,
|
|
9761
9761
|
xe as st,
|
|
9762
9762
|
Ge as useAiChat,
|
|
9763
|
-
|
|
9763
|
+
Qt as useCapability,
|
|
9764
9764
|
_i as z
|
|
9765
9765
|
};
|