@s8lab/sso-client 1.1.6 → 1.1.7
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/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +385 -380
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as h,
|
|
1
|
+
import { jsx as h, Fragment as tn, jsxs as z } from "react/jsx-runtime";
|
|
2
2
|
import * as w from "react";
|
|
3
|
-
import Ne, { createContext as Rs, useState as Ae, useRef as lt, useCallback as gt, useEffect as qa, useMemo as
|
|
3
|
+
import Ne, { createContext as Rs, useState as Ae, useRef as lt, useCallback as gt, useEffect as qa, useMemo as Sn, useContext as Os, forwardRef as yr, createElement as Ut, Component as Ga, useImperativeHandle as Ha } from "react";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import './index.css';const
|
|
5
|
+
import './index.css';const Cn = /* @__PURE__ */ new Set();
|
|
6
6
|
function Ya(t) {
|
|
7
|
-
if (
|
|
8
|
-
|
|
7
|
+
if (Cn.has(t)) return;
|
|
8
|
+
Cn.add(t);
|
|
9
9
|
const e = document.createElement("script");
|
|
10
10
|
e.src = `https://www.google.com/recaptcha/api.js?render=${t}`, e.async = !0, document.head.appendChild(e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function rn(t, e) {
|
|
13
13
|
return new Promise((r, n) => {
|
|
14
14
|
const s = () => {
|
|
15
15
|
window.grecaptcha.ready(() => {
|
|
@@ -35,7 +35,7 @@ class Ps extends Error {
|
|
|
35
35
|
super(r), this.status = e, this.name = "HttpError";
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
async function
|
|
38
|
+
async function En(t, e) {
|
|
39
39
|
const r = await fetch(t, {
|
|
40
40
|
...e,
|
|
41
41
|
credentials: "include",
|
|
@@ -56,14 +56,14 @@ async function Cn(t, e) {
|
|
|
56
56
|
if (r.status !== 204)
|
|
57
57
|
return r.json();
|
|
58
58
|
}
|
|
59
|
-
let
|
|
59
|
+
let Lt = null;
|
|
60
60
|
function Ka(t) {
|
|
61
|
-
return
|
|
61
|
+
return Lt || (Lt = fetch(`${t}/auth/refresh`, {
|
|
62
62
|
method: "POST",
|
|
63
63
|
credentials: "include"
|
|
64
64
|
}).then((e) => e.ok).catch(() => !1).finally(() => {
|
|
65
|
-
|
|
66
|
-
}),
|
|
65
|
+
Lt = null;
|
|
66
|
+
}), Lt);
|
|
67
67
|
}
|
|
68
68
|
function Xl({
|
|
69
69
|
children: t,
|
|
@@ -80,8 +80,8 @@ function Xl({
|
|
|
80
80
|
d.current = e;
|
|
81
81
|
const p = lt(r);
|
|
82
82
|
p.current = r;
|
|
83
|
-
const m = lt(n ??
|
|
84
|
-
m.current = n ??
|
|
83
|
+
const m = lt(n ?? En);
|
|
84
|
+
m.current = n ?? En;
|
|
85
85
|
const b = gt(async (j, U = {}) => {
|
|
86
86
|
const B = () => m.current(j, {
|
|
87
87
|
...U,
|
|
@@ -185,7 +185,7 @@ function Xl({
|
|
|
185
185
|
f(
|
|
186
186
|
(U) => U.user ? { ...U, user: { ...U.user, ...j } } : U
|
|
187
187
|
);
|
|
188
|
-
}, []), x =
|
|
188
|
+
}, []), x = Sn(
|
|
189
189
|
() => ({
|
|
190
190
|
...l,
|
|
191
191
|
login: v,
|
|
@@ -196,33 +196,37 @@ function Xl({
|
|
|
196
196
|
updateUser: I
|
|
197
197
|
}),
|
|
198
198
|
[l, v, S, k, C, D, I]
|
|
199
|
-
), Z =
|
|
199
|
+
), Z = Sn(
|
|
200
200
|
() => ({ config: a, configLoading: o, apiUrl: e, rootPath: s }),
|
|
201
201
|
[a, o, e, s]
|
|
202
202
|
);
|
|
203
203
|
return /* @__PURE__ */ h(As.Provider, { value: Z, children: /* @__PURE__ */ h(Ns.Provider, { value: x, children: t }) });
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Pt() {
|
|
206
206
|
const t = Os(Ns);
|
|
207
207
|
if (!t) throw new Error("useAuth must be used inside <AuthProvider>");
|
|
208
208
|
return t;
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function gr() {
|
|
211
211
|
const t = Os(As);
|
|
212
212
|
if (!t) throw new Error("useAuthConfig must be used inside <AuthProvider>");
|
|
213
213
|
return t;
|
|
214
214
|
}
|
|
215
|
+
function Ql({ children: t }) {
|
|
216
|
+
const { isAuthenticated: e, isLoading: r } = Pt(), { rootPath: n } = gr();
|
|
217
|
+
return r ? null : e ? (window.location.replace(n), null) : /* @__PURE__ */ h(tn, { children: t });
|
|
218
|
+
}
|
|
215
219
|
var qt = (t) => t.type === "checkbox", vt = (t) => t instanceof Date, Ve = (t) => t == null;
|
|
216
220
|
const Is = (t) => typeof t == "object";
|
|
217
221
|
var _e = (t) => !Ve(t) && !Array.isArray(t) && Is(t) && !vt(t), Ja = (t) => _e(t) && t.target ? qt(t.target) ? t.target.checked : t.target.value : t, Ls = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Xa = (t, e) => t.has(Ls(e)), Qa = (t) => {
|
|
218
222
|
const e = t.constructor && t.constructor.prototype;
|
|
219
223
|
return _e(e) && e.hasOwnProperty("isPrototypeOf");
|
|
220
|
-
},
|
|
224
|
+
}, nn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
221
225
|
function Ce(t) {
|
|
222
226
|
if (t instanceof Date)
|
|
223
227
|
return new Date(t);
|
|
224
228
|
const e = typeof FileList < "u" && t instanceof FileList;
|
|
225
|
-
if (
|
|
229
|
+
if (nn && (t instanceof Blob || e))
|
|
226
230
|
return t;
|
|
227
231
|
const r = Array.isArray(t);
|
|
228
232
|
if (!r && !(_e(t) && Qa(t)))
|
|
@@ -232,14 +236,14 @@ function Ce(t) {
|
|
|
232
236
|
Object.prototype.hasOwnProperty.call(t, s) && (n[s] = Ce(t[s]));
|
|
233
237
|
return n;
|
|
234
238
|
}
|
|
235
|
-
var
|
|
239
|
+
var vr = (t) => /^\w*$/.test(t), xe = (t) => t === void 0, sn = (t) => Array.isArray(t) ? t.filter(Boolean) : [], an = (t) => sn(t.replace(/["|']|\]/g, "").split(/\.|\[/)), L = (t, e, r) => {
|
|
236
240
|
if (!e || !_e(t))
|
|
237
241
|
return r;
|
|
238
|
-
const n = (
|
|
242
|
+
const n = (vr(e) ? [e] : an(e)).reduce((s, a) => Ve(s) ? s : s[a], t);
|
|
239
243
|
return xe(n) || n === t ? xe(t[e]) ? r : t[e] : n;
|
|
240
244
|
}, Xe = (t) => typeof t == "boolean", Ye = (t) => typeof t == "function", ye = (t, e, r) => {
|
|
241
245
|
let n = -1;
|
|
242
|
-
const s =
|
|
246
|
+
const s = vr(e) ? [e] : an(e), a = s.length, i = a - 1;
|
|
243
247
|
for (; ++n < a; ) {
|
|
244
248
|
const o = s[n];
|
|
245
249
|
let c = r;
|
|
@@ -272,7 +276,7 @@ const _t = {
|
|
|
272
276
|
pattern: "pattern",
|
|
273
277
|
required: "required",
|
|
274
278
|
validate: "validate"
|
|
275
|
-
},
|
|
279
|
+
}, Sr = "form", js = "root", ei = Ne.createContext(null);
|
|
276
280
|
ei.displayName = "HookFormControlContext";
|
|
277
281
|
var ti = (t, e, r, n = !0) => {
|
|
278
282
|
const s = {
|
|
@@ -288,9 +292,9 @@ var ti = (t, e, r, n = !0) => {
|
|
|
288
292
|
return s;
|
|
289
293
|
};
|
|
290
294
|
const ri = typeof window < "u" ? Ne.useLayoutEffect : Ne.useEffect;
|
|
291
|
-
var Ie = (t) => typeof t == "string", ni = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), L(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), L(r, a))) : (n && (e.watchAll = !0), r),
|
|
295
|
+
var Ie = (t) => typeof t == "string", ni = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), L(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), L(r, a))) : (n && (e.watchAll = !0), r), $r = (t) => Ve(t) || !Is(t);
|
|
292
296
|
function it(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
293
|
-
if (
|
|
297
|
+
if ($r(t) || $r(e))
|
|
294
298
|
return Object.is(t, e);
|
|
295
299
|
if (vt(t) && vt(e))
|
|
296
300
|
return Object.is(t.getTime(), e.getTime());
|
|
@@ -320,7 +324,7 @@ var Ms = (t, e, r, n, s) => e ? {
|
|
|
320
324
|
...r[t] && r[t].types ? r[t].types : {},
|
|
321
325
|
[n]: s || !0
|
|
322
326
|
}
|
|
323
|
-
} : {},
|
|
327
|
+
} : {}, Ft = (t) => Array.isArray(t) ? t : [t], Rn = () => {
|
|
324
328
|
let t = [];
|
|
325
329
|
return {
|
|
326
330
|
get observers() {
|
|
@@ -352,12 +356,12 @@ function Vs(t, e) {
|
|
|
352
356
|
}
|
|
353
357
|
return r;
|
|
354
358
|
}
|
|
355
|
-
var Pe = (t) => _e(t) && !Object.keys(t).length,
|
|
356
|
-
if (!
|
|
359
|
+
var Pe = (t) => _e(t) && !Object.keys(t).length, on = (t) => t.type === "file", sr = (t) => {
|
|
360
|
+
if (!nn)
|
|
357
361
|
return !1;
|
|
358
362
|
const e = t ? t.ownerDocument : 0;
|
|
359
363
|
return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
|
|
360
|
-
}, $s = (t) => t.type === "select-multiple",
|
|
364
|
+
}, $s = (t) => t.type === "select-multiple", cn = (t) => t.type === "radio", ai = (t) => cn(t) || qt(t), Cr = (t) => sr(t) && t.isConnected;
|
|
361
365
|
function ii(t, e) {
|
|
362
366
|
const r = e.slice(0, -1).length;
|
|
363
367
|
let n = 0;
|
|
@@ -372,7 +376,7 @@ function oi(t) {
|
|
|
372
376
|
return !0;
|
|
373
377
|
}
|
|
374
378
|
function ke(t, e) {
|
|
375
|
-
const r = Array.isArray(e) ? e :
|
|
379
|
+
const r = Array.isArray(e) ? e : vr(e) ? [e] : an(e), n = r.length === 1 ? t : ii(t, r), s = r.length - 1, a = r[s];
|
|
376
380
|
return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) && oi(n)) && ke(t, r.slice(0, -1)), t;
|
|
377
381
|
}
|
|
378
382
|
var ci = (t) => {
|
|
@@ -384,19 +388,19 @@ var ci = (t) => {
|
|
|
384
388
|
function Fs(t) {
|
|
385
389
|
return Array.isArray(t) || _e(t) && !ci(t);
|
|
386
390
|
}
|
|
387
|
-
function
|
|
391
|
+
function Fr(t, e = {}) {
|
|
388
392
|
for (const r in t) {
|
|
389
393
|
const n = t[r];
|
|
390
|
-
Fs(n) ? (e[r] = Array.isArray(n) ? [] : {},
|
|
394
|
+
Fs(n) ? (e[r] = Array.isArray(n) ? [] : {}, Fr(n, e[r])) : xe(n) || (e[r] = !0);
|
|
391
395
|
}
|
|
392
396
|
return e;
|
|
393
397
|
}
|
|
394
398
|
function kt(t, e, r) {
|
|
395
|
-
r || (r =
|
|
399
|
+
r || (r = Fr(e));
|
|
396
400
|
for (const n in t) {
|
|
397
401
|
const s = t[n];
|
|
398
402
|
if (Fs(s))
|
|
399
|
-
xe(e) ||
|
|
403
|
+
xe(e) || $r(r[n]) ? r[n] = Fr(s, Array.isArray(s) ? [] : {}) : kt(s, Ve(e) ? {} : e[n], r[n]);
|
|
400
404
|
else {
|
|
401
405
|
const a = e[n];
|
|
402
406
|
r[n] = !it(s, a);
|
|
@@ -404,10 +408,10 @@ function kt(t, e, r) {
|
|
|
404
408
|
}
|
|
405
409
|
return r;
|
|
406
410
|
}
|
|
407
|
-
const
|
|
411
|
+
const On = {
|
|
408
412
|
value: !1,
|
|
409
413
|
isValid: !1
|
|
410
|
-
},
|
|
414
|
+
}, Nn = { value: !0, isValid: !0 };
|
|
411
415
|
var Ds = (t) => {
|
|
412
416
|
if (Array.isArray(t)) {
|
|
413
417
|
if (t.length > 1) {
|
|
@@ -416,22 +420,22 @@ var Ds = (t) => {
|
|
|
416
420
|
}
|
|
417
421
|
return t[0].checked && !t[0].disabled ? (
|
|
418
422
|
// @ts-expect-error expected to work in the browser
|
|
419
|
-
t[0].attributes && !xe(t[0].attributes.value) ? xe(t[0].value) || t[0].value === "" ?
|
|
420
|
-
) :
|
|
423
|
+
t[0].attributes && !xe(t[0].attributes.value) ? xe(t[0].value) || t[0].value === "" ? Nn : { value: t[0].value, isValid: !0 } : Nn
|
|
424
|
+
) : On;
|
|
421
425
|
}
|
|
422
|
-
return
|
|
426
|
+
return On;
|
|
423
427
|
}, Us = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: n }) => xe(t) ? t : e ? t === "" ? NaN : t && +t : r && Ie(t) ? new Date(t) : n ? n(t) : t;
|
|
424
|
-
const
|
|
428
|
+
const An = {
|
|
425
429
|
isValid: !1,
|
|
426
430
|
value: null
|
|
427
431
|
};
|
|
428
432
|
var zs = (t) => Array.isArray(t) ? t.reduce((e, r) => r && r.checked && !r.disabled ? {
|
|
429
433
|
isValid: !0,
|
|
430
434
|
value: r.value
|
|
431
|
-
} : e,
|
|
432
|
-
function
|
|
435
|
+
} : e, An) : An;
|
|
436
|
+
function Tn(t) {
|
|
433
437
|
const e = t.ref;
|
|
434
|
-
return
|
|
438
|
+
return on(e) ? e.files : cn(e) ? zs(t.refs).value : $s(e) ? [...e.selectedOptions].map(({ value: r }) => r) : qt(e) ? Ds(t.refs).value : Us(xe(e.value) ? t.ref.value : e.value, t);
|
|
435
439
|
}
|
|
436
440
|
var li = (t, e, r, n) => {
|
|
437
441
|
const s = {};
|
|
@@ -445,16 +449,16 @@ var li = (t, e, r, n) => {
|
|
|
445
449
|
fields: s,
|
|
446
450
|
shouldUseNativeValidation: n
|
|
447
451
|
};
|
|
448
|
-
}, ar = (t) => t instanceof RegExp,
|
|
452
|
+
}, ar = (t) => t instanceof RegExp, jt = (t) => xe(t) ? t : ar(t) ? t.source : _e(t) ? ar(t.value) ? t.value.source : t.value : t, Pn = (t) => ({
|
|
449
453
|
isOnSubmit: !t || t === Ke.onSubmit,
|
|
450
454
|
isOnBlur: t === Ke.onBlur,
|
|
451
455
|
isOnChange: t === Ke.onChange,
|
|
452
456
|
isOnAll: t === Ke.all,
|
|
453
457
|
isOnTouch: t === Ke.onTouched
|
|
454
458
|
});
|
|
455
|
-
const
|
|
456
|
-
var ui = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name ===
|
|
457
|
-
const
|
|
459
|
+
const In = "AsyncFunction";
|
|
460
|
+
var ui = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name === In || _e(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === In)), di = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Ln = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
|
|
461
|
+
const Dt = (t, e, r, n) => {
|
|
458
462
|
for (const s of r || Object.keys(t)) {
|
|
459
463
|
const a = L(t, s);
|
|
460
464
|
if (a) {
|
|
@@ -464,16 +468,16 @@ const Ft = (t, e, r, n) => {
|
|
|
464
468
|
return !0;
|
|
465
469
|
if (i.ref && e(i.ref, i.name) && !n)
|
|
466
470
|
return !0;
|
|
467
|
-
if (
|
|
471
|
+
if (Dt(o, e))
|
|
468
472
|
break;
|
|
469
|
-
} else if (_e(o) &&
|
|
473
|
+
} else if (_e(o) && Dt(o, e))
|
|
470
474
|
break;
|
|
471
475
|
}
|
|
472
476
|
}
|
|
473
477
|
};
|
|
474
|
-
function
|
|
478
|
+
function jn(t, e, r) {
|
|
475
479
|
const n = L(t, r);
|
|
476
|
-
if (n ||
|
|
480
|
+
if (n || vr(r))
|
|
477
481
|
return {
|
|
478
482
|
error: n,
|
|
479
483
|
name: r
|
|
@@ -503,11 +507,11 @@ var fi = (t, e, r, n) => {
|
|
|
503
507
|
r(t);
|
|
504
508
|
const { name: s, ...a } = t;
|
|
505
509
|
return Pe(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || Ke.all));
|
|
506
|
-
}, hi = (t, e, r) => !t || !e || t === e ||
|
|
507
|
-
const n =
|
|
510
|
+
}, hi = (t, e, r) => !t || !e || t === e || Ft(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), pi = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, mi = (t, e) => !sn(L(t, e)).length && ke(t, e), yi = (t, e, r) => {
|
|
511
|
+
const n = Ft(L(t, r));
|
|
508
512
|
return ye(n, js, e[r]), ye(t, r, n), t;
|
|
509
513
|
};
|
|
510
|
-
function
|
|
514
|
+
function Mn(t, e, r = "validate") {
|
|
511
515
|
if (Ie(t) || Array.isArray(t) && t.every(Ie) || Xe(t) && !t)
|
|
512
516
|
return {
|
|
513
517
|
type: r,
|
|
@@ -518,13 +522,13 @@ function jn(t, e, r = "validate") {
|
|
|
518
522
|
var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
519
523
|
value: t,
|
|
520
524
|
message: ""
|
|
521
|
-
},
|
|
525
|
+
}, Vn = async (t, e, r, n, s, a) => {
|
|
522
526
|
const { ref: i, refs: o, required: c, maxLength: l, minLength: f, min: d, max: p, pattern: m, validate: b, name: v, valueAsNumber: S, mount: k } = t._f, C = L(r, v);
|
|
523
527
|
if (!k || e.has(v))
|
|
524
528
|
return {};
|
|
525
529
|
const D = o ? o[0] : i, I = (M) => {
|
|
526
530
|
s && D.reportValidity && (D.setCustomValidity(Xe(M) ? "" : M || ""), D.reportValidity());
|
|
527
|
-
}, x = {}, Z =
|
|
531
|
+
}, x = {}, Z = cn(i), j = qt(i), U = Z || j, B = (S || on(i)) && xe(i.value) && xe(C) || sr(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, re = Ms.bind(null, v, n, x), he = (M, W, ne, ve = Ge.maxLength, ue = Ge.minLength) => {
|
|
528
532
|
const be = M ? W : ne;
|
|
529
533
|
x[v] = {
|
|
530
534
|
type: M ? ve : ue,
|
|
@@ -573,7 +577,7 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
573
577
|
}
|
|
574
578
|
if (b) {
|
|
575
579
|
if (Ye(b)) {
|
|
576
|
-
const M = await b(C, r), W =
|
|
580
|
+
const M = await b(C, r), W = Mn(M, D);
|
|
577
581
|
if (W && (x[v] = {
|
|
578
582
|
...W,
|
|
579
583
|
...re(Ge.validate, W.message)
|
|
@@ -584,7 +588,7 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
|
|
|
584
588
|
for (const W in b) {
|
|
585
589
|
if (!Pe(M) && !n)
|
|
586
590
|
break;
|
|
587
|
-
const ne =
|
|
591
|
+
const ne = Mn(await b[W](C, r), D, W);
|
|
588
592
|
ne && (M = {
|
|
589
593
|
...ne,
|
|
590
594
|
...re(W, ne.message)
|
|
@@ -650,8 +654,8 @@ function vi(t = {}) {
|
|
|
650
654
|
...d
|
|
651
655
|
};
|
|
652
656
|
const m = {
|
|
653
|
-
array:
|
|
654
|
-
state:
|
|
657
|
+
array: Rn(),
|
|
658
|
+
state: Rn()
|
|
655
659
|
}, b = e.criteriaMode === Ke.all, v = (u) => (y) => {
|
|
656
660
|
clearTimeout(l), l = setTimeout(u, y);
|
|
657
661
|
}, S = async (u) => {
|
|
@@ -712,7 +716,7 @@ function vi(t = {}) {
|
|
|
712
716
|
const O = L(n, u);
|
|
713
717
|
if (O) {
|
|
714
718
|
const N = L(a, u, xe(g) ? L(s, u) : g);
|
|
715
|
-
xe(N) || A && A.defaultChecked || y ? ye(a, u, y ? N :
|
|
719
|
+
xe(N) || A && A.defaultChecked || y ? ye(a, u, y ? N : Tn(O._f)) : ue(u, N), i.mount && !i.action && S();
|
|
716
720
|
}
|
|
717
721
|
}, Z = (u, y, g, A, O) => {
|
|
718
722
|
let N = !1, F = !1;
|
|
@@ -766,14 +770,14 @@ function vi(t = {}) {
|
|
|
766
770
|
});
|
|
767
771
|
if (_e(g))
|
|
768
772
|
for (const A in g)
|
|
769
|
-
g[A] && se(`${
|
|
773
|
+
g[A] && se(`${Sr}.${A}`, {
|
|
770
774
|
message: Ie(g.message) ? g.message : "",
|
|
771
775
|
type: Ge.validate
|
|
772
776
|
});
|
|
773
|
-
else Ie(g) || !g ? se(
|
|
777
|
+
else Ie(g) || !g ? se(Sr, {
|
|
774
778
|
message: g || "",
|
|
775
779
|
type: Ge.validate
|
|
776
|
-
}) : K(
|
|
780
|
+
}) : K(Sr);
|
|
777
781
|
return g;
|
|
778
782
|
}
|
|
779
783
|
return !0;
|
|
@@ -793,7 +797,7 @@ function vi(t = {}) {
|
|
|
793
797
|
if (J) {
|
|
794
798
|
const $e = o.array.has(J.name), Je = F._f && ui(F._f);
|
|
795
799
|
Je && d.validatingFields && k([J.name], !0);
|
|
796
|
-
const Le = await
|
|
800
|
+
const Le = await Vn(F, o.disabled, a, b, e.shouldUseNativeValidation && !y, $e);
|
|
797
801
|
if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (L(Le, J.name) ? $e ? yi(r.errors, Le, J.name) : ye(r.errors, J.name, Le[J.name]) : ke(r.errors, J.name)), t.shouldUseNativeValidation && Le[J.name]))
|
|
798
802
|
break;
|
|
799
803
|
}
|
|
@@ -810,19 +814,19 @@ function vi(t = {}) {
|
|
|
810
814
|
}, M = () => {
|
|
811
815
|
for (const u of o.unMount) {
|
|
812
816
|
const y = L(n, u);
|
|
813
|
-
y && (y._f.refs ? y._f.refs.every((g) => !
|
|
817
|
+
y && (y._f.refs ? y._f.refs.every((g) => !Cr(g)) : !Cr(y._f.ref)) && oe(u);
|
|
814
818
|
}
|
|
815
819
|
o.unMount = /* @__PURE__ */ new Set();
|
|
816
820
|
}, W = (u, y) => !e.disabled && (u && y && ye(a, u, y), !it(G(), s)), ne = (u, y, g) => ni(u, o, {
|
|
817
821
|
...i.mount ? a : xe(y) ? s : Ie(u) ? { [u]: y } : y
|
|
818
|
-
}, g, y), ve = (u) =>
|
|
822
|
+
}, g, y), ve = (u) => sn(L(i.mount ? a : s, u, e.shouldUnregister ? L(s, u, []) : [])), ue = (u, y, g = {}) => {
|
|
819
823
|
const A = L(n, u);
|
|
820
824
|
let O = y;
|
|
821
825
|
if (A) {
|
|
822
826
|
const N = A._f;
|
|
823
827
|
N && (!N.disabled && ye(a, u, Us(y, N)), O = sr(N.ref) && Ve(y) ? "" : y, $s(N.ref) ? [...N.ref.options].forEach((F) => F.selected = O.includes(F.value)) : N.refs ? qt(N.ref) ? N.refs.forEach((F) => {
|
|
824
828
|
(!F.defaultChecked || !F.disabled) && (Array.isArray(O) ? F.checked = !!O.find((J) => J === F.value) : F.checked = O === F.value || !!O);
|
|
825
|
-
}) : N.refs.forEach((F) => F.checked = F.value === O) :
|
|
829
|
+
}) : N.refs.forEach((F) => F.checked = F.value === O) : on(N.ref) ? N.ref.value = "" : (N.ref.value = O, N.ref.type || m.state.next({
|
|
826
830
|
name: u,
|
|
827
831
|
values: Ce(a)
|
|
828
832
|
})));
|
|
@@ -844,7 +848,7 @@ function vi(t = {}) {
|
|
|
844
848
|
name: u,
|
|
845
849
|
dirtyFields: kt(s, a),
|
|
846
850
|
isDirty: W(u, N)
|
|
847
|
-
})) : A && !A._f && !Ve(N) ? be(u, N, g) : ue(u, N, g),
|
|
851
|
+
})) : A && !A._f && !Ve(N) ? be(u, N, g) : ue(u, N, g), Ln(u, o) ? m.state.next({
|
|
848
852
|
...r,
|
|
849
853
|
name: u,
|
|
850
854
|
values: Ce(a)
|
|
@@ -858,42 +862,42 @@ function vi(t = {}) {
|
|
|
858
862
|
let g = y.name, A = !0;
|
|
859
863
|
const O = L(n, g), N = (pe) => {
|
|
860
864
|
A = Number.isNaN(pe) || vt(pe) && isNaN(pe.getTime()) || it(pe, L(a, g, pe));
|
|
861
|
-
}, F =
|
|
865
|
+
}, F = Pn(e.mode), J = Pn(e.reValidateMode);
|
|
862
866
|
if (O) {
|
|
863
867
|
let pe, $e;
|
|
864
|
-
const Je = y.type ?
|
|
868
|
+
const Je = y.type ? Tn(O._f) : Ja(u), Le = u.type === _t.BLUR || u.type === _t.FOCUS_OUT, Za = !di(O._f) && !t.validate && !e.resolver && !L(r.errors, g) && !O._f.deps || pi(Le, L(r.touchedFields, g), r.isSubmitted, J, F), wr = Ln(g, o, Le);
|
|
865
869
|
ye(a, g, Je), Le ? (!y || !y.readOnly) && (O._f.onBlur && O._f.onBlur(u), c && c(0)) : O._f.onChange && O._f.onChange(u);
|
|
866
|
-
const
|
|
870
|
+
const kr = Z(g, Je, Le), Ba = !Pe(kr) || wr;
|
|
867
871
|
if (!Le && m.state.next({
|
|
868
872
|
name: g,
|
|
869
873
|
type: u.type,
|
|
870
874
|
values: Ce(a)
|
|
871
875
|
}), Za)
|
|
872
|
-
return (d.isValid || p.isValid) && (e.mode === "onBlur" ? Le && S() : Le || S()), Ba && m.state.next({ name: g, ...
|
|
876
|
+
return (d.isValid || p.isValid) && (e.mode === "onBlur" ? Le && S() : Le || S()), Ba && m.state.next({ name: g, ...wr ? {} : kr });
|
|
873
877
|
if (!e.resolver && t.validate && await re({
|
|
874
878
|
name: g,
|
|
875
879
|
eventType: u.type
|
|
876
|
-
}), !Le &&
|
|
877
|
-
const { errors:
|
|
880
|
+
}), !Le && wr && m.state.next({ ...r }), e.resolver) {
|
|
881
|
+
const { errors: wn } = await U([g]);
|
|
878
882
|
if (k([g]), N(Je), A) {
|
|
879
|
-
const Wa =
|
|
880
|
-
pe =
|
|
883
|
+
const Wa = jn(r.errors, n, g), kn = jn(wn, n, Wa.name || g);
|
|
884
|
+
pe = kn.error, g = kn.name, $e = Pe(wn);
|
|
881
885
|
}
|
|
882
886
|
} else
|
|
883
|
-
k([g], !0), pe = (await
|
|
887
|
+
k([g], !0), pe = (await Vn(O, o.disabled, a, b, e.shouldUseNativeValidation))[g], k([g]), N(Je), A && (pe ? $e = !1 : (d.isValid || p.isValid) && ($e = await he({
|
|
884
888
|
fields: n,
|
|
885
889
|
onlyCheckValid: !0,
|
|
886
890
|
name: g,
|
|
887
891
|
eventType: u.type
|
|
888
892
|
})));
|
|
889
|
-
A && (O._f.deps && (!Array.isArray(O._f.deps) || O._f.deps.length > 0) && R(O._f.deps), j(g, $e, pe,
|
|
893
|
+
A && (O._f.deps && (!Array.isArray(O._f.deps) || O._f.deps.length > 0) && R(O._f.deps), j(g, $e, pe, kr));
|
|
890
894
|
}
|
|
891
895
|
}, _ = (u, y) => {
|
|
892
896
|
if (L(r.errors, y) && u.focus)
|
|
893
897
|
return u.focus(), 1;
|
|
894
898
|
}, R = async (u, y = {}) => {
|
|
895
899
|
let g, A;
|
|
896
|
-
const O =
|
|
900
|
+
const O = Ft(u);
|
|
897
901
|
if (e.resolver) {
|
|
898
902
|
const N = await B(xe(u) ? u : O);
|
|
899
903
|
g = Pe(N), A = u ? !O.some((F) => L(N, F)) : g;
|
|
@@ -912,7 +916,7 @@ function vi(t = {}) {
|
|
|
912
916
|
...!Ie(u) || (d.isValid || p.isValid) && g !== r.isValid ? {} : { name: u },
|
|
913
917
|
...e.resolver || !u ? { isValid: g } : {},
|
|
914
918
|
errors: r.errors
|
|
915
|
-
}), y.shouldFocus && !A &&
|
|
919
|
+
}), y.shouldFocus && !A && Dt(n, _, u ? O : o.mount), A;
|
|
916
920
|
}, G = (u, y) => {
|
|
917
921
|
let g = {
|
|
918
922
|
...i.mount ? a : s
|
|
@@ -925,7 +929,7 @@ function vi(t = {}) {
|
|
|
925
929
|
isValidating: !!L(r.validatingFields, u),
|
|
926
930
|
isTouched: !!L((y || r).touchedFields, u)
|
|
927
931
|
}), K = (u) => {
|
|
928
|
-
const y = u ?
|
|
932
|
+
const y = u ? Ft(u) : void 0;
|
|
929
933
|
y == null || y.forEach((g) => ke(r.errors, g)), y ? y.forEach((g) => {
|
|
930
934
|
m.state.next({
|
|
931
935
|
name: g,
|
|
@@ -966,7 +970,7 @@ function vi(t = {}) {
|
|
|
966
970
|
...u.formState
|
|
967
971
|
}
|
|
968
972
|
})), oe = (u, y = {}) => {
|
|
969
|
-
for (const g of u ?
|
|
973
|
+
for (const g of u ? Ft(u) : o.mount)
|
|
970
974
|
o.mount.delete(g), o.array.delete(g), y.keepValue || (ke(n, g), ke(a, g)), !y.keepError && ke(r.errors, g), !y.keepDirty && ke(r.dirtyFields, g), !y.keepTouched && ke(r.touchedFields, g), !y.keepIsValidating && ke(r.validatingFields, g), !e.shouldUnregister && !y.keepDefaultValue && ke(s, g);
|
|
971
975
|
m.state.next({
|
|
972
976
|
values: Ce(a)
|
|
@@ -997,11 +1001,11 @@ function vi(t = {}) {
|
|
|
997
1001
|
...A ? { disabled: y.disabled || e.disabled } : {},
|
|
998
1002
|
...e.progressive ? {
|
|
999
1003
|
required: !!y.required,
|
|
1000
|
-
min:
|
|
1001
|
-
max:
|
|
1002
|
-
minLength:
|
|
1003
|
-
maxLength:
|
|
1004
|
-
pattern:
|
|
1004
|
+
min: jt(y.min),
|
|
1005
|
+
max: jt(y.max),
|
|
1006
|
+
minLength: jt(y.minLength),
|
|
1007
|
+
maxLength: jt(y.maxLength),
|
|
1008
|
+
pattern: jt(y.pattern)
|
|
1005
1009
|
} : {},
|
|
1006
1010
|
name: u,
|
|
1007
1011
|
onChange: Ee,
|
|
@@ -1017,7 +1021,7 @@ function vi(t = {}) {
|
|
|
1017
1021
|
...g._f,
|
|
1018
1022
|
...F ? {
|
|
1019
1023
|
refs: [
|
|
1020
|
-
...J.filter(
|
|
1024
|
+
...J.filter(Cr),
|
|
1021
1025
|
N,
|
|
1022
1026
|
...Array.isArray(L(s, u)) ? [{}] : []
|
|
1023
1027
|
],
|
|
@@ -1029,8 +1033,8 @@ function vi(t = {}) {
|
|
|
1029
1033
|
g = L(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(Xa(o.array, u) && i.action) && o.unMount.add(u);
|
|
1030
1034
|
}
|
|
1031
1035
|
};
|
|
1032
|
-
}, T = () => e.shouldFocusError &&
|
|
1033
|
-
Xe(u) && (m.state.next({ disabled: u }),
|
|
1036
|
+
}, T = () => e.shouldFocusError && Dt(n, _, o.mount), Ue = (u) => {
|
|
1037
|
+
Xe(u) && (m.state.next({ disabled: u }), Dt(n, (y, g) => {
|
|
1034
1038
|
const A = L(n, g);
|
|
1035
1039
|
A && (y.disabled = A._f.disabled || u, Array.isArray(A._f.refs) && A._f.refs.forEach((O) => {
|
|
1036
1040
|
O.disabled = A._f.disabled || u;
|
|
@@ -1074,7 +1078,7 @@ function vi(t = {}) {
|
|
|
1074
1078
|
throw A;
|
|
1075
1079
|
}, Ht = (u, y = {}) => {
|
|
1076
1080
|
L(n, u) && (xe(y.defaultValue) ? we(u, Ce(L(s, u))) : (we(u, y.defaultValue), ye(s, u, Ce(y.defaultValue))), y.keepTouched || ke(r.touchedFields, u), y.keepDirty || (ke(r.dirtyFields, u), r.isDirty = y.defaultValue ? W(u, Ce(L(s, u))) : W()), y.keepError || (ke(r.errors, u), d.isValid && S()), m.state.next({ ...r }));
|
|
1077
|
-
},
|
|
1081
|
+
}, bn = (u, y = {}) => {
|
|
1078
1082
|
const g = u ? Ce(u) : s, A = Ce(g), O = Pe(u), N = O ? s : A;
|
|
1079
1083
|
if (y.keepDefaultValues || (s = g), !y.keepValues) {
|
|
1080
1084
|
if (y.keepDirtyValues) {
|
|
@@ -1087,7 +1091,7 @@ function vi(t = {}) {
|
|
|
1087
1091
|
pe && !xe($e) ? ye(N, J, $e) : !pe && !xe(Je) && we(J, Je);
|
|
1088
1092
|
}
|
|
1089
1093
|
} else {
|
|
1090
|
-
if (
|
|
1094
|
+
if (nn && xe(u))
|
|
1091
1095
|
for (const F of o.mount) {
|
|
1092
1096
|
const J = L(n, F);
|
|
1093
1097
|
if (J && J._f) {
|
|
@@ -1132,7 +1136,7 @@ function vi(t = {}) {
|
|
|
1132
1136
|
isSubmitting: !1,
|
|
1133
1137
|
defaultValues: s
|
|
1134
1138
|
});
|
|
1135
|
-
},
|
|
1139
|
+
}, xn = (u, y) => bn(Ye(u) ? u(a) : u, { ...e.resetOptions, ...y }), Ua = (u, y = {}) => {
|
|
1136
1140
|
const g = L(n, u), A = g && g._f;
|
|
1137
1141
|
if (A) {
|
|
1138
1142
|
const O = A.refs ? A.refs[0] : A.ref;
|
|
@@ -1145,7 +1149,7 @@ function vi(t = {}) {
|
|
|
1145
1149
|
...r,
|
|
1146
1150
|
...u
|
|
1147
1151
|
};
|
|
1148
|
-
},
|
|
1152
|
+
}, _n = {
|
|
1149
1153
|
control: {
|
|
1150
1154
|
register: Re,
|
|
1151
1155
|
unregister: oe,
|
|
@@ -1163,9 +1167,9 @@ function vi(t = {}) {
|
|
|
1163
1167
|
_setDisabledField: ae,
|
|
1164
1168
|
_setErrors: I,
|
|
1165
1169
|
_getFieldArray: ve,
|
|
1166
|
-
_reset:
|
|
1170
|
+
_reset: bn,
|
|
1167
1171
|
_resetDefaultValues: () => Ye(e.defaultValues) && e.defaultValues().then((u) => {
|
|
1168
|
-
|
|
1172
|
+
xn(u, e.resetOptions), m.state.next({
|
|
1169
1173
|
isLoading: !1
|
|
1170
1174
|
});
|
|
1171
1175
|
}),
|
|
@@ -1214,7 +1218,7 @@ function vi(t = {}) {
|
|
|
1214
1218
|
watch: Q,
|
|
1215
1219
|
setValue: we,
|
|
1216
1220
|
getValues: G,
|
|
1217
|
-
reset:
|
|
1221
|
+
reset: xn,
|
|
1218
1222
|
resetField: Ht,
|
|
1219
1223
|
clearErrors: K,
|
|
1220
1224
|
unregister: oe,
|
|
@@ -1223,8 +1227,8 @@ function vi(t = {}) {
|
|
|
1223
1227
|
getFieldState: q
|
|
1224
1228
|
};
|
|
1225
1229
|
return {
|
|
1226
|
-
...
|
|
1227
|
-
formControl:
|
|
1230
|
+
..._n,
|
|
1231
|
+
formControl: _n
|
|
1228
1232
|
};
|
|
1229
1233
|
}
|
|
1230
1234
|
function ir(t = {}) {
|
|
@@ -1294,7 +1298,7 @@ function ir(t = {}) {
|
|
|
1294
1298
|
a._state.mount || (a._setValid(), a._state.mount = !0), a._state.watch && (a._state.watch = !1, a._subjects.state.next({ ...a._formState })), a._removeUnmounted();
|
|
1295
1299
|
}), e.current.formState = Ne.useMemo(() => ti(n, a), [a, n]), e.current;
|
|
1296
1300
|
}
|
|
1297
|
-
const
|
|
1301
|
+
const $n = (t, e, r) => {
|
|
1298
1302
|
if (t && "reportValidity" in t) {
|
|
1299
1303
|
const n = L(r, e);
|
|
1300
1304
|
t.setCustomValidity(n && n.message || ""), t.reportValidity();
|
|
@@ -1302,7 +1306,7 @@ const Vn = (t, e, r) => {
|
|
|
1302
1306
|
}, Zs = (t, e) => {
|
|
1303
1307
|
for (const r in e.fields) {
|
|
1304
1308
|
const n = e.fields[r];
|
|
1305
|
-
n && n.ref && "reportValidity" in n.ref ?
|
|
1309
|
+
n && n.ref && "reportValidity" in n.ref ? $n(n.ref, r, t) : n.refs && n.refs.forEach((s) => $n(s, r, t));
|
|
1306
1310
|
}
|
|
1307
1311
|
}, bi = (t, e) => {
|
|
1308
1312
|
e.shouldUseNativeValidation && Zs(t, e);
|
|
@@ -1393,14 +1397,14 @@ var _i = function(t, e) {
|
|
|
1393
1397
|
}
|
|
1394
1398
|
t.joinValues = n, t.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
|
|
1395
1399
|
})(le || (le = {}));
|
|
1396
|
-
var
|
|
1400
|
+
var Fn;
|
|
1397
1401
|
(function(t) {
|
|
1398
1402
|
t.mergeShapes = (e, r) => ({
|
|
1399
1403
|
...e,
|
|
1400
1404
|
...r
|
|
1401
1405
|
// second overwrites first
|
|
1402
1406
|
});
|
|
1403
|
-
})(
|
|
1407
|
+
})(Fn || (Fn = {}));
|
|
1404
1408
|
const V = le.arrayToEnum([
|
|
1405
1409
|
"string",
|
|
1406
1410
|
"nan",
|
|
@@ -1525,7 +1529,7 @@ class rt extends Error {
|
|
|
1525
1529
|
}
|
|
1526
1530
|
}
|
|
1527
1531
|
rt.create = (t) => new rt(t);
|
|
1528
|
-
const
|
|
1532
|
+
const Dr = (t, e) => {
|
|
1529
1533
|
let r;
|
|
1530
1534
|
switch (t.code) {
|
|
1531
1535
|
case E.invalid_type:
|
|
@@ -1581,7 +1585,7 @@ const Fr = (t, e) => {
|
|
|
1581
1585
|
}
|
|
1582
1586
|
return { message: r };
|
|
1583
1587
|
};
|
|
1584
|
-
let wi =
|
|
1588
|
+
let wi = Dr;
|
|
1585
1589
|
function ki() {
|
|
1586
1590
|
return wi;
|
|
1587
1591
|
}
|
|
@@ -1618,7 +1622,7 @@ function P(t, e) {
|
|
|
1618
1622
|
// then schema-bound map if available
|
|
1619
1623
|
r,
|
|
1620
1624
|
// then global override map
|
|
1621
|
-
r ===
|
|
1625
|
+
r === Dr ? void 0 : Dr
|
|
1622
1626
|
// then global default map
|
|
1623
1627
|
].filter((s) => !!s)
|
|
1624
1628
|
});
|
|
@@ -1667,7 +1671,7 @@ class De {
|
|
|
1667
1671
|
}
|
|
1668
1672
|
const H = Object.freeze({
|
|
1669
1673
|
status: "aborted"
|
|
1670
|
-
}),
|
|
1674
|
+
}), $t = (t) => ({ status: "dirty", value: t }), We = (t) => ({ status: "valid", value: t }), Dn = (t) => t.status === "aborted", Un = (t) => t.status === "dirty", Et = (t) => t.status === "valid", cr = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
1671
1675
|
var $;
|
|
1672
1676
|
(function(t) {
|
|
1673
1677
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -1680,7 +1684,7 @@ class ft {
|
|
|
1680
1684
|
return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
|
|
1681
1685
|
}
|
|
1682
1686
|
}
|
|
1683
|
-
const
|
|
1687
|
+
const zn = (t, e) => {
|
|
1684
1688
|
if (Et(e))
|
|
1685
1689
|
return { success: !0, data: e.value };
|
|
1686
1690
|
if (!t.common.issues.length)
|
|
@@ -1765,7 +1769,7 @@ class ce {
|
|
|
1765
1769
|
data: e,
|
|
1766
1770
|
parsedType: at(e)
|
|
1767
1771
|
}, s = this._parseSync({ data: e, path: n.path, parent: n });
|
|
1768
|
-
return
|
|
1772
|
+
return zn(n, s);
|
|
1769
1773
|
}
|
|
1770
1774
|
"~validate"(e) {
|
|
1771
1775
|
var n, s;
|
|
@@ -1819,7 +1823,7 @@ class ce {
|
|
|
1819
1823
|
data: e,
|
|
1820
1824
|
parsedType: at(e)
|
|
1821
1825
|
}, s = this._parse({ data: e, path: n.path, parent: n }), a = await (cr(s) ? s : Promise.resolve(s));
|
|
1822
|
-
return
|
|
1826
|
+
return zn(n, a);
|
|
1823
1827
|
}
|
|
1824
1828
|
refine(e, r) {
|
|
1825
1829
|
const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
|
|
@@ -1882,7 +1886,7 @@ class ce {
|
|
|
1882
1886
|
}
|
|
1883
1887
|
default(e) {
|
|
1884
1888
|
const r = typeof e == "function" ? e : () => e;
|
|
1885
|
-
return new
|
|
1889
|
+
return new Zr({
|
|
1886
1890
|
...te(this._def),
|
|
1887
1891
|
innerType: this,
|
|
1888
1892
|
defaultValue: r,
|
|
@@ -1898,7 +1902,7 @@ class ce {
|
|
|
1898
1902
|
}
|
|
1899
1903
|
catch(e) {
|
|
1900
1904
|
const r = typeof e == "function" ? e : () => e;
|
|
1901
|
-
return new
|
|
1905
|
+
return new Br({
|
|
1902
1906
|
...te(this._def),
|
|
1903
1907
|
innerType: this,
|
|
1904
1908
|
catchValue: r,
|
|
@@ -1913,10 +1917,10 @@ class ce {
|
|
|
1913
1917
|
});
|
|
1914
1918
|
}
|
|
1915
1919
|
pipe(e) {
|
|
1916
|
-
return
|
|
1920
|
+
return ln.create(this, e);
|
|
1917
1921
|
}
|
|
1918
1922
|
readonly() {
|
|
1919
|
-
return
|
|
1923
|
+
return Wr.create(this);
|
|
1920
1924
|
}
|
|
1921
1925
|
isOptional() {
|
|
1922
1926
|
return this.safeParse(void 0).success;
|
|
@@ -1926,7 +1930,7 @@ class ce {
|
|
|
1926
1930
|
}
|
|
1927
1931
|
}
|
|
1928
1932
|
const Ci = /^c[^\s-]{8,}$/i, Ei = /^[0-9a-z]+$/, Ri = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Oi = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Ni = /^[a-z0-9_-]{21}$/i, Ai = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ti = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Pi = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ii = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
|
|
1929
|
-
let
|
|
1933
|
+
let Er;
|
|
1930
1934
|
const Li = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Mi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Vi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, $i = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Fi = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Bs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Di = new RegExp(`^${Bs}$`);
|
|
1931
1935
|
function Ws(t) {
|
|
1932
1936
|
let e = "[0-5]\\d";
|
|
@@ -2016,7 +2020,7 @@ class ct extends ce {
|
|
|
2016
2020
|
message: a.message
|
|
2017
2021
|
}), n.dirty());
|
|
2018
2022
|
else if (a.kind === "emoji")
|
|
2019
|
-
|
|
2023
|
+
Er || (Er = new RegExp(Ii, "u")), Er.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
|
|
2020
2024
|
validation: "emoji",
|
|
2021
2025
|
code: E.invalid_string,
|
|
2022
2026
|
message: a.message
|
|
@@ -2348,7 +2352,7 @@ function qi(t, e) {
|
|
|
2348
2352
|
const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = Number.parseInt(t.toFixed(s).replace(".", "")), i = Number.parseInt(e.toFixed(s).replace(".", ""));
|
|
2349
2353
|
return a % i / 10 ** s;
|
|
2350
2354
|
}
|
|
2351
|
-
class
|
|
2355
|
+
class zt extends ce {
|
|
2352
2356
|
constructor() {
|
|
2353
2357
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
2354
2358
|
}
|
|
@@ -2406,7 +2410,7 @@ class Ut extends ce {
|
|
|
2406
2410
|
return this.setLimit("max", e, !1, $.toString(r));
|
|
2407
2411
|
}
|
|
2408
2412
|
setLimit(e, r, n, s) {
|
|
2409
|
-
return new
|
|
2413
|
+
return new zt({
|
|
2410
2414
|
...this._def,
|
|
2411
2415
|
checks: [
|
|
2412
2416
|
...this._def.checks,
|
|
@@ -2420,7 +2424,7 @@ class Ut extends ce {
|
|
|
2420
2424
|
});
|
|
2421
2425
|
}
|
|
2422
2426
|
_addCheck(e) {
|
|
2423
|
-
return new
|
|
2427
|
+
return new zt({
|
|
2424
2428
|
...this._def,
|
|
2425
2429
|
checks: [...this._def.checks, e]
|
|
2426
2430
|
});
|
|
@@ -2514,13 +2518,13 @@ class Ut extends ce {
|
|
|
2514
2518
|
return Number.isFinite(r) && Number.isFinite(e);
|
|
2515
2519
|
}
|
|
2516
2520
|
}
|
|
2517
|
-
|
|
2521
|
+
zt.create = (t) => new zt({
|
|
2518
2522
|
checks: [],
|
|
2519
2523
|
typeName: Y.ZodNumber,
|
|
2520
2524
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
2521
2525
|
...te(t)
|
|
2522
2526
|
});
|
|
2523
|
-
class
|
|
2527
|
+
class Zt extends ce {
|
|
2524
2528
|
constructor() {
|
|
2525
2529
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
2526
2530
|
}
|
|
@@ -2576,7 +2580,7 @@ class zt extends ce {
|
|
|
2576
2580
|
return this.setLimit("max", e, !1, $.toString(r));
|
|
2577
2581
|
}
|
|
2578
2582
|
setLimit(e, r, n, s) {
|
|
2579
|
-
return new
|
|
2583
|
+
return new Zt({
|
|
2580
2584
|
...this._def,
|
|
2581
2585
|
checks: [
|
|
2582
2586
|
...this._def.checks,
|
|
@@ -2590,7 +2594,7 @@ class zt extends ce {
|
|
|
2590
2594
|
});
|
|
2591
2595
|
}
|
|
2592
2596
|
_addCheck(e) {
|
|
2593
|
-
return new
|
|
2597
|
+
return new Zt({
|
|
2594
2598
|
...this._def,
|
|
2595
2599
|
checks: [...this._def.checks, e]
|
|
2596
2600
|
});
|
|
@@ -2647,13 +2651,13 @@ class zt extends ce {
|
|
|
2647
2651
|
return e;
|
|
2648
2652
|
}
|
|
2649
2653
|
}
|
|
2650
|
-
|
|
2654
|
+
Zt.create = (t) => new Zt({
|
|
2651
2655
|
checks: [],
|
|
2652
2656
|
typeName: Y.ZodBigInt,
|
|
2653
2657
|
coerce: (t == null ? void 0 : t.coerce) ?? !1,
|
|
2654
2658
|
...te(t)
|
|
2655
2659
|
});
|
|
2656
|
-
class
|
|
2660
|
+
class Zn extends ce {
|
|
2657
2661
|
_parse(e) {
|
|
2658
2662
|
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== V.boolean) {
|
|
2659
2663
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2666,7 +2670,7 @@ class zn extends ce {
|
|
|
2666
2670
|
return We(e.data);
|
|
2667
2671
|
}
|
|
2668
2672
|
}
|
|
2669
|
-
|
|
2673
|
+
Zn.create = (t) => new Zn({
|
|
2670
2674
|
typeName: Y.ZodBoolean,
|
|
2671
2675
|
coerce: (t == null ? void 0 : t.coerce) || !1,
|
|
2672
2676
|
...te(t)
|
|
@@ -2749,7 +2753,7 @@ lr.create = (t) => new lr({
|
|
|
2749
2753
|
typeName: Y.ZodDate,
|
|
2750
2754
|
...te(t)
|
|
2751
2755
|
});
|
|
2752
|
-
class
|
|
2756
|
+
class Bn extends ce {
|
|
2753
2757
|
_parse(e) {
|
|
2754
2758
|
if (this._getType(e) !== V.symbol) {
|
|
2755
2759
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2762,11 +2766,11 @@ class Zn extends ce {
|
|
|
2762
2766
|
return We(e.data);
|
|
2763
2767
|
}
|
|
2764
2768
|
}
|
|
2765
|
-
|
|
2769
|
+
Bn.create = (t) => new Bn({
|
|
2766
2770
|
typeName: Y.ZodSymbol,
|
|
2767
2771
|
...te(t)
|
|
2768
2772
|
});
|
|
2769
|
-
class
|
|
2773
|
+
class Wn extends ce {
|
|
2770
2774
|
_parse(e) {
|
|
2771
2775
|
if (this._getType(e) !== V.undefined) {
|
|
2772
2776
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2779,11 +2783,11 @@ class Bn extends ce {
|
|
|
2779
2783
|
return We(e.data);
|
|
2780
2784
|
}
|
|
2781
2785
|
}
|
|
2782
|
-
|
|
2786
|
+
Wn.create = (t) => new Wn({
|
|
2783
2787
|
typeName: Y.ZodUndefined,
|
|
2784
2788
|
...te(t)
|
|
2785
2789
|
});
|
|
2786
|
-
class
|
|
2790
|
+
class qn extends ce {
|
|
2787
2791
|
_parse(e) {
|
|
2788
2792
|
if (this._getType(e) !== V.null) {
|
|
2789
2793
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2796,11 +2800,11 @@ class Wn extends ce {
|
|
|
2796
2800
|
return We(e.data);
|
|
2797
2801
|
}
|
|
2798
2802
|
}
|
|
2799
|
-
|
|
2803
|
+
qn.create = (t) => new qn({
|
|
2800
2804
|
typeName: Y.ZodNull,
|
|
2801
2805
|
...te(t)
|
|
2802
2806
|
});
|
|
2803
|
-
class
|
|
2807
|
+
class Gn extends ce {
|
|
2804
2808
|
constructor() {
|
|
2805
2809
|
super(...arguments), this._any = !0;
|
|
2806
2810
|
}
|
|
@@ -2808,11 +2812,11 @@ class qn extends ce {
|
|
|
2808
2812
|
return We(e.data);
|
|
2809
2813
|
}
|
|
2810
2814
|
}
|
|
2811
|
-
|
|
2815
|
+
Gn.create = (t) => new Gn({
|
|
2812
2816
|
typeName: Y.ZodAny,
|
|
2813
2817
|
...te(t)
|
|
2814
2818
|
});
|
|
2815
|
-
class
|
|
2819
|
+
class Hn extends ce {
|
|
2816
2820
|
constructor() {
|
|
2817
2821
|
super(...arguments), this._unknown = !0;
|
|
2818
2822
|
}
|
|
@@ -2820,7 +2824,7 @@ class Gn extends ce {
|
|
|
2820
2824
|
return We(e.data);
|
|
2821
2825
|
}
|
|
2822
2826
|
}
|
|
2823
|
-
|
|
2827
|
+
Hn.create = (t) => new Hn({
|
|
2824
2828
|
typeName: Y.ZodUnknown,
|
|
2825
2829
|
...te(t)
|
|
2826
2830
|
});
|
|
@@ -2838,7 +2842,7 @@ ht.create = (t) => new ht({
|
|
|
2838
2842
|
typeName: Y.ZodNever,
|
|
2839
2843
|
...te(t)
|
|
2840
2844
|
});
|
|
2841
|
-
class
|
|
2845
|
+
class Yn extends ce {
|
|
2842
2846
|
_parse(e) {
|
|
2843
2847
|
if (this._getType(e) !== V.undefined) {
|
|
2844
2848
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2851,7 +2855,7 @@ class Hn extends ce {
|
|
|
2851
2855
|
return We(e.data);
|
|
2852
2856
|
}
|
|
2853
2857
|
}
|
|
2854
|
-
|
|
2858
|
+
Yn.create = (t) => new Yn({
|
|
2855
2859
|
typeName: Y.ZodVoid,
|
|
2856
2860
|
...te(t)
|
|
2857
2861
|
});
|
|
@@ -3305,14 +3309,14 @@ ur.create = (t, e) => new ur({
|
|
|
3305
3309
|
typeName: Y.ZodUnion,
|
|
3306
3310
|
...te(e)
|
|
3307
3311
|
});
|
|
3308
|
-
function
|
|
3312
|
+
function Ur(t, e) {
|
|
3309
3313
|
const r = at(t), n = at(e);
|
|
3310
3314
|
if (t === e)
|
|
3311
3315
|
return { valid: !0, data: t };
|
|
3312
3316
|
if (r === V.object && n === V.object) {
|
|
3313
3317
|
const s = le.objectKeys(e), a = le.objectKeys(t).filter((o) => s.indexOf(o) !== -1), i = { ...t, ...e };
|
|
3314
3318
|
for (const o of a) {
|
|
3315
|
-
const c =
|
|
3319
|
+
const c = Ur(t[o], e[o]);
|
|
3316
3320
|
if (!c.valid)
|
|
3317
3321
|
return { valid: !1 };
|
|
3318
3322
|
i[o] = c.data;
|
|
@@ -3323,7 +3327,7 @@ function Dr(t, e) {
|
|
|
3323
3327
|
return { valid: !1 };
|
|
3324
3328
|
const s = [];
|
|
3325
3329
|
for (let a = 0; a < t.length; a++) {
|
|
3326
|
-
const i = t[a], o = e[a], c =
|
|
3330
|
+
const i = t[a], o = e[a], c = Ur(i, o);
|
|
3327
3331
|
if (!c.valid)
|
|
3328
3332
|
return { valid: !1 };
|
|
3329
3333
|
s.push(c.data);
|
|
@@ -3334,10 +3338,10 @@ function Dr(t, e) {
|
|
|
3334
3338
|
class dr extends ce {
|
|
3335
3339
|
_parse(e) {
|
|
3336
3340
|
const { status: r, ctx: n } = this._processInputParams(e), s = (a, i) => {
|
|
3337
|
-
if (
|
|
3341
|
+
if (Dn(a) || Dn(i))
|
|
3338
3342
|
return H;
|
|
3339
|
-
const o =
|
|
3340
|
-
return o.valid ? ((
|
|
3343
|
+
const o = Ur(a.value, i.value);
|
|
3344
|
+
return o.valid ? ((Un(a) || Un(i)) && r.dirty(), { status: r.value, value: o.data }) : (P(n, {
|
|
3341
3345
|
code: E.invalid_intersection_types
|
|
3342
3346
|
}), H);
|
|
3343
3347
|
};
|
|
@@ -3419,7 +3423,7 @@ bt.create = (t, e) => {
|
|
|
3419
3423
|
...te(e)
|
|
3420
3424
|
});
|
|
3421
3425
|
};
|
|
3422
|
-
class
|
|
3426
|
+
class Kn extends ce {
|
|
3423
3427
|
get keySchema() {
|
|
3424
3428
|
return this._def.keyType;
|
|
3425
3429
|
}
|
|
@@ -3461,13 +3465,13 @@ class Yn extends ce {
|
|
|
3461
3465
|
}
|
|
3462
3466
|
}
|
|
3463
3467
|
}
|
|
3464
|
-
|
|
3468
|
+
Kn.create = (t, e, r) => new Kn({
|
|
3465
3469
|
valueType: e,
|
|
3466
3470
|
keyType: t,
|
|
3467
3471
|
typeName: Y.ZodMap,
|
|
3468
3472
|
...te(r)
|
|
3469
3473
|
});
|
|
3470
|
-
class
|
|
3474
|
+
class Bt extends ce {
|
|
3471
3475
|
_parse(e) {
|
|
3472
3476
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
3473
3477
|
if (n.parsedType !== V.set)
|
|
@@ -3506,13 +3510,13 @@ class Zt extends ce {
|
|
|
3506
3510
|
return n.common.async ? Promise.all(o).then((c) => i(c)) : i(o);
|
|
3507
3511
|
}
|
|
3508
3512
|
min(e, r) {
|
|
3509
|
-
return new
|
|
3513
|
+
return new Bt({
|
|
3510
3514
|
...this._def,
|
|
3511
3515
|
minSize: { value: e, message: $.toString(r) }
|
|
3512
3516
|
});
|
|
3513
3517
|
}
|
|
3514
3518
|
max(e, r) {
|
|
3515
|
-
return new
|
|
3519
|
+
return new Bt({
|
|
3516
3520
|
...this._def,
|
|
3517
3521
|
maxSize: { value: e, message: $.toString(r) }
|
|
3518
3522
|
});
|
|
@@ -3524,14 +3528,14 @@ class Zt extends ce {
|
|
|
3524
3528
|
return this.min(1, e);
|
|
3525
3529
|
}
|
|
3526
3530
|
}
|
|
3527
|
-
|
|
3531
|
+
Bt.create = (t, e) => new Bt({
|
|
3528
3532
|
valueType: t,
|
|
3529
3533
|
minSize: null,
|
|
3530
3534
|
maxSize: null,
|
|
3531
3535
|
typeName: Y.ZodSet,
|
|
3532
3536
|
...te(e)
|
|
3533
3537
|
});
|
|
3534
|
-
class
|
|
3538
|
+
class Jn extends ce {
|
|
3535
3539
|
get schema() {
|
|
3536
3540
|
return this._def.getter();
|
|
3537
3541
|
}
|
|
@@ -3540,12 +3544,12 @@ class Kn extends ce {
|
|
|
3540
3544
|
return this._def.getter()._parse({ data: r.data, path: r.path, parent: r });
|
|
3541
3545
|
}
|
|
3542
3546
|
}
|
|
3543
|
-
|
|
3547
|
+
Jn.create = (t, e) => new Jn({
|
|
3544
3548
|
getter: t,
|
|
3545
3549
|
typeName: Y.ZodLazy,
|
|
3546
3550
|
...te(e)
|
|
3547
3551
|
});
|
|
3548
|
-
class
|
|
3552
|
+
class zr extends ce {
|
|
3549
3553
|
_parse(e) {
|
|
3550
3554
|
if (e.data !== this._def.value) {
|
|
3551
3555
|
const r = this._getOrReturnCtx(e);
|
|
@@ -3561,7 +3565,7 @@ class Ur extends ce {
|
|
|
3561
3565
|
return this._def.value;
|
|
3562
3566
|
}
|
|
3563
3567
|
}
|
|
3564
|
-
|
|
3568
|
+
zr.create = (t, e) => new zr({
|
|
3565
3569
|
value: t,
|
|
3566
3570
|
typeName: Y.ZodLiteral,
|
|
3567
3571
|
...te(e)
|
|
@@ -3628,7 +3632,7 @@ class Rt extends ce {
|
|
|
3628
3632
|
}
|
|
3629
3633
|
}
|
|
3630
3634
|
Rt.create = qs;
|
|
3631
|
-
class
|
|
3635
|
+
class Xn extends ce {
|
|
3632
3636
|
_parse(e) {
|
|
3633
3637
|
const r = le.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
3634
3638
|
if (n.parsedType !== V.string && n.parsedType !== V.number) {
|
|
@@ -3653,7 +3657,7 @@ class Jn extends ce {
|
|
|
3653
3657
|
return this._def.values;
|
|
3654
3658
|
}
|
|
3655
3659
|
}
|
|
3656
|
-
|
|
3660
|
+
Xn.create = (t, e) => new Xn({
|
|
3657
3661
|
values: t,
|
|
3658
3662
|
typeName: Y.ZodNativeEnum,
|
|
3659
3663
|
...te(e)
|
|
@@ -3709,7 +3713,7 @@ class Ot extends ce {
|
|
|
3709
3713
|
path: n.path,
|
|
3710
3714
|
parent: n
|
|
3711
3715
|
});
|
|
3712
|
-
return c.status === "aborted" ? H : c.status === "dirty" || r.value === "dirty" ?
|
|
3716
|
+
return c.status === "aborted" ? H : c.status === "dirty" || r.value === "dirty" ? $t(c.value) : c;
|
|
3713
3717
|
});
|
|
3714
3718
|
{
|
|
3715
3719
|
if (r.value === "aborted")
|
|
@@ -3719,7 +3723,7 @@ class Ot extends ce {
|
|
|
3719
3723
|
path: n.path,
|
|
3720
3724
|
parent: n
|
|
3721
3725
|
});
|
|
3722
|
-
return o.status === "aborted" ? H : o.status === "dirty" || r.value === "dirty" ?
|
|
3726
|
+
return o.status === "aborted" ? H : o.status === "dirty" || r.value === "dirty" ? $t(o.value) : o;
|
|
3723
3727
|
}
|
|
3724
3728
|
}
|
|
3725
3729
|
if (s.type === "refinement") {
|
|
@@ -3800,7 +3804,7 @@ Nt.create = (t, e) => new Nt({
|
|
|
3800
3804
|
typeName: Y.ZodNullable,
|
|
3801
3805
|
...te(e)
|
|
3802
3806
|
});
|
|
3803
|
-
class
|
|
3807
|
+
class Zr extends ce {
|
|
3804
3808
|
_parse(e) {
|
|
3805
3809
|
const { ctx: r } = this._processInputParams(e);
|
|
3806
3810
|
let n = r.data;
|
|
@@ -3814,13 +3818,13 @@ class zr extends ce {
|
|
|
3814
3818
|
return this._def.innerType;
|
|
3815
3819
|
}
|
|
3816
3820
|
}
|
|
3817
|
-
|
|
3821
|
+
Zr.create = (t, e) => new Zr({
|
|
3818
3822
|
innerType: t,
|
|
3819
3823
|
typeName: Y.ZodDefault,
|
|
3820
3824
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
3821
3825
|
...te(e)
|
|
3822
3826
|
});
|
|
3823
|
-
class
|
|
3827
|
+
class Br extends ce {
|
|
3824
3828
|
_parse(e) {
|
|
3825
3829
|
const { ctx: r } = this._processInputParams(e), n = {
|
|
3826
3830
|
...r,
|
|
@@ -3857,13 +3861,13 @@ class Zr extends ce {
|
|
|
3857
3861
|
return this._def.innerType;
|
|
3858
3862
|
}
|
|
3859
3863
|
}
|
|
3860
|
-
|
|
3864
|
+
Br.create = (t, e) => new Br({
|
|
3861
3865
|
innerType: t,
|
|
3862
3866
|
typeName: Y.ZodCatch,
|
|
3863
3867
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
3864
3868
|
...te(e)
|
|
3865
3869
|
});
|
|
3866
|
-
class
|
|
3870
|
+
class Qn extends ce {
|
|
3867
3871
|
_parse(e) {
|
|
3868
3872
|
if (this._getType(e) !== V.nan) {
|
|
3869
3873
|
const n = this._getOrReturnCtx(e);
|
|
@@ -3876,7 +3880,7 @@ class Xn extends ce {
|
|
|
3876
3880
|
return { status: "valid", value: e.data };
|
|
3877
3881
|
}
|
|
3878
3882
|
}
|
|
3879
|
-
|
|
3883
|
+
Qn.create = (t) => new Qn({
|
|
3880
3884
|
typeName: Y.ZodNaN,
|
|
3881
3885
|
...te(t)
|
|
3882
3886
|
});
|
|
@@ -3893,7 +3897,7 @@ class Gi extends ce {
|
|
|
3893
3897
|
return this._def.type;
|
|
3894
3898
|
}
|
|
3895
3899
|
}
|
|
3896
|
-
class
|
|
3900
|
+
class ln extends ce {
|
|
3897
3901
|
_parse(e) {
|
|
3898
3902
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
3899
3903
|
if (n.common.async)
|
|
@@ -3903,7 +3907,7 @@ class cn extends ce {
|
|
|
3903
3907
|
path: n.path,
|
|
3904
3908
|
parent: n
|
|
3905
3909
|
});
|
|
3906
|
-
return a.status === "aborted" ? H : a.status === "dirty" ? (r.dirty(),
|
|
3910
|
+
return a.status === "aborted" ? H : a.status === "dirty" ? (r.dirty(), $t(a.value)) : this._def.out._parseAsync({
|
|
3907
3911
|
data: a.value,
|
|
3908
3912
|
path: n.path,
|
|
3909
3913
|
parent: n
|
|
@@ -3926,14 +3930,14 @@ class cn extends ce {
|
|
|
3926
3930
|
}
|
|
3927
3931
|
}
|
|
3928
3932
|
static create(e, r) {
|
|
3929
|
-
return new
|
|
3933
|
+
return new ln({
|
|
3930
3934
|
in: e,
|
|
3931
3935
|
out: r,
|
|
3932
3936
|
typeName: Y.ZodPipeline
|
|
3933
3937
|
});
|
|
3934
3938
|
}
|
|
3935
3939
|
}
|
|
3936
|
-
class
|
|
3940
|
+
class Wr extends ce {
|
|
3937
3941
|
_parse(e) {
|
|
3938
3942
|
const r = this._def.innerType._parse(e), n = (s) => (Et(s) && (s.value = Object.freeze(s.value)), s);
|
|
3939
3943
|
return cr(r) ? r.then((s) => n(s)) : n(r);
|
|
@@ -3942,7 +3946,7 @@ class Br extends ce {
|
|
|
3942
3946
|
return this._def.innerType;
|
|
3943
3947
|
}
|
|
3944
3948
|
}
|
|
3945
|
-
|
|
3949
|
+
Wr.create = (t, e) => new Wr({
|
|
3946
3950
|
innerType: t,
|
|
3947
3951
|
typeName: Y.ZodReadonly,
|
|
3948
3952
|
...te(e)
|
|
@@ -3954,11 +3958,11 @@ var Y;
|
|
|
3954
3958
|
const Qe = ct.create;
|
|
3955
3959
|
ht.create;
|
|
3956
3960
|
et.create;
|
|
3957
|
-
const
|
|
3961
|
+
const br = Se.create;
|
|
3958
3962
|
ur.create;
|
|
3959
3963
|
dr.create;
|
|
3960
3964
|
bt.create;
|
|
3961
|
-
const Hi =
|
|
3965
|
+
const Hi = zr.create;
|
|
3962
3966
|
Rt.create;
|
|
3963
3967
|
fr.create;
|
|
3964
3968
|
ut.create;
|
|
@@ -4003,7 +4007,7 @@ const Ji = yr(
|
|
|
4003
4007
|
children: a,
|
|
4004
4008
|
iconNode: i,
|
|
4005
4009
|
...o
|
|
4006
|
-
}, c) =>
|
|
4010
|
+
}, c) => Ut(
|
|
4007
4011
|
"svg",
|
|
4008
4012
|
{
|
|
4009
4013
|
ref: c,
|
|
@@ -4016,7 +4020,7 @@ const Ji = yr(
|
|
|
4016
4020
|
...o
|
|
4017
4021
|
},
|
|
4018
4022
|
[
|
|
4019
|
-
...i.map(([l, f]) =>
|
|
4023
|
+
...i.map(([l, f]) => Ut(l, f)),
|
|
4020
4024
|
...Array.isArray(a) ? a : [a]
|
|
4021
4025
|
]
|
|
4022
4026
|
)
|
|
@@ -4029,7 +4033,7 @@ const Ji = yr(
|
|
|
4029
4033
|
*/
|
|
4030
4034
|
const mt = (t, e) => {
|
|
4031
4035
|
const r = yr(
|
|
4032
|
-
({ className: n, ...s }, a) =>
|
|
4036
|
+
({ className: n, ...s }, a) => Ut(Ji, {
|
|
4033
4037
|
ref: a,
|
|
4034
4038
|
iconNode: e,
|
|
4035
4039
|
className: Gs(`lucide-${Yi(t)}`, n),
|
|
@@ -4145,14 +4149,14 @@ function Ys() {
|
|
|
4145
4149
|
for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = Hs(t)) && (n && (n += " "), n += e);
|
|
4146
4150
|
return n;
|
|
4147
4151
|
}
|
|
4148
|
-
const
|
|
4152
|
+
const un = "-", ao = (t) => {
|
|
4149
4153
|
const e = oo(t), {
|
|
4150
4154
|
conflictingClassGroups: r,
|
|
4151
4155
|
conflictingClassGroupModifiers: n
|
|
4152
4156
|
} = t;
|
|
4153
4157
|
return {
|
|
4154
4158
|
getClassGroupId: (i) => {
|
|
4155
|
-
const o = i.split(
|
|
4159
|
+
const o = i.split(un);
|
|
4156
4160
|
return o[0] === "" && o.length !== 1 && o.shift(), Ks(o, e) || io(i);
|
|
4157
4161
|
},
|
|
4158
4162
|
getConflictingClassGroupIds: (i, o) => {
|
|
@@ -4169,13 +4173,13 @@ const ln = "-", ao = (t) => {
|
|
|
4169
4173
|
return s;
|
|
4170
4174
|
if (e.validators.length === 0)
|
|
4171
4175
|
return;
|
|
4172
|
-
const a = t.join(
|
|
4176
|
+
const a = t.join(un);
|
|
4173
4177
|
return (i = e.validators.find(({
|
|
4174
4178
|
validator: o
|
|
4175
4179
|
}) => o(a))) == null ? void 0 : i.classGroupId;
|
|
4176
|
-
},
|
|
4177
|
-
if (
|
|
4178
|
-
const e =
|
|
4180
|
+
}, es = /^\[(.+)\]$/, io = (t) => {
|
|
4181
|
+
if (es.test(t)) {
|
|
4182
|
+
const e = es.exec(t)[1], r = e == null ? void 0 : e.substring(0, e.indexOf(":"));
|
|
4179
4183
|
if (r)
|
|
4180
4184
|
return "arbitrary.." + r;
|
|
4181
4185
|
}
|
|
@@ -4188,18 +4192,18 @@ const ln = "-", ao = (t) => {
|
|
|
4188
4192
|
validators: []
|
|
4189
4193
|
};
|
|
4190
4194
|
return lo(Object.entries(t.classGroups), r).forEach(([a, i]) => {
|
|
4191
|
-
|
|
4195
|
+
qr(i, n, a, e);
|
|
4192
4196
|
}), n;
|
|
4193
|
-
},
|
|
4197
|
+
}, qr = (t, e, r, n) => {
|
|
4194
4198
|
t.forEach((s) => {
|
|
4195
4199
|
if (typeof s == "string") {
|
|
4196
|
-
const a = s === "" ? e :
|
|
4200
|
+
const a = s === "" ? e : ts(e, s);
|
|
4197
4201
|
a.classGroupId = r;
|
|
4198
4202
|
return;
|
|
4199
4203
|
}
|
|
4200
4204
|
if (typeof s == "function") {
|
|
4201
4205
|
if (co(s)) {
|
|
4202
|
-
|
|
4206
|
+
qr(s(n), e, r, n);
|
|
4203
4207
|
return;
|
|
4204
4208
|
}
|
|
4205
4209
|
e.validators.push({
|
|
@@ -4209,12 +4213,12 @@ const ln = "-", ao = (t) => {
|
|
|
4209
4213
|
return;
|
|
4210
4214
|
}
|
|
4211
4215
|
Object.entries(s).forEach(([a, i]) => {
|
|
4212
|
-
|
|
4216
|
+
qr(i, ts(e, a), r, n);
|
|
4213
4217
|
});
|
|
4214
4218
|
});
|
|
4215
|
-
},
|
|
4219
|
+
}, ts = (t, e) => {
|
|
4216
4220
|
let r = t;
|
|
4217
|
-
return e.split(
|
|
4221
|
+
return e.split(un).forEach((n) => {
|
|
4218
4222
|
r.nextPart.has(n) || r.nextPart.set(n, {
|
|
4219
4223
|
nextPart: /* @__PURE__ */ new Map(),
|
|
4220
4224
|
validators: []
|
|
@@ -4365,7 +4369,7 @@ function vo(t, ...e) {
|
|
|
4365
4369
|
const ge = (t) => {
|
|
4366
4370
|
const e = (r) => r[t] || [];
|
|
4367
4371
|
return e.isThemeGetter = !0, e;
|
|
4368
|
-
}, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, bo = /^\d+\/\d+$/, xo = /* @__PURE__ */ new Set(["px", "full", "screen"]), _o = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ko = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, So = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Co = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (t) => Ct(t) || xo.has(t) || bo.test(t), nt = (t) =>
|
|
4372
|
+
}, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, bo = /^\d+\/\d+$/, xo = /* @__PURE__ */ new Set(["px", "full", "screen"]), _o = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ko = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, So = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Co = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (t) => Ct(t) || xo.has(t) || bo.test(t), nt = (t) => It(t, "length", Io), Ct = (t) => !!t && !Number.isNaN(Number(t)), Rr = (t) => It(t, "number", Ct), Mt = (t) => !!t && Number.isInteger(Number(t)), Eo = (t) => t.endsWith("%") && Ct(t.slice(0, -1)), X = (t) => Qs.test(t), st = (t) => _o.test(t), Ro = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Oo = (t) => It(t, Ro, ea), No = (t) => It(t, "position", ea), Ao = /* @__PURE__ */ new Set(["image", "url"]), To = (t) => It(t, Ao, jo), Po = (t) => It(t, "", Lo), Vt = () => !0, It = (t, e, r) => {
|
|
4369
4373
|
const n = Qs.exec(t);
|
|
4370
4374
|
return n ? n[1] ? typeof e == "string" ? n[1] === e : e.has(n[1]) : r(n[2]) : !1;
|
|
4371
4375
|
}, Io = (t) => (
|
|
@@ -4379,7 +4383,7 @@ const ge = (t) => {
|
|
|
4379
4383
|
cacheSize: 500,
|
|
4380
4384
|
separator: ":",
|
|
4381
4385
|
theme: {
|
|
4382
|
-
colors: [
|
|
4386
|
+
colors: [Vt],
|
|
4383
4387
|
spacing: [tt, nt],
|
|
4384
4388
|
blur: ["none", "", st, X],
|
|
4385
4389
|
brightness: R(),
|
|
@@ -4619,7 +4623,7 @@ const ge = (t) => {
|
|
|
4619
4623
|
* @see https://tailwindcss.com/docs/z-index
|
|
4620
4624
|
*/
|
|
4621
4625
|
z: [{
|
|
4622
|
-
z: ["auto",
|
|
4626
|
+
z: ["auto", Mt, X]
|
|
4623
4627
|
}],
|
|
4624
4628
|
// Flexbox and Grid
|
|
4625
4629
|
/**
|
|
@@ -4669,14 +4673,14 @@ const ge = (t) => {
|
|
|
4669
4673
|
* @see https://tailwindcss.com/docs/order
|
|
4670
4674
|
*/
|
|
4671
4675
|
order: [{
|
|
4672
|
-
order: ["first", "last", "none",
|
|
4676
|
+
order: ["first", "last", "none", Mt, X]
|
|
4673
4677
|
}],
|
|
4674
4678
|
/**
|
|
4675
4679
|
* Grid Template Columns
|
|
4676
4680
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
4677
4681
|
*/
|
|
4678
4682
|
"grid-cols": [{
|
|
4679
|
-
"grid-cols": [
|
|
4683
|
+
"grid-cols": [Vt]
|
|
4680
4684
|
}],
|
|
4681
4685
|
/**
|
|
4682
4686
|
* Grid Column Start / End
|
|
@@ -4684,7 +4688,7 @@ const ge = (t) => {
|
|
|
4684
4688
|
*/
|
|
4685
4689
|
"col-start-end": [{
|
|
4686
4690
|
col: ["auto", {
|
|
4687
|
-
span: ["full",
|
|
4691
|
+
span: ["full", Mt, X]
|
|
4688
4692
|
}, X]
|
|
4689
4693
|
}],
|
|
4690
4694
|
/**
|
|
@@ -4706,7 +4710,7 @@ const ge = (t) => {
|
|
|
4706
4710
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
4707
4711
|
*/
|
|
4708
4712
|
"grid-rows": [{
|
|
4709
|
-
"grid-rows": [
|
|
4713
|
+
"grid-rows": [Vt]
|
|
4710
4714
|
}],
|
|
4711
4715
|
/**
|
|
4712
4716
|
* Grid Row Start / End
|
|
@@ -4714,7 +4718,7 @@ const ge = (t) => {
|
|
|
4714
4718
|
*/
|
|
4715
4719
|
"row-start-end": [{
|
|
4716
4720
|
row: ["auto", {
|
|
4717
|
-
span: [
|
|
4721
|
+
span: [Mt, X]
|
|
4718
4722
|
}, X]
|
|
4719
4723
|
}],
|
|
4720
4724
|
/**
|
|
@@ -5062,14 +5066,14 @@ const ge = (t) => {
|
|
|
5062
5066
|
* @see https://tailwindcss.com/docs/font-weight
|
|
5063
5067
|
*/
|
|
5064
5068
|
"font-weight": [{
|
|
5065
|
-
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black",
|
|
5069
|
+
font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Rr]
|
|
5066
5070
|
}],
|
|
5067
5071
|
/**
|
|
5068
5072
|
* Font Family
|
|
5069
5073
|
* @see https://tailwindcss.com/docs/font-family
|
|
5070
5074
|
*/
|
|
5071
5075
|
"font-family": [{
|
|
5072
|
-
font: [
|
|
5076
|
+
font: [Vt]
|
|
5073
5077
|
}],
|
|
5074
5078
|
/**
|
|
5075
5079
|
* Font Variant Numeric
|
|
@@ -5113,7 +5117,7 @@ const ge = (t) => {
|
|
|
5113
5117
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
5114
5118
|
*/
|
|
5115
5119
|
"line-clamp": [{
|
|
5116
|
-
"line-clamp": ["none", Ct,
|
|
5120
|
+
"line-clamp": ["none", Ct, Rr]
|
|
5117
5121
|
}],
|
|
5118
5122
|
/**
|
|
5119
5123
|
* Line Height
|
|
@@ -5754,7 +5758,7 @@ const ge = (t) => {
|
|
|
5754
5758
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
5755
5759
|
*/
|
|
5756
5760
|
"shadow-color": [{
|
|
5757
|
-
shadow: [
|
|
5761
|
+
shadow: [Vt]
|
|
5758
5762
|
}],
|
|
5759
5763
|
/**
|
|
5760
5764
|
* Opacity
|
|
@@ -6033,7 +6037,7 @@ const ge = (t) => {
|
|
|
6033
6037
|
* @see https://tailwindcss.com/docs/rotate
|
|
6034
6038
|
*/
|
|
6035
6039
|
rotate: [{
|
|
6036
|
-
rotate: [
|
|
6040
|
+
rotate: [Mt, X]
|
|
6037
6041
|
}],
|
|
6038
6042
|
/**
|
|
6039
6043
|
* Translate X
|
|
@@ -6327,7 +6331,7 @@ const ge = (t) => {
|
|
|
6327
6331
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
6328
6332
|
*/
|
|
6329
6333
|
"stroke-w": [{
|
|
6330
|
-
stroke: [tt, nt,
|
|
6334
|
+
stroke: [tt, nt, Rr]
|
|
6331
6335
|
}],
|
|
6332
6336
|
/**
|
|
6333
6337
|
* Stroke
|
|
@@ -6418,10 +6422,10 @@ var Yt = { exports: {} }, Kt = { exports: {} }, de = {};
|
|
|
6418
6422
|
* This source code is licensed under the MIT license found in the
|
|
6419
6423
|
* LICENSE file in the root directory of this source tree.
|
|
6420
6424
|
*/
|
|
6421
|
-
var
|
|
6425
|
+
var rs;
|
|
6422
6426
|
function $o() {
|
|
6423
|
-
if (
|
|
6424
|
-
|
|
6427
|
+
if (rs) return de;
|
|
6428
|
+
rs = 1;
|
|
6425
6429
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, C = t ? Symbol.for("react.scope") : 60119;
|
|
6426
6430
|
function D(x) {
|
|
6427
6431
|
if (typeof x == "object" && x !== null) {
|
|
@@ -6493,9 +6497,9 @@ var fe = {};
|
|
|
6493
6497
|
* This source code is licensed under the MIT license found in the
|
|
6494
6498
|
* LICENSE file in the root directory of this source tree.
|
|
6495
6499
|
*/
|
|
6496
|
-
var
|
|
6500
|
+
var ns;
|
|
6497
6501
|
function Fo() {
|
|
6498
|
-
return
|
|
6502
|
+
return ns || (ns = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
6499
6503
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, C = t ? Symbol.for("react.scope") : 60119;
|
|
6500
6504
|
function D(T) {
|
|
6501
6505
|
return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -6576,19 +6580,19 @@ function Fo() {
|
|
|
6576
6580
|
fe.AsyncMode = x, fe.ConcurrentMode = Z, fe.ContextConsumer = j, fe.ContextProvider = U, fe.Element = B, fe.ForwardRef = re, fe.Fragment = he, fe.Lazy = M, fe.Memo = W, fe.Portal = ne, fe.Profiler = ve, fe.StrictMode = ue, fe.Suspense = be, fe.isAsyncMode = Ee, fe.isConcurrentMode = _, fe.isContextConsumer = R, fe.isContextProvider = G, fe.isElement = q, fe.isForwardRef = K, fe.isFragment = se, fe.isLazy = Q, fe.isMemo = ee, fe.isPortal = ie, fe.isProfiler = oe, fe.isStrictMode = ae, fe.isSuspense = Re, fe.isValidElementType = D, fe.typeOf = I;
|
|
6577
6581
|
})()), fe;
|
|
6578
6582
|
}
|
|
6579
|
-
var
|
|
6580
|
-
function
|
|
6581
|
-
return
|
|
6583
|
+
var ss;
|
|
6584
|
+
function dn() {
|
|
6585
|
+
return ss || (ss = 1, process.env.NODE_ENV === "production" ? Kt.exports = $o() : Kt.exports = Fo()), Kt.exports;
|
|
6582
6586
|
}
|
|
6583
6587
|
/*
|
|
6584
6588
|
object-assign
|
|
6585
6589
|
(c) Sindre Sorhus
|
|
6586
6590
|
@license MIT
|
|
6587
6591
|
*/
|
|
6588
|
-
var
|
|
6592
|
+
var Or, as;
|
|
6589
6593
|
function Do() {
|
|
6590
|
-
if (
|
|
6591
|
-
|
|
6594
|
+
if (as) return Or;
|
|
6595
|
+
as = 1;
|
|
6592
6596
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
6593
6597
|
function n(a) {
|
|
6594
6598
|
if (a == null)
|
|
@@ -6617,7 +6621,7 @@ function Do() {
|
|
|
6617
6621
|
return !1;
|
|
6618
6622
|
}
|
|
6619
6623
|
}
|
|
6620
|
-
return
|
|
6624
|
+
return Or = s() ? Object.assign : function(a, i) {
|
|
6621
6625
|
for (var o, c = n(a), l, f = 1; f < arguments.length; f++) {
|
|
6622
6626
|
o = Object(arguments[f]);
|
|
6623
6627
|
for (var d in o)
|
|
@@ -6629,27 +6633,27 @@ function Do() {
|
|
|
6629
6633
|
}
|
|
6630
6634
|
}
|
|
6631
6635
|
return c;
|
|
6632
|
-
},
|
|
6636
|
+
}, Or;
|
|
6633
6637
|
}
|
|
6634
|
-
var
|
|
6635
|
-
function
|
|
6636
|
-
if (
|
|
6637
|
-
|
|
6638
|
+
var Nr, is;
|
|
6639
|
+
function fn() {
|
|
6640
|
+
if (is) return Nr;
|
|
6641
|
+
is = 1;
|
|
6638
6642
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
6639
|
-
return
|
|
6643
|
+
return Nr = t, Nr;
|
|
6640
6644
|
}
|
|
6641
|
-
var
|
|
6645
|
+
var Ar, os;
|
|
6642
6646
|
function ra() {
|
|
6643
|
-
return
|
|
6647
|
+
return os || (os = 1, Ar = Function.call.bind(Object.prototype.hasOwnProperty)), Ar;
|
|
6644
6648
|
}
|
|
6645
|
-
var
|
|
6649
|
+
var Tr, cs;
|
|
6646
6650
|
function Uo() {
|
|
6647
|
-
if (
|
|
6648
|
-
|
|
6651
|
+
if (cs) return Tr;
|
|
6652
|
+
cs = 1;
|
|
6649
6653
|
var t = function() {
|
|
6650
6654
|
};
|
|
6651
6655
|
if (process.env.NODE_ENV !== "production") {
|
|
6652
|
-
var e = /* @__PURE__ */
|
|
6656
|
+
var e = /* @__PURE__ */ fn(), r = {}, n = /* @__PURE__ */ ra();
|
|
6653
6657
|
t = function(a) {
|
|
6654
6658
|
var i = "Warning: " + a;
|
|
6655
6659
|
typeof console < "u" && console.error(i);
|
|
@@ -6689,13 +6693,13 @@ function Uo() {
|
|
|
6689
6693
|
}
|
|
6690
6694
|
return s.resetWarningCache = function() {
|
|
6691
6695
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
6692
|
-
},
|
|
6696
|
+
}, Tr = s, Tr;
|
|
6693
6697
|
}
|
|
6694
|
-
var
|
|
6698
|
+
var Pr, ls;
|
|
6695
6699
|
function zo() {
|
|
6696
|
-
if (
|
|
6697
|
-
|
|
6698
|
-
var t =
|
|
6700
|
+
if (ls) return Pr;
|
|
6701
|
+
ls = 1;
|
|
6702
|
+
var t = dn(), e = Do(), r = /* @__PURE__ */ fn(), n = /* @__PURE__ */ ra(), s = /* @__PURE__ */ Uo(), a = function() {
|
|
6699
6703
|
};
|
|
6700
6704
|
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
6701
6705
|
var c = "Warning: " + o;
|
|
@@ -6708,7 +6712,7 @@ function zo() {
|
|
|
6708
6712
|
function i() {
|
|
6709
6713
|
return null;
|
|
6710
6714
|
}
|
|
6711
|
-
return
|
|
6715
|
+
return Pr = function(o, c) {
|
|
6712
6716
|
var l = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
6713
6717
|
function d(_) {
|
|
6714
6718
|
var R = _ && (l && _[l] || _[f]);
|
|
@@ -7010,18 +7014,18 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
|
|
|
7010
7014
|
return !_.constructor || !_.constructor.name ? p : _.constructor.name;
|
|
7011
7015
|
}
|
|
7012
7016
|
return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
|
|
7013
|
-
},
|
|
7017
|
+
}, Pr;
|
|
7014
7018
|
}
|
|
7015
|
-
var
|
|
7019
|
+
var Ir, us;
|
|
7016
7020
|
function Zo() {
|
|
7017
|
-
if (
|
|
7018
|
-
|
|
7019
|
-
var t = /* @__PURE__ */
|
|
7021
|
+
if (us) return Ir;
|
|
7022
|
+
us = 1;
|
|
7023
|
+
var t = /* @__PURE__ */ fn();
|
|
7020
7024
|
function e() {
|
|
7021
7025
|
}
|
|
7022
7026
|
function r() {
|
|
7023
7027
|
}
|
|
7024
|
-
return r.resetWarningCache = e,
|
|
7028
|
+
return r.resetWarningCache = e, Ir = function() {
|
|
7025
7029
|
function n(i, o, c, l, f, d) {
|
|
7026
7030
|
if (d !== t) {
|
|
7027
7031
|
var p = new Error(
|
|
@@ -7058,13 +7062,13 @@ function Zo() {
|
|
|
7058
7062
|
resetWarningCache: e
|
|
7059
7063
|
};
|
|
7060
7064
|
return a.PropTypes = a, a;
|
|
7061
|
-
},
|
|
7065
|
+
}, Ir;
|
|
7062
7066
|
}
|
|
7063
|
-
var
|
|
7067
|
+
var ds;
|
|
7064
7068
|
function Bo() {
|
|
7065
|
-
if (
|
|
7066
|
-
if (
|
|
7067
|
-
var t =
|
|
7069
|
+
if (ds) return Yt.exports;
|
|
7070
|
+
if (ds = 1, process.env.NODE_ENV !== "production") {
|
|
7071
|
+
var t = dn(), e = !0;
|
|
7068
7072
|
Yt.exports = /* @__PURE__ */ zo()(t.isElement, e);
|
|
7069
7073
|
} else
|
|
7070
7074
|
Yt.exports = /* @__PURE__ */ Zo()();
|
|
@@ -7073,15 +7077,15 @@ function Bo() {
|
|
|
7073
7077
|
var Wo = /* @__PURE__ */ Bo();
|
|
7074
7078
|
const Me = /* @__PURE__ */ ta(Wo);
|
|
7075
7079
|
var qo = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
|
|
7076
|
-
function
|
|
7077
|
-
return
|
|
7080
|
+
function Gr() {
|
|
7081
|
+
return Gr = Object.assign ? Object.assign.bind() : function(t) {
|
|
7078
7082
|
for (var e = 1; e < arguments.length; e++) {
|
|
7079
7083
|
var r = arguments[e];
|
|
7080
7084
|
for (var n in r)
|
|
7081
7085
|
Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
|
|
7082
7086
|
}
|
|
7083
7087
|
return t;
|
|
7084
|
-
},
|
|
7088
|
+
}, Gr.apply(this, arguments);
|
|
7085
7089
|
}
|
|
7086
7090
|
function Go(t, e) {
|
|
7087
7091
|
if (t == null) return {};
|
|
@@ -7096,14 +7100,14 @@ function Jt(t) {
|
|
|
7096
7100
|
return t;
|
|
7097
7101
|
}
|
|
7098
7102
|
function Ho(t, e) {
|
|
7099
|
-
t.prototype = Object.create(e.prototype), t.prototype.constructor = t,
|
|
7103
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Hr(t, e);
|
|
7100
7104
|
}
|
|
7101
|
-
function
|
|
7102
|
-
return
|
|
7105
|
+
function Hr(t, e) {
|
|
7106
|
+
return Hr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
|
|
7103
7107
|
return n.__proto__ = s, n;
|
|
7104
|
-
},
|
|
7108
|
+
}, Hr(t, e);
|
|
7105
7109
|
}
|
|
7106
|
-
var
|
|
7110
|
+
var xr = /* @__PURE__ */ (function(t) {
|
|
7107
7111
|
Ho(e, t);
|
|
7108
7112
|
function e() {
|
|
7109
7113
|
var n;
|
|
@@ -7169,13 +7173,13 @@ var br = /* @__PURE__ */ (function(t) {
|
|
|
7169
7173
|
var s = this.props;
|
|
7170
7174
|
s.sitekey, s.onChange, s.theme, s.type, s.tabindex, s.onExpired, s.onErrored, s.size, s.stoken, s.grecaptcha, s.badge, s.hl, s.isolated;
|
|
7171
7175
|
var a = Go(s, qo);
|
|
7172
|
-
return /* @__PURE__ */ w.createElement("div",
|
|
7176
|
+
return /* @__PURE__ */ w.createElement("div", Gr({}, a, {
|
|
7173
7177
|
ref: this.handleRecaptchaRef
|
|
7174
7178
|
}));
|
|
7175
7179
|
}, e;
|
|
7176
7180
|
})(w.Component);
|
|
7177
|
-
|
|
7178
|
-
|
|
7181
|
+
xr.displayName = "ReCAPTCHA";
|
|
7182
|
+
xr.propTypes = {
|
|
7179
7183
|
sitekey: Me.string.isRequired,
|
|
7180
7184
|
onChange: Me.func,
|
|
7181
7185
|
grecaptcha: Me.object,
|
|
@@ -7190,7 +7194,7 @@ br.propTypes = {
|
|
|
7190
7194
|
badge: Me.oneOf(["bottomright", "bottomleft", "inline"]),
|
|
7191
7195
|
isolated: Me.bool
|
|
7192
7196
|
};
|
|
7193
|
-
|
|
7197
|
+
xr.defaultProps = {
|
|
7194
7198
|
onChange: function() {
|
|
7195
7199
|
},
|
|
7196
7200
|
theme: "light",
|
|
@@ -7199,11 +7203,11 @@ br.defaultProps = {
|
|
|
7199
7203
|
size: "normal",
|
|
7200
7204
|
badge: "bottomright"
|
|
7201
7205
|
};
|
|
7202
|
-
var
|
|
7206
|
+
var Lr, fs;
|
|
7203
7207
|
function Yo() {
|
|
7204
|
-
if (
|
|
7205
|
-
|
|
7206
|
-
var t =
|
|
7208
|
+
if (fs) return Lr;
|
|
7209
|
+
fs = 1;
|
|
7210
|
+
var t = dn(), e = {
|
|
7207
7211
|
childContextTypes: !0,
|
|
7208
7212
|
contextType: !0,
|
|
7209
7213
|
contextTypes: !0,
|
|
@@ -7263,19 +7267,19 @@ function Yo() {
|
|
|
7263
7267
|
}
|
|
7264
7268
|
return b;
|
|
7265
7269
|
}
|
|
7266
|
-
return
|
|
7270
|
+
return Lr = m, Lr;
|
|
7267
7271
|
}
|
|
7268
7272
|
var Ko = Yo();
|
|
7269
7273
|
const Jo = /* @__PURE__ */ ta(Ko);
|
|
7270
|
-
function
|
|
7271
|
-
return
|
|
7274
|
+
function Yr() {
|
|
7275
|
+
return Yr = Object.assign || function(t) {
|
|
7272
7276
|
for (var e = 1; e < arguments.length; e++) {
|
|
7273
7277
|
var r = arguments[e];
|
|
7274
7278
|
for (var n in r)
|
|
7275
7279
|
Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
|
|
7276
7280
|
}
|
|
7277
7281
|
return t;
|
|
7278
|
-
},
|
|
7282
|
+
}, Yr.apply(this, arguments);
|
|
7279
7283
|
}
|
|
7280
7284
|
function Xo(t, e) {
|
|
7281
7285
|
if (t == null) return {};
|
|
@@ -7372,10 +7376,10 @@ function tc(t, e) {
|
|
|
7372
7376
|
var d = e.globalName, p = this.props;
|
|
7373
7377
|
p.asyncScriptOnLoad;
|
|
7374
7378
|
var m = p.forwardedRef, b = Xo(p, ["asyncScriptOnLoad", "forwardedRef"]);
|
|
7375
|
-
return d && typeof window < "u" && (b[d] = typeof window[d] < "u" ? window[d] : void 0), b.ref = m,
|
|
7379
|
+
return d && typeof window < "u" && (b[d] = typeof window[d] < "u" ? window[d] : void 0), b.ref = m, Ut(n, b);
|
|
7376
7380
|
}, c;
|
|
7377
7381
|
})(Ga), i = yr(function(o, c) {
|
|
7378
|
-
return
|
|
7382
|
+
return Ut(a, Yr({}, o, {
|
|
7379
7383
|
forwardedRef: c
|
|
7380
7384
|
}));
|
|
7381
7385
|
});
|
|
@@ -7384,43 +7388,43 @@ function tc(t, e) {
|
|
|
7384
7388
|
}, Jo(i, n);
|
|
7385
7389
|
};
|
|
7386
7390
|
}
|
|
7387
|
-
var
|
|
7388
|
-
function
|
|
7391
|
+
var Kr = "onloadcallback", rc = "grecaptcha";
|
|
7392
|
+
function Jr() {
|
|
7389
7393
|
return typeof window < "u" && window.recaptchaOptions || {};
|
|
7390
7394
|
}
|
|
7391
7395
|
function nc() {
|
|
7392
|
-
var t =
|
|
7393
|
-
return t.enterprise ? "https://" + e + "/recaptcha/enterprise.js?onload=" +
|
|
7396
|
+
var t = Jr(), e = t.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
|
|
7397
|
+
return t.enterprise ? "https://" + e + "/recaptcha/enterprise.js?onload=" + Kr + "&render=explicit" : "https://" + e + "/recaptcha/api.js?onload=" + Kr + "&render=explicit";
|
|
7394
7398
|
}
|
|
7395
7399
|
const sc = tc(nc, {
|
|
7396
|
-
callbackName:
|
|
7400
|
+
callbackName: Kr,
|
|
7397
7401
|
globalName: rc,
|
|
7398
|
-
attributes:
|
|
7399
|
-
nonce:
|
|
7402
|
+
attributes: Jr().nonce ? {
|
|
7403
|
+
nonce: Jr().nonce
|
|
7400
7404
|
} : {}
|
|
7401
|
-
})(
|
|
7405
|
+
})(xr);
|
|
7402
7406
|
function ze(t) {
|
|
7403
7407
|
if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
7404
7408
|
return t;
|
|
7405
7409
|
}
|
|
7406
|
-
function
|
|
7407
|
-
return
|
|
7410
|
+
function Xr(t, e) {
|
|
7411
|
+
return Xr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
|
|
7408
7412
|
return r.__proto__ = n, r;
|
|
7409
|
-
},
|
|
7413
|
+
}, Xr(t, e);
|
|
7410
7414
|
}
|
|
7411
7415
|
function ac(t, e) {
|
|
7412
|
-
t.prototype = Object.create(e.prototype), t.prototype.constructor = t,
|
|
7416
|
+
t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Xr(t, e);
|
|
7413
7417
|
}
|
|
7414
|
-
var ic = Object.defineProperty, oc = Object.defineProperties, cc = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable,
|
|
7415
|
-
for (var r in e || (e = {})) na.call(e, r) &&
|
|
7416
|
-
if (pr) for (var r of pr(e)) sa.call(e, r) &&
|
|
7418
|
+
var ic = Object.defineProperty, oc = Object.defineProperties, cc = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Qr = (t, e, r) => e in t ? ic(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Fe = (t, e) => {
|
|
7419
|
+
for (var r in e || (e = {})) na.call(e, r) && Qr(t, r, e[r]);
|
|
7420
|
+
if (pr) for (var r of pr(e)) sa.call(e, r) && Qr(t, r, e[r]);
|
|
7417
7421
|
return t;
|
|
7418
7422
|
}, aa = (t, e) => oc(t, cc(e)), lc = (t, e) => {
|
|
7419
7423
|
var r = {};
|
|
7420
7424
|
for (var n in t) na.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
|
|
7421
7425
|
if (t != null && pr) for (var n of pr(t)) e.indexOf(n) < 0 && sa.call(t, n) && (r[n] = t[n]);
|
|
7422
7426
|
return r;
|
|
7423
|
-
}, Oe = (t, e, r) => (
|
|
7427
|
+
}, Oe = (t, e, r) => (Qr(t, typeof e != "symbol" ? e + "" : e, r), r), At = (t, e, r) => new Promise((n, s) => {
|
|
7424
7428
|
var a = (c) => {
|
|
7425
7429
|
try {
|
|
7426
7430
|
o(r.next(c));
|
|
@@ -7435,7 +7439,7 @@ var ic = Object.defineProperty, oc = Object.defineProperties, cc = Object.getOwn
|
|
|
7435
7439
|
}
|
|
7436
7440
|
}, o = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
|
|
7437
7441
|
o((r = r.apply(t, e)).next());
|
|
7438
|
-
}), uc = "hCaptcha-script", rr = "hCaptchaOnLoad",
|
|
7442
|
+
}), uc = "hCaptcha-script", rr = "hCaptchaOnLoad", hs = "script-error", ot = "@hCaptcha/loader";
|
|
7439
7443
|
function dc(t) {
|
|
7440
7444
|
return Object.entries(t).filter(([, e]) => e || e === !1).map(([e, r]) => `${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`).join("&");
|
|
7441
7445
|
}
|
|
@@ -7521,7 +7525,7 @@ var yc = class ca {
|
|
|
7521
7525
|
clear() {
|
|
7522
7526
|
this.breadcrumbs = [], this.context = {}, this.tags = {}, this.user = void 0;
|
|
7523
7527
|
}
|
|
7524
|
-
}, gc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, vc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, bc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, xc = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Xt = "?",
|
|
7528
|
+
}, gc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, vc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, bc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, xc = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Xt = "?", ps = "An unknown error occurred", _c = "0.0.4";
|
|
7525
7529
|
function wc(t) {
|
|
7526
7530
|
for (let e = 0; e < t.length; e++) t[e] = Math.floor(Math.random() * 256);
|
|
7527
7531
|
return t;
|
|
@@ -7580,10 +7584,10 @@ function Nc(t) {
|
|
|
7580
7584
|
if (t instanceof Error) return t;
|
|
7581
7585
|
if (typeof t == "string") return new Error(t);
|
|
7582
7586
|
if (typeof t == "object" && t !== null && !Array.isArray(t)) {
|
|
7583
|
-
let r = t, { message: n } = r, s = lc(r, ["message"]), a = new Error(typeof n == "string" ? n :
|
|
7587
|
+
let r = t, { message: n } = r, s = lc(r, ["message"]), a = new Error(typeof n == "string" ? n : ps);
|
|
7584
7588
|
return Object.assign(a, s);
|
|
7585
7589
|
}
|
|
7586
|
-
let e = new Error(
|
|
7590
|
+
let e = new Error(ps);
|
|
7587
7591
|
return Object.assign(e, { cause: t });
|
|
7588
7592
|
}
|
|
7589
7593
|
function Ac(t, e, r) {
|
|
@@ -7618,7 +7622,7 @@ function Ac(t, e, r) {
|
|
|
7618
7622
|
}
|
|
7619
7623
|
});
|
|
7620
7624
|
}
|
|
7621
|
-
var je,
|
|
7625
|
+
var je, en = (je = class {
|
|
7622
7626
|
constructor(t) {
|
|
7623
7627
|
Oe(this, "apiURL"), Oe(this, "dsn"), Oe(this, "environment"), Oe(this, "release"), Oe(this, "sampleRate"), Oe(this, "debug"), Oe(this, "_scope"), Oe(this, "shouldBuffer", !1), Oe(this, "bufferlimit", 20), Oe(this, "buffer", []);
|
|
7624
7628
|
var e, r, n, s, a;
|
|
@@ -7701,18 +7705,18 @@ var je, Qr = (je = class {
|
|
|
7701
7705
|
}
|
|
7702
7706
|
}, Oe(je, "_instance"), je), Tc = "https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6", Pc = "2.3.0", Ic = "production";
|
|
7703
7707
|
function Lc(t = !0) {
|
|
7704
|
-
if (!t) return
|
|
7705
|
-
|
|
7706
|
-
let e =
|
|
7707
|
-
return fc(e),
|
|
7708
|
+
if (!t) return ms();
|
|
7709
|
+
en.init({ dsn: Tc, release: Pc, environment: Ic });
|
|
7710
|
+
let e = en.scope;
|
|
7711
|
+
return fc(e), ms(e);
|
|
7708
7712
|
}
|
|
7709
|
-
function
|
|
7713
|
+
function ms(t = null) {
|
|
7710
7714
|
return { addBreadcrumb: (e) => {
|
|
7711
7715
|
t && t.addBreadcrumb(e);
|
|
7712
7716
|
}, captureRequest: (e) => {
|
|
7713
7717
|
t && t.setRequest(e);
|
|
7714
7718
|
}, captureException: (e) => {
|
|
7715
|
-
t &&
|
|
7719
|
+
t && en.captureException(e, t);
|
|
7716
7720
|
} };
|
|
7717
7721
|
}
|
|
7718
7722
|
function jc({ scriptLocation: t, query: e, loadAsync: r = !0, crossOrigin: n = "anonymous", apihost: s = "https://js.hcaptcha.com", cleanup: a = !1, secureApi: i = !1, scriptSource: o = "" } = {}, c) {
|
|
@@ -7750,12 +7754,12 @@ function Mc(t = { cleanup: !1 }, e) {
|
|
|
7750
7754
|
} catch {
|
|
7751
7755
|
e.addBreadcrumb({ category: ot, message: "hCaptcha failed to load" });
|
|
7752
7756
|
let l = Qt.findIndex((f) => f.scope === n.window);
|
|
7753
|
-
l !== -1 && Qt.splice(l, 1), o(new Error(
|
|
7757
|
+
l !== -1 && Qt.splice(l, 1), o(new Error(hs));
|
|
7754
7758
|
}
|
|
7755
7759
|
}));
|
|
7756
7760
|
return Qt.push({ promise: a, scope: n.window }), a;
|
|
7757
7761
|
} catch (r) {
|
|
7758
|
-
return e.captureException(r), Promise.reject(new Error(
|
|
7762
|
+
return e.captureException(r), Promise.reject(new Error(hs));
|
|
7759
7763
|
}
|
|
7760
7764
|
}
|
|
7761
7765
|
function la(t, e, r = 0) {
|
|
@@ -7775,14 +7779,14 @@ function Vc() {
|
|
|
7775
7779
|
return yield la(t, e);
|
|
7776
7780
|
});
|
|
7777
7781
|
}
|
|
7778
|
-
function
|
|
7782
|
+
function ys(t) {
|
|
7779
7783
|
var e = t && t.ownerDocument || document, r = e.defaultView || e.parentWindow || window;
|
|
7780
7784
|
return {
|
|
7781
7785
|
document: e,
|
|
7782
7786
|
window: r
|
|
7783
7787
|
};
|
|
7784
7788
|
}
|
|
7785
|
-
function
|
|
7789
|
+
function gs(t) {
|
|
7786
7790
|
return t || document.head;
|
|
7787
7791
|
}
|
|
7788
7792
|
var $c = /* @__PURE__ */ (function(t) {
|
|
@@ -7797,7 +7801,7 @@ var $c = /* @__PURE__ */ (function(t) {
|
|
|
7797
7801
|
}
|
|
7798
7802
|
var r = e.prototype;
|
|
7799
7803
|
return r.componentDidMount = function() {
|
|
7800
|
-
var s = this, a =
|
|
7804
|
+
var s = this, a = gs(this.props.scriptLocation), i = ys(a);
|
|
7801
7805
|
this._hcaptcha = i.window.hcaptcha || void 0;
|
|
7802
7806
|
var o = typeof this._hcaptcha < "u";
|
|
7803
7807
|
if (o) {
|
|
@@ -7879,7 +7883,7 @@ var $c = /* @__PURE__ */ (function(t) {
|
|
|
7879
7883
|
this.setState({
|
|
7880
7884
|
isApiReady: !0
|
|
7881
7885
|
}, function() {
|
|
7882
|
-
var a =
|
|
7886
|
+
var a = gs(s.props.scriptLocation), i = ys(a);
|
|
7883
7887
|
s._hcaptcha = i.window.hcaptcha, s.renderCaptcha(function() {
|
|
7884
7888
|
var o = s.props.onLoad;
|
|
7885
7889
|
o && o();
|
|
@@ -7974,7 +7978,7 @@ var $c = /* @__PURE__ */ (function(t) {
|
|
|
7974
7978
|
});
|
|
7975
7979
|
}, e;
|
|
7976
7980
|
})(w.Component);
|
|
7977
|
-
const
|
|
7981
|
+
const Wt = yr(
|
|
7978
7982
|
({ config: t, onVerify: e, onExpire: r }, n) => {
|
|
7979
7983
|
const s = lt(null), a = lt(null);
|
|
7980
7984
|
return Ha(n, () => ({
|
|
@@ -8001,30 +8005,30 @@ const Bt = yr(
|
|
|
8001
8005
|
) : null;
|
|
8002
8006
|
}
|
|
8003
8007
|
);
|
|
8004
|
-
|
|
8005
|
-
function
|
|
8008
|
+
Wt.displayName = "CaptchaWidget";
|
|
8009
|
+
function vs(t, e) {
|
|
8006
8010
|
if (typeof t == "function")
|
|
8007
8011
|
return t(e);
|
|
8008
8012
|
t != null && (t.current = e);
|
|
8009
8013
|
}
|
|
8010
|
-
function
|
|
8014
|
+
function hn(...t) {
|
|
8011
8015
|
return (e) => {
|
|
8012
8016
|
let r = !1;
|
|
8013
8017
|
const n = t.map((s) => {
|
|
8014
|
-
const a =
|
|
8018
|
+
const a = vs(s, e);
|
|
8015
8019
|
return !r && typeof a == "function" && (r = !0), a;
|
|
8016
8020
|
});
|
|
8017
8021
|
if (r)
|
|
8018
8022
|
return () => {
|
|
8019
8023
|
for (let s = 0; s < n.length; s++) {
|
|
8020
8024
|
const a = n[s];
|
|
8021
|
-
typeof a == "function" ? a() :
|
|
8025
|
+
typeof a == "function" ? a() : vs(t[s], null);
|
|
8022
8026
|
}
|
|
8023
8027
|
};
|
|
8024
8028
|
};
|
|
8025
8029
|
}
|
|
8026
|
-
function
|
|
8027
|
-
return w.useCallback(
|
|
8030
|
+
function pn(...t) {
|
|
8031
|
+
return w.useCallback(hn(...t), t);
|
|
8028
8032
|
}
|
|
8029
8033
|
var Fc = Symbol.for("react.lazy"), mr = w[" use ".trim().toString()];
|
|
8030
8034
|
function Dc(t) {
|
|
@@ -8054,7 +8058,7 @@ function zc(t) {
|
|
|
8054
8058
|
let { children: s, ...a } = r;
|
|
8055
8059
|
if (ua(s) && typeof mr == "function" && (s = mr(s._payload)), w.isValidElement(s)) {
|
|
8056
8060
|
const i = qc(s), o = Wc(a, s.props);
|
|
8057
|
-
return s.type !== w.Fragment && (o.ref = n ?
|
|
8061
|
+
return s.type !== w.Fragment && (o.ref = n ? hn(n, i) : i), w.cloneElement(s, o);
|
|
8058
8062
|
}
|
|
8059
8063
|
return w.Children.count(s) > 1 ? w.Children.only(null) : null;
|
|
8060
8064
|
});
|
|
@@ -8080,13 +8084,13 @@ function qc(t) {
|
|
|
8080
8084
|
let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
|
|
8081
8085
|
return r ? t.ref : (e = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
|
|
8082
8086
|
}
|
|
8083
|
-
const
|
|
8087
|
+
const bs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xs = Ys, fa = (t, e) => (r) => {
|
|
8084
8088
|
var n;
|
|
8085
|
-
if ((e == null ? void 0 : e.variants) == null) return
|
|
8089
|
+
if ((e == null ? void 0 : e.variants) == null) return xs(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
8086
8090
|
const { variants: s, defaultVariants: a } = e, i = Object.keys(s).map((l) => {
|
|
8087
8091
|
const f = r == null ? void 0 : r[l], d = a == null ? void 0 : a[l];
|
|
8088
8092
|
if (f === null) return null;
|
|
8089
|
-
const p =
|
|
8093
|
+
const p = bs(f) || bs(d);
|
|
8090
8094
|
return s[l][p];
|
|
8091
8095
|
}), o = r && Object.entries(r).reduce((l, f) => {
|
|
8092
8096
|
let [d, p] = f;
|
|
@@ -8108,7 +8112,7 @@ const vs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, bs = Ys, f
|
|
|
8108
8112
|
p
|
|
8109
8113
|
] : l;
|
|
8110
8114
|
}, []);
|
|
8111
|
-
return
|
|
8115
|
+
return xs(t, i, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
|
|
8112
8116
|
}, Gc = fa(
|
|
8113
8117
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
8114
8118
|
{
|
|
@@ -8310,7 +8314,7 @@ function Qc(...t) {
|
|
|
8310
8314
|
};
|
|
8311
8315
|
return r.scopeName = e.scopeName, r;
|
|
8312
8316
|
}
|
|
8313
|
-
function
|
|
8317
|
+
function _s(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
8314
8318
|
return function(s) {
|
|
8315
8319
|
if (t == null || t(s), r === !1 || !s.defaultPrevented)
|
|
8316
8320
|
return e == null ? void 0 : e(s);
|
|
@@ -8396,7 +8400,7 @@ function il(t, e) {
|
|
|
8396
8400
|
return w.useReducer((r, n) => e[r][n] ?? r, t);
|
|
8397
8401
|
}
|
|
8398
8402
|
var va = (t) => {
|
|
8399
|
-
const { present: e, children: r } = t, n = ol(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a =
|
|
8403
|
+
const { present: e, children: r } = t, n = ol(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a = pn(n.ref, cl(s));
|
|
8400
8404
|
return typeof r == "function" || n.isPresent ? w.cloneElement(s, { ref: a }) : null;
|
|
8401
8405
|
};
|
|
8402
8406
|
va.displayName = "Presence";
|
|
@@ -8475,7 +8479,7 @@ function ul(t) {
|
|
|
8475
8479
|
const { children: s, ...a } = r;
|
|
8476
8480
|
if (w.isValidElement(s)) {
|
|
8477
8481
|
const i = pl(s), o = hl(a, s.props);
|
|
8478
|
-
return s.type !== w.Fragment && (o.ref = n ?
|
|
8482
|
+
return s.type !== w.Fragment && (o.ref = n ? hn(n, i) : i), w.cloneElement(s, o);
|
|
8479
8483
|
}
|
|
8480
8484
|
return w.Children.count(s) > 1 ? w.Children.only(null) : null;
|
|
8481
8485
|
});
|
|
@@ -8519,13 +8523,13 @@ var ml = [
|
|
|
8519
8523
|
"span",
|
|
8520
8524
|
"svg",
|
|
8521
8525
|
"ul"
|
|
8522
|
-
],
|
|
8526
|
+
], mn = ml.reduce((t, e) => {
|
|
8523
8527
|
const r = /* @__PURE__ */ ll(`Primitive.${e}`), n = w.forwardRef((s, a) => {
|
|
8524
8528
|
const { asChild: i, ...o } = s, c = i ? r : e;
|
|
8525
8529
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
|
|
8526
8530
|
});
|
|
8527
8531
|
return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
|
|
8528
|
-
}, {}),
|
|
8532
|
+
}, {}), _r = "Checkbox", [yl] = Xc(_r), [gl, yn] = yl(_r);
|
|
8529
8533
|
function vl(t) {
|
|
8530
8534
|
const {
|
|
8531
8535
|
__scopeCheckbox: e,
|
|
@@ -8544,7 +8548,7 @@ function vl(t) {
|
|
|
8544
8548
|
prop: r,
|
|
8545
8549
|
defaultProp: s ?? !1,
|
|
8546
8550
|
onChange: c,
|
|
8547
|
-
caller:
|
|
8551
|
+
caller: _r
|
|
8548
8552
|
}), [b, v] = w.useState(null), [S, k] = w.useState(null), C = w.useRef(!1), D = b ? !!i || !!b.closest("form") : (
|
|
8549
8553
|
// We set this to true by default so that events bubble to forms without JS (SSR)
|
|
8550
8554
|
!0
|
|
@@ -8586,7 +8590,7 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
|
|
|
8586
8590
|
hasConsumerStoppedPropagationRef: p,
|
|
8587
8591
|
isFormControl: m,
|
|
8588
8592
|
bubbleInput: b
|
|
8589
|
-
} =
|
|
8593
|
+
} = yn(ba, t), v = pn(s, f), S = w.useRef(c);
|
|
8590
8594
|
return w.useEffect(() => {
|
|
8591
8595
|
const k = a == null ? void 0 : a.form;
|
|
8592
8596
|
if (k) {
|
|
@@ -8594,7 +8598,7 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
|
|
|
8594
8598
|
return k.addEventListener("reset", C), () => k.removeEventListener("reset", C);
|
|
8595
8599
|
}
|
|
8596
8600
|
}, [a, d]), /* @__PURE__ */ h(
|
|
8597
|
-
|
|
8601
|
+
mn.button,
|
|
8598
8602
|
{
|
|
8599
8603
|
type: "button",
|
|
8600
8604
|
role: "checkbox",
|
|
@@ -8606,10 +8610,10 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
|
|
|
8606
8610
|
value: i,
|
|
8607
8611
|
...n,
|
|
8608
8612
|
ref: v,
|
|
8609
|
-
onKeyDown:
|
|
8613
|
+
onKeyDown: _s(e, (k) => {
|
|
8610
8614
|
k.key === "Enter" && k.preventDefault();
|
|
8611
8615
|
}),
|
|
8612
|
-
onClick:
|
|
8616
|
+
onClick: _s(r, (k) => {
|
|
8613
8617
|
d((C) => dt(C) ? !0 : !C), b && m && (p.current = k.isPropagationStopped(), p.current || k.stopPropagation());
|
|
8614
8618
|
})
|
|
8615
8619
|
}
|
|
@@ -8617,7 +8621,7 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
|
|
|
8617
8621
|
}
|
|
8618
8622
|
);
|
|
8619
8623
|
xa.displayName = ba;
|
|
8620
|
-
var
|
|
8624
|
+
var gn = w.forwardRef(
|
|
8621
8625
|
(t, e) => {
|
|
8622
8626
|
const {
|
|
8623
8627
|
__scopeCheckbox: r,
|
|
@@ -8643,7 +8647,7 @@ var yn = w.forwardRef(
|
|
|
8643
8647
|
name: n,
|
|
8644
8648
|
form: f,
|
|
8645
8649
|
value: c,
|
|
8646
|
-
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ z(
|
|
8650
|
+
internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ z(tn, { children: [
|
|
8647
8651
|
/* @__PURE__ */ h(
|
|
8648
8652
|
xa,
|
|
8649
8653
|
{
|
|
@@ -8663,16 +8667,16 @@ var yn = w.forwardRef(
|
|
|
8663
8667
|
);
|
|
8664
8668
|
}
|
|
8665
8669
|
);
|
|
8666
|
-
|
|
8670
|
+
gn.displayName = _r;
|
|
8667
8671
|
var _a = "CheckboxIndicator", wa = w.forwardRef(
|
|
8668
8672
|
(t, e) => {
|
|
8669
|
-
const { __scopeCheckbox: r, forceMount: n, ...s } = t, a =
|
|
8673
|
+
const { __scopeCheckbox: r, forceMount: n, ...s } = t, a = yn(_a, r);
|
|
8670
8674
|
return /* @__PURE__ */ h(
|
|
8671
8675
|
va,
|
|
8672
8676
|
{
|
|
8673
8677
|
present: n || dt(a.checked) || a.checked === !0,
|
|
8674
8678
|
children: /* @__PURE__ */ h(
|
|
8675
|
-
|
|
8679
|
+
mn.span,
|
|
8676
8680
|
{
|
|
8677
8681
|
"data-state": Ca(a.checked),
|
|
8678
8682
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -8700,7 +8704,7 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
|
|
|
8700
8704
|
form: d,
|
|
8701
8705
|
bubbleInput: p,
|
|
8702
8706
|
setBubbleInput: m
|
|
8703
|
-
} =
|
|
8707
|
+
} = yn(ka, t), b = pn(r, m), v = sl(a), S = al(n);
|
|
8704
8708
|
w.useEffect(() => {
|
|
8705
8709
|
const C = p;
|
|
8706
8710
|
if (!C) return;
|
|
@@ -8715,7 +8719,7 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
|
|
|
8715
8719
|
}, [p, v, a, s]);
|
|
8716
8720
|
const k = w.useRef(dt(a) ? !1 : a);
|
|
8717
8721
|
return /* @__PURE__ */ h(
|
|
8718
|
-
|
|
8722
|
+
mn.input,
|
|
8719
8723
|
{
|
|
8720
8724
|
type: "checkbox",
|
|
8721
8725
|
"aria-hidden": !0,
|
|
@@ -8755,7 +8759,7 @@ function Ca(t) {
|
|
|
8755
8759
|
return dt(t) ? "indeterminate" : t ? "checked" : "unchecked";
|
|
8756
8760
|
}
|
|
8757
8761
|
const Ea = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
8758
|
-
|
|
8762
|
+
gn,
|
|
8759
8763
|
{
|
|
8760
8764
|
ref: r,
|
|
8761
8765
|
className: me(
|
|
@@ -8766,9 +8770,9 @@ const Ea = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
8766
8770
|
children: /* @__PURE__ */ h(wa, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(Xi, { className: "h-3.5 w-3.5" }) })
|
|
8767
8771
|
}
|
|
8768
8772
|
));
|
|
8769
|
-
Ea.displayName =
|
|
8770
|
-
var xl = "Separator",
|
|
8771
|
-
const { decorative: r, orientation: n =
|
|
8773
|
+
Ea.displayName = gn.displayName;
|
|
8774
|
+
var xl = "Separator", ws = "horizontal", _l = ["horizontal", "vertical"], Ra = w.forwardRef((t, e) => {
|
|
8775
|
+
const { decorative: r, orientation: n = ws, ...s } = t, a = wl(n) ? n : ws, o = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
8772
8776
|
return /* @__PURE__ */ h(
|
|
8773
8777
|
Gt.div,
|
|
8774
8778
|
{
|
|
@@ -8801,10 +8805,10 @@ const Tt = w.forwardRef(
|
|
|
8801
8805
|
)
|
|
8802
8806
|
);
|
|
8803
8807
|
Tt.displayName = Oa.displayName;
|
|
8804
|
-
const kl =
|
|
8808
|
+
const kl = br({
|
|
8805
8809
|
email: Qe().email("Enter a valid email address"),
|
|
8806
8810
|
password: Qe().min(6, "Password must be at least 6 characters")
|
|
8807
|
-
}), Sl =
|
|
8811
|
+
}), Sl = br({
|
|
8808
8812
|
email: Qe().email("Enter a valid email address")
|
|
8809
8813
|
});
|
|
8810
8814
|
function Cl() {
|
|
@@ -8894,7 +8898,7 @@ function Nl() {
|
|
|
8894
8898
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
|
|
8895
8899
|
] });
|
|
8896
8900
|
}
|
|
8897
|
-
function
|
|
8901
|
+
function eu({
|
|
8898
8902
|
className: t,
|
|
8899
8903
|
onSuccess: e,
|
|
8900
8904
|
onError: r,
|
|
@@ -8903,13 +8907,13 @@ function Ql({
|
|
|
8903
8907
|
title: a = "Sign in to your account"
|
|
8904
8908
|
}) {
|
|
8905
8909
|
var be, we, Ee;
|
|
8906
|
-
const { login: i, sendMagicLink: o } =
|
|
8910
|
+
const { login: i, sendMagicLink: o } = Pt(), { config: c, configLoading: l } = gr(), [f, d] = Ae("password"), [p, m] = Ae(""), [b, v] = Ae(null), [S, k] = Ae(null), [C, D] = Ae(!1), [I, x] = Ae(!1), Z = lt(null), j = ir({
|
|
8907
8911
|
resolver: or(kl)
|
|
8908
8912
|
}), U = ir({
|
|
8909
8913
|
resolver: or(Sl)
|
|
8910
8914
|
});
|
|
8911
8915
|
async function B() {
|
|
8912
|
-
return c != null && c.captcha.enabled ? c.captcha.provider === "recaptcha" && c.captcha.version === "v3" && c.captcha.siteKey ?
|
|
8916
|
+
return c != null && c.captcha.enabled ? c.captcha.provider === "recaptcha" && c.captcha.version === "v3" && c.captcha.siteKey ? rn(c.captcha.siteKey, "login") : p || (v("Please complete the captcha"), null) : "";
|
|
8913
8917
|
}
|
|
8914
8918
|
function re() {
|
|
8915
8919
|
var _;
|
|
@@ -9059,7 +9063,7 @@ function Ql({
|
|
|
9059
9063
|
] }),
|
|
9060
9064
|
(c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
|
|
9061
9065
|
/* @__PURE__ */ h(
|
|
9062
|
-
|
|
9066
|
+
Wt,
|
|
9063
9067
|
{
|
|
9064
9068
|
ref: Z,
|
|
9065
9069
|
config: c.captcha,
|
|
@@ -9102,7 +9106,7 @@ function Ql({
|
|
|
9102
9106
|
] }),
|
|
9103
9107
|
(c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
|
|
9104
9108
|
/* @__PURE__ */ h(
|
|
9105
|
-
|
|
9109
|
+
Wt,
|
|
9106
9110
|
{
|
|
9107
9111
|
ref: Z,
|
|
9108
9112
|
config: c.captcha,
|
|
@@ -9155,7 +9159,7 @@ function Ql({
|
|
|
9155
9159
|
] })
|
|
9156
9160
|
] }) });
|
|
9157
9161
|
}
|
|
9158
|
-
const Al =
|
|
9162
|
+
const Al = br({
|
|
9159
9163
|
firstName: Qe().min(1, "First name is required"),
|
|
9160
9164
|
lastName: Qe().min(1, "Last name is required"),
|
|
9161
9165
|
email: Qe().email("Enter a valid email address"),
|
|
@@ -9169,20 +9173,20 @@ const Al = vr({
|
|
|
9169
9173
|
function Tl() {
|
|
9170
9174
|
return /* @__PURE__ */ h("div", { className: "space-y-4 p-6", children: [...Array(5)].map((t, e) => /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }, e)) });
|
|
9171
9175
|
}
|
|
9172
|
-
function
|
|
9176
|
+
function tu({
|
|
9173
9177
|
className: t,
|
|
9174
9178
|
onSuccess: e,
|
|
9175
9179
|
onError: r,
|
|
9176
9180
|
loginUrl: n,
|
|
9177
9181
|
title: s = "Create an account"
|
|
9178
9182
|
}) {
|
|
9179
|
-
const { signup: a } =
|
|
9183
|
+
const { signup: a } = Pt(), { config: i, configLoading: o } = gr(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), b = lt(null), {
|
|
9180
9184
|
register: v,
|
|
9181
9185
|
handleSubmit: S,
|
|
9182
9186
|
formState: { errors: k, isSubmitting: C }
|
|
9183
9187
|
} = ir({ resolver: or(Al) });
|
|
9184
9188
|
async function D() {
|
|
9185
|
-
return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ?
|
|
9189
|
+
return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? rn(i.captcha.siteKey, "signup") : c || (d("Please complete the captcha"), null) : "";
|
|
9186
9190
|
}
|
|
9187
9191
|
function I() {
|
|
9188
9192
|
var Z;
|
|
@@ -9309,7 +9313,7 @@ function eu({
|
|
|
9309
9313
|
] }),
|
|
9310
9314
|
(i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
|
|
9311
9315
|
/* @__PURE__ */ h(
|
|
9312
|
-
|
|
9316
|
+
Wt,
|
|
9313
9317
|
{
|
|
9314
9318
|
ref: b,
|
|
9315
9319
|
config: i.captcha,
|
|
@@ -9363,7 +9367,7 @@ function eu({
|
|
|
9363
9367
|
] })
|
|
9364
9368
|
] }) });
|
|
9365
9369
|
}
|
|
9366
|
-
const Pl =
|
|
9370
|
+
const Pl = br({
|
|
9367
9371
|
email: Qe().email("Enter a valid email address")
|
|
9368
9372
|
});
|
|
9369
9373
|
function Il() {
|
|
@@ -9373,21 +9377,21 @@ function Il() {
|
|
|
9373
9377
|
/* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
|
|
9374
9378
|
] });
|
|
9375
9379
|
}
|
|
9376
|
-
function
|
|
9380
|
+
function ru({
|
|
9377
9381
|
className: t,
|
|
9378
9382
|
onSuccess: e,
|
|
9379
9383
|
onError: r,
|
|
9380
9384
|
loginUrl: n,
|
|
9381
9385
|
title: s = "Forgot password?"
|
|
9382
9386
|
}) {
|
|
9383
|
-
const { forgotPassword: a } =
|
|
9387
|
+
const { forgotPassword: a } = Pt(), { config: i, configLoading: o } = gr(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), [b, v] = Ae(!1), S = lt(null), {
|
|
9384
9388
|
register: k,
|
|
9385
9389
|
handleSubmit: C,
|
|
9386
9390
|
getValues: D,
|
|
9387
9391
|
formState: { errors: I, isSubmitting: x }
|
|
9388
9392
|
} = ir({ resolver: or(Pl) });
|
|
9389
9393
|
async function Z() {
|
|
9390
|
-
return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ?
|
|
9394
|
+
return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? rn(i.captcha.siteKey, "forgot_password") : c || (d("Please complete the captcha"), null) : "";
|
|
9391
9395
|
}
|
|
9392
9396
|
function j() {
|
|
9393
9397
|
var B;
|
|
@@ -9454,7 +9458,7 @@ function tu({
|
|
|
9454
9458
|
] }),
|
|
9455
9459
|
(i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
|
|
9456
9460
|
/* @__PURE__ */ h(
|
|
9457
|
-
|
|
9461
|
+
Wt,
|
|
9458
9462
|
{
|
|
9459
9463
|
ref: S,
|
|
9460
9464
|
config: i.captcha,
|
|
@@ -9488,7 +9492,7 @@ function Ll({
|
|
|
9488
9492
|
label: n = "Sign out",
|
|
9489
9493
|
children: s
|
|
9490
9494
|
}) {
|
|
9491
|
-
const { logout: a } =
|
|
9495
|
+
const { logout: a } = Pt(), [i, o] = Ae(!1), c = async () => {
|
|
9492
9496
|
o(!0);
|
|
9493
9497
|
try {
|
|
9494
9498
|
await a(), e == null || e();
|
|
@@ -9584,7 +9588,7 @@ function Vl(t) {
|
|
|
9584
9588
|
return (n = e.current) == null ? void 0 : n.call(e, ...r);
|
|
9585
9589
|
}, []);
|
|
9586
9590
|
}
|
|
9587
|
-
var tr = { exports: {} },
|
|
9591
|
+
var tr = { exports: {} }, jr = {};
|
|
9588
9592
|
/**
|
|
9589
9593
|
* @license React
|
|
9590
9594
|
* use-sync-external-store-shim.production.js
|
|
@@ -9594,10 +9598,10 @@ var tr = { exports: {} }, Lr = {};
|
|
|
9594
9598
|
* This source code is licensed under the MIT license found in the
|
|
9595
9599
|
* LICENSE file in the root directory of this source tree.
|
|
9596
9600
|
*/
|
|
9597
|
-
var
|
|
9601
|
+
var ks;
|
|
9598
9602
|
function $l() {
|
|
9599
|
-
if (
|
|
9600
|
-
|
|
9603
|
+
if (ks) return jr;
|
|
9604
|
+
ks = 1;
|
|
9601
9605
|
var t = Ne;
|
|
9602
9606
|
function e(d, p) {
|
|
9603
9607
|
return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
|
|
@@ -9633,9 +9637,9 @@ function $l() {
|
|
|
9633
9637
|
return p();
|
|
9634
9638
|
}
|
|
9635
9639
|
var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : o;
|
|
9636
|
-
return
|
|
9640
|
+
return jr.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : f, jr;
|
|
9637
9641
|
}
|
|
9638
|
-
var
|
|
9642
|
+
var Mr = {};
|
|
9639
9643
|
/**
|
|
9640
9644
|
* @license React
|
|
9641
9645
|
* use-sync-external-store-shim.development.js
|
|
@@ -9645,9 +9649,9 @@ var jr = {};
|
|
|
9645
9649
|
* This source code is licensed under the MIT license found in the
|
|
9646
9650
|
* LICENSE file in the root directory of this source tree.
|
|
9647
9651
|
*/
|
|
9648
|
-
var
|
|
9652
|
+
var Ss;
|
|
9649
9653
|
function Fl() {
|
|
9650
|
-
return
|
|
9654
|
+
return Ss || (Ss = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
9651
9655
|
function t(m, b) {
|
|
9652
9656
|
return m === b && (m !== 0 || 1 / m === 1 / b) || m !== m && b !== b;
|
|
9653
9657
|
}
|
|
@@ -9695,12 +9699,12 @@ function Fl() {
|
|
|
9695
9699
|
}
|
|
9696
9700
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
9697
9701
|
var s = Ne, a = typeof Object.is == "function" ? Object.is : t, i = s.useState, o = s.useEffect, c = s.useLayoutEffect, l = s.useDebugValue, f = !1, d = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : e;
|
|
9698
|
-
|
|
9699
|
-
})()),
|
|
9702
|
+
Mr.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
9703
|
+
})()), Mr;
|
|
9700
9704
|
}
|
|
9701
|
-
var
|
|
9705
|
+
var Cs;
|
|
9702
9706
|
function Dl() {
|
|
9703
|
-
return
|
|
9707
|
+
return Cs || (Cs = 1, process.env.NODE_ENV === "production" ? tr.exports = $l() : tr.exports = Fl()), tr.exports;
|
|
9704
9708
|
}
|
|
9705
9709
|
var Ul = Dl();
|
|
9706
9710
|
function zl() {
|
|
@@ -9714,7 +9718,7 @@ function Zl() {
|
|
|
9714
9718
|
return () => {
|
|
9715
9719
|
};
|
|
9716
9720
|
}
|
|
9717
|
-
var
|
|
9721
|
+
var vn = "Avatar", [Bl] = jl(vn), [Wl, Na] = Bl(vn), Aa = w.forwardRef(
|
|
9718
9722
|
(t, e) => {
|
|
9719
9723
|
const { __scopeAvatar: r, ...n } = t, [s, a] = w.useState("idle");
|
|
9720
9724
|
return /* @__PURE__ */ h(
|
|
@@ -9728,7 +9732,7 @@ var gn = "Avatar", [Bl] = jl(gn), [Wl, Na] = Bl(gn), Aa = w.forwardRef(
|
|
|
9728
9732
|
);
|
|
9729
9733
|
}
|
|
9730
9734
|
);
|
|
9731
|
-
Aa.displayName =
|
|
9735
|
+
Aa.displayName = vn;
|
|
9732
9736
|
var Ta = "AvatarImage", Pa = w.forwardRef(
|
|
9733
9737
|
(t, e) => {
|
|
9734
9738
|
const { __scopeAvatar: r, src: n, onLoadingStatusChange: s = () => {
|
|
@@ -9753,15 +9757,15 @@ var Ia = "AvatarFallback", La = w.forwardRef(
|
|
|
9753
9757
|
}
|
|
9754
9758
|
);
|
|
9755
9759
|
La.displayName = Ia;
|
|
9756
|
-
function
|
|
9760
|
+
function Es(t, e) {
|
|
9757
9761
|
return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
9758
9762
|
}
|
|
9759
9763
|
function ql(t, { referrerPolicy: e, crossOrigin: r }) {
|
|
9760
9764
|
const n = zl(), s = w.useRef(null), a = n ? (s.current || (s.current = new window.Image()), s.current) : null, [i, o] = w.useState(
|
|
9761
|
-
() =>
|
|
9765
|
+
() => Es(a, t)
|
|
9762
9766
|
);
|
|
9763
9767
|
return xt(() => {
|
|
9764
|
-
o(
|
|
9768
|
+
o(Es(a, t));
|
|
9765
9769
|
}, [a, t]), xt(() => {
|
|
9766
9770
|
const c = (d) => () => {
|
|
9767
9771
|
o(d);
|
|
@@ -9807,14 +9811,14 @@ const Da = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
|
|
|
9807
9811
|
}
|
|
9808
9812
|
));
|
|
9809
9813
|
Da.displayName = Va.displayName;
|
|
9810
|
-
function
|
|
9814
|
+
function nu({
|
|
9811
9815
|
className: t,
|
|
9812
9816
|
onEditProfile: e,
|
|
9813
9817
|
showLogout: r = !0,
|
|
9814
9818
|
onLogoutSuccess: n
|
|
9815
9819
|
}) {
|
|
9816
9820
|
var l, f;
|
|
9817
|
-
const { user: s, isLoading: a, isAuthenticated: i } =
|
|
9821
|
+
const { user: s, isLoading: a, isAuthenticated: i } = Pt();
|
|
9818
9822
|
if (a)
|
|
9819
9823
|
return /* @__PURE__ */ h(Be, { className: me("w-full max-w-md", t), children: /* @__PURE__ */ h(nr, { className: "flex items-center justify-center py-10", children: /* @__PURE__ */ h("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" }) }) });
|
|
9820
9824
|
if (!i || !s)
|
|
@@ -9844,7 +9848,7 @@ function ru({
|
|
|
9844
9848
|
/* @__PURE__ */ h(Tt, {}),
|
|
9845
9849
|
/* @__PURE__ */ z(nr, { className: "space-y-4 pt-4", children: [
|
|
9846
9850
|
/* @__PURE__ */ h(
|
|
9847
|
-
|
|
9851
|
+
Vr,
|
|
9848
9852
|
{
|
|
9849
9853
|
icon: /* @__PURE__ */ h(ro, { className: "h-4 w-4 text-muted-foreground" }),
|
|
9850
9854
|
label: "Email",
|
|
@@ -9852,7 +9856,7 @@ function ru({
|
|
|
9852
9856
|
}
|
|
9853
9857
|
),
|
|
9854
9858
|
s.whatsappNumber && /* @__PURE__ */ h(
|
|
9855
|
-
|
|
9859
|
+
Vr,
|
|
9856
9860
|
{
|
|
9857
9861
|
icon: /* @__PURE__ */ h(so, { className: "h-4 w-4 text-muted-foreground" }),
|
|
9858
9862
|
label: "WhatsApp",
|
|
@@ -9863,7 +9867,7 @@ function ru({
|
|
|
9863
9867
|
([d]) => !["id", "email", "firstName", "lastName", "whatsappNumber", "avatarUrl"].includes(d)
|
|
9864
9868
|
).map(
|
|
9865
9869
|
([d, p]) => typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ h(
|
|
9866
|
-
|
|
9870
|
+
Vr,
|
|
9867
9871
|
{
|
|
9868
9872
|
label: Gl(d),
|
|
9869
9873
|
value: String(p)
|
|
@@ -9871,7 +9875,7 @@ function ru({
|
|
|
9871
9875
|
d
|
|
9872
9876
|
) : null
|
|
9873
9877
|
),
|
|
9874
|
-
r && /* @__PURE__ */ z(
|
|
9878
|
+
r && /* @__PURE__ */ z(tn, { children: [
|
|
9875
9879
|
/* @__PURE__ */ h(Tt, {}),
|
|
9876
9880
|
/* @__PURE__ */ h(
|
|
9877
9881
|
Ll,
|
|
@@ -9884,7 +9888,7 @@ function ru({
|
|
|
9884
9888
|
] })
|
|
9885
9889
|
] });
|
|
9886
9890
|
}
|
|
9887
|
-
function
|
|
9891
|
+
function Vr({ icon: t, label: e, value: r }) {
|
|
9888
9892
|
return /* @__PURE__ */ z("div", { className: "flex items-center gap-3", children: [
|
|
9889
9893
|
t && /* @__PURE__ */ h("span", { className: "shrink-0", children: t }),
|
|
9890
9894
|
/* @__PURE__ */ z("div", { className: "min-w-0", children: [
|
|
@@ -9898,12 +9902,13 @@ function Gl(t) {
|
|
|
9898
9902
|
}
|
|
9899
9903
|
export {
|
|
9900
9904
|
Xl as AuthProvider,
|
|
9901
|
-
|
|
9902
|
-
Ql as
|
|
9905
|
+
ru as ForgotPasswordForm,
|
|
9906
|
+
Ql as GuestRoute,
|
|
9907
|
+
eu as LoginForm,
|
|
9903
9908
|
Ll as LogoutButton,
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9909
|
+
nu as ProfileComponent,
|
|
9910
|
+
tu as SignupForm,
|
|
9911
|
+
Pt as useAuth,
|
|
9912
|
+
gr as useAuthConfig
|
|
9908
9913
|
};
|
|
9909
9914
|
//# sourceMappingURL=index.js.map
|