@versini/sassysaint 8.57.1 → 8.58.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.DRInoAOy.js → AboutChangelog.CB0dcRCM.js} +2 -2
- package/dist/chunks/{AboutEntry.D1QsiWeP.js → AboutEntry.DC6pIWQs.js} +7 -7
- package/dist/chunks/{App.BD9Pd3cQ.js → App.B8ehtPCy.js} +404 -401
- package/dist/chunks/{Chart.DNQJbXHC.js → Chart.D-VIQysU.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BQuWjNxd.js → ChatBubbleAssistant.CyJgR8J8.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.CLr6jQDJ.js → ChatBubbleUser.tWOit_f_.js} +3 -3
- package/dist/chunks/ChatHistoryTable.2v_Tv5Xj.js +317 -0
- package/dist/chunks/HistoryEntry.Dh5bLuYX.js +332 -0
- package/dist/chunks/{ProfileEntry.FdG4mYcd.js → ProfileEntry.Dno0c0_1.js} +2 -2
- package/dist/chunks/{SettingsEntry.BiBJ1lKm.js → SettingsEntry.IGOE-6JU.js} +3 -3
- package/dist/chunks/{Table.DI8XC04k.js → Table.CAzmyLPU.js} +2 -2
- package/dist/chunks/{UsageEntry.CZDJL_qs.js → UsageEntry.BStP6ETh.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.BPCvT6po.js → UserMemoriesPanel.w335l_3o.js} +3 -3
- package/dist/chunks/{index.BC8-O6sO.js → index.Bm2rN-Q4.js} +1 -1
- package/dist/chunks/{index.CLuwYLi4.js → index.BmuSGkDt.js} +1 -1
- package/dist/chunks/{index.rGaGgogu.js → index.Br-5S8Zv.js} +2 -2
- package/dist/chunks/{index.B343uXRa.js → index.CRS7yOjI.js} +1 -1
- package/dist/chunks/{index.xDVk65Pg.js → index.CVdabB4A.js} +1 -1
- package/dist/chunks/{index.DboZcpT8.js → index.CYzjDPpw.js} +3 -3
- package/dist/chunks/{index.CJGsRS9T.js → index.D3golFwx.js} +210 -194
- package/dist/chunks/{useMarkdown.DrypR8NF.js → useMarkdown.B9WkUC07.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/ChatHistoryTable.CofdTPJc.js +0 -236
- package/dist/chunks/HistoryEntry.CeQJcuIi.js +0 -291
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsx as h, jsxs as q, Fragment as Ar } from "react/jsx-runtime";
|
2
2
|
import * as H from "react";
|
3
|
-
import ie, { createContext as xt, useReducer as Ir, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as _s, useContext as at, useState as ne, useMemo as Je, useId as Rs, useLayoutEffect as Qe, Suspense as Cs, lazy as
|
3
|
+
import ie, { createContext as xt, useReducer as Ir, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as _s, useContext as at, useState as ne, useMemo as Je, useId as Rs, useLayoutEffect as Qe, Suspense as Cs, lazy as Os } from "react";
|
4
4
|
import y from "clsx";
|
5
|
-
var
|
5
|
+
var ke = class {
|
6
6
|
constructor() {
|
7
7
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
8
8
|
}
|
@@ -18,7 +18,7 @@ var Oe = class {
|
|
18
18
|
}
|
19
19
|
onUnsubscribe() {
|
20
20
|
}
|
21
|
-
},
|
21
|
+
}, ks = {
|
22
22
|
// We need the wrapper function syntax below instead of direct references to
|
23
23
|
// global setTimeout etc.
|
24
24
|
//
|
@@ -40,7 +40,7 @@ var Oe = class {
|
|
40
40
|
//
|
41
41
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
42
42
|
// this class is unsafe internally to allow for extension.
|
43
|
-
#e =
|
43
|
+
#e = ks;
|
44
44
|
#t = !1;
|
45
45
|
setTimeoutProvider(e) {
|
46
46
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
|
@@ -65,7 +65,7 @@ function Ps(e) {
|
|
65
65
|
setTimeout(e, 0);
|
66
66
|
}
|
67
67
|
var me = typeof window > "u" || "Deno" in globalThis;
|
68
|
-
function
|
68
|
+
function B() {
|
69
69
|
}
|
70
70
|
function $s(e, t) {
|
71
71
|
return typeof e == "function" ? e(t) : e;
|
@@ -214,7 +214,7 @@ function Rr(e, t) {
|
|
214
214
|
function Cr(e, t) {
|
215
215
|
return typeof e == "function" ? e(...t) : !!e;
|
216
216
|
}
|
217
|
-
var Us = class extends
|
217
|
+
var Us = class extends ke {
|
218
218
|
#e;
|
219
219
|
#t;
|
220
220
|
#r;
|
@@ -334,7 +334,7 @@ function Hs() {
|
|
334
334
|
}
|
335
335
|
};
|
336
336
|
}
|
337
|
-
var $ = Hs(), Ks = class extends
|
337
|
+
var $ = Hs(), Ks = class extends ke {
|
338
338
|
#e = !0;
|
339
339
|
#t;
|
340
340
|
#r;
|
@@ -369,7 +369,7 @@ var $ = Hs(), Ks = class extends Oe {
|
|
369
369
|
function Gs(e) {
|
370
370
|
return Math.min(1e3 * 2 ** e, 3e4);
|
371
371
|
}
|
372
|
-
function
|
372
|
+
function Or(e) {
|
373
373
|
return (e ?? "online") === "online" ? Xe.isOnline() : !0;
|
374
374
|
}
|
375
375
|
var Ct = class extends Error {
|
@@ -377,7 +377,7 @@ var Ct = class extends Error {
|
|
377
377
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
378
378
|
}
|
379
379
|
};
|
380
|
-
function
|
380
|
+
function kr(e) {
|
381
381
|
let t = !1, r = 0, s;
|
382
382
|
const a = Rt(), n = () => a.status !== "pending", i = (g) => {
|
383
383
|
if (!n()) {
|
@@ -388,7 +388,7 @@ function Or(e) {
|
|
388
388
|
t = !0;
|
389
389
|
}, c = () => {
|
390
390
|
t = !1;
|
391
|
-
}, f = () => Mt.isFocused() && (e.networkMode === "always" || Xe.isOnline()) && e.canRun(), d = () =>
|
391
|
+
}, f = () => Mt.isFocused() && (e.networkMode === "always" || Xe.isOnline()) && e.canRun(), d = () => Or(e.networkMode) && e.canRun(), u = (g) => {
|
392
392
|
n() || (s?.(), a.resolve(g));
|
393
393
|
}, l = (g) => {
|
394
394
|
n() || (s?.(), a.reject(g));
|
@@ -411,7 +411,7 @@ function Or(e) {
|
|
411
411
|
Promise.resolve(g).then(u).catch((E) => {
|
412
412
|
if (n())
|
413
413
|
return;
|
414
|
-
const
|
414
|
+
const O = e.retry ?? (me ? 0 : 3), A = e.retryDelay ?? Gs, K = typeof A == "function" ? A(r, E) : A, R = O === !0 || typeof O == "number" && r < O || typeof O == "function" && O(r, E);
|
415
415
|
if (t || !R) {
|
416
416
|
l(E);
|
417
417
|
return;
|
@@ -494,7 +494,7 @@ var Nr = class {
|
|
494
494
|
}
|
495
495
|
cancel(e) {
|
496
496
|
const t = this.#s?.promise;
|
497
|
-
return this.#s?.cancel(e), t ? t.then(
|
497
|
+
return this.#s?.cancel(e), t ? t.then(B).catch(B) : Promise.resolve();
|
498
498
|
}
|
499
499
|
destroy() {
|
500
500
|
super.destroy(), this.cancel({ silent: !0 });
|
@@ -588,7 +588,7 @@ var Nr = class {
|
|
588
588
|
};
|
589
589
|
return s(o), o;
|
590
590
|
})();
|
591
|
-
this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s =
|
591
|
+
this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = kr({
|
592
592
|
initialPromise: t?.initialPromise,
|
593
593
|
fn: i.fetchFn,
|
594
594
|
onCancel: (o) => {
|
@@ -723,7 +723,7 @@ function Pr(e, t) {
|
|
723
723
|
return {
|
724
724
|
fetchFailureCount: 0,
|
725
725
|
fetchFailureReason: null,
|
726
|
-
fetchStatus:
|
726
|
+
fetchStatus: Or(t.networkMode) ? "fetching" : "paused",
|
727
727
|
...e === void 0 && {
|
728
728
|
error: null,
|
729
729
|
status: "pending"
|
@@ -747,7 +747,7 @@ function Zt(e) {
|
|
747
747
|
fetchStatus: "idle"
|
748
748
|
};
|
749
749
|
}
|
750
|
-
var Ws = class extends
|
750
|
+
var Ws = class extends ke {
|
751
751
|
constructor(e, t) {
|
752
752
|
super(), this.options = t, this.#e = e, this.#n = null, this.#o = Rt(), this.bindMethods(), this.setOptions(t);
|
753
753
|
}
|
@@ -778,14 +778,14 @@ var Ws = class extends Oe {
|
|
778
778
|
this.hasListeners() || this.destroy();
|
779
779
|
}
|
780
780
|
shouldFetchOnReconnect() {
|
781
|
-
return
|
781
|
+
return Ot(
|
782
782
|
this.#t,
|
783
783
|
this.options,
|
784
784
|
this.options.refetchOnReconnect
|
785
785
|
);
|
786
786
|
}
|
787
787
|
shouldFetchOnWindowFocus() {
|
788
|
-
return
|
788
|
+
return Ot(
|
789
789
|
this.#t,
|
790
790
|
this.options,
|
791
791
|
this.options.refetchOnWindowFocus
|
@@ -858,7 +858,7 @@ var Ws = class extends Oe {
|
|
858
858
|
this.options,
|
859
859
|
e
|
860
860
|
);
|
861
|
-
return e?.throwOnError || (t = t.catch(
|
861
|
+
return e?.throwOnError || (t = t.catch(B)), t;
|
862
862
|
}
|
863
863
|
#y() {
|
864
864
|
this.#w();
|
@@ -924,10 +924,10 @@ var Ws = class extends Oe {
|
|
924
924
|
this.#n = v;
|
925
925
|
}
|
926
926
|
this.#n && (m = this.#n, l = this.#h, p = Date.now(), g = "error");
|
927
|
-
const E = d.fetchStatus === "fetching",
|
927
|
+
const E = d.fetchStatus === "fetching", O = g === "pending", A = g === "error", K = O && E, R = l !== void 0, C = {
|
928
928
|
status: g,
|
929
929
|
fetchStatus: d.fetchStatus,
|
930
|
-
isPending:
|
930
|
+
isPending: O,
|
931
931
|
isSuccess: g === "success",
|
932
932
|
isError: A,
|
933
933
|
isInitialLoading: K,
|
@@ -942,7 +942,7 @@ var Ws = class extends Oe {
|
|
942
942
|
isFetched: d.dataUpdateCount > 0 || d.errorUpdateCount > 0,
|
943
943
|
isFetchedAfterMount: d.dataUpdateCount > c.dataUpdateCount || d.errorUpdateCount > c.errorUpdateCount,
|
944
944
|
isFetching: E,
|
945
|
-
isRefetching: E && !
|
945
|
+
isRefetching: E && !O,
|
946
946
|
isLoadingError: A && !R,
|
947
947
|
isPaused: d.fetchStatus === "paused",
|
948
948
|
isPlaceholderData: u,
|
@@ -1019,9 +1019,9 @@ function qs(e, t) {
|
|
1019
1019
|
return J(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
1020
1020
|
}
|
1021
1021
|
function er(e, t) {
|
1022
|
-
return qs(e, t) || e.state.data !== void 0 &&
|
1022
|
+
return qs(e, t) || e.state.data !== void 0 && Ot(e, t, t.refetchOnMount);
|
1023
1023
|
}
|
1024
|
-
function
|
1024
|
+
function Ot(e, t, r) {
|
1025
1025
|
if (J(t.enabled, e) !== !1 && de(t.staleTime, e) !== "static") {
|
1026
1026
|
const s = typeof r == "function" ? r(e) : r;
|
1027
1027
|
return s === "always" || s !== !1 && Lt(e, t);
|
@@ -1056,7 +1056,7 @@ function rr(e) {
|
|
1056
1056
|
return Promise.reject();
|
1057
1057
|
if (g == null && p.pages.length)
|
1058
1058
|
return Promise.resolve(p);
|
1059
|
-
const
|
1059
|
+
const O = (() => {
|
1060
1060
|
const Q = {
|
1061
1061
|
client: t.client,
|
1062
1062
|
queryKey: t.queryKey,
|
@@ -1065,7 +1065,7 @@ function rr(e) {
|
|
1065
1065
|
meta: t.options.meta
|
1066
1066
|
};
|
1067
1067
|
return u(Q), Q;
|
1068
|
-
})(), A = await l(
|
1068
|
+
})(), A = await l(O), { maxPages: K } = t.options, R = b ? Ls : Ms;
|
1069
1069
|
return {
|
1070
1070
|
pages: R(p.pages, A, K),
|
1071
1071
|
pageParams: R(p.pageParams, g, K)
|
@@ -1156,7 +1156,7 @@ var Js = class extends Nr {
|
|
1156
1156
|
meta: this.options.meta,
|
1157
1157
|
mutationKey: this.options.mutationKey
|
1158
1158
|
};
|
1159
|
-
this.#a =
|
1159
|
+
this.#a = kr({
|
1160
1160
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
|
1161
1161
|
onFail: (n, i) => {
|
1162
1162
|
this.#s({ type: "failed", failureCount: n, error: i });
|
@@ -1329,7 +1329,7 @@ function $r() {
|
|
1329
1329
|
submittedAt: 0
|
1330
1330
|
};
|
1331
1331
|
}
|
1332
|
-
var Qs = class extends
|
1332
|
+
var Qs = class extends ke {
|
1333
1333
|
constructor(e = {}) {
|
1334
1334
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
|
1335
1335
|
}
|
@@ -1413,7 +1413,7 @@ var Qs = class extends Oe {
|
|
1413
1413
|
const e = this.getAll().filter((t) => t.state.isPaused);
|
1414
1414
|
return $.batch(
|
1415
1415
|
() => Promise.all(
|
1416
|
-
e.map((t) => t.continue().catch(
|
1416
|
+
e.map((t) => t.continue().catch(B))
|
1417
1417
|
)
|
1418
1418
|
);
|
1419
1419
|
}
|
@@ -1421,7 +1421,7 @@ var Qs = class extends Oe {
|
|
1421
1421
|
function Ue(e) {
|
1422
1422
|
return e.options.scope?.id;
|
1423
1423
|
}
|
1424
|
-
var Ys = class extends
|
1424
|
+
var Ys = class extends ke {
|
1425
1425
|
#e;
|
1426
1426
|
#t = void 0;
|
1427
1427
|
#r;
|
@@ -1504,7 +1504,7 @@ var Ys = class extends Oe {
|
|
1504
1504
|
});
|
1505
1505
|
});
|
1506
1506
|
}
|
1507
|
-
}, zs = class extends
|
1507
|
+
}, zs = class extends ke {
|
1508
1508
|
constructor(e = {}) {
|
1509
1509
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
1510
1510
|
}
|
@@ -1669,7 +1669,7 @@ var Ys = class extends Oe {
|
|
1669
1669
|
const r = { revert: !0, ...t }, s = $.batch(
|
1670
1670
|
() => this.#e.findAll(e).map((a) => a.cancel(r))
|
1671
1671
|
);
|
1672
|
-
return Promise.all(s).then(
|
1672
|
+
return Promise.all(s).then(B).catch(B);
|
1673
1673
|
}
|
1674
1674
|
invalidateQueries(e, t = {}) {
|
1675
1675
|
return $.batch(() => (this.#e.findAll(e).forEach((r) => {
|
@@ -1689,10 +1689,10 @@ var Ys = class extends Oe {
|
|
1689
1689
|
}, s = $.batch(
|
1690
1690
|
() => this.#e.findAll(e).filter((a) => !a.isDisabled() && !a.isStatic()).map((a) => {
|
1691
1691
|
let n = a.fetch(void 0, r);
|
1692
|
-
return r.throwOnError || (n = n.catch(
|
1692
|
+
return r.throwOnError || (n = n.catch(B)), a.state.fetchStatus === "paused" ? Promise.resolve() : n;
|
1693
1693
|
})
|
1694
1694
|
);
|
1695
|
-
return Promise.all(s).then(
|
1695
|
+
return Promise.all(s).then(B);
|
1696
1696
|
}
|
1697
1697
|
fetchQuery(e) {
|
1698
1698
|
const t = this.defaultQueryOptions(e);
|
@@ -1703,13 +1703,13 @@ var Ys = class extends Oe {
|
|
1703
1703
|
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
1704
1704
|
}
|
1705
1705
|
prefetchQuery(e) {
|
1706
|
-
return this.fetchQuery(e).then(
|
1706
|
+
return this.fetchQuery(e).then(B).catch(B);
|
1707
1707
|
}
|
1708
1708
|
fetchInfiniteQuery(e) {
|
1709
1709
|
return e.behavior = rr(e.pages), this.fetchQuery(e);
|
1710
1710
|
}
|
1711
1711
|
prefetchInfiniteQuery(e) {
|
1712
|
-
return this.fetchInfiniteQuery(e).then(
|
1712
|
+
return this.fetchInfiniteQuery(e).then(B).catch(B);
|
1713
1713
|
}
|
1714
1714
|
ensureInfiniteQueryData(e) {
|
1715
1715
|
return e.behavior = rr(e.pages), this.ensureQueryData(e);
|
@@ -1846,7 +1846,7 @@ function da(e, t, r) {
|
|
1846
1846
|
if (H.useSyncExternalStore(
|
1847
1847
|
H.useCallback(
|
1848
1848
|
(u) => {
|
1849
|
-
const l = d ? c.subscribe($.batchCalls(u)) :
|
1849
|
+
const l = d ? c.subscribe($.batchCalls(u)) : B;
|
1850
1850
|
return c.updateResult(), l;
|
1851
1851
|
},
|
1852
1852
|
[c, d]
|
@@ -1874,7 +1874,7 @@ function da(e, t, r) {
|
|
1874
1874
|
) : (
|
1875
1875
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
1876
1876
|
n.getQueryCache().get(i.queryHash)?.promise
|
1877
|
-
))?.catch(
|
1877
|
+
))?.catch(B).finally(() => {
|
1878
1878
|
c.updateResult();
|
1879
1879
|
}), i.notifyOnChangeProps ? f : c.trackResult(f);
|
1880
1880
|
}
|
@@ -1900,7 +1900,7 @@ function Dr(e, t) {
|
|
1900
1900
|
() => s.getCurrentResult()
|
1901
1901
|
), n = H.useCallback(
|
1902
1902
|
(i, o) => {
|
1903
|
-
s.mutate(i, o).catch(
|
1903
|
+
s.mutate(i, o).catch(B);
|
1904
1904
|
},
|
1905
1905
|
[s]
|
1906
1906
|
);
|
@@ -2266,7 +2266,7 @@ const _a = (e) => {
|
|
2266
2266
|
throw new ae('Invalid or unsupported "alg" (Algorithm) value');
|
2267
2267
|
}
|
2268
2268
|
return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
|
2269
|
-
}, Ca = (e, t) => Lr(e.replace(t, "")),
|
2269
|
+
}, Ca = (e, t) => Lr(e.replace(t, "")), Oa = (e, t, r) => {
|
2270
2270
|
const s = Ca(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
|
2271
2271
|
let a = r;
|
2272
2272
|
return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
|
@@ -2274,7 +2274,7 @@ const _a = (e) => {
|
|
2274
2274
|
return Ia(i), _a(i);
|
2275
2275
|
}), Ra("spki", s, t, a);
|
2276
2276
|
};
|
2277
|
-
function
|
2277
|
+
function ka(e) {
|
2278
2278
|
let t, r;
|
2279
2279
|
switch (e.kty) {
|
2280
2280
|
case "AKP": {
|
@@ -2362,13 +2362,13 @@ function Oa(e) {
|
|
2362
2362
|
const Na = async (e) => {
|
2363
2363
|
if (!e.alg)
|
2364
2364
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
2365
|
-
const { algorithm: t, keyUsages: r } =
|
2365
|
+
const { algorithm: t, keyUsages: r } = ka(e), s = { ...e };
|
2366
2366
|
return s.kty !== "AKP" && delete s.alg, delete s.use, crypto.subtle.importKey("jwk", s, t, e.ext ?? !(e.d || e.priv), e.key_ops ?? r);
|
2367
2367
|
};
|
2368
2368
|
async function Pa(e, t, r) {
|
2369
2369
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
2370
2370
|
throw new TypeError('"spki" must be SPKI formatted string');
|
2371
|
-
return
|
2371
|
+
return Oa(e, t, r);
|
2372
2372
|
}
|
2373
2373
|
const $a = (e, t, r, s, a) => {
|
2374
2374
|
if (a.crit !== void 0 && s?.crit === void 0)
|
@@ -2529,7 +2529,7 @@ const ir = async (e, t, r, s = !1) => {
|
|
2529
2529
|
if (Ut(e))
|
2530
2530
|
return e.k ? $e(e.k) : ir(e, e, t, !0);
|
2531
2531
|
throw new Error("unreachable");
|
2532
|
-
}, _e = (e) => e?.[Symbol.toStringTag],
|
2532
|
+
}, _e = (e) => e?.[Symbol.toStringTag], kt = (e, t, r) => {
|
2533
2533
|
if (t.use !== void 0) {
|
2534
2534
|
let s;
|
2535
2535
|
switch (r) {
|
@@ -2575,7 +2575,7 @@ const ir = async (e, t, r, s = !1) => {
|
|
2575
2575
|
}, Ha = (e, t, r) => {
|
2576
2576
|
if (!(t instanceof Uint8Array)) {
|
2577
2577
|
if (Ut(t)) {
|
2578
|
-
if (La(t) &&
|
2578
|
+
if (La(t) && kt(e, t, r))
|
2579
2579
|
return;
|
2580
2580
|
throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
|
2581
2581
|
}
|
@@ -2589,12 +2589,12 @@ const ir = async (e, t, r, s = !1) => {
|
|
2589
2589
|
switch (r) {
|
2590
2590
|
case "decrypt":
|
2591
2591
|
case "sign":
|
2592
|
-
if (Da(t) &&
|
2592
|
+
if (Da(t) && kt(e, t, r))
|
2593
2593
|
return;
|
2594
2594
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
2595
2595
|
case "encrypt":
|
2596
2596
|
case "verify":
|
2597
|
-
if (Ma(t) &&
|
2597
|
+
if (Ma(t) && kt(e, t, r))
|
2598
2598
|
return;
|
2599
2599
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
2600
2600
|
}
|
@@ -3337,7 +3337,7 @@ function gt(e, t, r) {
|
|
3337
3337
|
throw new Error("Random bytes length must be >= 16");
|
3338
3338
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, An(s);
|
3339
3339
|
}
|
3340
|
-
const ve = "Your session has expired. For your security, please log in again to continue.", Cn = "Your session has been successfully terminated.", bt = "Login failed. Please try again.",
|
3340
|
+
const ve = "Your session has expired. For your security, please log in again to continue.", Cn = "Your session has been successfully terminated.", bt = "Login failed. Please try again.", On = "Error getting access token, please re-authenticate.", kn = "You forgot to wrap your component in <AuthProvider>.", Ke = "@@auth@@", Ne = "LOADING", qe = "LOGIN", Xr = "LOGOUT", Le = "success", ee = "failure", Zr = "include", es = "POST", ts = "application/json", Ge = {
|
3341
3341
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
3342
3342
|
$clientId: String!,
|
3343
3343
|
$username: String!,
|
@@ -3699,7 +3699,7 @@ class Un {
|
|
3699
3699
|
}
|
3700
3700
|
}
|
3701
3701
|
const Ie = () => {
|
3702
|
-
throw new Error(
|
3702
|
+
throw new Error(kn);
|
3703
3703
|
}, ss = xt({
|
3704
3704
|
isAuthenticated: !1,
|
3705
3705
|
isLoading: !1,
|
@@ -3757,19 +3757,19 @@ const Ie = () => {
|
|
3757
3757
|
key: `${Ke}::${r}::@@user@@`
|
3758
3758
|
}), [m, p, , g] = He({
|
3759
3759
|
key: `${Ke}::${r}::@@access@@`
|
3760
|
-
}), [b, E, ,
|
3760
|
+
}), [b, E, , O] = He(
|
3761
3761
|
{
|
3762
3762
|
key: `${Ke}::${r}::@@refresh@@`
|
3763
3763
|
}
|
3764
3764
|
), [A, K, , R] = He({
|
3765
3765
|
key: `${Ke}::${r}::@@nonce@@`
|
3766
3766
|
}), Q = new Un(m, b), C = Y(() => {
|
3767
|
-
c("removeLocalStorage: removing local storage"), l(), g(),
|
3767
|
+
c("removeLocalStorage: removing local storage"), l(), g(), O(), R();
|
3768
3768
|
}, [
|
3769
3769
|
g,
|
3770
3770
|
l,
|
3771
3771
|
R,
|
3772
|
-
|
3772
|
+
O,
|
3773
3773
|
c
|
3774
3774
|
]), v = Y(
|
3775
3775
|
(w) => {
|
@@ -3900,7 +3900,7 @@ const Ie = () => {
|
|
3900
3900
|
} catch {
|
3901
3901
|
return c(
|
3902
3902
|
"getAccessToken: exception occurred, invalidating and logging out"
|
3903
|
-
), await x(
|
3903
|
+
), await x(On), "";
|
3904
3904
|
}
|
3905
3905
|
}, V = () => i.isAuthenticated && d ? d : "", ce = async () => {
|
3906
3906
|
const { user: w } = i;
|
@@ -4044,7 +4044,7 @@ const as = () => {
|
|
4044
4044
|
if (!e)
|
4045
4045
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
4046
4046
|
return e;
|
4047
|
-
}, qo = "I'm having trouble right now. Please try again later.", jo = "action-search", Vo = "action-sort", Jo = "action-toggle-prompt", Qo = "action-reset-prompt", ns = "sassy-saint-", Yo = "search", zo = "sort", Xo = "sort-timestamp", Zo = "sort-token-usage", ec = "sort-memory-direction", tc = "sort-memory-column", rc = "private-disclosure",
|
4047
|
+
}, qo = "I'm having trouble right now. Please try again later.", jo = "action-search", Vo = "action-sort", Jo = "action-toggle-prompt", Qo = "action-reset-prompt", ns = "sassy-saint-", Yo = "search", zo = "sort", Xo = "sort-timestamp", Zo = "sort-token-usage", ec = "sort-memory-direction", tc = "sort-memory-column", rc = "favorites-only", sc = "private-disclosure", ac = "reasoning-disclosure", is = "service-worker", yr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", nc = 10, ic = 30, oc = "av-prompt", cc = "av-prompt-editable", lc = "size-5 sm:size-4", uc = 30, dc = 15, hc = 130, fc = 160, mc = 16, pc = 24, yc = 76, gc = 76;
|
4048
4048
|
let Et = null, se = !1;
|
4049
4049
|
typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
|
4050
4050
|
se && (se = !1, window.location.reload());
|
@@ -4094,7 +4094,7 @@ async function qn() {
|
|
4094
4094
|
return console.error("[SW] Service worker un-registration failed:", e), !1;
|
4095
4095
|
}
|
4096
4096
|
}
|
4097
|
-
async function
|
4097
|
+
async function bc(e) {
|
4098
4098
|
if (Wn(e), e) {
|
4099
4099
|
se = !0;
|
4100
4100
|
try {
|
@@ -4149,7 +4149,7 @@ async function jn() {
|
|
4149
4149
|
function wt() {
|
4150
4150
|
return "unknown";
|
4151
4151
|
}
|
4152
|
-
async function
|
4152
|
+
async function Ec(e = {}) {
|
4153
4153
|
const { urlLimitPerCache: t } = e;
|
4154
4154
|
if (!("caches" in window))
|
4155
4155
|
return { version: wt(), caches: [], totalItems: 0 };
|
@@ -4176,7 +4176,7 @@ async function bc(e = {}) {
|
|
4176
4176
|
return console.warn("[SW] getCacheInfo failed:", r), { version: wt(), caches: [], totalItems: 0 };
|
4177
4177
|
}
|
4178
4178
|
}
|
4179
|
-
const
|
4179
|
+
const wc = "user", Sc = "assistant", vc = "data", cs = "OpenAI", Vn = "Anthropic", Jn = "Google", Qn = "Perplexity", Tc = cs, Yn = "claude-sonnet-4", zn = "claude-3", Xn = "gpt-", Zn = "o3", ei = "o4", ti = "gemini", ri = "sonar", si = {
|
4180
4180
|
[Vn]: [
|
4181
4181
|
Yn,
|
4182
4182
|
zn
|
@@ -4188,14 +4188,14 @@ const Ec = "user", wc = "assistant", Sc = "data", cs = "OpenAI", Vn = "Anthropic
|
|
4188
4188
|
],
|
4189
4189
|
[Jn]: [ti],
|
4190
4190
|
[Qn]: [ri]
|
4191
|
-
},
|
4191
|
+
}, Ac = "x-diggidy-chat-id", Ic = (e) => {
|
4192
4192
|
for (const [t, r] of Object.entries(
|
4193
4193
|
si
|
4194
4194
|
))
|
4195
4195
|
if (r.some((s) => e.startsWith(s)))
|
4196
4196
|
return t;
|
4197
4197
|
return null;
|
4198
|
-
},
|
4198
|
+
}, _c = "timestamp", Rc = "tokenUsage", k = "Diggidy", Cc = {
|
4199
4199
|
TOOL: {
|
4200
4200
|
MEMORIES: "getUserMemories"
|
4201
4201
|
},
|
@@ -4213,7 +4213,7 @@ function ni(e, t, r) {
|
|
4213
4213
|
const s = e instanceof Set ? e : ai(e);
|
4214
4214
|
return !s || s.size === 0 ? !1 : typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((a) => s.has(a)) : t.every((a) => s.has(a));
|
4215
4215
|
}
|
4216
|
-
const
|
4216
|
+
const G = {
|
4217
4217
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
4218
4218
|
location(latitude: $latitude, longitude: $longitude) {
|
4219
4219
|
country
|
@@ -4241,6 +4241,7 @@ const B = {
|
|
4241
4241
|
model
|
4242
4242
|
summary
|
4243
4243
|
tokenUsage
|
4244
|
+
favoriteChat
|
4244
4245
|
messages {
|
4245
4246
|
content
|
4246
4247
|
}
|
@@ -4274,6 +4275,16 @@ const B = {
|
|
4274
4275
|
id
|
4275
4276
|
}
|
4276
4277
|
}`,
|
4278
|
+
TOGGLE_FAVORITE_CHAT: `mutation ToggleFavoriteChat(
|
4279
|
+
$id: String!,
|
4280
|
+
$userId: String!) {
|
4281
|
+
toggleFavoriteChat(
|
4282
|
+
id: $id,
|
4283
|
+
user: $userId) {
|
4284
|
+
id
|
4285
|
+
favoriteChat
|
4286
|
+
}
|
4287
|
+
}`,
|
4277
4288
|
SAVE_CHAT: `mutation SaveChat(
|
4278
4289
|
$id: String!,
|
4279
4290
|
$userId: String!,
|
@@ -4381,60 +4392,64 @@ const B = {
|
|
4381
4392
|
}`
|
4382
4393
|
}, te = {
|
4383
4394
|
GET_LOCATION: {
|
4384
|
-
schema:
|
4395
|
+
schema: G.GET_LOCATION,
|
4385
4396
|
method: "location"
|
4386
4397
|
},
|
4387
4398
|
GET_CHATS: {
|
4388
|
-
schema:
|
4399
|
+
schema: G.GET_CHATS,
|
4389
4400
|
method: "chats"
|
4390
4401
|
},
|
4391
4402
|
GET_CHATS_STATS: {
|
4392
|
-
schema:
|
4403
|
+
schema: G.GET_CHATS_STATS,
|
4393
4404
|
method: "chatsStats"
|
4394
4405
|
},
|
4395
4406
|
GET_CHAT: {
|
4396
|
-
schema:
|
4407
|
+
schema: G.GET_CHAT,
|
4397
4408
|
method: "chatById"
|
4398
4409
|
},
|
4399
4410
|
DELETE_CHAT: {
|
4400
|
-
schema:
|
4411
|
+
schema: G.DELETE_CHAT,
|
4401
4412
|
method: "deleteChat"
|
4402
4413
|
},
|
4414
|
+
TOGGLE_FAVORITE_CHAT: {
|
4415
|
+
schema: G.TOGGLE_FAVORITE_CHAT,
|
4416
|
+
method: "toggleFavoriteChat"
|
4417
|
+
},
|
4403
4418
|
SAVE_CHAT: {
|
4404
|
-
schema:
|
4419
|
+
schema: G.SAVE_CHAT,
|
4405
4420
|
method: "saveChat"
|
4406
4421
|
},
|
4407
4422
|
GET_SERVER_CAPABILITIES: {
|
4408
|
-
schema:
|
4423
|
+
schema: G.GET_SERVER_CAPABILITIES,
|
4409
4424
|
method: "getServerCapabilities"
|
4410
4425
|
},
|
4411
4426
|
GET_CHANGELOGS: {
|
4412
|
-
schema:
|
4427
|
+
schema: G.GET_CHANGELOGS,
|
4413
4428
|
method: "getChangelogs"
|
4414
4429
|
},
|
4415
4430
|
GET_USER_PREFERENCES: {
|
4416
|
-
schema:
|
4431
|
+
schema: G.GET_USER_PREFERENCES,
|
4417
4432
|
method: "getUserPreferences"
|
4418
4433
|
},
|
4419
4434
|
SET_USER_PREFERENCES: {
|
4420
|
-
schema:
|
4435
|
+
schema: G.SET_USER_PREFERENCES,
|
4421
4436
|
method: "setUserPreferences"
|
4422
4437
|
},
|
4423
4438
|
GET_USAGE: {
|
4424
|
-
schema:
|
4439
|
+
schema: G.GET_USAGE,
|
4425
4440
|
method: "usage"
|
4426
4441
|
},
|
4427
4442
|
GET_USER_MEMORIES: {
|
4428
|
-
schema:
|
4443
|
+
schema: G.GET_USER_MEMORIES,
|
4429
4444
|
method: "getUserMemories"
|
4430
4445
|
},
|
4431
4446
|
DELETE_MEMORY: {
|
4432
|
-
schema:
|
4447
|
+
schema: G.DELETE_MEMORY
|
4433
4448
|
},
|
4434
4449
|
DELETE_MEMORIES: {
|
4435
|
-
schema:
|
4450
|
+
schema: G.DELETE_MEMORIES
|
4436
4451
|
}
|
4437
|
-
}, ii = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
4452
|
+
}, ii = process.env.PUBLIC_SASSY_API_SERVER_URL, Oe = async ({
|
4438
4453
|
query: e,
|
4439
4454
|
data: t,
|
4440
4455
|
headers: r = {},
|
@@ -4457,13 +4472,13 @@ const B = {
|
|
4457
4472
|
try {
|
4458
4473
|
let r;
|
4459
4474
|
if (e.noAuth === !0)
|
4460
|
-
r = await
|
4475
|
+
r = await Oe({
|
4461
4476
|
query: e.type.schema,
|
4462
4477
|
data: t
|
4463
4478
|
});
|
4464
4479
|
else {
|
4465
4480
|
const n = `Bearer ${e.accessToken}`;
|
4466
|
-
r = await
|
4481
|
+
r = await Oe({
|
4467
4482
|
headers: {
|
4468
4483
|
authorization: n
|
4469
4484
|
},
|
@@ -4482,7 +4497,7 @@ const B = {
|
|
4482
4497
|
} catch (r) {
|
4483
4498
|
return console.error(r), { status: 500, data: [] };
|
4484
4499
|
}
|
4485
|
-
},
|
4500
|
+
}, Oc = async ({
|
4486
4501
|
provider: e,
|
4487
4502
|
accessToken: t,
|
4488
4503
|
username: r
|
@@ -4512,7 +4527,7 @@ const B = {
|
|
4512
4527
|
type: te.GET_SERVER_CAPABILITIES,
|
4513
4528
|
noAuth: !0
|
4514
4529
|
})
|
4515
|
-
}),
|
4530
|
+
}), Nc = () => ye({
|
4516
4531
|
queryKey: [oe.CHANGELOGS],
|
4517
4532
|
queryFn: async () => await be({
|
4518
4533
|
type: te.GET_CHANGELOGS,
|
@@ -4533,7 +4548,7 @@ const B = {
|
|
4533
4548
|
type: te.GET_USER_PREFERENCES,
|
4534
4549
|
getAccessToken: t
|
4535
4550
|
})
|
4536
|
-
}),
|
4551
|
+
}), Pc = ({
|
4537
4552
|
user: e,
|
4538
4553
|
getAccessToken: t
|
4539
4554
|
}) => ye({
|
@@ -4545,7 +4560,7 @@ const B = {
|
|
4545
4560
|
type: te.GET_CHATS_STATS,
|
4546
4561
|
getAccessToken: t
|
4547
4562
|
})
|
4548
|
-
}),
|
4563
|
+
}), $c = ({
|
4549
4564
|
user: e,
|
4550
4565
|
searchString: t,
|
4551
4566
|
sortDirection: r,
|
@@ -4569,7 +4584,7 @@ const B = {
|
|
4569
4584
|
type: te.GET_CHATS,
|
4570
4585
|
getAccessToken: a
|
4571
4586
|
})
|
4572
|
-
}),
|
4587
|
+
}), xc = ({
|
4573
4588
|
user: e,
|
4574
4589
|
month: t,
|
4575
4590
|
year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
|
@@ -4587,7 +4602,7 @@ const B = {
|
|
4587
4602
|
type: te.GET_USAGE,
|
4588
4603
|
getAccessToken: s
|
4589
4604
|
})
|
4590
|
-
}),
|
4605
|
+
}), Dc = ({
|
4591
4606
|
user: e,
|
4592
4607
|
query: t,
|
4593
4608
|
getAccessToken: r,
|
@@ -4600,7 +4615,7 @@ const B = {
|
|
4600
4615
|
type: te.GET_USER_MEMORIES,
|
4601
4616
|
getAccessToken: r
|
4602
4617
|
})
|
4603
|
-
}),
|
4618
|
+
}), Mc = ({
|
4604
4619
|
getAccessToken: e
|
4605
4620
|
}) => {
|
4606
4621
|
const t = nt();
|
@@ -4609,7 +4624,7 @@ const B = {
|
|
4609
4624
|
user: r,
|
4610
4625
|
memoryId: s
|
4611
4626
|
}) => {
|
4612
|
-
const a = await e(), n = await
|
4627
|
+
const a = await e(), n = await Oe({
|
4613
4628
|
query: te.DELETE_MEMORY.schema,
|
4614
4629
|
data: { user: r, memoryId: s },
|
4615
4630
|
headers: { authorization: `Bearer ${a}` }
|
@@ -4624,13 +4639,13 @@ const B = {
|
|
4624
4639
|
});
|
4625
4640
|
}
|
4626
4641
|
});
|
4627
|
-
},
|
4642
|
+
}, Lc = ({
|
4628
4643
|
getAccessToken: e
|
4629
4644
|
}) => {
|
4630
4645
|
const t = nt();
|
4631
4646
|
return Dr({
|
4632
4647
|
mutationFn: async ({ user: r }) => {
|
4633
|
-
const s = await e(), a = await
|
4648
|
+
const s = await e(), a = await Oe({
|
4634
4649
|
query: te.DELETE_MEMORIES.schema,
|
4635
4650
|
data: { user: r },
|
4636
4651
|
headers: { authorization: `Bearer ${s}` }
|
@@ -4655,13 +4670,13 @@ const B = {
|
|
4655
4670
|
const a = t?.data ? t.data(e) : e;
|
4656
4671
|
let n;
|
4657
4672
|
if (r === !0)
|
4658
|
-
n = await
|
4673
|
+
n = await Oe({
|
4659
4674
|
query: t.schema,
|
4660
4675
|
data: a
|
4661
4676
|
});
|
4662
4677
|
else if (s) {
|
4663
4678
|
const f = await s();
|
4664
|
-
n = await
|
4679
|
+
n = await Oe({
|
4665
4680
|
headers: {
|
4666
4681
|
authorization: `Bearer ${f}`
|
4667
4682
|
},
|
@@ -4780,7 +4795,7 @@ const B = {
|
|
4780
4795
|
);
|
4781
4796
|
return /* @__PURE__ */ h(ls.Provider, { value: d, children: r });
|
4782
4797
|
};
|
4783
|
-
function
|
4798
|
+
function Uc() {
|
4784
4799
|
const e = at(ls);
|
4785
4800
|
if (!e)
|
4786
4801
|
throw new Error("useEntitlements must be used within EntitlementsProvider");
|
@@ -4997,12 +5012,12 @@ const Ii = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
4997
5012
|
"sm:px-5 px-2",
|
4998
5013
|
"transition-all ease-in-out duration-500",
|
4999
5014
|
e
|
5000
|
-
), Ci = (e, t) => t === 1 ? e : `${e}s`,
|
5015
|
+
), Ci = (e, t) => t === 1 ? e : `${e}s`, Oi = (e, t) => {
|
5001
5016
|
let r;
|
5002
5017
|
return (...s) => {
|
5003
5018
|
window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
|
5004
5019
|
};
|
5005
|
-
}, ms = () => !!window?.__VERSINI_DIGGIDY_TAURI__, ps = () => window.innerWidth < 403, ys = () => window.innerWidth >= 403 && window.innerWidth <= 1220,
|
5020
|
+
}, ms = () => !!window?.__VERSINI_DIGGIDY_TAURI__, ps = () => window.innerWidth < 403, ys = () => window.innerWidth >= 403 && window.innerWidth <= 1220, ki = () => {
|
5006
5021
|
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = ps(), s = navigator.maxTouchPoints > 1;
|
5007
5022
|
return e && t && r && s;
|
5008
5023
|
}, Ni = () => {
|
@@ -5035,7 +5050,7 @@ const Ii = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5035
5050
|
theme: c,
|
5036
5051
|
transition: f,
|
5037
5052
|
icon: d
|
5038
|
-
}),
|
5053
|
+
}), Fc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: ds, convertCamelCaseToReadable: $i, convertDDToDMS: Bt, convertLatitudeToDMS: bi, convertLongitudeToDMS: Ei, debounce: Oi, durationFormatter: Ri, extractAverage: Ai, getCurrentGeoLocation: wi, getLayoutPaddingClass: fs, getMessageContaintWrapperClass: hs, isDev: Gt, isLastMessageFromRole: Ii, isPWAMode: Pi, isProbablyMobile: ps, isProbablyTablet: ys, isProbablyiPad: Ni, isProbablyiPhone: ki, isProd: us, isTauri: ms, numberFormatter: _i, obfuscate: Si, pluralize: Ci, renderDataAsList: Ti, toastOptions: xi, unObfuscate: vi }, Symbol.toStringTag, { value: "Module" })), Er = "av-button", ct = "icon", Wt = "button", Pt = "link", Di = ({
|
5039
5054
|
type: e,
|
5040
5055
|
size: t,
|
5041
5056
|
labelRight: r,
|
@@ -5498,7 +5513,7 @@ const Be = {
|
|
5498
5513
|
align: g = "center",
|
5499
5514
|
radius: b = "large",
|
5500
5515
|
variant: E = "secondary",
|
5501
|
-
iconClassName:
|
5516
|
+
iconClassName: O,
|
5502
5517
|
animated: A = !1,
|
5503
5518
|
...K
|
5504
5519
|
}, R) => {
|
@@ -5519,7 +5534,7 @@ const Be = {
|
|
5519
5534
|
radius: b,
|
5520
5535
|
variant: E,
|
5521
5536
|
animated: A
|
5522
|
-
}), C = Wi({ mode: r, raw: o, iconClassName:
|
5537
|
+
}), C = Wi({ mode: r, raw: o, iconClassName: O, variant: E }), v = qi({ animated: A }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, I] = je(), [N, V] = je(), [ce, Ee] = je(), w = j(0), T = j(null), S = j(null), le = Es([R, T]);
|
5523
5538
|
return Qe(() => {
|
5524
5539
|
ce && ce.current && A && (w.current = Ee.width + Qi[u] + (c ? 0 : Yi), T.current && !T.current.style.width && (T.current.style.width = `${Be[u]}px`));
|
5525
5540
|
}, [Ee, ce, u, c, A]), Qe(() => {
|
@@ -6359,7 +6374,7 @@ const As = "av-text-input", mo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6359
6374
|
rightElement: g,
|
6360
6375
|
rightElementClassName: b,
|
6361
6376
|
size: E = "md",
|
6362
|
-
...
|
6377
|
+
...O
|
6363
6378
|
}, A) => {
|
6364
6379
|
const [K, R] = je(), [Q, C] = ne(0), v = ws({ id: e, prefix: `${As}-` }), x = `${t} error, ${p}`, _ = j(null), I = j(null), N = {
|
6365
6380
|
xs: { label: "-25px", helperText: "30px" },
|
@@ -6410,7 +6425,7 @@ const As = "av-text-input", mo = "av-text-input-wrapper", vt = "av-text-input-he
|
|
6410
6425
|
...p && { "aria-describedby": `${v}-helper` },
|
6411
6426
|
...s && { "aria-invalid": "true" },
|
6412
6427
|
...g && !a && { style: { paddingRight: Q } },
|
6413
|
-
...
|
6428
|
+
...O
|
6414
6429
|
}
|
6415
6430
|
),
|
6416
6431
|
!a && !l && /* @__PURE__ */ h(
|
@@ -6462,7 +6477,7 @@ const So = 500, vo = 5e3, To = 2e4, Is = ie.forwardRef(
|
|
6462
6477
|
const [l, m] = ne(!0), [p, g] = ne({
|
6463
6478
|
message: null,
|
6464
6479
|
politeness: null
|
6465
|
-
}), b = j(!0), E = j(null),
|
6480
|
+
}), b = j(!0), E = j(null), O = j(null), A = Es([u, O]), K = l ? "Show" : "Hide", R = () => {
|
6466
6481
|
E.current && clearTimeout(E.current), b.current || (E.current = setTimeout(() => {
|
6467
6482
|
b.current = !0, m(!0), g({
|
6468
6483
|
announcementTimeout: vo,
|
@@ -6480,7 +6495,7 @@ const So = 500, vo = 5e3, To = 2e4, Is = ie.forwardRef(
|
|
6480
6495
|
}), a && a(N);
|
6481
6496
|
}, C = (I) => {
|
6482
6497
|
const { relatedTarget: N } = I;
|
6483
|
-
|
6498
|
+
O.current?.parentElement?.contains(N) || c && c();
|
6484
6499
|
}, v = (I) => {
|
6485
6500
|
R(), i && i(I), C(I);
|
6486
6501
|
}, x = (I) => {
|
@@ -6539,40 +6554,40 @@ try {
|
|
6539
6554
|
});
|
6540
6555
|
} catch {
|
6541
6556
|
}
|
6542
|
-
const Ao = "ASK! ME! ANYTHING!", Io = "⭐︎ AI DEV MODE ⭐︎", _o = "Log in", Ro = "Sign in with a Passkey",
|
6543
|
-
Press Enter to send it or Shift+Enter for new line.`,
|
6544
|
-
Press Ctrl+Enter to send it or Enter for new line.`,
|
6545
|
-
`Sometimes, ${
|
6546
|
-
`${
|
6547
|
-
`${
|
6548
|
-
`Occasionally, ${
|
6549
|
-
`${
|
6550
|
-
`Sometimes, ${
|
6551
|
-
`${
|
6552
|
-
`Sometimes, ${
|
6553
|
-
`Occasionally, ${
|
6554
|
-
`${
|
6555
|
-
`${
|
6556
|
-
`${
|
6557
|
-
`${
|
6558
|
-
`Sometimes, ${
|
6559
|
-
`Sometimes, ${
|
6560
|
-
`${
|
6561
|
-
`${
|
6562
|
-
`Sometimes, ${
|
6563
|
-
`${
|
6564
|
-
`${
|
6565
|
-
],
|
6557
|
+
const Ao = "ASK! ME! ANYTHING!", Io = "⭐︎ AI DEV MODE ⭐︎", _o = "Log in", Ro = "Sign in with a Passkey", Hc = "Log out", Co = "Password", Kc = "Usage", Gc = "Profile", Bc = "Settings", Wc = "Chat history", qc = "About", Vt = "Type your message here.", jc = Vt, Vc = `${Vt}
|
6558
|
+
Press Enter to send it or Shift+Enter for new line.`, Jc = `${Vt}
|
6559
|
+
Press Ctrl+Enter to send it or Enter for new line.`, Qc = "{{clipboard}}", P = "Review important details.", Yc = [
|
6560
|
+
`Sometimes, ${k} just makes stuff up. ${P}`,
|
6561
|
+
`${k} may invent facts on the fly. ${P}`,
|
6562
|
+
`${k} may be confidently wrong. ${P}`,
|
6563
|
+
`Occasionally, ${k} bluffs. ${P}`,
|
6564
|
+
`${k} is not always reality-based. ${P}`,
|
6565
|
+
`Sometimes, ${k} freestyles the truth. ${P}`,
|
6566
|
+
`${k}'s answers may vary from reality. ${P}`,
|
6567
|
+
`Sometimes, ${k} hallucinates. ${P}`,
|
6568
|
+
`Occasionally, ${k} imagines. ${P}`,
|
6569
|
+
`${k} may make things up. ${P}`,
|
6570
|
+
`${k} gets creative sometimes. ${P}`,
|
6571
|
+
`${k} isn't always right. ${P}`,
|
6572
|
+
`${k} can be mistaken. ${P}`,
|
6573
|
+
`Sometimes, ${k} guesses. ${P}`,
|
6574
|
+
`Sometimes, ${k} invents. ${P}`,
|
6575
|
+
`${k} may get it wrong. ${P}`,
|
6576
|
+
`${k} might fetch the wrong stick. ${P}`,
|
6577
|
+
`Sometimes, ${k} howls at the moon. ${P}`,
|
6578
|
+
`${k} may dig up imaginary bones. ${P}`,
|
6579
|
+
`${k} may sniff out nonsense. ${P}`
|
6580
|
+
], zc = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", Xc = "Default provider set to", Zc = "Chat successfully deleted!", el = "Chat successfully saved!", tl = "Caching enabled. Assets are now stored locally.", rl = "Caching disabled. Local asset cache cleared.", sl = "av-sassy", al = {
|
6566
6581
|
0: ["January", "February", "March"],
|
6567
6582
|
3: ["April", "May", "June"],
|
6568
6583
|
6: ["July", "August", "September"],
|
6569
6584
|
9: ["October", "November", "December"]
|
6570
|
-
},
|
6585
|
+
}, nl = {
|
6571
6586
|
0: ["Jan", "Feb", "Mar"],
|
6572
6587
|
3: ["Apr", "May", "Jun"],
|
6573
6588
|
6: ["Jul", "Aug", "Sep"],
|
6574
6589
|
9: ["Oct", "Nov", "Dec"]
|
6575
|
-
},
|
6590
|
+
}, il = {
|
6576
6591
|
PREFERENCES: {
|
6577
6592
|
TITLE: "User profile",
|
6578
6593
|
NAME: "Name",
|
@@ -6612,7 +6627,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6612
6627
|
SEND_ON_ENTER: "The following option allows you to choose whether you want to send a message when you press Enter or if you want to use Ctrl+Enter (Cmd+Enter on Mac). If you choose to send a message on Enter, you will need use Shift+Enter to insert a new line.",
|
6613
6628
|
USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Diggidy will remember your previous interactions and use them to provide more relevant responses."
|
6614
6629
|
}
|
6615
|
-
},
|
6630
|
+
}, Oo = ({
|
6616
6631
|
className: e,
|
6617
6632
|
isCapabilitiesSuccess: t,
|
6618
6633
|
capabilities: r
|
@@ -6626,12 +6641,12 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6626
6641
|
children: [
|
6627
6642
|
/* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(ro, {}) }),
|
6628
6643
|
/* @__PURE__ */ q("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
6629
|
-
/* @__PURE__ */ h("h1", { children:
|
6644
|
+
/* @__PURE__ */ h("h1", { children: k }),
|
6630
6645
|
/* @__PURE__ */ h("h2", { children: t && r?.runningMode === "development" ? Io : Ao })
|
6631
6646
|
] })
|
6632
6647
|
]
|
6633
6648
|
}
|
6634
|
-
),
|
6649
|
+
), ko = () => {
|
6635
6650
|
const { login: e, logoutReason: t, loginWithPasskey: r } = as(), [s, a] = ne(""), [n, i] = ne(""), [o, c] = ne(!0), [f, d] = ne({
|
6636
6651
|
username: "",
|
6637
6652
|
password: ""
|
@@ -6651,7 +6666,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6651
6666
|
className: hs({
|
6652
6667
|
extraClass: "rounded-md pb-10"
|
6653
6668
|
}),
|
6654
|
-
children: /* @__PURE__ */ h(
|
6669
|
+
children: /* @__PURE__ */ h(Oo, {})
|
6655
6670
|
}
|
6656
6671
|
),
|
6657
6672
|
/* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(oo, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ q(to, { mode: "dark", children: [
|
@@ -6739,9 +6754,9 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6739
6754
|
] })
|
6740
6755
|
] }) }) }) })
|
6741
6756
|
] });
|
6742
|
-
}, No = new URL(document.location.href).searchParams, vr = !!No.get("debug") || !1, Po =
|
6757
|
+
}, No = new URL(document.location.href).searchParams, vr = !!No.get("debug") || !1, Po = Os(() => import(
|
6743
6758
|
/* webpackChunkName: "LazyApp" */
|
6744
|
-
"./App.
|
6759
|
+
"./App.B8ehtPCy.js"
|
6745
6760
|
).then((e) => e.App)), $o = new Xs(), Tr = ({
|
6746
6761
|
isComponent: e,
|
6747
6762
|
headerHeight: t
|
@@ -6754,7 +6769,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6754
6769
|
getAccessToken: n,
|
6755
6770
|
children: /* @__PURE__ */ h(Po, { isComponent: e, headerHeight: t })
|
6756
6771
|
}
|
6757
|
-
) }) }) : /* @__PURE__ */ h(
|
6772
|
+
) }) }) : /* @__PURE__ */ h(ko, {});
|
6758
6773
|
}, xo = ({
|
6759
6774
|
isComponent: e = !1,
|
6760
6775
|
headerHeight: t = 0,
|
@@ -6772,7 +6787,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6772
6787
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
6773
6788
|
children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t })
|
6774
6789
|
}
|
6775
|
-
) : /* @__PURE__ */ h(pr, { clientId: yr, domain: r, debug: vr, children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t }) })),
|
6790
|
+
) : /* @__PURE__ */ h(pr, { clientId: yr, domain: r, debug: vr, children: /* @__PURE__ */ h(Tr, { isComponent: e, headerHeight: t }) })), ol = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
|
6776
6791
|
xo,
|
6777
6792
|
{
|
6778
6793
|
isComponent: !0,
|
@@ -6781,115 +6796,116 @@ Press Ctrl+Enter to send it or Enter for new line.`, Jc = "{{clipboard}}", P = "
|
|
6781
6796
|
}
|
6782
6797
|
);
|
6783
6798
|
export {
|
6784
|
-
|
6799
|
+
qc as ABOUT_TITLE,
|
6785
6800
|
Qo as ACTION_RESET_PROMPT,
|
6786
6801
|
jo as ACTION_SEARCH,
|
6787
6802
|
Vo as ACTION_SORT,
|
6788
6803
|
Jo as ACTION_TOGGLE_PROMPT,
|
6789
|
-
|
6790
|
-
|
6804
|
+
sl as APP_CLASSNAME,
|
6805
|
+
Ac as Ae,
|
6791
6806
|
bs as C,
|
6792
|
-
|
6793
|
-
|
6794
|
-
|
6807
|
+
il as CARDS,
|
6808
|
+
Qc as CLIPBOARD_PROMPT,
|
6809
|
+
lc as DEFAULT_ICON_ACTION_SIZE,
|
6795
6810
|
Vn as E,
|
6796
6811
|
qo as ERROR_MESSAGE,
|
6797
|
-
|
6798
|
-
|
6812
|
+
Yc as FOOTER_DISCLAIMERS,
|
6813
|
+
Wc as HISTORY_TITLE,
|
6799
6814
|
lt as I,
|
6800
|
-
|
6801
|
-
|
6802
|
-
|
6803
|
-
|
6804
|
-
|
6805
|
-
|
6806
|
-
|
6807
|
-
|
6808
|
-
|
6815
|
+
ic as INFINITE_SCROLL_LIMIT,
|
6816
|
+
nc as INFINITE_SCROLL_THRESHOLD,
|
6817
|
+
mc as INPUT_BOTTOM_OFFSET,
|
6818
|
+
gc as INPUT_BOTTOM_OFFSET_EXTRA,
|
6819
|
+
yc as INPUT_BOTTOM_OFFSET_IPAD,
|
6820
|
+
pc as INPUT_BOTTOM_OFFSET_IPHONE,
|
6821
|
+
Jc as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
|
6822
|
+
Vc as INPUT_PLACEHOLDER_TEXT_ENTER,
|
6823
|
+
jc as INPUT_PLACEHOLDER_TEXT_MOBILE,
|
6809
6824
|
oo as L,
|
6825
|
+
rc as LOCAL_STORAGE_FAVORITES_ONLY,
|
6810
6826
|
ns as LOCAL_STORAGE_PREFIX,
|
6811
|
-
|
6812
|
-
|
6827
|
+
sc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
6828
|
+
ac as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
6813
6829
|
Yo as LOCAL_STORAGE_SEARCH,
|
6814
6830
|
zo as LOCAL_STORAGE_SORT,
|
6815
6831
|
tc as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
|
6816
6832
|
ec as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
|
6817
6833
|
Xo as LOCAL_STORAGE_SORT_TIMESTAMP,
|
6818
6834
|
Zo as LOCAL_STORAGE_SORT_TOKEN_USAGE,
|
6819
|
-
|
6820
|
-
|
6821
|
-
|
6822
|
-
|
6823
|
-
|
6824
|
-
|
6825
|
-
|
6826
|
-
|
6835
|
+
Hc as LOG_OUT,
|
6836
|
+
Oo as Logo,
|
6837
|
+
Rc as Oe,
|
6838
|
+
Gc as PROFILE_TITLE,
|
6839
|
+
zc as PROMPTS_DESCRIPTION,
|
6840
|
+
oc as PROMPT_CLASSNAME,
|
6841
|
+
cc as PROMPT_EDITABLE_AREA_CLASSNAME,
|
6842
|
+
Cc as Re,
|
6827
6843
|
to as S,
|
6828
6844
|
te as SERVICE_TYPES,
|
6829
|
-
|
6830
|
-
|
6831
|
-
|
6832
|
-
|
6833
|
-
|
6834
|
-
|
6835
|
-
|
6836
|
-
|
6837
|
-
|
6838
|
-
|
6839
|
-
|
6840
|
-
|
6841
|
-
|
6842
|
-
|
6845
|
+
Bc as SETTINGS_TITLE,
|
6846
|
+
ol as SassySaint,
|
6847
|
+
rl as TOAST_CACHE_DISABLED,
|
6848
|
+
tl as TOAST_CACHE_ENABLED,
|
6849
|
+
Zc as TOAST_CHAT_DELETED,
|
6850
|
+
el as TOAST_CHAT_SAVED,
|
6851
|
+
Xc as TOAST_PROVIDER_CHANGED,
|
6852
|
+
al as TRIMESTERS,
|
6853
|
+
nl as TRIMESTERS_SHORT,
|
6854
|
+
dc as UI_BUTTON_SCROLL_BUFFER,
|
6855
|
+
hc as UI_DEFAULT_MAIN_HEIGHT,
|
6856
|
+
fc as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
|
6857
|
+
uc as UI_FOOTER_BUFFER,
|
6858
|
+
Kc as USAGE_TITLE,
|
6843
6859
|
jt as Y,
|
6844
|
-
|
6860
|
+
wc as a,
|
6845
6861
|
Xi as b,
|
6846
|
-
|
6862
|
+
Sc as c,
|
6847
6863
|
$i as convertCamelCaseToReadable,
|
6848
|
-
|
6849
|
-
|
6850
|
-
|
6864
|
+
_c as de,
|
6865
|
+
Oi as debounce,
|
6866
|
+
Ec as getCacheInfo,
|
6851
6867
|
wi as getCurrentGeoLocation,
|
6852
6868
|
fs as getLayoutPaddingClass,
|
6853
6869
|
hs as getMessageContaintWrapperClass,
|
6854
6870
|
je as h,
|
6855
|
-
|
6871
|
+
bc as handleServiceWorkerToggle,
|
6856
6872
|
ws as i,
|
6857
6873
|
cs as i$1,
|
6858
6874
|
Pi as isPWAMode,
|
6859
6875
|
ps as isProbablyMobile,
|
6860
6876
|
Ni as isProbablyiPad,
|
6861
|
-
|
6877
|
+
ki as isProbablyiPhone,
|
6862
6878
|
Nt as isServiceWorkerEnabled,
|
6863
6879
|
ms as isTauri,
|
6864
6880
|
Pe as it,
|
6865
6881
|
he as j,
|
6866
6882
|
ao as l,
|
6867
|
-
|
6883
|
+
k as le,
|
6868
6884
|
oi as mutateCall,
|
6869
6885
|
as as n,
|
6870
|
-
|
6886
|
+
vc as ne,
|
6871
6887
|
_i as numberFormatter,
|
6872
6888
|
Es as o,
|
6873
6889
|
Si as obfuscate,
|
6874
|
-
|
6890
|
+
Tc as oe,
|
6875
6891
|
Ci as pluralize,
|
6876
6892
|
Ti as renderDataAsList,
|
6877
6893
|
ii as serverUrl,
|
6878
|
-
|
6894
|
+
Oc as setNewProvider,
|
6879
6895
|
rt as te,
|
6880
|
-
|
6896
|
+
Ic as ue,
|
6881
6897
|
vi as unObfuscate,
|
6882
|
-
|
6883
|
-
|
6884
|
-
|
6885
|
-
|
6886
|
-
|
6887
|
-
|
6898
|
+
Nc as useChangelogs,
|
6899
|
+
$c as useChatsHistory,
|
6900
|
+
xc as useChatsUsage,
|
6901
|
+
Lc as useDeleteAllMemories,
|
6902
|
+
Mc as useDeleteMemory,
|
6903
|
+
Uc as useEntitlements,
|
6888
6904
|
kc as useServerCapabilities,
|
6889
|
-
|
6890
|
-
|
6905
|
+
Pc as useUserChatStats,
|
6906
|
+
Dc as useUserMemories,
|
6891
6907
|
ci as useUserPreferences,
|
6892
|
-
|
6908
|
+
Fc as utilities,
|
6893
6909
|
Ts as x,
|
6894
6910
|
Jn as y
|
6895
6911
|
};
|