@s8lab/sso-client 1.1.6 → 1.1.8

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,15 +1,15 @@
1
- import { jsx as h, jsxs as z, Fragment as Es } from "react/jsx-runtime";
1
+ import { jsx as h, Fragment as tn, jsxs as D } from "react/jsx-runtime";
2
2
  import * as w from "react";
3
- import Ne, { createContext as Rs, useState as Ae, useRef as lt, useCallback as gt, useEffect as qa, useMemo as kn, useContext as Os, forwardRef as yr, createElement as Dt, Component as Ga, useImperativeHandle as Ha } from "react";
3
+ import Ne, { createContext as Rs, useState as Ae, useRef as lt, useCallback as gt, useEffect as qa, useMemo as Sn, useContext as Os, forwardRef as yr, createElement as Ut, Component as Ga, useImperativeHandle as Ha } from "react";
4
4
  import "react-dom";
5
- import './index.css';const Sn = /* @__PURE__ */ new Set();
5
+ import './index.css';const Cn = /* @__PURE__ */ new Set();
6
6
  function Ya(t) {
7
- if (Sn.has(t)) return;
8
- Sn.add(t);
7
+ if (Cn.has(t)) return;
8
+ Cn.add(t);
9
9
  const e = document.createElement("script");
10
10
  e.src = `https://www.google.com/recaptcha/api.js?render=${t}`, e.async = !0, document.head.appendChild(e);
11
11
  }
