@versini/sassysaint 6.6.10 → 7.0.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/{App.D4Te-1xT.js → App.D7zkk9cs.js} +2076 -2044
- package/dist/chunks/{MessageAssistant.Dntrn2Cr.js → ChatBubbleAssistant.DUyDXsSm.js} +802 -800
- package/dist/chunks/{MarkdownWithExtra.Db66Hm3K.js → MarkdownWithExtra.LAUBYRhn.js} +2 -2
- package/dist/chunks/{index.CNAtqeo6.js → index.Ckh_vJwX.js} +88 -94
- package/dist/chunks/{index.BYwV-qI7.js → index.DOnA1L7J.js} +431 -430
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as Ve, jsxs as P0, Fragment as ka } from "react/jsx-runtime";
|
|
2
|
-
import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./
|
|
3
|
-
import { re as Is, L as Ds, j as Ls } from "./index.
|
|
2
|
+
import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./ChatBubbleAssistant.DUyDXsSm.js";
|
|
3
|
+
import { re as Is, L as Ds, j as Ls } from "./index.Ckh_vJwX.js";
|
|
4
4
|
import zs, { useState as Bs, useEffect as Fs } from "react";
|
|
5
5
|
import Ps from "clsx";
|
|
6
6
|
const Ta = ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as D, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import X, { createContext as sr, useReducer as Tt, useRef as
|
|
2
|
+
import X, { createContext as sr, useReducer as Tt, useRef as x, useCallback as q, useEffect as Y, useContext as St, useSyncExternalStore as ir, useLayoutEffect as Ne, useMemo as Le, useState as z, useId as _t, lazy as cr, Suspense as lr } from "react";
|
|
3
3
|
import p from "clsx";
|
|
4
4
|
var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
@@ -351,7 +351,7 @@ awIDAQAB
|
|
|
351
351
|
LOGOUT: "logout",
|
|
352
352
|
LOGIN: "login",
|
|
353
353
|
REFRESH: "refresh"
|
|
354
|
-
}, Me = crypto,
|
|
354
|
+
}, Me = crypto, xt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
|
|
355
355
|
function wr(...e) {
|
|
356
356
|
const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
|
|
357
357
|
let a = 0;
|
|
@@ -392,12 +392,12 @@ class Xe extends P {
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
Xe.code = "ERR_JWT_EXPIRED";
|
|
395
|
-
class
|
|
395
|
+
class Ct extends P {
|
|
396
396
|
constructor() {
|
|
397
397
|
super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
|
|
400
|
+
Ct.code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
401
401
|
let W = class extends P {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
@@ -485,7 +485,7 @@ function vr(e) {
|
|
|
485
485
|
throw new Error("unreachable");
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function xr(e, t) {
|
|
489
489
|
if (t.length && !t.some((r) => e.usages.includes(r))) {
|
|
490
490
|
let r = "CryptoKey does not support this operation, its usages must include ";
|
|
491
491
|
if (t.length > 2) {
|
|
@@ -495,7 +495,7 @@ function Cr(e, t) {
|
|
|
495
495
|
throw new TypeError(r);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Cr(e, t, ...r) {
|
|
499
499
|
switch (t) {
|
|
500
500
|
case "HS256":
|
|
501
501
|
case "HS384":
|
|
@@ -545,7 +545,7 @@ function xr(e, t, ...r) {
|
|
|
545
545
|
default:
|
|
546
546
|
throw new TypeError("CryptoKey does not support this operation");
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
xr(e, r);
|
|
549
549
|
}
|
|
550
550
|
function Pt(e, t, ...r) {
|
|
551
551
|
var a;
|
|
@@ -559,7 +559,7 @@ const it = (e, ...t) => Pt("Key must be ", e, ...t);
|
|
|
559
559
|
function Dt(e, t, ...r) {
|
|
560
560
|
return Pt(`Key for the ${e} algorithm must be `, t, ...r);
|
|
561
561
|
}
|
|
562
|
-
const Lt = (e) =>
|
|
562
|
+
const Lt = (e) => xt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = ["CryptoKey"], Or = (...e) => {
|
|
563
563
|
const t = e.filter(Boolean);
|
|
564
564
|
if (t.length === 0 || t.length === 1)
|
|
565
565
|
return !0;
|
|
@@ -693,7 +693,7 @@ const $t = async (e) => {
|
|
|
693
693
|
return delete n.alg, delete n.use, Me.subtle.importKey("jwk", n, ...a);
|
|
694
694
|
}, Mt = (e) => te(e);
|
|
695
695
|
let oe, se;
|
|
696
|
-
const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
696
|
+
const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ce = async (e, t, r, a, n = !1) => {
|
|
697
697
|
let o = e.get(t);
|
|
698
698
|
if (o != null && o[a])
|
|
699
699
|
return o[a];
|
|
@@ -702,15 +702,15 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
702
702
|
}, Kr = (e, t) => {
|
|
703
703
|
if (Ut(e)) {
|
|
704
704
|
let r = e.export({ format: "jwk" });
|
|
705
|
-
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()),
|
|
705
|
+
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, e, r, t));
|
|
706
706
|
}
|
|
707
|
-
return pe(e) ? e.k ? te(e.k) : (se || (se = /* @__PURE__ */ new WeakMap()),
|
|
707
|
+
return pe(e) ? e.k ? te(e.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, e, e, t, !0)) : e;
|
|
708
708
|
}, Hr = (e, t) => {
|
|
709
709
|
if (Ut(e)) {
|
|
710
710
|
let r = e.export({ format: "jwk" });
|
|
711
|
-
return r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()),
|
|
711
|
+
return r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, r, t));
|
|
712
712
|
}
|
|
713
|
-
return pe(e) ? e.k ? te(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()),
|
|
713
|
+
return pe(e) ? e.k ? te(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, e, t, !0)) : e;
|
|
714
714
|
}, Wr = { normalizePublicKey: Kr, normalizePrivateKey: Hr }, ee = (e, t, r = 0) => {
|
|
715
715
|
r === 0 && (t.unshift(t.length), t.unshift(6));
|
|
716
716
|
const a = e.indexOf(t[0], r);
|
|
@@ -825,7 +825,7 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Qe = (e, t, r) =>
|
|
|
825
825
|
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');
|
|
826
826
|
}
|
|
827
827
|
if (!Lt(t))
|
|
828
|
-
throw new TypeError(Dt(e, t, ...
|
|
828
|
+
throw new TypeError(Dt(e, t, ...xe, "Uint8Array", a ? "JSON Web Key" : null));
|
|
829
829
|
if (t.type !== "secret")
|
|
830
830
|
throw new TypeError(`${ue(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
831
831
|
}
|
|
@@ -842,7 +842,7 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Qe = (e, t, r) =>
|
|
|
842
842
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
843
843
|
}
|
|
844
844
|
if (!Lt(t))
|
|
845
|
-
throw new TypeError(Dt(e, t, ...
|
|
845
|
+
throw new TypeError(Dt(e, t, ...xe, a ? "JSON Web Key" : null));
|
|
846
846
|
if (t.type === "secret")
|
|
847
847
|
throw new TypeError(`${ue(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
848
848
|
if (r === "sign" && t.type === "public")
|
|
@@ -910,14 +910,14 @@ function qr(e, t) {
|
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
async function Xr(e, t, r) {
|
|
913
|
-
if (t = await Wr.normalizePublicKey(t, e),
|
|
914
|
-
return
|
|
913
|
+
if (t = await Wr.normalizePublicKey(t, e), xt(t))
|
|
914
|
+
return Cr(t, e, r), t;
|
|
915
915
|
if (t instanceof Uint8Array) {
|
|
916
916
|
if (!e.startsWith("HS"))
|
|
917
|
-
throw new TypeError(it(t, ...
|
|
917
|
+
throw new TypeError(it(t, ...xe));
|
|
918
918
|
return Me.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
|
919
919
|
}
|
|
920
|
-
throw new TypeError(it(t, ...
|
|
920
|
+
throw new TypeError(it(t, ...xe, "Uint8Array", "JSON Web Key"));
|
|
921
921
|
}
|
|
922
922
|
const Qr = async (e, t, r, a) => {
|
|
923
923
|
const n = await Xr(e, t, "verify");
|
|
@@ -964,7 +964,7 @@ async function Zr(e, t, r) {
|
|
|
964
964
|
throw new _('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
965
965
|
const d = zr("algorithms", r.algorithms);
|
|
966
966
|
if (d && !d.has(i))
|
|
967
|
-
throw new
|
|
967
|
+
throw new Ct('"alg" (Algorithm) Header Parameter value not allowed');
|
|
968
968
|
if (s) {
|
|
969
969
|
if (typeof e.payload != "string")
|
|
970
970
|
throw new _("JWS Payload must be a string");
|
|
@@ -1434,7 +1434,7 @@ const ie = "Your session has expired. For your security, please log in again to
|
|
|
1434
1434
|
} catch {
|
|
1435
1435
|
return "";
|
|
1436
1436
|
}
|
|
1437
|
-
},
|
|
1437
|
+
}, xa = async ({
|
|
1438
1438
|
userId: e,
|
|
1439
1439
|
clientId: t,
|
|
1440
1440
|
domain: r,
|
|
@@ -1458,7 +1458,7 @@ const ie = "Your session has expired. For your security, please log in again to
|
|
|
1458
1458
|
status: F
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
},
|
|
1461
|
+
}, Ca = async ({
|
|
1462
1462
|
username: e,
|
|
1463
1463
|
password: t,
|
|
1464
1464
|
clientId: r,
|
|
@@ -1667,7 +1667,7 @@ const La = (e) => q(
|
|
|
1667
1667
|
const [o, s] = Tt(Ma, {
|
|
1668
1668
|
...jt,
|
|
1669
1669
|
debug: n
|
|
1670
|
-
}), i = La(n), d =
|
|
1670
|
+
}), i = La(n), d = x(!1), [h, f, , u] = Ie({
|
|
1671
1671
|
key: `${Te}::${r}::@@user@@`
|
|
1672
1672
|
}), [c, m, , y] = Ie({
|
|
1673
1673
|
key: `${Te}::${r}::@@access@@`
|
|
@@ -1704,7 +1704,7 @@ const La = (e) => q(
|
|
|
1704
1704
|
const { user: E } = o, b = (E == null ? void 0 : E.userId) || va(h);
|
|
1705
1705
|
b || i(
|
|
1706
1706
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1707
|
-
), await
|
|
1707
|
+
), await xa({
|
|
1708
1708
|
userId: b,
|
|
1709
1709
|
clientId: r,
|
|
1710
1710
|
domain: a,
|
|
@@ -1748,7 +1748,7 @@ const La = (e) => q(
|
|
|
1748
1748
|
code_challenge: or
|
|
1749
1749
|
});
|
|
1750
1750
|
if (st.status) {
|
|
1751
|
-
const ne = await
|
|
1751
|
+
const ne = await Ca({
|
|
1752
1752
|
username: g,
|
|
1753
1753
|
password: E,
|
|
1754
1754
|
clientId: r,
|
|
@@ -1804,7 +1804,7 @@ const La = (e) => q(
|
|
|
1804
1804
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1805
1805
|
), await S(Aa), "";
|
|
1806
1806
|
}
|
|
1807
|
-
},
|
|
1807
|
+
}, C = () => o.isAuthenticated && h ? h : "", O = async () => {
|
|
1808
1808
|
const { user: g } = o;
|
|
1809
1809
|
let E = await le({
|
|
1810
1810
|
accessToken: c,
|
|
@@ -1910,14 +1910,14 @@ const La = (e) => q(
|
|
|
1910
1910
|
login: M,
|
|
1911
1911
|
logout: K,
|
|
1912
1912
|
getAccessToken: T,
|
|
1913
|
-
getIdToken:
|
|
1913
|
+
getIdToken: C,
|
|
1914
1914
|
registeringForPasskey: O,
|
|
1915
1915
|
loginWithPasskey: G
|
|
1916
1916
|
},
|
|
1917
1917
|
children: e
|
|
1918
1918
|
}
|
|
1919
1919
|
) });
|
|
1920
|
-
}, qt = (e = zt) => St(e), Eo = "user", wo = "assistant", Io = "system", To = "internal", So = "hidden", _o = "I'm having trouble right now. Please try again later.", ko = "OpenAI", Ao = "OpenAI", Ro = "Anthropic", No = "action-
|
|
1920
|
+
}, qt = (e = zt) => St(e), Eo = "user", wo = "assistant", Io = "system", To = "internal", So = "hidden", _o = "I'm having trouble right now. Please try again later.", ko = "OpenAI", Ao = "OpenAI", Ro = "Anthropic", No = "action-search", vo = "action-sort", xo = "action-toggle-prompt", Co = "action-reset-prompt", Oo = "sassy-saint-", Po = "details", Do = "search", Lo = "sort", $o = "private-disclosure", Mo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Uo = 10, Ko = 30, Ho = "av-prompt", Wo = "av-prompt-editable", Bo = "size-5 sm:size-4", bt = (e) => Number.isFinite(e) ? e : 0;
|
|
1921
1921
|
function Ha(e) {
|
|
1922
1922
|
return {
|
|
1923
1923
|
days: Math.trunc(e / 864e5),
|
|
@@ -1997,7 +1997,7 @@ function Fa(e, t) {
|
|
|
1997
1997
|
const h = t.colonNotation ? ":" : " ";
|
|
1998
1998
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1999
1999
|
}
|
|
2000
|
-
const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com",
|
|
2000
|
+
const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com", Go = async () => {
|
|
2001
2001
|
const e = {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* A boolean value that indicates the application would
|
|
@@ -2046,10 +2046,10 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2046
2046
|
e
|
|
2047
2047
|
);
|
|
2048
2048
|
});
|
|
2049
|
-
},
|
|
2049
|
+
}, Jo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
|
|
2050
2050
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2051
2051
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2052
|
-
] }) }, `${e}-${r}`)) : null,
|
|
2052
|
+
] }) }, `${e}-${r}`)) : null, Vo = (e) => e > 0 ? Fa(e, {
|
|
2053
2053
|
secondsDecimalDigits: 2,
|
|
2054
2054
|
unitCount: 2
|
|
2055
2055
|
}) : "N/A", Xa = ({
|
|
@@ -2061,7 +2061,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2061
2061
|
t
|
|
2062
2062
|
), Qa = ({
|
|
2063
2063
|
extraClass: e
|
|
2064
|
-
}) => p("px-2 sm:px-0", e),
|
|
2064
|
+
}) => p("px-2 sm:px-0", e), Yo = (e, t) => t === 1 ? e : `${e}s`, Fo = (e, t) => {
|
|
2065
2065
|
let r;
|
|
2066
2066
|
return (...a) => {
|
|
2067
2067
|
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
@@ -2420,7 +2420,7 @@ const Qt = X.forwardRef(
|
|
|
2420
2420
|
);
|
|
2421
2421
|
Qt.displayName = "Button";
|
|
2422
2422
|
function hn() {
|
|
2423
|
-
const e =
|
|
2423
|
+
const e = x(!1);
|
|
2424
2424
|
return Y(() => (e.current = !0, () => {
|
|
2425
2425
|
e.current = !1;
|
|
2426
2426
|
}), []), q(() => e.current, []);
|
|
@@ -2444,7 +2444,7 @@ const fn = {
|
|
|
2444
2444
|
right: 0
|
|
2445
2445
|
};
|
|
2446
2446
|
function je(e) {
|
|
2447
|
-
const t = hn(), r =
|
|
2447
|
+
const t = hn(), r = x(0), a = x(null), [n, o] = z(fn), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
2448
2448
|
const d = i[0];
|
|
2449
2449
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2450
2450
|
a.current && t() && o(d.contentRect);
|
|
@@ -2509,16 +2509,16 @@ const gn = {
|
|
|
2509
2509
|
radius: I,
|
|
2510
2510
|
variant: k,
|
|
2511
2511
|
animated: L
|
|
2512
|
-
}), U = dn({ mode: r, raw: i, iconClassName: Q }), S = un({ animated: L }), [M, K] = je(), [T,
|
|
2512
|
+
}), U = dn({ mode: r, raw: i, iconClassName: Q }), S = un({ animated: L }), [M, K] = je(), [T, C] = je(), [O, G] = je(), g = x(0), E = x(null), b = pn([$, E]);
|
|
2513
2513
|
return Ne(() => {
|
|
2514
2514
|
O && O.current && L && (g.current = G.width + yn[u] + (d ? 0 : bn));
|
|
2515
2515
|
}, [G, O, u, d, L]), Ne(() => {
|
|
2516
|
-
E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m &&
|
|
2516
|
+
E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (T.current && (T.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (M.current && (M.current.style.opacity = "0"), T.current && (T.current.style.opacity = "0"), E.current.style.width = `${gn[u]}px`));
|
|
2517
2517
|
}, [
|
|
2518
2518
|
K,
|
|
2519
2519
|
c,
|
|
2520
2520
|
M,
|
|
2521
|
-
|
|
2521
|
+
C,
|
|
2522
2522
|
m,
|
|
2523
2523
|
T,
|
|
2524
2524
|
u,
|
|
@@ -2920,10 +2920,10 @@ const Nn = "av-main", vn = ({
|
|
|
2920
2920
|
t
|
|
2921
2921
|
);
|
|
2922
2922
|
return /* @__PURE__ */ l("main", { className: o, children: e });
|
|
2923
|
-
},
|
|
2923
|
+
}, xn = "av-flexgrid", _e = "av-flexgrid-item", De = 0.25, et = X.createContext({
|
|
2924
2924
|
columnGap: 0,
|
|
2925
2925
|
rowGap: 0
|
|
2926
|
-
}),
|
|
2926
|
+
}), Cn = ({
|
|
2927
2927
|
children: e,
|
|
2928
2928
|
className: t,
|
|
2929
2929
|
columnGap: r = 1,
|
|
@@ -2949,7 +2949,7 @@ const Nn = "av-main", vn = ({
|
|
|
2949
2949
|
marginLeft: r * -1 * De + "rem",
|
|
2950
2950
|
marginTop: a * -1 * De + "rem"
|
|
2951
2951
|
}, u = p(
|
|
2952
|
-
|
|
2952
|
+
xn,
|
|
2953
2953
|
"box-border flex flex-wrap"
|
|
2954
2954
|
), c = { columnGap: r, rowGap: a };
|
|
2955
2955
|
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(et.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(et.Provider, { value: c, children: e }) });
|
|
@@ -3079,7 +3079,7 @@ try {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
const Zt = "av-text-input", Pn = "av-text-input-wrapper", qe = "av-text-input-helper-text";
|
|
3081
3081
|
function Dn() {
|
|
3082
|
-
const e =
|
|
3082
|
+
const e = x(!1);
|
|
3083
3083
|
return Y(() => (e.current = !0, () => {
|
|
3084
3084
|
e.current = !1;
|
|
3085
3085
|
}), []), q(() => e.current, []);
|
|
@@ -3095,7 +3095,7 @@ const Ln = {
|
|
|
3095
3095
|
right: 0
|
|
3096
3096
|
};
|
|
3097
3097
|
function $n(e) {
|
|
3098
|
-
const t = Dn(), r =
|
|
3098
|
+
const t = Dn(), r = x(0), a = x(null), [n, o] = z(Ln), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3099
3099
|
const d = i[0];
|
|
3100
3100
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3101
3101
|
a.current && t() && o(d.contentRect);
|
|
@@ -3197,7 +3197,7 @@ function rr({
|
|
|
3197
3197
|
visible: i,
|
|
3198
3198
|
...d
|
|
3199
3199
|
}) {
|
|
3200
|
-
const h =
|
|
3200
|
+
const h = x(null), f = x(null), [u, c] = Tt(Kn, {
|
|
3201
3201
|
announcement: null
|
|
3202
3202
|
});
|
|
3203
3203
|
let m = r;
|
|
@@ -3404,7 +3404,7 @@ const Bn = ({
|
|
|
3404
3404
|
size: k = "md",
|
|
3405
3405
|
...Q
|
|
3406
3406
|
}, L) => {
|
|
3407
|
-
const [Z, $] = $n(), [B, U] = z(0), S = Mn({ id: e, prefix: `${Zt}-` }), M = `${t} error, ${y}`, K =
|
|
3407
|
+
const [Z, $] = $n(), [B, U] = z(0), S = Mn({ id: e, prefix: `${Zt}-` }), M = `${t} error, ${y}`, K = x(null), T = x(null), C = {
|
|
3408
3408
|
xs: { label: "-25px", helperText: "30px" },
|
|
3409
3409
|
sm: { label: "-29px", helperText: "34px" },
|
|
3410
3410
|
md: { label: "-33px", helperText: "38px" },
|
|
@@ -3426,7 +3426,7 @@ const Bn = ({
|
|
|
3426
3426
|
$ && $.width && U($.width + 18 + 10);
|
|
3427
3427
|
}, [$]), Ne(() => {
|
|
3428
3428
|
var G, g;
|
|
3429
|
-
const { label: E, helperText: b } =
|
|
3429
|
+
const { label: E, helperText: b } = C[k];
|
|
3430
3430
|
(G = K == null ? void 0 : K.current) == null || G.style.setProperty("--av-text-input-label", E), (g = T == null ? void 0 : T.current) == null || g.style.setProperty(
|
|
3431
3431
|
"--av-text-input-helper-text",
|
|
3432
3432
|
b
|
|
@@ -3514,7 +3514,7 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
|
|
|
3514
3514
|
const [c, m] = z(!0), [y, w] = z({
|
|
3515
3515
|
message: null,
|
|
3516
3516
|
politeness: null
|
|
3517
|
-
}), I =
|
|
3517
|
+
}), I = x(!0), k = x(null), Q = x(null), L = jn([u, Q]), Z = c ? "Show" : "Hide", $ = () => {
|
|
3518
3518
|
k.current && clearTimeout(k.current), I.current || (k.current = setTimeout(() => {
|
|
3519
3519
|
I.current = !0, m(!0), w({
|
|
3520
3520
|
announcementTimeout: qn,
|
|
@@ -3524,15 +3524,15 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
|
|
|
3524
3524
|
}, Xn));
|
|
3525
3525
|
}, B = (T) => {
|
|
3526
3526
|
T.preventDefault();
|
|
3527
|
-
const
|
|
3528
|
-
I.current =
|
|
3527
|
+
const C = !I.current;
|
|
3528
|
+
I.current = C, $(), m(C), w({
|
|
3529
3529
|
announcementTimeout: zn,
|
|
3530
3530
|
politeness: "assertive",
|
|
3531
|
-
message:
|
|
3532
|
-
}), n && n(
|
|
3531
|
+
message: C ? "Characters hidden" : "Characters showing"
|
|
3532
|
+
}), n && n(C);
|
|
3533
3533
|
}, U = (T) => {
|
|
3534
|
-
var
|
|
3535
|
-
const { relatedTarget: O } = T, G = (
|
|
3534
|
+
var C;
|
|
3535
|
+
const { relatedTarget: O } = T, G = (C = Q.current) == null ? void 0 : C.parentElement;
|
|
3536
3536
|
G != null && G.contains(O) || d && d();
|
|
3537
3537
|
}, S = (T) => {
|
|
3538
3538
|
$(), s && s(T), U(T);
|
|
@@ -3592,7 +3592,7 @@ try {
|
|
|
3592
3592
|
});
|
|
3593
3593
|
} catch {
|
|
3594
3594
|
}
|
|
3595
|
-
const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in with a Passkey",
|
|
3595
|
+
const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in with a Passkey", jo = "Log out", to = "Password", zo = "Profile", qo = "Settings", Xo = "Chat history", Qo = "About", Zo = "Type your question here", es = "{{clipboard}}", ts = `Sometimes, ${nr} hallucinates. Review important details.`, rs = "Prompts are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder {{clipboard}} to automatically insert the content of your clipboard.", as = {
|
|
3596
3596
|
PREFERENCES: {
|
|
3597
3597
|
TITLE: "User profile",
|
|
3598
3598
|
NAME: "Name",
|
|
@@ -3668,7 +3668,7 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3668
3668
|
children: /* @__PURE__ */ l(ro, {})
|
|
3669
3669
|
}
|
|
3670
3670
|
),
|
|
3671
|
-
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(
|
|
3671
|
+
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(Cn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ D(Sn, { mode: "dark", children: [
|
|
3672
3672
|
/* @__PURE__ */ l(re, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
|
|
3673
3673
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
|
|
3674
3674
|
ot,
|
|
@@ -3757,75 +3757,69 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3757
3757
|
) });
|
|
3758
3758
|
}, no = new URL(document.location.href).searchParams, oo = !!no.get("debug") || !1, so = cr(() => import(
|
|
3759
3759
|
/* webpackChunkName: "LazyApp" */
|
|
3760
|
-
"./App.
|
|
3760
|
+
"./App.D7zkk9cs.js"
|
|
3761
3761
|
).then((e) => e.App)), io = ({ isComponent: e }) => {
|
|
3762
3762
|
const { isAuthenticated: t } = qt();
|
|
3763
3763
|
return t ? /* @__PURE__ */ l(lr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(so, { isComponent: e }) }) : /* @__PURE__ */ l(ao, {});
|
|
3764
3764
|
}, co = ({
|
|
3765
3765
|
isComponent: e = !1,
|
|
3766
3766
|
domain: t = qa
|
|
3767
|
-
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }),
|
|
3767
|
+
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }), ns = ({ domain: e }) => /* @__PURE__ */ l(co, { isComponent: !0, domain: e });
|
|
3768
3768
|
export {
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
vo as
|
|
3773
|
-
|
|
3774
|
-
xo as ACTION_RESTORE,
|
|
3775
|
-
Po as ACTION_SEARCH,
|
|
3776
|
-
Do as ACTION_SORT,
|
|
3777
|
-
Oo as ACTION_STREAMING,
|
|
3778
|
-
Lo as ACTION_TOGGLE_PROMPT,
|
|
3769
|
+
Qo as ABOUT_TITLE,
|
|
3770
|
+
Co as ACTION_RESET_PROMPT,
|
|
3771
|
+
No as ACTION_SEARCH,
|
|
3772
|
+
vo as ACTION_SORT,
|
|
3773
|
+
xo as ACTION_TOGGLE_PROMPT,
|
|
3779
3774
|
nr as APP_NAME,
|
|
3780
3775
|
Qt as C,
|
|
3781
|
-
|
|
3782
|
-
|
|
3776
|
+
as as CARDS,
|
|
3777
|
+
es as CLIPBOARD_PROMPT,
|
|
3783
3778
|
ko as DEFAULT_AI_ENGINE,
|
|
3784
|
-
|
|
3779
|
+
Bo as DEFAULT_ICON_ACTION_SIZE,
|
|
3785
3780
|
Ro as ENGINE_ANTHROPIC,
|
|
3786
3781
|
Ao as ENGINE_OPENAI,
|
|
3787
3782
|
_o as ERROR_MESSAGE,
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3783
|
+
ts as FOOTER_DISCLAIMER,
|
|
3784
|
+
Xo as HISTORY_TITLE,
|
|
3785
|
+
Ko as INFINITE_SCROLL_LIMIT,
|
|
3786
|
+
Uo as INFINITE_SCROLL_THRESHOLD,
|
|
3787
|
+
Cn as L,
|
|
3788
|
+
Po as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3789
|
+
Oo as LOCAL_STORAGE_PREFIX,
|
|
3790
|
+
$o as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
3791
|
+
Do as LOCAL_STORAGE_SEARCH,
|
|
3792
|
+
Lo as LOCAL_STORAGE_SORT,
|
|
3793
|
+
jo as LOG_OUT,
|
|
3799
3794
|
ro as Logo,
|
|
3800
3795
|
me as M,
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3796
|
+
zo as PROFILE_TITLE,
|
|
3797
|
+
rs as PROMPTS_DESCRIPTION,
|
|
3798
|
+
Ho as PROMPT_CLASSNAME,
|
|
3799
|
+
Wo as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
3805
3800
|
Sn as R,
|
|
3806
3801
|
wo as ROLE_ASSISTANT,
|
|
3807
3802
|
So as ROLE_HIDDEN,
|
|
3808
3803
|
To as ROLE_INTERNAL,
|
|
3809
3804
|
Io as ROLE_SYSTEM,
|
|
3810
3805
|
Eo as ROLE_USER,
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3806
|
+
qo as SETTINGS_TITLE,
|
|
3807
|
+
Mo as STATS_SEPARATOR,
|
|
3808
|
+
ns as SassySaint,
|
|
3809
|
+
Zo as TYPE_QUESTION,
|
|
3810
|
+
Fo as debounce,
|
|
3811
|
+
Vo as durationFormatter,
|
|
3817
3812
|
He as f,
|
|
3818
3813
|
ot as fe,
|
|
3819
|
-
|
|
3814
|
+
Go as getCurrentGeoLocation,
|
|
3820
3815
|
Qa as getMainPaddingClass,
|
|
3821
3816
|
Xa as getMessageContaintWrapperClass,
|
|
3822
3817
|
Za as isElectron,
|
|
3823
|
-
qo as isLastMessageFromRole,
|
|
3824
3818
|
re as j,
|
|
3825
3819
|
An as l,
|
|
3826
|
-
|
|
3820
|
+
Yo as pluralize,
|
|
3827
3821
|
vn as r,
|
|
3828
3822
|
Pe as re,
|
|
3829
|
-
|
|
3823
|
+
Jo as renderDataAsList,
|
|
3830
3824
|
qt as un
|
|
3831
3825
|
};
|