@s8lab/sso-client 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx as h, jsxs as U, Fragment as Cs } from "react/jsx-runtime";
2
2
  import * as w from "react";
3
- import Ne, { createContext as Es, useState as Ae, useRef as ut, useCallback as tt, useEffect as Za, useMemo as wn, useContext as Rs, forwardRef as mr, createElement as Ft, Component as Ba, useImperativeHandle as Wa } from "react";
3
+ import Ne, { createContext as Es, useState as Ae, useRef as ut, useCallback as tt, useEffect as Ba, useMemo as wn, useContext as Rs, forwardRef as mr, createElement as Ft, Component as Wa, useImperativeHandle as qa } from "react";
4
4
  import "react-dom";
5
5
  import './index.css';const kn = /* @__PURE__ */ new Set();
6
- function qa(t) {
6
+ function Ga(t) {
7
7
  if (kn.has(t)) return;
8
8
  kn.add(t);
9
9
  const e = document.createElement("script");
@@ -27,12 +27,15 @@ function Qr(t, e) {
27
27
  });
28
28
  }
29
29
  const Os = Es(null), Ns = Es(null);
30
+ function As(t) {
31
+ return t ? t instanceof Headers ? Object.fromEntries(t.entries()) : Array.isArray(t) ? Object.fromEntries(t) : t : {};
32
+ }
30
33
  async function Sn(t, e) {
31
34
  const r = await fetch(t, {
32
35
  ...e,
33
36
  headers: {
34
37
  "Content-Type": "application/json",
35
- ...e.headers ?? {}
38
+ ...As(e.headers)
36
39
  }
37
40
  });
38
41
  if (!r.ok) {
@@ -47,7 +50,7 @@ async function Sn(t, e) {
47
50
  if (r.status !== 204)
48
51
  return r.json();
49
52
  }
50
- function Hl({
53
+ function Yl({
51
54
  children: t,
52
55
  apiUrl: e,
53
56
  projectId: r,
@@ -69,8 +72,8 @@ function Hl({
69
72
  (M, z = {}) => m.current(M, {
70
73
  ...z,
71
74
  headers: {
72
- "X-Project-Id": p.current,
73
- ...z.headers ?? {}
75
+ ...As(z.headers),
76
+ "X-Project-Id": p.current
74
77
  }
75
78
  }),
76
79
  []
@@ -87,7 +90,7 @@ function Hl({
87
90
  return null;
88
91
  }
89
92
  }, [v]);
90
- Za(() => {
93
+ Ba(() => {
91
94
  let M = !1;
92
95
  async function z() {
93
96
  var Q;
@@ -103,7 +106,7 @@ function Hl({
103
106
  } finally {
104
107
  M || c(!1);
105
108
  }
106
- (Q = A.captcha) != null && Q.enabled && A.captcha.provider === "recaptcha" && A.captcha.version === "v3" && A.captcha.siteKey && qa(A.captcha.siteKey);
109
+ (Q = A.captcha) != null && Q.enabled && A.captcha.provider === "recaptcha" && A.captcha.version === "v3" && A.captcha.siteKey && Ga(A.captcha.siteKey);
107
110
  const Z = k();
108
111
  if (!(Z != null && Z.accessToken)) {
109
112
  M || f((ye) => ({ ...ye, isLoading: !1 }));
@@ -129,7 +132,7 @@ function Hl({
129
132
  }, []);
130
133
  const C = tt(
131
134
  async (M) => {
132
- f((z) => ({ ...z, isLoading: !0 }));
135
+ f((z) => ({ ...z, isLoading: !0 })), console.log(p.current);
133
136
  try {
134
137
  const z = await b(
135
138
  `${d.current}/auth/login`,
@@ -230,8 +233,8 @@ function en() {
230
233
  return t;
231
234
  }
232
235
  var Wt = (t) => t.type === "checkbox", vt = (t) => t instanceof Date, Ve = (t) => t == null;
233
- const As = (t) => typeof t == "object";
234
- var _e = (t) => !Ve(t) && !Array.isArray(t) && As(t) && !vt(t), Ga = (t) => _e(t) && t.target ? Wt(t.target) ? t.target.checked : t.target.value : t, Ts = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Ha = (t, e) => t.has(Ts(e)), Ya = (t) => {
236
+ const Ts = (t) => typeof t == "object";
237
+ var _e = (t) => !Ve(t) && !Array.isArray(t) && Ts(t) && !vt(t), Ha = (t) => _e(t) && t.target ? Wt(t.target) ? t.target.checked : t.target.value : t, Ps = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Ya = (t, e) => t.has(Ps(e)), Ka = (t) => {
235
238
  const e = t.constructor && t.constructor.prototype;
236
239
  return _e(e) && e.hasOwnProperty("isPrototypeOf");
237
240
  }, tn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
@@ -242,7 +245,7 @@ function Ce(t) {
242
245
  if (tn && (t instanceof Blob || e))
243
246
  return t;
244
247
  const r = Array.isArray(t);
245
- if (!r && !(_e(t) && Ya(t)))
248
+ if (!r && !(_e(t) && Ka(t)))
246
249
  return t;
247
250
  const n = r ? [] : Object.create(Object.getPrototypeOf(t));
248
251
  for (const s in t)
@@ -289,9 +292,9 @@ const _t = {
289
292
  pattern: "pattern",
290
293
  required: "required",
291
294
  validate: "validate"
292
- }, wr = "form", Ps = "root", Ka = Ne.createContext(null);
293
- Ka.displayName = "HookFormControlContext";
294
- var Ja = (t, e, r, n = !0) => {
295
+ }, wr = "form", Is = "root", Ja = Ne.createContext(null);
296
+ Ja.displayName = "HookFormControlContext";
297
+ var Xa = (t, e, r, n = !0) => {
295
298
  const s = {
296
299
  defaultValues: e._defaultValues
297
300
  };
@@ -304,8 +307,8 @@ var Ja = (t, e, r, n = !0) => {
304
307
  });
305
308
  return s;
306
309
  };
307
- const Xa = typeof window < "u" ? Ne.useLayoutEffect : Ne.useEffect;
308
- var Ie = (t) => typeof t == "string", Qa = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), j(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), j(r, a))) : (n && (e.watchAll = !0), r), Mr = (t) => Ve(t) || !As(t);
310
+ const Qa = typeof window < "u" ? Ne.useLayoutEffect : Ne.useEffect;
311
+ var Ie = (t) => typeof t == "string", ei = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), j(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), j(r, a))) : (n && (e.watchAll = !0), r), Mr = (t) => Ve(t) || !Ts(t);
309
312
  function ot(t, e, r = /* @__PURE__ */ new WeakSet()) {
310
313
  if (Mr(t) || Mr(e))
311
314
  return Object.is(t, e);
@@ -329,9 +332,9 @@ function ot(t, e, r = /* @__PURE__ */ new WeakSet()) {
329
332
  }
330
333
  return !0;
331
334
  }
332
- const ei = Ne.createContext(null);
333
- ei.displayName = "HookFormContext";
334
- var Is = (t, e, r, n, s) => e ? {
335
+ const ti = Ne.createContext(null);
336
+ ti.displayName = "HookFormContext";
337
+ var Ls = (t, e, r, n, s) => e ? {
335
338
  ...r[t],
336
339
  types: {
337
340
  ...r[t] && r[t].types ? r[t].types : {},
@@ -357,13 +360,13 @@ var Is = (t, e, r, n, s) => e ? {
357
360
  }
358
361
  };
359
362
  };
360
- function Ls(t, e) {
363
+ function js(t, e) {
361
364
  const r = {};
362
365
  for (const n in t)
363
366
  if (t.hasOwnProperty(n)) {
364
367
  const s = t[n], a = e[n];
365
368
  if (s && _e(s) && a) {
366
- const i = Ls(s, a);
369
+ const i = js(s, a);
367
370
  _e(i) && (r[n] = i);
368
371
  } else t[n] && (r[n] = a);
369
372
  }
@@ -374,37 +377,37 @@ var Pe = (t) => _e(t) && !Object.keys(t).length, sn = (t) => t.type === "file",
374
377
  return !1;
375
378
  const e = t ? t.ownerDocument : 0;
376
379
  return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
377
- }, js = (t) => t.type === "select-multiple", an = (t) => t.type === "radio", ti = (t) => an(t) || Wt(t), kr = (t) => nr(t) && t.isConnected;
378
- function ri(t, e) {
380
+ }, Ms = (t) => t.type === "select-multiple", an = (t) => t.type === "radio", ri = (t) => an(t) || Wt(t), kr = (t) => nr(t) && t.isConnected;
381
+ function ni(t, e) {
379
382
  const r = e.slice(0, -1).length;
380
383
  let n = 0;
381
384
  for (; n < r; )
382
385
  t = xe(t) ? n++ : t[e[n++]];
383
386
  return t;
384
387
  }
385
- function ni(t) {
388
+ function si(t) {
386
389
  for (const e in t)
387
390
  if (t.hasOwnProperty(e) && !xe(t[e]))
388
391
  return !1;
389
392
  return !0;
390
393
  }
391
394
  function ke(t, e) {
392
- const r = Array.isArray(e) ? e : yr(e) ? [e] : nn(e), n = r.length === 1 ? t : ri(t, r), s = r.length - 1, a = r[s];
393
- return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) && ni(n)) && ke(t, r.slice(0, -1)), t;
395
+ const r = Array.isArray(e) ? e : yr(e) ? [e] : nn(e), n = r.length === 1 ? t : ni(t, r), s = r.length - 1, a = r[s];
396
+ return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) && si(n)) && ke(t, r.slice(0, -1)), t;
394
397
  }
395
- var si = (t) => {
398
+ var ai = (t) => {
396
399
  for (const e in t)
397
400
  if (Ye(t[e]))
398
401
  return !0;
399
402
  return !1;
400
403
  };
401
- function Ms(t) {
402
- return Array.isArray(t) || _e(t) && !si(t);
404
+ function Vs(t) {
405
+ return Array.isArray(t) || _e(t) && !ai(t);
403
406
  }
404
407
  function Vr(t, e = {}) {
405
408
  for (const r in t) {
406
409
  const n = t[r];
407
- Ms(n) ? (e[r] = Array.isArray(n) ? [] : {}, Vr(n, e[r])) : xe(n) || (e[r] = !0);
410
+ Vs(n) ? (e[r] = Array.isArray(n) ? [] : {}, Vr(n, e[r])) : xe(n) || (e[r] = !0);
408
411
  }
409
412
  return e;
410
413
  }
@@ -412,7 +415,7 @@ function kt(t, e, r) {
412
415
  r || (r = Vr(e));
413
416
  for (const n in t) {
414
417
  const s = t[n];
415
- if (Ms(s))
418
+ if (Vs(s))
416
419
  xe(e) || Mr(r[n]) ? r[n] = Vr(s, Array.isArray(s) ? [] : {}) : kt(s, Ve(e) ? {} : e[n], r[n]);
417
420
  else {
418
421
  const a = e[n];
@@ -425,7 +428,7 @@ const En = {
425
428
  value: !1,
426
429
  isValid: !1
427
430
  }, Rn = { value: !0, isValid: !0 };
428
- var Vs = (t) => {
431
+ var $s = (t) => {
429
432
  if (Array.isArray(t)) {
430
433
  if (t.length > 1) {
431
434
  const e = t.filter((r) => r && r.checked && !r.disabled).map((r) => r.value);
@@ -437,20 +440,20 @@ var Vs = (t) => {
437
440
  ) : En;
438
441
  }
439
442
  return En;
440
- }, $s = (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;
443
+ }, Fs = (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;
441
444
  const On = {
442
445
  isValid: !1,
443
446
  value: null
444
447
  };
445
- var Fs = (t) => Array.isArray(t) ? t.reduce((e, r) => r && r.checked && !r.disabled ? {
448
+ var Ds = (t) => Array.isArray(t) ? t.reduce((e, r) => r && r.checked && !r.disabled ? {
446
449
  isValid: !0,
447
450
  value: r.value
448
451
  } : e, On) : On;
449
452
  function Nn(t) {
450
453
  const e = t.ref;
451
- return sn(e) ? e.files : an(e) ? Fs(t.refs).value : js(e) ? [...e.selectedOptions].map(({ value: r }) => r) : Wt(e) ? Vs(t.refs).value : $s(xe(e.value) ? t.ref.value : e.value, t);
454
+ return sn(e) ? e.files : an(e) ? Ds(t.refs).value : Ms(e) ? [...e.selectedOptions].map(({ value: r }) => r) : Wt(e) ? $s(t.refs).value : Fs(xe(e.value) ? t.ref.value : e.value, t);
452
455
  }
453
- var ai = (t, e, r, n) => {
456
+ var ii = (t, e, r, n) => {
454
457
  const s = {};
455
458
  for (const a of t) {
456
459
  const i = j(e, a);
@@ -470,7 +473,7 @@ var ai = (t, e, r, n) => {
470
473
  isOnTouch: t === Ke.onTouched
471
474
  });
472
475
  const Tn = "AsyncFunction";
473
- var ii = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name === Tn || _e(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Tn)), oi = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Pn = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
476
+ var oi = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name === Tn || _e(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Tn)), ci = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Pn = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
474
477
  const $t = (t, e, r, n) => {
475
478
  for (const s of r || Object.keys(t)) {
476
479
  const a = j(t, s);
@@ -516,13 +519,13 @@ function In(t, e, r) {
516
519
  name: r
517
520
  };
518
521
  }
519
- var ci = (t, e, r, n) => {
522
+ var li = (t, e, r, n) => {
520
523
  r(t);
521
524
  const { name: s, ...a } = t;
522
525
  return Pe(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || Ke.all));
523
- }, li = (t, e, r) => !t || !e || t === e || Vt(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), ui = (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, di = (t, e) => !rn(j(t, e)).length && ke(t, e), fi = (t, e, r) => {
526
+ }, ui = (t, e, r) => !t || !e || t === e || Vt(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), di = (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, fi = (t, e) => !rn(j(t, e)).length && ke(t, e), hi = (t, e, r) => {
524
527
  const n = Vt(j(t, r));
525
- return ge(n, Ps, e[r]), ge(t, r, n), t;
528
+ return ge(n, Is, e[r]), ge(t, r, n), t;
526
529
  };
527
530
  function Ln(t, e, r = "validate") {
528
531
  if (Ie(t) || Array.isArray(t) && t.every(Ie) || Xe(t) && !t)
@@ -541,7 +544,7 @@ var wt = (t) => _e(t) && !sr(t) ? t : {
541
544
  return {};
542
545
  const D = o ? o[0] : i, L = (A) => {
543
546
  s && D.reportValidity && (D.setCustomValidity(Xe(A) ? "" : A || ""), D.reportValidity());
544
- }, x = {}, B = an(i), W = Wt(i), se = B || W, ue = (S || sn(i)) && xe(i.value) && xe(C) || nr(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, M = Is.bind(null, v, n, x), z = (A, Z, Q, ye = Ge.maxLength, de = Ge.minLength) => {
547
+ }, x = {}, B = an(i), W = Wt(i), se = B || W, ue = (S || sn(i)) && xe(i.value) && xe(C) || nr(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, M = Ls.bind(null, v, n, x), z = (A, Z, Q, ye = Ge.maxLength, de = Ge.minLength) => {
545
548
  const be = A ? Z : Q;
546
549
  x[v] = {
547
550
  type: A ? ye : de,
@@ -550,7 +553,7 @@ var wt = (t) => _e(t) && !sr(t) ? t : {
550
553
  ...M(A ? ye : de, be)
551
554
  };
552
555
  };
553
- if (a ? !Array.isArray(C) || !C.length : c && (!se && (ue || Ve(C)) || Xe(C) && !C || W && !Vs(o).isValid || B && !Fs(o).isValid)) {
556
+ if (a ? !Array.isArray(C) || !C.length : c && (!se && (ue || Ve(C)) || Xe(C) && !C || W && !$s(o).isValid || B && !Ds(o).isValid)) {
554
557
  const { value: A, message: Z } = Ie(c) ? { value: !!c, message: c } : wt(c);
555
558
  if (A && (x[v] = {
556
559
  type: Ge.required,
@@ -616,14 +619,14 @@ var wt = (t) => _e(t) && !sr(t) ? t : {
616
619
  }
617
620
  return L(!0), x;
618
621
  };
619
- const hi = {
622
+ const pi = {
620
623
  mode: Ke.onSubmit,
621
624
  reValidateMode: Ke.onChange,
622
625
  shouldFocusError: !0
623
626
  };
624
- function pi(t = {}) {
627
+ function mi(t = {}) {
625
628
  let e = {
626
- ...hi,
629
+ ...pi,
627
630
  ...t
628
631
  }, r = {
629
632
  submitCount: 0,
@@ -697,14 +700,14 @@ function pi(t = {}) {
697
700
  }
698
701
  if (N && Array.isArray(j(r.errors, u))) {
699
702
  const F = g(j(r.errors, u), T.argA, T.argB);
700
- O && ge(r.errors, u, F), di(r.errors, u);
703
+ O && ge(r.errors, u, F), fi(r.errors, u);
701
704
  }
702
705
  if ((d.touchedFields || p.touchedFields) && N && Array.isArray(j(r.touchedFields, u))) {
703
706
  const F = g(j(r.touchedFields, u), T.argA, T.argB);
704
707
  O && ge(r.touchedFields, u, F);
705
708
  }
706
709
  if (d.dirtyFields || p.dirtyFields) {
707
- const F = kt(s, a), J = Ts(u);
710
+ const F = kt(s, a), J = Ps(u);
708
711
  ge(r.dirtyFields, J, j(F, J));
709
712
  }
710
713
  m.state.next({
@@ -763,7 +766,7 @@ function pi(t = {}) {
763
766
  ...F
764
767
  }, m.state.next(F);
765
768
  }
766
- }, se = async (u) => (k(u, !0), await e.resolver(a, e.context, ai(u || o.mount, n, e.criteriaMode, e.shouldUseNativeValidation))), ue = async (u) => {
769
+ }, se = async (u) => (k(u, !0), await e.resolver(a, e.context, ii(u || o.mount, n, e.criteriaMode, e.shouldUseNativeValidation))), ue = async (u) => {
767
770
  const { errors: y } = await se(u);
768
771
  if (k(u), u)
769
772
  for (const g of u) {
@@ -808,10 +811,10 @@ function pi(t = {}) {
808
811
  if (F) {
809
812
  const { _f: J, ...pe } = F;
810
813
  if (J) {
811
- const $e = o.array.has(J.name), Je = F._f && ii(F._f);
814
+ const $e = o.array.has(J.name), Je = F._f && oi(F._f);
812
815
  Je && d.validatingFields && k([J.name], !0);
813
816
  const Le = await jn(F, o.disabled, a, b, e.shouldUseNativeValidation && !y, $e);
814
- if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (j(Le, J.name) ? $e ? fi(r.errors, Le, J.name) : ge(r.errors, J.name, Le[J.name]) : ke(r.errors, J.name)), t.shouldUseNativeValidation && Le[J.name]))
817
+ if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (j(Le, J.name) ? $e ? hi(r.errors, Le, J.name) : ge(r.errors, J.name, Le[J.name]) : ke(r.errors, J.name)), t.shouldUseNativeValidation && Le[J.name]))
815
818
  break;
816
819
  }
817
820
  !Pe(pe) && await z({
@@ -830,14 +833,14 @@ function pi(t = {}) {
830
833
  y && (y._f.refs ? y._f.refs.every((g) => !kr(g)) : !kr(y._f.ref)) && oe(u);
831
834
  }
832
835
  o.unMount = /* @__PURE__ */ new Set();
833
- }, Z = (u, y) => !e.disabled && (u && y && ge(a, u, y), !ot(G(), s)), Q = (u, y, g) => Qa(u, o, {
836
+ }, Z = (u, y) => !e.disabled && (u && y && ge(a, u, y), !ot(G(), s)), Q = (u, y, g) => ei(u, o, {
834
837
  ...i.mount ? a : xe(y) ? s : Ie(u) ? { [u]: y } : y
835
838
  }, g, y), ye = (u) => rn(j(i.mount ? a : s, u, e.shouldUnregister ? j(s, u, []) : [])), de = (u, y, g = {}) => {
836
839
  const T = j(n, u);
837
840
  let O = y;
838
841
  if (T) {
839
842
  const N = T._f;
840
- N && (!N.disabled && ge(a, u, $s(y, N)), O = nr(N.ref) && Ve(y) ? "" : y, js(N.ref) ? [...N.ref.options].forEach((F) => F.selected = O.includes(F.value)) : N.refs ? Wt(N.ref) ? N.refs.forEach((F) => {
843
+ N && (!N.disabled && ge(a, u, Fs(y, N)), O = nr(N.ref) && Ve(y) ? "" : y, Ms(N.ref) ? [...N.ref.options].forEach((F) => F.selected = O.includes(F.value)) : N.refs ? Wt(N.ref) ? N.refs.forEach((F) => {
841
844
  (!F.defaultChecked || !F.disabled) && (Array.isArray(O) ? F.checked = !!O.find((J) => J === F.value) : F.checked = O === F.value || !!O);
842
845
  }) : N.refs.forEach((F) => F.checked = F.value === O) : sn(N.ref) ? N.ref.value = "" : (N.ref.value = O, N.ref.type || m.state.next({
843
846
  name: u,
@@ -878,22 +881,22 @@ function pi(t = {}) {
878
881
  }, F = An(e.mode), J = An(e.reValidateMode);
879
882
  if (O) {
880
883
  let pe, $e;
881
- const Je = y.type ? Nn(O._f) : Ga(u), Le = u.type === _t.BLUR || u.type === _t.FOCUS_OUT, Da = !oi(O._f) && !t.validate && !e.resolver && !j(r.errors, g) && !O._f.deps || ui(Le, j(r.touchedFields, g), r.isSubmitted, J, F), xr = Pn(g, o, Le);
884
+ const Je = y.type ? Nn(O._f) : Ha(u), Le = u.type === _t.BLUR || u.type === _t.FOCUS_OUT, Ua = !ci(O._f) && !t.validate && !e.resolver && !j(r.errors, g) && !O._f.deps || di(Le, j(r.touchedFields, g), r.isSubmitted, J, F), xr = Pn(g, o, Le);
882
885
  ge(a, g, Je), Le ? (!y || !y.readOnly) && (O._f.onBlur && O._f.onBlur(u), c && c(0)) : O._f.onChange && O._f.onChange(u);
883
- const _r = B(g, Je, Le), Ua = !Pe(_r) || xr;
886
+ const _r = B(g, Je, Le), za = !Pe(_r) || xr;
884
887
  if (!Le && m.state.next({
885
888
  name: g,
886
889
  type: u.type,
887
890
  values: Ce(a)
888
- }), Da)
889
- return (d.isValid || p.isValid) && (e.mode === "onBlur" ? Le && S() : Le || S()), Ua && m.state.next({ name: g, ...xr ? {} : _r });
891
+ }), Ua)
892
+ return (d.isValid || p.isValid) && (e.mode === "onBlur" ? Le && S() : Le || S()), za && m.state.next({ name: g, ...xr ? {} : _r });
890
893
  if (!e.resolver && t.validate && await M({
891
894
  name: g,
892
895
  eventType: u.type
893
896
  }), !Le && xr && m.state.next({ ...r }), e.resolver) {
894
897
  const { errors: xn } = await se([g]);
895
898
  if (k([g]), N(Je), T) {
896
- const za = In(r.errors, n, g), _n = In(xn, n, za.name || g);
899
+ const Za = In(r.errors, n, g), _n = In(xn, n, Za.name || g);
897
900
  pe = _n.error, g = _n.name, $e = Pe(xn);
898
901
  }
899
902
  } else
@@ -934,7 +937,7 @@ function pi(t = {}) {
934
937
  let g = {
935
938
  ...i.mount ? a : s
936
939
  };
937
- return y && (g = Ls(y.dirtyFields ? r.dirtyFields : r.touchedFields, g)), xe(u) ? g : Ie(u) ? j(g, u) : u.map((T) => j(g, T));
940
+ return y && (g = js(y.dirtyFields ? r.dirtyFields : r.touchedFields, g)), xe(u) ? g : Ie(u) ? j(g, u) : u.map((T) => j(g, T));
938
941
  }, q = (u, y) => ({
939
942
  invalid: !!j((y || r).errors, u),
940
943
  isDirty: !!j((y || r).dirtyFields, u),
@@ -966,7 +969,7 @@ function pi(t = {}) {
966
969
  next: (g) => "values" in g && u(Q(void 0, y), g)
967
970
  }) : Q(u, y, !0), te = (u) => m.state.subscribe({
968
971
  next: (y) => {
969
- li(u.name, y.name, u.exact) && ci(y, u.formState || d, Fa, u.reRenderRoot) && u.callback({
972
+ ui(u.name, y.name, u.exact) && li(y, u.formState || d, Da, u.reRenderRoot) && u.callback({
970
973
  values: { ...a },
971
974
  ...r,
972
975
  ...y,
@@ -1026,7 +1029,7 @@ function pi(t = {}) {
1026
1029
  ref: (O) => {
1027
1030
  if (O) {
1028
1031
  Re(u, y), g = j(n, u);
1029
- const N = xe(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, F = ti(N), J = g._f.refs || [];
1032
+ const N = xe(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, F = ri(N), J = g._f.refs || [];
1030
1033
  if (F ? J.find((pe) => pe === N) : N === g._f.ref)
1031
1034
  return;
1032
1035
  ge(n, u, {
@@ -1043,7 +1046,7 @@ function pi(t = {}) {
1043
1046
  }
1044
1047
  }), x(u, !1, void 0, N);
1045
1048
  } else
1046
- g = j(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(Ha(o.array, u) && i.action) && o.unMount.add(u);
1049
+ g = j(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(Ya(o.array, u) && i.action) && o.unMount.add(u);
1047
1050
  }
1048
1051
  };
1049
1052
  }, P = () => e.shouldFocusError && $t(n, _, o.mount), Ue = (u) => {
@@ -1070,7 +1073,7 @@ function pi(t = {}) {
1070
1073
  if (o.disabled.size)
1071
1074
  for (const N of o.disabled)
1072
1075
  ke(O, N);
1073
- if (ke(r.errors, Ps), Pe(r.errors)) {
1076
+ if (ke(r.errors, Is), Pe(r.errors)) {
1074
1077
  m.state.next({
1075
1078
  errors: {}
1076
1079
  });
@@ -1149,7 +1152,7 @@ function pi(t = {}) {
1149
1152
  isSubmitting: !1,
1150
1153
  defaultValues: s
1151
1154
  });
1152
- }, vn = (u, y) => gn(Ye(u) ? u(a) : u, { ...e.resetOptions, ...y }), $a = (u, y = {}) => {
1155
+ }, vn = (u, y) => gn(Ye(u) ? u(a) : u, { ...e.resetOptions, ...y }), Fa = (u, y = {}) => {
1153
1156
  const g = j(n, u), T = g && g._f;
1154
1157
  if (T) {
1155
1158
  const O = T.refs ? T.refs[0] : T.ref;
@@ -1157,7 +1160,7 @@ function pi(t = {}) {
1157
1160
  O.focus(), y.shouldSelect && Ye(O.select) && O.select();
1158
1161
  });
1159
1162
  }
1160
- }, Fa = (u) => {
1163
+ }, Da = (u) => {
1161
1164
  r = {
1162
1165
  ...r,
1163
1166
  ...u
@@ -1236,7 +1239,7 @@ function pi(t = {}) {
1236
1239
  clearErrors: K,
1237
1240
  unregister: oe,
1238
1241
  setError: ne,
1239
- setFocus: $a,
1242
+ setFocus: Fa,
1240
1243
  getFieldState: q
1241
1244
  };
1242
1245
  return {
@@ -1269,14 +1272,14 @@ function ar(t = {}) {
1269
1272
  formState: n
1270
1273
  }, t.defaultValues && !Ye(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
1271
1274
  else {
1272
- const { formControl: i, ...o } = pi(t);
1275
+ const { formControl: i, ...o } = mi(t);
1273
1276
  e.current = {
1274
1277
  ...o,
1275
1278
  formState: n
1276
1279
  };
1277
1280
  }
1278
1281
  const a = e.current.control;
1279
- return a._options = t, Xa(() => {
1282
+ return a._options = t, Qa(() => {
1280
1283
  const i = a._subscribe({
1281
1284
  formState: a._proxyFormState,
1282
1285
  callback: () => s({ ...a._formState }),
@@ -1309,31 +1312,31 @@ function ar(t = {}) {
1309
1312
  }), !((i = a._options.resetOptions) === null || i === void 0) && i.keepIsValid || a._setValid(), r.current = t.values, s((o) => ({ ...o }))) : a._resetDefaultValues();
1310
1313
  }, [a, t.values]), Ne.useEffect(() => {
1311
1314
  a._state.mount || (a._setValid(), a._state.mount = !0), a._state.watch && (a._state.watch = !1, a._subjects.state.next({ ...a._formState })), a._removeUnmounted();
1312
- }), e.current.formState = Ne.useMemo(() => Ja(n, a), [a, n]), e.current;
1315
+ }), e.current.formState = Ne.useMemo(() => Xa(n, a), [a, n]), e.current;
1313
1316
  }
1314
1317
  const Mn = (t, e, r) => {
1315
1318
  if (t && "reportValidity" in t) {
1316
1319
  const n = j(r, e);
1317
1320
  t.setCustomValidity(n && n.message || ""), t.reportValidity();
1318
1321
  }
1319
- }, Ds = (t, e) => {
1322
+ }, Us = (t, e) => {
1320
1323
  for (const r in e.fields) {
1321
1324
  const n = e.fields[r];
1322
1325
  n && n.ref && "reportValidity" in n.ref ? Mn(n.ref, r, t) : n.refs && n.refs.forEach((s) => Mn(s, r, t));
1323
1326
  }
1324
- }, mi = (t, e) => {
1325
- e.shouldUseNativeValidation && Ds(t, e);
1327
+ }, yi = (t, e) => {
1328
+ e.shouldUseNativeValidation && Us(t, e);
1326
1329
  const r = {};
1327
1330
  for (const n in t) {
1328
1331
  const s = j(e.fields, n), a = Object.assign(t[n] || {}, { ref: s && s.ref });
1329
- if (yi(e.names || Object.keys(t), n)) {
1332
+ if (gi(e.names || Object.keys(t), n)) {
1330
1333
  const i = Object.assign({}, j(r, n));
1331
1334
  ge(i, "root", a), ge(r, n, i);
1332
1335
  } else ge(r, n, a);
1333
1336
  }
1334
1337
  return r;
1335
- }, yi = (t, e) => t.some((r) => r.startsWith(e + "."));
1336
- var gi = function(t, e) {
1338
+ }, gi = (t, e) => t.some((r) => r.startsWith(e + "."));
1339
+ var vi = function(t, e) {
1337
1340
  for (var r = {}; t.length; ) {
1338
1341
  var n = t[0], s = n.code, a = n.message, i = n.path.join(".");
1339
1342
  if (!r[i]) if ("unionErrors" in n) {
@@ -1346,7 +1349,7 @@ var gi = function(t, e) {
1346
1349
  });
1347
1350
  }), e) {
1348
1351
  var c = r[i].types, l = c && c[n.code];
1349
- r[i] = Is(i, e, r, s, l ? [].concat(l, n.message) : n.message);
1352
+ r[i] = Ls(i, e, r, s, l ? [].concat(l, n.message) : n.message);
1350
1353
  }
1351
1354
  t.shift();
1352
1355
  }
@@ -1357,7 +1360,7 @@ var gi = function(t, e) {
1357
1360
  return Promise.resolve((function(i, o) {
1358
1361
  try {
1359
1362
  var c = Promise.resolve(t[r.mode === "sync" ? "parse" : "parseAsync"](n, e)).then(function(l) {
1360
- return a.shouldUseNativeValidation && Ds({}, a), { errors: {}, values: r.raw ? n : l };
1363
+ return a.shouldUseNativeValidation && Us({}, a), { errors: {}, values: r.raw ? n : l };
1361
1364
  });
1362
1365
  } catch (l) {
1363
1366
  return o(l);
@@ -1366,7 +1369,7 @@ var gi = function(t, e) {
1366
1369
  })(0, function(i) {
1367
1370
  if ((function(o) {
1368
1371
  return Array.isArray(o == null ? void 0 : o.errors);
1369
- })(i)) return { values: {}, errors: mi(gi(i.errors, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
1372
+ })(i)) return { values: {}, errors: yi(vi(i.errors, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
1370
1373
  throw i;
1371
1374
  }));
1372
1375
  } catch (i) {
@@ -1598,11 +1601,11 @@ const $r = (t, e) => {
1598
1601
  }
1599
1602
  return { message: r };
1600
1603
  };
1601
- let vi = $r;
1602
- function bi() {
1603
- return vi;
1604
+ let bi = $r;
1605
+ function xi() {
1606
+ return bi;
1604
1607
  }
1605
- const xi = (t) => {
1608
+ const _i = (t) => {
1606
1609
  const { data: e, path: r, errorMaps: n, issueData: s } = t, a = [...r, ...s.path || []], i = {
1607
1610
  ...s,
1608
1611
  path: a
@@ -1624,7 +1627,7 @@ const xi = (t) => {
1624
1627
  };
1625
1628
  };
1626
1629
  function I(t, e) {
1627
- const r = bi(), n = xi({
1630
+ const r = xi(), n = _i({
1628
1631
  issueData: e,
1629
1632
  data: t.data,
1630
1633
  path: t.path,
@@ -1907,7 +1910,7 @@ class ce {
1907
1910
  });
1908
1911
  }
1909
1912
  brand() {
1910
- return new Zi({
1913
+ return new Bi({
1911
1914
  typeName: Y.ZodBranded,
1912
1915
  type: this,
1913
1916
  ...re(this._def)
@@ -1942,28 +1945,28 @@ class ce {
1942
1945
  return this.safeParse(null).success;
1943
1946
  }
1944
1947
  }
1945
- const _i = /^c[^\s-]{8,}$/i, wi = /^[0-9a-z]+$/, ki = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Si = /^[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, Ci = /^[a-z0-9_-]{21}$/i, Ei = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ri = /^[-+]?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)?)??$/, Oi = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ni = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1948
+ const wi = /^c[^\s-]{8,}$/i, ki = /^[0-9a-z]+$/, Si = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ci = /^[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, Ei = /^[a-z0-9_-]{21}$/i, Ri = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Oi = /^[-+]?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)?)??$/, Ni = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ai = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1946
1949
  let Sr;
1947
- const Ai = /^(?:(?: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])$/, Ti = /^(?:(?: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])$/, Pi = /^(([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]))$/, Ii = /^(([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])$/, Li = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, ji = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Us = "((\\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])))", Mi = new RegExp(`^${Us}$`);
1948
- function zs(t) {
1950
+ const Ti = /^(?:(?: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])$/, Pi = /^(?:(?: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])$/, Ii = /^(([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]))$/, Li = /^(([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])$/, ji = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Mi = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, zs = "((\\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])))", Vi = new RegExp(`^${zs}$`);
1951
+ function Zs(t) {
1949
1952
  let e = "[0-5]\\d";
1950
1953
  t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
1951
1954
  const r = t.precision ? "+" : "?";
1952
1955
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
1953
1956
  }
1954
- function Vi(t) {
1955
- return new RegExp(`^${zs(t)}$`);
1956
- }
1957
1957
  function $i(t) {
1958
- let e = `${Us}T${zs(t)}`;
1958
+ return new RegExp(`^${Zs(t)}$`);
1959
+ }
1960
+ function Fi(t) {
1961
+ let e = `${zs}T${Zs(t)}`;
1959
1962
  const r = [];
1960
1963
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
1961
1964
  }
1962
- function Fi(t, e) {
1963
- return !!((e === "v4" || !e) && Ai.test(t) || (e === "v6" || !e) && Pi.test(t));
1964
- }
1965
1965
  function Di(t, e) {
1966
- if (!Ei.test(t))
1966
+ return !!((e === "v4" || !e) && Ti.test(t) || (e === "v6" || !e) && Ii.test(t));
1967
+ }
1968
+ function Ui(t, e) {
1969
+ if (!Ri.test(t))
1967
1970
  return !1;
1968
1971
  try {
1969
1972
  const [r] = t.split(".");
@@ -1975,8 +1978,8 @@ function Di(t, e) {
1975
1978
  return !1;
1976
1979
  }
1977
1980
  }
1978
- function Ui(t, e) {
1979
- return !!((e === "v4" || !e) && Ti.test(t) || (e === "v6" || !e) && Ii.test(t));
1981
+ function zi(t, e) {
1982
+ return !!((e === "v4" || !e) && Pi.test(t) || (e === "v6" || !e) && Li.test(t));
1980
1983
  }
1981
1984
  class lt extends ce {
1982
1985
  _parse(e) {
@@ -2027,43 +2030,43 @@ class lt extends ce {
2027
2030
  message: a.message
2028
2031
  }), n.dirty());
2029
2032
  } else if (a.kind === "email")
2030
- Oi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2033
+ Ni.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2031
2034
  validation: "email",
2032
2035
  code: E.invalid_string,
2033
2036
  message: a.message
2034
2037
  }), n.dirty());
2035
2038
  else if (a.kind === "emoji")
2036
- Sr || (Sr = new RegExp(Ni, "u")), Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2039
+ Sr || (Sr = new RegExp(Ai, "u")), Sr.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2037
2040
  validation: "emoji",
2038
2041
  code: E.invalid_string,
2039
2042
  message: a.message
2040
2043
  }), n.dirty());
2041
2044
  else if (a.kind === "uuid")
2042
- Si.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2045
+ Ci.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2043
2046
  validation: "uuid",
2044
2047
  code: E.invalid_string,
2045
2048
  message: a.message
2046
2049
  }), n.dirty());
2047
2050
  else if (a.kind === "nanoid")
2048
- Ci.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2051
+ Ei.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2049
2052
  validation: "nanoid",
2050
2053
  code: E.invalid_string,
2051
2054
  message: a.message
2052
2055
  }), n.dirty());
2053
2056
  else if (a.kind === "cuid")
2054
- _i.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2057
+ wi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2055
2058
  validation: "cuid",
2056
2059
  code: E.invalid_string,
2057
2060
  message: a.message
2058
2061
  }), n.dirty());
2059
2062
  else if (a.kind === "cuid2")
2060
- wi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2063
+ ki.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2061
2064
  validation: "cuid2",
2062
2065
  code: E.invalid_string,
2063
2066
  message: a.message
2064
2067
  }), n.dirty());
2065
2068
  else if (a.kind === "ulid")
2066
- ki.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2069
+ Si.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2067
2070
  validation: "ulid",
2068
2071
  code: E.invalid_string,
2069
2072
  message: a.message
@@ -2094,39 +2097,39 @@ class lt extends ce {
2094
2097
  code: E.invalid_string,
2095
2098
  validation: { endsWith: a.value },
2096
2099
  message: a.message
2097
- }), n.dirty()) : a.kind === "datetime" ? $i(a).test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2100
+ }), n.dirty()) : a.kind === "datetime" ? Fi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2098
2101
  code: E.invalid_string,
2099
2102
  validation: "datetime",
2100
2103
  message: a.message
2101
- }), n.dirty()) : a.kind === "date" ? Mi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2104
+ }), n.dirty()) : a.kind === "date" ? Vi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2102
2105
  code: E.invalid_string,
2103
2106
  validation: "date",
2104
2107
  message: a.message
2105
- }), n.dirty()) : a.kind === "time" ? Vi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2108
+ }), n.dirty()) : a.kind === "time" ? $i(a).test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2106
2109
  code: E.invalid_string,
2107
2110
  validation: "time",
2108
2111
  message: a.message
2109
- }), n.dirty()) : a.kind === "duration" ? Ri.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2112
+ }), n.dirty()) : a.kind === "duration" ? Oi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2110
2113
  validation: "duration",
2111
2114
  code: E.invalid_string,
2112
2115
  message: a.message
2113
- }), n.dirty()) : a.kind === "ip" ? Fi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), I(s, {
2116
+ }), n.dirty()) : a.kind === "ip" ? Di(e.data, a.version) || (s = this._getOrReturnCtx(e, s), I(s, {
2114
2117
  validation: "ip",
2115
2118
  code: E.invalid_string,
2116
2119
  message: a.message
2117
- }), n.dirty()) : a.kind === "jwt" ? Di(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), I(s, {
2120
+ }), n.dirty()) : a.kind === "jwt" ? Ui(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), I(s, {
2118
2121
  validation: "jwt",
2119
2122
  code: E.invalid_string,
2120
2123
  message: a.message
2121
- }), n.dirty()) : a.kind === "cidr" ? Ui(e.data, a.version) || (s = this._getOrReturnCtx(e, s), I(s, {
2124
+ }), n.dirty()) : a.kind === "cidr" ? zi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), I(s, {
2122
2125
  validation: "cidr",
2123
2126
  code: E.invalid_string,
2124
2127
  message: a.message
2125
- }), n.dirty()) : a.kind === "base64" ? Li.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2128
+ }), n.dirty()) : a.kind === "base64" ? ji.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2126
2129
  validation: "base64",
2127
2130
  code: E.invalid_string,
2128
2131
  message: a.message
2129
- }), n.dirty()) : a.kind === "base64url" ? ji.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2132
+ }), n.dirty()) : a.kind === "base64url" ? Mi.test(e.data) || (s = this._getOrReturnCtx(e, s), I(s, {
2130
2133
  validation: "base64url",
2131
2134
  code: E.invalid_string,
2132
2135
  message: a.message
@@ -2361,7 +2364,7 @@ lt.create = (t) => new lt({
2361
2364
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
2362
2365
  ...re(t)
2363
2366
  });
2364
- function zi(t, e) {
2367
+ function Zi(t, e) {
2365
2368
  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(".", ""));
2366
2369
  return a % i / 10 ** s;
2367
2370
  }
@@ -2400,7 +2403,7 @@ class Dt extends ce {
2400
2403
  inclusive: a.inclusive,
2401
2404
  exact: !1,
2402
2405
  message: a.message
2403
- }), s.dirty()) : a.kind === "multipleOf" ? zi(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), I(n, {
2406
+ }), s.dirty()) : a.kind === "multipleOf" ? Zi(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), I(n, {
2404
2407
  code: E.not_multiple_of,
2405
2408
  multipleOf: a.value,
2406
2409
  message: a.message
@@ -3225,7 +3228,7 @@ class Se extends ce {
3225
3228
  });
3226
3229
  }
3227
3230
  keyof() {
3228
- return Zs(le.objectKeys(this.shape));
3231
+ return Bs(le.objectKeys(this.shape));
3229
3232
  }
3230
3233
  }
3231
3234
  Se.create = (t, e) => new Se({
@@ -3583,7 +3586,7 @@ Dr.create = (t, e) => new Dr({
3583
3586
  typeName: Y.ZodLiteral,
3584
3587
  ...re(e)
3585
3588
  });
3586
- function Zs(t, e) {
3589
+ function Bs(t, e) {
3587
3590
  return new Rt({
3588
3591
  values: t,
3589
3592
  typeName: Y.ZodEnum,
@@ -3644,7 +3647,7 @@ class Rt extends ce {
3644
3647
  });
3645
3648
  }
3646
3649
  }
3647
- Rt.create = Zs;
3650
+ Rt.create = Bs;
3648
3651
  class Kn extends ce {
3649
3652
  _parse(e) {
3650
3653
  const r = le.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
@@ -3897,7 +3900,7 @@ Jn.create = (t) => new Jn({
3897
3900
  typeName: Y.ZodNaN,
3898
3901
  ...re(t)
3899
3902
  });
3900
- class Zi extends ce {
3903
+ class Bi extends ce {
3901
3904
  _parse(e) {
3902
3905
  const { ctx: r } = this._processInputParams(e), n = r.data;
3903
3906
  return this._def.type._parse({
@@ -3975,7 +3978,7 @@ const gr = Se.create;
3975
3978
  lr.create;
3976
3979
  ur.create;
3977
3980
  bt.create;
3978
- const Bi = Dr.create;
3981
+ const Wi = Dr.create;
3979
3982
  Rt.create;
3980
3983
  dr.create;
3981
3984
  dt.create;
@@ -3986,14 +3989,14 @@ Nt.create;
3986
3989
  * This source code is licensed under the ISC license.
3987
3990
  * See the LICENSE file in the root directory of this source tree.
3988
3991
  */
3989
- const Wi = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Bs = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim();
3992
+ const qi = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ws = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim();
3990
3993
  /**
3991
3994
  * @license lucide-react v0.468.0 - ISC
3992
3995
  *
3993
3996
  * This source code is licensed under the ISC license.
3994
3997
  * See the LICENSE file in the root directory of this source tree.
3995
3998
  */
3996
- var qi = {
3999
+ var Gi = {
3997
4000
  xmlns: "http://www.w3.org/2000/svg",
3998
4001
  width: 24,
3999
4002
  height: 24,
@@ -4010,7 +4013,7 @@ var qi = {
4010
4013
  * This source code is licensed under the ISC license.
4011
4014
  * See the LICENSE file in the root directory of this source tree.
4012
4015
  */
4013
- const Gi = mr(
4016
+ const Hi = mr(
4014
4017
  ({
4015
4018
  color: t = "currentColor",
4016
4019
  size: e = 24,
@@ -4024,12 +4027,12 @@ const Gi = mr(
4024
4027
  "svg",
4025
4028
  {
4026
4029
  ref: c,
4027
- ...qi,
4030
+ ...Gi,
4028
4031
  width: e,
4029
4032
  height: e,
4030
4033
  stroke: t,
4031
4034
  strokeWidth: n ? Number(r) * 24 / Number(e) : r,
4032
- className: Bs("lucide", s),
4035
+ className: Ws("lucide", s),
4033
4036
  ...o
4034
4037
  },
4035
4038
  [
@@ -4046,10 +4049,10 @@ const Gi = mr(
4046
4049
  */
4047
4050
  const yt = (t, e) => {
4048
4051
  const r = mr(
4049
- ({ className: n, ...s }, a) => Ft(Gi, {
4052
+ ({ className: n, ...s }, a) => Ft(Hi, {
4050
4053
  ref: a,
4051
4054
  iconNode: e,
4052
- className: Bs(`lucide-${Wi(t)}`, n),
4055
+ className: Ws(`lucide-${qi(t)}`, n),
4053
4056
  ...s
4054
4057
  })
4055
4058
  );
@@ -4061,14 +4064,14 @@ const yt = (t, e) => {
4061
4064
  * This source code is licensed under the ISC license.
4062
4065
  * See the LICENSE file in the root directory of this source tree.
4063
4066
  */
4064
- const Hi = yt("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
4067
+ const Yi = yt("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
4065
4068
  /**
4066
4069
  * @license lucide-react v0.468.0 - ISC
4067
4070
  *
4068
4071
  * This source code is licensed under the ISC license.
4069
4072
  * See the LICENSE file in the root directory of this source tree.
4070
4073
  */
4071
- const Yi = yt("CircleCheck", [
4074
+ const Ki = yt("CircleCheck", [
4072
4075
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4073
4076
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
4074
4077
  ]);
@@ -4078,7 +4081,7 @@ const Yi = yt("CircleCheck", [
4078
4081
  * This source code is licensed under the ISC license.
4079
4082
  * See the LICENSE file in the root directory of this source tree.
4080
4083
  */
4081
- const Ki = yt("Github", [
4084
+ const Ji = yt("Github", [
4082
4085
  [
4083
4086
  "path",
4084
4087
  {
@@ -4103,7 +4106,7 @@ const fr = yt("LoaderCircle", [
4103
4106
  * This source code is licensed under the ISC license.
4104
4107
  * See the LICENSE file in the root directory of this source tree.
4105
4108
  */
4106
- const Ji = yt("LogOut", [
4109
+ const Xi = yt("LogOut", [
4107
4110
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
4108
4111
  ["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
4109
4112
  ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
@@ -4114,7 +4117,7 @@ const Ji = yt("LogOut", [
4114
4117
  * This source code is licensed under the ISC license.
4115
4118
  * See the LICENSE file in the root directory of this source tree.
4116
4119
  */
4117
- const Xi = yt("Mail", [
4120
+ const Qi = yt("Mail", [
4118
4121
  ["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
4119
4122
  ["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
4120
4123
  ]);
@@ -4124,7 +4127,7 @@ const Xi = yt("Mail", [
4124
4127
  * This source code is licensed under the ISC license.
4125
4128
  * See the LICENSE file in the root directory of this source tree.
4126
4129
  */
4127
- const Qi = yt("Pencil", [
4130
+ const eo = yt("Pencil", [
4128
4131
  [
4129
4132
  "path",
4130
4133
  {
@@ -4140,7 +4143,7 @@ const Qi = yt("Pencil", [
4140
4143
  * This source code is licensed under the ISC license.
4141
4144
  * See the LICENSE file in the root directory of this source tree.
4142
4145
  */
4143
- const eo = yt("Phone", [
4146
+ const to = yt("Phone", [
4144
4147
  [
4145
4148
  "path",
4146
4149
  {
@@ -4149,39 +4152,39 @@ const eo = yt("Phone", [
4149
4152
  }
4150
4153
  ]
4151
4154
  ]);
4152
- function Ws(t) {
4155
+ function qs(t) {
4153
4156
  var e, r, n = "";
4154
4157
  if (typeof t == "string" || typeof t == "number") n += t;
4155
4158
  else if (typeof t == "object") if (Array.isArray(t)) {
4156
4159
  var s = t.length;
4157
- for (e = 0; e < s; e++) t[e] && (r = Ws(t[e])) && (n && (n += " "), n += r);
4160
+ for (e = 0; e < s; e++) t[e] && (r = qs(t[e])) && (n && (n += " "), n += r);
4158
4161
  } else for (r in t) t[r] && (n && (n += " "), n += r);
4159
4162
  return n;
4160
4163
  }
4161
- function qs() {
4162
- for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = Ws(t)) && (n && (n += " "), n += e);
4164
+ function Gs() {
4165
+ for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = qs(t)) && (n && (n += " "), n += e);
4163
4166
  return n;
4164
4167
  }
4165
- const cn = "-", to = (t) => {
4166
- const e = no(t), {
4168
+ const cn = "-", ro = (t) => {
4169
+ const e = so(t), {
4167
4170
  conflictingClassGroups: r,
4168
4171
  conflictingClassGroupModifiers: n
4169
4172
  } = t;
4170
4173
  return {
4171
4174
  getClassGroupId: (i) => {
4172
4175
  const o = i.split(cn);
4173
- return o[0] === "" && o.length !== 1 && o.shift(), Gs(o, e) || ro(i);
4176
+ return o[0] === "" && o.length !== 1 && o.shift(), Hs(o, e) || no(i);
4174
4177
  },
4175
4178
  getConflictingClassGroupIds: (i, o) => {
4176
4179
  const c = r[i] || [];
4177
4180
  return o && n[i] ? [...c, ...n[i]] : c;
4178
4181
  }
4179
4182
  };
4180
- }, Gs = (t, e) => {
4183
+ }, Hs = (t, e) => {
4181
4184
  var i;
4182
4185
  if (t.length === 0)
4183
4186
  return e.classGroupId;
4184
- const r = t[0], n = e.nextPart.get(r), s = n ? Gs(t.slice(1), n) : void 0;
4187
+ const r = t[0], n = e.nextPart.get(r), s = n ? Hs(t.slice(1), n) : void 0;
4185
4188
  if (s)
4186
4189
  return s;
4187
4190
  if (e.validators.length === 0)
@@ -4190,13 +4193,13 @@ const cn = "-", to = (t) => {
4190
4193
  return (i = e.validators.find(({
4191
4194
  validator: o
4192
4195
  }) => o(a))) == null ? void 0 : i.classGroupId;
4193
- }, Xn = /^\[(.+)\]$/, ro = (t) => {
4196
+ }, Xn = /^\[(.+)\]$/, no = (t) => {
4194
4197
  if (Xn.test(t)) {
4195
4198
  const e = Xn.exec(t)[1], r = e == null ? void 0 : e.substring(0, e.indexOf(":"));
4196
4199
  if (r)
4197
4200
  return "arbitrary.." + r;
4198
4201
  }
4199
- }, no = (t) => {
4202
+ }, so = (t) => {
4200
4203
  const {
4201
4204
  theme: e,
4202
4205
  prefix: r
@@ -4204,7 +4207,7 @@ const cn = "-", to = (t) => {
4204
4207
  nextPart: /* @__PURE__ */ new Map(),
4205
4208
  validators: []
4206
4209
  };
4207
- return ao(Object.entries(t.classGroups), r).forEach(([a, i]) => {
4210
+ return io(Object.entries(t.classGroups), r).forEach(([a, i]) => {
4208
4211
  Br(i, n, a, e);
4209
4212
  }), n;
4210
4213
  }, Br = (t, e, r, n) => {
@@ -4215,7 +4218,7 @@ const cn = "-", to = (t) => {
4215
4218
  return;
4216
4219
  }
4217
4220
  if (typeof s == "function") {
4218
- if (so(s)) {
4221
+ if (ao(s)) {
4219
4222
  Br(s(n), e, r, n);
4220
4223
  return;
4221
4224
  }
@@ -4237,10 +4240,10 @@ const cn = "-", to = (t) => {
4237
4240
  validators: []
4238
4241
  }), r = r.nextPart.get(n);
4239
4242
  }), r;
4240
- }, so = (t) => t.isThemeGetter, ao = (t, e) => e ? t.map(([r, n]) => {
4243
+ }, ao = (t) => t.isThemeGetter, io = (t, e) => e ? t.map(([r, n]) => {
4241
4244
  const s = n.map((a) => typeof a == "string" ? e + a : typeof a == "object" ? Object.fromEntries(Object.entries(a).map(([i, o]) => [e + i, o])) : a);
4242
4245
  return [r, s];
4243
- }) : t, io = (t) => {
4246
+ }) : t, oo = (t) => {
4244
4247
  if (t < 1)
4245
4248
  return {
4246
4249
  get: () => {
@@ -4264,7 +4267,7 @@ const cn = "-", to = (t) => {
4264
4267
  r.has(a) ? r.set(a, i) : s(a, i);
4265
4268
  }
4266
4269
  };
4267
- }, Hs = "!", oo = (t) => {
4270
+ }, Ys = "!", co = (t) => {
4268
4271
  const {
4269
4272
  separator: e,
4270
4273
  experimentalParseClassName: r
@@ -4285,7 +4288,7 @@ const cn = "-", to = (t) => {
4285
4288
  }
4286
4289
  k === "[" ? l++ : k === "]" && l--;
4287
4290
  }
4288
- const p = c.length === 0 ? o : o.substring(f), m = p.startsWith(Hs), b = m ? p.substring(1) : p, v = d && d > f ? d - f : void 0;
4291
+ const p = c.length === 0 ? o : o.substring(f), m = p.startsWith(Ys), b = m ? p.substring(1) : p, v = d && d > f ? d - f : void 0;
4289
4292
  return {
4290
4293
  modifiers: c,
4291
4294
  hasImportantModifier: m,
@@ -4297,7 +4300,7 @@ const cn = "-", to = (t) => {
4297
4300
  className: o,
4298
4301
  parseClassName: i
4299
4302
  }) : i;
4300
- }, co = (t) => {
4303
+ }, lo = (t) => {
4301
4304
  if (t.length <= 1)
4302
4305
  return t;
4303
4306
  const e = [];
@@ -4305,16 +4308,16 @@ const cn = "-", to = (t) => {
4305
4308
  return t.forEach((n) => {
4306
4309
  n[0] === "[" ? (e.push(...r.sort(), n), r = []) : r.push(n);
4307
4310
  }), e.push(...r.sort()), e;
4308
- }, lo = (t) => ({
4309
- cache: io(t.cacheSize),
4310
- parseClassName: oo(t),
4311
- ...to(t)
4312
- }), uo = /\s+/, fo = (t, e) => {
4311
+ }, uo = (t) => ({
4312
+ cache: oo(t.cacheSize),
4313
+ parseClassName: co(t),
4314
+ ...ro(t)
4315
+ }), fo = /\s+/, ho = (t, e) => {
4313
4316
  const {
4314
4317
  parseClassName: r,
4315
4318
  getClassGroupId: n,
4316
4319
  getConflictingClassGroupIds: s
4317
- } = e, a = [], i = t.trim().split(uo);
4320
+ } = e, a = [], i = t.trim().split(fo);
4318
4321
  let o = "";
4319
4322
  for (let c = i.length - 1; c >= 0; c -= 1) {
4320
4323
  const l = i[c], {
@@ -4335,7 +4338,7 @@ const cn = "-", to = (t) => {
4335
4338
  }
4336
4339
  b = !1;
4337
4340
  }
4338
- const S = co(f).join(":"), k = d ? S + Hs : S, C = k + v;
4341
+ const S = lo(f).join(":"), k = d ? S + Ys : S, C = k + v;
4339
4342
  if (a.includes(C))
4340
4343
  continue;
4341
4344
  a.push(C);
@@ -4348,49 +4351,49 @@ const cn = "-", to = (t) => {
4348
4351
  }
4349
4352
  return o;
4350
4353
  };
4351
- function ho() {
4354
+ function po() {
4352
4355
  let t = 0, e, r, n = "";
4353
4356
  for (; t < arguments.length; )
4354
- (e = arguments[t++]) && (r = Ys(e)) && (n && (n += " "), n += r);
4357
+ (e = arguments[t++]) && (r = Ks(e)) && (n && (n += " "), n += r);
4355
4358
  return n;
4356
4359
  }
4357
- const Ys = (t) => {
4360
+ const Ks = (t) => {
4358
4361
  if (typeof t == "string")
4359
4362
  return t;
4360
4363
  let e, r = "";
4361
4364
  for (let n = 0; n < t.length; n++)
4362
- t[n] && (e = Ys(t[n])) && (r && (r += " "), r += e);
4365
+ t[n] && (e = Ks(t[n])) && (r && (r += " "), r += e);
4363
4366
  return r;
4364
4367
  };
4365
- function po(t, ...e) {
4368
+ function mo(t, ...e) {
4366
4369
  let r, n, s, a = i;
4367
4370
  function i(c) {
4368
4371
  const l = e.reduce((f, d) => d(f), t());
4369
- return r = lo(l), n = r.cache.get, s = r.cache.set, a = o, o(c);
4372
+ return r = uo(l), n = r.cache.get, s = r.cache.set, a = o, o(c);
4370
4373
  }
4371
4374
  function o(c) {
4372
4375
  const l = n(c);
4373
4376
  if (l)
4374
4377
  return l;
4375
- const f = fo(c, r);
4378
+ const f = ho(c, r);
4376
4379
  return s(c, f), f;
4377
4380
  }
4378
4381
  return function() {
4379
- return a(ho.apply(null, arguments));
4382
+ return a(po.apply(null, arguments));
4380
4383
  };
4381
4384
  }
4382
4385
  const ve = (t) => {
4383
4386
  const e = (r) => r[t] || [];
4384
4387
  return e.isThemeGetter = !0, e;
4385
- }, Ks = /^\[(?:([a-z-]+):)?(.+)\]$/i, mo = /^\d+\/\d+$/, yo = /* @__PURE__ */ new Set(["px", "full", "screen"]), go = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, vo = /\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$/, bo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, xo = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, _o = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rt = (t) => Ct(t) || yo.has(t) || mo.test(t), st = (t) => Pt(t, "length", No), Ct = (t) => !!t && !Number.isNaN(Number(t)), Cr = (t) => Pt(t, "number", Ct), Lt = (t) => !!t && Number.isInteger(Number(t)), wo = (t) => t.endsWith("%") && Ct(t.slice(0, -1)), X = (t) => Ks.test(t), at = (t) => go.test(t), ko = /* @__PURE__ */ new Set(["length", "size", "percentage"]), So = (t) => Pt(t, ko, Js), Co = (t) => Pt(t, "position", Js), Eo = /* @__PURE__ */ new Set(["image", "url"]), Ro = (t) => Pt(t, Eo, To), Oo = (t) => Pt(t, "", Ao), jt = () => !0, Pt = (t, e, r) => {
4386
- const n = Ks.exec(t);
4388
+ }, Js = /^\[(?:([a-z-]+):)?(.+)\]$/i, yo = /^\d+\/\d+$/, go = /* @__PURE__ */ new Set(["px", "full", "screen"]), vo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, bo = /\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$/, xo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, _o = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, wo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, rt = (t) => Ct(t) || go.has(t) || yo.test(t), st = (t) => Pt(t, "length", Ao), Ct = (t) => !!t && !Number.isNaN(Number(t)), Cr = (t) => Pt(t, "number", Ct), Lt = (t) => !!t && Number.isInteger(Number(t)), ko = (t) => t.endsWith("%") && Ct(t.slice(0, -1)), X = (t) => Js.test(t), at = (t) => vo.test(t), So = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Co = (t) => Pt(t, So, Xs), Eo = (t) => Pt(t, "position", Xs), Ro = /* @__PURE__ */ new Set(["image", "url"]), Oo = (t) => Pt(t, Ro, Po), No = (t) => Pt(t, "", To), jt = () => !0, Pt = (t, e, r) => {
4389
+ const n = Js.exec(t);
4387
4390
  return n ? n[1] ? typeof e == "string" ? n[1] === e : e.has(n[1]) : r(n[2]) : !1;
4388
- }, No = (t) => (
4391
+ }, Ao = (t) => (
4389
4392
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
4390
4393
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
4391
4394
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4392
- vo.test(t) && !bo.test(t)
4393
- ), Js = () => !1, Ao = (t) => xo.test(t), To = (t) => _o.test(t), Po = () => {
4395
+ bo.test(t) && !xo.test(t)
4396
+ ), Xs = () => !1, To = (t) => _o.test(t), Po = (t) => wo.test(t), Io = () => {
4394
4397
  const t = ve("colors"), e = ve("spacing"), r = ve("blur"), n = ve("brightness"), s = ve("borderColor"), a = ve("borderRadius"), i = ve("borderSpacing"), o = ve("borderWidth"), c = ve("contrast"), l = ve("grayscale"), f = ve("hueRotate"), d = ve("invert"), p = ve("gap"), m = ve("gradientColorStops"), b = ve("gradientColorStopPositions"), v = ve("inset"), S = ve("margin"), k = ve("opacity"), C = ve("padding"), D = ve("saturate"), L = ve("scale"), x = ve("sepia"), B = ve("skew"), W = ve("space"), se = ve("translate"), ue = () => ["auto", "contain", "none"], M = () => ["auto", "hidden", "clip", "visible", "scroll"], z = () => ["auto", X, e], A = () => [X, e], Z = () => ["", rt, st], Q = () => ["auto", Ct, X], ye = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], de = () => ["solid", "dashed", "dotted", "double", "none"], be = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], we = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], Ee = () => ["", "0", X], _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], R = () => [Ct, X];
4395
4398
  return {
4396
4399
  cacheSize: 500,
@@ -4410,7 +4413,7 @@ const ve = (t) => {
4410
4413
  invert: Ee(),
4411
4414
  gap: A(),
4412
4415
  gradientColorStops: [t],
4413
- gradientColorStopPositions: [wo, st],
4416
+ gradientColorStopPositions: [ko, st],
4414
4417
  inset: z(),
4415
4418
  margin: z(),
4416
4419
  opacity: R(),
@@ -5323,7 +5326,7 @@ const ve = (t) => {
5323
5326
  * @see https://tailwindcss.com/docs/background-position
5324
5327
  */
5325
5328
  "bg-position": [{
5326
- bg: [...ye(), Co]
5329
+ bg: [...ye(), Eo]
5327
5330
  }],
5328
5331
  /**
5329
5332
  * Background Repeat
@@ -5339,7 +5342,7 @@ const ve = (t) => {
5339
5342
  * @see https://tailwindcss.com/docs/background-size
5340
5343
  */
5341
5344
  "bg-size": [{
5342
- bg: ["auto", "cover", "contain", So]
5345
+ bg: ["auto", "cover", "contain", Co]
5343
5346
  }],
5344
5347
  /**
5345
5348
  * Background Image
@@ -5348,7 +5351,7 @@ const ve = (t) => {
5348
5351
  "bg-image": [{
5349
5352
  bg: ["none", {
5350
5353
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
5351
- }, Ro]
5354
+ }, Oo]
5352
5355
  }],
5353
5356
  /**
5354
5357
  * Background Color
@@ -5764,7 +5767,7 @@ const ve = (t) => {
5764
5767
  * @see https://tailwindcss.com/docs/box-shadow
5765
5768
  */
5766
5769
  shadow: [{
5767
- shadow: ["", "inner", "none", at, Oo]
5770
+ shadow: ["", "inner", "none", at, No]
5768
5771
  }],
5769
5772
  /**
5770
5773
  * Box Shadow Color
@@ -6419,11 +6422,11 @@ const ve = (t) => {
6419
6422
  "font-size": ["leading"]
6420
6423
  }
6421
6424
  };
6422
- }, Io = /* @__PURE__ */ po(Po);
6425
+ }, Lo = /* @__PURE__ */ mo(Io);
6423
6426
  function me(...t) {
6424
- return Io(qs(t));
6427
+ return Lo(Gs(t));
6425
6428
  }
6426
- function Xs(t) {
6429
+ function Qs(t) {
6427
6430
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
6428
6431
  }
6429
6432
  var Ht = { exports: {} }, Yt = { exports: {} }, fe = {};
@@ -6436,7 +6439,7 @@ var Ht = { exports: {} }, Yt = { exports: {} }, fe = {};
6436
6439
  * LICENSE file in the root directory of this source tree.
6437
6440
  */
6438
6441
  var es;
6439
- function Lo() {
6442
+ function jo() {
6440
6443
  if (es) return fe;
6441
6444
  es = 1;
6442
6445
  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;
@@ -6511,7 +6514,7 @@ var he = {};
6511
6514
  * LICENSE file in the root directory of this source tree.
6512
6515
  */
6513
6516
  var ts;
6514
- function jo() {
6517
+ function Mo() {
6515
6518
  return ts || (ts = 1, process.env.NODE_ENV !== "production" && (function() {
6516
6519
  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;
6517
6520
  function D(P) {
@@ -6595,7 +6598,7 @@ function jo() {
6595
6598
  }
6596
6599
  var rs;
6597
6600
  function ln() {
6598
- return rs || (rs = 1, process.env.NODE_ENV === "production" ? Yt.exports = Lo() : Yt.exports = jo()), Yt.exports;
6601
+ return rs || (rs = 1, process.env.NODE_ENV === "production" ? Yt.exports = jo() : Yt.exports = Mo()), Yt.exports;
6599
6602
  }
6600
6603
  /*
6601
6604
  object-assign
@@ -6603,7 +6606,7 @@ object-assign
6603
6606
  @license MIT
6604
6607
  */
6605
6608
  var Er, ns;
6606
- function Mo() {
6609
+ function Vo() {
6607
6610
  if (ns) return Er;
6608
6611
  ns = 1;
6609
6612
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
@@ -6656,17 +6659,17 @@ function un() {
6656
6659
  return Rr = t, Rr;
6657
6660
  }
6658
6661
  var Or, as;
6659
- function Qs() {
6662
+ function ea() {
6660
6663
  return as || (as = 1, Or = Function.call.bind(Object.prototype.hasOwnProperty)), Or;
6661
6664
  }
6662
6665
  var Nr, is;
6663
- function Vo() {
6666
+ function $o() {
6664
6667
  if (is) return Nr;
6665
6668
  is = 1;
6666
6669
  var t = function() {
6667
6670
  };
6668
6671
  if (process.env.NODE_ENV !== "production") {
6669
- var e = /* @__PURE__ */ un(), r = {}, n = /* @__PURE__ */ Qs();
6672
+ var e = /* @__PURE__ */ un(), r = {}, n = /* @__PURE__ */ ea();
6670
6673
  t = function(a) {
6671
6674
  var i = "Warning: " + a;
6672
6675
  typeof console < "u" && console.error(i);
@@ -6709,10 +6712,10 @@ function Vo() {
6709
6712
  }, Nr = s, Nr;
6710
6713
  }
6711
6714
  var Ar, os;
6712
- function $o() {
6715
+ function Fo() {
6713
6716
  if (os) return Ar;
6714
6717
  os = 1;
6715
- var t = ln(), e = Mo(), r = /* @__PURE__ */ un(), n = /* @__PURE__ */ Qs(), s = /* @__PURE__ */ Vo(), a = function() {
6718
+ var t = ln(), e = Vo(), r = /* @__PURE__ */ un(), n = /* @__PURE__ */ ea(), s = /* @__PURE__ */ $o(), a = function() {
6716
6719
  };
6717
6720
  process.env.NODE_ENV !== "production" && (a = function(o) {
6718
6721
  var c = "Warning: " + o;
@@ -7030,7 +7033,7 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
7030
7033
  }, Ar;
7031
7034
  }
7032
7035
  var Tr, cs;
7033
- function Fo() {
7036
+ function Do() {
7034
7037
  if (cs) return Tr;
7035
7038
  cs = 1;
7036
7039
  var t = /* @__PURE__ */ un();
@@ -7078,18 +7081,18 @@ function Fo() {
7078
7081
  }, Tr;
7079
7082
  }
7080
7083
  var ls;
7081
- function Do() {
7084
+ function Uo() {
7082
7085
  if (ls) return Ht.exports;
7083
7086
  if (ls = 1, process.env.NODE_ENV !== "production") {
7084
7087
  var t = ln(), e = !0;
7085
- Ht.exports = /* @__PURE__ */ $o()(t.isElement, e);
7088
+ Ht.exports = /* @__PURE__ */ Fo()(t.isElement, e);
7086
7089
  } else
7087
- Ht.exports = /* @__PURE__ */ Fo()();
7090
+ Ht.exports = /* @__PURE__ */ Do()();
7088
7091
  return Ht.exports;
7089
7092
  }
7090
- var Uo = /* @__PURE__ */ Do();
7091
- const Me = /* @__PURE__ */ Xs(Uo);
7092
- var zo = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
7093
+ var zo = /* @__PURE__ */ Uo();
7094
+ const Me = /* @__PURE__ */ Qs(zo);
7095
+ var Zo = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
7093
7096
  function Wr() {
7094
7097
  return Wr = Object.assign ? Object.assign.bind() : function(t) {
7095
7098
  for (var e = 1; e < arguments.length; e++) {
@@ -7100,7 +7103,7 @@ function Wr() {
7100
7103
  return t;
7101
7104
  }, Wr.apply(this, arguments);
7102
7105
  }
7103
- function Zo(t, e) {
7106
+ function Bo(t, e) {
7104
7107
  if (t == null) return {};
7105
7108
  var r = {}, n = Object.keys(t), s, a;
7106
7109
  for (a = 0; a < n.length; a++)
@@ -7112,7 +7115,7 @@ function Kt(t) {
7112
7115
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7113
7116
  return t;
7114
7117
  }
7115
- function Bo(t, e) {
7118
+ function Wo(t, e) {
7116
7119
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, qr(t, e);
7117
7120
  }
7118
7121
  function qr(t, e) {
@@ -7121,7 +7124,7 @@ function qr(t, e) {
7121
7124
  }, qr(t, e);
7122
7125
  }
7123
7126
  var vr = /* @__PURE__ */ (function(t) {
7124
- Bo(e, t);
7127
+ Wo(e, t);
7125
7128
  function e() {
7126
7129
  var n;
7127
7130
  return n = t.call(this) || this, n.handleExpired = n.handleExpired.bind(Kt(n)), n.handleErrored = n.handleErrored.bind(Kt(n)), n.handleChange = n.handleChange.bind(Kt(n)), n.handleRecaptchaRef = n.handleRecaptchaRef.bind(Kt(n)), n;
@@ -7185,7 +7188,7 @@ var vr = /* @__PURE__ */ (function(t) {
7185
7188
  }, r.render = function() {
7186
7189
  var s = this.props;
7187
7190
  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;
7188
- var a = Zo(s, zo);
7191
+ var a = Bo(s, Zo);
7189
7192
  return /* @__PURE__ */ w.createElement("div", Wr({}, a, {
7190
7193
  ref: this.handleRecaptchaRef
7191
7194
  }));
@@ -7217,7 +7220,7 @@ vr.defaultProps = {
7217
7220
  badge: "bottomright"
7218
7221
  };
7219
7222
  var Pr, us;
7220
- function Wo() {
7223
+ function qo() {
7221
7224
  if (us) return Pr;
7222
7225
  us = 1;
7223
7226
  var t = ln(), e = {
@@ -7282,8 +7285,8 @@ function Wo() {
7282
7285
  }
7283
7286
  return Pr = m, Pr;
7284
7287
  }
7285
- var qo = Wo();
7286
- const Go = /* @__PURE__ */ Xs(qo);
7288
+ var Go = qo();
7289
+ const Ho = /* @__PURE__ */ Qs(Go);
7287
7290
  function Gr() {
7288
7291
  return Gr = Object.assign || function(t) {
7289
7292
  for (var e = 1; e < arguments.length; e++) {
@@ -7294,28 +7297,28 @@ function Gr() {
7294
7297
  return t;
7295
7298
  }, Gr.apply(this, arguments);
7296
7299
  }
7297
- function Ho(t, e) {
7300
+ function Yo(t, e) {
7298
7301
  if (t == null) return {};
7299
7302
  var r = {}, n = Object.keys(t), s, a;
7300
7303
  for (a = 0; a < n.length; a++)
7301
7304
  s = n[a], !(e.indexOf(s) >= 0) && (r[s] = t[s]);
7302
7305
  return r;
7303
7306
  }
7304
- function Yo(t, e) {
7307
+ function Ko(t, e) {
7305
7308
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
7306
7309
  }
7307
- var qe = {}, Ko = 0;
7308
- function Jo(t, e) {
7310
+ var qe = {}, Jo = 0;
7311
+ function Xo(t, e) {
7309
7312
  return e = e || {}, function(n) {
7310
7313
  var s = n.displayName || n.name || "Component", a = /* @__PURE__ */ (function(o) {
7311
- Yo(c, o);
7314
+ Ko(c, o);
7312
7315
  function c(f, d) {
7313
7316
  var p;
7314
7317
  return p = o.call(this, f, d) || this, p.state = {}, p.__scriptURL = "", p;
7315
7318
  }
7316
7319
  var l = c.prototype;
7317
7320
  return l.asyncScriptLoaderGetScriptLoaderID = function() {
7318
- return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + Ko++), this.__scriptLoaderID;
7321
+ return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + Jo++), this.__scriptLoaderID;
7319
7322
  }, l.setupScriptURL = function() {
7320
7323
  return this.__scriptURL = typeof t == "function" ? t() : t, this.__scriptURL;
7321
7324
  }, l.asyncScriptLoaderHandleLoad = function(d) {
@@ -7388,30 +7391,30 @@ function Jo(t, e) {
7388
7391
  }, l.render = function() {
7389
7392
  var d = e.globalName, p = this.props;
7390
7393
  p.asyncScriptOnLoad;
7391
- var m = p.forwardedRef, b = Ho(p, ["asyncScriptOnLoad", "forwardedRef"]);
7394
+ var m = p.forwardedRef, b = Yo(p, ["asyncScriptOnLoad", "forwardedRef"]);
7392
7395
  return d && typeof window < "u" && (b[d] = typeof window[d] < "u" ? window[d] : void 0), b.ref = m, Ft(n, b);
7393
7396
  }, c;
7394
- })(Ba), i = mr(function(o, c) {
7397
+ })(Wa), i = mr(function(o, c) {
7395
7398
  return Ft(a, Gr({}, o, {
7396
7399
  forwardedRef: c
7397
7400
  }));
7398
7401
  });
7399
7402
  return i.displayName = "AsyncScriptLoader(" + s + ")", i.propTypes = {
7400
7403
  asyncScriptOnLoad: Me.func
7401
- }, Go(i, n);
7404
+ }, Ho(i, n);
7402
7405
  };
7403
7406
  }
7404
- var Hr = "onloadcallback", Xo = "grecaptcha";
7407
+ var Hr = "onloadcallback", Qo = "grecaptcha";
7405
7408
  function Yr() {
7406
7409
  return typeof window < "u" && window.recaptchaOptions || {};
7407
7410
  }
7408
- function Qo() {
7411
+ function ec() {
7409
7412
  var t = Yr(), e = t.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
7410
7413
  return t.enterprise ? "https://" + e + "/recaptcha/enterprise.js?onload=" + Hr + "&render=explicit" : "https://" + e + "/recaptcha/api.js?onload=" + Hr + "&render=explicit";
7411
7414
  }
7412
- const ec = Jo(Qo, {
7415
+ const tc = Xo(ec, {
7413
7416
  callbackName: Hr,
7414
- globalName: Xo,
7417
+ globalName: Qo,
7415
7418
  attributes: Yr().nonce ? {
7416
7419
  nonce: Yr().nonce
7417
7420
  } : {}
@@ -7425,17 +7428,17 @@ function Kr(t, e) {
7425
7428
  return r.__proto__ = n, r;
7426
7429
  }, Kr(t, e);
7427
7430
  }
7428
- function tc(t, e) {
7431
+ function rc(t, e) {
7429
7432
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Kr(t, e);
7430
7433
  }
7431
- var rc = Object.defineProperty, nc = Object.defineProperties, sc = Object.getOwnPropertyDescriptors, hr = Object.getOwnPropertySymbols, ea = Object.prototype.hasOwnProperty, ta = Object.prototype.propertyIsEnumerable, Jr = (t, e, r) => e in t ? rc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Fe = (t, e) => {
7432
- for (var r in e || (e = {})) ea.call(e, r) && Jr(t, r, e[r]);
7433
- if (hr) for (var r of hr(e)) ta.call(e, r) && Jr(t, r, e[r]);
7434
+ var nc = Object.defineProperty, sc = Object.defineProperties, ac = Object.getOwnPropertyDescriptors, hr = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, ra = Object.prototype.propertyIsEnumerable, Jr = (t, e, r) => e in t ? nc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Fe = (t, e) => {
7435
+ for (var r in e || (e = {})) ta.call(e, r) && Jr(t, r, e[r]);
7436
+ if (hr) for (var r of hr(e)) ra.call(e, r) && Jr(t, r, e[r]);
7434
7437
  return t;
7435
- }, ra = (t, e) => nc(t, sc(e)), ac = (t, e) => {
7438
+ }, na = (t, e) => sc(t, ac(e)), ic = (t, e) => {
7436
7439
  var r = {};
7437
- for (var n in t) ea.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
7438
- if (t != null && hr) for (var n of hr(t)) e.indexOf(n) < 0 && ta.call(t, n) && (r[n] = t[n]);
7440
+ for (var n in t) ta.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
7441
+ if (t != null && hr) for (var n of hr(t)) e.indexOf(n) < 0 && ra.call(t, n) && (r[n] = t[n]);
7439
7442
  return r;
7440
7443
  }, Oe = (t, e, r) => (Jr(t, typeof e != "symbol" ? e + "" : e, r), r), At = (t, e, r) => new Promise((n, s) => {
7441
7444
  var a = (c) => {
@@ -7452,36 +7455,36 @@ var rc = Object.defineProperty, nc = Object.defineProperties, sc = Object.getOwn
7452
7455
  }
7453
7456
  }, o = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
7454
7457
  o((r = r.apply(t, e)).next());
7455
- }), ic = "hCaptcha-script", tr = "hCaptchaOnLoad", ds = "script-error", ct = "@hCaptcha/loader";
7456
- function oc(t) {
7458
+ }), oc = "hCaptcha-script", tr = "hCaptchaOnLoad", ds = "script-error", ct = "@hCaptcha/loader";
7459
+ function cc(t) {
7457
7460
  return Object.entries(t).filter(([, e]) => e || e === !1).map(([e, r]) => `${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`).join("&");
7458
7461
  }
7459
- function na(t) {
7462
+ function sa(t) {
7460
7463
  let e = t && t.ownerDocument || document, r = e.defaultView || e.parentWindow || window;
7461
7464
  return { document: e, window: r };
7462
7465
  }
7463
- function sa(t) {
7466
+ function aa(t) {
7464
7467
  return t || document.head;
7465
7468
  }
7466
- function cc(t) {
7469
+ function lc(t) {
7467
7470
  var e;
7468
- t.setTag("source", ct), t.setTag("url", document.URL), t.setContext("os", { UA: navigator.userAgent }), t.setContext("browser", Fe({}, lc())), t.setContext("device", ra(Fe({}, dc()), { screen_width_pixels: screen.width, screen_height_pixels: screen.height, language: navigator.language, orientation: ((e = screen.orientation) == null ? void 0 : e.type) || "Unknown", processor_count: navigator.hardwareConcurrency, platform: navigator.platform }));
7471
+ t.setTag("source", ct), t.setTag("url", document.URL), t.setContext("os", { UA: navigator.userAgent }), t.setContext("browser", Fe({}, uc())), t.setContext("device", na(Fe({}, fc()), { screen_width_pixels: screen.width, screen_height_pixels: screen.height, language: navigator.language, orientation: ((e = screen.orientation) == null ? void 0 : e.type) || "Unknown", processor_count: navigator.hardwareConcurrency, platform: navigator.platform }));
7469
7472
  }
7470
- function lc() {
7473
+ function uc() {
7471
7474
  var t, e, r, n, s, a;
7472
7475
  let i = navigator.userAgent, o, c;
7473
7476
  return i.indexOf("Firefox") !== -1 ? (o = "Firefox", c = (t = i.match(/Firefox\/([\d.]+)/)) == null ? void 0 : t[1]) : i.indexOf("Edg") !== -1 ? (o = "Microsoft Edge", c = (e = i.match(/Edg\/([\d.]+)/)) == null ? void 0 : e[1]) : i.indexOf("Chrome") !== -1 && i.indexOf("Safari") !== -1 ? (o = "Chrome", c = (r = i.match(/Chrome\/([\d.]+)/)) == null ? void 0 : r[1]) : i.indexOf("Safari") !== -1 && i.indexOf("Chrome") === -1 ? (o = "Safari", c = (n = i.match(/Version\/([\d.]+)/)) == null ? void 0 : n[1]) : i.indexOf("Opera") !== -1 || i.indexOf("OPR") !== -1 ? (o = "Opera", c = (s = i.match(/(Opera|OPR)\/([\d.]+)/)) == null ? void 0 : s[2]) : i.indexOf("MSIE") !== -1 || i.indexOf("Trident") !== -1 ? (o = "Internet Explorer", c = (a = i.match(/(MSIE |rv:)([\d.]+)/)) == null ? void 0 : a[2]) : (o = "Unknown", c = "Unknown"), { name: o, version: c };
7474
7477
  }
7475
- function uc(t) {
7478
+ function dc(t) {
7476
7479
  return new Promise((e) => setTimeout(e, t));
7477
7480
  }
7478
- function dc() {
7481
+ function fc() {
7479
7482
  let t = navigator.userAgent, e;
7480
7483
  t.indexOf("Win") !== -1 ? e = "Windows" : t.indexOf("Mac") !== -1 ? e = "Mac" : t.indexOf("Linux") !== -1 ? e = "Linux" : t.indexOf("Android") !== -1 ? e = "Android" : t.indexOf("like Mac") !== -1 || t.indexOf("iPhone") !== -1 || t.indexOf("iPad") !== -1 ? e = "iOS" : e = "Unknown";
7481
7484
  let r;
7482
7485
  return /Mobile|iPhone|iPod|Android/i.test(t) ? r = "Mobile" : /Tablet|iPad/i.test(t) ? r = "Tablet" : r = "Desktop", { model: e, family: e, device: r };
7483
7486
  }
7484
- var fc = class aa {
7487
+ var hc = class ia {
7485
7488
  constructor(e) {
7486
7489
  Oe(this, "_parent"), Oe(this, "breadcrumbs", []), Oe(this, "context", {}), Oe(this, "extra", {}), Oe(this, "tags", {}), Oe(this, "request"), Oe(this, "user"), this._parent = e;
7487
7490
  }
@@ -7489,7 +7492,7 @@ var fc = class aa {
7489
7492
  return this._parent;
7490
7493
  }
7491
7494
  child() {
7492
- return new aa(this);
7495
+ return new ia(this);
7493
7496
  }
7494
7497
  setRequest(e) {
7495
7498
  return this.request = e, this;
@@ -7538,27 +7541,27 @@ var fc = class aa {
7538
7541
  clear() {
7539
7542
  this.breadcrumbs = [], this.context = {}, this.tags = {}, this.user = void 0;
7540
7543
  }
7541
- }, hc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, pc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, mc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, yc = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Jt = "?", fs = "An unknown error occurred", gc = "0.0.4";
7542
- function vc(t) {
7544
+ }, pc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, mc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, yc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, gc = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Jt = "?", fs = "An unknown error occurred", vc = "0.0.4";
7545
+ function bc(t) {
7543
7546
  for (let e = 0; e < t.length; e++) t[e] = Math.floor(Math.random() * 256);
7544
7547
  return t;
7545
7548
  }
7546
7549
  function Te(t) {
7547
7550
  return (t + 256).toString(16).substring(1);
7548
7551
  }
7549
- function bc() {
7550
- let t = vc(new Array(16));
7552
+ function xc() {
7553
+ let t = bc(new Array(16));
7551
7554
  return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Te(t[0]) + Te(t[1]) + Te(t[2]) + Te(t[3]) + "-" + Te(t[4]) + Te(t[5]) + "-" + Te(t[6]) + Te(t[7]) + "-" + Te(t[8]) + Te(t[9]) + "-" + Te(t[10]) + Te(t[11]) + Te(t[12]) + Te(t[13]) + Te(t[14]) + Te(t[15]);
7552
7555
  }
7553
- var xc = [[hc, "chrome"], [mc, "winjs"], [pc, "gecko"]];
7554
- function _c(t) {
7556
+ var _c = [[pc, "chrome"], [yc, "winjs"], [mc, "gecko"]];
7557
+ function wc(t) {
7555
7558
  var e, r, n, s;
7556
7559
  if (!t.stack) return null;
7557
7560
  let a = [], i = (n = (r = (e = t.stack).split) == null ? void 0 : r.call(e, `
7558
7561
  `)) != null ? n : [];
7559
7562
  for (let o = 0; o < i.length; ++o) {
7560
7563
  let c = null, l = null, f = null;
7561
- for (let [d, p] of xc) if (l = d.exec(i[o]), l) {
7564
+ for (let [d, p] of _c) if (l = d.exec(i[o]), l) {
7562
7565
  f = p;
7563
7566
  break;
7564
7567
  }
@@ -7572,38 +7575,38 @@ function _c(t) {
7572
7575
  }
7573
7576
  return a.length ? a.reverse() : null;
7574
7577
  }
7575
- function wc(t) {
7576
- let e = _c(t);
7578
+ function kc(t) {
7579
+ let e = wc(t);
7577
7580
  return { type: t.name, value: t.message, stacktrace: { frames: e ?? [] } };
7578
7581
  }
7579
- function kc(t) {
7580
- let e = yc.exec(t), r = e ? e.slice(1) : [];
7582
+ function Sc(t) {
7583
+ let e = gc.exec(t), r = e ? e.slice(1) : [];
7581
7584
  if (r.length !== 6) throw new Error("Invalid DSN");
7582
7585
  let n = r[5].split("/"), s = n.slice(0, -1).join("/");
7583
7586
  return r[0] + "://" + r[3] + (r[4] ? ":" + r[4] : "") + (s ? "/" + s : "") + "/api/" + n.pop() + "/envelope/?sentry_version=7&sentry_key=" + r[1] + (r[2] ? "&sentry_secret=" + r[2] : "");
7584
7587
  }
7585
- function Sc(t, e, r) {
7588
+ function Cc(t, e, r) {
7586
7589
  var n, s;
7587
- let a = Fe({ event_id: bc().replaceAll("-", ""), platform: "javascript", sdk: { name: "@hcaptcha/sentry", version: gc }, environment: e, release: r, timestamp: Date.now() / 1e3 }, t.scope.toBody());
7590
+ let a = Fe({ event_id: xc().replaceAll("-", ""), platform: "javascript", sdk: { name: "@hcaptcha/sentry", version: vc }, environment: e, release: r, timestamp: Date.now() / 1e3 }, t.scope.toBody());
7588
7591
  if (t.type === "exception") {
7589
7592
  a.message = (s = (n = t.error) == null ? void 0 : n.message) != null ? s : "Unknown error", a.fingerprint = [a.message];
7590
7593
  let i = [], o = t.error;
7591
- for (let c = 0; c < 5 && o && (i.push(wc(o)), !(!o.cause || !(o.cause instanceof Error))); c++) o = o.cause;
7594
+ for (let c = 0; c < 5 && o && (i.push(kc(o)), !(!o.cause || !(o.cause instanceof Error))); c++) o = o.cause;
7592
7595
  a.exception = { values: i.reverse() };
7593
7596
  }
7594
7597
  return t.type === "message" && (a.message = t.message, a.level = t.level), a;
7595
7598
  }
7596
- function Cc(t) {
7599
+ function Ec(t) {
7597
7600
  if (t instanceof Error) return t;
7598
7601
  if (typeof t == "string") return new Error(t);
7599
7602
  if (typeof t == "object" && t !== null && !Array.isArray(t)) {
7600
- let r = t, { message: n } = r, s = ac(r, ["message"]), a = new Error(typeof n == "string" ? n : fs);
7603
+ let r = t, { message: n } = r, s = ic(r, ["message"]), a = new Error(typeof n == "string" ? n : fs);
7601
7604
  return Object.assign(a, s);
7602
7605
  }
7603
7606
  let e = new Error(fs);
7604
7607
  return Object.assign(e, { cause: t });
7605
7608
  }
7606
- function Ec(t, e, r) {
7609
+ function Rc(t, e, r) {
7607
7610
  return At(this, null, function* () {
7608
7611
  var n, s;
7609
7612
  try {
@@ -7613,7 +7616,7 @@ function Ec(t, e, r) {
7613
7616
  let c = new AbortController();
7614
7617
  a = c.signal, setTimeout(() => c.abort(), r);
7615
7618
  }
7616
- let i = yield fetch(t, ra(Fe({}, e), { signal: a })), o = yield i.text();
7619
+ let i = yield fetch(t, na(Fe({}, e), { signal: a })), o = yield i.text();
7617
7620
  return { status: i.status, body: o };
7618
7621
  }
7619
7622
  return yield new Promise((a, i) => {
@@ -7639,7 +7642,7 @@ var je, Xr = (je = class {
7639
7642
  constructor(t) {
7640
7643
  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", []);
7641
7644
  var e, r, n, s, a;
7642
- this.environment = t.environment, this.release = t.release, this.sampleRate = (e = t.sampleRate) != null ? e : 1, this.debug = (r = t.debug) != null ? r : !1, this._scope = (n = t.scope) != null ? n : new fc(), this.apiURL = kc(t.dsn), this.dsn = t.dsn, this.shouldBuffer = (s = t.buffer) != null ? s : !1, this.bufferlimit = (a = t.bufferLimit) != null ? a : 20;
7645
+ this.environment = t.environment, this.release = t.release, this.sampleRate = (e = t.sampleRate) != null ? e : 1, this.debug = (r = t.debug) != null ? r : !1, this._scope = (n = t.scope) != null ? n : new hc(), this.apiURL = Sc(t.dsn), this.dsn = t.dsn, this.shouldBuffer = (s = t.buffer) != null ? s : !1, this.bufferlimit = (a = t.bufferLimit) != null ? a : 20;
7643
7646
  }
7644
7647
  static init(t) {
7645
7648
  je._instance || (je._instance = new je(t));
@@ -7665,7 +7668,7 @@ var je, Xr = (je = class {
7665
7668
  je.instance.withScope(t);
7666
7669
  }
7667
7670
  captureException(t, e) {
7668
- this.captureEvent({ type: "exception", level: "error", error: Cc(t), scope: e ?? this._scope });
7671
+ this.captureEvent({ type: "exception", level: "error", error: Ec(t), scope: e ?? this._scope });
7669
7672
  }
7670
7673
  static captureException(t, e) {
7671
7674
  je.instance.captureException(t, e);
@@ -7690,9 +7693,9 @@ var je, Xr = (je = class {
7690
7693
  return At(this, null, function* () {
7691
7694
  try {
7692
7695
  this.log("Sending sentry event", t);
7693
- let r = Sc(t, this.environment, this.release), n = { event_id: r.event_id, dsn: this.dsn }, s = { type: "event" }, a = JSON.stringify(n) + `
7696
+ let r = Cc(t, this.environment, this.release), n = { event_id: r.event_id, dsn: this.dsn }, s = { type: "event" }, a = JSON.stringify(n) + `
7694
7697
  ` + JSON.stringify(s) + `
7695
- ` + JSON.stringify(r), i = yield Ec(this.apiURL, { method: "POST", headers: { "Content-Type": "application/x-sentry-envelope" }, body: a }, e);
7698
+ ` + JSON.stringify(r), i = yield Rc(this.apiURL, { method: "POST", headers: { "Content-Type": "application/x-sentry-envelope" }, body: a }, e);
7696
7699
  this.log("Sentry response", i.status), i.status !== 200 && (console.log(i.body), console.error("Failed to send event to Sentry", i));
7697
7700
  } catch (r) {
7698
7701
  console.error("Failed to send event", r);
@@ -7716,12 +7719,12 @@ var je, Xr = (je = class {
7716
7719
  static reset() {
7717
7720
  je._instance = void 0;
7718
7721
  }
7719
- }, Oe(je, "_instance"), je), Rc = "https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6", Oc = "2.3.0", Nc = "production";
7720
- function Ac(t = !0) {
7722
+ }, Oe(je, "_instance"), je), Oc = "https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6", Nc = "2.3.0", Ac = "production";
7723
+ function Tc(t = !0) {
7721
7724
  if (!t) return hs();
7722
- Xr.init({ dsn: Rc, release: Oc, environment: Nc });
7725
+ Xr.init({ dsn: Oc, release: Nc, environment: Ac });
7723
7726
  let e = Xr.scope;
7724
- return cc(e), hs(e);
7727
+ return lc(e), hs(e);
7725
7728
  }
7726
7729
  function hs(t = null) {
7727
7730
  return { addBreadcrumb: (e) => {
@@ -7732,11 +7735,11 @@ function hs(t = null) {
7732
7735
  t && Xr.captureException(e, t);
7733
7736
  } };
7734
7737
  }
7735
- function Tc({ 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) {
7736
- let l = sa(t), f = na(l);
7738
+ function Pc({ 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) {
7739
+ let l = aa(t), f = sa(l);
7737
7740
  return new Promise((d, p) => {
7738
7741
  let m = f.document.createElement("script");
7739
- m.id = ic, o ? m.src = `${o}?onload=${tr}` : i ? m.src = `${s}/1/secure-api.js?onload=${tr}` : m.src = `${s}/1/api.js?onload=${tr}`, m.crossOrigin = n, m.async = r;
7742
+ m.id = oc, o ? m.src = `${o}?onload=${tr}` : i ? m.src = `${s}/1/secure-api.js?onload=${tr}` : m.src = `${s}/1/api.js?onload=${tr}`, m.crossOrigin = n, m.async = r;
7740
7743
  let b = (v, S) => {
7741
7744
  try {
7742
7745
  !i && a && l.removeChild(m), S(v);
@@ -7750,18 +7753,18 @@ function Tc({ scriptLocation: t, query: e, loadAsync: r = !0, crossOrigin: n = "
7750
7753
  });
7751
7754
  }
7752
7755
  var Xt = [];
7753
- function Pc(t = { cleanup: !1 }, e) {
7756
+ function Ic(t = { cleanup: !1 }, e) {
7754
7757
  try {
7755
7758
  e.addBreadcrumb({ category: ct, message: "hCaptcha loader params", data: t });
7756
- let r = sa(t.scriptLocation), n = na(r), s = Xt.find(({ scope: i }) => i === n.window);
7759
+ let r = aa(t.scriptLocation), n = sa(r), s = Xt.find(({ scope: i }) => i === n.window);
7757
7760
  if (s) return e.addBreadcrumb({ category: ct, message: "hCaptcha already loaded" }), s.promise;
7758
7761
  let a = new Promise((i, o) => At(this, null, function* () {
7759
7762
  try {
7760
7763
  n.window[tr] = () => {
7761
7764
  e.addBreadcrumb({ category: ct, message: "hCaptcha script called onload function" }), i(n.window.hcaptcha);
7762
7765
  };
7763
- let c = oc({ custom: t.custom, render: t.render, sentry: t.sentry, assethost: t.assethost, imghost: t.imghost, reportapi: t.reportapi, endpoint: t.endpoint, host: t.host, recaptchacompat: t.recaptchacompat, hl: t.hl, uj: t.uj });
7764
- yield Tc(Fe({ query: c }, t), (l) => {
7766
+ let c = cc({ custom: t.custom, render: t.render, sentry: t.sentry, assethost: t.assethost, imghost: t.imghost, reportapi: t.reportapi, endpoint: t.endpoint, host: t.host, recaptchacompat: t.recaptchacompat, hl: t.hl, uj: t.uj });
7767
+ yield Pc(Fe({ query: c }, t), (l) => {
7765
7768
  e.captureRequest({ url: l, method: "GET" });
7766
7769
  }), e.addBreadcrumb({ category: ct, message: "hCaptcha loaded", data: s });
7767
7770
  } catch {
@@ -7775,21 +7778,21 @@ function Pc(t = { cleanup: !1 }, e) {
7775
7778
  return e.captureException(r), Promise.reject(new Error(ds));
7776
7779
  }
7777
7780
  }
7778
- function ia(t, e, r = 0) {
7781
+ function oa(t, e, r = 0) {
7779
7782
  return At(this, null, function* () {
7780
7783
  var n, s;
7781
7784
  let a = (n = t.maxRetries) != null ? n : 2, i = (s = t.retryDelay) != null ? s : 1e3, o = r < a ? "Retry loading hCaptcha Api" : "Exceeded maximum retries";
7782
7785
  try {
7783
- return yield Pc(t, e);
7786
+ return yield Ic(t, e);
7784
7787
  } catch (c) {
7785
- return e.addBreadcrumb({ category: ct, message: o }), r >= a ? (e.captureException(c), Promise.reject(c)) : (e.addBreadcrumb({ category: ct, message: `Waiting ${i}ms before retry attempt ${r + 1}` }), yield uc(i), r += 1, ia(t, e, r));
7788
+ return e.addBreadcrumb({ category: ct, message: o }), r >= a ? (e.captureException(c), Promise.reject(c)) : (e.addBreadcrumb({ category: ct, message: `Waiting ${i}ms before retry attempt ${r + 1}` }), yield dc(i), r += 1, oa(t, e, r));
7786
7789
  }
7787
7790
  });
7788
7791
  }
7789
- function Ic() {
7792
+ function Lc() {
7790
7793
  return At(this, arguments, function* (t = {}) {
7791
- let e = Ac(t.sentry);
7792
- return yield ia(t, e);
7794
+ let e = Tc(t.sentry);
7795
+ return yield oa(t, e);
7793
7796
  });
7794
7797
  }
7795
7798
  function ps(t) {
@@ -7802,8 +7805,8 @@ function ps(t) {
7802
7805
  function ms(t) {
7803
7806
  return t || document.head;
7804
7807
  }
7805
- var Lc = /* @__PURE__ */ (function(t) {
7806
- tc(e, t);
7808
+ var jc = /* @__PURE__ */ (function(t) {
7809
+ rc(e, t);
7807
7810
  function e(n) {
7808
7811
  var s;
7809
7812
  return s = t.call(this, n) || this, s._hcaptcha = void 0, s.renderCaptcha = s.renderCaptcha.bind(ze(s)), s.resetCaptcha = s.resetCaptcha.bind(ze(s)), s.removeCaptcha = s.removeCaptcha.bind(ze(s)), s.isReady = s.isReady.bind(ze(s)), s._onReady = null, s.loadCaptcha = s.loadCaptcha.bind(ze(s)), s.handleOnLoad = s.handleOnLoad.bind(ze(s)), s.handleSubmit = s.handleSubmit.bind(ze(s)), s.handleExpire = s.handleExpire.bind(ze(s)), s.handleError = s.handleError.bind(ze(s)), s.handleOpen = s.handleOpen.bind(ze(s)), s.handleClose = s.handleClose.bind(ze(s)), s.handleChallengeExpired = s.handleChallengeExpired.bind(ze(s)), s.ref = /* @__PURE__ */ w.createRef(), s.apiScriptRequested = !1, s.sentryHub = null, s.captchaId = "", s._pendingExecute = null, s.state = {
@@ -7859,7 +7862,7 @@ var Lc = /* @__PURE__ */ (function(t) {
7859
7862
  cleanup: L,
7860
7863
  uj: x !== void 0 ? x : !1
7861
7864
  };
7862
- Ic(B).then(this.handleOnLoad, this.handleError).catch(this.handleError), this.apiScriptRequested = !0;
7865
+ Lc(B).then(this.handleOnLoad, this.handleError).catch(this.handleError), this.apiScriptRequested = !0;
7863
7866
  }
7864
7867
  }, r.renderCaptcha = function(s) {
7865
7868
  var a = this, i = this.props.onReady, o = this.state.isApiReady, c = this.captchaId;
@@ -7994,13 +7997,13 @@ var Lc = /* @__PURE__ */ (function(t) {
7994
7997
  const Zt = mr(
7995
7998
  ({ config: t, onVerify: e, onExpire: r }, n) => {
7996
7999
  const s = ut(null), a = ut(null);
7997
- return Wa(n, () => ({
8000
+ return qa(n, () => ({
7998
8001
  reset() {
7999
8002
  var i, o;
8000
8003
  (i = s.current) == null || i.reset(), (o = a.current) == null || o.resetCaptcha();
8001
8004
  }
8002
8005
  })), !t.enabled || !t.siteKey ? null : t.provider === "hcaptcha" ? /* @__PURE__ */ h(
8003
- Lc,
8006
+ jc,
8004
8007
  {
8005
8008
  ref: a,
8006
8009
  sitekey: t.siteKey,
@@ -8008,7 +8011,7 @@ const Zt = mr(
8008
8011
  onExpire: r
8009
8012
  }
8010
8013
  ) : t.version !== "v3" ? /* @__PURE__ */ h(
8011
- ec,
8014
+ tc,
8012
8015
  {
8013
8016
  ref: s,
8014
8017
  sitekey: t.siteKey,
@@ -8043,19 +8046,19 @@ function dn(...t) {
8043
8046
  function fn(...t) {
8044
8047
  return w.useCallback(dn(...t), t);
8045
8048
  }
8046
- var jc = Symbol.for("react.lazy"), pr = w[" use ".trim().toString()];
8047
- function Mc(t) {
8049
+ var Mc = Symbol.for("react.lazy"), pr = w[" use ".trim().toString()];
8050
+ function Vc(t) {
8048
8051
  return typeof t == "object" && t !== null && "then" in t;
8049
8052
  }
8050
- function oa(t) {
8051
- return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === jc && "_payload" in t && Mc(t._payload);
8053
+ function ca(t) {
8054
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Mc && "_payload" in t && Vc(t._payload);
8052
8055
  }
8053
8056
  // @__NO_SIDE_EFFECTS__
8054
- function ca(t) {
8055
- const e = /* @__PURE__ */ $c(t), r = w.forwardRef((n, s) => {
8057
+ function la(t) {
8058
+ const e = /* @__PURE__ */ Fc(t), r = w.forwardRef((n, s) => {
8056
8059
  let { children: a, ...i } = n;
8057
- oa(a) && typeof pr == "function" && (a = pr(a._payload));
8058
- const o = w.Children.toArray(a), c = o.find(Dc);
8060
+ ca(a) && typeof pr == "function" && (a = pr(a._payload));
8061
+ const o = w.Children.toArray(a), c = o.find(Uc);
8059
8062
  if (c) {
8060
8063
  const l = c.props.children, f = o.map((d) => d === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : d);
8061
8064
  return /* @__PURE__ */ h(e, { ...i, ref: s, children: w.isValidElement(l) ? w.cloneElement(l, void 0, f) : null });
@@ -8064,24 +8067,24 @@ function ca(t) {
8064
8067
  });
8065
8068
  return r.displayName = `${t}.Slot`, r;
8066
8069
  }
8067
- var Vc = /* @__PURE__ */ ca("Slot");
8070
+ var $c = /* @__PURE__ */ la("Slot");
8068
8071
  // @__NO_SIDE_EFFECTS__
8069
- function $c(t) {
8072
+ function Fc(t) {
8070
8073
  const e = w.forwardRef((r, n) => {
8071
8074
  let { children: s, ...a } = r;
8072
- if (oa(s) && typeof pr == "function" && (s = pr(s._payload)), w.isValidElement(s)) {
8073
- const i = zc(s), o = Uc(a, s.props);
8075
+ if (ca(s) && typeof pr == "function" && (s = pr(s._payload)), w.isValidElement(s)) {
8076
+ const i = Zc(s), o = zc(a, s.props);
8074
8077
  return s.type !== w.Fragment && (o.ref = n ? dn(n, i) : i), w.cloneElement(s, o);
8075
8078
  }
8076
8079
  return w.Children.count(s) > 1 ? w.Children.only(null) : null;
8077
8080
  });
8078
8081
  return e.displayName = `${t}.SlotClone`, e;
8079
8082
  }
8080
- var Fc = Symbol("radix.slottable");
8081
- function Dc(t) {
8082
- return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Fc;
8083
+ var Dc = Symbol("radix.slottable");
8084
+ function Uc(t) {
8085
+ return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Dc;
8083
8086
  }
8084
- function Uc(t, e) {
8087
+ function zc(t, e) {
8085
8088
  const r = { ...e };
8086
8089
  for (const n in e) {
8087
8090
  const s = t[n], a = e[n];
@@ -8092,12 +8095,12 @@ function Uc(t, e) {
8092
8095
  }
8093
8096
  return { ...t, ...r };
8094
8097
  }
8095
- function zc(t) {
8098
+ function Zc(t) {
8096
8099
  var n, s;
8097
8100
  let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
8098
8101
  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);
8099
8102
  }
8100
- const gs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, vs = qs, la = (t, e) => (r) => {
8103
+ const gs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, vs = Gs, ua = (t, e) => (r) => {
8101
8104
  var n;
8102
8105
  if ((e == null ? void 0 : e.variants) == null) return vs(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
8103
8106
  const { variants: s, defaultVariants: a } = e, i = Object.keys(s).map((l) => {
@@ -8126,7 +8129,7 @@ const gs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, vs = qs, l
8126
8129
  ] : l;
8127
8130
  }, []);
8128
8131
  return vs(t, i, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
8129
- }, Zc = la(
8132
+ }, Bc = ua(
8130
8133
  "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",
8131
8134
  {
8132
8135
  variants: {
@@ -8152,9 +8155,9 @@ const gs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, vs = qs, l
8152
8155
  }
8153
8156
  ), mt = w.forwardRef(
8154
8157
  ({ className: t, variant: e, size: r, asChild: n = !1, ...s }, a) => /* @__PURE__ */ h(
8155
- n ? Vc : "button",
8158
+ n ? $c : "button",
8156
8159
  {
8157
- className: me(Zc({ variant: e, size: r, className: t })),
8160
+ className: me(Bc({ variant: e, size: r, className: t })),
8158
8161
  ref: a,
8159
8162
  ...s
8160
8163
  }
@@ -8176,7 +8179,7 @@ const He = w.forwardRef(
8176
8179
  )
8177
8180
  );
8178
8181
  He.displayName = "Input";
8179
- var Bc = [
8182
+ var Wc = [
8180
8183
  "a",
8181
8184
  "button",
8182
8185
  "div",
@@ -8194,13 +8197,13 @@ var Bc = [
8194
8197
  "span",
8195
8198
  "svg",
8196
8199
  "ul"
8197
- ], qt = Bc.reduce((t, e) => {
8198
- const r = /* @__PURE__ */ ca(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8200
+ ], qt = Wc.reduce((t, e) => {
8201
+ const r = /* @__PURE__ */ la(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8199
8202
  const { asChild: i, ...o } = s, c = i ? r : e;
8200
8203
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
8201
8204
  });
8202
8205
  return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
8203
- }, {}), Wc = "Label", ua = w.forwardRef((t, e) => /* @__PURE__ */ h(
8206
+ }, {}), qc = "Label", da = w.forwardRef((t, e) => /* @__PURE__ */ h(
8204
8207
  qt.label,
8205
8208
  {
8206
8209
  ...t,
@@ -8211,19 +8214,19 @@ var Bc = [
8211
8214
  }
8212
8215
  }
8213
8216
  ));
8214
- ua.displayName = Wc;
8215
- var da = ua;
8216
- const qc = la(
8217
+ da.displayName = qc;
8218
+ var fa = da;
8219
+ const Gc = ua(
8217
8220
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8218
8221
  ), Ze = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8219
- da,
8222
+ fa,
8220
8223
  {
8221
8224
  ref: r,
8222
- className: me(qc(), t),
8225
+ className: me(Gc(), t),
8223
8226
  ...e
8224
8227
  }
8225
8228
  ));
8226
- Ze.displayName = da.displayName;
8229
+ Ze.displayName = fa.displayName;
8227
8230
  const Be = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8228
8231
  "div",
8229
8232
  {
@@ -8236,7 +8239,7 @@ const Be = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8236
8239
  }
8237
8240
  ));
8238
8241
  Be.displayName = "Card";
8239
- const fa = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8242
+ const ha = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8240
8243
  "div",
8241
8244
  {
8242
8245
  ref: r,
@@ -8244,8 +8247,8 @@ const fa = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8244
8247
  ...e
8245
8248
  }
8246
8249
  ));
8247
- fa.displayName = "CardHeader";
8248
- const ha = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8250
+ ha.displayName = "CardHeader";
8251
+ const pa = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8249
8252
  "h3",
8250
8253
  {
8251
8254
  ref: r,
@@ -8256,8 +8259,8 @@ const ha = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8256
8259
  ...e
8257
8260
  }
8258
8261
  ));
8259
- ha.displayName = "CardTitle";
8260
- const pa = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8262
+ pa.displayName = "CardTitle";
8263
+ const ma = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8261
8264
  "p",
8262
8265
  {
8263
8266
  ref: r,
@@ -8265,10 +8268,10 @@ const pa = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8265
8268
  ...e
8266
8269
  }
8267
8270
  ));
8268
- pa.displayName = "CardDescription";
8271
+ ma.displayName = "CardDescription";
8269
8272
  const rr = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: me("p-6 pt-0", t), ...e }));
8270
8273
  rr.displayName = "CardContent";
8271
- const Gc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8274
+ const Hc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8272
8275
  "div",
8273
8276
  {
8274
8277
  ref: r,
@@ -8276,8 +8279,8 @@ const Gc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8276
8279
  ...e
8277
8280
  }
8278
8281
  ));
8279
- Gc.displayName = "CardFooter";
8280
- function Hc(t, e = []) {
8282
+ Hc.displayName = "CardFooter";
8283
+ function Yc(t, e = []) {
8281
8284
  let r = [];
8282
8285
  function n(a, i) {
8283
8286
  const o = w.createContext(i), c = r.length;
@@ -8307,9 +8310,9 @@ function Hc(t, e = []) {
8307
8310
  );
8308
8311
  };
8309
8312
  };
8310
- return s.scopeName = t, [n, Yc(s, ...e)];
8313
+ return s.scopeName = t, [n, Kc(s, ...e)];
8311
8314
  }
8312
- function Yc(...t) {
8315
+ function Kc(...t) {
8313
8316
  const e = t[0];
8314
8317
  if (t.length === 1) return e;
8315
8318
  const r = () => {
@@ -8334,15 +8337,15 @@ function bs(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
8334
8337
  };
8335
8338
  }
8336
8339
  var xt = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
8337
- }, Kc = w[" useInsertionEffect ".trim().toString()] || xt;
8338
- function Jc({
8340
+ }, Jc = w[" useInsertionEffect ".trim().toString()] || xt;
8341
+ function Xc({
8339
8342
  prop: t,
8340
8343
  defaultProp: e,
8341
8344
  onChange: r = () => {
8342
8345
  },
8343
8346
  caller: n
8344
8347
  }) {
8345
- const [s, a, i] = Xc({
8348
+ const [s, a, i] = Qc({
8346
8349
  defaultProp: e,
8347
8350
  onChange: r
8348
8351
  }), o = t !== void 0, c = o ? t : s;
@@ -8359,7 +8362,7 @@ function Jc({
8359
8362
  (f) => {
8360
8363
  var d;
8361
8364
  if (o) {
8362
- const p = Qc(f) ? f(t) : f;
8365
+ const p = el(f) ? f(t) : f;
8363
8366
  p !== t && ((d = i.current) == null || d.call(i, p));
8364
8367
  } else
8365
8368
  a(f);
@@ -8368,26 +8371,26 @@ function Jc({
8368
8371
  );
8369
8372
  return [c, l];
8370
8373
  }
8371
- function Xc({
8374
+ function Qc({
8372
8375
  defaultProp: t,
8373
8376
  onChange: e
8374
8377
  }) {
8375
8378
  const [r, n] = w.useState(t), s = w.useRef(r), a = w.useRef(e);
8376
- return Kc(() => {
8379
+ return Jc(() => {
8377
8380
  a.current = e;
8378
8381
  }, [e]), w.useEffect(() => {
8379
8382
  var i;
8380
8383
  s.current !== r && ((i = a.current) == null || i.call(a, r), s.current = r);
8381
8384
  }, [r, s]), [r, n, a];
8382
8385
  }
8383
- function Qc(t) {
8386
+ function el(t) {
8384
8387
  return typeof t == "function";
8385
8388
  }
8386
- function el(t) {
8389
+ function tl(t) {
8387
8390
  const e = w.useRef({ value: t, previous: t });
8388
8391
  return w.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
8389
8392
  }
8390
- function tl(t) {
8393
+ function rl(t) {
8391
8394
  const [e, r] = w.useState(void 0);
8392
8395
  return xt(() => {
8393
8396
  if (t) {
@@ -8409,16 +8412,16 @@ function tl(t) {
8409
8412
  r(void 0);
8410
8413
  }, [t]), e;
8411
8414
  }
8412
- function rl(t, e) {
8415
+ function nl(t, e) {
8413
8416
  return w.useReducer((r, n) => e[r][n] ?? r, t);
8414
8417
  }
8415
- var ma = (t) => {
8416
- const { present: e, children: r } = t, n = nl(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a = fn(n.ref, sl(s));
8418
+ var ya = (t) => {
8419
+ const { present: e, children: r } = t, n = sl(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a = fn(n.ref, al(s));
8417
8420
  return typeof r == "function" || n.isPresent ? w.cloneElement(s, { ref: a }) : null;
8418
8421
  };
8419
- ma.displayName = "Presence";
8420
- function nl(t) {
8421
- const [e, r] = w.useState(), n = w.useRef(null), s = w.useRef(t), a = w.useRef("none"), i = t ? "mounted" : "unmounted", [o, c] = rl(i, {
8422
+ ya.displayName = "Presence";
8423
+ function sl(t) {
8424
+ const [e, r] = w.useState(), n = w.useRef(null), s = w.useRef(t), a = w.useRef("none"), i = t ? "mounted" : "unmounted", [o, c] = nl(i, {
8422
8425
  mounted: {
8423
8426
  UNMOUNT: "unmounted",
8424
8427
  ANIMATION_OUT: "unmountSuspended"
@@ -8469,15 +8472,15 @@ function nl(t) {
8469
8472
  function Qt(t) {
8470
8473
  return (t == null ? void 0 : t.animationName) || "none";
8471
8474
  }
8472
- function sl(t) {
8475
+ function al(t) {
8473
8476
  var n, s;
8474
8477
  let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
8475
8478
  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);
8476
8479
  }
8477
8480
  // @__NO_SIDE_EFFECTS__
8478
- function al(t) {
8479
- const e = /* @__PURE__ */ il(t), r = w.forwardRef((n, s) => {
8480
- const { children: a, ...i } = n, o = w.Children.toArray(a), c = o.find(cl);
8481
+ function il(t) {
8482
+ const e = /* @__PURE__ */ ol(t), r = w.forwardRef((n, s) => {
8483
+ const { children: a, ...i } = n, o = w.Children.toArray(a), c = o.find(ll);
8481
8484
  if (c) {
8482
8485
  const l = c.props.children, f = o.map((d) => d === c ? w.Children.count(l) > 1 ? w.Children.only(null) : w.isValidElement(l) ? l.props.children : null : d);
8483
8486
  return /* @__PURE__ */ h(e, { ...i, ref: s, children: w.isValidElement(l) ? w.cloneElement(l, void 0, f) : null });
@@ -8487,22 +8490,22 @@ function al(t) {
8487
8490
  return r.displayName = `${t}.Slot`, r;
8488
8491
  }
8489
8492
  // @__NO_SIDE_EFFECTS__
8490
- function il(t) {
8493
+ function ol(t) {
8491
8494
  const e = w.forwardRef((r, n) => {
8492
8495
  const { children: s, ...a } = r;
8493
8496
  if (w.isValidElement(s)) {
8494
- const i = ul(s), o = ll(a, s.props);
8497
+ const i = dl(s), o = ul(a, s.props);
8495
8498
  return s.type !== w.Fragment && (o.ref = n ? dn(n, i) : i), w.cloneElement(s, o);
8496
8499
  }
8497
8500
  return w.Children.count(s) > 1 ? w.Children.only(null) : null;
8498
8501
  });
8499
8502
  return e.displayName = `${t}.SlotClone`, e;
8500
8503
  }
8501
- var ol = Symbol("radix.slottable");
8502
- function cl(t) {
8503
- return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === ol;
8504
+ var cl = Symbol("radix.slottable");
8505
+ function ll(t) {
8506
+ return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === cl;
8504
8507
  }
8505
- function ll(t, e) {
8508
+ function ul(t, e) {
8506
8509
  const r = { ...e };
8507
8510
  for (const n in e) {
8508
8511
  const s = t[n], a = e[n];
@@ -8513,12 +8516,12 @@ function ll(t, e) {
8513
8516
  }
8514
8517
  return { ...t, ...r };
8515
8518
  }
8516
- function ul(t) {
8519
+ function dl(t) {
8517
8520
  var n, s;
8518
8521
  let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
8519
8522
  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);
8520
8523
  }
8521
- var dl = [
8524
+ var fl = [
8522
8525
  "a",
8523
8526
  "button",
8524
8527
  "div",
@@ -8536,14 +8539,14 @@ var dl = [
8536
8539
  "span",
8537
8540
  "svg",
8538
8541
  "ul"
8539
- ], hn = dl.reduce((t, e) => {
8540
- const r = /* @__PURE__ */ al(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8542
+ ], hn = fl.reduce((t, e) => {
8543
+ const r = /* @__PURE__ */ il(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8541
8544
  const { asChild: i, ...o } = s, c = i ? r : e;
8542
8545
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
8543
8546
  });
8544
8547
  return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
8545
- }, {}), br = "Checkbox", [fl] = Hc(br), [hl, pn] = fl(br);
8546
- function pl(t) {
8548
+ }, {}), br = "Checkbox", [hl] = Yc(br), [pl, pn] = hl(br);
8549
+ function ml(t) {
8547
8550
  const {
8548
8551
  __scopeCheckbox: e,
8549
8552
  checked: r,
@@ -8557,7 +8560,7 @@ function pl(t) {
8557
8560
  value: f = "on",
8558
8561
  // @ts-expect-error
8559
8562
  internal_do_not_use_render: d
8560
- } = t, [p, m] = Jc({
8563
+ } = t, [p, m] = Xc({
8561
8564
  prop: r,
8562
8565
  defaultProp: s ?? !1,
8563
8566
  onChange: c,
@@ -8582,15 +8585,15 @@ function pl(t) {
8582
8585
  setBubbleInput: k
8583
8586
  };
8584
8587
  return /* @__PURE__ */ h(
8585
- hl,
8588
+ pl,
8586
8589
  {
8587
8590
  scope: e,
8588
8591
  ...L,
8589
- children: ml(d) ? d(L) : n
8592
+ children: yl(d) ? d(L) : n
8590
8593
  }
8591
8594
  );
8592
8595
  }
8593
- var ya = "CheckboxTrigger", ga = w.forwardRef(
8596
+ var ga = "CheckboxTrigger", va = w.forwardRef(
8594
8597
  ({ __scopeCheckbox: t, onKeyDown: e, onClick: r, ...n }, s) => {
8595
8598
  const {
8596
8599
  control: a,
@@ -8603,7 +8606,7 @@ var ya = "CheckboxTrigger", ga = w.forwardRef(
8603
8606
  hasConsumerStoppedPropagationRef: p,
8604
8607
  isFormControl: m,
8605
8608
  bubbleInput: b
8606
- } = pn(ya, t), v = fn(s, f), S = w.useRef(c);
8609
+ } = pn(ga, t), v = fn(s, f), S = w.useRef(c);
8607
8610
  return w.useEffect(() => {
8608
8611
  const k = a == null ? void 0 : a.form;
8609
8612
  if (k) {
@@ -8617,7 +8620,7 @@ var ya = "CheckboxTrigger", ga = w.forwardRef(
8617
8620
  role: "checkbox",
8618
8621
  "aria-checked": ft(c) ? "mixed" : c,
8619
8622
  "aria-required": l,
8620
- "data-state": wa(c),
8623
+ "data-state": ka(c),
8621
8624
  "data-disabled": o ? "" : void 0,
8622
8625
  disabled: o,
8623
8626
  value: i,
@@ -8633,7 +8636,7 @@ var ya = "CheckboxTrigger", ga = w.forwardRef(
8633
8636
  );
8634
8637
  }
8635
8638
  );
8636
- ga.displayName = ya;
8639
+ va.displayName = ga;
8637
8640
  var mn = w.forwardRef(
8638
8641
  (t, e) => {
8639
8642
  const {
@@ -8649,7 +8652,7 @@ var mn = w.forwardRef(
8649
8652
  ...d
8650
8653
  } = t;
8651
8654
  return /* @__PURE__ */ h(
8652
- pl,
8655
+ ml,
8653
8656
  {
8654
8657
  __scopeCheckbox: r,
8655
8658
  checked: s,
@@ -8662,7 +8665,7 @@ var mn = w.forwardRef(
8662
8665
  value: c,
8663
8666
  internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ U(Cs, { children: [
8664
8667
  /* @__PURE__ */ h(
8665
- ga,
8668
+ va,
8666
8669
  {
8667
8670
  ...d,
8668
8671
  ref: e,
@@ -8670,7 +8673,7 @@ var mn = w.forwardRef(
8670
8673
  }
8671
8674
  ),
8672
8675
  p && /* @__PURE__ */ h(
8673
- _a,
8676
+ wa,
8674
8677
  {
8675
8678
  __scopeCheckbox: r
8676
8679
  }
@@ -8681,17 +8684,17 @@ var mn = w.forwardRef(
8681
8684
  }
8682
8685
  );
8683
8686
  mn.displayName = br;
8684
- var va = "CheckboxIndicator", ba = w.forwardRef(
8687
+ var ba = "CheckboxIndicator", xa = w.forwardRef(
8685
8688
  (t, e) => {
8686
- const { __scopeCheckbox: r, forceMount: n, ...s } = t, a = pn(va, r);
8689
+ const { __scopeCheckbox: r, forceMount: n, ...s } = t, a = pn(ba, r);
8687
8690
  return /* @__PURE__ */ h(
8688
- ma,
8691
+ ya,
8689
8692
  {
8690
8693
  present: n || ft(a.checked) || a.checked === !0,
8691
8694
  children: /* @__PURE__ */ h(
8692
8695
  hn.span,
8693
8696
  {
8694
- "data-state": wa(a.checked),
8697
+ "data-state": ka(a.checked),
8695
8698
  "data-disabled": a.disabled ? "" : void 0,
8696
8699
  ...s,
8697
8700
  ref: e,
@@ -8702,8 +8705,8 @@ var va = "CheckboxIndicator", ba = w.forwardRef(
8702
8705
  );
8703
8706
  }
8704
8707
  );
8705
- ba.displayName = va;
8706
- var xa = "CheckboxBubbleInput", _a = w.forwardRef(
8708
+ xa.displayName = ba;
8709
+ var _a = "CheckboxBubbleInput", wa = w.forwardRef(
8707
8710
  ({ __scopeCheckbox: t, ...e }, r) => {
8708
8711
  const {
8709
8712
  control: n,
@@ -8717,7 +8720,7 @@ var xa = "CheckboxBubbleInput", _a = w.forwardRef(
8717
8720
  form: d,
8718
8721
  bubbleInput: p,
8719
8722
  setBubbleInput: m
8720
- } = pn(xa, t), b = fn(r, m), v = el(a), S = tl(n);
8723
+ } = pn(_a, t), b = fn(r, m), v = tl(a), S = rl(n);
8721
8724
  w.useEffect(() => {
8722
8725
  const C = p;
8723
8726
  if (!C) return;
@@ -8761,17 +8764,17 @@ var xa = "CheckboxBubbleInput", _a = w.forwardRef(
8761
8764
  );
8762
8765
  }
8763
8766
  );
8764
- _a.displayName = xa;
8765
- function ml(t) {
8767
+ wa.displayName = _a;
8768
+ function yl(t) {
8766
8769
  return typeof t == "function";
8767
8770
  }
8768
8771
  function ft(t) {
8769
8772
  return t === "indeterminate";
8770
8773
  }
8771
- function wa(t) {
8774
+ function ka(t) {
8772
8775
  return ft(t) ? "indeterminate" : t ? "checked" : "unchecked";
8773
8776
  }
8774
- const ka = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8777
+ const Sa = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8775
8778
  mn,
8776
8779
  {
8777
8780
  ref: r,
@@ -8780,12 +8783,12 @@ const ka = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8780
8783
  t
8781
8784
  ),
8782
8785
  ...e,
8783
- children: /* @__PURE__ */ h(ba, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(Hi, { className: "h-3.5 w-3.5" }) })
8786
+ children: /* @__PURE__ */ h(xa, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(Yi, { className: "h-3.5 w-3.5" }) })
8784
8787
  }
8785
8788
  ));
8786
- ka.displayName = mn.displayName;
8787
- var yl = "Separator", xs = "horizontal", gl = ["horizontal", "vertical"], Sa = w.forwardRef((t, e) => {
8788
- const { decorative: r, orientation: n = xs, ...s } = t, a = vl(n) ? n : xs, o = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
8789
+ Sa.displayName = mn.displayName;
8790
+ var gl = "Separator", xs = "horizontal", vl = ["horizontal", "vertical"], Ca = w.forwardRef((t, e) => {
8791
+ const { decorative: r, orientation: n = xs, ...s } = t, a = bl(n) ? n : xs, o = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
8789
8792
  return /* @__PURE__ */ h(
8790
8793
  qt.div,
8791
8794
  {
@@ -8796,14 +8799,14 @@ var yl = "Separator", xs = "horizontal", gl = ["horizontal", "vertical"], Sa = w
8796
8799
  }
8797
8800
  );
8798
8801
  });
8799
- Sa.displayName = yl;
8800
- function vl(t) {
8801
- return gl.includes(t);
8802
+ Ca.displayName = gl;
8803
+ function bl(t) {
8804
+ return vl.includes(t);
8802
8805
  }
8803
- var Ca = Sa;
8806
+ var Ea = Ca;
8804
8807
  const Tt = w.forwardRef(
8805
8808
  ({ className: t, orientation: e = "horizontal", decorative: r = !0, ...n }, s) => /* @__PURE__ */ h(
8806
- Ca,
8809
+ Ea,
8807
8810
  {
8808
8811
  ref: s,
8809
8812
  decorative: r,
@@ -8817,14 +8820,14 @@ const Tt = w.forwardRef(
8817
8820
  }
8818
8821
  )
8819
8822
  );
8820
- Tt.displayName = Ca.displayName;
8821
- const bl = gr({
8823
+ Tt.displayName = Ea.displayName;
8824
+ const xl = gr({
8822
8825
  email: Qe().email("Enter a valid email address"),
8823
8826
  password: Qe().min(6, "Password must be at least 6 characters")
8824
- }), xl = gr({
8827
+ }), _l = gr({
8825
8828
  email: Qe().email("Enter a valid email address")
8826
8829
  });
8827
- function _l() {
8830
+ function wl() {
8828
8831
  return /* @__PURE__ */ U(
8829
8832
  "svg",
8830
8833
  {
@@ -8866,10 +8869,10 @@ function _l() {
8866
8869
  }
8867
8870
  );
8868
8871
  }
8869
- function wl({ provider: t }) {
8870
- return t === "google" ? /* @__PURE__ */ h(_l, {}) : t === "github" ? /* @__PURE__ */ h(Ki, { className: "h-4 w-4" }) : null;
8871
- }
8872
8872
  function kl({ provider: t }) {
8873
+ return t === "google" ? /* @__PURE__ */ h(wl, {}) : t === "github" ? /* @__PURE__ */ h(Ji, { className: "h-4 w-4" }) : null;
8874
+ }
8875
+ function Sl({ provider: t }) {
8873
8876
  const e = t.label ?? t.provider.charAt(0).toUpperCase() + t.provider.slice(1);
8874
8877
  return /* @__PURE__ */ h("a", { href: t.url, children: /* @__PURE__ */ U(
8875
8878
  mt,
@@ -8878,13 +8881,13 @@ function kl({ provider: t }) {
8878
8881
  variant: "outline",
8879
8882
  className: "w-full gap-2 rounded-full",
8880
8883
  children: [
8881
- /* @__PURE__ */ h(wl, { provider: t.provider }),
8884
+ /* @__PURE__ */ h(kl, { provider: t.provider }),
8882
8885
  e
8883
8886
  ]
8884
8887
  }
8885
8888
  ) });
8886
8889
  }
8887
- function Sl({
8890
+ function Cl({
8888
8891
  mode: t,
8889
8892
  onChange: e
8890
8893
  }) {
@@ -8902,7 +8905,7 @@ function Sl({
8902
8905
  r
8903
8906
  )) });
8904
8907
  }
8905
- function Cl() {
8908
+ function El() {
8906
8909
  return /* @__PURE__ */ U("div", { className: "space-y-4 p-6", children: [
8907
8910
  /* @__PURE__ */ h("div", { className: "h-6 w-3/4 animate-pulse rounded bg-muted mx-auto" }),
8908
8911
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
@@ -8911,7 +8914,7 @@ function Cl() {
8911
8914
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
8912
8915
  ] });
8913
8916
  }
8914
- function Yl({
8917
+ function Kl({
8915
8918
  className: t,
8916
8919
  onSuccess: e,
8917
8920
  onError: r,
@@ -8921,9 +8924,9 @@ function Yl({
8921
8924
  }) {
8922
8925
  var be, we, Ee;
8923
8926
  const { login: i, sendMagicLink: o } = Bt(), { config: c, configLoading: l } = en(), [f, d] = Ae("password"), [p, m] = Ae(""), [b, v] = Ae(null), [S, k] = Ae(null), [C, D] = Ae(!1), [L, x] = Ae(!1), B = ut(null), W = ar({
8924
- resolver: ir(bl)
8925
- }), se = ar({
8926
8927
  resolver: ir(xl)
8928
+ }), se = ar({
8929
+ resolver: ir(_l)
8927
8930
  });
8928
8931
  async function ue() {
8929
8932
  return c != null && c.captcha.enabled ? c.captcha.provider === "recaptcha" && c.captcha.version === "v3" && c.captcha.siteKey ? Qr(c.captcha.siteKey, "login") : p || (v("Please complete the captcha"), null) : "";
@@ -8980,7 +8983,7 @@ function Yl({
8980
8983
  )
8981
8984
  ] });
8982
8985
  if (l)
8983
- return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Cl, {}) });
8986
+ return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(El, {}) });
8984
8987
  const Z = W.formState.isSubmitting, Q = se.formState.isSubmitting, ye = Z || Q, de = (((be = c == null ? void 0 : c.oauthProviders) == null ? void 0 : be.length) ?? 0) > 0;
8985
8988
  return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ U("div", { className: "p-6 space-y-5", children: [
8986
8989
  (c == null ? void 0 : c.logoUrl) && /* @__PURE__ */ h(
@@ -8999,7 +9002,7 @@ function Yl({
8999
9002
  "grid gap-2",
9000
9003
  (((we = c == null ? void 0 : c.oauthProviders) == null ? void 0 : we.length) ?? 0) === 1 ? "grid-cols-1" : "grid-cols-2"
9001
9004
  ),
9002
- children: (Ee = c == null ? void 0 : c.oauthProviders) == null ? void 0 : Ee.map((_) => /* @__PURE__ */ h(kl, { provider: _ }, _.provider))
9005
+ children: (Ee = c == null ? void 0 : c.oauthProviders) == null ? void 0 : Ee.map((_) => /* @__PURE__ */ h(Sl, { provider: _ }, _.provider))
9003
9006
  }
9004
9007
  ),
9005
9008
  de && /* @__PURE__ */ U("div", { className: "flex items-center gap-3", children: [
@@ -9008,7 +9011,7 @@ function Yl({
9008
9011
  /* @__PURE__ */ h(Tt, { className: "flex-1" })
9009
9012
  ] }),
9010
9013
  (c == null ? void 0 : c.allowMagicLink) && /* @__PURE__ */ h(
9011
- Sl,
9014
+ Cl,
9012
9015
  {
9013
9016
  mode: f,
9014
9017
  onChange: (_) => {
@@ -9058,7 +9061,7 @@ function Yl({
9058
9061
  ] }),
9059
9062
  /* @__PURE__ */ U("div", { className: "flex items-center gap-2", children: [
9060
9063
  /* @__PURE__ */ h(
9061
- ka,
9064
+ Sa,
9062
9065
  {
9063
9066
  id: "remember-me",
9064
9067
  checked: L,
@@ -9172,21 +9175,21 @@ function Yl({
9172
9175
  ] })
9173
9176
  ] }) });
9174
9177
  }
9175
- const El = gr({
9178
+ const Rl = gr({
9176
9179
  firstName: Qe().min(1, "First name is required"),
9177
9180
  lastName: Qe().min(1, "Last name is required"),
9178
9181
  email: Qe().email("Enter a valid email address"),
9179
9182
  password: Qe().min(8, "Password must be at least 8 characters").regex(/[A-Z]/, "Must contain an uppercase letter").regex(/[0-9]/, "Must contain a number"),
9180
9183
  confirmPassword: Qe(),
9181
- whatsappNumber: Qe().regex(/^\+?[1-9]\d{6,14}$/, "Enter a valid WhatsApp number").optional().or(Bi(""))
9184
+ whatsappNumber: Qe().regex(/^\+?[1-9]\d{6,14}$/, "Enter a valid WhatsApp number").optional().or(Wi(""))
9182
9185
  }).refine((t) => t.password === t.confirmPassword, {
9183
9186
  message: "Passwords do not match",
9184
9187
  path: ["confirmPassword"]
9185
9188
  });
9186
- function Rl() {
9189
+ function Ol() {
9187
9190
  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)) });
9188
9191
  }
9189
- function Kl({
9192
+ function Jl({
9190
9193
  className: t,
9191
9194
  onSuccess: e,
9192
9195
  onError: r,
@@ -9197,7 +9200,7 @@ function Kl({
9197
9200
  register: v,
9198
9201
  handleSubmit: S,
9199
9202
  formState: { errors: k, isSubmitting: C }
9200
- } = ar({ resolver: ir(El) });
9203
+ } = ar({ resolver: ir(Rl) });
9201
9204
  async function D() {
9202
9205
  return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? Qr(i.captcha.siteKey, "signup") : c || (d("Please complete the captcha"), null) : "";
9203
9206
  }
@@ -9224,7 +9227,7 @@ function Kl({
9224
9227
  m(ue.message), r == null || r(ue);
9225
9228
  }
9226
9229
  });
9227
- return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Rl, {}) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ U("div", { className: "p-6 space-y-5", children: [
9230
+ return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Ol, {}) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ U("div", { className: "p-6 space-y-5", children: [
9228
9231
  (i == null ? void 0 : i.logoUrl) && /* @__PURE__ */ h(
9229
9232
  "img",
9230
9233
  {
@@ -9380,17 +9383,17 @@ function Kl({
9380
9383
  ] })
9381
9384
  ] }) });
9382
9385
  }
9383
- const Ol = gr({
9386
+ const Nl = gr({
9384
9387
  email: Qe().email("Enter a valid email address")
9385
9388
  });
9386
- function Nl() {
9389
+ function Al() {
9387
9390
  return /* @__PURE__ */ U("div", { className: "space-y-4 p-6", children: [
9388
9391
  /* @__PURE__ */ h("div", { className: "h-6 w-3/4 animate-pulse rounded bg-muted mx-auto" }),
9389
9392
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
9390
9393
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
9391
9394
  ] });
9392
9395
  }
9393
- function Jl({
9396
+ function Xl({
9394
9397
  className: t,
9395
9398
  onSuccess: e,
9396
9399
  onError: r,
@@ -9402,7 +9405,7 @@ function Jl({
9402
9405
  handleSubmit: C,
9403
9406
  getValues: D,
9404
9407
  formState: { errors: L, isSubmitting: x }
9405
- } = ar({ resolver: ir(Ol) });
9408
+ } = ar({ resolver: ir(Nl) });
9406
9409
  async function B() {
9407
9410
  return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? Qr(i.captcha.siteKey, "forgot_password") : c || (d("Please complete the captcha"), null) : "";
9408
9411
  }
@@ -9422,8 +9425,8 @@ function Jl({
9422
9425
  m(A.message), r == null || r(A);
9423
9426
  }
9424
9427
  });
9425
- return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Nl, {}) }) : b ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ U("div", { className: "flex flex-col items-center gap-4 p-8 text-center", children: [
9426
- /* @__PURE__ */ h(Yi, { className: "h-12 w-12 text-primary" }),
9428
+ return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Al, {}) }) : b ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ U("div", { className: "flex flex-col items-center gap-4 p-8 text-center", children: [
9429
+ /* @__PURE__ */ h(Ki, { className: "h-12 w-12 text-primary" }),
9427
9430
  /* @__PURE__ */ U("div", { className: "space-y-1", children: [
9428
9431
  /* @__PURE__ */ h("p", { className: "font-semibold", children: "Check your inbox" }),
9429
9432
  /* @__PURE__ */ U("p", { className: "text-sm text-muted-foreground", children: [
@@ -9498,7 +9501,7 @@ function Jl({
9498
9501
  ) })
9499
9502
  ] }) });
9500
9503
  }
9501
- function Al({
9504
+ function Tl({
9502
9505
  className: t,
9503
9506
  onSuccess: e,
9504
9507
  onError: r,
@@ -9534,13 +9537,13 @@ function Al({
9534
9537
  disabled: i,
9535
9538
  className: me("gap-2", t),
9536
9539
  children: [
9537
- /* @__PURE__ */ h(Ji, { className: "h-4 w-4" }),
9540
+ /* @__PURE__ */ h(Xi, { className: "h-4 w-4" }),
9538
9541
  i ? "Signing out…" : n
9539
9542
  ]
9540
9543
  }
9541
9544
  );
9542
9545
  }
9543
- function Tl(t, e = []) {
9546
+ function Pl(t, e = []) {
9544
9547
  let r = [];
9545
9548
  function n(a, i) {
9546
9549
  const o = w.createContext(i);
@@ -9572,9 +9575,9 @@ function Tl(t, e = []) {
9572
9575
  );
9573
9576
  };
9574
9577
  };
9575
- return s.scopeName = t, [n, Pl(s, ...e)];
9578
+ return s.scopeName = t, [n, Il(s, ...e)];
9576
9579
  }
9577
- function Pl(...t) {
9580
+ function Il(...t) {
9578
9581
  const e = t[0];
9579
9582
  if (t.length === 1) return e;
9580
9583
  const r = () => {
@@ -9592,7 +9595,7 @@ function Pl(...t) {
9592
9595
  };
9593
9596
  return r.scopeName = e.scopeName, r;
9594
9597
  }
9595
- function Il(t) {
9598
+ function Ll(t) {
9596
9599
  const e = w.useRef(t);
9597
9600
  return w.useEffect(() => {
9598
9601
  e.current = t;
@@ -9612,7 +9615,7 @@ var er = { exports: {} }, Ir = {};
9612
9615
  * LICENSE file in the root directory of this source tree.
9613
9616
  */
9614
9617
  var _s;
9615
- function Ll() {
9618
+ function jl() {
9616
9619
  if (_s) return Ir;
9617
9620
  _s = 1;
9618
9621
  var t = Ne;
@@ -9663,7 +9666,7 @@ var Lr = {};
9663
9666
  * LICENSE file in the root directory of this source tree.
9664
9667
  */
9665
9668
  var ws;
9666
- function jl() {
9669
+ function Ml() {
9667
9670
  return ws || (ws = 1, process.env.NODE_ENV !== "production" && (function() {
9668
9671
  function t(m, b) {
9669
9672
  return m === b && (m !== 0 || 1 / m === 1 / b) || m !== m && b !== b;
@@ -9716,26 +9719,26 @@ function jl() {
9716
9719
  })()), Lr;
9717
9720
  }
9718
9721
  var ks;
9719
- function Ml() {
9720
- return ks || (ks = 1, process.env.NODE_ENV === "production" ? er.exports = Ll() : er.exports = jl()), er.exports;
9722
+ function Vl() {
9723
+ return ks || (ks = 1, process.env.NODE_ENV === "production" ? er.exports = jl() : er.exports = Ml()), er.exports;
9721
9724
  }
9722
- var Vl = Ml();
9723
- function $l() {
9724
- return Vl.useSyncExternalStore(
9725
- Fl,
9725
+ var $l = Vl();
9726
+ function Fl() {
9727
+ return $l.useSyncExternalStore(
9728
+ Dl,
9726
9729
  () => !0,
9727
9730
  () => !1
9728
9731
  );
9729
9732
  }
9730
- function Fl() {
9733
+ function Dl() {
9731
9734
  return () => {
9732
9735
  };
9733
9736
  }
9734
- var yn = "Avatar", [Dl] = Tl(yn), [Ul, Ea] = Dl(yn), Ra = w.forwardRef(
9737
+ var yn = "Avatar", [Ul] = Pl(yn), [zl, Ra] = Ul(yn), Oa = w.forwardRef(
9735
9738
  (t, e) => {
9736
9739
  const { __scopeAvatar: r, ...n } = t, [s, a] = w.useState("idle");
9737
9740
  return /* @__PURE__ */ h(
9738
- Ul,
9741
+ zl,
9739
9742
  {
9740
9743
  scope: r,
9741
9744
  imageLoadingStatus: s,
@@ -9745,11 +9748,11 @@ var yn = "Avatar", [Dl] = Tl(yn), [Ul, Ea] = Dl(yn), Ra = w.forwardRef(
9745
9748
  );
9746
9749
  }
9747
9750
  );
9748
- Ra.displayName = yn;
9749
- var Oa = "AvatarImage", Na = w.forwardRef(
9751
+ Oa.displayName = yn;
9752
+ var Na = "AvatarImage", Aa = w.forwardRef(
9750
9753
  (t, e) => {
9751
9754
  const { __scopeAvatar: r, src: n, onLoadingStatusChange: s = () => {
9752
- }, ...a } = t, i = Ea(Oa, r), o = zl(n, a), c = Il((l) => {
9755
+ }, ...a } = t, i = Ra(Na, r), o = Zl(n, a), c = Ll((l) => {
9753
9756
  s(l), i.onImageLoadingStatusChange(l);
9754
9757
  });
9755
9758
  return xt(() => {
@@ -9757,10 +9760,10 @@ var Oa = "AvatarImage", Na = w.forwardRef(
9757
9760
  }, [o, c]), o === "loaded" ? /* @__PURE__ */ h(qt.img, { ...a, ref: e, src: n }) : null;
9758
9761
  }
9759
9762
  );
9760
- Na.displayName = Oa;
9761
- var Aa = "AvatarFallback", Ta = w.forwardRef(
9763
+ Aa.displayName = Na;
9764
+ var Ta = "AvatarFallback", Pa = w.forwardRef(
9762
9765
  (t, e) => {
9763
- const { __scopeAvatar: r, delayMs: n, ...s } = t, a = Ea(Aa, r), [i, o] = w.useState(n === void 0);
9766
+ const { __scopeAvatar: r, delayMs: n, ...s } = t, a = Ra(Ta, r), [i, o] = w.useState(n === void 0);
9764
9767
  return w.useEffect(() => {
9765
9768
  if (n !== void 0) {
9766
9769
  const c = window.setTimeout(() => o(!0), n);
@@ -9769,12 +9772,12 @@ var Aa = "AvatarFallback", Ta = w.forwardRef(
9769
9772
  }, [n]), i && a.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ h(qt.span, { ...s, ref: e }) : null;
9770
9773
  }
9771
9774
  );
9772
- Ta.displayName = Aa;
9775
+ Pa.displayName = Ta;
9773
9776
  function Ss(t, e) {
9774
9777
  return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
9775
9778
  }
9776
- function zl(t, { referrerPolicy: e, crossOrigin: r }) {
9777
- const n = $l(), s = w.useRef(null), a = n ? (s.current || (s.current = new window.Image()), s.current) : null, [i, o] = w.useState(
9779
+ function Zl(t, { referrerPolicy: e, crossOrigin: r }) {
9780
+ const n = Fl(), s = w.useRef(null), a = n ? (s.current || (s.current = new window.Image()), s.current) : null, [i, o] = w.useState(
9778
9781
  () => Ss(a, t)
9779
9782
  );
9780
9783
  return xt(() => {
@@ -9790,9 +9793,9 @@ function zl(t, { referrerPolicy: e, crossOrigin: r }) {
9790
9793
  };
9791
9794
  }, [a, r, e]), i;
9792
9795
  }
9793
- var Pa = Ra, Ia = Na, La = Ta;
9794
- const ja = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9795
- Pa,
9796
+ var Ia = Oa, La = Aa, ja = Pa;
9797
+ const Ma = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9798
+ Ia,
9796
9799
  {
9797
9800
  ref: r,
9798
9801
  className: me(
@@ -9802,18 +9805,18 @@ const ja = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9802
9805
  ...e
9803
9806
  }
9804
9807
  ));
9805
- ja.displayName = Pa.displayName;
9806
- const Ma = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9807
- Ia,
9808
+ Ma.displayName = Ia.displayName;
9809
+ const Va = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9810
+ La,
9808
9811
  {
9809
9812
  ref: r,
9810
9813
  className: me("aspect-square h-full w-full", t),
9811
9814
  ...e
9812
9815
  }
9813
9816
  ));
9814
- Ma.displayName = Ia.displayName;
9815
- const Va = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9816
- La,
9817
+ Va.displayName = La.displayName;
9818
+ const $a = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9819
+ ja,
9817
9820
  {
9818
9821
  ref: r,
9819
9822
  className: me(
@@ -9823,8 +9826,8 @@ const Va = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9823
9826
  ...e
9824
9827
  }
9825
9828
  ));
9826
- Va.displayName = La.displayName;
9827
- function Xl({
9829
+ $a.displayName = ja.displayName;
9830
+ function Ql({
9828
9831
  className: t,
9829
9832
  onEditProfile: e,
9830
9833
  showLogout: r = !0,
@@ -9838,14 +9841,14 @@ function Xl({
9838
9841
  return /* @__PURE__ */ h(Be, { className: me("w-full max-w-md", t), children: /* @__PURE__ */ h(rr, { className: "py-10 text-center", children: /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground", children: "Not signed in" }) }) });
9839
9842
  const o = [(l = s.firstName) == null ? void 0 : l[0], (f = s.lastName) == null ? void 0 : f[0]].filter(Boolean).join("").toUpperCase(), c = [s.firstName, s.lastName].filter(Boolean).join(" ");
9840
9843
  return /* @__PURE__ */ U(Be, { className: me("w-full max-w-md", t), children: [
9841
- /* @__PURE__ */ h(fa, { children: /* @__PURE__ */ U("div", { className: "flex items-start gap-4", children: [
9842
- /* @__PURE__ */ U(ja, { className: "h-16 w-16", children: [
9843
- s.avatarUrl && /* @__PURE__ */ h(Ma, { src: s.avatarUrl, alt: c }),
9844
- /* @__PURE__ */ h(Va, { className: "text-lg", children: o })
9844
+ /* @__PURE__ */ h(ha, { children: /* @__PURE__ */ U("div", { className: "flex items-start gap-4", children: [
9845
+ /* @__PURE__ */ U(Ma, { className: "h-16 w-16", children: [
9846
+ s.avatarUrl && /* @__PURE__ */ h(Va, { src: s.avatarUrl, alt: c }),
9847
+ /* @__PURE__ */ h($a, { className: "text-lg", children: o })
9845
9848
  ] }),
9846
9849
  /* @__PURE__ */ U("div", { className: "flex-1 space-y-1", children: [
9847
- /* @__PURE__ */ h(ha, { className: "text-xl", children: c }),
9848
- /* @__PURE__ */ h(pa, { children: s.email })
9850
+ /* @__PURE__ */ h(pa, { className: "text-xl", children: c }),
9851
+ /* @__PURE__ */ h(ma, { children: s.email })
9849
9852
  ] }),
9850
9853
  e && /* @__PURE__ */ h(
9851
9854
  mt,
@@ -9854,7 +9857,7 @@ function Xl({
9854
9857
  size: "icon",
9855
9858
  onClick: () => e(s),
9856
9859
  "aria-label": "Edit profile",
9857
- children: /* @__PURE__ */ h(Qi, { className: "h-4 w-4" })
9860
+ children: /* @__PURE__ */ h(eo, { className: "h-4 w-4" })
9858
9861
  }
9859
9862
  )
9860
9863
  ] }) }),
@@ -9863,7 +9866,7 @@ function Xl({
9863
9866
  /* @__PURE__ */ h(
9864
9867
  jr,
9865
9868
  {
9866
- icon: /* @__PURE__ */ h(Xi, { className: "h-4 w-4 text-muted-foreground" }),
9869
+ icon: /* @__PURE__ */ h(Qi, { className: "h-4 w-4 text-muted-foreground" }),
9867
9870
  label: "Email",
9868
9871
  value: s.email
9869
9872
  }
@@ -9871,7 +9874,7 @@ function Xl({
9871
9874
  s.whatsappNumber && /* @__PURE__ */ h(
9872
9875
  jr,
9873
9876
  {
9874
- icon: /* @__PURE__ */ h(eo, { className: "h-4 w-4 text-muted-foreground" }),
9877
+ icon: /* @__PURE__ */ h(to, { className: "h-4 w-4 text-muted-foreground" }),
9875
9878
  label: "WhatsApp",
9876
9879
  value: s.whatsappNumber
9877
9880
  }
@@ -9882,7 +9885,7 @@ function Xl({
9882
9885
  ([d, p]) => typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ h(
9883
9886
  jr,
9884
9887
  {
9885
- label: Zl(d),
9888
+ label: Bl(d),
9886
9889
  value: String(p)
9887
9890
  },
9888
9891
  d
@@ -9891,7 +9894,7 @@ function Xl({
9891
9894
  r && /* @__PURE__ */ U(Cs, { children: [
9892
9895
  /* @__PURE__ */ h(Tt, {}),
9893
9896
  /* @__PURE__ */ h(
9894
- Al,
9897
+ Tl,
9895
9898
  {
9896
9899
  className: "w-full",
9897
9900
  onSuccess: n
@@ -9910,16 +9913,16 @@ function jr({ icon: t, label: e, value: r }) {
9910
9913
  ] })
9911
9914
  ] });
9912
9915
  }
9913
- function Zl(t) {
9916
+ function Bl(t) {
9914
9917
  return t.replace(/([A-Z])/g, " $1").replace(/_/g, " ").trim().replace(/^\w/, (e) => e.toUpperCase());
9915
9918
  }
9916
9919
  export {
9917
- Hl as AuthProvider,
9918
- Jl as ForgotPasswordForm,
9919
- Yl as LoginForm,
9920
- Al as LogoutButton,
9921
- Xl as ProfileComponent,
9922
- Kl as SignupForm,
9920
+ Yl as AuthProvider,
9921
+ Xl as ForgotPasswordForm,
9922
+ Kl as LoginForm,
9923
+ Tl as LogoutButton,
9924
+ Ql as ProfileComponent,
9925
+ Jl as SignupForm,
9923
9926
  Bt as useAuth,
9924
9927
  en as useAuthConfig
9925
9928
  };