@feedmepos/mf-payment 1.5.6-dev → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Cwt13ALm.js → Actions.vue_vue_type_script_setup_true_lang-BLXnOuCw.js} +2 -2
  2. package/dist/{Chargeback-BdT_s3at.js → Chargeback-19afdT_4.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CTA026mA.js → DocumentViewer.vue_vue_type_script_setup_true_lang-C-5XOuTl.js} +1 -1
  4. package/dist/{OnboardForm-BGM0rOan.js → OnboardForm-Cnnx_Wje.js} +5 -5
  5. package/dist/{OnboardForm-BsgH4rQ8.js → OnboardForm-DBgi_Y2Q.js} +5 -5
  6. package/dist/{OnboardSubmission-DcFt464S.js → OnboardSubmission-BB383_k0.js} +5 -5
  7. package/dist/{OnboardSubmission-DrWzegfK.js → OnboardSubmission-BhW5esGJ.js} +2 -2
  8. package/dist/{PayoutAccount-5spM7Xnv.js → PayoutAccount-DNl7LXSp.js} +5 -5
  9. package/dist/{PayoutAccount-D1NqkA8w.js → PayoutAccount-OGJGX0YY.js} +4 -4
  10. package/dist/PayoutAccountSetting-DzkmUdgK.js +1318 -0
  11. package/dist/{Restaurant-DCycaRR7.js → Restaurant-ZiTHtFZJ.js} +4 -4
  12. package/dist/{RestaurantSetting-D6s1uPMz.js → RestaurantSetting-M1jYaGwx.js} +3 -3
  13. package/dist/{Settlement-DlplAJW2.js → Settlement-Cj2W8VfH.js} +3 -3
  14. package/dist/{Settlement-DHebMBfs.js → Settlement-D_nmqYEC.js} +3 -3
  15. package/dist/{SettlementTransactions-D1FZ4SvU.js → SettlementTransactions-DQZUsieX.js} +4 -4
  16. package/dist/{SettlementTransactions-BB3jFvdP.js → SettlementTransactions-DvO6XMC4.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-BsbxaRKL.js → Status.vue_vue_type_script_setup_true_lang-BP5m6Vic.js} +1 -1
  18. package/dist/{Terminal-DOf20nIw.js → Terminal-CoPPPePw.js} +5 -5
  19. package/dist/{TerminalSetting-fwdOkBMF.js → TerminalSetting-PWs1fyFe.js} +3 -3
  20. package/dist/{Transaction-BojSMumb.js → Transaction-C6CtVbqB.js} +6 -6
  21. package/dist/{Transaction-DRc7VdWm.js → Transaction-DHTahbbJ.js} +9 -9
  22. package/dist/{TransactionOld-CVid_gM_.js → TransactionOld-Cvqw-Osm.js} +6 -6
  23. package/dist/{app-DewutbV3.js → app-BtjXBDKJ.js} +518 -526
  24. package/dist/app.js +4 -5
  25. package/dist/{assets-BnwoyNOf.js → assets-V6CPweA9.js} +1 -1
  26. package/dist/{grafana-Bz7xSfdW.js → grafana-fZyobMgN.js} +1 -1
  27. package/dist/{index-DyEaoZ8f.js → index--K2ipr4H.js} +1 -1
  28. package/dist/{index-Dqk3bGgi.js → index-BJNCcdvT.js} +5504 -5503
  29. package/dist/{index-BcpQUz2-.js → index-C-YBwRQp.js} +1 -1
  30. package/dist/{index-BGliGchf.js → index-CMN40t8e.js} +1 -1
  31. package/dist/{index-Bi2r6bNV.js → index-CtkwL_6R.js} +1 -1
  32. package/dist/{index-DaMy_lQ6.js → index-D69RnDa7.js} +1 -1
  33. package/dist/{index-6TNmNay6.js → index-_u7l8cO3.js} +1 -1
  34. package/dist/{index-DqW_m_SE.js → index-eLZ3BErV.js} +1 -1
  35. package/dist/{index-D68osbqj.js → index-ysvBViCR.js} +26 -23
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-D6hndvwu.js → index.vue_vue_type_script_setup_true_lang-zxkA_YTt.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-BTAtskf1.js → payout-account-DKOx8gaG.js} +3 -3
  39. package/dist/stores/payoutAccount.d.ts +22 -30
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -30
  42. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +22 -30
  43. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +22 -30
  44. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +24 -32
  45. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -30
  46. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +22 -30
  47. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +8 -8
  48. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +8 -8
  49. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +8 -8
  50. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +8 -8
  51. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +8 -8
  52. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +8 -8
  53. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +8 -8
  54. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +8 -8
  55. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +8 -8
  56. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +8 -8
  57. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +8 -8
  58. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +8 -8
  59. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +8 -8
  60. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +8 -8
  61. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +8 -8
  62. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +8 -8
  63. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +8 -8
  64. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +8 -8
  65. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -60
  66. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +52 -52
  67. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +26 -26
  68. package/package.json +2 -2
  69. package/dist/PayoutAccountSetting-BSmvV6yF.js +0 -1359
  70. package/dist/views/admin/payout-account/cell/MinimumFeeInput.vue.d.ts +0 -6
