@versini/sassysaint 8.34.2 → 8.35.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.1N2d-4TQ.js → AboutChangelog.DMWKDv8l.js} +2 -2
- package/dist/chunks/AboutEntry.DFUYyQsY.js +59 -0
- package/dist/chunks/{App.Dx9-zTHB.js → App.DCSCEeDu.js} +160 -146
- package/dist/chunks/{Chart.BZQyCveT.js → Chart.jZDpolhQ.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CzWEbv8c.js → ChatBubbleAssistant.ChVHToDP.js} +3 -3
- package/dist/chunks/{HistoryEntry.cNivgXUK.js → HistoryEntry.R5DVjOAt.js} +2 -2
- package/dist/chunks/{LNWAZHJI.2ywI9eYE.js → LNWAZHJI.DucKAHzu.js} +1 -1
- package/dist/chunks/{ProfileEntry.sDQ3hEDB.js → ProfileEntry.Im3Gy6i6.js} +11 -9
- package/dist/chunks/{SettingsEntry.Bxm2vlzw.js → SettingsEntry.C2uaG7Ju.js} +63 -51
- package/dist/chunks/{UsageEntry.CanqLKxk.js → UsageEntry.CpZOGYr5.js} +18 -16
- package/dist/chunks/{index.BWMHqOIQ.js → index.Bcs1SNB7.js} +2 -2
- package/dist/chunks/{index.B6rltQz_.js → index.C6zTF9ZF.js} +3 -3
- package/dist/chunks/{index.DmHrrtXp.js → index.D9gw5Emx.js} +1 -1
- package/dist/chunks/{index.CC1vk8gw.js → index.DOBzYZBm.js} +1 -1
- package/dist/chunks/{index.CwVOslhQ.js → index.DgZtT_J4.js} +1 -1
- package/dist/chunks/{index.DOg0VpsL.js → index.JQwwuZH2.js} +2 -2
- package/dist/chunks/{useMarkdown.DhPC7902.js → useMarkdown.BLLzDS29.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/AboutEntry.D5y4ZF9S.js +0 -56
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.
|
2
|
+
import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.JQwwuZH2.js";
|
3
3
|
import * as Y from "react";
|
4
|
-
import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Lo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Rs, useDebugValue as
|
4
|
+
import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Lo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Rs, useDebugValue as Bo, forwardRef as As, Suspense as Ns, lazy as it, useReducer as St } from "react";
|
5
5
|
import p from "clsx";
|
6
|
-
import { computePosition as
|
6
|
+
import { computePosition as Do, offset as Os, flip as $s, shift as Ps, arrow as Uo, useMergeRefs as Jr, FloatingPortal as Ms, FloatingOverlay as Ho, FloatingFocusManager as Ls, useFloating as Bs, useClick as Ds, useDismiss as Us, useRole as Hs, useInteractions as Vs, FloatingTree as Vo, useFloatingTree as zs, useFloatingNodeId as zo, useListItem as Fs, autoUpdate as Fo, useListNavigation as Wo, useTypeahead as jo, FloatingNode as Go, FloatingList as Ko } from "@floating-ui/react";
|
7
7
|
var Jo = class extends ho {
|
8
8
|
constructor(e, t) {
|
9
9
|
super(), this.options = t, this.#r = e, this.#s = null, this.#a = ka(), this.options.experimental_prefetchInRender || this.#a.reject(
|
@@ -1004,7 +1004,7 @@ function Li(e) {
|
|
1004
1004
|
});
|
1005
1005
|
};
|
1006
1006
|
}
|
1007
|
-
function
|
1007
|
+
function Bi(e, t, r = !1) {
|
1008
1008
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
1009
1009
|
}
|
1010
1010
|
function Yr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
@@ -1012,14 +1012,14 @@ function Yr(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
1012
1012
|
const a = (s) => {
|
1013
1013
|
e.forEach(
|
1014
1014
|
([n, o, c = { preventDefault: !0 }]) => {
|
1015
|
-
Ws(n)(s) &&
|
1015
|
+
Ws(n)(s) && Bi(s, t, r) && (c.preventDefault && s.preventDefault(), o(s));
|
1016
1016
|
}
|
1017
1017
|
);
|
1018
1018
|
};
|
1019
1019
|
return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
|
1020
1020
|
}, [e, t, r]);
|
1021
1021
|
}
|
1022
|
-
function
|
1022
|
+
function Di() {
|
1023
1023
|
const e = R(null), [t, r] = z(!1);
|
1024
1024
|
return { ref: V((a) => {
|
1025
1025
|
var s, n;
|
@@ -1044,12 +1044,12 @@ const La = (e, t) => {
|
|
1044
1044
|
window.localStorage.setItem(e, r), js(e, r);
|
1045
1045
|
}, Hi = (e) => {
|
1046
1046
|
window.localStorage.removeItem(e), js(e, null);
|
1047
|
-
},
|
1047
|
+
}, Ba = (e) => window.localStorage.getItem(e), Vi = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
1048
1048
|
function Gt({
|
1049
1049
|
key: e,
|
1050
1050
|
initialValue: t
|
1051
1051
|
}) {
|
1052
|
-
const r = Lo(Vi, () =>
|
1052
|
+
const r = Lo(Vi, () => Ba(e)), a = V(
|
1053
1053
|
(o) => {
|
1054
1054
|
try {
|
1055
1055
|
const c = typeof o == "function" ? o(JSON.parse(r)) : o;
|
@@ -1066,7 +1066,7 @@ function Gt({
|
|
1066
1066
|
}, [a]);
|
1067
1067
|
return $(() => {
|
1068
1068
|
try {
|
1069
|
-
|
1069
|
+
Ba(e) === null && typeof t < "u" && La(e, t);
|
1070
1070
|
} catch (o) {
|
1071
1071
|
console.warn(o);
|
1072
1072
|
}
|
@@ -1096,7 +1096,7 @@ function Gs(e) {
|
|
1096
1096
|
function Fi(e) {
|
1097
1097
|
return Kr();
|
1098
1098
|
}
|
1099
|
-
function
|
1099
|
+
function Da(e, t) {
|
1100
1100
|
$(() => (window.addEventListener(e, t, {
|
1101
1101
|
passive: !0
|
1102
1102
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
@@ -1111,7 +1111,7 @@ function Wi() {
|
|
1111
1111
|
height: window.innerHeight || 0
|
1112
1112
|
});
|
1113
1113
|
}, []);
|
1114
|
-
return
|
1114
|
+
return Da("resize", r), Da("orientationchange", r), $(r, []), e;
|
1115
1115
|
}
|
1116
1116
|
function ji() {
|
1117
1117
|
const [e, t] = z({
|
@@ -1567,10 +1567,10 @@ const Tt = {
|
|
1567
1567
|
M && M.current && S && (Q.current = J.width + cc[u] + (l ? 0 : lc), L.current && !L.current.style.width && (L.current.style.width = `${Tt[u]}px`));
|
1568
1568
|
}, [J, M, u, l, S]), Oe(() => {
|
1569
1569
|
if (L && L.current && S) {
|
1570
|
-
let
|
1571
|
-
h && w && F.width > 0 ?
|
1570
|
+
let D = Tt[u];
|
1571
|
+
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Tt[u] && (P.current = setTimeout(() => {
|
1572
1572
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
1573
|
-
}, dc * 0.8))),
|
1573
|
+
}, dc * 0.8))), D === Tt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
1574
1574
|
}
|
1575
1575
|
}, [
|
1576
1576
|
F,
|
@@ -2554,7 +2554,7 @@ Error message: ${sn(r)}`,
|
|
2554
2554
|
};
|
2555
2555
|
fn = Mc;
|
2556
2556
|
var Fa = Lc;
|
2557
|
-
let
|
2557
|
+
let Bc = (e, t = 21) => (r = t) => {
|
2558
2558
|
let a = "", s = r | 0;
|
2559
2559
|
for (; s--; )
|
2560
2560
|
a += e[Math.random() * e.length | 0];
|
@@ -2564,7 +2564,7 @@ function pn(e) {
|
|
2564
2564
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
2565
2565
|
}
|
2566
2566
|
var Ge = { exports: {} }, Wa;
|
2567
|
-
function
|
2567
|
+
function Dc() {
|
2568
2568
|
if (Wa) return Ge.exports;
|
2569
2569
|
Wa = 1;
|
2570
2570
|
const e = typeof Buffer < "u", t = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, r = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
@@ -2636,7 +2636,7 @@ function Bc() {
|
|
2636
2636
|
}
|
2637
2637
|
return Ge.exports = n, Ge.exports.default = n, Ge.exports.parse = n, Ge.exports.safeParse = o, Ge.exports.scan = s, Ge.exports;
|
2638
2638
|
}
|
2639
|
-
var Uc = /* @__PURE__ */
|
2639
|
+
var Uc = /* @__PURE__ */ Dc();
|
2640
2640
|
const Hc = /* @__PURE__ */ pn(Uc);
|
2641
2641
|
var Vc = ({
|
2642
2642
|
prefix: e,
|
@@ -2644,7 +2644,7 @@ var Vc = ({
|
|
2644
2644
|
alphabet: r = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
|
2645
2645
|
separator: a = "-"
|
2646
2646
|
} = {}) => {
|
2647
|
-
const s =
|
2647
|
+
const s = Bc(r, t);
|
2648
2648
|
if (e == null)
|
2649
2649
|
return s;
|
2650
2650
|
if (r.includes(a))
|
@@ -3886,7 +3886,7 @@ const Ne = /* @__PURE__ */ new WeakMap(), Le = () => {
|
|
3886
3886
|
];
|
3887
3887
|
};
|
3888
3888
|
let Mr = !0;
|
3889
|
-
const Nl = () => Mr, [Lr,
|
3889
|
+
const Nl = () => Mr, [Lr, Br] = wt && window.addEventListener ? [
|
3890
3890
|
window.addEventListener.bind(window),
|
3891
3891
|
window.removeEventListener.bind(window)
|
3892
3892
|
] : [
|
@@ -3896,7 +3896,7 @@ const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
|
|
3896
3896
|
const e = Pr && document.visibilityState;
|
3897
3897
|
return G(e) || e !== "hidden";
|
3898
3898
|
}, $l = (e) => (Pr && document.addEventListener("visibilitychange", e), Lr("focus", e), () => {
|
3899
|
-
Pr && document.removeEventListener("visibilitychange", e),
|
3899
|
+
Pr && document.removeEventListener("visibilitychange", e), Br("focus", e);
|
3900
3900
|
}), Pl = (e) => {
|
3901
3901
|
const t = () => {
|
3902
3902
|
Mr = !0, e();
|
@@ -3904,7 +3904,7 @@ const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
|
|
3904
3904
|
Mr = !1;
|
3905
3905
|
};
|
3906
3906
|
return Lr("online", t), Lr("offline", r), () => {
|
3907
|
-
|
3907
|
+
Br("online", t), Br("offline", r);
|
3908
3908
|
};
|
3909
3909
|
}, Ml = {
|
3910
3910
|
isOnline: Nl,
|
@@ -3912,26 +3912,26 @@ const Nl = () => Mr, [Lr, Dr] = wt && window.addEventListener ? [
|
|
3912
3912
|
}, Ll = {
|
3913
3913
|
initFocus: $l,
|
3914
3914
|
initReconnect: Pl
|
3915
|
-
}, Xa = !Z.useId, bt = !wt || Rl,
|
3915
|
+
}, Xa = !Z.useId, bt = !wt || Rl, Bl = (e) => Al() ? window.requestAnimationFrame(e) : setTimeout(e, 1), cr = bt ? $ : Oe, lr = typeof navigator < "u" && navigator.connection, Za = !bt && lr && ([
|
3916
3916
|
"slow-2g",
|
3917
3917
|
"2g"
|
3918
|
-
].includes(lr.effectiveType) || lr.saveData), It = /* @__PURE__ */ new WeakMap(),
|
3918
|
+
].includes(lr.effectiveType) || lr.saveData), It = /* @__PURE__ */ new WeakMap(), Dl = (e) => $r.prototype.toString.call(e), dr = (e, t) => e === `[object ${t}]`;
|
3919
3919
|
let Ul = 0;
|
3920
|
-
const
|
3921
|
-
const t = typeof e, r =
|
3920
|
+
const Dr = (e) => {
|
3921
|
+
const t = typeof e, r = Dl(e), a = dr(r, "Date"), s = dr(r, "RegExp"), n = dr(r, "Object");
|
3922
3922
|
let o, c;
|
3923
3923
|
if ($r(e) === e && !a && !s) {
|
3924
3924
|
if (o = It.get(e), o) return o;
|
3925
3925
|
if (o = ++Ul + "~", It.set(e, o), Array.isArray(e)) {
|
3926
3926
|
for (o = "@", c = 0; c < e.length; c++)
|
3927
|
-
o +=
|
3927
|
+
o += Dr(e[c]) + ",";
|
3928
3928
|
It.set(e, o);
|
3929
3929
|
}
|
3930
3930
|
if (n) {
|
3931
3931
|
o = "#";
|
3932
3932
|
const l = $r.keys(e).sort();
|
3933
3933
|
for (; !G(c = l.pop()); )
|
3934
|
-
G(e[c]) || (o += c + ":" +
|
3934
|
+
G(e[c]) || (o += c + ":" + Dr(e[c]) + ",");
|
3935
3935
|
It.set(e, o);
|
3936
3936
|
}
|
3937
3937
|
} else
|
@@ -3945,7 +3945,7 @@ const Br = (e) => {
|
|
3945
3945
|
e = "";
|
3946
3946
|
}
|
3947
3947
|
const t = e;
|
3948
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
3948
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? Dr(e) : "", [
|
3949
3949
|
e,
|
3950
3950
|
t
|
3951
3951
|
];
|
@@ -4164,20 +4164,20 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4164
4164
|
}), hr = {
|
4165
4165
|
dedupe: !0
|
4166
4166
|
}, ad = (e, t, r) => {
|
4167
|
-
const { cache: a, compare: s, suspense: n, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: m, refreshWhenOffline: u, keepPreviousData: h } = r, [f, g, y, k] = Ne.get(a), [b, x] = sa(e), S = R(!1), N = R(!1), C = R(b), v = R(t), _ = R(r), E = () => _.current, I = () => E().isVisible() && E().isOnline(), [w, F, O, W] = En(a, b), M = R({}).current, J = G(o) ? G(r.fallback) ? de : r.fallback[b] : o, Q = (
|
4167
|
+
const { cache: a, compare: s, suspense: n, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: m, refreshWhenOffline: u, keepPreviousData: h } = r, [f, g, y, k] = Ne.get(a), [b, x] = sa(e), S = R(!1), N = R(!1), C = R(b), v = R(t), _ = R(r), E = () => _.current, I = () => E().isVisible() && E().isOnline(), [w, F, O, W] = En(a, b), M = R({}).current, J = G(o) ? G(r.fallback) ? de : r.fallback[b] : o, Q = (B, A) => {
|
4168
4168
|
for (const j in M) {
|
4169
4169
|
const H = j;
|
4170
4170
|
if (H === "data") {
|
4171
|
-
if (!s(
|
4171
|
+
if (!s(B[H], A[H]) && (!G(B[H]) || !s(Me, A[H])))
|
4172
4172
|
return !1;
|
4173
|
-
} else if (A[H] !==
|
4173
|
+
} else if (A[H] !== B[H])
|
4174
4174
|
return !1;
|
4175
4175
|
}
|
4176
4176
|
return !0;
|
4177
4177
|
}, L = he(() => {
|
4178
|
-
const
|
4178
|
+
const B = !b || !t ? !1 : G(c) ? E().isPaused() || n ? !1 : l !== !1 : c, A = (ee) => {
|
4179
4179
|
const fe = He(ee);
|
4180
|
-
return delete fe._k,
|
4180
|
+
return delete fe._k, B ? {
|
4181
4181
|
isValidating: !0,
|
4182
4182
|
isLoading: !0,
|
4183
4183
|
...fe
|
@@ -4195,21 +4195,21 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4195
4195
|
a,
|
4196
4196
|
b
|
4197
4197
|
]), P = Il.useSyncExternalStore(V(
|
4198
|
-
(
|
4199
|
-
Q(j, A) ||
|
4198
|
+
(B) => O(b, (A, j) => {
|
4199
|
+
Q(j, A) || B();
|
4200
4200
|
}),
|
4201
4201
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4202
4202
|
[
|
4203
4203
|
a,
|
4204
4204
|
b
|
4205
4205
|
]
|
4206
|
-
), L[0], L[1]), q = !S.current,
|
4207
|
-
async (
|
4206
|
+
), L[0], L[1]), q = !S.current, D = f[b] && f[b].length > 0, ge = P.data, ve = G(ge) ? J && kn(J) ? ur(J) : J : ge, Pe = P.error, We = R(ve), Me = h ? G(ge) ? G(We.current) ? ve : We.current : ge : ve, je = D && !G(Pe) ? !1 : q && !G(c) ? c : E().isPaused() ? !1 : n ? G(ve) ? !1 : l : G(ve) || l, _e = !!(b && t && q && je), K = G(P.isValidating) ? _e : P.isValidating, ne = G(P.isLoading) ? _e : P.isLoading, ie = V(
|
4207
|
+
async (B) => {
|
4208
4208
|
const A = v.current;
|
4209
4209
|
if (!b || !A || N.current || E().isPaused())
|
4210
4210
|
return !1;
|
4211
4211
|
let j, H, se = !0;
|
4212
|
-
const me =
|
4212
|
+
const me = B || {}, te = !y[b] || !me.dedupe, ee = () => Xa ? !N.current && b === C.current && S.current : b === C.current, fe = {
|
4213
4213
|
isValidating: !1,
|
4214
4214
|
isLoading: !1
|
4215
4215
|
}, kt = () => {
|
@@ -4268,7 +4268,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4268
4268
|
]
|
4269
4269
|
), ye = V(
|
4270
4270
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
4271
|
-
(...
|
4271
|
+
(...B) => _n(a, C.current, ...B),
|
4272
4272
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4273
4273
|
[]
|
4274
4274
|
);
|
@@ -4276,15 +4276,15 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4276
4276
|
v.current = t, _.current = r, G(ge) || (We.current = ge);
|
4277
4277
|
}), cr(() => {
|
4278
4278
|
if (!b) return;
|
4279
|
-
const
|
4279
|
+
const B = ie.bind(de, hr);
|
4280
4280
|
let A = 0;
|
4281
4281
|
E().revalidateOnFocus && (A = Date.now() + E().focusThrottleInterval);
|
4282
4282
|
const H = rd(b, f, (se, me = {}) => {
|
4283
4283
|
if (se == bn) {
|
4284
4284
|
const te = Date.now();
|
4285
|
-
E().revalidateOnFocus && te > A && I() && (A = te + E().focusThrottleInterval,
|
4285
|
+
E().revalidateOnFocus && te > A && I() && (A = te + E().focusThrottleInterval, B());
|
4286
4286
|
} else if (se == vn)
|
4287
|
-
E().revalidateOnReconnect && I() &&
|
4287
|
+
E().revalidateOnReconnect && I() && B();
|
4288
4288
|
else {
|
4289
4289
|
if (se == wn)
|
4290
4290
|
return ie();
|
@@ -4294,35 +4294,35 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4294
4294
|
});
|
4295
4295
|
return N.current = !1, C.current = b, S.current = !0, F({
|
4296
4296
|
_k: x
|
4297
|
-
}), je && (y[b] || (G(ve) || bt ?
|
4297
|
+
}), je && (y[b] || (G(ve) || bt ? B() : Bl(B))), () => {
|
4298
4298
|
N.current = !0, H();
|
4299
4299
|
};
|
4300
4300
|
}, [
|
4301
4301
|
b
|
4302
4302
|
]), cr(() => {
|
4303
|
-
let
|
4303
|
+
let B;
|
4304
4304
|
function A() {
|
4305
4305
|
const H = Se(d) ? d(w().data) : d;
|
4306
|
-
H &&
|
4306
|
+
H && B !== -1 && (B = setTimeout(j, H));
|
4307
4307
|
}
|
4308
4308
|
function j() {
|
4309
4309
|
!w().error && (m || E().isVisible()) && (u || E().isOnline()) ? ie(hr).then(A) : A();
|
4310
4310
|
}
|
4311
4311
|
return A(), () => {
|
4312
|
-
|
4312
|
+
B && (clearTimeout(B), B = -1);
|
4313
4313
|
};
|
4314
4314
|
}, [
|
4315
4315
|
d,
|
4316
4316
|
m,
|
4317
4317
|
u,
|
4318
4318
|
b
|
4319
|
-
]),
|
4319
|
+
]), Bo(Me), n && G(ve) && b) {
|
4320
4320
|
if (!Xa && bt)
|
4321
4321
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
4322
4322
|
v.current = t, _.current = r, N.current = !1;
|
4323
|
-
const
|
4324
|
-
if (!G(
|
4325
|
-
const A = ye(
|
4323
|
+
const B = k[b];
|
4324
|
+
if (!G(B)) {
|
4325
|
+
const A = ye(B);
|
4326
4326
|
ur(A);
|
4327
4327
|
}
|
4328
4328
|
if (G(Pe)) {
|
@@ -4424,8 +4424,8 @@ function cd({
|
|
4424
4424
|
body: g
|
4425
4425
|
};
|
4426
4426
|
}, [h, f, g]);
|
4427
|
-
const
|
4428
|
-
async (U,
|
4427
|
+
const D = V(
|
4428
|
+
async (U, B = "generate") => {
|
4429
4429
|
var A, j;
|
4430
4430
|
J("submitted"), L(void 0);
|
4431
4431
|
const H = sr(U.messages), se = H.length, me = Ar(
|
@@ -4502,7 +4502,7 @@ function cd({
|
|
4502
4502
|
generateId: y,
|
4503
4503
|
fetch: k,
|
4504
4504
|
lastMessage: H[H.length - 1],
|
4505
|
-
requestType:
|
4505
|
+
requestType: B
|
4506
4506
|
}), P.current = null, J("ready");
|
4507
4507
|
} catch (ee) {
|
4508
4508
|
if (ee.name === "AbortError")
|
@@ -4515,7 +4515,7 @@ function cd({
|
|
4515
4515
|
originalMessageCount: se,
|
4516
4516
|
maxSteps: c,
|
4517
4517
|
messages: te
|
4518
|
-
}) && await
|
4518
|
+
}) && await D({ messages: te });
|
4519
4519
|
},
|
4520
4520
|
[
|
4521
4521
|
I,
|
@@ -4543,7 +4543,7 @@ function cd({
|
|
4543
4543
|
]
|
4544
4544
|
), ge = V(
|
4545
4545
|
async (U, {
|
4546
|
-
data:
|
4546
|
+
data: B,
|
4547
4547
|
headers: A,
|
4548
4548
|
body: j,
|
4549
4549
|
experimental_attachments: H = U.experimental_attachments
|
@@ -4558,33 +4558,33 @@ function cd({
|
|
4558
4558
|
experimental_attachments: te.length > 0 ? te : void 0,
|
4559
4559
|
parts: gn(U)
|
4560
4560
|
});
|
4561
|
-
return
|
4561
|
+
return D({ messages: ee, headers: A, body: j, data: B });
|
4562
4562
|
},
|
4563
|
-
[
|
4563
|
+
[D, y]
|
4564
4564
|
), ve = V(
|
4565
|
-
async ({ data: U, headers:
|
4565
|
+
async ({ data: U, headers: B, body: A } = {}) => {
|
4566
4566
|
const j = w.current;
|
4567
4567
|
if (j.length === 0)
|
4568
4568
|
return null;
|
4569
4569
|
const H = j[j.length - 1];
|
4570
|
-
return
|
4570
|
+
return D({
|
4571
4571
|
messages: H.role === "assistant" ? j.slice(0, -1) : j,
|
4572
|
-
headers:
|
4572
|
+
headers: B,
|
4573
4573
|
body: A,
|
4574
4574
|
data: U
|
4575
4575
|
});
|
4576
4576
|
},
|
4577
|
-
[
|
4577
|
+
[D]
|
4578
4578
|
), Pe = V(() => {
|
4579
4579
|
P.current && (P.current.abort(), P.current = null);
|
4580
4580
|
}, []), We = V(async () => {
|
4581
4581
|
const U = w.current;
|
4582
|
-
|
4583
|
-
}, [
|
4582
|
+
D({ messages: U }, "resume");
|
4583
|
+
}, [D]), Me = V(
|
4584
4584
|
(U) => {
|
4585
4585
|
typeof U == "function" && (U = U(w.current));
|
4586
|
-
const
|
4587
|
-
I(
|
4586
|
+
const B = sr(U);
|
4587
|
+
I(B, !1), w.current = B;
|
4588
4588
|
},
|
4589
4589
|
[I]
|
4590
4590
|
), je = V(
|
@@ -4593,16 +4593,16 @@ function cd({
|
|
4593
4593
|
},
|
4594
4594
|
[O]
|
4595
4595
|
), [_e, K] = z(a), ne = V(
|
4596
|
-
async (U,
|
4596
|
+
async (U, B = {}, A) => {
|
4597
4597
|
var j;
|
4598
|
-
if ((j = U?.preventDefault) == null || j.call(U), !_e && !
|
4598
|
+
if ((j = U?.preventDefault) == null || j.call(U), !_e && !B.allowEmptySubmit)
|
4599
4599
|
return;
|
4600
4600
|
A && (q.current = {
|
4601
4601
|
...q.current,
|
4602
4602
|
...A
|
4603
4603
|
});
|
4604
4604
|
const H = await Ga(
|
4605
|
-
|
4605
|
+
B.experimental_attachments
|
4606
4606
|
), me = {
|
4607
4607
|
messages: w.current.concat({
|
4608
4608
|
id: y(),
|
@@ -4612,22 +4612,22 @@ function cd({
|
|
4612
4612
|
experimental_attachments: H.length > 0 ? H : void 0,
|
4613
4613
|
parts: [{ type: "text", text: _e }]
|
4614
4614
|
}),
|
4615
|
-
headers:
|
4616
|
-
body:
|
4617
|
-
data:
|
4615
|
+
headers: B.headers,
|
4616
|
+
body: B.body,
|
4617
|
+
data: B.data
|
4618
4618
|
};
|
4619
|
-
|
4619
|
+
D(me), K("");
|
4620
4620
|
},
|
4621
|
-
[_e, y,
|
4621
|
+
[_e, y, D]
|
4622
4622
|
), ie = (U) => {
|
4623
4623
|
K(U.target.value);
|
4624
4624
|
}, ye = V(
|
4625
|
-
({ toolCallId: U, result:
|
4625
|
+
({ toolCallId: U, result: B }) => {
|
4626
4626
|
const A = w.current;
|
4627
4627
|
if (Sl({
|
4628
4628
|
messages: A,
|
4629
4629
|
toolCallId: U,
|
4630
|
-
toolResult:
|
4630
|
+
toolResult: B
|
4631
4631
|
}), I(
|
4632
4632
|
[
|
4633
4633
|
...A.slice(0, A.length - 1),
|
@@ -4637,9 +4637,9 @@ function cd({
|
|
4637
4637
|
), M === "submitted" || M === "streaming")
|
4638
4638
|
return;
|
4639
4639
|
const j = A[A.length - 1];
|
4640
|
-
yn(j) &&
|
4640
|
+
yn(j) && D({ messages: A });
|
4641
4641
|
},
|
4642
|
-
[I, M,
|
4642
|
+
[I, M, D]
|
4643
4643
|
);
|
4644
4644
|
return {
|
4645
4645
|
messages: E ?? [],
|
@@ -5019,12 +5019,12 @@ class Nn extends Fe {
|
|
5019
5019
|
}
|
5020
5020
|
}
|
5021
5021
|
ae(Nn, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
|
5022
|
-
class
|
5022
|
+
class Be extends Fe {
|
5023
5023
|
constructor() {
|
5024
5024
|
super(...arguments), ae(this, "code", "ERR_JOSE_NOT_SUPPORTED");
|
5025
5025
|
}
|
5026
5026
|
}
|
5027
|
-
ae(
|
5027
|
+
ae(Be, "code", "ERR_JOSE_NOT_SUPPORTED");
|
5028
5028
|
class oe extends Fe {
|
5029
5029
|
constructor() {
|
5030
5030
|
super(...arguments), ae(this, "code", "ERR_JWS_INVALID");
|
@@ -5139,7 +5139,7 @@ function Mn(e) {
|
|
5139
5139
|
function Ln(e) {
|
5140
5140
|
return e?.[Symbol.toStringTag] === "KeyObject";
|
5141
5141
|
}
|
5142
|
-
const
|
5142
|
+
const Bn = (e) => Mn(e) || Ln(e), $d = (...e) => {
|
5143
5143
|
const t = e.filter(Boolean);
|
5144
5144
|
if (t.length === 0 || t.length === 1)
|
5145
5145
|
return !0;
|
@@ -5194,7 +5194,7 @@ const Yt = (e) => {
|
|
5194
5194
|
default:
|
5195
5195
|
return;
|
5196
5196
|
}
|
5197
|
-
},
|
5197
|
+
}, Bd = async (e, t, r, a, s) => {
|
5198
5198
|
let n, o;
|
5199
5199
|
const c = new Uint8Array(atob(r.replace(e, "")).split("").map((l) => l.charCodeAt(0)));
|
5200
5200
|
switch (a) {
|
@@ -5239,10 +5239,10 @@ const Yt = (e) => {
|
|
5239
5239
|
n = { name: "Ed25519" }, o = ["verify"];
|
5240
5240
|
break;
|
5241
5241
|
default:
|
5242
|
-
throw new
|
5242
|
+
throw new Be('Invalid or unsupported "alg" (Algorithm) value');
|
5243
5243
|
}
|
5244
5244
|
return crypto.subtle.importKey(t, c, n, !0, o);
|
5245
|
-
},
|
5245
|
+
}, Dd = (e, t, r) => Bd(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
5246
5246
|
function Ud(e) {
|
5247
5247
|
let t, r;
|
5248
5248
|
switch (e.kty) {
|
@@ -5268,7 +5268,7 @@ function Ud(e) {
|
|
5268
5268
|
}, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
|
5269
5269
|
break;
|
5270
5270
|
default:
|
5271
|
-
throw new
|
5271
|
+
throw new Be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
5272
5272
|
}
|
5273
5273
|
break;
|
5274
5274
|
}
|
@@ -5290,7 +5290,7 @@ function Ud(e) {
|
|
5290
5290
|
t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
|
5291
5291
|
break;
|
5292
5292
|
default:
|
5293
|
-
throw new
|
5293
|
+
throw new Be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
5294
5294
|
}
|
5295
5295
|
break;
|
5296
5296
|
}
|
@@ -5307,12 +5307,12 @@ function Ud(e) {
|
|
5307
5307
|
t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
|
5308
5308
|
break;
|
5309
5309
|
default:
|
5310
|
-
throw new
|
5310
|
+
throw new Be('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
5311
5311
|
}
|
5312
5312
|
break;
|
5313
5313
|
}
|
5314
5314
|
default:
|
5315
|
-
throw new
|
5315
|
+
throw new Be('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
|
5316
5316
|
}
|
5317
5317
|
return { algorithm: t, keyUsages: r };
|
5318
5318
|
}
|
@@ -5325,7 +5325,7 @@ const Hd = async (e) => {
|
|
5325
5325
|
async function Vd(e, t, r) {
|
5326
5326
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
5327
5327
|
throw new TypeError('"spki" must be SPKI formatted string');
|
5328
|
-
return
|
5328
|
+
return Dd(e, t);
|
5329
5329
|
}
|
5330
5330
|
const zd = (e, t, r, a, s) => {
|
5331
5331
|
if (s.crit !== void 0 && a?.crit === void 0)
|
@@ -5338,7 +5338,7 @@ const zd = (e, t, r, a, s) => {
|
|
5338
5338
|
r !== void 0 ? n = new Map([...Object.entries(r), ...t.entries()]) : n = t;
|
5339
5339
|
for (const o of a.crit) {
|
5340
5340
|
if (!n.has(o))
|
5341
|
-
throw new
|
5341
|
+
throw new Be(`Extension Header Parameter "${o}" is not recognized`);
|
5342
5342
|
if (s[o] === void 0)
|
5343
5343
|
throw new e(`Extension Header Parameter "${o}" is missing`);
|
5344
5344
|
if (n.get(o) && a[o] === void 0)
|
@@ -5363,18 +5363,18 @@ function jd(e) {
|
|
5363
5363
|
function Gd(e) {
|
5364
5364
|
return e.kty === "oct" && typeof e.k == "string";
|
5365
5365
|
}
|
5366
|
-
let
|
5366
|
+
let De;
|
5367
5367
|
const ns = async (e, t, r, a = !1) => {
|
5368
|
-
|
5369
|
-
let s =
|
5368
|
+
De || (De = /* @__PURE__ */ new WeakMap());
|
5369
|
+
let s = De.get(e);
|
5370
5370
|
if (s != null && s[r])
|
5371
5371
|
return s[r];
|
5372
5372
|
const n = await Hd({ ...t, alg: r });
|
5373
|
-
return a && Object.freeze(e), s ? s[r] = n :
|
5373
|
+
return a && Object.freeze(e), s ? s[r] = n : De.set(e, { [r]: n }), n;
|
5374
5374
|
}, Kd = (e, t) => {
|
5375
5375
|
var r;
|
5376
|
-
|
5377
|
-
let a =
|
5376
|
+
De || (De = /* @__PURE__ */ new WeakMap());
|
5377
|
+
let a = De.get(e);
|
5378
5378
|
if (a != null && a[t])
|
5379
5379
|
return a[t];
|
5380
5380
|
const s = e.type === "public", n = !!s;
|
@@ -5456,7 +5456,7 @@ const ns = async (e, t, r, a = !1) => {
|
|
5456
5456
|
}
|
5457
5457
|
if (!o)
|
5458
5458
|
throw new TypeError("given KeyObject instance cannot be used for this algorithm");
|
5459
|
-
return a ? a[t] = o :
|
5459
|
+
return a ? a[t] = o : De.set(e, { [t]: o }), o;
|
5460
5460
|
}, Jd = async (e, t) => {
|
5461
5461
|
if (e instanceof Uint8Array || Mn(e))
|
5462
5462
|
return e;
|
@@ -5527,7 +5527,7 @@ const ns = async (e, t, r, a = !1) => {
|
|
5527
5527
|
return;
|
5528
5528
|
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');
|
5529
5529
|
}
|
5530
|
-
if (!
|
5530
|
+
if (!Bn(t))
|
5531
5531
|
throw new TypeError(Pn(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
|
5532
5532
|
if (t.type !== "secret")
|
5533
5533
|
throw new TypeError(`${tt(t)} instances for symmetric algorithms must be of type "secret"`);
|
@@ -5546,7 +5546,7 @@ const ns = async (e, t, r, a = !1) => {
|
|
5546
5546
|
return;
|
5547
5547
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
5548
5548
|
}
|
5549
|
-
if (!
|
5549
|
+
if (!Bn(t))
|
5550
5550
|
throw new TypeError(Pn(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
|
5551
5551
|
if (t.type === "secret")
|
5552
5552
|
throw new TypeError(`${tt(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
@@ -5589,7 +5589,7 @@ const ns = async (e, t, r, a = !1) => {
|
|
5589
5589
|
case "EdDSA":
|
5590
5590
|
return { name: "Ed25519" };
|
5591
5591
|
default:
|
5592
|
-
throw new
|
5592
|
+
throw new Be(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
5593
5593
|
}
|
5594
5594
|
}, Zd = async (e, t, r) => {
|
5595
5595
|
if (t instanceof Uint8Array) {
|
@@ -5681,7 +5681,7 @@ async function ru(e, t, r) {
|
|
5681
5681
|
const c = await tu({ payload: s, protected: a, signature: n }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
|
5682
5682
|
return typeof t == "function" ? { ...l, key: c.key } : l;
|
5683
5683
|
}
|
5684
|
-
const au = (e) => Math.floor(e.getTime() / 1e3),
|
5684
|
+
const au = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un * 24, su = ua * 7, nu = ua * 365.25, ou = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, os = (e) => {
|
5685
5685
|
const t = ou.exec(e);
|
5686
5686
|
if (!t || t[4] && t[1])
|
5687
5687
|
throw new TypeError("Invalid time period format");
|
@@ -5700,7 +5700,7 @@ const au = (e) => Math.floor(e.getTime() / 1e3), Bn = 60, Un = Bn * 60, ua = Un
|
|
5700
5700
|
case "min":
|
5701
5701
|
case "mins":
|
5702
5702
|
case "m":
|
5703
|
-
s = Math.round(r *
|
5703
|
+
s = Math.round(r * Dn);
|
5704
5704
|
break;
|
5705
5705
|
case "hour":
|
5706
5706
|
case "hours":
|
@@ -5911,7 +5911,7 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gu = (
|
|
5911
5911
|
y: _,
|
5912
5912
|
middlewareData: E,
|
5913
5913
|
placement: I
|
5914
|
-
} = await
|
5914
|
+
} = await Do(l.current, d.current, {
|
5915
5915
|
placement: r,
|
5916
5916
|
middleware: [
|
5917
5917
|
Os(10),
|
@@ -6010,6 +6010,7 @@ const Eu = ({
|
|
6010
6010
|
label: "Attach files",
|
6011
6011
|
onClick: t,
|
6012
6012
|
noBorder: !0,
|
6013
|
+
noBackground: !0,
|
6013
6014
|
children: /* @__PURE__ */ i(li, { size: Te, monotone: !0 })
|
6014
6015
|
}
|
6015
6016
|
)
|
@@ -6105,6 +6106,7 @@ const _u = ({
|
|
6105
6106
|
xe,
|
6106
6107
|
{
|
6107
6108
|
noBorder: !0,
|
6109
|
+
noBackground: !0,
|
6108
6110
|
mode: "dark",
|
6109
6111
|
focusMode: "light",
|
6110
6112
|
label: "New Chat",
|
@@ -6455,13 +6457,13 @@ const _u = ({
|
|
6455
6457
|
);
|
6456
6458
|
});
|
6457
6459
|
Fn.displayName = "BaseButton";
|
6458
|
-
function
|
6460
|
+
function Bu() {
|
6459
6461
|
const e = R(!1);
|
6460
6462
|
return $(() => (e.current = !0, () => {
|
6461
6463
|
e.current = !1;
|
6462
6464
|
}), []), V(() => e.current, []);
|
6463
6465
|
}
|
6464
|
-
function
|
6466
|
+
function Du(e) {
|
6465
6467
|
return he(() => e.every((t) => t == null) ? () => {
|
6466
6468
|
} : (t) => {
|
6467
6469
|
e.forEach((r) => {
|
@@ -6480,7 +6482,7 @@ const Uu = {
|
|
6480
6482
|
right: 0
|
6481
6483
|
};
|
6482
6484
|
function gr(e) {
|
6483
|
-
const t =
|
6485
|
+
const t = Bu(), r = R(0), a = R(null), [s, n] = z(Uu), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
6484
6486
|
const l = c[0];
|
6485
6487
|
l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6486
6488
|
a.current && t() && n(l.contentRect);
|
@@ -6545,15 +6547,15 @@ const Pt = {
|
|
6545
6547
|
radius: k,
|
6546
6548
|
variant: b,
|
6547
6549
|
animated: S
|
6548
|
-
}), _ = $u({ mode: r, raw: c, iconClassName: x, variant: b }), E = Pu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q =
|
6550
|
+
}), _ = $u({ mode: r, raw: c, iconClassName: x, variant: b }), E = Pu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q = Du([C, L]);
|
6549
6551
|
return Oe(() => {
|
6550
6552
|
M && M.current && S && (Q.current = J.width + Hu[u] + (l ? 0 : Vu), L.current && !L.current.style.width && (L.current.style.width = `${Pt[u]}px`));
|
6551
6553
|
}, [J, M, u, l, S]), Oe(() => {
|
6552
6554
|
if (L && L.current && S) {
|
6553
|
-
let
|
6554
|
-
h && w && F.width > 0 ?
|
6555
|
+
let D = Pt[u];
|
6556
|
+
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Pt[u] && (P.current = setTimeout(() => {
|
6555
6557
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
6556
|
-
}, zu * 0.8))),
|
6558
|
+
}, zu * 0.8))), D === Pt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
6557
6559
|
}
|
6558
6560
|
}, [
|
6559
6561
|
F,
|
@@ -6755,10 +6757,10 @@ function Gu({
|
|
6755
6757
|
open: t,
|
6756
6758
|
onOpenChange: r
|
6757
6759
|
} = {}) {
|
6758
|
-
const [a, s] = Y.useState(e), [n, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, m = r ?? s, u =
|
6760
|
+
const [a, s] = Y.useState(e), [n, o] = Y.useState(), [c, l] = Y.useState(), d = t ?? a, m = r ?? s, u = Bs({
|
6759
6761
|
open: d,
|
6760
6762
|
onOpenChange: m
|
6761
|
-
}), h = u.context, f =
|
6763
|
+
}), h = u.context, f = Ds(h, {
|
6762
6764
|
enabled: t == null
|
6763
6765
|
}), g = Us(h, {
|
6764
6766
|
outsidePress: !1,
|
@@ -7055,6 +7057,7 @@ const Ye = ({
|
|
7055
7057
|
xe,
|
7056
7058
|
{
|
7057
7059
|
noBorder: !0,
|
7060
|
+
noBackground: !t,
|
7058
7061
|
animated: !0,
|
7059
7062
|
mode: "dark",
|
7060
7063
|
focusMode: "light",
|
@@ -7103,7 +7106,7 @@ const Ye = ({
|
|
7103
7106
|
focusMode: o = "system",
|
7104
7107
|
...c
|
7105
7108
|
}, l) => {
|
7106
|
-
const [d, m] = z(!1), [u, h] = z(!1), [f, g] = z(null), y = R([]), k = R([]), b = X(Fr), x = zs(), S = zo(), N = Fs(), { floatingStyles: C, refs: v, context: _ } =
|
7109
|
+
const [d, m] = z(!1), [u, h] = z(!1), [f, g] = z(null), y = R([]), k = R([]), b = X(Fr), x = zs(), S = zo(), N = Fs(), { floatingStyles: C, refs: v, context: _ } = Bs({
|
7107
7110
|
nodeId: S,
|
7108
7111
|
open: d,
|
7109
7112
|
onOpenChange: (q) => {
|
@@ -7113,7 +7116,7 @@ const Ye = ({
|
|
7113
7116
|
strategy: "fixed",
|
7114
7117
|
middleware: [Os({ mainAxis: 10 }), $s(), Ps()],
|
7115
7118
|
whileElementsMounted: Fo
|
7116
|
-
}), E =
|
7119
|
+
}), E = Ds(_, {
|
7117
7120
|
event: "mousedown",
|
7118
7121
|
toggle: !0,
|
7119
7122
|
ignoreMouse: !1
|
@@ -7394,7 +7397,16 @@ const sh = (e) => {
|
|
7394
7397
|
{
|
7395
7398
|
mode: "dark",
|
7396
7399
|
focusMode: "light",
|
7397
|
-
trigger: /* @__PURE__ */ i(
|
7400
|
+
trigger: /* @__PURE__ */ i(
|
7401
|
+
xe,
|
7402
|
+
{
|
7403
|
+
noBorder: !0,
|
7404
|
+
noBackground: !0,
|
7405
|
+
label: "Prompts",
|
7406
|
+
disabled: !u,
|
7407
|
+
children: /* @__PURE__ */ i(hi, { size: Te })
|
7408
|
+
}
|
7409
|
+
),
|
7398
7410
|
defaultPlacement: t,
|
7399
7411
|
children: [
|
7400
7412
|
/* @__PURE__ */ i(Kn, { children: "Prompts" }),
|
@@ -7505,6 +7517,7 @@ const sh = (e) => {
|
|
7505
7517
|
{
|
7506
7518
|
noBorder: !0,
|
7507
7519
|
animated: !0,
|
7520
|
+
noBackground: !t,
|
7508
7521
|
mode: "dark",
|
7509
7522
|
focusMode: "light",
|
7510
7523
|
label: "Reasoning Chat",
|
@@ -7521,7 +7534,7 @@ const sh = (e) => {
|
|
7521
7534
|
] });
|
7522
7535
|
};
|
7523
7536
|
let yr = null, br = null;
|
7524
|
-
const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.
|
7537
|
+
const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.JQwwuZH2.js").then((e) => e.utilities)), br), oh = async () => {
|
7525
7538
|
try {
|
7526
7539
|
await Promise.all([qn(), Yn()]);
|
7527
7540
|
} catch {
|
@@ -7616,6 +7629,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7616
7629
|
xe,
|
7617
7630
|
{
|
7618
7631
|
noBorder: !0,
|
7632
|
+
noBackground: !0,
|
7619
7633
|
mode: "dark",
|
7620
7634
|
focusMode: "light",
|
7621
7635
|
label: "Save Private Chat",
|
@@ -7786,7 +7800,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7786
7800
|
}
|
7787
7801
|
});
|
7788
7802
|
}
|
7789
|
-
}),
|
7803
|
+
}), D = V(
|
7790
7804
|
async (K) => {
|
7791
7805
|
K === kh && m({
|
7792
7806
|
type: at,
|
@@ -7826,8 +7840,8 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7826
7840
|
[m, L, f]
|
7827
7841
|
);
|
7828
7842
|
$(() => {
|
7829
|
-
P &&
|
7830
|
-
}, [P,
|
7843
|
+
P && D(P);
|
7844
|
+
}, [P, D]), $(() => {
|
7831
7845
|
N?.sendOnEnter !== void 0 && d(N.sendOnEnter);
|
7832
7846
|
}, [N]);
|
7833
7847
|
const ge = V(() => {
|
@@ -7894,9 +7908,9 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
7894
7908
|
let ie;
|
7895
7909
|
if (s && s.length > 0) {
|
7896
7910
|
const ye = Array.from(s).map(
|
7897
|
-
(
|
7911
|
+
(B) => gh(B)
|
7898
7912
|
), U = new DataTransfer();
|
7899
|
-
ye.forEach((
|
7913
|
+
ye.forEach((B) => U.items.add(B)), ie = U.files;
|
7900
7914
|
}
|
7901
7915
|
Q(K, {
|
7902
7916
|
headers: {
|
@@ -8122,7 +8136,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8122
8136
|
]
|
8123
8137
|
}
|
8124
8138
|
);
|
8125
|
-
},
|
8139
|
+
}, Bt = [
|
8126
8140
|
{
|
8127
8141
|
id: na,
|
8128
8142
|
label: "OpenAI",
|
@@ -8165,7 +8179,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8165
8179
|
});
|
8166
8180
|
} catch {
|
8167
8181
|
}
|
8168
|
-
}, y = f && u, k = y &&
|
8182
|
+
}, y = f && u, k = y && Bt.find((x) => f.provider === x.id)?.icon || Bt[0].icon, b = /* @__PURE__ */ T(
|
8169
8183
|
er,
|
8170
8184
|
{
|
8171
8185
|
mode: "dark",
|
@@ -8191,7 +8205,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8191
8205
|
defaultPlacement: "top-start",
|
8192
8206
|
children: [
|
8193
8207
|
/* @__PURE__ */ i(Kn, { children: "Providers" }),
|
8194
|
-
y &&
|
8208
|
+
y && Bt.map((x) => /* @__PURE__ */ i(
|
8195
8209
|
Re,
|
8196
8210
|
{
|
8197
8211
|
selected: f.provider === x.id,
|
@@ -8215,21 +8229,21 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8215
8229
|
}
|
8216
8230
|
) : /* @__PURE__ */ i("div", { className: e, children: b });
|
8217
8231
|
}, Ih = it(
|
8218
|
-
() => import("./ProfileEntry.
|
8232
|
+
() => import("./ProfileEntry.Im3Gy6i6.js").then((e) => ({
|
8219
8233
|
default: e.Profile
|
8220
8234
|
}))
|
8221
8235
|
), Rh = it(
|
8222
|
-
() => import("./SettingsEntry.
|
8236
|
+
() => import("./SettingsEntry.C2uaG7Ju.js").then((e) => ({
|
8223
8237
|
default: e.SettingsPanel
|
8224
8238
|
}))
|
8225
8239
|
), Ah = it(
|
8226
|
-
() => import("./HistoryEntry.
|
8240
|
+
() => import("./HistoryEntry.R5DVjOAt.js").then((e) => ({
|
8227
8241
|
default: e.HistoryPanel
|
8228
8242
|
}))
|
8229
8243
|
), Nh = it(
|
8230
|
-
() => import("./AboutEntry.
|
8244
|
+
() => import("./AboutEntry.DFUYyQsY.js").then((e) => ({ default: e.About }))
|
8231
8245
|
), Oh = it(
|
8232
|
-
() => import("./UsageEntry.
|
8246
|
+
() => import("./UsageEntry.CpZOGYr5.js").then((e) => ({ default: e.Usage }))
|
8233
8247
|
), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
|
8234
8248
|
switch (e) {
|
8235
8249
|
case "profile":
|
@@ -8249,7 +8263,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8249
8263
|
isComponent: e = !1
|
8250
8264
|
}) => {
|
8251
8265
|
const { logout: t, getAccessToken: r } = Ve(), [a, s] = z(null), [n, o] = z(!1), [c, l] = z(!1), [d, m] = z(!1), u = V(() => {
|
8252
|
-
d || (import("./ProfileEntry.
|
8266
|
+
d || (import("./ProfileEntry.Im3Gy6i6.js"), import("./SettingsEntry.C2uaG7Ju.js"), import("./HistoryEntry.R5DVjOAt.js"), import("./AboutEntry.DFUYyQsY.js"), import("./UsageEntry.CpZOGYr5.js"), m(!0));
|
8253
8267
|
}, [d]), h = V((k) => {
|
8254
8268
|
s(k);
|
8255
8269
|
}, []), f = V(() => {
|
@@ -8485,7 +8499,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8485
8499
|
"h-12": t === "large" && n && (r || a)
|
8486
8500
|
});
|
8487
8501
|
}
|
8488
|
-
},
|
8502
|
+
}, Bh = ({
|
8489
8503
|
type: e,
|
8490
8504
|
size: t,
|
8491
8505
|
labelRight: r,
|
@@ -8508,7 +8522,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8508
8522
|
[o]: t === "large" && (r || a)
|
8509
8523
|
});
|
8510
8524
|
}
|
8511
|
-
},
|
8525
|
+
}, Dh = ({
|
8512
8526
|
mode: e,
|
8513
8527
|
noBackground: t,
|
8514
8528
|
truncate: r,
|
@@ -8744,7 +8758,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8744
8758
|
animated: k
|
8745
8759
|
}) => (h || (h = "primary"), r ? p(ys, t) : p(
|
8746
8760
|
ys,
|
8747
|
-
|
8761
|
+
Dh({
|
8748
8762
|
mode: a,
|
8749
8763
|
variant: h,
|
8750
8764
|
noBackground: u,
|
@@ -8760,7 +8774,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
|
|
8760
8774
|
align: g,
|
8761
8775
|
animated: k
|
8762
8776
|
}),
|
8763
|
-
|
8777
|
+
Bh({ type: e, size: c, labelRight: d, labelLeft: m }),
|
8764
8778
|
Fh({ mode: a, variant: h, noBorder: l }),
|
8765
8779
|
Wh({ focusMode: s }),
|
8766
8780
|
Vh({ mode: a, variant: h, disabled: n }),
|
@@ -8824,7 +8838,7 @@ function wr(e) {
|
|
8824
8838
|
o?.disconnect(), r.current && cancelAnimationFrame(r.current);
|
8825
8839
|
}), [o, e]), [a, s];
|
8826
8840
|
}
|
8827
|
-
const
|
8841
|
+
const Dt = {
|
8828
8842
|
small: 24,
|
8829
8843
|
// w-6
|
8830
8844
|
medium: 32,
|
@@ -8881,13 +8895,13 @@ const Bt = {
|
|
8881
8895
|
animated: S
|
8882
8896
|
}), _ = jh({ mode: r, raw: c, iconClassName: x, variant: b }), E = Gh({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = wr(), [O, W] = wr(), [M, J] = wr(), Q = R(0), L = R(null), P = R(null), q = Yh([C, L]);
|
8883
8897
|
return Oe(() => {
|
8884
|
-
M && M.current && S && (Q.current = J.width + Xh[u] + (l ? 0 : Zh), L.current && !L.current.style.width && (L.current.style.width = `${
|
8898
|
+
M && M.current && S && (Q.current = J.width + Xh[u] + (l ? 0 : Zh), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
|
8885
8899
|
}, [J, M, u, l, S]), Oe(() => {
|
8886
8900
|
if (L && L.current && S) {
|
8887
|
-
let
|
8888
|
-
h && w && F.width > 0 ?
|
8901
|
+
let D = Dt[u];
|
8902
|
+
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Dt[u] && (P.current = setTimeout(() => {
|
8889
8903
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
8890
|
-
}, em * 0.8))),
|
8904
|
+
}, em * 0.8))), D === Dt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
8891
8905
|
}
|
8892
8906
|
}, [
|
8893
8907
|
F,
|
@@ -9768,10 +9782,10 @@ const Ut = {
|
|
9768
9782
|
M && M.current && S && (Q.current = J.width + xm[u] + (l ? 0 : Cm), L.current && !L.current.style.width && (L.current.style.width = `${Ut[u]}px`));
|
9769
9783
|
}, [J, M, u, l, S]), Oe(() => {
|
9770
9784
|
if (L && L.current && S) {
|
9771
|
-
let
|
9772
|
-
h && w && F.width > 0 ?
|
9785
|
+
let D = Ut[u];
|
9786
|
+
h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Ut[u] && (P.current = setTimeout(() => {
|
9773
9787
|
w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
|
9774
|
-
}, Im * 0.8))),
|
9788
|
+
}, Im * 0.8))), D === Ut[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
|
9775
9789
|
}
|
9776
9790
|
}, [
|
9777
9791
|
F,
|
@@ -9956,7 +9970,7 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
9956
9970
|
), Es = 2, Pm = it(
|
9957
9971
|
() => import(
|
9958
9972
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9959
|
-
"./ChatBubbleAssistant.
|
9973
|
+
"./ChatBubbleAssistant.ChVHToDP.js"
|
9960
9974
|
)
|
9961
9975
|
), Mm = Z.memo(
|
9962
9976
|
({
|
@@ -10008,8 +10022,8 @@ const $m = ({ content: e }) => /* @__PURE__ */ i(
|
|
10008
10022
|
n
|
10009
10023
|
);
|
10010
10024
|
}) }) : null;
|
10011
|
-
},
|
10012
|
-
const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } =
|
10025
|
+
}, Bm = () => {
|
10026
|
+
const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } = Di(), a = R(null), s = R(null), {
|
10013
10027
|
state: { footerPosition: n, footerHeight: o, footerOffset: c }
|
10014
10028
|
} = X(ca), {
|
10015
10029
|
state: { loading: l }
|
@@ -10170,7 +10184,7 @@ function uo({
|
|
10170
10184
|
style: {
|
10171
10185
|
height: s
|
10172
10186
|
},
|
10173
|
-
children: /* @__PURE__ */ i(
|
10187
|
+
children: /* @__PURE__ */ i(Bm, {})
|
10174
10188
|
}
|
10175
10189
|
),
|
10176
10190
|
/* @__PURE__ */ i(xh, { isComponent: e })
|
@@ -10209,7 +10223,7 @@ export {
|
|
10209
10223
|
Jm as Ye,
|
10210
10224
|
bi as a,
|
10211
10225
|
fi as a$1,
|
10212
|
-
|
10226
|
+
Di as b,
|
10213
10227
|
pn as getDefaultExportFromCjs,
|
10214
10228
|
Fi as i,
|
10215
10229
|
Zm as k,
|