@aws-amplify/ui-vue 4.2.9 → 4.2.11

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,4 +1,4 @@
1
- import { defineComponent as q, useSlots as Er, renderSlot as I, mergeProps as Ee, unref as d, createElementVNode as x, normalizeProps as oe, guardReactiveProps as ie, openBlock as U, createElementBlock as X, toRefs as re, ref as ce, createVNode as C, withCtx as _, createCommentVNode as j, effectScope as cs, getCurrentScope as ls, onScopeDispose as li, isRef as us, shallowRef as so, watch as ds, reactive as ui, watchEffect as fs, createBlock as V, normalizeClass as Ae, createTextVNode as M, toDisplayString as F, Fragment as He, renderList as An, computed as D, onBeforeMount as ps, withModifiers as ue, h as qt, onMounted as di, onUnmounted as ms } from "vue";
1
+ import { defineComponent as q, useSlots as Er, renderSlot as I, mergeProps as Ee, unref as d, createElementVNode as x, normalizeProps as oe, guardReactiveProps as ie, openBlock as U, createElementBlock as X, toRefs as re, ref as ce, createVNode as C, withCtx as _, createCommentVNode as j, effectScope as cs, getCurrentScope as us, onScopeDispose as ui, isRef as ls, shallowRef as so, watch as ds, reactive as li, watchEffect as fs, createBlock as V, normalizeClass as Ae, createTextVNode as M, toDisplayString as F, Fragment as He, renderList as An, computed as D, onBeforeMount as ps, withModifiers as le, h as qt, onMounted as di, onUnmounted as ms } from "vue";
2
2
  import { Hub as gs, I18n as hs, ConsoleLogger as ys } from "aws-amplify/utils";
3
3
  import { getCurrentUser as fi, signIn as vs, signUp as _s, confirmSignIn as pi, confirmSignUp as ws, confirmResetPassword as Ss, resetPassword as mi, fetchUserAttributes as gi, resendSignUpCode as hi, signInWithRedirect as yi, autoSignIn as bs, signOut as Cs, sendUserAttributeVerificationCode as As, confirmUserAttribute as Es } from "aws-amplify/auth";
4
4
  import { AuthAction as Ce, Category as gt, InAppMessagingAction as Is, GeoAction as Qn, StorageAction as Ts, setCustomUserAgent as rt } from "@aws-amplify/core/internals/utils";
@@ -38,7 +38,7 @@ function Ns(e, t) {
38
38
  I(e.$slots, "default")
39
39
  ]);
40
40
  }
