@versini/sassysaint 8.42.0 → 8.42.1
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.C7gm-3NT.js → AboutChangelog.C1AHC86T.js} +2 -2
- package/dist/chunks/{AboutEntry.D_pgWP79.js → AboutEntry.BTvmlghL.js} +6 -6
- package/dist/chunks/{App.DXta-gvo.js → App.D2WHcogN.js} +214 -216
- package/dist/chunks/{Chart.Cr3ZeKqI.js → Chart.5S9Fn3n9.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BB76OqTX.js → ChatBubbleAssistant.BJXuHM4I.js} +3 -3
- package/dist/chunks/{HistoryEntry.DsIdSYxb.js → HistoryEntry.B2ilKBrK.js} +8 -8
- package/dist/chunks/{LNWAZHJI.DxQWiZrX.js → LNWAZHJI.C9XhDaDp.js} +1 -1
- package/dist/chunks/{ProfileEntry.BAp-8Nf_.js → ProfileEntry.CdMgYW2A.js} +2 -2
- package/dist/chunks/{SettingsEntry.BHoKltw1.js → SettingsEntry.CipQGiZN.js} +2 -2
- package/dist/chunks/{UsageEntry.sYfwUlzO.js → UsageEntry.B5wxsMP6.js} +3 -3
- package/dist/chunks/{index.DO75xJrQ.js → index.0TR3rglu.js} +139 -139
- package/dist/chunks/{index.BrP_4z_s.js → index.BlYckyAF.js} +1 -1
- package/dist/chunks/{index.CQ3UIheu.js → index.Ch8cACzl.js} +1 -1
- package/dist/chunks/{index.uDv7Sbpj.js → index.CjUeFxPM.js} +1 -1
- package/dist/chunks/{index.DgujjZkc.js → index.DuDf8lDK.js} +3 -3
- package/dist/chunks/{index.DQo8JXFc.js → index.xk-gvDkE.js} +2 -2
- package/dist/chunks/{useMarkdown.ngn9Ceqg.js → useMarkdown.C13Ikwtc.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,6 +1,6 @@
|
|
1
|
-
import { jsx as y, jsxs as X, Fragment as
|
1
|
+
import { jsx as y, jsxs as X, Fragment as on } from "react/jsx-runtime";
|
2
2
|
import * as te from "react";
|
3
|
-
import fe, { createContext as cn, useReducer as ln, useCallback as ue, useRef as W, useEffect as Z, useSyncExternalStore as xs, useContext as
|
3
|
+
import fe, { createContext as cn, useReducer as ln, useCallback as ue, useRef as W, useEffect as Z, useSyncExternalStore as xs, useContext as pr, useLayoutEffect as gt, useState as le, useMemo as Rt, useId as un, Suspense as $s, lazy as Ds } from "react";
|
4
4
|
import g from "clsx";
|
5
5
|
var _t = class {
|
6
6
|
constructor() {
|
@@ -36,7 +36,7 @@ function Zt(e, t) {
|
|
36
36
|
function Fs(e, t) {
|
37
37
|
return typeof e == "function" ? e(t) : e;
|
38
38
|
}
|
39
|
-
function
|
39
|
+
function Cr(e, t) {
|
40
40
|
const {
|
41
41
|
type: r = "all",
|
42
42
|
exact: n,
|
@@ -47,7 +47,7 @@ function Nr(e, t) {
|
|
47
47
|
} = e;
|
48
48
|
if (o) {
|
49
49
|
if (n) {
|
50
|
-
if (t.queryHash !==
|
50
|
+
if (t.queryHash !== gr(o, t.options))
|
51
51
|
return !1;
|
52
52
|
} else if (!Ve(t.queryKey, o))
|
53
53
|
return !1;
|
@@ -59,7 +59,7 @@ function Nr(e, t) {
|
|
59
59
|
}
|
60
60
|
return !(typeof a == "boolean" && t.isStale() !== a || s && s !== t.state.fetchStatus || i && !i(t));
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function Nr(e, t) {
|
63
63
|
const { exact: r, status: n, predicate: s, mutationKey: i } = e;
|
64
64
|
if (i) {
|
65
65
|
if (!t.options.mutationKey)
|
@@ -72,7 +72,7 @@ function Pr(e, t) {
|
|
72
72
|
}
|
73
73
|
return !(n && t.state.status !== n || s && !s(t));
|
74
74
|
}
|
75
|
-
function
|
75
|
+
function gr(e, t) {
|
76
76
|
return (t?.queryKeyHashFn || Be)(e);
|
77
77
|
}
|
78
78
|
function Be(e) {
|
@@ -87,7 +87,7 @@ function Ve(e, t) {
|
|
87
87
|
function er(e, t) {
|
88
88
|
if (e === t)
|
89
89
|
return e;
|
90
|
-
const r =
|
90
|
+
const r = Pr(e) && Pr(t);
|
91
91
|
if (r || tr(e) && tr(t)) {
|
92
92
|
const n = r ? e : Object.keys(e), s = n.length, i = r ? t : Object.keys(t), o = i.length, a = r ? [] : {}, c = new Set(n);
|
93
93
|
let d = 0;
|
@@ -107,19 +107,19 @@ function su(e, t) {
|
|
107
107
|
return !1;
|
108
108
|
return !0;
|
109
109
|
}
|
110
|
-
function
|
110
|
+
function Pr(e) {
|
111
111
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
112
112
|
}
|
113
113
|
function tr(e) {
|
114
|
-
if (
|
114
|
+
if (!xr(e))
|
115
115
|
return !1;
|
116
116
|
const t = e.constructor;
|
117
117
|
if (t === void 0)
|
118
118
|
return !0;
|
119
119
|
const r = t.prototype;
|
120
|
-
return !(
|
120
|
+
return !(!xr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
121
121
|
}
|
122
|
-
function
|
122
|
+
function xr(e) {
|
123
123
|
return Object.prototype.toString.call(e) === "[object Object]";
|
124
124
|
}
|
125
125
|
function Ks(e) {
|
@@ -687,7 +687,7 @@ var Zs = class extends _t {
|
|
687
687
|
}
|
688
688
|
#e;
|
689
689
|
build(e, t, r) {
|
690
|
-
const n = t.queryKey, s = t.queryHash ??
|
690
|
+
const n = t.queryKey, s = t.queryHash ?? gr(n, t);
|
691
691
|
let i = this.get(s);
|
692
692
|
return i || (i = new Qs({
|
693
693
|
client: e,
|
@@ -724,12 +724,12 @@ var Zs = class extends _t {
|
|
724
724
|
find(e) {
|
725
725
|
const t = { exact: !0, ...e };
|
726
726
|
return this.getAll().find(
|
727
|
-
(r) =>
|
727
|
+
(r) => Cr(t, r)
|
728
728
|
);
|
729
729
|
}
|
730
730
|
findAll(e = {}) {
|
731
731
|
const t = this.getAll();
|
732
|
-
return Object.keys(e).length > 0 ? t.filter((r) =>
|
732
|
+
return Object.keys(e).length > 0 ? t.filter((r) => Cr(e, r)) : t;
|
733
733
|
}
|
734
734
|
notify(e) {
|
735
735
|
Q.batch(() => {
|
@@ -1008,11 +1008,11 @@ var ri = class extends _t {
|
|
1008
1008
|
find(e) {
|
1009
1009
|
const t = { exact: !0, ...e };
|
1010
1010
|
return this.getAll().find(
|
1011
|
-
(r) =>
|
1011
|
+
(r) => Nr(t, r)
|
1012
1012
|
);
|
1013
1013
|
}
|
1014
1014
|
findAll(e = {}) {
|
1015
|
-
return this.getAll().filter((t) =>
|
1015
|
+
return this.getAll().filter((t) => Nr(e, t));
|
1016
1016
|
}
|
1017
1017
|
notify(e) {
|
1018
1018
|
Q.batch(() => {
|
@@ -1033,7 +1033,7 @@ var ri = class extends _t {
|
|
1033
1033
|
function et(e) {
|
1034
1034
|
return e.options.scope?.id;
|
1035
1035
|
}
|
1036
|
-
function
|
1036
|
+
function $r(e) {
|
1037
1037
|
return {
|
1038
1038
|
onFetch: (t, r) => {
|
1039
1039
|
const n = t.options, s = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], o = t.state.data?.pageParams || [];
|
@@ -1068,7 +1068,7 @@ function Dr(e) {
|
|
1068
1068
|
};
|
1069
1069
|
};
|
1070
1070
|
if (s && i.length) {
|
1071
|
-
const m = s === "backward", p = m ? ni :
|
1071
|
+
const m = s === "backward", p = m ? ni : Dr, b = {
|
1072
1072
|
pages: i,
|
1073
1073
|
pageParams: o
|
1074
1074
|
}, w = p(n, b);
|
@@ -1076,7 +1076,7 @@ function Dr(e) {
|
|
1076
1076
|
} else {
|
1077
1077
|
const m = e ?? i.length;
|
1078
1078
|
do {
|
1079
|
-
const p = c === 0 ? o[0] ?? n.initialPageParam :
|
1079
|
+
const p = c === 0 ? o[0] ?? n.initialPageParam : Dr(n, a);
|
1080
1080
|
if (c > 0 && p == null)
|
1081
1081
|
break;
|
1082
1082
|
a = await h(a, p), c++;
|
@@ -1097,7 +1097,7 @@ function Dr(e) {
|
|
1097
1097
|
}
|
1098
1098
|
};
|
1099
1099
|
}
|
1100
|
-
function
|
1100
|
+
function Dr(e, { pages: t, pageParams: r }) {
|
1101
1101
|
const n = t.length - 1;
|
1102
1102
|
return t.length > 0 ? e.getNextPageParam(
|
1103
1103
|
t[n],
|
@@ -1240,13 +1240,13 @@ var si = class {
|
|
1240
1240
|
return this.fetchQuery(e).then(re).catch(re);
|
1241
1241
|
}
|
1242
1242
|
fetchInfiniteQuery(e) {
|
1243
|
-
return e.behavior =
|
1243
|
+
return e.behavior = $r(e.pages), this.fetchQuery(e);
|
1244
1244
|
}
|
1245
1245
|
prefetchInfiniteQuery(e) {
|
1246
1246
|
return this.fetchInfiniteQuery(e).then(re).catch(re);
|
1247
1247
|
}
|
1248
1248
|
ensureInfiniteQueryData(e) {
|
1249
|
-
return e.behavior =
|
1249
|
+
return e.behavior = $r(e.pages), this.ensureQueryData(e);
|
1250
1250
|
}
|
1251
1251
|
resumePausedMutations() {
|
1252
1252
|
return je.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
@@ -1296,7 +1296,7 @@ var si = class {
|
|
1296
1296
|
...e,
|
1297
1297
|
_defaulted: !0
|
1298
1298
|
};
|
1299
|
-
return t.queryHash || (t.queryHash =
|
1299
|
+
return t.queryHash || (t.queryHash = gr(
|
1300
1300
|
t.queryKey,
|
1301
1301
|
t
|
1302
1302
|
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === bt && (t.enabled = !1), t;
|
@@ -1502,7 +1502,7 @@ function Sn(e, t) {
|
|
1502
1502
|
try {
|
1503
1503
|
return ae(t, !0);
|
1504
1504
|
} catch (s) {
|
1505
|
-
|
1505
|
+
br(s);
|
1506
1506
|
} finally {
|
1507
1507
|
I = r, x = n;
|
1508
1508
|
}
|
@@ -1575,7 +1575,7 @@ function yi(e, t, r) {
|
|
1575
1575
|
try {
|
1576
1576
|
n = e.fn(t);
|
1577
1577
|
} catch (o) {
|
1578
|
-
return e.pure && (e.state = he, e.owned && e.owned.forEach(Ge), e.owned = null), e.updatedAt = r + 1,
|
1578
|
+
return e.pure && (e.state = he, e.owned && e.owned.forEach(Ge), e.owned = null), e.updatedAt = r + 1, br(o);
|
1579
1579
|
} finally {
|
1580
1580
|
x = i, I = s;
|
1581
1581
|
}
|
@@ -1620,7 +1620,7 @@ function ae(e, t) {
|
|
1620
1620
|
const n = e();
|
1621
1621
|
return pi(r), n;
|
1622
1622
|
} catch (n) {
|
1623
|
-
r || (de = null), J = null,
|
1623
|
+
r || (de = null), J = null, br(n);
|
1624
1624
|
}
|
1625
1625
|
}
|
1626
1626
|
function pi(e) {
|
@@ -1684,7 +1684,7 @@ function ft(e) {
|
|
1684
1684
|
cause: e
|
1685
1685
|
});
|
1686
1686
|
}
|
1687
|
-
function
|
1687
|
+
function br(e, t = I) {
|
1688
1688
|
throw ft(e);
|
1689
1689
|
}
|
1690
1690
|
function rr(e) {
|
@@ -2177,11 +2177,11 @@ function Vi(e, t, r = {}) {
|
|
2177
2177
|
let i, o;
|
2178
2178
|
for (i = 0, o = s.length; i < o; i++) {
|
2179
2179
|
const a = s[i];
|
2180
|
-
!a || a === "undefined" || t[a] || (
|
2180
|
+
!a || a === "undefined" || t[a] || (Mr(e, a, !1), delete r[a]);
|
2181
2181
|
}
|
2182
2182
|
for (i = 0, o = n.length; i < o; i++) {
|
2183
2183
|
const a = n[i], c = !!t[a];
|
2184
|
-
!a || a === "undefined" || r[a] === c || !c || (
|
2184
|
+
!a || a === "undefined" || r[a] === c || !c || (Mr(e, a, !0), r[a] = c);
|
2185
2185
|
}
|
2186
2186
|
return r;
|
2187
2187
|
}
|
@@ -2213,23 +2213,23 @@ function qi(e, t, r, n, s = {}, i = !1) {
|
|
2213
2213
|
for (const o in s)
|
2214
2214
|
if (!(o in t)) {
|
2215
2215
|
if (o === "children") continue;
|
2216
|
-
s[o] =
|
2216
|
+
s[o] = Lr(e, o, null, s[o], r, i, t);
|
2217
2217
|
}
|
2218
2218
|
for (const o in t) {
|
2219
2219
|
if (o === "children")
|
2220
2220
|
continue;
|
2221
2221
|
const a = t[o];
|
2222
|
-
s[o] =
|
2222
|
+
s[o] = Lr(e, o, a, s[o], r, i, t);
|
2223
2223
|
}
|
2224
2224
|
}
|
2225
2225
|
function Ji(e) {
|
2226
2226
|
return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
|
2227
2227
|
}
|
2228
|
-
function
|
2228
|
+
function Mr(e, t, r) {
|
2229
2229
|
const n = t.trim().split(/\s+/);
|
2230
2230
|
for (let s = 0, i = n.length; s < i; s++) e.classList.toggle(n[s], r);
|
2231
2231
|
}
|
2232
|
-
function
|
2232
|
+
function Lr(e, t, r, n, s, i, o) {
|
2233
2233
|
let a, c, d, u, l;
|
2234
2234
|
if (t === "style") return ji(e, r, n);
|
2235
2235
|
if (t === "classList") return Vi(e, r, n);
|
@@ -2322,7 +2322,7 @@ function qe(e, t, r, n, s) {
|
|
2322
2322
|
return Te(() => r = qe(e, a, r, n, !0)), () => r;
|
2323
2323
|
if (a.length === 0) {
|
2324
2324
|
if (r = ke(e, r, n), o) return r;
|
2325
|
-
} else c ? r.length === 0 ?
|
2325
|
+
} else c ? r.length === 0 ? Ur(e, a, n) : Mi(e, r, a) : (r && ke(e), Ur(e, a));
|
2326
2326
|
r = a;
|
2327
2327
|
} else if (t.nodeType) {
|
2328
2328
|
if (Array.isArray(r)) {
|
@@ -2355,7 +2355,7 @@ function or(e, t, r, n) {
|
|
2355
2355
|
}
|
2356
2356
|
return s;
|
2357
2357
|
}
|
2358
|
-
function
|
2358
|
+
function Ur(e, t, r = null) {
|
2359
2359
|
for (let n = 0, s = t.length; n < s; n++) e.insertBefore(t[n], r);
|
2360
2360
|
}
|
2361
2361
|
function ke(e, t, r, n) {
|
@@ -2488,7 +2488,7 @@ function xe(e, t) {
|
|
2488
2488
|
function ht(e, t) {
|
2489
2489
|
return e.indexOf(t) !== -1;
|
2490
2490
|
}
|
2491
|
-
function
|
2491
|
+
function Fr(e, t) {
|
2492
2492
|
for (let r = 0; r < e.length; r++) {
|
2493
2493
|
const n = e[r];
|
2494
2494
|
if (t(n))
|
@@ -2508,7 +2508,7 @@ var ta = class {
|
|
2508
2508
|
findByName(e) {
|
2509
2509
|
return this.transfomers[e];
|
2510
2510
|
}
|
2511
|
-
}, ra = (e) => Object.prototype.toString.call(e).slice(8, -1), Pn = (e) => typeof e > "u", na = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, cr = (e) => Je(e) && Object.keys(e).length === 0, we = (e) => Array.isArray(e), sa = (e) => typeof e == "string", ia = (e) => typeof e == "number" && !isNaN(e), aa = (e) => typeof e == "boolean", oa = (e) => e instanceof RegExp, ze = (e) => e instanceof Map, Qe = (e) => e instanceof Set, xn = (e) => ra(e) === "Symbol", ca = (e) => e instanceof Date && !isNaN(e.valueOf()), la = (e) => e instanceof Error,
|
2511
|
+
}, ra = (e) => Object.prototype.toString.call(e).slice(8, -1), Pn = (e) => typeof e > "u", na = (e) => e === null, Je = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, cr = (e) => Je(e) && Object.keys(e).length === 0, we = (e) => Array.isArray(e), sa = (e) => typeof e == "string", ia = (e) => typeof e == "number" && !isNaN(e), aa = (e) => typeof e == "boolean", oa = (e) => e instanceof RegExp, ze = (e) => e instanceof Map, Qe = (e) => e instanceof Set, xn = (e) => ra(e) === "Symbol", ca = (e) => e instanceof Date && !isNaN(e.valueOf()), la = (e) => e instanceof Error, Kr = (e) => typeof e == "number" && isNaN(e), ua = (e) => aa(e) || na(e) || Pn(e) || ia(e) || sa(e) || xn(e), da = (e) => typeof e == "bigint", fa = (e) => e === 1 / 0 || e === -1 / 0, ha = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ma = (e) => e instanceof URL, $n = (e) => e.replace(/\./g, "\\."), Kt = (e) => e.map(String).map($n).join("."), Fe = (e) => {
|
2512
2512
|
const t = [];
|
2513
2513
|
let r = "";
|
2514
2514
|
for (let s = 0; s < e.length; s++) {
|
@@ -2566,7 +2566,7 @@ var Dn = [
|
|
2566
2566
|
(e) => new Set(e)
|
2567
2567
|
),
|
2568
2568
|
ne(ze, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
2569
|
-
ne((e) =>
|
2569
|
+
ne((e) => Kr(e) || fa(e), "number", (e) => Kr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
2570
2570
|
ne((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
2571
2571
|
ne(ma, "URL", (e) => e.toString(), (e) => new URL(e))
|
2572
2572
|
];
|
@@ -2620,14 +2620,14 @@ var Fn = xt(Un, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
2620
2620
|
if (!n)
|
2621
2621
|
throw new Error("Trying to deserialize unknown custom value");
|
2622
2622
|
return n.deserialize(e);
|
2623
|
-
}), pa = [Fn, Mn, Kn, Ln],
|
2624
|
-
const r =
|
2623
|
+
}), pa = [Fn, Mn, Kn, Ln], Hr = (e, t) => {
|
2624
|
+
const r = Fr(pa, (s) => s.isApplicable(e, t));
|
2625
2625
|
if (r)
|
2626
2626
|
return {
|
2627
2627
|
value: r.transform(e, t),
|
2628
2628
|
type: r.annotation(e, t)
|
2629
2629
|
};
|
2630
|
-
const n =
|
2630
|
+
const n = Fr(Dn, (s) => s.isApplicable(e, t));
|
2631
2631
|
if (n)
|
2632
2632
|
return {
|
2633
2633
|
value: n.transform(e, t),
|
@@ -2802,7 +2802,7 @@ var Vn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
2802
2802
|
} : h;
|
2803
2803
|
}
|
2804
2804
|
if (!Ea(e, r)) {
|
2805
|
-
const h =
|
2805
|
+
const h = Hr(e, r), m = h ? {
|
2806
2806
|
transformedValue: h.value,
|
2807
2807
|
annotations: [h.type]
|
2808
2808
|
} : {
|
@@ -2814,7 +2814,7 @@ var Vn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
2814
2814
|
return {
|
2815
2815
|
transformedValue: null
|
2816
2816
|
};
|
2817
|
-
const c =
|
2817
|
+
const c = Hr(e, r), d = c?.value ?? e, u = we(d) ? [] : {}, l = {};
|
2818
2818
|
xe(d, (h, m) => {
|
2819
2819
|
if (m === "__proto__" || m === "constructor" || m === "prototype")
|
2820
2820
|
throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
|
@@ -2835,7 +2835,7 @@ var Vn = (e, t, r, n, s = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
2835
2835
|
function jn(e) {
|
2836
2836
|
return Object.prototype.toString.call(e).slice(8, -1);
|
2837
2837
|
}
|
2838
|
-
function
|
2838
|
+
function Br(e) {
|
2839
2839
|
return jn(e) === "Array";
|
2840
2840
|
}
|
2841
2841
|
function Aa(e) {
|
@@ -2854,13 +2854,13 @@ function Ia(e, t, r, n, s) {
|
|
2854
2854
|
});
|
2855
2855
|
}
|
2856
2856
|
function dr(e, t = {}) {
|
2857
|
-
if (
|
2857
|
+
if (Br(e))
|
2858
2858
|
return e.map((s) => dr(s, t));
|
2859
2859
|
if (!Aa(e))
|
2860
2860
|
return e;
|
2861
2861
|
const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
|
2862
2862
|
return [...r, ...n].reduce((s, i) => {
|
2863
|
-
if (
|
2863
|
+
if (Br(t.props) && !t.props.includes(i))
|
2864
2864
|
return s;
|
2865
2865
|
const o = e[i], a = dr(o, t);
|
2866
2866
|
return Ia(s, i, a, e, t.nonenumerable), s;
|
@@ -3084,7 +3084,7 @@ var _u = (e, t = !1) => {
|
|
3084
3084
|
const t = Li(() => {
|
3085
3085
|
const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [o] = this.#u, [a] = this.#f, [c] = this.#e;
|
3086
3086
|
let d;
|
3087
|
-
return this.#d ? d = this.#d : (d = Ii(() => import("./LNWAZHJI.
|
3087
|
+
return this.#d ? d = this.#d : (d = Ii(() => import("./LNWAZHJI.C9XhDaDp.js")), this.#d = d), Ca(this.#o, this.#a), Ei(d, Ti({
|
3088
3088
|
get queryFlavor() {
|
3089
3089
|
return r.#r;
|
3090
3090
|
},
|
@@ -3593,7 +3593,7 @@ const Xa = (e, t, r, n, s) => {
|
|
3593
3593
|
if (t)
|
3594
3594
|
return new Set(t);
|
3595
3595
|
};
|
3596
|
-
function
|
3596
|
+
function wr(e) {
|
3597
3597
|
return Ye(e) && typeof e.kty == "string";
|
3598
3598
|
}
|
3599
3599
|
function eo(e) {
|
@@ -3606,7 +3606,7 @@ function ro(e) {
|
|
3606
3606
|
return e.kty === "oct" && typeof e.k == "string";
|
3607
3607
|
}
|
3608
3608
|
let be;
|
3609
|
-
const
|
3609
|
+
const Vr = async (e, t, r, n = !1) => {
|
3610
3610
|
be || (be = /* @__PURE__ */ new WeakMap());
|
3611
3611
|
let s = be.get(e);
|
3612
3612
|
if (s != null && s[r])
|
@@ -3713,10 +3713,10 @@ const jr = async (e, t, r, n = !1) => {
|
|
3713
3713
|
throw n;
|
3714
3714
|
}
|
3715
3715
|
let r = e.export({ format: "jwk" });
|
3716
|
-
return
|
3716
|
+
return Vr(e, r, t);
|
3717
3717
|
}
|
3718
|
-
if (
|
3719
|
-
return e.k ? He(e.k) :
|
3718
|
+
if (wr(e))
|
3719
|
+
return e.k ? He(e.k) : Vr(e, e, t, !0);
|
3720
3720
|
throw new Error("unreachable");
|
3721
3721
|
}, Ne = (e) => e?.[Symbol.toStringTag], hr = (e, t, r) => {
|
3722
3722
|
var n, s;
|
@@ -3764,7 +3764,7 @@ const jr = async (e, t, r, n = !1) => {
|
|
3764
3764
|
return !0;
|
3765
3765
|
}, io = (e, t, r) => {
|
3766
3766
|
if (!(t instanceof Uint8Array)) {
|
3767
|
-
if (
|
3767
|
+
if (wr(t)) {
|
3768
3768
|
if (ro(t) && hr(e, t, r))
|
3769
3769
|
return;
|
3770
3770
|
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');
|
@@ -3775,7 +3775,7 @@ const jr = async (e, t, r, n = !1) => {
|
|
3775
3775
|
throw new TypeError(`${Ne(t)} instances for symmetric algorithms must be of type "secret"`);
|
3776
3776
|
}
|
3777
3777
|
}, ao = (e, t, r) => {
|
3778
|
-
if (
|
3778
|
+
if (wr(t))
|
3779
3779
|
switch (r) {
|
3780
3780
|
case "decrypt":
|
3781
3781
|
case "sign":
|
@@ -3923,7 +3923,7 @@ async function ho(e, t, r) {
|
|
3923
3923
|
const a = await fo({ payload: s, protected: n, signature: i }, t, r), c = { payload: a.payload, protectedHeader: a.protectedHeader };
|
3924
3924
|
return typeof t == "function" ? { ...c, key: a.key } : c;
|
3925
3925
|
}
|
3926
|
-
const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60,
|
3926
|
+
const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60, vr = rs * 24, yo = vr * 7, po = vr * 365.25, go = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, jr = (e) => {
|
3927
3927
|
const t = go.exec(e);
|
3928
3928
|
if (!t || t[4] && t[1])
|
3929
3929
|
throw new TypeError("Invalid time period format");
|
@@ -3954,7 +3954,7 @@ const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60, Er = rs
|
|
3954
3954
|
case "day":
|
3955
3955
|
case "days":
|
3956
3956
|
case "d":
|
3957
|
-
s = Math.round(r *
|
3957
|
+
s = Math.round(r * vr);
|
3958
3958
|
break;
|
3959
3959
|
case "week":
|
3960
3960
|
case "weeks":
|
@@ -3966,7 +3966,7 @@ const mo = (e) => Math.floor(e.getTime() / 1e3), ts = 60, rs = ts * 60, Er = rs
|
|
3966
3966
|
break;
|
3967
3967
|
}
|
3968
3968
|
return t[1] === "-" || t[4] === "ago" ? -s : s;
|
3969
|
-
},
|
3969
|
+
}, Wr = (e) => e.toLowerCase().replace(/^application\//, ""), bo = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
|
3970
3970
|
function wo(e, t, r = {}) {
|
3971
3971
|
let n;
|
3972
3972
|
try {
|
@@ -3976,7 +3976,7 @@ function wo(e, t, r = {}) {
|
|
3976
3976
|
if (!Ye(n))
|
3977
3977
|
throw new se("JWT Claims Set must be a top-level JSON object");
|
3978
3978
|
const { typ: s } = r;
|
3979
|
-
if (s && (typeof e.typ != "string" ||
|
3979
|
+
if (s && (typeof e.typ != "string" || Wr(e.typ) !== Wr(s)))
|
3980
3980
|
throw new ee('unexpected "typ" JWT header value', n, "typ", "check_failed");
|
3981
3981
|
const { requiredClaims: i = [], issuer: o, subject: a, audience: c, maxTokenAge: d } = r, u = [...i];
|
3982
3982
|
d !== void 0 && u.push("iat"), c !== void 0 && u.push("aud"), a !== void 0 && u.push("sub"), o !== void 0 && u.push("iss");
|
@@ -3992,7 +3992,7 @@ function wo(e, t, r = {}) {
|
|
3992
3992
|
let l;
|
3993
3993
|
switch (typeof r.clockTolerance) {
|
3994
3994
|
case "string":
|
3995
|
-
l =
|
3995
|
+
l = jr(r.clockTolerance);
|
3996
3996
|
break;
|
3997
3997
|
case "number":
|
3998
3998
|
l = r.clockTolerance;
|
@@ -4019,7 +4019,7 @@ function wo(e, t, r = {}) {
|
|
4019
4019
|
throw new fr('"exp" claim timestamp check failed', n, "exp", "check_failed");
|
4020
4020
|
}
|
4021
4021
|
if (d) {
|
4022
|
-
const m = h - n.iat, p = typeof d == "number" ? d :
|
4022
|
+
const m = h - n.iat, p = typeof d == "number" ? d : jr(d);
|
4023
4023
|
if (m - l > p)
|
4024
4024
|
throw new fr('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
|
4025
4025
|
if (m < 0 - l)
|
@@ -4092,26 +4092,26 @@ function Io() {
|
|
4092
4092
|
}
|
4093
4093
|
return Bt(Ao);
|
4094
4094
|
}
|
4095
|
-
const ko = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
4096
|
-
function
|
4095
|
+
const ko = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Gr = { randomUUID: ko };
|
4096
|
+
function qr(e, t, r) {
|
4097
4097
|
var n;
|
4098
|
-
if (
|
4099
|
-
return
|
4098
|
+
if (Gr.randomUUID && !e)
|
4099
|
+
return Gr.randomUUID();
|
4100
4100
|
e = e || {};
|
4101
4101
|
const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Io();
|
4102
4102
|
if (s.length < 16)
|
4103
4103
|
throw new Error("Random bytes length must be >= 16");
|
4104
4104
|
return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, To(s);
|
4105
4105
|
}
|
4106
|
-
const
|
4106
|
+
const Jr = globalThis.crypto, Oo = (e) => `${qr()}${qr()}`.slice(0, e), Ro = (e) => btoa(
|
4107
4107
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
4108
4108
|
);
|
4109
4109
|
async function _o(e) {
|
4110
|
-
if (!
|
4110
|
+
if (!Jr.subtle)
|
4111
4111
|
throw new Error(
|
4112
4112
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
4113
4113
|
);
|
4114
|
-
const t = new TextEncoder().encode(e), r = await
|
4114
|
+
const t = new TextEncoder().encode(e), r = await Jr.subtle.digest("SHA-256", t);
|
4115
4115
|
return Ro(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
4116
4116
|
}
|
4117
4117
|
async function Co(e) {
|
@@ -4149,7 +4149,7 @@ function It(e) {
|
|
4149
4149
|
o[a] = s.charCodeAt(a);
|
4150
4150
|
return i;
|
4151
4151
|
}
|
4152
|
-
function
|
4152
|
+
function Er() {
|
4153
4153
|
return xo.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
|
4154
4154
|
}
|
4155
4155
|
const xo = {
|
@@ -4302,7 +4302,7 @@ function os(e) {
|
|
4302
4302
|
async function Lo(e) {
|
4303
4303
|
!e.optionsJSON && e.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
|
4304
4304
|
const { optionsJSON: t, useAutoRegister: r = !1 } = e;
|
4305
|
-
if (!
|
4305
|
+
if (!Er())
|
4306
4306
|
throw new Error("WebAuthn is not supported in this browser");
|
4307
4307
|
const n = {
|
4308
4308
|
...t,
|
@@ -4368,7 +4368,7 @@ function jt(e, t) {
|
|
4368
4368
|
`, t);
|
4369
4369
|
}
|
4370
4370
|
function Uo() {
|
4371
|
-
if (!
|
4371
|
+
if (!Er())
|
4372
4372
|
return Wt.stubThis(new Promise((t) => t(!1)));
|
4373
4373
|
const e = globalThis.PublicKeyCredential;
|
4374
4374
|
return e?.isConditionalMediationAvailable === void 0 ? Wt.stubThis(new Promise((t) => t(!1))) : Wt.stubThis(e.isConditionalMediationAvailable());
|
@@ -4420,7 +4420,7 @@ function Fo({ error: e, options: t }) {
|
|
4420
4420
|
async function Ko(e) {
|
4421
4421
|
!e.optionsJSON && e.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
|
4422
4422
|
const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: n = !0 } = e;
|
4423
|
-
if (!
|
4423
|
+
if (!Er())
|
4424
4424
|
throw new Error("WebAuthn is not supported in this browser");
|
4425
4425
|
let s;
|
4426
4426
|
t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(ss));
|
@@ -4464,23 +4464,23 @@ async function Ko(e) {
|
|
4464
4464
|
function cs(e, t) {
|
4465
4465
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
4466
4466
|
}
|
4467
|
-
const
|
4467
|
+
const zr = (e, t) => {
|
4468
4468
|
const r = JSON.stringify(
|
4469
4469
|
typeof t == "function" ? t() : t
|
4470
4470
|
);
|
4471
4471
|
window.localStorage.setItem(e, r), cs(e, r);
|
4472
4472
|
}, Ho = (e) => {
|
4473
4473
|
window.localStorage.removeItem(e), cs(e, null);
|
4474
|
-
},
|
4474
|
+
}, Qr = (e) => window.localStorage.getItem(e), Bo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
4475
4475
|
function ot({
|
4476
4476
|
key: e,
|
4477
4477
|
initialValue: t
|
4478
4478
|
}) {
|
4479
|
-
const r = xs(Bo, () =>
|
4479
|
+
const r = xs(Bo, () => Qr(e)), n = ue(
|
4480
4480
|
(o) => {
|
4481
4481
|
try {
|
4482
4482
|
const a = typeof o == "function" ? o(JSON.parse(r)) : o;
|
4483
|
-
a == null ? Ho(e) :
|
4483
|
+
a == null ? Ho(e) : zr(e, a);
|
4484
4484
|
} catch (a) {
|
4485
4485
|
console.warn(a);
|
4486
4486
|
}
|
@@ -4493,7 +4493,7 @@ function ot({
|
|
4493
4493
|
}, [n]);
|
4494
4494
|
return Z(() => {
|
4495
4495
|
try {
|
4496
|
-
|
4496
|
+
Qr(e) === null && typeof t < "u" && zr(e, t);
|
4497
4497
|
} catch (o) {
|
4498
4498
|
console.warn(o);
|
4499
4499
|
}
|
@@ -4515,10 +4515,10 @@ function Wo() {
|
|
4515
4515
|
}
|
4516
4516
|
return Gt(jo);
|
4517
4517
|
}
|
4518
|
-
const Go = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
4518
|
+
const Go = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yr = { randomUUID: Go };
|
4519
4519
|
function qt(e, t, r) {
|
4520
|
-
if (
|
4521
|
-
return
|
4520
|
+
if (Yr.randomUUID && !e)
|
4521
|
+
return Yr.randomUUID();
|
4522
4522
|
e = e || {};
|
4523
4523
|
const n = e.random ?? e.rng?.() ?? Wo();
|
4524
4524
|
if (n.length < 16)
|
@@ -4900,7 +4900,7 @@ const Ce = () => {
|
|
4900
4900
|
logoutReason: "",
|
4901
4901
|
authenticationType: ""
|
4902
4902
|
}), sc = () => ({
|
4903
|
-
...
|
4903
|
+
...pr(ms)
|
4904
4904
|
}), ic = (e) => ue(
|
4905
4905
|
(...t) => {
|
4906
4906
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
@@ -4930,7 +4930,7 @@ const Ce = () => {
|
|
4930
4930
|
} : e, cc = ({ children: e }) => {
|
4931
4931
|
const t = sc();
|
4932
4932
|
return /* @__PURE__ */ y(ns.Provider, { value: t, children: e });
|
4933
|
-
},
|
4933
|
+
}, Xr = ({
|
4934
4934
|
children: e,
|
4935
4935
|
sessionExpiration: t,
|
4936
4936
|
clientId: r,
|
@@ -5025,13 +5025,13 @@ const Ce = () => {
|
|
5025
5025
|
a({ type: Le, payload: { isLoading: !0 } }), z();
|
5026
5026
|
const A = qt();
|
5027
5027
|
O(A), c("login: Logging in with password");
|
5028
|
-
const { code_verifier: ye, code_challenge: pe } = await Co(),
|
5028
|
+
const { code_verifier: ye, code_challenge: pe } = await Co(), _r = await tc({
|
5029
5029
|
endpoint: i,
|
5030
5030
|
nonce: A,
|
5031
5031
|
clientId: r,
|
5032
5032
|
code_challenge: pe
|
5033
5033
|
});
|
5034
|
-
if (
|
5034
|
+
if (_r.status) {
|
5035
5035
|
const Ie = await ec({
|
5036
5036
|
endpoint: i,
|
5037
5037
|
username: T,
|
@@ -5040,7 +5040,7 @@ const Ce = () => {
|
|
5040
5040
|
sessionExpiration: t,
|
5041
5041
|
nonce: A,
|
5042
5042
|
type: Ke.CODE,
|
5043
|
-
code:
|
5043
|
+
code: _r.data,
|
5044
5044
|
code_verifier: ye,
|
5045
5045
|
domain: n,
|
5046
5046
|
ua: navigator.userAgent
|
@@ -5228,13 +5228,13 @@ try {
|
|
5228
5228
|
} catch {
|
5229
5229
|
}
|
5230
5230
|
const ys = () => {
|
5231
|
-
const e =
|
5231
|
+
const e = pr(ns);
|
5232
5232
|
if (!e)
|
5233
5233
|
throw new Error("useAuth must be used within an AuthHookProvider");
|
5234
5234
|
return e;
|
5235
|
-
}, Vu = "I'm having trouble right now. Please try again later.", ju = "action-search", Wu = "action-sort", Gu = "action-toggle-prompt", qu = "action-reset-prompt", ps = "sassy-saint-", Ju = "search", zu = "sort", Qu = "sort-timestamp", Yu = "sort-token-usage", Xu = "private-disclosure", Zu = "reasoning-disclosure", gs = "service-worker",
|
5235
|
+
}, Vu = "I'm having trouble right now. Please try again later.", ju = "action-search", Wu = "action-sort", Gu = "action-toggle-prompt", qu = "action-reset-prompt", ps = "sassy-saint-", Ju = "search", zu = "sort", Qu = "sort-timestamp", Yu = "sort-token-usage", Xu = "private-disclosure", Zu = "reasoning-disclosure", gs = "service-worker", Zr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", ed = 10, td = 30, rd = "av-prompt", nd = "av-prompt-editable", sd = "size-5 sm:size-4", id = 30, ad = 15, od = 130, cd = 16, ld = 24, ud = 76;
|
5236
5236
|
let zt = null;
|
5237
|
-
function
|
5237
|
+
function Sr() {
|
5238
5238
|
return "serviceWorker" in navigator;
|
5239
5239
|
}
|
5240
5240
|
function lc() {
|
@@ -5252,7 +5252,7 @@ function uc(e) {
|
|
5252
5252
|
async function bs() {
|
5253
5253
|
if (!lc())
|
5254
5254
|
return !1;
|
5255
|
-
if (!
|
5255
|
+
if (!Sr())
|
5256
5256
|
return console.warn("[SW] Service workers not supported"), !1;
|
5257
5257
|
try {
|
5258
5258
|
return zt = await navigator.serviceWorker.register("/sw.js", {
|
@@ -5272,7 +5272,7 @@ async function bs() {
|
|
5272
5272
|
}
|
5273
5273
|
}
|
5274
5274
|
async function dc() {
|
5275
|
-
if (!
|
5275
|
+
if (!Sr())
|
5276
5276
|
return !1;
|
5277
5277
|
try {
|
5278
5278
|
const e = await navigator.serviceWorker.getRegistration();
|
@@ -5286,7 +5286,7 @@ async function dd(e) {
|
|
5286
5286
|
await bs();
|
5287
5287
|
else {
|
5288
5288
|
try {
|
5289
|
-
|
5289
|
+
Sr() && await fc();
|
5290
5290
|
} catch (t) {
|
5291
5291
|
console.warn("[SW] Failed to invalidate cache:", t);
|
5292
5292
|
}
|
@@ -5316,7 +5316,7 @@ async function fc() {
|
|
5316
5316
|
console.warn("[SW] Failed to invalidate cache:", e);
|
5317
5317
|
}
|
5318
5318
|
}
|
5319
|
-
const
|
5319
|
+
const en = (e) => Number.isFinite(e) ? e : 0;
|
5320
5320
|
function hc(e) {
|
5321
5321
|
return {
|
5322
5322
|
days: Math.trunc(e / 864e5),
|
@@ -5324,8 +5324,8 @@ function hc(e) {
|
|
5324
5324
|
minutes: Math.trunc(e / 6e4 % 60),
|
5325
5325
|
seconds: Math.trunc(e / 1e3 % 60),
|
5326
5326
|
milliseconds: Math.trunc(e % 1e3),
|
5327
|
-
microseconds: Math.trunc(
|
5328
|
-
nanoseconds: Math.trunc(
|
5327
|
+
microseconds: Math.trunc(en(e * 1e3) % 1e3),
|
5328
|
+
nanoseconds: Math.trunc(en(e * 1e6) % 1e3)
|
5329
5329
|
};
|
5330
5330
|
}
|
5331
5331
|
function mc(e) {
|
@@ -5396,7 +5396,7 @@ function vc(e, t) {
|
|
5396
5396
|
const d = t.colonNotation ? ":" : " ";
|
5397
5397
|
return typeof t.unitCount == "number" && (s = s.slice(0, Math.max(t.unitCount, 1))), n + s.join(d);
|
5398
5398
|
}
|
5399
|
-
const ws = process.env.NODE_ENV === "production",
|
5399
|
+
const ws = process.env.NODE_ENV === "production", Tr = !ws, vs = Tr ? "gizmette.local.com" : "gizmette.com", Ar = (e, t) => {
|
5400
5400
|
const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", n = 0 | Math.abs(e), s = 0 | Math.abs(e) * 60 % 60, i = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
|
5401
5401
|
return {
|
5402
5402
|
dir: r,
|
@@ -5407,12 +5407,12 @@ const ws = process.env.NODE_ENV === "production", Ar = !ws, vs = Ar ? "gizmette.
|
|
5407
5407
|
}, Ec = (e) => {
|
5408
5408
|
if (!e && e !== 0)
|
5409
5409
|
return "N/A";
|
5410
|
-
const t =
|
5410
|
+
const t = Ar(e, !1);
|
5411
5411
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
5412
5412
|
}, Sc = (e) => {
|
5413
5413
|
if (!e && e !== 0)
|
5414
5414
|
return "N/A";
|
5415
|
-
const t =
|
5415
|
+
const t = Ar(e, !0);
|
5416
5416
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
5417
5417
|
}, Tc = async () => {
|
5418
5418
|
const e = {
|
@@ -5556,7 +5556,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5556
5556
|
theme: c,
|
5557
5557
|
transition: d,
|
5558
5558
|
icon: u
|
5559
|
-
}), fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: vs, convertCamelCaseToReadable: $c, convertDDToDMS:
|
5559
|
+
}), fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: vs, convertCamelCaseToReadable: $c, convertDDToDMS: Ar, convertLatitudeToDMS: Ec, convertLongitudeToDMS: Sc, debounce: Pc, durationFormatter: Cc, extractAverage: Oc, getCurrentGeoLocation: Tc, getMainPaddingClass: Ss, getMessageContaintWrapperClass: Es, isDev: Tr, isLastMessageFromRole: Rc, isProbablyMobile: As, isProbablyiPhone: xc, isProd: ws, isTauri: Ts, numberFormatter: _c, obfuscate: Ac, pluralize: Nc, renderDataAsList: kc, toastOptions: Dc, unObfuscate: Ic }, Symbol.toStringTag, { value: "Module" })), tn = "av-button", Mt = "icon", Ir = "button", mr = "link", Mc = ({
|
5560
5560
|
type: e,
|
5561
5561
|
size: t,
|
5562
5562
|
labelRight: r,
|
@@ -5566,7 +5566,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5566
5566
|
}) => {
|
5567
5567
|
const o = "max-h-8 py-0 px-2", a = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
5568
5568
|
switch (e) {
|
5569
|
-
case
|
5569
|
+
case Ir:
|
5570
5570
|
case mr:
|
5571
5571
|
return g({
|
5572
5572
|
[o]: t === "small",
|
@@ -5600,7 +5600,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5600
5600
|
}) => {
|
5601
5601
|
const s = "text-sm font-medium", i = "text-base font-medium", o = "text-lg font-medium";
|
5602
5602
|
switch (e) {
|
5603
|
-
case
|
5603
|
+
case Ir:
|
5604
5604
|
case mr:
|
5605
5605
|
return g({
|
5606
5606
|
"text-center": e === mr,
|
@@ -5849,8 +5849,8 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5849
5849
|
align: m,
|
5850
5850
|
radius: p,
|
5851
5851
|
animated: b
|
5852
|
-
}) => (f || (f = "primary"), r ? g(
|
5853
|
-
|
5852
|
+
}) => (f || (f = "primary"), r ? g(tn, t) : g(
|
5853
|
+
tn,
|
5854
5854
|
Uc({
|
5855
5855
|
mode: n,
|
5856
5856
|
variant: f,
|
@@ -5882,7 +5882,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5882
5882
|
t
|
5883
5883
|
)), qc = (e, t, r) => {
|
5884
5884
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
5885
|
-
},
|
5885
|
+
}, kr = fe.forwardRef((e, t) => {
|
5886
5886
|
const { onClick: r, noInternalClick: n = !1, ...s } = e;
|
5887
5887
|
return /* @__PURE__ */ y(
|
5888
5888
|
"button",
|
@@ -5895,7 +5895,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
5895
5895
|
}
|
5896
5896
|
);
|
5897
5897
|
});
|
5898
|
-
|
5898
|
+
kr.displayName = "BaseButton";
|
5899
5899
|
const ks = fe.forwardRef(
|
5900
5900
|
({
|
5901
5901
|
children: e,
|
@@ -5913,7 +5913,7 @@ const ks = fe.forwardRef(
|
|
5913
5913
|
...f
|
5914
5914
|
}, h) => {
|
5915
5915
|
const m = Is({
|
5916
|
-
type:
|
5916
|
+
type: Ir,
|
5917
5917
|
mode: r,
|
5918
5918
|
focusMode: n,
|
5919
5919
|
fullWidth: s,
|
@@ -5927,7 +5927,7 @@ const ks = fe.forwardRef(
|
|
5927
5927
|
radius: l
|
5928
5928
|
});
|
5929
5929
|
return /* @__PURE__ */ y(
|
5930
|
-
|
5930
|
+
kr,
|
5931
5931
|
{
|
5932
5932
|
ref: h,
|
5933
5933
|
className: m,
|
@@ -6051,7 +6051,7 @@ const ut = {
|
|
6051
6051
|
]), Z(() => () => {
|
6052
6052
|
A.current && clearTimeout(A.current);
|
6053
6053
|
}, []), /* @__PURE__ */ y(
|
6054
|
-
|
6054
|
+
kr,
|
6055
6055
|
{
|
6056
6056
|
ref: ye,
|
6057
6057
|
className: q,
|
@@ -6061,7 +6061,7 @@ const ut = {
|
|
6061
6061
|
...O,
|
6062
6062
|
children: /* @__PURE__ */ X("div", { className: R, children: [
|
6063
6063
|
/* @__PURE__ */ y(
|
6064
|
-
|
6064
|
+
rn,
|
6065
6065
|
{
|
6066
6066
|
label: h,
|
6067
6067
|
labelRef: E,
|
@@ -6072,7 +6072,7 @@ const ut = {
|
|
6072
6072
|
),
|
6073
6073
|
/* @__PURE__ */ y("span", { ref: me, className: z, children: e }),
|
6074
6074
|
/* @__PURE__ */ y(
|
6075
|
-
|
6075
|
+
rn,
|
6076
6076
|
{
|
6077
6077
|
label: f,
|
6078
6078
|
labelRef: v,
|
@@ -6085,7 +6085,7 @@ const ut = {
|
|
6085
6085
|
}
|
6086
6086
|
);
|
6087
6087
|
}
|
6088
|
-
),
|
6088
|
+
), rn = ({
|
6089
6089
|
labelRef: e,
|
6090
6090
|
labelClass: t,
|
6091
6091
|
label: r,
|
@@ -6281,7 +6281,7 @@ const Lt = ({
|
|
6281
6281
|
...c
|
6282
6282
|
}) => {
|
6283
6283
|
const d = g(i, n);
|
6284
|
-
return /* @__PURE__ */
|
6284
|
+
return /* @__PURE__ */ X(
|
6285
6285
|
"svg",
|
6286
6286
|
{
|
6287
6287
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -6297,16 +6297,16 @@ const Lt = ({
|
|
6297
6297
|
e
|
6298
6298
|
]
|
6299
6299
|
}
|
6300
|
-
)
|
6300
|
+
);
|
6301
6301
|
};
|
6302
6302
|
/*!
|
6303
|
-
@versini/ui-svgicon v4.2.
|
6303
|
+
@versini/ui-svgicon v4.2.1
|
6304
6304
|
© 2025 gizmette.com
|
6305
6305
|
*/
|
6306
6306
|
try {
|
6307
6307
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
6308
|
-
version: "4.2.
|
6309
|
-
buildTime: "
|
6308
|
+
version: "4.2.1",
|
6309
|
+
buildTime: "08/27/2025 08:27 AM EDT",
|
6310
6310
|
homepage: "https://github.com/aversini/ui-components",
|
6311
6311
|
license: "MIT"
|
6312
6312
|
});
|
@@ -6419,13 +6419,13 @@ const il = ({
|
|
6419
6419
|
}
|
6420
6420
|
);
|
6421
6421
|
/*!
|
6422
|
-
@versini/ui-icons v4.
|
6422
|
+
@versini/ui-icons v4.11.0
|
6423
6423
|
© 2025 gizmette.com
|
6424
6424
|
*/
|
6425
6425
|
try {
|
6426
6426
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
6427
|
-
version: "4.
|
6428
|
-
buildTime: "
|
6427
|
+
version: "4.11.0",
|
6428
|
+
buildTime: "08/27/2025 08:28 AM EDT",
|
6429
6429
|
homepage: "https://github.com/aversini/ui-components",
|
6430
6430
|
license: "MIT"
|
6431
6431
|
});
|
@@ -6598,7 +6598,7 @@ const dl = "av-flexgrid", dt = "av-flexgrid-item", Ot = 0.25, yr = fe.createCont
|
|
6598
6598
|
span: r,
|
6599
6599
|
...n
|
6600
6600
|
}) => {
|
6601
|
-
const { columnGap: s, rowGap: i } =
|
6601
|
+
const { columnGap: s, rowGap: i } = pr(yr), o = {
|
6602
6602
|
paddingLeft: s * Ot + "rem",
|
6603
6603
|
paddingTop: i * Ot + "rem"
|
6604
6604
|
}, a = hl({
|
@@ -6689,7 +6689,7 @@ const Rs = "SET_ANNOUNCEMENT", _s = "CLEAR_ANNOUNCEMENT", wl = {
|
|
6689
6689
|
t({
|
6690
6690
|
type: _s
|
6691
6691
|
}), typeof e == "function" && e();
|
6692
|
-
},
|
6692
|
+
}, nn = ({
|
6693
6693
|
children: e,
|
6694
6694
|
clearAnnouncementDelay: t,
|
6695
6695
|
clearAnnouncementTimeoutRef: r,
|
@@ -6715,13 +6715,13 @@ const Rs = "SET_ANNOUNCEMENT", _s = "CLEAR_ANNOUNCEMENT", wl = {
|
|
6715
6715
|
onAnnouncementClear: i,
|
6716
6716
|
dispatch: o
|
6717
6717
|
}) => {
|
6718
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
6718
|
+
clearTimeout(t.current), r ? t.current = setTimeout(nn, r, {
|
6719
6719
|
children: e,
|
6720
6720
|
clearAnnouncementDelay: n,
|
6721
6721
|
clearAnnouncementTimeoutRef: s,
|
6722
6722
|
onAnnouncementClear: i,
|
6723
6723
|
dispatch: o
|
6724
|
-
}) :
|
6724
|
+
}) : nn({
|
6725
6725
|
children: e,
|
6726
6726
|
clearAnnouncementDelay: n,
|
6727
6727
|
clearAnnouncementTimeoutRef: s,
|
@@ -6925,7 +6925,7 @@ const Tl = ({
|
|
6925
6925
|
helperText: p,
|
6926
6926
|
rightElement: b
|
6927
6927
|
};
|
6928
|
-
},
|
6928
|
+
}, Or = fe.forwardRef(
|
6929
6929
|
({
|
6930
6930
|
id: e,
|
6931
6931
|
name: t,
|
@@ -7030,7 +7030,7 @@ const Tl = ({
|
|
7030
7030
|
] });
|
7031
7031
|
}
|
7032
7032
|
);
|
7033
|
-
|
7033
|
+
Or.displayName = "TextInput";
|
7034
7034
|
function _l(e) {
|
7035
7035
|
return Rt(() => e.every((t) => t == null) ? () => {
|
7036
7036
|
} : (t) => {
|
@@ -7084,9 +7084,9 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, Ns = fe.forwardRef(
|
|
7084
7084
|
};
|
7085
7085
|
return Z(() => () => {
|
7086
7086
|
w.current && clearTimeout(w.current);
|
7087
|
-
}, []), /* @__PURE__ */ X(
|
7087
|
+
}, []), /* @__PURE__ */ X(on, { children: [
|
7088
7088
|
/* @__PURE__ */ y(
|
7089
|
-
|
7089
|
+
Or,
|
7090
7090
|
{
|
7091
7091
|
ref: S,
|
7092
7092
|
name: e,
|
@@ -7154,8 +7154,8 @@ const hd = "user", md = "assistant", yd = "data", Ps = "OpenAI", xl = "Anthropic
|
|
7154
7154
|
if (r.some((n) => e.startsWith(n)))
|
7155
7155
|
return t;
|
7156
7156
|
return null;
|
7157
|
-
}, vd = "timestamp", Ed = "tokenUsage", D = "Callisto", Wl = "ASK! ME! ANYTHING!", Gl = "Log in", ql = "Sign in with a Passkey", Sd = "Log out", Jl = "Password", Td = "Usage", Ad = "Profile", Id = "Settings", kd = "Chat history", Od = "About",
|
7158
|
-
Press Enter to send it or Shift+Enter for new line.`, Cd = `${
|
7157
|
+
}, vd = "timestamp", Ed = "tokenUsage", D = "Callisto", Wl = "ASK! ME! ANYTHING!", Gl = "Log in", ql = "Sign in with a Passkey", Sd = "Log out", Jl = "Password", Td = "Usage", Ad = "Profile", Id = "Settings", kd = "Chat history", Od = "About", Rr = "Type your message here.", Rd = Rr, _d = `${Rr}
|
7158
|
+
Press Enter to send it or Shift+Enter for new line.`, Cd = `${Rr}
|
7159
7159
|
Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "Review important details.", Pd = [
|
7160
7160
|
`Sometimes, ${D} just makes stuff up. ${M}`,
|
7161
7161
|
`${D} may invent facts on the fly. ${M}`,
|
@@ -7276,7 +7276,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7276
7276
|
/* @__PURE__ */ y("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ y(fl, { alignHorizontal: "center", children: /* @__PURE__ */ y(Ee, { span: 6, children: /* @__PURE__ */ X(sl, { mode: "dark", children: [
|
7277
7277
|
/* @__PURE__ */ y(Ee, { span: 12, className: "mt-7", children: i && /* @__PURE__ */ y("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: i }) }),
|
7278
7278
|
/* @__PURE__ */ y(Ee, { span: 12, children: /* @__PURE__ */ y(
|
7279
|
-
|
7279
|
+
Or,
|
7280
7280
|
{
|
7281
7281
|
className: "mt-7",
|
7282
7282
|
required: !0,
|
@@ -7340,7 +7340,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7340
7340
|
children: Gl
|
7341
7341
|
}
|
7342
7342
|
) }),
|
7343
|
-
!Ts() && /* @__PURE__ */ X(
|
7343
|
+
!Ts() && /* @__PURE__ */ X(on, { children: [
|
7344
7344
|
/* @__PURE__ */ y(Ee, { span: 12, children: /* @__PURE__ */ y("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
7345
7345
|
/* @__PURE__ */ y(Ee, { span: 12, children: /* @__PURE__ */ y(
|
7346
7346
|
kt,
|
@@ -7360,10 +7360,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7360
7360
|
]
|
7361
7361
|
}
|
7362
7362
|
);
|
7363
|
-
}, Yl = new URL(document.location.href).searchParams,
|
7363
|
+
}, Yl = new URL(document.location.href).searchParams, sn = !!Yl.get("debug") || !1, Xl = Ds(() => import(
|
7364
7364
|
/* webpackChunkName: "LazyApp" */
|
7365
|
-
"./App.
|
7366
|
-
).then((e) => e.App)), Zl = new si(),
|
7365
|
+
"./App.D2WHcogN.js"
|
7366
|
+
).then((e) => e.App)), Zl = new si(), an = ({
|
7367
7367
|
isComponent: e,
|
7368
7368
|
headerHeight: t
|
7369
7369
|
}) => {
|
@@ -7380,16 +7380,16 @@ Press Ctrl+Enter to send it or Enter for new line.`, Nd = "{{clipboard}}", M = "
|
|
7380
7380
|
e || bs().catch((n) => {
|
7381
7381
|
console.error("[SW] Failed to register service worker:", n);
|
7382
7382
|
});
|
7383
|
-
}, [e]),
|
7384
|
-
|
7383
|
+
}, [e]), Tr ? /* @__PURE__ */ y(
|
7384
|
+
Xr,
|
7385
7385
|
{
|
7386
|
-
clientId:
|
7386
|
+
clientId: Zr,
|
7387
7387
|
domain: r,
|
7388
|
-
debug:
|
7388
|
+
debug: sn,
|
7389
7389
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
7390
|
-
children: /* @__PURE__ */ y(
|
7390
|
+
children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t })
|
7391
7391
|
}
|
7392
|
-
) : /* @__PURE__ */ y(
|
7392
|
+
) : /* @__PURE__ */ y(Xr, { clientId: Zr, domain: r, debug: sn, children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t }) })), Hd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
|
7393
7393
|
eu,
|
7394
7394
|
{
|
7395
7395
|
isComponent: !0,
|
@@ -7515,7 +7515,7 @@ export {
|
|
7515
7515
|
We as onCleanup,
|
7516
7516
|
di as onMount,
|
7517
7517
|
D as pe,
|
7518
|
-
|
7518
|
+
Or as pe$1,
|
7519
7519
|
Gs as pendingThenable,
|
7520
7520
|
Nc as pluralize,
|
7521
7521
|
ul as r,
|