@versini/sassysaint 8.7.0 → 8.7.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/{App.pIdfwR3k.js → App.DzXI0pGu.js} +1614 -1603
- package/dist/chunks/{Chart.5ngL7CcZ.js → Chart.BOkqjBER.js} +1 -1
- package/dist/chunks/{ChatBubbleAssistant.CJ1RYznt.js → ChatBubbleAssistant.pudOgy2d.js} +6 -6
- package/dist/chunks/{J3FDRF32.DF03Wt30.js → J3FDRF32.DBAchxL4.js} +1 -1
- package/dist/chunks/{index.C3qqaF_C.js → index.B_lFLK0t.js} +1 -1
- package/dist/chunks/{index.BvtqCY2a.js → index.CcnCG-yf.js} +3 -3
- package/dist/chunks/{index.B4CMt0rn.js → index.CuJquMyi.js} +2 -2
- package/dist/chunks/{index.D_2kub8R.js → index.DLtYEoNn.js} +390 -373
- package/dist/chunks/{index.DkAzpg6w.js → index.OW0mX9-i.js} +1 -1
- package/dist/chunks/{index.DyQeh5xT.js → index.PFowj2Sl.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -13,7 +13,7 @@ var Qt = (e, t, r, n) => ({
|
|
13
13
|
});
|
14
14
|
import { jsx as y, jsxs as re, Fragment as hr } from "react/jsx-runtime";
|
15
15
|
import * as oe from "react";
|
16
|
-
import _e, { createContext as Di, useReducer as ys, useRef as
|
16
|
+
import _e, { createContext as Di, useReducer as ys, useRef as z, useCallback as ke, useEffect as we, useContext as ps, useSyncExternalStore as Li, useLayoutEffect as mr, useMemo as Rr, useState as Ie, useId as gs, lazy as Mi, Suspense as $i } from "react";
|
17
17
|
import b from "clsx";
|
18
18
|
var _r = class {
|
19
19
|
constructor() {
|
@@ -62,7 +62,7 @@ function Rn(e, t) {
|
|
62
62
|
if (n) {
|
63
63
|
if (t.queryHash !== gn(a, t.options))
|
64
64
|
return !1;
|
65
|
-
} else if (!
|
65
|
+
} else if (!Dt(t.queryKey, a))
|
66
66
|
return !1;
|
67
67
|
}
|
68
68
|
if (r !== "all") {
|
@@ -78,24 +78,24 @@ function _n(e, t) {
|
|
78
78
|
if (!t.options.mutationKey)
|
79
79
|
return !1;
|
80
80
|
if (r) {
|
81
|
-
if (
|
81
|
+
if (xt(t.options.mutationKey) !== xt(i))
|
82
82
|
return !1;
|
83
|
-
} else if (!
|
83
|
+
} else if (!Dt(t.options.mutationKey, i))
|
84
84
|
return !1;
|
85
85
|
}
|
86
86
|
return !(n && t.state.status !== n || s && !s(t));
|
87
87
|
}
|
88
88
|
function gn(e, t) {
|
89
|
-
return ((t == null ? void 0 : t.queryKeyHashFn) ||
|
89
|
+
return ((t == null ? void 0 : t.queryKeyHashFn) || xt)(e);
|
90
90
|
}
|
91
|
-
function
|
91
|
+
function xt(e) {
|
92
92
|
return JSON.stringify(
|
93
93
|
e,
|
94
94
|
(t, r) => en(r) ? Object.keys(r).sort().reduce((n, s) => (n[s] = r[s], n), {}) : r
|
95
95
|
);
|
96
96
|
}
|
97
|
-
function
|
98
|
-
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((r) => !
|
97
|
+
function Dt(e, t) {
|
98
|
+
return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? !Object.keys(t).some((r) => !Dt(e[r], t[r])) : !1;
|
99
99
|
}
|
100
100
|
function Zr(e, t) {
|
101
101
|
if (e === t)
|
@@ -124,15 +124,15 @@ function On(e) {
|
|
124
124
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
125
125
|
}
|
126
126
|
function en(e) {
|
127
|
-
if (!
|
127
|
+
if (!Nn(e))
|
128
128
|
return !1;
|
129
129
|
const t = e.constructor;
|
130
130
|
if (t === void 0)
|
131
131
|
return !0;
|
132
132
|
const r = t.prototype;
|
133
|
-
return !(!
|
133
|
+
return !(!Nn(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
134
134
|
}
|
135
|
-
function
|
135
|
+
function Nn(e) {
|
136
136
|
return Object.prototype.toString.call(e) === "[object Object]";
|
137
137
|
}
|
138
138
|
function Vi(e) {
|
@@ -245,7 +245,7 @@ var Fe, xe, ct, as, qi = (as = class extends _r {
|
|
245
245
|
isOnline() {
|
246
246
|
return f(this, lt);
|
247
247
|
}
|
248
|
-
}, lt = new WeakMap(), De = new WeakMap(), ut = new WeakMap(), os),
|
248
|
+
}, lt = new WeakMap(), De = new WeakMap(), ut = new WeakMap(), os), Lt = new Wi();
|
249
249
|
function Ji() {
|
250
250
|
let e, t;
|
251
251
|
const r = new Promise((s, i) => {
|
@@ -268,11 +268,11 @@ function Ji() {
|
|
268
268
|
}), t(s);
|
269
269
|
}, r;
|
270
270
|
}
|
271
|
-
function
|
271
|
+
function Yi(e) {
|
272
272
|
return Math.min(1e3 * 2 ** e, 3e4);
|
273
273
|
}
|
274
274
|
function Es(e) {
|
275
|
-
return (e ?? "online") === "online" ?
|
275
|
+
return (e ?? "online") === "online" ? Lt.isOnline() : !0;
|
276
276
|
}
|
277
277
|
var Ss = class extends Error {
|
278
278
|
constructor(e) {
|
@@ -291,7 +291,7 @@ function vs(e) {
|
|
291
291
|
t = !0;
|
292
292
|
}, c = () => {
|
293
293
|
t = !1;
|
294
|
-
}, l = () => ws.isFocused() && (e.networkMode === "always" ||
|
294
|
+
}, l = () => ws.isFocused() && (e.networkMode === "always" || Lt.isOnline()) && e.canRun(), d = () => Es(e.networkMode) && e.canRun(), u = (g) => {
|
295
295
|
var E;
|
296
296
|
n || (n = !0, (E = e.onSuccess) == null || E.call(e, g), s == null || s(), i.resolve(g));
|
297
297
|
}, h = (g) => {
|
@@ -319,12 +319,12 @@ function vs(e) {
|
|
319
319
|
var U;
|
320
320
|
if (n)
|
321
321
|
return;
|
322
|
-
const
|
322
|
+
const C = e.retry ?? (Or ? 0 : 3), v = e.retryDelay ?? Yi, N = typeof v == "function" ? v(r, O) : v, R = C === !0 || typeof C == "number" && r < C || typeof C == "function" && C(r, O);
|
323
323
|
if (t || !R) {
|
324
324
|
h(O);
|
325
325
|
return;
|
326
326
|
}
|
327
|
-
r++, (U = e.onFail) == null || U.call(e, r, O), Vi(
|
327
|
+
r++, (U = e.onFail) == null || U.call(e, r, O), Vi(N).then(() => l() ? void 0 : m()).then(() => {
|
328
328
|
t ? h(O) : p();
|
329
329
|
});
|
330
330
|
});
|
@@ -339,7 +339,7 @@ function vs(e) {
|
|
339
339
|
start: () => (d() ? p() : m().then(p), i)
|
340
340
|
};
|
341
341
|
}
|
342
|
-
function
|
342
|
+
function zi() {
|
343
343
|
let e = [], t = 0, r = (o) => {
|
344
344
|
o();
|
345
345
|
}, n = (o) => {
|
@@ -398,7 +398,7 @@ function Yi() {
|
|
398
398
|
}
|
399
399
|
};
|
400
400
|
}
|
401
|
-
var ee =
|
401
|
+
var ee = zi(), Ve, cs, Ts = (cs = class {
|
402
402
|
constructor() {
|
403
403
|
T(this, Ve);
|
404
404
|
}
|
@@ -776,7 +776,7 @@ var ye, us, ea = (us = class extends _r {
|
|
776
776
|
});
|
777
777
|
});
|
778
778
|
}
|
779
|
-
}, ye = new WeakMap(), us), pe, Z, je, ge,
|
779
|
+
}, ye = new WeakMap(), us), pe, Z, je, ge, Ce, ds, ta = (ds = class extends Ts {
|
780
780
|
constructor(t) {
|
781
781
|
super();
|
782
782
|
T(this, ge);
|
@@ -814,17 +814,17 @@ var ye, us, ea = (us = class extends _r {
|
|
814
814
|
this.execute(this.state.variables);
|
815
815
|
}
|
816
816
|
async execute(t) {
|
817
|
-
var s, i, a, o, c, l, d, u, h, m, p, g, E, O,
|
817
|
+
var s, i, a, o, c, l, d, u, h, m, p, g, E, O, C, v, N, R, U, F;
|
818
818
|
w(this, je, vs({
|
819
819
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
820
820
|
onFail: (_, A) => {
|
821
|
-
W(this, ge,
|
821
|
+
W(this, ge, Ce).call(this, { type: "failed", failureCount: _, error: A });
|
822
822
|
},
|
823
823
|
onPause: () => {
|
824
|
-
W(this, ge,
|
824
|
+
W(this, ge, Ce).call(this, { type: "pause" });
|
825
825
|
},
|
826
826
|
onContinue: () => {
|
827
|
-
W(this, ge,
|
827
|
+
W(this, ge, Ce).call(this, { type: "continue" });
|
828
828
|
},
|
829
829
|
retry: this.options.retry ?? 0,
|
830
830
|
retryDelay: this.options.retryDelay,
|
@@ -834,13 +834,13 @@ var ye, us, ea = (us = class extends _r {
|
|
834
834
|
const r = this.state.status === "pending", n = !f(this, je).canStart();
|
835
835
|
try {
|
836
836
|
if (!r) {
|
837
|
-
W(this, ge,
|
837
|
+
W(this, ge, Ce).call(this, { type: "pending", variables: t, isPaused: n }), await ((i = (s = f(this, Z).config).onMutate) == null ? void 0 : i.call(
|
838
838
|
s,
|
839
839
|
t,
|
840
840
|
this
|
841
841
|
));
|
842
842
|
const A = await ((o = (a = this.options).onMutate) == null ? void 0 : o.call(a, t));
|
843
|
-
A !== this.state.context && W(this, ge,
|
843
|
+
A !== this.state.context && W(this, ge, Ce).call(this, {
|
844
844
|
type: "pending",
|
845
845
|
context: A,
|
846
846
|
variables: t,
|
@@ -861,7 +861,7 @@ var ye, us, ea = (us = class extends _r {
|
|
861
861
|
this.state.variables,
|
862
862
|
this.state.context,
|
863
863
|
this
|
864
|
-
)), await ((g = (p = this.options).onSettled) == null ? void 0 : g.call(p, _, null, t, this.state.context)), W(this, ge,
|
864
|
+
)), await ((g = (p = this.options).onSettled) == null ? void 0 : g.call(p, _, null, t, this.state.context)), W(this, ge, Ce).call(this, { type: "success", data: _ }), _;
|
865
865
|
} catch (_) {
|
866
866
|
try {
|
867
867
|
throw await ((O = (E = f(this, Z).config).onError) == null ? void 0 : O.call(
|
@@ -870,13 +870,13 @@ var ye, us, ea = (us = class extends _r {
|
|
870
870
|
t,
|
871
871
|
this.state.context,
|
872
872
|
this
|
873
|
-
)), await ((v = (
|
874
|
-
|
873
|
+
)), await ((v = (C = this.options).onError) == null ? void 0 : v.call(
|
874
|
+
C,
|
875
875
|
_,
|
876
876
|
t,
|
877
877
|
this.state.context
|
878
|
-
)), await ((R = (
|
879
|
-
|
878
|
+
)), await ((R = (N = f(this, Z).config).onSettled) == null ? void 0 : R.call(
|
879
|
+
N,
|
880
880
|
void 0,
|
881
881
|
_,
|
882
882
|
this.state.variables,
|
@@ -890,13 +890,13 @@ var ye, us, ea = (us = class extends _r {
|
|
890
890
|
this.state.context
|
891
891
|
)), _;
|
892
892
|
} finally {
|
893
|
-
W(this, ge,
|
893
|
+
W(this, ge, Ce).call(this, { type: "error", error: _ });
|
894
894
|
}
|
895
895
|
} finally {
|
896
896
|
f(this, Z).runNext(this);
|
897
897
|
}
|
898
898
|
}
|
899
|
-
}, pe = new WeakMap(), Z = new WeakMap(), je = new WeakMap(), ge = new WeakSet(),
|
899
|
+
}, pe = new WeakMap(), Z = new WeakMap(), je = new WeakMap(), ge = new WeakSet(), Ce = function(t) {
|
900
900
|
const r = (n) => {
|
901
901
|
switch (t.type) {
|
902
902
|
case "failed":
|
@@ -1071,7 +1071,7 @@ function Xt(e) {
|
|
1071
1071
|
var t;
|
1072
1072
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
1073
1073
|
}
|
1074
|
-
function
|
1074
|
+
function Cn(e) {
|
1075
1075
|
return {
|
1076
1076
|
onFetch: (t, r) => {
|
1077
1077
|
var d, u, h, m, p;
|
@@ -1086,15 +1086,15 @@ function Nn(e) {
|
|
1086
1086
|
g = !0;
|
1087
1087
|
}), t.signal)
|
1088
1088
|
});
|
1089
|
-
}, O = bs(t.options, t.fetchOptions),
|
1089
|
+
}, O = bs(t.options, t.fetchOptions), C = async (v, N, R) => {
|
1090
1090
|
if (g)
|
1091
1091
|
return Promise.reject();
|
1092
|
-
if (
|
1092
|
+
if (N == null && v.pages.length)
|
1093
1093
|
return Promise.resolve(v);
|
1094
1094
|
const U = {
|
1095
1095
|
client: t.client,
|
1096
1096
|
queryKey: t.queryKey,
|
1097
|
-
pageParam:
|
1097
|
+
pageParam: N,
|
1098
1098
|
direction: R ? "backward" : "forward",
|
1099
1099
|
meta: t.options.meta
|
1100
1100
|
};
|
@@ -1104,22 +1104,22 @@ function Nn(e) {
|
|
1104
1104
|
), { maxPages: _ } = t.options, A = R ? ji : Gi;
|
1105
1105
|
return {
|
1106
1106
|
pages: A(v.pages, F, _),
|
1107
|
-
pageParams: A(v.pageParams,
|
1107
|
+
pageParams: A(v.pageParams, N, _)
|
1108
1108
|
};
|
1109
1109
|
};
|
1110
1110
|
if (s && i.length) {
|
1111
|
-
const v = s === "backward",
|
1111
|
+
const v = s === "backward", N = v ? sa : Pn, R = {
|
1112
1112
|
pages: i,
|
1113
1113
|
pageParams: a
|
1114
|
-
}, U =
|
1115
|
-
o = await
|
1114
|
+
}, U = N(n, R);
|
1115
|
+
o = await C(R, U, v);
|
1116
1116
|
} else {
|
1117
1117
|
const v = e ?? i.length;
|
1118
1118
|
do {
|
1119
|
-
const
|
1120
|
-
if (c > 0 &&
|
1119
|
+
const N = c === 0 ? a[0] ?? n.initialPageParam : Pn(n, o);
|
1120
|
+
if (c > 0 && N == null)
|
1121
1121
|
break;
|
1122
|
-
o = await
|
1122
|
+
o = await C(o, N), c++;
|
1123
1123
|
} while (c < v);
|
1124
1124
|
}
|
1125
1125
|
return o;
|
@@ -1169,7 +1169,7 @@ var H, Le, Me, ht, mt, $e, yt, pt, hs, ia = (hs = class {
|
|
1169
1169
|
mount() {
|
1170
1170
|
Qt(this, $e)._++, f(this, $e) === 1 && (w(this, yt, ws.subscribe(async (e) => {
|
1171
1171
|
e && (await this.resumePausedMutations(), f(this, H).onFocus());
|
1172
|
-
})), w(this, pt,
|
1172
|
+
})), w(this, pt, Lt.subscribe(async (e) => {
|
1173
1173
|
e && (await this.resumePausedMutations(), f(this, H).onOnline());
|
1174
1174
|
})));
|
1175
1175
|
}
|
@@ -1281,16 +1281,16 @@ var H, Le, Me, ht, mt, $e, yt, pt, hs, ia = (hs = class {
|
|
1281
1281
|
return this.fetchQuery(e).then(ce).catch(ce);
|
1282
1282
|
}
|
1283
1283
|
fetchInfiniteQuery(e) {
|
1284
|
-
return e.behavior =
|
1284
|
+
return e.behavior = Cn(e.pages), this.fetchQuery(e);
|
1285
1285
|
}
|
1286
1286
|
prefetchInfiniteQuery(e) {
|
1287
1287
|
return this.fetchInfiniteQuery(e).then(ce).catch(ce);
|
1288
1288
|
}
|
1289
1289
|
ensureInfiniteQueryData(e) {
|
1290
|
-
return e.behavior =
|
1290
|
+
return e.behavior = Cn(e.pages), this.ensureQueryData(e);
|
1291
1291
|
}
|
1292
1292
|
resumePausedMutations() {
|
1293
|
-
return
|
1293
|
+
return Lt.isOnline() ? f(this, Le).resumePausedMutations() : Promise.resolve();
|
1294
1294
|
}
|
1295
1295
|
getQueryCache() {
|
1296
1296
|
return f(this, H);
|
@@ -1305,7 +1305,7 @@ var H, Le, Me, ht, mt, $e, yt, pt, hs, ia = (hs = class {
|
|
1305
1305
|
w(this, Me, e);
|
1306
1306
|
}
|
1307
1307
|
setQueryDefaults(e, t) {
|
1308
|
-
f(this, ht).set(
|
1308
|
+
f(this, ht).set(xt(e), {
|
1309
1309
|
queryKey: e,
|
1310
1310
|
defaultOptions: t
|
1311
1311
|
});
|
@@ -1313,11 +1313,11 @@ var H, Le, Me, ht, mt, $e, yt, pt, hs, ia = (hs = class {
|
|
1313
1313
|
getQueryDefaults(e) {
|
1314
1314
|
const t = [...f(this, ht).values()], r = {};
|
1315
1315
|
return t.forEach((n) => {
|
1316
|
-
|
1316
|
+
Dt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
|
1317
1317
|
}), r;
|
1318
1318
|
}
|
1319
1319
|
setMutationDefaults(e, t) {
|
1320
|
-
f(this, mt).set(
|
1320
|
+
f(this, mt).set(xt(e), {
|
1321
1321
|
mutationKey: e,
|
1322
1322
|
defaultOptions: t
|
1323
1323
|
});
|
@@ -1325,7 +1325,7 @@ var H, Le, Me, ht, mt, $e, yt, pt, hs, ia = (hs = class {
|
|
1325
1325
|
getMutationDefaults(e) {
|
1326
1326
|
const t = [...f(this, mt).values()], r = {};
|
1327
1327
|
return t.forEach((n) => {
|
1328
|
-
|
1328
|
+
Dt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
|
1329
1329
|
}), r;
|
1330
1330
|
}
|
1331
1331
|
defaultQueryOptions(e) {
|
@@ -1383,7 +1383,7 @@ function xn(e) {
|
|
1383
1383
|
const t = String(e), r = t.length - 1;
|
1384
1384
|
return I.context.id + (r ? String.fromCharCode(96 + r) : "") + t;
|
1385
1385
|
}
|
1386
|
-
function
|
1386
|
+
function Ot(e) {
|
1387
1387
|
I.context = e;
|
1388
1388
|
}
|
1389
1389
|
var ca = (e, t) => e === t, pr = Symbol("solid-proxy"), Is = typeof Proxy == "function", gr = {
|
@@ -1393,14 +1393,14 @@ var ca = (e, t) => e === t, pr = Symbol("solid-proxy"), Is = typeof Proxy == "fu
|
|
1393
1393
|
cleanups: null,
|
1394
1394
|
context: null,
|
1395
1395
|
owner: null
|
1396
|
-
}, Hr = {}, x = null, M = null, Q = null, Re = null,
|
1396
|
+
}, Hr = {}, x = null, M = null, Q = null, Re = null, Nr = 0;
|
1397
1397
|
function We(e, t) {
|
1398
1398
|
const r = M, n = x, s = e.length === 0, i = t === void 0 ? n : t, a = s ? Rs : {
|
1399
1399
|
owned: null,
|
1400
1400
|
cleanups: null,
|
1401
1401
|
context: i ? i.context : null,
|
1402
1402
|
owner: i
|
1403
|
-
}, o = s ? e : () => e(() => q(() =>
|
1403
|
+
}, o = s ? e : () => e(() => q(() => $t(a)));
|
1404
1404
|
x = a, M = null;
|
1405
1405
|
try {
|
1406
1406
|
return Ee(o, !0);
|
@@ -1415,26 +1415,26 @@ function te(e, t) {
|
|
1415
1415
|
observers: null,
|
1416
1416
|
observerSlots: null,
|
1417
1417
|
comparator: t.equals || void 0
|
1418
|
-
}, n = (s) => (typeof s == "function" && (s = s(r.value)),
|
1419
|
-
return [
|
1418
|
+
}, n = (s) => (typeof s == "function" && (s = s(r.value)), Cs(r, s));
|
1419
|
+
return [Ns.bind(r), n];
|
1420
1420
|
}
|
1421
1421
|
function la(e, t, r) {
|
1422
|
-
const n =
|
1423
|
-
|
1422
|
+
const n = Cr(e, t, !0, Oe);
|
1423
|
+
Rt(n);
|
1424
1424
|
}
|
1425
1425
|
function Je(e, t, r) {
|
1426
|
-
const n =
|
1427
|
-
|
1426
|
+
const n = Cr(e, t, !1, Oe);
|
1427
|
+
Rt(n);
|
1428
1428
|
}
|
1429
1429
|
function _s(e, t, r) {
|
1430
1430
|
ks = ba;
|
1431
|
-
const n =
|
1432
|
-
(!r || !r.render) && (n.user = !0), Re ? Re.push(n) :
|
1431
|
+
const n = Cr(e, t, !1, Oe);
|
1432
|
+
(!r || !r.render) && (n.user = !0), Re ? Re.push(n) : Rt(n);
|
1433
1433
|
}
|
1434
1434
|
function se(e, t, r) {
|
1435
1435
|
r = r ? Object.assign({}, gr, r) : gr;
|
1436
|
-
const n =
|
1437
|
-
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0,
|
1436
|
+
const n = Cr(e, t, !0, 0);
|
1437
|
+
return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, Rt(n), Ns.bind(n);
|
1438
1438
|
}
|
1439
1439
|
function ua(e) {
|
1440
1440
|
return e && typeof e == "object" && "then" in e;
|
@@ -1443,9 +1443,9 @@ function da(e, t, r) {
|
|
1443
1443
|
let n, s, i;
|
1444
1444
|
n = !0, s = e, i = {};
|
1445
1445
|
let a = null, o = Hr, c = null, l = !1, d = "initialValue" in i, u = typeof n == "function" && se(n);
|
1446
|
-
const h = /* @__PURE__ */ new Set(), [m, p] = (i.storage || te)(i.initialValue), [g, E] = te(void 0), [O,
|
1446
|
+
const h = /* @__PURE__ */ new Set(), [m, p] = (i.storage || te)(i.initialValue), [g, E] = te(void 0), [O, C] = te(void 0, {
|
1447
1447
|
equals: !1
|
1448
|
-
}), [v,
|
1448
|
+
}), [v, N] = te(d ? "ready" : "unresolved");
|
1449
1449
|
I.context && (c = I.getNextContextId(), i.ssrLoadFrom === "initial" ? o = i.initialValue : I.load && I.has(c) && (o = I.load(c)));
|
1450
1450
|
function R(A, P, k, K) {
|
1451
1451
|
return a === A && (a = null, K !== void 0 && (d = !0), (A === o || P === o) && i.onHydrated && queueMicrotask(
|
@@ -1456,7 +1456,7 @@ function da(e, t, r) {
|
|
1456
1456
|
}
|
1457
1457
|
function U(A, P) {
|
1458
1458
|
Ee(() => {
|
1459
|
-
P === void 0 && p(() => A),
|
1459
|
+
P === void 0 && p(() => A), N(P !== void 0 ? "errored" : d ? "ready" : "unresolved"), E(P);
|
1460
1460
|
for (const k of h.keys())
|
1461
1461
|
k.decrement();
|
1462
1462
|
h.clear();
|
@@ -1484,7 +1484,7 @@ function da(e, t, r) {
|
|
1484
1484
|
})
|
1485
1485
|
);
|
1486
1486
|
return ua(k) ? (a = k, "value" in k ? (k.status === "success" ? R(a, k.value, void 0, P) : R(a, void 0, tn(k.value), P), k) : (l = !0, queueMicrotask(() => l = !1), Ee(() => {
|
1487
|
-
|
1487
|
+
N(d ? "refreshing" : "pending"), C();
|
1488
1488
|
}, !1), k.then(
|
1489
1489
|
(K) => R(k, K, void 0, P),
|
1490
1490
|
(K) => R(k, void 0, tn(K), P)
|
@@ -1521,7 +1521,7 @@ function da(e, t, r) {
|
|
1521
1521
|
}
|
1522
1522
|
];
|
1523
1523
|
}
|
1524
|
-
function
|
1524
|
+
function Nu(e) {
|
1525
1525
|
return Ee(e, !1);
|
1526
1526
|
}
|
1527
1527
|
function q(e) {
|
@@ -1535,7 +1535,7 @@ function q(e) {
|
|
1535
1535
|
M = t;
|
1536
1536
|
}
|
1537
1537
|
}
|
1538
|
-
function
|
1538
|
+
function Cu(e, t, r) {
|
1539
1539
|
const n = Array.isArray(e);
|
1540
1540
|
let s, i = r && r.defer;
|
1541
1541
|
return (a) => {
|
@@ -1555,7 +1555,7 @@ function Nu(e, t, r) {
|
|
1555
1555
|
function fa(e) {
|
1556
1556
|
_s(() => q(e));
|
1557
1557
|
}
|
1558
|
-
function
|
1558
|
+
function Mt(e) {
|
1559
1559
|
return x === null || (x.cleanups === null ? x.cleanups = [e] : x.cleanups.push(e)), e;
|
1560
1560
|
}
|
1561
1561
|
function Dn() {
|
@@ -1603,10 +1603,10 @@ function Os(e) {
|
|
1603
1603
|
return Array.isArray(n) ? n : n != null ? [n] : [];
|
1604
1604
|
}, r;
|
1605
1605
|
}
|
1606
|
-
function
|
1606
|
+
function Ns() {
|
1607
1607
|
if (this.sources && this.state)
|
1608
1608
|
if (this.state === Oe)
|
1609
|
-
|
1609
|
+
Rt(this);
|
1610
1610
|
else {
|
1611
1611
|
const e = Q;
|
1612
1612
|
Q = null, Ee(() => Er(this), !1), Q = e;
|
@@ -1617,7 +1617,7 @@ function Cs() {
|
|
1617
1617
|
}
|
1618
1618
|
return this.value;
|
1619
1619
|
}
|
1620
|
-
function
|
1620
|
+
function Cs(e, t, r) {
|
1621
1621
|
let n = e.value;
|
1622
1622
|
return (!e.comparator || !e.comparator(n, t)) && (e.value = t, e.observers && e.observers.length && Ee(() => {
|
1623
1623
|
for (let s = 0; s < e.observers.length; s += 1) {
|
@@ -1628,11 +1628,11 @@ function Ns(e, t, r) {
|
|
1628
1628
|
throw Q = [], new Error();
|
1629
1629
|
}, !1)), t;
|
1630
1630
|
}
|
1631
|
-
function
|
1631
|
+
function Rt(e) {
|
1632
1632
|
if (!e.fn)
|
1633
1633
|
return;
|
1634
|
-
|
1635
|
-
const t =
|
1634
|
+
$t(e);
|
1635
|
+
const t = Nr;
|
1636
1636
|
pa(
|
1637
1637
|
e,
|
1638
1638
|
e.value,
|
@@ -1646,13 +1646,13 @@ function pa(e, t, r) {
|
|
1646
1646
|
try {
|
1647
1647
|
n = e.fn(t);
|
1648
1648
|
} catch (a) {
|
1649
|
-
return e.pure && (e.state = Oe, e.owned && e.owned.forEach(
|
1649
|
+
return e.pure && (e.state = Oe, e.owned && e.owned.forEach($t), e.owned = null), e.updatedAt = r + 1, bn(a);
|
1650
1650
|
} finally {
|
1651
1651
|
M = i, x = s;
|
1652
1652
|
}
|
1653
|
-
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ?
|
1653
|
+
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? Cs(e, n) : e.value = n, e.updatedAt = r);
|
1654
1654
|
}
|
1655
|
-
function
|
1655
|
+
function Cr(e, t, r, n = Oe, s) {
|
1656
1656
|
const i = {
|
1657
1657
|
fn: e,
|
1658
1658
|
state: n,
|
@@ -1676,11 +1676,11 @@ function wr(e) {
|
|
1676
1676
|
if (e.suspense && q(e.suspense.inFallback))
|
1677
1677
|
return e.suspense.effects.push(e);
|
1678
1678
|
const t = [e];
|
1679
|
-
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt <
|
1679
|
+
for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < Nr); )
|
1680
1680
|
e.state && t.push(e);
|
1681
1681
|
for (let r = t.length - 1; r >= 0; r--)
|
1682
1682
|
if (e = t[r], e.state === Oe)
|
1683
|
-
|
1683
|
+
Rt(e);
|
1684
1684
|
else if (e.state === br) {
|
1685
1685
|
const n = Q;
|
1686
1686
|
Q = null, Ee(() => Er(e, t[0]), !1), Q = n;
|
@@ -1690,7 +1690,7 @@ function Ee(e, t) {
|
|
1690
1690
|
if (Q)
|
1691
1691
|
return e();
|
1692
1692
|
let r = !1;
|
1693
|
-
t || (Q = []), Re ? r = !0 : Re = [],
|
1693
|
+
t || (Q = []), Re ? r = !0 : Re = [], Nr++;
|
1694
1694
|
try {
|
1695
1695
|
const n = e();
|
1696
1696
|
return ga(r), n;
|
@@ -1719,7 +1719,7 @@ function ba(e) {
|
|
1719
1719
|
I.effects || (I.effects = []), I.effects.push(...e.slice(0, r));
|
1720
1720
|
return;
|
1721
1721
|
}
|
1722
|
-
|
1722
|
+
Ot();
|
1723
1723
|
}
|
1724
1724
|
for (I.effects && (I.done || !I.count) && (e = [...I.effects, ...e], r += I.effects.length, delete I.effects), t = 0; t < r; t++)
|
1725
1725
|
wr(e[t]);
|
@@ -1730,7 +1730,7 @@ function Er(e, t) {
|
|
1730
1730
|
const n = e.sources[r];
|
1731
1731
|
if (n.sources) {
|
1732
1732
|
const s = n.state;
|
1733
|
-
s === Oe ? n !== t && (!n.updatedAt || n.updatedAt <
|
1733
|
+
s === Oe ? n !== t && (!n.updatedAt || n.updatedAt < Nr) && wr(n) : s === br && Er(n, t);
|
1734
1734
|
}
|
1735
1735
|
}
|
1736
1736
|
}
|
@@ -1740,7 +1740,7 @@ function xs(e) {
|
|
1740
1740
|
r.state || (r.state = br, r.pure ? Q.push(r) : Re.push(r), r.observers && xs(r));
|
1741
1741
|
}
|
1742
1742
|
}
|
1743
|
-
function
|
1743
|
+
function $t(e) {
|
1744
1744
|
let t;
|
1745
1745
|
if (e.sources)
|
1746
1746
|
for (; e.sources.length; ) {
|
@@ -1752,12 +1752,12 @@ function Mt(e) {
|
|
1752
1752
|
}
|
1753
1753
|
if (e.tOwned) {
|
1754
1754
|
for (t = e.tOwned.length - 1; t >= 0; t--)
|
1755
|
-
|
1755
|
+
$t(e.tOwned[t]);
|
1756
1756
|
delete e.tOwned;
|
1757
1757
|
}
|
1758
1758
|
if (e.owned) {
|
1759
1759
|
for (t = e.owned.length - 1; t >= 0; t--)
|
1760
|
-
|
1760
|
+
$t(e.owned[t]);
|
1761
1761
|
e.owned = null;
|
1762
1762
|
}
|
1763
1763
|
if (e.cleanups) {
|
@@ -1807,10 +1807,10 @@ function Sr(e) {
|
|
1807
1807
|
}
|
1808
1808
|
function Ea(e, t, r = {}) {
|
1809
1809
|
let n = [], s = [], i = [], a = 0, o = t.length > 1 ? [] : null;
|
1810
|
-
return
|
1810
|
+
return Mt(() => Sr(i)), () => {
|
1811
1811
|
let c = e() || [], l = c.length, d, u;
|
1812
1812
|
return q(() => {
|
1813
|
-
let m, p, g, E, O,
|
1813
|
+
let m, p, g, E, O, C, v, N, R;
|
1814
1814
|
if (l === 0)
|
1815
1815
|
a !== 0 && (Sr(i), i = [], n = [], s = [], a = 0, o && (o = [])), r.fallback && (n = [nn], s[0] = We((U) => (i[0] = U, r.fallback())), a = 1);
|
1816
1816
|
else if (a === 0) {
|
@@ -1818,15 +1818,15 @@ function Ea(e, t, r = {}) {
|
|
1818
1818
|
n[u] = c[u], s[u] = We(h);
|
1819
1819
|
a = l;
|
1820
1820
|
} else {
|
1821
|
-
for (g = new Array(l), E = new Array(l), o && (O = new Array(l)),
|
1821
|
+
for (g = new Array(l), E = new Array(l), o && (O = new Array(l)), C = 0, v = Math.min(a, l); C < v && n[C] === c[C]; C++)
|
1822
1822
|
;
|
1823
|
-
for (v = a - 1,
|
1824
|
-
g[
|
1825
|
-
for (m = /* @__PURE__ */ new Map(), p = new Array(
|
1823
|
+
for (v = a - 1, N = l - 1; v >= C && N >= C && n[v] === c[N]; v--, N--)
|
1824
|
+
g[N] = s[v], E[N] = i[v], o && (O[N] = o[v]);
|
1825
|
+
for (m = /* @__PURE__ */ new Map(), p = new Array(N + 1), u = N; u >= C; u--)
|
1826
1826
|
R = c[u], d = m.get(R), p[u] = d === void 0 ? -1 : d, m.set(R, u);
|
1827
|
-
for (d =
|
1827
|
+
for (d = C; d <= v; d++)
|
1828
1828
|
R = n[d], u = m.get(R), u !== void 0 && u !== -1 ? (g[u] = s[d], E[u] = i[d], o && (O[u] = o[d]), u = p[u], m.set(R, u)) : i[d]();
|
1829
|
-
for (u =
|
1829
|
+
for (u = C; u < l; u++)
|
1830
1830
|
u in g ? (s[u] = g[u], i[u] = E[u], o && (o[u] = O[u], o[u](u))) : s[u] = We(h);
|
1831
1831
|
s = s.slice(0, a = l), n = c.slice(0);
|
1832
1832
|
}
|
@@ -1843,7 +1843,7 @@ function Ea(e, t, r = {}) {
|
|
1843
1843
|
}
|
1844
1844
|
function Sa(e, t, r = {}) {
|
1845
1845
|
let n = [], s = [], i = [], a = [], o = 0, c;
|
1846
|
-
return
|
1846
|
+
return Mt(() => Sr(i)), () => {
|
1847
1847
|
const l = e() || [], d = l.length;
|
1848
1848
|
return q(() => {
|
1849
1849
|
if (d === 0)
|
@@ -2012,7 +2012,7 @@ function ka(e) {
|
|
2012
2012
|
if (i) {
|
2013
2013
|
const [o, c] = te();
|
2014
2014
|
I.count || (I.count = 0), I.count++, (r || (r = e())).then((l) => {
|
2015
|
-
!I.done &&
|
2015
|
+
!I.done && Ot(i), I.count--, c(() => l.default), Ot();
|
2016
2016
|
}), t = o;
|
2017
2017
|
} else if (!t) {
|
2018
2018
|
const [o] = da(() => (r || (r = e())).then((c) => c.default));
|
@@ -2024,9 +2024,9 @@ function ka(e) {
|
|
2024
2024
|
if (!i || I.done)
|
2025
2025
|
return a(s);
|
2026
2026
|
const o = I.context;
|
2027
|
-
|
2027
|
+
Ot(i);
|
2028
2028
|
const c = a(s);
|
2029
|
-
return
|
2029
|
+
return Ot(o), c;
|
2030
2030
|
}) : ""
|
2031
2031
|
);
|
2032
2032
|
};
|
@@ -2150,12 +2150,12 @@ var _a = [
|
|
2150
2150
|
"noModule",
|
2151
2151
|
"playsInline",
|
2152
2152
|
..._a
|
2153
|
-
]),
|
2153
|
+
]), Na = /* @__PURE__ */ new Set([
|
2154
2154
|
"innerHTML",
|
2155
2155
|
"textContent",
|
2156
2156
|
"innerText",
|
2157
2157
|
"children"
|
2158
|
-
]),
|
2158
|
+
]), Ca = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
2159
2159
|
className: "class",
|
2160
2160
|
htmlFor: "for"
|
2161
2161
|
}), Pa = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
|
@@ -2369,16 +2369,16 @@ function Bu(e = window.document) {
|
|
2369
2369
|
}
|
2370
2370
|
}
|
2371
2371
|
function an(e, t, r) {
|
2372
|
-
|
2372
|
+
Ye(e) || (r == null ? e.removeAttribute(t) : e.setAttribute(t, r));
|
2373
2373
|
}
|
2374
2374
|
function Ha(e, t, r, n) {
|
2375
|
-
|
2375
|
+
Ye(e) || (n == null ? e.removeAttributeNS(t, r) : e.setAttributeNS(t, r, n));
|
2376
2376
|
}
|
2377
2377
|
function Fa(e, t, r) {
|
2378
|
-
|
2378
|
+
Ye(e) || (r ? e.setAttribute(t, "") : e.removeAttribute(t));
|
2379
2379
|
}
|
2380
2380
|
function Va(e, t) {
|
2381
|
-
|
2381
|
+
Ye(e) || (t == null ? e.removeAttribute("class") : e.className = t);
|
2382
2382
|
}
|
2383
2383
|
function Ba(e, t, r, n) {
|
2384
2384
|
if (n)
|
@@ -2419,7 +2419,7 @@ function ja(e, t, r) {
|
|
2419
2419
|
function qa(e, t = {}, r, n) {
|
2420
2420
|
const s = {};
|
2421
2421
|
return n || Je(
|
2422
|
-
() => s.children =
|
2422
|
+
() => s.children = Ut(e, t.children, s.children)
|
2423
2423
|
), Je(() => typeof t.ref == "function" && Wa(t.ref, e)), Je(() => Ja(e, t, r, !0, s, !0)), s;
|
2424
2424
|
}
|
2425
2425
|
function Wa(e, t, r) {
|
@@ -2427,8 +2427,8 @@ function Wa(e, t, r) {
|
|
2427
2427
|
}
|
2428
2428
|
function on(e, t, r, n) {
|
2429
2429
|
if (r !== void 0 && !n && (n = []), typeof t != "function")
|
2430
|
-
return
|
2431
|
-
Je((s) =>
|
2430
|
+
return Ut(e, t, n, r);
|
2431
|
+
Je((s) => Ut(e, t(), s, r), n);
|
2432
2432
|
}
|
2433
2433
|
function Ja(e, t, r, n, s = {}, i = !1) {
|
2434
2434
|
t || (t = {});
|
@@ -2445,14 +2445,14 @@ function Ja(e, t, r, n, s = {}, i = !1) {
|
|
2445
2445
|
s[a] = Mn(e, a, o, s[a], r, i, t);
|
2446
2446
|
}
|
2447
2447
|
}
|
2448
|
-
function
|
2448
|
+
function Ya(e) {
|
2449
2449
|
let t, r;
|
2450
|
-
return !
|
2450
|
+
return !Ye() || !(t = I.registry.get(r = Qa())) ? e() : (I.completed && I.completed.add(t), I.registry.delete(r), t);
|
2451
2451
|
}
|
2452
|
-
function
|
2452
|
+
function Ye(e) {
|
2453
2453
|
return !!I.context && !I.done && (!e || e.isConnected);
|
2454
2454
|
}
|
2455
|
-
function
|
2455
|
+
function za(e) {
|
2456
2456
|
return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
|
2457
2457
|
}
|
2458
2458
|
function Ln(e, t, r) {
|
@@ -2487,15 +2487,15 @@ function Mn(e, t, r, n, s, i, a) {
|
|
2487
2487
|
an(e, t.slice(5), r);
|
2488
2488
|
else if (t.slice(0, 5) === "bool:")
|
2489
2489
|
Fa(e, t.slice(5), r);
|
2490
|
-
else if ((u = t.slice(0, 5) === "prop:") || (l =
|
2490
|
+
else if ((u = t.slice(0, 5) === "prop:") || (l = Na.has(t)) || !s && ((d = xa(t, e.tagName)) || (c = Oa.has(t))) || (o = e.nodeName.includes("-") || "is" in a)) {
|
2491
2491
|
if (u)
|
2492
2492
|
t = t.slice(5), c = !0;
|
2493
|
-
else if (
|
2493
|
+
else if (Ye(e))
|
2494
2494
|
return r;
|
2495
|
-
t === "class" || t === "className" ? Va(e, r) : o && !c && !l ? e[
|
2495
|
+
t === "class" || t === "className" ? Va(e, r) : o && !c && !l ? e[za(t)] = r : e[d || t] = r;
|
2496
2496
|
} else {
|
2497
2497
|
const h = s && t.indexOf(":") > -1 && Ma[t.split(":")[0]];
|
2498
|
-
h ? Ha(e, h, t, r) : an(e,
|
2498
|
+
h ? Ha(e, h, t, r) : an(e, Ca[t] || t, r);
|
2499
2499
|
}
|
2500
2500
|
return r;
|
2501
2501
|
}
|
@@ -2538,8 +2538,8 @@ function Ls(e) {
|
|
2538
2538
|
o();
|
2539
2539
|
i(n);
|
2540
2540
|
}
|
2541
|
-
function
|
2542
|
-
const i =
|
2541
|
+
function Ut(e, t, r, n, s) {
|
2542
|
+
const i = Ye(e);
|
2543
2543
|
if (i) {
|
2544
2544
|
!r && (r = [...e.childNodes]);
|
2545
2545
|
let c = [];
|
@@ -2572,12 +2572,12 @@ function $t(e, t, r, n, s) {
|
|
2572
2572
|
let c = t();
|
2573
2573
|
for (; typeof c == "function"; )
|
2574
2574
|
c = c();
|
2575
|
-
r =
|
2575
|
+
r = Ut(e, c, r, n);
|
2576
2576
|
}), () => r;
|
2577
2577
|
if (Array.isArray(t)) {
|
2578
2578
|
const c = [], l = r && Array.isArray(r);
|
2579
2579
|
if (cn(c, t, r, s))
|
2580
|
-
return Je(() => r =
|
2580
|
+
return Je(() => r = Ut(e, c, r, n, !0)), () => r;
|
2581
2581
|
if (i) {
|
2582
2582
|
if (!c.length)
|
2583
2583
|
return r;
|
@@ -2674,7 +2674,7 @@ function Gu(e) {
|
|
2674
2674
|
const o = n();
|
2675
2675
|
if (o instanceof HTMLHeadElement) {
|
2676
2676
|
const [c, l] = te(!1), d = () => l(!0);
|
2677
|
-
We((u) => on(o, () => c() ? u() : i(), null)),
|
2677
|
+
We((u) => on(o, () => c() ? u() : i(), null)), Mt(d);
|
2678
2678
|
} else {
|
2679
2679
|
const c = Ms(e.isSVG ? "g" : "div", e.isSVG), l = t && c.attachShadow ? c.attachShadow({
|
2680
2680
|
mode: "open"
|
@@ -2684,7 +2684,7 @@ function Gu(e) {
|
|
2684
2684
|
return r.parentNode;
|
2685
2685
|
},
|
2686
2686
|
configurable: !0
|
2687
|
-
}), on(l, i), o.appendChild(c), e.ref && e.ref(c),
|
2687
|
+
}), on(l, i), o.appendChild(c), e.ref && e.ref(c), Mt(() => o.removeChild(c));
|
2688
2688
|
}
|
2689
2689
|
},
|
2690
2690
|
void 0,
|
@@ -2701,7 +2701,7 @@ function ju(e) {
|
|
2701
2701
|
case "function":
|
2702
2702
|
return q(() => s(r));
|
2703
2703
|
case "string":
|
2704
|
-
const i = La.has(s), a = I.context ?
|
2704
|
+
const i = La.has(s), a = I.context ? Ya() : Ms(s, i);
|
2705
2705
|
return qa(a, r, i), a;
|
2706
2706
|
}
|
2707
2707
|
});
|
@@ -2794,7 +2794,7 @@ var no = class {
|
|
2794
2794
|
findByName(e) {
|
2795
2795
|
return this.transfomers[e];
|
2796
2796
|
}
|
2797
|
-
}, so = (e) => Object.prototype.toString.call(e).slice(8, -1), Us = (e) => typeof e > "u", io = (e) => e === null,
|
2797
|
+
}, so = (e) => Object.prototype.toString.call(e).slice(8, -1), Us = (e) => typeof e > "u", io = (e) => e === null, Kt = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, ln = (e) => Kt(e) && Object.keys(e).length === 0, Ke = (e) => Array.isArray(e), ao = (e) => typeof e == "string", oo = (e) => typeof e == "number" && !isNaN(e), co = (e) => typeof e == "boolean", lo = (e) => e instanceof RegExp, Ht = (e) => e instanceof Map, Ft = (e) => e instanceof Set, Ks = (e) => so(e) === "Symbol", uo = (e) => e instanceof Date && !isNaN(e.valueOf()), fo = (e) => e instanceof Error, Kn = (e) => typeof e == "number" && isNaN(e), ho = (e) => co(e) || io(e) || Us(e) || oo(e) || ao(e) || Ks(e), mo = (e) => typeof e == "bigint", yo = (e) => e === 1 / 0 || e === -1 / 0, po = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), go = (e) => e instanceof URL, Hs = (e) => e.replace(/\./g, "\\."), Vr = (e) => e.map(String).map(Hs).join("."), Pt = (e) => {
|
2798
2798
|
const t = [];
|
2799
2799
|
let r = "";
|
2800
2800
|
for (let s = 0; s < e.length; s++) {
|
@@ -2844,14 +2844,14 @@ var Fs = [
|
|
2844
2844
|
return new RegExp(t, r);
|
2845
2845
|
}),
|
2846
2846
|
he(
|
2847
|
-
|
2847
|
+
Ft,
|
2848
2848
|
"set",
|
2849
2849
|
// (sets only exist in es6+)
|
2850
2850
|
// eslint-disable-next-line es5/no-es6-methods
|
2851
2851
|
(e) => [...e.values()],
|
2852
2852
|
(e) => new Set(e)
|
2853
2853
|
),
|
2854
|
-
he(
|
2854
|
+
he(Ht, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
2855
2855
|
he((e) => Kn(e) || yo(e), "number", (e) => Kn(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
2856
2856
|
he((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
2857
2857
|
he(go, "URL", (e) => e.toString(), (e) => new URL(e))
|
@@ -2961,9 +2961,9 @@ var So = (e, t) => {
|
|
2961
2961
|
Js(t);
|
2962
2962
|
for (let r = 0; r < t.length; r++) {
|
2963
2963
|
const n = t[r];
|
2964
|
-
if (
|
2964
|
+
if (Ft(e))
|
2965
2965
|
e = at(e, +n);
|
2966
|
-
else if (
|
2966
|
+
else if (Ht(e)) {
|
2967
2967
|
const s = +n, i = +t[++r] == 0 ? "key" : "value", a = at(e, s);
|
2968
2968
|
switch (i) {
|
2969
2969
|
case "key":
|
@@ -2986,12 +2986,12 @@ var So = (e, t) => {
|
|
2986
2986
|
if (Ke(n)) {
|
2987
2987
|
const o = +a;
|
2988
2988
|
n = n[o];
|
2989
|
-
} else if (
|
2989
|
+
} else if (Kt(n))
|
2990
2990
|
n = n[a];
|
2991
|
-
else if (
|
2991
|
+
else if (Ft(n)) {
|
2992
2992
|
const o = +a;
|
2993
2993
|
n = at(n, o);
|
2994
|
-
} else if (
|
2994
|
+
} else if (Ht(n)) {
|
2995
2995
|
if (i === t.length - 2)
|
2996
2996
|
break;
|
2997
2997
|
const c = +a, l = +t[++i] == 0 ? "key" : "value", d = at(n, c);
|
@@ -3006,11 +3006,11 @@ var So = (e, t) => {
|
|
3006
3006
|
}
|
3007
3007
|
}
|
3008
3008
|
const s = t[t.length - 1];
|
3009
|
-
if (Ke(n) ? n[+s] = r(n[+s]) :
|
3009
|
+
if (Ke(n) ? n[+s] = r(n[+s]) : Kt(n) && (n[s] = r(n[s])), Ft(n)) {
|
3010
3010
|
const i = at(n, +s), a = r(i);
|
3011
3011
|
i !== a && (n.delete(i), n.add(a));
|
3012
3012
|
}
|
3013
|
-
if (
|
3013
|
+
if (Ht(n)) {
|
3014
3014
|
const i = +t[t.length - 2], a = at(n, i);
|
3015
3015
|
switch (+s == 0 ? "key" : "value") {
|
3016
3016
|
case "key": {
|
@@ -3030,12 +3030,12 @@ function dn(e, t, r = []) {
|
|
3030
3030
|
if (!e)
|
3031
3031
|
return;
|
3032
3032
|
if (!Ke(e)) {
|
3033
|
-
At(e, (i, a) => dn(i, t, [...r, ...
|
3033
|
+
At(e, (i, a) => dn(i, t, [...r, ...Pt(a)]));
|
3034
3034
|
return;
|
3035
3035
|
}
|
3036
3036
|
const [n, s] = e;
|
3037
3037
|
s && At(s, (i, a) => {
|
3038
|
-
dn(i, t, [...r, ...
|
3038
|
+
dn(i, t, [...r, ...Pt(a)]);
|
3039
3039
|
}), t(n, r);
|
3040
3040
|
}
|
3041
3041
|
function vo(e, t, r) {
|
@@ -3045,21 +3045,21 @@ function vo(e, t, r) {
|
|
3045
3045
|
}
|
3046
3046
|
function To(e, t) {
|
3047
3047
|
function r(n, s) {
|
3048
|
-
const i = So(e,
|
3049
|
-
n.map(
|
3048
|
+
const i = So(e, Pt(s));
|
3049
|
+
n.map(Pt).forEach((a) => {
|
3050
3050
|
e = un(e, a, () => i);
|
3051
3051
|
});
|
3052
3052
|
}
|
3053
3053
|
if (Ke(t)) {
|
3054
3054
|
const [n, s] = t;
|
3055
3055
|
n.forEach((i) => {
|
3056
|
-
e = un(e,
|
3056
|
+
e = un(e, Pt(i), () => e);
|
3057
3057
|
}), s && At(s, r);
|
3058
3058
|
} else
|
3059
3059
|
At(t, r);
|
3060
3060
|
return e;
|
3061
3061
|
}
|
3062
|
-
var Ao = (e, t) =>
|
3062
|
+
var Ao = (e, t) => Kt(e) || Ke(e) || Ht(e) || Ft(e) || Gs(e, t);
|
3063
3063
|
function Io(e, t, r) {
|
3064
3064
|
const n = r.get(e);
|
3065
3065
|
n ? n.push(t) : r.set(e, [t]);
|
@@ -3075,7 +3075,7 @@ function ko(e, t) {
|
|
3075
3075
|
i.length === 0 ? n = a.map(Vr) : r[Vr(i)] = a.map(Vr);
|
3076
3076
|
}), n ? ln(r) ? [n] : [n, r] : ln(r) ? void 0 : r;
|
3077
3077
|
}
|
3078
|
-
var
|
3078
|
+
var Ys = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
3079
3079
|
const o = ho(e);
|
3080
3080
|
if (!o) {
|
3081
3081
|
Io(e, s, t);
|
@@ -3102,8 +3102,8 @@ var zs = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
|
3102
3102
|
At(l, (m, p) => {
|
3103
3103
|
if (p === "__proto__" || p === "constructor" || p === "prototype")
|
3104
3104
|
throw new Error(`Detected property ${p}. This is a prototype pollution risk, please remove it from your object.`);
|
3105
|
-
const g =
|
3106
|
-
d[p] = g.transformedValue, Ke(g.annotations) ? u[p] = g.annotations :
|
3105
|
+
const g = Ys(m, t, r, n, [...s, p], [...i, e], a);
|
3106
|
+
d[p] = g.transformedValue, Ke(g.annotations) ? u[p] = g.annotations : Kt(g.annotations) && At(g.annotations, (E, O) => {
|
3107
3107
|
u[Hs(p) + "." + O] = E;
|
3108
3108
|
});
|
3109
3109
|
});
|
@@ -3116,14 +3116,14 @@ var zs = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
|
3116
3116
|
};
|
3117
3117
|
return o || a.set(e, h), h;
|
3118
3118
|
};
|
3119
|
-
function
|
3119
|
+
function zs(e) {
|
3120
3120
|
return Object.prototype.toString.call(e).slice(8, -1);
|
3121
3121
|
}
|
3122
3122
|
function Fn(e) {
|
3123
|
-
return
|
3123
|
+
return zs(e) === "Array";
|
3124
3124
|
}
|
3125
3125
|
function Ro(e) {
|
3126
|
-
if (
|
3126
|
+
if (zs(e) !== "Object")
|
3127
3127
|
return !1;
|
3128
3128
|
const t = Object.getPrototypeOf(e);
|
3129
3129
|
return !!t && t.constructor === Object && t === Object.prototype;
|
@@ -3158,7 +3158,7 @@ var D = class {
|
|
3158
3158
|
this.classRegistry = new eo(), this.symbolRegistry = new $s((t) => t.description ?? ""), this.customTransformerRegistry = new no(), this.allowedErrorProps = [], this.dedupe = e;
|
3159
3159
|
}
|
3160
3160
|
serialize(e) {
|
3161
|
-
const t = /* @__PURE__ */ new Map(), r =
|
3161
|
+
const t = /* @__PURE__ */ new Map(), r = Ys(e, t, this, this.dedupe), n = {
|
3162
3162
|
json: r.transformedValue
|
3163
3163
|
};
|
3164
3164
|
r.annotations && (n.meta = {
|
@@ -3214,14 +3214,14 @@ function Wu(e) {
|
|
3214
3214
|
function Ju(e, t) {
|
3215
3215
|
return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
|
3216
3216
|
}
|
3217
|
-
function
|
3217
|
+
function Yu({
|
3218
3218
|
queryState: e,
|
3219
3219
|
observerCount: t,
|
3220
3220
|
isStale: r
|
3221
3221
|
}) {
|
3222
3222
|
return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
|
3223
3223
|
}
|
3224
|
-
function
|
3224
|
+
function zu({
|
3225
3225
|
status: e,
|
3226
3226
|
isPaused: t
|
3227
3227
|
}) {
|
@@ -3235,9 +3235,9 @@ var Xu = (e, t = !1) => {
|
|
3235
3235
|
json: r
|
3236
3236
|
} = Oo(e);
|
3237
3237
|
return JSON.stringify(r, null, t ? 2 : void 0);
|
3238
|
-
}, er = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3,
|
3239
|
-
status:
|
3240
|
-
"query hash":
|
3238
|
+
}, er = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, No = (e, t) => e.queryHash.localeCompare(t.queryHash), Qs = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Co = (e, t) => er(e) === er(t) ? Qs(e, t) : er(e) > er(t) ? 1 : -1, Zu = {
|
3239
|
+
status: Co,
|
3240
|
+
"query hash": No,
|
3241
3241
|
"last updated": Qs
|
3242
3242
|
}, tr = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Xs = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Po = (e, t) => tr(e) === tr(t) ? Xs(e, t) : tr(e) > tr(t) ? 1 : -1, ed = {
|
3243
3243
|
status: Po,
|
@@ -3250,7 +3250,7 @@ var Xu = (e, t = !1) => {
|
|
3250
3250
|
const n = (s) => {
|
3251
3251
|
t(s.matches ? "dark" : "light");
|
3252
3252
|
};
|
3253
|
-
r.addEventListener("change", n),
|
3253
|
+
r.addEventListener("change", n), Mt(() => r.removeEventListener("change", n));
|
3254
3254
|
}), e;
|
3255
3255
|
}, rr = (e, t, r) => {
|
3256
3256
|
if (t.length === 0)
|
@@ -3367,7 +3367,7 @@ var Xu = (e, t = !1) => {
|
|
3367
3367
|
const t = Ua(() => {
|
3368
3368
|
const r = this, [n] = f(this, wt), [s] = f(this, Et), [i] = f(this, St), [a] = f(this, vt), [o] = f(this, gt);
|
3369
3369
|
let c;
|
3370
|
-
return f(this, Tt) ? c = f(this, Tt) : (c = ka(() => import("./J3FDRF32.
|
3370
|
+
return f(this, Tt) ? c = f(this, Tt) : (c = ka(() => import("./J3FDRF32.DBAchxL4.js")), w(this, Tt, c)), xo(f(this, Wt), f(this, bt)), va(c, Aa({
|
3371
3371
|
get queryFlavor() {
|
3372
3372
|
return f(r, jt);
|
3373
3373
|
},
|
@@ -3420,7 +3420,7 @@ function Lo(e) {
|
|
3420
3420
|
client: t,
|
3421
3421
|
queryFlavor: "React Query",
|
3422
3422
|
version: "5",
|
3423
|
-
onlineManager:
|
3423
|
+
onlineManager: Lt,
|
3424
3424
|
buttonPosition: n,
|
3425
3425
|
position: s,
|
3426
3426
|
initialIsOpen: i,
|
@@ -3486,7 +3486,7 @@ function Zs(e) {
|
|
3486
3486
|
function ei(e) {
|
3487
3487
|
return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
|
3488
3488
|
}
|
3489
|
-
let
|
3489
|
+
let Y = class extends Error {
|
3490
3490
|
constructor({ message: t, code: r, cause: n, name: s }) {
|
3491
3491
|
super(t, { cause: n }), this.name = s ?? n.name, this.code = r;
|
3492
3492
|
}
|
@@ -3498,43 +3498,43 @@ function Ko({ error: e, options: t }) {
|
|
3498
3498
|
throw Error("options was missing required publicKey property");
|
3499
3499
|
if (e.name === "AbortError") {
|
3500
3500
|
if (t.signal instanceof AbortSignal)
|
3501
|
-
return new
|
3501
|
+
return new Y({
|
3502
3502
|
message: "Registration ceremony was sent an abort signal",
|
3503
3503
|
code: "ERROR_CEREMONY_ABORTED",
|
3504
3504
|
cause: e
|
3505
3505
|
});
|
3506
3506
|
} else if (e.name === "ConstraintError") {
|
3507
3507
|
if (((n = r.authenticatorSelection) == null ? void 0 : n.requireResidentKey) === !0)
|
3508
|
-
return new
|
3508
|
+
return new Y({
|
3509
3509
|
message: "Discoverable credentials were required but no available authenticator supported it",
|
3510
3510
|
code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
|
3511
3511
|
cause: e
|
3512
3512
|
});
|
3513
3513
|
if (((s = r.authenticatorSelection) == null ? void 0 : s.userVerification) === "required")
|
3514
|
-
return new
|
3514
|
+
return new Y({
|
3515
3515
|
message: "User verification was required but no available authenticator supported it",
|
3516
3516
|
code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
|
3517
3517
|
cause: e
|
3518
3518
|
});
|
3519
3519
|
} else {
|
3520
3520
|
if (e.name === "InvalidStateError")
|
3521
|
-
return new
|
3521
|
+
return new Y({
|
3522
3522
|
message: "The authenticator was previously registered",
|
3523
3523
|
code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
|
3524
3524
|
cause: e
|
3525
3525
|
});
|
3526
3526
|
if (e.name === "NotAllowedError")
|
3527
|
-
return new
|
3527
|
+
return new Y({
|
3528
3528
|
message: e.message,
|
3529
3529
|
code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
|
3530
3530
|
cause: e
|
3531
3531
|
});
|
3532
3532
|
if (e.name === "NotSupportedError")
|
3533
|
-
return r.pubKeyCredParams.filter((i) => i.type === "public-key").length === 0 ? new
|
3533
|
+
return r.pubKeyCredParams.filter((i) => i.type === "public-key").length === 0 ? new Y({
|
3534
3534
|
message: 'No entry in pubKeyCredParams was of type "public-key"',
|
3535
3535
|
code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
|
3536
3536
|
cause: e
|
3537
|
-
}) : new
|
3537
|
+
}) : new Y({
|
3538
3538
|
message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
|
3539
3539
|
code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
|
3540
3540
|
cause: e
|
@@ -3543,25 +3543,25 @@ function Ko({ error: e, options: t }) {
|
|
3543
3543
|
const i = window.location.hostname;
|
3544
3544
|
if (ei(i)) {
|
3545
3545
|
if (r.rp.id !== i)
|
3546
|
-
return new
|
3546
|
+
return new Y({
|
3547
3547
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
3548
3548
|
code: "ERROR_INVALID_RP_ID",
|
3549
3549
|
cause: e
|
3550
3550
|
});
|
3551
|
-
} else return new
|
3551
|
+
} else return new Y({
|
3552
3552
|
message: `${window.location.hostname} is an invalid domain`,
|
3553
3553
|
code: "ERROR_INVALID_DOMAIN",
|
3554
3554
|
cause: e
|
3555
3555
|
});
|
3556
3556
|
} else if (e.name === "TypeError") {
|
3557
3557
|
if (r.user.id.byteLength < 1 || r.user.id.byteLength > 64)
|
3558
|
-
return new
|
3558
|
+
return new Y({
|
3559
3559
|
message: "User ID was not between 1 and 64 characters",
|
3560
3560
|
code: "ERROR_INVALID_USER_ID_LENGTH",
|
3561
3561
|
cause: e
|
3562
3562
|
});
|
3563
3563
|
} else if (e.name === "UnknownError")
|
3564
|
-
return new
|
3564
|
+
return new Y({
|
3565
3565
|
message: "The authenticator was unable to process the specified options, or could not create a new credential",
|
3566
3566
|
code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
|
3567
3567
|
cause: e
|
@@ -3669,14 +3669,14 @@ function Go({ error: e, options: t }) {
|
|
3669
3669
|
throw Error("options was missing required publicKey property");
|
3670
3670
|
if (e.name === "AbortError") {
|
3671
3671
|
if (t.signal instanceof AbortSignal)
|
3672
|
-
return new
|
3672
|
+
return new Y({
|
3673
3673
|
message: "Authentication ceremony was sent an abort signal",
|
3674
3674
|
code: "ERROR_CEREMONY_ABORTED",
|
3675
3675
|
cause: e
|
3676
3676
|
});
|
3677
3677
|
} else {
|
3678
3678
|
if (e.name === "NotAllowedError")
|
3679
|
-
return new
|
3679
|
+
return new Y({
|
3680
3680
|
message: e.message,
|
3681
3681
|
code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
|
3682
3682
|
cause: e
|
@@ -3685,18 +3685,18 @@ function Go({ error: e, options: t }) {
|
|
3685
3685
|
const n = window.location.hostname;
|
3686
3686
|
if (ei(n)) {
|
3687
3687
|
if (r.rpId !== n)
|
3688
|
-
return new
|
3688
|
+
return new Y({
|
3689
3689
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
3690
3690
|
code: "ERROR_INVALID_RP_ID",
|
3691
3691
|
cause: e
|
3692
3692
|
});
|
3693
|
-
} else return new
|
3693
|
+
} else return new Y({
|
3694
3694
|
message: `${window.location.hostname} is an invalid domain`,
|
3695
3695
|
code: "ERROR_INVALID_DOMAIN",
|
3696
3696
|
cause: e
|
3697
3697
|
});
|
3698
3698
|
} else if (e.name === "UnknownError")
|
3699
|
-
return new
|
3699
|
+
return new Y({
|
3700
3700
|
message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
|
3701
3701
|
code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
|
3702
3702
|
cause: e
|
@@ -3769,7 +3769,7 @@ const ot = {
|
|
3769
3769
|
PASSKEY: "passkey"
|
3770
3770
|
}, ni = {
|
3771
3771
|
CLIENT_ID: "X-Auth-ClientId"
|
3772
|
-
},
|
3772
|
+
}, V = {
|
3773
3773
|
ALG: "RS256",
|
3774
3774
|
USER_ID_KEY: "sub",
|
3775
3775
|
USERNAME_KEY: "username",
|
@@ -3795,7 +3795,7 @@ awIDAQAB
|
|
3795
3795
|
LOGOUT: "logout",
|
3796
3796
|
LOGIN: "login",
|
3797
3797
|
REFRESH: "refresh"
|
3798
|
-
}, Dr = crypto, si = (e) => e instanceof CryptoKey, sr = new TextEncoder(),
|
3798
|
+
}, Dr = crypto, si = (e) => e instanceof CryptoKey, sr = new TextEncoder(), Yt = new TextDecoder();
|
3799
3799
|
function Wo(...e) {
|
3800
3800
|
const t = e.reduce((s, { length: i }) => s + i, 0), r = new Uint8Array(t);
|
3801
3801
|
let n = 0;
|
@@ -3810,7 +3810,7 @@ const Jo = (e) => {
|
|
3810
3810
|
return r;
|
3811
3811
|
}, Ue = (e) => {
|
3812
3812
|
let t = e;
|
3813
|
-
t instanceof Uint8Array && (t =
|
3813
|
+
t instanceof Uint8Array && (t = Yt.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
3814
3814
|
try {
|
3815
3815
|
return Jo(t);
|
3816
3816
|
} catch {
|
@@ -3848,24 +3848,24 @@ let de = class extends ne {
|
|
3848
3848
|
}
|
3849
3849
|
};
|
3850
3850
|
de.code = "ERR_JOSE_NOT_SUPPORTED";
|
3851
|
-
class
|
3851
|
+
class Yo extends ne {
|
3852
3852
|
constructor(t = "decryption operation failed", r) {
|
3853
3853
|
super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
|
3854
3854
|
}
|
3855
3855
|
}
|
3856
|
-
|
3857
|
-
class
|
3856
|
+
Yo.code = "ERR_JWE_DECRYPTION_FAILED";
|
3857
|
+
class zo extends ne {
|
3858
3858
|
constructor() {
|
3859
3859
|
super(...arguments), this.code = "ERR_JWE_INVALID";
|
3860
3860
|
}
|
3861
3861
|
}
|
3862
|
-
|
3863
|
-
let
|
3862
|
+
zo.code = "ERR_JWE_INVALID";
|
3863
|
+
let B = class extends ne {
|
3864
3864
|
constructor() {
|
3865
3865
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
3866
3866
|
}
|
3867
3867
|
};
|
3868
|
-
|
3868
|
+
B.code = "ERR_JWS_INVALID";
|
3869
3869
|
let me = class extends ne {
|
3870
3870
|
constructor() {
|
3871
3871
|
super(...arguments), this.code = "ERR_JWT_INVALID";
|
@@ -4042,7 +4042,7 @@ const oc = (e, t) => {
|
|
4042
4042
|
throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`);
|
4043
4043
|
}
|
4044
4044
|
};
|
4045
|
-
function
|
4045
|
+
function _t(e) {
|
4046
4046
|
return It(e) && typeof e.kty == "string";
|
4047
4047
|
}
|
4048
4048
|
function cc(e) {
|
@@ -4052,7 +4052,7 @@ function lc(e) {
|
|
4052
4052
|
return e.kty !== "oct" && typeof e.d > "u";
|
4053
4053
|
}
|
4054
4054
|
function uc(e) {
|
4055
|
-
return
|
4055
|
+
return _t(e) && e.kty === "oct" && typeof e.k == "string";
|
4056
4056
|
}
|
4057
4057
|
function dc(e) {
|
4058
4058
|
let t, r;
|
@@ -4148,13 +4148,13 @@ const fi = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
4148
4148
|
let r = e.export({ format: "jwk" });
|
4149
4149
|
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? di(r.k) : (et || (et = /* @__PURE__ */ new WeakMap()), Ar(et, e, r, t));
|
4150
4150
|
}
|
4151
|
-
return
|
4151
|
+
return _t(e) ? e.k ? Ue(e.k) : (et || (et = /* @__PURE__ */ new WeakMap()), Ar(et, e, e, t, !0)) : e;
|
4152
4152
|
}, hc = (e, t) => {
|
4153
4153
|
if (fi(e)) {
|
4154
4154
|
let r = e.export({ format: "jwk" });
|
4155
4155
|
return r.k ? di(r.k) : (Ze || (Ze = /* @__PURE__ */ new WeakMap()), Ar(Ze, e, r, t));
|
4156
4156
|
}
|
4157
|
-
return
|
4157
|
+
return _t(e) ? e.k ? Ue(e.k) : (Ze || (Ze = /* @__PURE__ */ new WeakMap()), Ar(Ze, e, e, t, !0)) : e;
|
4158
4158
|
}, mc = { normalizePublicKey: fc, normalizePrivateKey: hc }, Pe = (e, t, r = 0) => {
|
4159
4159
|
r === 0 && (t.unshift(t.length), t.unshift(6));
|
4160
4160
|
const n = e.indexOf(t[0], r);
|
@@ -4263,7 +4263,7 @@ const it = (e) => e == null ? void 0 : e[Symbol.toStringTag], mn = (e, t, r) =>
|
|
4263
4263
|
return !0;
|
4264
4264
|
}, wc = (e, t, r, n) => {
|
4265
4265
|
if (!(t instanceof Uint8Array)) {
|
4266
|
-
if (n &&
|
4266
|
+
if (n && _t(t)) {
|
4267
4267
|
if (uc(t) && mn(e, t, r))
|
4268
4268
|
return;
|
4269
4269
|
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');
|
@@ -4274,7 +4274,7 @@ const it = (e) => e == null ? void 0 : e[Symbol.toStringTag], mn = (e, t, r) =>
|
|
4274
4274
|
throw new TypeError(`${it(t)} instances for symmetric algorithms must be of type "secret"`);
|
4275
4275
|
}
|
4276
4276
|
}, Ec = (e, t, r, n) => {
|
4277
|
-
if (n &&
|
4277
|
+
if (n && _t(t))
|
4278
4278
|
switch (r) {
|
4279
4279
|
case "sign":
|
4280
4280
|
if (cc(t) && mn(e, t, r))
|
@@ -4375,53 +4375,53 @@ const Ic = async (e, t, r, n) => {
|
|
4375
4375
|
};
|
4376
4376
|
async function kc(e, t, r) {
|
4377
4377
|
if (!It(e))
|
4378
|
-
throw new
|
4378
|
+
throw new B("Flattened JWS must be an object");
|
4379
4379
|
if (e.protected === void 0 && e.header === void 0)
|
4380
|
-
throw new
|
4380
|
+
throw new B('Flattened JWS must have either of the "protected" or "header" members');
|
4381
4381
|
if (e.protected !== void 0 && typeof e.protected != "string")
|
4382
|
-
throw new
|
4382
|
+
throw new B("JWS Protected Header incorrect type");
|
4383
4383
|
if (e.payload === void 0)
|
4384
|
-
throw new
|
4384
|
+
throw new B("JWS Payload missing");
|
4385
4385
|
if (typeof e.signature != "string")
|
4386
|
-
throw new
|
4386
|
+
throw new B("JWS Signature missing or incorrect type");
|
4387
4387
|
if (e.header !== void 0 && !It(e.header))
|
4388
|
-
throw new
|
4388
|
+
throw new B("JWS Unprotected Header incorrect type");
|
4389
4389
|
let n = {};
|
4390
4390
|
if (e.protected)
|
4391
4391
|
try {
|
4392
4392
|
const p = Ue(e.protected);
|
4393
|
-
n = JSON.parse(
|
4393
|
+
n = JSON.parse(Yt.decode(p));
|
4394
4394
|
} catch {
|
4395
|
-
throw new
|
4395
|
+
throw new B("JWS Protected Header is invalid");
|
4396
4396
|
}
|
4397
4397
|
if (!ic(n, e.header))
|
4398
|
-
throw new
|
4398
|
+
throw new B("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
4399
4399
|
const s = {
|
4400
4400
|
...n,
|
4401
4401
|
...e.header
|
4402
|
-
}, i = Sc(
|
4402
|
+
}, i = Sc(B, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, n, s);
|
4403
4403
|
let a = !0;
|
4404
4404
|
if (i.has("b64") && (a = n.b64, typeof a != "boolean"))
|
4405
|
-
throw new
|
4405
|
+
throw new B('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
4406
4406
|
const { alg: o } = s;
|
4407
4407
|
if (typeof o != "string" || !o)
|
4408
|
-
throw new
|
4408
|
+
throw new B('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
4409
4409
|
const c = vc("algorithms", r.algorithms);
|
4410
4410
|
if (c && !c.has(o))
|
4411
4411
|
throw new ii('"alg" (Algorithm) Header Parameter value not allowed');
|
4412
4412
|
if (a) {
|
4413
4413
|
if (typeof e.payload != "string")
|
4414
|
-
throw new
|
4414
|
+
throw new B("JWS Payload must be a string");
|
4415
4415
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
4416
|
-
throw new
|
4416
|
+
throw new B("JWS Payload must be a string or an Uint8Array instance");
|
4417
4417
|
let l = !1;
|
4418
|
-
typeof t == "function" ? (t = await t(n, e), l = !0, Gn(o, t, "verify"),
|
4418
|
+
typeof t == "function" ? (t = await t(n, e), l = !0, Gn(o, t, "verify"), _t(t) && (t = await bc(t, o))) : Gn(o, t, "verify");
|
4419
4419
|
const d = Wo(sr.encode(e.protected ?? ""), sr.encode("."), typeof e.payload == "string" ? sr.encode(e.payload) : e.payload);
|
4420
4420
|
let u;
|
4421
4421
|
try {
|
4422
4422
|
u = Ue(e.signature);
|
4423
4423
|
} catch {
|
4424
|
-
throw new
|
4424
|
+
throw new B("Failed to base64url decode the signature");
|
4425
4425
|
}
|
4426
4426
|
if (!await Ic(o, t, u, d))
|
4427
4427
|
throw new ai();
|
@@ -4430,23 +4430,23 @@ async function kc(e, t, r) {
|
|
4430
4430
|
try {
|
4431
4431
|
h = Ue(e.payload);
|
4432
4432
|
} catch {
|
4433
|
-
throw new
|
4433
|
+
throw new B("Failed to base64url decode the payload");
|
4434
4434
|
}
|
4435
4435
|
else typeof e.payload == "string" ? h = sr.encode(e.payload) : h = e.payload;
|
4436
4436
|
const m = { payload: h };
|
4437
4437
|
return e.protected !== void 0 && (m.protectedHeader = n), e.header !== void 0 && (m.unprotectedHeader = e.header), l ? { ...m, key: t } : m;
|
4438
4438
|
}
|
4439
4439
|
async function Rc(e, t, r) {
|
4440
|
-
if (e instanceof Uint8Array && (e =
|
4441
|
-
throw new
|
4440
|
+
if (e instanceof Uint8Array && (e = Yt.decode(e)), typeof e != "string")
|
4441
|
+
throw new B("Compact JWS must be a string or Uint8Array");
|
4442
4442
|
const { 0: n, 1: s, 2: i, length: a } = e.split(".");
|
4443
4443
|
if (a !== 3)
|
4444
|
-
throw new
|
4444
|
+
throw new B("Invalid Compact JWS");
|
4445
4445
|
const o = await kc({ payload: s, protected: n, signature: i }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
|
4446
4446
|
return typeof t == "function" ? { ...c, key: o.key } : c;
|
4447
4447
|
}
|
4448
|
-
const _c = (e) => Math.floor(e.getTime() / 1e3), mi = 60, yi = mi * 60, En = yi * 24, Oc = En * 7,
|
4449
|
-
const t =
|
4448
|
+
const _c = (e) => Math.floor(e.getTime() / 1e3), mi = 60, yi = mi * 60, En = yi * 24, Oc = En * 7, Nc = En * 365.25, Cc = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, jn = (e) => {
|
4449
|
+
const t = Cc.exec(e);
|
4450
4450
|
if (!t || t[4] && t[1])
|
4451
4451
|
throw new TypeError("Invalid time period format");
|
4452
4452
|
const r = parseFloat(t[2]), n = t[3].toLowerCase();
|
@@ -4484,14 +4484,14 @@ const _c = (e) => Math.floor(e.getTime() / 1e3), mi = 60, yi = mi * 60, En = yi
|
|
4484
4484
|
s = Math.round(r * Oc);
|
4485
4485
|
break;
|
4486
4486
|
default:
|
4487
|
-
s = Math.round(r *
|
4487
|
+
s = Math.round(r * Nc);
|
4488
4488
|
break;
|
4489
4489
|
}
|
4490
4490
|
return t[1] === "-" || t[4] === "ago" ? -s : s;
|
4491
4491
|
}, qn = (e) => e.toLowerCase().replace(/^application\//, ""), Pc = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, xc = (e, t, r = {}) => {
|
4492
4492
|
let n;
|
4493
4493
|
try {
|
4494
|
-
n = JSON.parse(
|
4494
|
+
n = JSON.parse(Yt.decode(t));
|
4495
4495
|
} catch {
|
4496
4496
|
}
|
4497
4497
|
if (!It(n))
|
@@ -4575,7 +4575,7 @@ function Mc(e) {
|
|
4575
4575
|
}
|
4576
4576
|
let s;
|
4577
4577
|
try {
|
4578
|
-
s = JSON.parse(
|
4578
|
+
s = JSON.parse(Yt.decode(n));
|
4579
4579
|
} catch {
|
4580
4580
|
throw new me("Failed to parse the decoded payload as JSON");
|
4581
4581
|
}
|
@@ -4583,11 +4583,11 @@ function Mc(e) {
|
|
4583
4583
|
throw new me("Invalid JWT Claims Set");
|
4584
4584
|
return s;
|
4585
4585
|
}
|
4586
|
-
const
|
4586
|
+
const kt = async (e) => {
|
4587
4587
|
try {
|
4588
|
-
const t =
|
4588
|
+
const t = V.ALG, r = await gc(qo, t);
|
4589
4589
|
return await Dc(e, r, {
|
4590
|
-
issuer:
|
4590
|
+
issuer: V.ISSUER
|
4591
4591
|
});
|
4592
4592
|
} catch {
|
4593
4593
|
return;
|
@@ -4598,11 +4598,11 @@ const Ft = async (e) => {
|
|
4598
4598
|
} catch {
|
4599
4599
|
return;
|
4600
4600
|
}
|
4601
|
-
},
|
4601
|
+
}, G = [];
|
4602
4602
|
for (let e = 0; e < 256; ++e)
|
4603
|
-
|
4603
|
+
G.push((e + 256).toString(16).slice(1));
|
4604
4604
|
function Uc(e, t = 0) {
|
4605
|
-
return (
|
4605
|
+
return (G[e[t + 0]] + G[e[t + 1]] + G[e[t + 2]] + G[e[t + 3]] + "-" + G[e[t + 4]] + G[e[t + 5]] + "-" + G[e[t + 6]] + G[e[t + 7]] + "-" + G[e[t + 8]] + G[e[t + 9]] + "-" + G[e[t + 10]] + G[e[t + 11]] + G[e[t + 12]] + G[e[t + 13]] + G[e[t + 14]] + G[e[t + 15]]).toLowerCase();
|
4606
4606
|
}
|
4607
4607
|
let qr;
|
4608
4608
|
const Kc = new Uint8Array(16);
|
@@ -4622,15 +4622,15 @@ function Jn(e, t, r) {
|
|
4622
4622
|
const n = e.random || (e.rng || Hc)();
|
4623
4623
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Uc(n);
|
4624
4624
|
}
|
4625
|
-
const
|
4625
|
+
const Yn = globalThis.crypto, Vc = (e) => `${Jn()}${Jn()}`.slice(0, e), Bc = (e) => btoa(
|
4626
4626
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
4627
4627
|
);
|
4628
4628
|
async function Gc(e) {
|
4629
|
-
if (!
|
4629
|
+
if (!Yn.subtle)
|
4630
4630
|
throw new Error(
|
4631
4631
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
4632
4632
|
);
|
4633
|
-
const t = new TextEncoder().encode(e), r = await
|
4633
|
+
const t = new TextEncoder().encode(e), r = await Yn.subtle.digest("SHA-256", t);
|
4634
4634
|
return Bc(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
4635
4635
|
}
|
4636
4636
|
async function jc(e) {
|
@@ -4640,10 +4640,20 @@ async function jc(e) {
|
|
4640
4640
|
code_challenge: r
|
4641
4641
|
};
|
4642
4642
|
}
|
4643
|
+
const ld = async (e, t) => {
|
4644
|
+
var r;
|
4645
|
+
const n = await kt(e);
|
4646
|
+
if (!n || !Array.isArray((r = n.payload) == null ? void 0 : r[V.SCOPES_KEY]))
|
4647
|
+
return !1;
|
4648
|
+
const s = n.payload[V.SCOPES_KEY];
|
4649
|
+
return Array.isArray(t) ? t.every((i) => s.includes(i)) : Object.keys(t).some(
|
4650
|
+
(i) => t[i].every((a) => s.includes(a))
|
4651
|
+
);
|
4652
|
+
};
|
4643
4653
|
function pi(e, t) {
|
4644
4654
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
4645
4655
|
}
|
4646
|
-
const
|
4656
|
+
const zn = (e, t) => {
|
4647
4657
|
const r = JSON.stringify(
|
4648
4658
|
typeof t == "function" ? t() : t
|
4649
4659
|
);
|
@@ -4659,7 +4669,7 @@ function ar({
|
|
4659
4669
|
(a) => {
|
4660
4670
|
try {
|
4661
4671
|
const o = typeof a == "function" ? a(JSON.parse(r)) : a;
|
4662
|
-
o == null ? qc(e) :
|
4672
|
+
o == null ? qc(e) : zn(e, o);
|
4663
4673
|
} catch (o) {
|
4664
4674
|
console.warn(o);
|
4665
4675
|
}
|
@@ -4672,37 +4682,37 @@ function ar({
|
|
4672
4682
|
}, [n]);
|
4673
4683
|
return we(() => {
|
4674
4684
|
try {
|
4675
|
-
Qn(e) === null && typeof t < "u" &&
|
4685
|
+
Qn(e) === null && typeof t < "u" && zn(e, t);
|
4676
4686
|
} catch (a) {
|
4677
4687
|
console.warn(a);
|
4678
4688
|
}
|
4679
4689
|
}, [e, t]), [r ? JSON.parse(r) : null, n, s, i];
|
4680
4690
|
}
|
4681
|
-
const
|
4691
|
+
const j = [];
|
4682
4692
|
for (let e = 0; e < 256; ++e)
|
4683
|
-
|
4693
|
+
j.push((e + 256).toString(16).slice(1));
|
4684
4694
|
function Jc(e, t = 0) {
|
4685
|
-
return (
|
4695
|
+
return (j[e[t + 0]] + j[e[t + 1]] + j[e[t + 2]] + j[e[t + 3]] + "-" + j[e[t + 4]] + j[e[t + 5]] + "-" + j[e[t + 6]] + j[e[t + 7]] + "-" + j[e[t + 8]] + j[e[t + 9]] + "-" + j[e[t + 10]] + j[e[t + 11]] + j[e[t + 12]] + j[e[t + 13]] + j[e[t + 14]] + j[e[t + 15]]).toLowerCase();
|
4686
4696
|
}
|
4687
4697
|
let Wr;
|
4688
|
-
const
|
4689
|
-
function
|
4698
|
+
const Yc = new Uint8Array(16);
|
4699
|
+
function zc() {
|
4690
4700
|
if (!Wr) {
|
4691
4701
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
4692
4702
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
4693
4703
|
Wr = crypto.getRandomValues.bind(crypto);
|
4694
4704
|
}
|
4695
|
-
return Wr(
|
4705
|
+
return Wr(Yc);
|
4696
4706
|
}
|
4697
4707
|
const Qc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Xn = { randomUUID: Qc };
|
4698
4708
|
function Jr(e, t, r) {
|
4699
4709
|
if (Xn.randomUUID && !e)
|
4700
4710
|
return Xn.randomUUID();
|
4701
4711
|
e = e || {};
|
4702
|
-
const n = e.random || (e.rng ||
|
4712
|
+
const n = e.random || (e.rng || zc)();
|
4703
4713
|
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Jc(n);
|
4704
4714
|
}
|
4705
|
-
const tt = "Your session has expired. For your security, please log in again to continue.", Xc = "Your session has been successfully terminated.",
|
4715
|
+
const tt = "Your session has expired. For your security, please log in again to continue.", Xc = "Your session has been successfully terminated.", Yr = "Login failed. Please try again.", Zc = "Error getting access token, please re-authenticate.", el = "You forgot to wrap your component in <AuthProvider>.", or = "@@auth@@", Nt = "LOADING", dr = "LOGIN", gi = "LOGOUT", zt = "success", Se = "failure", bi = "include", wi = "POST", Ei = "application/json", cr = {
|
4706
4716
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
4707
4717
|
$clientId: String!,
|
4708
4718
|
$username: String!,
|
@@ -4825,7 +4835,7 @@ const tt = "Your session has expired. For your security, please log in again to
|
|
4825
4835
|
return { status: Se, data: [] };
|
4826
4836
|
const { data: o } = await a.json();
|
4827
4837
|
return {
|
4828
|
-
status:
|
4838
|
+
status: zt,
|
4829
4839
|
data: o[t.method]
|
4830
4840
|
};
|
4831
4841
|
} catch (i) {
|
@@ -4851,7 +4861,7 @@ const tt = "Your session has expired. For your security, please log in again to
|
|
4851
4861
|
return { status: Se, data: [] };
|
4852
4862
|
const { data: i } = await s.json();
|
4853
4863
|
return {
|
4854
|
-
status:
|
4864
|
+
status: zt,
|
4855
4865
|
data: i || []
|
4856
4866
|
};
|
4857
4867
|
} catch (s) {
|
@@ -4867,7 +4877,7 @@ const tt = "Your session has expired. For your security, please log in again to
|
|
4867
4877
|
}, nl = (e) => {
|
4868
4878
|
try {
|
4869
4879
|
const t = $c(e);
|
4870
|
-
return t ? t[
|
4880
|
+
return t ? t[V.USER_ID_KEY] : "";
|
4871
4881
|
} catch {
|
4872
4882
|
return "";
|
4873
4883
|
}
|
@@ -4927,13 +4937,13 @@ const tt = "Your session has expired. For your security, please log in again to
|
|
4927
4937
|
domain: c,
|
4928
4938
|
ua: l
|
4929
4939
|
}
|
4930
|
-
}), m = await
|
4931
|
-
return m && m.payload[
|
4940
|
+
}), m = await kt((u = h == null ? void 0 : h.data) == null ? void 0 : u.idToken);
|
4941
|
+
return m && m.payload[V.USER_ID_KEY] !== "" && m.payload[V.NONCE_KEY] === n ? {
|
4932
4942
|
idToken: h.data.idToken,
|
4933
4943
|
accessToken: h.data.accessToken,
|
4934
4944
|
refreshToken: h.data.refreshToken,
|
4935
|
-
userId: m.payload[
|
4936
|
-
email: m.payload[
|
4945
|
+
userId: m.payload[V.USER_ID_KEY],
|
4946
|
+
email: m.payload[V.EMAIL_KEY],
|
4937
4947
|
status: !0
|
4938
4948
|
} : {
|
4939
4949
|
status: !1
|
@@ -4962,7 +4972,7 @@ const tt = "Your session has expired. For your security, please log in again to
|
|
4962
4972
|
}
|
4963
4973
|
});
|
4964
4974
|
return (s = i == null ? void 0 : i.data) != null && s.code ? {
|
4965
|
-
status:
|
4975
|
+
status: zt,
|
4966
4976
|
data: i.data.code
|
4967
4977
|
} : {
|
4968
4978
|
status: Se,
|
@@ -4997,11 +5007,11 @@ const tt = "Your session has expired. For your security, please log in again to
|
|
4997
5007
|
accessToken: s,
|
4998
5008
|
domain: i
|
4999
5009
|
}
|
5000
|
-
}), l = await
|
5001
|
-
return l && l.payload[
|
5010
|
+
}), l = await kt((o = c == null ? void 0 : c.data) == null ? void 0 : o.accessToken);
|
5011
|
+
return l && l.payload[V.USER_ID_KEY] !== "" && l.payload[V.NONCE_KEY] === r ? {
|
5002
5012
|
accessToken: c.data.accessToken,
|
5003
5013
|
refreshToken: c.data.refreshToken,
|
5004
|
-
userId: l.payload[
|
5014
|
+
userId: l.payload[V.USER_ID_KEY],
|
5005
5015
|
status: !0
|
5006
5016
|
} : {
|
5007
5017
|
status: !1
|
@@ -5043,8 +5053,8 @@ class cl {
|
|
5043
5053
|
nonce: s,
|
5044
5054
|
domain: i
|
5045
5055
|
}) {
|
5046
|
-
const a = await
|
5047
|
-
if (a && a.payload[
|
5056
|
+
const a = await kt(this.refreshToken);
|
5057
|
+
if (a && a.payload[V.USER_ID_KEY] !== "") {
|
5048
5058
|
const o = await ol({
|
5049
5059
|
endpoint: t,
|
5050
5060
|
clientId: r,
|
@@ -5055,7 +5065,7 @@ class cl {
|
|
5055
5065
|
domain: i
|
5056
5066
|
});
|
5057
5067
|
return o.status ? (this.accessToken = o.accessToken, this.refreshToken = o.refreshToken, {
|
5058
|
-
status:
|
5068
|
+
status: zt,
|
5059
5069
|
newAccessToken: o.accessToken,
|
5060
5070
|
newRefreshToken: o.refreshToken
|
5061
5071
|
}) : {
|
@@ -5089,7 +5099,7 @@ const ll = (e) => ke(
|
|
5089
5099
|
state: Si,
|
5090
5100
|
dispatch: () => {
|
5091
5101
|
}
|
5092
|
-
}), dl = (e, t) => (t == null ? void 0 : t.type) ===
|
5102
|
+
}), dl = (e, t) => (t == null ? void 0 : t.type) === Nt ? {
|
5093
5103
|
...e,
|
5094
5104
|
isLoading: t.payload.isLoading
|
5095
5105
|
} : (t == null ? void 0 : t.type) === dr ? {
|
@@ -5117,23 +5127,23 @@ const ll = (e) => ke(
|
|
5117
5127
|
const [a, o] = ys(dl, {
|
5118
5128
|
...Si,
|
5119
5129
|
debug: s
|
5120
|
-
}), c = ll(s), l =
|
5130
|
+
}), c = ll(s), l = z(!1), [d, u, , h] = ar({
|
5121
5131
|
key: `${or}::${r}::@@user@@`
|
5122
5132
|
}), [m, p, , g] = ar({
|
5123
5133
|
key: `${or}::${r}::@@access@@`
|
5124
|
-
}), [E, O, ,
|
5134
|
+
}), [E, O, , C] = ar(
|
5125
5135
|
{
|
5126
5136
|
key: `${or}::${r}::@@refresh@@`
|
5127
5137
|
}
|
5128
|
-
), [v,
|
5138
|
+
), [v, N, , R] = ar({
|
5129
5139
|
key: `${or}::${r}::@@nonce@@`
|
5130
5140
|
}), U = new cl(m, E), F = ke(() => {
|
5131
|
-
c("removeLocalStorage: removing local storage"), h(), g(),
|
5141
|
+
c("removeLocalStorage: removing local storage"), h(), g(), C(), R();
|
5132
5142
|
}, [
|
5133
5143
|
g,
|
5134
5144
|
h,
|
5135
5145
|
R,
|
5136
|
-
|
5146
|
+
C,
|
5137
5147
|
c
|
5138
5148
|
]), _ = ke(
|
5139
5149
|
(S) => {
|
@@ -5145,7 +5155,7 @@ const ll = (e) => ke(
|
|
5145
5155
|
payload: {
|
5146
5156
|
logoutReason: S || tt
|
5147
5157
|
}
|
5148
|
-
}), F(), o({ type:
|
5158
|
+
}), F(), o({ type: Nt, payload: { isLoading: !1 } });
|
5149
5159
|
},
|
5150
5160
|
[F, c]
|
5151
5161
|
), A = ke(
|
@@ -5176,15 +5186,15 @@ const ll = (e) => ke(
|
|
5176
5186
|
if (!l.current)
|
5177
5187
|
return a.isLoading && d !== null ? (async () => {
|
5178
5188
|
try {
|
5179
|
-
const S = await
|
5180
|
-
S && S.payload[
|
5189
|
+
const S = await kt(d);
|
5190
|
+
S && S.payload[V.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), o({
|
5181
5191
|
type: dr,
|
5182
5192
|
payload: {
|
5183
|
-
authenticationType: S.payload[
|
5193
|
+
authenticationType: S.payload[V.AUTH_TYPE_KEY],
|
5184
5194
|
user: {
|
5185
|
-
userId: S.payload[
|
5186
|
-
username: S.payload[
|
5187
|
-
email: S.payload[
|
5195
|
+
userId: S.payload[V.USER_ID_KEY],
|
5196
|
+
username: S.payload[V.USERNAME_KEY],
|
5197
|
+
email: S.payload[V.EMAIL_KEY]
|
5188
5198
|
}
|
5189
5199
|
}
|
5190
5200
|
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await A(tt));
|
@@ -5193,15 +5203,15 @@ const ll = (e) => ke(
|
|
5193
5203
|
"useEffect: exception validating JWT, invalidating and logging out"
|
5194
5204
|
), await A(tt);
|
5195
5205
|
}
|
5196
|
-
})() : (c("useEffect: setting the loading state to false"), o({ type:
|
5206
|
+
})() : (c("useEffect: setting the loading state to false"), o({ type: Nt, payload: { isLoading: !1 } })), () => {
|
5197
5207
|
l.current = !0;
|
5198
5208
|
};
|
5199
5209
|
}, [a.isLoading, d, A, c]);
|
5200
5210
|
const P = async (S, $) => {
|
5201
|
-
o({ type:
|
5211
|
+
o({ type: Nt, payload: { isLoading: !0 } }), F();
|
5202
5212
|
const L = Jr();
|
5203
|
-
|
5204
|
-
const { code_verifier:
|
5213
|
+
N(L), c("login: Logging in with password");
|
5214
|
+
const { code_verifier: ze, code_challenge: xi } = await jc(), An = await al({
|
5205
5215
|
endpoint: i,
|
5206
5216
|
nonce: L,
|
5207
5217
|
clientId: r,
|
@@ -5217,7 +5227,7 @@ const ll = (e) => ke(
|
|
5217
5227
|
nonce: L,
|
5218
5228
|
type: ot.CODE,
|
5219
5229
|
code: An.data,
|
5220
|
-
code_verifier:
|
5230
|
+
code_verifier: ze,
|
5221
5231
|
domain: n,
|
5222
5232
|
ua: navigator.userAgent
|
5223
5233
|
});
|
@@ -5231,7 +5241,7 @@ const ll = (e) => ke(
|
|
5231
5241
|
email: Qe.email
|
5232
5242
|
}
|
5233
5243
|
}
|
5234
|
-
}), !0) : (_(
|
5244
|
+
}), !0) : (_(Yr), !1);
|
5235
5245
|
}
|
5236
5246
|
return !1;
|
5237
5247
|
}, k = async (S) => {
|
@@ -5242,8 +5252,8 @@ const ll = (e) => ke(
|
|
5242
5252
|
if (S && $ && $.userId) {
|
5243
5253
|
if (m) {
|
5244
5254
|
c("getAccessToken");
|
5245
|
-
const
|
5246
|
-
if (
|
5255
|
+
const ze = await kt(m);
|
5256
|
+
if (ze && ze.payload[V.USER_ID_KEY] !== "")
|
5247
5257
|
return m;
|
5248
5258
|
}
|
5249
5259
|
c("getAccessToken: invalid access token, trying to refresh it");
|
@@ -5309,10 +5319,10 @@ const ll = (e) => ke(
|
|
5309
5319
|
}), !1;
|
5310
5320
|
}
|
5311
5321
|
return !1;
|
5312
|
-
},
|
5313
|
-
o({ type:
|
5322
|
+
}, Ne = async () => {
|
5323
|
+
o({ type: Nt, payload: { isLoading: !0 } }), F();
|
5314
5324
|
const S = Jr();
|
5315
|
-
|
5325
|
+
N(S), c("loginWithPasskey");
|
5316
5326
|
const $ = Jr();
|
5317
5327
|
let L = await nt({
|
5318
5328
|
endpoint: i,
|
@@ -5326,7 +5336,7 @@ const ll = (e) => ke(
|
|
5326
5336
|
});
|
5327
5337
|
if (L.status)
|
5328
5338
|
try {
|
5329
|
-
const
|
5339
|
+
const ze = await jo(L.data);
|
5330
5340
|
return L = await nt({
|
5331
5341
|
endpoint: i,
|
5332
5342
|
accessToken: m,
|
@@ -5335,13 +5345,13 @@ const ll = (e) => ke(
|
|
5335
5345
|
params: {
|
5336
5346
|
clientId: r,
|
5337
5347
|
id: $,
|
5338
|
-
authentication:
|
5348
|
+
authentication: ze,
|
5339
5349
|
nonce: S,
|
5340
5350
|
domain: n,
|
5341
5351
|
sessionExpiration: t,
|
5342
5352
|
ua: navigator.userAgent
|
5343
5353
|
}
|
5344
|
-
}), L.data.status ===
|
5354
|
+
}), L.data.status === zt ? (u(L.data.idToken), p(L.data.accessToken), O(L.data.refreshToken), o({
|
5345
5355
|
type: dr,
|
5346
5356
|
payload: {
|
5347
5357
|
authenticationType: ot.PASSKEY,
|
@@ -5351,7 +5361,7 @@ const ll = (e) => ke(
|
|
5351
5361
|
email: L.data.email
|
5352
5362
|
}
|
5353
5363
|
}
|
5354
|
-
}), !0) : (_(
|
5364
|
+
}), !0) : (_(Yr), !1);
|
5355
5365
|
} catch {
|
5356
5366
|
return await nt({
|
5357
5367
|
endpoint: i,
|
@@ -5366,7 +5376,7 @@ const ll = (e) => ke(
|
|
5366
5376
|
domain: n,
|
5367
5377
|
sessionExpiration: t
|
5368
5378
|
}
|
5369
|
-
}), _(
|
5379
|
+
}), _(Yr), !1;
|
5370
5380
|
}
|
5371
5381
|
return !1;
|
5372
5382
|
};
|
@@ -5380,12 +5390,17 @@ const ll = (e) => ke(
|
|
5380
5390
|
getAccessToken: K,
|
5381
5391
|
getIdToken: X,
|
5382
5392
|
registeringForPasskey: fe,
|
5383
|
-
loginWithPasskey:
|
5393
|
+
loginWithPasskey: Ne
|
5384
5394
|
},
|
5385
5395
|
children: e
|
5386
5396
|
}
|
5387
5397
|
) });
|
5388
|
-
}, Ti = (e = vi) => ps(e),
|
5398
|
+
}, Ti = (e = vi) => ps(e), ud = "user", dd = "assistant", fd = "data", hd = "I'm having trouble right now. Please try again later.", md = "OpenAI", yd = "OpenAI", pd = "Anthropic", gd = "action-search", bd = "action-sort", wd = "action-toggle-prompt", Ed = "action-reset-prompt", Sd = "sassy-saint-", vd = "details", Td = "search", Ad = "sort", Id = "private-disclosure", kd = "reasoning-disclosure", es = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Rd = 10, _d = 30, Od = "av-prompt", Nd = "av-prompt-editable", Cd = "size-5 sm:size-4", Pd = 30, xd = 10, Dd = 130, Ld = {
|
5399
|
+
PLAN_FREE: "sassy:free",
|
5400
|
+
PLAN_PLUS: "sassy:plus",
|
5401
|
+
PLAN_ADVANCED: "sassy:advanced",
|
5402
|
+
REASONING: "sassy:advanced:reasoning"
|
5403
|
+
}, fl = process.env.NODE_ENV === "production", Ai = !fl, hl = Ai ? "gizmette.local.com" : "gizmette.com", Md = async () => {
|
5389
5404
|
const e = {
|
5390
5405
|
/**
|
5391
5406
|
* A boolean value that indicates the application would
|
@@ -5434,18 +5449,18 @@ const ll = (e) => ke(
|
|
5434
5449
|
e
|
5435
5450
|
);
|
5436
5451
|
});
|
5437
|
-
},
|
5452
|
+
}, $d = (e) => window.btoa(
|
5438
5453
|
encodeURIComponent(e).replace(
|
5439
5454
|
/%([0-9A-F]{2})/g,
|
5440
5455
|
function(r, n) {
|
5441
5456
|
return String.fromCharCode(+`0x${n}`);
|
5442
5457
|
}
|
5443
5458
|
)
|
5444
|
-
),
|
5459
|
+
), Ud = (e) => decodeURIComponent(
|
5445
5460
|
window.atob(e).split("").map(function(t) {
|
5446
5461
|
return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
|
5447
5462
|
}).join("")
|
5448
|
-
),
|
5463
|
+
), Kd = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ y("dl", { className: "my-0", children: /* @__PURE__ */ re("div", { className: "flex items-center justify-between", children: [
|
5449
5464
|
/* @__PURE__ */ y("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
5450
5465
|
/* @__PURE__ */ y("dd", { className: "my-1 inline-block", children: t[r] })
|
5451
5466
|
] }) }, `${e}-${r}`)) : null, ml = ({
|
@@ -5459,18 +5474,18 @@ const ll = (e) => ke(
|
|
5459
5474
|
t
|
5460
5475
|
), yl = ({
|
5461
5476
|
extraClass: e
|
5462
|
-
} = {}) => b("px-2 sm:px-0", e),
|
5477
|
+
} = {}) => b("px-2 sm:px-0", e), Hd = (e, t) => t === 1 ? e : `${e}s`, Fd = (e, t) => {
|
5463
5478
|
let r;
|
5464
5479
|
return (...n) => {
|
5465
5480
|
window.clearTimeout(r), r = window.setTimeout(() => e(...n), t);
|
5466
5481
|
};
|
5467
|
-
}, pl = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), gl = () => window.innerWidth < 403,
|
5482
|
+
}, pl = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), gl = () => window.innerWidth < 403, Vd = () => {
|
5468
5483
|
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = gl(), n = navigator.maxTouchPoints > 1;
|
5469
5484
|
return e && t && r && n;
|
5470
|
-
},
|
5485
|
+
}, Bd = (e) => {
|
5471
5486
|
const t = e.replace(/([A-Z])/g, " $1");
|
5472
5487
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
5473
|
-
},
|
5488
|
+
}, Gd = ({
|
5474
5489
|
autoClose: e = 3e3,
|
5475
5490
|
containerId: t,
|
5476
5491
|
position: r = "top-center",
|
@@ -5847,13 +5862,13 @@ const ki = _e.forwardRef(
|
|
5847
5862
|
}
|
5848
5863
|
);
|
5849
5864
|
ki.displayName = "Button";
|
5850
|
-
function
|
5851
|
-
const e =
|
5865
|
+
function Nl() {
|
5866
|
+
const e = z(!1);
|
5852
5867
|
return we(() => (e.current = !0, () => {
|
5853
5868
|
e.current = !1;
|
5854
5869
|
}), []), ke(() => e.current, []);
|
5855
5870
|
}
|
5856
|
-
function
|
5871
|
+
function Cl(e) {
|
5857
5872
|
return Rr(() => e.every((t) => t == null) ? () => {
|
5858
5873
|
} : (t) => {
|
5859
5874
|
e.forEach((r) => {
|
@@ -5871,8 +5886,8 @@ const Pl = {
|
|
5871
5886
|
bottom: 0,
|
5872
5887
|
right: 0
|
5873
5888
|
};
|
5874
|
-
function
|
5875
|
-
const t =
|
5889
|
+
function zr(e) {
|
5890
|
+
const t = Nl(), r = z(0), n = z(null), [s, i] = Ie(Pl), a = Rr(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
5876
5891
|
const c = o[0];
|
5877
5892
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
5878
5893
|
n.current && t() && i(c.contentRect);
|
@@ -5916,9 +5931,9 @@ const xl = {
|
|
5916
5931
|
align: g = "center",
|
5917
5932
|
radius: E = "large",
|
5918
5933
|
variant: O = "primary",
|
5919
|
-
iconClassName:
|
5934
|
+
iconClassName: C,
|
5920
5935
|
animated: v = !1,
|
5921
|
-
...
|
5936
|
+
...N
|
5922
5937
|
}, R) => {
|
5923
5938
|
const U = Ii({
|
5924
5939
|
type: Mr,
|
@@ -5937,11 +5952,11 @@ const xl = {
|
|
5937
5952
|
radius: E,
|
5938
5953
|
variant: O,
|
5939
5954
|
animated: v
|
5940
|
-
}), F = Rl({ mode: r, raw: o, iconClassName:
|
5955
|
+
}), F = Rl({ mode: r, raw: o, iconClassName: C }), _ = _l({ animated: v }), [A, P] = zr(), [k, K] = zr(), [X, fe] = zr(), Ne = z(0), S = z(null), $ = Cl([R, S]);
|
5941
5956
|
return mr(() => {
|
5942
|
-
X && X.current && v && (
|
5957
|
+
X && X.current && v && (Ne.current = fe.width + Dl[u] + (c ? 0 : Ll));
|
5943
5958
|
}, [fe, X, u, c, v]), mr(() => {
|
5944
|
-
S && S.current && v && (h && A && P.width > 0 ? (A.current && (A.current.style.opacity = "100"), S.current.style.width = `${P.width +
|
5959
|
+
S && S.current && v && (h && A && P.width > 0 ? (A.current && (A.current.style.opacity = "100"), S.current.style.width = `${P.width + Ne.current}px`) : m && K.width > 0 ? (k.current && (k.current.style.opacity = "100"), S.current.style.width = `${K.width + Ne.current}px`) : (A.current && (A.current.style.opacity = "0"), k.current && (k.current.style.opacity = "0"), S.current.style.width = `${xl[u]}px`));
|
5945
5960
|
}, [
|
5946
5961
|
P,
|
5947
5962
|
h,
|
@@ -5959,7 +5974,7 @@ const xl = {
|
|
5959
5974
|
disabled: t,
|
5960
5975
|
type: a,
|
5961
5976
|
"aria-label": l || d,
|
5962
|
-
...
|
5977
|
+
...N,
|
5963
5978
|
children: [
|
5964
5979
|
/* @__PURE__ */ y(
|
5965
5980
|
rs,
|
@@ -6455,7 +6470,7 @@ const jl = "av-main", ql = ({
|
|
6455
6470
|
"lg:basis-full": e === 12 && t === "lg",
|
6456
6471
|
"xl:basis-full": e === 12 && t === "xl",
|
6457
6472
|
"2xl:basis-full": e === 12 && t === "2xl"
|
6458
|
-
}),
|
6473
|
+
}), Yl = ({
|
6459
6474
|
className: e,
|
6460
6475
|
span: t
|
6461
6476
|
}) => {
|
@@ -6487,7 +6502,7 @@ const jl = "av-main", ql = ({
|
|
6487
6502
|
const { columnGap: s, rowGap: i } = ps(pn), a = {
|
6488
6503
|
paddingLeft: s * kr + "rem",
|
6489
6504
|
paddingTop: i * kr + "rem"
|
6490
|
-
}, o =
|
6505
|
+
}, o = Yl({
|
6491
6506
|
className: t,
|
6492
6507
|
span: r
|
6493
6508
|
});
|
@@ -6506,9 +6521,9 @@ try {
|
|
6506
6521
|
});
|
6507
6522
|
} catch {
|
6508
6523
|
}
|
6509
|
-
const Ri = "av-text-input",
|
6524
|
+
const Ri = "av-text-input", zl = "av-text-input-wrapper", Xr = "av-text-input-helper-text";
|
6510
6525
|
function Ql() {
|
6511
|
-
const e =
|
6526
|
+
const e = z(!1);
|
6512
6527
|
return we(() => (e.current = !0, () => {
|
6513
6528
|
e.current = !1;
|
6514
6529
|
}), []), ke(() => e.current, []);
|
@@ -6524,7 +6539,7 @@ const Xl = {
|
|
6524
6539
|
right: 0
|
6525
6540
|
};
|
6526
6541
|
function Zl(e) {
|
6527
|
-
const t = Ql(), r =
|
6542
|
+
const t = Ql(), r = z(0), n = z(null), [s, i] = Ie(Xl), a = Rr(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
|
6528
6543
|
const c = o[0];
|
6529
6544
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
6530
6545
|
n.current && t() && i(c.contentRect);
|
@@ -6615,7 +6630,7 @@ const _i = "SET_ANNOUNCEMENT", Oi = "CLEAR_ANNOUNCEMENT", tu = {
|
|
6615
6630
|
dispatch: a
|
6616
6631
|
});
|
6617
6632
|
};
|
6618
|
-
function
|
6633
|
+
function Ni({
|
6619
6634
|
children: e,
|
6620
6635
|
className: t,
|
6621
6636
|
politeness: r,
|
@@ -6626,7 +6641,7 @@ function Ci({
|
|
6626
6641
|
visible: o,
|
6627
6642
|
...c
|
6628
6643
|
}) {
|
6629
|
-
const l =
|
6644
|
+
const l = z(null), d = z(null), [u, h] = ys(ru, {
|
6630
6645
|
announcement: null
|
6631
6646
|
});
|
6632
6647
|
let m = r;
|
@@ -6760,7 +6775,7 @@ const iu = ({
|
|
6760
6775
|
}) => {
|
6761
6776
|
const d = r ? e : b(
|
6762
6777
|
"relative flex w-full flex-col justify-center",
|
6763
|
-
|
6778
|
+
zl,
|
6764
6779
|
e
|
6765
6780
|
);
|
6766
6781
|
let u = "";
|
@@ -6831,9 +6846,9 @@ const iu = ({
|
|
6831
6846
|
rightElement: g,
|
6832
6847
|
rightElementClassName: E,
|
6833
6848
|
size: O = "md",
|
6834
|
-
...
|
6849
|
+
...C
|
6835
6850
|
}, v) => {
|
6836
|
-
const [
|
6851
|
+
const [N, R] = Zl(), [U, F] = Ie(0), _ = eu({ id: e, prefix: `${Ri}-` }), A = `${t} error, ${p}`, P = z(null), k = z(null), K = {
|
6837
6852
|
xs: { label: "-25px", helperText: "30px" },
|
6838
6853
|
sm: { label: "-29px", helperText: "34px" },
|
6839
6854
|
md: { label: "-33px", helperText: "38px" },
|
@@ -6854,9 +6869,9 @@ const iu = ({
|
|
6854
6869
|
return mr(() => {
|
6855
6870
|
R && R.width && F(R.width + 18 + 10);
|
6856
6871
|
}, [R]), mr(() => {
|
6857
|
-
var fe,
|
6872
|
+
var fe, Ne;
|
6858
6873
|
const { label: S, helperText: $ } = K[O];
|
6859
|
-
(fe = P == null ? void 0 : P.current) == null || fe.style.setProperty("--av-text-input-label", S), (
|
6874
|
+
(fe = P == null ? void 0 : P.current) == null || fe.style.setProperty("--av-text-input-label", S), (Ne = k == null ? void 0 : k.current) == null || Ne.style.setProperty(
|
6860
6875
|
"--av-text-input-helper-text",
|
6861
6876
|
$
|
6862
6877
|
);
|
@@ -6883,7 +6898,7 @@ const iu = ({
|
|
6883
6898
|
...p && { "aria-describedby": `${_}-helper` },
|
6884
6899
|
...n && { "aria-invalid": "true" },
|
6885
6900
|
...g && !s && { style: { paddingRight: U } },
|
6886
|
-
...
|
6901
|
+
...C
|
6887
6902
|
}
|
6888
6903
|
),
|
6889
6904
|
!s && !h && /* @__PURE__ */ y(
|
@@ -6908,12 +6923,12 @@ const iu = ({
|
|
6908
6923
|
g && /* @__PURE__ */ y(
|
6909
6924
|
"div",
|
6910
6925
|
{
|
6911
|
-
ref:
|
6926
|
+
ref: N,
|
6912
6927
|
className: X.rightElement,
|
6913
6928
|
children: g
|
6914
6929
|
}
|
6915
6930
|
),
|
6916
|
-
n && p && /* @__PURE__ */ y(
|
6931
|
+
n && p && /* @__PURE__ */ y(Ni, { politeness: "polite", clearAnnouncementDelay: 500, children: A })
|
6917
6932
|
] });
|
6918
6933
|
}
|
6919
6934
|
);
|
@@ -6926,7 +6941,7 @@ function du(e) {
|
|
6926
6941
|
});
|
6927
6942
|
}, e);
|
6928
6943
|
}
|
6929
|
-
const fu = 500, hu = 5e3, mu = 2e4,
|
6944
|
+
const fu = 500, hu = 5e3, mu = 2e4, Ci = _e.forwardRef(
|
6930
6945
|
({
|
6931
6946
|
name: e,
|
6932
6947
|
disabled: t,
|
@@ -6943,7 +6958,7 @@ const fu = 500, hu = 5e3, mu = 2e4, Ni = _e.forwardRef(
|
|
6943
6958
|
const [h, m] = Ie(!0), [p, g] = Ie({
|
6944
6959
|
message: null,
|
6945
6960
|
politeness: null
|
6946
|
-
}), E =
|
6961
|
+
}), E = z(!0), O = z(null), C = z(null), v = du([u, C]), N = h ? "Show" : "Hide", R = () => {
|
6947
6962
|
O.current && clearTimeout(O.current), E.current || (O.current = setTimeout(() => {
|
6948
6963
|
E.current = !0, m(!0), g({
|
6949
6964
|
announcementTimeout: hu,
|
@@ -6961,7 +6976,7 @@ const fu = 500, hu = 5e3, mu = 2e4, Ni = _e.forwardRef(
|
|
6961
6976
|
}), s && s(K);
|
6962
6977
|
}, F = (k) => {
|
6963
6978
|
var K;
|
6964
|
-
const { relatedTarget: X } = k, fe = (K =
|
6979
|
+
const { relatedTarget: X } = k, fe = (K = C.current) == null ? void 0 : K.parentElement;
|
6965
6980
|
fe != null && fe.contains(X) || c && c();
|
6966
6981
|
}, _ = (k) => {
|
6967
6982
|
R(), a && a(k), F(k);
|
@@ -6987,7 +7002,7 @@ const fu = 500, hu = 5e3, mu = 2e4, Ni = _e.forwardRef(
|
|
6987
7002
|
onChange: P,
|
6988
7003
|
rightElement: _e.cloneElement(l, {
|
6989
7004
|
ref: u,
|
6990
|
-
label:
|
7005
|
+
label: N,
|
6991
7006
|
onClick: U,
|
6992
7007
|
onBlur: F,
|
6993
7008
|
disabled: t
|
@@ -6996,7 +7011,7 @@ const fu = 500, hu = 5e3, mu = 2e4, Ni = _e.forwardRef(
|
|
6996
7011
|
}
|
6997
7012
|
),
|
6998
7013
|
/* @__PURE__ */ y(
|
6999
|
-
|
7014
|
+
Ni,
|
7000
7015
|
{
|
7001
7016
|
role: "status",
|
7002
7017
|
politeness: p.politeness,
|
@@ -7007,7 +7022,7 @@ const fu = 500, hu = 5e3, mu = 2e4, Ni = _e.forwardRef(
|
|
7007
7022
|
] });
|
7008
7023
|
}
|
7009
7024
|
);
|
7010
|
-
|
7025
|
+
Ci.displayName = "TextInputMask";
|
7011
7026
|
/*!
|
7012
7027
|
@versini/ui-textinput v3.0.20
|
7013
7028
|
© 2025 gizmette.com
|
@@ -7021,7 +7036,7 @@ try {
|
|
7021
7036
|
});
|
7022
7037
|
} catch {
|
7023
7038
|
}
|
7024
|
-
const yu = "ASK! ME! ANYTHING!", Pi = "Callisto", pu = "Log in", gu = "Sign in with a Passkey",
|
7039
|
+
const yu = "ASK! ME! ANYTHING!", Pi = "Callisto", pu = "Log in", gu = "Sign in with a Passkey", jd = "Log out", bu = "Password", qd = "Usage", Wd = "Profile", Jd = "Settings", Yd = "Chat history", zd = "About", Qd = "Type your question here", Xd = "{{clipboard}}", Zd = `Sometimes, ${Pi} hallucinates. Review important details.`, ef = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Temporary Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", tf = "Default provider set to", rf = "Chat successfully deleted!", nf = {
|
7025
7040
|
PREFERENCES: {
|
7026
7041
|
TITLE: "User profile",
|
7027
7042
|
NAME: "Name",
|
@@ -7126,7 +7141,7 @@ const yu = "ASK! ME! ANYTHING!", Pi = "Callisto", pu = "Log in", gu = "Sign in w
|
|
7126
7141
|
}
|
7127
7142
|
) }),
|
7128
7143
|
/* @__PURE__ */ y(He, { span: 12, children: /* @__PURE__ */ y(
|
7129
|
-
|
7144
|
+
Ci,
|
7130
7145
|
{
|
7131
7146
|
className: "mt-7",
|
7132
7147
|
required: !0,
|
@@ -7191,7 +7206,7 @@ const yu = "ASK! ME! ANYTHING!", Pi = "Callisto", pu = "Log in", gu = "Sign in w
|
|
7191
7206
|
) });
|
7192
7207
|
}, Su = new URL(document.location.href).searchParams, ss = !!Su.get("debug") || !1, vu = Mi(() => import(
|
7193
7208
|
/* webpackChunkName: "LazyApp" */
|
7194
|
-
"./App.
|
7209
|
+
"./App.DzXI0pGu.js"
|
7195
7210
|
).then((e) => e.App)), Tu = new ia(), is = ({
|
7196
7211
|
isComponent: e,
|
7197
7212
|
headerHeight: t
|
@@ -7214,7 +7229,7 @@ const yu = "ASK! ME! ANYTHING!", Pi = "Callisto", pu = "Log in", gu = "Sign in w
|
|
7214
7229
|
endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
|
7215
7230
|
children: /* @__PURE__ */ y(is, { isComponent: e, headerHeight: t })
|
7216
7231
|
}
|
7217
|
-
) : /* @__PURE__ */ y(Zn, { clientId: es, domain: r, debug: ss, children: /* @__PURE__ */ y(is, { isComponent: e, headerHeight: t }) }),
|
7232
|
+
) : /* @__PURE__ */ y(Zn, { clientId: es, domain: r, debug: ss, children: /* @__PURE__ */ y(is, { isComponent: e, headerHeight: t }) }), sf = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
|
7218
7233
|
Au,
|
7219
7234
|
{
|
7220
7235
|
isComponent: !0,
|
@@ -7223,66 +7238,67 @@ const yu = "ASK! ME! ANYTHING!", Pi = "Callisto", pu = "Log in", gu = "Sign in w
|
|
7223
7238
|
}
|
7224
7239
|
);
|
7225
7240
|
export {
|
7226
|
-
|
7227
|
-
|
7228
|
-
|
7229
|
-
|
7230
|
-
|
7241
|
+
zd as ABOUT_TITLE,
|
7242
|
+
Ed as ACTION_RESET_PROMPT,
|
7243
|
+
gd as ACTION_SEARCH,
|
7244
|
+
bd as ACTION_SORT,
|
7245
|
+
wd as ACTION_TOGGLE_PROMPT,
|
7231
7246
|
Pi as APP_NAME,
|
7232
7247
|
ki as C,
|
7233
|
-
|
7234
|
-
|
7235
|
-
|
7248
|
+
nf as CARDS,
|
7249
|
+
Xd as CLIPBOARD_PROMPT,
|
7250
|
+
md as DEFAULT_AI_PROVIDER,
|
7236
7251
|
Cd as DEFAULT_ICON_ACTION_SIZE,
|
7237
7252
|
ju as Dynamic,
|
7238
|
-
|
7239
|
-
|
7253
|
+
hd as ERROR_MESSAGE,
|
7254
|
+
Zd as FOOTER_DISCLAIMER,
|
7240
7255
|
$u as For,
|
7241
|
-
|
7256
|
+
Ld as GRANTS,
|
7257
|
+
Yd as HISTORY_TITLE,
|
7242
7258
|
$r as I,
|
7243
7259
|
ql as I$1,
|
7244
|
-
|
7245
|
-
|
7246
|
-
|
7260
|
+
_d as INFINITE_SCROLL_LIMIT,
|
7261
|
+
Rd as INFINITE_SCROLL_THRESHOLD,
|
7262
|
+
Qd as INPUT_PLACEHOLDER_TEXT,
|
7247
7263
|
Uu as Index,
|
7248
7264
|
Jl as L,
|
7249
|
-
|
7250
|
-
|
7251
|
-
|
7252
|
-
|
7253
|
-
|
7254
|
-
|
7255
|
-
|
7265
|
+
vd as LOCAL_STORAGE_CHAT_DETAILS,
|
7266
|
+
Sd as LOCAL_STORAGE_PREFIX,
|
7267
|
+
Id as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
7268
|
+
kd as LOCAL_STORAGE_REASONING_DISCLOSURE,
|
7269
|
+
Td as LOCAL_STORAGE_SEARCH,
|
7270
|
+
Ad as LOCAL_STORAGE_SORT,
|
7271
|
+
jd as LOG_OUT,
|
7256
7272
|
wu as Logo,
|
7257
7273
|
ot as M,
|
7258
7274
|
Fu as Match,
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7275
|
+
Wd as PROFILE_TITLE,
|
7276
|
+
ef as PROMPTS_DESCRIPTION,
|
7277
|
+
Od as PROMPT_CLASSNAME,
|
7278
|
+
Nd as PROMPT_EDITABLE_AREA_CLASSNAME,
|
7279
|
+
pd as PROVIDER_ANTHROPIC,
|
7280
|
+
yd as PROVIDER_OPENAI,
|
7265
7281
|
Gu as Portal,
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7282
|
+
dd as ROLE_ASSISTANT,
|
7283
|
+
fd as ROLE_INTERNAL,
|
7284
|
+
ud as ROLE_USER,
|
7269
7285
|
Hl as S,
|
7270
|
-
|
7271
|
-
|
7286
|
+
Jd as SETTINGS_TITLE,
|
7287
|
+
sf as SassySaint,
|
7272
7288
|
Ku as Show,
|
7273
7289
|
_r as Subscribable,
|
7274
7290
|
Hu as Switch,
|
7275
|
-
|
7276
|
-
|
7277
|
-
|
7278
|
-
|
7279
|
-
|
7280
|
-
|
7291
|
+
rf as TOAST_CHAT_DELETED,
|
7292
|
+
tf as TOAST_PROVIDER_CHANGED,
|
7293
|
+
xd as UI_BUTTON_SCROLL_BUFFER,
|
7294
|
+
Dd as UI_DEFAULT_MAIN_HEIGHT,
|
7295
|
+
Pd as UI_FOOTER_BUFFER,
|
7296
|
+
qd as USAGE_TITLE,
|
7281
7297
|
Ba as addEventListener,
|
7282
|
-
|
7298
|
+
Nu as batch,
|
7283
7299
|
Va as className,
|
7284
7300
|
Bu as clearDelegatedEvents,
|
7285
|
-
|
7301
|
+
Bd as convertCamelCaseToReadable,
|
7286
7302
|
td as convertRemToPixels,
|
7287
7303
|
va as createComponent,
|
7288
7304
|
la as createComputed,
|
@@ -7293,26 +7309,26 @@ export {
|
|
7293
7309
|
We as createRoot,
|
7294
7310
|
te as createSignal,
|
7295
7311
|
Mu as createUniqueId,
|
7296
|
-
|
7312
|
+
Fd as debounce,
|
7297
7313
|
Ka as delegateEvents,
|
7298
7314
|
nr as deleteNestedDataByPath,
|
7299
7315
|
Xu as displayValue,
|
7300
7316
|
Tn as fe,
|
7301
7317
|
Xi as fetchState,
|
7302
7318
|
ws as focusManager,
|
7303
|
-
|
7319
|
+
Md as getCurrentGeoLocation,
|
7304
7320
|
yl as getMainPaddingClass,
|
7305
7321
|
ml as getMessageContaintWrapperClass,
|
7306
|
-
|
7322
|
+
zu as getMutationStatusColor,
|
7307
7323
|
rd as getPreferredColorScheme,
|
7308
|
-
|
7324
|
+
Yu as getQueryStatusColor,
|
7309
7325
|
Qu as getQueryStatusColorByLabel,
|
7310
7326
|
Wu as getQueryStatusLabel,
|
7311
7327
|
Ju as getSidedProp,
|
7312
7328
|
on as insert,
|
7313
7329
|
pl as isElectron,
|
7314
7330
|
gl as isProbablyMobile,
|
7315
|
-
|
7331
|
+
Vd as isProbablyiPhone,
|
7316
7332
|
Or as isServer,
|
7317
7333
|
Ki as isValidTimeout,
|
7318
7334
|
He as j,
|
@@ -7321,29 +7337,30 @@ export {
|
|
7321
7337
|
ed as mutationSortFns,
|
7322
7338
|
ce as noop,
|
7323
7339
|
ee as notifyManager,
|
7324
|
-
|
7325
|
-
|
7326
|
-
|
7340
|
+
$d as obfuscate,
|
7341
|
+
Cu as on,
|
7342
|
+
Mt as onCleanup,
|
7327
7343
|
fa as onMount,
|
7328
7344
|
Ji as pendingThenable,
|
7329
|
-
|
7345
|
+
Hd as pluralize,
|
7330
7346
|
Ir as re,
|
7331
|
-
|
7347
|
+
Kd as renderDataAsList,
|
7332
7348
|
Bi as replaceData,
|
7333
7349
|
Fi as resolveEnabled,
|
7334
7350
|
kn as resolveStaleTime,
|
7335
7351
|
Oo as serialize,
|
7336
7352
|
an as setAttribute,
|
7337
7353
|
Ou as shallowEqualObjects,
|
7354
|
+
ld as sn,
|
7338
7355
|
Zu as sortFns,
|
7339
7356
|
Ia as splitProps,
|
7340
7357
|
qa as spread,
|
7341
7358
|
qu as stringify,
|
7342
7359
|
Vu as template,
|
7343
7360
|
Hi as timeUntilStale,
|
7344
|
-
|
7361
|
+
Gd as toastOptions,
|
7345
7362
|
Ti as un,
|
7346
|
-
|
7363
|
+
Ud as unObfuscate,
|
7347
7364
|
q as untrack,
|
7348
7365
|
rr as updateNestedDataByPath,
|
7349
7366
|
Wa as use,
|