@@ -1,10 +1,9 @@
1
- import { FmApp as Nn, routes as Ln, i18nMessages as Mn } from "@feedmepos/mf-financing";
2
- import { createRouter as Un, createWebHistory as xn, useRouter as Fn, useRoute as Bn } from "vue-router";
3
- import { computed as Nt, watch as q, defineComponent as Lt, ref as $n, resolveComponent as Mt, openBlock as Ut, createBlock as xt, h as Hn, onMounted as Vn, onBeforeMount as jn, unref as Wn } from "vue";
4
- import { useCoreStore as je, useI18n as zn } from "@feedmepos/mf-common";
5
- import { defineStore as Gn } from "pinia";
6
- import { components as qn } from "@feedmepos/ui-library";
7
- const Kn = {
1
+ import { createRouter as Nn, createWebHistory as Ln, useRouter as Mn, useRoute as Un } from "vue-router";
2
+ import { computed as Nt, watch as q, defineComponent as Lt, ref as xn, resolveComponent as Mt, openBlock as Ut, createBlock as xt, h as Bn, onMounted as Fn, onBeforeMount as $n, unref as Hn } from "vue";
3
+ import { useCoreStore as Ve, useI18n as Vn } from "@feedmepos/mf-common";
4
+ import { defineStore as jn } from "pinia";
5
+ import { components as Wn } from "@feedmepos/ui-library";
6
+ const zn = {
8
7
  components: {
9
8
  select: "Select filter entity",
10
9
  restaurant: "Restaurant",
@@ -179,9 +178,9 @@ const Kn = {
179
178
  service2: "SoftPOS Card Payment"
180
179
  }
181
180
  }
182
- }, Jn = {
183
- payment: Kn
184
- }, Yn = {
181
+ }, Gn = {
182
+ payment: zn
183
+ }, qn = {
185
184
  components: {
186
185
  select: "选择筛选对象",
187
186
  restaurant: "餐厅",
@@ -356,8 +355,8 @@ const Kn = {
356
355
  service2: "SoftPOS银行卡支付"
357
356
  }
358
357
  }
359
- }, Xn = {
360
- payment: Yn
358
+ }, Kn = {
359
+ payment: qn
361
360
  }, K = [
362
361
  {
363
362
  path: "/admin/restaurants",
@@ -366,7 +365,7 @@ const Kn = {
366
365
  sidebarDisplay: "Restaurants",
367
366
  section: "payment-gateway"
368
367
  },
369
- component: () => import("./Restaurant-DCycaRR7.js")
368
+ component: () => import("./Restaurant-ZiTHtFZJ.js")
370
369
  },
371
370
  {
372
371
  path: "/admin/restaurants/:restaurantId",
@@ -375,7 +374,7 @@ const Kn = {
375
374
  meta: {
376
375
  parent: "mf-payment-admin.restaurant"
377
376
  },
378
- component: () => import("./RestaurantSetting-D6s1uPMz.js")
377
+ component: () => import("./RestaurantSetting-M1jYaGwx.js")
379
378
  },
380
379
  {
381
380
  path: "/admin/payout-accounts",
@@ -384,7 +383,7 @@ const Kn = {
384
383
  sidebarDisplay: "Payout Accounts",
385
384
  section: "payment-gateway"
386
385
  },
387
- component: () => import("./PayoutAccount-5spM7Xnv.js")
386
+ component: () => import("./PayoutAccount-DNl7LXSp.js")
388
387
  },
389
388
  {
390
389
  path: "/admin/payout-accounts/:accountId",
@@ -393,7 +392,7 @@ const Kn = {
393
392
  meta: {
394
393
  parent: "mf-payment-admin.payout-account"
395
394
  },
396
- component: () => import("./PayoutAccountSetting-BSmvV6yF.js")
395
+ component: () => import("./PayoutAccountSetting-DzkmUdgK.js")
397
396
  },
398
397
  {
399
398
  path: "/admin/onboarding",
@@ -402,7 +401,7 @@ const Kn = {
402
401
  sidebarDisplay: "Payment Onboarding",
403
402
  section: "payment-gateway"
404
403
  },
405
- component: () => import("./OnboardSubmission-DcFt464S.js")
404
+ component: () => import("./OnboardSubmission-BB383_k0.js")
406
405
  },
407
406
  {
408
407
  path: "/admin/onboarding/:submissionId",
@@ -411,7 +410,7 @@ const Kn = {
411
410
  meta: {
412
411
  parent: "mf-payment-admin.onboard-submission"
413
412
  },
414
- component: () => import("./OnboardForm-BsgH4rQ8.js")
413
+ component: () => import("./OnboardForm-DBgi_Y2Q.js")
415
414
  },
416
415
  {
417
416
  path: "/admin/terminal/pos",
@@ -420,7 +419,7 @@ const Kn = {
420
419
  sidebarDisplay: "POS",
421
420
  section: "device"
422
421
  },
423
- component: () => import("./Terminal-DOf20nIw.js"),
422
+ component: () => import("./Terminal-CoPPPePw.js"),
424
423
  props: {
425
424
  type: "POS"
426
425
  }
@@ -432,7 +431,7 @@ const Kn = {
432
431
  sidebarDisplay: "Kiosks",
433
432
  section: "device"
434
433
  },
435
- component: () => import("./Terminal-DOf20nIw.js"),
434
+ component: () => import("./Terminal-CoPPPePw.js"),
436
435
  props: {
437
436
  type: "KIOSK"
438
437
  }
@@ -444,7 +443,7 @@ const Kn = {
444
443
  sidebarDisplay: "Terminals",
445
444
  section: "device"
446
445
  },
447
- component: () => import("./Terminal-DOf20nIw.js"),
446
+ component: () => import("./Terminal-CoPPPePw.js"),
448
447
  props: {
449
448
  type: "TERMINAL"
450
449
  }
@@ -456,7 +455,7 @@ const Kn = {
456
455
  meta: {
457
456
  parent: "mf-payment-admin.pos"
458
457
  },
459
- component: () => import("./TerminalSetting-fwdOkBMF.js")
458
+ component: () => import("./TerminalSetting-PWs1fyFe.js")
460
459
  },
461
460
  {
462
461
  path: "/admin/terminal/kiosk/:terminalId",
@@ -465,7 +464,7 @@ const Kn = {
465
464
  meta: {
466
465
  parent: "mf-payment-admin.kiosk"
467
466
  },
468
- component: () => import("./TerminalSetting-fwdOkBMF.js")
467
+ component: () => import("./TerminalSetting-PWs1fyFe.js")
469
468
  },
470
469
  {
471
470
  path: "/admin/terminal/terminal/:terminalId",
@@ -474,7 +473,7 @@ const Kn = {
474
473
  meta: {
475
474
  parent: "mf-payment-admin.terminal"
476
475
  },
477
- component: () => import("./TerminalSetting-fwdOkBMF.js")
476
+ component: () => import("./TerminalSetting-PWs1fyFe.js")
478
477
  },
479
478
  {
480
479
  path: "/admin/transaction",
@@ -482,7 +481,7 @@ const Kn = {
482
481
  meta: {
483
482
  sidebarDisplay: "Transactions"
484
483
  },
485
- component: () => import("./Transaction-BojSMumb.js")
484
+ component: () => import("./Transaction-C6CtVbqB.js")
486
485
  },
487
486
  {
488
487
  path: "/admin/chargeback",
@@ -490,7 +489,7 @@ const Kn = {
490
489
  meta: {
491
490
  sidebarDisplay: "Chargebacks"
492
491
  },
493
- component: () => import("./Chargeback-BdT_s3at.js")
492
+ component: () => import("./Chargeback-19afdT_4.js")
494
493
  },
495
494
  {
496
495
  path: "/admin/settlement",
@@ -498,7 +497,7 @@ const Kn = {
498
497
  meta: {
499
498
  sidebarDisplay: "Settlements"
500
499
  },
501
- component: () => import("./Settlement-DHebMBfs.js")
500
+ component: () => import("./Settlement-D_nmqYEC.js")
502
501
  },
503
502
  {
504
503
  path: "/admin/settlement/:settlementId",
@@ -507,9 +506,9 @@ const Kn = {
507
506
  meta: {
508
507
  parent: "mf-payment-admin.settlement"
509
508
  },
510
- component: () => import("./SettlementTransactions-BB3jFvdP.js")
509
+ component: () => import("./SettlementTransactions-DvO6XMC4.js")
511
510
  }
512
- ], ue = [
511
+ ], je = [
513
512
  {
514
513
  path: "",
515
514
  redirect: { name: "mf-payment-payout-account" }
@@ -517,7 +516,7 @@ const Kn = {
517
516
  {
518
517
  path: "/payout-account",
519
518
  name: "mf-payment-payout-account",
520
- component: () => import("./PayoutAccount-D1NqkA8w.js"),
519
+ component: () => import("./PayoutAccount-OGJGX0YY.js"),
521
520
  meta: {
522
521
  sidebarDisplay: "i18n:payment.routes.payout_account"
523
522
  }
@@ -525,7 +524,7 @@ const Kn = {
525
524
  {
526
525
  path: "/onboard-submission",
527
526
  name: "mf-payment-onboard-submission",
528
- component: () => import("./OnboardSubmission-DrWzegfK.js"),
527
+ component: () => import("./OnboardSubmission-BhW5esGJ.js"),
529
528
  meta: {
530
529
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
531
530
  region: { MY: !0 }
@@ -535,7 +534,7 @@ const Kn = {
535
534
  path: "/onboard-submission/:type/:submission?",
536
535
  name: "mf-payment-onboard-submission-form",
537
536
  props: !0,
538
- component: () => import("./OnboardForm-BGM0rOan.js"),
537
+ component: () => import("./OnboardForm-Cnnx_Wje.js"),
539
538
  meta: {
540
539
  parent: "mf-payment-onboard-submission"
541
540
  }
@@ -543,7 +542,7 @@ const Kn = {
543
542
  {
544
543
  path: "/transaction-old",
545
544
  name: "mf-payment-old-transaction",
546
- component: () => import("./TransactionOld-CVid_gM_.js"),
545
+ component: () => import("./TransactionOld-Cvqw-Osm.js"),
547
546
  meta: {
548
547
  sidebarDisplay: "i18n:payment.routes.transaction"
549
548
  }
@@ -551,7 +550,7 @@ const Kn = {
551
550
  {
552
551
  path: "/transaction",
553
552
  name: "mf-payment-transaction",
554
- component: () => import("./Transaction-DRc7VdWm.js"),
553
+ component: () => import("./Transaction-DHTahbbJ.js"),
555
554
  meta: {
556
555
  sidebarDisplay: "i18n:payment.routes.transaction-new",
557
556
  sidebarNew: !0
@@ -560,7 +559,7 @@ const Kn = {
560
559
  {
561
560
  path: "/settlement",
562
561
  name: "mf-payment-settlement",
563
- component: () => import("./Settlement-DlplAJW2.js"),
562
+ component: () => import("./Settlement-Cj2W8VfH.js"),
564
563
  meta: {
565
564
  sidebarDisplay: "i18n:payment.routes.settlement"
566
565
  }
@@ -569,28 +568,28 @@ const Kn = {
569
568
  path: "/settlement/:settlementId",
570
569
  name: "mf-payment-settlement-transaction",
571
570
  props: !0,
572
- component: () => import("./SettlementTransactions-D1FZ4SvU.js"),
571
+ component: () => import("./SettlementTransactions-DQZUsieX.js"),
573
572
  meta: {
574
573
  parent: "mf-payment-settlement"
575
574
  }
576
- },
577
- {
578
- path: "/financing",
579
- name: "mf-payment-financing",
580
- component: Nn,
581
- meta: {
582
- useChildrenRoutes: !0
583
- },
584
- children: Ln.map((n) => ({
585
- ...n,
586
- meta: {
587
- ...n.meta,
588
- section: "financing"
589
- },
590
- path: `/financing${n.path}`
591
- }))
592
575
  }
593
- ], Qn = Gn("mf-payment-iframe", () => {
576
+ // {
577
+ // path: "/financing",
578
+ // name: "mf-payment-financing",
579
+ // component: FinacingApp,
580
+ // meta: {
581
+ // useChildrenRoutes: true,
582
+ // },
583
+ // children: financingRoutes.map((route) => ({
584
+ // ...route,
585
+ // meta: {
586
+ // ...route.meta,
587
+ // section: "financing",
588
+ // },
589
+ // path: `/financing${route.path}`,
590
+ // })),
591
+ // },
592
+ ], Jn = jn("mf-payment-iframe", () => {
594
593
  const n = {
595
594
  isIframe: !1
596
595
  }, e = Nt(() => n);
@@ -634,7 +633,7 @@ const Kn = {
634
633
  * See the License for the specific language governing permissions and
635
634
  * limitations under the License.
636
635
  */
637
- const Ft = function(n) {
636
+ const Bt = function(n) {
638
637
  const e = [];
639
638
  let t = 0;
640
639
  for (let r = 0; r < n.length; r++) {
@@ -642,7 +641,7 @@ const Ft = function(n) {
642
641
  i < 128 ? e[t++] = i : i < 2048 ? (e[t++] = i >> 6 | 192, e[t++] = i & 63 | 128) : (i & 64512) === 55296 && r + 1 < n.length && (n.charCodeAt(r + 1) & 64512) === 56320 ? (i = 65536 + ((i & 1023) << 10) + (n.charCodeAt(++r) & 1023), e[t++] = i >> 18 | 240, e[t++] = i >> 12 & 63 | 128, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128) : (e[t++] = i >> 12 | 224, e[t++] = i >> 6 & 63 | 128, e[t++] = i & 63 | 128);
643
642
  }
644
643
  return e;
645
- }, Zn = function(n) {
644
+ }, Yn = function(n) {
646
645
  const e = [];
647
646
  let t = 0, r = 0;
648
647
  for (; t < n.length; ) {
@@ -661,7 +660,7 @@ const Ft = function(n) {
661
660
  }
662
661
  }
663
662
  return e.join("");
664
- }, Bt = {
663
+ }, Ft = {
665
664
  /**
666
665
  * Maps bytes to characters.
667
666
  */
@@ -735,7 +734,7 @@ const Ft = function(n) {
735
734
  * @return The base64 encoded string.
736
735
  */
737
736
  encodeString(n, e) {
738
- return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Ft(n), e);
737
+ return this.HAS_NATIVE_SUPPORT && !e ? btoa(n) : this.encodeByteArray(Bt(n), e);
739
738
  },
740
739
  /**
741
740
  * Base64-decode a string.
@@ -746,7 +745,7 @@ const Ft = function(n) {
746
745
  * @return string representing the decoded value.
747
746
  */
748
747
  decodeString(n, e) {
749
- return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Zn(this.decodeStringToByteArray(n, e));
748
+ return this.HAS_NATIVE_SUPPORT && !e ? atob(n) : Yn(this.decodeStringToByteArray(n, e));
750
749
  },
751
750
  /**
752
751
  * Base64-decode a string.
@@ -773,13 +772,13 @@ const Ft = function(n) {
773
772
  ++i;
774
773
  const d = i < n.length ? t[n.charAt(i)] : 64;
775
774
  if (++i, s == null || c == null || l == null || d == null)
776
- throw new er();
775
+ throw new Xn();
777
776
  const p = s << 2 | c >> 4;
778
777
  if (r.push(p), l !== 64) {
779
778
  const m = c << 4 & 240 | l >> 2;
780
779
  if (r.push(m), d !== 64) {
781
- const F = l << 6 & 192 | d;
782
- r.push(F);
780
+ const B = l << 6 & 192 | d;
781
+ r.push(B);
783
782
  }
784
783
  }
785
784
  }
@@ -798,19 +797,19 @@ const Ft = function(n) {
798
797
  }
799
798
  }
800
799
  };
801
- class er extends Error {
800
+ class Xn extends Error {
802
801
  constructor() {
803
802
  super(...arguments), this.name = "DecodeBase64StringError";
804
803
  }
805
804
  }
806
- const tr = function(n) {
807
- const e = Ft(n);
808
- return Bt.encodeByteArray(e, !0);
805
+ const Qn = function(n) {
806
+ const e = Bt(n);
807
+ return Ft.encodeByteArray(e, !0);
809
808
  }, $t = function(n) {
810
- return tr(n).replace(/\./g, "");
809
+ return Qn(n).replace(/\./g, "");
811
810
  }, Ht = function(n) {
812
811
  try {
813
- return Bt.decodeString(n, !0);
812
+ return Ft.decodeString(n, !0);
814
813
  } catch (e) {
815
814
  console.error("base64Decode failed: ", e);
816
815
  }
@@ -832,7 +831,7 @@ const tr = function(n) {
832
831
  * See the License for the specific language governing permissions and
833
832
  * limitations under the License.
834
833
  */
835
- function nr() {
834
+ function Zn() {
836
835
  if (typeof self < "u")
837
836
  return self;
838
837
  if (typeof window < "u")
@@ -857,13 +856,13 @@ function nr() {
857
856
  * See the License for the specific language governing permissions and
858
857
  * limitations under the License.
859
858
  */
860
- const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
859
+ const er = () => Zn().__FIREBASE_DEFAULTS__, tr = () => {
861
860
  if (typeof process > "u" || typeof process.env > "u")
862
861
  return;
863
862
  const n = process.env.__FIREBASE_DEFAULTS__;
864
863
  if (n)
865
864
  return JSON.parse(n);
866
- }, sr = () => {
865
+ }, nr = () => {
867
866
  if (typeof document > "u")
868
867
  return;
869
868
  let n;
@@ -876,12 +875,12 @@ const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
876
875
  return e && JSON.parse(e);
877
876
  }, We = () => {
878
877
  try {
879
- return rr() || ir() || sr();
878
+ return er() || tr() || nr();
880
879
  } catch (n) {
881
880
  console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);
882
881
  return;
883
882
  }
884
- }, ar = (n) => {
883
+ }, rr = (n) => {
885
884
  var e, t;
886
885
  return (t = (e = We()) === null || e === void 0 ? void 0 : e.emulatorHosts) === null || t === void 0 ? void 0 : t[n];
887
886
  }, Vt = () => {
@@ -907,7 +906,7 @@ const rr = () => nr().__FIREBASE_DEFAULTS__, ir = () => {
907
906
  * See the License for the specific language governing permissions and
908
907
  * limitations under the License.
909
908
  */
910
- class or {
909
+ class ir {
911
910
  constructor() {
912
911
  this.reject = () => {
913
912
  }, this.resolve = () => {
@@ -946,33 +945,33 @@ class or {
946
945
  function g() {
947
946
  return typeof navigator < "u" && typeof navigator.userAgent == "string" ? navigator.userAgent : "";
948
947
  }
949
- function cr() {
948
+ function sr() {
950
949
  return typeof window < "u" && // @ts-ignore Setting up an broadly applicable index signature for Window
951
950
  // just to deal with this case would probably be a bad idea.
952
951
  !!(window.cordova || window.phonegap || window.PhoneGap) && /ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g());
953
952
  }
954
- function lr() {
953
+ function ar() {
955
954
  return typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers";
956
955
  }
957
- function ur() {
956
+ function or() {
958
957
  const n = typeof chrome == "object" ? chrome.runtime : typeof browser == "object" ? browser.runtime : void 0;
959
958
  return typeof n == "object" && n.id !== void 0;
960
959
  }
961
- function dr() {
960
+ function cr() {
962
961
  return typeof navigator == "object" && navigator.product === "ReactNative";
963
962
  }
964
- function hr() {
963
+ function lr() {
965
964
  const n = g();
966
965
  return n.indexOf("MSIE ") >= 0 || n.indexOf("Trident/") >= 0;
967
966
  }
968
- function fr() {
967
+ function ur() {
969
968
  try {
970
969
  return typeof indexedDB == "object";
971
970
  } catch {
972
971
  return !1;
973
972
  }
974
973
  }
975
- function pr() {
974
+ function dr() {
976
975
  return new Promise((n, e) => {
977
976
  try {
978
977
  let t = !0;
@@ -1006,10 +1005,10 @@ function pr() {
1006
1005
  * See the License for the specific language governing permissions and
1007
1006
  * limitations under the License.
1008
1007
  */
1009
- const mr = "FirebaseError";
1008
+ const hr = "FirebaseError";
1010
1009
  class L extends Error {
1011
1010
  constructor(e, t, r) {
1012
- super(t), this.code = e, this.customData = r, this.name = mr, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
1011
+ super(t), this.code = e, this.customData = r, this.name = hr, Object.setPrototypeOf(this, L.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Z.prototype.create);
1013
1012
  }
1014
1013
  }
1015
1014
  class Z {
@@ -1017,24 +1016,24 @@ class Z {
1017
1016
  this.service = e, this.serviceName = t, this.errors = r;
1018
1017
  }
1019
1018
  create(e, ...t) {
1020
- const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? gr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1019
+ const r = t[0] || {}, i = `${this.service}/${e}`, s = this.errors[e], a = s ? fr(s, r) : "Error", c = `${this.serviceName}: ${a} (${i}).`;
1021
1020
  return new L(i, c, r);
1022
1021
  }
1023
1022
  }
1024
- function gr(n, e) {
1025
- return n.replace(_r, (t, r) => {
1023
+ function fr(n, e) {
1024
+ return n.replace(pr, (t, r) => {
1026
1025
  const i = e[r];
1027
1026
  return i != null ? String(i) : `<${r}?>`;
1028
1027
  });
1029
1028
  }
1030
- const _r = /\{\$([^}]+)}/g;
1031
- function yr(n) {
1029
+ const pr = /\{\$([^}]+)}/g;
1030
+ function mr(n) {
1032
1031
  for (const e in n)
1033
1032
  if (Object.prototype.hasOwnProperty.call(n, e))
1034
1033
  return !1;
1035
1034
  return !0;
1036
1035
  }
1037
- function de(n, e) {
1036
+ function ue(n, e) {
1038
1037
  if (n === e)
1039
1038
  return !0;
1040
1039
  const t = Object.keys(n), r = Object.keys(e);
@@ -1043,7 +1042,7 @@ function de(n, e) {
1043
1042
  return !1;
1044
1043
  const s = n[i], a = e[i];
1045
1044
  if (at(s) && at(a)) {
1046
- if (!de(s, a))
1045
+ if (!ue(s, a))
1047
1046
  return !1;
1048
1047
  } else if (s !== a)
1049
1048
  return !1;
@@ -1080,11 +1079,11 @@ function ee(n) {
1080
1079
  }) : e.push(encodeURIComponent(t) + "=" + encodeURIComponent(r));
1081
1080
  return e.length ? "&" + e.join("&") : "";
1082
1081
  }
1083
- function vr(n, e) {
1084
- const t = new br(n, e);
1082
+ function gr(n, e) {
1083
+ const t = new _r(n, e);
1085
1084
  return t.subscribe.bind(t);
1086
1085
  }
1087
- class br {
1086
+ class _r {
1088
1087
  /**
1089
1088
  * @param executor Function which can make calls to a single Observer
1090
1089
  * as a proxy.
@@ -1122,7 +1121,7 @@ class br {
1122
1121
  let i;
1123
1122
  if (e === void 0 && t === void 0 && r === void 0)
1124
1123
  throw new Error("Missing Observer.");
1125
- Ir(e, [
1124
+ yr(e, [
1126
1125
  "next",
1127
1126
  "error",
1128
1127
  "complete"
@@ -1130,7 +1129,7 @@ class br {
1130
1129
  next: e,
1131
1130
  error: t,
1132
1131
  complete: r
1133
- }, i.next === void 0 && (i.next = ke), i.error === void 0 && (i.error = ke), i.complete === void 0 && (i.complete = ke);
1132
+ }, i.next === void 0 && (i.next = Se), i.error === void 0 && (i.error = Se), i.complete === void 0 && (i.complete = Se);
1134
1133
  const s = this.unsubscribeOne.bind(this, this.observers.length);
1135
1134
  return this.finalized && this.task.then(() => {
1136
1135
  try {
@@ -1168,7 +1167,7 @@ class br {
1168
1167
  }));
1169
1168
  }
1170
1169
  }
1171
- function Ir(n, e) {
1170
+ function yr(n, e) {
1172
1171
  if (typeof n != "object" || n === null)
1173
1172
  return !1;
1174
1173
  for (const t of e)
@@ -1176,7 +1175,7 @@ function Ir(n, e) {
1176
1175
  return !0;
1177
1176
  return !1;
1178
1177
  }
1179
- function ke() {
1178
+ function Se() {
1180
1179
  }
1181
1180
  /**
1182
1181
  * @license
@@ -1253,7 +1252,7 @@ const M = "[DEFAULT]";
1253
1252
  * See the License for the specific language governing permissions and
1254
1253
  * limitations under the License.
1255
1254
  */
1256
- class wr {
1255
+ class vr {
1257
1256
  constructor(e, t) {
1258
1257
  this.name = e, this.container = t, this.component = null, this.instances = /* @__PURE__ */ new Map(), this.instancesDeferred = /* @__PURE__ */ new Map(), this.instancesOptions = /* @__PURE__ */ new Map(), this.onInitCallbacks = /* @__PURE__ */ new Map();
1259
1258
  }
@@ -1264,7 +1263,7 @@ class wr {
1264
1263
  get(e) {
1265
1264
  const t = this.normalizeInstanceIdentifier(e);
1266
1265
  if (!this.instancesDeferred.has(t)) {
1267
- const r = new or();
1266
+ const r = new ir();
1268
1267
  if (this.instancesDeferred.set(t, r), this.isInitialized(t) || this.shouldAutoInitialize())
1269
1268
  try {
1270
1269
  const i = this.getOrInitializeService({
@@ -1304,7 +1303,7 @@ class wr {
1304
1303
  if (this.component)
1305
1304
  throw Error(`Component for ${this.name} has already been provided`);
1306
1305
  if (this.component = e, !!this.shouldAutoInitialize()) {
1307
- if (Tr(e))
1306
+ if (Ir(e))
1308
1307
  try {
1309
1308
  this.getOrInitializeService({ instanceIdentifier: M });
1310
1309
  } catch {
@@ -1391,7 +1390,7 @@ class wr {
1391
1390
  getOrInitializeService({ instanceIdentifier: e, options: t = {} }) {
1392
1391
  let r = this.instances.get(e);
1393
1392
  if (!r && this.component && (r = this.component.instanceFactory(this.container, {
1394
- instanceIdentifier: Er(e),
1393
+ instanceIdentifier: br(e),
1395
1394
  options: t
1396
1395
  }), this.instances.set(e, r), this.instancesOptions.set(e, t), this.invokeOnInitCallbacks(r, e), this.component.onInstanceCreated))
1397
1396
  try {
@@ -1407,10 +1406,10 @@ class wr {
1407
1406
  return !!this.component && this.component.instantiationMode !== "EXPLICIT";
1408
1407
  }
1409
1408
  }
1410
- function Er(n) {
1409
+ function br(n) {
1411
1410
  return n === M ? void 0 : n;
1412
1411
  }
1413
- function Tr(n) {
1412
+ function Ir(n) {
1414
1413
  return n.instantiationMode === "EAGER";
1415
1414
  }
1416
1415
  /**
@@ -1429,7 +1428,7 @@ function Tr(n) {
1429
1428
  * See the License for the specific language governing permissions and
1430
1429
  * limitations under the License.
1431
1430
  */
1432
- class Sr {
1431
+ class wr {
1433
1432
  constructor(e) {
1434
1433
  this.name = e, this.providers = /* @__PURE__ */ new Map();
1435
1434
  }
@@ -1461,7 +1460,7 @@ class Sr {
1461
1460
  getProvider(e) {
1462
1461
  if (this.providers.has(e))
1463
1462
  return this.providers.get(e);
1464
- const t = new wr(e, this);
1463
+ const t = new vr(e, this);
1465
1464
  return this.providers.set(e, t), t;
1466
1465
  }
1467
1466
  getProviders() {
@@ -1488,23 +1487,23 @@ var f;
1488
1487
  (function(n) {
1489
1488
  n[n.DEBUG = 0] = "DEBUG", n[n.VERBOSE = 1] = "VERBOSE", n[n.INFO = 2] = "INFO", n[n.WARN = 3] = "WARN", n[n.ERROR = 4] = "ERROR", n[n.SILENT = 5] = "SILENT";
1490
1489
  })(f || (f = {}));
1491
- const kr = {
1490
+ const Er = {
1492
1491
  debug: f.DEBUG,
1493
1492
  verbose: f.VERBOSE,
1494
1493
  info: f.INFO,
1495
1494
  warn: f.WARN,
1496
1495
  error: f.ERROR,
1497
1496
  silent: f.SILENT
1498
- }, Ar = f.INFO, Cr = {
1497
+ }, Tr = f.INFO, Sr = {
1499
1498
  [f.DEBUG]: "log",
1500
1499
  [f.VERBOSE]: "log",
1501
1500
  [f.INFO]: "info",
1502
1501
  [f.WARN]: "warn",
1503
1502
  [f.ERROR]: "error"
1504
- }, Rr = (n, e, ...t) => {
1503
+ }, kr = (n, e, ...t) => {
1505
1504
  if (e < n.logLevel)
1506
1505
  return;
1507
- const r = (/* @__PURE__ */ new Date()).toISOString(), i = Cr[e];
1506
+ const r = (/* @__PURE__ */ new Date()).toISOString(), i = Sr[e];
1508
1507
  if (i)
1509
1508
  console[i](`[${r}] ${n.name}:`, ...t);
1510
1509
  else
@@ -1518,7 +1517,7 @@ class Wt {
1518
1517
  * @param name The name that the logs will be associated with
1519
1518
  */
1520
1519
  constructor(e) {
1521
- this.name = e, this._logLevel = Ar, this._logHandler = Rr, this._userLogHandler = null;
1520
+ this.name = e, this._logLevel = Tr, this._logHandler = kr, this._userLogHandler = null;
1522
1521
  }
1523
1522
  get logLevel() {
1524
1523
  return this._logLevel;
@@ -1530,7 +1529,7 @@ class Wt {
1530
1529
  }
1531
1530
  // Workaround for setter/getter having to be the same type.
1532
1531
  setLogLevel(e) {
1533
- this._logLevel = typeof e == "string" ? kr[e] : e;
1532
+ this._logLevel = typeof e == "string" ? Er[e] : e;
1534
1533
  }
1535
1534
  get logHandler() {
1536
1535
  return this._logHandler;
@@ -1565,9 +1564,9 @@ class Wt {
1565
1564
  this._userLogHandler && this._userLogHandler(this, f.ERROR, ...e), this._logHandler(this, f.ERROR, ...e);
1566
1565
  }
1567
1566
  }
1568
- const Pr = (n, e) => e.some((t) => n instanceof t);
1567
+ const Ar = (n, e) => e.some((t) => n instanceof t);
1569
1568
  let ot, ct;
1570
- function Or() {
1569
+ function Rr() {
1571
1570
  return ot || (ot = [
1572
1571
  IDBDatabase,
1573
1572
  IDBObjectStore,
@@ -1576,15 +1575,15 @@ function Or() {
1576
1575
  IDBTransaction
1577
1576
  ]);
1578
1577
  }
1579
- function Dr() {
1578
+ function Cr() {
1580
1579
  return ct || (ct = [
1581
1580
  IDBCursor.prototype.advance,
1582
1581
  IDBCursor.prototype.continue,
1583
1582
  IDBCursor.prototype.continuePrimaryKey
1584
1583
  ]);
1585
1584
  }
1586
- const zt = /* @__PURE__ */ new WeakMap(), Me = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
1587
- function Nr(n) {
1585
+ const zt = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
1586
+ function Pr(n) {
1588
1587
  const e = new Promise((t, r) => {
1589
1588
  const i = () => {
1590
1589
  n.removeEventListener("success", s), n.removeEventListener("error", a);
@@ -1600,8 +1599,8 @@ function Nr(n) {
1600
1599
  }).catch(() => {
1601
1600
  }), ze.set(e, n), e;
1602
1601
  }
1603
- function Lr(n) {
1604
- if (Me.has(n))
1602
+ function Or(n) {
1603
+ if (Le.has(n))
1605
1604
  return;
1606
1605
  const e = new Promise((t, r) => {
1607
1606
  const i = () => {
@@ -1613,13 +1612,13 @@ function Lr(n) {
1613
1612
  };
1614
1613
  n.addEventListener("complete", s), n.addEventListener("error", a), n.addEventListener("abort", a);
1615
1614
  });
1616
- Me.set(n, e);
1615
+ Le.set(n, e);
1617
1616
  }
1618
- let Ue = {
1617
+ let Me = {
1619
1618
  get(n, e, t) {
1620
1619
  if (n instanceof IDBTransaction) {
1621
1620
  if (e === "done")
1622
- return Me.get(n);
1621
+ return Le.get(n);
1623
1622
  if (e === "objectStoreNames")
1624
1623
  return n.objectStoreNames || Gt.get(n);
1625
1624
  if (e === "store")
@@ -1634,32 +1633,32 @@ let Ue = {
1634
1633
  return n instanceof IDBTransaction && (e === "done" || e === "store") ? !0 : e in n;
1635
1634
  }
1636
1635
  };
1637
- function Mr(n) {
1638
- Ue = n(Ue);
1636
+ function Dr(n) {
1637
+ Me = n(Me);
1639
1638
  }
1640
- function Ur(n) {
1639
+ function Nr(n) {
1641
1640
  return n === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(e, ...t) {
1642
- const r = n.call(Ce(this), e, ...t);
1641
+ const r = n.call(Ae(this), e, ...t);
1643
1642
  return Gt.set(r, e.sort ? e.sort() : [e]), O(r);
1644
- } : Dr().includes(n) ? function(...e) {
1645
- return n.apply(Ce(this), e), O(zt.get(this));
1643
+ } : Cr().includes(n) ? function(...e) {
1644
+ return n.apply(Ae(this), e), O(zt.get(this));
1646
1645
  } : function(...e) {
1647
- return O(n.apply(Ce(this), e));
1646
+ return O(n.apply(Ae(this), e));
1648
1647
  };
1649
1648
  }
1650
- function xr(n) {
1651
- return typeof n == "function" ? Ur(n) : (n instanceof IDBTransaction && Lr(n), Pr(n, Or()) ? new Proxy(n, Ue) : n);
1649
+ function Lr(n) {
1650
+ return typeof n == "function" ? Nr(n) : (n instanceof IDBTransaction && Or(n), Ar(n, Rr()) ? new Proxy(n, Me) : n);
1652
1651
  }
1653
1652
  function O(n) {
1654
1653
  if (n instanceof IDBRequest)
1655
- return Nr(n);
1656
- if (Ae.has(n))
1657
- return Ae.get(n);
1658
- const e = xr(n);
1659
- return e !== n && (Ae.set(n, e), ze.set(e, n)), e;
1660
- }
1661
- const Ce = (n) => ze.get(n);
1662
- function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1654
+ return Pr(n);
1655
+ if (ke.has(n))
1656
+ return ke.get(n);
1657
+ const e = Lr(n);
1658
+ return e !== n && (ke.set(n, e), ze.set(e, n)), e;
1659
+ }
1660
+ const Ae = (n) => ze.get(n);
1661
+ function Mr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1663
1662
  const a = indexedDB.open(n, e), c = O(a);
1664
1663
  return r && a.addEventListener("upgradeneeded", (o) => {
1665
1664
  r(O(a.result), o.oldVersion, o.newVersion, O(a.transaction), o);
@@ -1673,16 +1672,16 @@ function Fr(n, e, { blocked: t, upgrade: r, blocking: i, terminated: s } = {}) {
1673
1672
  }).catch(() => {
1674
1673
  }), c;
1675
1674
  }
1676
- const Br = ["get", "getKey", "getAll", "getAllKeys", "count"], $r = ["put", "add", "delete", "clear"], Re = /* @__PURE__ */ new Map();
1675
+ const Ur = ["get", "getKey", "getAll", "getAllKeys", "count"], xr = ["put", "add", "delete", "clear"], Re = /* @__PURE__ */ new Map();
1677
1676
  function lt(n, e) {
1678
1677
  if (!(n instanceof IDBDatabase && !(e in n) && typeof e == "string"))
1679
1678
  return;
1680
1679
  if (Re.get(e))
1681
1680
  return Re.get(e);
1682
- const t = e.replace(/FromIndex$/, ""), r = e !== t, i = $r.includes(t);
1681
+ const t = e.replace(/FromIndex$/, ""), r = e !== t, i = xr.includes(t);
1683
1682
  if (
1684
1683
  // Bail if the target doesn't exist on the target. Eg, getAll isn't in Edge.
1685
- !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Br.includes(t))
1684
+ !(t in (r ? IDBIndex : IDBObjectStore).prototype) || !(i || Ur.includes(t))
1686
1685
  )
1687
1686
  return;
1688
1687
  const s = async function(a, ...c) {
@@ -1695,7 +1694,7 @@ function lt(n, e) {
1695
1694
  };
1696
1695
  return Re.set(e, s), s;
1697
1696
  }
1698
- Mr((n) => ({
1697
+ Dr((n) => ({
1699
1698
  ...n,
1700
1699
  get: (e, t, r) => lt(e, t) || n.get(e, t, r),
1701
1700
  has: (e, t) => !!lt(e, t) || n.has(e, t)
@@ -1716,7 +1715,7 @@ Mr((n) => ({
1716
1715
  * See the License for the specific language governing permissions and
1717
1716
  * limitations under the License.
1718
1717
  */
1719
- class Hr {
1718
+ class Br {
1720
1719
  constructor(e) {
1721
1720
  this.container = e;
1722
1721
  }
@@ -1724,7 +1723,7 @@ class Hr {
1724
1723
  // auth token refresh, and installations will send this string.
1725
1724
  getPlatformInfoString() {
1726
1725
  return this.container.getProviders().map((t) => {
1727
- if (Vr(t)) {
1726
+ if (Fr(t)) {
1728
1727
  const r = t.getImmediate();
1729
1728
  return `${r.library}/${r.version}`;
1730
1729
  } else
@@ -1732,11 +1731,11 @@ class Hr {
1732
1731
  }).filter((t) => t).join(" ");
1733
1732
  }
1734
1733
  }
1735
- function Vr(n) {
1734
+ function Fr(n) {
1736
1735
  const e = n.getComponent();
1737
1736
  return (e == null ? void 0 : e.type) === "VERSION";
1738
1737
  }
1739
- const xe = "@firebase/app", ut = "0.10.13";
1738
+ const Ue = "@firebase/app", ut = "0.10.13";
1740
1739
  /**
1741
1740
  * @license
1742
1741
  * Copyright 2019 Google LLC
@@ -1753,7 +1752,7 @@ const xe = "@firebase/app", ut = "0.10.13";
1753
1752
  * See the License for the specific language governing permissions and
1754
1753
  * limitations under the License.
1755
1754
  */
1756
- const E = new Wt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/analytics-compat", zr = "@firebase/analytics", Gr = "@firebase/app-check-compat", qr = "@firebase/app-check", Kr = "@firebase/auth", Jr = "@firebase/auth-compat", Yr = "@firebase/database", Xr = "@firebase/data-connect", Qr = "@firebase/database-compat", Zr = "@firebase/functions", ei = "@firebase/functions-compat", ti = "@firebase/installations", ni = "@firebase/installations-compat", ri = "@firebase/messaging", ii = "@firebase/messaging-compat", si = "@firebase/performance", ai = "@firebase/performance-compat", oi = "@firebase/remote-config", ci = "@firebase/remote-config-compat", li = "@firebase/storage", ui = "@firebase/storage-compat", di = "@firebase/firestore", hi = "@firebase/vertexai-preview", fi = "@firebase/firestore-compat", pi = "firebase", mi = "10.14.1";
1755
+ const E = new Wt("@firebase/app"), $r = "@firebase/app-compat", Hr = "@firebase/analytics-compat", Vr = "@firebase/analytics", jr = "@firebase/app-check-compat", Wr = "@firebase/app-check", zr = "@firebase/auth", Gr = "@firebase/auth-compat", qr = "@firebase/database", Kr = "@firebase/data-connect", Jr = "@firebase/database-compat", Yr = "@firebase/functions", Xr = "@firebase/functions-compat", Qr = "@firebase/installations", Zr = "@firebase/installations-compat", ei = "@firebase/messaging", ti = "@firebase/messaging-compat", ni = "@firebase/performance", ri = "@firebase/performance-compat", ii = "@firebase/remote-config", si = "@firebase/remote-config-compat", ai = "@firebase/storage", oi = "@firebase/storage-compat", ci = "@firebase/firestore", li = "@firebase/vertexai-preview", ui = "@firebase/firestore-compat", di = "firebase", hi = "10.14.1";
1757
1756
  /**
1758
1757
  * @license
1759
1758
  * Copyright 2019 Google LLC
@@ -1770,35 +1769,35 @@ const E = new Wt("@firebase/app"), jr = "@firebase/app-compat", Wr = "@firebase/
1770
1769
  * See the License for the specific language governing permissions and
1771
1770
  * limitations under the License.
1772
1771
  */
1773
- const Fe = "[DEFAULT]", gi = {
1774
- [xe]: "fire-core",
1775
- [jr]: "fire-core-compat",
1776
- [zr]: "fire-analytics",
1777
- [Wr]: "fire-analytics-compat",
1778
- [qr]: "fire-app-check",
1779
- [Gr]: "fire-app-check-compat",
1780
- [Kr]: "fire-auth",
1781
- [Jr]: "fire-auth-compat",
1782
- [Yr]: "fire-rtdb",
1783
- [Xr]: "fire-data-connect",
1784
- [Qr]: "fire-rtdb-compat",
1785
- [Zr]: "fire-fn",
1786
- [ei]: "fire-fn-compat",
1787
- [ti]: "fire-iid",
1788
- [ni]: "fire-iid-compat",
1789
- [ri]: "fire-fcm",
1790
- [ii]: "fire-fcm-compat",
1791
- [si]: "fire-perf",
1792
- [ai]: "fire-perf-compat",
1793
- [oi]: "fire-rc",
1794
- [ci]: "fire-rc-compat",
1795
- [li]: "fire-gcs",
1796
- [ui]: "fire-gcs-compat",
1797
- [di]: "fire-fst",
1798
- [fi]: "fire-fst-compat",
1799
- [hi]: "fire-vertex",
1772
+ const xe = "[DEFAULT]", fi = {
1773
+ [Ue]: "fire-core",
1774
+ [$r]: "fire-core-compat",
1775
+ [Vr]: "fire-analytics",
1776
+ [Hr]: "fire-analytics-compat",
1777
+ [Wr]: "fire-app-check",
1778
+ [jr]: "fire-app-check-compat",
1779
+ [zr]: "fire-auth",
1780
+ [Gr]: "fire-auth-compat",
1781
+ [qr]: "fire-rtdb",
1782
+ [Kr]: "fire-data-connect",
1783
+ [Jr]: "fire-rtdb-compat",
1784
+ [Yr]: "fire-fn",
1785
+ [Xr]: "fire-fn-compat",
1786
+ [Qr]: "fire-iid",
1787
+ [Zr]: "fire-iid-compat",
1788
+ [ei]: "fire-fcm",
1789
+ [ti]: "fire-fcm-compat",
1790
+ [ni]: "fire-perf",
1791
+ [ri]: "fire-perf-compat",
1792
+ [ii]: "fire-rc",
1793
+ [si]: "fire-rc-compat",
1794
+ [ai]: "fire-gcs",
1795
+ [oi]: "fire-gcs-compat",
1796
+ [ci]: "fire-fst",
1797
+ [ui]: "fire-fst-compat",
1798
+ [li]: "fire-vertex",
1800
1799
  "fire-js": "fire-js",
1801
- [pi]: "fire-js-all"
1800
+ [di]: "fire-js-all"
1802
1801
  };
1803
1802
  /**
1804
1803
  * @license
@@ -1816,7 +1815,7 @@ const Fe = "[DEFAULT]", gi = {
1816
1815
  * See the License for the specific language governing permissions and
1817
1816
  * limitations under the License.
1818
1817
  */
1819
- const he = /* @__PURE__ */ new Map(), _i = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
1818
+ const de = /* @__PURE__ */ new Map(), pi = /* @__PURE__ */ new Map(), Be = /* @__PURE__ */ new Map();
1820
1819
  function dt(n, e) {
1821
1820
  try {
1822
1821
  n.container.addComponent(e);
@@ -1829,9 +1828,9 @@ function Y(n) {
1829
1828
  if (Be.has(e))
1830
1829
  return E.debug(`There were multiple attempts to register component ${e}.`), !1;
1831
1830
  Be.set(e, n);
1832
- for (const t of he.values())
1831
+ for (const t of de.values())
1833
1832
  dt(t, n);
1834
- for (const t of _i.values())
1833
+ for (const t of pi.values())
1835
1834
  dt(t, n);
1836
1835
  return !0;
1837
1836
  }
@@ -1858,7 +1857,7 @@ function v(n) {
1858
1857
  * See the License for the specific language governing permissions and
1859
1858
  * limitations under the License.
1860
1859
  */
1861
- const yi = {
1860
+ const mi = {
1862
1861
  "no-app": "No Firebase App '{$appName}' has been created - call initializeApp() first",
1863
1862
  "bad-app-name": "Illegal App name: '{$appName}'",
1864
1863
  "duplicate-app": "Firebase App named '{$appName}' already exists with different options or config",
@@ -1873,7 +1872,7 @@ const yi = {
1873
1872
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
1874
1873
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
1875
1874
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
1876
- }, D = new Z("app", "Firebase", yi);
1875
+ }, D = new Z("app", "Firebase", mi);
1877
1876
  /**
1878
1877
  * @license
1879
1878
  * Copyright 2019 Google LLC
@@ -1890,7 +1889,7 @@ const yi = {
1890
1889
  * See the License for the specific language governing permissions and
1891
1890
  * limitations under the License.
1892
1891
  */
1893
- class vi {
1892
+ class gi {
1894
1893
  constructor(e, t, r) {
1895
1894
  this._isDeleted = !1, this._options = Object.assign({}, e), this._config = Object.assign({}, t), this._name = t.name, this._automaticDataCollectionEnabled = t.automaticDataCollectionEnabled, this._container = r, this.container.addComponent(new W(
1896
1895
  "app",
@@ -1948,11 +1947,11 @@ class vi {
1948
1947
  * See the License for the specific language governing permissions and
1949
1948
  * limitations under the License.
1950
1949
  */
1951
- const te = mi;
1950
+ const te = hi;
1952
1951
  function Kt(n, e = {}) {
1953
1952
  let t = n;
1954
1953
  typeof e != "object" && (e = { name: e });
1955
- const r = Object.assign({ name: Fe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
1954
+ const r = Object.assign({ name: xe, automaticDataCollectionEnabled: !1 }, e), i = r.name;
1956
1955
  if (typeof i != "string" || !i)
1957
1956
  throw D.create("bad-app-name", {
1958
1957
  appName: String(i)
@@ -1962,21 +1961,21 @@ function Kt(n, e = {}) {
1962
1961
  "no-options"
1963
1962
  /* AppError.NO_OPTIONS */
1964
1963
  );
1965
- const s = he.get(i);
1964
+ const s = de.get(i);
1966
1965
  if (s) {
1967
- if (de(t, s.options) && de(r, s.config))
1966
+ if (ue(t, s.options) && ue(r, s.config))
1968
1967
  return s;
1969
1968
  throw D.create("duplicate-app", { appName: i });
1970
1969
  }
1971
- const a = new Sr(i);
1970
+ const a = new wr(i);
1972
1971
  for (const o of Be.values())
1973
1972
  a.addComponent(o);
1974
- const c = new vi(t, r, a);
1975
- return he.set(i, c), c;
1973
+ const c = new gi(t, r, a);
1974
+ return de.set(i, c), c;
1976
1975
  }
1977
- function bi(n = Fe) {
1978
- const e = he.get(n);
1979
- if (!e && n === Fe && Vt())
1976
+ function _i(n = xe) {
1977
+ const e = de.get(n);
1978
+ if (!e && n === xe && Vt())
1980
1979
  return Kt();
1981
1980
  if (!e)
1982
1981
  throw D.create("no-app", { appName: n });
@@ -1984,7 +1983,7 @@ function bi(n = Fe) {
1984
1983
  }
1985
1984
  function $(n, e, t) {
1986
1985
  var r;
1987
- let i = (r = gi[n]) !== null && r !== void 0 ? r : n;
1986
+ let i = (r = fi[n]) !== null && r !== void 0 ? r : n;
1988
1987
  t && (i += `-${t}`);
1989
1988
  const s = i.match(/\s|\//), a = e.match(/\s|\//);
1990
1989
  if (s || a) {
@@ -2017,10 +2016,10 @@ function $(n, e, t) {
2017
2016
  * See the License for the specific language governing permissions and
2018
2017
  * limitations under the License.
2019
2018
  */
2020
- const Ii = "firebase-heartbeat-database", wi = 1, X = "firebase-heartbeat-store";
2021
- let Pe = null;
2019
+ const yi = "firebase-heartbeat-database", vi = 1, X = "firebase-heartbeat-store";
2020
+ let Ce = null;
2022
2021
  function Jt() {
2023
- return Pe || (Pe = Fr(Ii, wi, {
2022
+ return Ce || (Ce = Mr(yi, vi, {
2024
2023
  upgrade: (n, e) => {
2025
2024
  switch (e) {
2026
2025
  case 0:
@@ -2035,9 +2034,9 @@ function Jt() {
2035
2034
  throw D.create("idb-open", {
2036
2035
  originalErrorMessage: n.message
2037
2036
  });
2038
- })), Pe;
2037
+ })), Ce;
2039
2038
  }
2040
- async function Ei(n) {
2039
+ async function bi(n) {
2041
2040
  try {
2042
2041
  const t = (await Jt()).transaction(X), r = await t.objectStore(X).get(Yt(n));
2043
2042
  return await t.done, r;
@@ -2086,12 +2085,12 @@ function Yt(n) {
2086
2085
  * See the License for the specific language governing permissions and
2087
2086
  * limitations under the License.
2088
2087
  */
2089
- const Ti = 1024, Si = 30 * 24 * 60 * 60 * 1e3;
2090
- class ki {
2088
+ const Ii = 1024, wi = 30 * 24 * 60 * 60 * 1e3;
2089
+ class Ei {
2091
2090
  constructor(e) {
2092
2091
  this.container = e, this._heartbeatsCache = null;
2093
2092
  const t = this.container.getProvider("app").getImmediate();
2094
- this._storage = new Ci(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
2093
+ this._storage = new Si(t), this._heartbeatsCachePromise = this._storage.read().then((r) => (this._heartbeatsCache = r, r));
2095
2094
  }
2096
2095
  /**
2097
2096
  * Called to report a heartbeat. The function will generate
@@ -2106,7 +2105,7 @@ class ki {
2106
2105
  const i = this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(), s = ft();
2107
2106
  return ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null && (this._heartbeatsCache = await this._heartbeatsCachePromise, ((t = this._heartbeatsCache) === null || t === void 0 ? void 0 : t.heartbeats) == null) || this._heartbeatsCache.lastSentHeartbeatDate === s || this._heartbeatsCache.heartbeats.some((a) => a.date === s) ? void 0 : (this._heartbeatsCache.heartbeats.push({ date: s, agent: i }), this._heartbeatsCache.heartbeats = this._heartbeatsCache.heartbeats.filter((a) => {
2108
2107
  const c = new Date(a.date).valueOf();
2109
- return Date.now() - c <= Si;
2108
+ return Date.now() - c <= wi;
2110
2109
  }), this._storage.overwrite(this._heartbeatsCache));
2111
2110
  } catch (r) {
2112
2111
  E.warn(r);
@@ -2124,7 +2123,7 @@ class ki {
2124
2123
  try {
2125
2124
  if (this._heartbeatsCache === null && await this._heartbeatsCachePromise, ((e = this._heartbeatsCache) === null || e === void 0 ? void 0 : e.heartbeats) == null || this._heartbeatsCache.heartbeats.length === 0)
2126
2125
  return "";
2127
- const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Ai(this._heartbeatsCache.heartbeats), s = $t(JSON.stringify({ version: 2, heartbeats: r }));
2126
+ const t = ft(), { heartbeatsToSend: r, unsentEntries: i } = Ti(this._heartbeatsCache.heartbeats), s = $t(JSON.stringify({ version: 2, heartbeats: r }));
2128
2127
  return this._heartbeatsCache.lastSentHeartbeatDate = t, i.length > 0 ? (this._heartbeatsCache.heartbeats = i, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), s;
2129
2128
  } catch (t) {
2130
2129
  return E.warn(t), "";
@@ -2134,7 +2133,7 @@ class ki {
2134
2133
  function ft() {
2135
2134
  return (/* @__PURE__ */ new Date()).toISOString().substring(0, 10);
2136
2135
  }
2137
- function Ai(n, e = Ti) {
2136
+ function Ti(n, e = Ii) {
2138
2137
  const t = [];
2139
2138
  let r = n.slice();
2140
2139
  for (const i of n) {
@@ -2158,19 +2157,19 @@ function Ai(n, e = Ti) {
2158
2157
  unsentEntries: r
2159
2158
  };
2160
2159
  }
2161
- class Ci {
2160
+ class Si {
2162
2161
  constructor(e) {
2163
2162
  this.app = e, this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
2164
2163
  }
2165
2164
  async runIndexedDBEnvironmentCheck() {
2166
- return fr() ? pr().then(() => !0).catch(() => !1) : !1;
2165
+ return ur() ? dr().then(() => !0).catch(() => !1) : !1;
2167
2166
  }
2168
2167
  /**
2169
2168
  * Read all heartbeats.
2170
2169
  */
2171
2170
  async read() {
2172
2171
  if (await this._canUseIndexedDBPromise) {
2173
- const t = await Ei(this.app);
2172
+ const t = await bi(this.app);
2174
2173
  return t != null && t.heartbeats ? t : { heartbeats: [] };
2175
2174
  } else
2176
2175
  return { heartbeats: [] };
@@ -2225,21 +2224,21 @@ function pt(n) {
2225
2224
  * See the License for the specific language governing permissions and
2226
2225
  * limitations under the License.
2227
2226
  */
2228
- function Ri(n) {
2227
+ function ki(n) {
2229
2228
  Y(new W(
2230
2229
  "platform-logger",
2231
- (e) => new Hr(e),
2230
+ (e) => new Br(e),
2232
2231
  "PRIVATE"
2233
2232
  /* ComponentType.PRIVATE */
2234
2233
  )), Y(new W(
2235
2234
  "heartbeat",
2236
- (e) => new ki(e),
2235
+ (e) => new Ei(e),
2237
2236
  "PRIVATE"
2238
2237
  /* ComponentType.PRIVATE */
2239
- )), $(xe, ut, n), $(xe, ut, "esm2017"), $("fire-js", "");
2238
+ )), $(Ue, ut, n), $(Ue, ut, "esm2017"), $("fire-js", "");
2240
2239
  }
2241
- Ri("");
2242
- var Pi = "firebase", Oi = "10.14.1";
2240
+ ki("");
2241
+ var Ai = "firebase", Ri = "10.14.1";
2243
2242
  /**
2244
2243
  * @license
2245
2244
  * Copyright 2020 Google LLC
@@ -2256,7 +2255,7 @@ var Pi = "firebase", Oi = "10.14.1";
2256
2255
  * See the License for the specific language governing permissions and
2257
2256
  * limitations under the License.
2258
2257
  */
2259
- $(Pi, Oi, "app");
2258
+ $(Ai, Ri, "app");
2260
2259
  var mt = function() {
2261
2260
  return mt = Object.assign || function(e) {
2262
2261
  for (var t, r = 1, i = arguments.length; r < i; r++) {
@@ -2279,7 +2278,7 @@ function Xt() {
2279
2278
  "dependent-sdk-initialized-before-auth": "Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."
2280
2279
  };
2281
2280
  }
2282
- const Di = Xt, Qt = new Z("auth", "Firebase", Xt());
2281
+ const Ci = Xt, Qt = new Z("auth", "Firebase", Xt());
2283
2282
  /**
2284
2283
  * @license
2285
2284
  * Copyright 2020 Google LLC
@@ -2296,12 +2295,12 @@ const Di = Xt, Qt = new Z("auth", "Firebase", Xt());
2296
2295
  * See the License for the specific language governing permissions and
2297
2296
  * limitations under the License.
2298
2297
  */
2299
- const fe = new Wt("@firebase/auth");
2300
- function Ni(n, ...e) {
2301
- fe.logLevel <= f.WARN && fe.warn(`Auth (${te}): ${n}`, ...e);
2298
+ const he = new Wt("@firebase/auth");
2299
+ function Pi(n, ...e) {
2300
+ he.logLevel <= f.WARN && he.warn(`Auth (${te}): ${n}`, ...e);
2302
2301
  }
2303
2302
  function ae(n, ...e) {
2304
- fe.logLevel <= f.ERROR && fe.error(`Auth (${te}): ${n}`, ...e);
2303
+ he.logLevel <= f.ERROR && he.error(`Auth (${te}): ${n}`, ...e);
2305
2304
  }
2306
2305
  /**
2307
2306
  * @license
@@ -2326,7 +2325,7 @@ function _(n, ...e) {
2326
2325
  return qe(n, ...e);
2327
2326
  }
2328
2327
  function Zt(n, e, t) {
2329
- const r = Object.assign(Object.assign({}, Di()), { [e]: t });
2328
+ const r = Object.assign(Object.assign({}, Ci()), { [e]: t });
2330
2329
  return new Z("auth", "Firebase", r).create(e, {
2331
2330
  appName: n.name
2332
2331
  });
@@ -2368,11 +2367,11 @@ function S(n, e) {
2368
2367
  * See the License for the specific language governing permissions and
2369
2368
  * limitations under the License.
2370
2369
  */
2371
- function $e() {
2370
+ function Fe() {
2372
2371
  var n;
2373
2372
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
2374
2373
  }
2375
- function Li() {
2374
+ function Oi() {
2376
2375
  return gt() === "http:" || gt() === "https:";
2377
2376
  }
2378
2377
  function gt() {
@@ -2395,15 +2394,15 @@ function gt() {
2395
2394
  * See the License for the specific language governing permissions and
2396
2395
  * limitations under the License.
2397
2396
  */
2398
- function Mi() {
2397
+ function Di() {
2399
2398
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
2400
2399
  // This is especially true for Cordova apps which have unreliable
2401
2400
  // navigator.onLine behavior unless cordova-plugin-network-information is
2402
2401
  // installed which overwrites the native navigator.onLine value and
2403
2402
  // defines navigator.connection.
2404
- (Li() || ur() || "connection" in navigator) ? navigator.onLine : !0;
2403
+ (Oi() || or() || "connection" in navigator) ? navigator.onLine : !0;
2405
2404
  }
2406
- function Ui() {
2405
+ function Ni() {
2407
2406
  if (typeof navigator > "u")
2408
2407
  return null;
2409
2408
  const n = navigator;
@@ -2433,10 +2432,10 @@ function Ui() {
2433
2432
  */
2434
2433
  class ne {
2435
2434
  constructor(e, t) {
2436
- this.shortDelay = e, this.longDelay = t, S(t > e, "Short delay should be less than long delay!"), this.isMobile = cr() || dr();
2435
+ this.shortDelay = e, this.longDelay = t, S(t > e, "Short delay should be less than long delay!"), this.isMobile = sr() || cr();
2437
2436
  }
2438
2437
  get() {
2439
- return Mi() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
2438
+ return Di() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
2440
2439
  }
2441
2440
  }
2442
2441
  /**
@@ -2530,7 +2529,7 @@ class en {
2530
2529
  * See the License for the specific language governing permissions and
2531
2530
  * limitations under the License.
2532
2531
  */
2533
- const xi = {
2532
+ const Li = {
2534
2533
  // Custom token errors.
2535
2534
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
2536
2535
  // This can only happen if the SDK sends a bad request.
@@ -2621,8 +2620,8 @@ const xi = {
2621
2620
  * See the License for the specific language governing permissions and
2622
2621
  * limitations under the License.
2623
2622
  */
2624
- const Fi = new ne(3e4, 6e4);
2625
- function ye(n, e) {
2623
+ const Mi = new ne(3e4, 6e4);
2624
+ function _e(n, e) {
2626
2625
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
2627
2626
  }
2628
2627
  async function G(n, e, t, r, i = {}) {
@@ -2643,14 +2642,14 @@ async function G(n, e, t, r, i = {}) {
2643
2642
  method: e,
2644
2643
  headers: o
2645
2644
  }, s);
2646
- return lr() || (l.referrerPolicy = "no-referrer"), en.fetch()(rn(n, n.config.apiHost, t, c), l);
2645
+ return ar() || (l.referrerPolicy = "no-referrer"), en.fetch()(rn(n, n.config.apiHost, t, c), l);
2647
2646
  });
2648
2647
  }
2649
2648
  async function tn(n, e, t) {
2650
2649
  n._canInitEmulator = !1;
2651
- const r = Object.assign(Object.assign({}, xi), e);
2650
+ const r = Object.assign(Object.assign({}, Li), e);
2652
2651
  try {
2653
- const i = new Bi(n), s = await Promise.race([
2652
+ const i = new Ui(n), s = await Promise.race([
2654
2653
  t(),
2655
2654
  i.promise
2656
2655
  ]);
@@ -2689,14 +2688,14 @@ function rn(n, e, t, r) {
2689
2688
  const i = `${e}${t}?${r}`;
2690
2689
  return n.config.emulator ? Ke(n.config, i) : `${n.config.apiScheme}://${i}`;
2691
2690
  }
2692
- class Bi {
2691
+ class Ui {
2693
2692
  constructor(e) {
2694
2693
  this.auth = e, this.timer = null, this.promise = new Promise((t, r) => {
2695
2694
  this.timer = setTimeout(() => r(_(
2696
2695
  this.auth,
2697
2696
  "network-request-failed"
2698
2697
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
2699
- )), Fi.get());
2698
+ )), Mi.get());
2700
2699
  });
2701
2700
  }
2702
2701
  clearNetworkTimeout() {
@@ -2727,7 +2726,7 @@ function se(n, e, t) {
2727
2726
  * See the License for the specific language governing permissions and
2728
2727
  * limitations under the License.
2729
2728
  */
2730
- async function $i(n, e) {
2729
+ async function xi(n, e) {
2731
2730
  return G(n, "POST", "/v1/accounts:delete", e);
2732
2731
  }
2733
2732
  async function sn(n, e) {
@@ -2758,7 +2757,7 @@ function J(n) {
2758
2757
  } catch {
2759
2758
  }
2760
2759
  }
2761
- async function Hi(n, e = !1) {
2760
+ async function Bi(n, e = !1) {
2762
2761
  const t = z(n), r = await t.getIdToken(e), i = Je(r);
2763
2762
  h(
2764
2763
  i && i.exp && i.auth_time && i.iat,
@@ -2770,14 +2769,14 @@ async function Hi(n, e = !1) {
2770
2769
  return {
2771
2770
  claims: i,
2772
2771
  token: r,
2773
- authTime: J(Oe(i.auth_time)),
2774
- issuedAtTime: J(Oe(i.iat)),
2775
- expirationTime: J(Oe(i.exp)),
2772
+ authTime: J(Pe(i.auth_time)),
2773
+ issuedAtTime: J(Pe(i.iat)),
2774
+ expirationTime: J(Pe(i.exp)),
2776
2775
  signInProvider: a || null,
2777
2776
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
2778
2777
  };
2779
2778
  }
2780
- function Oe(n) {
2779
+ function Pe(n) {
2781
2780
  return Number(n) * 1e3;
2782
2781
  }
2783
2782
  function Je(n) {
@@ -2829,10 +2828,10 @@ async function Q(n, e, t = !1) {
2829
2828
  try {
2830
2829
  return await e;
2831
2830
  } catch (r) {
2832
- throw r instanceof L && Vi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2831
+ throw r instanceof L && Fi(r) && n.auth.currentUser === n && await n.auth.signOut(), r;
2833
2832
  }
2834
2833
  }
2835
- function Vi({ code: n }) {
2834
+ function Fi({ code: n }) {
2836
2835
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
2837
2836
  }
2838
2837
  /**
@@ -2851,7 +2850,7 @@ function Vi({ code: n }) {
2851
2850
  * See the License for the specific language governing permissions and
2852
2851
  * limitations under the License.
2853
2852
  */
2854
- class ji {
2853
+ class $i {
2855
2854
  constructor(e) {
2856
2855
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
2857
2856
  }
@@ -2913,7 +2912,7 @@ class ji {
2913
2912
  * See the License for the specific language governing permissions and
2914
2913
  * limitations under the License.
2915
2914
  */
2916
- class He {
2915
+ class $e {
2917
2916
  constructor(e, t) {
2918
2917
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
2919
2918
  }
@@ -2946,7 +2945,7 @@ class He {
2946
2945
  * See the License for the specific language governing permissions and
2947
2946
  * limitations under the License.
2948
2947
  */
2949
- async function pe(n) {
2948
+ async function fe(n) {
2950
2949
  var e;
2951
2950
  const t = n.auth, r = await n.getIdToken(), i = await Q(n, sn(t, { idToken: r }));
2952
2951
  h(
@@ -2957,7 +2956,7 @@ async function pe(n) {
2957
2956
  );
2958
2957
  const s = i.users[0];
2959
2958
  n._notifyReloadListener(s);
2960
- const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? an(s.providerUserInfo) : [], c = zi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, d = {
2959
+ const a = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? an(s.providerUserInfo) : [], c = Vi(n.providerData, a), o = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), u = o ? l : !1, d = {
2961
2960
  uid: s.localId,
2962
2961
  displayName: s.displayName || null,
2963
2962
  photoURL: s.photoUrl || null,
@@ -2966,16 +2965,16 @@ async function pe(n) {
2966
2965
  phoneNumber: s.phoneNumber || null,
2967
2966
  tenantId: s.tenantId || null,
2968
2967
  providerData: c,
2969
- metadata: new He(s.createdAt, s.lastLoginAt),
2968
+ metadata: new $e(s.createdAt, s.lastLoginAt),
2970
2969
  isAnonymous: u
2971
2970
  };
2972
2971
  Object.assign(n, d);
2973
2972
  }
2974
- async function Wi(n) {
2973
+ async function Hi(n) {
2975
2974
  const e = z(n);
2976
- await pe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2975
+ await fe(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
2977
2976
  }
2978
- function zi(n, e) {
2977
+ function Vi(n, e) {
2979
2978
  return [...n.filter((r) => !e.some((i) => i.providerId === r.providerId)), ...e];
2980
2979
  }
2981
2980
  function an(n) {
@@ -3007,7 +3006,7 @@ function an(n) {
3007
3006
  * See the License for the specific language governing permissions and
3008
3007
  * limitations under the License.
3009
3008
  */
3010
- async function Gi(n, e) {
3009
+ async function ji(n, e) {
3011
3010
  const t = await tn(n, {}, async () => {
3012
3011
  const r = ee({
3013
3012
  grant_type: "refresh_token",
@@ -3028,8 +3027,8 @@ async function Gi(n, e) {
3028
3027
  refreshToken: t.refresh_token
3029
3028
  };
3030
3029
  }
3031
- async function qi(n, e) {
3032
- return G(n, "POST", "/v2/accounts:revokeToken", ye(n, e));
3030
+ async function Wi(n, e) {
3031
+ return G(n, "POST", "/v2/accounts:revokeToken", _e(n, e));
3033
3032
  }
3034
3033
  /**
3035
3034
  * @license
@@ -3092,7 +3091,7 @@ class H {
3092
3091
  this.refreshToken = null;
3093
3092
  }
3094
3093
  async refresh(e, t) {
3095
- const { accessToken: r, refreshToken: i, expiresIn: s } = await Gi(e, t);
3094
+ const { accessToken: r, refreshToken: i, expiresIn: s } = await ji(e, t);
3096
3095
  this.updateTokensAndExpiration(r, i, Number(s));
3097
3096
  }
3098
3097
  updateTokensAndExpiration(e, t, r) {
@@ -3147,7 +3146,7 @@ function k(n, e) {
3147
3146
  class I {
3148
3147
  constructor(e) {
3149
3148
  var { uid: t, auth: r, stsTokenManager: i } = e, s = Ge(e, ["uid", "auth", "stsTokenManager"]);
3150
- this.providerId = "firebase", this.proactiveRefresh = new ji(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new He(s.createdAt || void 0, s.lastLoginAt || void 0);
3149
+ this.providerId = "firebase", this.proactiveRefresh = new $i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = r, this.stsTokenManager = i, this.accessToken = i.accessToken, this.displayName = s.displayName || null, this.email = s.email || null, this.emailVerified = s.emailVerified || !1, this.phoneNumber = s.phoneNumber || null, this.photoURL = s.photoURL || null, this.isAnonymous = s.isAnonymous || !1, this.tenantId = s.tenantId || null, this.providerData = s.providerData ? [...s.providerData] : [], this.metadata = new $e(s.createdAt || void 0, s.lastLoginAt || void 0);
3151
3150
  }
3152
3151
  async getIdToken(e) {
3153
3152
  const t = await Q(this, this.stsTokenManager.getToken(this.auth, e));
@@ -3159,10 +3158,10 @@ class I {
3159
3158
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
3160
3159
  }
3161
3160
  getIdTokenResult(e) {
3162
- return Hi(this, e);
3161
+ return Bi(this, e);
3163
3162
  }
3164
3163
  reload() {
3165
- return Wi(this);
3164
+ return Hi(this);
3166
3165
  }
3167
3166
  _assign(e) {
3168
3167
  this !== e && (h(
@@ -3195,13 +3194,13 @@ class I {
3195
3194
  }
3196
3195
  async _updateTokensIfNecessary(e, t = !1) {
3197
3196
  let r = !1;
3198
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await pe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
3197
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), t && await fe(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
3199
3198
  }
3200
3199
  async delete() {
3201
3200
  if (v(this.auth.app))
3202
3201
  return Promise.reject(N(this.auth));
3203
3202
  const e = await this.getIdToken();
3204
- return await Q(this, $i(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
3203
+ return await Q(this, xi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
3205
3204
  }
3206
3205
  toJSON() {
3207
3206
  return Object.assign(Object.assign({
@@ -3229,16 +3228,16 @@ class I {
3229
3228
  }
3230
3229
  static _fromJSON(e, t) {
3231
3230
  var r, i, s, a, c, o, l, u;
3232
- const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, F = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, we = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: Ee, emailVerified: rt, isAnonymous: it, providerData: Te, stsTokenManager: st } = t;
3231
+ const d = (r = t.displayName) !== null && r !== void 0 ? r : void 0, p = (i = t.email) !== null && i !== void 0 ? i : void 0, m = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, B = (a = t.photoURL) !== null && a !== void 0 ? a : void 0, et = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, Ie = (o = t._redirectEventId) !== null && o !== void 0 ? o : void 0, tt = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, nt = (u = t.lastLoginAt) !== null && u !== void 0 ? u : void 0, { uid: we, emailVerified: rt, isAnonymous: it, providerData: Ee, stsTokenManager: st } = t;
3233
3232
  h(
3234
- Ee && st,
3233
+ we && st,
3235
3234
  e,
3236
3235
  "internal-error"
3237
3236
  /* AuthErrorCode.INTERNAL_ERROR */
3238
3237
  );
3239
3238
  const On = H.fromJSON(this.name, st);
3240
3239
  h(
3241
- typeof Ee == "string",
3240
+ typeof we == "string",
3242
3241
  e,
3243
3242
  "internal-error"
3244
3243
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -3252,22 +3251,22 @@ class I {
3252
3251
  e,
3253
3252
  "internal-error"
3254
3253
  /* AuthErrorCode.INTERNAL_ERROR */
3255
- ), k(m, e.name), k(F, e.name), k(et, e.name), k(we, e.name), k(tt, e.name), k(nt, e.name);
3256
- const Se = new I({
3257
- uid: Ee,
3254
+ ), k(m, e.name), k(B, e.name), k(et, e.name), k(Ie, e.name), k(tt, e.name), k(nt, e.name);
3255
+ const Te = new I({
3256
+ uid: we,
3258
3257
  auth: e,
3259
3258
  email: p,
3260
3259
  emailVerified: rt,
3261
3260
  displayName: d,
3262
3261
  isAnonymous: it,
3263
- photoURL: F,
3262
+ photoURL: B,
3264
3263
  phoneNumber: m,
3265
3264
  tenantId: et,
3266
3265
  stsTokenManager: On,
3267
3266
  createdAt: tt,
3268
3267
  lastLoginAt: nt
3269
3268
  });
3270
- return Te && Array.isArray(Te) && (Se.providerData = Te.map((Dn) => Object.assign({}, Dn))), we && (Se._redirectEventId = we), Se;
3269
+ return Ee && Array.isArray(Ee) && (Te.providerData = Ee.map((Dn) => Object.assign({}, Dn))), Ie && (Te._redirectEventId = Ie), Te;
3271
3270
  }
3272
3271
  /**
3273
3272
  * Initialize a User from an idToken server response
@@ -3283,7 +3282,7 @@ class I {
3283
3282
  stsTokenManager: i,
3284
3283
  isAnonymous: r
3285
3284
  });
3286
- return await pe(s), s;
3285
+ return await fe(s), s;
3287
3286
  }
3288
3287
  /**
3289
3288
  * Initialize a User from an idToken server response
@@ -3313,7 +3312,7 @@ class I {
3313
3312
  phoneNumber: i.phoneNumber || null,
3314
3313
  tenantId: i.tenantId || null,
3315
3314
  providerData: s,
3316
- metadata: new He(i.createdAt, i.lastLoginAt),
3315
+ metadata: new $e(i.createdAt, i.lastLoginAt),
3317
3316
  isAnonymous: !(i.email && i.passwordHash) && !(s != null && s.length)
3318
3317
  };
3319
3318
  return Object.assign(o, l), o;
@@ -3531,12 +3530,12 @@ function pn(n = g()) {
3531
3530
  function Ye(n = g()) {
3532
3531
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
3533
3532
  }
3534
- function Ki(n = g()) {
3533
+ function zi(n = g()) {
3535
3534
  var e;
3536
3535
  return Ye(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
3537
3536
  }
3538
- function Ji() {
3539
- return hr() && document.documentMode === 10;
3537
+ function Gi() {
3538
+ return lr() && document.documentMode === 10;
3540
3539
  }
3541
3540
  function mn(n = g()) {
3542
3541
  return Ye(n) || hn(n) || pn(n) || fn(n) || /windows phone/i.test(n) || dn(n);
@@ -3588,7 +3587,7 @@ function gn(n, e = []) {
3588
3587
  * See the License for the specific language governing permissions and
3589
3588
  * limitations under the License.
3590
3589
  */
3591
- class Yi {
3590
+ class qi {
3592
3591
  constructor(e) {
3593
3592
  this.auth = e, this.queue = [];
3594
3593
  }
@@ -3643,8 +3642,8 @@ class Yi {
3643
3642
  * See the License for the specific language governing permissions and
3644
3643
  * limitations under the License.
3645
3644
  */
3646
- async function Xi(n, e = {}) {
3647
- return G(n, "GET", "/v2/passwordPolicy", ye(n, e));
3645
+ async function Ki(n, e = {}) {
3646
+ return G(n, "GET", "/v2/passwordPolicy", _e(n, e));
3648
3647
  }
3649
3648
  /**
3650
3649
  * @license
@@ -3662,12 +3661,12 @@ async function Xi(n, e = {}) {
3662
3661
  * See the License for the specific language governing permissions and
3663
3662
  * limitations under the License.
3664
3663
  */
3665
- const Qi = 6;
3666
- class Zi {
3664
+ const Ji = 6;
3665
+ class Yi {
3667
3666
  constructor(e) {
3668
3667
  var t, r, i, s;
3669
3668
  const a = e.customStrengthOptions;
3670
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : Qi, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
3669
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = a.minPasswordLength) !== null && t !== void 0 ? t : Ji, a.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = a.maxPasswordLength), a.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = a.containsLowercaseCharacter), a.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = a.containsUppercaseCharacter), a.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = a.containsNumericCharacter), a.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = a.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (i = (r = e.allowedNonAlphanumericCharacters) === null || r === void 0 ? void 0 : r.join("")) !== null && i !== void 0 ? i : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
3671
3670
  }
3672
3671
  validatePassword(e) {
3673
3672
  var t, r, i, s, a, c;
@@ -3750,9 +3749,9 @@ class Zi {
3750
3749
  * See the License for the specific language governing permissions and
3751
3750
  * limitations under the License.
3752
3751
  */
3753
- class es {
3752
+ class Xi {
3754
3753
  constructor(e, t, r, i) {
3755
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new Yi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Qt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3754
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = r, this.config = i, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new It(this), this.idTokenSubscription = new It(this), this.beforeStateQueue = new qi(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION = 1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = Qt, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this._projectPasswordPolicy = null, this._tenantPasswordPolicies = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = e.name, this.clientVersion = i.sdkClientVersion;
3756
3755
  }
3757
3756
  _initializeWithPersistence(e, t) {
3758
3757
  return t && (this._popupRedirectResolver = w(t)), this._initializationPromise = this.queue(async () => {
@@ -3838,7 +3837,7 @@ class es {
3838
3837
  }
3839
3838
  async reloadAndSetCurrentUserOrClear(e) {
3840
3839
  try {
3841
- await pe(e);
3840
+ await fe(e);
3842
3841
  } catch (t) {
3843
3842
  if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
3844
3843
  return this.directlySetCurrentUser(null);
@@ -3846,7 +3845,7 @@ class es {
3846
3845
  return this.directlySetCurrentUser(e);
3847
3846
  }
3848
3847
  useDeviceLanguage() {
3849
- this.languageCode = Ui();
3848
+ this.languageCode = Ni();
3850
3849
  }
3851
3850
  async _delete() {
3852
3851
  this._deleted = !0;
@@ -3897,7 +3896,7 @@ class es {
3897
3896
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
3898
3897
  }
3899
3898
  async _updatePasswordPolicy() {
3900
- const e = await Xi(this), t = new Zi(e);
3899
+ const e = await Ki(this), t = new Yi(e);
3901
3900
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
3902
3901
  }
3903
3902
  _getPersistence() {
@@ -3937,7 +3936,7 @@ class es {
3937
3936
  token: e,
3938
3937
  idToken: t
3939
3938
  };
3940
- this.tenantId != null && (r.tenantId = this.tenantId), await qi(this, r);
3939
+ this.tenantId != null && (r.tenantId = this.tenantId), await Wi(this, r);
3941
3940
  }
3942
3941
  }
3943
3942
  toJSON() {
@@ -4080,15 +4079,15 @@ class es {
4080
4079
  async _getAppCheckToken() {
4081
4080
  var e;
4082
4081
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
4083
- return t != null && t.error && Ni(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
4082
+ return t != null && t.error && Pi(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
4084
4083
  }
4085
4084
  }
4086
- function ve(n) {
4085
+ function ye(n) {
4087
4086
  return z(n);
4088
4087
  }
4089
4088
  class It {
4090
4089
  constructor(e) {
4091
- this.auth = e, this.observer = null, this.addObserver = vr((t) => this.observer = t);
4090
+ this.auth = e, this.observer = null, this.addObserver = gr((t) => this.observer = t);
4092
4091
  }
4093
4092
  get next() {
4094
4093
  return h(
@@ -4123,16 +4122,16 @@ let Xe = {
4123
4122
  recaptchaEnterpriseScript: "",
4124
4123
  gapiScript: ""
4125
4124
  };
4126
- function ts(n) {
4125
+ function Qi(n) {
4127
4126
  Xe = n;
4128
4127
  }
4129
- function ns(n) {
4128
+ function Zi(n) {
4130
4129
  return Xe.loadJS(n);
4131
4130
  }
4132
- function rs() {
4131
+ function es() {
4133
4132
  return Xe.gapiScript;
4134
4133
  }
4135
- function is(n) {
4134
+ function ts(n) {
4136
4135
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
4137
4136
  }
4138
4137
  /**
@@ -4151,11 +4150,11 @@ function is(n) {
4151
4150
  * See the License for the specific language governing permissions and
4152
4151
  * limitations under the License.
4153
4152
  */
4154
- function ss(n, e) {
4153
+ function ns(n, e) {
4155
4154
  const t = qt(n, "auth");
4156
4155
  if (t.isInitialized()) {
4157
4156
  const i = t.getImmediate(), s = t.getOptions();
4158
- if (de(s, e ?? {}))
4157
+ if (ue(s, e ?? {}))
4159
4158
  return i;
4160
4159
  T(
4161
4160
  i,
@@ -4165,12 +4164,12 @@ function ss(n, e) {
4165
4164
  }
4166
4165
  return t.initialize({ options: e });
4167
4166
  }
4168
- function as(n, e) {
4167
+ function rs(n, e) {
4169
4168
  const t = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(t) ? t : [t]).map(w);
4170
4169
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
4171
4170
  }
4172
- function os(n, e, t) {
4173
- const r = ve(n);
4171
+ function is(n, e, t) {
4172
+ const r = ye(n);
4174
4173
  h(
4175
4174
  r._canInitEmulator,
4176
4175
  r,
@@ -4182,19 +4181,19 @@ function os(n, e, t) {
4182
4181
  "invalid-emulator-scheme"
4183
4182
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
4184
4183
  );
4185
- const i = !1, s = _n(e), { host: a, port: c } = cs(e), o = c === null ? "" : `:${c}`;
4184
+ const i = !1, s = _n(e), { host: a, port: c } = ss(e), o = c === null ? "" : `:${c}`;
4186
4185
  r.config.emulator = { url: `${s}//${a}${o}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
4187
4186
  host: a,
4188
4187
  port: c,
4189
4188
  protocol: s.replace(":", ""),
4190
4189
  options: Object.freeze({ disableWarnings: i })
4191
- }), ls();
4190
+ }), as();
4192
4191
  }
4193
4192
  function _n(n) {
4194
4193
  const e = n.indexOf(":");
4195
4194
  return e < 0 ? "" : n.substr(0, e + 1);
4196
4195
  }
4197
- function cs(n) {
4196
+ function ss(n) {
4198
4197
  const e = _n(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
4199
4198
  if (!t)
4200
4199
  return { host: "", port: null };
@@ -4213,7 +4212,7 @@ function wt(n) {
4213
4212
  const e = Number(n);
4214
4213
  return isNaN(e) ? null : e;
4215
4214
  }
4216
- function ls() {
4215
+ function as() {
4217
4216
  function n() {
4218
4217
  const e = document.createElement("p"), t = e.style;
4219
4218
  e.innerText = "Running in emulator mode. Do not use with production credentials.", t.position = "fixed", t.width = "100%", t.backgroundColor = "#ffffff", t.border = ".1em solid #000000", t.color = "#b50000", t.bottom = "0px", t.left = "0px", t.margin = "0px", t.zIndex = "10000", t.textAlign = "center", e.classList.add("firebase-emulator-warning"), document.body.appendChild(e);
@@ -4279,7 +4278,7 @@ class yn {
4279
4278
  * limitations under the License.
4280
4279
  */
4281
4280
  async function j(n, e) {
4282
- return nn(n, "POST", "/v1/accounts:signInWithIdp", ye(n, e));
4281
+ return nn(n, "POST", "/v1/accounts:signInWithIdp", _e(n, e));
4283
4282
  }
4284
4283
  /**
4285
4284
  * @license
@@ -4297,7 +4296,7 @@ async function j(n, e) {
4297
4296
  * See the License for the specific language governing permissions and
4298
4297
  * limitations under the License.
4299
4298
  */
4300
- const us = "http://localhost";
4299
+ const os = "http://localhost";
4301
4300
  class U extends yn {
4302
4301
  constructor() {
4303
4302
  super(...arguments), this.pendingToken = null;
@@ -4355,7 +4354,7 @@ class U extends yn {
4355
4354
  }
4356
4355
  buildRequest() {
4357
4356
  const e = {
4358
- requestUri: us,
4357
+ requestUri: os,
4359
4358
  returnSecureToken: !0
4360
4359
  };
4361
4360
  if (this.pendingToken)
@@ -4542,7 +4541,7 @@ A.PROVIDER_ID = "facebook.com";
4542
4541
  * See the License for the specific language governing permissions and
4543
4542
  * limitations under the License.
4544
4543
  */
4545
- class C extends re {
4544
+ class R extends re {
4546
4545
  constructor() {
4547
4546
  super(
4548
4547
  "google.com"
@@ -4564,8 +4563,8 @@ class C extends re {
4564
4563
  */
4565
4564
  static credential(e, t) {
4566
4565
  return U._fromParams({
4567
- providerId: C.PROVIDER_ID,
4568
- signInMethod: C.GOOGLE_SIGN_IN_METHOD,
4566
+ providerId: R.PROVIDER_ID,
4567
+ signInMethod: R.GOOGLE_SIGN_IN_METHOD,
4569
4568
  idToken: e,
4570
4569
  accessToken: t
4571
4570
  });
@@ -4576,7 +4575,7 @@ class C extends re {
4576
4575
  * @param userCredential - The user credential.
4577
4576
  */
4578
4577
  static credentialFromResult(e) {
4579
- return C.credentialFromTaggedObject(e);
4578
+ return R.credentialFromTaggedObject(e);
4580
4579
  }
4581
4580
  /**
4582
4581
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4585,7 +4584,7 @@ class C extends re {
4585
4584
  * @param userCredential - The user credential.
4586
4585
  */
4587
4586
  static credentialFromError(e) {
4588
- return C.credentialFromTaggedObject(e.customData || {});
4587
+ return R.credentialFromTaggedObject(e.customData || {});
4589
4588
  }
4590
4589
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4591
4590
  if (!e)
@@ -4594,14 +4593,14 @@ class C extends re {
4594
4593
  if (!t && !r)
4595
4594
  return null;
4596
4595
  try {
4597
- return C.credential(t, r);
4596
+ return R.credential(t, r);
4598
4597
  } catch {
4599
4598
  return null;
4600
4599
  }
4601
4600
  }
4602
4601
  }
4603
- C.GOOGLE_SIGN_IN_METHOD = "google.com";
4604
- C.PROVIDER_ID = "google.com";
4602
+ R.GOOGLE_SIGN_IN_METHOD = "google.com";
4603
+ R.PROVIDER_ID = "google.com";
4605
4604
  /**
4606
4605
  * @license
4607
4606
  * Copyright 2020 Google LLC
@@ -4618,7 +4617,7 @@ C.PROVIDER_ID = "google.com";
4618
4617
  * See the License for the specific language governing permissions and
4619
4618
  * limitations under the License.
4620
4619
  */
4621
- class R extends re {
4620
+ class C extends re {
4622
4621
  constructor() {
4623
4622
  super(
4624
4623
  "github.com"
@@ -4632,8 +4631,8 @@ class R extends re {
4632
4631
  */
4633
4632
  static credential(e) {
4634
4633
  return U._fromParams({
4635
- providerId: R.PROVIDER_ID,
4636
- signInMethod: R.GITHUB_SIGN_IN_METHOD,
4634
+ providerId: C.PROVIDER_ID,
4635
+ signInMethod: C.GITHUB_SIGN_IN_METHOD,
4637
4636
  accessToken: e
4638
4637
  });
4639
4638
  }
@@ -4643,7 +4642,7 @@ class R extends re {
4643
4642
  * @param userCredential - The user credential.
4644
4643
  */
4645
4644
  static credentialFromResult(e) {
4646
- return R.credentialFromTaggedObject(e);
4645
+ return C.credentialFromTaggedObject(e);
4647
4646
  }
4648
4647
  /**
4649
4648
  * Used to extract the underlying {@link OAuthCredential} from a {@link AuthError} which was
@@ -4652,20 +4651,20 @@ class R extends re {
4652
4651
  * @param userCredential - The user credential.
4653
4652
  */
4654
4653
  static credentialFromError(e) {
4655
- return R.credentialFromTaggedObject(e.customData || {});
4654
+ return C.credentialFromTaggedObject(e.customData || {});
4656
4655
  }
4657
4656
  static credentialFromTaggedObject({ _tokenResponse: e }) {
4658
4657
  if (!e || !("oauthAccessToken" in e) || !e.oauthAccessToken)
4659
4658
  return null;
4660
4659
  try {
4661
- return R.credential(e.oauthAccessToken);
4660
+ return C.credential(e.oauthAccessToken);
4662
4661
  } catch {
4663
4662
  return null;
4664
4663
  }
4665
4664
  }
4666
4665
  }
4667
- R.GITHUB_SIGN_IN_METHOD = "github.com";
4668
- R.PROVIDER_ID = "github.com";
4666
+ C.GITHUB_SIGN_IN_METHOD = "github.com";
4667
+ C.PROVIDER_ID = "github.com";
4669
4668
  /**
4670
4669
  * @license
4671
4670
  * Copyright 2020 Google LLC
@@ -4798,10 +4797,10 @@ function Et(n) {
4798
4797
  * See the License for the specific language governing permissions and
4799
4798
  * limitations under the License.
4800
4799
  */
4801
- class me extends L {
4800
+ class pe extends L {
4802
4801
  constructor(e, t, r, i) {
4803
4802
  var s;
4804
- super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, me.prototype), this.customData = {
4803
+ super(t.code, t.message), this.operationType = r, this.user = i, Object.setPrototypeOf(this, pe.prototype), this.customData = {
4805
4804
  appName: e.name,
4806
4805
  tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
4807
4806
  _serverResponse: t.customData._serverResponse,
@@ -4809,15 +4808,15 @@ class me extends L {
4809
4808
  };
4810
4809
  }
4811
4810
  static _fromErrorAndOperation(e, t, r, i) {
4812
- return new me(e, t, r, i);
4811
+ return new pe(e, t, r, i);
4813
4812
  }
4814
4813
  }
4815
4814
  function bn(n, e, t, r) {
4816
4815
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
4817
- throw s.code === "auth/multi-factor-auth-required" ? me._fromErrorAndOperation(n, s, e, r) : s;
4816
+ throw s.code === "auth/multi-factor-auth-required" ? pe._fromErrorAndOperation(n, s, e, r) : s;
4818
4817
  });
4819
4818
  }
4820
- async function ds(n, e, t = !1) {
4819
+ async function cs(n, e, t = !1) {
4821
4820
  const r = await Q(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
4822
4821
  return x._forOperation(n, "link", r);
4823
4822
  }
@@ -4837,7 +4836,7 @@ async function ds(n, e, t = !1) {
4837
4836
  * See the License for the specific language governing permissions and
4838
4837
  * limitations under the License.
4839
4838
  */
4840
- async function hs(n, e, t = !1) {
4839
+ async function ls(n, e, t = !1) {
4841
4840
  const { auth: r } = n;
4842
4841
  if (v(r.app))
4843
4842
  return Promise.reject(N(r));
@@ -4888,7 +4887,7 @@ async function hs(n, e, t = !1) {
4888
4887
  * See the License for the specific language governing permissions and
4889
4888
  * limitations under the License.
4890
4889
  */
4891
- async function fs(n, e, t = !1) {
4890
+ async function us(n, e, t = !1) {
4892
4891
  if (v(n.app))
4893
4892
  return Promise.reject(N(n));
4894
4893
  const r = "signIn", i = await bn(n, r, e), s = await x._fromIdTokenResponse(n, r, i);
@@ -4910,8 +4909,8 @@ async function fs(n, e, t = !1) {
4910
4909
  * See the License for the specific language governing permissions and
4911
4910
  * limitations under the License.
4912
4911
  */
4913
- async function ps(n, e) {
4914
- return nn(n, "POST", "/v1/accounts:signInWithCustomToken", ye(n, e));
4912
+ async function ds(n, e) {
4913
+ return nn(n, "POST", "/v1/accounts:signInWithCustomToken", _e(n, e));
4915
4914
  }
4916
4915
  /**
4917
4916
  * @license
@@ -4929,22 +4928,22 @@ async function ps(n, e) {
4929
4928
  * See the License for the specific language governing permissions and
4930
4929
  * limitations under the License.
4931
4930
  */
4932
- async function ms(n, e) {
4931
+ async function hs(n, e) {
4933
4932
  if (v(n.app))
4934
4933
  return Promise.reject(N(n));
4935
- const t = ve(n), r = await ps(t, {
4934
+ const t = ye(n), r = await ds(t, {
4936
4935
  token: e,
4937
4936
  returnSecureToken: !0
4938
4937
  }), i = await x._fromIdTokenResponse(t, "signIn", r);
4939
4938
  return await t._updateCurrentUser(i.user), i;
4940
4939
  }
4941
- function gs(n, e, t, r) {
4940
+ function fs(n, e, t, r) {
4942
4941
  return z(n).onIdTokenChanged(e, t, r);
4943
4942
  }
4944
- function _s(n, e, t) {
4943
+ function ps(n, e, t) {
4945
4944
  return z(n).beforeAuthStateChanged(e, t);
4946
4945
  }
4947
- const ge = "__sak";
4946
+ const me = "__sak";
4948
4947
  /**
4949
4948
  * @license
4950
4949
  * Copyright 2019 Google LLC
@@ -4967,7 +4966,7 @@ class In {
4967
4966
  }
4968
4967
  _isAvailable() {
4969
4968
  try {
4970
- return this.storage ? (this.storage.setItem(ge, "1"), this.storage.removeItem(ge), Promise.resolve(!0)) : Promise.resolve(!1);
4969
+ return this.storage ? (this.storage.setItem(me, "1"), this.storage.removeItem(me), Promise.resolve(!0)) : Promise.resolve(!1);
4971
4970
  } catch {
4972
4971
  return Promise.resolve(!1);
4973
4972
  }
@@ -5002,7 +5001,7 @@ class In {
5002
5001
  * See the License for the specific language governing permissions and
5003
5002
  * limitations under the License.
5004
5003
  */
5005
- const ys = 1e3, vs = 10;
5004
+ const ms = 1e3, gs = 10;
5006
5005
  class wn extends In {
5007
5006
  constructor() {
5008
5007
  super(
@@ -5030,7 +5029,7 @@ class wn extends In {
5030
5029
  const a = this.storage.getItem(r);
5031
5030
  !t && this.localCache[r] === a || this.notifyListeners(r, a);
5032
5031
  }, s = this.storage.getItem(r);
5033
- Ji() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, vs) : i();
5032
+ Gi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(i, gs) : i();
5034
5033
  }
5035
5034
  notifyListeners(e, t) {
5036
5035
  this.localCache[e] = t;
@@ -5052,7 +5051,7 @@ class wn extends In {
5052
5051
  !0
5053
5052
  );
5054
5053
  });
5055
- }, ys);
5054
+ }, ms);
5056
5055
  }
5057
5056
  stopPolling() {
5058
5057
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -5082,7 +5081,7 @@ class wn extends In {
5082
5081
  }
5083
5082
  }
5084
5083
  wn.type = "LOCAL";
5085
- const bs = wn;
5084
+ const _s = wn;
5086
5085
  /**
5087
5086
  * @license
5088
5087
  * Copyright 2020 Google LLC
@@ -5130,7 +5129,7 @@ const Tn = En;
5130
5129
  * See the License for the specific language governing permissions and
5131
5130
  * limitations under the License.
5132
5131
  */
5133
- function Is(n) {
5132
+ function ys(n) {
5134
5133
  return Promise.all(n.map(async (e) => {
5135
5134
  try {
5136
5135
  return {
@@ -5161,7 +5160,7 @@ function Is(n) {
5161
5160
  * See the License for the specific language governing permissions and
5162
5161
  * limitations under the License.
5163
5162
  */
5164
- class be {
5163
+ class ve {
5165
5164
  constructor(e) {
5166
5165
  this.eventTarget = e, this.handlersMap = {}, this.boundEventHandler = this.handleEvent.bind(this);
5167
5166
  }
@@ -5175,7 +5174,7 @@ class be {
5175
5174
  const t = this.receivers.find((i) => i.isListeningto(e));
5176
5175
  if (t)
5177
5176
  return t;
5178
- const r = new be(e);
5177
+ const r = new ve(e);
5179
5178
  return this.receivers.push(r), r;
5180
5179
  }
5181
5180
  isListeningto(e) {
@@ -5200,7 +5199,7 @@ class be {
5200
5199
  eventId: r,
5201
5200
  eventType: i
5202
5201
  });
5203
- const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await Is(c);
5202
+ const c = Array.from(a).map(async (l) => l(t.origin, s)), o = await ys(c);
5204
5203
  t.ports[0].postMessage({
5205
5204
  status: "done",
5206
5205
  eventId: r,
@@ -5229,7 +5228,7 @@ class be {
5229
5228
  this.handlersMap[e] && t && this.handlersMap[e].delete(t), (!t || this.handlersMap[e].size === 0) && delete this.handlersMap[e], Object.keys(this.handlersMap).length === 0 && this.eventTarget.removeEventListener("message", this.boundEventHandler);
5230
5229
  }
5231
5230
  }
5232
- be.receivers = [];
5231
+ ve.receivers = [];
5233
5232
  /**
5234
5233
  * @license
5235
5234
  * Copyright 2020 Google LLC
@@ -5268,7 +5267,7 @@ function Qe(n = "", e = 10) {
5268
5267
  * See the License for the specific language governing permissions and
5269
5268
  * limitations under the License.
5270
5269
  */
5271
- class ws {
5270
+ class vs {
5272
5271
  constructor(e) {
5273
5272
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
5274
5273
  }
@@ -5368,7 +5367,7 @@ class ws {
5368
5367
  function y() {
5369
5368
  return window;
5370
5369
  }
5371
- function Es(n) {
5370
+ function bs(n) {
5372
5371
  y().location.href = n;
5373
5372
  }
5374
5373
  /**
@@ -5390,7 +5389,7 @@ function Es(n) {
5390
5389
  function Sn() {
5391
5390
  return typeof y().WorkerGlobalScope < "u" && typeof y().importScripts == "function";
5392
5391
  }
5393
- async function Ts() {
5392
+ async function Is() {
5394
5393
  if (!(navigator != null && navigator.serviceWorker))
5395
5394
  return null;
5396
5395
  try {
@@ -5399,11 +5398,11 @@ async function Ts() {
5399
5398
  return null;
5400
5399
  }
5401
5400
  }
5402
- function Ss() {
5401
+ function ws() {
5403
5402
  var n;
5404
5403
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
5405
5404
  }
5406
- function ks() {
5405
+ function Es() {
5407
5406
  return Sn() ? self : null;
5408
5407
  }
5409
5408
  /**
@@ -5422,7 +5421,7 @@ function ks() {
5422
5421
  * See the License for the specific language governing permissions and
5423
5422
  * limitations under the License.
5424
5423
  */
5425
- const kn = "firebaseLocalStorageDb", As = 1, _e = "firebaseLocalStorage", An = "fbase_key";
5424
+ const kn = "firebaseLocalStorageDb", Ts = 1, ge = "firebaseLocalStorage", An = "fbase_key";
5426
5425
  class ie {
5427
5426
  constructor(e) {
5428
5427
  this.request = e;
@@ -5437,55 +5436,55 @@ class ie {
5437
5436
  });
5438
5437
  }
5439
5438
  }
5440
- function Ie(n, e) {
5441
- return n.transaction([_e], e ? "readwrite" : "readonly").objectStore(_e);
5439
+ function be(n, e) {
5440
+ return n.transaction([ge], e ? "readwrite" : "readonly").objectStore(ge);
5442
5441
  }
5443
- function Cs() {
5442
+ function Ss() {
5444
5443
  const n = indexedDB.deleteDatabase(kn);
5445
5444
  return new ie(n).toPromise();
5446
5445
  }
5447
- function Ve() {
5448
- const n = indexedDB.open(kn, As);
5446
+ function He() {
5447
+ const n = indexedDB.open(kn, Ts);
5449
5448
  return new Promise((e, t) => {
5450
5449
  n.addEventListener("error", () => {
5451
5450
  t(n.error);
5452
5451
  }), n.addEventListener("upgradeneeded", () => {
5453
5452
  const r = n.result;
5454
5453
  try {
5455
- r.createObjectStore(_e, { keyPath: An });
5454
+ r.createObjectStore(ge, { keyPath: An });
5456
5455
  } catch (i) {
5457
5456
  t(i);
5458
5457
  }
5459
5458
  }), n.addEventListener("success", async () => {
5460
5459
  const r = n.result;
5461
- r.objectStoreNames.contains(_e) ? e(r) : (r.close(), await Cs(), e(await Ve()));
5460
+ r.objectStoreNames.contains(ge) ? e(r) : (r.close(), await Ss(), e(await He()));
5462
5461
  });
5463
5462
  });
5464
5463
  }
5465
5464
  async function Tt(n, e, t) {
5466
- const r = Ie(n, !0).put({
5465
+ const r = be(n, !0).put({
5467
5466
  [An]: e,
5468
5467
  value: t
5469
5468
  });
5470
5469
  return new ie(r).toPromise();
5471
5470
  }
5472
- async function Rs(n, e) {
5473
- const t = Ie(n, !1).get(e), r = await new ie(t).toPromise();
5471
+ async function ks(n, e) {
5472
+ const t = be(n, !1).get(e), r = await new ie(t).toPromise();
5474
5473
  return r === void 0 ? null : r.value;
5475
5474
  }
5476
5475
  function St(n, e) {
5477
- const t = Ie(n, !0).delete(e);
5476
+ const t = be(n, !0).delete(e);
5478
5477
  return new ie(t).toPromise();
5479
5478
  }
5480
- const Ps = 800, Os = 3;
5481
- class Cn {
5479
+ const As = 800, Rs = 3;
5480
+ class Rn {
5482
5481
  constructor() {
5483
5482
  this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
5484
5483
  }, () => {
5485
5484
  });
5486
5485
  }
5487
5486
  async _openDb() {
5488
- return this.db ? this.db : (this.db = await Ve(), this.db);
5487
+ return this.db ? this.db : (this.db = await He(), this.db);
5489
5488
  }
5490
5489
  async _withRetries(e) {
5491
5490
  let t = 0;
@@ -5494,7 +5493,7 @@ class Cn {
5494
5493
  const r = await this._openDb();
5495
5494
  return await e(r);
5496
5495
  } catch (r) {
5497
- if (t++ > Os)
5496
+ if (t++ > Rs)
5498
5497
  throw r;
5499
5498
  this.db && (this.db.close(), this.db = void 0);
5500
5499
  }
@@ -5510,7 +5509,7 @@ class Cn {
5510
5509
  * As the worker we should listen to events from the main window.
5511
5510
  */
5512
5511
  async initializeReceiver() {
5513
- this.receiver = be._getInstance(ks()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5512
+ this.receiver = ve._getInstance(Es()), this.receiver._subscribe("keyChanged", async (e, t) => ({
5514
5513
  keyProcessed: (await this._poll()).includes(t.key)
5515
5514
  })), this.receiver._subscribe("ping", async (e, t) => [
5516
5515
  "keyChanged"
@@ -5526,9 +5525,9 @@ class Cn {
5526
5525
  */
5527
5526
  async initializeSender() {
5528
5527
  var e, t;
5529
- if (this.activeServiceWorker = await Ts(), !this.activeServiceWorker)
5528
+ if (this.activeServiceWorker = await Is(), !this.activeServiceWorker)
5530
5529
  return;
5531
- this.sender = new ws(this.activeServiceWorker);
5530
+ this.sender = new vs(this.activeServiceWorker);
5532
5531
  const r = await this.sender._send(
5533
5532
  "ping",
5534
5533
  {},
@@ -5550,7 +5549,7 @@ class Cn {
5550
5549
  * @param key - Storage key which changed.
5551
5550
  */
5552
5551
  async notifyServiceWorker(e) {
5553
- if (!(!this.sender || !this.activeServiceWorker || Ss() !== this.activeServiceWorker))
5552
+ if (!(!this.sender || !this.activeServiceWorker || ws() !== this.activeServiceWorker))
5554
5553
  try {
5555
5554
  await this.sender._send(
5556
5555
  "keyChanged",
@@ -5566,8 +5565,8 @@ class Cn {
5566
5565
  try {
5567
5566
  if (!indexedDB)
5568
5567
  return !1;
5569
- const e = await Ve();
5570
- return await Tt(e, ge, "1"), await St(e, ge), !0;
5568
+ const e = await He();
5569
+ return await Tt(e, me, "1"), await St(e, me), !0;
5571
5570
  } catch {
5572
5571
  }
5573
5572
  return !1;
@@ -5584,7 +5583,7 @@ class Cn {
5584
5583
  return this._withPendingWrite(async () => (await this._withRetries((r) => Tt(r, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
5585
5584
  }
5586
5585
  async _get(e) {
5587
- const t = await this._withRetries((r) => Rs(r, e));
5586
+ const t = await this._withRetries((r) => ks(r, e));
5588
5587
  return this.localCache[e] = t, t;
5589
5588
  }
5590
5589
  async _remove(e) {
@@ -5592,7 +5591,7 @@ class Cn {
5592
5591
  }
5593
5592
  async _poll() {
5594
5593
  const e = await this._withRetries((i) => {
5595
- const s = Ie(i, !1).getAll();
5594
+ const s = be(i, !1).getAll();
5596
5595
  return new ie(s).toPromise();
5597
5596
  });
5598
5597
  if (!e)
@@ -5615,7 +5614,7 @@ class Cn {
5615
5614
  i(t);
5616
5615
  }
5617
5616
  startPolling() {
5618
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), Ps);
5617
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), As);
5619
5618
  }
5620
5619
  stopPolling() {
5621
5620
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -5627,8 +5626,8 @@ class Cn {
5627
5626
  this.listeners[e] && (this.listeners[e].delete(t), this.listeners[e].size === 0 && delete this.listeners[e]), Object.keys(this.listeners).length === 0 && this.stopPolling();
5628
5627
  }
5629
5628
  }
5630
- Cn.type = "LOCAL";
5631
- const Ds = Cn;
5629
+ Rn.type = "LOCAL";
5630
+ const Cs = Rn;
5632
5631
  new ne(3e4, 6e4);
5633
5632
  /**
5634
5633
  * @license
@@ -5646,7 +5645,7 @@ new ne(3e4, 6e4);
5646
5645
  * See the License for the specific language governing permissions and
5647
5646
  * limitations under the License.
5648
5647
  */
5649
- function Ns(n, e) {
5648
+ function Ps(n, e) {
5650
5649
  return e ? w(e) : (h(
5651
5650
  n._popupRedirectResolver,
5652
5651
  n,
@@ -5700,26 +5699,26 @@ class Ze extends yn {
5700
5699
  return e && (t.idToken = e), t;
5701
5700
  }
5702
5701
  }
5703
- function Ls(n) {
5704
- return fs(n.auth, new Ze(n), n.bypassAuthState);
5702
+ function Os(n) {
5703
+ return us(n.auth, new Ze(n), n.bypassAuthState);
5705
5704
  }
5706
- function Ms(n) {
5705
+ function Ds(n) {
5707
5706
  const { auth: e, user: t } = n;
5708
5707
  return h(
5709
5708
  t,
5710
5709
  e,
5711
5710
  "internal-error"
5712
5711
  /* AuthErrorCode.INTERNAL_ERROR */
5713
- ), hs(t, new Ze(n), n.bypassAuthState);
5712
+ ), ls(t, new Ze(n), n.bypassAuthState);
5714
5713
  }
5715
- async function Us(n) {
5714
+ async function Ns(n) {
5716
5715
  const { auth: e, user: t } = n;
5717
5716
  return h(
5718
5717
  t,
5719
5718
  e,
5720
5719
  "internal-error"
5721
5720
  /* AuthErrorCode.INTERNAL_ERROR */
5722
- ), ds(t, new Ze(n), n.bypassAuthState);
5721
+ ), cs(t, new Ze(n), n.bypassAuthState);
5723
5722
  }
5724
5723
  /**
5725
5724
  * @license
@@ -5737,7 +5736,7 @@ async function Us(n) {
5737
5736
  * See the License for the specific language governing permissions and
5738
5737
  * limitations under the License.
5739
5738
  */
5740
- class Rn {
5739
+ class Cn {
5741
5740
  constructor(e, t, r, i, s = !1) {
5742
5741
  this.auth = e, this.resolver = r, this.user = i, this.bypassAuthState = s, this.pendingPromise = null, this.eventManager = null, this.filter = Array.isArray(t) ? t : [t];
5743
5742
  }
@@ -5779,13 +5778,13 @@ class Rn {
5779
5778
  switch (e) {
5780
5779
  case "signInViaPopup":
5781
5780
  case "signInViaRedirect":
5782
- return Ls;
5781
+ return Os;
5783
5782
  case "linkViaPopup":
5784
5783
  case "linkViaRedirect":
5785
- return Us;
5784
+ return Ns;
5786
5785
  case "reauthViaPopup":
5787
5786
  case "reauthViaRedirect":
5788
- return Ms;
5787
+ return Ds;
5789
5788
  default:
5790
5789
  T(
5791
5790
  this.auth,
@@ -5820,10 +5819,10 @@ class Rn {
5820
5819
  * See the License for the specific language governing permissions and
5821
5820
  * limitations under the License.
5822
5821
  */
5823
- const xs = new ne(2e3, 1e4);
5824
- class B extends Rn {
5822
+ const Ls = new ne(2e3, 1e4);
5823
+ class F extends Cn {
5825
5824
  constructor(e, t, r, i, s) {
5826
- super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, B.currentPopupAction && B.currentPopupAction.cancel(), B.currentPopupAction = this;
5825
+ super(e, t, i, s), this.provider = r, this.authWindow = null, this.pollId = null, F.currentPopupAction && F.currentPopupAction.cancel(), F.currentPopupAction = this;
5827
5826
  }
5828
5827
  async executeNotNull() {
5829
5828
  const e = await this.execute();
@@ -5865,7 +5864,7 @@ class B extends Rn {
5865
5864
  ));
5866
5865
  }
5867
5866
  cleanUp() {
5868
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, B.currentPopupAction = null;
5867
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, F.currentPopupAction = null;
5869
5868
  }
5870
5869
  pollUserCancellation() {
5871
5870
  const e = () => {
@@ -5884,12 +5883,12 @@ class B extends Rn {
5884
5883
  );
5885
5884
  return;
5886
5885
  }
5887
- this.pollId = window.setTimeout(e, xs.get());
5886
+ this.pollId = window.setTimeout(e, Ls.get());
5888
5887
  };
5889
5888
  e();
5890
5889
  }
5891
5890
  }
5892
- B.currentPopupAction = null;
5891
+ F.currentPopupAction = null;
5893
5892
  /**
5894
5893
  * @license
5895
5894
  * Copyright 2020 Google LLC
@@ -5906,8 +5905,8 @@ B.currentPopupAction = null;
5906
5905
  * See the License for the specific language governing permissions and
5907
5906
  * limitations under the License.
5908
5907
  */
5909
- const Fs = "pendingRedirect", ce = /* @__PURE__ */ new Map();
5910
- class Bs extends Rn {
5908
+ const Ms = "pendingRedirect", ce = /* @__PURE__ */ new Map();
5909
+ class Us extends Cn {
5911
5910
  constructor(e, t, r = !1) {
5912
5911
  super(e, [
5913
5912
  "signInViaRedirect",
@@ -5925,7 +5924,7 @@ class Bs extends Rn {
5925
5924
  let e = ce.get(this.auth._key());
5926
5925
  if (!e) {
5927
5926
  try {
5928
- const r = await $s(this.resolver, this.auth) ? await super.execute() : null;
5927
+ const r = await xs(this.resolver, this.auth) ? await super.execute() : null;
5929
5928
  e = () => Promise.resolve(r);
5930
5929
  } catch (t) {
5931
5930
  e = () => Promise.reject(t);
@@ -5953,26 +5952,26 @@ class Bs extends Rn {
5953
5952
  cleanUp() {
5954
5953
  }
5955
5954
  }
5956
- async function $s(n, e) {
5957
- const t = js(e), r = Vs(n);
5955
+ async function xs(n, e) {
5956
+ const t = $s(e), r = Fs(n);
5958
5957
  if (!await r._isAvailable())
5959
5958
  return !1;
5960
5959
  const i = await r._get(t) === "true";
5961
5960
  return await r._remove(t), i;
5962
5961
  }
5963
- function Hs(n, e) {
5962
+ function Bs(n, e) {
5964
5963
  ce.set(n._key(), e);
5965
5964
  }
5966
- function Vs(n) {
5965
+ function Fs(n) {
5967
5966
  return w(n._redirectPersistence);
5968
5967
  }
5969
- function js(n) {
5970
- return oe(Fs, n.config.apiKey, n.name);
5968
+ function $s(n) {
5969
+ return oe(Ms, n.config.apiKey, n.name);
5971
5970
  }
5972
- async function Ws(n, e, t = !1) {
5971
+ async function Hs(n, e, t = !1) {
5973
5972
  if (v(n.app))
5974
5973
  return Promise.reject(N(n));
5975
- const r = ve(n), i = Ns(r, e), a = await new Bs(r, i, t).execute();
5974
+ const r = ye(n), i = Ps(r, e), a = await new Us(r, i, t).execute();
5976
5975
  return a && !t && (delete a.user._redirectEventId, await r._persistUserIfCurrent(a.user), await r._setRedirectUser(null, e)), a;
5977
5976
  }
5978
5977
  /**
@@ -5991,8 +5990,8 @@ async function Ws(n, e, t = !1) {
5991
5990
  * See the License for the specific language governing permissions and
5992
5991
  * limitations under the License.
5993
5992
  */
5994
- const zs = 10 * 60 * 1e3;
5995
- class Gs {
5993
+ const Vs = 10 * 60 * 1e3;
5994
+ class js {
5996
5995
  constructor(e) {
5997
5996
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
5998
5997
  }
@@ -6008,7 +6007,7 @@ class Gs {
6008
6007
  let t = !1;
6009
6008
  return this.consumers.forEach((r) => {
6010
6009
  this.isEventForConsumer(e, r) && (t = !0, this.sendToConsumer(e, r), this.saveEventToCache(e));
6011
- }), this.hasHandledPotentialRedirect || !qs(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
6010
+ }), this.hasHandledPotentialRedirect || !Ws(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
6012
6011
  }
6013
6012
  sendToConsumer(e, t) {
6014
6013
  var r;
@@ -6023,7 +6022,7 @@ class Gs {
6023
6022
  return t.filter.includes(e.type) && r;
6024
6023
  }
6025
6024
  hasEventBeenHandled(e) {
6026
- return Date.now() - this.lastProcessedEventTime >= zs && this.cachedEventUids.clear(), this.cachedEventUids.has(kt(e));
6025
+ return Date.now() - this.lastProcessedEventTime >= Vs && this.cachedEventUids.clear(), this.cachedEventUids.has(kt(e));
6027
6026
  }
6028
6027
  saveEventToCache(e) {
6029
6028
  this.cachedEventUids.add(kt(e)), this.lastProcessedEventTime = Date.now();
@@ -6035,7 +6034,7 @@ function kt(n) {
6035
6034
  function Pn({ type: n, error: e }) {
6036
6035
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
6037
6036
  }
6038
- function qs(n) {
6037
+ function Ws(n) {
6039
6038
  switch (n.type) {
6040
6039
  case "signInViaRedirect":
6041
6040
  case "linkViaRedirect":
@@ -6063,7 +6062,7 @@ function qs(n) {
6063
6062
  * See the License for the specific language governing permissions and
6064
6063
  * limitations under the License.
6065
6064
  */
6066
- async function Ks(n, e = {}) {
6065
+ async function zs(n, e = {}) {
6067
6066
  return G(n, "GET", "/v1/projects", e);
6068
6067
  }
6069
6068
  /**
@@ -6082,14 +6081,14 @@ async function Ks(n, e = {}) {
6082
6081
  * See the License for the specific language governing permissions and
6083
6082
  * limitations under the License.
6084
6083
  */
6085
- const Js = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Ys = /^https?/;
6086
- async function Xs(n) {
6084
+ const Gs = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, qs = /^https?/;
6085
+ async function Ks(n) {
6087
6086
  if (n.config.emulator)
6088
6087
  return;
6089
- const { authorizedDomains: e } = await Ks(n);
6088
+ const { authorizedDomains: e } = await zs(n);
6090
6089
  for (const t of e)
6091
6090
  try {
6092
- if (Qs(t))
6091
+ if (Js(t))
6093
6092
  return;
6094
6093
  } catch {
6095
6094
  }
@@ -6099,15 +6098,15 @@ async function Xs(n) {
6099
6098
  /* AuthErrorCode.INVALID_ORIGIN */
6100
6099
  );
6101
6100
  }
6102
- function Qs(n) {
6103
- const e = $e(), { protocol: t, hostname: r } = new URL(e);
6101
+ function Js(n) {
6102
+ const e = Fe(), { protocol: t, hostname: r } = new URL(e);
6104
6103
  if (n.startsWith("chrome-extension://")) {
6105
6104
  const a = new URL(n);
6106
6105
  return a.hostname === "" && r === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && a.hostname === r;
6107
6106
  }
6108
- if (!Ys.test(t))
6107
+ if (!qs.test(t))
6109
6108
  return !1;
6110
- if (Js.test(n))
6109
+ if (Gs.test(n))
6111
6110
  return r === n;
6112
6111
  const i = n.replace(/\./g, "\\.");
6113
6112
  return new RegExp("^(.+\\." + i + "|" + i + ")$", "i").test(r);
@@ -6128,7 +6127,7 @@ function Qs(n) {
6128
6127
  * See the License for the specific language governing permissions and
6129
6128
  * limitations under the License.
6130
6129
  */
6131
- const Zs = new ne(3e4, 6e4);
6130
+ const Ys = new ne(3e4, 6e4);
6132
6131
  function At() {
6133
6132
  const n = y().___jsl;
6134
6133
  if (n != null && n.H) {
@@ -6138,7 +6137,7 @@ function At() {
6138
6137
  n.CP[t] = null;
6139
6138
  }
6140
6139
  }
6141
- function ea(n) {
6140
+ function Xs(n) {
6142
6141
  return new Promise((e, t) => {
6143
6142
  var r, i, s;
6144
6143
  function a() {
@@ -6153,7 +6152,7 @@ function ea(n) {
6153
6152
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6154
6153
  ));
6155
6154
  },
6156
- timeout: Zs.get()
6155
+ timeout: Ys.get()
6157
6156
  });
6158
6157
  }
6159
6158
  if (!((i = (r = y().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || i === void 0) && i.Iframe)
@@ -6161,22 +6160,22 @@ function ea(n) {
6161
6160
  else if (!((s = y().gapi) === null || s === void 0) && s.load)
6162
6161
  a();
6163
6162
  else {
6164
- const c = is("iframefcb");
6163
+ const c = ts("iframefcb");
6165
6164
  return y()[c] = () => {
6166
6165
  gapi.load ? a() : t(_(
6167
6166
  n,
6168
6167
  "network-request-failed"
6169
6168
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6170
6169
  ));
6171
- }, ns(`${rs()}?onload=${c}`).catch((o) => t(o));
6170
+ }, Zi(`${es()}?onload=${c}`).catch((o) => t(o));
6172
6171
  }
6173
6172
  }).catch((e) => {
6174
6173
  throw le = null, e;
6175
6174
  });
6176
6175
  }
6177
6176
  let le = null;
6178
- function ta(n) {
6179
- return le = le || ea(n), le;
6177
+ function Qs(n) {
6178
+ return le = le || Xs(n), le;
6180
6179
  }
6181
6180
  /**
6182
6181
  * @license
@@ -6194,7 +6193,7 @@ function ta(n) {
6194
6193
  * See the License for the specific language governing permissions and
6195
6194
  * limitations under the License.
6196
6195
  */
6197
- const na = new ne(5e3, 15e3), ra = "__/auth/iframe", ia = "emulator/auth/iframe", sa = {
6196
+ const Zs = new ne(5e3, 15e3), ea = "__/auth/iframe", ta = "emulator/auth/iframe", na = {
6198
6197
  style: {
6199
6198
  position: "absolute",
6200
6199
  top: "-100px",
@@ -6203,13 +6202,13 @@ const na = new ne(5e3, 15e3), ra = "__/auth/iframe", ia = "emulator/auth/iframe"
6203
6202
  },
6204
6203
  "aria-hidden": "true",
6205
6204
  tabindex: "-1"
6206
- }, aa = /* @__PURE__ */ new Map([
6205
+ }, ra = /* @__PURE__ */ new Map([
6207
6206
  ["identitytoolkit.googleapis.com", "p"],
6208
6207
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
6209
6208
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
6210
6209
  // test
6211
6210
  ]);
6212
- function oa(n) {
6211
+ function ia(n) {
6213
6212
  const e = n.config;
6214
6213
  h(
6215
6214
  e.authDomain,
@@ -6217,17 +6216,17 @@ function oa(n) {
6217
6216
  "auth-domain-config-required"
6218
6217
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
6219
6218
  );
6220
- const t = e.emulator ? Ke(e, ia) : `https://${n.config.authDomain}/${ra}`, r = {
6219
+ const t = e.emulator ? Ke(e, ta) : `https://${n.config.authDomain}/${ea}`, r = {
6221
6220
  apiKey: e.apiKey,
6222
6221
  appName: n.name,
6223
6222
  v: te
6224
- }, i = aa.get(n.config.apiHost);
6223
+ }, i = ra.get(n.config.apiHost);
6225
6224
  i && (r.eid = i);
6226
6225
  const s = n._getFrameworks();
6227
6226
  return s.length && (r.fw = s.join(",")), `${t}?${ee(r).slice(1)}`;
6228
6227
  }
6229
- async function ca(n) {
6230
- const e = await ta(n), t = y().gapi;
6228
+ async function sa(n) {
6229
+ const e = await Qs(n), t = y().gapi;
6231
6230
  return h(
6232
6231
  t,
6233
6232
  n,
@@ -6235,9 +6234,9 @@ async function ca(n) {
6235
6234
  /* AuthErrorCode.INTERNAL_ERROR */
6236
6235
  ), e.open({
6237
6236
  where: document.body,
6238
- url: oa(n),
6237
+ url: ia(n),
6239
6238
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
6240
- attributes: sa,
6239
+ attributes: na,
6241
6240
  dontclear: !0
6242
6241
  }, (r) => new Promise(async (i, s) => {
6243
6242
  await r.restyle({
@@ -6250,7 +6249,7 @@ async function ca(n) {
6250
6249
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
6251
6250
  ), c = y().setTimeout(() => {
6252
6251
  s(a);
6253
- }, na.get());
6252
+ }, Zs.get());
6254
6253
  function o() {
6255
6254
  y().clearTimeout(c), i(r);
6256
6255
  }
@@ -6275,13 +6274,13 @@ async function ca(n) {
6275
6274
  * See the License for the specific language governing permissions and
6276
6275
  * limitations under the License.
6277
6276
  */
6278
- const la = {
6277
+ const aa = {
6279
6278
  location: "yes",
6280
6279
  resizable: "yes",
6281
6280
  statusbar: "yes",
6282
6281
  toolbar: "no"
6283
- }, ua = 500, da = 600, ha = "_blank", fa = "http://localhost";
6284
- class Ct {
6282
+ }, oa = 500, ca = 600, la = "_blank", ua = "http://localhost";
6283
+ class Rt {
6285
6284
  constructor(e) {
6286
6285
  this.window = e, this.associatedEvent = null;
6287
6286
  }
@@ -6293,19 +6292,19 @@ class Ct {
6293
6292
  }
6294
6293
  }
6295
6294
  }
6296
- function pa(n, e, t, r = ua, i = da) {
6295
+ function da(n, e, t, r = oa, i = ca) {
6297
6296
  const s = Math.max((window.screen.availHeight - i) / 2, 0).toString(), a = Math.max((window.screen.availWidth - r) / 2, 0).toString();
6298
6297
  let c = "";
6299
- const o = Object.assign(Object.assign({}, la), {
6298
+ const o = Object.assign(Object.assign({}, aa), {
6300
6299
  width: r.toString(),
6301
6300
  height: i.toString(),
6302
6301
  top: s,
6303
6302
  left: a
6304
6303
  }), l = g().toLowerCase();
6305
- t && (c = un(l) ? ha : t), cn(l) && (e = e || fa, o.scrollbars = "yes");
6306
- const u = Object.entries(o).reduce((p, [m, F]) => `${p}${m}=${F},`, "");
6307
- if (Ki(l) && c !== "_self")
6308
- return ma(e || "", c), new Ct(null);
6304
+ t && (c = un(l) ? la : t), cn(l) && (e = e || ua, o.scrollbars = "yes");
6305
+ const u = Object.entries(o).reduce((p, [m, B]) => `${p}${m}=${B},`, "");
6306
+ if (zi(l) && c !== "_self")
6307
+ return ha(e || "", c), new Rt(null);
6309
6308
  const d = window.open(e || "", c, u);
6310
6309
  h(
6311
6310
  d,
@@ -6317,9 +6316,9 @@ function pa(n, e, t, r = ua, i = da) {
6317
6316
  d.focus();
6318
6317
  } catch {
6319
6318
  }
6320
- return new Ct(d);
6319
+ return new Rt(d);
6321
6320
  }
6322
- function ma(n, e) {
6321
+ function ha(n, e) {
6323
6322
  const t = document.createElement("a");
6324
6323
  t.href = n, t.target = e;
6325
6324
  const r = document.createEvent("MouseEvent");
@@ -6341,8 +6340,8 @@ function ma(n, e) {
6341
6340
  * See the License for the specific language governing permissions and
6342
6341
  * limitations under the License.
6343
6342
  */
6344
- const ga = "__/auth/handler", _a = "emulator/auth/handler", ya = encodeURIComponent("fac");
6345
- async function Rt(n, e, t, r, i, s) {
6343
+ const fa = "__/auth/handler", pa = "emulator/auth/handler", ma = encodeURIComponent("fac");
6344
+ async function Ct(n, e, t, r, i, s) {
6346
6345
  h(
6347
6346
  n.config.authDomain,
6348
6347
  n,
@@ -6363,7 +6362,7 @@ async function Rt(n, e, t, r, i, s) {
6363
6362
  eventId: i
6364
6363
  };
6365
6364
  if (e instanceof vn) {
6366
- e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", yr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
6365
+ e.setDefaultLanguage(n.languageCode), a.providerId = e.providerId || "", mr(e.getCustomParameters()) || (a.customParameters = JSON.stringify(e.getCustomParameters()));
6367
6366
  for (const [u, d] of Object.entries({}))
6368
6367
  a[u] = d;
6369
6368
  }
@@ -6375,11 +6374,11 @@ async function Rt(n, e, t, r, i, s) {
6375
6374
  const c = a;
6376
6375
  for (const u of Object.keys(c))
6377
6376
  c[u] === void 0 && delete c[u];
6378
- const o = await n._getAppCheckToken(), l = o ? `#${ya}=${encodeURIComponent(o)}` : "";
6379
- return `${va(n)}?${ee(c).slice(1)}${l}`;
6377
+ const o = await n._getAppCheckToken(), l = o ? `#${ma}=${encodeURIComponent(o)}` : "";
6378
+ return `${ga(n)}?${ee(c).slice(1)}${l}`;
6380
6379
  }
6381
- function va({ config: n }) {
6382
- return n.emulator ? Ke(n, _a) : `https://${n.authDomain}/${ga}`;
6380
+ function ga({ config: n }) {
6381
+ return n.emulator ? Ke(n, pa) : `https://${n.authDomain}/${fa}`;
6383
6382
  }
6384
6383
  /**
6385
6384
  * @license
@@ -6397,23 +6396,23 @@ function va({ config: n }) {
6397
6396
  * See the License for the specific language governing permissions and
6398
6397
  * limitations under the License.
6399
6398
  */
6400
- const De = "webStorageSupport";
6401
- class ba {
6399
+ const Oe = "webStorageSupport";
6400
+ class _a {
6402
6401
  constructor() {
6403
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Tn, this._completeRedirectFn = Ws, this._overrideRedirectResult = Hs;
6402
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Tn, this._completeRedirectFn = Hs, this._overrideRedirectResult = Bs;
6404
6403
  }
6405
6404
  // Wrapping in async even though we don't await anywhere in order
6406
6405
  // to make sure errors are raised as promise rejections
6407
6406
  async _openPopup(e, t, r, i) {
6408
6407
  var s;
6409
6408
  S((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
6410
- const a = await Rt(e, t, r, $e(), i);
6411
- return pa(e, a, Qe());
6409
+ const a = await Ct(e, t, r, Fe(), i);
6410
+ return da(e, a, Qe());
6412
6411
  }
6413
6412
  async _openRedirect(e, t, r, i) {
6414
6413
  await this._originValidation(e);
6415
- const s = await Rt(e, t, r, $e(), i);
6416
- return Es(s), new Promise(() => {
6414
+ const s = await Ct(e, t, r, Fe(), i);
6415
+ return bs(s), new Promise(() => {
6417
6416
  });
6418
6417
  }
6419
6418
  _initialize(e) {
@@ -6428,7 +6427,7 @@ class ba {
6428
6427
  }), r;
6429
6428
  }
6430
6429
  async initAndGetManager(e) {
6431
- const t = await ca(e), r = new Gs(e);
6430
+ const t = await sa(e), r = new js(e);
6432
6431
  return t.register("authEvent", (i) => (h(
6433
6432
  i == null ? void 0 : i.authEvent,
6434
6433
  e,
@@ -6440,9 +6439,9 @@ class ba {
6440
6439
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: r }, this.iframes[e._key()] = t, r;
6441
6440
  }
6442
6441
  _isIframeWebStorageSupported(e, t) {
6443
- this.iframes[e._key()].send(De, { type: De }, (i) => {
6442
+ this.iframes[e._key()].send(Oe, { type: Oe }, (i) => {
6444
6443
  var s;
6445
- const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[De];
6444
+ const a = (s = i == null ? void 0 : i[0]) === null || s === void 0 ? void 0 : s[Oe];
6446
6445
  a !== void 0 && t(!!a), T(
6447
6446
  e,
6448
6447
  "internal-error"
@@ -6452,13 +6451,13 @@ class ba {
6452
6451
  }
6453
6452
  _originValidation(e) {
6454
6453
  const t = e._key();
6455
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = Xs(e)), this.originValidationPromises[t];
6454
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Ks(e)), this.originValidationPromises[t];
6456
6455
  }
6457
6456
  get _shouldInitProactively() {
6458
6457
  return mn() || ln() || Ye();
6459
6458
  }
6460
6459
  }
6461
- const Ia = ba;
6460
+ const ya = _a;
6462
6461
  var Pt = "@firebase/auth", Ot = "1.7.9";
6463
6462
  /**
6464
6463
  * @license
@@ -6476,7 +6475,7 @@ var Pt = "@firebase/auth", Ot = "1.7.9";
6476
6475
  * See the License for the specific language governing permissions and
6477
6476
  * limitations under the License.
6478
6477
  */
6479
- class wa {
6478
+ class va {
6480
6479
  constructor(e) {
6481
6480
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
6482
6481
  }
@@ -6527,7 +6526,7 @@ class wa {
6527
6526
  * See the License for the specific language governing permissions and
6528
6527
  * limitations under the License.
6529
6528
  */
6530
- function Ea(n) {
6529
+ function ba(n) {
6531
6530
  switch (n) {
6532
6531
  case "Node":
6533
6532
  return "node";
@@ -6543,7 +6542,7 @@ function Ea(n) {
6543
6542
  return;
6544
6543
  }
6545
6544
  }
6546
- function Ta(n) {
6545
+ function Ia(n) {
6547
6546
  Y(new W(
6548
6547
  "auth",
6549
6548
  (e, { options: t }) => {
@@ -6557,8 +6556,8 @@ function Ta(n) {
6557
6556
  tokenApiHost: "securetoken.googleapis.com",
6558
6557
  apiScheme: "https",
6559
6558
  sdkClientVersion: gn(n)
6560
- }, l = new es(r, i, s, o);
6561
- return as(l, t), l;
6559
+ }, l = new Xi(r, i, s, o);
6560
+ return rs(l, t), l;
6562
6561
  },
6563
6562
  "PUBLIC"
6564
6563
  /* ComponentType.PUBLIC */
@@ -6573,18 +6572,18 @@ function Ta(n) {
6573
6572
  })), Y(new W(
6574
6573
  "auth-internal",
6575
6574
  (e) => {
6576
- const t = ve(e.getProvider(
6575
+ const t = ye(e.getProvider(
6577
6576
  "auth"
6578
6577
  /* _ComponentName.AUTH */
6579
6578
  ).getImmediate());
6580
- return ((r) => new wa(r))(t);
6579
+ return ((r) => new va(r))(t);
6581
6580
  },
6582
6581
  "PRIVATE"
6583
6582
  /* ComponentType.PRIVATE */
6584
6583
  ).setInstantiationMode(
6585
6584
  "EXPLICIT"
6586
6585
  /* InstantiationMode.EXPLICIT */
6587
- )), $(Pt, Ot, Ea(n)), $(Pt, Ot, "esm2017");
6586
+ )), $(Pt, Ot, ba(n)), $(Pt, Ot, "esm2017");
6588
6587
  }
6589
6588
  /**
6590
6589
  * @license
@@ -6602,11 +6601,11 @@ function Ta(n) {
6602
6601
  * See the License for the specific language governing permissions and
6603
6602
  * limitations under the License.
6604
6603
  */
6605
- const Sa = 5 * 60, ka = jt("authIdTokenMaxAge") || Sa;
6604
+ const wa = 5 * 60, Ea = jt("authIdTokenMaxAge") || wa;
6606
6605
  let Dt = null;
6607
- const Aa = (n) => async (e) => {
6606
+ const Ta = (n) => async (e) => {
6608
6607
  const t = e && await e.getIdTokenResult(), r = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
6609
- if (r && r > ka)
6608
+ if (r && r > Ea)
6610
6609
  return;
6611
6610
  const i = t == null ? void 0 : t.token;
6612
6611
  Dt !== i && (Dt = i, await fetch(n, {
@@ -6616,33 +6615,33 @@ const Aa = (n) => async (e) => {
6616
6615
  } : {}
6617
6616
  }));
6618
6617
  };
6619
- function Ca(n = bi()) {
6618
+ function Sa(n = _i()) {
6620
6619
  const e = qt(n, "auth");
6621
6620
  if (e.isInitialized())
6622
6621
  return e.getImmediate();
6623
- const t = ss(n, {
6624
- popupRedirectResolver: Ia,
6622
+ const t = ns(n, {
6623
+ popupRedirectResolver: ya,
6625
6624
  persistence: [
6626
- Ds,
6627
- bs,
6625
+ Cs,
6626
+ _s,
6628
6627
  Tn
6629
6628
  ]
6630
6629
  }), r = jt("authTokenSyncURL");
6631
6630
  if (r && typeof isSecureContext == "boolean" && isSecureContext) {
6632
6631
  const s = new URL(r, location.origin);
6633
6632
  if (location.origin === s.origin) {
6634
- const a = Aa(s.toString());
6635
- _s(t, a, () => a(t.currentUser)), gs(t, (c) => a(c));
6633
+ const a = Ta(s.toString());
6634
+ ps(t, a, () => a(t.currentUser)), fs(t, (c) => a(c));
6636
6635
  }
6637
6636
  }
6638
- const i = ar("auth");
6639
- return i && os(t, `http://${i}`), t;
6637
+ const i = rr("auth");
6638
+ return i && is(t, `http://${i}`), t;
6640
6639
  }
6641
- function Ra() {
6640
+ function ka() {
6642
6641
  var n, e;
6643
6642
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
6644
6643
  }
6645
- ts({
6644
+ Qi({
6646
6645
  loadJS(n) {
6647
6646
  return new Promise((e, t) => {
6648
6647
  const r = document.createElement("script");
@@ -6652,21 +6651,21 @@ ts({
6652
6651
  /* AuthErrorCode.INTERNAL_ERROR */
6653
6652
  );
6654
6653
  s.customData = i, t(s);
6655
- }, r.type = "text/javascript", r.charset = "UTF-8", Ra().appendChild(r);
6654
+ }, r.type = "text/javascript", r.charset = "UTF-8", ka().appendChild(r);
6656
6655
  });
6657
6656
  },
6658
6657
  gapiScript: "https://apis.google.com/js/api.js",
6659
6658
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
6660
6659
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
6661
6660
  });
6662
- Ta(
6661
+ Ia(
6663
6662
  "Browser"
6664
6663
  /* ClientPlatform.BROWSER */
6665
6664
  );
6666
- const Pa = Un({
6667
- history: xn(),
6665
+ const Aa = Nn({
6666
+ history: Ln(),
6668
6667
  routes: [
6669
- ...ue,
6668
+ ...je,
6670
6669
  ...K,
6671
6670
  {
6672
6671
  path: "/forbidden",
@@ -6675,18 +6674,18 @@ const Pa = Un({
6675
6674
  }
6676
6675
  ]
6677
6676
  });
6678
- let Ne, Le;
6679
- Pa.beforeEach(async (n) => {
6677
+ let De, Ne;
6678
+ Aa.beforeEach(async (n) => {
6680
6679
  const {
6681
6680
  sessionUser: e,
6682
6681
  currentRestaurant: t,
6683
6682
  currentBusiness: r,
6684
6683
  readRestaurants: i,
6685
6684
  changeRestaurant: s
6686
- } = je();
6685
+ } = Ve();
6687
6686
  if (n.name && n.name.startsWith("mf-payment-admin")) {
6688
6687
  if (!e.value) {
6689
- Ne || (Ne = new Promise((c) => {
6688
+ De || (De = new Promise((c) => {
6690
6689
  const o = q(e, (l) => {
6691
6690
  var u, d;
6692
6691
  l && (o(), c(
@@ -6694,12 +6693,12 @@ Pa.beforeEach(async (n) => {
6694
6693
  ));
6695
6694
  });
6696
6695
  }));
6697
- const a = await Ne;
6696
+ const a = await De;
6698
6697
  return a || { name: "mf-payment-forbidden" };
6699
6698
  }
6700
6699
  return !0;
6701
6700
  }
6702
- return !r.value || !t.value ? (Le || (Le = Promise.all([
6701
+ return !r.value || !t.value ? (Ne || (Ne = Promise.all([
6703
6702
  new Promise(async (a) => {
6704
6703
  const c = q(r, (o) => {
6705
6704
  o && (c(), a(!0));
@@ -6711,17 +6710,17 @@ Pa.beforeEach(async (n) => {
6711
6710
  }), o = await i();
6712
6711
  await s(o == null ? void 0 : o.at(0));
6713
6712
  })
6714
- ]).then((a) => !0)), Le) : !0;
6713
+ ]).then((a) => !0)), Ne) : !0;
6715
6714
  });
6716
- const Oa = /* @__PURE__ */ Lt({
6715
+ const Ra = /* @__PURE__ */ Lt({
6717
6716
  __name: "AppSidebar",
6718
6717
  setup(n) {
6719
- const e = je(), t = Fn(), { t: r } = zn(), i = $n(t.currentRoute.value.name);
6718
+ const e = Ve(), t = Mn(), { t: r } = Vn(), i = xn(t.currentRoute.value.name);
6720
6719
  q(t.currentRoute, () => {
6721
6720
  let l = t.currentRoute.value.name;
6722
6721
  t.currentRoute.value.meta.parent && (l = t.currentRoute.value.meta.parent), i.value = l;
6723
6722
  });
6724
- const s = ue.map((l) => {
6723
+ const s = je.map((l) => {
6725
6724
  var p, m;
6726
6725
  if (!((p = l.meta) != null && p.sidebarDisplay) || l.meta.region && !((m = l.meta.region) != null && m[e.currentCountry.value]) || l.meta.section)
6727
6726
  return;
@@ -6733,7 +6732,7 @@ const Oa = /* @__PURE__ */ Lt({
6733
6732
  return t.push({ name: l.name });
6734
6733
  }
6735
6734
  };
6736
- return l.meta.sidebarNew && (d.badge = () => Hn(qn.FmPill, { label: "New" })), d;
6735
+ return l.meta.sidebarNew && (d.badge = () => Bn(Wn.FmPill, { label: "New" })), d;
6737
6736
  }).filter((l) => !!l);
6738
6737
  function a(l, u) {
6739
6738
  return l.map((d) => {
@@ -6764,16 +6763,7 @@ const Oa = /* @__PURE__ */ Lt({
6764
6763
  }).filter((l) => !!l), o = Nt(() => {
6765
6764
  var u, d;
6766
6765
  const l = [...s];
6767
- return l.push({
6768
- label: "",
6769
- value: "divider",
6770
- disabled: !0
6771
- }), l.push({
6772
- label: r("financing.title"),
6773
- icon: "credit_score",
6774
- value: "divider",
6775
- disabled: !0
6776
- }), l.push(...a(ue, "financing")), ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
6766
+ return ((u = e.sessionUser.value) != null && u.role.isStaff || (d = e.sessionUser.value) != null && d.role.isAdmin) && (l.push({
6777
6767
  label: "",
6778
6768
  value: "divider",
6779
6769
  disabled: !0
@@ -6813,30 +6803,32 @@ const Oa = /* @__PURE__ */ Lt({
6813
6803
  };
6814
6804
  }
6815
6805
  });
6816
- var Da = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
6817
- const Ba = /* @__PURE__ */ Lt({
6806
+ var Ca = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" } };
6807
+ const Ma = /* @__PURE__ */ Lt({
6818
6808
  __name: "App",
6819
6809
  setup(n) {
6820
- const { state: e } = Qn(), t = je(), r = Bn(), i = Kt(Da.firebase);
6810
+ const { state: e } = Jn(), t = Ve(), r = Un(), i = Kt(Ca.firebase);
6821
6811
  async function s() {
6822
6812
  const a = t.sessionUser.value;
6823
6813
  if (!a || !a.token) return;
6824
- const c = await a.getCustomToken(), o = Ca(i);
6825
- await ms(o, c);
6814
+ const c = await a.getCustomToken(), o = Sa(i);
6815
+ await hs(o, c);
6826
6816
  }
6827
- return s(), q(t.sessionUser, s), Vn(() => {
6817
+ return s(), q(t.sessionUser, s), Fn(() => {
6828
6818
  e.isIframe && parent.postMessage({ event: "ready" }, "*");
6829
- }), jn(() => {
6830
- t.registerSidebarComponent(Oa);
6819
+ }), $n(() => {
6820
+ t.registerSidebarComponent(Ra);
6831
6821
  }), (a, c) => {
6832
6822
  const o = Mt("RouterView");
6833
6823
  return Ut(), xt(o, {
6834
- key: Wn(r).path
6824
+ key: Hn(r).path
6835
6825
  });
6836
6826
  };
6837
6827
  }
6838
- }), $a = () => {
6839
- const n = [{ "en-US": Jn, "zh-CN": Xn }, Mn], e = new Set(
6828
+ }), Ua = () => {
6829
+ const n = [
6830
+ { "en-US": Gn, "zh-CN": Kn }
6831
+ ], e = new Set(
6840
6832
  n.flatMap((t) => Object.keys(t))
6841
6833
  );
6842
6834
  return Array.from(e).reduce(
@@ -6849,10 +6841,10 @@ const Ba = /* @__PURE__ */ Lt({
6849
6841
  },
6850
6842
  {}
6851
6843
  );
6852
- }, Ha = [...K, ...ue];
6844
+ }, xa = [...K, ...je];
6853
6845
  export {
6854
6846
  mt as _,
6855
- Ba as a,
6856
- $a as i,
6857
- Ha as r
6847
+ Ma as a,
6848
+ Ua as i,
6849
+ xa as r
6858
6850
  };