doct-ui-auth-kit 1.0.13 → 1.0.15

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.
Files changed (85) hide show
  1. package/dist/adapters/http-auth-adapter.d.ts +13 -0
  2. package/dist/adapters/index.d.ts +1 -0
  3. package/dist/auth/index.d.ts +28 -0
  4. package/dist/auth-methods/apple.d.ts +19 -0
  5. package/dist/auth-methods/google.d.ts +5 -0
  6. package/dist/auth-methods/index.d.ts +2 -0
  7. package/dist/auth-methods/use-google-auth.d.ts +69 -0
  8. package/dist/components/common/back-button.d.ts +13 -0
  9. package/dist/components/common/default-footer.d.ts +5 -0
  10. package/dist/components/form/rhf-doct-phone-input.d.ts +2 -0
  11. package/dist/components/form/rhf-input-field.d.ts +2 -0
  12. package/dist/components/form/rhf-otp-input-field.d.ts +3 -0
  13. package/dist/components/layout/auth-layout-preset.d.ts +30 -0
  14. package/dist/components/layout/auth-layout-public.d.ts +17 -0
  15. package/dist/components/layout/auth-layout-wrapper.d.ts +42 -0
  16. package/dist/components/layout/auth-layout.d.ts +89 -0
  17. package/dist/components/layout/image-slider.d.ts +28 -0
  18. package/dist/components/layout/index.d.ts +8 -0
  19. package/dist/components/layout/main-layout.d.ts +30 -0
  20. package/dist/constants/brand.d.ts +9 -0
  21. package/dist/constants/demo-slider.d.ts +14 -0
  22. package/dist/constants/index.d.ts +4 -0
  23. package/dist/constants/layout-classes.d.ts +10 -0
  24. package/dist/constants/layout-presets.d.ts +10 -0
  25. package/dist/core/auth-api-adapter.d.ts +6 -0
  26. package/dist/core/auth-context.d.ts +21 -0
  27. package/dist/core/auth-flow.d.ts +1 -1
  28. package/dist/core/auth-provider.d.ts +8 -0
  29. package/dist/core/auth-types.d.ts +5 -0
  30. package/dist/core/device-detection.d.ts +19 -0
  31. package/dist/core/index.d.ts +12 -0
  32. package/dist/core/sso-session.d.ts +35 -0
  33. package/dist/core/use-auth-flow-router-sync.d.ts +1 -1
  34. package/dist/core/use-auth-flow.d.ts +9 -0
  35. package/dist/hooks/index.d.ts +5 -0
  36. package/dist/hooks/use-login-entry-form.d.ts +12 -0
  37. package/dist/hooks/use-main-auth-page-handlers.d.ts +9 -0
  38. package/dist/hooks/use-otp-verification.d.ts +3 -3
  39. package/dist/hooks/use-repeat-login.d.ts +9 -0
  40. package/dist/hooks/use-signup-form.d.ts +12 -0
  41. package/dist/index.d.ts +38 -0
  42. package/dist/index.js +321 -313
  43. package/dist/pages/index.d.ts +8 -0
  44. package/dist/pages/login-entry/index.d.ts +3 -0
  45. package/dist/pages/login-entry/login-entry-page.d.ts +21 -0
  46. package/dist/pages/login-entry/login-entry.d.ts +21 -0
  47. package/dist/pages/main-login/index.d.ts +3 -0
  48. package/dist/pages/main-login/main-login-page.d.ts +16 -0
  49. package/dist/pages/main-login/main-login.d.ts +25 -0
  50. package/dist/pages/otp-verification/index.d.ts +3 -0
  51. package/dist/pages/otp-verification/otp-verification-page.d.ts +23 -0
  52. package/dist/pages/otp-verification/otp-verification.d.ts +22 -0
  53. package/dist/pages/repeat-login/index.d.ts +3 -0
  54. package/dist/pages/repeat-login/repeat-login-page.d.ts +24 -0
  55. package/dist/pages/repeat-login/repeat-login.d.ts +25 -0
  56. package/dist/pages/signup/index.d.ts +3 -0
  57. package/dist/pages/signup/signup-page.d.ts +6 -0
  58. package/dist/pages/signup/signup.d.ts +7 -0
  59. package/dist/pages.js +1 -1
  60. package/dist/{signup-page-ChXnxtSS.js → signup-page-LsYojX4-.js} +43 -38
  61. package/dist/types/auth/auth-api-adapter.d.ts +57 -0
  62. package/dist/types/auth/auth-provider.d.ts +40 -0
  63. package/dist/types/auth/auth-types.d.ts +70 -0
  64. package/dist/types/auth/device-detection.d.ts +13 -0
  65. package/dist/types/auth/flow.d.ts +133 -0
  66. package/dist/types/auth/index.d.ts +10 -0
  67. package/dist/types/auth/router.d.ts +60 -0
  68. package/dist/types/auth/sso-session.d.ts +33 -0
  69. package/dist/types/components/auth-layout-types.d.ts +92 -0
  70. package/dist/types/components/forms.d.ts +77 -0
  71. package/dist/types/components/index.d.ts +7 -0
  72. package/dist/types/components/layout-presets.d.ts +29 -0
  73. package/dist/types/components/layout.d.ts +57 -0
  74. package/dist/types/index.d.ts +7 -0
  75. package/dist/types/pages/index.d.ts +9 -0
  76. package/dist/types/pages/login-form.d.ts +57 -0
  77. package/dist/types/pages/otp-verification.d.ts +1 -1
  78. package/dist/types/pages/repeat-login.d.ts +29 -0
  79. package/dist/types/pages/signup-form.d.ts +49 -0
  80. package/dist/utils/build-phone-recipient.d.ts +12 -0
  81. package/dist/utils/index.d.ts +5 -0
  82. package/dist/utils/set-form-errors-from-zod.d.ts +11 -0
  83. package/dist/validations/index.d.ts +6 -0
  84. package/dist/validations/schemas.d.ts +87 -0
  85. package/package.json +110 -109
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { jsx as V, Fragment as Kt } from "react/jsx-runtime";
3
- import { f as fe, A as Qr, g as ei, u as ti, h as ni, d as ri, e as ii, c as ai, b as oi, a as Yt, i as qt, O as di, S as ui } from "./signup-page-ChXnxtSS.js";
4
- import { B as m1, D as g1, j as v1, E as b1, I as C1, L as P1, k as N1, M as S1, l as E1, m as O1, n as T1, R as I1, o as A1, p as _1, q as w1, r as R1, s as x1 } from "./signup-page-ChXnxtSS.js";
5
- import S, { createContext as li, useContext as ar, useRef as se, useEffect as yt, useCallback as ue, useMemo as He, useReducer as si } from "react";
3
+ import { f as fe, A as Qr, g as ei, u as ti, h as ni, d as ri, e as ii, c as ai, b as oi, a as Yt, i as qt, O as di, S as ui } from "./signup-page-LsYojX4-.js";
4
+ import { B as m1, D as g1, j as v1, E as b1, I as C1, L as P1, k as N1, M as S1, l as E1, m as O1, n as T1, R as I1, o as A1, p as _1, q as w1, r as R1, s as x1 } from "./signup-page-LsYojX4-.js";
5
+ import E, { createContext as li, useContext as ar, useRef as se, useEffect as yt, useCallback as ue, useMemo as He, useReducer as si } from "react";
6
6
  import { DoctCircularProgress as ci } from "docthub-core-components";
7
7
  import "react-icons/md";
8
8
  import "react-hook-form";
@@ -269,20 +269,20 @@ function vi(e) {
269
269
  }, t[4] = c, t[5] = $, t[6] = g, t[7] = v) : v = t[7];
270
270
  const {
271
271
  loginWithGoogle: y
272
- } = ti(v), P = f?.clientId ?? "", T = f?.redirectUri ?? "";
273
- let E;
274
- t[8] !== u ? (E = (b) => u.providerCallback({
272
+ } = ti(v), P = f?.clientId ?? "", O = f?.redirectUri ?? "";
273
+ let S;
274
+ t[8] !== u ? (S = (b) => u.providerCallback({
275
275
  provider: "apple",
276
276
  credential: b
277
- }), t[8] = u, t[9] = E) : E = t[9];
278
- let A;
279
- t[10] !== P || t[11] !== T || t[12] !== E ? (A = {
277
+ }), t[8] = u, t[9] = S) : S = t[9];
278
+ let I;
279
+ t[10] !== P || t[11] !== O || t[12] !== S ? (I = {
280
280
  clientId: P,
281
- redirectUri: T,
282
- onCredential: E
283
- }, t[10] = P, t[11] = T, t[12] = E, t[13] = A) : A = t[13];
281
+ redirectUri: O,
282
+ onCredential: S
283
+ }, t[10] = P, t[11] = O, t[12] = S, t[13] = I) : I = t[13];
284
284
  const {
285
- triggerSignIn: m
285
+ triggerSignIn: h
286
286
  } = ni();