12
- function en(t, e) {
12
+ function rn(t, e) {
13
13
  return new Promise((r, n) => {
14
14
  const s = () => {
15
15
  window.grecaptcha.ready(() => {
@@ -35,7 +35,7 @@ class Ps extends Error {
35
35
  super(r), this.status = e, this.name = "HttpError";
36
36
  }
37
37
  }
38
- async function Cn(t, e) {
38
+ async function En(t, e) {
39
39
  const r = await fetch(t, {
40
40
  ...e,
41
41
  credentials: "include",
@@ -56,16 +56,16 @@ async function Cn(t, e) {
56
56
  if (r.status !== 204)
57
57
  return r.json();
58
58
  }
59
- let It = null;
59
+ let Lt = null;
60
60
  function Ka(t) {
61
- return It || (It = fetch(`${t}/auth/refresh`, {
61
+ return Lt || (Lt = fetch(`${t}/auth/refresh`, {
62
62
  method: "POST",
63
63
  credentials: "include"
64
64
  }).then((e) => e.ok).catch(() => !1).finally(() => {
65
- It = null;
66
- }), It);
65
+ Lt = null;
66
+ }), Lt);
67
67
  }
68
- function Xl({
68
+ function Ql({
69
69
  children: t,
70
70
  apiUrl: e,
71
71
  projectId: r,
@@ -80,13 +80,13 @@ function Xl({
80
80
  d.current = e;
81
81
  const p = lt(r);
82
82
  p.current = r;
83
- const m = lt(n ?? Cn);
84
- m.current = n ?? Cn;
85
- const b = gt(async (j, U = {}) => {
83
+ const m = lt(n ?? En);
84
+ m.current = n ?? En;
85
+ const b = gt(async (j, z = {}) => {
86
86
  const B = () => m.current(j, {
87
- ...U,
87
+ ...z,
88
88
  headers: {
89
- ...Ts(U.headers),
89
+ ...Ts(z.headers),
90
90
  "X-Project-Id": p.current
91
91
  }
92
92
  });
@@ -101,7 +101,7 @@ function Xl({
101
101
  }, []);
102
102
  qa(() => {
103
103
  let j = !1;
104
- async function U() {
104
+ async function z() {
105
105
  var re;
106
106
  let B;
107
107
  try {
@@ -123,35 +123,35 @@ function Xl({
123
123
  j || f({ user: null, isLoading: !1, isAuthenticated: !1 });
124
124
  }
125
125
  }
126
- return U(), () => {
126
+ return z(), () => {
127
127
  j = !0;
128
128
  };
129
129
  }, []);
130
130
  const v = gt(
131
131
  async (j) => {
132
- f((U) => ({ ...U, isLoading: !0 }));
132
+ f((z) => ({ ...z, isLoading: !0 }));
133
133
  try {
134
- const U = await b(
134
+ const z = await b(
135
135
  `${d.current}/auth/login`,
136
136
  { method: "POST", body: JSON.stringify(j) }
137
137
  );
138
- f({ user: U.user, isLoading: !1, isAuthenticated: !0 });
139
- } catch (U) {
140
- throw f((B) => ({ ...B, isLoading: !1 })), U;
138
+ f({ user: z.user, isLoading: !1, isAuthenticated: !0 });
139
+ } catch (z) {
140
+ throw f((B) => ({ ...B, isLoading: !1 })), z;
141
141
  }
142
142
  },
143
143
  [b]
144
144
  ), S = gt(
145
145
  async (j) => {
146
- f((U) => ({ ...U, isLoading: !0 }));
146
+ f((z) => ({ ...z, isLoading: !0 }));
147
147
  try {
148
- const U = await b(
148
+ const z = await b(
149
149
  `${d.current}/auth/signup`,
150
150
  { method: "POST", body: JSON.stringify(j) }
151
151
  );
152
- f({ user: U.user, isLoading: !1, isAuthenticated: !0 });
153
- } catch (U) {
154
- throw f((B) => ({ ...B, isLoading: !1 })), U;
152
+ f({ user: z.user, isLoading: !1, isAuthenticated: !0 });
153
+ } catch (z) {
154
+ throw f((B) => ({ ...B, isLoading: !1 })), z;
155
155
  }
156
156
  },
157
157
  [b]
@@ -173,7 +173,7 @@ function Xl({
173
173
  });
174
174
  },
175
175
  [b]
176
- ), D = gt(
176
+ ), U = gt(
177
177
  async (j) => {
178
178
  await b(`${d.current}/auth/magic-link`, {
179
179
  method: "POST",
@@ -183,63 +183,84 @@ function Xl({
183
183
  [b]
184
184
  ), I = gt((j) => {
185
185
  f(
186
- (U) => U.user ? { ...U, user: { ...U.user, ...j } } : U
186
+ (z) => z.user ? { ...z, user: { ...z.user, ...j } } : z
187
187
  );
188
- }, []), x = kn(
188
+ }, []), x = Sn(
189
189
  () => ({
190
190
  ...l,
191
191
  login: v,
192
192
  signup: S,
193
193
  logout: k,
194
194
  forgotPassword: C,
195
- sendMagicLink: D,
195
+ sendMagicLink: U,
196
196
  updateUser: I
197
197
  }),
198
- [l, v, S, k, C, D, I]
199
- ), Z = kn(
198
+ [l, v, S, k, C, U, I]
199
+ ), Z = Sn(
200
200
  () => ({ config: a, configLoading: o, apiUrl: e, rootPath: s }),
201
201
  [a, o, e, s]
202
202
  );
203
203
  return /* @__PURE__ */ h(As.Provider, { value: Z, children: /* @__PURE__ */ h(Ns.Provider, { value: x, children: t }) });
204
204
  }
205
- function Wt() {
205
+ function Pt() {
206
206
  const t = Os(Ns);
207
207
  if (!t) throw new Error("useAuth must be used inside <AuthProvider>");
208
208
  return t;
209
209
  }
210
- function tn() {
210
+ function gr() {
211
211
  const t = Os(As);
212
212
  if (!t) throw new Error("useAuthConfig must be used inside <AuthProvider>");
213
213
  return t;
214
214
  }
215
+ function Ja() {
216
+ return /* @__PURE__ */ h("div", { className: "flex min-h-screen items-center justify-center bg-background p-4", children: /* @__PURE__ */ D("div", { className: "w-full max-w-sm animate-pulse space-y-6 rounded-xl border bg-card p-8 shadow-sm", children: [
217
+ /* @__PURE__ */ D("div", { className: "space-y-2", children: [
218
+ /* @__PURE__ */ h("div", { className: "mx-auto h-8 w-24 rounded-md bg-muted" }),
219
+ /* @__PURE__ */ h("div", { className: "mx-auto h-4 w-40 rounded bg-muted" })
220
+ ] }),
221
+ /* @__PURE__ */ D("div", { className: "space-y-3", children: [
222
+ /* @__PURE__ */ h("div", { className: "h-4 w-16 rounded bg-muted" }),
223
+ /* @__PURE__ */ h("div", { className: "h-10 w-full rounded-md bg-muted" })
224
+ ] }),
225
+ /* @__PURE__ */ D("div", { className: "space-y-3", children: [
226
+ /* @__PURE__ */ h("div", { className: "h-4 w-20 rounded bg-muted" }),
227
+ /* @__PURE__ */ h("div", { className: "h-10 w-full rounded-md bg-muted" })
228
+ ] }),
229
+ /* @__PURE__ */ h("div", { className: "h-10 w-full rounded-md bg-muted" })
230
+ ] }) });
231
+ }
232
+ function eu({ children: t }) {
233
+ const { isAuthenticated: e, isLoading: r } = Pt(), { rootPath: n } = gr();
234
+ return r ? /* @__PURE__ */ h(Ja, {}) : e ? (window.location.replace(n), null) : /* @__PURE__ */ h(tn, { children: t });
235
+ }
215
236
  var qt = (t) => t.type === "checkbox", vt = (t) => t instanceof Date, Ve = (t) => t == null;
216
237
  const Is = (t) => typeof t == "object";
217
- var _e = (t) => !Ve(t) && !Array.isArray(t) && Is(t) && !vt(t), Ja = (t) => _e(t) && t.target ? qt(t.target) ? t.target.checked : t.target.value : t, Ls = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Xa = (t, e) => t.has(Ls(e)), Qa = (t) => {
238
+ var _e = (t) => !Ve(t) && !Array.isArray(t) && Is(t) && !vt(t), Xa = (t) => _e(t) && t.target ? qt(t.target) ? t.target.checked : t.target.value : t, Ls = (t) => t.substring(0, t.search(/\.\d+(\.|$)/)) || t, Qa = (t, e) => t.has(Ls(e)), ei = (t) => {
218
239
  const e = t.constructor && t.constructor.prototype;
219
240
  return _e(e) && e.hasOwnProperty("isPrototypeOf");
220
- }, rn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
241
+ }, nn = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
221
242
  function Ce(t) {
222
243
  if (t instanceof Date)
223
244
  return new Date(t);
224
245
  const e = typeof FileList < "u" && t instanceof FileList;
225
- if (rn && (t instanceof Blob || e))
246
+ if (nn && (t instanceof Blob || e))
226
247
  return t;
227
248
  const r = Array.isArray(t);
228
- if (!r && !(_e(t) && Qa(t)))
249
+ if (!r && !(_e(t) && ei(t)))
229
250
  return t;
230
251
  const n = r ? [] : Object.create(Object.getPrototypeOf(t));
231
252
  for (const s in t)
232
253
  Object.prototype.hasOwnProperty.call(t, s) && (n[s] = Ce(t[s]));
233
254
  return n;
234
255
  }
235
- var gr = (t) => /^\w*$/.test(t), xe = (t) => t === void 0, nn = (t) => Array.isArray(t) ? t.filter(Boolean) : [], sn = (t) => nn(t.replace(/["|']|\]/g, "").split(/\.|\[/)), L = (t, e, r) => {
256
+ var vr = (t) => /^\w*$/.test(t), xe = (t) => t === void 0, sn = (t) => Array.isArray(t) ? t.filter(Boolean) : [], an = (t) => sn(t.replace(/["|']|\]/g, "").split(/\.|\[/)), L = (t, e, r) => {
236
257
  if (!e || !_e(t))
237
258
  return r;
238
- const n = (gr(e) ? [e] : sn(e)).reduce((s, a) => Ve(s) ? s : s[a], t);
259
+ const n = (vr(e) ? [e] : an(e)).reduce((s, a) => Ve(s) ? s : s[a], t);
239
260
  return xe(n) || n === t ? xe(t[e]) ? r : t[e] : n;
240
261
  }, Xe = (t) => typeof t == "boolean", Ye = (t) => typeof t == "function", ye = (t, e, r) => {
241
262
  let n = -1;
242
- const s = gr(e) ? [e] : sn(e), a = s.length, i = a - 1;
263
+ const s = vr(e) ? [e] : an(e), a = s.length, i = a - 1;
243
264
  for (; ++n < a; ) {
244
265
  const o = s[n];
245
266
  let c = r;
@@ -272,9 +293,9 @@ const _t = {
272
293
  pattern: "pattern",
273
294
  required: "required",
274
295
  validate: "validate"
275
- }, kr = "form", js = "root", ei = Ne.createContext(null);
276
- ei.displayName = "HookFormControlContext";
277
- var ti = (t, e, r, n = !0) => {
296
+ }, Sr = "form", js = "root", ti = Ne.createContext(null);
297
+ ti.displayName = "HookFormControlContext";
298
+ var ri = (t, e, r, n = !0) => {
278
299
  const s = {
279
300
  defaultValues: e._defaultValues
280
301
  };
@@ -287,10 +308,10 @@ var ti = (t, e, r, n = !0) => {
287
308
  });
288
309
  return s;
289
310
  };
290
- const ri = typeof window < "u" ? Ne.useLayoutEffect : Ne.useEffect;
291
- var Ie = (t) => typeof t == "string", ni = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), L(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), L(r, a))) : (n && (e.watchAll = !0), r), Vr = (t) => Ve(t) || !Is(t);
311
+ const ni = typeof window < "u" ? Ne.useLayoutEffect : Ne.useEffect;
312
+ var Ie = (t) => typeof t == "string", si = (t, e, r, n, s) => Ie(t) ? (n && e.watch.add(t), L(r, t, s)) : Array.isArray(t) ? t.map((a) => (n && e.watch.add(a), L(r, a))) : (n && (e.watchAll = !0), r), $r = (t) => Ve(t) || !Is(t);
292
313
  function it(t, e, r = /* @__PURE__ */ new WeakSet()) {
293
- if (Vr(t) || Vr(e))
314
+ if ($r(t) || $r(e))
294
315
  return Object.is(t, e);
295
316
  if (vt(t) && vt(e))
296
317
  return Object.is(t.getTime(), e.getTime());
@@ -312,15 +333,15 @@ function it(t, e, r = /* @__PURE__ */ new WeakSet()) {
312
333
  }
313
334
  return !0;
314
335
  }
315
- const si = Ne.createContext(null);
316
- si.displayName = "HookFormContext";
336
+ const ai = Ne.createContext(null);
337
+ ai.displayName = "HookFormContext";
317
338
  var Ms = (t, e, r, n, s) => e ? {
318
339
  ...r[t],
319
340
  types: {
320
341
  ...r[t] && r[t].types ? r[t].types : {},
321
342
  [n]: s || !0
322
343
  }
323
- } : {}, $t = (t) => Array.isArray(t) ? t : [t], En = () => {
344
+ } : {}, Ft = (t) => Array.isArray(t) ? t : [t], Rn = () => {
324
345
  let t = [];
325
346
  return {
326
347
  get observers() {
@@ -352,51 +373,51 @@ function Vs(t, e) {
352
373
  }
353
374
  return r;
354
375
  }
355
- var Pe = (t) => _e(t) && !Object.keys(t).length, an = (t) => t.type === "file", sr = (t) => {
356
- if (!rn)
376
+ var Pe = (t) => _e(t) && !Object.keys(t).length, on = (t) => t.type === "file", sr = (t) => {
377
+ if (!nn)
357
378
  return !1;
358
379
  const e = t ? t.ownerDocument : 0;
359
380
  return t instanceof (e && e.defaultView ? e.defaultView.HTMLElement : HTMLElement);
360
- }, $s = (t) => t.type === "select-multiple", on = (t) => t.type === "radio", ai = (t) => on(t) || qt(t), Sr = (t) => sr(t) && t.isConnected;
361
- function ii(t, e) {
381
+ }, $s = (t) => t.type === "select-multiple", cn = (t) => t.type === "radio", ii = (t) => cn(t) || qt(t), Cr = (t) => sr(t) && t.isConnected;
382
+ function oi(t, e) {
362
383
  const r = e.slice(0, -1).length;
363
384
  let n = 0;
364
385
  for (; n < r; )
365
386
  t = xe(t) ? n++ : t[e[n++]];
366
387
  return t;
367
388
  }
368
- function oi(t) {
389
+ function ci(t) {
369
390
  for (const e in t)
370
391
  if (t.hasOwnProperty(e) && !xe(t[e]))
371
392
  return !1;
372
393
  return !0;
373
394
  }
374
395
  function ke(t, e) {
375
- const r = Array.isArray(e) ? e : gr(e) ? [e] : sn(e), n = r.length === 1 ? t : ii(t, r), s = r.length - 1, a = r[s];
376
- return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) && oi(n)) && ke(t, r.slice(0, -1)), t;
396
+ const r = Array.isArray(e) ? e : vr(e) ? [e] : an(e), n = r.length === 1 ? t : oi(t, r), s = r.length - 1, a = r[s];
397
+ return n && delete n[a], s !== 0 && (_e(n) && Pe(n) || Array.isArray(n) && ci(n)) && ke(t, r.slice(0, -1)), t;
377
398
  }
378
- var ci = (t) => {
399
+ var li = (t) => {
379
400
  for (const e in t)
380
401
  if (Ye(t[e]))
381
402
  return !0;
382
403
  return !1;
383
404
  };
384
405
  function Fs(t) {
385
- return Array.isArray(t) || _e(t) && !ci(t);
406
+ return Array.isArray(t) || _e(t) && !li(t);
386
407
  }
387
- function $r(t, e = {}) {
408
+ function Fr(t, e = {}) {
388
409
  for (const r in t) {
389
410
  const n = t[r];
390
- Fs(n) ? (e[r] = Array.isArray(n) ? [] : {}, $r(n, e[r])) : xe(n) || (e[r] = !0);
411
+ Fs(n) ? (e[r] = Array.isArray(n) ? [] : {}, Fr(n, e[r])) : xe(n) || (e[r] = !0);
391
412
  }
392
413
  return e;
393
414
  }
394
415
  function kt(t, e, r) {
395
- r || (r = $r(e));
416
+ r || (r = Fr(e));
396
417
  for (const n in t) {
397
418
  const s = t[n];
398
419
  if (Fs(s))
399
- xe(e) || Vr(r[n]) ? r[n] = $r(s, Array.isArray(s) ? [] : {}) : kt(s, Ve(e) ? {} : e[n], r[n]);
420
+ xe(e) || $r(r[n]) ? r[n] = Fr(s, Array.isArray(s) ? [] : {}) : kt(s, Ve(e) ? {} : e[n], r[n]);
400
421
  else {
401
422
  const a = e[n];
402
423
  r[n] = !it(s, a);
@@ -404,10 +425,10 @@ function kt(t, e, r) {
404
425
  }
405
426
  return r;
406
427
  }
407
- const Rn = {
428
+ const On = {
408
429
  value: !1,
409
430
  isValid: !1
410
- }, On = { value: !0, isValid: !0 };
431
+ }, Nn = { value: !0, isValid: !0 };
411
432
  var Ds = (t) => {
412
433
  if (Array.isArray(t)) {
413
434
  if (t.length > 1) {
@@ -416,24 +437,24 @@ var Ds = (t) => {
416
437
  }
417
438
  return t[0].checked && !t[0].disabled ? (
418
439
  // @ts-expect-error expected to work in the browser
419
- t[0].attributes && !xe(t[0].attributes.value) ? xe(t[0].value) || t[0].value === "" ? On : { value: t[0].value, isValid: !0 } : On
420
- ) : Rn;
440
+ t[0].attributes && !xe(t[0].attributes.value) ? xe(t[0].value) || t[0].value === "" ? Nn : { value: t[0].value, isValid: !0 } : Nn
441
+ ) : On;
421
442
  }
422
- return Rn;
443
+ return On;
423
444
  }, Us = (t, { valueAsNumber: e, valueAsDate: r, setValueAs: n }) => xe(t) ? t : e ? t === "" ? NaN : t && +t : r && Ie(t) ? new Date(t) : n ? n(t) : t;
424
- const Nn = {
445
+ const An = {
425
446
  isValid: !1,
426
447
  value: null
427
448
  };
428
449
  var zs = (t) => Array.isArray(t) ? t.reduce((e, r) => r && r.checked && !r.disabled ? {
429
450
  isValid: !0,
430
451
  value: r.value
431
- } : e, Nn) : Nn;
432
- function An(t) {
452
+ } : e, An) : An;
453
+ function Tn(t) {
433
454
  const e = t.ref;
434
- return an(e) ? e.files : on(e) ? zs(t.refs).value : $s(e) ? [...e.selectedOptions].map(({ value: r }) => r) : qt(e) ? Ds(t.refs).value : Us(xe(e.value) ? t.ref.value : e.value, t);
455
+ return on(e) ? e.files : cn(e) ? zs(t.refs).value : $s(e) ? [...e.selectedOptions].map(({ value: r }) => r) : qt(e) ? Ds(t.refs).value : Us(xe(e.value) ? t.ref.value : e.value, t);
435
456
  }
436
- var li = (t, e, r, n) => {
457
+ var ui = (t, e, r, n) => {
437
458
  const s = {};
438
459
  for (const a of t) {
439
460
  const i = L(e, a);
@@ -445,16 +466,16 @@ var li = (t, e, r, n) => {
445
466
  fields: s,
446
467
  shouldUseNativeValidation: n
447
468
  };
448
- }, ar = (t) => t instanceof RegExp, Lt = (t) => xe(t) ? t : ar(t) ? t.source : _e(t) ? ar(t.value) ? t.value.source : t.value : t, Tn = (t) => ({
469
+ }, ar = (t) => t instanceof RegExp, jt = (t) => xe(t) ? t : ar(t) ? t.source : _e(t) ? ar(t.value) ? t.value.source : t.value : t, Pn = (t) => ({
449
470
  isOnSubmit: !t || t === Ke.onSubmit,
450
471
  isOnBlur: t === Ke.onBlur,
451
472
  isOnChange: t === Ke.onChange,
452
473
  isOnAll: t === Ke.all,
453
474
  isOnTouch: t === Ke.onTouched
454
475
  });
455
- const Pn = "AsyncFunction";
456
- var ui = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name === Pn || _e(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Pn)), di = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), In = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
457
- const Ft = (t, e, r, n) => {
476
+ const In = "AsyncFunction";
477
+ var di = (t) => !!t && !!t.validate && !!(Ye(t.validate) && t.validate.constructor.name === In || _e(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === In)), fi = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Ln = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
478
+ const Dt = (t, e, r, n) => {
458
479
  for (const s of r || Object.keys(t)) {
459
480
  const a = L(t, s);
460
481
  if (a) {
@@ -464,16 +485,16 @@ const Ft = (t, e, r, n) => {
464
485
  return !0;
465
486
  if (i.ref && e(i.ref, i.name) && !n)
466
487
  return !0;
467
- if (Ft(o, e))
488
+ if (Dt(o, e))
468
489
  break;
469
- } else if (_e(o) && Ft(o, e))
490
+ } else if (_e(o) && Dt(o, e))
470
491
  break;
471
492
  }
472
493
  }
473
494
  };
474
- function Ln(t, e, r) {
495
+ function jn(t, e, r) {
475
496
  const n = L(t, r);
476
- if (n || gr(r))
497
+ if (n || vr(r))
477
498
  return {
478
499
  error: n,
479
500
  name: r
@@ -499,15 +520,15 @@ function Ln(t, e, r) {
499
520
  name: r
500
521
  };
501
522
  }
502
- var fi = (t, e, r, n) => {
523
+ var hi = (t, e, r, n) => {
503
524
  r(t);
504
525
  const { name: s, ...a } = t;
505
526
  return Pe(a) || Object.keys(a).length >= Object.keys(e).length || Object.keys(a).find((i) => e[i] === (!n || Ke.all));
506
- }, hi = (t, e, r) => !t || !e || t === e || $t(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), pi = (t, e, r, n, s) => s.isOnAll ? !1 : !r && s.isOnTouch ? !(e || t) : (r ? n.isOnBlur : s.isOnBlur) ? !t : (r ? n.isOnChange : s.isOnChange) ? t : !0, mi = (t, e) => !nn(L(t, e)).length && ke(t, e), yi = (t, e, r) => {
507
- const n = $t(L(t, r));
527
+ }, pi = (t, e, r) => !t || !e || t === e || Ft(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), mi = (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, yi = (t, e) => !sn(L(t, e)).length && ke(t, e), gi = (t, e, r) => {
528
+ const n = Ft(L(t, r));
508
529
  return ye(n, js, e[r]), ye(t, r, n), t;
509
530
  };
510
- function jn(t, e, r = "validate") {
531
+ function Mn(t, e, r = "validate") {
511
532
  if (Ie(t) || Array.isArray(t) && t.every(Ie) || Xe(t) && !t)
512
533
  return {
513
534
  type: r,
@@ -518,13 +539,13 @@ function jn(t, e, r = "validate") {
518
539
  var wt = (t) => _e(t) && !ar(t) ? t : {
519
540
  value: t,
520
541
  message: ""
521
- }, Mn = async (t, e, r, n, s, a) => {
542
+ }, Vn = async (t, e, r, n, s, a) => {
522
543
  const { ref: i, refs: o, required: c, maxLength: l, minLength: f, min: d, max: p, pattern: m, validate: b, name: v, valueAsNumber: S, mount: k } = t._f, C = L(r, v);
523
544
  if (!k || e.has(v))
524
545
  return {};
525
- const D = o ? o[0] : i, I = (M) => {
526
- s && D.reportValidity && (D.setCustomValidity(Xe(M) ? "" : M || ""), D.reportValidity());
527
- }, x = {}, Z = on(i), j = qt(i), U = Z || j, B = (S || an(i)) && xe(i.value) && xe(C) || sr(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, re = Ms.bind(null, v, n, x), he = (M, W, ne, ve = Ge.maxLength, ue = Ge.minLength) => {
546
+ const U = o ? o[0] : i, I = (M) => {
547
+ s && U.reportValidity && (U.setCustomValidity(Xe(M) ? "" : M || ""), U.reportValidity());
548
+ }, x = {}, Z = cn(i), j = qt(i), z = Z || j, B = (S || on(i)) && xe(i.value) && xe(C) || sr(i) && i.value === "" || C === "" || Array.isArray(C) && !C.length, re = Ms.bind(null, v, n, x), he = (M, W, ne, ve = Ge.maxLength, ue = Ge.minLength) => {
528
549
  const be = M ? W : ne;
529
550
  x[v] = {
530
551
  type: M ? ve : ue,
@@ -533,12 +554,12 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
533
554
  ...re(M ? ve : ue, be)
534
555
  };
535
556
  };
536
- if (a ? !Array.isArray(C) || !C.length : c && (!U && (B || Ve(C)) || Xe(C) && !C || j && !Ds(o).isValid || Z && !zs(o).isValid)) {
557
+ if (a ? !Array.isArray(C) || !C.length : c && (!z && (B || Ve(C)) || Xe(C) && !C || j && !Ds(o).isValid || Z && !zs(o).isValid)) {
537
558
  const { value: M, message: W } = Ie(c) ? { value: !!c, message: c } : wt(c);
538
559
  if (M && (x[v] = {
539
560
  type: Ge.required,
540
561
  message: W,
541
- ref: D,
562
+ ref: U,
542
563
  ...re(Ge.required, W)
543
564
  }, !n))
544
565
  return I(W), x;
@@ -573,7 +594,7 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
573
594
  }
574
595
  if (b) {
575
596
  if (Ye(b)) {
576
- const M = await b(C, r), W = jn(M, D);
597
+ const M = await b(C, r), W = Mn(M, U);
577
598
  if (W && (x[v] = {
578
599
  ...W,
579
600
  ...re(Ge.validate, W.message)
@@ -584,14 +605,14 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
584
605
  for (const W in b) {
585
606
  if (!Pe(M) && !n)
586
607
  break;
587
- const ne = jn(await b[W](C, r), D, W);
608
+ const ne = Mn(await b[W](C, r), U, W);
588
609
  ne && (M = {
589
610
  ...ne,
590
611
  ...re(W, ne.message)
591
612
  }, I(ne.message), n && (x[v] = M));
592
613
  }
593
614
  if (!Pe(M) && (x[v] = {
594
- ref: D,
615
+ ref: U,
595
616
  ...M
596
617
  }, !n))
597
618
  return x;
@@ -599,14 +620,14 @@ var wt = (t) => _e(t) && !ar(t) ? t : {
599
620
  }
600
621
  return I(!0), x;
601
622
  };
602
- const gi = {
623
+ const vi = {
603
624
  mode: Ke.onSubmit,
604
625
  reValidateMode: Ke.onChange,
605
626
  shouldFocusError: !0
606
627
  };
607
- function vi(t = {}) {
628
+ function bi(t = {}) {
608
629
  let e = {
609
- ...gi,
630
+ ...vi,
610
631
  ...t
611
632
  }, r = {
612
633
  submitCount: 0,
@@ -650,14 +671,14 @@ function vi(t = {}) {
650
671
  ...d
651
672
  };
652
673
  const m = {
653
- array: En(),
654
- state: En()
674
+ array: Rn(),
675
+ state: Rn()
655
676
  }, b = e.criteriaMode === Ke.all, v = (u) => (y) => {
656
677
  clearTimeout(l), l = setTimeout(u, y);
657
678
  }, S = async (u) => {
658
679
  if (!i.keepIsValid && !e.disabled && (d.isValid || p.isValid || u)) {
659
680
  let y;
660
- e.resolver ? (y = Pe((await U()).errors), k()) : y = await he({
681
+ e.resolver ? (y = Pe((await z()).errors), k()) : y = await he({
661
682
  fields: n,
662
683
  onlyCheckValid: !0,
663
684
  eventType: _t.VALID
@@ -680,7 +701,7 @@ function vi(t = {}) {
680
701
  }
681
702
  if (N && Array.isArray(L(r.errors, u))) {
682
703
  const F = g(L(r.errors, u), A.argA, A.argB);
683
- O && ye(r.errors, u, F), mi(r.errors, u);
704
+ O && ye(r.errors, u, F), yi(r.errors, u);
684
705
  }
685
706
  if ((d.touchedFields || p.touchedFields) && N && Array.isArray(L(r.touchedFields, u))) {
686
707
  const F = g(L(r.touchedFields, u), A.argA, A.argB);
@@ -699,7 +720,7 @@ function vi(t = {}) {
699
720
  });
700
721
  } else
701
722
  ye(a, u, y);
702
- }, D = (u, y) => {
723
+ }, U = (u, y) => {
703
724
  ye(r.errors, u, y), m.state.next({
704
725
  errors: r.errors
705
726
  });
@@ -712,7 +733,7 @@ function vi(t = {}) {
712
733
  const O = L(n, u);
713
734
  if (O) {
714
735
  const N = L(a, u, xe(g) ? L(s, u) : g);
715
- xe(N) || A && A.defaultChecked || y ? ye(a, u, y ? N : An(O._f)) : ue(u, N), i.mount && !i.action && S();
736
+ xe(N) || A && A.defaultChecked || y ? ye(a, u, y ? N : Tn(O._f)) : ue(u, N), i.mount && !i.action && S();
716
737
  }
717
738
  }, Z = (u, y, g, A, O) => {
718
739
  let N = !1, F = !1;
@@ -734,7 +755,7 @@ function vi(t = {}) {
734
755
  return N ? J : {};
735
756
  }, j = (u, y, g, A) => {
736
757
  const O = L(r.errors, u), N = (d.isValid || p.isValid) && Xe(y) && r.isValid !== y;
737
- if (e.delayError && g ? (c = v(() => D(u, g)), c(e.delayError)) : (clearTimeout(l), c = null, g ? ye(r.errors, u, g) : ke(r.errors, u)), (g ? !it(O, g) : O) || !Pe(A) || N) {
758
+ if (e.delayError && g ? (c = v(() => U(u, g)), c(e.delayError)) : (clearTimeout(l), c = null, g ? ye(r.errors, u, g) : ke(r.errors, u)), (g ? !it(O, g) : O) || !Pe(A) || N) {
738
759
  const F = {
739
760
  ...A,
740
761
  ...N && Xe(y) ? { isValid: y } : {},
@@ -746,8 +767,8 @@ function vi(t = {}) {
746
767
  ...F
747
768
  }, m.state.next(F);
748
769
  }
749
- }, U = async (u) => (k(u, !0), await e.resolver(a, e.context, li(u || o.mount, n, e.criteriaMode, e.shouldUseNativeValidation))), B = async (u) => {
750
- const { errors: y } = await U(u);
770
+ }, z = async (u) => (k(u, !0), await e.resolver(a, e.context, ui(u || o.mount, n, e.criteriaMode, e.shouldUseNativeValidation))), B = async (u) => {
771
+ const { errors: y } = await z(u);
751
772
  if (k(u), u)
752
773
  for (const g of u) {
753
774
  const A = L(y, g);
@@ -766,14 +787,14 @@ function vi(t = {}) {
766
787
  });
767
788
  if (_e(g))
768
789
  for (const A in g)
769
- g[A] && se(`${kr}.${A}`, {
790
+ g[A] && se(`${Sr}.${A}`, {
770
791
  message: Ie(g.message) ? g.message : "",
771
792
  type: Ge.validate
772
793
  });
773
- else Ie(g) || !g ? se(kr, {
794
+ else Ie(g) || !g ? se(Sr, {
774
795
  message: g || "",
775
796
  type: Ge.validate
776
- }) : K(kr);
797
+ }) : K(Sr);
777
798
  return g;
778
799
  }
779
800
  return !0;
@@ -791,10 +812,10 @@ function vi(t = {}) {
791
812
  if (F) {
792
813
  const { _f: J, ...pe } = F;
793
814
  if (J) {
794
- const $e = o.array.has(J.name), Je = F._f && ui(F._f);
815
+ const $e = o.array.has(J.name), Je = F._f && di(F._f);
795
816
  Je && d.validatingFields && k([J.name], !0);
796
- const Le = await Mn(F, o.disabled, a, b, e.shouldUseNativeValidation && !y, $e);
797
- if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (L(Le, J.name) ? $e ? yi(r.errors, Le, J.name) : ye(r.errors, J.name, Le[J.name]) : ke(r.errors, J.name)), t.shouldUseNativeValidation && Le[J.name]))
817
+ const Le = await Vn(F, o.disabled, a, b, e.shouldUseNativeValidation && !y, $e);
818
+ if (Je && d.validatingFields && k([J.name]), Le[J.name] && (O.valid = !1, y) || (!y && (L(Le, J.name) ? $e ? gi(r.errors, Le, J.name) : ye(r.errors, J.name, Le[J.name]) : ke(r.errors, J.name)), t.shouldUseNativeValidation && Le[J.name]))
798
819
  break;
799
820
  }
800
821
  !Pe(pe) && await he({
@@ -810,19 +831,19 @@ function vi(t = {}) {
810
831
  }, M = () => {
811
832
  for (const u of o.unMount) {
812
833
  const y = L(n, u);
813
- y && (y._f.refs ? y._f.refs.every((g) => !Sr(g)) : !Sr(y._f.ref)) && oe(u);
834
+ y && (y._f.refs ? y._f.refs.every((g) => !Cr(g)) : !Cr(y._f.ref)) && oe(u);
814
835
  }
815
836
  o.unMount = /* @__PURE__ */ new Set();
816
- }, W = (u, y) => !e.disabled && (u && y && ye(a, u, y), !it(G(), s)), ne = (u, y, g) => ni(u, o, {
837
+ }, W = (u, y) => !e.disabled && (u && y && ye(a, u, y), !it(G(), s)), ne = (u, y, g) => si(u, o, {
817
838
  ...i.mount ? a : xe(y) ? s : Ie(u) ? { [u]: y } : y
818
- }, g, y), ve = (u) => nn(L(i.mount ? a : s, u, e.shouldUnregister ? L(s, u, []) : [])), ue = (u, y, g = {}) => {
839
+ }, g, y), ve = (u) => sn(L(i.mount ? a : s, u, e.shouldUnregister ? L(s, u, []) : [])), ue = (u, y, g = {}) => {
819
840
  const A = L(n, u);
820
841
  let O = y;
821
842
  if (A) {
822
843
  const N = A._f;
823
844
  N && (!N.disabled && ye(a, u, Us(y, N)), O = sr(N.ref) && Ve(y) ? "" : y, $s(N.ref) ? [...N.ref.options].forEach((F) => F.selected = O.includes(F.value)) : N.refs ? qt(N.ref) ? N.refs.forEach((F) => {
824
845
  (!F.defaultChecked || !F.disabled) && (Array.isArray(O) ? F.checked = !!O.find((J) => J === F.value) : F.checked = O === F.value || !!O);
825
- }) : N.refs.forEach((F) => F.checked = F.value === O) : an(N.ref) ? N.ref.value = "" : (N.ref.value = O, N.ref.type || m.state.next({
846
+ }) : N.refs.forEach((F) => F.checked = F.value === O) : on(N.ref) ? N.ref.value = "" : (N.ref.value = O, N.ref.type || m.state.next({
826
847
  name: u,
827
848
  values: Ce(a)
828
849
  })));
@@ -844,7 +865,7 @@ function vi(t = {}) {
844
865
  name: u,
845
866
  dirtyFields: kt(s, a),
846
867
  isDirty: W(u, N)
847
- })) : A && !A._f && !Ve(N) ? be(u, N, g) : ue(u, N, g), In(u, o) ? m.state.next({
868
+ })) : A && !A._f && !Ve(N) ? be(u, N, g) : ue(u, N, g), Ln(u, o) ? m.state.next({
848
869
  ...r,
849
870
  name: u,
850
871
  values: Ce(a)
@@ -858,42 +879,42 @@ function vi(t = {}) {
858
879
  let g = y.name, A = !0;
859
880
  const O = L(n, g), N = (pe) => {
860
881
  A = Number.isNaN(pe) || vt(pe) && isNaN(pe.getTime()) || it(pe, L(a, g, pe));
861
- }, F = Tn(e.mode), J = Tn(e.reValidateMode);
882
+ }, F = Pn(e.mode), J = Pn(e.reValidateMode);
862
883
  if (O) {
863
884
  let pe, $e;
864
- const Je = y.type ? An(O._f) : Ja(u), Le = u.type === _t.BLUR || u.type === _t.FOCUS_OUT, Za = !di(O._f) && !t.validate && !e.resolver && !L(r.errors, g) && !O._f.deps || pi(Le, L(r.touchedFields, g), r.isSubmitted, J, F), _r = In(g, o, Le);
885
+ const Je = y.type ? Tn(O._f) : Xa(u), Le = u.type === _t.BLUR || u.type === _t.FOCUS_OUT, Za = !fi(O._f) && !t.validate && !e.resolver && !L(r.errors, g) && !O._f.deps || mi(Le, L(r.touchedFields, g), r.isSubmitted, J, F), wr = Ln(g, o, Le);
865
886
  ye(a, g, Je), Le ? (!y || !y.readOnly) && (O._f.onBlur && O._f.onBlur(u), c && c(0)) : O._f.onChange && O._f.onChange(u);
866
- const wr = Z(g, Je, Le), Ba = !Pe(wr) || _r;
887
+ const kr = Z(g, Je, Le), Ba = !Pe(kr) || wr;
867
888
  if (!Le && m.state.next({
868
889
  name: g,
869
890
  type: u.type,
870
891
  values: Ce(a)
871
892
  }), Za)
872
- return (d.isValid || p.isValid) && (e.mode === "onBlur" ? Le && S() : Le || S()), Ba && m.state.next({ name: g, ..._r ? {} : wr });
893
+ return (d.isValid || p.isValid) && (e.mode === "onBlur" ? Le && S() : Le || S()), Ba && m.state.next({ name: g, ...wr ? {} : kr });
873
894
  if (!e.resolver && t.validate && await re({
874
895
  name: g,
875
896
  eventType: u.type
876
- }), !Le && _r && m.state.next({ ...r }), e.resolver) {
877
- const { errors: _n } = await U([g]);
897
+ }), !Le && wr && m.state.next({ ...r }), e.resolver) {
898
+ const { errors: wn } = await z([g]);
878
899
  if (k([g]), N(Je), A) {
879
- const Wa = Ln(r.errors, n, g), wn = Ln(_n, n, Wa.name || g);
880
- pe = wn.error, g = wn.name, $e = Pe(_n);
900
+ const Wa = jn(r.errors, n, g), kn = jn(wn, n, Wa.name || g);
901
+ pe = kn.error, g = kn.name, $e = Pe(wn);
881
902
  }
882
903
  } else
883
- k([g], !0), pe = (await Mn(O, o.disabled, a, b, e.shouldUseNativeValidation))[g], k([g]), N(Je), A && (pe ? $e = !1 : (d.isValid || p.isValid) && ($e = await he({
904
+ k([g], !0), pe = (await Vn(O, o.disabled, a, b, e.shouldUseNativeValidation))[g], k([g]), N(Je), A && (pe ? $e = !1 : (d.isValid || p.isValid) && ($e = await he({
884
905
  fields: n,
885
906
  onlyCheckValid: !0,
886
907
  name: g,
887
908
  eventType: u.type
888
909
  })));
889
- A && (O._f.deps && (!Array.isArray(O._f.deps) || O._f.deps.length > 0) && R(O._f.deps), j(g, $e, pe, wr));
910
+ A && (O._f.deps && (!Array.isArray(O._f.deps) || O._f.deps.length > 0) && R(O._f.deps), j(g, $e, pe, kr));
890
911
  }
891
912
  }, _ = (u, y) => {
892
913
  if (L(r.errors, y) && u.focus)
893
914
  return u.focus(), 1;
894
915
  }, R = async (u, y = {}) => {
895
916
  let g, A;
896
- const O = $t(u);
917
+ const O = Ft(u);
897
918
  if (e.resolver) {
898
919
  const N = await B(xe(u) ? u : O);
899
920
  g = Pe(N), A = u ? !O.some((F) => L(N, F)) : g;
@@ -912,7 +933,7 @@ function vi(t = {}) {
912
933
  ...!Ie(u) || (d.isValid || p.isValid) && g !== r.isValid ? {} : { name: u },
913
934
  ...e.resolver || !u ? { isValid: g } : {},
914
935
  errors: r.errors
915
- }), y.shouldFocus && !A && Ft(n, _, u ? O : o.mount), A;
936
+ }), y.shouldFocus && !A && Dt(n, _, u ? O : o.mount), A;
916
937
  }, G = (u, y) => {
917
938
  let g = {
918
939
  ...i.mount ? a : s
@@ -925,7 +946,7 @@ function vi(t = {}) {
925
946
  isValidating: !!L(r.validatingFields, u),
926
947
  isTouched: !!L((y || r).touchedFields, u)
927
948
  }), K = (u) => {
928
- const y = u ? $t(u) : void 0;
949
+ const y = u ? Ft(u) : void 0;
929
950
  y == null || y.forEach((g) => ke(r.errors, g)), y ? y.forEach((g) => {
930
951
  m.state.next({
931
952
  name: g,
@@ -949,7 +970,7 @@ function vi(t = {}) {
949
970
  next: (g) => "values" in g && u(ne(void 0, y), g)
950
971
  }) : ne(u, y, !0), ee = (u) => m.state.subscribe({
951
972
  next: (y) => {
952
- hi(u.name, y.name, u.exact) && fi(y, u.formState || d, za, u.reRenderRoot) && u.callback({
973
+ pi(u.name, y.name, u.exact) && hi(y, u.formState || d, za, u.reRenderRoot) && u.callback({
953
974
  values: { ...a },
954
975
  ...r,
955
976
  ...y,
@@ -966,7 +987,7 @@ function vi(t = {}) {
966
987
  ...u.formState
967
988
  }
968
989
  })), oe = (u, y = {}) => {
969
- for (const g of u ? $t(u) : o.mount)
990
+ for (const g of u ? Ft(u) : o.mount)
970
991
  o.mount.delete(g), o.array.delete(g), y.keepValue || (ke(n, g), ke(a, g)), !y.keepError && ke(r.errors, g), !y.keepDirty && ke(r.dirtyFields, g), !y.keepTouched && ke(r.touchedFields, g), !y.keepIsValidating && ke(r.validatingFields, g), !e.shouldUnregister && !y.keepDefaultValue && ke(s, g);
971
992
  m.state.next({
972
993
  values: Ce(a)
@@ -997,11 +1018,11 @@ function vi(t = {}) {
997
1018
  ...A ? { disabled: y.disabled || e.disabled } : {},
998
1019
  ...e.progressive ? {
999
1020
  required: !!y.required,
1000
- min: Lt(y.min),
1001
- max: Lt(y.max),
1002
- minLength: Lt(y.minLength),
1003
- maxLength: Lt(y.maxLength),
1004
- pattern: Lt(y.pattern)
1021
+ min: jt(y.min),
1022
+ max: jt(y.max),
1023
+ minLength: jt(y.minLength),
1024
+ maxLength: jt(y.maxLength),
1025
+ pattern: jt(y.pattern)
1005
1026
  } : {},
1006
1027
  name: u,
1007
1028
  onChange: Ee,
@@ -1009,7 +1030,7 @@ function vi(t = {}) {
1009
1030
  ref: (O) => {
1010
1031
  if (O) {
1011
1032
  Re(u, y), g = L(n, u);
1012
- const N = xe(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, F = ai(N), J = g._f.refs || [];
1033
+ const N = xe(O.value) && O.querySelectorAll && O.querySelectorAll("input,select,textarea")[0] || O, F = ii(N), J = g._f.refs || [];
1013
1034
  if (F ? J.find((pe) => pe === N) : N === g._f.ref)
1014
1035
  return;
1015
1036
  ye(n, u, {
@@ -1017,7 +1038,7 @@ function vi(t = {}) {
1017
1038
  ...g._f,
1018
1039
  ...F ? {
1019
1040
  refs: [
1020
- ...J.filter(Sr),
1041
+ ...J.filter(Cr),
1021
1042
  N,
1022
1043
  ...Array.isArray(L(s, u)) ? [{}] : []
1023
1044
  ],
@@ -1026,11 +1047,11 @@ function vi(t = {}) {
1026
1047
  }
1027
1048
  }), x(u, !1, void 0, N);
1028
1049
  } else
1029
- g = L(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(Xa(o.array, u) && i.action) && o.unMount.add(u);
1050
+ g = L(n, u, {}), g._f && (g._f.mount = !1), (e.shouldUnregister || y.shouldUnregister) && !(Qa(o.array, u) && i.action) && o.unMount.add(u);
1030
1051
  }
1031
1052
  };
1032
- }, T = () => e.shouldFocusError && Ft(n, _, o.mount), Ue = (u) => {
1033
- Xe(u) && (m.state.next({ disabled: u }), Ft(n, (y, g) => {
1053
+ }, T = () => e.shouldFocusError && Dt(n, _, o.mount), Ue = (u) => {
1054
+ Xe(u) && (m.state.next({ disabled: u }), Dt(n, (y, g) => {
1034
1055
  const A = L(n, g);
1035
1056
  A && (y.disabled = A._f.disabled || u, Array.isArray(A._f.refs) && A._f.refs.forEach((O) => {
1036
1057
  O.disabled = A._f.disabled || u;
@@ -1043,7 +1064,7 @@ function vi(t = {}) {
1043
1064
  if (m.state.next({
1044
1065
  isSubmitting: !0
1045
1066
  }), e.resolver) {
1046
- const { errors: N, values: F } = await U();
1067
+ const { errors: N, values: F } = await z();
1047
1068
  k(), r.errors = N, O = Ce(F);
1048
1069
  } else
1049
1070
  await he({
@@ -1074,7 +1095,7 @@ function vi(t = {}) {
1074
1095
  throw A;
1075
1096
  }, Ht = (u, y = {}) => {
1076
1097
  L(n, u) && (xe(y.defaultValue) ? we(u, Ce(L(s, u))) : (we(u, y.defaultValue), ye(s, u, Ce(y.defaultValue))), y.keepTouched || ke(r.touchedFields, u), y.keepDirty || (ke(r.dirtyFields, u), r.isDirty = y.defaultValue ? W(u, Ce(L(s, u))) : W()), y.keepError || (ke(r.errors, u), d.isValid && S()), m.state.next({ ...r }));
1077
- }, vn = (u, y = {}) => {
1098
+ }, bn = (u, y = {}) => {
1078
1099
  const g = u ? Ce(u) : s, A = Ce(g), O = Pe(u), N = O ? s : A;
1079
1100
  if (y.keepDefaultValues || (s = g), !y.keepValues) {
1080
1101
  if (y.keepDirtyValues) {
@@ -1087,7 +1108,7 @@ function vi(t = {}) {
1087
1108
  pe && !xe($e) ? ye(N, J, $e) : !pe && !xe(Je) && we(J, Je);
1088
1109
  }
1089
1110
  } else {
1090
- if (rn && xe(u))
1111
+ if (nn && xe(u))
1091
1112
  for (const F of o.mount) {
1092
1113
  const J = L(n, F);
1093
1114
  if (J && J._f) {
@@ -1132,7 +1153,7 @@ function vi(t = {}) {
1132
1153
  isSubmitting: !1,
1133
1154
  defaultValues: s
1134
1155
  });
1135
- }, bn = (u, y) => vn(Ye(u) ? u(a) : u, { ...e.resetOptions, ...y }), Ua = (u, y = {}) => {
1156
+ }, xn = (u, y) => bn(Ye(u) ? u(a) : u, { ...e.resetOptions, ...y }), Ua = (u, y = {}) => {
1136
1157
  const g = L(n, u), A = g && g._f;
1137
1158
  if (A) {
1138
1159
  const O = A.refs ? A.refs[0] : A.ref;
@@ -1145,7 +1166,7 @@ function vi(t = {}) {
1145
1166
  ...r,
1146
1167
  ...u
1147
1168
  };
1148
- }, xn = {
1169
+ }, _n = {
1149
1170
  control: {
1150
1171
  register: Re,
1151
1172
  unregister: oe,
@@ -1153,7 +1174,7 @@ function vi(t = {}) {
1153
1174
  handleSubmit: yt,
1154
1175
  setError: se,
1155
1176
  _subscribe: ee,
1156
- _runSchema: U,
1177
+ _runSchema: z,
1157
1178
  _updateIsValidating: k,
1158
1179
  _focusError: T,
1159
1180
  _getWatch: ne,
@@ -1163,9 +1184,9 @@ function vi(t = {}) {
1163
1184
  _setDisabledField: ae,
1164
1185
  _setErrors: I,
1165
1186
  _getFieldArray: ve,
1166
- _reset: vn,
1187
+ _reset: bn,
1167
1188
  _resetDefaultValues: () => Ye(e.defaultValues) && e.defaultValues().then((u) => {
1168
- bn(u, e.resetOptions), m.state.next({
1189
+ xn(u, e.resetOptions), m.state.next({
1169
1190
  isLoading: !1
1170
1191
  });
1171
1192
  }),
@@ -1214,7 +1235,7 @@ function vi(t = {}) {
1214
1235
  watch: Q,
1215
1236
  setValue: we,
1216
1237
  getValues: G,
1217
- reset: bn,
1238
+ reset: xn,
1218
1239
  resetField: Ht,
1219
1240
  clearErrors: K,
1220
1241
  unregister: oe,
@@ -1223,8 +1244,8 @@ function vi(t = {}) {
1223
1244
  getFieldState: q
1224
1245
  };
1225
1246
  return {
1226
- ...xn,
1227
- formControl: xn
1247
+ ..._n,
1248
+ formControl: _n
1228
1249
  };
1229
1250
  }
1230
1251
  function ir(t = {}) {
@@ -1252,14 +1273,14 @@ function ir(t = {}) {
1252
1273
  formState: n
1253
1274
  }, t.defaultValues && !Ye(t.defaultValues) && t.formControl.reset(t.defaultValues, t.resetOptions);
1254
1275
  else {
1255
- const { formControl: i, ...o } = vi(t);
1276
+ const { formControl: i, ...o } = bi(t);
1256
1277
  e.current = {
1257
1278
  ...o,
1258
1279
  formState: n
1259
1280
  };
1260
1281
  }
1261
1282
  const a = e.current.control;
1262
- return a._options = t, ri(() => {
1283
+ return a._options = t, ni(() => {
1263
1284
  const i = a._subscribe({
1264
1285
  formState: a._proxyFormState,
1265
1286
  callback: () => s({ ...a._formState }),
@@ -1292,9 +1313,9 @@ function ir(t = {}) {
1292
1313
  }), !((i = a._options.resetOptions) === null || i === void 0) && i.keepIsValid || a._setValid(), r.current = t.values, s((o) => ({ ...o }))) : a._resetDefaultValues();
1293
1314
  }, [a, t.values]), Ne.useEffect(() => {
1294
1315
  a._state.mount || (a._setValid(), a._state.mount = !0), a._state.watch && (a._state.watch = !1, a._subjects.state.next({ ...a._formState })), a._removeUnmounted();
1295
- }), e.current.formState = Ne.useMemo(() => ti(n, a), [a, n]), e.current;
1316
+ }), e.current.formState = Ne.useMemo(() => ri(n, a), [a, n]), e.current;
1296
1317
  }
1297
- const Vn = (t, e, r) => {
1318
+ const $n = (t, e, r) => {
1298
1319
  if (t && "reportValidity" in t) {
1299
1320
  const n = L(r, e);
1300
1321
  t.setCustomValidity(n && n.message || ""), t.reportValidity();
@@ -1302,21 +1323,21 @@ const Vn = (t, e, r) => {
1302
1323
  }, Zs = (t, e) => {
1303
1324
  for (const r in e.fields) {
1304
1325
  const n = e.fields[r];
1305
- n && n.ref && "reportValidity" in n.ref ? Vn(n.ref, r, t) : n.refs && n.refs.forEach((s) => Vn(s, r, t));
1326
+ n && n.ref && "reportValidity" in n.ref ? $n(n.ref, r, t) : n.refs && n.refs.forEach((s) => $n(s, r, t));
1306
1327
  }
1307
- }, bi = (t, e) => {
1328
+ }, xi = (t, e) => {
1308
1329
  e.shouldUseNativeValidation && Zs(t, e);
1309
1330
  const r = {};
1310
1331
  for (const n in t) {
1311
1332
  const s = L(e.fields, n), a = Object.assign(t[n] || {}, { ref: s && s.ref });
1312
- if (xi(e.names || Object.keys(t), n)) {
1333
+ if (_i(e.names || Object.keys(t), n)) {
1313
1334
  const i = Object.assign({}, L(r, n));
1314
1335
  ye(i, "root", a), ye(r, n, i);
1315
1336
  } else ye(r, n, a);
1316
1337
  }
1317
1338
  return r;
1318
- }, xi = (t, e) => t.some((r) => r.startsWith(e + "."));
1319
- var _i = function(t, e) {
1339
+ }, _i = (t, e) => t.some((r) => r.startsWith(e + "."));
1340
+ var wi = function(t, e) {
1320
1341
  for (var r = {}; t.length; ) {
1321
1342
  var n = t[0], s = n.code, a = n.message, i = n.path.join(".");
1322
1343
  if (!r[i]) if ("unionErrors" in n) {
@@ -1349,7 +1370,7 @@ var _i = function(t, e) {
1349
1370
  })(0, function(i) {
1350
1371
  if ((function(o) {
1351
1372
  return Array.isArray(o == null ? void 0 : o.errors);
1352
- })(i)) return { values: {}, errors: bi(_i(i.errors, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
1373
+ })(i)) return { values: {}, errors: xi(wi(i.errors, !a.shouldUseNativeValidation && a.criteriaMode === "all"), a) };
1353
1374
  throw i;
1354
1375
  }));
1355
1376
  } catch (i) {
@@ -1393,14 +1414,14 @@ var _i = function(t, e) {
1393
1414
  }
1394
1415
  t.joinValues = n, t.jsonStringifyReplacer = (s, a) => typeof a == "bigint" ? a.toString() : a;
1395
1416
  })(le || (le = {}));
1396
- var $n;
1417
+ var Fn;
1397
1418
  (function(t) {
1398
1419
  t.mergeShapes = (e, r) => ({
1399
1420
  ...e,
1400
1421
  ...r
1401
1422
  // second overwrites first
1402
1423
  });
1403
- })($n || ($n = {}));
1424
+ })(Fn || (Fn = {}));
1404
1425
  const V = le.arrayToEnum([
1405
1426
  "string",
1406
1427
  "nan",
@@ -1525,7 +1546,7 @@ class rt extends Error {
1525
1546
  }
1526
1547
  }
1527
1548
  rt.create = (t) => new rt(t);
1528
- const Fr = (t, e) => {
1549
+ const Dr = (t, e) => {
1529
1550
  let r;
1530
1551
  switch (t.code) {
1531
1552
  case E.invalid_type:
@@ -1581,11 +1602,11 @@ const Fr = (t, e) => {
1581
1602
  }
1582
1603
  return { message: r };
1583
1604
  };
1584
- let wi = Fr;
1585
- function ki() {
1586
- return wi;
1605
+ let ki = Dr;
1606
+ function Si() {
1607
+ return ki;
1587
1608
  }
1588
- const Si = (t) => {
1609
+ const Ci = (t) => {
1589
1610
  const { data: e, path: r, errorMaps: n, issueData: s } = t, a = [...r, ...s.path || []], i = {
1590
1611
  ...s,
1591
1612
  path: a
@@ -1607,7 +1628,7 @@ const Si = (t) => {
1607
1628
  };
1608
1629
  };
1609
1630
  function P(t, e) {
1610
- const r = ki(), n = Si({
1631
+ const r = Si(), n = Ci({
1611
1632
  issueData: e,
1612
1633
  data: t.data,
1613
1634
  path: t.path,
@@ -1618,7 +1639,7 @@ function P(t, e) {
1618
1639
  // then schema-bound map if available
1619
1640
  r,
1620
1641
  // then global override map
1621
- r === Fr ? void 0 : Fr
1642
+ r === Dr ? void 0 : Dr
1622
1643
  // then global default map
1623
1644
  ].filter((s) => !!s)
1624
1645
  });
@@ -1667,7 +1688,7 @@ class De {
1667
1688
  }
1668
1689
  const H = Object.freeze({
1669
1690
  status: "aborted"
1670
- }), Vt = (t) => ({ status: "dirty", value: t }), We = (t) => ({ status: "valid", value: t }), Fn = (t) => t.status === "aborted", Dn = (t) => t.status === "dirty", Et = (t) => t.status === "valid", cr = (t) => typeof Promise < "u" && t instanceof Promise;
1691
+ }), $t = (t) => ({ status: "dirty", value: t }), We = (t) => ({ status: "valid", value: t }), Dn = (t) => t.status === "aborted", Un = (t) => t.status === "dirty", Et = (t) => t.status === "valid", cr = (t) => typeof Promise < "u" && t instanceof Promise;
1671
1692
  var $;
1672
1693
  (function(t) {
1673
1694
  t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
@@ -1680,7 +1701,7 @@ class ft {
1680
1701
  return this._cachedPath.length || (Array.isArray(this._key) ? this._cachedPath.push(...this._path, ...this._key) : this._cachedPath.push(...this._path, this._key)), this._cachedPath;
1681
1702
  }
1682
1703
  }
1683
- const Un = (t, e) => {
1704
+ const zn = (t, e) => {
1684
1705
  if (Et(e))
1685
1706
  return { success: !0, data: e.value };
1686
1707
  if (!t.common.issues.length)
@@ -1765,7 +1786,7 @@ class ce {
1765
1786
  data: e,
1766
1787
  parsedType: at(e)
1767
1788
  }, s = this._parseSync({ data: e, path: n.path, parent: n });
1768
- return Un(n, s);
1789
+ return zn(n, s);
1769
1790
  }
1770
1791
  "~validate"(e) {
1771
1792
  var n, s;
@@ -1819,7 +1840,7 @@ class ce {
1819
1840
  data: e,
1820
1841
  parsedType: at(e)
1821
1842
  }, s = this._parse({ data: e, path: n.path, parent: n }), a = await (cr(s) ? s : Promise.resolve(s));
1822
- return Un(n, a);
1843
+ return zn(n, a);
1823
1844
  }
1824
1845
  refine(e, r) {
1825
1846
  const n = (s) => typeof r == "string" || typeof r > "u" ? { message: r } : typeof r == "function" ? r(s) : r;
@@ -1882,7 +1903,7 @@ class ce {
1882
1903
  }
1883
1904
  default(e) {
1884
1905
  const r = typeof e == "function" ? e : () => e;
1885
- return new zr({
1906
+ return new Zr({
1886
1907
  ...te(this._def),
1887
1908
  innerType: this,
1888
1909
  defaultValue: r,
@@ -1890,7 +1911,7 @@ class ce {
1890
1911
  });
1891
1912
  }
1892
1913
  brand() {
1893
- return new Gi({
1914
+ return new Hi({
1894
1915
  typeName: Y.ZodBranded,
1895
1916
  type: this,
1896
1917
  ...te(this._def)
@@ -1898,7 +1919,7 @@ class ce {
1898
1919
  }
1899
1920
  catch(e) {
1900
1921
  const r = typeof e == "function" ? e : () => e;
1901
- return new Zr({
1922
+ return new Br({
1902
1923
  ...te(this._def),
1903
1924
  innerType: this,
1904
1925
  catchValue: r,
@@ -1913,10 +1934,10 @@ class ce {
1913
1934
  });
1914
1935
  }
1915
1936
  pipe(e) {
1916
- return cn.create(this, e);
1937
+ return ln.create(this, e);
1917
1938
  }
1918
1939
  readonly() {
1919
- return Br.create(this);
1940
+ return Wr.create(this);
1920
1941
  }
1921
1942
  isOptional() {
1922
1943
  return this.safeParse(void 0).success;
@@ -1925,28 +1946,28 @@ class ce {
1925
1946
  return this.safeParse(null).success;
1926
1947
  }
1927
1948
  }
1928
- const Ci = /^c[^\s-]{8,}$/i, Ei = /^[0-9a-z]+$/, Ri = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Oi = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Ni = /^[a-z0-9_-]{21}$/i, Ai = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Ti = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Pi = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Ii = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1929
- let Cr;
1930
- const Li = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, Mi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Vi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, $i = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Fi = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Bs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Di = new RegExp(`^${Bs}$`);
1949
+ const Ei = /^c[^\s-]{8,}$/i, Ri = /^[0-9a-z]+$/, Oi = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Ni = /^[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, Ai = /^[a-z0-9_-]{21}$/i, Ti = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, Pi = /^[-+]?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)?)??$/, Ii = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Li = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
1950
+ let Er;
1951
+ const ji = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Mi = /^(?:(?: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])$/, Vi = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, $i = /^(([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])$/, Fi = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Di = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, Bs = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Ui = new RegExp(`^${Bs}$`);
1931
1952
  function Ws(t) {
1932
1953
  let e = "[0-5]\\d";
1933
1954
  t.precision ? e = `${e}\\.\\d{${t.precision}}` : t.precision == null && (e = `${e}(\\.\\d+)?`);
1934
1955
  const r = t.precision ? "+" : "?";
1935
1956
  return `([01]\\d|2[0-3]):[0-5]\\d(:${e})${r}`;
1936
1957
  }
1937
- function Ui(t) {
1958
+ function zi(t) {
1938
1959
  return new RegExp(`^${Ws(t)}$`);
1939
1960
  }
1940
- function zi(t) {
1961
+ function Zi(t) {
1941
1962
  let e = `${Bs}T${Ws(t)}`;
1942
1963
  const r = [];
1943
1964
  return r.push(t.local ? "Z?" : "Z"), t.offset && r.push("([+-]\\d{2}:?\\d{2})"), e = `${e}(${r.join("|")})`, new RegExp(`^${e}$`);
1944
1965
  }
1945
- function Zi(t, e) {
1946
- return !!((e === "v4" || !e) && Li.test(t) || (e === "v6" || !e) && Mi.test(t));
1947
- }
1948
1966
  function Bi(t, e) {
1949
- if (!Ai.test(t))
1967
+ return !!((e === "v4" || !e) && ji.test(t) || (e === "v6" || !e) && Vi.test(t));
1968
+ }
1969
+ function Wi(t, e) {
1970
+ if (!Ti.test(t))
1950
1971
  return !1;
1951
1972
  try {
1952
1973
  const [r] = t.split(".");
@@ -1958,8 +1979,8 @@ function Bi(t, e) {
1958
1979
  return !1;
1959
1980
  }
1960
1981
  }
1961
- function Wi(t, e) {
1962
- return !!((e === "v4" || !e) && ji.test(t) || (e === "v6" || !e) && Vi.test(t));
1982
+ function qi(t, e) {
1983
+ return !!((e === "v4" || !e) && Mi.test(t) || (e === "v6" || !e) && $i.test(t));
1963
1984
  }
1964
1985
  class ct extends ce {
1965
1986
  _parse(e) {
@@ -2010,43 +2031,43 @@ class ct extends ce {
2010
2031
  message: a.message
2011
2032
  }), n.dirty());
2012
2033
  } else if (a.kind === "email")
2013
- Pi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2034
+ Ii.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2014
2035
  validation: "email",
2015
2036
  code: E.invalid_string,
2016
2037
  message: a.message
2017
2038
  }), n.dirty());
2018
2039
  else if (a.kind === "emoji")
2019
- Cr || (Cr = new RegExp(Ii, "u")), Cr.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2040
+ Er || (Er = new RegExp(Li, "u")), Er.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2020
2041
  validation: "emoji",
2021
2042
  code: E.invalid_string,
2022
2043
  message: a.message
2023
2044
  }), n.dirty());
2024
2045
  else if (a.kind === "uuid")
2025
- Oi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2046
+ Ni.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2026
2047
  validation: "uuid",
2027
2048
  code: E.invalid_string,
2028
2049
  message: a.message
2029
2050
  }), n.dirty());
2030
2051
  else if (a.kind === "nanoid")
2031
- Ni.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2052
+ Ai.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2032
2053
  validation: "nanoid",
2033
2054
  code: E.invalid_string,
2034
2055
  message: a.message
2035
2056
  }), n.dirty());
2036
2057
  else if (a.kind === "cuid")
2037
- Ci.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2058
+ Ei.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2038
2059
  validation: "cuid",
2039
2060
  code: E.invalid_string,
2040
2061
  message: a.message
2041
2062
  }), n.dirty());
2042
2063
  else if (a.kind === "cuid2")
2043
- Ei.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2064
+ Ri.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2044
2065
  validation: "cuid2",
2045
2066
  code: E.invalid_string,
2046
2067
  message: a.message
2047
2068
  }), n.dirty());
2048
2069
  else if (a.kind === "ulid")
2049
- Ri.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2070
+ Oi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2050
2071
  validation: "ulid",
2051
2072
  code: E.invalid_string,
2052
2073
  message: a.message
@@ -2077,39 +2098,39 @@ class ct extends ce {
2077
2098
  code: E.invalid_string,
2078
2099
  validation: { endsWith: a.value },
2079
2100
  message: a.message
2080
- }), n.dirty()) : a.kind === "datetime" ? zi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2101
+ }), n.dirty()) : a.kind === "datetime" ? Zi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2081
2102
  code: E.invalid_string,
2082
2103
  validation: "datetime",
2083
2104
  message: a.message
2084
- }), n.dirty()) : a.kind === "date" ? Di.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2105
+ }), n.dirty()) : a.kind === "date" ? Ui.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2085
2106
  code: E.invalid_string,
2086
2107
  validation: "date",
2087
2108
  message: a.message
2088
- }), n.dirty()) : a.kind === "time" ? Ui(a).test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2109
+ }), n.dirty()) : a.kind === "time" ? zi(a).test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2089
2110
  code: E.invalid_string,
2090
2111
  validation: "time",
2091
2112
  message: a.message
2092
- }), n.dirty()) : a.kind === "duration" ? Ti.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2113
+ }), n.dirty()) : a.kind === "duration" ? Pi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2093
2114
  validation: "duration",
2094
2115
  code: E.invalid_string,
2095
2116
  message: a.message
2096
- }), n.dirty()) : a.kind === "ip" ? Zi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), P(s, {
2117
+ }), n.dirty()) : a.kind === "ip" ? Bi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), P(s, {
2097
2118
  validation: "ip",
2098
2119
  code: E.invalid_string,
2099
2120
  message: a.message
2100
- }), n.dirty()) : a.kind === "jwt" ? Bi(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), P(s, {
2121
+ }), n.dirty()) : a.kind === "jwt" ? Wi(e.data, a.alg) || (s = this._getOrReturnCtx(e, s), P(s, {
2101
2122
  validation: "jwt",
2102
2123
  code: E.invalid_string,
2103
2124
  message: a.message
2104
- }), n.dirty()) : a.kind === "cidr" ? Wi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), P(s, {
2125
+ }), n.dirty()) : a.kind === "cidr" ? qi(e.data, a.version) || (s = this._getOrReturnCtx(e, s), P(s, {
2105
2126
  validation: "cidr",
2106
2127
  code: E.invalid_string,
2107
2128
  message: a.message
2108
- }), n.dirty()) : a.kind === "base64" ? $i.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2129
+ }), n.dirty()) : a.kind === "base64" ? Fi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2109
2130
  validation: "base64",
2110
2131
  code: E.invalid_string,
2111
2132
  message: a.message
2112
- }), n.dirty()) : a.kind === "base64url" ? Fi.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2133
+ }), n.dirty()) : a.kind === "base64url" ? Di.test(e.data) || (s = this._getOrReturnCtx(e, s), P(s, {
2113
2134
  validation: "base64url",
2114
2135
  code: E.invalid_string,
2115
2136
  message: a.message
@@ -2344,11 +2365,11 @@ ct.create = (t) => new ct({
2344
2365
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
2345
2366
  ...te(t)
2346
2367
  });
2347
- function qi(t, e) {
2368
+ function Gi(t, e) {
2348
2369
  const r = (t.toString().split(".")[1] || "").length, n = (e.toString().split(".")[1] || "").length, s = r > n ? r : n, a = Number.parseInt(t.toFixed(s).replace(".", "")), i = Number.parseInt(e.toFixed(s).replace(".", ""));
2349
2370
  return a % i / 10 ** s;
2350
2371
  }
2351
- class Ut extends ce {
2372
+ class zt extends ce {
2352
2373
  constructor() {
2353
2374
  super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
2354
2375
  }
@@ -2383,7 +2404,7 @@ class Ut extends ce {
2383
2404
  inclusive: a.inclusive,
2384
2405
  exact: !1,
2385
2406
  message: a.message
2386
- }), s.dirty()) : a.kind === "multipleOf" ? qi(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), P(n, {
2407
+ }), s.dirty()) : a.kind === "multipleOf" ? Gi(e.data, a.value) !== 0 && (n = this._getOrReturnCtx(e, n), P(n, {
2387
2408
  code: E.not_multiple_of,
2388
2409
  multipleOf: a.value,
2389
2410
  message: a.message
@@ -2406,7 +2427,7 @@ class Ut extends ce {
2406
2427
  return this.setLimit("max", e, !1, $.toString(r));
2407
2428
  }
2408
2429
  setLimit(e, r, n, s) {
2409
- return new Ut({
2430
+ return new zt({
2410
2431
  ...this._def,
2411
2432
  checks: [
2412
2433
  ...this._def.checks,
@@ -2420,7 +2441,7 @@ class Ut extends ce {
2420
2441
  });
2421
2442
  }
2422
2443
  _addCheck(e) {
2423
- return new Ut({
2444
+ return new zt({
2424
2445
  ...this._def,
2425
2446
  checks: [...this._def.checks, e]
2426
2447
  });
@@ -2514,13 +2535,13 @@ class Ut extends ce {
2514
2535
  return Number.isFinite(r) && Number.isFinite(e);
2515
2536
  }
2516
2537
  }
2517
- Ut.create = (t) => new Ut({
2538
+ zt.create = (t) => new zt({
2518
2539
  checks: [],
2519
2540
  typeName: Y.ZodNumber,
2520
2541
  coerce: (t == null ? void 0 : t.coerce) || !1,
2521
2542
  ...te(t)
2522
2543
  });
2523
- class zt extends ce {
2544
+ class Zt extends ce {
2524
2545
  constructor() {
2525
2546
  super(...arguments), this.min = this.gte, this.max = this.lte;
2526
2547
  }
@@ -2576,7 +2597,7 @@ class zt extends ce {
2576
2597
  return this.setLimit("max", e, !1, $.toString(r));
2577
2598
  }
2578
2599
  setLimit(e, r, n, s) {
2579
- return new zt({
2600
+ return new Zt({
2580
2601
  ...this._def,
2581
2602
  checks: [
2582
2603
  ...this._def.checks,
@@ -2590,7 +2611,7 @@ class zt extends ce {
2590
2611
  });
2591
2612
  }
2592
2613
  _addCheck(e) {
2593
- return new zt({
2614
+ return new Zt({
2594
2615
  ...this._def,
2595
2616
  checks: [...this._def.checks, e]
2596
2617
  });
@@ -2647,13 +2668,13 @@ class zt extends ce {
2647
2668
  return e;
2648
2669
  }
2649
2670
  }
2650
- zt.create = (t) => new zt({
2671
+ Zt.create = (t) => new Zt({
2651
2672
  checks: [],
2652
2673
  typeName: Y.ZodBigInt,
2653
2674
  coerce: (t == null ? void 0 : t.coerce) ?? !1,
2654
2675
  ...te(t)
2655
2676
  });
2656
- class zn extends ce {
2677
+ class Zn extends ce {
2657
2678
  _parse(e) {
2658
2679
  if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== V.boolean) {
2659
2680
  const n = this._getOrReturnCtx(e);
@@ -2666,7 +2687,7 @@ class zn extends ce {
2666
2687
  return We(e.data);
2667
2688
  }
2668
2689
  }
2669
- zn.create = (t) => new zn({
2690
+ Zn.create = (t) => new Zn({
2670
2691
  typeName: Y.ZodBoolean,
2671
2692
  coerce: (t == null ? void 0 : t.coerce) || !1,
2672
2693
  ...te(t)
@@ -2749,7 +2770,7 @@ lr.create = (t) => new lr({
2749
2770
  typeName: Y.ZodDate,
2750
2771
  ...te(t)
2751
2772
  });
2752
- class Zn extends ce {
2773
+ class Bn extends ce {
2753
2774
  _parse(e) {
2754
2775
  if (this._getType(e) !== V.symbol) {
2755
2776
  const n = this._getOrReturnCtx(e);
@@ -2762,11 +2783,11 @@ class Zn extends ce {
2762
2783
  return We(e.data);
2763
2784
  }
2764
2785
  }
2765
- Zn.create = (t) => new Zn({
2786
+ Bn.create = (t) => new Bn({
2766
2787
  typeName: Y.ZodSymbol,
2767
2788
  ...te(t)
2768
2789
  });
2769
- class Bn extends ce {
2790
+ class Wn extends ce {
2770
2791
  _parse(e) {
2771
2792
  if (this._getType(e) !== V.undefined) {
2772
2793
  const n = this._getOrReturnCtx(e);
@@ -2779,11 +2800,11 @@ class Bn extends ce {
2779
2800
  return We(e.data);
2780
2801
  }
2781
2802
  }
2782
- Bn.create = (t) => new Bn({
2803
+ Wn.create = (t) => new Wn({
2783
2804
  typeName: Y.ZodUndefined,
2784
2805
  ...te(t)
2785
2806
  });
2786
- class Wn extends ce {
2807
+ class qn extends ce {
2787
2808
  _parse(e) {
2788
2809
  if (this._getType(e) !== V.null) {
2789
2810
  const n = this._getOrReturnCtx(e);
@@ -2796,11 +2817,11 @@ class Wn extends ce {
2796
2817
  return We(e.data);
2797
2818
  }
2798
2819
  }
2799
- Wn.create = (t) => new Wn({
2820
+ qn.create = (t) => new qn({
2800
2821
  typeName: Y.ZodNull,
2801
2822
  ...te(t)
2802
2823
  });
2803
- class qn extends ce {
2824
+ class Gn extends ce {
2804
2825
  constructor() {
2805
2826
  super(...arguments), this._any = !0;
2806
2827
  }
@@ -2808,11 +2829,11 @@ class qn extends ce {
2808
2829
  return We(e.data);
2809
2830
  }
2810
2831
  }
2811
- qn.create = (t) => new qn({
2832
+ Gn.create = (t) => new Gn({
2812
2833
  typeName: Y.ZodAny,
2813
2834
  ...te(t)
2814
2835
  });
2815
- class Gn extends ce {
2836
+ class Hn extends ce {
2816
2837
  constructor() {
2817
2838
  super(...arguments), this._unknown = !0;
2818
2839
  }
@@ -2820,7 +2841,7 @@ class Gn extends ce {
2820
2841
  return We(e.data);
2821
2842
  }
2822
2843
  }
2823
- Gn.create = (t) => new Gn({
2844
+ Hn.create = (t) => new Hn({
2824
2845
  typeName: Y.ZodUnknown,
2825
2846
  ...te(t)
2826
2847
  });
@@ -2838,7 +2859,7 @@ ht.create = (t) => new ht({
2838
2859
  typeName: Y.ZodNever,
2839
2860
  ...te(t)
2840
2861
  });
2841
- class Hn extends ce {
2862
+ class Yn extends ce {
2842
2863
  _parse(e) {
2843
2864
  if (this._getType(e) !== V.undefined) {
2844
2865
  const n = this._getOrReturnCtx(e);
@@ -2851,7 +2872,7 @@ class Hn extends ce {
2851
2872
  return We(e.data);
2852
2873
  }
2853
2874
  }
2854
- Hn.create = (t) => new Hn({
2875
+ Yn.create = (t) => new Yn({
2855
2876
  typeName: Y.ZodVoid,
2856
2877
  ...te(t)
2857
2878
  });
@@ -3305,14 +3326,14 @@ ur.create = (t, e) => new ur({
3305
3326
  typeName: Y.ZodUnion,
3306
3327
  ...te(e)
3307
3328
  });
3308
- function Dr(t, e) {
3329
+ function Ur(t, e) {
3309
3330
  const r = at(t), n = at(e);
3310
3331
  if (t === e)
3311
3332
  return { valid: !0, data: t };
3312
3333
  if (r === V.object && n === V.object) {
3313
3334
  const s = le.objectKeys(e), a = le.objectKeys(t).filter((o) => s.indexOf(o) !== -1), i = { ...t, ...e };
3314
3335
  for (const o of a) {
3315
- const c = Dr(t[o], e[o]);
3336
+ const c = Ur(t[o], e[o]);
3316
3337
  if (!c.valid)
3317
3338
  return { valid: !1 };
3318
3339
  i[o] = c.data;
@@ -3323,7 +3344,7 @@ function Dr(t, e) {
3323
3344
  return { valid: !1 };
3324
3345
  const s = [];
3325
3346
  for (let a = 0; a < t.length; a++) {
3326
- const i = t[a], o = e[a], c = Dr(i, o);
3347
+ const i = t[a], o = e[a], c = Ur(i, o);
3327
3348
  if (!c.valid)
3328
3349
  return { valid: !1 };
3329
3350
  s.push(c.data);
@@ -3334,10 +3355,10 @@ function Dr(t, e) {
3334
3355
  class dr extends ce {
3335
3356
  _parse(e) {
3336
3357
  const { status: r, ctx: n } = this._processInputParams(e), s = (a, i) => {
3337
- if (Fn(a) || Fn(i))
3358
+ if (Dn(a) || Dn(i))
3338
3359
  return H;
3339
- const o = Dr(a.value, i.value);
3340
- return o.valid ? ((Dn(a) || Dn(i)) && r.dirty(), { status: r.value, value: o.data }) : (P(n, {
3360
+ const o = Ur(a.value, i.value);
3361
+ return o.valid ? ((Un(a) || Un(i)) && r.dirty(), { status: r.value, value: o.data }) : (P(n, {
3341
3362
  code: E.invalid_intersection_types
3342
3363
  }), H);
3343
3364
  };
@@ -3419,7 +3440,7 @@ bt.create = (t, e) => {
3419
3440
  ...te(e)
3420
3441
  });
3421
3442
  };
3422
- class Yn extends ce {
3443
+ class Kn extends ce {
3423
3444
  get keySchema() {
3424
3445
  return this._def.keyType;
3425
3446
  }
@@ -3461,13 +3482,13 @@ class Yn extends ce {
3461
3482
  }
3462
3483
  }
3463
3484
  }
3464
- Yn.create = (t, e, r) => new Yn({
3485
+ Kn.create = (t, e, r) => new Kn({
3465
3486
  valueType: e,
3466
3487
  keyType: t,
3467
3488
  typeName: Y.ZodMap,
3468
3489
  ...te(r)
3469
3490
  });
3470
- class Zt extends ce {
3491
+ class Bt extends ce {
3471
3492
  _parse(e) {
3472
3493
  const { status: r, ctx: n } = this._processInputParams(e);
3473
3494
  if (n.parsedType !== V.set)
@@ -3506,13 +3527,13 @@ class Zt extends ce {
3506
3527
  return n.common.async ? Promise.all(o).then((c) => i(c)) : i(o);
3507
3528
  }
3508
3529
  min(e, r) {
3509
- return new Zt({
3530
+ return new Bt({
3510
3531
  ...this._def,
3511
3532
  minSize: { value: e, message: $.toString(r) }
3512
3533
  });
3513
3534
  }
3514
3535
  max(e, r) {
3515
- return new Zt({
3536
+ return new Bt({
3516
3537
  ...this._def,
3517
3538
  maxSize: { value: e, message: $.toString(r) }
3518
3539
  });
@@ -3524,14 +3545,14 @@ class Zt extends ce {
3524
3545
  return this.min(1, e);
3525
3546
  }
3526
3547
  }
3527
- Zt.create = (t, e) => new Zt({
3548
+ Bt.create = (t, e) => new Bt({
3528
3549
  valueType: t,
3529
3550
  minSize: null,
3530
3551
  maxSize: null,
3531
3552
  typeName: Y.ZodSet,
3532
3553
  ...te(e)
3533
3554
  });
3534
- class Kn extends ce {
3555
+ class Jn extends ce {
3535
3556
  get schema() {
3536
3557
  return this._def.getter();
3537
3558
  }
@@ -3540,12 +3561,12 @@ class Kn extends ce {
3540
3561
  return this._def.getter()._parse({ data: r.data, path: r.path, parent: r });
3541
3562
  }
3542
3563
  }
3543
- Kn.create = (t, e) => new Kn({
3564
+ Jn.create = (t, e) => new Jn({
3544
3565
  getter: t,
3545
3566
  typeName: Y.ZodLazy,
3546
3567
  ...te(e)
3547
3568
  });
3548
- class Ur extends ce {
3569
+ class zr extends ce {
3549
3570
  _parse(e) {
3550
3571
  if (e.data !== this._def.value) {
3551
3572
  const r = this._getOrReturnCtx(e);
@@ -3561,7 +3582,7 @@ class Ur extends ce {
3561
3582
  return this._def.value;
3562
3583
  }
3563
3584
  }
3564
- Ur.create = (t, e) => new Ur({
3585
+ zr.create = (t, e) => new zr({
3565
3586
  value: t,
3566
3587
  typeName: Y.ZodLiteral,
3567
3588
  ...te(e)
@@ -3628,7 +3649,7 @@ class Rt extends ce {
3628
3649
  }
3629
3650
  }
3630
3651
  Rt.create = qs;
3631
- class Jn extends ce {
3652
+ class Xn extends ce {
3632
3653
  _parse(e) {
3633
3654
  const r = le.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
3634
3655
  if (n.parsedType !== V.string && n.parsedType !== V.number) {
@@ -3653,7 +3674,7 @@ class Jn extends ce {
3653
3674
  return this._def.values;
3654
3675
  }
3655
3676
  }
3656
- Jn.create = (t, e) => new Jn({
3677
+ Xn.create = (t, e) => new Xn({
3657
3678
  values: t,
3658
3679
  typeName: Y.ZodNativeEnum,
3659
3680
  ...te(e)
@@ -3709,7 +3730,7 @@ class Ot extends ce {
3709
3730
  path: n.path,
3710
3731
  parent: n
3711
3732
  });
3712
- return c.status === "aborted" ? H : c.status === "dirty" || r.value === "dirty" ? Vt(c.value) : c;
3733
+ return c.status === "aborted" ? H : c.status === "dirty" || r.value === "dirty" ? $t(c.value) : c;
3713
3734
  });
3714
3735
  {
3715
3736
  if (r.value === "aborted")
@@ -3719,7 +3740,7 @@ class Ot extends ce {
3719
3740
  path: n.path,
3720
3741
  parent: n
3721
3742
  });
3722
- return o.status === "aborted" ? H : o.status === "dirty" || r.value === "dirty" ? Vt(o.value) : o;
3743
+ return o.status === "aborted" ? H : o.status === "dirty" || r.value === "dirty" ? $t(o.value) : o;
3723
3744
  }
3724
3745
  }
3725
3746
  if (s.type === "refinement") {
@@ -3800,7 +3821,7 @@ Nt.create = (t, e) => new Nt({
3800
3821
  typeName: Y.ZodNullable,
3801
3822
  ...te(e)
3802
3823
  });
3803
- class zr extends ce {
3824
+ class Zr extends ce {
3804
3825
  _parse(e) {
3805
3826
  const { ctx: r } = this._processInputParams(e);
3806
3827
  let n = r.data;
@@ -3814,13 +3835,13 @@ class zr extends ce {
3814
3835
  return this._def.innerType;
3815
3836
  }
3816
3837
  }
3817
- zr.create = (t, e) => new zr({
3838
+ Zr.create = (t, e) => new Zr({
3818
3839
  innerType: t,
3819
3840
  typeName: Y.ZodDefault,
3820
3841
  defaultValue: typeof e.default == "function" ? e.default : () => e.default,
3821
3842
  ...te(e)
3822
3843
  });
3823
- class Zr extends ce {
3844
+ class Br extends ce {
3824
3845
  _parse(e) {
3825
3846
  const { ctx: r } = this._processInputParams(e), n = {
3826
3847
  ...r,
@@ -3857,13 +3878,13 @@ class Zr extends ce {
3857
3878
  return this._def.innerType;
3858
3879
  }
3859
3880
  }
3860
- Zr.create = (t, e) => new Zr({
3881
+ Br.create = (t, e) => new Br({
3861
3882
  innerType: t,
3862
3883
  typeName: Y.ZodCatch,
3863
3884
  catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
3864
3885
  ...te(e)
3865
3886
  });
3866
- class Xn extends ce {
3887
+ class Qn extends ce {
3867
3888
  _parse(e) {
3868
3889
  if (this._getType(e) !== V.nan) {
3869
3890
  const n = this._getOrReturnCtx(e);
@@ -3876,11 +3897,11 @@ class Xn extends ce {
3876
3897
  return { status: "valid", value: e.data };
3877
3898
  }
3878
3899
  }
3879
- Xn.create = (t) => new Xn({
3900
+ Qn.create = (t) => new Qn({
3880
3901
  typeName: Y.ZodNaN,
3881
3902
  ...te(t)
3882
3903
  });
3883
- class Gi extends ce {
3904
+ class Hi extends ce {
3884
3905
  _parse(e) {
3885
3906
  const { ctx: r } = this._processInputParams(e), n = r.data;
3886
3907
  return this._def.type._parse({
@@ -3893,7 +3914,7 @@ class Gi extends ce {
3893
3914
  return this._def.type;
3894
3915
  }
3895
3916
  }
3896
- class cn extends ce {
3917
+ class ln extends ce {
3897
3918
  _parse(e) {
3898
3919
  const { status: r, ctx: n } = this._processInputParams(e);
3899
3920
  if (n.common.async)
@@ -3903,7 +3924,7 @@ class cn extends ce {
3903
3924
  path: n.path,
3904
3925
  parent: n
3905
3926
  });
3906
- return a.status === "aborted" ? H : a.status === "dirty" ? (r.dirty(), Vt(a.value)) : this._def.out._parseAsync({
3927
+ return a.status === "aborted" ? H : a.status === "dirty" ? (r.dirty(), $t(a.value)) : this._def.out._parseAsync({
3907
3928
  data: a.value,
3908
3929
  path: n.path,
3909
3930
  parent: n
@@ -3926,14 +3947,14 @@ class cn extends ce {
3926
3947
  }
3927
3948
  }
3928
3949
  static create(e, r) {
3929
- return new cn({
3950
+ return new ln({
3930
3951
  in: e,
3931
3952
  out: r,
3932
3953
  typeName: Y.ZodPipeline
3933
3954
  });
3934
3955
  }
3935
3956
  }
3936
- class Br extends ce {
3957
+ class Wr extends ce {
3937
3958
  _parse(e) {
3938
3959
  const r = this._def.innerType._parse(e), n = (s) => (Et(s) && (s.value = Object.freeze(s.value)), s);
3939
3960
  return cr(r) ? r.then((s) => n(s)) : n(r);
@@ -3942,7 +3963,7 @@ class Br extends ce {
3942
3963
  return this._def.innerType;
3943
3964
  }
3944
3965
  }
3945
- Br.create = (t, e) => new Br({
3966
+ Wr.create = (t, e) => new Wr({
3946
3967
  innerType: t,
3947
3968
  typeName: Y.ZodReadonly,
3948
3969
  ...te(e)
@@ -3954,11 +3975,11 @@ var Y;
3954
3975
  const Qe = ct.create;
3955
3976
  ht.create;
3956
3977
  et.create;
3957
- const vr = Se.create;
3978
+ const br = Se.create;
3958
3979
  ur.create;
3959
3980
  dr.create;
3960
3981
  bt.create;
3961
- const Hi = Ur.create;
3982
+ const Yi = zr.create;
3962
3983
  Rt.create;
3963
3984
  fr.create;
3964
3985
  ut.create;
@@ -3969,14 +3990,14 @@ Nt.create;
3969
3990
  * This source code is licensed under the ISC license.
3970
3991
  * See the LICENSE file in the root directory of this source tree.
3971
3992
  */
3972
- const Yi = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Gs = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim();
3993
+ const Ki = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Gs = (...t) => t.filter((e, r, n) => !!e && e.trim() !== "" && n.indexOf(e) === r).join(" ").trim();
3973
3994
  /**
3974
3995
  * @license lucide-react v0.468.0 - ISC
3975
3996
  *
3976
3997
  * This source code is licensed under the ISC license.
3977
3998
  * See the LICENSE file in the root directory of this source tree.
3978
3999
  */
3979
- var Ki = {
4000
+ var Ji = {
3980
4001
  xmlns: "http://www.w3.org/2000/svg",
3981
4002
  width: 24,
3982
4003
  height: 24,
@@ -3993,7 +4014,7 @@ var Ki = {
3993
4014
  * This source code is licensed under the ISC license.
3994
4015
  * See the LICENSE file in the root directory of this source tree.
3995
4016
  */
3996
- const Ji = yr(
4017
+ const Xi = yr(
3997
4018
  ({
3998
4019
  color: t = "currentColor",
3999
4020
  size: e = 24,
@@ -4003,11 +4024,11 @@ const Ji = yr(
4003
4024
  children: a,
4004
4025
  iconNode: i,
4005
4026
  ...o
4006
- }, c) => Dt(
4027
+ }, c) => Ut(
4007
4028
  "svg",
4008
4029
  {
4009
4030
  ref: c,
4010
- ...Ki,
4031
+ ...Ji,
4011
4032
  width: e,
4012
4033
  height: e,
4013
4034
  stroke: t,
@@ -4016,7 +4037,7 @@ const Ji = yr(
4016
4037
  ...o
4017
4038
  },
4018
4039
  [
4019
- ...i.map(([l, f]) => Dt(l, f)),
4040
+ ...i.map(([l, f]) => Ut(l, f)),
4020
4041
  ...Array.isArray(a) ? a : [a]
4021
4042
  ]
4022
4043
  )
@@ -4029,10 +4050,10 @@ const Ji = yr(
4029
4050
  */
4030
4051
  const mt = (t, e) => {
4031
4052
  const r = yr(
4032
- ({ className: n, ...s }, a) => Dt(Ji, {
4053
+ ({ className: n, ...s }, a) => Ut(Xi, {
4033
4054
  ref: a,
4034
4055
  iconNode: e,
4035
- className: Gs(`lucide-${Yi(t)}`, n),
4056
+ className: Gs(`lucide-${Ki(t)}`, n),
4036
4057
  ...s
4037
4058
  })
4038
4059
  );
@@ -4044,14 +4065,14 @@ const mt = (t, e) => {
4044
4065
  * This source code is licensed under the ISC license.
4045
4066
  * See the LICENSE file in the root directory of this source tree.
4046
4067
  */
4047
- const Xi = mt("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
4068
+ const Qi = mt("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
4048
4069
  /**
4049
4070
  * @license lucide-react v0.468.0 - ISC
4050
4071
  *
4051
4072
  * This source code is licensed under the ISC license.
4052
4073
  * See the LICENSE file in the root directory of this source tree.
4053
4074
  */
4054
- const Qi = mt("CircleCheck", [
4075
+ const eo = mt("CircleCheck", [
4055
4076
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
4056
4077
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
4057
4078
  ]);
@@ -4061,7 +4082,7 @@ const Qi = mt("CircleCheck", [
4061
4082
  * This source code is licensed under the ISC license.
4062
4083
  * See the LICENSE file in the root directory of this source tree.
4063
4084
  */
4064
- const eo = mt("Github", [
4085
+ const to = mt("Github", [
4065
4086
  [
4066
4087
  "path",
4067
4088
  {
@@ -4086,7 +4107,7 @@ const hr = mt("LoaderCircle", [
4086
4107
  * This source code is licensed under the ISC license.
4087
4108
  * See the LICENSE file in the root directory of this source tree.
4088
4109
  */
4089
- const to = mt("LogOut", [
4110
+ const ro = mt("LogOut", [
4090
4111
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
4091
4112
  ["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
4092
4113
  ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
@@ -4097,7 +4118,7 @@ const to = mt("LogOut", [
4097
4118
  * This source code is licensed under the ISC license.
4098
4119
  * See the LICENSE file in the root directory of this source tree.
4099
4120
  */
4100
- const ro = mt("Mail", [
4121
+ const no = mt("Mail", [
4101
4122
  ["rect", { width: "20", height: "16", x: "2", y: "4", rx: "2", key: "18n3k1" }],
4102
4123
  ["path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7", key: "1ocrg3" }]
4103
4124
  ]);
@@ -4107,7 +4128,7 @@ const ro = mt("Mail", [
4107
4128
  * This source code is licensed under the ISC license.
4108
4129
  * See the LICENSE file in the root directory of this source tree.
4109
4130
  */
4110
- const no = mt("Pencil", [
4131
+ const so = mt("Pencil", [
4111
4132
  [
4112
4133
  "path",
4113
4134
  {
@@ -4123,7 +4144,7 @@ const no = mt("Pencil", [
4123
4144
  * This source code is licensed under the ISC license.
4124
4145
  * See the LICENSE file in the root directory of this source tree.
4125
4146
  */
4126
- const so = mt("Phone", [
4147
+ const ao = mt("Phone", [
4127
4148
  [
4128
4149
  "path",
4129
4150
  {
@@ -4145,15 +4166,15 @@ function Ys() {
4145
4166
  for (var t, e, r = 0, n = "", s = arguments.length; r < s; r++) (t = arguments[r]) && (e = Hs(t)) && (n && (n += " "), n += e);
4146
4167
  return n;
4147
4168
  }
4148
- const ln = "-", ao = (t) => {
4149
- const e = oo(t), {
4169
+ const un = "-", io = (t) => {
4170
+ const e = co(t), {
4150
4171
  conflictingClassGroups: r,
4151
4172
  conflictingClassGroupModifiers: n
4152
4173
  } = t;
4153
4174
  return {
4154
4175
  getClassGroupId: (i) => {
4155
- const o = i.split(ln);
4156
- return o[0] === "" && o.length !== 1 && o.shift(), Ks(o, e) || io(i);
4176
+ const o = i.split(un);
4177
+ return o[0] === "" && o.length !== 1 && o.shift(), Ks(o, e) || oo(i);
4157
4178
  },
4158
4179
  getConflictingClassGroupIds: (i, o) => {
4159
4180
  const c = r[i] || [];
@@ -4169,17 +4190,17 @@ const ln = "-", ao = (t) => {
4169
4190
  return s;
4170
4191
  if (e.validators.length === 0)
4171
4192
  return;
4172
- const a = t.join(ln);
4193
+ const a = t.join(un);
4173
4194
  return (i = e.validators.find(({
4174
4195
  validator: o
4175
4196
  }) => o(a))) == null ? void 0 : i.classGroupId;
4176
- }, Qn = /^\[(.+)\]$/, io = (t) => {
4177
- if (Qn.test(t)) {
4178
- const e = Qn.exec(t)[1], r = e == null ? void 0 : e.substring(0, e.indexOf(":"));
4197
+ }, es = /^\[(.+)\]$/, oo = (t) => {
4198
+ if (es.test(t)) {
4199
+ const e = es.exec(t)[1], r = e == null ? void 0 : e.substring(0, e.indexOf(":"));
4179
4200
  if (r)
4180
4201
  return "arbitrary.." + r;
4181
4202
  }
4182
- }, oo = (t) => {
4203
+ }, co = (t) => {
4183
4204
  const {
4184
4205
  theme: e,
4185
4206
  prefix: r
@@ -4187,19 +4208,19 @@ const ln = "-", ao = (t) => {
4187
4208
  nextPart: /* @__PURE__ */ new Map(),
4188
4209
  validators: []
4189
4210
  };
4190
- return lo(Object.entries(t.classGroups), r).forEach(([a, i]) => {
4191
- Wr(i, n, a, e);
4211
+ return uo(Object.entries(t.classGroups), r).forEach(([a, i]) => {
4212
+ qr(i, n, a, e);
4192
4213
  }), n;
4193
- }, Wr = (t, e, r, n) => {
4214
+ }, qr = (t, e, r, n) => {
4194
4215
  t.forEach((s) => {
4195
4216
  if (typeof s == "string") {
4196
- const a = s === "" ? e : es(e, s);
4217
+ const a = s === "" ? e : ts(e, s);
4197
4218
  a.classGroupId = r;
4198
4219
  return;
4199
4220
  }
4200
4221
  if (typeof s == "function") {
4201
- if (co(s)) {
4202
- Wr(s(n), e, r, n);
4222
+ if (lo(s)) {
4223
+ qr(s(n), e, r, n);
4203
4224
  return;
4204
4225
  }
4205
4226
  e.validators.push({
@@ -4209,21 +4230,21 @@ const ln = "-", ao = (t) => {
4209
4230
  return;
4210
4231
  }
4211
4232
  Object.entries(s).forEach(([a, i]) => {
4212
- Wr(i, es(e, a), r, n);
4233
+ qr(i, ts(e, a), r, n);
4213
4234
  });
4214
4235
  });
4215
- }, es = (t, e) => {
4236
+ }, ts = (t, e) => {
4216
4237
  let r = t;
4217
- return e.split(ln).forEach((n) => {
4238
+ return e.split(un).forEach((n) => {
4218
4239
  r.nextPart.has(n) || r.nextPart.set(n, {
4219
4240
  nextPart: /* @__PURE__ */ new Map(),
4220
4241
  validators: []
4221
4242
  }), r = r.nextPart.get(n);
4222
4243
  }), r;
4223
- }, co = (t) => t.isThemeGetter, lo = (t, e) => e ? t.map(([r, n]) => {
4244
+ }, lo = (t) => t.isThemeGetter, uo = (t, e) => e ? t.map(([r, n]) => {
4224
4245
  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);
4225
4246
  return [r, s];
4226
- }) : t, uo = (t) => {
4247
+ }) : t, fo = (t) => {
4227
4248
  if (t < 1)
4228
4249
  return {
4229
4250
  get: () => {
@@ -4247,7 +4268,7 @@ const ln = "-", ao = (t) => {
4247
4268
  r.has(a) ? r.set(a, i) : s(a, i);
4248
4269
  }
4249
4270
  };
4250
- }, Js = "!", fo = (t) => {
4271
+ }, Js = "!", ho = (t) => {
4251
4272
  const {
4252
4273
  separator: e,
4253
4274
  experimentalParseClassName: r
@@ -4280,7 +4301,7 @@ const ln = "-", ao = (t) => {
4280
4301
  className: o,
4281
4302
  parseClassName: i
4282
4303
  }) : i;
4283
- }, ho = (t) => {
4304
+ }, po = (t) => {
4284
4305
  if (t.length <= 1)
4285
4306
  return t;
4286
4307
  const e = [];
@@ -4288,16 +4309,16 @@ const ln = "-", ao = (t) => {
4288
4309
  return t.forEach((n) => {
4289
4310
  n[0] === "[" ? (e.push(...r.sort(), n), r = []) : r.push(n);
4290
4311
  }), e.push(...r.sort()), e;
4291
- }, po = (t) => ({
4292
- cache: uo(t.cacheSize),
4293
- parseClassName: fo(t),
4294
- ...ao(t)
4295
- }), mo = /\s+/, yo = (t, e) => {
4312
+ }, mo = (t) => ({
4313
+ cache: fo(t.cacheSize),
4314
+ parseClassName: ho(t),
4315
+ ...io(t)
4316
+ }), yo = /\s+/, go = (t, e) => {
4296
4317
  const {
4297
4318
  parseClassName: r,
4298
4319
  getClassGroupId: n,
4299
4320
  getConflictingClassGroupIds: s
4300
- } = e, a = [], i = t.trim().split(mo);
4321
+ } = e, a = [], i = t.trim().split(yo);
4301
4322
  let o = "";
4302
4323
  for (let c = i.length - 1; c >= 0; c -= 1) {
4303
4324
  const l = i[c], {
@@ -4318,20 +4339,20 @@ const ln = "-", ao = (t) => {
4318
4339
  }
4319
4340
  b = !1;
4320
4341
  }
4321
- const S = ho(f).join(":"), k = d ? S + Js : S, C = k + v;
4342
+ const S = po(f).join(":"), k = d ? S + Js : S, C = k + v;
4322
4343
  if (a.includes(C))
4323
4344
  continue;
4324
4345
  a.push(C);
4325
- const D = s(v, b);
4326
- for (let I = 0; I < D.length; ++I) {
4327
- const x = D[I];
4346
+ const U = s(v, b);
4347
+ for (let I = 0; I < U.length; ++I) {
4348
+ const x = U[I];
4328
4349
  a.push(k + x);
4329
4350
  }
4330
4351
  o = l + (o.length > 0 ? " " + o : o);
4331
4352
  }
4332
4353
  return o;
4333
4354
  };
4334
- function go() {
4355
+ function vo() {
4335
4356
  let t = 0, e, r, n = "";
4336
4357
  for (; t < arguments.length; )
4337
4358
  (e = arguments[t++]) && (r = Xs(e)) && (n && (n += " "), n += r);
@@ -4345,41 +4366,41 @@ const Xs = (t) => {
4345
4366
  t[n] && (e = Xs(t[n])) && (r && (r += " "), r += e);
4346
4367
  return r;
4347
4368
  };
4348
- function vo(t, ...e) {
4369
+ function bo(t, ...e) {
4349
4370
  let r, n, s, a = i;
4350
4371
  function i(c) {
4351
4372
  const l = e.reduce((f, d) => d(f), t());
4352
- return r = po(l), n = r.cache.get, s = r.cache.set, a = o, o(c);
4373
+ return r = mo(l), n = r.cache.get, s = r.cache.set, a = o, o(c);
4353
4374
  }
4354
4375
  function o(c) {
4355
4376
  const l = n(c);
4356
4377
  if (l)
4357
4378
  return l;
4358
- const f = yo(c, r);
4379
+ const f = go(c, r);
4359
4380
  return s(c, f), f;
4360
4381
  }
4361
4382
  return function() {
4362
- return a(go.apply(null, arguments));
4383
+ return a(vo.apply(null, arguments));
4363
4384
  };
4364
4385
  }
4365
4386
  const ge = (t) => {
4366
4387
  const e = (r) => r[t] || [];
4367
4388
  return e.isThemeGetter = !0, e;
4368
- }, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, bo = /^\d+\/\d+$/, xo = /* @__PURE__ */ new Set(["px", "full", "screen"]), _o = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, wo = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ko = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, So = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Co = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (t) => Ct(t) || xo.has(t) || bo.test(t), nt = (t) => Pt(t, "length", Io), Ct = (t) => !!t && !Number.isNaN(Number(t)), Er = (t) => Pt(t, "number", Ct), jt = (t) => !!t && Number.isInteger(Number(t)), Eo = (t) => t.endsWith("%") && Ct(t.slice(0, -1)), X = (t) => Qs.test(t), st = (t) => _o.test(t), Ro = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Oo = (t) => Pt(t, Ro, ea), No = (t) => Pt(t, "position", ea), Ao = /* @__PURE__ */ new Set(["image", "url"]), To = (t) => Pt(t, Ao, jo), Po = (t) => Pt(t, "", Lo), Mt = () => !0, Pt = (t, e, r) => {
4389
+ }, Qs = /^\[(?:([a-z-]+):)?(.+)\]$/i, xo = /^\d+\/\d+$/, _o = /* @__PURE__ */ new Set(["px", "full", "screen"]), wo = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ko = /\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$/, So = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Co = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Eo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, tt = (t) => Ct(t) || _o.has(t) || xo.test(t), nt = (t) => It(t, "length", Lo), Ct = (t) => !!t && !Number.isNaN(Number(t)), Rr = (t) => It(t, "number", Ct), Mt = (t) => !!t && Number.isInteger(Number(t)), Ro = (t) => t.endsWith("%") && Ct(t.slice(0, -1)), X = (t) => Qs.test(t), st = (t) => wo.test(t), Oo = /* @__PURE__ */ new Set(["length", "size", "percentage"]), No = (t) => It(t, Oo, ea), Ao = (t) => It(t, "position", ea), To = /* @__PURE__ */ new Set(["image", "url"]), Po = (t) => It(t, To, Mo), Io = (t) => It(t, "", jo), Vt = () => !0, It = (t, e, r) => {
4369
4390
  const n = Qs.exec(t);
4370
4391
  return n ? n[1] ? typeof e == "string" ? n[1] === e : e.has(n[1]) : r(n[2]) : !1;
4371
- }, Io = (t) => (
4392
+ }, Lo = (t) => (
4372
4393
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
4373
4394
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
4374
4395
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
4375
- wo.test(t) && !ko.test(t)
4376
- ), ea = () => !1, Lo = (t) => So.test(t), jo = (t) => Co.test(t), Mo = () => {
4377
- const t = ge("colors"), e = ge("spacing"), r = ge("blur"), n = ge("brightness"), s = ge("borderColor"), a = ge("borderRadius"), i = ge("borderSpacing"), o = ge("borderWidth"), c = ge("contrast"), l = ge("grayscale"), f = ge("hueRotate"), d = ge("invert"), p = ge("gap"), m = ge("gradientColorStops"), b = ge("gradientColorStopPositions"), v = ge("inset"), S = ge("margin"), k = ge("opacity"), C = ge("padding"), D = ge("saturate"), I = ge("scale"), x = ge("sepia"), Z = ge("skew"), j = ge("space"), U = ge("translate"), B = () => ["auto", "contain", "none"], re = () => ["auto", "hidden", "clip", "visible", "scroll"], he = () => ["auto", X, e], M = () => [X, e], W = () => ["", tt, nt], ne = () => ["auto", Ct, X], ve = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ue = () => ["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];
4396
+ ko.test(t) && !So.test(t)
4397
+ ), ea = () => !1, jo = (t) => Co.test(t), Mo = (t) => Eo.test(t), Vo = () => {
4398
+ const t = ge("colors"), e = ge("spacing"), r = ge("blur"), n = ge("brightness"), s = ge("borderColor"), a = ge("borderRadius"), i = ge("borderSpacing"), o = ge("borderWidth"), c = ge("contrast"), l = ge("grayscale"), f = ge("hueRotate"), d = ge("invert"), p = ge("gap"), m = ge("gradientColorStops"), b = ge("gradientColorStopPositions"), v = ge("inset"), S = ge("margin"), k = ge("opacity"), C = ge("padding"), U = ge("saturate"), I = ge("scale"), x = ge("sepia"), Z = ge("skew"), j = ge("space"), z = ge("translate"), B = () => ["auto", "contain", "none"], re = () => ["auto", "hidden", "clip", "visible", "scroll"], he = () => ["auto", X, e], M = () => [X, e], W = () => ["", tt, nt], ne = () => ["auto", Ct, X], ve = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], ue = () => ["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];
4378
4399
  return {
4379
4400
  cacheSize: 500,
4380
4401
  separator: ":",
4381
4402
  theme: {
4382
- colors: [Mt],
4403
+ colors: [Vt],
4383
4404
  spacing: [tt, nt],
4384
4405
  blur: ["none", "", st, X],
4385
4406
  brightness: R(),
@@ -4393,7 +4414,7 @@ const ge = (t) => {
4393
4414
  invert: Ee(),
4394
4415
  gap: M(),
4395
4416
  gradientColorStops: [t],
4396
- gradientColorStopPositions: [Eo, nt],
4417
+ gradientColorStopPositions: [Ro, nt],
4397
4418
  inset: he(),
4398
4419
  margin: he(),
4399
4420
  opacity: R(),
@@ -4619,7 +4640,7 @@ const ge = (t) => {
4619
4640
  * @see https://tailwindcss.com/docs/z-index
4620
4641
  */
4621
4642
  z: [{
4622
- z: ["auto", jt, X]
4643
+ z: ["auto", Mt, X]
4623
4644
  }],
4624
4645
  // Flexbox and Grid
4625
4646
  /**
@@ -4669,14 +4690,14 @@ const ge = (t) => {
4669
4690
  * @see https://tailwindcss.com/docs/order
4670
4691
  */
4671
4692
  order: [{
4672
- order: ["first", "last", "none", jt, X]
4693
+ order: ["first", "last", "none", Mt, X]
4673
4694
  }],
4674
4695
  /**
4675
4696
  * Grid Template Columns
4676
4697
  * @see https://tailwindcss.com/docs/grid-template-columns
4677
4698
  */
4678
4699
  "grid-cols": [{
4679
- "grid-cols": [Mt]
4700
+ "grid-cols": [Vt]
4680
4701
  }],
4681
4702
  /**
4682
4703
  * Grid Column Start / End
@@ -4684,7 +4705,7 @@ const ge = (t) => {
4684
4705
  */
4685
4706
  "col-start-end": [{
4686
4707
  col: ["auto", {
4687
- span: ["full", jt, X]
4708
+ span: ["full", Mt, X]
4688
4709
  }, X]
4689
4710
  }],
4690
4711
  /**
@@ -4706,7 +4727,7 @@ const ge = (t) => {
4706
4727
  * @see https://tailwindcss.com/docs/grid-template-rows
4707
4728
  */
4708
4729
  "grid-rows": [{
4709
- "grid-rows": [Mt]
4730
+ "grid-rows": [Vt]
4710
4731
  }],
4711
4732
  /**
4712
4733
  * Grid Row Start / End
@@ -4714,7 +4735,7 @@ const ge = (t) => {
4714
4735
  */
4715
4736
  "row-start-end": [{
4716
4737
  row: ["auto", {
4717
- span: [jt, X]
4738
+ span: [Mt, X]
4718
4739
  }, X]
4719
4740
  }],
4720
4741
  /**
@@ -5062,14 +5083,14 @@ const ge = (t) => {
5062
5083
  * @see https://tailwindcss.com/docs/font-weight
5063
5084
  */
5064
5085
  "font-weight": [{
5065
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Er]
5086
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", Rr]
5066
5087
  }],
5067
5088
  /**
5068
5089
  * Font Family
5069
5090
  * @see https://tailwindcss.com/docs/font-family
5070
5091
  */
5071
5092
  "font-family": [{
5072
- font: [Mt]
5093
+ font: [Vt]
5073
5094
  }],
5074
5095
  /**
5075
5096
  * Font Variant Numeric
@@ -5113,7 +5134,7 @@ const ge = (t) => {
5113
5134
  * @see https://tailwindcss.com/docs/line-clamp
5114
5135
  */
5115
5136
  "line-clamp": [{
5116
- "line-clamp": ["none", Ct, Er]
5137
+ "line-clamp": ["none", Ct, Rr]
5117
5138
  }],
5118
5139
  /**
5119
5140
  * Line Height
@@ -5306,7 +5327,7 @@ const ge = (t) => {
5306
5327
  * @see https://tailwindcss.com/docs/background-position
5307
5328
  */
5308
5329
  "bg-position": [{
5309
- bg: [...ve(), No]
5330
+ bg: [...ve(), Ao]
5310
5331
  }],
5311
5332
  /**
5312
5333
  * Background Repeat
@@ -5322,7 +5343,7 @@ const ge = (t) => {
5322
5343
  * @see https://tailwindcss.com/docs/background-size
5323
5344
  */
5324
5345
  "bg-size": [{
5325
- bg: ["auto", "cover", "contain", Oo]
5346
+ bg: ["auto", "cover", "contain", No]
5326
5347
  }],
5327
5348
  /**
5328
5349
  * Background Image
@@ -5331,7 +5352,7 @@ const ge = (t) => {
5331
5352
  "bg-image": [{
5332
5353
  bg: ["none", {
5333
5354
  "gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
5334
- }, To]
5355
+ }, Po]
5335
5356
  }],
5336
5357
  /**
5337
5358
  * Background Color
@@ -5747,14 +5768,14 @@ const ge = (t) => {
5747
5768
  * @see https://tailwindcss.com/docs/box-shadow
5748
5769
  */
5749
5770
  shadow: [{
5750
- shadow: ["", "inner", "none", st, Po]
5771
+ shadow: ["", "inner", "none", st, Io]
5751
5772
  }],
5752
5773
  /**
5753
5774
  * Box Shadow Color
5754
5775
  * @see https://tailwindcss.com/docs/box-shadow-color
5755
5776
  */
5756
5777
  "shadow-color": [{
5757
- shadow: [Mt]
5778
+ shadow: [Vt]
5758
5779
  }],
5759
5780
  /**
5760
5781
  * Opacity
@@ -5840,7 +5861,7 @@ const ge = (t) => {
5840
5861
  * @see https://tailwindcss.com/docs/saturate
5841
5862
  */
5842
5863
  saturate: [{
5843
- saturate: [D]
5864
+ saturate: [U]
5844
5865
  }],
5845
5866
  /**
5846
5867
  * Sepia
@@ -5911,7 +5932,7 @@ const ge = (t) => {
5911
5932
  * @see https://tailwindcss.com/docs/backdrop-saturate
5912
5933
  */
5913
5934
  "backdrop-saturate": [{
5914
- "backdrop-saturate": [D]
5935
+ "backdrop-saturate": [U]
5915
5936
  }],
5916
5937
  /**
5917
5938
  * Backdrop Sepia
@@ -6033,21 +6054,21 @@ const ge = (t) => {
6033
6054
  * @see https://tailwindcss.com/docs/rotate
6034
6055
  */
6035
6056
  rotate: [{
6036
- rotate: [jt, X]
6057
+ rotate: [Mt, X]
6037
6058
  }],
6038
6059
  /**
6039
6060
  * Translate X
6040
6061
  * @see https://tailwindcss.com/docs/translate
6041
6062
  */
6042
6063
  "translate-x": [{
6043
- "translate-x": [U]
6064
+ "translate-x": [z]
6044
6065
  }],
6045
6066
  /**
6046
6067
  * Translate Y
6047
6068
  * @see https://tailwindcss.com/docs/translate
6048
6069
  */
6049
6070
  "translate-y": [{
6050
- "translate-y": [U]
6071
+ "translate-y": [z]
6051
6072
  }],
6052
6073
  /**
6053
6074
  * Skew X
@@ -6327,7 +6348,7 @@ const ge = (t) => {
6327
6348
  * @see https://tailwindcss.com/docs/stroke-width
6328
6349
  */
6329
6350
  "stroke-w": [{
6330
- stroke: [tt, nt, Er]
6351
+ stroke: [tt, nt, Rr]
6331
6352
  }],
6332
6353
  /**
6333
6354
  * Stroke
@@ -6402,9 +6423,9 @@ const ge = (t) => {
6402
6423
  "font-size": ["leading"]
6403
6424
  }
6404
6425
  };
6405
- }, Vo = /* @__PURE__ */ vo(Mo);
6426
+ }, $o = /* @__PURE__ */ bo(Vo);
6406
6427
  function me(...t) {
6407
- return Vo(Ys(t));
6428
+ return $o(Ys(t));
6408
6429
  }
6409
6430
  function ta(t) {
6410
6431
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -6418,12 +6439,12 @@ var Yt = { exports: {} }, Kt = { exports: {} }, de = {};
6418
6439
  * This source code is licensed under the MIT license found in the
6419
6440
  * LICENSE file in the root directory of this source tree.
6420
6441
  */
6421
- var ts;
6422
- function $o() {
6423
- if (ts) return de;
6424
- ts = 1;
6442
+ var rs;
6443
+ function Fo() {
6444
+ if (rs) return de;
6445
+ rs = 1;
6425
6446
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, C = t ? Symbol.for("react.scope") : 60119;
6426
- function D(x) {
6447
+ function U(x) {
6427
6448
  if (typeof x == "object" && x !== null) {
6428
6449
  var Z = x.$$typeof;
6429
6450
  switch (Z) {
@@ -6454,35 +6475,35 @@ function $o() {
6454
6475
  }
6455
6476
  }
6456
6477
  function I(x) {
6457
- return D(x) === l;
6478
+ return U(x) === l;
6458
6479
  }
6459
6480
  return de.AsyncMode = c, de.ConcurrentMode = l, de.ContextConsumer = o, de.ContextProvider = i, de.Element = e, de.ForwardRef = f, de.Fragment = n, de.Lazy = b, de.Memo = m, de.Portal = r, de.Profiler = a, de.StrictMode = s, de.Suspense = d, de.isAsyncMode = function(x) {
6460
- return I(x) || D(x) === c;
6481
+ return I(x) || U(x) === c;
6461
6482
  }, de.isConcurrentMode = I, de.isContextConsumer = function(x) {
6462
- return D(x) === o;
6483
+ return U(x) === o;
6463
6484
  }, de.isContextProvider = function(x) {
6464
- return D(x) === i;
6485
+ return U(x) === i;
6465
6486
  }, de.isElement = function(x) {
6466
6487
  return typeof x == "object" && x !== null && x.$$typeof === e;
6467
6488
  }, de.isForwardRef = function(x) {
6468
- return D(x) === f;
6489
+ return U(x) === f;
6469
6490
  }, de.isFragment = function(x) {
6470
- return D(x) === n;
6491
+ return U(x) === n;
6471
6492
  }, de.isLazy = function(x) {
6472
- return D(x) === b;
6493
+ return U(x) === b;
6473
6494
  }, de.isMemo = function(x) {
6474
- return D(x) === m;
6495
+ return U(x) === m;
6475
6496
  }, de.isPortal = function(x) {
6476
- return D(x) === r;
6497
+ return U(x) === r;
6477
6498
  }, de.isProfiler = function(x) {
6478
- return D(x) === a;
6499
+ return U(x) === a;
6479
6500
  }, de.isStrictMode = function(x) {
6480
- return D(x) === s;
6501
+ return U(x) === s;
6481
6502
  }, de.isSuspense = function(x) {
6482
- return D(x) === d;
6503
+ return U(x) === d;
6483
6504
  }, de.isValidElementType = function(x) {
6484
6505
  return typeof x == "string" || typeof x == "function" || x === n || x === l || x === a || x === s || x === d || x === p || typeof x == "object" && x !== null && (x.$$typeof === b || x.$$typeof === m || x.$$typeof === i || x.$$typeof === o || x.$$typeof === f || x.$$typeof === S || x.$$typeof === k || x.$$typeof === C || x.$$typeof === v);
6485
- }, de.typeOf = D, de;
6506
+ }, de.typeOf = U, de;
6486
6507
  }
6487
6508
  var fe = {};
6488
6509
  /** @license React v16.13.1
@@ -6493,11 +6514,11 @@ var fe = {};
6493
6514
  * This source code is licensed under the MIT license found in the
6494
6515
  * LICENSE file in the root directory of this source tree.
6495
6516
  */
6496
- var rs;
6497
- function Fo() {
6498
- return rs || (rs = 1, process.env.NODE_ENV !== "production" && (function() {
6517
+ var ns;
6518
+ function Do() {
6519
+ return ns || (ns = 1, process.env.NODE_ENV !== "production" && (function() {
6499
6520
  var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, c = t ? Symbol.for("react.async_mode") : 60111, l = t ? Symbol.for("react.concurrent_mode") : 60111, f = t ? Symbol.for("react.forward_ref") : 60112, d = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, k = t ? Symbol.for("react.responder") : 60118, C = t ? Symbol.for("react.scope") : 60119;
6500
- function D(T) {
6521
+ function U(T) {
6501
6522
  return typeof T == "string" || typeof T == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
6502
6523
  T === n || T === l || T === a || T === s || T === d || T === p || typeof T == "object" && T !== null && (T.$$typeof === b || T.$$typeof === m || T.$$typeof === i || T.$$typeof === o || T.$$typeof === f || T.$$typeof === S || T.$$typeof === k || T.$$typeof === C || T.$$typeof === v);
6503
6524
  }
@@ -6533,7 +6554,7 @@ function Fo() {
6533
6554
  }
6534
6555
  }
6535
6556
  }
6536
- var x = c, Z = l, j = o, U = i, B = e, re = f, he = n, M = b, W = m, ne = r, ve = a, ue = s, be = d, we = !1;
6557
+ var x = c, Z = l, j = o, z = i, B = e, re = f, he = n, M = b, W = m, ne = r, ve = a, ue = s, be = d, we = !1;
6537
6558
  function Ee(T) {
6538
6559
  return we || (we = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(T) || I(T) === c;
6539
6560
  }
@@ -6573,22 +6594,22 @@ function Fo() {
6573
6594
  function Re(T) {
6574
6595
  return I(T) === d;
6575
6596
  }
6576
- fe.AsyncMode = x, fe.ConcurrentMode = Z, fe.ContextConsumer = j, fe.ContextProvider = U, fe.Element = B, fe.ForwardRef = re, fe.Fragment = he, fe.Lazy = M, fe.Memo = W, fe.Portal = ne, fe.Profiler = ve, fe.StrictMode = ue, fe.Suspense = be, fe.isAsyncMode = Ee, fe.isConcurrentMode = _, fe.isContextConsumer = R, fe.isContextProvider = G, fe.isElement = q, fe.isForwardRef = K, fe.isFragment = se, fe.isLazy = Q, fe.isMemo = ee, fe.isPortal = ie, fe.isProfiler = oe, fe.isStrictMode = ae, fe.isSuspense = Re, fe.isValidElementType = D, fe.typeOf = I;
6597
+ fe.AsyncMode = x, fe.ConcurrentMode = Z, fe.ContextConsumer = j, fe.ContextProvider = z, fe.Element = B, fe.ForwardRef = re, fe.Fragment = he, fe.Lazy = M, fe.Memo = W, fe.Portal = ne, fe.Profiler = ve, fe.StrictMode = ue, fe.Suspense = be, fe.isAsyncMode = Ee, fe.isConcurrentMode = _, fe.isContextConsumer = R, fe.isContextProvider = G, fe.isElement = q, fe.isForwardRef = K, fe.isFragment = se, fe.isLazy = Q, fe.isMemo = ee, fe.isPortal = ie, fe.isProfiler = oe, fe.isStrictMode = ae, fe.isSuspense = Re, fe.isValidElementType = U, fe.typeOf = I;
6577
6598
  })()), fe;
6578
6599
  }
6579
- var ns;
6580
- function un() {
6581
- return ns || (ns = 1, process.env.NODE_ENV === "production" ? Kt.exports = $o() : Kt.exports = Fo()), Kt.exports;
6600
+ var ss;
6601
+ function dn() {
6602
+ return ss || (ss = 1, process.env.NODE_ENV === "production" ? Kt.exports = Fo() : Kt.exports = Do()), Kt.exports;
6582
6603
  }
6583
6604
  /*
6584
6605
  object-assign
6585
6606
  (c) Sindre Sorhus
6586
6607
  @license MIT
6587
6608
  */
6588
- var Rr, ss;
6589
- function Do() {
6590
- if (ss) return Rr;
6591
- ss = 1;
6609
+ var Or, as;
6610
+ function Uo() {
6611
+ if (as) return Or;
6612
+ as = 1;
6592
6613
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
6593
6614
  function n(a) {
6594
6615
  if (a == null)
@@ -6617,7 +6638,7 @@ function Do() {
6617
6638
  return !1;
6618
6639
  }
6619
6640
  }
6620
- return Rr = s() ? Object.assign : function(a, i) {
6641
+ return Or = s() ? Object.assign : function(a, i) {
6621
6642
  for (var o, c = n(a), l, f = 1; f < arguments.length; f++) {
6622
6643
  o = Object(arguments[f]);
6623
6644
  for (var d in o)
@@ -6629,27 +6650,27 @@ function Do() {
6629
6650
  }
6630
6651
  }
6631
6652
  return c;
6632
- }, Rr;
6653
+ }, Or;
6633
6654
  }
6634
- var Or, as;
6635
- function dn() {
6636
- if (as) return Or;
6637
- as = 1;
6655
+ var Nr, is;
6656
+ function fn() {
6657
+ if (is) return Nr;
6658
+ is = 1;
6638
6659
  var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
6639
- return Or = t, Or;
6660
+ return Nr = t, Nr;
6640
6661
  }
6641
- var Nr, is;
6662
+ var Ar, os;
6642
6663
  function ra() {
6643
- return is || (is = 1, Nr = Function.call.bind(Object.prototype.hasOwnProperty)), Nr;
6664
+ return os || (os = 1, Ar = Function.call.bind(Object.prototype.hasOwnProperty)), Ar;
6644
6665
  }
6645
- var Ar, os;
6646
- function Uo() {
6647
- if (os) return Ar;
6648
- os = 1;
6666
+ var Tr, cs;
6667
+ function zo() {
6668
+ if (cs) return Tr;
6669
+ cs = 1;
6649
6670
  var t = function() {
6650
6671
  };
6651
6672
  if (process.env.NODE_ENV !== "production") {
6652
- var e = /* @__PURE__ */ dn(), r = {}, n = /* @__PURE__ */ ra();
6673
+ var e = /* @__PURE__ */ fn(), r = {}, n = /* @__PURE__ */ ra();
6653
6674
  t = function(a) {
6654
6675
  var i = "Warning: " + a;
6655
6676
  typeof console < "u" && console.error(i);
@@ -6689,13 +6710,13 @@ function Uo() {
6689
6710
  }
6690
6711
  return s.resetWarningCache = function() {
6691
6712
  process.env.NODE_ENV !== "production" && (r = {});
6692
- }, Ar = s, Ar;
6713
+ }, Tr = s, Tr;
6693
6714
  }
6694
- var Tr, cs;
6695
- function zo() {
6696
- if (cs) return Tr;
6697
- cs = 1;
6698
- var t = un(), e = Do(), r = /* @__PURE__ */ dn(), n = /* @__PURE__ */ ra(), s = /* @__PURE__ */ Uo(), a = function() {
6715
+ var Pr, ls;
6716
+ function Zo() {
6717
+ if (ls) return Pr;
6718
+ ls = 1;
6719
+ var t = dn(), e = Uo(), r = /* @__PURE__ */ fn(), n = /* @__PURE__ */ ra(), s = /* @__PURE__ */ zo(), a = function() {
6699
6720
  };
6700
6721
  process.env.NODE_ENV !== "production" && (a = function(o) {
6701
6722
  var c = "Warning: " + o;
@@ -6708,7 +6729,7 @@ function zo() {
6708
6729
  function i() {
6709
6730
  return null;
6710
6731
  }
6711
- return Tr = function(o, c) {
6732
+ return Pr = function(o, c) {
6712
6733
  var l = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
6713
6734
  function d(_) {
6714
6735
  var R = _ && (l && _[l] || _[f]);
@@ -6725,12 +6746,12 @@ function zo() {
6725
6746
  string: k("string"),
6726
6747
  symbol: k("symbol"),
6727
6748
  any: C(),
6728
- arrayOf: D,
6749
+ arrayOf: U,
6729
6750
  element: I(),
6730
6751
  elementType: x(),
6731
6752
  instanceOf: Z,
6732
6753
  node: re(),
6733
- objectOf: U,
6754
+ objectOf: z,
6734
6755
  oneOf: j,
6735
6756
  oneOfType: B,
6736
6757
  shape: M,
@@ -6783,7 +6804,7 @@ function zo() {
6783
6804
  function C() {
6784
6805
  return S(i);
6785
6806
  }
6786
- function D(_) {
6807
+ function U(_) {
6787
6808
  function R(G, q, K, se, Q) {
6788
6809
  if (typeof _ != "function")
6789
6810
  return new v("Property `" + Q + "` of component `" + K + "` has invalid PropType notation inside arrayOf.");
@@ -6850,7 +6871,7 @@ function zo() {
6850
6871
  }
6851
6872
  return S(R);
6852
6873
  }
6853
- function U(_) {
6874
+ function z(_) {
6854
6875
  function R(G, q, K, se, Q) {
6855
6876
  if (typeof _ != "function")
6856
6877
  return new v("Property `" + Q + "` of component `" + K + "` has invalid PropType notation inside objectOf.");
@@ -7010,18 +7031,18 @@ Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
7010
7031
  return !_.constructor || !_.constructor.name ? p : _.constructor.name;
7011
7032
  }
7012
7033
  return m.checkPropTypes = s, m.resetWarningCache = s.resetWarningCache, m.PropTypes = m, m;
7013
- }, Tr;
7034
+ }, Pr;
7014
7035
  }
7015
- var Pr, ls;
7016
- function Zo() {
7017
- if (ls) return Pr;
7018
- ls = 1;
7019
- var t = /* @__PURE__ */ dn();
7036
+ var Ir, us;
7037
+ function Bo() {
7038
+ if (us) return Ir;
7039
+ us = 1;
7040
+ var t = /* @__PURE__ */ fn();
7020
7041
  function e() {
7021
7042
  }
7022
7043
  function r() {
7023
7044
  }
7024
- return r.resetWarningCache = e, Pr = function() {
7045
+ return r.resetWarningCache = e, Ir = function() {
7025
7046
  function n(i, o, c, l, f, d) {
7026
7047
  if (d !== t) {
7027
7048
  var p = new Error(
@@ -7058,32 +7079,32 @@ function Zo() {
7058
7079
  resetWarningCache: e
7059
7080
  };
7060
7081
  return a.PropTypes = a, a;
7061
- }, Pr;
7062
- }
7063
- var us;
7064
- function Bo() {
7065
- if (us) return Yt.exports;
7066
- if (us = 1, process.env.NODE_ENV !== "production") {
7067
- var t = un(), e = !0;
7068
- Yt.exports = /* @__PURE__ */ zo()(t.isElement, e);
7082
+ }, Ir;
7083
+ }
7084
+ var ds;
7085
+ function Wo() {
7086
+ if (ds) return Yt.exports;
7087
+ if (ds = 1, process.env.NODE_ENV !== "production") {
7088
+ var t = dn(), e = !0;
7089
+ Yt.exports = /* @__PURE__ */ Zo()(t.isElement, e);
7069
7090
  } else
7070
- Yt.exports = /* @__PURE__ */ Zo()();
7091
+ Yt.exports = /* @__PURE__ */ Bo()();
7071
7092
  return Yt.exports;
7072
7093
  }
7073
- var Wo = /* @__PURE__ */ Bo();
7074
- const Me = /* @__PURE__ */ ta(Wo);
7075
- var qo = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
7076
- function qr() {
7077
- return qr = Object.assign ? Object.assign.bind() : function(t) {
7094
+ var qo = /* @__PURE__ */ Wo();
7095
+ const Me = /* @__PURE__ */ ta(qo);
7096
+ var Go = ["sitekey", "onChange", "theme", "type", "tabindex", "onExpired", "onErrored", "size", "stoken", "grecaptcha", "badge", "hl", "isolated"];
7097
+ function Gr() {
7098
+ return Gr = Object.assign ? Object.assign.bind() : function(t) {
7078
7099
  for (var e = 1; e < arguments.length; e++) {
7079
7100
  var r = arguments[e];
7080
7101
  for (var n in r)
7081
7102
  Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
7082
7103
  }
7083
7104
  return t;
7084
- }, qr.apply(this, arguments);
7105
+ }, Gr.apply(this, arguments);
7085
7106
  }
7086
- function Go(t, e) {
7107
+ function Ho(t, e) {
7087
7108
  if (t == null) return {};
7088
7109
  var r = {}, n = Object.keys(t), s, a;
7089
7110
  for (a = 0; a < n.length; a++)
@@ -7095,16 +7116,16 @@ function Jt(t) {
7095
7116
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7096
7117
  return t;
7097
7118
  }
7098
- function Ho(t, e) {
7099
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Gr(t, e);
7119
+ function Yo(t, e) {
7120
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Hr(t, e);
7100
7121
  }
7101
- function Gr(t, e) {
7102
- return Gr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
7122
+ function Hr(t, e) {
7123
+ return Hr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, s) {
7103
7124
  return n.__proto__ = s, n;
7104
- }, Gr(t, e);
7125
+ }, Hr(t, e);
7105
7126
  }
7106
- var br = /* @__PURE__ */ (function(t) {
7107
- Ho(e, t);
7127
+ var xr = /* @__PURE__ */ (function(t) {
7128
+ Yo(e, t);
7108
7129
  function e() {
7109
7130
  var n;
7110
7131
  return n = t.call(this) || this, n.handleExpired = n.handleExpired.bind(Jt(n)), n.handleErrored = n.handleErrored.bind(Jt(n)), n.handleChange = n.handleChange.bind(Jt(n)), n.handleRecaptchaRef = n.handleRecaptchaRef.bind(Jt(n)), n;
@@ -7168,14 +7189,14 @@ var br = /* @__PURE__ */ (function(t) {
7168
7189
  }, r.render = function() {
7169
7190
  var s = this.props;
7170
7191
  s.sitekey, s.onChange, s.theme, s.type, s.tabindex, s.onExpired, s.onErrored, s.size, s.stoken, s.grecaptcha, s.badge, s.hl, s.isolated;
7171
- var a = Go(s, qo);
7172
- return /* @__PURE__ */ w.createElement("div", qr({}, a, {
7192
+ var a = Ho(s, Go);
7193
+ return /* @__PURE__ */ w.createElement("div", Gr({}, a, {
7173
7194
  ref: this.handleRecaptchaRef
7174
7195
  }));
7175
7196
  }, e;
7176
7197
  })(w.Component);
7177
- br.displayName = "ReCAPTCHA";
7178
- br.propTypes = {
7198
+ xr.displayName = "ReCAPTCHA";
7199
+ xr.propTypes = {
7179
7200
  sitekey: Me.string.isRequired,
7180
7201
  onChange: Me.func,
7181
7202
  grecaptcha: Me.object,
@@ -7190,7 +7211,7 @@ br.propTypes = {
7190
7211
  badge: Me.oneOf(["bottomright", "bottomleft", "inline"]),
7191
7212
  isolated: Me.bool
7192
7213
  };
7193
- br.defaultProps = {
7214
+ xr.defaultProps = {
7194
7215
  onChange: function() {
7195
7216
  },
7196
7217
  theme: "light",
@@ -7199,11 +7220,11 @@ br.defaultProps = {
7199
7220
  size: "normal",
7200
7221
  badge: "bottomright"
7201
7222
  };
7202
- var Ir, ds;
7203
- function Yo() {
7204
- if (ds) return Ir;
7205
- ds = 1;
7206
- var t = un(), e = {
7223
+ var Lr, fs;
7224
+ function Ko() {
7225
+ if (fs) return Lr;
7226
+ fs = 1;
7227
+ var t = dn(), e = {
7207
7228
  childContextTypes: !0,
7208
7229
  contextType: !0,
7209
7230
  contextTypes: !0,
@@ -7250,9 +7271,9 @@ function Yo() {
7250
7271
  }
7251
7272
  var C = c(v);
7252
7273
  l && (C = C.concat(l(v)));
7253
- for (var D = i(b), I = i(v), x = 0; x < C.length; ++x) {
7274
+ for (var U = i(b), I = i(v), x = 0; x < C.length; ++x) {
7254
7275
  var Z = C[x];
7255
- if (!r[Z] && !(S && S[Z]) && !(I && I[Z]) && !(D && D[Z])) {
7276
+ if (!r[Z] && !(S && S[Z]) && !(I && I[Z]) && !(U && U[Z])) {
7256
7277
  var j = f(v, Z);
7257
7278
  try {
7258
7279
  o(b, Z, j);
@@ -7263,42 +7284,42 @@ function Yo() {
7263
7284
  }
7264
7285
  return b;
7265
7286
  }
7266
- return Ir = m, Ir;
7287
+ return Lr = m, Lr;
7267
7288
  }
7268
- var Ko = Yo();
7269
- const Jo = /* @__PURE__ */ ta(Ko);
7270
- function Hr() {
7271
- return Hr = Object.assign || function(t) {
7289
+ var Jo = Ko();
7290
+ const Xo = /* @__PURE__ */ ta(Jo);
7291
+ function Yr() {
7292
+ return Yr = Object.assign || function(t) {
7272
7293
  for (var e = 1; e < arguments.length; e++) {
7273
7294
  var r = arguments[e];
7274
7295
  for (var n in r)
7275
7296
  Object.prototype.hasOwnProperty.call(r, n) && (t[n] = r[n]);
7276
7297
  }
7277
7298
  return t;
7278
- }, Hr.apply(this, arguments);
7299
+ }, Yr.apply(this, arguments);
7279
7300
  }
7280
- function Xo(t, e) {
7301
+ function Qo(t, e) {
7281
7302
  if (t == null) return {};
7282
7303
  var r = {}, n = Object.keys(t), s, a;
7283
7304
  for (a = 0; a < n.length; a++)
7284
7305
  s = n[a], !(e.indexOf(s) >= 0) && (r[s] = t[s]);
7285
7306
  return r;
7286
7307
  }
7287
- function Qo(t, e) {
7308
+ function ec(t, e) {
7288
7309
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
7289
7310
  }
7290
- var qe = {}, ec = 0;
7291
- function tc(t, e) {
7311
+ var qe = {}, tc = 0;
7312
+ function rc(t, e) {
7292
7313
  return e = e || {}, function(n) {
7293
7314
  var s = n.displayName || n.name || "Component", a = /* @__PURE__ */ (function(o) {
7294
- Qo(c, o);
7315
+ ec(c, o);
7295
7316
  function c(f, d) {
7296
7317
  var p;
7297
7318
  return p = o.call(this, f, d) || this, p.state = {}, p.__scriptURL = "", p;
7298
7319
  }
7299
7320
  var l = c.prototype;
7300
7321
  return l.asyncScriptLoaderGetScriptLoaderID = function() {
7301
- return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + ec++), this.__scriptLoaderID;
7322
+ return this.__scriptLoaderID || (this.__scriptLoaderID = "async-script-loader-" + tc++), this.__scriptLoaderID;
7302
7323
  }, l.setupScriptURL = function() {
7303
7324
  return this.__scriptURL = typeof t == "function" ? t() : t, this.__scriptURL;
7304
7325
  }, l.asyncScriptLoaderHandleLoad = function(d) {
@@ -7329,36 +7350,36 @@ function tc(t, e) {
7329
7350
  };
7330
7351
  return;
7331
7352
  }
7332
- var D = {};
7333
- D[m] = function(j) {
7353
+ var U = {};
7354
+ U[m] = function(j) {
7334
7355
  return d.asyncScriptLoaderHandleLoad(j);
7335
7356
  }, qe[p] = {
7336
7357
  loaded: !1,
7337
- observers: D
7358
+ observers: U
7338
7359
  };
7339
7360
  var I = document.createElement("script");
7340
7361
  I.src = p, I.async = !0;
7341
7362
  for (var x in e.attributes)
7342
7363
  I.setAttribute(x, e.attributes[x]);
7343
7364
  k && (I.id = k);
7344
- var Z = function(U) {
7365
+ var Z = function(z) {
7345
7366
  if (qe[p]) {
7346
7367
  var B = qe[p], re = B.observers;
7347
7368
  for (var he in re)
7348
- U(re[he]) && delete re[he];
7369
+ z(re[he]) && delete re[he];
7349
7370
  }
7350
7371
  };
7351
7372
  S && typeof window < "u" && (window[S] = function() {
7352
7373
  return d.asyncScriptLoaderTriggerOnScriptLoaded();
7353
7374
  }), I.onload = function() {
7354
7375
  var j = qe[p];
7355
- j && (j.loaded = !0, Z(function(U) {
7356
- return S ? !1 : (U(j), !0);
7376
+ j && (j.loaded = !0, Z(function(z) {
7377
+ return S ? !1 : (z(j), !0);
7357
7378
  }));
7358
7379
  }, I.onerror = function() {
7359
7380
  var j = qe[p];
7360
- j && (j.errored = !0, Z(function(U) {
7361
- return U(j), !0;
7381
+ j && (j.errored = !0, Z(function(z) {
7382
+ return z(j), !0;
7362
7383
  }));
7363
7384
  }, document.body.appendChild(I);
7364
7385
  }, l.componentWillUnmount = function() {
@@ -7371,56 +7392,56 @@ function tc(t, e) {
7371
7392
  }, l.render = function() {
7372
7393
  var d = e.globalName, p = this.props;
7373
7394
  p.asyncScriptOnLoad;
7374
- var m = p.forwardedRef, b = Xo(p, ["asyncScriptOnLoad", "forwardedRef"]);
7375
- return d && typeof window < "u" && (b[d] = typeof window[d] < "u" ? window[d] : void 0), b.ref = m, Dt(n, b);
7395
+ var m = p.forwardedRef, b = Qo(p, ["asyncScriptOnLoad", "forwardedRef"]);
7396
+ return d && typeof window < "u" && (b[d] = typeof window[d] < "u" ? window[d] : void 0), b.ref = m, Ut(n, b);
7376
7397
  }, c;
7377
7398
  })(Ga), i = yr(function(o, c) {
7378
- return Dt(a, Hr({}, o, {
7399
+ return Ut(a, Yr({}, o, {
7379
7400
  forwardedRef: c
7380
7401
  }));
7381
7402
  });
7382
7403
  return i.displayName = "AsyncScriptLoader(" + s + ")", i.propTypes = {
7383
7404
  asyncScriptOnLoad: Me.func
7384
- }, Jo(i, n);
7405
+ }, Xo(i, n);
7385
7406
  };
7386
7407
  }
7387
- var Yr = "onloadcallback", rc = "grecaptcha";
7388
- function Kr() {
7408
+ var Kr = "onloadcallback", nc = "grecaptcha";
7409
+ function Jr() {
7389
7410
  return typeof window < "u" && window.recaptchaOptions || {};
7390
7411
  }
7391
- function nc() {
7392
- var t = Kr(), e = t.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
7393
- return t.enterprise ? "https://" + e + "/recaptcha/enterprise.js?onload=" + Yr + "&render=explicit" : "https://" + e + "/recaptcha/api.js?onload=" + Yr + "&render=explicit";
7412
+ function sc() {
7413
+ var t = Jr(), e = t.useRecaptchaNet ? "recaptcha.net" : "www.google.com";
7414
+ return t.enterprise ? "https://" + e + "/recaptcha/enterprise.js?onload=" + Kr + "&render=explicit" : "https://" + e + "/recaptcha/api.js?onload=" + Kr + "&render=explicit";
7394
7415
  }
7395
- const sc = tc(nc, {
7396
- callbackName: Yr,
7397
- globalName: rc,
7398
- attributes: Kr().nonce ? {
7399
- nonce: Kr().nonce
7416
+ const ac = rc(sc, {
7417
+ callbackName: Kr,
7418
+ globalName: nc,
7419
+ attributes: Jr().nonce ? {
7420
+ nonce: Jr().nonce
7400
7421
  } : {}
7401
- })(br);
7422
+ })(xr);
7402
7423
  function ze(t) {
7403
7424
  if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7404
7425
  return t;
7405
7426
  }
7406
- function Jr(t, e) {
7407
- return Jr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
7427
+ function Xr(t, e) {
7428
+ return Xr = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, n) {
7408
7429
  return r.__proto__ = n, r;
7409
- }, Jr(t, e);
7430
+ }, Xr(t, e);
7410
7431
  }
7411
- function ac(t, e) {
7412
- t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Jr(t, e);
7432
+ function ic(t, e) {
7433
+ t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Xr(t, e);
7413
7434
  }
7414
- var ic = Object.defineProperty, oc = Object.defineProperties, cc = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Xr = (t, e, r) => e in t ? ic(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Fe = (t, e) => {
7415
- for (var r in e || (e = {})) na.call(e, r) && Xr(t, r, e[r]);
7416
- if (pr) for (var r of pr(e)) sa.call(e, r) && Xr(t, r, e[r]);
7435
+ var oc = Object.defineProperty, cc = Object.defineProperties, lc = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, na = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Qr = (t, e, r) => e in t ? oc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, Fe = (t, e) => {
7436
+ for (var r in e || (e = {})) na.call(e, r) && Qr(t, r, e[r]);
7437
+ if (pr) for (var r of pr(e)) sa.call(e, r) && Qr(t, r, e[r]);
7417
7438
  return t;
7418
- }, aa = (t, e) => oc(t, cc(e)), lc = (t, e) => {
7439
+ }, aa = (t, e) => cc(t, lc(e)), uc = (t, e) => {
7419
7440
  var r = {};
7420
7441
  for (var n in t) na.call(t, n) && e.indexOf(n) < 0 && (r[n] = t[n]);
7421
7442
  if (t != null && pr) for (var n of pr(t)) e.indexOf(n) < 0 && sa.call(t, n) && (r[n] = t[n]);
7422
7443
  return r;
7423
- }, Oe = (t, e, r) => (Xr(t, typeof e != "symbol" ? e + "" : e, r), r), At = (t, e, r) => new Promise((n, s) => {
7444
+ }, Oe = (t, e, r) => (Qr(t, typeof e != "symbol" ? e + "" : e, r), r), At = (t, e, r) => new Promise((n, s) => {
7424
7445
  var a = (c) => {
7425
7446
  try {
7426
7447
  o(r.next(c));
@@ -7435,8 +7456,8 @@ var ic = Object.defineProperty, oc = Object.defineProperties, cc = Object.getOwn
7435
7456
  }
7436
7457
  }, o = (c) => c.done ? n(c.value) : Promise.resolve(c.value).then(a, i);
7437
7458
  o((r = r.apply(t, e)).next());
7438
- }), uc = "hCaptcha-script", rr = "hCaptchaOnLoad", fs = "script-error", ot = "@hCaptcha/loader";
7439
- function dc(t) {
7459
+ }), dc = "hCaptcha-script", rr = "hCaptchaOnLoad", hs = "script-error", ot = "@hCaptcha/loader";
7460
+ function fc(t) {
7440
7461
  return Object.entries(t).filter(([, e]) => e || e === !1).map(([e, r]) => `${encodeURIComponent(e)}=${encodeURIComponent(String(r))}`).join("&");
7441
7462
  }
7442
7463
  function ia(t) {
@@ -7446,25 +7467,25 @@ function ia(t) {
7446
7467
  function oa(t) {
7447
7468
  return t || document.head;
7448
7469
  }
7449
- function fc(t) {
7470
+ function hc(t) {
7450
7471
  var e;
7451
- t.setTag("source", ot), t.setTag("url", document.URL), t.setContext("os", { UA: navigator.userAgent }), t.setContext("browser", Fe({}, hc())), t.setContext("device", aa(Fe({}, mc()), { 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 }));
7472
+ t.setTag("source", ot), t.setTag("url", document.URL), t.setContext("os", { UA: navigator.userAgent }), t.setContext("browser", Fe({}, pc())), t.setContext("device", aa(Fe({}, yc()), { 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 }));
7452
7473
  }
7453
- function hc() {
7474
+ function pc() {
7454
7475
  var t, e, r, n, s, a;
7455
7476
  let i = navigator.userAgent, o, c;
7456
7477
  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 };
7457
7478
  }
7458
- function pc(t) {
7479
+ function mc(t) {
7459
7480
  return new Promise((e) => setTimeout(e, t));
7460
7481
  }
7461
- function mc() {
7482
+ function yc() {
7462
7483
  let t = navigator.userAgent, e;
7463
7484
  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";
7464
7485
  let r;
7465
7486
  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 };
7466
7487
  }
7467
- var yc = class ca {
7488
+ var gc = class ca {
7468
7489
  constructor(e) {
7469
7490
  Oe(this, "_parent"), Oe(this, "breadcrumbs", []), Oe(this, "context", {}), Oe(this, "extra", {}), Oe(this, "tags", {}), Oe(this, "request"), Oe(this, "user"), this._parent = e;
7470
7491
  }
@@ -7521,27 +7542,27 @@ var yc = class ca {
7521
7542
  clear() {
7522
7543
  this.breadcrumbs = [], this.context = {}, this.tags = {}, this.user = void 0;
7523
7544
  }
7524
- }, gc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, vc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, bc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, xc = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Xt = "?", hs = "An unknown error occurred", _c = "0.0.4";
7525
- function wc(t) {
7545
+ }, vc = /^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i, bc = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i, xc = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i, _c = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/, Xt = "?", ps = "An unknown error occurred", wc = "0.0.4";
7546
+ function kc(t) {
7526
7547
  for (let e = 0; e < t.length; e++) t[e] = Math.floor(Math.random() * 256);
7527
7548
  return t;
7528
7549
  }
7529
7550
  function Te(t) {
7530
7551
  return (t + 256).toString(16).substring(1);
7531
7552
  }
7532
- function kc() {
7533
- let t = wc(new Array(16));
7553
+ function Sc() {
7554
+ let t = kc(new Array(16));
7534
7555
  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]);
7535
7556
  }
7536
- var Sc = [[gc, "chrome"], [bc, "winjs"], [vc, "gecko"]];
7537
- function Cc(t) {
7557
+ var Cc = [[vc, "chrome"], [xc, "winjs"], [bc, "gecko"]];
7558
+ function Ec(t) {
7538
7559
  var e, r, n, s;
7539
7560
  if (!t.stack) return null;
7540
7561
  let a = [], i = (n = (r = (e = t.stack).split) == null ? void 0 : r.call(e, `
7541
7562
  `)) != null ? n : [];
7542
7563
  for (let o = 0; o < i.length; ++o) {
7543
7564
  let c = null, l = null, f = null;
7544
- for (let [d, p] of Sc) if (l = d.exec(i[o]), l) {
7565
+ for (let [d, p] of Cc) if (l = d.exec(i[o]), l) {
7545
7566
  f = p;
7546
7567
  break;
7547
7568
  }
@@ -7555,38 +7576,38 @@ function Cc(t) {
7555
7576
  }
7556
7577
  return a.length ? a.reverse() : null;
7557
7578
  }
7558
- function Ec(t) {
7559
- let e = Cc(t);
7579
+ function Rc(t) {
7580
+ let e = Ec(t);
7560
7581
  return { type: t.name, value: t.message, stacktrace: { frames: e ?? [] } };
7561
7582
  }
7562
- function Rc(t) {
7563
- let e = xc.exec(t), r = e ? e.slice(1) : [];
7583
+ function Oc(t) {
7584
+ let e = _c.exec(t), r = e ? e.slice(1) : [];
7564
7585
  if (r.length !== 6) throw new Error("Invalid DSN");
7565
7586
  let n = r[5].split("/"), s = n.slice(0, -1).join("/");
7566
7587
  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] : "");
7567
7588
  }
7568
- function Oc(t, e, r) {
7589
+ function Nc(t, e, r) {
7569
7590
  var n, s;
7570
- let a = Fe({ event_id: kc().replaceAll("-", ""), platform: "javascript", sdk: { name: "@hcaptcha/sentry", version: _c }, environment: e, release: r, timestamp: Date.now() / 1e3 }, t.scope.toBody());
7591
+ let a = Fe({ event_id: Sc().replaceAll("-", ""), platform: "javascript", sdk: { name: "@hcaptcha/sentry", version: wc }, environment: e, release: r, timestamp: Date.now() / 1e3 }, t.scope.toBody());
7571
7592
  if (t.type === "exception") {
7572
7593
  a.message = (s = (n = t.error) == null ? void 0 : n.message) != null ? s : "Unknown error", a.fingerprint = [a.message];
7573
7594
  let i = [], o = t.error;
7574
- for (let c = 0; c < 5 && o && (i.push(Ec(o)), !(!o.cause || !(o.cause instanceof Error))); c++) o = o.cause;
7595
+ for (let c = 0; c < 5 && o && (i.push(Rc(o)), !(!o.cause || !(o.cause instanceof Error))); c++) o = o.cause;
7575
7596
  a.exception = { values: i.reverse() };
7576
7597
  }
7577
7598
  return t.type === "message" && (a.message = t.message, a.level = t.level), a;
7578
7599
  }
7579
- function Nc(t) {
7600
+ function Ac(t) {
7580
7601
  if (t instanceof Error) return t;
7581
7602
  if (typeof t == "string") return new Error(t);
7582
7603
  if (typeof t == "object" && t !== null && !Array.isArray(t)) {
7583
- let r = t, { message: n } = r, s = lc(r, ["message"]), a = new Error(typeof n == "string" ? n : hs);
7604
+ let r = t, { message: n } = r, s = uc(r, ["message"]), a = new Error(typeof n == "string" ? n : ps);
7584
7605
  return Object.assign(a, s);
7585
7606
  }
7586
- let e = new Error(hs);
7607
+ let e = new Error(ps);
7587
7608
  return Object.assign(e, { cause: t });
7588
7609
  }
7589
- function Ac(t, e, r) {
7610
+ function Tc(t, e, r) {
7590
7611
  return At(this, null, function* () {
7591
7612
  var n, s;
7592
7613
  try {
@@ -7618,11 +7639,11 @@ function Ac(t, e, r) {
7618
7639
  }
7619
7640
  });
7620
7641
  }
7621
- var je, Qr = (je = class {
7642
+ var je, en = (je = class {
7622
7643
  constructor(t) {
7623
7644
  Oe(this, "apiURL"), Oe(this, "dsn"), Oe(this, "environment"), Oe(this, "release"), Oe(this, "sampleRate"), Oe(this, "debug"), Oe(this, "_scope"), Oe(this, "shouldBuffer", !1), Oe(this, "bufferlimit", 20), Oe(this, "buffer", []);
7624
7645
  var e, r, n, s, a;
7625
- 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 yc(), this.apiURL = Rc(t.dsn), this.dsn = t.dsn, this.shouldBuffer = (s = t.buffer) != null ? s : !1, this.bufferlimit = (a = t.bufferLimit) != null ? a : 20;
7646
+ 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 gc(), this.apiURL = Oc(t.dsn), this.dsn = t.dsn, this.shouldBuffer = (s = t.buffer) != null ? s : !1, this.bufferlimit = (a = t.bufferLimit) != null ? a : 20;
7626
7647
  }
7627
7648
  static init(t) {
7628
7649
  je._instance || (je._instance = new je(t));
@@ -7648,7 +7669,7 @@ var je, Qr = (je = class {
7648
7669
  je.instance.withScope(t);
7649
7670
  }
7650
7671
  captureException(t, e) {
7651
- this.captureEvent({ type: "exception", level: "error", error: Nc(t), scope: e ?? this._scope });
7672
+ this.captureEvent({ type: "exception", level: "error", error: Ac(t), scope: e ?? this._scope });
7652
7673
  }
7653
7674
  static captureException(t, e) {
7654
7675
  je.instance.captureException(t, e);
@@ -7673,9 +7694,9 @@ var je, Qr = (je = class {
7673
7694
  return At(this, null, function* () {
7674
7695
  try {
7675
7696
  this.log("Sending sentry event", t);
7676
- let r = Oc(t, this.environment, this.release), n = { event_id: r.event_id, dsn: this.dsn }, s = { type: "event" }, a = JSON.stringify(n) + `
7697
+ let r = Nc(t, this.environment, this.release), n = { event_id: r.event_id, dsn: this.dsn }, s = { type: "event" }, a = JSON.stringify(n) + `
7677
7698
  ` + JSON.stringify(s) + `
7678
- ` + JSON.stringify(r), i = yield Ac(this.apiURL, { method: "POST", headers: { "Content-Type": "application/x-sentry-envelope" }, body: a }, e);
7699
+ ` + JSON.stringify(r), i = yield Tc(this.apiURL, { method: "POST", headers: { "Content-Type": "application/x-sentry-envelope" }, body: a }, e);
7679
7700
  this.log("Sentry response", i.status), i.status !== 200 && (console.log(i.body), console.error("Failed to send event to Sentry", i));
7680
7701
  } catch (r) {
7681
7702
  console.error("Failed to send event", r);
@@ -7699,27 +7720,27 @@ var je, Qr = (je = class {
7699
7720
  static reset() {
7700
7721
  je._instance = void 0;
7701
7722
  }
7702
- }, Oe(je, "_instance"), je), Tc = "https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6", Pc = "2.3.0", Ic = "production";
7703
- function Lc(t = !0) {
7704
- if (!t) return ps();
7705
- Qr.init({ dsn: Tc, release: Pc, environment: Ic });
7706
- let e = Qr.scope;
7707
- return fc(e), ps(e);
7723
+ }, Oe(je, "_instance"), je), Pc = "https://d233059272824702afc8c43834c4912d@sentry.hcaptcha.com/6", Ic = "2.3.0", Lc = "production";
7724
+ function jc(t = !0) {
7725
+ if (!t) return ms();
7726
+ en.init({ dsn: Pc, release: Ic, environment: Lc });
7727
+ let e = en.scope;
7728
+ return hc(e), ms(e);
7708
7729
  }
7709
- function ps(t = null) {
7730
+ function ms(t = null) {
7710
7731
  return { addBreadcrumb: (e) => {
7711
7732
  t && t.addBreadcrumb(e);
7712
7733
  }, captureRequest: (e) => {
7713
7734
  t && t.setRequest(e);
7714
7735
  }, captureException: (e) => {
7715
- t && Qr.captureException(e, t);
7736
+ t && en.captureException(e, t);
7716
7737
  } };
7717
7738
  }
7718
- function jc({ scriptLocation: t, query: e, loadAsync: r = !0, crossOrigin: n = "anonymous", apihost: s = "https://js.hcaptcha.com", cleanup: a = !1, secureApi: i = !1, scriptSource: o = "" } = {}, c) {
7739
+ function Mc({ 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) {
7719
7740
  let l = oa(t), f = ia(l);
7720
7741
  return new Promise((d, p) => {
7721
7742
  let m = f.document.createElement("script");
7722
- m.id = uc, o ? m.src = `${o}?onload=${rr}` : i ? m.src = `${s}/1/secure-api.js?onload=${rr}` : m.src = `${s}/1/api.js?onload=${rr}`, m.crossOrigin = n, m.async = r;
7743
+ m.id = dc, o ? m.src = `${o}?onload=${rr}` : i ? m.src = `${s}/1/secure-api.js?onload=${rr}` : m.src = `${s}/1/api.js?onload=${rr}`, m.crossOrigin = n, m.async = r;
7723
7744
  let b = (v, S) => {
7724
7745
  try {
7725
7746
  !i && a && l.removeChild(m), S(v);
@@ -7733,7 +7754,7 @@ function jc({ scriptLocation: t, query: e, loadAsync: r = !0, crossOrigin: n = "
7733
7754
  });
7734
7755
  }
7735
7756
  var Qt = [];
7736
- function Mc(t = { cleanup: !1 }, e) {
7757
+ function Vc(t = { cleanup: !1 }, e) {
7737
7758
  try {
7738
7759
  e.addBreadcrumb({ category: ot, message: "hCaptcha loader params", data: t });
7739
7760
  let r = oa(t.scriptLocation), n = ia(r), s = Qt.find(({ scope: i }) => i === n.window);
@@ -7743,19 +7764,19 @@ function Mc(t = { cleanup: !1 }, e) {
7743
7764
  n.window[rr] = () => {
7744
7765
  e.addBreadcrumb({ category: ot, message: "hCaptcha script called onload function" }), i(n.window.hcaptcha);
7745
7766
  };
7746
- let c = dc({ 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 });
7747
- yield jc(Fe({ query: c }, t), (l) => {
7767
+ let c = fc({ 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 });
7768
+ yield Mc(Fe({ query: c }, t), (l) => {
7748
7769
  e.captureRequest({ url: l, method: "GET" });
7749
7770
  }), e.addBreadcrumb({ category: ot, message: "hCaptcha loaded", data: s });
7750
7771
  } catch {
7751
7772
  e.addBreadcrumb({ category: ot, message: "hCaptcha failed to load" });
7752
7773
  let l = Qt.findIndex((f) => f.scope === n.window);
7753
- l !== -1 && Qt.splice(l, 1), o(new Error(fs));
7774
+ l !== -1 && Qt.splice(l, 1), o(new Error(hs));
7754
7775
  }
7755
7776
  }));
7756
7777
  return Qt.push({ promise: a, scope: n.window }), a;
7757
7778
  } catch (r) {
7758
- return e.captureException(r), Promise.reject(new Error(fs));
7779
+ return e.captureException(r), Promise.reject(new Error(hs));
7759
7780
  }
7760
7781
  }
7761
7782
  function la(t, e, r = 0) {
@@ -7763,30 +7784,30 @@ function la(t, e, r = 0) {
7763
7784
  var n, s;
7764
7785
  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";
7765
7786
  try {
7766
- return yield Mc(t, e);
7787
+ return yield Vc(t, e);
7767
7788
  } catch (c) {
7768
- return e.addBreadcrumb({ category: ot, message: o }), r >= a ? (e.captureException(c), Promise.reject(c)) : (e.addBreadcrumb({ category: ot, message: `Waiting ${i}ms before retry attempt ${r + 1}` }), yield pc(i), r += 1, la(t, e, r));
7789
+ return e.addBreadcrumb({ category: ot, message: o }), r >= a ? (e.captureException(c), Promise.reject(c)) : (e.addBreadcrumb({ category: ot, message: `Waiting ${i}ms before retry attempt ${r + 1}` }), yield mc(i), r += 1, la(t, e, r));
7769
7790
  }
7770
7791
  });
7771
7792
  }
7772
- function Vc() {
7793
+ function $c() {
7773
7794
  return At(this, arguments, function* (t = {}) {
7774
- let e = Lc(t.sentry);
7795
+ let e = jc(t.sentry);
7775
7796
  return yield la(t, e);
7776
7797
  });
7777
7798
  }
7778
- function ms(t) {
7799
+ function ys(t) {
7779
7800
  var e = t && t.ownerDocument || document, r = e.defaultView || e.parentWindow || window;
7780
7801
  return {
7781
7802
  document: e,
7782
7803
  window: r
7783
7804
  };
7784
7805
  }
7785
- function ys(t) {
7806
+ function gs(t) {
7786
7807
  return t || document.head;
7787
7808
  }
7788
- var $c = /* @__PURE__ */ (function(t) {
7789
- ac(e, t);
7809
+ var Fc = /* @__PURE__ */ (function(t) {
7810
+ ic(e, t);
7790
7811
  function e(n) {
7791
7812
  var s;
7792
7813
  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 = {
@@ -7797,7 +7818,7 @@ var $c = /* @__PURE__ */ (function(t) {
7797
7818
  }
7798
7819
  var r = e.prototype;
7799
7820
  return r.componentDidMount = function() {
7800
- var s = this, a = ys(this.props.scriptLocation), i = ms(a);
7821
+ var s = this, a = gs(this.props.scriptLocation), i = ys(a);
7801
7822
  this._hcaptcha = i.window.hcaptcha || void 0;
7802
7823
  var o = typeof this._hcaptcha < "u";
7803
7824
  if (o) {
@@ -7823,7 +7844,7 @@ var $c = /* @__PURE__ */ (function(t) {
7823
7844
  });
7824
7845
  }, r.loadCaptcha = function() {
7825
7846
  if (!this.apiScriptRequested) {
7826
- var s = this.props, a = s.apihost, i = s.assethost, o = s.endpoint, c = s.host, l = s.imghost, f = s.languageOverride, d = s.reCaptchaCompat, p = s.reportapi, m = s.sentry, b = s.custom, v = s.loadAsync, S = s.scriptLocation, k = s.scriptSource, C = s.secureApi, D = s.cleanup, I = D === void 0 ? !0 : D, x = s.userJourneys, Z = {
7847
+ var s = this.props, a = s.apihost, i = s.assethost, o = s.endpoint, c = s.host, l = s.imghost, f = s.languageOverride, d = s.reCaptchaCompat, p = s.reportapi, m = s.sentry, b = s.custom, v = s.loadAsync, S = s.scriptLocation, k = s.scriptSource, C = s.secureApi, U = s.cleanup, I = U === void 0 ? !0 : U, x = s.userJourneys, Z = {
7827
7848
  render: "explicit",
7828
7849
  apihost: a,
7829
7850
  assethost: i,
@@ -7842,7 +7863,7 @@ var $c = /* @__PURE__ */ (function(t) {
7842
7863
  cleanup: I,
7843
7864
  uj: x !== void 0 ? x : !1
7844
7865
  };
7845
- Vc(Z).then(this.handleOnLoad, this.handleError).catch(this.handleError), this.apiScriptRequested = !0;
7866
+ $c(Z).then(this.handleOnLoad, this.handleError).catch(this.handleError), this.apiScriptRequested = !0;
7846
7867
  }
7847
7868
  }, r.renderCaptcha = function(s) {
7848
7869
  var a = this, i = this.props.onReady, o = this.state.isApiReady, c = this.captchaId;
@@ -7879,7 +7900,7 @@ var $c = /* @__PURE__ */ (function(t) {
7879
7900
  this.setState({
7880
7901
  isApiReady: !0
7881
7902
  }, function() {
7882
- var a = ys(s.props.scriptLocation), i = ms(a);
7903
+ var a = gs(s.props.scriptLocation), i = ys(a);
7883
7904
  s._hcaptcha = i.window.hcaptcha, s.renderCaptcha(function() {
7884
7905
  var o = s.props.onLoad;
7885
7906
  o && o();
@@ -7974,7 +7995,7 @@ var $c = /* @__PURE__ */ (function(t) {
7974
7995
  });
7975
7996
  }, e;
7976
7997
  })(w.Component);
7977
- const Bt = yr(
7998
+ const Wt = yr(
7978
7999
  ({ config: t, onVerify: e, onExpire: r }, n) => {
7979
8000
  const s = lt(null), a = lt(null);
7980
8001
  return Ha(n, () => ({
@@ -7983,7 +8004,7 @@ const Bt = yr(
7983
8004
  (i = s.current) == null || i.reset(), (o = a.current) == null || o.resetCaptcha();
7984
8005
  }
7985
8006
  })), !t.enabled || !t.siteKey ? null : t.provider === "hcaptcha" ? /* @__PURE__ */ h(
7986
- $c,
8007
+ Fc,
7987
8008
  {
7988
8009
  ref: a,
7989
8010
  sitekey: t.siteKey,
@@ -7991,7 +8012,7 @@ const Bt = yr(
7991
8012
  onExpire: r
7992
8013
  }
7993
8014
  ) : t.version !== "v3" ? /* @__PURE__ */ h(
7994
- sc,
8015
+ ac,
7995
8016
  {
7996
8017
  ref: s,
7997
8018
  sitekey: t.siteKey,
@@ -8001,44 +8022,44 @@ const Bt = yr(
8001
8022
  ) : null;
8002
8023
  }
8003
8024
  );
8004
- Bt.displayName = "CaptchaWidget";
8005
- function gs(t, e) {
8025
+ Wt.displayName = "CaptchaWidget";
8026
+ function vs(t, e) {
8006
8027
  if (typeof t == "function")
8007
8028
  return t(e);
8008
8029
  t != null && (t.current = e);
8009
8030
  }
8010
- function fn(...t) {
8031
+ function hn(...t) {
8011
8032
  return (e) => {
8012
8033
  let r = !1;
8013
8034
  const n = t.map((s) => {
8014
- const a = gs(s, e);
8035
+ const a = vs(s, e);
8015
8036
  return !r && typeof a == "function" && (r = !0), a;
8016
8037
  });
8017
8038
  if (r)
8018
8039
  return () => {
8019
8040
  for (let s = 0; s < n.length; s++) {
8020
8041
  const a = n[s];
8021
- typeof a == "function" ? a() : gs(t[s], null);
8042
+ typeof a == "function" ? a() : vs(t[s], null);
8022
8043
  }
8023
8044
  };
8024
8045
  };
8025
8046
  }
8026
- function hn(...t) {
8027
- return w.useCallback(fn(...t), t);
8047
+ function pn(...t) {
8048
+ return w.useCallback(hn(...t), t);
8028
8049
  }
8029
- var Fc = Symbol.for("react.lazy"), mr = w[" use ".trim().toString()];
8030
- function Dc(t) {
8050
+ var Dc = Symbol.for("react.lazy"), mr = w[" use ".trim().toString()];
8051
+ function Uc(t) {
8031
8052
  return typeof t == "object" && t !== null && "then" in t;
8032
8053
  }
8033
8054
  function ua(t) {
8034
- return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Fc && "_payload" in t && Dc(t._payload);
8055
+ return t != null && typeof t == "object" && "$$typeof" in t && t.$$typeof === Dc && "_payload" in t && Uc(t._payload);
8035
8056
  }
8036
8057
  // @__NO_SIDE_EFFECTS__
8037
8058
  function da(t) {
8038
- const e = /* @__PURE__ */ zc(t), r = w.forwardRef((n, s) => {
8059
+ const e = /* @__PURE__ */ Zc(t), r = w.forwardRef((n, s) => {
8039
8060
  let { children: a, ...i } = n;
8040
8061
  ua(a) && typeof mr == "function" && (a = mr(a._payload));
8041
- const o = w.Children.toArray(a), c = o.find(Bc);
8062
+ const o = w.Children.toArray(a), c = o.find(Wc);
8042
8063
  if (c) {
8043
8064
  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);
8044
8065
  return /* @__PURE__ */ h(e, { ...i, ref: s, children: w.isValidElement(l) ? w.cloneElement(l, void 0, f) : null });
@@ -8047,24 +8068,24 @@ function da(t) {
8047
8068
  });
8048
8069
  return r.displayName = `${t}.Slot`, r;
8049
8070
  }
8050
- var Uc = /* @__PURE__ */ da("Slot");
8071
+ var zc = /* @__PURE__ */ da("Slot");
8051
8072
  // @__NO_SIDE_EFFECTS__
8052
- function zc(t) {
8073
+ function Zc(t) {
8053
8074
  const e = w.forwardRef((r, n) => {
8054
8075
  let { children: s, ...a } = r;
8055
8076
  if (ua(s) && typeof mr == "function" && (s = mr(s._payload)), w.isValidElement(s)) {
8056
- const i = qc(s), o = Wc(a, s.props);
8057
- return s.type !== w.Fragment && (o.ref = n ? fn(n, i) : i), w.cloneElement(s, o);
8077
+ const i = Gc(s), o = qc(a, s.props);
8078
+ return s.type !== w.Fragment && (o.ref = n ? hn(n, i) : i), w.cloneElement(s, o);
8058
8079
  }
8059
8080
  return w.Children.count(s) > 1 ? w.Children.only(null) : null;
8060
8081
  });
8061
8082
  return e.displayName = `${t}.SlotClone`, e;
8062
8083
  }
8063
- var Zc = Symbol("radix.slottable");
8064
- function Bc(t) {
8065
- return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Zc;
8084
+ var Bc = Symbol("radix.slottable");
8085
+ function Wc(t) {
8086
+ return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === Bc;
8066
8087
  }
8067
- function Wc(t, e) {
8088
+ function qc(t, e) {
8068
8089
  const r = { ...e };
8069
8090
  for (const n in e) {
8070
8091
  const s = t[n], a = e[n];
@@ -8075,18 +8096,18 @@ function Wc(t, e) {
8075
8096
  }
8076
8097
  return { ...t, ...r };
8077
8098
  }
8078
- function qc(t) {
8099
+ function Gc(t) {
8079
8100
  var n, s;
8080
8101
  let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
8081
8102
  return r ? t.ref : (e = (s = Object.getOwnPropertyDescriptor(t, "ref")) == null ? void 0 : s.get, r = e && "isReactWarning" in e && e.isReactWarning, r ? t.props.ref : t.props.ref || t.ref);
8082
8103
  }
8083
- const vs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, bs = Ys, fa = (t, e) => (r) => {
8104
+ const bs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, xs = Ys, fa = (t, e) => (r) => {
8084
8105
  var n;
8085
- if ((e == null ? void 0 : e.variants) == null) return bs(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
8106
+ if ((e == null ? void 0 : e.variants) == null) return xs(t, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
8086
8107
  const { variants: s, defaultVariants: a } = e, i = Object.keys(s).map((l) => {
8087
8108
  const f = r == null ? void 0 : r[l], d = a == null ? void 0 : a[l];
8088
8109
  if (f === null) return null;
8089
- const p = vs(f) || vs(d);
8110
+ const p = bs(f) || bs(d);
8090
8111
  return s[l][p];
8091
8112
  }), o = r && Object.entries(r).reduce((l, f) => {
8092
8113
  let [d, p] = f;
@@ -8108,8 +8129,8 @@ const vs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, bs = Ys, f
8108
8129
  p
8109
8130
  ] : l;
8110
8131
  }, []);
8111
- return bs(t, i, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
8112
- }, Gc = fa(
8132
+ return xs(t, i, c, r == null ? void 0 : r.class, r == null ? void 0 : r.className);
8133
+ }, Hc = fa(
8113
8134
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
8114
8135
  {
8115
8136
  variants: {
@@ -8135,9 +8156,9 @@ const vs = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, bs = Ys, f
8135
8156
  }
8136
8157
  ), pt = w.forwardRef(
8137
8158
  ({ className: t, variant: e, size: r, asChild: n = !1, ...s }, a) => /* @__PURE__ */ h(
8138
- n ? Uc : "button",
8159
+ n ? zc : "button",
8139
8160
  {
8140
- className: me(Gc({ variant: e, size: r, className: t })),
8161
+ className: me(Hc({ variant: e, size: r, className: t })),
8141
8162
  ref: a,
8142
8163
  ...s
8143
8164
  }
@@ -8159,7 +8180,7 @@ const He = w.forwardRef(
8159
8180
  )
8160
8181
  );
8161
8182
  He.displayName = "Input";
8162
- var Hc = [
8183
+ var Yc = [
8163
8184
  "a",
8164
8185
  "button",
8165
8186
  "div",
@@ -8177,13 +8198,13 @@ var Hc = [
8177
8198
  "span",
8178
8199
  "svg",
8179
8200
  "ul"
8180
- ], Gt = Hc.reduce((t, e) => {
8201
+ ], Gt = Yc.reduce((t, e) => {
8181
8202
  const r = /* @__PURE__ */ da(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8182
8203
  const { asChild: i, ...o } = s, c = i ? r : e;
8183
8204
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
8184
8205
  });
8185
8206
  return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
8186
- }, {}), Yc = "Label", ha = w.forwardRef((t, e) => /* @__PURE__ */ h(
8207
+ }, {}), Kc = "Label", ha = w.forwardRef((t, e) => /* @__PURE__ */ h(
8187
8208
  Gt.label,
8188
8209
  {
8189
8210
  ...t,
@@ -8194,15 +8215,15 @@ var Hc = [
8194
8215
  }
8195
8216
  }
8196
8217
  ));
8197
- ha.displayName = Yc;
8218
+ ha.displayName = Kc;
8198
8219
  var pa = ha;
8199
- const Kc = fa(
8220
+ const Jc = fa(
8200
8221
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
8201
8222
  ), Ze = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8202
8223
  pa,
8203
8224
  {
8204
8225
  ref: r,
8205
- className: me(Kc(), t),
8226
+ className: me(Jc(), t),
8206
8227
  ...e
8207
8228
  }
8208
8229
  ));
@@ -8251,7 +8272,7 @@ const ga = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8251
8272
  ga.displayName = "CardDescription";
8252
8273
  const nr = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h("div", { ref: r, className: me("p-6 pt-0", t), ...e }));
8253
8274
  nr.displayName = "CardContent";
8254
- const Jc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8275
+ const Xc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8255
8276
  "div",
8256
8277
  {
8257
8278
  ref: r,
@@ -8259,8 +8280,8 @@ const Jc = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8259
8280
  ...e
8260
8281
  }
8261
8282
  ));
8262
- Jc.displayName = "CardFooter";
8263
- function Xc(t, e = []) {
8283
+ Xc.displayName = "CardFooter";
8284
+ function Qc(t, e = []) {
8264
8285
  let r = [];
8265
8286
  function n(a, i) {
8266
8287
  const o = w.createContext(i), c = r.length;
@@ -8290,9 +8311,9 @@ function Xc(t, e = []) {
8290
8311
  );
8291
8312
  };
8292
8313
  };
8293
- return s.scopeName = t, [n, Qc(s, ...e)];
8314
+ return s.scopeName = t, [n, el(s, ...e)];
8294
8315
  }
8295
- function Qc(...t) {
8316
+ function el(...t) {
8296
8317
  const e = t[0];
8297
8318
  if (t.length === 1) return e;
8298
8319
  const r = () => {
@@ -8310,22 +8331,22 @@ function Qc(...t) {
8310
8331
  };
8311
8332
  return r.scopeName = e.scopeName, r;
8312
8333
  }
8313
- function xs(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
8334
+ function _s(t, e, { checkForDefaultPrevented: r = !0 } = {}) {
8314
8335
  return function(s) {
8315
8336
  if (t == null || t(s), r === !1 || !s.defaultPrevented)
8316
8337
  return e == null ? void 0 : e(s);
8317
8338
  };
8318
8339
  }
8319
8340
  var xt = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
8320
- }, el = w[" useInsertionEffect ".trim().toString()] || xt;
8321
- function tl({
8341
+ }, tl = w[" useInsertionEffect ".trim().toString()] || xt;
8342
+ function rl({
8322
8343
  prop: t,
8323
8344
  defaultProp: e,
8324
8345
  onChange: r = () => {
8325
8346
  },
8326
8347
  caller: n
8327
8348
  }) {
8328
- const [s, a, i] = rl({
8349
+ const [s, a, i] = nl({
8329
8350
  defaultProp: e,
8330
8351
  onChange: r
8331
8352
  }), o = t !== void 0, c = o ? t : s;
@@ -8342,7 +8363,7 @@ function tl({
8342
8363
  (f) => {
8343
8364
  var d;
8344
8365
  if (o) {
8345
- const p = nl(f) ? f(t) : f;
8366
+ const p = sl(f) ? f(t) : f;
8346
8367
  p !== t && ((d = i.current) == null || d.call(i, p));
8347
8368
  } else
8348
8369
  a(f);
@@ -8351,26 +8372,26 @@ function tl({
8351
8372
  );
8352
8373
  return [c, l];
8353
8374
  }
8354
- function rl({
8375
+ function nl({
8355
8376
  defaultProp: t,
8356
8377
  onChange: e
8357
8378
  }) {
8358
8379
  const [r, n] = w.useState(t), s = w.useRef(r), a = w.useRef(e);
8359
- return el(() => {
8380
+ return tl(() => {
8360
8381
  a.current = e;
8361
8382
  }, [e]), w.useEffect(() => {
8362
8383
  var i;
8363
8384
  s.current !== r && ((i = a.current) == null || i.call(a, r), s.current = r);
8364
8385
  }, [r, s]), [r, n, a];
8365
8386
  }
8366
- function nl(t) {
8387
+ function sl(t) {
8367
8388
  return typeof t == "function";
8368
8389
  }
8369
- function sl(t) {
8390
+ function al(t) {
8370
8391
  const e = w.useRef({ value: t, previous: t });
8371
8392
  return w.useMemo(() => (e.current.value !== t && (e.current.previous = e.current.value, e.current.value = t), e.current.previous), [t]);
8372
8393
  }
8373
- function al(t) {
8394
+ function il(t) {
8374
8395
  const [e, r] = w.useState(void 0);
8375
8396
  return xt(() => {
8376
8397
  if (t) {
@@ -8392,16 +8413,16 @@ function al(t) {
8392
8413
  r(void 0);
8393
8414
  }, [t]), e;
8394
8415
  }
8395
- function il(t, e) {
8416
+ function ol(t, e) {
8396
8417
  return w.useReducer((r, n) => e[r][n] ?? r, t);
8397
8418
  }
8398
8419
  var va = (t) => {
8399
- const { present: e, children: r } = t, n = ol(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a = hn(n.ref, cl(s));
8420
+ const { present: e, children: r } = t, n = cl(e), s = typeof r == "function" ? r({ present: n.isPresent }) : w.Children.only(r), a = pn(n.ref, ll(s));
8400
8421
  return typeof r == "function" || n.isPresent ? w.cloneElement(s, { ref: a }) : null;
8401
8422
  };
8402
8423
  va.displayName = "Presence";
8403
- function ol(t) {
8404
- const [e, r] = w.useState(), n = w.useRef(null), s = w.useRef(t), a = w.useRef("none"), i = t ? "mounted" : "unmounted", [o, c] = il(i, {
8424
+ function cl(t) {
8425
+ const [e, r] = w.useState(), n = w.useRef(null), s = w.useRef(t), a = w.useRef("none"), i = t ? "mounted" : "unmounted", [o, c] = ol(i, {
8405
8426
  mounted: {
8406
8427
  UNMOUNT: "unmounted",
8407
8428
  ANIMATION_OUT: "unmountSuspended"
@@ -8452,15 +8473,15 @@ function ol(t) {
8452
8473
  function er(t) {
8453
8474
  return (t == null ? void 0 : t.animationName) || "none";
8454
8475
  }
8455
- function cl(t) {
8476
+ function ll(t) {
8456
8477
  var n, s;
8457
8478
  let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
8458
8479
  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);
8459
8480
  }
8460
8481
  // @__NO_SIDE_EFFECTS__
8461
- function ll(t) {
8462
- const e = /* @__PURE__ */ ul(t), r = w.forwardRef((n, s) => {
8463
- const { children: a, ...i } = n, o = w.Children.toArray(a), c = o.find(fl);
8482
+ function ul(t) {
8483
+ const e = /* @__PURE__ */ dl(t), r = w.forwardRef((n, s) => {
8484
+ const { children: a, ...i } = n, o = w.Children.toArray(a), c = o.find(hl);
8464
8485
  if (c) {
8465
8486
  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);
8466
8487
  return /* @__PURE__ */ h(e, { ...i, ref: s, children: w.isValidElement(l) ? w.cloneElement(l, void 0, f) : null });
@@ -8470,22 +8491,22 @@ function ll(t) {
8470
8491
  return r.displayName = `${t}.Slot`, r;
8471
8492
  }
8472
8493
  // @__NO_SIDE_EFFECTS__
8473
- function ul(t) {
8494
+ function dl(t) {
8474
8495
  const e = w.forwardRef((r, n) => {
8475
8496
  const { children: s, ...a } = r;
8476
8497
  if (w.isValidElement(s)) {
8477
- const i = pl(s), o = hl(a, s.props);
8478
- return s.type !== w.Fragment && (o.ref = n ? fn(n, i) : i), w.cloneElement(s, o);
8498
+ const i = ml(s), o = pl(a, s.props);
8499
+ return s.type !== w.Fragment && (o.ref = n ? hn(n, i) : i), w.cloneElement(s, o);
8479
8500
  }
8480
8501
  return w.Children.count(s) > 1 ? w.Children.only(null) : null;
8481
8502
  });
8482
8503
  return e.displayName = `${t}.SlotClone`, e;
8483
8504
  }
8484
- var dl = Symbol("radix.slottable");
8485
- function fl(t) {
8486
- return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === dl;
8505
+ var fl = Symbol("radix.slottable");
8506
+ function hl(t) {
8507
+ return w.isValidElement(t) && typeof t.type == "function" && "__radixId" in t.type && t.type.__radixId === fl;
8487
8508
  }
8488
- function hl(t, e) {
8509
+ function pl(t, e) {
8489
8510
  const r = { ...e };
8490
8511
  for (const n in e) {
8491
8512
  const s = t[n], a = e[n];
@@ -8496,12 +8517,12 @@ function hl(t, e) {
8496
8517
  }
8497
8518
  return { ...t, ...r };
8498
8519
  }
8499
- function pl(t) {
8520
+ function ml(t) {
8500
8521
  var n, s;
8501
8522
  let e = (n = Object.getOwnPropertyDescriptor(t.props, "ref")) == null ? void 0 : n.get, r = e && "isReactWarning" in e && e.isReactWarning;
8502
8523
  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);
8503
8524
  }
8504
- var ml = [
8525
+ var yl = [
8505
8526
  "a",
8506
8527
  "button",
8507
8528
  "div",
@@ -8519,14 +8540,14 @@ var ml = [
8519
8540
  "span",
8520
8541
  "svg",
8521
8542
  "ul"
8522
- ], pn = ml.reduce((t, e) => {
8523
- const r = /* @__PURE__ */ ll(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8543
+ ], mn = yl.reduce((t, e) => {
8544
+ const r = /* @__PURE__ */ ul(`Primitive.${e}`), n = w.forwardRef((s, a) => {
8524
8545
  const { asChild: i, ...o } = s, c = i ? r : e;
8525
8546
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ h(c, { ...o, ref: a });
8526
8547
  });
8527
8548
  return n.displayName = `Primitive.${e}`, { ...t, [e]: n };
8528
- }, {}), xr = "Checkbox", [yl] = Xc(xr), [gl, mn] = yl(xr);
8529
- function vl(t) {
8549
+ }, {}), _r = "Checkbox", [gl] = Qc(_r), [vl, yn] = gl(_r);
8550
+ function bl(t) {
8530
8551
  const {
8531
8552
  __scopeCheckbox: e,
8532
8553
  checked: r,
@@ -8540,12 +8561,12 @@ function vl(t) {
8540
8561
  value: f = "on",
8541
8562
  // @ts-expect-error
8542
8563
  internal_do_not_use_render: d
8543
- } = t, [p, m] = tl({
8564
+ } = t, [p, m] = rl({
8544
8565
  prop: r,
8545
8566
  defaultProp: s ?? !1,
8546
8567
  onChange: c,
8547
- caller: xr
8548
- }), [b, v] = w.useState(null), [S, k] = w.useState(null), C = w.useRef(!1), D = b ? !!i || !!b.closest("form") : (
8568
+ caller: _r
8569
+ }), [b, v] = w.useState(null), [S, k] = w.useState(null), C = w.useRef(!1), U = b ? !!i || !!b.closest("form") : (
8549
8570
  // We set this to true by default so that events bubble to forms without JS (SSR)
8550
8571
  !0
8551
8572
  ), I = {
@@ -8560,16 +8581,16 @@ function vl(t) {
8560
8581
  hasConsumerStoppedPropagationRef: C,
8561
8582
  required: l,
8562
8583
  defaultChecked: dt(s) ? !1 : s,
8563
- isFormControl: D,
8584
+ isFormControl: U,
8564
8585
  bubbleInput: S,
8565
8586
  setBubbleInput: k
8566
8587
  };
8567
8588
  return /* @__PURE__ */ h(
8568
- gl,
8589
+ vl,
8569
8590
  {
8570
8591
  scope: e,
8571
8592
  ...I,
8572
- children: bl(d) ? d(I) : n
8593
+ children: xl(d) ? d(I) : n
8573
8594
  }
8574
8595
  );
8575
8596
  }
@@ -8586,7 +8607,7 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
8586
8607
  hasConsumerStoppedPropagationRef: p,
8587
8608
  isFormControl: m,
8588
8609
  bubbleInput: b
8589
- } = mn(ba, t), v = hn(s, f), S = w.useRef(c);
8610
+ } = yn(ba, t), v = pn(s, f), S = w.useRef(c);
8590
8611
  return w.useEffect(() => {
8591
8612
  const k = a == null ? void 0 : a.form;
8592
8613
  if (k) {
@@ -8594,7 +8615,7 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
8594
8615
  return k.addEventListener("reset", C), () => k.removeEventListener("reset", C);
8595
8616
  }
8596
8617
  }, [a, d]), /* @__PURE__ */ h(
8597
- pn.button,
8618
+ mn.button,
8598
8619
  {
8599
8620
  type: "button",
8600
8621
  role: "checkbox",
@@ -8606,10 +8627,10 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
8606
8627
  value: i,
8607
8628
  ...n,
8608
8629
  ref: v,
8609
- onKeyDown: xs(e, (k) => {
8630
+ onKeyDown: _s(e, (k) => {
8610
8631
  k.key === "Enter" && k.preventDefault();
8611
8632
  }),
8612
- onClick: xs(r, (k) => {
8633
+ onClick: _s(r, (k) => {
8613
8634
  d((C) => dt(C) ? !0 : !C), b && m && (p.current = k.isPropagationStopped(), p.current || k.stopPropagation());
8614
8635
  })
8615
8636
  }
@@ -8617,7 +8638,7 @@ var ba = "CheckboxTrigger", xa = w.forwardRef(
8617
8638
  }
8618
8639
  );
8619
8640
  xa.displayName = ba;
8620
- var yn = w.forwardRef(
8641
+ var gn = w.forwardRef(
8621
8642
  (t, e) => {
8622
8643
  const {
8623
8644
  __scopeCheckbox: r,
@@ -8632,7 +8653,7 @@ var yn = w.forwardRef(
8632
8653
  ...d
8633
8654
  } = t;
8634
8655
  return /* @__PURE__ */ h(
8635
- vl,
8656
+ bl,
8636
8657
  {
8637
8658
  __scopeCheckbox: r,
8638
8659
  checked: s,
@@ -8643,7 +8664,7 @@ var yn = w.forwardRef(
8643
8664
  name: n,
8644
8665
  form: f,
8645
8666
  value: c,
8646
- internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ z(Es, { children: [
8667
+ internal_do_not_use_render: ({ isFormControl: p }) => /* @__PURE__ */ D(tn, { children: [
8647
8668
  /* @__PURE__ */ h(
8648
8669
  xa,
8649
8670
  {
@@ -8663,16 +8684,16 @@ var yn = w.forwardRef(
8663
8684
  );
8664
8685
  }
8665
8686
  );
8666
- yn.displayName = xr;
8687
+ gn.displayName = _r;
8667
8688
  var _a = "CheckboxIndicator", wa = w.forwardRef(
8668
8689
  (t, e) => {
8669
- const { __scopeCheckbox: r, forceMount: n, ...s } = t, a = mn(_a, r);
8690
+ const { __scopeCheckbox: r, forceMount: n, ...s } = t, a = yn(_a, r);
8670
8691
  return /* @__PURE__ */ h(
8671
8692
  va,
8672
8693
  {
8673
8694
  present: n || dt(a.checked) || a.checked === !0,
8674
8695
  children: /* @__PURE__ */ h(
8675
- pn.span,
8696
+ mn.span,
8676
8697
  {
8677
8698
  "data-state": Ca(a.checked),
8678
8699
  "data-disabled": a.disabled ? "" : void 0,
@@ -8700,12 +8721,12 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
8700
8721
  form: d,
8701
8722
  bubbleInput: p,
8702
8723
  setBubbleInput: m
8703
- } = mn(ka, t), b = hn(r, m), v = sl(a), S = al(n);
8724
+ } = yn(ka, t), b = pn(r, m), v = al(a), S = il(n);
8704
8725
  w.useEffect(() => {
8705
8726
  const C = p;
8706
8727
  if (!C) return;
8707
- const D = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
8708
- D,
8728
+ const U = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
8729
+ U,
8709
8730
  "checked"
8710
8731
  ).set, Z = !s.current;
8711
8732
  if (v !== a && x) {
@@ -8715,7 +8736,7 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
8715
8736
  }, [p, v, a, s]);
8716
8737
  const k = w.useRef(dt(a) ? !1 : a);
8717
8738
  return /* @__PURE__ */ h(
8718
- pn.input,
8739
+ mn.input,
8719
8740
  {
8720
8741
  type: "checkbox",
8721
8742
  "aria-hidden": !0,
@@ -8745,7 +8766,7 @@ var ka = "CheckboxBubbleInput", Sa = w.forwardRef(
8745
8766
  }
8746
8767
  );
8747
8768
  Sa.displayName = ka;
8748
- function bl(t) {
8769
+ function xl(t) {
8749
8770
  return typeof t == "function";
8750
8771
  }
8751
8772
  function dt(t) {
@@ -8755,7 +8776,7 @@ function Ca(t) {
8755
8776
  return dt(t) ? "indeterminate" : t ? "checked" : "unchecked";
8756
8777
  }
8757
8778
  const Ea = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8758
- yn,
8779
+ gn,
8759
8780
  {
8760
8781
  ref: r,
8761
8782
  className: me(
@@ -8763,12 +8784,12 @@ const Ea = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
8763
8784
  t
8764
8785
  ),
8765
8786
  ...e,
8766
- children: /* @__PURE__ */ h(wa, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(Xi, { className: "h-3.5 w-3.5" }) })
8787
+ children: /* @__PURE__ */ h(wa, { className: "flex items-center justify-center text-current", children: /* @__PURE__ */ h(Qi, { className: "h-3.5 w-3.5" }) })
8767
8788
  }
8768
8789
  ));
8769
- Ea.displayName = yn.displayName;
8770
- var xl = "Separator", _s = "horizontal", _l = ["horizontal", "vertical"], Ra = w.forwardRef((t, e) => {
8771
- const { decorative: r, orientation: n = _s, ...s } = t, a = wl(n) ? n : _s, o = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
8790
+ Ea.displayName = gn.displayName;
8791
+ var _l = "Separator", ws = "horizontal", wl = ["horizontal", "vertical"], Ra = w.forwardRef((t, e) => {
8792
+ const { decorative: r, orientation: n = ws, ...s } = t, a = kl(n) ? n : ws, o = r ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
8772
8793
  return /* @__PURE__ */ h(
8773
8794
  Gt.div,
8774
8795
  {
@@ -8779,9 +8800,9 @@ var xl = "Separator", _s = "horizontal", _l = ["horizontal", "vertical"], Ra = w
8779
8800
  }
8780
8801
  );
8781
8802
  });
8782
- Ra.displayName = xl;
8783
- function wl(t) {
8784
- return _l.includes(t);
8803
+ Ra.displayName = _l;
8804
+ function kl(t) {
8805
+ return wl.includes(t);
8785
8806
  }
8786
8807
  var Oa = Ra;
8787
8808
  const Tt = w.forwardRef(
@@ -8801,14 +8822,14 @@ const Tt = w.forwardRef(
8801
8822
  )
8802
8823
  );
8803
8824
  Tt.displayName = Oa.displayName;
8804
- const kl = vr({
8825
+ const Sl = br({
8805
8826
  email: Qe().email("Enter a valid email address"),
8806
8827
  password: Qe().min(6, "Password must be at least 6 characters")
8807
- }), Sl = vr({
8828
+ }), Cl = br({
8808
8829
  email: Qe().email("Enter a valid email address")
8809
8830
  });
8810
- function Cl() {
8811
- return /* @__PURE__ */ z(
8831
+ function El() {
8832
+ return /* @__PURE__ */ D(
8812
8833
  "svg",
8813
8834
  {
8814
8835
  "aria-hidden": "true",
@@ -8849,25 +8870,25 @@ function Cl() {
8849
8870
  }
8850
8871
  );
8851
8872
  }
8852
- function El({ provider: t }) {
8853
- return t === "google" ? /* @__PURE__ */ h(Cl, {}) : t === "github" ? /* @__PURE__ */ h(eo, { className: "h-4 w-4" }) : null;
8854
- }
8855
8873
  function Rl({ provider: t }) {
8874
+ return t === "google" ? /* @__PURE__ */ h(El, {}) : t === "github" ? /* @__PURE__ */ h(to, { className: "h-4 w-4" }) : null;
8875
+ }
8876
+ function Ol({ provider: t }) {
8856
8877
  const e = t.label ?? t.provider.charAt(0).toUpperCase() + t.provider.slice(1);
8857
- return /* @__PURE__ */ h("a", { href: t.url, children: /* @__PURE__ */ z(
8878
+ return /* @__PURE__ */ h("a", { href: t.url, children: /* @__PURE__ */ D(
8858
8879
  pt,
8859
8880
  {
8860
8881
  type: "button",
8861
8882
  variant: "outline",
8862
8883
  className: "w-full gap-2 rounded-full",
8863
8884
  children: [
8864
- /* @__PURE__ */ h(El, { provider: t.provider }),
8885
+ /* @__PURE__ */ h(Rl, { provider: t.provider }),
8865
8886
  e
8866
8887
  ]
8867
8888
  }
8868
8889
  ) });
8869
8890
  }
8870
- function Ol({
8891
+ function Nl({
8871
8892
  mode: t,
8872
8893
  onChange: e
8873
8894
  }) {
@@ -8885,8 +8906,8 @@ function Ol({
8885
8906
  r
8886
8907
  )) });
8887
8908
  }
8888
- function Nl() {
8889
- return /* @__PURE__ */ z("div", { className: "space-y-4 p-6", children: [
8909
+ function Al() {
8910
+ return /* @__PURE__ */ D("div", { className: "space-y-4 p-6", children: [
8890
8911
  /* @__PURE__ */ h("div", { className: "h-6 w-3/4 animate-pulse rounded bg-muted mx-auto" }),
8891
8912
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
8892
8913
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
@@ -8894,7 +8915,7 @@ function Nl() {
8894
8915
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
8895
8916
  ] });
8896
8917
  }
8897
- function Ql({
8918
+ function tu({
8898
8919
  className: t,
8899
8920
  onSuccess: e,
8900
8921
  onError: r,
@@ -8903,13 +8924,13 @@ function Ql({
8903
8924
  title: a = "Sign in to your account"
8904
8925
  }) {
8905
8926
  var be, we, Ee;
8906
- const { login: i, sendMagicLink: o } = Wt(), { config: c, configLoading: l } = tn(), [f, d] = Ae("password"), [p, m] = Ae(""), [b, v] = Ae(null), [S, k] = Ae(null), [C, D] = Ae(!1), [I, x] = Ae(!1), Z = lt(null), j = ir({
8907
- resolver: or(kl)
8908
- }), U = ir({
8927
+ const { login: i, sendMagicLink: o } = Pt(), { config: c, configLoading: l } = gr(), [f, d] = Ae("password"), [p, m] = Ae(""), [b, v] = Ae(null), [S, k] = Ae(null), [C, U] = Ae(!1), [I, x] = Ae(!1), Z = lt(null), j = ir({
8909
8928
  resolver: or(Sl)
8929
+ }), z = ir({
8930
+ resolver: or(Cl)
8910
8931
  });
8911
8932
  async function B() {
8912
- return c != null && c.captcha.enabled ? c.captcha.provider === "recaptcha" && c.captcha.version === "v3" && c.captcha.siteKey ? en(c.captcha.siteKey, "login") : p || (v("Please complete the captcha"), null) : "";
8933
+ return c != null && c.captcha.enabled ? c.captcha.provider === "recaptcha" && c.captcha.version === "v3" && c.captcha.siteKey ? rn(c.captcha.siteKey, "login") : p || (v("Please complete the captcha"), null) : "";
8913
8934
  }
8914
8935
  function re() {
8915
8936
  var _;
@@ -8931,12 +8952,12 @@ function Ql({
8931
8952
  const q = G instanceof Error ? G : new Error("Login failed");
8932
8953
  k(q.message), r == null || r(q);
8933
8954
  }
8934
- }), M = U.handleSubmit(async (_) => {
8955
+ }), M = z.handleSubmit(async (_) => {
8935
8956
  k(null);
8936
8957
  const R = await B();
8937
8958
  if (R !== null)
8938
8959
  try {
8939
- await o({ email: _.email, captchaToken: R }), re(), D(!0);
8960
+ await o({ email: _.email, captchaToken: R }), re(), U(!0);
8940
8961
  } catch (G) {
8941
8962
  re();
8942
8963
  const q = G instanceof Error ? G : new Error("Failed to send magic link");
@@ -8944,28 +8965,28 @@ function Ql({
8944
8965
  }
8945
8966
  });
8946
8967
  if (C)
8947
- return /* @__PURE__ */ z(Be, { className: me("w-full max-w-sm p-8 text-center space-y-3", t), children: [
8968
+ return /* @__PURE__ */ D(Be, { className: me("w-full max-w-sm p-8 text-center space-y-3", t), children: [
8948
8969
  /* @__PURE__ */ h("div", { className: "text-4xl", children: "✉️" }),
8949
8970
  /* @__PURE__ */ h("p", { className: "font-semibold", children: "Check your inbox" }),
8950
- /* @__PURE__ */ z("p", { className: "text-sm text-muted-foreground", children: [
8971
+ /* @__PURE__ */ D("p", { className: "text-sm text-muted-foreground", children: [
8951
8972
  "We sent a sign-in link to",
8952
8973
  " ",
8953
- /* @__PURE__ */ h("span", { className: "font-medium text-foreground", children: U.getValues("email") })
8974
+ /* @__PURE__ */ h("span", { className: "font-medium text-foreground", children: z.getValues("email") })
8954
8975
  ] }),
8955
8976
  /* @__PURE__ */ h(
8956
8977
  "button",
8957
8978
  {
8958
8979
  type: "button",
8959
- onClick: () => D(!1),
8980
+ onClick: () => U(!1),
8960
8981
  className: "text-sm text-primary underline-offset-4 hover:underline",
8961
8982
  children: "Use a different email"
8962
8983
  }
8963
8984
  )
8964
8985
  ] });
8965
8986
  if (l)
8966
- return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Nl, {}) });
8967
- const W = j.formState.isSubmitting, ne = U.formState.isSubmitting, ve = W || ne, ue = (((be = c == null ? void 0 : c.oauthProviders) == null ? void 0 : be.length) ?? 0) > 0;
8968
- return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ z("div", { className: "p-6 space-y-5", children: [
8987
+ return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Al, {}) });
8988
+ const W = j.formState.isSubmitting, ne = z.formState.isSubmitting, ve = W || ne, ue = (((be = c == null ? void 0 : c.oauthProviders) == null ? void 0 : be.length) ?? 0) > 0;
8989
+ return /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "p-6 space-y-5", children: [
8969
8990
  (c == null ? void 0 : c.logoUrl) && /* @__PURE__ */ h(
8970
8991
  "img",
8971
8992
  {
@@ -8982,16 +9003,16 @@ function Ql({
8982
9003
  "grid gap-2",
8983
9004
  (((we = c == null ? void 0 : c.oauthProviders) == null ? void 0 : we.length) ?? 0) === 1 ? "grid-cols-1" : "grid-cols-2"
8984
9005
  ),
8985
- children: (Ee = c == null ? void 0 : c.oauthProviders) == null ? void 0 : Ee.map((_) => /* @__PURE__ */ h(Rl, { provider: _ }, _.provider))
9006
+ children: (Ee = c == null ? void 0 : c.oauthProviders) == null ? void 0 : Ee.map((_) => /* @__PURE__ */ h(Ol, { provider: _ }, _.provider))
8986
9007
  }
8987
9008
  ),
8988
- ue && /* @__PURE__ */ z("div", { className: "flex items-center gap-3", children: [
9009
+ ue && /* @__PURE__ */ D("div", { className: "flex items-center gap-3", children: [
8989
9010
  /* @__PURE__ */ h(Tt, { className: "flex-1" }),
8990
9011
  /* @__PURE__ */ h("span", { className: "text-[10px] font-medium uppercase tracking-widest text-muted-foreground", children: "Or continue with email" }),
8991
9012
  /* @__PURE__ */ h(Tt, { className: "flex-1" })
8992
9013
  ] }),
8993
9014
  (c == null ? void 0 : c.allowMagicLink) && /* @__PURE__ */ h(
8994
- Ol,
9015
+ Nl,
8995
9016
  {
8996
9017
  mode: f,
8997
9018
  onChange: (_) => {
@@ -8999,9 +9020,9 @@ function Ql({
8999
9020
  }
9000
9021
  }
9001
9022
  ),
9002
- f === "password" && /* @__PURE__ */ z("form", { onSubmit: he, noValidate: !0, className: "space-y-4", children: [
9023
+ f === "password" && /* @__PURE__ */ D("form", { onSubmit: he, noValidate: !0, className: "space-y-4", children: [
9003
9024
  S && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: S }),
9004
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9025
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9005
9026
  /* @__PURE__ */ h(Ze, { htmlFor: "login-email", children: "Email" }),
9006
9027
  /* @__PURE__ */ h(
9007
9028
  He,
@@ -9015,8 +9036,8 @@ function Ql({
9015
9036
  ),
9016
9037
  j.formState.errors.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: j.formState.errors.email.message })
9017
9038
  ] }),
9018
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9019
- /* @__PURE__ */ z("div", { className: "flex items-center justify-between", children: [
9039
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9040
+ /* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
9020
9041
  /* @__PURE__ */ h(Ze, { htmlFor: "login-password", children: "Password" }),
9021
9042
  n && /* @__PURE__ */ h(
9022
9043
  "a",
@@ -9039,7 +9060,7 @@ function Ql({
9039
9060
  ),
9040
9061
  j.formState.errors.password && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: j.formState.errors.password.message })
9041
9062
  ] }),
9042
- /* @__PURE__ */ z("div", { className: "flex items-center gap-2", children: [
9063
+ /* @__PURE__ */ D("div", { className: "flex items-center gap-2", children: [
9043
9064
  /* @__PURE__ */ h(
9044
9065
  Ea,
9045
9066
  {
@@ -9057,9 +9078,9 @@ function Ql({
9057
9078
  }
9058
9079
  )
9059
9080
  ] }),
9060
- (c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
9081
+ (c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
9061
9082
  /* @__PURE__ */ h(
9062
- Bt,
9083
+ Wt,
9063
9084
  {
9064
9085
  ref: Z,
9065
9086
  config: c.captcha,
@@ -9071,7 +9092,7 @@ function Ql({
9071
9092
  ),
9072
9093
  b && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: b })
9073
9094
  ] }),
9074
- /* @__PURE__ */ z(
9095
+ /* @__PURE__ */ D(
9075
9096
  pt,
9076
9097
  {
9077
9098
  type: "submit",
@@ -9084,9 +9105,9 @@ function Ql({
9084
9105
  }
9085
9106
  )
9086
9107
  ] }),
9087
- f === "magic-link" && /* @__PURE__ */ z("form", { onSubmit: M, noValidate: !0, className: "space-y-4", children: [
9108
+ f === "magic-link" && /* @__PURE__ */ D("form", { onSubmit: M, noValidate: !0, className: "space-y-4", children: [
9088
9109
  S && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: S }),
9089
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9110
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9090
9111
  /* @__PURE__ */ h(Ze, { htmlFor: "magic-email", children: "Email" }),
9091
9112
  /* @__PURE__ */ h(
9092
9113
  He,
@@ -9095,14 +9116,14 @@ function Ql({
9095
9116
  type: "email",
9096
9117
  placeholder: "name@example.com",
9097
9118
  autoComplete: "email",
9098
- ...U.register("email")
9119
+ ...z.register("email")
9099
9120
  }
9100
9121
  ),
9101
- U.formState.errors.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: U.formState.errors.email.message })
9122
+ z.formState.errors.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: z.formState.errors.email.message })
9102
9123
  ] }),
9103
- (c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
9124
+ (c == null ? void 0 : c.captcha.enabled) && c.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
9104
9125
  /* @__PURE__ */ h(
9105
- Bt,
9126
+ Wt,
9106
9127
  {
9107
9128
  ref: Z,
9108
9129
  config: c.captcha,
@@ -9114,12 +9135,12 @@ function Ql({
9114
9135
  ),
9115
9136
  b && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: b })
9116
9137
  ] }),
9117
- /* @__PURE__ */ z(pt, { type: "submit", className: "w-full", disabled: ve, children: [
9138
+ /* @__PURE__ */ D(pt, { type: "submit", className: "w-full", disabled: ve, children: [
9118
9139
  ne && /* @__PURE__ */ h(hr, { className: "animate-spin" }),
9119
9140
  ne ? "Sending…" : "Send Magic Link"
9120
9141
  ] })
9121
9142
  ] }),
9122
- ((c == null ? void 0 : c.termsOfServiceUrl) || (c == null ? void 0 : c.privacyPolicyUrl)) && /* @__PURE__ */ z("p", { className: "text-center text-xs text-muted-foreground", children: [
9143
+ ((c == null ? void 0 : c.termsOfServiceUrl) || (c == null ? void 0 : c.privacyPolicyUrl)) && /* @__PURE__ */ D("p", { className: "text-center text-xs text-muted-foreground", children: [
9123
9144
  "By continuing, you agree to our",
9124
9145
  " ",
9125
9146
  c.termsOfServiceUrl && /* @__PURE__ */ h(
@@ -9141,7 +9162,7 @@ function Ql({
9141
9162
  ),
9142
9163
  "."
9143
9164
  ] }),
9144
- (c == null ? void 0 : c.allowSignup) && s && /* @__PURE__ */ z("p", { className: "text-center text-sm text-muted-foreground", children: [
9165
+ (c == null ? void 0 : c.allowSignup) && s && /* @__PURE__ */ D("p", { className: "text-center text-sm text-muted-foreground", children: [
9145
9166
  "Don't have an account?",
9146
9167
  " ",
9147
9168
  /* @__PURE__ */ h(
@@ -9155,34 +9176,34 @@ function Ql({
9155
9176
  ] })
9156
9177
  ] }) });
9157
9178
  }
9158
- const Al = vr({
9179
+ const Tl = br({
9159
9180
  firstName: Qe().min(1, "First name is required"),
9160
9181
  lastName: Qe().min(1, "Last name is required"),
9161
9182
  email: Qe().email("Enter a valid email address"),
9162
9183
  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"),
9163
9184
  confirmPassword: Qe(),
9164
- whatsappNumber: Qe().regex(/^\+?[1-9]\d{6,14}$/, "Enter a valid WhatsApp number").optional().or(Hi(""))
9185
+ whatsappNumber: Qe().regex(/^\+?[1-9]\d{6,14}$/, "Enter a valid WhatsApp number").optional().or(Yi(""))
9165
9186
  }).refine((t) => t.password === t.confirmPassword, {
9166
9187
  message: "Passwords do not match",
9167
9188
  path: ["confirmPassword"]
9168
9189
  });
9169
- function Tl() {
9190
+ function Pl() {
9170
9191
  return /* @__PURE__ */ h("div", { className: "space-y-4 p-6", children: [...Array(5)].map((t, e) => /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }, e)) });
9171
9192
  }
9172
- function eu({
9193
+ function ru({
9173
9194
  className: t,
9174
9195
  onSuccess: e,
9175
9196
  onError: r,
9176
9197
  loginUrl: n,
9177
9198
  title: s = "Create an account"
9178
9199
  }) {
9179
- const { signup: a } = Wt(), { config: i, configLoading: o } = tn(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), b = lt(null), {
9200
+ const { signup: a } = Pt(), { config: i, configLoading: o } = gr(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), b = lt(null), {
9180
9201
  register: v,
9181
9202
  handleSubmit: S,
9182
9203
  formState: { errors: k, isSubmitting: C }
9183
- } = ir({ resolver: or(Al) });
9184
- async function D() {
9185
- return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? en(i.captcha.siteKey, "signup") : c || (d("Please complete the captcha"), null) : "";
9204
+ } = ir({ resolver: or(Tl) });
9205
+ async function U() {
9206
+ return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? rn(i.captcha.siteKey, "signup") : c || (d("Please complete the captcha"), null) : "";
9186
9207
  }
9187
9208
  function I() {
9188
9209
  var Z;
@@ -9190,7 +9211,7 @@ function eu({
9190
9211
  }
9191
9212
  const x = S(async (Z) => {
9192
9213
  m(null);
9193
- const j = await D();
9214
+ const j = await U();
9194
9215
  if (j !== null)
9195
9216
  try {
9196
9217
  await a({
@@ -9201,13 +9222,13 @@ function eu({
9201
9222
  whatsappNumber: Z.whatsappNumber || void 0,
9202
9223
  captchaToken: j
9203
9224
  }), I(), e == null || e({});
9204
- } catch (U) {
9225
+ } catch (z) {
9205
9226
  I();
9206
- const B = U instanceof Error ? U : new Error("Signup failed");
9227
+ const B = z instanceof Error ? z : new Error("Signup failed");
9207
9228
  m(B.message), r == null || r(B);
9208
9229
  }
9209
9230
  });
9210
- return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Tl, {}) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ z("div", { className: "p-6 space-y-5", children: [
9231
+ return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Pl, {}) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "p-6 space-y-5", children: [
9211
9232
  (i == null ? void 0 : i.logoUrl) && /* @__PURE__ */ h(
9212
9233
  "img",
9213
9234
  {
@@ -9217,10 +9238,10 @@ function eu({
9217
9238
  }
9218
9239
  ),
9219
9240
  /* @__PURE__ */ h("h1", { className: "text-center text-xl font-bold tracking-tight", children: s }),
9220
- /* @__PURE__ */ z("form", { onSubmit: x, noValidate: !0, className: "space-y-4", children: [
9241
+ /* @__PURE__ */ D("form", { onSubmit: x, noValidate: !0, className: "space-y-4", children: [
9221
9242
  p && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: p }),
9222
- /* @__PURE__ */ z("div", { className: "grid grid-cols-2 gap-3", children: [
9223
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9243
+ /* @__PURE__ */ D("div", { className: "grid grid-cols-2 gap-3", children: [
9244
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9224
9245
  /* @__PURE__ */ h(Ze, { htmlFor: "signup-first", children: "First name" }),
9225
9246
  /* @__PURE__ */ h(
9226
9247
  He,
@@ -9233,7 +9254,7 @@ function eu({
9233
9254
  ),
9234
9255
  k.firstName && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.firstName.message })
9235
9256
  ] }),
9236
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9257
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9237
9258
  /* @__PURE__ */ h(Ze, { htmlFor: "signup-last", children: "Last name" }),
9238
9259
  /* @__PURE__ */ h(
9239
9260
  He,
@@ -9247,7 +9268,7 @@ function eu({
9247
9268
  k.lastName && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.lastName.message })
9248
9269
  ] })
9249
9270
  ] }),
9250
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9271
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9251
9272
  /* @__PURE__ */ h(Ze, { htmlFor: "signup-email", children: "Email" }),
9252
9273
  /* @__PURE__ */ h(
9253
9274
  He,
@@ -9261,8 +9282,8 @@ function eu({
9261
9282
  ),
9262
9283
  k.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.email.message })
9263
9284
  ] }),
9264
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9265
- /* @__PURE__ */ z(Ze, { htmlFor: "signup-whatsapp", children: [
9285
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9286
+ /* @__PURE__ */ D(Ze, { htmlFor: "signup-whatsapp", children: [
9266
9287
  "WhatsApp",
9267
9288
  " ",
9268
9289
  /* @__PURE__ */ h("span", { className: "text-muted-foreground font-normal", children: "(optional)" })
@@ -9279,7 +9300,7 @@ function eu({
9279
9300
  ),
9280
9301
  k.whatsappNumber && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.whatsappNumber.message })
9281
9302
  ] }),
9282
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9303
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9283
9304
  /* @__PURE__ */ h(Ze, { htmlFor: "signup-password", children: "Password" }),
9284
9305
  /* @__PURE__ */ h(
9285
9306
  He,
@@ -9293,7 +9314,7 @@ function eu({
9293
9314
  ),
9294
9315
  k.password && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.password.message })
9295
9316
  ] }),
9296
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9317
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9297
9318
  /* @__PURE__ */ h(Ze, { htmlFor: "signup-confirm", children: "Confirm password" }),
9298
9319
  /* @__PURE__ */ h(
9299
9320
  He,
@@ -9307,9 +9328,9 @@ function eu({
9307
9328
  ),
9308
9329
  k.confirmPassword && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: k.confirmPassword.message })
9309
9330
  ] }),
9310
- (i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
9331
+ (i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
9311
9332
  /* @__PURE__ */ h(
9312
- Bt,
9333
+ Wt,
9313
9334
  {
9314
9335
  ref: b,
9315
9336
  config: i.captcha,
@@ -9321,12 +9342,12 @@ function eu({
9321
9342
  ),
9322
9343
  f && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: f })
9323
9344
  ] }),
9324
- /* @__PURE__ */ z(pt, { type: "submit", className: "w-full", disabled: C, children: [
9345
+ /* @__PURE__ */ D(pt, { type: "submit", className: "w-full", disabled: C, children: [
9325
9346
  C && /* @__PURE__ */ h(hr, { className: "animate-spin" }),
9326
9347
  C ? "Creating account…" : "Create account"
9327
9348
  ] })
9328
9349
  ] }),
9329
- ((i == null ? void 0 : i.termsOfServiceUrl) || (i == null ? void 0 : i.privacyPolicyUrl)) && /* @__PURE__ */ z("p", { className: "text-center text-xs text-muted-foreground", children: [
9350
+ ((i == null ? void 0 : i.termsOfServiceUrl) || (i == null ? void 0 : i.privacyPolicyUrl)) && /* @__PURE__ */ D("p", { className: "text-center text-xs text-muted-foreground", children: [
9330
9351
  "By continuing, you agree to our",
9331
9352
  " ",
9332
9353
  i.termsOfServiceUrl && /* @__PURE__ */ h(
@@ -9349,7 +9370,7 @@ function eu({
9349
9370
  "."
9350
9371
  ] }),
9351
9372
  /* @__PURE__ */ h(Tt, {}),
9352
- n && /* @__PURE__ */ z("p", { className: "text-center text-sm text-muted-foreground", children: [
9373
+ n && /* @__PURE__ */ D("p", { className: "text-center text-sm text-muted-foreground", children: [
9353
9374
  "Already have an account?",
9354
9375
  " ",
9355
9376
  /* @__PURE__ */ h(
@@ -9363,37 +9384,37 @@ function eu({
9363
9384
  ] })
9364
9385
  ] }) });
9365
9386
  }
9366
- const Pl = vr({
9387
+ const Il = br({
9367
9388
  email: Qe().email("Enter a valid email address")
9368
9389
  });
9369
- function Il() {
9370
- return /* @__PURE__ */ z("div", { className: "space-y-4 p-6", children: [
9390
+ function Ll() {
9391
+ return /* @__PURE__ */ D("div", { className: "space-y-4 p-6", children: [
9371
9392
  /* @__PURE__ */ h("div", { className: "h-6 w-3/4 animate-pulse rounded bg-muted mx-auto" }),
9372
9393
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" }),
9373
9394
  /* @__PURE__ */ h("div", { className: "h-10 animate-pulse rounded bg-muted" })
9374
9395
  ] });
9375
9396
  }
9376
- function tu({
9397
+ function nu({
9377
9398
  className: t,
9378
9399
  onSuccess: e,
9379
9400
  onError: r,
9380
9401
  loginUrl: n,
9381
9402
  title: s = "Forgot password?"
9382
9403
  }) {
9383
- const { forgotPassword: a } = Wt(), { config: i, configLoading: o } = tn(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), [b, v] = Ae(!1), S = lt(null), {
9404
+ const { forgotPassword: a } = Pt(), { config: i, configLoading: o } = gr(), [c, l] = Ae(""), [f, d] = Ae(null), [p, m] = Ae(null), [b, v] = Ae(!1), S = lt(null), {
9384
9405
  register: k,
9385
9406
  handleSubmit: C,
9386
- getValues: D,
9407
+ getValues: U,
9387
9408
  formState: { errors: I, isSubmitting: x }
9388
- } = ir({ resolver: or(Pl) });
9409
+ } = ir({ resolver: or(Il) });
9389
9410
  async function Z() {
9390
- return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? en(i.captcha.siteKey, "forgot_password") : c || (d("Please complete the captcha"), null) : "";
9411
+ return i != null && i.captcha.enabled ? i.captcha.provider === "recaptcha" && i.captcha.version === "v3" && i.captcha.siteKey ? rn(i.captcha.siteKey, "forgot_password") : c || (d("Please complete the captcha"), null) : "";
9391
9412
  }
9392
9413
  function j() {
9393
9414
  var B;
9394
9415
  (B = S.current) == null || B.reset(), l(""), d(null);
9395
9416
  }
9396
- const U = C(async (B) => {
9417
+ const z = C(async (B) => {
9397
9418
  m(null);
9398
9419
  const re = await Z();
9399
9420
  if (re !== null)
@@ -9405,14 +9426,14 @@ function tu({
9405
9426
  m(M.message), r == null || r(M);
9406
9427
  }
9407
9428
  });
9408
- return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Il, {}) }) : b ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ z("div", { className: "flex flex-col items-center gap-4 p-8 text-center", children: [
9409
- /* @__PURE__ */ h(Qi, { className: "h-12 w-12 text-primary" }),
9410
- /* @__PURE__ */ z("div", { className: "space-y-1", children: [
9429
+ return o ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ h(Ll, {}) }) : b ? /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "flex flex-col items-center gap-4 p-8 text-center", children: [
9430
+ /* @__PURE__ */ h(eo, { className: "h-12 w-12 text-primary" }),
9431
+ /* @__PURE__ */ D("div", { className: "space-y-1", children: [
9411
9432
  /* @__PURE__ */ h("p", { className: "font-semibold", children: "Check your inbox" }),
9412
- /* @__PURE__ */ z("p", { className: "text-sm text-muted-foreground", children: [
9433
+ /* @__PURE__ */ D("p", { className: "text-sm text-muted-foreground", children: [
9413
9434
  "We sent a reset link to",
9414
9435
  " ",
9415
- /* @__PURE__ */ h("span", { className: "font-medium text-foreground", children: D("email") })
9436
+ /* @__PURE__ */ h("span", { className: "font-medium text-foreground", children: U("email") })
9416
9437
  ] })
9417
9438
  ] }),
9418
9439
  n && /* @__PURE__ */ h(
@@ -9423,7 +9444,7 @@ function tu({
9423
9444
  children: "Back to sign in"
9424
9445
  }
9425
9446
  )
9426
- ] }) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ z("div", { className: "p-6 space-y-5", children: [
9447
+ ] }) }) : /* @__PURE__ */ h(Be, { className: me("w-full max-w-sm", t), children: /* @__PURE__ */ D("div", { className: "p-6 space-y-5", children: [
9427
9448
  (i == null ? void 0 : i.logoUrl) && /* @__PURE__ */ h(
9428
9449
  "img",
9429
9450
  {
@@ -9432,13 +9453,13 @@ function tu({
9432
9453
  className: "mx-auto h-8 object-contain"
9433
9454
  }
9434
9455
  ),
9435
- /* @__PURE__ */ z("div", { className: "space-y-1 text-center", children: [
9456
+ /* @__PURE__ */ D("div", { className: "space-y-1 text-center", children: [
9436
9457
  /* @__PURE__ */ h("h1", { className: "text-xl font-bold tracking-tight", children: s }),
9437
9458
  /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground", children: "Enter your email and we'll send you a reset link" })
9438
9459
  ] }),
9439
- /* @__PURE__ */ z("form", { onSubmit: U, noValidate: !0, className: "space-y-4", children: [
9460
+ /* @__PURE__ */ D("form", { onSubmit: z, noValidate: !0, className: "space-y-4", children: [
9440
9461
  p && /* @__PURE__ */ h("p", { className: "rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive", children: p }),
9441
- /* @__PURE__ */ z("div", { className: "space-y-1.5", children: [
9462
+ /* @__PURE__ */ D("div", { className: "space-y-1.5", children: [
9442
9463
  /* @__PURE__ */ h(Ze, { htmlFor: "forgot-email", children: "Email" }),
9443
9464
  /* @__PURE__ */ h(
9444
9465
  He,
@@ -9452,9 +9473,9 @@ function tu({
9452
9473
  ),
9453
9474
  I.email && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: I.email.message })
9454
9475
  ] }),
9455
- (i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ z("div", { className: "space-y-1", children: [
9476
+ (i == null ? void 0 : i.captcha.enabled) && i.captcha.version !== "v3" && /* @__PURE__ */ D("div", { className: "space-y-1", children: [
9456
9477
  /* @__PURE__ */ h(
9457
- Bt,
9478
+ Wt,
9458
9479
  {
9459
9480
  ref: S,
9460
9481
  config: i.captcha,
@@ -9466,7 +9487,7 @@ function tu({
9466
9487
  ),
9467
9488
  f && /* @__PURE__ */ h("p", { className: "text-xs text-destructive", children: f })
9468
9489
  ] }),
9469
- /* @__PURE__ */ z(pt, { type: "submit", className: "w-full", disabled: x, children: [
9490
+ /* @__PURE__ */ D(pt, { type: "submit", className: "w-full", disabled: x, children: [
9470
9491
  x && /* @__PURE__ */ h(hr, { className: "animate-spin" }),
9471
9492
  x ? "Sending…" : "Send reset link"
9472
9493
  ] })
@@ -9481,14 +9502,14 @@ function tu({
9481
9502
  ) })
9482
9503
  ] }) });
9483
9504
  }
9484
- function Ll({
9505
+ function jl({
9485
9506
  className: t,
9486
9507
  onSuccess: e,
9487
9508
  onError: r,
9488
9509
  label: n = "Sign out",
9489
9510
  children: s
9490
9511
  }) {
9491
- const { logout: a } = Wt(), [i, o] = Ae(!1), c = async () => {
9512
+ const { logout: a } = Pt(), [i, o] = Ae(!1), c = async () => {
9492
9513
  o(!0);
9493
9514
  try {
9494
9515
  await a(), e == null || e();
@@ -9509,7 +9530,7 @@ function Ll({
9509
9530
  onKeyDown: (l) => l.key === "Enter" && c(),
9510
9531
  children: s({ isLoading: i })
9511
9532
  }
9512
- ) : /* @__PURE__ */ z(
9533
+ ) : /* @__PURE__ */ D(
9513
9534
  pt,
9514
9535
  {
9515
9536
  variant: "outline",
@@ -9517,13 +9538,13 @@ function Ll({
9517
9538
  disabled: i,
9518
9539
  className: me("gap-2", t),
9519
9540
  children: [
9520
- /* @__PURE__ */ h(to, { className: "h-4 w-4" }),
9541
+ /* @__PURE__ */ h(ro, { className: "h-4 w-4" }),
9521
9542
  i ? "Signing out…" : n
9522
9543
  ]
9523
9544
  }
9524
9545
  );
9525
9546
  }
9526
- function jl(t, e = []) {
9547
+ function Ml(t, e = []) {
9527
9548
  let r = [];
9528
9549
  function n(a, i) {
9529
9550
  const o = w.createContext(i);
@@ -9555,9 +9576,9 @@ function jl(t, e = []) {
9555
9576
  );
9556
9577
  };
9557
9578
  };
9558
- return s.scopeName = t, [n, Ml(s, ...e)];
9579
+ return s.scopeName = t, [n, Vl(s, ...e)];
9559
9580
  }
9560
- function Ml(...t) {
9581
+ function Vl(...t) {
9561
9582
  const e = t[0];
9562
9583
  if (t.length === 1) return e;
9563
9584
  const r = () => {
@@ -9575,7 +9596,7 @@ function Ml(...t) {
9575
9596
  };
9576
9597
  return r.scopeName = e.scopeName, r;
9577
9598
  }
9578
- function Vl(t) {
9599
+ function $l(t) {
9579
9600
  const e = w.useRef(t);
9580
9601
  return w.useEffect(() => {
9581
9602
  e.current = t;
@@ -9584,7 +9605,7 @@ function Vl(t) {
9584
9605
  return (n = e.current) == null ? void 0 : n.call(e, ...r);
9585
9606
  }, []);
9586
9607
  }
9587
- var tr = { exports: {} }, Lr = {};
9608
+ var tr = { exports: {} }, jr = {};
9588
9609
  /**
9589
9610
  * @license React
9590
9611
  * use-sync-external-store-shim.production.js
@@ -9594,10 +9615,10 @@ var tr = { exports: {} }, Lr = {};
9594
9615
  * This source code is licensed under the MIT license found in the
9595
9616
  * LICENSE file in the root directory of this source tree.
9596
9617
  */
9597
- var ws;
9598
- function $l() {
9599
- if (ws) return Lr;
9600
- ws = 1;
9618
+ var ks;
9619
+ function Fl() {
9620
+ if (ks) return jr;
9621
+ ks = 1;
9601
9622
  var t = Ne;
9602
9623
  function e(d, p) {
9603
9624
  return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
@@ -9633,9 +9654,9 @@ function $l() {
9633
9654
  return p();
9634
9655
  }
9635
9656
  var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : o;
9636
- return Lr.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : f, Lr;
9657
+ return jr.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : f, jr;
9637
9658
  }
9638
- var jr = {};
9659
+ var Mr = {};
9639
9660
  /**
9640
9661
  * @license React
9641
9662
  * use-sync-external-store-shim.development.js
@@ -9645,9 +9666,9 @@ var jr = {};
9645
9666
  * This source code is licensed under the MIT license found in the
9646
9667
  * LICENSE file in the root directory of this source tree.
9647
9668
  */
9648
- var ks;
9649
- function Fl() {
9650
- return ks || (ks = 1, process.env.NODE_ENV !== "production" && (function() {
9669
+ var Ss;
9670
+ function Dl() {
9671
+ return Ss || (Ss = 1, process.env.NODE_ENV !== "production" && (function() {
9651
9672
  function t(m, b) {
9652
9673
  return m === b && (m !== 0 || 1 / m === 1 / b) || m !== m && b !== b;
9653
9674
  }
@@ -9695,30 +9716,30 @@ function Fl() {
9695
9716
  }
9696
9717
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
9697
9718
  var s = Ne, a = typeof Object.is == "function" ? Object.is : t, i = s.useState, o = s.useEffect, c = s.useLayoutEffect, l = s.useDebugValue, f = !1, d = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? n : e;
9698
- jr.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9699
- })()), jr;
9719
+ Mr.useSyncExternalStore = s.useSyncExternalStore !== void 0 ? s.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
9720
+ })()), Mr;
9700
9721
  }
9701
- var Ss;
9702
- function Dl() {
9703
- return Ss || (Ss = 1, process.env.NODE_ENV === "production" ? tr.exports = $l() : tr.exports = Fl()), tr.exports;
9722
+ var Cs;
9723
+ function Ul() {
9724
+ return Cs || (Cs = 1, process.env.NODE_ENV === "production" ? tr.exports = Fl() : tr.exports = Dl()), tr.exports;
9704
9725
  }
9705
- var Ul = Dl();
9706
- function zl() {
9707
- return Ul.useSyncExternalStore(
9708
- Zl,
9726
+ var zl = Ul();
9727
+ function Zl() {
9728
+ return zl.useSyncExternalStore(
9729
+ Bl,
9709
9730
  () => !0,
9710
9731
  () => !1
9711
9732
  );
9712
9733
  }
9713
- function Zl() {
9734
+ function Bl() {
9714
9735
  return () => {
9715
9736
  };
9716
9737
  }
9717
- var gn = "Avatar", [Bl] = jl(gn), [Wl, Na] = Bl(gn), Aa = w.forwardRef(
9738
+ var vn = "Avatar", [Wl] = Ml(vn), [ql, Na] = Wl(vn), Aa = w.forwardRef(
9718
9739
  (t, e) => {
9719
9740
  const { __scopeAvatar: r, ...n } = t, [s, a] = w.useState("idle");
9720
9741
  return /* @__PURE__ */ h(
9721
- Wl,
9742
+ ql,
9722
9743
  {
9723
9744
  scope: r,
9724
9745
  imageLoadingStatus: s,
@@ -9728,11 +9749,11 @@ var gn = "Avatar", [Bl] = jl(gn), [Wl, Na] = Bl(gn), Aa = w.forwardRef(
9728
9749
  );
9729
9750
  }
9730
9751
  );
9731
- Aa.displayName = gn;
9752
+ Aa.displayName = vn;
9732
9753
  var Ta = "AvatarImage", Pa = w.forwardRef(
9733
9754
  (t, e) => {
9734
9755
  const { __scopeAvatar: r, src: n, onLoadingStatusChange: s = () => {
9735
- }, ...a } = t, i = Na(Ta, r), o = ql(n, a), c = Vl((l) => {
9756
+ }, ...a } = t, i = Na(Ta, r), o = Gl(n, a), c = $l((l) => {
9736
9757
  s(l), i.onImageLoadingStatusChange(l);
9737
9758
  });
9738
9759
  return xt(() => {
@@ -9753,15 +9774,15 @@ var Ia = "AvatarFallback", La = w.forwardRef(
9753
9774
  }
9754
9775
  );
9755
9776
  La.displayName = Ia;
9756
- function Cs(t, e) {
9777
+ function Es(t, e) {
9757
9778
  return t ? e ? (t.src !== e && (t.src = e), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
9758
9779
  }
9759
- function ql(t, { referrerPolicy: e, crossOrigin: r }) {
9760
- const n = zl(), s = w.useRef(null), a = n ? (s.current || (s.current = new window.Image()), s.current) : null, [i, o] = w.useState(
9761
- () => Cs(a, t)
9780
+ function Gl(t, { referrerPolicy: e, crossOrigin: r }) {
9781
+ const n = Zl(), s = w.useRef(null), a = n ? (s.current || (s.current = new window.Image()), s.current) : null, [i, o] = w.useState(
9782
+ () => Es(a, t)
9762
9783
  );
9763
9784
  return xt(() => {
9764
- o(Cs(a, t));
9785
+ o(Es(a, t));
9765
9786
  }, [a, t]), xt(() => {
9766
9787
  const c = (d) => () => {
9767
9788
  o(d);
@@ -9807,26 +9828,26 @@ const Da = w.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ h(
9807
9828
  }
9808
9829
  ));
9809
9830
  Da.displayName = Va.displayName;
9810
- function ru({
9831
+ function su({
9811
9832
  className: t,
9812
9833
  onEditProfile: e,
9813
9834
  showLogout: r = !0,
9814
9835
  onLogoutSuccess: n
9815
9836
  }) {
9816
9837
  var l, f;
9817
- const { user: s, isLoading: a, isAuthenticated: i } = Wt();
9838
+ const { user: s, isLoading: a, isAuthenticated: i } = Pt();
9818
9839
  if (a)
9819
9840
  return /* @__PURE__ */ h(Be, { className: me("w-full max-w-md", t), children: /* @__PURE__ */ h(nr, { className: "flex items-center justify-center py-10", children: /* @__PURE__ */ h("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent" }) }) });
9820
9841
  if (!i || !s)
9821
9842
  return /* @__PURE__ */ h(Be, { className: me("w-full max-w-md", t), children: /* @__PURE__ */ h(nr, { className: "py-10 text-center", children: /* @__PURE__ */ h("p", { className: "text-sm text-muted-foreground", children: "Not signed in" }) }) });
9822
9843
  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(" ");
9823
- return /* @__PURE__ */ z(Be, { className: me("w-full max-w-md", t), children: [
9824
- /* @__PURE__ */ h(ma, { children: /* @__PURE__ */ z("div", { className: "flex items-start gap-4", children: [
9825
- /* @__PURE__ */ z($a, { className: "h-16 w-16", children: [
9844
+ return /* @__PURE__ */ D(Be, { className: me("w-full max-w-md", t), children: [
9845
+ /* @__PURE__ */ h(ma, { children: /* @__PURE__ */ D("div", { className: "flex items-start gap-4", children: [
9846
+ /* @__PURE__ */ D($a, { className: "h-16 w-16", children: [
9826
9847
  s.avatarUrl && /* @__PURE__ */ h(Fa, { src: s.avatarUrl, alt: c }),
9827
9848
  /* @__PURE__ */ h(Da, { className: "text-lg", children: o })
9828
9849
  ] }),
9829
- /* @__PURE__ */ z("div", { className: "flex-1 space-y-1", children: [
9850
+ /* @__PURE__ */ D("div", { className: "flex-1 space-y-1", children: [
9830
9851
  /* @__PURE__ */ h(ya, { className: "text-xl", children: c }),
9831
9852
  /* @__PURE__ */ h(ga, { children: s.email })
9832
9853
  ] }),
@@ -9837,24 +9858,24 @@ function ru({
9837
9858
  size: "icon",
9838
9859
  onClick: () => e(s),
9839
9860
  "aria-label": "Edit profile",
9840
- children: /* @__PURE__ */ h(no, { className: "h-4 w-4" })
9861
+ children: /* @__PURE__ */ h(so, { className: "h-4 w-4" })
9841
9862
  }
9842
9863
  )
9843
9864
  ] }) }),
9844
9865
  /* @__PURE__ */ h(Tt, {}),
9845
- /* @__PURE__ */ z(nr, { className: "space-y-4 pt-4", children: [
9866
+ /* @__PURE__ */ D(nr, { className: "space-y-4 pt-4", children: [
9846
9867
  /* @__PURE__ */ h(
9847
- Mr,
9868
+ Vr,
9848
9869
  {
9849
- icon: /* @__PURE__ */ h(ro, { className: "h-4 w-4 text-muted-foreground" }),
9870
+ icon: /* @__PURE__ */ h(no, { className: "h-4 w-4 text-muted-foreground" }),
9850
9871
  label: "Email",
9851
9872
  value: s.email
9852
9873
  }
9853
9874
  ),
9854
9875
  s.whatsappNumber && /* @__PURE__ */ h(
9855
- Mr,
9876
+ Vr,
9856
9877
  {
9857
- icon: /* @__PURE__ */ h(so, { className: "h-4 w-4 text-muted-foreground" }),
9878
+ icon: /* @__PURE__ */ h(ao, { className: "h-4 w-4 text-muted-foreground" }),
9858
9879
  label: "WhatsApp",
9859
9880
  value: s.whatsappNumber
9860
9881
  }
@@ -9863,18 +9884,18 @@ function ru({
9863
9884
  ([d]) => !["id", "email", "firstName", "lastName", "whatsappNumber", "avatarUrl"].includes(d)
9864
9885
  ).map(
9865
9886
  ([d, p]) => typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ h(
9866
- Mr,
9887
+ Vr,
9867
9888
  {
9868
- label: Gl(d),
9889
+ label: Hl(d),
9869
9890
  value: String(p)
9870
9891
  },
9871
9892
  d
9872
9893
  ) : null
9873
9894
  ),
9874
- r && /* @__PURE__ */ z(Es, { children: [
9895
+ r && /* @__PURE__ */ D(tn, { children: [
9875
9896
  /* @__PURE__ */ h(Tt, {}),
9876
9897
  /* @__PURE__ */ h(
9877
- Ll,
9898
+ jl,
9878
9899
  {
9879
9900
  className: "w-full",
9880
9901
  onSuccess: n
@@ -9884,26 +9905,27 @@ function ru({
9884
9905
  ] })
9885
9906
  ] });
9886
9907
  }
9887
- function Mr({ icon: t, label: e, value: r }) {
9888
- return /* @__PURE__ */ z("div", { className: "flex items-center gap-3", children: [
9908
+ function Vr({ icon: t, label: e, value: r }) {
9909
+ return /* @__PURE__ */ D("div", { className: "flex items-center gap-3", children: [
9889
9910
  t && /* @__PURE__ */ h("span", { className: "shrink-0", children: t }),
9890
- /* @__PURE__ */ z("div", { className: "min-w-0", children: [
9911
+ /* @__PURE__ */ D("div", { className: "min-w-0", children: [
9891
9912
  /* @__PURE__ */ h("p", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: e }),
9892
9913
  /* @__PURE__ */ h("p", { className: "truncate text-sm", children: r })
9893
9914
  ] })
9894
9915
  ] });
9895
9916
  }
9896
- function Gl(t) {
9917
+ function Hl(t) {
9897
9918
  return t.replace(/([A-Z])/g, " $1").replace(/_/g, " ").trim().replace(/^\w/, (e) => e.toUpperCase());
9898
9919
  }
9899
9920
  export {
9900
- Xl as AuthProvider,
9901
- tu as ForgotPasswordForm,
9902
- Ql as LoginForm,
9903
- Ll as LogoutButton,
9904
- ru as ProfileComponent,
9905
- eu as SignupForm,
9906
- Wt as useAuth,
9907
- tn as useAuthConfig
9921
+ Ql as AuthProvider,
9922
+ nu as ForgotPasswordForm,
9923
+ eu as GuestRoute,
9924
+ tu as LoginForm,
9925
+ jl as LogoutButton,
9926
+ su as ProfileComponent,
9927
+ ru as SignupForm,
9928
+ Pt as useAuth,
9929
+ gr as useAuthConfig
9908
9930
  };
9909
9931
  //# sourceMappingURL=index.js.map