@versini/sassysaint 8.33.1 → 8.33.2
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.D-fnFoCa.js → AboutChangelog.4hJKSrYD.js} +2 -2
- package/dist/chunks/{AboutEntry.CwDDWG_4.js → AboutEntry.33ZTloPv.js} +8 -8
- package/dist/chunks/{App.DzjONISj.js → App.XdWU4F4s.js} +143 -143
- package/dist/chunks/{Chart.BtaESM6V.js → Chart.K6rjphGm.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DMN1Lz-z.js → ChatBubbleAssistant.Aht9ouJp.js} +3 -3
- package/dist/chunks/{HistoryEntry.CCxsTt8-.js → HistoryEntry.BbBqiZe6.js} +2 -2
- package/dist/chunks/{I3HPI4QX.Biu5YqRm.js → I3HPI4QX.DsgVJslv.js} +1 -1
- package/dist/chunks/{ProfileEntry.D8MZXHDj.js → ProfileEntry.N0E_BTHN.js} +2 -2
- package/dist/chunks/{SettingsEntry.DkX9B4CU.js → SettingsEntry.C_eOVFPG.js} +2 -2
- package/dist/chunks/{UsageEntry.9g1gHQkS.js → UsageEntry.jNlvDnZc.js} +3 -3
- package/dist/chunks/{index.Dx1z0VBQ.js → index.BoAXq6-n.js} +3 -3
- package/dist/chunks/{index.k6a-5Kf-.js → index.BqCF2cnF.js} +1 -1
- package/dist/chunks/{index.B54pxmzV.js → index.DVkfex2-.js} +1 -1
- package/dist/chunks/{index.BK6nN1an.js → index.NPGEB_Ju.js} +1 -1
- package/dist/chunks/{index.BTRUA37I.js → index.bMMY6peH.js} +2 -2
- package/dist/chunks/{index.CdkODDe_.js → index.seo_KuwP.js} +2 -2
- package/dist/chunks/{useMarkdown.CEOOCliu.js → useMarkdown.B2GibB59.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
2
|
-
import { b as m, ButtonScroll as n } from "./App.
|
2
|
+
import { b as m, ButtonScroll as n } from "./App.XdWU4F4s.js";
|
3
3
|
import { useRef as f, useCallback as u, useLayoutEffect as p } from "react";
|
4
|
-
import { useMarkdown as d } from "./useMarkdown.
|
4
|
+
import { useMarkdown as d } from "./useMarkdown.B2GibB59.js";
|
5
5
|
const v = ({ content: o }) => {
|
6
6
|
const [l, t] = d(), { ref: a, inViewport: c } = m(), e = f(null), i = u(() => {
|
7
7
|
e.current && e.current.scrollIntoView({
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { i as c, useServerCapabilities as
|
3
|
-
import { S as a, renderDataAsList as d, CARDS as r, pluralize as I, isProbablyMobile as S, ABOUT_TITLE as O } from "./index.
|
1
|
+
import { jsxs as A, Fragment as n, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { i as c, useServerCapabilities as g, useChangelogs as u, rr as E } from "./App.XdWU4F4s.js";
|
3
|
+
import { S as a, renderDataAsList as d, CARDS as r, pluralize as I, isProbablyMobile as S, ABOUT_TITLE as O } from "./index.seo_KuwP.js";
|
4
4
|
import B from "clsx";
|
5
5
|
import { Suspense as C, lazy as U } from "react";
|
6
6
|
const L = U(
|
7
7
|
() => import(
|
8
8
|
/* webpackChunkName: "LazyAboutChangelog" */
|
9
|
-
"./AboutChangelog.
|
9
|
+
"./AboutChangelog.4hJKSrYD.js"
|
10
10
|
)
|
11
11
|
), N = () => {
|
12
|
-
const s = c(), i = c(), { data: t, isSuccess: m } =
|
13
|
-
return /* @__PURE__ */
|
12
|
+
const s = c(), i = c(), { data: t, isSuccess: m } = g(), { data: h, isSuccess: T } = u(), b = t?.version || "", o = t?.models || [], p = t?.buildTime || "";
|
13
|
+
return /* @__PURE__ */ A(n, { children: [
|
14
14
|
/* @__PURE__ */ e(
|
15
15
|
a,
|
16
16
|
{
|
17
17
|
header: r.ABOUT.TITLE_CLIENT,
|
18
18
|
className: "prose-dark dark:prose-lighter mb-4",
|
19
19
|
children: d(s, {
|
20
|
-
[r.ABOUT.VERSION]: "8.33.
|
21
|
-
[r.ABOUT.BUILD_TIMESTAMP]: "08/
|
20
|
+
[r.ABOUT.VERSION]: "8.33.2",
|
21
|
+
[r.ABOUT.BUILD_TIMESTAMP]: "08/03/2025 08:35 AM EDT"
|
22
22
|
})
|
23
23
|
}
|
24
24
|
),
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as fo, pendingThenable as wa, resolveEnabled as ke, shallowEqualObjects as Er, resolveStaleTime as gt, noop as kr, isServer as _r, isValidTimeout as Ea, focusManager as mo, fetchState as po, replaceData as ka, notifyManager as Tn, timeUntilStale as go, shouldThrowError as yo, useQueryClient as bo, I as re, ACTION_SORT as vo, ACTION_SEARCH as wo, ACTION_RESET_PROMPT as Cn, ACTION_TOGGLE_PROMPT as In, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Ft, n as Ve, isElectron as _a, isProbablyiPhone as Ae, L as xn, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as
|
2
|
+
import { Subscribable as fo, pendingThenable as wa, resolveEnabled as ke, shallowEqualObjects as Er, resolveStaleTime as gt, noop as kr, isServer as _r, isValidTimeout as Ea, focusManager as mo, fetchState as po, replaceData as ka, notifyManager as Tn, timeUntilStale as go, shouldThrowError as yo, useQueryClient as bo, I as re, ACTION_SORT as vo, ACTION_SEARCH as wo, ACTION_RESET_PROMPT as Cn, ACTION_TOGGLE_PROMPT as In, le as Ce, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Ft, n as Ve, isElectron as _a, isProbablyiPhone as Ae, L as xn, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as Wt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Eo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as _o, TOAST_PROVIDER_CHANGED as So, PROMPT_CLASSNAME as To, PROMPT_EDITABLE_AREA_CLASSNAME as Co, ERROR_MESSAGE as Io, ROLE_INTERNAL as Sr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Ke, INPUT_PLACEHOLDER_TEXT_MOBILE as Ca, INPUT_PLACEHOLDER_TEXT_ENTER as Ia, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as xa, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Ro, INPUT_BOTTOM_OFFSET as Rn, LOG_OUT as Aa, getMessageContaintWrapperClass as Ao, UI_FOOTER_BUFFER as An, UI_BUTTON_SCROLL_BUFFER as No, Logo as Oo, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as $o, getMainPaddingClass as Oa, r as Po, LOCAL_STORAGE_SORT as Mo, LOCAL_STORAGE_SEARCH as Lo } from "./index.seo_KuwP.js";
|
3
3
|
import * as Y from "react";
|
4
4
|
import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Do, useMemo as he, useId as Gr, useContext as X, useLayoutEffect as Oe, createContext as Nn, useDebugValue as Bo, forwardRef as On, Suspense as $n, lazy as ot, useReducer as St } from "react";
|
5
5
|
import p from "clsx";
|
6
|
-
import { computePosition as Uo, offset as Pn, flip as Mn, shift as Ln, arrow as Ho, useMergeRefs as Kr, FloatingPortal as Dn, FloatingOverlay as Vo, FloatingFocusManager as Bn, useFloating as Un, useClick as Hn, useDismiss as Vn, useRole as zn, useInteractions as Fn, FloatingTree as zo, useFloatingTree as
|
6
|
+
import { computePosition as Uo, offset as Pn, flip as Mn, shift as Ln, arrow as Ho, useMergeRefs as Kr, FloatingPortal as Dn, FloatingOverlay as Vo, FloatingFocusManager as Bn, useFloating as Un, useClick as Hn, useDismiss as Vn, useRole as zn, useInteractions as Fn, FloatingTree as zo, useFloatingTree as Wn, useFloatingNodeId as Fo, useListItem as jn, autoUpdate as Wo, useListNavigation as jo, useTypeahead as Go, FloatingNode as Ko, FloatingList as Jo } from "@floating-ui/react";
|
7
7
|
var qo = class extends fo {
|
8
8
|
constructor(e, t) {
|
9
9
|
super(), this.options = t, this.#r = e, this.#n = null, this.#a = wa(), this.options.experimental_prefetchInRender || this.#a.reject(
|
@@ -1045,7 +1045,7 @@ const La = (e, t) => {
|
|
1045
1045
|
}, Vi = (e) => {
|
1046
1046
|
window.localStorage.removeItem(e), Kn(e, null);
|
1047
1047
|
}, Da = (e) => window.localStorage.getItem(e), zi = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
1048
|
-
function
|
1048
|
+
function jt({
|
1049
1049
|
key: e,
|
1050
1050
|
initialValue: t
|
1051
1051
|
}) {
|
@@ -1093,7 +1093,7 @@ function Jn(e) {
|
|
1093
1093
|
o?.disconnect(), r.current && cancelAnimationFrame(r.current);
|
1094
1094
|
}), [o, e]), [a, n];
|
1095
1095
|
}
|
1096
|
-
function
|
1096
|
+
function Wi(e) {
|
1097
1097
|
return Gr();
|
1098
1098
|
}
|
1099
1099
|
function Ba(e, t) {
|
@@ -1101,7 +1101,7 @@ function Ba(e, t) {
|
|
1101
1101
|
passive: !0
|
1102
1102
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
1103
1103
|
}
|
1104
|
-
function
|
1104
|
+
function ji() {
|
1105
1105
|
const [e, t] = z({
|
1106
1106
|
width: 0,
|
1107
1107
|
height: 0
|
@@ -1647,13 +1647,13 @@ const Tt = {
|
|
1647
1647
|
radius: w,
|
1648
1648
|
variant: v,
|
1649
1649
|
animated: S
|
1650
|
-
}), _ = cc({ mode: r, raw: c, iconClassName: C }), k = lc({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = tr(), [A,
|
1650
|
+
}), _ = cc({ mode: r, raw: c, iconClassName: C }), k = lc({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = tr(), [A, W] = tr(), [P, J] = tr(), Q = R(0), L = R(null), M = R(null), q = fc([I, L]);
|
1651
1651
|
return Oe(() => {
|
1652
1652
|
P && P.current && S && (Q.current = J.width + pc[u] + (l ? 0 : gc), L.current && !L.current.style.width && (L.current.style.width = `${Tt[u]}px`));
|
1653
1653
|
}, [J, P, u, l, S]), Oe(() => {
|
1654
1654
|
if (L && L.current && S) {
|
1655
1655
|
let B = Tt[u];
|
1656
|
-
h && E && F.width > 0 ? B = F.width + Q.current : m && A &&
|
1656
|
+
h && E && F.width > 0 ? B = F.width + Q.current : m && A && W.width > 0 && (B = W.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Tt[u] && (M.current = setTimeout(() => {
|
1657
1657
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
1658
1658
|
}, yc * 0.8))), B === Tt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
1659
1659
|
}
|
@@ -1661,7 +1661,7 @@ const Tt = {
|
|
1661
1661
|
F,
|
1662
1662
|
h,
|
1663
1663
|
E,
|
1664
|
-
|
1664
|
+
W,
|
1665
1665
|
m,
|
1666
1666
|
A,
|
1667
1667
|
u,
|
@@ -1912,7 +1912,7 @@ const ct = Z.createContext({
|
|
1912
1912
|
stickyHeader: !1,
|
1913
1913
|
stickyFooter: !1,
|
1914
1914
|
compact: !1
|
1915
|
-
}),
|
1915
|
+
}), jf = ({
|
1916
1916
|
children: e,
|
1917
1917
|
mode: t = "system",
|
1918
1918
|
caption: r,
|
@@ -2665,7 +2665,7 @@ Error message: ${is(r)}`,
|
|
2665
2665
|
}
|
2666
2666
|
};
|
2667
2667
|
gs = Lc;
|
2668
|
-
var
|
2668
|
+
var Wa = Dc;
|
2669
2669
|
let Bc = (e, t = 21) => (r = t) => {
|
2670
2670
|
let a = "", n = r | 0;
|
2671
2671
|
for (; n--; )
|
@@ -2675,10 +2675,10 @@ let Bc = (e, t = 21) => (r = t) => {
|
|
2675
2675
|
function ys(e) {
|
2676
2676
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
2677
2677
|
}
|
2678
|
-
var Ge = { exports: {} },
|
2678
|
+
var Ge = { exports: {} }, ja;
|
2679
2679
|
function Uc() {
|
2680
|
-
if (
|
2681
|
-
|
2680
|
+
if (ja) return Ge.exports;
|
2681
|
+
ja = 1;
|
2682
2682
|
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*:/;
|
2683
2683
|
function a(c, l, d) {
|
2684
2684
|
d == null && l !== null && typeof l == "object" && (d = l, l = void 0), e && Buffer.isBuffer(c) && (c = c.toString()), c && c.charCodeAt(0) === 65279 && (c = c.slice(1));
|
@@ -2769,11 +2769,11 @@ var zc = ({
|
|
2769
2769
|
function Fc(e) {
|
2770
2770
|
return { [xr]: !0, validate: e };
|
2771
2771
|
}
|
2772
|
-
function
|
2772
|
+
function Wc(e) {
|
2773
2773
|
return typeof e == "object" && e !== null && xr in e && e[xr] === !0 && "validate" in e;
|
2774
2774
|
}
|
2775
|
-
function
|
2776
|
-
return
|
2775
|
+
function jc(e) {
|
2776
|
+
return Wc(e) ? e : Gc(e);
|
2777
2777
|
}
|
2778
2778
|
function Gc(e) {
|
2779
2779
|
return Fc((t) => {
|
@@ -2785,19 +2785,19 @@ function Kc({
|
|
2785
2785
|
value: e,
|
2786
2786
|
schema: t
|
2787
2787
|
}) {
|
2788
|
-
const r =
|
2788
|
+
const r = jc(t);
|
2789
2789
|
try {
|
2790
2790
|
if (r.validate == null)
|
2791
2791
|
return { success: !0, value: e };
|
2792
2792
|
const a = r.validate(e);
|
2793
2793
|
return a.success ? a : {
|
2794
2794
|
success: !1,
|
2795
|
-
error:
|
2795
|
+
error: Wa.wrap({ value: e, cause: a.error })
|
2796
2796
|
};
|
2797
2797
|
} catch (a) {
|
2798
2798
|
return {
|
2799
2799
|
success: !1,
|
2800
|
-
error:
|
2800
|
+
error: Wa.wrap({ value: e, cause: a })
|
2801
2801
|
};
|
2802
2802
|
}
|
2803
2803
|
}
|
@@ -4098,13 +4098,13 @@ async function Ts(...e) {
|
|
4098
4098
|
k,
|
4099
4099
|
0
|
4100
4100
|
];
|
4101
|
-
const x = !G(l), E = y(), F = E.data, A = E._c,
|
4102
|
-
if (x && (l = Se(l) ? l(
|
4101
|
+
const x = !G(l), E = y(), F = E.data, A = E._c, W = G(A) ? F : A;
|
4102
|
+
if (x && (l = Se(l) ? l(W, F) : l, g({
|
4103
4103
|
data: l,
|
4104
|
-
_c:
|
4104
|
+
_c: W
|
4105
4105
|
})), Se(I))
|
4106
4106
|
try {
|
4107
|
-
I = I(
|
4107
|
+
I = I(W);
|
4108
4108
|
} catch (P) {
|
4109
4109
|
b = P, _ = !0;
|
4110
4110
|
}
|
@@ -4115,12 +4115,12 @@ async function Ts(...e) {
|
|
4115
4115
|
if (_) throw b;
|
4116
4116
|
return I;
|
4117
4117
|
} else _ && x && d(b) && (o = !0, g({
|
4118
|
-
data:
|
4118
|
+
data: W,
|
4119
4119
|
_c: de
|
4120
4120
|
}));
|
4121
4121
|
if (o && !_)
|
4122
4122
|
if (Se(o)) {
|
4123
|
-
const P = o(I,
|
4123
|
+
const P = o(I, W);
|
4124
4124
|
g({
|
4125
4125
|
data: P,
|
4126
4126
|
error: de,
|
@@ -4189,7 +4189,7 @@ const tn = (e, t) => {
|
|
4189
4189
|
}, Fl = (e, t, r, a, n) => {
|
4190
4190
|
const s = r.errorRetryCount, o = n.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * r.errorRetryInterval;
|
4191
4191
|
!G(s) && o > s || setTimeout(a, c, n);
|
4192
|
-
},
|
4192
|
+
}, Wl = Nr, [Cs, jl] = zl(/* @__PURE__ */ new Map()), Gl = He(
|
4193
4193
|
{
|
4194
4194
|
// events
|
4195
4195
|
onLoadingSlow: Le,
|
@@ -4208,10 +4208,10 @@ const tn = (e, t) => {
|
|
4208
4208
|
dedupingInterval: 2 * 1e3,
|
4209
4209
|
loadingTimeout: en ? 5e3 : 3e3,
|
4210
4210
|
// providers
|
4211
|
-
compare:
|
4211
|
+
compare: Wl,
|
4212
4212
|
isPaused: () => !1,
|
4213
4213
|
cache: Cs,
|
4214
|
-
mutate:
|
4214
|
+
mutate: jl,
|
4215
4215
|
fallback: {}
|
4216
4216
|
},
|
4217
4217
|
// use web preset by default
|
@@ -4276,9 +4276,9 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4276
4276
|
}), hr = {
|
4277
4277
|
dedupe: !0
|
4278
4278
|
}, nd = (e, t, r) => {
|
4279
|
-
const { cache: a, compare: n, suspense: s, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, y, g, w] = Ne.get(a), [v, C] = aa(e), S = R(!1), O = R(!1), I = R(v), b = R(t), _ = R(r), k = () => _.current, x = () => k().isVisible() && k().isOnline(), [E, F, A,
|
4280
|
-
for (const
|
4281
|
-
const H =
|
4279
|
+
const { cache: a, compare: n, suspense: s, fallbackData: o, revalidateOnMount: c, revalidateIfStale: l, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: h } = r, [m, y, g, w] = Ne.get(a), [v, C] = aa(e), S = R(!1), O = R(!1), I = R(v), b = R(t), _ = R(r), k = () => _.current, x = () => k().isVisible() && k().isOnline(), [E, F, A, W] = Ss(a, v), P = R({}).current, J = G(o) ? G(r.fallback) ? de : r.fallback[v] : o, Q = (D, N) => {
|
4280
|
+
for (const j in P) {
|
4281
|
+
const H = j;
|
4282
4282
|
if (H === "data") {
|
4283
4283
|
if (!n(D[H], N[H]) && (!G(D[H]) || !n(Me, N[H])))
|
4284
4284
|
return !1;
|
@@ -4294,7 +4294,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4294
4294
|
isLoading: !0,
|
4295
4295
|
...me
|
4296
4296
|
} : me;
|
4297
|
-
},
|
4297
|
+
}, j = E(), H = W(), ne = N(j), fe = j === H ? ne : N(H);
|
4298
4298
|
let te = ne;
|
4299
4299
|
return [
|
4300
4300
|
() => {
|
@@ -4307,20 +4307,20 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4307
4307
|
a,
|
4308
4308
|
v
|
4309
4309
|
]), M = Rl.useSyncExternalStore(V(
|
4310
|
-
(D) => A(v, (N,
|
4311
|
-
Q(
|
4310
|
+
(D) => A(v, (N, j) => {
|
4311
|
+
Q(j, N) || D();
|
4312
4312
|
}),
|
4313
4313
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4314
4314
|
[
|
4315
4315
|
a,
|
4316
4316
|
v
|
4317
4317
|
]
|
4318
|
-
), L[0], L[1]), q = !S.current, B = m[v] && m[v].length > 0, ge = M.data, ve = G(ge) ? J && _s(J) ? ur(J) : J : ge, Pe = M.error,
|
4318
|
+
), L[0], L[1]), q = !S.current, B = m[v] && m[v].length > 0, ge = M.data, ve = G(ge) ? J && _s(J) ? ur(J) : J : ge, Pe = M.error, We = R(ve), Me = h ? G(ge) ? G(We.current) ? ve : We.current : ge : ve, je = B && !G(Pe) ? !1 : q && !G(c) ? c : k().isPaused() ? !1 : s ? G(ve) ? !1 : l : G(ve) || l, _e = !!(v && t && q && je), K = G(M.isValidating) ? _e : M.isValidating, se = G(M.isLoading) ? _e : M.isLoading, ie = V(
|
4319
4319
|
async (D) => {
|
4320
4320
|
const N = b.current;
|
4321
4321
|
if (!v || !N || O.current || k().isPaused())
|
4322
4322
|
return !1;
|
4323
|
-
let
|
4323
|
+
let j, H, ne = !0;
|
4324
4324
|
const fe = D || {}, te = !g[v] || !fe.dedupe, ee = () => Za ? !O.current && v === I.current && S.current : v === I.current, me = {
|
4325
4325
|
isValidating: !1,
|
4326
4326
|
isLoading: !1
|
@@ -4339,7 +4339,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4339
4339
|
}, r.loadingTimeout), g[v] = [
|
4340
4340
|
N(C),
|
4341
4341
|
Br()
|
4342
|
-
]), [
|
4342
|
+
]), [j, H] = g[v], j = await j, te && setTimeout(kt, r.dedupingInterval), !g[v] || g[v][1] !== H)
|
4343
4343
|
return te && ee() && k().onDiscarded(v), !1;
|
4344
4344
|
me.error = de;
|
4345
4345
|
const le = y[v];
|
@@ -4349,7 +4349,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4349
4349
|
le[1] === 0))
|
4350
4350
|
return Et(), te && ee() && k().onDiscarded(v), !1;
|
4351
4351
|
const pe = E().data;
|
4352
|
-
me.data = n(pe,
|
4352
|
+
me.data = n(pe, j) ? pe : j, te && ee() && k().onSuccess(j, v, r);
|
4353
4353
|
} catch (le) {
|
4354
4354
|
kt();
|
4355
4355
|
const pe = k(), { shouldRetryOnError: Ie } = pe;
|
@@ -4385,7 +4385,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4385
4385
|
[]
|
4386
4386
|
);
|
4387
4387
|
if (cr(() => {
|
4388
|
-
b.current = t, _.current = r, G(ge) || (
|
4388
|
+
b.current = t, _.current = r, G(ge) || (We.current = ge);
|
4389
4389
|
}), cr(() => {
|
4390
4390
|
if (!v) return;
|
4391
4391
|
const D = ie.bind(de, hr);
|
@@ -4406,7 +4406,7 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4406
4406
|
});
|
4407
4407
|
return O.current = !1, I.current = v, S.current = !0, F({
|
4408
4408
|
_k: C
|
4409
|
-
}),
|
4409
|
+
}), je && (g[v] || (G(ve) || bt ? D() : Bl(D))), () => {
|
4410
4410
|
O.current = !0, H();
|
4411
4411
|
};
|
4412
4412
|
}, [
|
@@ -4415,9 +4415,9 @@ const ur = Z.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4415
4415
|
let D;
|
4416
4416
|
function N() {
|
4417
4417
|
const H = Se(d) ? d(E().data) : d;
|
4418
|
-
H && D !== -1 && (D = setTimeout(
|
4418
|
+
H && D !== -1 && (D = setTimeout(j, H));
|
4419
4419
|
}
|
4420
|
-
function
|
4420
|
+
function j() {
|
4421
4421
|
!E().error && (f || k().isVisible()) && (u || k().isOnline()) ? ie(hr).then(N) : N();
|
4422
4422
|
}
|
4423
4423
|
return N(), () => {
|
@@ -4520,9 +4520,9 @@ function ld({
|
|
4520
4520
|
$(() => {
|
4521
4521
|
E.current = k || [];
|
4522
4522
|
}, [k]);
|
4523
|
-
const { data: F, mutate: A } = At([I, "streamData"], null),
|
4523
|
+
const { data: F, mutate: A } = At([I, "streamData"], null), W = R(F);
|
4524
4524
|
$(() => {
|
4525
|
-
|
4525
|
+
W.current = F;
|
4526
4526
|
}, [F]);
|
4527
4527
|
const { data: P = "ready", mutate: J } = At([I, "status"], null), { data: Q = void 0, mutate: L } = At([I, "error"], null), M = R(null), q = R({
|
4528
4528
|
credentials: h,
|
@@ -4538,7 +4538,7 @@ function ld({
|
|
4538
4538
|
}, [h, m, y]);
|
4539
4539
|
const B = V(
|
4540
4540
|
async (U, D = "generate") => {
|
4541
|
-
var N,
|
4541
|
+
var N, j;
|
4542
4542
|
J("submitted"), L(void 0);
|
4543
4543
|
const H = nr(U.messages), ne = H.length, fe = Rr(
|
4544
4544
|
(N = H[H.length - 1]) == null ? void 0 : N.toolInvocations
|
@@ -4571,15 +4571,15 @@ function ld({
|
|
4571
4571
|
...ba !== void 0 && { toolInvocations: ba },
|
4572
4572
|
...va !== void 0 && { parts: va }
|
4573
4573
|
})
|
4574
|
-
), le =
|
4574
|
+
), le = W.current;
|
4575
4575
|
await _l({
|
4576
4576
|
api: e,
|
4577
|
-
body: (
|
4577
|
+
body: (j = o?.({
|
4578
4578
|
id: O,
|
4579
4579
|
messages: H,
|
4580
4580
|
requestData: U.data,
|
4581
4581
|
requestBody: U.body
|
4582
|
-
})) != null ?
|
4582
|
+
})) != null ? j : {
|
4583
4583
|
id: O,
|
4584
4584
|
messages: _t,
|
4585
4585
|
data: U.data,
|
@@ -4639,7 +4639,7 @@ function ld({
|
|
4639
4639
|
u,
|
4640
4640
|
L,
|
4641
4641
|
A,
|
4642
|
-
|
4642
|
+
W,
|
4643
4643
|
l,
|
4644
4644
|
n,
|
4645
4645
|
o,
|
@@ -4657,7 +4657,7 @@ function ld({
|
|
4657
4657
|
async (U, {
|
4658
4658
|
data: D,
|
4659
4659
|
headers: N,
|
4660
|
-
body:
|
4660
|
+
body: j,
|
4661
4661
|
experimental_attachments: H = U.experimental_attachments
|
4662
4662
|
} = {}) => {
|
4663
4663
|
var ne, fe;
|
@@ -4670,17 +4670,17 @@ function ld({
|
|
4670
4670
|
experimental_attachments: te.length > 0 ? te : void 0,
|
4671
4671
|
parts: bs(U)
|
4672
4672
|
});
|
4673
|
-
return B({ messages: ee, headers: N, body:
|
4673
|
+
return B({ messages: ee, headers: N, body: j, data: D });
|
4674
4674
|
},
|
4675
4675
|
[B, g]
|
4676
4676
|
), ve = V(
|
4677
4677
|
async ({ data: U, headers: D, body: N } = {}) => {
|
4678
|
-
const
|
4679
|
-
if (
|
4678
|
+
const j = E.current;
|
4679
|
+
if (j.length === 0)
|
4680
4680
|
return null;
|
4681
|
-
const H =
|
4681
|
+
const H = j[j.length - 1];
|
4682
4682
|
return B({
|
4683
|
-
messages: H.role === "assistant" ?
|
4683
|
+
messages: H.role === "assistant" ? j.slice(0, -1) : j,
|
4684
4684
|
headers: D,
|
4685
4685
|
body: N,
|
4686
4686
|
data: U
|
@@ -4689,7 +4689,7 @@ function ld({
|
|
4689
4689
|
[B]
|
4690
4690
|
), Pe = V(() => {
|
4691
4691
|
M.current && (M.current.abort(), M.current = null);
|
4692
|
-
}, []),
|
4692
|
+
}, []), We = V(async () => {
|
4693
4693
|
const U = E.current;
|
4694
4694
|
B({ messages: U }, "resume");
|
4695
4695
|
}, [B]), Me = V(
|
@@ -4699,15 +4699,15 @@ function ld({
|
|
4699
4699
|
x(D, !1), E.current = D;
|
4700
4700
|
},
|
4701
4701
|
[x]
|
4702
|
-
),
|
4702
|
+
), je = V(
|
4703
4703
|
(U) => {
|
4704
|
-
typeof U == "function" && (U = U(
|
4704
|
+
typeof U == "function" && (U = U(W.current)), A(U, !1), W.current = U;
|
4705
4705
|
},
|
4706
4706
|
[A]
|
4707
4707
|
), [_e, K] = z(a), se = V(
|
4708
4708
|
async (U, D = {}, N) => {
|
4709
|
-
var
|
4710
|
-
if ((
|
4709
|
+
var j;
|
4710
|
+
if ((j = U?.preventDefault) == null || j.call(U), !_e && !D.allowEmptySubmit)
|
4711
4711
|
return;
|
4712
4712
|
N && (q.current = {
|
4713
4713
|
...q.current,
|
@@ -4748,8 +4748,8 @@ function ld({
|
|
4748
4748
|
!1
|
4749
4749
|
), P === "submitted" || P === "streaming")
|
4750
4750
|
return;
|
4751
|
-
const
|
4752
|
-
vs(
|
4751
|
+
const j = N[N.length - 1];
|
4752
|
+
vs(j) && B({ messages: N });
|
4753
4753
|
},
|
4754
4754
|
[x, P, B]
|
4755
4755
|
);
|
@@ -4758,12 +4758,12 @@ function ld({
|
|
4758
4758
|
id: O,
|
4759
4759
|
setMessages: Me,
|
4760
4760
|
data: F,
|
4761
|
-
setData:
|
4761
|
+
setData: je,
|
4762
4762
|
error: Q,
|
4763
4763
|
append: ge,
|
4764
4764
|
reload: ve,
|
4765
4765
|
stop: Pe,
|
4766
|
-
experimental_resume:
|
4766
|
+
experimental_resume: We,
|
4767
4767
|
input: _e,
|
4768
4768
|
setInput: K,
|
4769
4769
|
handleInputChange: ie,
|
@@ -5310,7 +5310,7 @@ const Fd = (e, t, r, a, n) => {
|
|
5310
5310
|
throw new e(`Extension Header Parameter "${o}" MUST be integrity protected`);
|
5311
5311
|
}
|
5312
5312
|
return new Set(a.crit);
|
5313
|
-
},
|
5313
|
+
}, Wd = (e, t) => {
|
5314
5314
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
5315
5315
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
5316
5316
|
if (t)
|
@@ -5319,7 +5319,7 @@ const Fd = (e, t, r, a, n) => {
|
|
5319
5319
|
function la(e) {
|
5320
5320
|
return qt(e) && typeof e.kty == "string";
|
5321
5321
|
}
|
5322
|
-
function
|
5322
|
+
function jd(e) {
|
5323
5323
|
return e.kty !== "oct" && typeof e.d == "string";
|
5324
5324
|
}
|
5325
5325
|
function Gd(e) {
|
@@ -5502,7 +5502,7 @@ const sn = async (e, t, r, a = !1) => {
|
|
5502
5502
|
switch (r) {
|
5503
5503
|
case "decrypt":
|
5504
5504
|
case "sign":
|
5505
|
-
if (
|
5505
|
+
if (jd(t) && Hr(e, t, r))
|
5506
5506
|
return;
|
5507
5507
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
5508
5508
|
case "encrypt":
|
@@ -5606,7 +5606,7 @@ async function ru(e, t, r) {
|
|
5606
5606
|
const { alg: c } = n;
|
5607
5607
|
if (typeof c != "string" || !c)
|
5608
5608
|
throw new oe('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
5609
|
-
const l = r &&
|
5609
|
+
const l = r && Wd("algorithms", r.algorithms);
|
5610
5610
|
if (l && !l.has(c))
|
5611
5611
|
throw new Os('"alg" (Algorithm) Header Parameter value not allowed');
|
5612
5612
|
if (o) {
|
@@ -5876,7 +5876,7 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, yu = (
|
|
5876
5876
|
x: E,
|
5877
5877
|
y: F,
|
5878
5878
|
middlewareData: A,
|
5879
|
-
placement:
|
5879
|
+
placement: W
|
5880
5880
|
} = await Uo(l.current, d.current, {
|
5881
5881
|
placement: r,
|
5882
5882
|
middleware: [
|
@@ -5899,7 +5899,7 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, yu = (
|
|
5899
5899
|
right: "left",
|
5900
5900
|
bottom: "top",
|
5901
5901
|
left: "right"
|
5902
|
-
}[
|
5902
|
+
}[W.split("-")[0]];
|
5903
5903
|
(_ = f?.current) != null && _.style && Object.assign(f.current.style, {
|
5904
5904
|
left: Ot((k = A.arrow) == null ? void 0 : k.x),
|
5905
5905
|
top: Ot((x = A.arrow) == null ? void 0 : x.y),
|
@@ -6377,7 +6377,7 @@ const Su = ({
|
|
6377
6377
|
)), Du = (e, t, r) => {
|
6378
6378
|
var a;
|
6379
6379
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e?.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
6380
|
-
},
|
6380
|
+
}, Ws = Z.forwardRef((e, t) => {
|
6381
6381
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
6382
6382
|
return /* @__PURE__ */ i(
|
6383
6383
|
"button",
|
@@ -6390,7 +6390,7 @@ const Su = ({
|
|
6390
6390
|
}
|
6391
6391
|
);
|
6392
6392
|
});
|
6393
|
-
|
6393
|
+
Ws.displayName = "BaseButton";
|
6394
6394
|
function Bu() {
|
6395
6395
|
const e = R(!1);
|
6396
6396
|
return $(() => (e.current = !0, () => {
|
@@ -6481,13 +6481,13 @@ const $t = {
|
|
6481
6481
|
radius: w,
|
6482
6482
|
variant: v,
|
6483
6483
|
animated: S
|
6484
|
-
}), _ = Pu({ mode: r, raw: c, iconClassName: C }), k = Mu({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = pr(), [A,
|
6484
|
+
}), _ = Pu({ mode: r, raw: c, iconClassName: C }), k = Mu({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = pr(), [A, W] = pr(), [P, J] = pr(), Q = R(0), L = R(null), M = R(null), q = Uu([I, L]);
|
6485
6485
|
return Oe(() => {
|
6486
6486
|
P && P.current && S && (Q.current = J.width + Vu[u] + (l ? 0 : zu), L.current && !L.current.style.width && (L.current.style.width = `${$t[u]}px`));
|
6487
6487
|
}, [J, P, u, l, S]), Oe(() => {
|
6488
6488
|
if (L && L.current && S) {
|
6489
6489
|
let B = $t[u];
|
6490
|
-
h && E && F.width > 0 ? B = F.width + Q.current : m && A &&
|
6490
|
+
h && E && F.width > 0 ? B = F.width + Q.current : m && A && W.width > 0 && (B = W.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > $t[u] && (M.current = setTimeout(() => {
|
6491
6491
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
6492
6492
|
}, Fu * 0.8))), B === $t[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
6493
6493
|
}
|
@@ -6495,7 +6495,7 @@ const $t = {
|
|
6495
6495
|
F,
|
6496
6496
|
h,
|
6497
6497
|
E,
|
6498
|
-
|
6498
|
+
W,
|
6499
6499
|
m,
|
6500
6500
|
A,
|
6501
6501
|
u,
|
@@ -6503,7 +6503,7 @@ const $t = {
|
|
6503
6503
|
]), $(() => () => {
|
6504
6504
|
M.current && clearTimeout(M.current);
|
6505
6505
|
}, []), /* @__PURE__ */ i(
|
6506
|
-
|
6506
|
+
Ws,
|
6507
6507
|
{
|
6508
6508
|
ref: q,
|
6509
6509
|
className: b,
|
@@ -6566,7 +6566,7 @@ try {
|
|
6566
6566
|
});
|
6567
6567
|
} catch {
|
6568
6568
|
}
|
6569
|
-
const
|
6569
|
+
const Wu = Z.forwardRef(
|
6570
6570
|
({
|
6571
6571
|
children: e,
|
6572
6572
|
mode: t = "system",
|
@@ -6604,8 +6604,8 @@ const ju = Z.forwardRef(
|
|
6604
6604
|
) });
|
6605
6605
|
}
|
6606
6606
|
);
|
6607
|
-
|
6608
|
-
const
|
6607
|
+
Wu.displayName = "ButtonSort";
|
6608
|
+
const ju = ({
|
6609
6609
|
children: e,
|
6610
6610
|
fill: t,
|
6611
6611
|
viewBox: r,
|
@@ -6655,7 +6655,7 @@ const Gu = ({
|
|
6655
6655
|
monotone: a,
|
6656
6656
|
...n
|
6657
6657
|
}) => /* @__PURE__ */ i(
|
6658
|
-
|
6658
|
+
ju,
|
6659
6659
|
{
|
6660
6660
|
defaultViewBox: "0 0 384 512",
|
6661
6661
|
size: "size-5",
|
@@ -6685,7 +6685,7 @@ try {
|
|
6685
6685
|
});
|
6686
6686
|
} catch {
|
6687
6687
|
}
|
6688
|
-
const
|
6688
|
+
const js = Y.createContext(null);
|
6689
6689
|
function Ku({
|
6690
6690
|
initialOpen: e = !1,
|
6691
6691
|
open: t,
|
@@ -6715,7 +6715,7 @@ function Ku({
|
|
6715
6715
|
);
|
6716
6716
|
}
|
6717
6717
|
const Xt = () => {
|
6718
|
-
const e = Y.useContext(
|
6718
|
+
const e = Y.useContext(js);
|
6719
6719
|
if (e == null)
|
6720
6720
|
throw new Error("Modal components must be wrapped in <Modal />");
|
6721
6721
|
return e;
|
@@ -6725,7 +6725,7 @@ function Ju({
|
|
6725
6725
|
...t
|
6726
6726
|
}) {
|
6727
6727
|
const r = Ku(t);
|
6728
|
-
return /* @__PURE__ */ i(
|
6728
|
+
return /* @__PURE__ */ i(js.Provider, { value: r, children: e });
|
6729
6729
|
}
|
6730
6730
|
const qu = Y.forwardRef(function(e, t) {
|
6731
6731
|
const { context: r, ...a } = Xt(), n = Kr([a.refs.setFloating, t]);
|
@@ -6924,8 +6924,8 @@ const qe = ({
|
|
6924
6924
|
dispatch: a,
|
6925
6925
|
setChatId: n,
|
6926
6926
|
setInitialMessages: s
|
6927
|
-
} = X(be), [o, c] = z(!1), [l, d] = z(!1), [f, u] =
|
6928
|
-
key:
|
6927
|
+
} = X(be), [o, c] = z(!1), [l, d] = z(!1), [f, u] = jt({
|
6928
|
+
key: Wt + Eo,
|
6929
6929
|
initialValue: ""
|
6930
6930
|
}), h = (y) => {
|
6931
6931
|
n(Ue()), s([]), a({
|
@@ -7030,7 +7030,7 @@ const qe = ({
|
|
7030
7030
|
focusMode: o = "system",
|
7031
7031
|
...c
|
7032
7032
|
}, l) => {
|
7033
|
-
const [d, f] = z(!1), [u, h] = z(!1), [m, y] = z(null), g = R([]), w = R([]), v = X(zr), C =
|
7033
|
+
const [d, f] = z(!1), [u, h] = z(!1), [m, y] = z(null), g = R([]), w = R([]), v = X(zr), C = Wn(), S = Fo(), O = jn(), { floatingStyles: I, refs: b, context: _ } = Un({
|
7034
7034
|
nodeId: S,
|
7035
7035
|
open: d,
|
7036
7036
|
onOpenChange: (q) => {
|
@@ -7039,12 +7039,12 @@ const qe = ({
|
|
7039
7039
|
placement: a,
|
7040
7040
|
strategy: "fixed",
|
7041
7041
|
middleware: [Pn({ mainAxis: 10 }), Mn(), Ln()],
|
7042
|
-
whileElementsMounted:
|
7042
|
+
whileElementsMounted: Wo
|
7043
7043
|
}), k = Hn(_, {
|
7044
7044
|
event: "mousedown",
|
7045
7045
|
toggle: !0,
|
7046
7046
|
ignoreMouse: !1
|
7047
|
-
}), x = zn(_, { role: "menu" }), E = Vn(_, { bubbles: !0 }), F =
|
7047
|
+
}), x = zn(_, { role: "menu" }), E = Vn(_, { bubbles: !0 }), F = jo(_, {
|
7048
7048
|
listRef: g,
|
7049
7049
|
activeIndex: m,
|
7050
7050
|
nested: !1,
|
@@ -7054,7 +7054,7 @@ const qe = ({
|
|
7054
7054
|
listRef: w,
|
7055
7055
|
onMatch: d ? y : void 0,
|
7056
7056
|
activeIndex: m
|
7057
|
-
}), { getReferenceProps:
|
7057
|
+
}), { getReferenceProps: W, getFloatingProps: P, getItemProps: J } = Fn([k, x, E, F, A]), Q = gn(e) === "Button" || gn(e) === "ButtonIcon", L = Q ? {
|
7058
7058
|
noInternalClick: Q,
|
7059
7059
|
focusMode: o,
|
7060
7060
|
mode: s
|
@@ -7066,7 +7066,7 @@ const qe = ({
|
|
7066
7066
|
"data-open": d ? "" : void 0,
|
7067
7067
|
"data-focus-inside": u ? "" : void 0,
|
7068
7068
|
ref: Kr([b.setReference, O.ref, l]),
|
7069
|
-
...
|
7069
|
+
...W(
|
7070
7070
|
v.getItemProps({
|
7071
7071
|
...c
|
7072
7072
|
})
|
@@ -7217,7 +7217,7 @@ const Re = Y.forwardRef(
|
|
7217
7217
|
...c
|
7218
7218
|
}, l) => {
|
7219
7219
|
let d = "";
|
7220
|
-
const f = Y.useContext(zr), u =
|
7220
|
+
const f = Y.useContext(zr), u = jn({ label: t ? null : e }), h = Wn(), m = Kr([u.ref, l]);
|
7221
7221
|
if (a && n)
|
7222
7222
|
return /* @__PURE__ */ i(
|
7223
7223
|
"div",
|
@@ -7374,8 +7374,8 @@ const sh = (e) => {
|
|
7374
7374
|
dispatch: a,
|
7375
7375
|
setChatId: n,
|
7376
7376
|
setInitialMessages: s
|
7377
|
-
} = X(be), [o, c] = z(!1), [l, d] = z(!1), [f, u] =
|
7378
|
-
key:
|
7377
|
+
} = X(be), [o, c] = z(!1), [l, d] = z(!1), [f, u] = jt({
|
7378
|
+
key: Wt + ko,
|
7379
7379
|
initialValue: ""
|
7380
7380
|
}), h = (y) => {
|
7381
7381
|
n(Ue()), s([]), a({
|
@@ -7451,7 +7451,7 @@ const sh = (e) => {
|
|
7451
7451
|
] });
|
7452
7452
|
};
|
7453
7453
|
let gr = null, yr = null;
|
7454
|
-
const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = async () => (yr || (yr = import("./index.
|
7454
|
+
const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = async () => (yr || (yr = import("./index.seo_KuwP.js").then((e) => e.utilities)), yr), ih = async () => {
|
7455
7455
|
try {
|
7456
7456
|
await Promise.all([Ys(), Qs()]);
|
7457
7457
|
} catch {
|
@@ -7830,10 +7830,10 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
7830
7830
|
}), { data: O } = Qt({
|
7831
7831
|
user: e?.username,
|
7832
7832
|
getAccessToken: t
|
7833
|
-
}), I = R(null), b = R(null), _ = R(!1), k = R(0), x = R(null), E = R(null), F =
|
7833
|
+
}), I = R(null), b = R(null), _ = R(!1), k = R(0), x = R(null), E = R(null), F = Wi(), A = bh({
|
7834
7834
|
className: ""
|
7835
7835
|
}), {
|
7836
|
-
input:
|
7836
|
+
input: W,
|
7837
7837
|
setInput: P,
|
7838
7838
|
handleInputChange: J,
|
7839
7839
|
handleSubmit: Q,
|
@@ -7908,8 +7908,8 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
7908
7908
|
const se = n ? Array.from(n) : [], ie = Array.from(K.target.files), ye = [...se];
|
7909
7909
|
let U = !1;
|
7910
7910
|
for (const N of ie) {
|
7911
|
-
const
|
7912
|
-
br.includes(
|
7911
|
+
const j = "." + N.name.split(".").pop()?.toLowerCase();
|
7912
|
+
br.includes(j) ? ye.some(
|
7913
7913
|
(ne) => ne.name === N.name && ne.size === N.size && ne.lastModified === N.lastModified
|
7914
7914
|
) || ye.push(N) : U = !0;
|
7915
7915
|
}
|
@@ -7927,7 +7927,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
7927
7927
|
}
|
7928
7928
|
if (ye.length > 0) {
|
7929
7929
|
const N = new DataTransfer();
|
7930
|
-
ye.forEach((
|
7930
|
+
ye.forEach((j) => N.items.add(j)), s(N.files), f({
|
7931
7931
|
type: nt,
|
7932
7932
|
payload: {
|
7933
7933
|
attachments: N.files.length
|
@@ -7937,7 +7937,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
7937
7937
|
}
|
7938
7938
|
}, Pe = () => {
|
7939
7939
|
b.current && b.current.click();
|
7940
|
-
},
|
7940
|
+
}, We = (K) => {
|
7941
7941
|
if (!n)
|
7942
7942
|
return;
|
7943
7943
|
const se = new DataTransfer();
|
@@ -7951,7 +7951,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
7951
7951
|
}), b.current && (b.current.value = "");
|
7952
7952
|
}, Me = V(() => {
|
7953
7953
|
b.current && (b.current.value = ""), s(null);
|
7954
|
-
}, []),
|
7954
|
+
}, []), je = async (K) => {
|
7955
7955
|
K.preventDefault(), Lt(E);
|
7956
7956
|
const se = await t();
|
7957
7957
|
let ie;
|
@@ -7993,13 +7993,13 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
7993
7993
|
}
|
7994
7994
|
}, [w, v, P]), $(() => {
|
7995
7995
|
if (_.current === !1) {
|
7996
|
-
_.current = !0, !
|
7996
|
+
_.current = !0, !W && Lt(E);
|
7997
7997
|
return;
|
7998
7998
|
}
|
7999
7999
|
y > 0 && y !== k.current ? (k.current = y, setTimeout(() => {
|
8000
|
-
E.current && (!
|
8001
|
-
}, Eh)) : h === !1 && !
|
8002
|
-
}, [y, h,
|
8000
|
+
E.current && (!W && Lt(E), E.current.focus());
|
8001
|
+
}, Eh)) : h === !1 && !W && (Lt(E), !Ae() && E.current && E.current.focus());
|
8002
|
+
}, [y, h, W]), $(() => {
|
8003
8003
|
w.lastTriggeredTimestamp && setTimeout(() => {
|
8004
8004
|
ge();
|
8005
8005
|
}, 100);
|
@@ -8029,7 +8029,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8029
8029
|
children: /* @__PURE__ */ i("p", { className: "m-0", children: I.current })
|
8030
8030
|
}
|
8031
8031
|
),
|
8032
|
-
/* @__PURE__ */ i("div", { className: A.wrapper, ref: x, children: /* @__PURE__ */ T("form", { onSubmit:
|
8032
|
+
/* @__PURE__ */ i("div", { className: A.wrapper, ref: x, children: /* @__PURE__ */ T("form", { onSubmit: je, children: [
|
8033
8033
|
/* @__PURE__ */ i("div", { id: F, className: "sr-only", children: Ke() ? Ca : l ? Ia : xa }),
|
8034
8034
|
/* @__PURE__ */ T("div", { className: "relative", children: [
|
8035
8035
|
/* @__PURE__ */ i(
|
@@ -8041,9 +8041,9 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8041
8041
|
placeholder: Ke() ? Ca : l ? Ia : xa,
|
8042
8042
|
translate: "no",
|
8043
8043
|
onChange: _e,
|
8044
|
-
value:
|
8044
|
+
value: W,
|
8045
8045
|
onKeyDown: Di([
|
8046
|
-
[l ? "enter" : "mod+Enter",
|
8046
|
+
[l ? "enter" : "mod+Enter", je]
|
8047
8047
|
]),
|
8048
8048
|
onFocus: () => {
|
8049
8049
|
Ae() && document.body.setAttribute("data-input-focused", "true");
|
@@ -8068,7 +8068,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8068
8068
|
}
|
8069
8069
|
)
|
8070
8070
|
] }),
|
8071
|
-
/* @__PURE__ */ i(wh, { files: n, clearFile:
|
8071
|
+
/* @__PURE__ */ i(wh, { files: n, clearFile: We }),
|
8072
8072
|
/* @__PURE__ */ T("div", { className: "p-2 flex items-center", children: [
|
8073
8073
|
/* @__PURE__ */ i(lh, { className: "order-7 ml-auto" }),
|
8074
8074
|
/* @__PURE__ */ i(Su, { className: "order-1 mr-4 sm:mr-2" }),
|
@@ -8096,7 +8096,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8096
8096
|
dispatch: o
|
8097
8097
|
} = X(ia), [c] = z(
|
8098
8098
|
() => Ra[Math.floor(Math.random() * Ra.length)]
|
8099
|
-
), { messages: l } = Qe(), { height: d } =
|
8099
|
+
), { messages: l } = Qe(), { height: d } = ji(), { height: f } = Gi(), [u, h] = Jn(), m = he(() => Ae(), []), y = d - f, g = he(() => {
|
8100
8100
|
const w = m ? Ro : Rn;
|
8101
8101
|
return y > 0 && y < 100 ? xo : w;
|
8102
8102
|
}, [y, m]);
|
@@ -8186,17 +8186,17 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8186
8186
|
}
|
8187
8187
|
);
|
8188
8188
|
}, Ah = ot(
|
8189
|
-
() => import("./ProfileEntry.
|
8189
|
+
() => import("./ProfileEntry.N0E_BTHN.js").then((e) => ({ default: e.Profile }))
|
8190
8190
|
), Nh = ot(
|
8191
|
-
() => import("./SettingsEntry.
|
8191
|
+
() => import("./SettingsEntry.C_eOVFPG.js").then((e) => ({
|
8192
8192
|
default: e.SettingsPanel
|
8193
8193
|
}))
|
8194
8194
|
), Oh = ot(
|
8195
|
-
() => import("./HistoryEntry.
|
8195
|
+
() => import("./HistoryEntry.BbBqiZe6.js").then((e) => ({ default: e.HistoryPanel }))
|
8196
8196
|
), $h = ot(
|
8197
|
-
() => import("./AboutEntry.
|
8197
|
+
() => import("./AboutEntry.33ZTloPv.js").then((e) => ({ default: e.About }))
|
8198
8198
|
), Ph = ot(
|
8199
|
-
() => import("./UsageEntry.
|
8199
|
+
() => import("./UsageEntry.jNlvDnZc.js").then((e) => ({ default: e.Usage }))
|
8200
8200
|
), Mh = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i($n, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
|
8201
8201
|
switch (e) {
|
8202
8202
|
case "profile":
|
@@ -8216,7 +8216,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8216
8216
|
isComponent: e = !1
|
8217
8217
|
}) => {
|
8218
8218
|
const { logout: t, getAccessToken: r } = Ve(), [a, n] = z(null), [s, o] = z(!1), [c, l] = z(!1), [d, f] = z(!1), u = V(() => {
|
8219
|
-
d || (import("./ProfileEntry.
|
8219
|
+
d || (import("./ProfileEntry.N0E_BTHN.js"), import("./SettingsEntry.C_eOVFPG.js"), import("./HistoryEntry.BbBqiZe6.js"), import("./AboutEntry.33ZTloPv.js"), import("./UsageEntry.jNlvDnZc.js"), f(!0));
|
8220
8220
|
}, [d]), h = V((w) => {
|
8221
8221
|
n(w);
|
8222
8222
|
}, []), m = V(() => {
|
@@ -8369,7 +8369,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8369
8369
|
}
|
8370
8370
|
) })
|
8371
8371
|
] });
|
8372
|
-
}, zt = "av-bubble", vn = "av-button", fa = "icon", no = "button",
|
8372
|
+
}, zt = "av-bubble", vn = "av-button", fa = "icon", no = "button", Wr = "link", Dh = ({
|
8373
8373
|
type: e,
|
8374
8374
|
size: t,
|
8375
8375
|
labelRight: r,
|
@@ -8380,7 +8380,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8380
8380
|
const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
8381
8381
|
switch (e) {
|
8382
8382
|
case no:
|
8383
|
-
case
|
8383
|
+
case Wr:
|
8384
8384
|
return p({
|
8385
8385
|
[o]: t === "small",
|
8386
8386
|
[c]: t === "medium",
|
@@ -8414,9 +8414,9 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8414
8414
|
const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
8415
8415
|
switch (e) {
|
8416
8416
|
case no:
|
8417
|
-
case
|
8417
|
+
case Wr:
|
8418
8418
|
return p({
|
8419
|
-
"text-center": e ===
|
8419
|
+
"text-center": e === Wr,
|
8420
8420
|
[n]: t === "small",
|
8421
8421
|
[s]: t === "medium",
|
8422
8422
|
[o]: t === "large"
|
@@ -8560,7 +8560,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8560
8560
|
});
|
8561
8561
|
if (r === "selected")
|
8562
8562
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
8563
|
-
},
|
8563
|
+
}, Wh = ({
|
8564
8564
|
mode: e,
|
8565
8565
|
noBorder: t,
|
8566
8566
|
variant: r
|
@@ -8590,7 +8590,7 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8590
8590
|
});
|
8591
8591
|
if (r === "selected")
|
8592
8592
|
return "border border-border-selected-dark";
|
8593
|
-
},
|
8593
|
+
}, jh = ({
|
8594
8594
|
focusMode: e
|
8595
8595
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
8596
8596
|
"focus:outline-focus-dark": e === "dark",
|
@@ -8650,8 +8650,8 @@ const Ys = async () => (gr || (gr = import("./index.B8EJY2WR.js")), gr), Qs = as
|
|
8650
8650
|
animated: w
|
8651
8651
|
}),
|
8652
8652
|
Bh({ type: e, size: c, labelRight: d, labelLeft: f }),
|
8653
|
-
|
8654
|
-
|
8653
|
+
Wh({ mode: a, variant: h, noBorder: l }),
|
8654
|
+
jh({ focusMode: n }),
|
8655
8655
|
zh({ mode: a, variant: h, disabled: s }),
|
8656
8656
|
Fh({ mode: a, variant: h, disabled: s }),
|
8657
8657
|
{
|
@@ -8769,13 +8769,13 @@ const Dt = {
|
|
8769
8769
|
radius: w,
|
8770
8770
|
variant: v,
|
8771
8771
|
animated: S
|
8772
|
-
}), _ = Gh({ mode: r, raw: c, iconClassName: C }), k = Kh({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = vr(), [A,
|
8772
|
+
}), _ = Gh({ mode: r, raw: c, iconClassName: C }), k = Kh({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = vr(), [A, W] = vr(), [P, J] = vr(), Q = R(0), L = R(null), M = R(null), q = Qh([I, L]);
|
8773
8773
|
return Oe(() => {
|
8774
8774
|
P && P.current && S && (Q.current = J.width + Zh[u] + (l ? 0 : ef), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
|
8775
8775
|
}, [J, P, u, l, S]), Oe(() => {
|
8776
8776
|
if (L && L.current && S) {
|
8777
8777
|
let B = Dt[u];
|
8778
|
-
h && E && F.width > 0 ? B = F.width + Q.current : m && A &&
|
8778
|
+
h && E && F.width > 0 ? B = F.width + Q.current : m && A && W.width > 0 && (B = W.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Dt[u] && (M.current = setTimeout(() => {
|
8779
8779
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
8780
8780
|
}, tf * 0.8))), B === Dt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
8781
8781
|
}
|
@@ -8783,7 +8783,7 @@ const Dt = {
|
|
8783
8783
|
F,
|
8784
8784
|
h,
|
8785
8785
|
E,
|
8786
|
-
|
8786
|
+
W,
|
8787
8787
|
m,
|
8788
8788
|
A,
|
8789
8789
|
u,
|
@@ -9180,7 +9180,7 @@ try {
|
|
9180
9180
|
});
|
9181
9181
|
} catch {
|
9182
9182
|
}
|
9183
|
-
const kn = "av-button", er = "icon", pa = "button",
|
9183
|
+
const kn = "av-button", er = "icon", pa = "button", jr = "link", ff = ({
|
9184
9184
|
type: e,
|
9185
9185
|
size: t,
|
9186
9186
|
labelRight: r,
|
@@ -9191,7 +9191,7 @@ const kn = "av-button", er = "icon", pa = "button", Wr = "link", ff = ({
|
|
9191
9191
|
const o = "max-h-8 py-0 px-2", c = "max-h-9 h-8 px-3", l = "max-h-12 py-2 px-4";
|
9192
9192
|
switch (e) {
|
9193
9193
|
case pa:
|
9194
|
-
case
|
9194
|
+
case jr:
|
9195
9195
|
return p({
|
9196
9196
|
[o]: t === "small",
|
9197
9197
|
[c]: t === "medium",
|
@@ -9225,9 +9225,9 @@ const kn = "av-button", er = "icon", pa = "button", Wr = "link", ff = ({
|
|
9225
9225
|
const n = "text-sm font-medium", s = "text-base font-medium", o = "text-lg font-medium";
|
9226
9226
|
switch (e) {
|
9227
9227
|
case pa:
|
9228
|
-
case
|
9228
|
+
case jr:
|
9229
9229
|
return p({
|
9230
|
-
"text-center": e ===
|
9230
|
+
"text-center": e === jr,
|
9231
9231
|
[n]: t === "small",
|
9232
9232
|
[s]: t === "medium",
|
9233
9233
|
[o]: t === "large"
|
@@ -9623,13 +9623,13 @@ const Bt = {
|
|
9623
9623
|
radius: w,
|
9624
9624
|
variant: v,
|
9625
9625
|
animated: S
|
9626
|
-
}), _ = kf({ mode: r, raw: c, iconClassName: C }), k = _f({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = wr(), [A,
|
9626
|
+
}), _ = kf({ mode: r, raw: c, iconClassName: C }), k = _f({ animated: S }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [E, F] = wr(), [A, W] = wr(), [P, J] = wr(), Q = R(0), L = R(null), M = R(null), q = Cf([I, L]);
|
9627
9627
|
return Oe(() => {
|
9628
9628
|
P && P.current && S && (Q.current = J.width + xf[u] + (l ? 0 : Rf), L.current && !L.current.style.width && (L.current.style.width = `${Bt[u]}px`));
|
9629
9629
|
}, [J, P, u, l, S]), Oe(() => {
|
9630
9630
|
if (L && L.current && S) {
|
9631
9631
|
let B = Bt[u];
|
9632
|
-
h && E && F.width > 0 ? B = F.width + Q.current : m && A &&
|
9632
|
+
h && E && F.width > 0 ? B = F.width + Q.current : m && A && W.width > 0 && (B = W.width + Q.current), M.current && clearTimeout(M.current), B !== parseInt(L.current.style.width || "0", 10) && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"), L.current.style.width = `${B}px`, B > Bt[u] && (M.current = setTimeout(() => {
|
9633
9633
|
E.current && h && (E.current.style.opacity = "1"), A.current && m && (A.current.style.opacity = "1"), M.current = null;
|
9634
9634
|
}, Af * 0.8))), B === Bt[u] && (E.current && (E.current.style.opacity = "0"), A.current && (A.current.style.opacity = "0"));
|
9635
9635
|
}
|
@@ -9637,7 +9637,7 @@ const Bt = {
|
|
9637
9637
|
F,
|
9638
9638
|
h,
|
9639
9639
|
E,
|
9640
|
-
|
9640
|
+
W,
|
9641
9641
|
m,
|
9642
9642
|
A,
|
9643
9643
|
u,
|
@@ -9816,7 +9816,7 @@ const Mf = ({ content: e }) => /* @__PURE__ */ i(
|
|
9816
9816
|
), Sn = 2, Lf = ot(
|
9817
9817
|
() => import(
|
9818
9818
|
/* webpackChunkName: "LazyMessageAssistant" */
|
9819
|
-
"./ChatBubbleAssistant.
|
9819
|
+
"./ChatBubbleAssistant.Aht9ouJp.js"
|
9820
9820
|
)
|
9821
9821
|
), Df = Z.memo(
|
9822
9822
|
({
|
@@ -9908,11 +9908,11 @@ function ho({
|
|
9908
9908
|
isComponent: e = !1,
|
9909
9909
|
headerHeight: t = 0
|
9910
9910
|
}) {
|
9911
|
-
const { user: r, getAccessToken: a } = Ve(), [n, s] = z(`${Na}px`), [o, c] = Jn(), [l, d] = z(Ue()), [f, u] = z([]), [h] =
|
9912
|
-
key:
|
9911
|
+
const { user: r, getAccessToken: a } = Ve(), [n, s] = z(`${Na}px`), [o, c] = Jn(), [l, d] = z(Ue()), [f, u] = z([]), [h] = jt({
|
9912
|
+
key: Wt + Lo,
|
9913
9913
|
initialValue: ""
|
9914
|
-
}), [m] =
|
9915
|
-
key:
|
9914
|
+
}), [m] = jt({
|
9915
|
+
key: Wt + Mo,
|
9916
9916
|
initialValue: ft.ASC
|
9917
9917
|
}), y = he(() => {
|
9918
9918
|
const k = Ae();
|
@@ -10054,10 +10054,10 @@ export {
|
|
10054
10054
|
rt as CHAT_SET_STATUS,
|
10055
10055
|
be as ChatContext,
|
10056
10056
|
qe as ConfirmationPanel,
|
10057
|
-
|
10057
|
+
jt as E,
|
10058
10058
|
Kf as Fe,
|
10059
10059
|
Jf as Ge,
|
10060
|
-
|
10060
|
+
jf as He,
|
10061
10061
|
sa as HistoryContext,
|
10062
10062
|
za as LazyToastContainerWrapper,
|
10063
10063
|
uf as Me,
|
@@ -10072,8 +10072,8 @@ export {
|
|
10072
10072
|
$e as at,
|
10073
10073
|
Ui as b,
|
10074
10074
|
ys as getDefaultExportFromCjs,
|
10075
|
-
|
10076
|
-
tm as
|
10075
|
+
Wi as i,
|
10076
|
+
tm as k,
|
10077
10077
|
rs as mutateCall,
|
10078
10078
|
na as n,
|
10079
10079
|
rm as nt,
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx as Tp } from "react/jsx-runtime";
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.XdWU4F4s.js";
|
3
3
|
import Ap, { useState as Cp, useEffect as Pp } from "react";
|
4
|
-
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.
|
4
|
+
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.seo_KuwP.js";
|
5
5
|
var ls = { exports: {} }, Ep = ls.exports, on;
|
6
6
|
function Ip() {
|
7
7
|
return on || (on = 1, function(ve, ne) {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
2
|
-
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.
|
2
|
+
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.XdWU4F4s.js";
|
3
3
|
import L from "clsx";
|
4
4
|
import k, { useState as E, useRef as g, useEffect as O, useContext as w } from "react";
|
5
|
-
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.
|
6
|
-
import { useMarkdown as y } from "./useMarkdown.
|
5
|
+
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.seo_KuwP.js";
|
6
|
+
import { useMarkdown as y } from "./useMarkdown.B2GibB59.js";
|
7
7
|
const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
|
8
8
|
function V(e, a = !0) {
|
9
9
|
const [i, C] = E(0), [c, p] = E(0), [t, A] = E(e), r = g(0), s = g(0);
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as Z } from "react/jsx-runtime";
|
2
|
-
import { I as H, n as G, INFINITE_SCROLL_LIMIT as M, INFINITE_SCROLL_THRESHOLD as B, LOCAL_STORAGE_PREFIX as U, LOCAL_STORAGE_SORT as ee, APP_CLASSNAME as te, le as b, CARDS as se, pluralize as ae, ACTION_SORT as V, TOAST_CHAT_DELETED as re, TOAST_PROVIDER_CHANGED as oe, LOCAL_STORAGE_SEARCH as ce, HISTORY_TITLE as ne, fe as ie, debounce as le, ACTION_SEARCH as de } from "./index.
|
3
|
-
import { HistoryContext as Y, ChatContext as j, useAiChat as me, E as q, useUserPreferences as he, ConfirmationPanel as ue, LazyToastContainerWrapper as pe, He as Ce, $e as Se, qe as _, Pe as l, Ye as ge, Ge as ye,
|
2
|
+
import { I as H, n as G, INFINITE_SCROLL_LIMIT as M, INFINITE_SCROLL_THRESHOLD as B, LOCAL_STORAGE_PREFIX as U, LOCAL_STORAGE_SORT as ee, APP_CLASSNAME as te, le as b, CARDS as se, pluralize as ae, ACTION_SORT as V, TOAST_CHAT_DELETED as re, TOAST_PROVIDER_CHANGED as oe, LOCAL_STORAGE_SEARCH as ce, HISTORY_TITLE as ne, fe as ie, debounce as le, ACTION_SEARCH as de } from "./index.seo_KuwP.js";
|
3
|
+
import { HistoryContext as Y, ChatContext as j, useAiChat as me, E as q, useUserPreferences as he, ConfirmationPanel as ue, LazyToastContainerWrapper as pe, He as Ce, $e as Se, qe as _, Pe as l, Ye as ge, Ge as ye, k as fe, a as xe, p as Te, p$1 as ve, at as $, Fe as we, mutateCall as P, SERVICE_TYPES as F, showErrorToast as Ee, R as x, O as De, n as Ne, o as Ae, setNewProvider as Ie, CHAT_SET_PROVIDER as Re, showSuccessToast as ze, CHAT_SET_STATUS as _e, useChatsHistory as be, rr as ke, a$1 as Le } from "./App.XdWU4F4s.js";
|
4
4
|
import { useRef as k, useState as D, useContext as N, useCallback as He, useEffect as L, Fragment as Oe } from "react";
|
5
5
|
const Me = ({
|
6
6
|
className: a,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createContext as be, createSignal as R, onMount as Mt, createEffect as B, createMemo as M, createComponent as p, Portal as Lo, Show as z, template as _, insert as k, createRenderEffect as N, className as T, clearDelegatedEvents as ms, delegateEvents as rr, useContext as xe, onCleanup as U, sortFns as Gn, mutationSortFns as Hn, on as ct, setAttribute as A, getSidedProp as vs, use as Mn, batch as bs, getQueryStatusLabel as Lt, getMutationStatusColor as _t, getQueryStatusColor as xs, getQueryStatusColorByLabel as ws, displayValue as bn, For as $s, convertRemToPixels as Rr, untrack as Rt, useTransition as Cs, spread as Ss, mergeProps as j, createRoot as zr, serialize as ks, Index as Es, updateNestedDataByPath as or, addEventListener as Ms, stringify as Ds, Match as Rn, Switch as As, deleteNestedDataByPath as Ts, createUniqueId as Ke, splitProps as X, Dynamic as Fs, createComputed as Is, getPreferredColorScheme as Ps } from "./index.
|
1
|
+
import { createContext as be, createSignal as R, onMount as Mt, createEffect as B, createMemo as M, createComponent as p, Portal as Lo, Show as z, template as _, insert as k, createRenderEffect as N, className as T, clearDelegatedEvents as ms, delegateEvents as rr, useContext as xe, onCleanup as U, sortFns as Gn, mutationSortFns as Hn, on as ct, setAttribute as A, getSidedProp as vs, use as Mn, batch as bs, getQueryStatusLabel as Lt, getMutationStatusColor as _t, getQueryStatusColor as xs, getQueryStatusColorByLabel as ws, displayValue as bn, For as $s, convertRemToPixels as Rr, untrack as Rt, useTransition as Cs, spread as Ss, mergeProps as j, createRoot as zr, serialize as ks, Index as Es, updateNestedDataByPath as or, addEventListener as Ms, stringify as Ds, Match as Rn, Switch as As, deleteNestedDataByPath as Ts, createUniqueId as Ke, splitProps as X, Dynamic as Fs, createComputed as Is, getPreferredColorScheme as Ps } from "./index.seo_KuwP.js";
|
2
2
|
var Ls = (e) => e != null, Os = (e) => e.filter(Ls);
|
3
3
|
function qs(e) {
|
4
4
|
return (...t) => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as s, Fragment as m, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { i as h, nt as S, rr as R } from "./App.
|
3
|
-
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as T, isTauri as p, le as u, l as E, L as C, j as a, PROFILE_TITLE as A } from "./index.
|
2
|
+
import { i as h, nt as S, rr as R } from "./App.XdWU4F4s.js";
|
3
|
+
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as T, isTauri as p, le as u, l as E, L as C, j as a, PROFILE_TITLE as A } from "./index.seo_KuwP.js";
|
4
4
|
const F = () => {
|
5
5
|
const { isAuthenticated: n, user: i, registeringForPasskey: c, authenticationType: o } = N(), d = h(), t = i?.username || "";
|
6
6
|
return n && t ? /* @__PURE__ */ s(m, { children: [
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
2
|
-
import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Se, S as U, CARDS as P, APP_NAME as Ie, C as ae, PROMPTS_DESCRIPTION as Ae, L as Re, j as ce, getCurrentGeoLocation as Le, handleServiceWorkerToggle as Oe } from "./index.
|
3
|
-
import { useUserPreferences as Me, E as ie, rr as De, mutateCall as de, SERVICE_TYPES as ue } from "./App.
|
2
|
+
import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Se, S as U, CARDS as P, APP_NAME as Ie, C as ae, PROMPTS_DESCRIPTION as Ae, L as Re, j as ce, getCurrentGeoLocation as Le, handleServiceWorkerToggle as Oe } from "./index.seo_KuwP.js";
|
3
|
+
import { useUserPreferences as Me, E as ie, rr as De, mutateCall as de, SERVICE_TYPES as ue } from "./App.XdWU4F4s.js";
|
4
4
|
import Pe, { useRef as v, useState as y, useLayoutEffect as z, useMemo as pe, useEffect as j, useId as Ge, useReducer as Be, useCallback as He } from "react";
|
5
5
|
import i from "clsx";
|
6
6
|
const he = "av-text-area", Ve = "av-text-area-wrapper", oe = "av-text-area-helper-text", Ue = "av-text-area__control--right", $e = "av-text-area__control--left";
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.
|
3
|
-
import { i as M, useUserChatStats as _, useChatsUsage as D, rr as z } from "./App.
|
2
|
+
import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.seo_KuwP.js";
|
3
|
+
import { i as M, useUserChatStats as _, useChatsUsage as D, rr as z } from "./App.XdWU4F4s.js";
|
4
4
|
import { useState as O, Suspense as P, lazy as j } from "react";
|
5
5
|
const s = [0, 3, 6, 9], G = j(() => import(
|
6
6
|
/* webpackChunkName: "LazyChart" */
|
7
|
-
"./Chart.
|
7
|
+
"./Chart.K6rjphGm.js"
|
8
8
|
)), w = ({
|
9
9
|
open: m,
|
10
10
|
onOpenChange: I
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
2
|
-
import { visit as In } from "./useMarkdown.
|
3
|
-
import { toText as Cn } from "./index.
|
1
|
+
import { getDefaultExportFromCjs as kn } from "./App.XdWU4F4s.js";
|
2
|
+
import { visit as In } from "./useMarkdown.B2GibB59.js";
|
3
|
+
import { toText as Cn } from "./index.NPGEB_Ju.js";
|
4
4
|
function xn(e) {
|
5
5
|
const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
|
6
6
|
className: "type",
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.
|
1
|
+
import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.B2GibB59.js";
|
2
2
|
import { longestStreak as qe } from "./index.Cyw5OC0t.js";
|
3
3
|
function ne(e, n) {
|
4
4
|
const t = String(e);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.
|
2
|
-
import { toText as Ca } from "./index.
|
1
|
+
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.B2GibB59.js";
|
2
|
+
import { toText as Ca } from "./index.NPGEB_Ju.js";
|
3
3
|
const Gt = /[#.]/g;
|
4
4
|
function qa(r, e) {
|
5
5
|
const t = r || "", a = {};
|
@@ -3179,7 +3179,7 @@ var gu = (e, t = !1) => {
|
|
3179
3179
|
const t = Ui(() => {
|
3180
3180
|
const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [a] = this.#u, [o] = this.#e;
|
3181
3181
|
let c;
|
3182
|
-
return this.#d ? c = this.#d : (c = ki(() => import("./I3HPI4QX.
|
3182
|
+
return this.#d ? c = this.#d : (c = ki(() => import("./I3HPI4QX.DsgVJslv.js")), this.#d = c), Na(this.#o, this.#a), Si(c, Ai({
|
3183
3183
|
get queryFlavor() {
|
3184
3184
|
return r.#r;
|
3185
3185
|
},
|
@@ -7406,7 +7406,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ud = "{{clipboard}}", L = "
|
|
7406
7406
|
);
|
7407
7407
|
}, Kl = new URL(document.location.href).searchParams, on = !!Kl.get("debug") || !1, Hl = Ds(() => import(
|
7408
7408
|
/* webpackChunkName: "LazyApp" */
|
7409
|
-
"./App.
|
7409
|
+
"./App.XdWU4F4s.js"
|
7410
7410
|
).then((e) => e.App)), Bl = new si(), cn = ({
|
7411
7411
|
isComponent: e,
|
7412
7412
|
headerHeight: t
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import * as rn from "react/jsx-runtime";
|
2
2
|
import { jsx as ae, jsxs as Pn, Fragment as Ir } from "react/jsx-runtime";
|
3
|
-
import { le as Tr, isTauri as Pr, unObfuscate as Ar, obfuscate as zr } from "./index.
|
3
|
+
import { le as Tr, isTauri as Pr, unObfuscate as Ar, obfuscate as zr } from "./index.seo_KuwP.js";
|
4
4
|
import Lr, { useState as Lt, useEffect as _t, useCallback as vt, useRef as Re } from "react";
|
5
|
-
import { getDefaultExportFromCjs as Nt } from "./App.
|
5
|
+
import { getDefaultExportFromCjs as Nt } from "./App.XdWU4F4s.js";
|
6
6
|
import _r from "clsx";
|
7
7
|
const Rt = ({
|
8
8
|
children: e,
|
@@ -6897,7 +6897,7 @@ class su {
|
|
6897
6897
|
if (!this.remarkGfm) {
|
6898
6898
|
const { default: n } = await import(
|
6899
6899
|
/* webpackChunkName: "LazyRemarkGfm" */
|
6900
|
-
"./index.
|
6900
|
+
"./index.BqCF2cnF.js"
|
6901
6901
|
);
|
6902
6902
|
this.remarkGfm = n;
|
6903
6903
|
}
|
@@ -6908,7 +6908,7 @@ class su {
|
|
6908
6908
|
mu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
|
6909
6909
|
const { default: n } = await import(
|
6910
6910
|
/* webpackChunkName: "LazyRehypeKatex" */
|
6911
|
-
"./index.
|
6911
|
+
"./index.bMMY6peH.js"
|
6912
6912
|
);
|
6913
6913
|
this.rehypeKatex = n;
|
6914
6914
|
}
|
@@ -6918,7 +6918,7 @@ class su {
|
|
6918
6918
|
if (!this.remarkMath) {
|
6919
6919
|
const { default: n } = await import(
|
6920
6920
|
/* webpackChunkName: "LazyRemarkMath" */
|
6921
|
-
"./index.
|
6921
|
+
"./index.DVkfex2-.js"
|
6922
6922
|
);
|
6923
6923
|
this.remarkMath = n;
|
6924
6924
|
}
|
@@ -6928,7 +6928,7 @@ class su {
|
|
6928
6928
|
if (!this.rehypeHighlight) {
|
6929
6929
|
const { default: n } = await import(
|
6930
6930
|
/* webpackChunkName: "LazyRehypeHighlight" */
|
6931
|
-
"./index.
|
6931
|
+
"./index.BoAXq6-n.js"
|
6932
6932
|
);
|
6933
6933
|
this.rehypeHighlight = n;
|
6934
6934
|
}
|
package/dist/index.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
1
|
+
import { SassySaint as r } from "./chunks/index.seo_KuwP.js";
|
2
2
|
/*!
|
3
|
-
@sassysaint/client v8.33.
|
3
|
+
@sassysaint/client v8.33.2
|
4
4
|
© 2025 gizmette.com
|
5
5
|
*/
|
6
6
|
try {
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
8
|
-
version: "8.33.
|
9
|
-
buildTime: "08/
|
8
|
+
version: "8.33.2",
|
9
|
+
buildTime: "08/03/2025 08:35 AM EDT",
|
10
10
|
license: "MIT"
|
11
11
|
});
|
12
12
|
} catch {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@versini/sassysaint",
|
3
|
-
"version": "8.33.
|
3
|
+
"version": "8.33.2",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "Arno Versini",
|
6
6
|
"publishConfig": {
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"react-dom": "^18.3.1 || ^19.0.0"
|
32
32
|
},
|
33
33
|
"devDependencies": {
|
34
|
-
"@sassysaint/client": "8.33.
|
34
|
+
"@sassysaint/client": "8.33.2",
|
35
35
|
"@tailwindcss/vite": "4.1.11",
|
36
36
|
"@versini/ui-styles": "5.0.7"
|
37
37
|
},
|
@@ -43,5 +43,5 @@
|
|
43
43
|
"sideEffects": [
|
44
44
|
"**/*.css"
|
45
45
|
],
|
46
|
-
"gitHead": "
|
46
|
+
"gitHead": "224aa0a6e1946fea9969d3b3012019194ad907e3"
|
47
47
|
}
|