287
287
  switch (d.step) {
288
288
  case "CHECKING_SESSION": {
@@ -290,13 +290,13 @@ function vi(e) {
290
290
  return t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ V(zt, {}), t[14] = b) : b = t[14], b;
291
291
  }
292
292
  case "METHOD_SELECT": {
293
- const b = l?.google?.clientId, I = l?.apple?.clientId;
293
+ const b = l?.google?.clientId, A = l?.apple?.clientId;
294
294
  let F, G;
295
295
  t[15] !== u ? (G = () => u.selectMethod("phone"), F = () => u.selectMethod("email"), t[15] = u, t[16] = F, t[17] = G) : (F = t[16], G = t[17]);
296
296
  let U;
297
297
  t[18] !== b || t[19] !== y ? (U = b ? y : Ci, t[18] = b, t[19] = y, t[20] = U) : U = t[20];
298
298
  let W;
299
- t[21] !== I || t[22] !== m ? (W = I ? m : bi, t[21] = I, t[22] = m, t[23] = W) : W = t[23];
299
+ t[21] !== A || t[22] !== h ? (W = A ? h : bi, t[21] = A, t[22] = h, t[23] = W) : W = t[23];
300
300
  let K;
301
301
  t[24] !== o ? (K = o != null && {
302
302
  onEnterpriseLogin: o
@@ -306,30 +306,30 @@ function vi(e) {
306
306
  }
307
307
  case "PHONE_ENTRY": {
308
308
  let b;
309
- return t[32] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "phone", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (I) => u.submitIdentifier(I) }), t[32] = u, t[33] = b) : b = t[33], b;
309
+ return t[32] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "phone", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (A) => u.submitIdentifier(A) }), t[32] = u, t[33] = b) : b = t[33], b;
310
310
  }
311
311
  case "EMAIL_ENTRY": {
312
312
  let b;
313
- return t[34] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "email", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (I) => u.submitIdentifier(I) }), t[34] = u, t[35] = b) : b = t[35], b;
313
+ return t[34] !== u ? (b = /* @__PURE__ */ V(Yt, { mode: "email", layoutType: "withSlider", variant: "desktop", onBack: () => u.goBack(), onSubmit: (A) => u.submitIdentifier(A) }), t[34] = u, t[35] = b) : b = t[35], b;
314
314
  }
315
315
  case "OTP_VERIFICATION": {
316
- const b = d.userType === "FOREIGN", I = b ? "standalone" : "withSlider", F = b ? "mobile" : "desktop";
316
+ const b = d.userType === "FOREIGN", A = b ? "standalone" : "withSlider", F = b ? "mobile" : "desktop";
317
317
  let G, U, W;
318
318
  t[36] !== u ? (W = () => u.goBack(), G = (q) => u.verifyOtp(q), U = () => u.resendOtp(), t[36] = u, t[37] = G, t[38] = U, t[39] = W) : (G = t[37], U = t[38], W = t[39]);
319
319
  let K;
320
- return t[40] !== b || t[41] !== I || t[42] !== d.identifierType || t[43] !== d.maskedRecipient || t[44] !== G || t[45] !== U || t[46] !== W || t[47] !== a || t[48] !== F ? (K = /* @__PURE__ */ V(ai, { mode: d.identifierType, recipientDisplay: d.maskedRecipient, isForeignUser: b, layoutType: I, variant: F, onBack: W, onSubmit: G, onResendCode: U, validate: a }), t[40] = b, t[41] = I, t[42] = d.identifierType, t[43] = d.maskedRecipient, t[44] = G, t[45] = U, t[46] = W, t[47] = a, t[48] = F, t[49] = K) : K = t[49], K;
320
+ return t[40] !== b || t[41] !== A || t[42] !== d.identifierType || t[43] !== d.maskedRecipient || t[44] !== G || t[45] !== U || t[46] !== W || t[47] !== a || t[48] !== F ? (K = /* @__PURE__ */ V(ai, { mode: d.identifierType, recipientDisplay: d.maskedRecipient, isForeignUser: b, layoutType: A, variant: F, onBack: W, submitApi: G, onResendCode: U, validate: a }), t[40] = b, t[41] = A, t[42] = d.identifierType, t[43] = d.maskedRecipient, t[44] = G, t[45] = U, t[46] = W, t[47] = a, t[48] = F, t[49] = K) : K = t[49], K;
321
321
  }
322
322
  case "SIGNUP_DETAILS": {
323
323
  let b;
324
324
  t[50] !== u ? (b = (F) => u.submitSignupDetails(F), t[50] = u, t[51] = b) : b = t[51];
325
- let I;
326
- return t[52] !== d.identifierType || t[53] !== d.pendingPhone || t[54] !== d.signupCollectField || t[55] !== d.userType || t[56] !== b ? (I = /* @__PURE__ */ V(ii, { userType: d.userType, loginMethod: d.identifierType, signupCollectField: d.signupCollectField, pendingPhone: d.pendingPhone, layoutType: "standalone", variant: "mobile", onSubmit: b }), t[52] = d.identifierType, t[53] = d.pendingPhone, t[54] = d.signupCollectField, t[55] = d.userType, t[56] = b, t[57] = I) : I = t[57], I;
325
+ let A;
326
+ return t[52] !== d.identifierType || t[53] !== d.pendingPhone || t[54] !== d.signupCollectField || t[55] !== d.userType || t[56] !== b ? (A = /* @__PURE__ */ V(ii, { userType: d.userType, loginMethod: d.identifierType, signupCollectField: d.signupCollectField, pendingPhone: d.pendingPhone, layoutType: "standalone", variant: "mobile", onSubmit: b }), t[52] = d.identifierType, t[53] = d.pendingPhone, t[54] = d.signupCollectField, t[55] = d.userType, t[56] = b, t[57] = A) : A = t[57], A;
327
327
  }
328
328
  case "REPEAT_LOGIN": {
329
- let b, I;
330
- t[58] !== u ? (I = () => u.continueWithLastMethod(), b = () => u.reset(), t[58] = u, t[59] = b, t[60] = I) : (b = t[59], I = t[60]);
329
+ let b, A;
330
+ t[58] !== u ? (A = () => u.continueWithLastMethod(), b = () => u.reset(), t[58] = u, t[59] = b, t[60] = A) : (b = t[59], A = t[60]);
331
331
  let F;
332
- return t[61] !== d.lastMethod || t[62] !== b || t[63] !== I ? (F = /* @__PURE__ */ V(ri, { lastUsedMethod: d.lastMethod, layoutType: "withSlider", variant: "desktop", onContinueWithLastMethod: I, onUseAnotherMethod: b }), t[61] = d.lastMethod, t[62] = b, t[63] = I, t[64] = F) : F = t[64], F;
332
+ return t[61] !== d.lastMethod || t[62] !== b || t[63] !== A ? (F = /* @__PURE__ */ V(ri, { lastUsedMethod: d.lastMethod, layoutType: "withSlider", variant: "desktop", onContinueWithLastMethod: A, onUseAnotherMethod: b }), t[61] = d.lastMethod, t[62] = b, t[63] = A, t[64] = F) : F = t[64], F;
333
333
  }