41
- const me = /* @__PURE__ */ En(ks, [["render", Ns]]), Us = ["type", "data-fullwidth", "data-size", "data-fontWeight", "data-variation", "data-loading", "data-disabled", "disabled"], _e = /* @__PURE__ */ q({
41
+ const me = /* @__PURE__ */ En(ks, [["render", Ns]]), Us = ["type", "data-fullwidth", "data-size", "data-fontWeight", "data-variation", "data-loading", "data-disabled", "disabled"], we = /* @__PURE__ */ q({
42
42
  __name: "amplify-button",
43
43
  props: {
44
44
  type: null,
@@ -581,7 +581,7 @@ const wi = ({ payload: e }, t, n) => {
581
581
  };
582
582
  }, Ks = (e) => {
583
583
  var g, w;
584
- const t = Tr(e) ?? {}, { challengeName: n, codeDeliveryDetails: r, remoteError: o, validationError: i, totpSecretCode: a = null, unverifiedUserAttributes: s, username: c } = t, { socialProviders: l = [] } = ((g = e.context) == null ? void 0 : g.config) ?? {}, u = (t == null ? void 0 : t.user) ?? ((w = e.context) == null ? void 0 : w.user), m = !!(i && Object.keys(i).length > 0), f = Ir(e), p = e.hasTag("pending") || (f == null ? void 0 : f.hasTag("pending")), h = Hs(e, f);
584
+ const t = Tr(e) ?? {}, { challengeName: n, codeDeliveryDetails: r, remoteError: o, validationError: i, totpSecretCode: a = null, unverifiedUserAttributes: s, username: c } = t, { socialProviders: u = [] } = ((g = e.context) == null ? void 0 : g.config) ?? {}, l = (t == null ? void 0 : t.user) ?? ((w = e.context) == null ? void 0 : w.user), m = !!(i && Object.keys(i).length > 0), f = Ir(e), p = e.hasTag("pending") || (f == null ? void 0 : f.hasTag("pending")), h = Hs(e, f);
585
585
  return {
586
586
  authStatus: ((y) => {
587
587
  switch (y) {
@@ -600,10 +600,10 @@ const wi = ({ payload: e }, t, n) => {
600
600
  hasValidationErrors: m,
601
601
  isPending: p,
602
602
  route: h,
603
- socialProviders: l,
603
+ socialProviders: u,
604
604
  totpSecretCode: a,
605
605
  unverifiedUserAttributes: s,
606
- user: u,
606
+ user: l,
607
607
  username: c,
608
608
  validationErrors: i
609
609
  // @v6-migration-note
@@ -625,10 +625,10 @@ var cr;
625
625
  (function(e) {
626
626
  e.Apple = "Apple", e.Amazon = "Amazon", e.Facebook = "Facebook", e.Google = "Google";
627
627
  })(cr || (cr = {}));
628
- var lo;
628
+ var uo;
629
629
  (function(e) {
630
630
  e.Email = "email", e.PhoneNumber = "phone_number";
631
- })(lo || (lo = {}));
631
+ })(uo || (uo = {}));
632
632
  const Js = [
633
633
  "birthdate",
634
634
  "email",
@@ -773,7 +773,7 @@ const cc = {
773
773
  "User already exists": "Dieser Benutzer existiert bereits",
774
774
  "User does not exist": "Dieser Benutzer existiert nicht",
775
775
  "Username cannot be empty": "Benutzername darf nicht leer sein"
776
- }, lc = {
776
+ }, uc = {
777
777
  "Account recovery requires verified contact information": "Account recovery requires verified contact information",
778
778
  "Add your Profile": "Add your Profile",
779
779
  "Add your Website": "Add your Website",
@@ -845,7 +845,7 @@ const cc = {
845
845
  "Your code is on the way. To log in, enter the code we emailed to": "Your code is on the way. To log in, enter the code we emailed to",
846
846
  "Your code is on the way. To log in, enter the code we sent you": "Your code is on the way. To log in, enter the code we sent you",
847
847
  "Your code is on the way. To log in, enter the code we texted to": "Your code is on the way. To log in, enter the code we texted to"
848
- }, uc = {
848
+ }, lc = {
849
849
  "Account recovery requires verified contact information": "La recuperación de la cuenta requiere información de contacto verificada",
850
850
  "Back to Sign In": "Volver a inicio de sesión",
851
851
  "Change Password": "Cambiar contraseña",
@@ -1139,7 +1139,7 @@ const cc = {
1139
1139
  "Enter your Username": "ユーザー名を入力 ",
1140
1140
  "Forgot your password?": "パスワードを忘れましたか? ",
1141
1141
  "Hide password": "パスワードを非表示",
1142
- "It may take a minute to arrive": "到着するまでに 1 分かかることがあります。",
1142
+ "It may take a minute to arrive": "到着するまでに 1 分かかることがあります",
1143
1143
  Loading: "ロード中",
1144
1144
  "New password": "新しいパスワード",
1145
1145
  or: "又は",
@@ -1169,7 +1169,7 @@ const cc = {
1169
1169
  Verify: "確認",
1170
1170
  "We Sent A Code": "コードが送信されました",
1171
1171
  "We Texted You": "テキストが送信されました",
1172
- "Your code is on the way. To log in, enter the code we sent you": "コードが途中です。ログインするには、送信したコードを入力してください。",
1172
+ "Your code is on the way. To log in, enter the code we sent you": "コードが途中です。ログインするには、送信したコードを入力してください",
1173
1173
  // Additional translations provided by customers
1174
1174
  "An account with the given email already exists.": "入力されたメールアドレスのアカウントが既に存在します",
1175
1175
  "Confirm a Code": "コードを確認",
@@ -1217,10 +1217,19 @@ const cc = {
1217
1217
  "Creating Account": "회원가입중",
1218
1218
  "Dismiss alert": "알림 무시",
1219
1219
  Email: "이메일",
1220
+ "Enter your Birthdate": "생년월일 입력",
1220
1221
  "Enter your code": "인증번호를 입력해주세요",
1222
+ "Enter your Confirmation Code": "확인 코드 입력",
1221
1223
  "Enter your Email": "이메일 입력",
1224
+ "Enter your Family Name": "성 입력",
1225
+ "Enter your Given Name": "사용장 이름 입력",
1226
+ "Enter your Name": "이름 입력",
1227
+ "Enter your Nickname": "닉네임 입력",
1228
+ "Enter your Password": "비밀번호 입력",
1222
1229
  "Enter your phone number": "전화번호 입력",
1230
+ "Enter your Preferred Username": "선호하는 아이디 입력",
1223
1231
  "Enter your username": "아이디를 입력해주세요",
1232
+ "Forgot password?": "비밀번호를 잊으셨나요?",
1224
1233
  "Hide password": "비밀번호 숨기기",
1225
1234
  "It may take a minute to arrive": "도착하는 데 1분 정도 걸릴 수 있습니다",
1226
1235
  Loading: "로딩중",
@@ -1228,6 +1237,7 @@ const cc = {
1228
1237
  or: "또는",
1229
1238
  Password: "비밀번호",
1230
1239
  "Phone Number": "전화번호",
1240
+ "Please confirm your Password": "비밀번호를 확인해 주세요.",
1231
1241
  "Resend Code": "인증번호 재전송",
1232
1242
  "Reset your password": "비밀번호 재설정",
1233
1243
  "Reset your Password": "비밀번호 재설정",
@@ -2192,8 +2202,8 @@ const cc = {
2192
2202
  WE_TEXTED: "We Texted You",
2193
2203
  WEBSITE: "Website"
2194
2204
  }, Tc = { ...cc }, Pc = {
2195
- ...lc
2196
- }, kc = { ...uc }, Nc = { ...dc }, Uc = { ...fc }, $c = { ...pc }, uo = { ...mc }, Oc = { ...gc }, Rc = { ...hc }, Fc = { ...yc }, xc = { ...vc }, Mc = { ..._c }, Dc = { ...wc }, Bc = { ...Sc }, Lc = { ...bc }, Gc = { ...Cc }, zc = { ...Ac }, Vc = { ...Ec }, Wc = {
2205
+ ...uc
2206
+ }, kc = { ...lc }, Nc = { ...dc }, Uc = { ...fc }, $c = { ...pc }, lo = { ...mc }, Oc = { ...gc }, Rc = { ...hc }, Fc = { ...yc }, xc = { ...vc }, Mc = { ..._c }, Dc = { ...wc }, Bc = { ...Sc }, Lc = { ...bc }, Gc = { ...Cc }, zc = { ...Ac }, Vc = { ...Ec }, Wc = {
2197
2207
  ...Ic
2198
2208
  // new module related default texts goes here
2199
2209
  }, z = { ...Wc };
@@ -2209,8 +2219,8 @@ const LC = {
2209
2219
  it: Uc,
2210
2220
  ja: $c,
2211
2221
  // TODO: remove kr in next major release
2212
- kr: uo,
2213
- ko: uo,
2222
+ kr: lo,
2223
+ ko: lo,
2214
2224
  nb: Oc,
2215
2225
  nl: Rc,
2216
2226
  pl: Fc,
@@ -2310,7 +2320,7 @@ const LC = {
2310
2320
  for (const i of r)
2311
2321
  bi(i) ? o[i] = { ...Ye(i) } : console.debug(`Authenticator does not have a default implementation for ${i}. Customize ForceNewPassword FormFields to add your own.`);
2312
2322
  return o;
2313
- }, el = {
2323
+ }, eu = {
2314
2324
  signIn: Kc,
2315
2325
  signUp: qc,
2316
2326
  confirmSignUp: Jc,
@@ -2320,32 +2330,32 @@ const LC = {
2320
2330
  confirmResetPassword: Qc,
2321
2331
  confirmVerifyUser: sn,
2322
2332
  setupTotp: sn
2323
- }, tl = (e, t) => {
2324
- const n = el[e];
2333
+ }, tu = (e, t) => {
2334
+ const n = eu[e];
2325
2335
  return n(t);
2326
- }, nl = (e, t) => {
2336
+ }, nu = (e, t) => {
2327
2337
  var r, o;
2328
2338
  const n = (o = (r = Tr(t)) == null ? void 0 : r.formFields) == null ? void 0 : o[e];
2329
2339
  return !n || Object.keys(n).length === 0 ? {} : Object.entries(n).reduce((i, [a, s]) => {
2330
2340
  if ((e === "signIn" || e === "forgotPassword") && a === "username") {
2331
- const l = { ...In(t), ...s };
2332
- return { ...i, [a]: l };
2341
+ const u = { ...In(t), ...s };
2342
+ return { ...i, [a]: u };
2333
2343
  } else if (Qs(a)) {
2334
- const l = { ...Bt[a], ...s };
2335
- return { ...i, [a]: l };
2344
+ const u = { ...Bt[a], ...s };
2345
+ return { ...i, [a]: u };
2336
2346
  } else
2337
2347
  return { ...i, [a]: s };
2338
2348
  }, {});
2339
- }, rl = (e, t) => {
2340
- const n = tl(e, t), r = nl(e, t), o = { ...n, ...r };
2349
+ }, ru = (e, t) => {
2350
+ const n = tu(e, t), r = nu(e, t), o = { ...n, ...r };
2341
2351
  return delete o.QR, jc(o);
2342
- }, ol = (e) => e.map((t) => {
2352
+ }, ou = (e) => e.map((t) => {
2343
2353
  const n = t[0], r = { ...t[1], order: void 0 };
2344
2354
  return [n, r];
2345
- }), il = (e, t) => {
2346
- const n = rl(e, t);
2347
- return ol(Hc(n));
2348
- }, al = (e) => {
2355
+ }), iu = (e, t) => {
2356
+ const n = ru(e, t);
2357
+ return ou(Hc(n));
2358
+ }, au = (e) => {
2349
2359
  switch (e) {
2350
2360
  case "SMS_MFA":
2351
2361
  return N(z.CONFIRM_SMS);
@@ -2354,18 +2364,18 @@ const LC = {
2354
2364
  default:
2355
2365
  return N(z.CONFIRM_MFA_DEFAULT);
2356
2366
  }
2357
- }, sl = (e) => {
2367
+ }, su = (e) => {
2358
2368
  const { DeliveryMedium: t, Destination: n } = e ?? {}, r = t === "EMAIL", o = t === "SMS", i = N(z.CODE_ARRIVAL);
2359
2369
  return r || o ? `${N(r ? z.CODE_EMAILED : z.CODE_TEXTED)} ${n}. ${i}.` : `${N(z.CODE_SENT)}. ${i}.`;
2360
- }, cl = (e) => {
2370
+ }, cu = (e) => {
2361
2371
  const { DeliveryMedium: t } = e ?? {}, n = t === "EMAIL";
2362
2372
  return N(!n && t === "SMS" ? z.WE_SENT_CODE : n ? z.WE_EMAILED : z.WE_TEXTED);
2363
- }, ll = {
2373
+ }, uu = {
2364
2374
  amazon: "Amazon",
2365
2375
  apple: "Apple",
2366
2376
  facebook: "Facebook",
2367
2377
  google: "Google"
2368
- }, ul = (e, t) => N(`Sign ${e === "signIn" ? "In" : "Up"} with ${ll[t]}`), Ie = {
2378
+ }, lu = (e, t) => N(`Sign ${e === "signIn" ? "In" : "Up"} with ${uu[t]}`), Ie = {
2369
2379
  /** Shared */
2370
2380
  getBackToSignInText: () => N(z.BACK_SIGN_IN),
2371
2381
  getChangePasswordText: () => N(z.CHANGE_PASSWORD),
@@ -2393,10 +2403,10 @@ const LC = {
2393
2403
  getCreatingAccountText: () => N(z.CREATING_ACCOUNT),
2394
2404
  getCreateAccountText: () => N(z.CREATE_ACCOUNT),
2395
2405
  /** ConfirmSignUp */
2396
- getDeliveryMessageText: sl,
2397
- getDeliveryMethodText: cl,
2406
+ getDeliveryMessageText: su,
2407
+ getDeliveryMethodText: cu,
2398
2408
  /** ConfirmSignIn */
2399
- getChallengeText: al,
2409
+ getChallengeText: au,
2400
2410
  /** ForgotPassword */
2401
2411
  getResetYourPasswordText: () => N(z.RESET_PASSWORD),
2402
2412
  /** SetupTotp */
@@ -2406,7 +2416,7 @@ const LC = {
2406
2416
  // TODO: add defaultText for "COPIED"
2407
2417
  getCopiedText: () => N("COPIED"),
2408
2418
  /** FederatedSignIn */
2409
- getSignInWithFederationText: ul,
2419
+ getSignInWithFederationText: lu,
2410
2420
  /** VerifyUser */
2411
2421
  getSkipText: () => N(z.SKIP),
2412
2422
  getVerifyText: () => N(z.VERIFY),
@@ -2497,17 +2507,17 @@ var Ke;
2497
2507
  (function(e) {
2498
2508
  e.Parent = "#_parent", e.Internal = "#_internal";
2499
2509
  })(Ke || (Ke = {}));
2500
- var dn = Z.Start, Tn = Z.Stop, ht = Z.Raise, Vt = Z.Send, Nr = Z.Cancel, Ci = Z.NullEvent, Pn = Z.Assign, dl = Z.After, fl = Z.DoneState, kn = Z.Log, Ai = Z.Init, fn = Z.Invoke, pl = Z.ErrorExecution, lr = Z.ErrorPlatform, Ur = Z.ErrorCustom, Nn = Z.Update, Ei = Z.Choose, Ii = Z.Pure;
2501
- const ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2510
+ var dn = Z.Start, Tn = Z.Stop, ht = Z.Raise, Vt = Z.Send, Nr = Z.Cancel, Ci = Z.NullEvent, Pn = Z.Assign, du = Z.After, fu = Z.DoneState, kn = Z.Log, Ai = Z.Init, fn = Z.Invoke, pu = Z.ErrorExecution, ur = Z.ErrorPlatform, Ur = Z.ErrorCustom, Nn = Z.Update, Ei = Z.Choose, Ii = Z.Pure;
2511
+ const mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2502
2512
  __proto__: null,
2503
- after: dl,
2513
+ after: du,
2504
2514
  assign: Pn,
2505
2515
  cancel: Nr,
2506
2516
  choose: Ei,
2507
- doneState: fl,
2517
+ doneState: fu,
2508
2518
  error: Ur,
2509
- errorExecution: pl,
2510
- errorPlatform: lr,
2519
+ errorExecution: pu,
2520
+ errorPlatform: ur,
2511
2521
  init: Ai,
2512
2522
  invoke: fn,
2513
2523
  log: kn,
@@ -2519,7 +2529,7 @@ const ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2519
2529
  stop: Tn,
2520
2530
  update: Nn
2521
2531
  }, Symbol.toStringTag, { value: "Module" }));
2522
- var Ti = ".", fo = {}, ur = "xstate.guard", gl = "", ne = process.env.NODE_ENV === "production", Jt;
2532
+ var Ti = ".", fo = {}, lr = "xstate.guard", gu = "", ne = process.env.NODE_ENV === "production", Jt;
2523
2533
  function $r(e, t, n) {
2524
2534
  n === void 0 && (n = Ti);
2525
2535
  var r = Ft(e, n), o = Ft(t, n);
@@ -2541,11 +2551,11 @@ function dr(e, t) {
2541
2551
  throw new Error("'".concat(e, "' is not a valid state path."));
2542
2552
  }
2543
2553
  }
2544
- function hl(e) {
2554
+ function hu(e) {
2545
2555
  return typeof e == "object" && "value" in e && "context" in e && "event" in e && "_event" in e;
2546
2556
  }
2547
2557
  function Ft(e, t) {
2548
- if (hl(e))
2558
+ if (hu(e))
2549
2559
  return e.value;
2550
2560
  if (yt(e))
2551
2561
  return pn(e);
@@ -2572,12 +2582,12 @@ function po(e, t, n) {
2572
2582
  var r, o, i = {};
2573
2583
  try {
2574
2584
  for (var a = W(Object.keys(e)), s = a.next(); !s.done; s = a.next()) {
2575
- var c = s.value, l = e[c];
2576
- n(l) && (i[c] = t(l, c, e));
2585
+ var c = s.value, u = e[c];
2586
+ n(u) && (i[c] = t(u, c, e));
2577
2587
  }
2578
- } catch (u) {
2588
+ } catch (l) {
2579
2589
  r = {
2580
- error: u
2590
+ error: l
2581
2591
  };
2582
2592
  } finally {
2583
2593
  try {
@@ -2589,7 +2599,7 @@ function po(e, t, n) {
2589
2599
  }
2590
2600
  return i;
2591
2601
  }
2592
- var yl = function(e) {
2602
+ var yu = function(e) {
2593
2603
  return function(t) {
2594
2604
  var n, r, o = t;
2595
2605
  try {
@@ -2612,7 +2622,7 @@ var yl = function(e) {
2612
2622
  return o;
2613
2623
  };
2614
2624
  };
2615
- function vl(e, t) {
2625
+ function vu(e, t) {
2616
2626
  return function(n) {
2617
2627
  var r, o, i = n;
2618
2628
  try {
@@ -2620,9 +2630,9 @@ function vl(e, t) {
2620
2630
  var c = s.value;
2621
2631
  i = i[t][c];
2622
2632
  }
2623
- } catch (l) {
2633
+ } catch (u) {
2624
2634
  r = {
2625
- error: l
2635
+ error: u
2626
2636
  };
2627
2637
  } finally {
2628
2638
  try {
@@ -2665,12 +2675,12 @@ function mn(e, t, n) {
2665
2675
  var i = {};
2666
2676
  try {
2667
2677
  for (var a = W(Object.keys(e)), s = a.next(); !s.done; s = a.next()) {
2668
- var c = s.value, l = e[c];
2669
- K(l) ? i[c] = l(t, n.data) : i[c] = l;
2678
+ var c = s.value, u = e[c];
2679
+ K(u) ? i[c] = u(t, n.data) : i[c] = u;
2670
2680
  }
2671
- } catch (u) {
2681
+ } catch (l) {
2672
2682
  r = {
2673
- error: u
2683
+ error: l
2674
2684
  };
2675
2685
  } finally {
2676
2686
  try {
@@ -2682,25 +2692,25 @@ function mn(e, t, n) {
2682
2692
  }
2683
2693
  return i;
2684
2694
  }
2685
- function _l(e) {
2695
+ function _u(e) {
2686
2696
  return /^(done|error)\./.test(e);
2687
2697
  }
2688
2698
  function mo(e) {
2689
2699
  return !!(e instanceof Promise || e !== null && (K(e) || typeof e == "object") && K(e.then));
2690
2700
  }
2691
- function wl(e) {
2701
+ function wu(e) {
2692
2702
  return e !== null && typeof e == "object" && "transition" in e && typeof e.transition == "function";
2693
2703
  }
2694
- function Sl(e, t) {
2704
+ function Su(e, t) {
2695
2705
  var n, r, o = H([[], []], 2), i = o[0], a = o[1];
2696
2706
  try {
2697
2707
  for (var s = W(e), c = s.next(); !c.done; c = s.next()) {
2698
- var l = c.value;
2699
- t(l) ? i.push(l) : a.push(l);
2708
+ var u = c.value;
2709
+ t(u) ? i.push(u) : a.push(u);
2700
2710
  }
2701
- } catch (u) {
2711
+ } catch (l) {
2702
2712
  n = {
2703
- error: u
2713
+ error: l
2704
2714
  };
2705
2715
  } finally {
2706
2716
  try {
@@ -2724,27 +2734,27 @@ function Ni(e, t) {
2724
2734
  }
2725
2735
  });
2726
2736
  }
2727
- function bl(e, t) {
2737
+ function bu(e, t) {
2728
2738
  return {
2729
2739
  current: t,
2730
2740
  states: Ni(e, t)
2731
2741
  };
2732
2742
  }
2733
2743
  function go(e, t, n, r) {
2734
- ne || le(!!e, "Attempting to update undefined context");
2744
+ ne || ue(!!e, "Attempting to update undefined context");
2735
2745
  var o = e && n.reduce(function(i, a) {
2736
- var s, c, l = a.assignment, u = {
2746
+ var s, c, u = a.assignment, l = {
2737
2747
  state: r,
2738
2748
  action: a,
2739
2749
  _event: t
2740
2750
  }, m = {};
2741
- if (K(l))
2742
- m = l(i, t.data, u);
2751
+ if (K(u))
2752
+ m = u(i, t.data, l);
2743
2753
  else
2744
2754
  try {
2745
- for (var f = W(Object.keys(l)), p = f.next(); !p.done; p = f.next()) {
2746
- var h = p.value, v = l[h];
2747
- m[h] = K(v) ? v(i, t.data, u) : v;
2755
+ for (var f = W(Object.keys(u)), p = f.next(); !p.done; p = f.next()) {
2756
+ var h = p.value, v = u[h];
2757
+ m[h] = K(v) ? v(i, t.data, l) : v;
2748
2758
  }
2749
2759
  } catch (b) {
2750
2760
  s = {
@@ -2762,9 +2772,9 @@ function go(e, t, n, r) {
2762
2772
  }, e);
2763
2773
  return o;
2764
2774
  }
2765
- var le = function() {
2775
+ var ue = function() {
2766
2776
  };
2767
- ne || (le = function(e, t) {
2777
+ ne || (ue = function(e, t) {
2768
2778
  var n = e instanceof Error ? e : void 0;
2769
2779
  if (!(!n && e) && console !== void 0) {
2770
2780
  var r = ["Warning: ".concat(t)];
@@ -2783,16 +2793,16 @@ function Y(e) {
2783
2793
  function Ui(e, t) {
2784
2794
  if (e)
2785
2795
  return Y(e) ? {
2786
- type: ur,
2796
+ type: lr,
2787
2797
  name: e,
2788
2798
  predicate: t ? t[e] : void 0
2789
2799
  } : K(e) ? {
2790
- type: ur,
2800
+ type: lr,
2791
2801
  name: e.name,
2792
2802
  predicate: e
2793
2803
  } : e;
2794
2804
  }
2795
- function Cl(e) {
2805
+ function Cu(e) {
2796
2806
  try {
2797
2807
  return "subscribe" in e && K(e.subscribe);
2798
2808
  } catch {
@@ -2810,10 +2820,10 @@ Jt = {}, Jt[We] = function() {
2810
2820
  function Le(e) {
2811
2821
  return !!e && "__xstatenode" in e;
2812
2822
  }
2813
- function Al(e) {
2823
+ function Au(e) {
2814
2824
  return !!e && typeof e.send == "function";
2815
2825
  }
2816
- var El = /* @__PURE__ */ function() {
2826
+ var Eu = /* @__PURE__ */ function() {
2817
2827
  var e = 0;
2818
2828
  return function() {
2819
2829
  return e++, e.toString(16);
@@ -2846,11 +2856,11 @@ function ot(e, t) {
2846
2856
  });
2847
2857
  return n;
2848
2858
  }
2849
- function Il(e) {
2850
- if (!(e === void 0 || e === gl))
2859
+ function Iu(e) {
2860
+ if (!(e === void 0 || e === gu))
2851
2861
  return Pe(e);
2852
2862
  }
2853
- function Tl(e, t, n) {
2863
+ function Tu(e, t, n) {
2854
2864
  if (!ne) {
2855
2865
  var r = e.stack ? " Stacktrace was '".concat(e.stack, "'") : "";
2856
2866
  if (e === t)
@@ -2867,7 +2877,7 @@ function $i(e, t, n, r, o) {
2867
2877
  cond: t,
2868
2878
  _event: r
2869
2879
  };
2870
- if (t.type === ur)
2880
+ if (t.type === lr)
2871
2881
  return ((i == null ? void 0 : i[t.name]) || t.predicate)(n, r.data, a);
2872
2882
  var s = i == null ? void 0 : i[t.type];
2873
2883
  if (!s)
@@ -2879,7 +2889,7 @@ function Oi(e) {
2879
2889
  type: e
2880
2890
  } : e;
2881
2891
  }
2882
- function ln(e, t, n) {
2892
+ function un(e, t, n) {
2883
2893
  var r = function() {
2884
2894
  }, o = typeof e == "object", i = o ? e : null;
2885
2895
  return {
@@ -2900,7 +2910,7 @@ var Xe = /* @__PURE__ */ de({
2900
2910
  function gn(e, t) {
2901
2911
  return t && t[e] || void 0;
2902
2912
  }
2903
- function ut(e, t) {
2913
+ function lt(e, t) {
2904
2914
  var n;
2905
2915
  if (Y(e) || typeof e == "number") {
2906
2916
  var r = gn(e, t);
@@ -2938,11 +2948,11 @@ var Be = function(e, t) {
2938
2948
  return [];
2939
2949
  var n = yt(e) ? e : [e];
2940
2950
  return n.map(function(r) {
2941
- return ut(r, t);
2951
+ return lt(r, t);
2942
2952
  });
2943
2953
  };
2944
2954
  function $n(e) {
2945
- var t = ut(e);
2955
+ var t = lt(e);
2946
2956
  return A(A({
2947
2957
  id: Y(e) ? e : t.id
2948
2958
  }, t), {
@@ -3005,7 +3015,7 @@ function Or(e, t) {
3005
3015
  to: Ke.Parent
3006
3016
  }));
3007
3017
  }
3008
- function Pl(e, t, n) {
3018
+ function Pu(e, t, n) {
3009
3019
  return vt(t, A(A({}, n), {
3010
3020
  to: e
3011
3021
  }));
@@ -3013,7 +3023,7 @@ function Pl(e, t, n) {
3013
3023
  function Mi() {
3014
3024
  return Or(Nn);
3015
3025
  }
3016
- function kl(e, t) {
3026
+ function ku(e, t) {
3017
3027
  return vt(e, A(A({}, t), {
3018
3028
  to: function(n, r, o) {
3019
3029
  var i = o._event;
@@ -3021,14 +3031,14 @@ function kl(e, t) {
3021
3031
  }
3022
3032
  }));
3023
3033
  }
3024
- var Nl = function(e, t) {
3034
+ var Nu = function(e, t) {
3025
3035
  return {
3026
3036
  context: e,
3027
3037
  event: t
3028
3038
  };
3029
3039
  };
3030
- function Ul(e, t) {
3031
- return e === void 0 && (e = Nl), {
3040
+ function Uu(e, t) {
3041
+ return e === void 0 && (e = Nu), {
3032
3042
  type: kn,
3033
3043
  label: t,
3034
3044
  expr: e
@@ -3077,7 +3087,7 @@ var Vi = function(e) {
3077
3087
  assignment: e
3078
3088
  };
3079
3089
  };
3080
- function $l(e) {
3090
+ function $u(e) {
3081
3091
  return typeof e == "object" && "type" in e;
3082
3092
  }
3083
3093
  function Wi(e, t) {
@@ -3102,7 +3112,7 @@ function xt(e, t) {
3102
3112
  return n;
3103
3113
  }, r;
3104
3114
  }
3105
- function lt(e, t) {
3115
+ function ut(e, t) {
3106
3116
  var n = "".concat(Z.ErrorPlatform, ".").concat(e), r = {
3107
3117
  type: n,
3108
3118
  data: t
@@ -3111,7 +3121,7 @@ function lt(e, t) {
3111
3121
  return n;
3112
3122
  }, r;
3113
3123
  }
3114
- function Ol(e) {
3124
+ function Ou(e) {
3115
3125
  return {
3116
3126
  type: Z.Pure,
3117
3127
  get: e
@@ -3135,7 +3145,7 @@ function ji(e, t) {
3135
3145
  to: e
3136
3146
  }));
3137
3147
  }
3138
- function Rl(e, t) {
3148
+ function Ru(e, t) {
3139
3149
  return Or(function(n, r, o) {
3140
3150
  return {
3141
3151
  type: Ur,
@@ -3145,13 +3155,13 @@ function Rl(e, t) {
3145
3155
  to: Ke.Parent
3146
3156
  }));
3147
3157
  }
3148
- function Fl(e) {
3158
+ function Fu(e) {
3149
3159
  return {
3150
3160
  type: Z.Choose,
3151
3161
  conds: e
3152
3162
  };
3153
3163
  }
3154
- var xl = function(e) {
3164
+ var xu = function(e) {
3155
3165
  var t, n, r = [];
3156
3166
  try {
3157
3167
  for (var o = W(e), i = o.next(); !i.done; i = o.next())
@@ -3178,7 +3188,7 @@ var xl = function(e) {
3178
3188
  };
3179
3189
  function Lt(e, t, n, r, o, i, a) {
3180
3190
  a === void 0 && (a = !1);
3181
- var s = a ? [] : xl(o), c = s.length ? go(n, r, s, t) : n, l = a ? [n] : void 0, u = [];
3191
+ var s = a ? [] : xu(o), c = s.length ? go(n, r, s, t) : n, u = a ? [n] : void 0, l = [];
3182
3192
  function m(h, v) {
3183
3193
  var b;
3184
3194
  switch (v.type) {
@@ -3190,21 +3200,21 @@ function Lt(e, t, n, r, o, i, a) {
3190
3200
  var w = xi(v, c, r, e.options.delays);
3191
3201
  if (!ne) {
3192
3202
  var y = v.delay;
3193
- le(
3203
+ ue(
3194
3204
  !Y(y) || typeof w.delay == "number",
3195
3205
  // tslint:disable-next-line:max-line-length
3196
3206
  "No delay reference for delay expression '".concat(y, "' was found on machine '").concat(e.id, "'")
3197
3207
  );
3198
3208
  }
3199
- return i && w.to !== Ke.Internal && (h === "entry" ? u.push(w) : i(w, c, r)), w;
3209
+ return i && w.to !== Ke.Internal && (h === "entry" ? l.push(w) : i(w, c, r)), w;
3200
3210
  case kn: {
3201
3211
  var S = Di(v, c, r);
3202
3212
  return i == null || i(S, c, r), S;
3203
3213
  }
3204
3214
  case Ei: {
3205
3215
  var E = v, T = (b = E.conds.find(function(fe) {
3206
- var be = Ui(fe.cond, e.options.guards);
3207
- return !be || $i(e, be, c, r, i ? void 0 : t);
3216
+ var ge = Ui(fe.cond, e.options.guards);
3217
+ return !ge || $i(e, ge, c, r, i ? void 0 : t);
3208
3218
  })) === null || b === void 0 ? void 0 : b.actions;
3209
3219
  if (!T)
3210
3220
  return [];
@@ -3212,7 +3222,7 @@ function Lt(e, t, n, r, o, i, a) {
3212
3222
  type: h,
3213
3223
  actions: Be(Pe(T), e.options.actions)
3214
3224
  }], i, a), 2), k = P[0], $ = P[1];
3215
- return c = $, l == null || l.push(c), k;
3225
+ return c = $, u == null || u.push(c), k;
3216
3226
  }
3217
3227
  case Ii: {
3218
3228
  var T = v.get(c, r.data);
@@ -3222,26 +3232,26 @@ function Lt(e, t, n, r, o, i, a) {
3222
3232
  type: h,
3223
3233
  actions: Be(Pe(T), e.options.actions)
3224
3234
  }], i, a), 2), R = O[0], B = O[1];
3225
- return c = B, l == null || l.push(c), R;
3235
+ return c = B, u == null || u.push(c), R;
3226
3236
  }
3227
3237
  case Tn: {
3228
3238
  var S = zi(v, c, r);
3229
3239
  return i == null || i(S, n, r), S;
3230
3240
  }
3231
3241
  case Pn: {
3232
- c = go(c, r, [v], i ? void 0 : t), l == null || l.push(c);
3242
+ c = go(c, r, [v], i ? void 0 : t), u == null || u.push(c);
3233
3243
  break;
3234
3244
  }
3235
3245
  default:
3236
- var G = ut(v, e.options.actions), ae = G.exec;
3246
+ var G = lt(v, e.options.actions), ae = G.exec;
3237
3247
  if (i)
3238
3248
  i(G, c, r);
3239
- else if (ae && l) {
3240
- var Se = l.length - 1, Te = A(A({}, G), {
3249
+ else if (ae && u) {
3250
+ var be = u.length - 1, Te = A(A({}, G), {
3241
3251
  exec: function(fe) {
3242
- for (var be = [], ye = 1; ye < arguments.length; ye++)
3243
- be[ye - 1] = arguments[ye];
3244
- ae.apply(void 0, Q([l[Se]], H(be), !1));
3252
+ for (var ge = [], ve = 1; ve < arguments.length; ve++)
3253
+ ge[ve - 1] = arguments[ve];
3254
+ ae.apply(void 0, Q([u[be]], H(ge), !1));
3245
3255
  }
3246
3256
  });
3247
3257
  G = Te;
@@ -3268,44 +3278,44 @@ function Lt(e, t, n, r, o, i, a) {
3268
3278
  throw v.error;
3269
3279
  }
3270
3280
  }
3271
- return u.forEach(function(T) {
3281
+ return l.forEach(function(T) {
3272
3282
  i(T, c, r);
3273
- }), u.length = 0, g;
3283
+ }), l.length = 0, g;
3274
3284
  }
3275
3285
  var p = te(o.map(f));
3276
3286
  return [p, c];
3277
3287
  }
3278
3288
  const Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3279
3289
  __proto__: null,
3280
- actionTypes: ml,
3290
+ actionTypes: mu,
3281
3291
  after: Wi,
3282
3292
  assign: Vi,
3283
3293
  cancel: Bi,
3284
- choose: Fl,
3294
+ choose: Fu,
3285
3295
  done: $t,
3286
3296
  doneInvoke: xt,
3287
- error: lt,
3288
- escalate: Rl,
3297
+ error: ut,
3298
+ escalate: Ru,
3289
3299
  forwardTo: ji,
3290
3300
  getActionFunction: gn,
3291
3301
  initEvent: Xe,
3292
- isActionObject: $l,
3293
- log: Ul,
3294
- pure: Ol,
3302
+ isActionObject: $u,
3303
+ log: Uu,
3304
+ pure: Ou,
3295
3305
  raise: Ri,
3296
3306
  resolveActions: Lt,
3297
3307
  resolveLog: Di,
3298
3308
  resolveRaise: Fi,
3299
3309
  resolveSend: xi,
3300
3310
  resolveStop: zi,
3301
- respond: kl,
3311
+ respond: ku,
3302
3312
  send: vt,
3303
3313
  sendParent: Or,
3304
- sendTo: Pl,
3314
+ sendTo: Pu,
3305
3315
  sendUpdate: Mi,
3306
3316
  start: Li,
3307
3317
  stop: Gi,
3308
- toActionObject: ut,
3318
+ toActionObject: lt,
3309
3319
  toActionObjects: Be,
3310
3320
  toActivityDefinition: $n
3311
3321
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3313,7 +3323,7 @@ var hn = [], st = function(e, t) {
3313
3323
  hn.push(e);
3314
3324
  var n = t(e);
3315
3325
  return hn.pop(), n;
3316
- }, Ml = function(e) {
3326
+ }, Mu = function(e) {
3317
3327
  return e(hn[hn.length - 1]);
3318
3328
  };
3319
3329
  function Yi(e) {
@@ -3339,7 +3349,7 @@ function Yi(e) {
3339
3349
  return this;
3340
3350
  }, t;
3341
3351
  }
3342
- function Dl(e, t, n, r) {
3352
+ function Du(e, t, n, r) {
3343
3353
  var o, i = Oi(e.src), a = (o = t == null ? void 0 : t.options.services) === null || o === void 0 ? void 0 : o[i.type], s = e.data ? mn(e.data, n, r) : void 0, c = a ? Rr(a, e.id, s) : Yi(e.id);
3344
3354
  return c.meta = e, c;
3345
3355
  }
@@ -3355,17 +3365,17 @@ function Rr(e, t, n) {
3355
3365
  }
3356
3366
  return r;
3357
3367
  }
3358
- function Bl(e) {
3368
+ function Bu(e) {
3359
3369
  try {
3360
3370
  return typeof e.send == "function";
3361
3371
  } catch {
3362
3372
  return !1;
3363
3373
  }
3364
3374
  }
3365
- function Ll(e) {
3366
- return Bl(e) && "id" in e;
3375
+ function Lu(e) {
3376
+ return Bu(e) && "id" in e;
3367
3377
  }
3368
- function Gl(e) {
3378
+ function Gu(e) {
3369
3379
  var t;
3370
3380
  return A((t = {
3371
3381
  subscribe: function() {
@@ -3399,7 +3409,7 @@ function qi(e) {
3399
3409
  return yn(e) ? t : t.concat(te(Gt(e).map(qi)));
3400
3410
  }
3401
3411
  function Ot(e, t) {
3402
- var n, r, o, i, a, s, c, l, u = new Set(e), m = pr(u), f = new Set(t);
3412
+ var n, r, o, i, a, s, c, u, l = new Set(e), m = pr(l), f = new Set(t);
3403
3413
  try {
3404
3414
  for (var p = W(f), h = p.next(); !h.done; h = p.next())
3405
3415
  for (var v = h.value, b = v.parent; b && !f.has(b); )
@@ -3471,7 +3481,7 @@ function Ot(e, t) {
3471
3481
  };
3472
3482
  } finally {
3473
3483
  try {
3474
- k && !k.done && (l = P.return) && l.call(P);
3484
+ k && !k.done && (u = P.return) && u.call(P);
3475
3485
  } finally {
3476
3486
  if (c)
3477
3487
  throw c.error;
@@ -3517,7 +3527,7 @@ function pr(e) {
3517
3527
  }
3518
3528
  return r;
3519
3529
  }
3520
- function zl(e, t) {
3530
+ function zu(e, t) {
3521
3531
  var n = Ot([e], t);
3522
3532
  return Ji(e, pr(n));
3523
3533
  }
@@ -3526,19 +3536,19 @@ function Rt(e, t) {
3526
3536
  return n === t;
3527
3537
  }) : e instanceof Set ? e.has(t) : !1;
3528
3538
  }
3529
- function Vl(e) {
3539
+ function Vu(e) {
3530
3540
  return Q([], H(new Set(te(Q([], H(e.map(function(t) {
3531
3541
  return t.ownEvents;
3532
3542
  })), !1)))), !1);
3533
3543
  }
3534
- function un(e, t) {
3544
+ function ln(e, t) {
3535
3545
  return t.type === "compound" ? Gt(t).some(function(n) {
3536
3546
  return n.type === "final" && Rt(e, n);
3537
3547
  }) : t.type === "parallel" ? Gt(t).every(function(n) {
3538
- return un(e, n);
3548
+ return ln(e, n);
3539
3549
  }) : !1;
3540
3550
  }
3541
- function Wl(e) {
3551
+ function Wu(e) {
3542
3552
  return e === void 0 && (e = []), e.reduce(function(t, n) {
3543
3553
  return n.meta !== void 0 && (t[n.id] = n.meta), t;
3544
3554
  }, {});
@@ -3560,10 +3570,10 @@ function Zi(e, t) {
3560
3570
  return Zi(e[o], t[o]);
3561
3571
  });
3562
3572
  }
3563
- function jl(e) {
3573
+ function ju(e) {
3564
3574
  return typeof e != "object" || e === null ? !1 : "value" in e && "_event" in e;
3565
3575
  }
3566
- function Hl(e, t) {
3576
+ function Hu(e, t) {
3567
3577
  var n = e.exec, r = A(A({}, e), {
3568
3578
  exec: n !== void 0 ? function() {
3569
3579
  return n(t.context, t.event, {
@@ -3580,9 +3590,9 @@ var ke = (
3580
3590
  /* @__PURE__ */ function() {
3581
3591
  function e(t) {
3582
3592
  var n = this, r;
3583
- this.actions = [], this.activities = fo, this.meta = {}, this.events = [], this.value = t.value, this.context = t.context, this._event = t._event, this._sessionid = t._sessionid, this.event = this._event.data, this.historyValue = t.historyValue, this.history = t.history, this.actions = t.actions || [], this.activities = t.activities || fo, this.meta = Wl(t.configuration), this.events = t.events || [], this.matches = this.matches.bind(this), this.toStrings = this.toStrings.bind(this), this.configuration = t.configuration, this.transitions = t.transitions, this.children = t.children, this.done = !!t.done, this.tags = (r = Array.isArray(t.tags) ? new Set(t.tags) : t.tags) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set(), this.machine = t.machine, Object.defineProperty(this, "nextEvents", {
3593
+ this.actions = [], this.activities = fo, this.meta = {}, this.events = [], this.value = t.value, this.context = t.context, this._event = t._event, this._sessionid = t._sessionid, this.event = this._event.data, this.historyValue = t.historyValue, this.history = t.history, this.actions = t.actions || [], this.activities = t.activities || fo, this.meta = Wu(t.configuration), this.events = t.events || [], this.matches = this.matches.bind(this), this.toStrings = this.toStrings.bind(this), this.configuration = t.configuration, this.transitions = t.transitions, this.children = t.children, this.done = !!t.done, this.tags = (r = Array.isArray(t.tags) ? new Set(t.tags) : t.tags) !== null && r !== void 0 ? r : /* @__PURE__ */ new Set(), this.machine = t.machine, Object.defineProperty(this, "nextEvents", {
3584
3594
  get: function() {
3585
- return Vl(n.configuration);
3595
+ return Vu(n.configuration);
3586
3596
  }
3587
3597
  });
3588
3598
  }
@@ -3665,7 +3675,7 @@ var ke = (
3665
3675
  return this.tags.has(t);
3666
3676
  }, e.prototype.can = function(t) {
3667
3677
  var n;
3668
- ne && le(!!this.machine, "state.can(...) used outside of a machine-created State object; this will always return false.");
3678
+ ne && ue(!!this.machine, "state.can(...) used outside of a machine-created State object; this will always return false.");
3669
3679
  var r = (n = this.machine) === null || n === void 0 ? void 0 : n.getTransitionData(this, t);
3670
3680
  return !!(r != null && r.transitions.length) && // Check that at least one transition is not forbidden
3671
3681
  r.transitions.some(function(o) {
@@ -3673,13 +3683,13 @@ var ke = (
3673
3683
  });
3674
3684
  }, e;
3675
3685
  }()
3676
- ), Yl = {
3686
+ ), Yu = {
3677
3687
  deferEvents: !1
3678
3688
  }, yo = (
3679
3689
  /** @class */
3680
3690
  /* @__PURE__ */ function() {
3681
3691
  function e(t) {
3682
- this.processingEvent = !1, this.queue = [], this.initialized = !1, this.options = A(A({}, Yl), t);
3692
+ this.processingEvent = !1, this.queue = [], this.initialized = !1, this.options = A(A({}, Yu), t);
3683
3693
  }
3684
3694
  return e.prototype.initialize = function(t) {
3685
3695
  if (this.initialized = !0, t) {
@@ -3714,9 +3724,9 @@ var ke = (
3714
3724
  }
3715
3725
  }, e;
3716
3726
  }()
3717
- ), Xn = /* @__PURE__ */ new Map(), Kl = 0, It = {
3727
+ ), Xn = /* @__PURE__ */ new Map(), Ku = 0, It = {
3718
3728
  bookId: function() {
3719
- return "x:".concat(Kl++);
3729
+ return "x:".concat(Ku++);
3720
3730
  },
3721
3731
  register: function(e, t) {
3722
3732
  return Xn.set(e, t), e;
@@ -3739,39 +3749,39 @@ function Fr() {
3739
3749
  return global;
3740
3750
  ne || console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues");
3741
3751
  }
3742
- function ql() {
3752
+ function qu() {
3743
3753
  var e = Fr();
3744
3754
  if (e && "__xstate__" in e)
3745
3755
  return e.__xstate__;
3746
3756
  }
3747
- function Jl(e) {
3757
+ function Ju(e) {
3748
3758
  if (Fr()) {
3749
- var t = ql();
3759
+ var t = qu();
3750
3760
  t && t.register(e);
3751
3761
  }
3752
3762
  }
3753
- function Zl(e, t) {
3763
+ function Zu(e, t) {
3754
3764
  t === void 0 && (t = {});
3755
3765
  var n = e.initialState, r = /* @__PURE__ */ new Set(), o = [], i = !1, a = function() {
3756
3766
  if (!i) {
3757
3767
  for (i = !0; o.length > 0; ) {
3758
- var l = o.shift();
3759
- n = e.transition(n, l, c), r.forEach(function(u) {
3760
- return u.next(n);
3768
+ var u = o.shift();
3769
+ n = e.transition(n, u, c), r.forEach(function(l) {
3770
+ return l.next(n);
3761
3771
  });
3762
3772
  }
3763
3773
  i = !1;
3764
3774
  }
3765
- }, s = Gl({
3775
+ }, s = Gu({
3766
3776
  id: t.id,
3767
- send: function(l) {
3768
- o.push(l), a();
3777
+ send: function(u) {
3778
+ o.push(u), a();
3769
3779
  },
3770
3780
  getSnapshot: function() {
3771
3781
  return n;
3772
3782
  },
3773
- subscribe: function(l, u, m) {
3774
- var f = ln(l, u, m);
3783
+ subscribe: function(u, l, m) {
3784
+ var f = un(u, l, m);
3775
3785
  return r.add(f), f.next(n), {
3776
3786
  unsubscribe: function() {
3777
3787
  r.delete(f);
@@ -3793,18 +3803,18 @@ var mr = {
3793
3803
  (function(e) {
3794
3804
  e[e.NotStarted = 0] = "NotStarted", e[e.Running = 1] = "Running", e[e.Stopped = 2] = "Stopped";
3795
3805
  })(se || (se = {}));
3796
- var Ql = (
3806
+ var Qu = (
3797
3807
  /** @class */
3798
3808
  /* @__PURE__ */ function() {
3799
3809
  function e(t, n) {
3800
3810
  n === void 0 && (n = e.defaultOptions);
3801
3811
  var r = this;
3802
- this.machine = t, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = se.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this._outgoingQueue = [], this.init = this.start, this.send = function(u, m) {
3803
- if (yt(u))
3804
- return r.batch(u), r.state;
3805
- var f = de(Un(u, m));
3812
+ this.machine = t, this.delayedEventsMap = {}, this.listeners = /* @__PURE__ */ new Set(), this.contextListeners = /* @__PURE__ */ new Set(), this.stopListeners = /* @__PURE__ */ new Set(), this.doneListeners = /* @__PURE__ */ new Set(), this.eventListeners = /* @__PURE__ */ new Set(), this.sendListeners = /* @__PURE__ */ new Set(), this.initialized = !1, this.status = se.NotStarted, this.children = /* @__PURE__ */ new Map(), this.forwardTo = /* @__PURE__ */ new Set(), this._outgoingQueue = [], this.init = this.start, this.send = function(l, m) {
3813
+ if (yt(l))
3814
+ return r.batch(l), r.state;
3815
+ var f = de(Un(l, m));
3806
3816
  if (r.status === se.Stopped)
3807
- return ne || le(!1, 'Event "'.concat(f.name, '" was sent to stopped service "').concat(r.machine.id, `". This service has already reached its final state, and will not transition.
3817
+ return ne || ue(!1, 'Event "'.concat(f.name, '" was sent to stopped service "').concat(r.machine.id, `". This service has already reached its final state, and will not transition.
3808
3818
  Event: `).concat(JSON.stringify(f.data))), r.state;
3809
3819
  if (r.status !== se.Running && !r.options.deferEvents)
3810
3820
  throw new Error('Event "'.concat(f.name, '" was sent to uninitialized service "').concat(
@@ -3817,35 +3827,35 @@ Event: `
3817
3827
  var p = r._nextState(f);
3818
3828
  r.update(p, f);
3819
3829
  }), r._state;
3820
- }, this.sendTo = function(u, m, f) {
3821
- var p = r.parent && (m === Ke.Parent || r.parent.id === m), h = p ? r.parent : Y(m) ? m === Ke.Internal ? r : r.children.get(m) || It.get(m) : Al(m) ? m : void 0;
3830
+ }, this.sendTo = function(l, m, f) {
3831
+ var p = r.parent && (m === Ke.Parent || r.parent.id === m), h = p ? r.parent : Y(m) ? m === Ke.Internal ? r : r.children.get(m) || It.get(m) : Au(m) ? m : void 0;
3822
3832
  if (!h) {
3823
3833
  if (!p)
3824
3834
  throw new Error("Unable to send event to child '".concat(m, "' from service '").concat(r.id, "'."));
3825
- ne || le(!1, "Service '".concat(r.id, "' has no parent: unable to send event ").concat(u.type));
3835
+ ne || ue(!1, "Service '".concat(r.id, "' has no parent: unable to send event ").concat(l.type));
3826
3836
  return;
3827
3837
  }
3828
3838
  if ("machine" in h) {
3829
3839
  if (r.status !== se.Stopped || r.parent !== h || // we need to send events to the parent from exit handlers of a machine that reached its final state
3830
3840
  r.state.done) {
3831
- var v = A(A({}, u), {
3832
- name: u.name === Ur ? "".concat(lt(r.id)) : u.name,
3841
+ var v = A(A({}, l), {
3842
+ name: l.name === Ur ? "".concat(ut(r.id)) : l.name,
3833
3843
  origin: r.sessionId
3834
3844
  });
3835
3845
  !f && r.machine.config.predictableActionArguments ? r._outgoingQueue.push([h, v]) : h.send(v);
3836
3846
  }
3837
3847
  } else
3838
- !f && r.machine.config.predictableActionArguments ? r._outgoingQueue.push([h, u.data]) : h.send(u.data);
3839
- }, this._exec = function(u, m, f, p) {
3848
+ !f && r.machine.config.predictableActionArguments ? r._outgoingQueue.push([h, l.data]) : h.send(l.data);
3849
+ }, this._exec = function(l, m, f, p) {
3840
3850
  p === void 0 && (p = r.machine.options.actions);
3841
- var h = u.exec || gn(u.type, p), v = K(h) ? h : h ? h.exec : u.exec;
3851
+ var h = l.exec || gn(l.type, p), v = K(h) ? h : h ? h.exec : l.exec;
3842
3852
  if (v)
3843
3853
  try {
3844
3854
  return v(m, f.data, r.machine.config.predictableActionArguments ? {
3845
- action: u,
3855
+ action: l,
3846
3856
  _event: f
3847
3857
  } : {
3848
- action: u,
3858
+ action: l,
3849
3859
  state: r.state,
3850
3860
  _event: f
3851
3861
  });
@@ -3855,14 +3865,14 @@ Event: `
3855
3865
  data: ae
3856
3866
  }), ae;
3857
3867
  }
3858
- switch (u.type) {
3868
+ switch (l.type) {
3859
3869
  case ht: {
3860
- var b = u;
3870
+ var b = l;
3861
3871
  r.defer(b);
3862
3872
  break;
3863
3873
  }
3864
3874
  case Vt:
3865
- var g = u;
3875
+ var g = l;
3866
3876
  if (typeof g.delay == "number") {
3867
3877
  r.defer(g);
3868
3878
  return;
@@ -3870,12 +3880,12 @@ Event: `
3870
3880
  g.to ? r.sendTo(g._event, g.to, f === Xe) : r.send(g._event);
3871
3881
  break;
3872
3882
  case Nr:
3873
- r.cancel(u.sendId);
3883
+ r.cancel(l.sendId);
3874
3884
  break;
3875
3885
  case dn: {
3876
3886
  if (r.status !== se.Running)
3877
3887
  return;
3878
- var w = u.activity;
3888
+ var w = l.activity;
3879
3889
  if (
3880
3890
  // in v4 with `predictableActionArguments` invokes are called eagerly when the `this.state` still points to the previous state
3881
3891
  !r.machine.config.predictableActionArguments && !r.state.activities[w.id || w.type]
@@ -3883,14 +3893,14 @@ Event: `
3883
3893
  break;
3884
3894
  if (w.type === Z.Invoke) {
3885
3895
  var y = Oi(w.src), S = r.machine.options.services ? r.machine.options.services[y.type] : void 0, E = w.id, T = w.data;
3886
- ne || le(
3896
+ ne || ue(
3887
3897
  !("forward" in w),
3888
3898
  // tslint:disable-next-line:max-line-length
3889
3899
  "`forward` property is deprecated (found in invocation of '".concat(w.src, "' in in machine '").concat(r.machine.id, "'). ") + "Please use `autoForward` instead."
3890
3900
  );
3891
3901
  var P = "autoForward" in w ? w.autoForward : !!w.forward;
3892
3902
  if (!S) {
3893
- ne || le(!1, "No service found for invocation '".concat(w.src, "' in machine '").concat(r.machine.id, "'."));
3903
+ ne || ue(!1, "No service found for invocation '".concat(w.src, "' in machine '").concat(r.machine.id, "'."));
3894
3904
  return;
3895
3905
  }
3896
3906
  var k = T ? mn(T, m, f) : void 0;
@@ -3912,20 +3922,20 @@ Event: `
3912
3922
  break;
3913
3923
  }
3914
3924
  case Tn: {
3915
- r.stopChild(u.activity.id);
3925
+ r.stopChild(l.activity.id);
3916
3926
  break;
3917
3927
  }
3918
3928
  case kn:
3919
- var R = u, B = R.label, G = R.value;
3929
+ var R = l, B = R.label, G = R.value;
3920
3930
  B ? r.logger(B, G) : r.logger(G);
3921
3931
  break;
3922
3932
  default:
3923
- ne || le(!1, "No implementation found for action type '".concat(u.type, "'"));
3933
+ ne || ue(!1, "No implementation found for action type '".concat(l.type, "'"));
3924
3934
  break;
3925
3935
  }
3926
3936
  };
3927
- var o = A(A({}, e.defaultOptions), n), i = o.clock, a = o.logger, s = o.parent, c = o.id, l = c !== void 0 ? c : t.id;
3928
- this.id = l, this.logger = a, this.clock = i, this.parent = s, this.options = o, this.scheduler = new yo({
3937
+ var o = A(A({}, e.defaultOptions), n), i = o.clock, a = o.logger, s = o.parent, c = o.id, u = c !== void 0 ? c : t.id;
3938
+ this.id = u, this.logger = a, this.clock = i, this.parent = s, this.options = o, this.scheduler = new yo({
3929
3939
  deferEvents: this.options.deferEvents
3930
3940
  }), this.sessionId = It.bookId();
3931
3941
  }
@@ -3943,7 +3953,7 @@ Event: `
3943
3953
  * @deprecated Use `.getSnapshot()` instead.
3944
3954
  */
3945
3955
  get: function() {
3946
- return ne || le(this.status !== se.NotStarted, "Attempted to read state from uninitialized service '".concat(this.id, "'. Make sure the service is started first.")), this._state;
3956
+ return ne || ue(this.status !== se.NotStarted, "Attempted to read state from uninitialized service '".concat(this.id, "'. Make sure the service is started first.")), this._state;
3947
3957
  },
3948
3958
  enumerable: !1,
3949
3959
  configurable: !0
@@ -3967,7 +3977,7 @@ Event: `
3967
3977
  }
3968
3978
  }
3969
3979
  }, e.prototype.update = function(t, n) {
3970
- var r, o, i, a, s, c, l, u, m = this;
3980
+ var r, o, i, a, s, c, u, l, m = this;
3971
3981
  if (t._sessionid = this.sessionId, this._state = t, (!this.machine.config.predictableActionArguments || // this is currently required to execute initial actions as the `initialState` gets cached
3972
3982
  // we can't just recompute it (and execute actions while doing so) because we try to preserve identity of actors created within initial assigns
3973
3983
  n === Xe) && this.options.execute)
@@ -4040,15 +4050,15 @@ Event: `
4040
4050
  v(this._doneEvent);
4041
4051
  }
4042
4052
  } catch ($) {
4043
- l = {
4053
+ u = {
4044
4054
  error: $
4045
4055
  };
4046
4056
  } finally {
4047
4057
  try {
4048
- k && !k.done && (u = P.return) && u.call(P);
4058
+ k && !k.done && (l = P.return) && l.call(P);
4049
4059
  } finally {
4050
- if (l)
4051
- throw l.error;
4060
+ if (u)
4061
+ throw u.error;
4052
4062
  }
4053
4063
  }
4054
4064
  this._stop(), this._stopChildren(), It.free(this.sessionId);
@@ -4056,7 +4066,7 @@ Event: `
4056
4066
  }, e.prototype.onTransition = function(t) {
4057
4067
  return this.listeners.add(t), this.status === se.Running && t(this.state, this.state.event), this;
4058
4068
  }, e.prototype.subscribe = function(t, n, r) {
4059
- var o = this, i = ln(t, n, r);
4069
+ var o = this, i = un(t, n, r);
4060
4070
  this.listeners.add(i.next), this.status !== se.NotStarted && i.next(this.state);
4061
4071
  var a = function() {
4062
4072
  o.doneListeners.delete(a), o.stopListeners.delete(a), i.complete();
@@ -4084,7 +4094,7 @@ Event: `
4084
4094
  return this;
4085
4095
  this.machine._init(), It.register(this.sessionId, this), this.initialized = !0, this.status = se.Running;
4086
4096
  var r = t === void 0 ? this.initialState : st(this, function() {
4087
- return jl(t) ? n.machine.resolveState(t) : n.machine.resolveState(ke.from(t, n.machine.context));
4097
+ return ju(t) ? n.machine.resolveState(t) : n.machine.resolveState(ke.from(t, n.machine.context));
4088
4098
  });
4089
4099
  return this.options.devTools && this.attachDev(), this.scheduler.initialize(function() {
4090
4100
  n.update(r, Xe);
@@ -4094,7 +4104,7 @@ Event: `
4094
4104
  K(t.stop) && t.stop();
4095
4105
  }), this.children.clear();
4096
4106
  }, e.prototype._stop = function() {
4097
- var t, n, r, o, i, a, s, c, l, u;
4107
+ var t, n, r, o, i, a, s, c, u, l;
4098
4108
  try {
4099
4109
  for (var m = W(this.listeners), f = m.next(); !f.done; f = m.next()) {
4100
4110
  var p = f.value;
@@ -4172,15 +4182,15 @@ Event: `
4172
4182
  this.clock.clearTimeout(this.delayedEventsMap[T]);
4173
4183
  }
4174
4184
  } catch (P) {
4175
- l = {
4185
+ u = {
4176
4186
  error: P
4177
4187
  };
4178
4188
  } finally {
4179
4189
  try {
4180
- E && !E.done && (u = S.return) && u.call(S);
4190
+ E && !E.done && (l = S.return) && l.call(S);
4181
4191
  } finally {
4182
- if (l)
4183
- throw l.error;
4192
+ if (u)
4193
+ throw u.error;
4184
4194
  }
4185
4195
  }
4186
4196
  this.scheduler.clear(), this.scheduler = new yo({
@@ -4192,22 +4202,22 @@ Event: `
4192
4202
  var r = de({
4193
4203
  type: "xstate.stop"
4194
4204
  }), o = st(t, function() {
4195
- var i = te(Q([], H(t.state.configuration), !1).sort(function(u, m) {
4196
- return m.order - u.order;
4197
- }).map(function(u) {
4198
- return Be(u.onExit, t.machine.options.actions);
4205
+ var i = te(Q([], H(t.state.configuration), !1).sort(function(l, m) {
4206
+ return m.order - l.order;
4207
+ }).map(function(l) {
4208
+ return Be(l.onExit, t.machine.options.actions);
4199
4209
  })), a = H(Lt(t.machine, t.state, t.state.context, r, [{
4200
4210
  type: "exit",
4201
4211
  actions: i
4202
- }], t.machine.config.predictableActionArguments ? t._exec : void 0, t.machine.config.predictableActionArguments || t.machine.config.preserveActionOrder), 2), s = a[0], c = a[1], l = new ke({
4212
+ }], t.machine.config.predictableActionArguments ? t._exec : void 0, t.machine.config.predictableActionArguments || t.machine.config.preserveActionOrder), 2), s = a[0], c = a[1], u = new ke({
4203
4213
  value: t.state.value,
4204
4214
  context: c,
4205
4215
  _event: r,
4206
4216
  _sessionid: t.sessionId,
4207
4217
  historyValue: void 0,
4208
4218
  history: t.state,
4209
- actions: s.filter(function(u) {
4210
- return !fr(u);
4219
+ actions: s.filter(function(l) {
4220
+ return !fr(l);
4211
4221
  }),
4212
4222
  activities: {},
4213
4223
  events: [],
@@ -4218,14 +4228,14 @@ Event: `
4218
4228
  tags: t.state.tags,
4219
4229
  machine: t.machine
4220
4230
  });
4221
- return l.changed = !0, l;
4231
+ return u.changed = !0, u;
4222
4232
  });
4223
4233
  t.update(o, r), t._stopChildren(), It.free(t.sessionId);
4224
4234
  }), this;
4225
4235
  }, e.prototype.batch = function(t) {
4226
4236
  var n = this;
4227
4237
  if (this.status === se.NotStarted && this.options.deferEvents)
4228
- ne || le(!1, "".concat(t.length, ' event(s) were sent to uninitialized service "').concat(this.machine.id, `" and are deferred. Make sure .start() is called for this service.
4238
+ ne || ue(!1, "".concat(t.length, ' event(s) were sent to uninitialized service "').concat(this.machine.id, `" and are deferred. Make sure .start() is called for this service.
4229
4239
  Event: `).concat(JSON.stringify(event)));
4230
4240
  else if (this.status !== se.Running)
4231
4241
  throw new Error(
@@ -4235,18 +4245,18 @@ Event: `).concat(JSON.stringify(event)));
4235
4245
  if (t.length) {
4236
4246
  var r = !!this.machine.config.predictableActionArguments && this._exec;
4237
4247
  this.scheduler.schedule(function() {
4238
- var o, i, a = n.state, s = !1, c = [], l = function(p) {
4248
+ var o, i, a = n.state, s = !1, c = [], u = function(p) {
4239
4249
  var h = de(p);
4240
4250
  n.forward(h), a = st(n, function() {
4241
4251
  return n.machine.transition(a, h, void 0, r || void 0);
4242
4252
  }), c.push.apply(c, Q([], H(n.machine.config.predictableActionArguments ? a.actions : a.actions.map(function(v) {
4243
- return Hl(v, a);
4253
+ return Hu(v, a);
4244
4254
  })), !1)), s = s || !!a.changed;
4245
4255
  };
4246
4256
  try {
4247
- for (var u = W(t), m = u.next(); !m.done; m = u.next()) {
4257
+ for (var l = W(t), m = l.next(); !m.done; m = l.next()) {
4248
4258
  var f = m.value;
4249
- l(f);
4259
+ u(f);
4250
4260
  }
4251
4261
  } catch (p) {
4252
4262
  o = {
@@ -4254,7 +4264,7 @@ Event: `).concat(JSON.stringify(event)));
4254
4264
  };
4255
4265
  } finally {
4256
4266
  try {
4257
- m && !m.done && (i = u.return) && i.call(u);
4267
+ m && !m.done && (i = l.return) && i.call(l);
4258
4268
  } finally {
4259
4269
  if (o)
4260
4270
  throw o.error;
@@ -4269,8 +4279,8 @@ Event: `).concat(JSON.stringify(event)));
4269
4279
  var r = this;
4270
4280
  n === void 0 && (n = !!this.machine.config.predictableActionArguments && this._exec);
4271
4281
  var o = de(t);
4272
- if (o.name.indexOf(lr) === 0 && !this.state.nextEvents.some(function(a) {
4273
- return a.indexOf(lr) === 0;
4282
+ if (o.name.indexOf(ur) === 0 && !this.state.nextEvents.some(function(a) {
4283
+ return a.indexOf(ur) === 0;
4274
4284
  }))
4275
4285
  throw o.data.data;
4276
4286
  var i = st(this, function() {
@@ -4322,15 +4332,15 @@ Event: `).concat(JSON.stringify(event)));
4322
4332
  return this.spawnPromise(Promise.resolve(t), n);
4323
4333
  if (K(t))
4324
4334
  return this.spawnCallback(t, n);
4325
- if (Ll(t))
4335
+ if (Lu(t))
4326
4336
  return this.spawnActor(t, n);
4327
- if (Cl(t))
4337
+ if (Cu(t))
4328
4338
  return this.spawnObservable(t, n);
4329
4339
  if (Le(t))
4330
4340
  return this.spawnMachine(t, A(A({}, r), {
4331
4341
  id: n
4332
4342
  }));
4333
- if (wl(t))
4343
+ if (wu(t))
4334
4344
  return this.spawnBehavior(t, n);
4335
4345
  throw new Error('Unable to spawn entity "'.concat(n, '" of type "').concat(typeof t, '".'));
4336
4346
  }, e.prototype.spawnMachine = function(t, n) {
@@ -4353,7 +4363,7 @@ Event: `).concat(JSON.stringify(event)));
4353
4363
  }));
4354
4364
  }).start(), a;
4355
4365
  }, e.prototype.spawnBehavior = function(t, n) {
4356
- var r = Zl(t, {
4366
+ var r = Zu(t, {
4357
4367
  id: n,
4358
4368
  parent: this
4359
4369
  });
@@ -4367,13 +4377,13 @@ Event: `).concat(JSON.stringify(event)));
4367
4377
  }, function(c) {
4368
4378
  if (!i) {
4369
4379
  o.removeChild(n);
4370
- var l = lt(n, c);
4380
+ var u = ut(n, c);
4371
4381
  try {
4372
- o.send(de(l, {
4382
+ o.send(de(u, {
4373
4383
  origin: n
4374
4384
  }));
4375
- } catch (u) {
4376
- Tl(c, u, n), o.devTools && o.devTools.send(l, o.state), o.machine.strict && o.stop();
4385
+ } catch (l) {
4386
+ Tu(c, l, n), o.devTools && o.devTools.send(u, o.state), o.machine.strict && o.stop();
4377
4387
  }
4378
4388
  }
4379
4389
  });
@@ -4381,8 +4391,8 @@ Event: `).concat(JSON.stringify(event)));
4381
4391
  id: n,
4382
4392
  send: function() {
4383
4393
  },
4384
- subscribe: function(c, l, u) {
4385
- var m = ln(c, l, u), f = !1;
4394
+ subscribe: function(c, u, l) {
4395
+ var m = un(c, u, l), f = !1;
4386
4396
  return t.then(function(p) {
4387
4397
  f || (m.next(p), !f && m.complete());
4388
4398
  }, function(p) {
@@ -4409,22 +4419,22 @@ Event: `).concat(JSON.stringify(event)));
4409
4419
  }, r);
4410
4420
  return this.children.set(n, s), s;
4411
4421
  }, e.prototype.spawnCallback = function(t, n) {
4412
- var r, o = this, i = !1, a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c, l = function(f) {
4422
+ var r, o = this, i = !1, a = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), c, u = function(f) {
4413
4423
  c = f, s.forEach(function(p) {
4414
4424
  return p(f);
4415
4425
  }), !i && o.send(de(f, {
4416
4426
  origin: n
4417
4427
  }));
4418
- }, u;
4428
+ }, l;
4419
4429
  try {
4420
- u = t(l, function(f) {
4430
+ l = t(u, function(f) {
4421
4431
  a.add(f);
4422
4432
  });
4423
4433
  } catch (f) {
4424
- this.send(lt(n, f));
4434
+ this.send(ut(n, f));
4425
4435
  }
4426
- if (mo(u))
4427
- return this.spawnPromise(u, n);
4436
+ if (mo(l))
4437
+ return this.spawnPromise(l, n);
4428
4438
  var m = (r = {
4429
4439
  id: n,
4430
4440
  send: function(f) {
@@ -4433,7 +4443,7 @@ Event: `).concat(JSON.stringify(event)));
4433
4443
  });
4434
4444
  },
4435
4445
  subscribe: function(f) {
4436
- var p = ln(f);
4446
+ var p = un(f);
4437
4447
  return s.add(p.next), {
4438
4448
  unsubscribe: function() {
4439
4449
  s.delete(p.next);
@@ -4441,7 +4451,7 @@ Event: `).concat(JSON.stringify(event)));
4441
4451
  };
4442
4452
  },
4443
4453
  stop: function() {
4444
- i = !0, K(u) && u();
4454
+ i = !0, K(l) && l();
4445
4455
  },
4446
4456
  toJSON: function() {
4447
4457
  return {
@@ -4461,7 +4471,7 @@ Event: `).concat(JSON.stringify(event)));
4461
4471
  origin: n
4462
4472
  }));
4463
4473
  }, function(c) {
4464
- o.removeChild(n), o.send(de(lt(n, c), {
4474
+ o.removeChild(n), o.send(de(ut(n, c), {
4465
4475
  origin: n
4466
4476
  }));
4467
4477
  }, function() {
@@ -4472,8 +4482,8 @@ Event: `).concat(JSON.stringify(event)));
4472
4482
  id: n,
4473
4483
  send: function() {
4474
4484
  },
4475
- subscribe: function(c, l, u) {
4476
- return t.subscribe(c, l, u);
4485
+ subscribe: function(c, u, l) {
4486
+ return t.subscribe(c, u, l);
4477
4487
  },
4478
4488
  stop: function() {
4479
4489
  return a.unsubscribe();
@@ -4495,7 +4505,7 @@ Event: `).concat(JSON.stringify(event)));
4495
4505
  }, e.prototype.spawnActivity = function(t) {
4496
4506
  var n = this.machine.options && this.machine.options.activities ? this.machine.options.activities[t.type] : void 0;
4497
4507
  if (!n) {
4498
- ne || le(!1, "No implementation found for activity '".concat(t.type, "'"));
4508
+ ne || ue(!1, "No implementation found for activity '".concat(t.type, "'"));
4499
4509
  return;
4500
4510
  }
4501
4511
  var r = n(this.state.context, t);
@@ -4545,7 +4555,7 @@ Event: `).concat(JSON.stringify(event)));
4545
4555
  }, n ? n.features : void 0)
4546
4556
  }), this.machine), this.devTools.init(this.state);
4547
4557
  }
4548
- Jl(this);
4558
+ Ju(this);
4549
4559
  }
4550
4560
  }, e.prototype.toJSON = function() {
4551
4561
  return {
@@ -4570,28 +4580,28 @@ Event: `).concat(JSON.stringify(event)));
4570
4580
  devTools: !1
4571
4581
  }, e.interpret = Qi, e;
4572
4582
  }()
4573
- ), Xl = function(e) {
4583
+ ), Xu = function(e) {
4574
4584
  return Y(e) ? A(A({}, mr), {
4575
4585
  name: e
4576
4586
  }) : A(A(A({}, mr), {
4577
- name: El()
4587
+ name: Eu()
4578
4588
  }), e);
4579
4589
  };
4580
4590
  function Tt(e, t) {
4581
- var n = Xl(t);
4582
- return Ml(function(r) {
4591
+ var n = Xu(t);
4592
+ return Mu(function(r) {
4583
4593
  if (!ne) {
4584
4594
  var o = Le(e) || K(e);
4585
- le(!!r || o, 'Attempted to spawn an Actor (ID: "'.concat(Le(e) ? e.id : "undefined", '") outside of a service. This will have no effect.'));
4595
+ ue(!!r || o, 'Attempted to spawn an Actor (ID: "'.concat(Le(e) ? e.id : "undefined", '") outside of a service. This will have no effect.'));
4586
4596
  }
4587
4597
  return r ? r.spawn(e, n.name, n) : Rr(e, n.name);
4588
4598
  });
4589
4599
  }
4590
4600
  function Qi(e, t) {
4591
- var n = new Ql(e, t);
4601
+ var n = new Qu(e, t);
4592
4602
  return n;
4593
4603
  }
4594
- function eu(e) {
4604
+ function el(e) {
4595
4605
  if (typeof e == "string") {
4596
4606
  var t = {
4597
4607
  type: e
@@ -4611,14 +4621,14 @@ function Qt(e) {
4611
4621
  var t = kr(e, ["onDone", "onError"]);
4612
4622
  return A(A({}, t), {
4613
4623
  type: fn,
4614
- src: eu(e.src)
4624
+ src: el(e.src)
4615
4625
  });
4616
4626
  }
4617
4627
  });
4618
4628
  }
4619
4629
  var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4620
4630
  return e[0] === gr;
4621
- }, tu = function() {
4631
+ }, tl = function() {
4622
4632
  return {
4623
4633
  actions: {},
4624
4634
  guards: {},
@@ -4626,12 +4636,12 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4626
4636
  activities: {},
4627
4637
  delays: {}
4628
4638
  };
4629
- }, nu = function(e, t, n) {
4639
+ }, nl = function(e, t, n) {
4630
4640
  var r = n.slice(0, -1).some(function(i) {
4631
4641
  return !("cond" in i) && !("in" in i) && (Y(i.target) || Le(i.target));
4632
4642
  }), o = t === ct ? "the transient event" : "event '".concat(t, "'");
4633
- le(!r, "One or more transitions for ".concat(o, " on state '").concat(e.id, "' are unreachable. ") + "Make sure that the default transition is the last one defined.");
4634
- }, ru = (
4643
+ ue(!r, "One or more transitions for ".concat(o, " on state '").concat(e.id, "' are unreachable. ") + "Make sure that the default transition is the last one defined.");
4644
+ }, rl = (
4635
4645
  /** @class */
4636
4646
  /* @__PURE__ */ function() {
4637
4647
  function e(t, n, r, o) {
@@ -4646,73 +4656,73 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4646
4656
  transitions: void 0,
4647
4657
  candidates: {},
4648
4658
  delayedTransitions: void 0
4649
- }, this.idMap = {}, this.tags = [], this.options = Object.assign(tu(), n), this.parent = o == null ? void 0 : o.parent, this.key = this.config.key || (o == null ? void 0 : o.key) || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : Ti), this.id = this.config.id || Q([this.machine.key], H(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (a = this.config.schema) !== null && a !== void 0 ? a : {}, this.description = this.config.description, ne || le(!("parallel" in this.config), 'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel ? "Replace with `type: 'parallel'`" : "Use `type: '".concat(this.type, "'`"), " in the config for state node '").concat(this.id, "' instead.")), this.initial = this.config.initial, this.states = this.config.states ? Ut(this.config.states, function(l, u) {
4650
- var m, f = new e(l, {}, void 0, {
4659
+ }, this.idMap = {}, this.tags = [], this.options = Object.assign(tl(), n), this.parent = o == null ? void 0 : o.parent, this.key = this.config.key || (o == null ? void 0 : o.key) || this.config.id || "(machine)", this.machine = this.parent ? this.parent.machine : this, this.path = this.parent ? this.parent.path.concat(this.key) : [], this.delimiter = this.config.delimiter || (this.parent ? this.parent.delimiter : Ti), this.id = this.config.id || Q([this.machine.key], H(this.path), !1).join(this.delimiter), this.version = this.parent ? this.parent.version : this.config.version, this.type = this.config.type || (this.config.parallel ? "parallel" : this.config.states && Object.keys(this.config.states).length ? "compound" : this.config.history ? "history" : "atomic"), this.schema = this.parent ? this.machine.schema : (a = this.config.schema) !== null && a !== void 0 ? a : {}, this.description = this.config.description, ne || ue(!("parallel" in this.config), 'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel ? "Replace with `type: 'parallel'`" : "Use `type: '".concat(this.type, "'`"), " in the config for state node '").concat(this.id, "' instead.")), this.initial = this.config.initial, this.states = this.config.states ? Ut(this.config.states, function(u, l) {
4660
+ var m, f = new e(u, {}, void 0, {
4651
4661
  parent: i,
4652
- key: u
4662
+ key: l
4653
4663
  });
4654
4664
  return Object.assign(i.idMap, A((m = {}, m[f.id] = f, m), f.idMap)), f;
4655
4665
  }) : it;
4656
4666
  var s = 0;
4657
- function c(l) {
4658
- var u, m;
4659
- l.order = s++;
4667
+ function c(u) {
4668
+ var l, m;
4669
+ u.order = s++;
4660
4670
  try {
4661
- for (var f = W(Ki(l)), p = f.next(); !p.done; p = f.next()) {
4671
+ for (var f = W(Ki(u)), p = f.next(); !p.done; p = f.next()) {
4662
4672
  var h = p.value;
4663
4673
  c(h);
4664
4674
  }
4665
4675
  } catch (v) {
4666
- u = {
4676
+ l = {
4667
4677
  error: v
4668
4678
  };
4669
4679
  } finally {
4670
4680
  try {
4671
4681
  p && !p.done && (m = f.return) && m.call(f);
4672
4682
  } finally {
4673
- if (u)
4674
- throw u.error;
4683
+ if (l)
4684
+ throw l.error;
4675
4685
  }
4676
4686
  }
4677
4687
  }
4678
- c(this), this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this._transient = !!this.config.always || (this.config.on ? Array.isArray(this.config.on) ? this.config.on.some(function(l) {
4679
- var u = l.event;
4680
- return u === ct;
4681
- }) : ct in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = Pe(this.config.entry || this.config.onEntry).map(function(l) {
4682
- return ut(l);
4683
- }), this.onExit = Pe(this.config.exit || this.config.onExit).map(function(l) {
4684
- return ut(l);
4685
- }), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = Pe(this.config.invoke).map(function(l, u) {
4688
+ c(this), this.history = this.config.history === !0 ? "shallow" : this.config.history || !1, this._transient = !!this.config.always || (this.config.on ? Array.isArray(this.config.on) ? this.config.on.some(function(u) {
4689
+ var l = u.event;
4690
+ return l === ct;
4691
+ }) : ct in this.config.on : !1), this.strict = !!this.config.strict, this.onEntry = Pe(this.config.entry || this.config.onEntry).map(function(u) {
4692
+ return lt(u);
4693
+ }), this.onExit = Pe(this.config.exit || this.config.onExit).map(function(u) {
4694
+ return lt(u);
4695
+ }), this.meta = this.config.meta, this.doneData = this.type === "final" ? this.config.data : void 0, this.invoke = Pe(this.config.invoke).map(function(u, l) {
4686
4696
  var m, f;
4687
- if (Le(l)) {
4688
- var p = Zt(i.id, u);
4689
- return i.machine.options.services = A((m = {}, m[p] = l, m), i.machine.options.services), Qt({
4697
+ if (Le(u)) {
4698
+ var p = Zt(i.id, l);
4699
+ return i.machine.options.services = A((m = {}, m[p] = u, m), i.machine.options.services), Qt({
4690
4700
  src: p,
4691
4701
  id: p
4692
4702
  });
4693
- } else if (Y(l.src)) {
4694
- var p = l.id || Zt(i.id, u);
4695
- return Qt(A(A({}, l), {
4703
+ } else if (Y(u.src)) {
4704
+ var p = u.id || Zt(i.id, l);
4705
+ return Qt(A(A({}, u), {
4696
4706
  id: p,
4697
- src: l.src
4707
+ src: u.src
4698
4708
  }));
4699
- } else if (Le(l.src) || K(l.src)) {
4700
- var p = l.id || Zt(i.id, u);
4701
- return i.machine.options.services = A((f = {}, f[p] = l.src, f), i.machine.options.services), Qt(A(A({
4709
+ } else if (Le(u.src) || K(u.src)) {
4710
+ var p = u.id || Zt(i.id, l);
4711
+ return i.machine.options.services = A((f = {}, f[p] = u.src, f), i.machine.options.services), Qt(A(A({
4702
4712
  id: p
4703
- }, l), {
4713
+ }, u), {
4704
4714
  src: p
4705
4715
  }));
4706
4716
  } else {
4707
- var h = l.src;
4717
+ var h = u.src;
4708
4718
  return Qt(A(A({
4709
- id: Zt(i.id, u)
4710
- }, l), {
4719
+ id: Zt(i.id, l)
4720
+ }, u), {
4711
4721
  src: h
4712
4722
  }));
4713
4723
  }
4714
- }), this.activities = Pe(this.config.activities).concat(this.invoke).map(function(l) {
4715
- return $n(l);
4724
+ }), this.activities = Pe(this.config.activities).concat(this.invoke).map(function(u) {
4725
+ return $n(u);
4716
4726
  }), this.transition = this.transition.bind(this), this.tags = Pe(this.config.tags);
4717
4727
  }
4718
4728
  return e.prototype._init = function() {
@@ -4823,11 +4833,11 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4823
4833
  }) : te(Object.keys(n).map(function(i, a) {
4824
4834
  var s = n[i], c = Y(s) ? {
4825
4835
  target: s
4826
- } : s, l = isNaN(+i) ? i : +i, u = r(l, a);
4836
+ } : s, u = isNaN(+i) ? i : +i, l = r(u, a);
4827
4837
  return Pe(c).map(function(m) {
4828
4838
  return A(A({}, m), {
4829
- event: u,
4830
- delay: l
4839
+ event: l,
4840
+ delay: u
4831
4841
  });
4832
4842
  });
4833
4843
  }));
@@ -4858,7 +4868,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4858
4868
  return new ke(A(A({}, n), {
4859
4869
  value: this.resolve(n.value),
4860
4870
  configuration: r,
4861
- done: un(r, this),
4871
+ done: ln(r, this),
4862
4872
  tags: ho(r),
4863
4873
  machine: this.machine
4864
4874
  }));
@@ -4872,10 +4882,10 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4872
4882
  var o, i, a = {};
4873
4883
  try {
4874
4884
  for (var s = W(Object.keys(t)), c = s.next(); !c.done; c = s.next()) {
4875
- var l = c.value, u = t[l];
4876
- if (u) {
4877
- var m = this.getStateNode(l), f = m._transition(u, n, r);
4878
- f && (a[l] = f);
4885
+ var u = c.value, l = t[u];
4886
+ if (l) {
4887
+ var m = this.getStateNode(u), f = m._transition(l, n, r);
4888
+ f && (a[u] = f);
4879
4889
  }
4880
4890
  }
4881
4891
  } catch (g) {
@@ -4918,15 +4928,15 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4918
4928
  }, e.prototype.getTransitionData = function(t, n) {
4919
4929
  return this._transition(t.value, t, de(n));
4920
4930
  }, e.prototype.next = function(t, n) {
4921
- var r, o, i = this, a = n.name, s = [], c = [], l;
4931
+ var r, o, i = this, a = n.name, s = [], c = [], u;
4922
4932
  try {
4923
- for (var u = W(this.getCandidates(a)), m = u.next(); !m.done; m = u.next()) {
4933
+ for (var l = W(this.getCandidates(a)), m = l.next(); !m.done; m = l.next()) {
4924
4934
  var f = m.value, p = f.cond, h = f.in, v = t.context, b = h ? Y(h) && at(h) ? (
4925
4935
  // Check if in state by ID
4926
4936
  t.matches(Ft(this.getStateNodeById(h).path, this.delimiter))
4927
4937
  ) : (
4928
4938
  // Check if in state by relative grandparent
4929
- $r(Ft(h, this.delimiter), yl(this.path.slice(0, -2))(t.value))
4939
+ $r(Ft(h, this.delimiter), yu(this.path.slice(0, -2))(t.value))
4930
4940
  ) : !0, g = !1;
4931
4941
  try {
4932
4942
  g = !p || $i(this.machine, p, v, n, t);
@@ -4935,7 +4945,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4935
4945
  `).concat(S.message));
4936
4946
  }
4937
4947
  if (g && b) {
4938
- f.target !== void 0 && (c = f.target), s.push.apply(s, Q([], H(f.actions), !1)), l = f;
4948
+ f.target !== void 0 && (c = f.target), s.push.apply(s, Q([], H(f.actions), !1)), u = f;
4939
4949
  break;
4940
4950
  }
4941
4951
  }
@@ -4945,16 +4955,16 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4945
4955
  };
4946
4956
  } finally {
4947
4957
  try {
4948
- m && !m.done && (o = u.return) && o.call(u);
4958
+ m && !m.done && (o = l.return) && o.call(l);
4949
4959
  } finally {
4950
4960
  if (r)
4951
4961
  throw r.error;
4952
4962
  }
4953
4963
  }
4954
- if (l) {
4964
+ if (u) {
4955
4965
  if (!c.length)
4956
4966
  return {
4957
- transitions: [l],
4967
+ transitions: [u],
4958
4968
  exitSet: [],
4959
4969
  configuration: t.value ? [this] : [],
4960
4970
  source: t,
@@ -4962,9 +4972,9 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4962
4972
  };
4963
4973
  var w = te(c.map(function(S) {
4964
4974
  return i.getRelativeStateNodes(S, t.historyValue);
4965
- })), y = !!l.internal;
4975
+ })), y = !!u.internal;
4966
4976
  return {
4967
- transitions: [l],
4977
+ transitions: [u],
4968
4978
  exitSet: y ? [] : te(c.map(function(S) {
4969
4979
  return i.getPotentiallyReenteringNodes(S);
4970
4980
  })),
@@ -4980,7 +4990,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4980
4990
  n.push(r), r = r.parent;
4981
4991
  return r !== o ? [] : (n.push(o), n);
4982
4992
  }, e.prototype.getActions = function(t, n, r, o, i, a, s) {
4983
- var c, l, u, m, f = this, p = a ? Ot([], this.getStateNodes(a.value)) : [], h = /* @__PURE__ */ new Set();
4993
+ var c, u, l, m, f = this, p = a ? Ot([], this.getStateNodes(a.value)) : [], h = /* @__PURE__ */ new Set();
4984
4994
  try {
4985
4995
  for (var v = W(Array.from(t).sort(function(R, B) {
4986
4996
  return R.order - B.order;
@@ -4994,7 +5004,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
4994
5004
  };
4995
5005
  } finally {
4996
5006
  try {
4997
- b && !b.done && (l = v.return) && l.call(v);
5007
+ b && !b.done && (u = v.return) && u.call(v);
4998
5008
  } finally {
4999
5009
  if (c)
5000
5010
  throw c.error;
@@ -5006,15 +5016,15 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5006
5016
  (!Rt(t, g) || Rt(r.exitSet, g.parent)) && r.exitSet.push(g);
5007
5017
  }
5008
5018
  } catch (R) {
5009
- u = {
5019
+ l = {
5010
5020
  error: R
5011
5021
  };
5012
5022
  } finally {
5013
5023
  try {
5014
5024
  y && !y.done && (m = w.return) && m.call(w);
5015
5025
  } finally {
5016
- if (u)
5017
- throw u.error;
5026
+ if (l)
5027
+ throw l.error;
5018
5028
  }
5019
5029
  }
5020
5030
  r.exitSet.sort(function(R, B) {
@@ -5035,8 +5045,8 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5035
5045
  $t(G.id, R.doneData ? mn(R.doneData, o, i) : void 0)
5036
5046
  );
5037
5047
  var ae = G.parent;
5038
- return ae.type === "parallel" && Gt(ae).every(function(Se) {
5039
- return un(r.configuration, Se);
5048
+ return ae.type === "parallel" && Gt(ae).every(function(be) {
5049
+ return ln(r.configuration, be);
5040
5050
  }) && B.push($t(ae.id)), B;
5041
5051
  })), P = S.map(function(R) {
5042
5052
  var B = R.onEntry, G = R.activities.map(function(ae) {
@@ -5087,23 +5097,23 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5087
5097
  }
5088
5098
  if (!ne && i.name === Pt)
5089
5099
  throw new Error("An event cannot have the wildcard type ('".concat(Pt, "')"));
5090
- if (this.strict && !this.events.includes(i.name) && !_l(i.name))
5100
+ if (this.strict && !this.events.includes(i.name) && !_u(i.name))
5091
5101
  throw new Error("Machine '".concat(this.id, "' does not accept event '").concat(i.name, "'"));
5092
- var l = this._transition(a.value, a, i) || {
5102
+ var u = this._transition(a.value, a, i) || {
5093
5103
  transitions: [],
5094
5104
  configuration: [],
5095
5105
  exitSet: [],
5096
5106
  source: a,
5097
5107
  actions: []
5098
- }, u = Ot([], this.getStateNodes(a.value)), m = l.configuration.length ? Ot(u, l.configuration) : u;
5099
- return l.configuration = Q([], H(m), !1), this.resolveTransition(l, a, a.context, o, i);
5108
+ }, l = Ot([], this.getStateNodes(a.value)), m = u.configuration.length ? Ot(l, u.configuration) : l;
5109
+ return u.configuration = Q([], H(m), !1), this.resolveTransition(u, a, a.context, o, i);
5100
5110
  }, e.prototype.resolveRaisedTransition = function(t, n, r, o) {
5101
5111
  var i, a = t.actions;
5102
5112
  return t = this.transition(t, n, void 0, o), t._event = r, t.event = r.data, (i = t.actions).unshift.apply(i, Q([], H(a), !1)), t;
5103
5113
  }, e.prototype.resolveTransition = function(t, n, r, o, i) {
5104
- var a, s, c, l, u = this;
5114
+ var a, s, c, u, l = this;
5105
5115
  i === void 0 && (i = Xe);
5106
- var m = t.configuration, f = !n || t.transitions.length > 0, p = f ? t.configuration : n ? n.configuration : [], h = un(p, this), v = f ? zl(this.machine, m) : void 0, b = n ? n.historyValue ? n.historyValue : t.source ? this.machine.historyValue(n.value) : void 0 : void 0, g = this.getActions(new Set(p), h, t, r, i, n, o), w = n ? A({}, n.activities) : {};
5116
+ var m = t.configuration, f = !n || t.transitions.length > 0, p = f ? t.configuration : n ? n.configuration : [], h = ln(p, this), v = f ? zu(this.machine, m) : void 0, b = n ? n.historyValue ? n.historyValue : t.source ? this.machine.historyValue(n.value) : void 0 : void 0, g = this.getActions(new Set(p), h, t, r, i, n, o), w = n ? A({}, n.activities) : {};
5107
5117
  try {
5108
5118
  for (var y = W(g), S = y.next(); !S.done; S = y.next()) {
5109
5119
  var E = S.value;
@@ -5112,22 +5122,22 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5112
5122
  var k = P.value;
5113
5123
  k.type === dn ? w[k.activity.id || k.activity.type] = k : k.type === Tn && (w[k.activity.id || k.activity.type] = !1);
5114
5124
  }
5115
- } catch (ge) {
5125
+ } catch (he) {
5116
5126
  c = {
5117
- error: ge
5127
+ error: he
5118
5128
  };
5119
5129
  } finally {
5120
5130
  try {
5121
- P && !P.done && (l = T.return) && l.call(T);
5131
+ P && !P.done && (u = T.return) && u.call(T);
5122
5132
  } finally {
5123
5133
  if (c)
5124
5134
  throw c.error;
5125
5135
  }
5126
5136
  }
5127
5137
  }
5128
- } catch (ge) {
5138
+ } catch (he) {
5129
5139
  a = {
5130
- error: ge
5140
+ error: he
5131
5141
  };
5132
5142
  } finally {
5133
5143
  try {
@@ -5137,18 +5147,18 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5137
5147
  throw a.error;
5138
5148
  }
5139
5149
  }
5140
- var $ = H(Lt(this, n, r, i, g, o, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), O = $[0], R = $[1], B = H(Sl(O, fr), 2), G = B[0], ae = B[1], Se = O.filter(function(ge) {
5150
+ var $ = H(Lt(this, n, r, i, g, o, this.machine.config.predictableActionArguments || this.machine.config.preserveActionOrder), 2), O = $[0], R = $[1], B = H(Su(O, fr), 2), G = B[0], ae = B[1], be = O.filter(function(he) {
5141
5151
  var Ve;
5142
- return ge.type === dn && ((Ve = ge.activity) === null || Ve === void 0 ? void 0 : Ve.type) === fn;
5143
- }), Te = Se.reduce(function(ge, Ve) {
5144
- return ge[Ve.activity.id] = Dl(Ve.activity, u.machine, R, i), ge;
5152
+ return he.type === dn && ((Ve = he.activity) === null || Ve === void 0 ? void 0 : Ve.type) === fn;
5153
+ }), Te = be.reduce(function(he, Ve) {
5154
+ return he[Ve.activity.id] = Du(Ve.activity, l.machine, R, i), he;
5145
5155
  }, n ? A({}, n.children) : {}), fe = new ke({
5146
5156
  value: v || n.value,
5147
5157
  context: R,
5148
5158
  _event: i,
5149
5159
  // Persist _sessionid between states
5150
5160
  _sessionid: n ? n._sessionid : null,
5151
- historyValue: v ? b ? bl(b, v) : void 0 : n ? n.historyValue : void 0,
5161
+ historyValue: v ? b ? bu(b, v) : void 0 : n ? n.historyValue : void 0,
5152
5162
  history: !v || t.source ? n : void 0,
5153
5163
  actions: v ? ae : [],
5154
5164
  activities: v ? w : n ? n.activities : {},
@@ -5159,25 +5169,25 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5159
5169
  done: h,
5160
5170
  tags: ho(p),
5161
5171
  machine: this
5162
- }), be = r !== R;
5163
- fe.changed = i.name === Nn || be;
5164
- var ye = fe.history;
5165
- ye && delete ye.history;
5166
- var nt = !h && (this._transient || m.some(function(ge) {
5167
- return ge._transient;
5172
+ }), ge = r !== R;
5173
+ fe.changed = i.name === Nn || ge;
5174
+ var ve = fe.history;
5175
+ ve && delete ve.history;
5176
+ var nt = !h && (this._transient || m.some(function(he) {
5177
+ return he._transient;
5168
5178
  }));
5169
5179
  if (!f && (!nt || i.name === ct))
5170
5180
  return fe;
5171
- var ve = fe;
5181
+ var _e = fe;
5172
5182
  if (!h)
5173
- for (nt && (ve = this.resolveRaisedTransition(ve, {
5183
+ for (nt && (_e = this.resolveRaisedTransition(_e, {
5174
5184
  type: Ci
5175
5185
  }, i, o)); G.length; ) {
5176
5186
  var L = G.shift();
5177
- ve = this.resolveRaisedTransition(ve, L._event, i, o);
5187
+ _e = this.resolveRaisedTransition(_e, L._event, i, o);
5178
5188
  }
5179
- var ao = ve.changed || (ye ? !!ve.actions.length || be || typeof ye.value != typeof ve.value || !Zi(ve.value, ye.value) : void 0);
5180
- return ve.changed = ao, ve.history = ye, ve;
5189
+ var ao = _e.changed || (ve ? !!_e.actions.length || ge || typeof ve.value != typeof _e.value || !Zi(_e.value, ve.value) : void 0);
5190
+ return _e.changed = ao, _e.history = ve, _e;
5181
5191
  }, e.prototype.getStateNode = function(t) {
5182
5192
  if (at(t))
5183
5193
  return this.machine.getStateNodeById(t);
@@ -5304,7 +5314,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5304
5314
  if (yn(this))
5305
5315
  return [this];
5306
5316
  if (this.type === "compound" && !this.initial)
5307
- return ne || le(!1, "Compound state node '".concat(this.id, "' has no initial state.")), [this];
5317
+ return ne || ue(!1, "Compound state node '".concat(this.id, "' has no initial state.")), [this];
5308
5318
  var n = cn(this.initialStateValue);
5309
5319
  return te(n.map(function(r) {
5310
5320
  return t.getFromRelativePath(r);
@@ -5348,7 +5358,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5348
5358
  return r.getFromRelativePath(a);
5349
5359
  })) : r.initialStateNodes;
5350
5360
  }
5351
- var i = vl(r.path, "states")(t).current;
5361
+ var i = vu(r.path, "states")(t).current;
5352
5362
  return Y(i) ? [r.getStateNode(i)] : te(cn(i).map(function(a) {
5353
5363
  return n.history === "deep" ? r.getFromRelativePath(a) : [r.states[a[0]]];
5354
5364
  }));
@@ -5376,10 +5386,10 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5376
5386
  if (i)
5377
5387
  try {
5378
5388
  for (var s = W(Object.keys(i)), c = s.next(); !c.done; c = s.next()) {
5379
- var l = c.value, u = i[l];
5380
- if (u.states)
5389
+ var u = c.value, l = i[u];
5390
+ if (l.states)
5381
5391
  try {
5382
- for (var m = (r = void 0, W(u.events)), f = m.next(); !f.done; f = m.next()) {
5392
+ for (var m = (r = void 0, W(l.events)), f = m.next(); !f.done; f = m.next()) {
5383
5393
  var p = f.value;
5384
5394
  a.add("".concat(p));
5385
5395
  }
@@ -5450,7 +5460,7 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5450
5460
  return n.getStateNodeByPath(i);
5451
5461
  });
5452
5462
  }, e.prototype.formatTransition = function(t) {
5453
- var n = this, r = Il(t.target), o = "internal" in t ? t.internal : r ? r.some(function(c) {
5463
+ var n = this, r = Iu(t.target), o = "internal" in t ? t.internal : r ? r.some(function(c) {
5454
5464
  return Y(c) && c[0] === n.delimiter;
5455
5465
  }) : !0, i = this.machine.options.guards, a = this.resolveTarget(r), s = A(A({}, t), {
5456
5466
  actions: Be(Pe(t.actions)),
@@ -5476,19 +5486,19 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5476
5486
  else if (Array.isArray(this.config.on))
5477
5487
  o = this.config.on;
5478
5488
  else {
5479
- var i = this.config.on, a = Pt, s = i[a], c = s === void 0 ? [] : s, l = kr(i, [typeof a == "symbol" ? a : a + ""]);
5480
- o = te(Object.keys(l).map(function(w) {
5481
- !ne && w === ct && le(!1, "Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. " + 'Please check the `on` configuration for "#'.concat(r.id, '".'));
5482
- var y = ot(w, l[w]);
5483
- return ne || nu(r, w, y), y;
5489
+ var i = this.config.on, a = Pt, s = i[a], c = s === void 0 ? [] : s, u = kr(i, [typeof a == "symbol" ? a : a + ""]);
5490
+ o = te(Object.keys(u).map(function(w) {
5491
+ !ne && w === ct && ue(!1, "Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. " + 'Please check the `on` configuration for "#'.concat(r.id, '".'));
5492
+ var y = ot(w, u[w]);
5493
+ return ne || nl(r, w, y), y;
5484
5494
  }).concat(ot(Pt, c)));
5485
5495
  }
5486
- var u = this.config.always ? ot("", this.config.always) : [], m = this.config.onDone ? ot(String($t(this.id)), this.config.onDone) : [];
5487
- ne || le(!(this.config.onDone && !this.parent), 'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id, '".'));
5496
+ var l = this.config.always ? ot("", this.config.always) : [], m = this.config.onDone ? ot(String($t(this.id)), this.config.onDone) : [];
5497
+ ne || ue(!(this.config.onDone && !this.parent), 'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id, '".'));
5488
5498
  var f = te(this.invoke.map(function(w) {
5489
5499
  var y = [];
5490
- return w.onDone && y.push.apply(y, Q([], H(ot(String(xt(w.id)), w.onDone)), !1)), w.onError && y.push.apply(y, Q([], H(ot(String(lt(w.id)), w.onError)), !1)), y;
5491
- })), p = this.after, h = te(Q(Q(Q(Q([], H(m), !1), H(f), !1), H(o), !1), H(u), !1).map(function(w) {
5500
+ return w.onDone && y.push.apply(y, Q([], H(ot(String(xt(w.id)), w.onDone)), !1)), w.onError && y.push.apply(y, Q([], H(ot(String(ut(w.id)), w.onError)), !1)), y;
5501
+ })), p = this.after, h = te(Q(Q(Q(Q([], H(m), !1), H(f), !1), H(o), !1), H(l), !1).map(function(w) {
5492
5502
  return Pe(w).map(function(y) {
5493
5503
  return r.formatTransition(y);
5494
5504
  });
@@ -5515,55 +5525,55 @@ var ct = "", gr = "#", Pt = "*", it = {}, at = function(e) {
5515
5525
  }()
5516
5526
  ), vo = !1;
5517
5527
  function _t(e, t) {
5518
- return !ne && !("predictableActionArguments" in e) && !vo && (vo = !0, console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")), new ru(e, t);
5528
+ return !ne && !("predictableActionArguments" in e) && !vo && (vo = !0, console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")), new rl(e, t);
5519
5529
  }
5520
- var De = Vi, On = Mi, ou = ji, Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5530
+ var De = Vi, On = Mi, ol = ji, Xt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
5521
5531
  function Xi(e) {
5522
5532
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5523
5533
  }
5524
- function iu(e, t) {
5534
+ function il(e, t) {
5525
5535
  for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
5526
5536
  o[n] = t(e[n], n, e);
5527
5537
  return o;
5528
5538
  }
5529
- var ea = iu;
5530
- function au() {
5539
+ var ea = il;
5540
+ function al() {
5531
5541
  this.__data__ = [], this.size = 0;
5532
5542
  }
5533
- var su = au;
5534
- function cu(e, t) {
5543
+ var sl = al;
5544
+ function cl(e, t) {
5535
5545
  return e === t || e !== e && t !== t;
5536
5546
  }
5537
- var Wt = cu, lu = Wt;
5538
- function uu(e, t) {
5547
+ var Wt = cl, ul = Wt;
5548
+ function ll(e, t) {
5539
5549
  for (var n = e.length; n--; )
5540
- if (lu(e[n][0], t))
5550
+ if (ul(e[n][0], t))
5541
5551
  return n;
5542
5552
  return -1;
5543
5553
  }
5544
- var Rn = uu, du = Rn, fu = Array.prototype, pu = fu.splice;
5545
- function mu(e) {
5546
- var t = this.__data__, n = du(t, e);
5554
+ var Rn = ll, dl = Rn, fl = Array.prototype, pl = fl.splice;
5555
+ function ml(e) {
5556
+ var t = this.__data__, n = dl(t, e);
5547
5557
  if (n < 0)
5548
5558
  return !1;
5549
5559
  var r = t.length - 1;
5550
- return n == r ? t.pop() : pu.call(t, n, 1), --this.size, !0;
5560
+ return n == r ? t.pop() : pl.call(t, n, 1), --this.size, !0;
5551
5561
  }
5552
- var gu = mu, hu = Rn;
5553
- function yu(e) {
5554
- var t = this.__data__, n = hu(t, e);
5562
+ var gl = ml, hl = Rn;
5563
+ function yl(e) {
5564
+ var t = this.__data__, n = hl(t, e);
5555
5565
  return n < 0 ? void 0 : t[n][1];
5556
5566
  }
5557
- var vu = yu, _u = Rn;
5558
- function wu(e) {
5559
- return _u(this.__data__, e) > -1;
5567
+ var vl = yl, _l = Rn;
5568
+ function wl(e) {
5569
+ return _l(this.__data__, e) > -1;
5560
5570
  }
5561
- var Su = wu, bu = Rn;
5562
- function Cu(e, t) {
5563
- var n = this.__data__, r = bu(n, e);
5571
+ var Sl = wl, bl = Rn;
5572
+ function Cl(e, t) {
5573
+ var n = this.__data__, r = bl(n, e);
5564
5574
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
5565
5575
  }
5566
- var Au = Cu, Eu = su, Iu = gu, Tu = vu, Pu = Su, ku = Au;
5576
+ var Al = Cl, El = sl, Il = gl, Tl = vl, Pl = Sl, kl = Al;
5567
5577
  function wt(e) {
5568
5578
  var t = -1, n = e == null ? 0 : e.length;
5569
5579
  for (this.clear(); ++t < n; ) {
@@ -5571,58 +5581,58 @@ function wt(e) {
5571
5581
  this.set(r[0], r[1]);
5572
5582
  }
5573
5583
  }
5574
- wt.prototype.clear = Eu;
5575
- wt.prototype.delete = Iu;
5576
- wt.prototype.get = Tu;
5577
- wt.prototype.has = Pu;
5578
- wt.prototype.set = ku;
5579
- var Fn = wt, Nu = Fn;
5580
- function Uu() {
5581
- this.__data__ = new Nu(), this.size = 0;
5584
+ wt.prototype.clear = El;
5585
+ wt.prototype.delete = Il;
5586
+ wt.prototype.get = Tl;
5587
+ wt.prototype.has = Pl;
5588
+ wt.prototype.set = kl;
5589
+ var Fn = wt, Nl = Fn;
5590
+ function Ul() {
5591
+ this.__data__ = new Nl(), this.size = 0;
5582
5592
  }
5583
- var $u = Uu;
5584
- function Ou(e) {
5593
+ var $l = Ul;
5594
+ function Ol(e) {
5585
5595
  var t = this.__data__, n = t.delete(e);
5586
5596
  return this.size = t.size, n;
5587
5597
  }
5588
- var Ru = Ou;
5589
- function Fu(e) {
5598
+ var Rl = Ol;
5599
+ function Fl(e) {
5590
5600
  return this.__data__.get(e);
5591
5601
  }
5592
- var xu = Fu;
5593
- function Mu(e) {
5602
+ var xl = Fl;
5603
+ function Ml(e) {
5594
5604
  return this.__data__.has(e);
5595
5605
  }
5596
- var Du = Mu, Bu = typeof Xt == "object" && Xt && Xt.Object === Object && Xt, ta = Bu, Lu = ta, Gu = typeof self == "object" && self && self.Object === Object && self, zu = Lu || Gu || Function("return this")(), Oe = zu, Vu = Oe, Wu = Vu.Symbol, xn = Wu, _o = xn, na = Object.prototype, ju = na.hasOwnProperty, Hu = na.toString, kt = _o ? _o.toStringTag : void 0;
5597
- function Yu(e) {
5598
- var t = ju.call(e, kt), n = e[kt];
5606
+ var Dl = Ml, Bl = typeof Xt == "object" && Xt && Xt.Object === Object && Xt, ta = Bl, Ll = ta, Gl = typeof self == "object" && self && self.Object === Object && self, zl = Ll || Gl || Function("return this")(), Oe = zl, Vl = Oe, Wl = Vl.Symbol, xn = Wl, _o = xn, na = Object.prototype, jl = na.hasOwnProperty, Hl = na.toString, kt = _o ? _o.toStringTag : void 0;
5607
+ function Yl(e) {
5608
+ var t = jl.call(e, kt), n = e[kt];
5599
5609
  try {
5600
5610
  e[kt] = void 0;
5601
5611
  var r = !0;
5602
5612
  } catch {
5603
5613
  }
5604
- var o = Hu.call(e);
5614
+ var o = Hl.call(e);
5605
5615
  return r && (t ? e[kt] = n : delete e[kt]), o;
5606
5616
  }
5607
- var Ku = Yu, qu = Object.prototype, Ju = qu.toString;
5608
- function Zu(e) {
5609
- return Ju.call(e);
5617
+ var Kl = Yl, ql = Object.prototype, Jl = ql.toString;
5618
+ function Zl(e) {
5619
+ return Jl.call(e);
5610
5620
  }
5611
- var Qu = Zu, wo = xn, Xu = Ku, ed = Qu, td = "[object Null]", nd = "[object Undefined]", So = wo ? wo.toStringTag : void 0;
5621
+ var Ql = Zl, wo = xn, Xl = Kl, ed = Ql, td = "[object Null]", nd = "[object Undefined]", So = wo ? wo.toStringTag : void 0;
5612
5622
  function rd(e) {
5613
- return e == null ? e === void 0 ? nd : td : So && So in Object(e) ? Xu(e) : ed(e);
5623
+ return e == null ? e === void 0 ? nd : td : So && So in Object(e) ? Xl(e) : ed(e);
5614
5624
  }
5615
5625
  var St = rd;
5616
5626
  function od(e) {
5617
5627
  var t = typeof e;
5618
5628
  return e != null && (t == "object" || t == "function");
5619
5629
  }
5620
- var Ge = od, id = St, ad = Ge, sd = "[object AsyncFunction]", cd = "[object Function]", ld = "[object GeneratorFunction]", ud = "[object Proxy]";
5630
+ var Ge = od, id = St, ad = Ge, sd = "[object AsyncFunction]", cd = "[object Function]", ud = "[object GeneratorFunction]", ld = "[object Proxy]";
5621
5631
  function dd(e) {
5622
5632
  if (!ad(e))
5623
5633
  return !1;
5624
5634
  var t = id(e);
5625
- return t == cd || t == ld || t == sd || t == ud;
5635
+ return t == cd || t == ud || t == sd || t == ld;
5626
5636
  }
5627
5637
  var xr = dd, fd = Oe, pd = fd["__core-js_shared__"], md = pd, er = md, bo = function() {
5628
5638
  var e = /[^.]+$/.exec(er && er.keys && er.keys.IE_PROTO || "");
@@ -5691,7 +5701,7 @@ function sf(e, t) {
5691
5701
  var n = this.__data__;
5692
5702
  return this.size += this.has(e) ? 0 : 1, n[e] = of && t === void 0 ? af : t, this;
5693
5703
  }
5694
- var cf = sf, lf = Wd, uf = Hd, df = Qd, ff = rf, pf = cf;
5704
+ var cf = sf, uf = Wd, lf = Hd, df = Qd, ff = rf, pf = cf;
5695
5705
  function bt(e) {
5696
5706
  var t = -1, n = e == null ? 0 : e.length;
5697
5707
  for (this.clear(); ++t < n; ) {
@@ -5699,8 +5709,8 @@ function bt(e) {
5699
5709
  this.set(r[0], r[1]);
5700
5710
  }
5701
5711
  }
5702
- bt.prototype.clear = lf;
5703
- bt.prototype.delete = uf;
5712
+ bt.prototype.clear = uf;
5713
+ bt.prototype.delete = lf;
5704
5714
  bt.prototype.get = df;
5705
5715
  bt.prototype.has = ff;
5706
5716
  bt.prototype.set = pf;
@@ -5764,7 +5774,7 @@ function Wf(e, t) {
5764
5774
  }
5765
5775
  return n.set(e, t), this.size = n.size, this;
5766
5776
  }
5767
- var jf = Wf, Hf = Fn, Yf = $u, Kf = Ru, qf = xu, Jf = Du, Zf = jf;
5777
+ var jf = Wf, Hf = Fn, Yf = $l, Kf = Rl, qf = xl, Jf = Dl, Zf = jf;
5768
5778
  function At(e) {
5769
5779
  var t = this.__data__ = new Hf(e);
5770
5780
  this.size = t.size;
@@ -5798,17 +5808,17 @@ function sp(e, t) {
5798
5808
  return !1;
5799
5809
  }
5800
5810
  var cp = sp;
5801
- function lp(e, t) {
5811
+ function up(e, t) {
5802
5812
  return e.has(t);
5803
5813
  }
5804
- var up = lp, dp = ap, fp = cp, pp = up, mp = 1, gp = 2;
5814
+ var lp = up, dp = ap, fp = cp, pp = lp, mp = 1, gp = 2;
5805
5815
  function hp(e, t, n, r, o, i) {
5806
5816
  var a = n & mp, s = e.length, c = t.length;
5807
5817
  if (s != c && !(a && c > s))
5808
5818
  return !1;
5809
- var l = i.get(e), u = i.get(t);
5810
- if (l && u)
5811
- return l == t && u == e;
5819
+ var u = i.get(e), l = i.get(t);
5820
+ if (u && l)
5821
+ return u == t && l == e;
5812
5822
  var m = -1, f = !0, p = n & gp ? new dp() : void 0;
5813
5823
  for (i.set(e, t), i.set(t, e); ++m < s; ) {
5814
5824
  var h = e[m], v = t[m];
@@ -5873,12 +5883,12 @@ function Lp(e, t, n, r, o, i, a) {
5873
5883
  var c = r & Tp;
5874
5884
  if (s || (s = Ip), e.size != t.size && !c)
5875
5885
  return !1;
5876
- var l = a.get(e);
5877
- if (l)
5878
- return l == t;
5886
+ var u = a.get(e);
5887
+ if (u)
5888
+ return u == t;
5879
5889
  r |= Pp, a.set(e, t);
5880
- var u = Ap(s(e), s(t), r, o, i, a);
5881
- return a.delete(e), u;
5890
+ var l = Ap(s(e), s(t), r, o, i, a);
5891
+ return a.delete(e), l;
5882
5892
  case Mp:
5883
5893
  if (tr)
5884
5894
  return tr.call(e) == tr.call(t);
@@ -5912,7 +5922,7 @@ var ca = qp, Jp = Kp, Zp = ca, Qp = Object.prototype, Xp = Qp.propertyIsEnumerab
5912
5922
  return e == null ? [] : (e = Object(e), Jp(Po(e), function(t) {
5913
5923
  return Xp.call(e, t);
5914
5924
  }));
5915
- } : Zp, la = em;
5925
+ } : Zp, ua = em;
5916
5926
  function tm(e, t) {
5917
5927
  for (var n = -1, r = Array(e); ++n < e; )
5918
5928
  r[n] = t(n);
@@ -5926,10 +5936,10 @@ var tt = rm, om = St, im = tt, am = "[object Arguments]";
5926
5936
  function sm(e) {
5927
5937
  return im(e) && om(e) == am;
5928
5938
  }
5929
- var cm = sm, ko = cm, lm = tt, ua = Object.prototype, um = ua.hasOwnProperty, dm = ua.propertyIsEnumerable, fm = ko(/* @__PURE__ */ function() {
5939
+ var cm = sm, ko = cm, um = tt, la = Object.prototype, lm = la.hasOwnProperty, dm = la.propertyIsEnumerable, fm = ko(/* @__PURE__ */ function() {
5930
5940
  return arguments;
5931
5941
  }()) ? ko : function(e) {
5932
- return lm(e) && um.call(e, "callee") && !dm.call(e, "callee");
5942
+ return um(e) && lm.call(e, "callee") && !dm.call(e, "callee");
5933
5943
  }, Lr = fm, _n = { exports: {} };
5934
5944
  function pm() {
5935
5945
  return !1;
@@ -5937,8 +5947,8 @@ function pm() {
5937
5947
  var mm = pm;
5938
5948
  _n.exports;
5939
5949
  (function(e, t) {
5940
- var n = Oe, r = mm, o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, a = i && i.exports === o, s = a ? n.Buffer : void 0, c = s ? s.isBuffer : void 0, l = c || r;
5941
- e.exports = l;
5950
+ var n = Oe, r = mm, o = t && !t.nodeType && t, i = o && !0 && e && !e.nodeType && e, a = i && i.exports === o, s = a ? n.Buffer : void 0, c = s ? s.isBuffer : void 0, u = c || r;
5951
+ e.exports = u;
5942
5952
  })(_n, _n.exports);
5943
5953
  var Gr = _n.exports, gm = 9007199254740991, hm = /^(?:0|[1-9]\d*)$/;
5944
5954
  function ym(e, t) {
@@ -5974,19 +5984,19 @@ wn.exports;
5974
5984
  e.exports = s;
5975
5985
  })(wn, wn.exports);
5976
5986
  var Zm = wn.exports, Qm = Km, Xm = Jm, No = Zm, Uo = No && No.isTypedArray, eg = Uo ? Xm(Uo) : Qm, Vr = eg, tg = nm, ng = Lr, rg = ze, og = Gr, ig = Bn, ag = Vr, sg = Object.prototype, cg = sg.hasOwnProperty;
5977
- function lg(e, t) {
5987
+ function ug(e, t) {
5978
5988
  var n = rg(e), r = !n && ng(e), o = !n && !r && og(e), i = !n && !r && !o && ag(e), a = n || r || o || i, s = a ? tg(e.length, String) : [], c = s.length;
5979
- for (var l in e)
5980
- (t || cg.call(e, l)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
5981
- (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5982
- o && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5983
- i && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
5984
- ig(l, c))) && s.push(l);
5989
+ for (var u in e)
5990
+ (t || cg.call(e, u)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
5991
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
5992
+ o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
5993
+ i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
5994
+ ig(u, c))) && s.push(u);
5985
5995
  return s;
5986
5996
  }
5987
- var da = lg, ug = Object.prototype;
5997
+ var da = ug, lg = Object.prototype;
5988
5998
  function dg(e) {
5989
- var t = e && e.constructor, n = typeof t == "function" && t.prototype || ug;
5999
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || lg;
5990
6000
  return e === n;
5991
6001
  }
5992
6002
  var Wr = dg;
@@ -6012,14 +6022,14 @@ var Ln = Ag, Eg = da, Ig = Sg, Tg = Ln;
6012
6022
  function Pg(e) {
6013
6023
  return Tg(e) ? Eg(e) : Ig(e);
6014
6024
  }
6015
- var pa = Pg, kg = sa, Ng = la, Ug = pa;
6025
+ var pa = Pg, kg = sa, Ng = ua, Ug = pa;
6016
6026
  function $g(e) {
6017
6027
  return kg(e, Ug, Ng);
6018
6028
  }
6019
6029
  var Og = $g, $o = Og, Rg = 1, Fg = Object.prototype, xg = Fg.hasOwnProperty;
6020
6030
  function Mg(e, t, n, r, o, i) {
6021
- var a = n & Rg, s = $o(e), c = s.length, l = $o(t), u = l.length;
6022
- if (c != u && !a)
6031
+ var a = n & Rg, s = $o(e), c = s.length, u = $o(t), l = u.length;
6032
+ if (c != l && !a)
6023
6033
  return !1;
6024
6034
  for (var m = c; m--; ) {
6025
6035
  var f = s[m];
@@ -6066,26 +6076,26 @@ var Dg = Mg, Bg = et, Lg = Oe, Gg = Bg(Lg, "DataView"), zg = Gg, Vg = et, Wg = O
6066
6076
  }
6067
6077
  return t;
6068
6078
  });
6069
- var sh = Qe, nr = Br, ch = oa, lh = Gp, uh = Dg, Do = sh, Bo = ze, Lo = Gr, dh = Vr, fh = 1, Go = "[object Arguments]", zo = "[object Array]", en = "[object Object]", ph = Object.prototype, Vo = ph.hasOwnProperty;
6079
+ var sh = Qe, nr = Br, ch = oa, uh = Gp, lh = Dg, Do = sh, Bo = ze, Lo = Gr, dh = Vr, fh = 1, Go = "[object Arguments]", zo = "[object Array]", en = "[object Object]", ph = Object.prototype, Vo = ph.hasOwnProperty;
6070
6080
  function mh(e, t, n, r, o, i) {
6071
- var a = Bo(e), s = Bo(t), c = a ? zo : Do(e), l = s ? zo : Do(t);
6072
- c = c == Go ? en : c, l = l == Go ? en : l;
6073
- var u = c == en, m = l == en, f = c == l;
6081
+ var a = Bo(e), s = Bo(t), c = a ? zo : Do(e), u = s ? zo : Do(t);
6082
+ c = c == Go ? en : c, u = u == Go ? en : u;
6083
+ var l = c == en, m = u == en, f = c == u;
6074
6084
  if (f && Lo(e)) {
6075
6085
  if (!Lo(t))
6076
6086
  return !1;
6077
- a = !0, u = !1;
6087
+ a = !0, l = !1;
6078
6088
  }
6079
- if (f && !u)
6080
- return i || (i = new nr()), a || dh(e) ? ch(e, t, n, r, o, i) : lh(e, t, c, n, r, o, i);
6089
+ if (f && !l)
6090
+ return i || (i = new nr()), a || dh(e) ? ch(e, t, n, r, o, i) : uh(e, t, c, n, r, o, i);
6081
6091
  if (!(n & fh)) {
6082
- var p = u && Vo.call(e, "__wrapped__"), h = m && Vo.call(t, "__wrapped__");
6092
+ var p = l && Vo.call(e, "__wrapped__"), h = m && Vo.call(t, "__wrapped__");
6083
6093
  if (p || h) {
6084
6094
  var v = p ? e.value() : e, b = h ? t.value() : t;
6085
6095
  return i || (i = new nr()), o(v, b, n, r, i);
6086
6096
  }
6087
6097
  }
6088
- return f ? (i || (i = new nr()), uh(e, t, n, r, o, i)) : !1;
6098
+ return f ? (i || (i = new nr()), lh(e, t, n, r, o, i)) : !1;
6089
6099
  }
6090
6100
  var gh = mh, hh = gh, Wo = tt;
6091
6101
  function ga(e, t, n, r, o) {
@@ -6103,15 +6113,15 @@ function Sh(e, t, n, r) {
6103
6113
  }
6104
6114
  for (; ++o < i; ) {
6105
6115
  s = n[o];
6106
- var c = s[0], l = e[c], u = s[1];
6116
+ var c = s[0], u = e[c], l = s[1];
6107
6117
  if (a && s[2]) {
6108
- if (l === void 0 && !(c in e))
6118
+ if (u === void 0 && !(c in e))
6109
6119
  return !1;
6110
6120
  } else {
6111
6121
  var m = new yh();
6112
6122
  if (r)
6113
- var f = r(l, u, c, e, t, m);
6114
- if (!(f === void 0 ? vh(u, l, _h | wh, r, m) : f))
6123
+ var f = r(u, l, c, e, t, m);
6124
+ if (!(f === void 0 ? vh(l, u, _h | wh, r, m) : f))
6115
6125
  return !1;
6116
6126
  }
6117
6127
  }
@@ -6194,9 +6204,9 @@ var iy = wa, ay = iy;
6194
6204
  function sy(e) {
6195
6205
  return e == null ? "" : ay(e);
6196
6206
  }
6197
- var cy = sy, ly = ze, uy = Hr, dy = ey, fy = cy;
6207
+ var cy = sy, uy = ze, ly = Hr, dy = ey, fy = cy;
6198
6208
  function py(e, t) {
6199
- return ly(e) ? e : uy(e, t) ? [e] : dy(fy(e));
6209
+ return uy(e) ? e : ly(e, t) ? [e] : dy(fy(e));
6200
6210
  }
6201
6211
  var Gn = py, my = jr, gy = 1 / 0;
6202
6212
  function hy(e) {
@@ -6263,9 +6273,9 @@ var Xy = Qy, ev = Jy, tv = Xy, nv = Hr, rv = jt;
6263
6273
  function ov(e) {
6264
6274
  return nv(e) ? ev(rv(e)) : tv(e);
6265
6275
  }
6266
- var iv = ov, av = Rh, sv = Yy, cv = qr, lv = ze, uv = iv;
6276
+ var iv = ov, av = Rh, sv = Yy, cv = qr, uv = ze, lv = iv;
6267
6277
  function dv(e) {
6268
- return typeof e == "function" ? e : e == null ? cv : typeof e == "object" ? lv(e) ? sv(e[0], e[1]) : av(e) : uv(e);
6278
+ return typeof e == "function" ? e : e == null ? cv : typeof e == "object" ? uv(e) ? sv(e[0], e[1]) : av(e) : lv(e);
6269
6279
  }
6270
6280
  var fv = dv, pv = et, mv = function() {
6271
6281
  try {
@@ -6293,14 +6303,14 @@ function Ev(e, t, n, r) {
6293
6303
  return e;
6294
6304
  t = bv(t, e);
6295
6305
  for (var o = -1, i = t.length, a = i - 1, s = e; s != null && ++o < i; ) {
6296
- var c = Av(t[o]), l = n;
6306
+ var c = Av(t[o]), u = n;
6297
6307
  if (c === "__proto__" || c === "constructor" || c === "prototype")
6298
6308
  return e;
6299
6309
  if (o != a) {
6300
- var u = s[c];
6301
- l = r ? r(u, c, s) : void 0, l === void 0 && (l = qo(u) ? u : Cv(t[o + 1]) ? [] : {});
6310
+ var l = s[c];
6311
+ u = r ? r(l, c, s) : void 0, u === void 0 && (u = qo(l) ? l : Cv(t[o + 1]) ? [] : {});
6302
6312
  }
6303
- Sv(s, c, l), s = s[c];
6313
+ Sv(s, c, u), s = s[c];
6304
6314
  }
6305
6315
  return e;
6306
6316
  }
@@ -6312,7 +6322,7 @@ function Nv(e, t, n) {
6312
6322
  }
6313
6323
  return i;
6314
6324
  }
6315
- var Uv = Nv, $v = fa, Ov = $v(Object.getPrototypeOf, Object), Zr = Ov, Rv = aa, Fv = Zr, xv = la, Mv = ca, Dv = Object.getOwnPropertySymbols, Bv = Dv ? function(e) {
6325
+ var Uv = Nv, $v = fa, Ov = $v(Object.getPrototypeOf, Object), Zr = Ov, Rv = aa, Fv = Zr, xv = ua, Mv = ca, Dv = Object.getOwnPropertySymbols, Bv = Dv ? function(e) {
6316
6326
  for (var t = []; e; )
6317
6327
  Rv(t, xv(e)), e = Fv(e);
6318
6328
  return t;
@@ -6342,7 +6352,7 @@ function r_(e) {
6342
6352
  return e_(e, n_, t_);
6343
6353
  }
6344
6354
  var o_ = r_, i_ = ea, a_ = fv, s_ = Uv, c_ = o_;
6345
- function l_(e, t) {
6355
+ function u_(e, t) {
6346
6356
  if (e == null)
6347
6357
  return {};
6348
6358
  var n = i_(c_(e), function(r) {
@@ -6352,8 +6362,8 @@ function l_(e, t) {
6352
6362
  return t(r, o[0]);
6353
6363
  });
6354
6364
  }
6355
- var u_ = l_;
6356
- const d_ = /* @__PURE__ */ Xi(u_), f_ = !0, p_ = "", zn = (e, t) => `${e}${t}`.replace(/[^A-Z0-9+]/gi, ""), m_ = (e, t) => {
6365
+ var l_ = u_;
6366
+ const d_ = /* @__PURE__ */ Xi(l_), f_ = !0, p_ = "", zn = (e, t) => `${e}${t}`.replace(/[^A-Z0-9+]/gi, ""), m_ = (e, t) => {
6357
6367
  switch (t) {
6358
6368
  case "address":
6359
6369
  case "birthdate":
@@ -6517,7 +6527,7 @@ const d_ = /* @__PURE__ */ Xi(u_), f_ = !0, p_ = "", zn = (e, t) => `${e}${t}`.r
6517
6527
  ], J_ = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signInStep) === "CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED", Z_ = (e, { data: t }) => {
6518
6528
  var n;
6519
6529
  return ((n = t == null ? void 0 : t.nextStep) == null ? void 0 : n.signInStep) === "RESET_PASSWORD";
6520
- }, Q_ = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signInStep) === "CONFIRM_SIGN_UP", X_ = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signUpStep) === "COMPLETE_AUTO_SIGN_IN", ew = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signInStep) === "DONE", tw = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signUpStep) === "DONE", nw = (e, { data: t }) => (t == null ? void 0 : t.nextStep.resetPasswordStep) === "DONE", rw = (e, { data: t }) => (t == null ? void 0 : t.step) === "CONFIRM_ATTRIBUTE_COMPLETE", ow = (e, { data: t }) => (t == null ? void 0 : t.step) === "CONFIRM_ATTRIBUTE_WITH_CODE", iw = (e, { data: t }) => (t == null ? void 0 : t.step) === "SHOULD_CONFIRM_USER_ATTRIBUTE", aw = (e, { data: t }) => (t == null ? void 0 : t.step) === "RESET_PASSWORD", sw = (e, { data: t }) => (t == null ? void 0 : t.step) === "CONFIRM_SIGN_UP", cw = ({ step: e }) => q_.includes(e), lw = ({ step: e }) => e === "CONTINUE_SIGN_IN_WITH_TOTP_SETUP", uw = ({ step: e }) => e === "RESET_PASSWORD", dw = ({ step: e }) => e === "CONFIRM_RESET_PASSWORD_WITH_CODE", fw = ({ step: e }) => e === "CONFIRM_SIGN_UP", pw = (e, { data: t }) => {
6530
+ }, Q_ = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signInStep) === "CONFIRM_SIGN_UP", X_ = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signUpStep) === "COMPLETE_AUTO_SIGN_IN", ew = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signInStep) === "DONE", tw = (e, { data: t }) => (t == null ? void 0 : t.nextStep.signUpStep) === "DONE", nw = (e, { data: t }) => (t == null ? void 0 : t.nextStep.resetPasswordStep) === "DONE", rw = (e, { data: t }) => (t == null ? void 0 : t.step) === "CONFIRM_ATTRIBUTE_COMPLETE", ow = (e, { data: t }) => (t == null ? void 0 : t.step) === "CONFIRM_ATTRIBUTE_WITH_CODE", iw = (e, { data: t }) => (t == null ? void 0 : t.step) === "SHOULD_CONFIRM_USER_ATTRIBUTE", aw = (e, { data: t }) => (t == null ? void 0 : t.step) === "RESET_PASSWORD", sw = (e, { data: t }) => (t == null ? void 0 : t.step) === "CONFIRM_SIGN_UP", cw = ({ step: e }) => q_.includes(e), uw = ({ step: e }) => e === "CONTINUE_SIGN_IN_WITH_TOTP_SETUP", lw = ({ step: e }) => e === "RESET_PASSWORD", dw = ({ step: e }) => e === "CONFIRM_RESET_PASSWORD_WITH_CODE", fw = ({ step: e }) => e === "CONFIRM_SIGN_UP", pw = (e, { data: t }) => {
6521
6531
  const { phone_number_verified: n, email_verified: r } = t;
6522
6532
  return (r === void 0 || r === "false") && (n === void 0 || n === "false");
6523
6533
  }, mw = (e, { data: t }) => t.message === "User is already confirmed.", Vn = {
@@ -6536,9 +6546,9 @@ const d_ = /* @__PURE__ */ Xi(u_), f_ = !0, p_ = "", zn = (e, t) => `${e}${t}`.r
6536
6546
  shouldConfirmSignInWithNewPassword: J_,
6537
6547
  shouldConfirmSignUp: fw,
6538
6548
  shouldConfirmSignUpFromSignIn: Q_,
6539
- shouldResetPassword: uw,
6549
+ shouldResetPassword: lw,
6540
6550
  shouldResetPasswordFromSignIn: Z_,
6541
- shouldSetupTotp: lw,
6551
+ shouldSetupTotp: uw,
6542
6552
  shouldVerifyAttribute: pw
6543
6553
  };
6544
6554
  var gw = Jr, hw = Wt;
@@ -6560,11 +6570,11 @@ var _w = vw, ww = _w, Sw = ww(), bw = Sw, Sn = { exports: {} };
6560
6570
  Sn.exports;
6561
6571
  (function(e, t) {
6562
6572
  var n = Oe, r = t && !t.nodeType && t, o = r && !0 && e && !e.nodeType && e, i = o && o.exports === r, a = i ? n.Buffer : void 0, s = a ? a.allocUnsafe : void 0;
6563
- function c(l, u) {
6564
- if (u)
6565
- return l.slice();
6566
- var m = l.length, f = s ? s(m) : new l.constructor(m);
6567
- return l.copy(f), f;
6573
+ function c(u, l) {
6574
+ if (l)
6575
+ return u.slice();
6576
+ var m = u.length, f = s ? s(m) : new u.constructor(m);
6577
+ return u.copy(f), f;
6568
6578
  }
6569
6579
  e.exports = c;
6570
6580
  })(Sn, Sn.exports);
@@ -6634,19 +6644,19 @@ var rS = nS, oS = rS, iS = Qr;
6634
6644
  function aS(e) {
6635
6645
  return oS(e, iS(e));
6636
6646
  }
6637
- var sS = aS, Xo = Ca, cS = Cw, lS = Pw, uS = Nw, dS = Dw, ei = Lr, ti = ze, fS = zw, pS = Gr, mS = xr, gS = Ge, hS = Qw, yS = Vr, ni = Ea, vS = sS;
6647
+ var sS = aS, Xo = Ca, cS = Cw, uS = Pw, lS = Nw, dS = Dw, ei = Lr, ti = ze, fS = zw, pS = Gr, mS = xr, gS = Ge, hS = Qw, yS = Vr, ni = Ea, vS = sS;
6638
6648
  function _S(e, t, n, r, o, i, a) {
6639
- var s = ni(e, n), c = ni(t, n), l = a.get(c);
6640
- if (l) {
6641
- Xo(e, n, l);
6649
+ var s = ni(e, n), c = ni(t, n), u = a.get(c);
6650
+ if (u) {
6651
+ Xo(e, n, u);
6642
6652
  return;
6643
6653
  }
6644
- var u = i ? i(s, c, n + "", e, t, a) : void 0, m = u === void 0;
6654
+ var l = i ? i(s, c, n + "", e, t, a) : void 0, m = l === void 0;
6645
6655
  if (m) {
6646
6656
  var f = ti(c), p = !f && pS(c), h = !f && !p && yS(c);
6647
- u = c, f || p || h ? ti(s) ? u = s : fS(s) ? u = uS(s) : p ? (m = !1, u = cS(c, !0)) : h ? (m = !1, u = lS(c, !0)) : u = [] : hS(c) || ei(c) ? (u = s, ei(s) ? u = vS(s) : (!gS(s) || mS(s)) && (u = dS(c))) : m = !1;
6657
+ l = c, f || p || h ? ti(s) ? l = s : fS(s) ? l = lS(s) : p ? (m = !1, l = cS(c, !0)) : h ? (m = !1, l = uS(c, !0)) : l = [] : hS(c) || ei(c) ? (l = s, ei(s) ? l = vS(s) : (!gS(s) || mS(s)) && (l = dS(c))) : m = !1;
6648
6658
  }
6649
- m && (a.set(c, u), o(u, c, r, i, a), a.delete(c)), Xo(e, n, u);
6659
+ m && (a.set(c, l), o(l, c, r, i, a), a.delete(c)), Xo(e, n, l);
6650
6660
  }
6651
6661
  var wS = _S, SS = Br, bS = Ca, CS = bw, AS = wS, ES = Ge, IS = Qr, TS = Ea;
6652
6662
  function Ia(e, t, n, r, o) {
@@ -6732,8 +6742,8 @@ function cb(e) {
6732
6742
  return t;
6733
6743
  });
6734
6744
  }
6735
- var lb = cb, ub = PS, db = lb, fb = db(function(e, t, n) {
6736
- ub(e, t, n);
6745
+ var ub = cb, lb = PS, db = ub, fb = db(function(e, t, n) {
6746
+ lb(e, t, n);
6737
6747
  }), pb = fb;
6738
6748
  const mb = /* @__PURE__ */ Xi(pb), Wn = async (e, t, n, r) => {
6739
6749
  const o = await Promise.all(r.map((a) => a(e, t, n))), i = mb({}, ...o);
@@ -6743,8 +6753,8 @@ const mb = /* @__PURE__ */ Xi(pb), Wn = async (e, t, n, r) => {
6743
6753
  return hb(e) ? Object.entries(e).map(([t, n]) => Object.keys(n)[0]) : Object.keys(e);
6744
6754
  }, qe = {
6745
6755
  async getAmplifyConfig() {
6746
- var s, c, l, u;
6747
- const e = Ps.getConfig(), t = (s = e.Auth) == null ? void 0 : s.Cognito, { loginWith: n, userAttributes: r } = ((c = e.Auth) == null ? void 0 : c.Cognito) ?? {}, o = n ? Object.entries(n).filter(([m, f]) => m !== "oauth").filter(([m, f]) => !!f).map((m) => m[0] === "phone" ? "phone_number" : m[0]) : void 0, i = yb(r), a = (l = n == null ? void 0 : n.oauth) != null && l.providers ? (u = n.oauth.providers) == null ? void 0 : u.map((m) => m.toString().toLowerCase()) : void 0;
6756
+ var s, c, u, l;
6757
+ const e = Ps.getConfig(), t = (s = e.Auth) == null ? void 0 : s.Cognito, { loginWith: n, userAttributes: r } = ((c = e.Auth) == null ? void 0 : c.Cognito) ?? {}, o = n ? Object.entries(n).filter(([m, f]) => m !== "oauth").filter(([m, f]) => !!f).map((m) => m[0] === "phone" ? "phone_number" : m[0]) : void 0, i = yb(r), a = (u = n == null ? void 0 : n.oauth) != null && u.providers ? (l = n.oauth.providers) == null ? void 0 : l.map((m) => m.toString().toLowerCase()) : void 0;
6748
6758
  return {
6749
6759
  ...t,
6750
6760
  loginMechanisms: o,
@@ -7925,7 +7935,7 @@ function Ub(e) {
7925
7935
  actions: {
7926
7936
  ...Ht,
7927
7937
  forwardToActor: Tb([
7928
- { cond: "hasActor", actions: ou(({ actorRef: o }) => o) }
7938
+ { cond: "hasActor", actions: ol(({ actorRef: o }) => o) }
7929
7939
  ]),
7930
7940
  setActorDoneData: De({
7931
7941
  actorDoneData: (o, i) => ({
@@ -7941,10 +7951,10 @@ function Ub(e) {
7941
7951
  }),
7942
7952
  applyAmplifyConfig: De({
7943
7953
  config(o, { data: i }) {
7944
- const { loginMechanisms: a = i.loginMechanisms ?? [], signUpAttributes: s = i.signUpAttributes ?? [], socialProviders: c = i.socialProviders ?? [], initialState: l, formFields: u, passwordSettings: m = i.passwordFormat ?? {} } = o.config;
7954
+ const { loginMechanisms: a = i.loginMechanisms ?? [], signUpAttributes: s = i.signUpAttributes ?? [], socialProviders: c = i.socialProviders ?? [], initialState: u, formFields: l, passwordSettings: m = i.passwordFormat ?? {} } = o.config;
7945
7955
  return a.length === 0 && a.push("username"), {
7946
- formFields: $b(u) ?? {},
7947
- initialState: l,
7956
+ formFields: $b(l) ?? {},
7957
+ initialState: u,
7948
7958
  loginMechanisms: a,
7949
7959
  passwordSettings: m,
7950
7960
  signUpAttributes: s,
@@ -8251,7 +8261,7 @@ const pe = {
8251
8261
  t.value = !1;
8252
8262
  }
8253
8263
  return (o, i) => {
8254
- const a = _e;
8264
+ const a = we;
8255
8265
  return t.value ? (U(), X("div", Rb, [
8256
8266
  x("div", Fb, [
8257
8267
  xb,
@@ -8289,7 +8299,7 @@ const pe = {
8289
8299
  }
8290
8300
  });
8291
8301
  function Db(e) {
8292
- return ls() ? (li(e), !0) : !1;
8302
+ return us() ? (ui(e), !0) : !1;
8293
8303
  }
8294
8304
  function Pa(e) {
8295
8305
  let t = 0, n, r;
@@ -8308,14 +8318,14 @@ function Lb(e) {
8308
8318
  }
8309
8319
  function Gb(e, t) {
8310
8320
  t === void 0 && (t = Lb);
8311
- var n = us(e) ? e : so(e), r = so(t(n.value)), o = function(i) {
8321
+ var n = ls(e) ? e : so(e), r = so(t(n.value)), o = function(i) {
8312
8322
  n.value.send(i);
8313
8323
  };
8314
8324
  return ds(n, function(i, a, s) {
8315
8325
  r.value = t(i);
8316
8326
  var c = i.subscribe({
8317
- next: function(l) {
8318
- return r.value = l;
8327
+ next: function(u) {
8328
+ return r.value = u;
8319
8329
  },
8320
8330
  error: ii,
8321
8331
  complete: ii
@@ -8339,17 +8349,17 @@ const zb = (e) => {
8339
8349
  n.value = "unauthenticated";
8340
8350
  }, s = Vs(
8341
8351
  t,
8342
- (c, l) => wi(c, l, { onSignIn: i, onSignOut: a })
8352
+ (c, u) => wi(c, u, { onSignIn: i, onSignOut: a })
8343
8353
  );
8344
8354
  return fi().then(() => {
8345
8355
  n.value = "authenticated";
8346
8356
  }).catch(() => {
8347
8357
  n.value = "unauthenticated";
8348
- }), li(() => {
8358
+ }), ui(() => {
8349
8359
  s();
8350
8360
  }), { authStatus: n, service: t, send: o, state: r };
8351
- }), he = Pa(() => {
8352
- const { authStatus: e, state: t, send: n } = Xr(), r = ui({});
8361
+ }), ye = Pa(() => {
8362
+ const { authStatus: e, state: t, send: n } = Xr(), r = li({});
8353
8363
  return fs(() => {
8354
8364
  const o = qs({ send: n, state: t.value });
8355
8365
  for (const a of Object.keys(o))
@@ -8408,7 +8418,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8408
8418
  describedBy: null
8409
8419
  },
8410
8420
  setup(e) {
8411
- const t = e, n = N("Show password"), r = N("Hide password"), o = ce("password"), i = ce(n), a = Math.floor(Math.random() * 999999), { name: s, label: c, autocomplete: l, hasError: u, labelHidden: m, placeholder: f, required: p } = re(t), h = ce("");
8421
+ const t = e, n = N("Show password"), r = N("Hide password"), o = ce("password"), i = ce(n), a = Math.floor(Math.random() * 999999), { name: s, label: c, autocomplete: u, hasError: l, labelHidden: m, placeholder: f, required: p } = re(t), h = ce("");
8412
8422
  function v() {
8413
8423
  i.value = i.value === n ? r : n, o.value = o.value === "password" ? "text" : "password";
8414
8424
  }
@@ -8451,11 +8461,11 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8451
8461
  id: "amplify-field-" + d(a),
8452
8462
  "data-amplify-password": "true",
8453
8463
  name: d(s),
8454
- autocomplete: d(l),
8464
+ autocomplete: d(u),
8455
8465
  required: d(p) ?? !0,
8456
8466
  placeholder: d(b),
8457
8467
  type: o.value,
8458
- "aria-invalid": d(u),
8468
+ "aria-invalid": d(l),
8459
8469
  "aria-describedBy": e.describedBy,
8460
8470
  autocapitalize: "off"
8461
8471
  }), null, 16, ["modelValue", "class", "id", "name", "autocomplete", "required", "placeholder", "type", "aria-invalid", "aria-describedBy"])
@@ -8518,8 +8528,8 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8518
8528
  return (a, s) => (U(), X("select", {
8519
8529
  onChange: s[0] || (s[0] = (c) => i(c))
8520
8530
  }, [
8521
- (U(!0), X(He, null, An(d(r), (c, l) => (U(), X("option", {
8522
- key: l,
8531
+ (U(!0), X(He, null, An(d(r), (c, u) => (U(), X("option", {
8532
+ key: u,
8523
8533
  value: c,
8524
8534
  selected: c == d(o) ? !0 : void 0
8525
8535
  }, F(c), 9, e1))), 128))
@@ -8548,13 +8558,13 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8548
8558
  describedBy: null
8549
8559
  },
8550
8560
  setup(e) {
8551
- const t = e, { label: n, name: r, placeholder: o, autocomplete: i, labelHidden: a, required: s, dialCode: c, dialCodeList: l } = re(t), u = Math.floor(Math.random() * 999999), m = Math.floor(Math.random() * 999999);
8561
+ const t = e, { label: n, name: r, placeholder: o, autocomplete: i, labelHidden: a, required: s, dialCode: c, dialCodeList: u } = re(t), l = Math.floor(Math.random() * 999999), m = Math.floor(Math.random() * 999999);
8552
8562
  return (f, p) => {
8553
8563
  const h = Hn, v = t1, b = me, g = jn;
8554
8564
  return U(), V(b, { class: "amplify-flex amplify-field amplify-textfield amplify-phonenumberfield" }, {
8555
8565
  default: _(() => [
8556
8566
  C(h, Ee({
8557
- for: "amplify-field-" + d(u),
8567
+ for: "amplify-field-" + d(l),
8558
8568
  class: ["amplify-label", { "amplify-visually-hidden": d(a) }]
8559
8569
  }, f.$attrs), {
8560
8570
  default: _(() => [
@@ -8588,7 +8598,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8588
8598
  autocomplete: "tel-country-code",
8589
8599
  "aria-label": "country code",
8590
8600
  name: "country_code",
8591
- options: d(l),
8601
+ options: d(u),
8592
8602
  "select-value": d(c)
8593
8603
  }, null, 8, ["id", "options", "select-value"]),
8594
8604
  C(b, { class: "amplify-flex amplify-select__icon" }, {
@@ -8610,7 +8620,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8610
8620
  default: _(() => [
8611
8621
  C(g, {
8612
8622
  class: "amplify-input amplify-field-group__control",
8613
- id: "amplify-field-" + d(u),
8623
+ id: "amplify-field-" + d(l),
8614
8624
  autocomplete: d(i),
8615
8625
  name: d(r),
8616
8626
  required: d(s) ?? !0,
@@ -8638,10 +8648,10 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8638
8648
  formField: { default: () => ({}) }
8639
8649
  },
8640
8650
  setup(e) {
8641
- const t = e, { name: n, formField: r } = re(t), { validationErrors: o } = re(he()), { type: i } = r.value, a = i === "password", s = Vb(12), c = D(() => ec(o.value[n.value])), l = D(() => {
8651
+ const t = e, { name: n, formField: r } = re(t), { validationErrors: o } = re(ye()), { type: i } = r.value, a = i === "password", s = Vb(12), c = D(() => ec(o.value[n.value])), u = D(() => {
8642
8652
  var m;
8643
8653
  return ((m = c.value) == null ? void 0 : m.length) > 0;
8644
- }), u = D(() => l.value ? s : void 0);
8654
+ }), l = D(() => u.value ? s : void 0);
8645
8655
  return (m, f) => (U(), X(He, null, [
8646
8656
  a ? (U(), V(ka, {
8647
8657
  key: 0,
@@ -8651,8 +8661,8 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8651
8661
  required: d(r).isRequired,
8652
8662
  "label-hidden": d(r).labelHidden,
8653
8663
  autocomplete: d(r).autocomplete,
8654
- hasError: d(l),
8655
- describedBy: d(u)
8664
+ hasError: d(u),
8665
+ describedBy: d(l)
8656
8666
  }, null, 8, ["name", "label", "placeholder", "required", "label-hidden", "autocomplete", "hasError", "describedBy"])) : (U(), V(r1, {
8657
8667
  key: 1,
8658
8668
  name: d(n),
@@ -8664,12 +8674,12 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8664
8674
  "dial-code": d(r).dialCode,
8665
8675
  "dial-code-list": d(r).dialCodeList,
8666
8676
  type: d(r).type,
8667
- hasError: d(l),
8668
- describedBy: d(u)
8677
+ hasError: d(u),
8678
+ describedBy: d(l)
8669
8679
  }, null, 8, ["name", "label", "placeholder", "required", "label-hidden", "autocomplete", "dial-code", "dial-code-list", "type", "hasError", "describedBy"])),
8670
- d(l) ? (U(), X("div", {
8680
+ d(u) ? (U(), X("div", {
8671
8681
  key: 2,
8672
- id: d(u)
8682
+ id: d(l)
8673
8683
  }, [
8674
8684
  (U(!0), X(He, null, An(d(c), (p, h) => (U(), X("p", {
8675
8685
  key: h,
@@ -8689,7 +8699,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8689
8699
  const t = e, { route: n } = re(t), { state: r } = Xr();
8690
8700
  let o = [];
8691
8701
  return ps(() => {
8692
- o = il(n.value, r.value);
8702
+ o = iu(n.value, r.value);
8693
8703
  }), (i, a) => (U(!0), X(He, null, An(d(o), ([s, c]) => (U(), V(Na, {
8694
8704
  name: s,
8695
8705
  key: s,
@@ -8702,11 +8712,11 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8702
8712
  provider: null
8703
8713
  },
8704
8714
  setup(e) {
8705
- const t = e, { provider: n } = re(t), { toFederatedSignIn: r } = he(), o = () => {
8715
+ const t = e, { provider: n } = re(t), { toFederatedSignIn: r } = ye(), o = () => {
8706
8716
  r({ provider: n.value });
8707
8717
  };
8708
8718
  return (i, a) => {
8709
- const s = _e;
8719
+ const s = we;
8710
8720
  return U(), V(s, {
8711
8721
  class: "amplify-authenticator__federated-button",
8712
8722
  type: "button",
@@ -8739,7 +8749,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8739
8749
  xmlns: "http://www.w3.org/2000/svg"
8740
8750
  }, [
8741
8751
  /* @__PURE__ */ x("path", { d: "M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z" })
8742
- ], -1), c1 = { class: "amplify-text" }, l1 = /* @__PURE__ */ x("svg", {
8752
+ ], -1), c1 = { class: "amplify-text" }, u1 = /* @__PURE__ */ x("svg", {
8743
8753
  "aria-label": "Facebook icon",
8744
8754
  class: "amplify-icon",
8745
8755
  viewBox: "0 0 279 538"
@@ -8748,7 +8758,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8748
8758
  d: "M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",
8749
8759
  fill: "#1877F2"
8750
8760
  })
8751
- ], -1), u1 = { class: "amplify-text" }, d1 = /* @__PURE__ */ x("svg", {
8761
+ ], -1), l1 = { class: "amplify-text" }, d1 = /* @__PURE__ */ x("svg", {
8752
8762
  "aria-label": "Google icon",
8753
8763
  class: "amplify-icon",
8754
8764
  viewBox: "0 0 256 262",
@@ -8774,7 +8784,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8774
8784
  ], -1), f1 = { class: "amplify-text" }, p1 = ["data-label"], eo = /* @__PURE__ */ q({
8775
8785
  __name: "federated-sign-in",
8776
8786
  setup(e) {
8777
- const t = he(), { route: n, socialProviders: r } = t, o = r == null ? void 0 : r.includes("amazon"), i = r == null ? void 0 : r.includes("apple"), a = r == null ? void 0 : r.includes("facebook"), s = r == null ? void 0 : r.includes("google"), c = a || s || o || i, { getSignInWithFederationText: l, getOrText: u } = Ie, m = D(() => cr), f = D(() => l(n, "amazon")), p = D(() => l(n, "apple")), h = D(() => l(n, "facebook")), v = D(() => l(n, "google")), b = D(() => u());
8787
+ const t = ye(), { route: n, socialProviders: r } = t, o = r == null ? void 0 : r.includes("amazon"), i = r == null ? void 0 : r.includes("apple"), a = r == null ? void 0 : r.includes("facebook"), s = r == null ? void 0 : r.includes("google"), c = a || s || o || i, { getSignInWithFederationText: u, getOrText: l } = Ie, m = D(() => cr), f = D(() => u(n, "amazon")), p = D(() => u(n, "apple")), h = D(() => u(n, "facebook")), v = D(() => u(n, "google")), b = D(() => l());
8778
8788
  return (g, w) => {
8779
8789
  const y = me;
8780
8790
  return d(c) ? (U(), V(y, {
@@ -8807,8 +8817,8 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8807
8817
  provider: d(m).Facebook
8808
8818
  }, {
8809
8819
  default: _(() => [
8810
- l1,
8811
- x("span", u1, F(d(h)), 1)
8820
+ u1,
8821
+ x("span", l1, F(d(h)), 1)
8812
8822
  ]),
8813
8823
  _: 1
8814
8824
  }, 8, ["provider"])) : j("", !0),
@@ -8835,7 +8845,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8835
8845
  }), m1 = /* @__PURE__ */ x("legend", { class: "amplify-visually-hidden" }, "Sign in", -1), g1 = { "data-amplify-footer": "" }, Ua = /* @__PURE__ */ q({
8836
8846
  __name: "sign-in",
8837
8847
  setup(e) {
8838
- const t = he(), { submitForm: n, updateForm: r, toForgotPassword: o } = t, { error: i, isPending: a } = re(t), { getForgotPasswordText: s, getSignInText: c, getSigningInText: l } = Ie, u = D(() => s()), m = D(() => c()), f = D(() => l()), p = (b) => {
8848
+ const t = ye(), { submitForm: n, updateForm: r, toForgotPassword: o } = t, { error: i, isPending: a } = re(t), { getForgotPasswordText: s, getSignInText: c, getSigningInText: u } = Ie, l = D(() => s()), m = D(() => c()), f = D(() => u()), p = (b) => {
8839
8849
  const { name: g, value: w } = b.target;
8840
8850
  r({ name: g, value: w });
8841
8851
  }, h = (b) => {
@@ -8844,7 +8854,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8844
8854
  o();
8845
8855
  };
8846
8856
  return (b, g) => {
8847
- const w = Fe, y = Re, S = _e, E = me, T = Ue, P = Ne;
8857
+ const w = Fe, y = Re, S = we, E = me, T = Ue, P = Ne;
8848
8858
  return I(b.$slots, "signInSlotI", oe(ie(b.$attrs)), () => [
8849
8859
  I(b.$slots, "header"),
8850
8860
  C(E, oe(ie(b.$attrs)), {
@@ -8852,7 +8862,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8852
8862
  C(T, {
8853
8863
  "data-amplify-authenticator-signin": "",
8854
8864
  onInput: p,
8855
- onSubmit: ue(h, ["prevent"]),
8865
+ onSubmit: le(h, ["prevent"]),
8856
8866
  method: "post"
8857
8867
  }, {
8858
8868
  formt: _(({ slotData: k }) => [
@@ -8921,7 +8931,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8921
8931
  type: "button"
8922
8932
  }, {
8923
8933
  default: _(() => [
8924
- M(F(d(u)), 1)
8934
+ M(F(d(l)), 1)
8925
8935
  ]),
8926
8936
  _: 1
8927
8937
  })
@@ -8941,7 +8951,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8941
8951
  }), Oa = /* @__PURE__ */ q({
8942
8952
  __name: "sign-up",
8943
8953
  setup(e) {
8944
- const t = he(), { submitForm: n, updateBlur: r, updateForm: o } = t, { error: i, hasValidationErrors: a, isPending: s } = re(t), { getCreateAccountText: c } = Ie, l = D(() => c()), u = (p) => {
8954
+ const t = ye(), { submitForm: n, updateBlur: r, updateForm: o } = t, { error: i, hasValidationErrors: a, isPending: s } = re(t), { getCreateAccountText: c } = Ie, u = D(() => c()), l = (p) => {
8945
8955
  const { checked: h, name: v, type: b, value: g } = p.target;
8946
8956
  o({
8947
8957
  name: v,
@@ -8956,15 +8966,15 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8956
8966
  n($e(p));
8957
8967
  };
8958
8968
  return (p, h) => {
8959
- const v = Fe, b = Re, g = _e, w = me, y = Ue, S = Ne;
8969
+ const v = Fe, b = Re, g = we, w = me, y = Ue, S = Ne;
8960
8970
  return I(p.$slots, "signUpSlotI", oe(ie(p.$attrs)), () => [
8961
8971
  I(p.$slots, "header"),
8962
8972
  C(w, oe(ie(p.$attrs)), {
8963
8973
  default: _(() => [
8964
8974
  C(y, {
8965
- onInput: u,
8975
+ onInput: l,
8966
8976
  onBlurCapture: m,
8967
- onSubmit: ue(f, ["prevent"])
8977
+ onSubmit: le(f, ["prevent"])
8968
8978
  }, {
8969
8979
  default: _(() => [
8970
8980
  C(eo),
@@ -8997,7 +9007,7 @@ const Hn = /* @__PURE__ */ En(Wb, [["render", Hb]]), Yb = ["aria-label", "aria-c
8997
9007
  disabled: d(s) || d(a)
8998
9008
  }, {
8999
9009
  default: _(() => [
9000
- M(F(d(l)), 1)
9010
+ M(F(d(u)), 1)
9001
9011
  ]),
9002
9012
  _: 1
9003
9013
  }, 8, ["disabled"])
@@ -9060,7 +9070,7 @@ const v1 = /* @__PURE__ */ En(h1, [["render", y1]]), _1 = ["tabindex", "aria-sel
9060
9070
  role: "tab"
9061
9071
  }, F(d(o)), 11, _1));
9062
9072
  }
9063
- }), S1 = "4.2.9", b1 = {};
9073
+ }), S1 = "4.2.11", b1 = {};
9064
9074
  function C1(e, t) {
9065
9075
  return I(e.$slots, "textI", oe(ie(e.$attrs)), () => [
9066
9076
  x("span", Ee(e.$attrs, { "data-amplify-text": "" }), [
@@ -9093,7 +9103,7 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9093
9103
  }), Fa = /* @__PURE__ */ q({
9094
9104
  __name: "confirm-sign-up",
9095
9105
  setup(e) {
9096
- const t = he(), { codeDeliveryDetails: n, error: r, isPending: o } = re(t), { resendCode: i, submitForm: a, updateForm: s } = t, { getDeliveryMethodText: c, getDeliveryMessageText: l, getResendCodeText: u, getConfirmText: m } = Ie, f = D(() => c(n.value)), p = D(() => u()), h = D(() => m()), v = D(() => l(n.value)), b = (S) => {
9106
+ const t = ye(), { codeDeliveryDetails: n, error: r, isPending: o } = re(t), { resendCode: i, submitForm: a, updateForm: s } = t, { getDeliveryMethodText: c, getDeliveryMessageText: u, getResendCodeText: l, getConfirmText: m } = Ie, f = D(() => c(n.value)), p = D(() => l()), h = D(() => m()), v = D(() => u(n.value)), b = (S) => {
9097
9107
  const { name: E, value: T } = S.target;
9098
9108
  s({ name: E, value: T });
9099
9109
  }, g = (S) => {
@@ -9104,13 +9114,13 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9104
9114
  i();
9105
9115
  };
9106
9116
  return (S, E) => {
9107
- const T = Je, P = Ra, k = Fe, $ = Re, O = _e, R = Ne, B = me, G = Ue;
9117
+ const T = Je, P = Ra, k = Fe, $ = Re, O = we, R = Ne, B = me, G = Ue;
9108
9118
  return I(S.$slots, "confirmSignUpSlotI", oe(ie(S.$attrs)), () => [
9109
9119
  C(B, oe(ie(S.$attrs)), {
9110
9120
  default: _(() => [
9111
9121
  C(G, {
9112
9122
  onInput: b,
9113
- onSubmit: ue(g, ["prevent"])
9123
+ onSubmit: le(g, ["prevent"])
9114
9124
  }, {
9115
9125
  default: _(() => [
9116
9126
  C(B, { class: "amplify-flex amplify-authenticator__column" }, {
@@ -9168,7 +9178,7 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9168
9178
  variation: "default",
9169
9179
  style: { "font-weight": "normal" },
9170
9180
  type: "button",
9171
- onClick: ue(y, ["prevent"])
9181
+ onClick: le(y, ["prevent"])
9172
9182
  }, {
9173
9183
  default: _(() => [
9174
9184
  M(F(d(p)), 1)
@@ -9194,7 +9204,7 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9194
9204
  }), xa = /* @__PURE__ */ q({
9195
9205
  __name: "confirm-sign-in",
9196
9206
  setup(e) {
9197
- const t = he(), { submitForm: n, toSignIn: r, updateForm: o } = t, { error: i, isPending: a, challengeName: s } = re(t), c = D(() => s.value), { getBackToSignInText: l, getConfirmText: u, getChallengeText: m } = Ie, f = D(() => m(c.value)), p = D(() => l()), h = D(() => u()), v = (w) => {
9207
+ const t = ye(), { submitForm: n, toSignIn: r, updateForm: o } = t, { error: i, isPending: a, challengeName: s } = re(t), c = D(() => s.value), { getBackToSignInText: u, getConfirmText: l, getChallengeText: m } = Ie, f = D(() => m(c.value)), p = D(() => u()), h = D(() => l()), v = (w) => {
9198
9208
  const { name: y, value: S } = w.target;
9199
9209
  o({ name: y, value: S });
9200
9210
  }, b = (w) => {
@@ -9203,14 +9213,14 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9203
9213
  r();
9204
9214
  };
9205
9215
  return (w, y) => {
9206
- const S = Je, E = me, T = Re, P = _e, k = Ne, $ = Fe, O = Ue;
9216
+ const S = Je, E = me, T = Re, P = we, k = Ne, $ = Fe, O = Ue;
9207
9217
  return I(w.$slots, "confirmSignInSlotI", oe(ie(w.$attrs)), () => [
9208
9218
  C(E, oe(ie(w.$attrs)), {
9209
9219
  default: _(() => [
9210
9220
  C(O, {
9211
9221
  "data-amplify-authenticator-confirmsignin": "",
9212
9222
  onInput: v,
9213
- onSubmit: ue(b, ["prevent"])
9223
+ onSubmit: le(b, ["prevent"])
9214
9224
  }, {
9215
9225
  default: _(() => [
9216
9226
  C($, {
@@ -9263,7 +9273,7 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9263
9273
  variation: "link",
9264
9274
  style: { "font-weight": "normal" },
9265
9275
  type: "button",
9266
- onClick: ue(g, ["prevent"])
9276
+ onClick: le(g, ["prevent"])
9267
9277
  }, {
9268
9278
  default: _(() => [
9269
9279
  M(F(d(p)), 1)
@@ -9289,7 +9299,7 @@ const Ra = /* @__PURE__ */ En(b1, [["render", C1]]), Je = q({
9289
9299
  });
9290
9300
  var Yt = {}, A1 = function() {
9291
9301
  return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
9292
- }, Ma = {}, we = {};
9302
+ }, Ma = {}, Se = {};
9293
9303
  let to;
9294
9304
  const E1 = [
9295
9305
  0,
@@ -9335,31 +9345,31 @@ const E1 = [
9335
9345
  3532,
9336
9346
  3706
9337
9347
  ];
9338
- we.getSymbolSize = function(t) {
9348
+ Se.getSymbolSize = function(t) {
9339
9349
  if (!t)
9340
9350
  throw new Error('"version" cannot be null or undefined');
9341
9351
  if (t < 1 || t > 40)
9342
9352
  throw new Error('"version" should be in range from 1 to 40');
9343
9353
  return t * 4 + 17;
9344
9354
  };
9345
- we.getSymbolTotalCodewords = function(t) {
9355
+ Se.getSymbolTotalCodewords = function(t) {
9346
9356
  return E1[t];
9347
9357
  };
9348
- we.getBCHDigit = function(e) {
9358
+ Se.getBCHDigit = function(e) {
9349
9359
  let t = 0;
9350
9360
  for (; e !== 0; )
9351
9361
  t++, e >>>= 1;
9352
9362
  return t;
9353
9363
  };
9354
- we.setToSJISFunction = function(t) {
9364
+ Se.setToSJISFunction = function(t) {
9355
9365
  if (typeof t != "function")
9356
9366
  throw new Error('"toSJISFunc" is not a valid function.');
9357
9367
  to = t;
9358
9368
  };
9359
- we.isKanjiModeEnabled = function() {
9369
+ Se.isKanjiModeEnabled = function() {
9360
9370
  return typeof to < "u";
9361
9371
  };
9362
- we.toSJIS = function(t) {
9372
+ Se.toSJIS = function(t) {
9363
9373
  return to(t);
9364
9374
  };
9365
9375
  var Yn = {};
@@ -9438,7 +9448,7 @@ Kt.prototype.isReserved = function(e, t) {
9438
9448
  };
9439
9449
  var T1 = Kt, Ba = {};
9440
9450
  (function(e) {
9441
- const t = we.getSymbolSize;
9451
+ const t = Se.getSymbolSize;
9442
9452
  e.getRowColCoords = function(r) {
9443
9453
  if (r === 1)
9444
9454
  return [];
@@ -9457,7 +9467,7 @@ var T1 = Kt, Ba = {};
9457
9467
  };
9458
9468
  })(Ba);
9459
9469
  var La = {};
9460
- const P1 = we.getSymbolSize, ai = 7;
9470
+ const P1 = Se.getSymbolSize, ai = 7;
9461
9471
  La.getPositions = function(t) {
9462
9472
  const n = P1(t);
9463
9473
  return [
@@ -9493,12 +9503,12 @@ var Ga = {};
9493
9503
  return e.isValid(o) ? parseInt(o, 10) : void 0;
9494
9504
  }, e.getPenaltyN1 = function(o) {
9495
9505
  const i = o.size;
9496
- let a = 0, s = 0, c = 0, l = null, u = null;
9506
+ let a = 0, s = 0, c = 0, u = null, l = null;
9497
9507
  for (let m = 0; m < i; m++) {
9498
- s = c = 0, l = u = null;
9508
+ s = c = 0, u = l = null;
9499
9509
  for (let f = 0; f < i; f++) {
9500
9510
  let p = o.get(m, f);
9501
- p === l ? s++ : (s >= 5 && (a += t.N1 + (s - 5)), l = p, s = 1), p = o.get(f, m), p === u ? c++ : (c >= 5 && (a += t.N1 + (c - 5)), u = p, c = 1);
9511
+ p === u ? s++ : (s >= 5 && (a += t.N1 + (s - 5)), u = p, s = 1), p = o.get(f, m), p === l ? c++ : (c >= 5 && (a += t.N1 + (c - 5)), l = p, c = 1);
9502
9512
  }
9503
9513
  s >= 5 && (a += t.N1 + (s - 5)), c >= 5 && (a += t.N1 + (c - 5));
9504
9514
  }
@@ -9508,17 +9518,17 @@ var Ga = {};
9508
9518
  let a = 0;
9509
9519
  for (let s = 0; s < i - 1; s++)
9510
9520
  for (let c = 0; c < i - 1; c++) {
9511
- const l = o.get(s, c) + o.get(s, c + 1) + o.get(s + 1, c) + o.get(s + 1, c + 1);
9512
- (l === 4 || l === 0) && a++;
9521
+ const u = o.get(s, c) + o.get(s, c + 1) + o.get(s + 1, c) + o.get(s + 1, c + 1);
9522
+ (u === 4 || u === 0) && a++;
9513
9523
  }
9514
9524
  return a * t.N2;
9515
9525
  }, e.getPenaltyN3 = function(o) {
9516
9526
  const i = o.size;
9517
9527
  let a = 0, s = 0, c = 0;
9518
- for (let l = 0; l < i; l++) {
9528
+ for (let u = 0; u < i; u++) {
9519
9529
  s = c = 0;
9520
- for (let u = 0; u < i; u++)
9521
- s = s << 1 & 2047 | o.get(l, u), u >= 10 && (s === 1488 || s === 93) && a++, c = c << 1 & 2047 | o.get(u, l), u >= 10 && (c === 1488 || c === 93) && a++;
9530
+ for (let l = 0; l < i; l++)
9531
+ s = s << 1 & 2047 | o.get(u, l), l >= 10 && (s === 1488 || s === 93) && a++, c = c << 1 & 2047 | o.get(l, u), l >= 10 && (c === 1488 || c === 93) && a++;
9522
9532
  }
9523
9533
  return a * t.N3;
9524
9534
  }, e.getPenaltyN4 = function(o) {
@@ -9558,10 +9568,10 @@ var Ga = {};
9558
9568
  }, e.getBestMask = function(o, i) {
9559
9569
  const a = Object.keys(e.Patterns).length;
9560
9570
  let s = 0, c = 1 / 0;
9561
- for (let l = 0; l < a; l++) {
9562
- i(l), e.applyMask(l, o);
9563
- const u = e.getPenaltyN1(o) + e.getPenaltyN2(o) + e.getPenaltyN3(o) + e.getPenaltyN4(o);
9564
- e.applyMask(l, o), u < c && (c = u, s = l);
9571
+ for (let u = 0; u < a; u++) {
9572
+ i(u), e.applyMask(u, o);
9573
+ const l = e.getPenaltyN1(o) + e.getPenaltyN2(o) + e.getPenaltyN3(o) + e.getPenaltyN4(o);
9574
+ e.applyMask(u, o), l < c && (c = l, s = u);
9565
9575
  }
9566
9576
  return s;
9567
9577
  };
@@ -10073,25 +10083,25 @@ Me.testAlphanumeric = function(t) {
10073
10083
  };
10074
10084
  })(Ze);
10075
10085
  (function(e) {
10076
- const t = we, n = Kn, r = Yn, o = Ze, i = ro, a = 7973, s = t.getBCHDigit(a);
10086
+ const t = Se, n = Kn, r = Yn, o = Ze, i = ro, a = 7973, s = t.getBCHDigit(a);
10077
10087
  function c(f, p, h) {
10078
10088
  for (let v = 1; v <= 40; v++)
10079
10089
  if (p <= e.getCapacity(v, h, f))
10080
10090
  return v;
10081
10091
  }
10082
- function l(f, p) {
10092
+ function u(f, p) {
10083
10093
  return o.getCharCountIndicator(f, p) + 4;
10084
10094
  }
10085
- function u(f, p) {
10095
+ function l(f, p) {
10086
10096
  let h = 0;
10087
10097
  return f.forEach(function(v) {
10088
- const b = l(v.mode, p);
10098
+ const b = u(v.mode, p);
10089
10099
  h += b + v.getBitsLength();
10090
10100
  }), h;
10091
10101
  }
10092
10102
  function m(f, p) {
10093
10103
  for (let h = 1; h <= 40; h++)
10094
- if (u(f, h) <= e.getCapacity(h, p, o.MIXED))
10104
+ if (l(f, h) <= e.getCapacity(h, p, o.MIXED))
10095
10105
  return h;
10096
10106
  }
10097
10107
  e.from = function(p, h) {
@@ -10103,7 +10113,7 @@ Me.testAlphanumeric = function(t) {
10103
10113
  const b = t.getSymbolTotalCodewords(p), g = n.getTotalCodewordsCount(p, h), w = (b - g) * 8;
10104
10114
  if (v === o.MIXED)
10105
10115
  return w;
10106
- const y = w - l(v, p);
10116
+ const y = w - u(v, p);
10107
10117
  switch (v) {
10108
10118
  case o.NUMERIC:
10109
10119
  return Math.floor(y / 10 * 3);
@@ -10137,7 +10147,7 @@ Me.testAlphanumeric = function(t) {
10137
10147
  };
10138
10148
  })(Wa);
10139
10149
  var Ha = {};
10140
- const Sr = we, Ya = 1335, F1 = 21522, si = Sr.getBCHDigit(Ya);
10150
+ const Sr = Se, Ya = 1335, F1 = 21522, si = Sr.getBCHDigit(Ya);
10141
10151
  Ha.getEncodedBits = function(t, n) {
10142
10152
  const r = t.bit << 3 | n;
10143
10153
  let o = r << 10;
@@ -10279,7 +10289,7 @@ pt.prototype.write = function(e) {
10279
10289
  e.put(this.data[t], 8);
10280
10290
  };
10281
10291
  var V1 = pt;
10282
- const W1 = Ze, j1 = we;
10292
+ const W1 = Ze, j1 = Se;
10283
10293
  function mt(e) {
10284
10294
  this.mode = W1.KANJI, this.data = e;
10285
10295
  }
@@ -10316,10 +10326,10 @@ var H1 = mt, qa = { exports: {} };
10316
10326
  a[r] = 0;
10317
10327
  var s = t.PriorityQueue.make();
10318
10328
  s.push(r, 0);
10319
- for (var c, l, u, m, f, p, h, v, b; !s.empty(); ) {
10320
- c = s.pop(), l = c.value, m = c.cost, f = n[l] || {};
10321
- for (u in f)
10322
- f.hasOwnProperty(u) && (p = f[u], h = m + p, v = a[u], b = typeof a[u] > "u", (b || v > h) && (a[u] = h, s.push(u, h), i[u] = l));
10329
+ for (var c, u, l, m, f, p, h, v, b; !s.empty(); ) {
10330
+ c = s.pop(), u = c.value, m = c.cost, f = n[u] || {};
10331
+ for (l in f)
10332
+ f.hasOwnProperty(l) && (p = f[l], h = m + p, v = a[l], b = typeof a[l] > "u", (b || v > h) && (a[l] = h, s.push(l, h), i[l] = u));
10323
10333
  }
10324
10334
  if (typeof o < "u" && typeof a[o] > "u") {
10325
10335
  var g = ["Could not find a path from ", r, " to ", o, "."].join("");
@@ -10376,11 +10386,11 @@ var H1 = mt, qa = { exports: {} };
10376
10386
  })(qa);
10377
10387
  var Y1 = qa.exports;
10378
10388
  (function(e) {
10379
- const t = Ze, n = M1, r = B1, o = V1, i = H1, a = Me, s = we, c = Y1;
10380
- function l(g) {
10389
+ const t = Ze, n = M1, r = B1, o = V1, i = H1, a = Me, s = Se, c = Y1;
10390
+ function u(g) {
10381
10391
  return unescape(encodeURIComponent(g)).length;
10382
10392
  }
10383
- function u(g, w, y) {
10393
+ function l(g, w, y) {
10384
10394
  const S = [];
10385
10395
  let E;
10386
10396
  for (; (E = g.exec(y)) !== null; )
@@ -10393,9 +10403,9 @@ var Y1 = qa.exports;
10393
10403
  return S;
10394
10404
  }
10395
10405
  function m(g) {
10396
- const w = u(a.NUMERIC, t.NUMERIC, g), y = u(a.ALPHANUMERIC, t.ALPHANUMERIC, g);
10406
+ const w = l(a.NUMERIC, t.NUMERIC, g), y = l(a.ALPHANUMERIC, t.ALPHANUMERIC, g);
10397
10407
  let S, E;
10398
- return s.isKanjiModeEnabled() ? (S = u(a.BYTE, t.BYTE, g), E = u(a.KANJI, t.KANJI, g)) : (S = u(a.BYTE_KANJI, t.BYTE, g), E = []), w.concat(y, S, E).sort(function(P, k) {
10408
+ return s.isKanjiModeEnabled() ? (S = l(a.BYTE, t.BYTE, g), E = l(a.KANJI, t.KANJI, g)) : (S = l(a.BYTE_KANJI, t.BYTE, g), E = []), w.concat(y, S, E).sort(function(P, k) {
10399
10409
  return P.index - k.index;
10400
10410
  }).map(function(P) {
10401
10411
  return {
@@ -10444,12 +10454,12 @@ var Y1 = qa.exports;
10444
10454
  case t.KANJI:
10445
10455
  w.push([
10446
10456
  S,
10447
- { data: S.data, mode: t.BYTE, length: l(S.data) }
10457
+ { data: S.data, mode: t.BYTE, length: u(S.data) }
10448
10458
  ]);
10449
10459
  break;
10450
10460
  case t.BYTE:
10451
10461
  w.push([
10452
- { data: S.data, mode: t.BYTE, length: l(S.data) }
10462
+ { data: S.data, mode: t.BYTE, length: u(S.data) }
10453
10463
  ]);
10454
10464
  }
10455
10465
  }
@@ -10506,7 +10516,7 @@ var Y1 = qa.exports;
10506
10516
  );
10507
10517
  };
10508
10518
  })(Ka);
10509
- const Jn = we, or = Yn, K1 = I1, q1 = T1, J1 = Ba, Z1 = La, br = Ga, Cr = Kn, Q1 = k1, Cn = Wa, X1 = Ha, eC = Ze, ir = Ka;
10519
+ const Jn = Se, or = Yn, K1 = I1, q1 = T1, J1 = Ba, Z1 = La, br = Ga, Cr = Kn, Q1 = k1, Cn = Wa, X1 = Ha, eC = Ze, ir = Ka;
10510
10520
  function tC(e, t) {
10511
10521
  const n = e.size, r = Z1.getPositions(t);
10512
10522
  for (let o = 0; o < r.length; o++) {
@@ -10553,8 +10563,8 @@ function iC(e, t) {
10553
10563
  for (s === 6 && s--; ; ) {
10554
10564
  for (let c = 0; c < 2; c++)
10555
10565
  if (!e.isReserved(o, s - c)) {
10556
- let l = !1;
10557
- a < t.length && (l = (t[a] >>> i & 1) === 1), e.set(o, s - c, l), i--, i === -1 && (a++, i = 7);
10566
+ let u = !1;
10567
+ a < t.length && (u = (t[a] >>> i & 1) === 1), e.set(o, s - c, u), i--, i === -1 && (a++, i = 7);
10558
10568
  }
10559
10569
  if (o += r, o < 0 || n <= o) {
10560
10570
  o -= r, r = -r;
@@ -10576,13 +10586,13 @@ function aC(e, t, n) {
10576
10586
  return sC(r, e, t);
10577
10587
  }
10578
10588
  function sC(e, t, n) {
10579
- const r = Jn.getSymbolTotalCodewords(t), o = Cr.getTotalCodewordsCount(t, n), i = r - o, a = Cr.getBlocksCount(t, n), s = r % a, c = a - s, l = Math.floor(r / a), u = Math.floor(i / a), m = u + 1, f = l - u, p = new Q1(f);
10589
+ const r = Jn.getSymbolTotalCodewords(t), o = Cr.getTotalCodewordsCount(t, n), i = r - o, a = Cr.getBlocksCount(t, n), s = r % a, c = a - s, u = Math.floor(r / a), l = Math.floor(i / a), m = l + 1, f = u - l, p = new Q1(f);
10580
10590
  let h = 0;
10581
10591
  const v = new Array(a), b = new Array(a);
10582
10592
  let g = 0;
10583
10593
  const w = new Uint8Array(e.buffer);
10584
10594
  for (let P = 0; P < a; P++) {
10585
- const k = P < c ? u : m;
10595
+ const k = P < c ? l : m;
10586
10596
  v[P] = w.slice(h, h + k), b[P] = p.encode(v[P]), h += k, g = Math.max(g, k);
10587
10597
  }
10588
10598
  const y = new Uint8Array(r);
@@ -10600,12 +10610,12 @@ function cC(e, t, n, r) {
10600
10610
  if (Array.isArray(e))
10601
10611
  o = ir.fromArray(e);
10602
10612
  else if (typeof e == "string") {
10603
- let l = t;
10604
- if (!l) {
10605
- const u = ir.rawSplit(e);
10606
- l = Cn.getBestVersionForData(u, n);
10613
+ let u = t;
10614
+ if (!u) {
10615
+ const l = ir.rawSplit(e);
10616
+ u = Cn.getBestVersionForData(l, n);
10607
10617
  }
10608
- o = ir.fromString(e, l || 40);
10618
+ o = ir.fromString(e, u || 40);
10609
10619
  } else
10610
10620
  throw new Error("Invalid data");
10611
10621
  const i = Cn.getBestVersionForData(o, n);
@@ -10678,12 +10688,12 @@ var Ja = {}, oo = {};
10678
10688
  const i = e.getScale(r, o);
10679
10689
  return Math.floor((r + o.margin * 2) * i);
10680
10690
  }, e.qrToImageData = function(r, o, i) {
10681
- const a = o.modules.size, s = o.modules.data, c = e.getScale(a, i), l = Math.floor((a + i.margin * 2) * c), u = i.margin * c, m = [i.color.light, i.color.dark];
10682
- for (let f = 0; f < l; f++)
10683
- for (let p = 0; p < l; p++) {
10684
- let h = (f * l + p) * 4, v = i.color.light;
10685
- if (f >= u && p >= u && f < l - u && p < l - u) {
10686
- const b = Math.floor((f - u) / c), g = Math.floor((p - u) / c);
10691
+ const a = o.modules.size, s = o.modules.data, c = e.getScale(a, i), u = Math.floor((a + i.margin * 2) * c), l = i.margin * c, m = [i.color.light, i.color.dark];
10692
+ for (let f = 0; f < u; f++)
10693
+ for (let p = 0; p < u; p++) {
10694
+ let h = (f * u + p) * 4, v = i.color.light;
10695
+ if (f >= l && p >= l && f < u - l && p < u - l) {
10696
+ const b = Math.floor((f - l) / c), g = Math.floor((p - l) / c);
10687
10697
  v = m[s[b * a + g] ? 1 : 0];
10688
10698
  }
10689
10699
  r[h++] = v.r, r[h++] = v.g, r[h++] = v.b, r[h] = v.a;
@@ -10703,19 +10713,19 @@ var Ja = {}, oo = {};
10703
10713
  }
10704
10714
  }
10705
10715
  e.render = function(i, a, s) {
10706
- let c = s, l = a;
10707
- typeof c > "u" && (!a || !a.getContext) && (c = a, a = void 0), a || (l = r()), c = t.getOptions(c);
10708
- const u = t.getImageWidth(i.modules.size, c), m = l.getContext("2d"), f = m.createImageData(u, u);
10709
- return t.qrToImageData(f.data, i, c), n(m, l, u), m.putImageData(f, 0, 0), l;
10716
+ let c = s, u = a;
10717
+ typeof c > "u" && (!a || !a.getContext) && (c = a, a = void 0), a || (u = r()), c = t.getOptions(c);
10718
+ const l = t.getImageWidth(i.modules.size, c), m = u.getContext("2d"), f = m.createImageData(l, l);
10719
+ return t.qrToImageData(f.data, i, c), n(m, u, l), m.putImageData(f, 0, 0), u;
10710
10720
  }, e.renderToDataURL = function(i, a, s) {
10711
10721
  let c = s;
10712
10722
  typeof c > "u" && (!a || !a.getContext) && (c = a, a = void 0), c || (c = {});
10713
- const l = e.render(i, a, c), u = c.type || "image/png", m = c.rendererOpts || {};
10714
- return l.toDataURL(u, m.quality);
10723
+ const u = e.render(i, a, c), l = c.type || "image/png", m = c.rendererOpts || {};
10724
+ return u.toDataURL(l, m.quality);
10715
10725
  };
10716
10726
  })(Ja);
10717
10727
  var Za = {};
10718
- const lC = oo;
10728
+ const uC = oo;
10719
10729
  function ci(e, t) {
10720
10730
  const n = e.a / 255, r = t + '="' + e.hex + '"';
10721
10731
  return n < 1 ? r + " " + t + '-opacity="' + n.toFixed(2).slice(1) + '"' : r;
@@ -10724,16 +10734,16 @@ function sr(e, t, n) {
10724
10734
  let r = e + t;
10725
10735
  return typeof n < "u" && (r += " " + n), r;
10726
10736
  }
10727
- function uC(e, t, n) {
10737
+ function lC(e, t, n) {
10728
10738
  let r = "", o = 0, i = !1, a = 0;
10729
10739
  for (let s = 0; s < e.length; s++) {
10730
- const c = Math.floor(s % t), l = Math.floor(s / t);
10731
- !c && !i && (i = !0), e[s] ? (a++, s > 0 && c > 0 && e[s - 1] || (r += i ? sr("M", c + n, 0.5 + l + n) : sr("m", o, 0), o = 0, i = !1), c + 1 < t && e[s + 1] || (r += sr("h", a), a = 0)) : o++;
10740
+ const c = Math.floor(s % t), u = Math.floor(s / t);
10741
+ !c && !i && (i = !0), e[s] ? (a++, s > 0 && c > 0 && e[s - 1] || (r += i ? sr("M", c + n, 0.5 + u + n) : sr("m", o, 0), o = 0, i = !1), c + 1 < t && e[s + 1] || (r += sr("h", a), a = 0)) : o++;
10732
10742
  }
10733
10743
  return r;
10734
10744
  }
10735
10745
  Za.render = function(t, n, r) {
10736
- const o = lC.getOptions(n), i = t.modules.size, a = t.modules.data, s = i + o.margin * 2, c = o.color.light.a ? "<path " + ci(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", l = "<path " + ci(o.color.dark, "stroke") + ' d="' + uC(a, i, o.margin) + '"/>', u = 'viewBox="0 0 ' + s + " " + s + '"', f = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + u + ' shape-rendering="crispEdges">' + c + l + `</svg>
10746
+ const o = uC.getOptions(n), i = t.modules.size, a = t.modules.data, s = i + o.margin * 2, c = o.color.light.a ? "<path " + ci(o.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", u = "<path " + ci(o.color.dark, "stroke") + ' d="' + lC(a, i, o.margin) + '"/>', l = 'viewBox="0 0 ' + s + " " + s + '"', f = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + l + ' shape-rendering="crispEdges">' + c + u + `</svg>
10737
10747
  `;
10738
10748
  return typeof r == "function" && r(null, f), f;
10739
10749
  };
@@ -10749,12 +10759,12 @@ function io(e, t, n, r, o) {
10749
10759
  } else {
10750
10760
  if (a < 1)
10751
10761
  throw new Error("Too few arguments provided");
10752
- return a === 1 ? (n = t, t = r = void 0) : a === 2 && !t.getContext && (r = n, n = t, t = void 0), new Promise(function(c, l) {
10762
+ return a === 1 ? (n = t, t = r = void 0) : a === 2 && !t.getContext && (r = n, n = t, t = void 0), new Promise(function(c, u) {
10753
10763
  try {
10754
- const u = Ar.create(n, r);
10755
- c(e(u, t, r));
10756
- } catch (u) {
10757
- l(u);
10764
+ const l = Ar.create(n, r);
10765
+ c(e(l, t, r));
10766
+ } catch (l) {
10767
+ u(l);
10758
10768
  }
10759
10769
  });
10760
10770
  }
@@ -10781,7 +10791,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
10781
10791
  ], -1), yC = /* @__PURE__ */ q({
10782
10792
  __name: "setup-totp",
10783
10793
  setup(e) {
10784
- const t = new ys("SetupTotp-logger"), n = he(), { updateForm: r, submitForm: o, toSignIn: i, totpSecretCode: a, username: s, QRFields: c } = n, { error: l, isPending: u } = re(n), { totpIssuer: m = "AWSCognito", totpUsername: f = s } = c ?? {}, p = ac(m, f, a), h = ui({
10794
+ const t = new ys("SetupTotp-logger"), n = ye(), { updateForm: r, submitForm: o, toSignIn: i, totpSecretCode: a, username: s, QRFields: c } = n, { error: u, isPending: l } = re(n), { totpIssuer: m = "AWSCognito", totpUsername: f = s } = c ?? {}, p = ac(m, f, a), h = li({
10785
10795
  qrCodeImageSource: "",
10786
10796
  isLoading: !0
10787
10797
  }), { getCopyText: v, getCopiedText: b, getBackToSignInText: g, getConfirmText: w } = Ie, y = ce(v());
@@ -10806,19 +10816,19 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
10806
10816
  i();
10807
10817
  };
10808
10818
  return (O, R) => {
10809
- const B = Je, G = me, ae = Re, Se = _e, Te = Ne, fe = Fe, be = Ue;
10819
+ const B = Je, G = me, ae = Re, be = we, Te = Ne, fe = Fe, ge = Ue;
10810
10820
  return I(O.$slots, "confirmSetupTotpI", oe(ie(O.$attrs)), () => [
10811
10821
  C(G, oe(ie(O.$attrs)), {
10812
10822
  default: _(() => [
10813
- C(be, {
10823
+ C(ge, {
10814
10824
  "data-amplify-authenticator-setup-totp": "",
10815
10825
  onInput: P,
10816
- onSubmit: ue(k, ["prevent"])
10826
+ onSubmit: le(k, ["prevent"])
10817
10827
  }, {
10818
10828
  default: _(() => [
10819
10829
  C(fe, {
10820
10830
  class: "amplify-flex amplify-authenticator__column",
10821
- disabled: d(u)
10831
+ disabled: d(l)
10822
10832
  }, {
10823
10833
  default: _(() => [
10824
10834
  C(G, { class: "amplify-flex amplify-authenticator__column" }, {
@@ -10870,33 +10880,33 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
10870
10880
  }),
10871
10881
  C(Te, { class: "amplify-flex amplify-authenticator__column" }, {
10872
10882
  default: _(() => [
10873
- d(l) ? (U(), V(ae, { key: 0 }, {
10883
+ d(u) ? (U(), V(ae, { key: 0 }, {
10874
10884
  default: _(() => [
10875
- M(F(d(N)(d(l))), 1)
10885
+ M(F(d(N)(d(u))), 1)
10876
10886
  ]),
10877
10887
  _: 1
10878
10888
  })) : j("", !0),
10879
- C(Se, {
10889
+ C(be, {
10880
10890
  class: "amplify-field-group__control amplify-authenticator__font",
10881
10891
  fullwidth: !1,
10882
10892
  loading: !1,
10883
10893
  variation: "primary",
10884
10894
  type: "submit",
10885
- disabled: d(u)
10895
+ disabled: d(l)
10886
10896
  }, {
10887
10897
  default: _(() => [
10888
10898
  M(F(d(T)), 1)
10889
10899
  ]),
10890
10900
  _: 1
10891
10901
  }, 8, ["disabled"]),
10892
- C(Se, {
10902
+ C(be, {
10893
10903
  class: "amplify-field-group__control amplify-authenticator__font",
10894
10904
  fullwidth: !1,
10895
10905
  size: "small",
10896
10906
  variation: "link",
10897
10907
  style: { "font-weight": "normal" },
10898
10908
  type: "button",
10899
- onClick: ue($, ["prevent"])
10909
+ onClick: le($, ["prevent"])
10900
10910
  }, {
10901
10911
  default: _(() => [
10902
10912
  M(F(d(E)), 1)
@@ -10930,7 +10940,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
10930
10940
  }), es = /* @__PURE__ */ q({
10931
10941
  __name: "force-new-password",
10932
10942
  setup(e) {
10933
- const t = he(), { submitForm: n, toSignIn: r, updateBlur: o, updateForm: i } = t, { error: a, isPending: s } = re(t), { getChangePasswordText: c, getChangingText: l, getBackToSignInText: u } = Ie, m = D(() => c()), f = D(() => l()), p = D(() => u()), h = () => {
10943
+ const t = ye(), { submitForm: n, toSignIn: r, updateBlur: o, updateForm: i } = t, { error: a, isPending: s } = re(t), { getChangePasswordText: c, getChangingText: u, getBackToSignInText: l } = Ie, m = D(() => c()), f = D(() => u()), p = D(() => l()), h = () => {
10934
10944
  r();
10935
10945
  }, v = (y) => {
10936
10946
  b(y);
@@ -10945,7 +10955,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
10945
10955
  o({ name: S });
10946
10956
  }
10947
10957
  return (y, S) => {
10948
- const E = Je, T = me, P = Re, k = _e, $ = Ne, O = Fe, R = Ue;
10958
+ const E = Je, T = me, P = Re, k = we, $ = Ne, O = Fe, R = Ue;
10949
10959
  return I(y.$slots, "forceNewPasswordI", oe(ie(y.$attrs)), () => [
10950
10960
  C(T, oe(ie(y.$attrs)), {
10951
10961
  default: _(() => [
@@ -10953,7 +10963,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
10953
10963
  "data-amplify-authenticator-forcenewpassword": "",
10954
10964
  onInput: g,
10955
10965
  onBlurCapture: w,
10956
- onSubmit: ue(v, ["prevent"])
10966
+ onSubmit: le(v, ["prevent"])
10957
10967
  }, {
10958
10968
  default: _(() => [
10959
10969
  C(O, {
@@ -11011,7 +11021,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11011
11021
  variation: "link",
11012
11022
  style: { "font-weight": "normal" },
11013
11023
  type: "button",
11014
- onClick: ue(h, ["prevent"])
11024
+ onClick: le(h, ["prevent"])
11015
11025
  }, {
11016
11026
  default: _(() => [
11017
11027
  M(F(d(p)), 1)
@@ -11040,7 +11050,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11040
11050
  }), ts = /* @__PURE__ */ q({
11041
11051
  __name: "forgot-password",
11042
11052
  setup(e) {
11043
- const t = he(), { submitForm: n, toSignIn: r, updateForm: o } = t, { error: i, isPending: a } = re(t), { getBackToSignInText: s, getResetYourPasswordText: c, getSendCodeText: l } = Ie, u = D(() => s()), m = D(() => c()), f = D(() => l()), p = (b) => {
11053
+ const t = ye(), { submitForm: n, toSignIn: r, updateForm: o } = t, { error: i, isPending: a } = re(t), { getBackToSignInText: s, getResetYourPasswordText: c, getSendCodeText: u } = Ie, l = D(() => s()), m = D(() => c()), f = D(() => u()), p = (b) => {
11044
11054
  n($e(b));
11045
11055
  }, h = (b) => {
11046
11056
  const { name: g, value: w } = b.target;
@@ -11049,12 +11059,12 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11049
11059
  r();
11050
11060
  };
11051
11061
  return (b, g) => {
11052
- const w = Je, y = Fe, S = Re, E = _e, T = Ne, P = me, k = Ue;
11062
+ const w = Je, y = Fe, S = Re, E = we, T = Ne, P = me, k = Ue;
11053
11063
  return I(b.$slots, "forgotPasswordSlotI", oe(ie(b.$attrs)), () => [
11054
11064
  C(k, Ee(b.$attrs, {
11055
11065
  "data-amplify-authenticator-forgotpassword": "",
11056
11066
  onInput: h,
11057
- onSubmit: ue(p, ["prevent"])
11067
+ onSubmit: le(p, ["prevent"])
11058
11068
  }), {
11059
11069
  default: _(() => [
11060
11070
  C(P, { class: "amplify-flex amplify-authenticator__column" }, {
@@ -11106,10 +11116,10 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11106
11116
  variation: "link",
11107
11117
  style: { "font-weight": "normal" },
11108
11118
  type: "button",
11109
- onClick: ue(v, ["prevent"])
11119
+ onClick: le(v, ["prevent"])
11110
11120
  }, {
11111
11121
  default: _(() => [
11112
- M(F(d(u)), 1)
11122
+ M(F(d(l)), 1)
11113
11123
  ]),
11114
11124
  _: 1
11115
11125
  }, 8, ["onClick"]),
@@ -11132,7 +11142,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11132
11142
  }), ns = /* @__PURE__ */ q({
11133
11143
  __name: "confirm-reset-password",
11134
11144
  setup(e) {
11135
- const t = he(), { resendCode: n, submitForm: r, updateBlur: o, updateForm: i } = t, { error: a, isPending: s } = re(t), { getResendCodeText: c, getResetYourPasswordText: l, getSubmitText: u } = Ie, m = D(() => c()), f = D(() => l()), p = D(() => u()), h = (y) => {
11145
+ const t = ye(), { resendCode: n, submitForm: r, updateBlur: o, updateForm: i } = t, { error: a, isPending: s } = re(t), { getResendCodeText: c, getResetYourPasswordText: u, getSubmitText: l } = Ie, m = D(() => c()), f = D(() => u()), p = D(() => l()), h = (y) => {
11136
11146
  v(y);
11137
11147
  }, v = (y) => {
11138
11148
  r($e(y));
@@ -11147,7 +11157,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11147
11157
  o({ name: S });
11148
11158
  }
11149
11159
  return (y, S) => {
11150
- const E = Je, T = me, P = Re, k = _e, $ = Ne, O = Fe, R = Ue;
11160
+ const E = Je, T = me, P = Re, k = we, $ = Ne, O = Fe, R = Ue;
11151
11161
  return I(y.$slots, "confirmResetPasswordSlotI", oe(ie(y.$attrs)), () => [
11152
11162
  C(T, oe(ie(y.$attrs)), {
11153
11163
  default: _(() => [
@@ -11155,7 +11165,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11155
11165
  "data-amplify-authenticator-confirmResetpassword": "",
11156
11166
  onInput: g,
11157
11167
  onBlurCapture: w,
11158
- onSubmit: ue(h, ["prevent"])
11168
+ onSubmit: le(h, ["prevent"])
11159
11169
  }, {
11160
11170
  default: _(() => [
11161
11171
  C(O, {
@@ -11206,7 +11216,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11206
11216
  fullwidth: !1,
11207
11217
  size: "small",
11208
11218
  type: "button",
11209
- onClick: ue(b, ["prevent"])
11219
+ onClick: le(b, ["prevent"])
11210
11220
  }, {
11211
11221
  default: _(() => [
11212
11222
  M(F(d(m)), 1)
@@ -11232,7 +11242,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11232
11242
  }), rs = /* @__PURE__ */ q({
11233
11243
  __name: "verify-user",
11234
11244
  setup(e) {
11235
- const t = he(), { isPending: n, unverifiedUserAttributes: r, error: o } = re(t), { skipVerification: i, submitForm: a, updateForm: s } = t, { getAccountRecoveryInfoText: c, getSkipText: l, getVerifyText: u, getVerifyContactText: m } = Ie, f = D(() => c()), p = D(() => l()), h = D(() => u()), v = D(() => m()), b = (S) => {
11245
+ const t = ye(), { isPending: n, unverifiedUserAttributes: r, error: o } = re(t), { skipVerification: i, submitForm: a, updateForm: s } = t, { getAccountRecoveryInfoText: c, getSkipText: u, getVerifyText: l, getVerifyContactText: m } = Ie, f = D(() => c()), p = D(() => u()), h = D(() => l()), v = D(() => m()), b = (S) => {
11236
11246
  const { name: E, value: T } = S.target;
11237
11247
  s({ name: E, value: T });
11238
11248
  }, g = (S) => {
@@ -11243,13 +11253,13 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11243
11253
  i();
11244
11254
  };
11245
11255
  return (S, E) => {
11246
- const T = Je, P = Hn, k = Ra, $ = jn, O = me, R = Re, B = _e, G = Ne, ae = Fe, Se = Ue;
11256
+ const T = Je, P = Hn, k = Ra, $ = jn, O = me, R = Re, B = we, G = Ne, ae = Fe, be = Ue;
11247
11257
  return I(S.$slots, "verifyUserSlotI", {}, () => [
11248
11258
  C(O, null, {
11249
11259
  default: _(() => [
11250
- C(Se, {
11260
+ C(be, {
11251
11261
  onInput: b,
11252
- onSubmit: ue(g, ["prevent"])
11262
+ onSubmit: le(g, ["prevent"])
11253
11263
  }, {
11254
11264
  default: _(() => [
11255
11265
  C(ae, {
@@ -11284,7 +11294,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11284
11294
  "aria-labelledby": "amplify-field-493c"
11285
11295
  }, {
11286
11296
  default: _(() => [
11287
- (U(!0), X(He, null, An(d(r), (Te, fe) => (U(), X(He, { key: Te }, [
11297
+ (U(!0), X(He, null, An(d(r), (Te, fe, ge) => (U(), X(He, { key: Te }, [
11288
11298
  Te ? (U(), V(P, {
11289
11299
  key: 0,
11290
11300
  class: "amplify-flex amplify-radio",
@@ -11303,8 +11313,9 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11303
11313
  "data-amplify-verify-input": "",
11304
11314
  name: "unverifiedAttr",
11305
11315
  type: "radio",
11316
+ checked: ge === 0,
11306
11317
  value: fe
11307
- }, null, 8, ["value"]),
11318
+ }, null, 8, ["checked", "value"]),
11308
11319
  C(k, {
11309
11320
  class: "amplify-flex amplify-radio__button",
11310
11321
  "aria-hidden": "true"
@@ -11346,7 +11357,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11346
11357
  variation: "link",
11347
11358
  style: { "font-weight": "normal" },
11348
11359
  type: "button",
11349
- onClick: ue(y, ["prevent"])
11360
+ onClick: le(y, ["prevent"])
11350
11361
  }, {
11351
11362
  default: _(() => [
11352
11363
  M(F(d(p)), 1)
@@ -11372,7 +11383,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11372
11383
  }), os = /* @__PURE__ */ q({
11373
11384
  __name: "confirm-verify-user",
11374
11385
  setup(e) {
11375
- const t = he(), { error: n, isPending: r } = re(t), { skipVerification: o, submitForm: i, updateForm: a } = t, { getAccountRecoveryInfoText: s, getSkipText: c, getSubmitText: l } = Ie, u = D(() => s()), m = D(() => c()), f = D(() => l()), p = (g) => {
11386
+ const t = ye(), { error: n, isPending: r } = re(t), { skipVerification: o, submitForm: i, updateForm: a } = t, { getAccountRecoveryInfoText: s, getSkipText: c, getSubmitText: u } = Ie, l = D(() => s()), m = D(() => c()), f = D(() => u()), p = (g) => {
11376
11387
  const { name: w, value: y } = g.target;
11377
11388
  a({ name: w, value: y });
11378
11389
  }, h = (g) => {
@@ -11383,13 +11394,13 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11383
11394
  o();
11384
11395
  };
11385
11396
  return (g, w) => {
11386
- const y = Je, S = me, E = Re, T = _e, P = Ne, k = Fe, $ = Ue;
11397
+ const y = Je, S = me, E = Re, T = we, P = Ne, k = Fe, $ = Ue;
11387
11398
  return I(g.$slots, "confirmVerifyUserSlotI", oe(ie(g.$attrs)), () => [
11388
11399
  C(S, oe(ie(g.$attrs)), {
11389
11400
  default: _(() => [
11390
11401
  C($, {
11391
11402
  onInput: p,
11392
- onSubmit: ue(h, ["prevent"])
11403
+ onSubmit: le(h, ["prevent"])
11393
11404
  }, {
11394
11405
  default: _(() => [
11395
11406
  C(k, {
@@ -11403,7 +11414,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11403
11414
  class: "amplify-heading"
11404
11415
  }, {
11405
11416
  default: _(() => [
11406
- M(F(d(u)), 1)
11417
+ M(F(d(l)), 1)
11407
11418
  ]),
11408
11419
  _: 1
11409
11420
  })
@@ -11441,7 +11452,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11441
11452
  variation: "link",
11442
11453
  style: { "font-weight": "normal" },
11443
11454
  type: "button",
11444
- onClick: ue(b, ["prevent"])
11455
+ onClick: le(b, ["prevent"])
11445
11456
  }, {
11446
11457
  default: _(() => [
11447
11458
  M(F(d(m)), 1)
@@ -11480,8 +11491,8 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11480
11491
  formFields: null
11481
11492
  },
11482
11493
  setup(e) {
11483
- const t = e, { initialState: n, loginMechanisms: r, variation: o, services: i, signUpAttributes: a, socialProviders: s, hideSignUp: c, formFields: l } = re(t);
11484
- let u;
11494
+ const t = e, { initialState: n, loginMechanisms: r, variation: o, services: i, signUpAttributes: a, socialProviders: s, hideSignUp: c, formFields: u } = re(t);
11495
+ let l;
11485
11496
  const m = ce(!1), { service: f, send: p, state: h } = Xr(), v = f.subscribe((L) => {
11486
11497
  L.matches("setup") && !m.value && (p({
11487
11498
  type: "INIT",
@@ -11497,20 +11508,20 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11497
11508
  socialProviders: s.value,
11498
11509
  signUpAttributes: a.value,
11499
11510
  services: i.value,
11500
- formFields: l.value
11511
+ formFields: u.value
11501
11512
  }
11502
11513
  }), m.value = !0);
11503
- }).unsubscribe, b = he(), { route: g, signOut: w, toSignIn: y, toSignUp: S, user: E } = re(b);
11514
+ }).unsubscribe, b = ye(), { route: g, signOut: w, toSignIn: y, toSignUp: S, user: E } = re(b);
11504
11515
  di(() => {
11505
- u = Ob({
11516
+ l = Ob({
11506
11517
  componentName: "Authenticator",
11507
11518
  packageName: "vue",
11508
11519
  version: S1
11509
11520
  });
11510
11521
  }), ms(() => {
11511
- u(), v();
11522
+ l(), v();
11512
11523
  });
11513
- const T = ce(), P = ce(), k = ce(), $ = ce(), O = ce(), R = ce(), B = ce(), G = ce(), ae = ce(), Se = ce(), { getSignInTabText: Te, getSignUpTabText: fe } = Ie, be = D(() => Te()), ye = D(() => fe()), nt = D(() => g.value === "signIn" || g.value === "signUp"), ve = D(() => [
11524
+ const T = ce(), P = ce(), k = ce(), $ = ce(), O = ce(), R = ce(), B = ce(), G = ce(), ae = ce(), be = ce(), { getSignInTabText: Te, getSignUpTabText: fe } = Ie, ge = D(() => Te()), ve = D(() => fe()), nt = D(() => g.value === "signIn" || g.value === "signUp"), _e = D(() => [
11514
11525
  "confirmResetPassword",
11515
11526
  "confirmSignIn",
11516
11527
  "confirmSignUp",
@@ -11523,9 +11534,9 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11523
11534
  "verifyUser"
11524
11535
  ].includes(g.value));
11525
11536
  return (L, ao) => {
11526
- const ge = w1, Ve = v1;
11537
+ const he = w1, Ve = v1;
11527
11538
  return U(), X(He, null, [
11528
- d(ve) ? (U(), X("div", Ee({ key: 0 }, L.$attrs, {
11539
+ d(_e) ? (U(), X("div", Ee({ key: 0 }, L.$attrs, {
11529
11540
  "data-amplify-authenticator": "",
11530
11541
  "data-variation": d(o)
11531
11542
  }), [
@@ -11537,16 +11548,16 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11537
11548
  }, [
11538
11549
  d(nt) && !d(c) ? (U(), V(Ve, { key: 0 }, {
11539
11550
  default: _(() => [
11540
- C(ge, {
11551
+ C(he, {
11541
11552
  active: d(g) === "signIn",
11542
11553
  id: "signIn",
11543
- label: d(be),
11554
+ label: d(ge),
11544
11555
  onClick: d(y)
11545
11556
  }, null, 8, ["active", "label", "onClick"]),
11546
- C(ge, {
11557
+ C(he, {
11547
11558
  active: d(g) === "signUp",
11548
11559
  id: "signUp",
11549
- label: d(ye),
11560
+ label: d(ve),
11550
11561
  onClick: d(S)
11551
11562
  }, null, 8, ["active", "label", "onClick"])
11552
11563
  ]),
@@ -11723,7 +11734,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11723
11734
  d(g) === "confirmVerifyUser" ? (U(), V(os, {
11724
11735
  key: 9,
11725
11736
  ref_key: "confirmVerifyUserComponent",
11726
- ref: Se
11737
+ ref: be
11727
11738
  }, {
11728
11739
  confirmVerifyUserSlotI: _(() => [
11729
11740
  I(L.$slots, "confirm-verify-user")
@@ -11774,7 +11785,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11774
11785
  },
11775
11786
  setup(e) {
11776
11787
  const t = e, { label: n, id: r, autocomplete: o, placeholder: i, required: a, name: s, type: c } = re(t);
11777
- return (l, u) => {
11788
+ return (u, l) => {
11778
11789
  const m = Hn, f = jn, p = me;
11779
11790
  return U(), X(He, null, [
11780
11791
  C(m, {
@@ -11855,7 +11866,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11855
11866
  }
11856
11867
  }), GC = {
11857
11868
  install: (e) => {
11858
- e.component("SignIn", Ua), e.component("SignUp", Oa), e.component("FederatedSignIn", eo), e.component("Authenticator", bC), e.component("RenderInfo", CC), e.component("PasswordControl", ka), e.component("ForceNewPassword", es), e.component("ForgotPassword", ts), e.component("ConfirmResetPassword", ns), e.component("ConfirmSignUp", Fa), e.component("ConfirmSignIn", xa), e.component("VerifyUser", rs), e.component("ConfirmVerifyUser", os), e.component("AmplifyTextField", AC), e.component("AmplifyCheckBox", RC), e.component("AmplifyButton", _e), e.component("BaseFormField", Na), e.component("BaseFormFields", xe), e.component(
11869
+ e.component("SignIn", Ua), e.component("SignUp", Oa), e.component("FederatedSignIn", eo), e.component("Authenticator", bC), e.component("RenderInfo", CC), e.component("PasswordControl", ka), e.component("ForceNewPassword", es), e.component("ForgotPassword", ts), e.component("ConfirmResetPassword", ns), e.component("ConfirmSignUp", Fa), e.component("ConfirmSignIn", xa), e.component("VerifyUser", rs), e.component("ConfirmVerifyUser", os), e.component("AmplifyTextField", AC), e.component("AmplifyCheckBox", RC), e.component("AmplifyButton", we), e.component("BaseFormField", Na), e.component("BaseFormFields", xe), e.component(
11859
11870
  "AuthenticatorSignUpFormFields",
11860
11871
  $a
11861
11872
  ), e.component(
@@ -11865,7 +11876,7 @@ const pC = { key: 0 }, mC = ["src"], gC = { "data-amplify-copy-tooltip": "" }, h
11865
11876
  }
11866
11877
  };
11867
11878
  export {
11868
- _e as AmplifyButton,
11879
+ we as AmplifyButton,
11869
11880
  RC as AmplifyCheckBox,
11870
11881
  AC as AmplifyTextField,
11871
11882
  bC as Authenticator,
@@ -11885,5 +11896,5 @@ export {
11885
11896
  rs as VerifyUser,
11886
11897
  GC as default,
11887
11898
  LC as translations,
11888
- he as useAuthenticator
11899
+ ye as useAuthenticator
11889
11900
  };