@versini/sassysaint 8.13.4 → 8.13.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.60B4mTum.js → AboutChangelog.CoKmvAdI.js} +2 -2
- package/dist/chunks/{App.C2kFBvMx.js → App.DLjCVgG5.js} +1099 -1103
- package/dist/chunks/{CPIOZS5X.B-iOdIEb.js → C2Q2AJ2U.cAIebCi6.js} +7 -4
- package/dist/chunks/{Chart.kuTl_JkT.js → Chart.DzKN41nk.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CDuvNSHV.js → ChatBubbleAssistant.kgSE74X-.js} +3 -3
- package/dist/chunks/{index.CtG14j-E.js → index.BQ_CpBqK.js} +1 -1
- package/dist/chunks/{index.CanrnWlN.js → index.BZR8K4LZ.js} +1 -1
- package/dist/chunks/{index.C9scPH5l.js → index.CEFuAffW.js} +1 -1
- package/dist/chunks/{index.DCuEX_OE.js → index.CrTTm7Si.js} +342 -339
- package/dist/chunks/{index.BfAfxHCg.js → index.Dhh-HMuc.js} +2 -2
- package/dist/chunks/{index.DN1EGbvA.js → index.x9fdqfuu.js} +3 -3
- package/dist/chunks/{useMarkdown.DHKbL6TV.js → useMarkdown.Du-MOH7O.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +2 -2
- package/package.json +5 -5
@@ -2,10 +2,10 @@ var vn = (e) => {
|
|
2
2
|
throw TypeError(e);
|
3
3
|
};
|
4
4
|
var Nr = (e, t, r) => t.has(e) || vn("Cannot " + r);
|
5
|
-
var f = (e, t, r) => (Nr(e, t, "read from private field"), r ? r.call(e) : t.get(e)),
|
5
|
+
var f = (e, t, r) => (Nr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), T = (e, t, r) => t.has(e) ? vn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), v = (e, t, r, n) => (Nr(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), J = (e, t, r) => (Nr(e, t, "access private method"), r);
|
6
6
|
var Wt = (e, t, r, n) => ({
|
7
7
|
set _(s) {
|
8
|
-
|
8
|
+
v(e, t, s, r);
|
9
9
|
},
|
10
10
|
get _() {
|
11
11
|
return f(e, t, n);
|
@@ -173,10 +173,10 @@ function ls(e, t) {
|
|
173
173
|
var He, _e, nt, Yn, Li = (Yn = class extends Sr {
|
174
174
|
constructor() {
|
175
175
|
super();
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
176
|
+
T(this, He);
|
177
|
+
T(this, _e);
|
178
|
+
T(this, nt);
|
179
|
+
v(this, nt, (t) => {
|
180
180
|
if (!Ar && window.addEventListener) {
|
181
181
|
const r = () => t();
|
182
182
|
return window.addEventListener("visibilitychange", r, !1), () => {
|
@@ -190,16 +190,16 @@ var He, _e, nt, Yn, Li = (Yn = class extends Sr {
|
|
190
190
|
}
|
191
191
|
onUnsubscribe() {
|
192
192
|
var t;
|
193
|
-
this.hasListeners() || ((t = f(this, _e)) == null || t.call(this),
|
193
|
+
this.hasListeners() || ((t = f(this, _e)) == null || t.call(this), v(this, _e, void 0));
|
194
194
|
}
|
195
195
|
setEventListener(t) {
|
196
196
|
var r;
|
197
|
-
|
197
|
+
v(this, nt, t), (r = f(this, _e)) == null || r.call(this), v(this, _e, t((n) => {
|
198
198
|
typeof n == "boolean" ? this.setFocused(n) : this.onFocus();
|
199
199
|
}));
|
200
200
|
}
|
201
201
|
setFocused(t) {
|
202
|
-
f(this, He) !== t && (
|
202
|
+
f(this, He) !== t && (v(this, He, t), this.onFocus());
|
203
203
|
}
|
204
204
|
onFocus() {
|
205
205
|
const t = this.isFocused();
|
@@ -214,10 +214,10 @@ var He, _e, nt, Yn, Li = (Yn = class extends Sr {
|
|
214
214
|
}, He = new WeakMap(), _e = new WeakMap(), nt = new WeakMap(), Yn), us = new Li(), st, Ne, it, Xn, Mi = (Xn = class extends Sr {
|
215
215
|
constructor() {
|
216
216
|
super();
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
217
|
+
T(this, st, !0);
|
218
|
+
T(this, Ne);
|
219
|
+
T(this, it);
|
220
|
+
v(this, it, (t) => {
|
221
221
|
if (!Ar && window.addEventListener) {
|
222
222
|
const r = () => t(!0), n = () => t(!1);
|
223
223
|
return window.addEventListener("online", r, !1), window.addEventListener("offline", n, !1), () => {
|
@@ -231,14 +231,14 @@ var He, _e, nt, Yn, Li = (Yn = class extends Sr {
|
|
231
231
|
}
|
232
232
|
onUnsubscribe() {
|
233
233
|
var t;
|
234
|
-
this.hasListeners() || ((t = f(this, Ne)) == null || t.call(this),
|
234
|
+
this.hasListeners() || ((t = f(this, Ne)) == null || t.call(this), v(this, Ne, void 0));
|
235
235
|
}
|
236
236
|
setEventListener(t) {
|
237
237
|
var r;
|
238
|
-
|
238
|
+
v(this, it, t), (r = f(this, Ne)) == null || r.call(this), v(this, Ne, t(this.setOnline.bind(this)));
|
239
239
|
}
|
240
240
|
setOnline(t) {
|
241
|
-
f(this, st) !== t && (
|
241
|
+
f(this, st) !== t && (v(this, st, t), this.listeners.forEach((n) => {
|
242
242
|
n(t);
|
243
243
|
}));
|
244
244
|
}
|
@@ -285,23 +285,23 @@ function Pr(e) {
|
|
285
285
|
function hs(e) {
|
286
286
|
let t = !1, r = 0, n = !1, s;
|
287
287
|
const i = Ui(), a = (g) => {
|
288
|
-
var
|
289
|
-
n || (h(new fs(g)), (
|
288
|
+
var E;
|
289
|
+
n || (h(new fs(g)), (E = e.abort) == null || E.call(e));
|
290
290
|
}, o = () => {
|
291
291
|
t = !0;
|
292
292
|
}, c = () => {
|
293
293
|
t = !1;
|
294
294
|
}, l = () => us.isFocused() && (e.networkMode === "always" || Nt.isOnline()) && e.canRun(), d = () => ds(e.networkMode) && e.canRun(), u = (g) => {
|
295
|
-
var
|
296
|
-
n || (n = !0, (
|
295
|
+
var E;
|
296
|
+
n || (n = !0, (E = e.onSuccess) == null || E.call(e, g), s == null || s(), i.resolve(g));
|
297
297
|
}, h = (g) => {
|
298
|
-
var
|
299
|
-
n || (n = !0, (
|
298
|
+
var E;
|
299
|
+
n || (n = !0, (E = e.onError) == null || E.call(e, g), s == null || s(), i.reject(g));
|
300
300
|
}, y = () => new Promise((g) => {
|
301
|
-
var
|
302
|
-
s = (
|
303
|
-
(n || l()) && g(
|
304
|
-
}, (
|
301
|
+
var E;
|
302
|
+
s = (I) => {
|
303
|
+
(n || l()) && g(I);
|
304
|
+
}, (E = e.onPause) == null || E.call(e);
|
305
305
|
}).then(() => {
|
306
306
|
var g;
|
307
307
|
s = void 0, n || (g = e.onContinue) == null || g.call(e);
|
@@ -309,23 +309,23 @@ function hs(e) {
|
|
309
309
|
if (n)
|
310
310
|
return;
|
311
311
|
let g;
|
312
|
-
const
|
312
|
+
const E = r === 0 ? e.initialPromise : void 0;
|
313
313
|
try {
|
314
|
-
g =
|
315
|
-
} catch (
|
316
|
-
g = Promise.reject(
|
314
|
+
g = E ?? e.fn();
|
315
|
+
} catch (I) {
|
316
|
+
g = Promise.reject(I);
|
317
317
|
}
|
318
|
-
Promise.resolve(g).then(u).catch((
|
318
|
+
Promise.resolve(g).then(u).catch((I) => {
|
319
319
|
var M;
|
320
320
|
if (n)
|
321
321
|
return;
|
322
|
-
const O = e.retry ?? (Ar ? 0 : 3),
|
322
|
+
const O = e.retry ?? (Ar ? 0 : 3), A = e.retryDelay ?? $i, k = typeof A == "function" ? A(r, I) : A, C = O === !0 || typeof O == "number" && r < O || typeof O == "function" && O(r, I);
|
323
323
|
if (t || !C) {
|
324
|
-
h(
|
324
|
+
h(I);
|
325
325
|
return;
|
326
326
|
}
|
327
|
-
r++, (M = e.onFail) == null || M.call(e, r,
|
328
|
-
t ? h(
|
327
|
+
r++, (M = e.onFail) == null || M.call(e, r, I), Ni(k).then(() => l() ? void 0 : y()).then(() => {
|
328
|
+
t ? h(I) : m();
|
329
329
|
});
|
330
330
|
});
|
331
331
|
};
|
@@ -401,13 +401,13 @@ function Hi() {
|
|
401
401
|
}
|
402
402
|
var te = Hi(), Fe, Zn, ys = (Zn = class {
|
403
403
|
constructor() {
|
404
|
-
|
404
|
+
T(this, Fe);
|
405
405
|
}
|
406
406
|
destroy() {
|
407
407
|
this.clearGcTimeout();
|
408
408
|
}
|
409
409
|
scheduleGc() {
|
410
|
-
this.clearGcTimeout(), Oi(this.gcTime) &&
|
410
|
+
this.clearGcTimeout(), Oi(this.gcTime) && v(this, Fe, setTimeout(() => {
|
411
411
|
this.optionalRemove();
|
412
412
|
}, this.gcTime));
|
413
413
|
}
|
@@ -418,20 +418,20 @@ var te = Hi(), Fe, Zn, ys = (Zn = class {
|
|
418
418
|
);
|
419
419
|
}
|
420
420
|
clearGcTimeout() {
|
421
|
-
f(this, Fe) && (clearTimeout(f(this, Fe)),
|
421
|
+
f(this, Fe) && (clearTimeout(f(this, Fe)), v(this, Fe, void 0));
|
422
422
|
}
|
423
423
|
}, Fe = new WeakMap(), Zn), at, ot, se, Be, z, Kt, Ve, ce, Ee, es, Fi = (es = class extends ys {
|
424
424
|
constructor(t) {
|
425
425
|
super();
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
426
|
+
T(this, ce);
|
427
|
+
T(this, at);
|
428
|
+
T(this, ot);
|
429
|
+
T(this, se);
|
430
|
+
T(this, Be);
|
431
|
+
T(this, z);
|
432
|
+
T(this, Kt);
|
433
|
+
T(this, Ve);
|
434
|
+
v(this, Ve, !1), v(this, Kt, t.defaultOptions), this.setOptions(t.options), this.observers = [], v(this, Be, t.client), v(this, se, f(this, Be).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, v(this, at, Vi(this.options)), this.state = t.state ?? f(this, at), this.scheduleGc();
|
435
435
|
}
|
436
436
|
get meta() {
|
437
437
|
return this.options.meta;
|
@@ -525,7 +525,7 @@ var te = Hi(), Fe, Zn, ys = (Zn = class {
|
|
525
525
|
const n = new AbortController(), s = (u) => {
|
526
526
|
Object.defineProperty(u, "signal", {
|
527
527
|
enumerable: !0,
|
528
|
-
get: () => (
|
528
|
+
get: () => (v(this, Ve, !0), n.signal)
|
529
529
|
});
|
530
530
|
}, i = () => {
|
531
531
|
const u = ls(this.options, r), h = {
|
@@ -533,7 +533,7 @@ var te = Hi(), Fe, Zn, ys = (Zn = class {
|
|
533
533
|
queryKey: this.queryKey,
|
534
534
|
meta: this.meta
|
535
535
|
};
|
536
|
-
return s(h),
|
536
|
+
return s(h), v(this, Ve, !1), this.options.persister ? this.options.persister(
|
537
537
|
u,
|
538
538
|
h,
|
539
539
|
this
|
@@ -549,7 +549,7 @@ var te = Hi(), Fe, Zn, ys = (Zn = class {
|
|
549
549
|
s(a), (c = this.options.behavior) == null || c.onFetch(
|
550
550
|
a,
|
551
551
|
this
|
552
|
-
),
|
552
|
+
), v(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((l = a.fetchOptions) == null ? void 0 : l.meta)) && J(this, ce, Ee).call(this, { type: "fetch", meta: (d = a.fetchOptions) == null ? void 0 : d.meta });
|
553
553
|
const o = (u) => {
|
554
554
|
var h, y, m, g;
|
555
555
|
Pr(u) && u.silent || J(this, ce, Ee).call(this, {
|
@@ -566,7 +566,7 @@ var te = Hi(), Fe, Zn, ys = (Zn = class {
|
|
566
566
|
this
|
567
567
|
)), this.scheduleGc();
|
568
568
|
};
|
569
|
-
return
|
569
|
+
return v(this, z, hs({
|
570
570
|
initialPromise: r == null ? void 0 : r.initialPromise,
|
571
571
|
fn: a.fetchFn,
|
572
572
|
abort: n.abort.bind(n),
|
@@ -580,8 +580,8 @@ var te = Hi(), Fe, Zn, ys = (Zn = class {
|
|
580
580
|
}
|
581
581
|
try {
|
582
582
|
this.setData(u);
|
583
|
-
} catch (
|
584
|
-
o(
|
583
|
+
} catch (E) {
|
584
|
+
o(E);
|
585
585
|
return;
|
586
586
|
}
|
587
587
|
(y = (h = f(this, se).config).onSuccess) == null || y.call(h, u, this), (g = (m = f(this, se).config).onSettled) == null || g.call(
|
@@ -708,8 +708,8 @@ function Vi(e) {
|
|
708
708
|
var he, ts, ji = (ts = class extends Sr {
|
709
709
|
constructor(t = {}) {
|
710
710
|
super();
|
711
|
-
|
712
|
-
this.config = t,
|
711
|
+
T(this, he);
|
712
|
+
this.config = t, v(this, he, /* @__PURE__ */ new Map());
|
713
713
|
}
|
714
714
|
build(t, r, n) {
|
715
715
|
const s = r.queryKey, i = r.queryHash ?? dn(s, r);
|
@@ -780,11 +780,11 @@ var he, ts, ji = (ts = class extends Sr {
|
|
780
780
|
}, he = new WeakMap(), ts), ye, ee, je, me, Ce, rs, Gi = (rs = class extends ys {
|
781
781
|
constructor(t) {
|
782
782
|
super();
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
this.mutationId = t.mutationId,
|
783
|
+
T(this, me);
|
784
|
+
T(this, ye);
|
785
|
+
T(this, ee);
|
786
|
+
T(this, je);
|
787
|
+
this.mutationId = t.mutationId, v(this, ee, t.mutationCache), v(this, ye, []), this.state = t.state || qi(), this.setOptions(t.options), this.scheduleGc();
|
788
788
|
}
|
789
789
|
setOptions(t) {
|
790
790
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
@@ -800,7 +800,7 @@ var he, ts, ji = (ts = class extends Sr {
|
|
800
800
|
}));
|
801
801
|
}
|
802
802
|
removeObserver(t) {
|
803
|
-
|
803
|
+
v(this, ye, f(this, ye).filter((r) => r !== t)), this.scheduleGc(), f(this, ee).notify({
|
804
804
|
type: "observerRemoved",
|
805
805
|
mutation: this,
|
806
806
|
observer: t
|
@@ -815,83 +815,86 @@ var he, ts, ji = (ts = class extends Sr {
|
|
815
815
|
this.execute(this.state.variables);
|
816
816
|
}
|
817
817
|
async execute(t) {
|
818
|
-
var
|
819
|
-
|
818
|
+
var i, a, o, c, l, d, u, h, y, m, g, E, I, O, A, k, C, M, H, R;
|
819
|
+
const r = () => {
|
820
|
+
J(this, me, Ce).call(this, { type: "continue" });
|
821
|
+
};
|
822
|
+
v(this, je, hs({
|
820
823
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
821
|
-
onFail: (
|
822
|
-
J(this, me, Ce).call(this, { type: "failed", failureCount:
|
824
|
+
onFail: (w, _) => {
|
825
|
+
J(this, me, Ce).call(this, { type: "failed", failureCount: w, error: _ });
|
823
826
|
},
|
824
827
|
onPause: () => {
|
825
828
|
J(this, me, Ce).call(this, { type: "pause" });
|
826
829
|
},
|
827
|
-
onContinue:
|
828
|
-
J(this, me, Ce).call(this, { type: "continue" });
|
829
|
-
},
|
830
|
+
onContinue: r,
|
830
831
|
retry: this.options.retry ?? 0,
|
831
832
|
retryDelay: this.options.retryDelay,
|
832
833
|
networkMode: this.options.networkMode,
|
833
834
|
canRun: () => f(this, ee).canRun(this)
|
834
835
|
}));
|
835
|
-
const
|
836
|
+
const n = this.state.status === "pending", s = !f(this, je).canStart();
|
836
837
|
try {
|
837
|
-
if (
|
838
|
-
|
839
|
-
|
838
|
+
if (n)
|
839
|
+
r();
|
840
|
+
else {
|
841
|
+
J(this, me, Ce).call(this, { type: "pending", variables: t, isPaused: s }), await ((a = (i = f(this, ee).config).onMutate) == null ? void 0 : a.call(
|
842
|
+
i,
|
840
843
|
t,
|
841
844
|
this
|
842
845
|
));
|
843
|
-
const
|
844
|
-
|
846
|
+
const _ = await ((c = (o = this.options).onMutate) == null ? void 0 : c.call(o, t));
|
847
|
+
_ !== this.state.context && J(this, me, Ce).call(this, {
|
845
848
|
type: "pending",
|
846
|
-
context:
|
849
|
+
context: _,
|
847
850
|
variables: t,
|
848
|
-
isPaused:
|
851
|
+
isPaused: s
|
849
852
|
});
|
850
853
|
}
|
851
|
-
const
|
852
|
-
return await ((
|
853
|
-
|
854
|
-
|
854
|
+
const w = await f(this, je).start();
|
855
|
+
return await ((d = (l = f(this, ee).config).onSuccess) == null ? void 0 : d.call(
|
856
|
+
l,
|
857
|
+
w,
|
855
858
|
t,
|
856
859
|
this.state.context,
|
857
860
|
this
|
858
|
-
)), await ((
|
859
|
-
|
860
|
-
|
861
|
+
)), await ((h = (u = this.options).onSuccess) == null ? void 0 : h.call(u, w, t, this.state.context)), await ((m = (y = f(this, ee).config).onSettled) == null ? void 0 : m.call(
|
862
|
+
y,
|
863
|
+
w,
|
861
864
|
null,
|
862
865
|
this.state.variables,
|
863
866
|
this.state.context,
|
864
867
|
this
|
865
|
-
)), await ((
|
866
|
-
} catch (
|
868
|
+
)), await ((E = (g = this.options).onSettled) == null ? void 0 : E.call(g, w, null, t, this.state.context)), J(this, me, Ce).call(this, { type: "success", data: w }), w;
|
869
|
+
} catch (w) {
|
867
870
|
try {
|
868
|
-
throw await ((
|
869
|
-
|
870
|
-
|
871
|
+
throw await ((O = (I = f(this, ee).config).onError) == null ? void 0 : O.call(
|
872
|
+
I,
|
873
|
+
w,
|
871
874
|
t,
|
872
875
|
this.state.context,
|
873
876
|
this
|
874
|
-
)), await ((
|
875
|
-
|
876
|
-
|
877
|
+
)), await ((k = (A = this.options).onError) == null ? void 0 : k.call(
|
878
|
+
A,
|
879
|
+
w,
|
877
880
|
t,
|
878
881
|
this.state.context
|
879
|
-
)), await ((
|
880
|
-
|
882
|
+
)), await ((M = (C = f(this, ee).config).onSettled) == null ? void 0 : M.call(
|
883
|
+
C,
|
881
884
|
void 0,
|
882
|
-
|
885
|
+
w,
|
883
886
|
this.state.variables,
|
884
887
|
this.state.context,
|
885
888
|
this
|
886
|
-
)), await ((
|
887
|
-
|
889
|
+
)), await ((R = (H = this.options).onSettled) == null ? void 0 : R.call(
|
890
|
+
H,
|
888
891
|
void 0,
|
889
|
-
|
892
|
+
w,
|
890
893
|
t,
|
891
894
|
this.state.context
|
892
|
-
)),
|
895
|
+
)), w;
|
893
896
|
} finally {
|
894
|
-
J(this, me, Ce).call(this, { type: "error", error:
|
897
|
+
J(this, me, Ce).call(this, { type: "error", error: w });
|
895
898
|
}
|
896
899
|
} finally {
|
897
900
|
f(this, ee).runNext(this);
|
@@ -977,10 +980,10 @@ function qi() {
|
|
977
980
|
var Se, le, Ht, ns, Wi = (ns = class extends Sr {
|
978
981
|
constructor(t = {}) {
|
979
982
|
super();
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
this.config = t,
|
983
|
+
T(this, Se);
|
984
|
+
T(this, le);
|
985
|
+
T(this, Ht);
|
986
|
+
this.config = t, v(this, Se, /* @__PURE__ */ new Set()), v(this, le, /* @__PURE__ */ new Map()), v(this, Ht, 0);
|
984
987
|
}
|
985
988
|
build(t, r, n) {
|
986
989
|
const s = new Gi({
|
@@ -1080,54 +1083,54 @@ function kn(e) {
|
|
1080
1083
|
let o = { pages: [], pageParams: [] }, c = 0;
|
1081
1084
|
const l = async () => {
|
1082
1085
|
let g = !1;
|
1083
|
-
const
|
1084
|
-
Object.defineProperty(
|
1086
|
+
const E = (A) => {
|
1087
|
+
Object.defineProperty(A, "signal", {
|
1085
1088
|
enumerable: !0,
|
1086
1089
|
get: () => (t.signal.aborted ? g = !0 : t.signal.addEventListener("abort", () => {
|
1087
1090
|
g = !0;
|
1088
1091
|
}), t.signal)
|
1089
1092
|
});
|
1090
|
-
},
|
1093
|
+
}, I = ls(t.options, t.fetchOptions), O = async (A, k, C) => {
|
1091
1094
|
if (g)
|
1092
1095
|
return Promise.reject();
|
1093
|
-
if (
|
1094
|
-
return Promise.resolve(
|
1096
|
+
if (k == null && A.pages.length)
|
1097
|
+
return Promise.resolve(A);
|
1095
1098
|
const M = {
|
1096
1099
|
client: t.client,
|
1097
1100
|
queryKey: t.queryKey,
|
1098
|
-
pageParam:
|
1101
|
+
pageParam: k,
|
1099
1102
|
direction: C ? "backward" : "forward",
|
1100
1103
|
meta: t.options.meta
|
1101
1104
|
};
|
1102
|
-
|
1103
|
-
const H = await
|
1105
|
+
E(M);
|
1106
|
+
const H = await I(
|
1104
1107
|
M
|
1105
|
-
), { maxPages:
|
1108
|
+
), { maxPages: R } = t.options, w = C ? Di : xi;
|
1106
1109
|
return {
|
1107
|
-
pages: A
|
1108
|
-
pageParams: A
|
1110
|
+
pages: w(A.pages, H, R),
|
1111
|
+
pageParams: w(A.pageParams, k, R)
|
1109
1112
|
};
|
1110
1113
|
};
|
1111
1114
|
if (s && i.length) {
|
1112
|
-
const
|
1115
|
+
const A = s === "backward", k = A ? Ji : Rn, C = {
|
1113
1116
|
pages: i,
|
1114
1117
|
pageParams: a
|
1115
|
-
}, M =
|
1116
|
-
o = await O(C, M,
|
1118
|
+
}, M = k(n, C);
|
1119
|
+
o = await O(C, M, A);
|
1117
1120
|
} else {
|
1118
|
-
const
|
1121
|
+
const A = e ?? i.length;
|
1119
1122
|
do {
|
1120
|
-
const
|
1121
|
-
if (c > 0 &&
|
1123
|
+
const k = c === 0 ? a[0] ?? n.initialPageParam : Rn(n, o);
|
1124
|
+
if (c > 0 && k == null)
|
1122
1125
|
break;
|
1123
|
-
o = await O(o,
|
1124
|
-
} while (c <
|
1126
|
+
o = await O(o, k), c++;
|
1127
|
+
} while (c < A);
|
1125
1128
|
}
|
1126
1129
|
return o;
|
1127
1130
|
};
|
1128
1131
|
t.options.persister ? t.fetchFn = () => {
|
1129
|
-
var g,
|
1130
|
-
return (
|
1132
|
+
var g, E;
|
1133
|
+
return (E = (g = t.options).persister) == null ? void 0 : E.call(
|
1131
1134
|
g,
|
1132
1135
|
l,
|
1133
1136
|
{
|
@@ -1157,26 +1160,26 @@ function Ji(e, { pages: t, pageParams: r }) {
|
|
1157
1160
|
}
|
1158
1161
|
var $, Pe, xe, ct, lt, De, ut, dt, ss, zi = (ss = class {
|
1159
1162
|
constructor(e = {}) {
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1163
|
+
T(this, $);
|
1164
|
+
T(this, Pe);
|
1165
|
+
T(this, xe);
|
1166
|
+
T(this, ct);
|
1167
|
+
T(this, lt);
|
1168
|
+
T(this, De);
|
1169
|
+
T(this, ut);
|
1170
|
+
T(this, dt);
|
1171
|
+
v(this, $, e.queryCache || new ji()), v(this, Pe, e.mutationCache || new Wi()), v(this, xe, e.defaultOptions || {}), v(this, ct, /* @__PURE__ */ new Map()), v(this, lt, /* @__PURE__ */ new Map()), v(this, De, 0);
|
1169
1172
|
}
|
1170
1173
|
mount() {
|
1171
|
-
Wt(this, De)._++, f(this, De) === 1 && (
|
1174
|
+
Wt(this, De)._++, f(this, De) === 1 && (v(this, ut, us.subscribe(async (e) => {
|
1172
1175
|
e && (await this.resumePausedMutations(), f(this, $).onFocus());
|
1173
|
-
})),
|
1176
|
+
})), v(this, dt, Nt.subscribe(async (e) => {
|
1174
1177
|
e && (await this.resumePausedMutations(), f(this, $).onOnline());
|
1175
1178
|
})));
|
1176
1179
|
}
|
1177
1180
|
unmount() {
|
1178
1181
|
var e, t;
|
1179
|
-
Wt(this, De)._--, f(this, De) === 0 && ((e = f(this, ut)) == null || e.call(this),
|
1182
|
+
Wt(this, De)._--, f(this, De) === 0 && ((e = f(this, ut)) == null || e.call(this), v(this, ut, void 0), (t = f(this, dt)) == null || t.call(this), v(this, dt, void 0));
|
1180
1183
|
}
|
1181
1184
|
isFetching(e) {
|
1182
1185
|
return f(this, $).findAll({ ...e, fetchStatus: "fetching" }).length;
|
@@ -1310,7 +1313,7 @@ var $, Pe, xe, ct, lt, De, ut, dt, ss, zi = (ss = class {
|
|
1310
1313
|
return f(this, xe);
|
1311
1314
|
}
|
1312
1315
|
setDefaultOptions(e) {
|
1313
|
-
|
1316
|
+
v(this, xe, e);
|
1314
1317
|
}
|
1315
1318
|
setQueryDefaults(e, t) {
|
1316
1319
|
f(this, ct).set(Ct(e), {
|
@@ -1382,19 +1385,19 @@ var $, Pe, xe, ct, lt, De, ut, dt, ss, zi = (ss = class {
|
|
1382
1385
|
cleanups: null,
|
1383
1386
|
context: null,
|
1384
1387
|
owner: null
|
1385
|
-
}, xr = {},
|
1388
|
+
}, xr = {}, N = null, L = null, Y = null, Ie = null, Tr = 0;
|
1386
1389
|
function qe(e, t) {
|
1387
|
-
const r = L, n =
|
1390
|
+
const r = L, n = N, s = e.length === 0, i = t === void 0 ? n : t, a = s ? bs : {
|
1388
1391
|
owned: null,
|
1389
1392
|
cleanups: null,
|
1390
1393
|
context: i ? i.context : null,
|
1391
1394
|
owner: i
|
1392
1395
|
}, o = s ? e : () => e(() => W(() => xt(a)));
|
1393
|
-
|
1396
|
+
N = a, L = null;
|
1394
1397
|
try {
|
1395
1398
|
return be(o, !0);
|
1396
1399
|
} finally {
|
1397
|
-
L = r,
|
1400
|
+
L = r, N = n;
|
1398
1401
|
}
|
1399
1402
|
}
|
1400
1403
|
function ne(e, t) {
|
@@ -1432,48 +1435,48 @@ function ta(e, t, r) {
|
|
1432
1435
|
let n, s, i;
|
1433
1436
|
n = !0, s = e, i = {};
|
1434
1437
|
let a = null, o = xr, c = !1, l = "initialValue" in i, d = typeof n == "function" && q(n);
|
1435
|
-
const u = /* @__PURE__ */ new Set(), [h, y] = (i.storage || ne)(i.initialValue), [m, g] = ne(void 0), [
|
1438
|
+
const u = /* @__PURE__ */ new Set(), [h, y] = (i.storage || ne)(i.initialValue), [m, g] = ne(void 0), [E, I] = ne(void 0, {
|
1436
1439
|
equals: !1
|
1437
|
-
}), [O,
|
1438
|
-
function R
|
1439
|
-
return a ===
|
1440
|
-
() => i.onHydrated(
|
1441
|
-
value:
|
1440
|
+
}), [O, A] = ne(l ? "ready" : "unresolved");
|
1441
|
+
function k(R, w, _, P) {
|
1442
|
+
return a === R && (a = null, P !== void 0 && (l = !0), (R === o || w === o) && i.onHydrated && queueMicrotask(
|
1443
|
+
() => i.onHydrated(P, {
|
1444
|
+
value: w
|
1442
1445
|
})
|
1443
|
-
), o = xr, C(
|
1446
|
+
), o = xr, C(w, _)), w;
|
1444
1447
|
}
|
1445
|
-
function C(
|
1448
|
+
function C(R, w) {
|
1446
1449
|
be(() => {
|
1447
|
-
|
1448
|
-
for (const
|
1450
|
+
w === void 0 && y(() => R), A(w !== void 0 ? "errored" : l ? "ready" : "unresolved"), g(w);
|
1451
|
+
for (const _ of u.keys()) _.decrement();
|
1449
1452
|
u.clear();
|
1450
1453
|
}, !1);
|
1451
1454
|
}
|
1452
1455
|
function M() {
|
1453
|
-
const
|
1454
|
-
if (
|
1455
|
-
return
|
1456
|
+
const R = h(), w = m();
|
1457
|
+
if (w !== void 0 && !a) throw w;
|
1458
|
+
return R;
|
1456
1459
|
}
|
1457
|
-
function H(
|
1458
|
-
if (
|
1460
|
+
function H(R = !0) {
|
1461
|
+
if (R !== !1 && c) return;
|
1459
1462
|
c = !1;
|
1460
|
-
const
|
1461
|
-
if (
|
1462
|
-
|
1463
|
+
const w = d ? d() : n;
|
1464
|
+
if (w == null || w === !1) {
|
1465
|
+
k(a, W(h));
|
1463
1466
|
return;
|
1464
1467
|
}
|
1465
|
-
const
|
1466
|
-
() => s(
|
1468
|
+
const _ = o !== xr ? o : W(
|
1469
|
+
() => s(w, {
|
1467
1470
|
value: h(),
|
1468
|
-
refetching:
|
1471
|
+
refetching: R
|
1469
1472
|
})
|
1470
1473
|
);
|
1471
|
-
return ea(
|
1472
|
-
|
1473
|
-
}, !1),
|
1474
|
-
(
|
1475
|
-
(
|
1476
|
-
))) : (
|
1474
|
+
return ea(_) ? (a = _, "value" in _ ? (_.status === "success" ? k(a, _.value, void 0, w) : k(a, void 0, zr(_.value), w), _) : (c = !0, queueMicrotask(() => c = !1), be(() => {
|
1475
|
+
A(l ? "refreshing" : "pending"), I();
|
1476
|
+
}, !1), _.then(
|
1477
|
+
(P) => k(_, P, void 0, w),
|
1478
|
+
(P) => k(_, void 0, zr(P), w)
|
1479
|
+
))) : (k(a, _, void 0, w), _);
|
1477
1480
|
}
|
1478
1481
|
return Object.defineProperties(M, {
|
1479
1482
|
state: {
|
@@ -1484,15 +1487,15 @@ function ta(e, t, r) {
|
|
1484
1487
|
},
|
1485
1488
|
loading: {
|
1486
1489
|
get() {
|
1487
|
-
const
|
1488
|
-
return
|
1490
|
+
const R = O();
|
1491
|
+
return R === "pending" || R === "refreshing";
|
1489
1492
|
}
|
1490
1493
|
},
|
1491
1494
|
latest: {
|
1492
1495
|
get() {
|
1493
1496
|
if (!l) return M();
|
1494
|
-
const
|
1495
|
-
if (
|
1497
|
+
const R = m();
|
1498
|
+
if (R && !a) throw R;
|
1496
1499
|
return h();
|
1497
1500
|
}
|
1498
1501
|
}
|
@@ -1536,28 +1539,28 @@ function ra(e) {
|
|
1536
1539
|
ws(() => W(e));
|
1537
1540
|
}
|
1538
1541
|
function Pt(e) {
|
1539
|
-
return
|
1542
|
+
return N === null || (N.cleanups === null ? N.cleanups = [e] : N.cleanups.push(e)), e;
|
1540
1543
|
}
|
1541
1544
|
function na() {
|
1542
|
-
return
|
1545
|
+
return N;
|
1543
1546
|
}
|
1544
1547
|
function sa(e, t) {
|
1545
|
-
const r =
|
1546
|
-
|
1548
|
+
const r = N, n = L;
|
1549
|
+
N = e, L = null;
|
1547
1550
|
try {
|
1548
1551
|
return be(t, !0);
|
1549
1552
|
} catch (s) {
|
1550
1553
|
fn(s);
|
1551
1554
|
} finally {
|
1552
|
-
|
1555
|
+
N = r, L = n;
|
1553
1556
|
}
|
1554
1557
|
}
|
1555
1558
|
function ia(e) {
|
1556
|
-
const t = L, r =
|
1559
|
+
const t = L, r = N;
|
1557
1560
|
return Promise.resolve().then(() => {
|
1558
|
-
L = t,
|
1561
|
+
L = t, N = r;
|
1559
1562
|
let n;
|
1560
|
-
return be(e, !1), L =
|
1563
|
+
return be(e, !1), L = N = null, n ? n.done : void 0;
|
1561
1564
|
});
|
1562
1565
|
}
|
1563
1566
|
var [aa, bu] = /* @__PURE__ */ ne(!1);
|
@@ -1574,7 +1577,7 @@ function vu(e, t) {
|
|
1574
1577
|
}
|
1575
1578
|
function Eu(e) {
|
1576
1579
|
let t;
|
1577
|
-
return
|
1580
|
+
return N && N.context && (t = N.context[e.id]) !== void 0 ? t : e.defaultValue;
|
1578
1581
|
}
|
1579
1582
|
function vs(e) {
|
1580
1583
|
const t = q(e), r = q(() => Qr(t()));
|
@@ -1619,14 +1622,14 @@ function St(e) {
|
|
1619
1622
|
}
|
1620
1623
|
function oa(e, t, r) {
|
1621
1624
|
let n;
|
1622
|
-
const s =
|
1623
|
-
L =
|
1625
|
+
const s = N, i = L;
|
1626
|
+
L = N = e;
|
1624
1627
|
try {
|
1625
1628
|
n = e.fn(t);
|
1626
1629
|
} catch (a) {
|
1627
1630
|
return e.pure && (e.state = Re, e.owned && e.owned.forEach(xt), e.owned = null), e.updatedAt = r + 1, fn(a);
|
1628
1631
|
} finally {
|
1629
|
-
L = i,
|
1632
|
+
L = i, N = s;
|
1630
1633
|
}
|
1631
1634
|
(!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? Ss(e, n) : e.value = n, e.updatedAt = r);
|
1632
1635
|
}
|
@@ -1640,11 +1643,11 @@ function Ir(e, t, r, n = Re, s) {
|
|
1640
1643
|
sourceSlots: null,
|
1641
1644
|
cleanups: null,
|
1642
1645
|
value: t,
|
1643
|
-
owner:
|
1644
|
-
context:
|
1646
|
+
owner: N,
|
1647
|
+
context: N ? N.context : null,
|
1645
1648
|
pure: r
|
1646
1649
|
};
|
1647
|
-
return
|
1650
|
+
return N === null || N !== bs && (N.owned ? N.owned.push(i) : N.owned = [i]), i;
|
1648
1651
|
}
|
1649
1652
|
function mr(e) {
|
1650
1653
|
if (e.state === 0) return;
|
@@ -1733,7 +1736,7 @@ function zr(e) {
|
|
1733
1736
|
cause: e
|
1734
1737
|
});
|
1735
1738
|
}
|
1736
|
-
function fn(e, t =
|
1739
|
+
function fn(e, t = N) {
|
1737
1740
|
throw zr(e);
|
1738
1741
|
}
|
1739
1742
|
function Qr(e) {
|
@@ -1752,8 +1755,8 @@ function ua(e, t) {
|
|
1752
1755
|
return function(n) {
|
1753
1756
|
let s;
|
1754
1757
|
return We(
|
1755
|
-
() => s = W(() => (
|
1756
|
-
...
|
1758
|
+
() => s = W(() => (N.context = {
|
1759
|
+
...N.context,
|
1757
1760
|
[e]: n.value
|
1758
1761
|
}, vs(() => n.children))),
|
1759
1762
|
void 0
|
@@ -1769,7 +1772,7 @@ function da(e, t, r = {}) {
|
|
1769
1772
|
return Pt(() => gr(i)), () => {
|
1770
1773
|
let c = e() || [], l = c.length, d, u;
|
1771
1774
|
return W(() => {
|
1772
|
-
let y, m, g,
|
1775
|
+
let y, m, g, E, I, O, A, k, C;
|
1773
1776
|
if (l === 0)
|
1774
1777
|
a !== 0 && (gr(i), i = [], n = [], s = [], a = 0, o && (o = [])), r.fallback && (n = [Yr], s[0] = qe((M) => (i[0] = M, r.fallback())), a = 1);
|
1775
1778
|
else if (a === 0) {
|
@@ -1777,15 +1780,15 @@ function da(e, t, r = {}) {
|
|
1777
1780
|
n[u] = c[u], s[u] = qe(h);
|
1778
1781
|
a = l;
|
1779
1782
|
} else {
|
1780
|
-
for (g = new Array(l),
|
1781
|
-
for (
|
1782
|
-
g[
|
1783
|
-
for (y = /* @__PURE__ */ new Map(), m = new Array(
|
1783
|
+
for (g = new Array(l), E = new Array(l), o && (I = new Array(l)), O = 0, A = Math.min(a, l); O < A && n[O] === c[O]; O++) ;
|
1784
|
+
for (A = a - 1, k = l - 1; A >= O && k >= O && n[A] === c[k]; A--, k--)
|
1785
|
+
g[k] = s[A], E[k] = i[A], o && (I[k] = o[A]);
|
1786
|
+
for (y = /* @__PURE__ */ new Map(), m = new Array(k + 1), u = k; u >= O; u--)
|
1784
1787
|
C = c[u], d = y.get(C), m[u] = d === void 0 ? -1 : d, y.set(C, u);
|
1785
|
-
for (d = O; d <=
|
1786
|
-
C = n[d], u = y.get(C), u !== void 0 && u !== -1 ? (g[u] = s[d],
|
1788
|
+
for (d = O; d <= A; d++)
|
1789
|
+
C = n[d], u = y.get(C), u !== void 0 && u !== -1 ? (g[u] = s[d], E[u] = i[d], o && (I[u] = o[d]), u = m[u], y.set(C, u)) : i[d]();
|
1787
1790
|
for (u = O; u < l; u++)
|
1788
|
-
u in g ? (s[u] = g[u], i[u] =
|
1791
|
+
u in g ? (s[u] = g[u], i[u] = E[u], o && (o[u] = I[u], o[u](u))) : s[u] = qe(h);
|
1789
1792
|
s = s.slice(0, a = l), n = c.slice(0);
|
1790
1793
|
}
|
1791
1794
|
return s;
|
@@ -2972,8 +2975,8 @@ var Hs = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
|
|
2972
2975
|
if (m === "__proto__" || m === "constructor" || m === "prototype")
|
2973
2976
|
throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
|
2974
2977
|
const g = Hs(y, t, r, n, [...s, m], [...i, e], a);
|
2975
|
-
d[m] = g.transformedValue, Ue(g.annotations) ? u[m] = g.annotations : Lt(g.annotations) && wt(g.annotations, (
|
2976
|
-
u[Ns(m) + "." +
|
2978
|
+
d[m] = g.transformedValue, Ue(g.annotations) ? u[m] = g.annotations : Lt(g.annotations) && wt(g.annotations, (E, I) => {
|
2979
|
+
u[Ns(m) + "." + I] = E;
|
2977
2980
|
});
|
2978
2981
|
});
|
2979
2982
|
const h = rn(u) ? {
|
@@ -3187,19 +3190,19 @@ var $u = (e, t = !1) => {
|
|
3187
3190
|
n.appendChild(s), n.id = "_goober", n.setAttribute("nonce", e), t ? t.appendChild(n) : document.head.appendChild(n);
|
3188
3191
|
}, ft, Ft, Bt, Vt, Ge, jt, ht, yt, mt, pt, gt, bt, Gt, is, To = (is = class {
|
3189
3192
|
constructor(e) {
|
3190
|
-
|
3191
|
-
|
3192
|
-
|
3193
|
-
|
3194
|
-
|
3195
|
-
|
3196
|
-
|
3197
|
-
|
3198
|
-
|
3199
|
-
|
3200
|
-
|
3201
|
-
|
3202
|
-
|
3193
|
+
T(this, ft);
|
3194
|
+
T(this, Ft);
|
3195
|
+
T(this, Bt);
|
3196
|
+
T(this, Vt);
|
3197
|
+
T(this, Ge, !1);
|
3198
|
+
T(this, jt);
|
3199
|
+
T(this, ht);
|
3200
|
+
T(this, yt);
|
3201
|
+
T(this, mt);
|
3202
|
+
T(this, pt);
|
3203
|
+
T(this, gt);
|
3204
|
+
T(this, bt);
|
3205
|
+
T(this, Gt);
|
3203
3206
|
const {
|
3204
3207
|
client: t,
|
3205
3208
|
queryFlavor: r,
|
@@ -3212,7 +3215,7 @@ var $u = (e, t = !1) => {
|
|
3212
3215
|
styleNonce: l,
|
3213
3216
|
shadowDOMTarget: d
|
3214
3217
|
} = e;
|
3215
|
-
|
3218
|
+
v(this, ft, ne(t)), v(this, Bt, r), v(this, Vt, n), v(this, Ft, s), v(this, jt, l), v(this, ht, d), v(this, yt, ne(i)), v(this, mt, ne(a)), v(this, pt, ne(o)), v(this, gt, ne(c));
|
3216
3219
|
}
|
3217
3220
|
setButtonPosition(e) {
|
3218
3221
|
f(this, yt)[1](e);
|
@@ -3235,7 +3238,7 @@ var $u = (e, t = !1) => {
|
|
3235
3238
|
const t = Ca(() => {
|
3236
3239
|
const r = this, [n] = f(this, yt), [s] = f(this, mt), [i] = f(this, pt), [a] = f(this, gt), [o] = f(this, ft);
|
3237
3240
|
let c;
|
3238
|
-
return f(this, bt) ? c = f(this, bt) : (c = ga(() => import("./
|
3241
|
+
return f(this, bt) ? c = f(this, bt) : (c = ga(() => import("./C2Q2AJ2U.cAIebCi6.js")), v(this, bt, c)), Ao(f(this, jt), f(this, ht)), ha(c, ma({
|
3239
3242
|
get queryFlavor() {
|
3240
3243
|
return f(r, Bt);
|
3241
3244
|
},
|
@@ -3266,13 +3269,13 @@ var $u = (e, t = !1) => {
|
|
3266
3269
|
}
|
3267
3270
|
}));
|
3268
3271
|
}, e);
|
3269
|
-
|
3272
|
+
v(this, Ge, !0), v(this, Gt, t);
|
3270
3273
|
}
|
3271
3274
|
unmount() {
|
3272
3275
|
var e;
|
3273
3276
|
if (!f(this, Ge))
|
3274
3277
|
throw new Error("Devtools is not mounted");
|
3275
|
-
(e = f(this, Gt)) == null || e.call(this),
|
3278
|
+
(e = f(this, Gt)) == null || e.call(this), v(this, Ge, !1);
|
3276
3279
|
}
|
3277
3280
|
}, ft = new WeakMap(), Ft = new WeakMap(), Bt = new WeakMap(), Vt = new WeakMap(), Ge = new WeakMap(), jt = new WeakMap(), ht = new WeakMap(), yt = new WeakMap(), mt = new WeakMap(), pt = new WeakMap(), gt = new WeakMap(), bt = new WeakMap(), Gt = new WeakMap(), is);
|
3278
3281
|
function Io(e) {
|
@@ -5105,13 +5108,13 @@ const Qc = (e) => Te(
|
|
5105
5108
|
key: `${rr}::${r}::@@user@@`
|
5106
5109
|
}), [y, m, , g] = tr({
|
5107
5110
|
key: `${rr}::${r}::@@access@@`
|
5108
|
-
}), [
|
5111
|
+
}), [E, I, , O] = tr(
|
5109
5112
|
{
|
5110
5113
|
key: `${rr}::${r}::@@refresh@@`
|
5111
5114
|
}
|
5112
|
-
), [
|
5115
|
+
), [A, k, , C] = tr({
|
5113
5116
|
key: `${rr}::${r}::@@nonce@@`
|
5114
|
-
}), M = new zc(y,
|
5117
|
+
}), M = new zc(y, E), H = Te(() => {
|
5115
5118
|
c("removeLocalStorage: removing local storage"), h(), g(), O(), C();
|
5116
5119
|
}, [
|
5117
5120
|
g,
|
@@ -5119,21 +5122,21 @@ const Qc = (e) => Te(
|
|
5119
5122
|
C,
|
5120
5123
|
O,
|
5121
5124
|
c
|
5122
|
-
]),
|
5123
|
-
(
|
5125
|
+
]), R = Te(
|
5126
|
+
(S) => {
|
5124
5127
|
c(
|
5125
5128
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
5126
|
-
|
5129
|
+
S
|
5127
5130
|
), o({
|
5128
5131
|
type: ii,
|
5129
5132
|
payload: {
|
5130
|
-
logoutReason:
|
5133
|
+
logoutReason: S || Ye
|
5131
5134
|
}
|
5132
5135
|
}), H(), o({ type: Tt, payload: { isLoading: !1 } });
|
5133
5136
|
},
|
5134
5137
|
[H, c]
|
5135
|
-
),
|
5136
|
-
async (
|
5138
|
+
), w = Te(
|
5139
|
+
async (S) => {
|
5137
5140
|
c("invalidateAndLogout: invalidating and logging out");
|
5138
5141
|
const { user: U } = a, D = (U == null ? void 0 : U.userId) || jc(d);
|
5139
5142
|
D || c(
|
@@ -5144,14 +5147,14 @@ const Qc = (e) => Te(
|
|
5144
5147
|
domain: n,
|
5145
5148
|
idToken: d,
|
5146
5149
|
endpoint: i
|
5147
|
-
}), S
|
5150
|
+
}), R(S || Ye);
|
5148
5151
|
},
|
5149
5152
|
[
|
5150
5153
|
d,
|
5151
5154
|
a,
|
5152
5155
|
r,
|
5153
5156
|
n,
|
5154
|
-
|
5157
|
+
R,
|
5155
5158
|
c,
|
5156
5159
|
i
|
5157
5160
|
]
|
@@ -5160,31 +5163,31 @@ const Qc = (e) => Te(
|
|
5160
5163
|
if (!l.current)
|
5161
5164
|
return a.isLoading && d !== null ? (async () => {
|
5162
5165
|
try {
|
5163
|
-
const
|
5164
|
-
|
5166
|
+
const S = await Et(d);
|
5167
|
+
S && S.payload[F.USER_ID_KEY] !== "" ? (c("useEffect: setting the authentication state"), o({
|
5165
5168
|
type: or,
|
5166
5169
|
payload: {
|
5167
|
-
authenticationType:
|
5170
|
+
authenticationType: S.payload[F.AUTH_TYPE_KEY],
|
5168
5171
|
user: {
|
5169
|
-
userId:
|
5170
|
-
username:
|
5171
|
-
email:
|
5172
|
+
userId: S.payload[F.USER_ID_KEY],
|
5173
|
+
username: S.payload[F.USERNAME_KEY],
|
5174
|
+
email: S.payload[F.EMAIL_KEY]
|
5172
5175
|
}
|
5173
5176
|
}
|
5174
|
-
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await
|
5177
|
+
})) : (c("useEffect: invalid JWT, invalidating and logging out"), await w(Ye));
|
5175
5178
|
} catch {
|
5176
5179
|
c(
|
5177
5180
|
"useEffect: exception validating JWT, invalidating and logging out"
|
5178
|
-
), await
|
5181
|
+
), await w(Ye);
|
5179
5182
|
}
|
5180
5183
|
})() : (c("useEffect: setting the loading state to false"), o({ type: Tt, payload: { isLoading: !1 } })), () => {
|
5181
5184
|
l.current = !0;
|
5182
5185
|
};
|
5183
|
-
}, [a.isLoading, d,
|
5184
|
-
const
|
5186
|
+
}, [a.isLoading, d, w, c]);
|
5187
|
+
const _ = async (S, U) => {
|
5185
5188
|
o({ type: Tt, payload: { isLoading: !0 } }), H();
|
5186
5189
|
const D = Br();
|
5187
|
-
|
5190
|
+
k(D), c("login: Logging in with password");
|
5188
5191
|
const { code_verifier: Je, code_challenge: Si } = await Pc(), wn = await Wc({
|
5189
5192
|
endpoint: i,
|
5190
5193
|
nonce: D,
|
@@ -5194,7 +5197,7 @@ const Qc = (e) => Te(
|
|
5194
5197
|
if (wn.status) {
|
5195
5198
|
const ze = await qc({
|
5196
5199
|
endpoint: i,
|
5197
|
-
username:
|
5200
|
+
username: S,
|
5198
5201
|
password: U,
|
5199
5202
|
clientId: r,
|
5200
5203
|
sessionExpiration: t,
|
@@ -5205,25 +5208,25 @@ const Qc = (e) => Te(
|
|
5205
5208
|
domain: n,
|
5206
5209
|
ua: navigator.userAgent
|
5207
5210
|
});
|
5208
|
-
return ze.status ? (u(ze.idToken), m(ze.accessToken),
|
5211
|
+
return ze.status ? (u(ze.idToken), m(ze.accessToken), I(ze.refreshToken), o({
|
5209
5212
|
type: or,
|
5210
5213
|
payload: {
|
5211
5214
|
authenticationType: Rt.CODE,
|
5212
5215
|
user: {
|
5213
5216
|
userId: ze.userId,
|
5214
|
-
username:
|
5217
|
+
username: S,
|
5215
5218
|
email: ze.email
|
5216
5219
|
}
|
5217
5220
|
}
|
5218
|
-
}), !0) : (
|
5221
|
+
}), !0) : (R(Vr), !1);
|
5219
5222
|
}
|
5220
5223
|
return !1;
|
5221
|
-
},
|
5222
|
-
|
5224
|
+
}, P = async (S) => {
|
5225
|
+
S == null || S.preventDefault(), await w(Kc);
|
5223
5226
|
}, X = async () => {
|
5224
|
-
const { isAuthenticated:
|
5227
|
+
const { isAuthenticated: S, user: U } = a;
|
5225
5228
|
try {
|
5226
|
-
if (
|
5229
|
+
if (S && U && U.userId) {
|
5227
5230
|
if (y) {
|
5228
5231
|
c("getAccessToken");
|
5229
5232
|
const Je = await Et(y);
|
@@ -5235,23 +5238,23 @@ const Qc = (e) => Te(
|
|
5235
5238
|
endpoint: i,
|
5236
5239
|
clientId: r,
|
5237
5240
|
userId: U.userId,
|
5238
|
-
nonce:
|
5241
|
+
nonce: A,
|
5239
5242
|
domain: n
|
5240
5243
|
});
|
5241
|
-
return D.status && D.status === "success" && D.newAccessToken ? (m(D.newAccessToken),
|
5244
|
+
return D.status && D.status === "success" && D.newAccessToken ? (m(D.newAccessToken), I(D.newRefreshToken), D.newAccessToken) : (c(
|
5242
5245
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
5243
|
-
), await
|
5246
|
+
), await w(Ye), "");
|
5244
5247
|
}
|
5245
5248
|
return c(
|
5246
5249
|
"getAccessToken: user is not authenticated, cannot get access token"
|
5247
|
-
), await
|
5250
|
+
), await w(Ye), "";
|
5248
5251
|
} catch {
|
5249
5252
|
return c(
|
5250
5253
|
"getAccessToken: exception occurred, invalidating and logging out"
|
5251
|
-
), await
|
5254
|
+
), await w(Hc), "";
|
5252
5255
|
}
|
5253
5256
|
}, Z = () => a.isAuthenticated && d ? d : "", ue = async () => {
|
5254
|
-
const { user:
|
5257
|
+
const { user: S } = a;
|
5255
5258
|
let U = await Ze({
|
5256
5259
|
endpoint: i,
|
5257
5260
|
accessToken: y,
|
@@ -5259,8 +5262,8 @@ const Qc = (e) => Te(
|
|
5259
5262
|
type: Xe.GET_REGISTRATION_OPTIONS,
|
5260
5263
|
params: {
|
5261
5264
|
clientId: r,
|
5262
|
-
id:
|
5263
|
-
username:
|
5265
|
+
id: S == null ? void 0 : S.userId,
|
5266
|
+
username: S == null ? void 0 : S.username
|
5264
5267
|
}
|
5265
5268
|
});
|
5266
5269
|
if (U.status)
|
@@ -5275,8 +5278,8 @@ const Qc = (e) => Te(
|
|
5275
5278
|
type: Xe.VERIFY_REGISTRATION,
|
5276
5279
|
params: {
|
5277
5280
|
clientId: r,
|
5278
|
-
id:
|
5279
|
-
username:
|
5281
|
+
id: S == null ? void 0 : S.userId,
|
5282
|
+
username: S == null ? void 0 : S.username,
|
5280
5283
|
registration: D
|
5281
5284
|
}
|
5282
5285
|
}), !!(U.status && U.data.length > 0);
|
@@ -5288,8 +5291,8 @@ const Qc = (e) => Te(
|
|
5288
5291
|
type: Xe.VERIFY_REGISTRATION,
|
5289
5292
|
params: {
|
5290
5293
|
clientId: r,
|
5291
|
-
id:
|
5292
|
-
username:
|
5294
|
+
id: S == null ? void 0 : S.userId,
|
5295
|
+
username: S == null ? void 0 : S.username,
|
5293
5296
|
registration: {}
|
5294
5297
|
}
|
5295
5298
|
}), !1;
|
@@ -5297,8 +5300,8 @@ const Qc = (e) => Te(
|
|
5297
5300
|
return !1;
|
5298
5301
|
}, Oe = async () => {
|
5299
5302
|
o({ type: Tt, payload: { isLoading: !0 } }), H();
|
5300
|
-
const
|
5301
|
-
|
5303
|
+
const S = Br();
|
5304
|
+
k(S), c("loginWithPasskey");
|
5302
5305
|
const U = Br();
|
5303
5306
|
let D = await Ze({
|
5304
5307
|
endpoint: i,
|
@@ -5324,12 +5327,12 @@ const Qc = (e) => Te(
|
|
5324
5327
|
clientId: r,
|
5325
5328
|
id: U,
|
5326
5329
|
authentication: Je,
|
5327
|
-
nonce:
|
5330
|
+
nonce: S,
|
5328
5331
|
domain: n,
|
5329
5332
|
sessionExpiration: t,
|
5330
5333
|
ua: navigator.userAgent
|
5331
5334
|
}
|
5332
|
-
}), D.data.status === qt ? (u(D.data.idToken), m(D.data.accessToken),
|
5335
|
+
}), D.data.status === qt ? (u(D.data.idToken), m(D.data.accessToken), I(D.data.refreshToken), o({
|
5333
5336
|
type: or,
|
5334
5337
|
payload: {
|
5335
5338
|
authenticationType: Rt.PASSKEY,
|
@@ -5339,7 +5342,7 @@ const Qc = (e) => Te(
|
|
5339
5342
|
email: D.data.email
|
5340
5343
|
}
|
5341
5344
|
}
|
5342
|
-
}), !0) : (
|
5345
|
+
}), !0) : (R(Vr), !1);
|
5343
5346
|
} catch {
|
5344
5347
|
return await Ze({
|
5345
5348
|
endpoint: i,
|
@@ -5350,11 +5353,11 @@ const Qc = (e) => Te(
|
|
5350
5353
|
clientId: r,
|
5351
5354
|
id: U,
|
5352
5355
|
authentication: {},
|
5353
|
-
nonce:
|
5356
|
+
nonce: S,
|
5354
5357
|
domain: n,
|
5355
5358
|
sessionExpiration: t
|
5356
5359
|
}
|
5357
|
-
}),
|
5360
|
+
}), R(Vr), !1;
|
5358
5361
|
}
|
5359
5362
|
return !1;
|
5360
5363
|
};
|
@@ -5363,8 +5366,8 @@ const Qc = (e) => Te(
|
|
5363
5366
|
{
|
5364
5367
|
value: {
|
5365
5368
|
...a,
|
5366
|
-
login:
|
5367
|
-
logout:
|
5369
|
+
login: _,
|
5370
|
+
logout: P,
|
5368
5371
|
getAccessToken: X,
|
5369
5372
|
getIdToken: Z,
|
5370
5373
|
registeringForPasskey: ue,
|
@@ -5763,7 +5766,7 @@ const Qc = (e) => Te(
|
|
5763
5766
|
truncate: y,
|
5764
5767
|
align: m,
|
5765
5768
|
radius: g,
|
5766
|
-
animated:
|
5769
|
+
animated: E
|
5767
5770
|
}) => (h || (h = "primary"), r ? b(qn, t) : b(
|
5768
5771
|
qn,
|
5769
5772
|
al({
|
@@ -5780,7 +5783,7 @@ const Qc = (e) => Te(
|
|
5780
5783
|
labelRight: l,
|
5781
5784
|
labelLeft: d,
|
5782
5785
|
align: m,
|
5783
|
-
animated:
|
5786
|
+
animated: E
|
5784
5787
|
}),
|
5785
5788
|
il({ type: e, size: o, labelRight: l, labelLeft: d }),
|
5786
5789
|
dl({ mode: n, variant: h, noBorder: c }),
|
@@ -5792,7 +5795,7 @@ const Qc = (e) => Te(
|
|
5792
5795
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
5793
5796
|
},
|
5794
5797
|
b({
|
5795
|
-
"transition-[width] duration-300 ease-in-out": e === Cr &&
|
5798
|
+
"transition-[width] duration-300 ease-in-out": e === Cr && E
|
5796
5799
|
}),
|
5797
5800
|
t
|
5798
5801
|
)), ml = (e, t, r) => {
|
@@ -5922,11 +5925,11 @@ const wl = {
|
|
5922
5925
|
labelLeft: y,
|
5923
5926
|
noBackground: m = !1,
|
5924
5927
|
align: g = "center",
|
5925
|
-
radius:
|
5926
|
-
variant:
|
5928
|
+
radius: E = "large",
|
5929
|
+
variant: I = "primary",
|
5927
5930
|
iconClassName: O,
|
5928
|
-
animated:
|
5929
|
-
...
|
5931
|
+
animated: A = !1,
|
5932
|
+
...k
|
5930
5933
|
}, C) => {
|
5931
5934
|
const M = yi({
|
5932
5935
|
type: Cr,
|
@@ -5942,23 +5945,23 @@ const wl = {
|
|
5942
5945
|
labelLeft: y,
|
5943
5946
|
noBackground: m,
|
5944
5947
|
align: g,
|
5945
|
-
radius:
|
5946
|
-
variant:
|
5947
|
-
animated:
|
5948
|
-
}), H = hl({ mode: r, raw: o, iconClassName: O }),
|
5948
|
+
radius: E,
|
5949
|
+
variant: I,
|
5950
|
+
animated: A
|
5951
|
+
}), H = hl({ mode: r, raw: o, iconClassName: O }), R = yl({ animated: A }), [w, _] = jr(), [P, X] = jr(), [Z, ue] = jr(), Oe = Q(0), S = Q(null), U = gl([C, S]);
|
5949
5952
|
return ur(() => {
|
5950
|
-
Z && Z.current &&
|
5951
|
-
}, [ue, Z, u, c,
|
5952
|
-
|
5953
|
+
Z && Z.current && A && (Oe.current = ue.width + vl[u] + (c ? 0 : El));
|
5954
|
+
}, [ue, Z, u, c, A]), ur(() => {
|
5955
|
+
S && S.current && A && (h && w && _.width > 0 ? (w.current && (w.current.style.opacity = "100"), S.current.style.width = `${_.width + Oe.current}px`) : y && X.width > 0 ? (P.current && (P.current.style.opacity = "100"), S.current.style.width = `${X.width + Oe.current}px`) : (w.current && (w.current.style.opacity = "0"), P.current && (P.current.style.opacity = "0"), S.current.style.width = `${wl[u]}px`));
|
5953
5956
|
}, [
|
5954
|
-
|
5957
|
+
_,
|
5955
5958
|
h,
|
5956
|
-
|
5959
|
+
w,
|
5957
5960
|
X,
|
5958
5961
|
y,
|
5959
|
-
|
5962
|
+
P,
|
5960
5963
|
u,
|
5961
|
-
|
5964
|
+
A
|
5962
5965
|
]), /* @__PURE__ */ re(
|
5963
5966
|
gn,
|
5964
5967
|
{
|
@@ -5967,14 +5970,14 @@ const wl = {
|
|
5967
5970
|
disabled: t,
|
5968
5971
|
type: a,
|
5969
5972
|
"aria-label": l || d,
|
5970
|
-
...
|
5973
|
+
...k,
|
5971
5974
|
children: [
|
5972
5975
|
/* @__PURE__ */ p(
|
5973
5976
|
Wn,
|
5974
5977
|
{
|
5975
5978
|
label: y,
|
5976
|
-
labelRef:
|
5977
|
-
labelClass:
|
5979
|
+
labelRef: P,
|
5980
|
+
labelClass: R,
|
5978
5981
|
labelInnerClass: "pr-2"
|
5979
5982
|
}
|
5980
5983
|
),
|
@@ -5983,8 +5986,8 @@ const wl = {
|
|
5983
5986
|
Wn,
|
5984
5987
|
{
|
5985
5988
|
label: h,
|
5986
|
-
labelRef:
|
5987
|
-
labelClass:
|
5989
|
+
labelRef: w,
|
5990
|
+
labelClass: R,
|
5988
5991
|
labelInnerClass: "pl-2"
|
5989
5992
|
}
|
5990
5993
|
)
|
@@ -6119,7 +6122,7 @@ const kl = ({
|
|
6119
6122
|
...u
|
6120
6123
|
}) => {
|
6121
6124
|
let h = null, y = null;
|
6122
|
-
const m = typeof e == "string", g = Al(cr),
|
6125
|
+
const m = typeof e == "string", g = Al(cr), E = Tl({
|
6123
6126
|
className: i,
|
6124
6127
|
headerClassName: t,
|
6125
6128
|
bodyClassName: a,
|
@@ -6128,13 +6131,13 @@ const kl = ({
|
|
6128
6131
|
compact: l,
|
6129
6132
|
noBorder: d
|
6130
6133
|
});
|
6131
|
-
return m ? (h = g, y = h) : !m && e && o ? (h = null, y = o) : !m && e && !o ? (h = g, y = h) : (h = null, y = o || null), /* @__PURE__ */ p("div", { className:
|
6134
|
+
return m ? (h = g, y = h) : !m && e && o ? (h = null, y = o) : !m && e && !o ? (h = g, y = h) : (h = null, y = o || null), /* @__PURE__ */ p("div", { className: E.wrapper, children: /* @__PURE__ */ re(
|
6132
6135
|
"section",
|
6133
6136
|
{
|
6134
6137
|
...y && {
|
6135
6138
|
"aria-labelledby": y
|
6136
6139
|
},
|
6137
|
-
className:
|
6140
|
+
className: E.body,
|
6138
6141
|
...u,
|
6139
6142
|
children: [
|
6140
6143
|
/* @__PURE__ */ p(
|
@@ -6142,12 +6145,12 @@ const kl = ({
|
|
6142
6145
|
{
|
6143
6146
|
...h && { id: h },
|
6144
6147
|
content: e,
|
6145
|
-
className:
|
6148
|
+
className: E.header,
|
6146
6149
|
userAriaLabelledby: o
|
6147
6150
|
}
|
6148
6151
|
),
|
6149
6152
|
/* @__PURE__ */ p("div", { children: s }),
|
6150
|
-
r ? /* @__PURE__ */ p("div", { className:
|
6153
|
+
r ? /* @__PURE__ */ p("div", { className: E.footer, children: r }) : null
|
6151
6154
|
]
|
6152
6155
|
}
|
6153
6156
|
) });
|
@@ -6812,14 +6815,14 @@ const Gl = ({
|
|
6812
6815
|
raw: r,
|
6813
6816
|
mode: a,
|
6814
6817
|
disabled: n
|
6815
|
-
}),
|
6818
|
+
}), E = r ? void 0 : b("absolute right-3", l);
|
6816
6819
|
return {
|
6817
6820
|
wrapper: d,
|
6818
6821
|
input: h,
|
6819
6822
|
accessibleLabel: y,
|
6820
6823
|
visibleLabel: m,
|
6821
6824
|
helperText: g,
|
6822
|
-
rightElement:
|
6825
|
+
rightElement: E
|
6823
6826
|
};
|
6824
6827
|
}, bn = ke.forwardRef(
|
6825
6828
|
({
|
@@ -6839,11 +6842,11 @@ const Gl = ({
|
|
6839
6842
|
type: y = "text",
|
6840
6843
|
helperText: m = "",
|
6841
6844
|
rightElement: g,
|
6842
|
-
rightElementClassName:
|
6843
|
-
size:
|
6845
|
+
rightElementClassName: E,
|
6846
|
+
size: I = "md",
|
6844
6847
|
...O
|
6845
|
-
},
|
6846
|
-
const [
|
6848
|
+
}, A) => {
|
6849
|
+
const [k, C] = Kl(), [M, H] = Ae(0), R = Hl({ id: e, prefix: `${pi}-` }), w = `${t} error, ${m}`, _ = Q(null), P = Q(null), X = {
|
6847
6850
|
xs: { label: "-25px", helperText: "30px" },
|
6848
6851
|
sm: { label: "-29px", helperText: "34px" },
|
6849
6852
|
md: { label: "-33px", helperText: "38px" },
|
@@ -6858,23 +6861,23 @@ const Gl = ({
|
|
6858
6861
|
disabled: l,
|
6859
6862
|
noBorder: d,
|
6860
6863
|
mode: o,
|
6861
|
-
size:
|
6862
|
-
rightElementClassName:
|
6864
|
+
size: I,
|
6865
|
+
rightElementClassName: E
|
6863
6866
|
});
|
6864
6867
|
return ur(() => {
|
6865
6868
|
C && C.width && H(C.width + 18 + 10);
|
6866
6869
|
}, [C]), ur(() => {
|
6867
6870
|
var ue, Oe;
|
6868
|
-
const { label:
|
6869
|
-
(ue =
|
6871
|
+
const { label: S, helperText: U } = X[I];
|
6872
|
+
(ue = _ == null ? void 0 : _.current) == null || ue.style.setProperty("--av-text-input-label", S), (Oe = P == null ? void 0 : P.current) == null || Oe.style.setProperty(
|
6870
6873
|
"--av-text-input-helper-text",
|
6871
6874
|
U
|
6872
6875
|
);
|
6873
|
-
}, [
|
6876
|
+
}, [I]), /* @__PURE__ */ re("div", { className: Z.wrapper, children: [
|
6874
6877
|
/* @__PURE__ */ p(
|
6875
6878
|
"label",
|
6876
6879
|
{
|
6877
|
-
htmlFor:
|
6880
|
+
htmlFor: R,
|
6878
6881
|
id: u,
|
6879
6882
|
className: Z.accessibleLabel,
|
6880
6883
|
children: r
|
@@ -6883,14 +6886,14 @@ const Gl = ({
|
|
6883
6886
|
/* @__PURE__ */ p(
|
6884
6887
|
"input",
|
6885
6888
|
{
|
6886
|
-
ref:
|
6887
|
-
id:
|
6889
|
+
ref: A,
|
6890
|
+
id: R,
|
6888
6891
|
name: t,
|
6889
6892
|
type: y,
|
6890
6893
|
disabled: l,
|
6891
6894
|
placeholder: s ? void 0 : " ",
|
6892
6895
|
className: Z.input,
|
6893
|
-
...m && { "aria-describedby": `${
|
6896
|
+
...m && { "aria-describedby": `${R}-helper` },
|
6894
6897
|
...n && { "aria-invalid": "true" },
|
6895
6898
|
...g && !s && { style: { paddingRight: M } },
|
6896
6899
|
...O
|
@@ -6899,9 +6902,9 @@ const Gl = ({
|
|
6899
6902
|
!s && !h && /* @__PURE__ */ p(
|
6900
6903
|
"label",
|
6901
6904
|
{
|
6902
|
-
ref:
|
6905
|
+
ref: _,
|
6903
6906
|
"aria-hidden": !0,
|
6904
|
-
htmlFor:
|
6907
|
+
htmlFor: R,
|
6905
6908
|
className: Z.visibleLabel,
|
6906
6909
|
children: r
|
6907
6910
|
}
|
@@ -6909,8 +6912,8 @@ const Gl = ({
|
|
6909
6912
|
m && /* @__PURE__ */ p(
|
6910
6913
|
"div",
|
6911
6914
|
{
|
6912
|
-
ref:
|
6913
|
-
id: `${
|
6915
|
+
ref: P,
|
6916
|
+
id: `${R}-helper`,
|
6914
6917
|
className: Z.helperText,
|
6915
6918
|
children: m
|
6916
6919
|
}
|
@@ -6918,12 +6921,12 @@ const Gl = ({
|
|
6918
6921
|
g && /* @__PURE__ */ p(
|
6919
6922
|
"div",
|
6920
6923
|
{
|
6921
|
-
ref:
|
6924
|
+
ref: k,
|
6922
6925
|
className: Z.rightElement,
|
6923
6926
|
children: g
|
6924
6927
|
}
|
6925
6928
|
),
|
6926
|
-
n && m && /* @__PURE__ */ p(wi, { politeness: "polite", clearAnnouncementDelay: 500, children:
|
6929
|
+
n && m && /* @__PURE__ */ p(wi, { politeness: "polite", clearAnnouncementDelay: 500, children: w })
|
6927
6930
|
] });
|
6928
6931
|
}
|
6929
6932
|
);
|
@@ -6953,51 +6956,51 @@ const Xl = 500, Zl = 5e3, eu = 2e4, vi = ke.forwardRef(
|
|
6953
6956
|
const [h, y] = Ae(!0), [m, g] = Ae({
|
6954
6957
|
message: null,
|
6955
6958
|
politeness: null
|
6956
|
-
}),
|
6957
|
-
|
6958
|
-
|
6959
|
+
}), E = Q(!0), I = Q(null), O = Q(null), A = Yl([u, O]), k = h ? "Show" : "Hide", C = () => {
|
6960
|
+
I.current && clearTimeout(I.current), E.current || (I.current = setTimeout(() => {
|
6961
|
+
E.current = !0, y(!0), g({
|
6959
6962
|
announcementTimeout: Zl,
|
6960
6963
|
politeness: "polite",
|
6961
6964
|
message: `${r} hiding characters`
|
6962
6965
|
}), s && s(!0);
|
6963
6966
|
}, eu));
|
6964
|
-
}, M = (
|
6965
|
-
|
6966
|
-
const X = !
|
6967
|
-
|
6967
|
+
}, M = (P) => {
|
6968
|
+
P.preventDefault();
|
6969
|
+
const X = !E.current;
|
6970
|
+
E.current = X, C(), y(X), g({
|
6968
6971
|
announcementTimeout: Xl,
|
6969
6972
|
politeness: "assertive",
|
6970
6973
|
message: X ? "Characters hidden" : "Characters showing"
|
6971
6974
|
}), s && s(X);
|
6972
|
-
}, H = (
|
6975
|
+
}, H = (P) => {
|
6973
6976
|
var X;
|
6974
|
-
const { relatedTarget: Z } =
|
6977
|
+
const { relatedTarget: Z } = P, ue = (X = O.current) == null ? void 0 : X.parentElement;
|
6975
6978
|
ue != null && ue.contains(Z) || c && c();
|
6976
|
-
},
|
6977
|
-
C(), a && a(
|
6978
|
-
},
|
6979
|
-
C(), o && o(
|
6980
|
-
},
|
6981
|
-
C(), i && i(
|
6979
|
+
}, R = (P) => {
|
6980
|
+
C(), a && a(P), H(P);
|
6981
|
+
}, w = (P) => {
|
6982
|
+
C(), o && o(P);
|
6983
|
+
}, _ = (P) => {
|
6984
|
+
C(), i && i(P);
|
6982
6985
|
};
|
6983
6986
|
return ge(() => () => {
|
6984
|
-
|
6987
|
+
I.current && clearTimeout(I.current);
|
6985
6988
|
}, []), /* @__PURE__ */ re(lr, { children: [
|
6986
6989
|
/* @__PURE__ */ p(
|
6987
6990
|
bn,
|
6988
6991
|
{
|
6989
|
-
ref:
|
6992
|
+
ref: A,
|
6990
6993
|
name: e,
|
6991
6994
|
label: r,
|
6992
6995
|
labelHidden: n,
|
6993
6996
|
type: h ? "password" : "text",
|
6994
6997
|
disabled: t,
|
6995
|
-
onBlur:
|
6996
|
-
onFocus:
|
6997
|
-
onChange:
|
6998
|
+
onBlur: R,
|
6999
|
+
onFocus: w,
|
7000
|
+
onChange: _,
|
6998
7001
|
rightElement: ke.cloneElement(l, {
|
6999
7002
|
ref: u,
|
7000
|
-
label:
|
7003
|
+
label: k,
|
7001
7004
|
onClick: M,
|
7002
7005
|
onBlur: H,
|
7003
7006
|
disabled: t
|
@@ -7214,7 +7217,7 @@ const tu = "ASK! ME! ANYTHING!", Ei = "Callisto", ru = "Log in", nu = "Sign in w
|
|
7214
7217
|
) });
|
7215
7218
|
}, ou = new URL(document.location.href).searchParams, zn = !!ou.get("debug") || !1, cu = ki(() => import(
|
7216
7219
|
/* webpackChunkName: "LazyApp" */
|
7217
|
-
"./App.
|
7220
|
+
"./App.DLjCVgG5.js"
|
7218
7221
|
).then((e) => e.App)), lu = new zi(), Qn = ({
|
7219
7222
|
isComponent: e,
|
7220
7223
|
headerHeight: t
|