334
334
  case "PROVIDER_PENDING": {
335
335
  let b;
@@ -351,28 +351,28 @@ var Qt;
351
351
  function Pi() {
352
352
  if (Qt) return j;
353
353
  Qt = 1;
354
- var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
355
- function E(m) {
356
- if (typeof m == "object" && m !== null) {
357
- var b = m.$$typeof;
354
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, O = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
355
+ function S(h) {
356
+ if (typeof h == "object" && h !== null) {
357
+ var b = h.$$typeof;
358
358
  switch (b) {
359
359
  case t:
360
- switch (m = m.type, m) {
360
+ switch (h = h.type, h) {
361
361
  case u:
362
362
  case l:
363
363
  case r:
364
364
  case a:
365
365
  case i:
366
366
  case f:
367
- return m;
367
+ return h;
368
368
  default:
369
- switch (m = m && m.$$typeof, m) {
369
+ switch (h = h && h.$$typeof, h) {
370
370
  case d:
371
371
  case s:
372
372
  case g:
373
373
  case $:
374
374
  case o:
375
- return m;
375
+ return h;
376
376
  default:
377
377
  return b;
378
378
  }
@@ -382,47 +382,47 @@ function Pi() {
382
382
  }
383
383
  }
384
384
  }
385
- function A(m) {
386
- return E(m) === l;
387
- }
388
- return j.AsyncMode = u, j.ConcurrentMode = l, j.ContextConsumer = d, j.ContextProvider = o, j.Element = t, j.ForwardRef = s, j.Fragment = r, j.Lazy = g, j.Memo = $, j.Portal = n, j.Profiler = a, j.StrictMode = i, j.Suspense = f, j.isAsyncMode = function(m) {
389
- return A(m) || E(m) === u;
390
- }, j.isConcurrentMode = A, j.isContextConsumer = function(m) {
391
- return E(m) === d;
392
- }, j.isContextProvider = function(m) {
393
- return E(m) === o;
394
- }, j.isElement = function(m) {
395
- return typeof m == "object" && m !== null && m.$$typeof === t;
396
- }, j.isForwardRef = function(m) {
397
- return E(m) === s;
398
- }, j.isFragment = function(m) {
399
- return E(m) === r;
400
- }, j.isLazy = function(m) {
401
- return E(m) === g;
402
- }, j.isMemo = function(m) {
403
- return E(m) === $;
404
- }, j.isPortal = function(m) {
405
- return E(m) === n;
406
- }, j.isProfiler = function(m) {
407
- return E(m) === a;
408
- }, j.isStrictMode = function(m) {
409
- return E(m) === i;
410
- }, j.isSuspense = function(m) {
411
- return E(m) === f;
412
- }, j.isValidElementType = function(m) {
413
- return typeof m == "string" || typeof m == "function" || m === r || m === l || m === a || m === i || m === f || m === c || typeof m == "object" && m !== null && (m.$$typeof === g || m.$$typeof === $ || m.$$typeof === o || m.$$typeof === d || m.$$typeof === s || m.$$typeof === y || m.$$typeof === P || m.$$typeof === T || m.$$typeof === v);
414
- }, j.typeOf = E, j;
385
+ function I(h) {
386
+ return S(h) === l;
387
+ }
388
+ return j.AsyncMode = u, j.ConcurrentMode = l, j.ContextConsumer = d, j.ContextProvider = o, j.Element = t, j.ForwardRef = s, j.Fragment = r, j.Lazy = g, j.Memo = $, j.Portal = n, j.Profiler = a, j.StrictMode = i, j.Suspense = f, j.isAsyncMode = function(h) {
389
+ return I(h) || S(h) === u;
390
+ }, j.isConcurrentMode = I, j.isContextConsumer = function(h) {
391
+ return S(h) === d;
392
+ }, j.isContextProvider = function(h) {
393
+ return S(h) === o;
394
+ }, j.isElement = function(h) {
395
+ return typeof h == "object" && h !== null && h.$$typeof === t;
396
+ }, j.isForwardRef = function(h) {
397
+ return S(h) === s;
398
+ }, j.isFragment = function(h) {
399
+ return S(h) === r;
400
+ }, j.isLazy = function(h) {
401
+ return S(h) === g;
402
+ }, j.isMemo = function(h) {
403
+ return S(h) === $;
404
+ }, j.isPortal = function(h) {
405
+ return S(h) === n;
406
+ }, j.isProfiler = function(h) {
407
+ return S(h) === a;
408
+ }, j.isStrictMode = function(h) {
409
+ return S(h) === i;
410
+ }, j.isSuspense = function(h) {
411
+ return S(h) === f;
412
+ }, j.isValidElementType = function(h) {
413
+ return typeof h == "string" || typeof h == "function" || h === r || h === l || h === a || h === i || h === f || h === c || typeof h == "object" && h !== null && (h.$$typeof === g || h.$$typeof === $ || h.$$typeof === o || h.$$typeof === d || h.$$typeof === s || h.$$typeof === y || h.$$typeof === P || h.$$typeof === O || h.$$typeof === v);
414
+ }, j.typeOf = S, j;
415
415
  }
416
416
  var k = {};
417
417
  var en;
418
418
  function Ni() {
419
419
  return en || (en = 1, process.env.NODE_ENV !== "production" && (function() {
420
- var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, T = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
421
- function E(C) {
420
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? /* @__PURE__ */ Symbol.for("react.element") : 60103, n = e ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, r = e ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, i = e ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = e ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, o = e ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, d = e ? /* @__PURE__ */ Symbol.for("react.context") : 60110, u = e ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = e ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, s = e ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, f = e ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, c = e ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, $ = e ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, g = e ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = e ? /* @__PURE__ */ Symbol.for("react.block") : 60121, y = e ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = e ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, O = e ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
421
+ function S(C) {
422
422
  return typeof C == "string" || typeof C == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
423
- C === r || C === l || C === a || C === i || C === f || C === c || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === $ || C.$$typeof === o || C.$$typeof === d || C.$$typeof === s || C.$$typeof === y || C.$$typeof === P || C.$$typeof === T || C.$$typeof === v);
423
+ C === r || C === l || C === a || C === i || C === f || C === c || typeof C == "object" && C !== null && (C.$$typeof === g || C.$$typeof === $ || C.$$typeof === o || C.$$typeof === d || C.$$typeof === s || C.$$typeof === y || C.$$typeof === P || C.$$typeof === O || C.$$typeof === v);
424
424
  }
425
- function A(C) {
425
+ function I(C) {
426
426
  if (typeof C == "object" && C !== null) {
427
427
  var ne = C.$$typeof;
428
428
  switch (ne) {
@@ -454,47 +454,47 @@ function Ni() {
454
454
  }
455
455
  }
456
456
  }
457
- var m = u, b = l, I = d, F = o, G = t, U = s, W = r, K = g, q = $, te = n, $e = a, J = i, X = f, oe = !1;
457
+ var h = u, b = l, A = d, F = o, G = t, U = s, W = r, K = g, q = $, te = n, $e = a, J = i, X = f, oe = !1;
458
458
  function De(C) {
459
- return oe || (oe = !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.")), h(C) || A(C) === u;
459
+ return oe || (oe = !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.")), m(C) || I(C) === u;
460
460
  }
461
- function h(C) {
462
- return A(C) === l;
461
+ function m(C) {
462
+ return I(C) === l;
463
463
  }
464
464
  function N(C) {
465
- return A(C) === d;
465
+ return I(C) === d;
466
466
  }
467
467
  function x(C) {
468
- return A(C) === o;
468
+ return I(C) === o;
469
469
  }
470
470
  function w(C) {
471
471
  return typeof C == "object" && C !== null && C.$$typeof === t;
472
472
  }
473
- function O(C) {
474
- return A(C) === s;
473
+ function T(C) {
474
+ return I(C) === s;
475
475
  }
476
476
  function M(C) {
477
- return A(C) === r;
477
+ return I(C) === r;
478
478
  }
479
479
  function _(C) {
480
- return A(C) === g;
480
+ return I(C) === g;
481
481
  }
482
482
  function R(C) {
483
- return A(C) === $;
483
+ return I(C) === $;
484
484
  }
485
485
  function D(C) {
486
- return A(C) === n;
486
+ return I(C) === n;
487
487
  }
488
488
  function B(C) {
489
- return A(C) === a;
489
+ return I(C) === a;
490
490
  }
491
491
  function L(C) {
492
- return A(C) === i;
492
+ return I(C) === i;
493
493
  }
494
494
  function Z(C) {
495
- return A(C) === f;
495
+ return I(C) === f;
496
496
  }
497
- k.AsyncMode = m, k.ConcurrentMode = b, k.ContextConsumer = I, k.ContextProvider = F, k.Element = G, k.ForwardRef = U, k.Fragment = W, k.Lazy = K, k.Memo = q, k.Portal = te, k.Profiler = $e, k.StrictMode = J, k.Suspense = X, k.isAsyncMode = De, k.isConcurrentMode = h, k.isContextConsumer = N, k.isContextProvider = x, k.isElement = w, k.isForwardRef = O, k.isFragment = M, k.isLazy = _, k.isMemo = R, k.isPortal = D, k.isProfiler = B, k.isStrictMode = L, k.isSuspense = Z, k.isValidElementType = E, k.typeOf = A;
497
+ k.AsyncMode = h, k.ConcurrentMode = b, k.ContextConsumer = A, k.ContextProvider = F, k.Element = G, k.ForwardRef = U, k.Fragment = W, k.Lazy = K, k.Memo = q, k.Portal = te, k.Profiler = $e, k.StrictMode = J, k.Suspense = X, k.isAsyncMode = De, k.isConcurrentMode = m, k.isContextConsumer = N, k.isContextProvider = x, k.isElement = w, k.isForwardRef = T, k.isFragment = M, k.isLazy = _, k.isMemo = R, k.isPortal = D, k.isProfiler = B, k.isStrictMode = L, k.isSuspense = Z, k.isValidElementType = S, k.typeOf = I;
498
498
  })()), k;
499
499
  }
500
500
  var tn;
@@ -626,8 +626,8 @@ function Oi() {
626
626
  }
627
627
  return ut = function(d, u) {
628
628
  var l = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
629
- function f(h) {
630
- var N = h && (l && h[l] || h[s]);
629
+ function f(m) {
630
+ var N = m && (l && m[l] || m[s]);
631
631
  if (typeof N == "function")
632
632
  return N;
633
633
  }
@@ -640,26 +640,26 @@ function Oi() {
640
640
  object: P("object"),
641
641
  string: P("string"),
642
642
  symbol: P("symbol"),
643
- any: T(),
644
- arrayOf: E,
645
- element: A(),
646
- elementType: m(),
643
+ any: O(),
644
+ arrayOf: S,
645
+ element: I(),
646
+ elementType: h(),
647
647
  instanceOf: b,
648
648
  node: U(),
649
649
  objectOf: F,
650
- oneOf: I,
650
+ oneOf: A,
651
651
  oneOfType: G,
652
652
  shape: K,
653
653
  exact: q
654
654
  };
655
- function g(h, N) {
656
- return h === N ? h !== 0 || 1 / h === 1 / N : h !== h && N !== N;
655
+ function g(m, N) {
656
+ return m === N ? m !== 0 || 1 / m === 1 / N : m !== m && N !== N;
657
657
  }
658
- function v(h, N) {
659
- this.message = h, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
658
+ function v(m, N) {
659
+ this.message = m, this.data = N && typeof N == "object" ? N : {}, this.stack = "";
660
660
  }
661
661
  v.prototype = Error.prototype;
662
- function y(h) {
662
+ function y(m) {
663
663
  if (process.env.NODE_ENV !== "production")
664
664
  var N = {}, x = 0;
665
665
  function w(M, _, R, D, B, L, Z) {
@@ -677,39 +677,39 @@ function Oi() {
677
677
  ), N[ne] = !0, x++);
678
678
  }
679
679
  }
680
- return _[R] == null ? M ? _[R] === null ? new v("The " + B + " `" + L + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new v("The " + B + " `" + L + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : h(_, R, D, B, L);
680
+ return _[R] == null ? M ? _[R] === null ? new v("The " + B + " `" + L + "` is marked as required " + ("in `" + D + "`, but its value is `null`.")) : new v("The " + B + " `" + L + "` is marked as required in " + ("`" + D + "`, but its value is `undefined`.")) : null : m(_, R, D, B, L);
681
681
  }
682
- var O = w.bind(null, !1);
683
- return O.isRequired = w.bind(null, !0), O;
682
+ var T = w.bind(null, !1);
683
+ return T.isRequired = w.bind(null, !0), T;
684
684
  }
685
- function P(h) {
686
- function N(x, w, O, M, _, R) {
685
+ function P(m) {
686
+ function N(x, w, T, M, _, R) {
687
687
  var D = x[w], B = J(D);
688
- if (B !== h) {
688
+ if (B !== m) {
689
689
  var L = X(D);
690
690
  return new v(
691
- "Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + O + "`, expected ") + ("`" + h + "`."),
692
- { expectedType: h }
691
+ "Invalid " + M + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + T + "`, expected ") + ("`" + m + "`."),
692
+ { expectedType: m }
693
693
  );
694
694
  }
695
695
  return null;
696
696
  }
697
697
  return y(N);
698
698
  }
699
- function T() {
699
+ function O() {
700
700
  return y(o);
701
701
  }
702
- function E(h) {
703
- function N(x, w, O, M, _) {
704
- if (typeof h != "function")
705
- return new v("Property `" + _ + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
702
+ function S(m) {
703
+ function N(x, w, T, M, _) {
704
+ if (typeof m != "function")
705
+ return new v("Property `" + _ + "` of component `" + T + "` has invalid PropType notation inside arrayOf.");
706
706
  var R = x[w];
707
707
  if (!Array.isArray(R)) {
708
708
  var D = J(R);
709
- return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + O + "`, expected an array."));
709
+ return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected an array."));
710
710
  }
711
711
  for (var B = 0; B < R.length; B++) {
712
- var L = h(R, B, O, M, _ + "[" + B + "]", n);
712
+ var L = m(R, B, T, M, _ + "[" + B + "]", n);
713
713
  if (L instanceof Error)
714
714
  return L;
715
715
  }
@@ -717,65 +717,65 @@ function Oi() {
717
717
  }
718
718
  return y(N);
719
719
  }
720
- function A() {
721
- function h(N, x, w, O, M) {
720
+ function I() {
721
+ function m(N, x, w, T, M) {
722
722
  var _ = N[x];
723
723
  if (!d(_)) {
724
724
  var R = J(_);
725
- return new v("Invalid " + O + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement."));
725
+ return new v("Invalid " + T + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement."));
726
726
  }
727
727
  return null;
728
728
  }
729
- return y(h);
729
+ return y(m);
730
730
  }
731
- function m() {
732
- function h(N, x, w, O, M) {
731
+ function h() {
732
+ function m(N, x, w, T, M) {
733
733
  var _ = N[x];
734
734
  if (!e.isValidElementType(_)) {
735
735
  var R = J(_);
736
- return new v("Invalid " + O + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement type."));
736
+ return new v("Invalid " + T + " `" + M + "` of type " + ("`" + R + "` supplied to `" + w + "`, expected a single ReactElement type."));
737
737
  }
738
738
  return null;
739
739
  }
740
- return y(h);
740
+ return y(m);
741
741
  }
742
- function b(h) {
743
- function N(x, w, O, M, _) {
744
- if (!(x[w] instanceof h)) {
745
- var R = h.name || c, D = De(x[w]);
746
- return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + O + "`, expected ") + ("instance of `" + R + "`."));
742
+ function b(m) {
743
+ function N(x, w, T, M, _) {
744
+ if (!(x[w] instanceof m)) {
745
+ var R = m.name || c, D = De(x[w]);
746
+ return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected ") + ("instance of `" + R + "`."));
747
747
  }
748
748
  return null;
749
749
  }
750
750
  return y(N);
751
751
  }
752
- function I(h) {
753
- if (!Array.isArray(h))
752
+ function A(m) {
753
+ if (!Array.isArray(m))
754
754
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
755
755
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
756
756
  ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
757
- function N(x, w, O, M, _) {
758
- for (var R = x[w], D = 0; D < h.length; D++)
759
- if (g(R, h[D]))
757
+ function N(x, w, T, M, _) {
758
+ for (var R = x[w], D = 0; D < m.length; D++)
759
+ if (g(R, m[D]))
760
760
  return null;
761
- var B = JSON.stringify(h, function(Z, C) {
761
+ var B = JSON.stringify(m, function(Z, C) {
762
762
  var ne = X(C);
763
763
  return ne === "symbol" ? String(C) : C;
764
764
  });
765
- return new v("Invalid " + M + " `" + _ + "` of value `" + String(R) + "` " + ("supplied to `" + O + "`, expected one of " + B + "."));
765
+ return new v("Invalid " + M + " `" + _ + "` of value `" + String(R) + "` " + ("supplied to `" + T + "`, expected one of " + B + "."));
766
766
  }
767
767
  return y(N);
768
768
  }
769
- function F(h) {
770
- function N(x, w, O, M, _) {
771
- if (typeof h != "function")
772
- return new v("Property `" + _ + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
769
+ function F(m) {
770
+ function N(x, w, T, M, _) {
771
+ if (typeof m != "function")
772
+ return new v("Property `" + _ + "` of component `" + T + "` has invalid PropType notation inside objectOf.");
773
773
  var R = x[w], D = J(R);
774
774
  if (D !== "object")
775
- return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + O + "`, expected an object."));
775
+ return new v("Invalid " + M + " `" + _ + "` of type " + ("`" + D + "` supplied to `" + T + "`, expected an object."));
776
776
  for (var B in R)
777
777
  if (r(R, B)) {
778
- var L = h(R, B, O, M, _ + "." + B, n);
778
+ var L = m(R, B, T, M, _ + "." + B, n);
779
779
  if (L instanceof Error)
780
780
  return L;
781
781
  }
@@ -783,19 +783,19 @@ function Oi() {
783
783
  }
784
784
  return y(N);
785
785
  }
786
- function G(h) {
787
- if (!Array.isArray(h))
786
+ function G(m) {
787
+ if (!Array.isArray(m))
788
788
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
789
- for (var N = 0; N < h.length; N++) {
790
- var x = h[N];
789
+ for (var N = 0; N < m.length; N++) {
790
+ var x = m[N];
791
791
  if (typeof x != "function")
792
792
  return a(
793
793
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(x) + " at index " + N + "."
794
794
  ), o;
795
795
  }
796
- function w(O, M, _, R, D) {
797
- for (var B = [], L = 0; L < h.length; L++) {
798
- var Z = h[L], C = Z(O, M, _, R, D, n);
796
+ function w(T, M, _, R, D) {
797
+ for (var B = [], L = 0; L < m.length; L++) {
798
+ var Z = m[L], C = Z(T, M, _, R, D, n);
799
799
  if (C == null)
800
800
  return null;
801
801
  C.data && r(C.data, "expectedType") && B.push(C.data.expectedType);
@@ -806,26 +806,26 @@ function Oi() {
806
806
  return y(w);
807
807
  }
808
808
  function U() {
809
- function h(N, x, w, O, M) {
810
- return te(N[x]) ? null : new v("Invalid " + O + " `" + M + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
809
+ function m(N, x, w, T, M) {
810
+ return te(N[x]) ? null : new v("Invalid " + T + " `" + M + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
811
811
  }
812
- return y(h);
812
+ return y(m);
813
813
  }
814
- function W(h, N, x, w, O) {
814
+ function W(m, N, x, w, T) {
815
815
  return new v(
816
- (h || "React class") + ": " + N + " type `" + x + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
816
+ (m || "React class") + ": " + N + " type `" + x + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + T + "`."
817
817
  );
818
818
  }
819
- function K(h) {
820
- function N(x, w, O, M, _) {
819
+ function K(m) {
820
+ function N(x, w, T, M, _) {
821
821
  var R = x[w], D = J(R);
822
822
  if (D !== "object")
823
- return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" + O + "`, expected `object`."));
824
- for (var B in h) {
825
- var L = h[B];
823
+ return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" + T + "`, expected `object`."));
824
+ for (var B in m) {
825
+ var L = m[B];
826
826
  if (typeof L != "function")
827
- return W(O, M, _, B, X(L));
828
- var Z = L(R, B, O, M, _ + "." + B, n);
827
+ return W(T, M, _, B, X(L));
828
+ var Z = L(R, B, T, M, _ + "." + B, n);
829
829
  if (Z)
830
830
  return Z;
831
831
  }
@@ -833,22 +833,22 @@ function Oi() {
833
833
  }
834
834
  return y(N);
835
835
  }
836
- function q(h) {
837
- function N(x, w, O, M, _) {
836
+ function q(m) {
837
+ function N(x, w, T, M, _) {
838
838
  var R = x[w], D = J(R);
839
839
  if (D !== "object")
840
- return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" + O + "`, expected `object`."));
841
- var B = t({}, x[w], h);
840
+ return new v("Invalid " + M + " `" + _ + "` of type `" + D + "` " + ("supplied to `" + T + "`, expected `object`."));
841
+ var B = t({}, x[w], m);
842
842
  for (var L in B) {
843
- var Z = h[L];
844
- if (r(h, L) && typeof Z != "function")
845
- return W(O, M, _, L, X(Z));
843
+ var Z = m[L];
844
+ if (r(m, L) && typeof Z != "function")
845
+ return W(T, M, _, L, X(Z));
846
846
  if (!Z)
847
847
  return new v(
848
- "Invalid " + M + " `" + _ + "` key `" + L + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(x[w], null, " ") + `
849
- Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
848
+ "Invalid " + M + " `" + _ + "` key `" + L + "` supplied to `" + T + "`.\nBad object: " + JSON.stringify(x[w], null, " ") + `
849
+ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
850
850
  );
851
- var C = Z(R, L, O, M, _ + "." + L, n);
851
+ var C = Z(R, L, T, M, _ + "." + L, n);
852
852
  if (C)
853
853
  return C;
854
854
  }
@@ -856,30 +856,30 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
856
856
  }
857
857
  return y(N);
858
858
  }
859
- function te(h) {
860
- switch (typeof h) {
859
+ function te(m) {
860
+ switch (typeof m) {
861
861
  case "number":
862
862
  case "string":
863
863
  case "undefined":
864
864
  return !0;
865
865
  case "boolean":
866
- return !h;
866
+ return !m;
867
867
  case "object":
868
- if (Array.isArray(h))
869
- return h.every(te);
870
- if (h === null || d(h))
868
+ if (Array.isArray(m))
869
+ return m.every(te);
870
+ if (m === null || d(m))
871
871
  return !0;
872
- var N = f(h);
872
+ var N = f(m);
873
873
  if (N) {
874
- var x = N.call(h), w;
875
- if (N !== h.entries) {
874
+ var x = N.call(m), w;
875
+ if (N !== m.entries) {
876
876
  for (; !(w = x.next()).done; )
877
877
  if (!te(w.value))
878
878
  return !1;
879
879
  } else
880
880
  for (; !(w = x.next()).done; ) {
881
- var O = w.value;
882
- if (O && !te(O[1]))
881
+ var T = w.value;
882
+ if (T && !te(T[1]))
883
883
  return !1;
884
884
  }
885
885
  } else
@@ -889,27 +889,27 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
889
889
  return !1;
890
890
  }
891
891
  }
892
- function $e(h, N) {
893
- return h === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1;
892
+ function $e(m, N) {
893
+ return m === "symbol" ? !0 : N ? N["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && N instanceof Symbol : !1;
894
894
  }
895
- function J(h) {
896
- var N = typeof h;
897
- return Array.isArray(h) ? "array" : h instanceof RegExp ? "object" : $e(N, h) ? "symbol" : N;
895
+ function J(m) {
896
+ var N = typeof m;
897
+ return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : $e(N, m) ? "symbol" : N;
898
898
  }
899
- function X(h) {
900
- if (typeof h > "u" || h === null)
901
- return "" + h;
902
- var N = J(h);
899
+ function X(m) {
900
+ if (typeof m > "u" || m === null)
901
+ return "" + m;
902
+ var N = J(m);
903
903
  if (N === "object") {
904
- if (h instanceof Date)
904
+ if (m instanceof Date)
905
905
  return "date";
906
- if (h instanceof RegExp)
906
+ if (m instanceof RegExp)
907
907
  return "regexp";
908
908
  }
909
909
  return N;
910
910
  }
911
- function oe(h) {
912
- var N = X(h);
911
+ function oe(m) {
912
+ var N = X(m);
913
913
  switch (N) {
914
914
  case "array":
915
915
  case "object":
@@ -922,8 +922,8 @@ Valid keys: ` + JSON.stringify(Object.keys(h), null, " ")
922
922
  return N;
923
923
  }
924
924
  }
925
- function De(h) {
926
- return !h.constructor || !h.constructor.name ? c : h.constructor.name;
925
+ function De(m) {
926
+ return !m.constructor || !m.constructor.name ? c : m.constructor.name;
927
927
  }
928
928
  return $.checkPropTypes = i, $.resetWarningCache = i.resetWarningCache, $.PropTypes = $, $;
929
929
  }, ut;
@@ -1351,9 +1351,9 @@ function Ke(e, t) {
1351
1351
  onKeyDown: s,
1352
1352
  type: c
1353
1353
  }, $));
1354
- return /* @__PURE__ */ S.createElement(r, g);
1354
+ return /* @__PURE__ */ E.createElement(r, g);
1355
1355
  }
1356
- Ke = /* @__PURE__ */ S.forwardRef(Ke);
1356
+ Ke = /* @__PURE__ */ E.forwardRef(Ke);
1357
1357
  Ke.propTypes = {
1358
1358
  // Parses a single characher of `<input/>` text.
1359
1359
  parse: p.func.isRequired,
@@ -2172,8 +2172,8 @@ var Ga = ";ext=", ye = function(t) {
2172
2172
  return "([".concat(Y, "]{1,").concat(t, "})");
2173
2173
  };
2174
2174
  function Nr(e) {
2175
- var t = "20", n = "15", r = "9", i = "6", a = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", d = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", s = "[- ]+", f = "[  \\t]*", c = "(?:,{2}|;)", $ = Ga + ye(t), g = a + u + o + ye(t) + d, v = a + l + o + ye(r) + d, y = s + ye(i) + "#", P = f + c + o + ye(n) + d, T = f + "(?:,)+" + o + ye(r) + d;
2176
- return $ + "|" + g + "|" + v + "|" + y + "|" + P + "|" + T;
2175
+ var t = "20", n = "15", r = "9", i = "6", a = "[  \\t,]*", o = "[:\\..]?[  \\t,-]*", d = "#?", u = "(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)", l = "(?:[xx##~~]|int|int)", s = "[- ]+", f = "[  \\t]*", c = "(?:,{2}|;)", $ = Ga + ye(t), g = a + u + o + ye(t) + d, v = a + l + o + ye(r) + d, y = s + ye(i) + "#", P = f + c + o + ye(n) + d, O = f + "(?:,)+" + o + ye(r) + d;
2176
+ return $ + "|" + g + "|" + v + "|" + y + "|" + P + "|" + O;
2177
2177
  }
2178
2178
  var Ba = "[" + Y + "]{" + jt + "}", Ua = "[" + tt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){3,}[" + ee + Y + "]*", Wa = new RegExp("^[" + tt + "]{0,1}(?:[" + ee + "]*[" + Y + "]){1,2}$", "i"), Ha = Ua + // Phone number extensions
2179
2179
  "(?:" + Nr() + ")?", Va = new RegExp(
@@ -4528,14 +4528,14 @@ function Ru(e) {
4528
4528
  onKeyDown: i,
4529
4529
  inputFormat: o
4530
4530
  });
4531
- return /* @__PURE__ */ S.createElement(Ke, It({}, l, {
4531
+ return /* @__PURE__ */ E.createElement(Ke, It({}, l, {
4532
4532
  ref: r,
4533
4533
  parse: Eu,
4534
4534
  format: s,
4535
4535
  onKeyDown: f
4536
4536
  }));
4537
4537
  }
4538
- return t = /* @__PURE__ */ S.forwardRef(t), t.propTypes = {
4538
+ return t = /* @__PURE__ */ E.forwardRef(t), t.propTypes = {
4539
4539
  /**
4540
4540
  * The parsed phone number.
4541
4541
  * "Parsed" not in a sense of "E.164"
@@ -4614,24 +4614,24 @@ function Lu(e) {
4614
4614
  country: d,
4615
4615
  metadata: s
4616
4616
  }), v = ue(function(P) {
4617
- var T = Pt(P.target.value);
4618
- if (T === i) {
4619
- var E = qn(g, T, d, s);
4620
- E.indexOf(P.target.value) === 0 && (T = T.slice(0, -1));
4617
+ var O = Pt(P.target.value);
4618
+ if (O === i) {
4619
+ var S = qn(g, O, d, s);
4620
+ S.indexOf(P.target.value) === 0 && (O = O.slice(0, -1));
4621
4621
  }
4622
- a(T);
4622
+ a(O);
4623
4623
  }, [g, i, a, d, s]), y = Rr({
4624
4624
  onKeyDown: o,
4625
4625
  inputFormat: u
4626
4626
  });
4627
- return /* @__PURE__ */ S.createElement(c, At({}, $, {
4627
+ return /* @__PURE__ */ E.createElement(c, At({}, $, {
4628
4628
  ref: r,
4629
4629
  value: qn(g, i, d, s),
4630
4630
  onChange: v,
4631
4631
  onKeyDown: y
4632
4632
  }));
4633
4633
  }
4634
- return t = /* @__PURE__ */ S.forwardRef(t), t.propTypes = {
4634
+ return t = /* @__PURE__ */ E.forwardRef(t), t.propTypes = {
4635
4635
  /**
4636
4636
  * The parsed phone number.
4637
4637
  * "Parsed" not in a sense of "E.164"
@@ -4747,14 +4747,14 @@ function Fr(e) {
4747
4747
  }, [n]);
4748
4748
  return He(function() {
4749
4749
  return Dr(r, t);
4750
- }, [r, t]), /* @__PURE__ */ S.createElement("select", Ze({}, o, {
4750
+ }, [r, t]), /* @__PURE__ */ E.createElement("select", Ze({}, o, {
4751
4751
  disabled: i || a,
4752
4752
  readOnly: a,
4753
4753
  value: t || "ZZ",
4754
4754
  onChange: d
4755
4755
  }), r.map(function(u) {
4756
4756
  var l = u.value, s = u.label, f = u.divider;
4757
- return /* @__PURE__ */ S.createElement("option", {
4757
+ return /* @__PURE__ */ E.createElement("option", {
4758
4758
  key: f ? "|" : l || "ZZ",
4759
4759
  value: f ? "|" : l || "ZZ",
4760
4760
  disabled: !!f,
@@ -4798,20 +4798,20 @@ function Mr(e) {
4798
4798
  var a = e.arrowComponent, o = a === void 0 ? Ku : a, d = e.unicodeFlags, u = xr(e, Bu), l = He(function() {
4799
4799
  return Dr(n, t);
4800
4800
  }, [n, t]);
4801
- return /* @__PURE__ */ S.createElement("div", {
4801
+ return /* @__PURE__ */ E.createElement("div", {
4802
4802
  className: "PhoneInputCountry"
4803
- }, /* @__PURE__ */ S.createElement(Fr, Ze({}, u, {
4803
+ }, /* @__PURE__ */ E.createElement(Fr, Ze({}, u, {
4804
4804
  value: t,
4805
4805
  options: n,
4806
4806
  className: Ve("PhoneInputCountrySelect", r)
4807
- })), l && (d && t ? /* @__PURE__ */ S.createElement("div", {
4807
+ })), l && (d && t ? /* @__PURE__ */ E.createElement("div", {
4808
4808
  className: "PhoneInputCountryIconUnicode"
4809
- }, ku(t)) : /* @__PURE__ */ S.createElement(i, {
4809
+ }, ku(t)) : /* @__PURE__ */ E.createElement(i, {
4810
4810
  "aria-hidden": !0,
4811
4811
  country: t,
4812
4812
  label: l.label,
4813
4813
  aspectRatio: d ? 1 : void 0
4814
- })), /* @__PURE__ */ S.createElement(o, null));
4814
+ })), /* @__PURE__ */ E.createElement(o, null));
4815
4815
  }
4816
4816
  Mr.propTypes = {
4817
4817
  // Country flag component.
@@ -4822,7 +4822,7 @@ Mr.propTypes = {
4822
4822
  unicodeFlags: p.bool
4823
4823
  };
4824
4824
  function Ku() {
4825
- return /* @__PURE__ */ S.createElement("div", {
4825
+ return /* @__PURE__ */ E.createElement("div", {
4826
4826
  className: "PhoneInputCountrySelectArrow"
4827
4827
  });
4828
4828
  }
@@ -4868,7 +4868,7 @@ function Ut(e) {
4868
4868
  var t = e.country, n = e.countryName, r = e.flags, i = e.flagUrl, a = Zu(e, qu);
4869
4869
  return r && r[t] ? r[t]({
4870
4870
  title: n
4871
- }) : /* @__PURE__ */ S.createElement("img", _t({}, a, {
4871
+ }) : /* @__PURE__ */ E.createElement("img", _t({}, a, {
4872
4872
  alt: n,
4873
4873
  role: n ? void 0 : "presentation",
4874
4874
  src: i.replace("{XX}", t).replace("{xx}", t.toLowerCase())
@@ -4922,7 +4922,7 @@ function el(e, t) {
4922
4922
  }
4923
4923
  function nt(e) {
4924
4924
  var t = e.aspectRatio, n = Wt(e, Ju);
4925
- return t === 1 ? /* @__PURE__ */ S.createElement(jr, n) : /* @__PURE__ */ S.createElement(Lr, n);
4925
+ return t === 1 ? /* @__PURE__ */ E.createElement(jr, n) : /* @__PURE__ */ E.createElement(Lr, n);
4926
4926
  }
4927
4927
  nt.propTypes = {
4928
4928
  title: p.string.isRequired,
@@ -4930,37 +4930,37 @@ nt.propTypes = {
4930
4930
  };
4931
4931
  function Lr(e) {
4932
4932
  var t = e.title, n = Wt(e, zu);
4933
- return /* @__PURE__ */ S.createElement("svg", Xe({}, n, {
4933
+ return /* @__PURE__ */ E.createElement("svg", Xe({}, n, {
4934
4934
  xmlns: "http://www.w3.org/2000/svg",
4935
4935
  viewBox: "0 0 75 50"
4936
- }), /* @__PURE__ */ S.createElement("title", null, t), /* @__PURE__ */ S.createElement("g", {
4936
+ }), /* @__PURE__ */ E.createElement("title", null, t), /* @__PURE__ */ E.createElement("g", {
4937
4937
  className: "PhoneInputInternationalIconGlobe",
4938
4938
  stroke: "currentColor",
4939
4939
  fill: "none",
4940
4940
  strokeWidth: "2",
4941
4941
  strokeMiterlimit: "10"
4942
- }, /* @__PURE__ */ S.createElement("path", {
4942
+ }, /* @__PURE__ */ E.createElement("path", {
4943
4943
  strokeLinecap: "round",
4944
4944
  d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
4945
- }), /* @__PURE__ */ S.createElement("path", {
4945
+ }), /* @__PURE__ */ E.createElement("path", {
4946
4946
  d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
4947
- }), /* @__PURE__ */ S.createElement("line", {
4947
+ }), /* @__PURE__ */ E.createElement("line", {
4948
4948
  x1: "26",
4949
4949
  y1: "25",
4950
4950
  x2: "74",
4951
4951
  y2: "25"
4952
- }), /* @__PURE__ */ S.createElement("line", {
4952
+ }), /* @__PURE__ */ E.createElement("line", {
4953
4953
  x1: "50",
4954
4954
  y1: "1",
4955
4955
  x2: "50",
4956
4956
  y2: "49"
4957
- }), /* @__PURE__ */ S.createElement("path", {
4957
+ }), /* @__PURE__ */ E.createElement("path", {
4958
4958
  strokeLinecap: "round",
4959
4959
  d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
4960
- }), /* @__PURE__ */ S.createElement("path", {
4960
+ }), /* @__PURE__ */ E.createElement("path", {
4961
4961
  strokeLinecap: "round",
4962
4962
  d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
4963
- })), /* @__PURE__ */ S.createElement("path", {
4963
+ })), /* @__PURE__ */ E.createElement("path", {
4964
4964
  className: "PhoneInputInternationalIconPhone",
4965
4965
  stroke: "none",
4966
4966
  fill: "currentColor",
@@ -4972,34 +4972,34 @@ Lr.propTypes = {
4972
4972
  };
4973
4973
  function jr(e) {
4974
4974
  var t = e.title, n = Wt(e, Qu);
4975
- return /* @__PURE__ */ S.createElement("svg", Xe({}, n, {
4975
+ return /* @__PURE__ */ E.createElement("svg", Xe({}, n, {
4976
4976
  xmlns: "http://www.w3.org/2000/svg",
4977
4977
  viewBox: "0 0 50 50"
4978
- }), /* @__PURE__ */ S.createElement("title", null, t), /* @__PURE__ */ S.createElement("g", {
4978
+ }), /* @__PURE__ */ E.createElement("title", null, t), /* @__PURE__ */ E.createElement("g", {
4979
4979
  className: "PhoneInputInternationalIconGlobe",
4980
4980
  stroke: "currentColor",
4981
4981
  fill: "none",
4982
4982
  strokeWidth: "2",
4983
4983
  strokeLinecap: "round"
4984
- }, /* @__PURE__ */ S.createElement("path", {
4984
+ }, /* @__PURE__ */ E.createElement("path", {
4985
4985
  d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
4986
- }), /* @__PURE__ */ S.createElement("path", {
4986
+ }), /* @__PURE__ */ E.createElement("path", {
4987
4987
  d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
4988
- }), /* @__PURE__ */ S.createElement("path", {
4988
+ }), /* @__PURE__ */ E.createElement("path", {
4989
4989
  d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
4990
- }), /* @__PURE__ */ S.createElement("path", {
4990
+ }), /* @__PURE__ */ E.createElement("path", {
4991
4991
  d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
4992
- }), /* @__PURE__ */ S.createElement("line", {
4992
+ }), /* @__PURE__ */ E.createElement("line", {
4993
4993
  x1: "27.8",
4994
4994
  y1: "0.85",
4995
4995
  x2: "27.8",
4996
4996
  y2: "34.61"
4997
- }), /* @__PURE__ */ S.createElement("line", {
4997
+ }), /* @__PURE__ */ E.createElement("line", {
4998
4998
  x1: "15.2",
4999
4999
  y1: "22.23",
5000
5000
  x2: "49.15",
5001
5001
  y2: "22.23"
5002
- })), /* @__PURE__ */ S.createElement("path", {
5002
+ })), /* @__PURE__ */ E.createElement("path", {
5003
5003
  className: "PhoneInputInternationalIconPhone",
5004
5004
  stroke: "transparent",
5005
5005
  fill: "currentColor",
@@ -5125,18 +5125,18 @@ function Br(e) {
5125
5125
  var t = e.flags, n = e.flagUrl, r = e.flagComponent, i = e.internationalIcon;
5126
5126
  function a(o) {
5127
5127
  var d = o.country, u = o.label, l = o.aspectRatio, s = dl(o, ol), f = i === nt ? l : void 0;
5128
- return /* @__PURE__ */ S.createElement("div", wt({}, s, {
5128
+ return /* @__PURE__ */ E.createElement("div", wt({}, s, {
5129
5129
  className: Ve("PhoneInputCountryIcon", {
5130
5130
  "PhoneInputCountryIcon--square": f === 1,
5131
5131
  "PhoneInputCountryIcon--border": d
5132
5132
  })
5133
- }), d ? /* @__PURE__ */ S.createElement(r, {
5133
+ }), d ? /* @__PURE__ */ E.createElement(r, {
5134
5134
  country: d,
5135
5135
  countryName: u,
5136
5136
  flags: t,
5137
5137
  flagUrl: n,
5138
5138
  className: "PhoneInputCountryIconImg"
5139
- }) : /* @__PURE__ */ S.createElement(i, {
5139
+ }) : /* @__PURE__ */ E.createElement(i, {
5140
5140
  title: u,
5141
5141
  aspectRatio: f,
5142
5142
  className: "PhoneInputCountryIconImg"
@@ -5447,7 +5447,7 @@ function Ol(e, t, n) {
5447
5447
  hasUserSelectedACountry: void 0
5448
5448
  };
5449
5449
  if (a !== f) {
5450
- var T = !a || rt(a, r), E = (
5450
+ var O = !a || rt(a, r), S = (
5451
5451
  // By default, "no value has been entered" means `value` is `undefined`.
5452
5452
  !g || // When `international` is `true`, and some country has been pre-selected,
5453
5453
  // then the `<input/>` contains a pre-filled value of `+${countryCallingCode}${leadingDigits}`,
@@ -5457,8 +5457,8 @@ function Ol(e, t, n) {
5457
5457
  value: void 0,
5458
5458
  defaultCountry: f
5459
5459
  })
5460
- ), A = !o && E;
5461
- if (!v && T && A)
5460
+ ), I = !o && S;
5461
+ if (!v && O && I)
5462
5462
  return {
5463
5463
  country: a,
5464
5464
  // If `phoneDigits` is empty, then automatically select the new `country`
@@ -5475,13 +5475,13 @@ function Ol(e, t, n) {
5475
5475
  };
5476
5476
  }
5477
5477
  if (!tr(o, c) && !tr(o, g)) {
5478
- var m, b;
5478
+ var h, b;
5479
5479
  if (o) {
5480
- o && kr(o), m = Hr(o, r);
5481
- var I = Gr(i, r);
5482
- m && m.country ? (!I || I.indexOf(m.country) >= 0) && (b = m.country) : (b = Vr(o, {
5480
+ o && kr(o), h = Hr(o, r);
5481
+ var A = Gr(i, r);
5482
+ h && h.country ? (!A || A.indexOf(h.country) >= 0) && (b = h.country) : (b = Vr(o, {
5483
5483
  country: void 0,
5484
- countries: I,
5484
+ countries: A,
5485
5485
  metadata: r
5486
5486
  }), b || a && o.indexOf(ie(a, r)) === 0 && (b = a));
5487
5487
  }
@@ -5500,7 +5500,7 @@ function Ol(e, t, n) {
5500
5500
  };
5501
5501
  return Ge(Ge({}, F), {}, {
5502
5502
  phoneDigits: P({
5503
- phoneNumber: m,
5503
+ phoneNumber: h,
5504
5504
  value: o,
5505
5505
  defaultCountry: a
5506
5506
  }),
@@ -5648,29 +5648,29 @@ var Ll = /* @__PURE__ */ (function(e) {
5648
5648
  var P = r.props.metadata;
5649
5649
  return rt(y, P);
5650
5650
  }), z(r, "onCountryChange", function(y) {
5651
- var P = r.props, T = P.international, E = P.metadata, A = P.onChange, m = P.focusInputOnCountrySelection, b = r.state, I = b.phoneDigits, F = b.country, G = hl(I, {
5651
+ var P = r.props, O = P.international, S = P.metadata, I = P.onChange, h = P.focusInputOnCountrySelection, b = r.state, A = b.phoneDigits, F = b.country, G = hl(A, {
5652
5652
  prevCountry: F,
5653
5653
  newCountry: y,
5654
- metadata: E,
5654
+ metadata: S,
5655
5655
  // Convert the phone number to "national" format
5656
5656
  // when the user changes the selected country by hand.
5657
- useNationalFormat: !T
5658
- }), U = he(G, y, E);
5659
- m && r.inputRef.current.focus(), r.setState({
5657
+ useNationalFormat: !O
5658
+ }), U = he(G, y, S);
5659
+ h && r.inputRef.current.focus(), r.setState({
5660
5660
  country: y,
5661
5661
  latestCountrySelectedByUser: y,
5662
5662
  hasUserSelectedACountry: !0,
5663
5663
  phoneDigits: G,
5664
5664
  value: U
5665
5665
  }, function() {
5666
- A(U);
5666
+ I(U);
5667
5667
  });
5668
5668
  }), z(r, "onChange", function(y) {
5669
- var P = r.props, T = P.defaultCountry, E = P.onChange, A = P.addInternationalOption, m = P.international, b = P.limitMaxLength, I = P.countryCallingCodeEditable, F = P.metadata, G = r.state, U = G.countries, W = G.phoneDigits, K = G.country, q = G.latestCountrySelectedByUser, te = vl(y, {
5669
+ var P = r.props, O = P.defaultCountry, S = P.onChange, I = P.addInternationalOption, h = P.international, b = P.limitMaxLength, A = P.countryCallingCodeEditable, F = P.metadata, G = r.state, U = G.countries, W = G.phoneDigits, K = G.country, q = G.latestCountrySelectedByUser, te = vl(y, {
5670
5670
  prevPhoneDigits: W,
5671
5671
  country: K,
5672
- countryRequired: !A,
5673
- defaultCountry: T,
5672
+ countryRequired: !I,
5673
+ defaultCountry: O,
5674
5674
  latestCountrySelectedByUser: q,
5675
5675
  getAnyCountry: function() {
5676
5676
  return r.getFirstSupportedCountry({
@@ -5678,23 +5678,23 @@ var Ll = /* @__PURE__ */ (function(e) {
5678
5678
  });
5679
5679
  },
5680
5680
  countries: U,
5681
- international: m,
5681
+ international: h,
5682
5682
  limitMaxLength: b,
5683
- countryCallingCodeEditable: I,
5683
+ countryCallingCodeEditable: A,
5684
5684
  metadata: F
5685
5685
  }), $e = te.phoneDigits, J = te.country, X = te.value, oe = {
5686
5686
  phoneDigits: $e,
5687
5687
  value: X,
5688
5688
  country: J
5689
5689
  };
5690
- q && X && !me(X, q, F) && (oe.latestCountrySelectedByUser = void 0), I === !1 && !X && $e === r.state.phoneDigits && (oe.forceRerender = {}), r.setState(
5690
+ q && X && !me(X, q, F) && (oe.latestCountrySelectedByUser = void 0), A === !1 && !X && $e === r.state.phoneDigits && (oe.forceRerender = {}), r.setState(
5691
5691
  oe,
5692
5692
  // Update the new `value` property.
5693
5693
  // Doing it after the `state` has been updated
5694
5694
  // because `onChange()` will trigger `getDerivedStateFromProps()`
5695
5695
  // with the new `value` which will be compared to `state.value` there.
5696
5696
  function() {
5697
- return E(X);
5697
+ return S(X);
5698
5698
  }
5699
5699
  );
5700
5700
  }), z(r, "_onFocus", function() {
@@ -5716,17 +5716,17 @@ var Ll = /* @__PURE__ */ (function(e) {
5716
5716
  r._onFocus();
5717
5717
  var P = r.props.countrySelectProps;
5718
5718
  if (P) {
5719
- var T = P.onFocus;
5720
- T && T(y);
5719
+ var O = P.onFocus;
5720
+ O && O(y);
5721
5721
  }
5722
5722
  }), z(r, "onCountryBlur", function(y) {
5723
5723
  r._onBlur();
5724
5724
  var P = r.props.countrySelectProps;
5725
5725
  if (P) {
5726
- var T = P.onBlur;
5727
- T && T(y);
5726
+ var O = P.onBlur;
5727
+ O && O(y);
5728
5728
  }
5729
- }), r.inputRef = /* @__PURE__ */ S.createRef();
5729
+ }), r.inputRef = /* @__PURE__ */ E.createRef();
5730
5730
  var i = r.props, a = i.value;
5731
5731
  i.labels;
5732
5732
  var o = i.international, d = i.addInternationalOption, u = i.displayInitialValueAsLocalNumber, l = i.initialValueFormat, s = i.metadata, f = r.props, c = f.defaultCountry, $ = f.countries;
@@ -5834,19 +5834,19 @@ var Ll = /* @__PURE__ */ (function(e) {
5834
5834
  r.defaultCountry, r.countries, r.countryOptionsOrder;
5835
5835
  var P = r.labels;
5836
5836
  r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
5837
- var T = r.metadata, E = r.international;
5837
+ var O = r.metadata, S = r.international;
5838
5838
  r.locales;
5839
- var A = Il(r, Tl), m = this.state, b = m.country, I = m.countries, F = m.phoneDigits, G = m.isFocused, U = c ? xu : ju, W = this.getCountrySelectOptions({
5840
- countries: I
5839
+ var I = Il(r, Tl), h = this.state, b = h.country, A = h.countries, F = h.phoneDigits, G = h.isFocused, U = c ? xu : ju, W = this.getCountrySelectOptions({
5840
+ countries: A
5841
5841
  });
5842
- return /* @__PURE__ */ S.createElement(v, ge({
5842
+ return /* @__PURE__ */ E.createElement(v, ge({
5843
5843
  style: u,
5844
5844
  className: Ve(l, "PhoneInput", {
5845
5845
  "PhoneInput--focus": G,
5846
5846
  "PhoneInput--disabled": a,
5847
5847
  "PhoneInput--readOnly": o
5848
5848
  })
5849
- }, y), /* @__PURE__ */ S.createElement($, ge({
5849
+ }, y), /* @__PURE__ */ E.createElement($, ge({
5850
5850
  name: i ? "".concat(i, "Country") : void 0,
5851
5851
  "aria-label": P.country
5852
5852
  }, g, {
@@ -5858,16 +5858,16 @@ var Ll = /* @__PURE__ */ (function(e) {
5858
5858
  disabled: a || g && g.disabled,
5859
5859
  readOnly: o || g && g.readOnly,
5860
5860
  iconComponent: this.CountryIcon
5861
- })), /* @__PURE__ */ S.createElement(U, ge({
5861
+ })), /* @__PURE__ */ E.createElement(U, ge({
5862
5862
  ref: this.setInputRef,
5863
5863
  type: "tel",
5864
5864
  autoComplete: d
5865
- }, f, A, {
5866
- inputFormat: E === !0 ? "INTERNATIONAL" : E === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
5867
- international: E ? !0 : void 0,
5868
- withCountryCallingCode: E ? !0 : void 0,
5865
+ }, f, I, {
5866
+ inputFormat: S === !0 ? "INTERNATIONAL" : S === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
5867
+ international: S ? !0 : void 0,
5868
+ withCountryCallingCode: S ? !0 : void 0,
5869
5869
  name: i,
5870
- metadata: T,
5870
+ metadata: O,
5871
5871
  country: b,
5872
5872
  value: F || "",
5873
5873
  onChange: this.onChange,
@@ -5876,7 +5876,7 @@ var Ll = /* @__PURE__ */ (function(e) {
5876
5876
  disabled: a,
5877
5877
  readOnly: o,
5878
5878
  inputComponent: s,
5879
- className: Ve("PhoneInputInput", f && f.className, A.className)
5879
+ className: Ve("PhoneInputInput", f && f.className, I.className)
5880
5880
  })));
5881
5881
  }
5882
5882
  }], [{
@@ -5895,8 +5895,8 @@ var Ll = /* @__PURE__ */ (function(e) {
5895
5895
  }
5896
5896
  )
5897
5897
  }]);
5898
- })(S.PureComponent), Jr = /* @__PURE__ */ S.forwardRef(function(e, t) {
5899
- return /* @__PURE__ */ S.createElement(Ll, ge({}, jl(e), {
5898
+ })(E.PureComponent), Jr = /* @__PURE__ */ E.forwardRef(function(e, t) {
5899
+ return /* @__PURE__ */ E.createElement(Ll, ge({}, jl(e), {
5900
5900
  inputRef: t
5901
5901
  }));
5902
5902
  });
@@ -6612,9 +6612,9 @@ function Wl(e, t) {
6612
6612
  return n;
6613
6613
  }
6614
6614
  function zr(e) {
6615
- var t = /* @__PURE__ */ S.forwardRef(function(n, r) {
6615
+ var t = /* @__PURE__ */ E.forwardRef(function(n, r) {
6616
6616
  var i = n.metadata, a = i === void 0 ? e : i, o = n.labels, d = o === void 0 ? Gl : o, u = Ul(n, Bl);
6617
- return /* @__PURE__ */ S.createElement(Jr, xt({}, u, {
6617
+ return /* @__PURE__ */ E.createElement(Jr, xt({}, u, {
6618
6618
  ref: r,
6619
6619
  metadata: a,
6620
6620
  labels: d
@@ -6911,13 +6911,13 @@ function e1({
6911
6911
  if (c === "phone" && $) {
6912
6912
  const v = Vl($)?.country;
6913
6913
  if ((v && v !== "IN" ? "FOREIGN" : "INDIAN") === "FOREIGN") {
6914
- const P = $.length > 4 ? `+** ***${$.replaceAll(/\D/g, "").slice(-4)}` : "+** ***", T = l().checkIdentifier;
6915
- if (T) {
6916
- T({
6914
+ const P = $.length > 4 ? `+** ***${$.replaceAll(/\D/g, "").slice(-4)}` : "+** ***", O = l().checkIdentifier;
6915
+ if (O) {
6916
+ O({
6917
6917
  type: "phone",
6918
6918
  value: $
6919
- }).then((E) => {
6920
- if (!E.exists) {
6919
+ }).then((S) => {
6920
+ if (!S.exists) {
6921
6921
  a({
6922
6922
  type: "SET_STEP_SIGNUP_DETAILS",
6923
6923
  userType: "FOREIGN",
@@ -6932,9 +6932,9 @@ function e1({
6932
6932
  l().sendOtp({
6933
6933
  type: "phone",
6934
6934
  value: $
6935
- }).then((A) => {
6936
- if (!A.success) {
6937
- s(A.error ?? {
6935
+ }).then((I) => {
6936
+ if (!I.success) {
6937
+ s(I.error ?? {
6938
6938
  code: "UNKNOWN"
6939
6939
  });
6940
6940
  return;
@@ -6944,7 +6944,7 @@ function e1({
6944
6944
  userType: "FOREIGN",
6945
6945
  identifierType: "phone",
6946
6946
  value: $,
6947
- maskedValue: A.maskedValue ?? P
6947
+ maskedValue: I.maskedValue ?? P
6948
6948
  });
6949
6949
  }).catch(() => s({
6950
6950
  code: "NETWORK_ERROR"
@@ -7098,7 +7098,7 @@ function e1({
7098
7098
  });
7099
7099
  }
7100
7100
  },
7101
- verifyOtp(f) {
7101
+ async verifyOtp(f) {
7102
7102
  const {
7103
7103
  identifierType: c,
7104
7104
  identifierValue: $,
@@ -7107,38 +7107,42 @@ function e1({
7107
7107
  pendingEmail: y,
7108
7108
  pendingPhone: P
7109
7109
  } = i;
7110
- l().verifyOtp({
7111
- type: c,
7112
- value: $,
7113
- otp: f
7114
- }).then((T) => {
7115
- if (T.session) {
7116
- o(T.session), a({
7110
+ try {
7111
+ const O = await l().verifyOtp({
7112
+ type: c,
7113
+ value: $,
7114
+ otp: f
7115
+ });
7116
+ if (O.session) {
7117
+ o(O.session), a({
7117
7118
  type: "SET_STEP_AUTHENTICATED",
7118
- session: T.session
7119
+ session: O.session
7119
7120
  });
7120
7121
  return;
7121
7122
  }
7122
- if (T.isNewUser) {
7123
+ if (O.isNewUser) {
7123
7124
  if (g === "FOREIGN" && v && y) {
7124
- l().completeProfile({
7125
- fullName: v,
7126
- email: y,
7127
- ...P && {
7128
- phone: P
7129
- }
7130
- }).then((E) => {
7131
- o(E), a({
7125
+ try {
7126
+ const S = await l().completeProfile({
7127
+ fullName: v,
7128
+ email: y,
7129
+ ...P && {
7130
+ phone: P
7131
+ }
7132
+ });
7133
+ o(S), a({
7132
7134
  type: "SET_STEP_AUTHENTICATED",
7133
- session: E
7135
+ session: S
7134
7136
  });
7135
- }).catch((E) => {
7136
- const A = E?.code != null ? E : {
7137
+ } catch (S) {
7138
+ const I = S?.message, h = S?.code != null ? S : {
7137
7139
  code: "UNKNOWN",
7138
- message: E?.message
7140
+ ...I && {
7141
+ message: I
7142
+ }
7139
7143
  };
7140
- s(A);
7141
- });
7144
+ throw s(h), h;
7145
+ }
7142
7146
  return;
7143
7147
  }
7144
7148
  if (g === "FOREIGN") {
@@ -7158,9 +7162,13 @@ function e1({
7158
7162
  signupCollectField: c === "phone" ? "email" : "phone"
7159
7163
  });
7160
7164
  }
7161
- }).catch(() => s({
7162
- code: "OTP_INVALID"
7163
- }));
7165
+ } catch (O) {
7166
+ const S = O?.code != null ? O : {
7167
+ code: "OTP_INVALID",
7168
+ message: O?.message ?? "Invalid OTP"
7169
+ };
7170
+ throw s(S), S;
7171
+ }
7164
7172
  },
7165
7173
  resendOtp() {
7166
7174
  const {