@feedmepos/mf-connect 0.1.110-prod → 0.1.112-prod

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 (126) hide show
  1. package/dist/{App-BIuwkgjE.js → App-CFJcQZEE.js} +522 -500
  2. package/dist/{Bin-B6PDvhj7.js → Bin-DaqUNsSV.js} +8 -8
  3. package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-CdAN6JCa.js} +82 -79
  4. package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-CpP7lgTX.js} +7 -7
  5. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js} +49 -31
  6. package/dist/Card-Bmz5p5Pq.js +1085 -0
  7. package/dist/{Collections-B0umkbKL.js → Collections-BKND60cK.js} +9 -9
  8. package/dist/{Credit-DMrHYtmf.js → Credit-DQ_tDm8l.js} +11 -11
  9. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js} +1 -1
  10. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js} +34 -32
  11. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js} +6 -6
  12. package/dist/{Experience-3xvTI41j.js → Experience-BOE6jLIS.js} +86 -83
  13. package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-D0CP0E3N.js} +1 -1
  14. package/dist/{Game-Drkfnm94.js → Game-B-8by2dp.js} +12 -12
  15. package/dist/GiftCardSetup-CdqZd1ee.js +748 -0
  16. package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js +424 -0
  17. package/dist/Goals-xFHNbwt7.js +247 -0
  18. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js} +1 -1
  19. package/dist/{Index-BNfZ-mAu.js → Index-t6veJ0lU.js} +10 -10
  20. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js} +1 -1
  21. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js} +1 -1
  22. package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-DXNBsnM5.js} +1216 -1170
  23. package/dist/{MainLayout-m4H59w6_.js → MainLayout-CmCboaEn.js} +3 -3
  24. package/dist/{Marketing-BqdCdc76.js → Marketing-DCq9O5eb.js} +4 -4
  25. package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-CGLxanxm.js} +6 -6
  26. package/dist/{Member-BbpQizye.js → Member-BCYmEmhD.js} +7 -7
  27. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js} +26 -24
  28. package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-D-5NAOfo.js} +7 -7
  29. package/dist/{MemberList-CFtv0HI5.js → MemberList-IySTKOT_.js} +14 -14
  30. package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-BgQZvc5O.js} +1 -1
  31. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js} +3369 -3290
  32. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js} +1 -1
  33. package/dist/{Mission-BMhY1kl1.js → Mission-DtaTKWE2.js} +83 -80
  34. package/dist/{Overview-BmZelkd_.js → Overview-D-uC2-Pi.js} +4 -4
  35. package/dist/{Overview-E0KL28Fc.js → Overview-DVMdPa97.js} +57 -55
  36. package/dist/{Point-BX5p9ZVF.js → Point-jnPIgHMZ.js} +119 -110
  37. package/dist/{Promotion-D662WYaR.js → Promotion-mdQg-RSh.js} +89 -86
  38. package/dist/{Queue-CI5rumWZ.js → Queue-D8YY1lbn.js} +20 -18
  39. package/dist/{Record-DRZVEW0I.js → Record-Dh-rN7a0.js} +9 -9
  40. package/dist/{Review-yMVGBErp.js → Review-C8B-SIR8.js} +2 -2
  41. package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-C3eyH0pS.js} +5 -5
  42. package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-pNF2ICvQ.js} +5 -5
  43. package/dist/{Reward-lzBLyu0x.js → Reward-D7KPnzXt.js} +35 -35
  44. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js} +25 -23
  45. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js} +17 -15
  46. package/dist/{Segment-BRPf66q8.js → Segment-Ct8JRTjV.js} +32 -30
  47. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js} +38 -36
  48. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js} +4 -4
  49. package/dist/{Setting-D5k2jymY.js → Setting-C3Binnn_.js} +56 -56
  50. package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-BrB-dGPs.js} +12 -12
  51. package/dist/{Settings-B3OCofxq.js → Settings-D6h2QM6X.js} +5 -5
  52. package/dist/Store-EKPfHEmY.js +2622 -0
  53. package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-B208ENOi.js} +15 -15
  54. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +1264 -0
  55. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js} +2 -2
  56. package/dist/{Tier-8pGUR8GA.js → Tier-CjYiCZy_.js} +342 -338
  57. package/dist/{Title-DnYVX2k8.js → Title-BXkVolaL.js} +34 -32
  58. package/dist/Transaction-D1T3aIC3.js +45 -0
  59. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js} +6 -6
  60. package/dist/Voucher-DnQ8jNjI.js +837 -0
  61. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js} +12 -12
  62. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js} +2 -2
  63. package/dist/{app-DoUnw6pe.js → app-BtGohMqA.js} +6211 -5092
  64. package/dist/app.js +1 -1
  65. package/dist/base.export-DulNMo7e.js +75 -0
  66. package/dist/{business-B-PlsFIY.js → business-Bla8vvZH.js} +1 -1
  67. package/dist/{campaign-yUUxyk0R.js → campaign-BIPNFBY5.js} +2 -2
  68. package/dist/{campaign-GkMET7FI.js → campaign-DYqAyRCY.js} +8 -8
  69. package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-liUaxkcy.js} +1 -1
  70. package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-J7hYcX_7.js} +98 -98
  71. package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-C0FfRMrW.js} +1 -1
  72. package/dist/{collection.fn-BByCTXVz.js → collection.fn-DdDMfaFO.js} +2 -2
  73. package/dist/currency-BrVnqxQ1.js +7 -0
  74. package/dist/{effect-jriAOaEq.js → effect-gfVmfrm9.js} +1 -1
  75. package/dist/{email-addresses-DH4xgace.js → email-addresses-Dy8NFNBw.js} +2 -2
  76. package/dist/{helper-CQjM35T_.js → helper-CMhQctQK.js} +1 -1
  77. package/dist/{index-v3DTwO9s.js → index-B6x6s8mu.js} +1805 -2128
  78. package/dist/{index-iZDBfoRk.js → index-BOZ3oVHd.js} +2 -2
  79. package/dist/{index-MtVkfI7s.js → index-BqKrePY8.js} +3 -3
  80. package/dist/{index-BLOFQAMK.js → index-C5rRuwhC.js} +1 -1
  81. package/dist/{index-BHYKmUkc.js → index-C67-z1uf.js} +11 -6
  82. package/dist/{index-CptAtzHf.js → index-CLiJUFmJ.js} +2 -2
  83. package/dist/{index-DEmV6_BZ.js → index-CUFuU2eJ.js} +10 -8
  84. package/dist/index-CZqwIQXi.js +738 -0
  85. package/dist/{index-D1vRPik1.js → index-CghtzuVO.js} +1 -1
  86. package/dist/{index-DszI88g9.js → index-Culx-Z9v.js} +20 -14
  87. package/dist/{index-Dr68iOIO.js → index-D1T4Yf4t.js} +1 -1
  88. package/dist/{index-Duqxyi9L.js → index-D6RDVy95.js} +1112 -34
  89. package/dist/index-DKmtDBKS.js +53 -0
  90. package/dist/{index-De9f7Fwe.js → index-Dalmv1m4.js} +5 -5
  91. package/dist/{index-DKZEN-aI.js → index-DvW-3flw.js} +4 -3
  92. package/dist/{index-CCBpqK6M.js → index-dyMdi0Rt.js} +1 -1
  93. package/dist/index-otcusTFM.js +171 -0
  94. package/dist/{index-BlKeV6aM.js → index-qJOEwQ_z.js} +4 -1
  95. package/dist/{index-BPTCREXM.js → index-v1exQSyU.js} +1 -1
  96. package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-BLKRIlb9.js} +1 -1
  97. package/dist/{loading-DO3WUS3q.js → loading-BkJ3h_4U.js} +1 -1
  98. package/dist/{lodash-6izwukKR.js → lodash-C0Kbs8lQ.js} +1 -1
  99. package/dist/{member-import-hKbS-7lM.js → member-import-trpK8l8R.js} +1 -1
  100. package/dist/{membership-buZOqdNV.js → membership-TV1CoyKQ.js} +3 -3
  101. package/dist/{money-WR6-v2Bl.js → money-BM-DK9iD.js} +1 -1
  102. package/dist/{number-CjEejmUn.js → number-BclgE86R.js} +1 -1
  103. package/dist/{objectid-BvtNS241.js → objectid-C2XvpEgx.js} +12 -12
  104. package/dist/onboarding-BLuoXyCY.js +131 -0
  105. package/dist/onboardingSetup-BLmLAgIV.js +17 -0
  106. package/dist/{plugins-BLcKp-ww.js → plugins-3_mD58dh.js} +3 -3
  107. package/dist/{reward-DCNR2-_F.js → reward-Bo4szVCU.js} +1 -1
  108. package/dist/{rule-BsdMlDuH.js → rule-Bwy5-zD7.js} +3 -3
  109. package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-Co_1uuj4.js} +1 -1
  110. package/dist/{template-DuuTNfO4.js → template-fImyGLa7.js} +7 -7
  111. package/dist/{timezone-nMBfnPp_.js → timezone-DQ7TNXmV.js} +1 -1
  112. package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-OT7ucfCB.js} +2 -2
  113. package/dist/{trigger-CtlvsU7_.js → trigger-BJKHGcNG.js} +14 -14
  114. package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-BX3C1Gga.js} +3 -3
  115. package/dist/{usePagination-DvJ9IfI_.js → usePagination-Qp0qoWBj.js} +1 -1
  116. package/dist/{user-CYOAXuDw.js → user-BcE3fiEa.js} +1 -1
  117. package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BQmB8Ex1.js} +99 -99
  118. package/dist/{xlsx-Ct_b6gSU.js → xlsx-DYZ421PG.js} +584 -584
  119. package/dist/{zod-DZR76_dr.js → zod-DestzeIp.js} +1 -1
  120. package/package.json +1 -1
  121. package/dist/Card-D5sknDf_.js +0 -910
  122. package/dist/Store-B8WVn8ZA.js +0 -1997
  123. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js +0 -1008
  124. package/dist/Transaction-YJkVkePM.js +0 -39
  125. package/dist/Voucher-BcCzreI3.js +0 -443
  126. package/dist/export-CN3lbc2j.js +0 -97
@@ -1,293 +1,315 @@
1
- import { defineComponent as De, ref as ee, h as Y, computed as ne, watch as xe, resolveComponent as Z, openBlock as H, createElementBlock as pe, createVNode as S, unref as p, createElementVNode as _, toDisplayString as R, createBlock as Ne, withCtx as X, Fragment as It, renderList as cn, onMounted as ln, createCommentVNode as Ae, nextTick as un } from "vue";
2
- import { useRouter as yt, useRoute as wt, RouterView as dn } from "vue-router";
3
- import { useCoreStore as me, FeedMeAuth as hn } from "@feedmepos/mf-common";
4
- import { u as fn } from "./app-wDQR6dpb.js";
5
- import { u as pn } from "./business-B-PlsFIY.js";
6
- import "./index-BLOFQAMK.js";
7
- import { components as Q, useSnackbar as mn, useDialog as gn } from "@feedmepos/ui-library";
8
- import { u as Tt } from "./vue-i18n-Cy0bIZpQ.js";
9
- import { m as _n } from "./index-D1vRPik1.js";
10
- import { C as Xe } from "./timezone-nMBfnPp_.js";
11
- import { R as f, A as vn, a as Qe } from "./app-DoUnw6pe.js";
12
- import { J as In } from "./JsonViewer-v8_C7l5N.js";
13
- import { r as Oe, L as yn, g as kt, i as wn, a as Tn, _ as Ze, C as et, b as kn, S as re, c as A, d as K, E as Fe, e as En, f as Et, h as bn, j as Sn, k as bt, l as y, m as Rn, F as Ve, n as An, q as se, o as Pn, p as Cn, s as Nn, t as On, u as Ln } from "./index.esm2017-DvOnDQUA.js";
1
+ import { defineComponent as xe, ref as ee, h as H, Comment as cn, computed as ne, watch as pe, resolveComponent as Z, openBlock as j, createElementBlock as me, createVNode as S, unref as g, createElementVNode as v, toDisplayString as R, createBlock as Oe, withCtx as Q, Fragment as It, renderList as ln, onMounted as un, createCommentVNode as Pe, nextTick as dn } from "vue";
2
+ import { useRouter as yt, useRoute as wt, RouterView as hn } from "vue-router";
3
+ import { useCoreStore as ge, FeedMeAuth as fn } from "@feedmepos/mf-common";
4
+ import { u as pn } from "./app-wDQR6dpb.js";
5
+ import { u as mn } from "./business-Bla8vvZH.js";
6
+ import "./index-C5rRuwhC.js";
7
+ import { components as G, useSnackbar as gn, useDialog as _n } from "@feedmepos/ui-library";
8
+ import { u as Tt } from "./vue-i18n-BQmB8Ex1.js";
9
+ import { m as vn } from "./index-CghtzuVO.js";
10
+ import { C as Xe } from "./timezone-DQ7TNXmV.js";
11
+ import { u as In } from "./onboarding-BLuoXyCY.js";
12
+ import { R as p, A as yn, a as Qe } from "./app-BtGohMqA.js";
13
+ import { J as wn } from "./JsonViewer-v8_C7l5N.js";
14
+ import { r as Le, L as Tn, g as kt, i as kn, a as bn, _ as Ze, C as et, b as En, S as re, c as A, d as Y, E as Fe, e as Sn, f as bt, h as Rn, j as An, k as Et, l as w, m as Pn, F as Ve, n as Cn, q as se, o as Nn, p as On, s as Ln, t as Mn, u as Un } from "./index.esm2017-BLKRIlb9.js";
14
15
  import { _ as $e } from "./tslib.es6-BCqqvLQ_.js";
15
- import { S as tt, c as Mn } from "./index-iZDBfoRk.js";
16
- const Un = { class: "flex flex-col h-full justify-between py-16" }, Dn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, xn = /* @__PURE__ */ De({
16
+ import { S as tt, c as Dn } from "./index-BOZ3oVHd.js";
17
+ const xn = { class: "flex flex-col h-full justify-between py-16" }, Fn = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Vn = /* @__PURE__ */ xe({
17
18
  __name: "NavigationTab",
18
19
  setup(n) {
19
- const { t: e } = Tt(), t = ee(), i = [
20
+ const { t: e, locale: t } = Tt(), i = In(), r = ee(), s = [
20
21
  {
21
22
  label: e("connect.navigation.analytic"),
22
- value: f["$connect-ANALYTIC"]
23
+ value: p["$connect-ANALYTIC"]
23
24
  },
24
25
  {
25
26
  label: e("connect.navigation.campaign"),
26
- value: f["$connect-CAMPAIGN"],
27
+ value: p["$connect-CAMPAIGN"],
27
28
  children: [
28
29
  {
29
30
  label: e("connect.navigation.promotion"),
30
- value: f["$connect-CAMPAIGN_PROMOTION"]
31
+ value: p["$connect-CAMPAIGN_PROMOTION"]
31
32
  },
32
33
  {
33
34
  label: e("connect.navigation.voucher"),
34
- value: f["$connect-CAMPAIGN_VOUCHER"]
35
+ value: p["$connect-CAMPAIGN_VOUCHER"]
35
36
  },
36
37
  {
37
38
  label: e("connect.navigation.broadcast"),
38
- value: f["$connect-CAMPAIGN_BROADCAST"]
39
+ value: p["$connect-CAMPAIGN_BROADCAST"]
39
40
  }
40
41
  ]
41
42
  },
42
43
  {
43
44
  label: e("connect.navigation.program"),
44
- value: f["$connect-PROGRAM"],
45
+ value: p["$connect-PROGRAM"],
45
46
  children: [
46
47
  {
47
48
  label: e("connect.navigation.tier"),
48
- value: f["$connect-PROGRAM_TIER"]
49
+ value: p["$connect-PROGRAM_TIER"]
49
50
  },
50
51
  {
51
52
  label: e("connect.navigation.title"),
52
- value: f["$connect-PROGRAM_TITLE"]
53
+ value: p["$connect-PROGRAM_TITLE"]
53
54
  },
54
55
  {
55
56
  label: e("connect.navigation.experience"),
56
- value: f["$connect-PROGRAM_EXPERIENCE"]
57
+ value: p["$connect-PROGRAM_EXPERIENCE"]
57
58
  },
58
59
  {
59
60
  label: e("connect.navigation.point"),
60
- value: f["$connect-PROGRAM_POINT"],
61
- badge: () => Y(Q.FmPill, { variant: "premium" })
61
+ value: p["$connect-PROGRAM_POINT"],
62
+ badge: () => H(G.FmPill, { variant: "premium" })
62
63
  },
63
64
  {
64
65
  label: e("connect.navigation.credit"),
65
- value: f["$connect-PROGRAM_CREDIT"]
66
+ value: p["$connect-PROGRAM_CREDIT"]
66
67
  },
67
68
  {
68
69
  label: e("connect.navigation.game"),
69
- value: f["$connect-PROGRAM_GAME"],
70
- badge: () => Y(Q.FmPill, { variant: "premium" })
70
+ value: p["$connect-PROGRAM_GAME"],
71
+ badge: () => H(G.FmPill, { variant: "premium" })
71
72
  },
72
73
  {
73
74
  label: "Mission",
74
- value: f["$connect-PROGRAM_MISSION"]
75
+ value: p["$connect-PROGRAM_MISSION"]
75
76
  }
76
77
  ]
77
78
  },
78
79
  {
79
80
  label: e("connect.navigation.loyalty"),
80
- value: f["$connect-LOYALTY"],
81
+ value: p["$connect-LOYALTY"],
81
82
  children: [
82
83
  {
83
84
  label: e("connect.navigation.member"),
84
- value: f["$connect-LOYALTY_MEMBER_LIST"]
85
+ value: p["$connect-LOYALTY_MEMBER_LIST"]
85
86
  },
86
87
  {
87
88
  label: e("connect.navigation.segments"),
88
- value: f["$connect-LOYALTY_SEGMENT"],
89
- badge: () => Y(Q.FmPill, { variant: "premium" })
89
+ value: p["$connect-LOYALTY_SEGMENT"],
90
+ badge: () => H(G.FmPill, { variant: "premium" })
90
91
  },
91
92
  {
92
93
  label: e("connect.navigation.card"),
93
- value: f["$connect-LOYALTY_CARD"],
94
- badge: () => Y(Q.FmPill, { variant: "premium" })
94
+ value: p["$connect-LOYALTY_CARD"],
95
+ badge: () => H(G.FmPill, { variant: "premium" })
95
96
  }
96
97
  ]
97
98
  },
98
99
  {
99
100
  label: e("connect.navigation.referral"),
100
- value: f["$connect-REFERRAL"],
101
- badge: () => Y(Q.FmPill, { variant: "premium" })
101
+ value: p["$connect-REFERRAL"],
102
+ badge: () => H(G.FmPill, { variant: "premium" })
102
103
  },
103
104
  {
104
105
  label: e("connect.navigation.store"),
105
- value: f["$connect-STORE"]
106
+ value: p["$connect-STORE"]
106
107
  },
107
108
  {
108
109
  label: e("connect.navigation.transaction"),
109
- value: f["$connect-TRANSACTION"]
110
+ value: p["$connect-TRANSACTION"]
110
111
  },
111
112
  {
112
113
  label: e("connect.navigation.marketingMaterials"),
113
- value: f["$connect-MARKETING"]
114
+ value: p["$connect-MARKETING"]
114
115
  },
115
116
  {
116
117
  label: e("connect.navigation.review"),
117
- value: f["$connect-REVIEW"]
118
+ value: p["$connect-REVIEW"]
119
+ },
120
+ {
121
+ label: e("connect.navigation.goals"),
122
+ value: p["$connect-GOALS"],
123
+ badge: () => i.goalsRemaining > 0 ? H(G.FmBadge, {
124
+ variant: "numeric",
125
+ inline: !0,
126
+ value: i.goalsRemaining
127
+ }) : H(cn)
118
128
  },
119
129
  {
120
130
  label: e("connect.navigation.setting"),
121
- value: f["$connect-SETTING"]
131
+ value: p["$connect-SETTING"]
122
132
  },
123
133
  {
124
134
  label: e("connect.navigation.bin"),
125
- value: f["$connect-BIN"]
135
+ value: p["$connect-BIN"]
126
136
  }
127
- ], r = yt(), s = wt(), o = i.reduce((d, h) => [...(h.children ?? []).map((m) => m.value), ...d, h.value], []), c = me(), a = ne(() => {
128
- const d = c.currentCountry.value || "MY";
129
- return console.log(`[MF] Timezone set to: ${Xe[d]}`), Xe[d];
137
+ ], o = yt(), c = wt(), a = s.reduce((h, y) => [...(y.children ?? []).map((_) => _.value), ...h, y.value], []), l = ge(), d = ne(() => {
138
+ const h = l.currentCountry.value || "MY";
139
+ return console.log(`[MF] Timezone set to: ${Xe[h]}`), Xe[h];
130
140
  });
131
- xe(
132
- () => s,
133
- (d) => {
134
- const h = d.matched.map((m) => m.name).reverse();
135
- t.value = h.find((m) => o.includes(m));
141
+ pe(
142
+ // Watch `route.matched`, not `route`: `useRoute()` returns a reactive object
143
+ // whose identity never changes, so watching it directly fired once via
144
+ // `immediate` and the highlight then stayed on whatever page loaded first.
145
+ () => c.matched,
146
+ (h) => {
147
+ const _ = h.map((f) => f.name).reverse().find((f) => a.includes(f));
148
+ _ && (r.value = _);
149
+ },
150
+ { immediate: !0 }
151
+ ), pe(
152
+ [() => {
153
+ var h;
154
+ return (h = l.currentBusiness.value) == null ? void 0 : h._id;
155
+ }, () => c.name, t],
156
+ ([h]) => {
157
+ h && i.read(t.value, h);
136
158
  },
137
159
  { immediate: !0 }
138
160
  );
139
- async function l(d) {
140
- await r.push({ name: d });
161
+ async function m(h) {
162
+ await o.push({ name: h });
141
163
  }
142
- return (d, h) => {
143
- var I;
144
- const m = Z("FmCollapsibleTabs");
145
- return H(), pe("div", Un, [
146
- S(m, {
164
+ return (h, y) => {
165
+ var f;
166
+ const _ = Z("FmCollapsibleTabs");
167
+ return j(), me("div", xn, [
168
+ S(_, {
147
169
  class: "border-fm-color-neutral-gray-100 border-r px-4",
148
- "model-value": (I = p(t)) == null ? void 0 : I.toString(),
149
- items: i,
150
- "onUpdate:modelValue": l
170
+ "model-value": (f = g(r)) == null ? void 0 : f.toString(),
171
+ items: s,
172
+ "onUpdate:modelValue": m
151
173
  }, null, 8, ["model-value"]),
152
- _("div", Dn, [
153
- _("div", null, "Timezone: " + R(p(a).split("/")[1].replace("_", " ")), 1),
154
- _("div", null, "(UTC" + R(p(_n).tz(p(a)).format("Z")) + ")", 1)
174
+ v("div", Fn, [
175
+ v("div", null, "Timezone: " + R(g(d).split("/")[1].replace("_", " ")), 1),
176
+ v("div", null, "(UTC" + R(g(vn).tz(g(d)).format("Z")) + ")", 1)
155
177
  ])
156
178
  ]);
157
179
  };
158
180
  }
159
181
  }), St = "feedme_connect_marketing_promo_hidden";
160
- function Fn() {
182
+ function $n() {
161
183
  try {
162
184
  return localStorage.getItem(St) !== null;
163
185
  } catch {
164
186
  return !1;
165
187
  }
166
188
  }
167
- function Vn() {
189
+ function Hn() {
168
190
  try {
169
191
  localStorage.setItem(St, (/* @__PURE__ */ new Date()).toISOString());
170
192
  } catch {
171
193
  }
172
194
  }
173
- const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, jn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Wn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, Bn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, Gn = { class: "flex flex-col gap-24 pb-8" }, zn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, qn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Kn = { class: "fm-typo-en-body-lg-600" }, Jn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Yn = { class: "shrink-0" }, Xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qn = { class: "flex w-full flex-col gap-12 px-[16px]" }, Zn = { class: "flex flex-wrap items-center gap-12" }, ei = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ti = /* @__PURE__ */ De({
195
+ const jn = { class: "flex flex-col gap-12" }, Wn = { class: "fm-corner-radius-xxl bg-fm-color-primary-oats flex items-start gap-4 self-start px-12 py-4" }, Bn = { class: "fm-typo-en-body-sm-600 text-fm-color-primary" }, Gn = { class: "fm-typo-en-title-sm-800 max-w-[560px] leading-[42px]" }, zn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary max-w-[600px]" }, qn = { class: "flex flex-col gap-24 pb-8" }, Kn = { class: "grid grid-cols-1 gap-16 sm:grid-cols-3 md:grid-cols-3 lg:grid-cols-3" }, Jn = { class: "fm-corner-radius-sm bg-fm-color-primary-oats flex h-40 w-40 shrink-0 items-center justify-center" }, Yn = { class: "fm-typo-en-body-lg-600" }, Xn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-tertiary" }, Qn = { class: "shrink-0" }, Zn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ei = { class: "flex w-full flex-col gap-12 px-[16px]" }, ti = { class: "flex flex-wrap items-center gap-12" }, ni = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, ii = /* @__PURE__ */ xe({
174
196
  __name: "AiMarketingPromoDialog",
175
197
  setup(n) {
176
198
  let e = !1;
177
- const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = me(), o = ee(!1), c = [
199
+ const { t } = Tt(), i = yt(), { sessionUser: r, currentCountry: s } = ge(), o = ee(!1), c = [
178
200
  { key: "completeContent", icon: "layers" },
179
201
  { key: "realContext", icon: "storefront" },
180
202
  { key: "socialFormat", icon: "aspect_ratio" }
181
203
  ], a = ne(() => {
182
- var w;
183
- const I = ((w = r.value) == null ? void 0 : w.permissions) ?? [];
184
- return vn(
204
+ var _;
205
+ const y = ((_ = r.value) == null ? void 0 : _.permissions) ?? [];
206
+ return yn(
185
207
  [
186
208
  {
187
209
  action: Qe.Action.manage,
188
210
  subject: Qe.Subject.Business.crm_marketingMaterial
189
211
  }
190
212
  ],
191
- I
213
+ y
192
214
  ).granted;
193
215
  }), l = ne(
194
216
  () => s.value === "MY" && a.value
195
217
  );
196
218
  let d = !1;
197
- xe(
219
+ pe(
198
220
  l,
199
- (I) => {
200
- d || !I || (d = !0, !(Fn() || e) && (e = !0, o.value = !0));
221
+ (y) => {
222
+ d || !y || (d = !0, !($n() || e) && (e = !0, o.value = !0));
201
223
  },
202
224
  { immediate: !0 }
203
225
  );
204
- async function h() {
205
- o.value = !1, await i.push({ name: f["$connect-MARKETING"] });
226
+ async function m() {
227
+ o.value = !1, await i.push({ name: p["$connect-MARKETING"] });
206
228
  }
207
- function m() {
208
- Vn(), o.value = !1;
229
+ function h() {
230
+ Hn(), o.value = !1;
209
231
  }
210
- return (I, w) => {
211
- const g = Z("FmIcon"), v = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
212
- return H(), Ne(M, {
232
+ return (y, _) => {
233
+ const f = Z("FmIcon"), I = Z("FmCard"), T = Z("FmButton"), M = Z("FmDialog");
234
+ return j(), Oe(M, {
213
235
  modelValue: o.value,
214
- "onUpdate:modelValue": w[0] || (w[0] = (k) => o.value = k),
236
+ "onUpdate:modelValue": _[0] || (_[0] = (k) => o.value = k),
215
237
  "min-width": "min(500px, calc(100% - 48px))",
216
238
  "max-width": "min(860px, calc(100% - 48px))",
217
239
  "max-height": "90vh",
218
240
  "dismiss-away": ""
219
241
  }, {
220
- "dialog-header": X(() => [
221
- _("div", $n, [
222
- _("div", Hn, [
223
- S(g, {
242
+ "dialog-header": Q(() => [
243
+ v("div", jn, [
244
+ v("div", Wn, [
245
+ S(f, {
224
246
  name: "auto_awesome",
225
247
  size: "sm",
226
248
  color: "primary"
227
249
  }),
228
- _("span", jn, R(p(t)("connect.marketing.whatsNew.badge")), 1)
250
+ v("span", Bn, R(g(t)("connect.marketing.whatsNew.badge")), 1)
229
251
  ]),
230
- _("h1", Wn, R(p(t)("connect.marketing.whatsNew.title")), 1),
231
- _("p", Bn, R(p(t)("connect.marketing.whatsNew.subtitle")), 1)
252
+ v("h1", Gn, R(g(t)("connect.marketing.whatsNew.title")), 1),
253
+ v("p", zn, R(g(t)("connect.marketing.whatsNew.subtitle")), 1)
232
254
  ])
233
255
  ]),
234
- "dialog-footer": X(() => [
235
- _("div", Qn, [
236
- _("div", Zn, [
256
+ "dialog-footer": Q(() => [
257
+ v("div", ei, [
258
+ v("div", ti, [
237
259
  S(T, {
238
260
  variant: "primary",
239
261
  size: "lg",
240
- label: p(t)("connect.marketing.whatsNew.cta"),
262
+ label: g(t)("connect.marketing.whatsNew.cta"),
241
263
  "append-icon": "arrow_forward",
242
- onClick: h
264
+ onClick: m
243
265
  }, null, 8, ["label"]),
244
266
  S(T, {
245
267
  variant: "tertiary",
246
268
  size: "lg",
247
- label: p(t)("connect.marketing.whatsNew.dismiss"),
248
- onClick: m
269
+ label: g(t)("connect.marketing.whatsNew.dismiss"),
270
+ onClick: h
249
271
  }, null, 8, ["label"])
250
272
  ]),
251
- _("div", ei, R(p(t)("connect.marketing.whatsNew.footnote")), 1)
273
+ v("div", ni, R(g(t)("connect.marketing.whatsNew.footnote")), 1)
252
274
  ])
253
275
  ]),
254
- default: X(() => [
255
- _("div", Gn, [
256
- _("div", zn, [
257
- (H(), pe(It, null, cn(c, (k) => S(v, {
276
+ default: Q(() => [
277
+ v("div", qn, [
278
+ v("div", Kn, [
279
+ (j(), me(It, null, ln(c, (k) => S(I, {
258
280
  key: k.key,
259
281
  variant: "outlined",
260
282
  class: "!h-full flex flex-col gap-8 p-16"
261
283
  }, {
262
- default: X(() => [
263
- _("div", qn, [
264
- S(g, {
284
+ default: Q(() => [
285
+ v("div", Jn, [
286
+ S(f, {
265
287
  name: k.icon,
266
288
  size: "md",
267
289
  color: "primary"
268
290
  }, null, 8, ["name"])
269
291
  ]),
270
- _("div", Kn, R(p(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
271
- _("div", Jn, R(p(t)(
292
+ v("div", Yn, R(g(t)(`connect.marketing.whatsNew.benefits.${k.key}.title`)), 1),
293
+ v("div", Xn, R(g(t)(
272
294
  `connect.marketing.whatsNew.benefits.${k.key}.description`
273
295
  )), 1)
274
296
  ]),
275
297
  _: 2
276
298
  }, 1024)), 64))
277
299
  ]),
278
- S(v, {
300
+ S(I, {
279
301
  variant: "outlined",
280
302
  class: "flex items-start gap-12 p-16"
281
303
  }, {
282
- default: X(() => [
283
- _("div", Yn, [
284
- S(g, {
304
+ default: Q(() => [
305
+ v("div", Qn, [
306
+ S(f, {
285
307
  name: "lightbulb",
286
308
  size: "md",
287
309
  color: "primary"
288
310
  })
289
311
  ]),
290
- _("p", Xn, R(p(t)("connect.marketing.whatsNew.callout")), 1)
312
+ v("p", Zn, R(g(t)("connect.marketing.whatsNew.callout")), 1)
291
313
  ]),
292
314
  _: 1
293
315
  })
@@ -298,7 +320,7 @@ const $n = { class: "flex flex-col gap-12" }, Hn = { class: "fm-corner-radius-xx
298
320
  };
299
321
  }
300
322
  });
301
- var ni = "firebase", ii = "10.12.4";
323
+ var ri = "firebase", si = "10.12.4";
302
324
  /**
303
325
  * @license
304
326
  * Copyright 2020 Google LLC
@@ -315,13 +337,13 @@ var ni = "firebase", ii = "10.12.4";
315
337
  * See the License for the specific language governing permissions and
316
338
  * limitations under the License.
317
339
  */
318
- Oe(ni, ii, "app");
340
+ Le(ri, si, "app");
319
341
  function Rt() {
320
342
  return {
321
343
  "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."
322
344
  };
323
345
  }
324
- const ri = Rt, At = new Fe("auth", "Firebase", Rt());
346
+ const oi = Rt, At = new Fe("auth", "Firebase", Rt());
325
347
  /**
326
348
  * @license
327
349
  * Copyright 2020 Google LLC
@@ -338,12 +360,12 @@ const ri = Rt, At = new Fe("auth", "Firebase", Rt());
338
360
  * See the License for the specific language governing permissions and
339
361
  * limitations under the License.
340
362
  */
341
- const ge = new yn("@firebase/auth");
342
- function si(n, ...e) {
343
- ge.logLevel <= bt.WARN && ge.warn(`Auth (${re}): ${n}`, ...e);
363
+ const _e = new Tn("@firebase/auth");
364
+ function ai(n, ...e) {
365
+ _e.logLevel <= Et.WARN && _e.warn(`Auth (${re}): ${n}`, ...e);
344
366
  }
345
367
  function ue(n, ...e) {
346
- ge.logLevel <= bt.ERROR && ge.error(`Auth (${re}): ${n}`, ...e);
368
+ _e.logLevel <= Et.ERROR && _e.error(`Auth (${re}): ${n}`, ...e);
347
369
  }
348
370
  /**
349
371
  * @license
@@ -364,11 +386,11 @@ function ue(n, ...e) {
364
386
  function O(n, ...e) {
365
387
  throw He(n, ...e);
366
388
  }
367
- function E(n, ...e) {
389
+ function b(n, ...e) {
368
390
  return He(n, ...e);
369
391
  }
370
392
  function Pt(n, e, t) {
371
- const i = Object.assign(Object.assign({}, ri()), { [e]: t });
393
+ const i = Object.assign(Object.assign({}, oi()), { [e]: t });
372
394
  return new Fe("auth", "Firebase", i).create(e, {
373
395
  appName: n.name
374
396
  });
@@ -410,11 +432,11 @@ function L(n, e) {
410
432
  * See the License for the specific language governing permissions and
411
433
  * limitations under the License.
412
434
  */
413
- function Le() {
435
+ function Me() {
414
436
  var n;
415
437
  return typeof self < "u" && ((n = self.location) === null || n === void 0 ? void 0 : n.href) || "";
416
438
  }
417
- function oi() {
439
+ function ci() {
418
440
  return nt() === "http:" || nt() === "https:";
419
441
  }
420
442
  function nt() {
@@ -437,15 +459,15 @@ function nt() {
437
459
  * See the License for the specific language governing permissions and
438
460
  * limitations under the License.
439
461
  */
440
- function ai() {
462
+ function li() {
441
463
  return typeof navigator < "u" && navigator && "onLine" in navigator && typeof navigator.onLine == "boolean" && // Apply only for traditional web apps and Chrome extensions.
442
464
  // This is especially true for Cordova apps which have unreliable
443
465
  // navigator.onLine behavior unless cordova-plugin-network-information is
444
466
  // installed which overwrites the native navigator.onLine value and
445
467
  // defines navigator.connection.
446
- (oi() || kn() || "connection" in navigator) ? navigator.onLine : !0;
468
+ (ci() || En() || "connection" in navigator) ? navigator.onLine : !0;
447
469
  }
448
- function ci() {
470
+ function ui() {
449
471
  if (typeof navigator > "u")
450
472
  return null;
451
473
  const n = navigator;
@@ -475,10 +497,10 @@ function ci() {
475
497
  */
476
498
  class oe {
477
499
  constructor(e, t) {
478
- this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = wn() || Tn();
500
+ this.shortDelay = e, this.longDelay = t, L(t > e, "Short delay should be less than long delay!"), this.isMobile = kn() || bn();
479
501
  }
480
502
  get() {
481
- return ai() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
503
+ return li() ? this.isMobile ? this.longDelay : this.shortDelay : Math.min(5e3, this.shortDelay);
482
504
  }
483
505
  }
484
506
  /**
@@ -572,7 +594,7 @@ class Ct {
572
594
  * See the License for the specific language governing permissions and
573
595
  * limitations under the License.
574
596
  */
575
- const li = {
597
+ const di = {
576
598
  // Custom token errors.
577
599
  CREDENTIAL_MISMATCH: "custom-token-mismatch",
578
600
  // This can only happen if the SDK sends a bad request.
@@ -663,11 +685,11 @@ const li = {
663
685
  * See the License for the specific language governing permissions and
664
686
  * limitations under the License.
665
687
  */
666
- const ui = new oe(3e4, 6e4);
667
- function we(n, e) {
688
+ const hi = new oe(3e4, 6e4);
689
+ function Te(n, e) {
668
690
  return n.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: n.tenantId }) : e;
669
691
  }
670
- async function J(n, e, t, i, r = {}) {
692
+ async function X(n, e, t, i, r = {}) {
671
693
  return Nt(n, r, async () => {
672
694
  let s = {}, o = {};
673
695
  i && (e === "GET" ? o = i : s = {
@@ -689,9 +711,9 @@ async function J(n, e, t, i, r = {}) {
689
711
  }
690
712
  async function Nt(n, e, t) {
691
713
  n._canInitEmulator = !1;
692
- const i = Object.assign(Object.assign({}, li), e);
714
+ const i = Object.assign(Object.assign({}, di), e);
693
715
  try {
694
- const r = new di(n), s = await Promise.race([
716
+ const r = new fi(n), s = await Promise.race([
695
717
  t(),
696
718
  r.promise
697
719
  ]);
@@ -721,7 +743,7 @@ async function Nt(n, e, t) {
721
743
  }
722
744
  }
723
745
  async function Ot(n, e, t, i, r = {}) {
724
- const s = await J(n, e, t, i, r);
746
+ const s = await X(n, e, t, i, r);
725
747
  return "mfaPendingCredential" in s && O(n, "multi-factor-auth-required", {
726
748
  _serverResponse: s
727
749
  }), s;
@@ -730,14 +752,14 @@ function Lt(n, e, t, i) {
730
752
  const r = `${e}${t}?${i}`;
731
753
  return n.config.emulator ? je(n.config, r) : `${n.config.apiScheme}://${r}`;
732
754
  }
733
- class di {
755
+ class fi {
734
756
  constructor(e) {
735
757
  this.auth = e, this.timer = null, this.promise = new Promise((t, i) => {
736
- this.timer = setTimeout(() => i(E(
758
+ this.timer = setTimeout(() => i(b(
737
759
  this.auth,
738
760
  "network-request-failed"
739
761
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
740
- )), ui.get());
762
+ )), hi.get());
741
763
  });
742
764
  }
743
765
  clearNetworkTimeout() {
@@ -749,7 +771,7 @@ function le(n, e, t) {
749
771
  appName: n.name
750
772
  };
751
773
  t.email && (i.email = t.email), t.phoneNumber && (i.phoneNumber = t.phoneNumber);
752
- const r = E(n, e, i);
774
+ const r = b(n, e, i);
753
775
  return r.customData._tokenResponse = t, r;
754
776
  }
755
777
  /**
@@ -768,11 +790,11 @@ function le(n, e, t) {
768
790
  * See the License for the specific language governing permissions and
769
791
  * limitations under the License.
770
792
  */
771
- async function hi(n, e) {
772
- return J(n, "POST", "/v1/accounts:delete", e);
793
+ async function pi(n, e) {
794
+ return X(n, "POST", "/v1/accounts:delete", e);
773
795
  }
774
796
  async function Mt(n, e) {
775
- return J(n, "POST", "/v1/accounts:lookup", e);
797
+ return X(n, "POST", "/v1/accounts:lookup", e);
776
798
  }
777
799
  /**
778
800
  * @license
@@ -799,8 +821,8 @@ function te(n) {
799
821
  } catch {
800
822
  }
801
823
  }
802
- async function fi(n, e = !1) {
803
- const t = K(n), i = await t.getIdToken(e), r = We(i);
824
+ async function mi(n, e = !1) {
825
+ const t = Y(n), i = await t.getIdToken(e), r = We(i);
804
826
  u(
805
827
  r && r.exp && r.auth_time && r.iat,
806
828
  t.auth,
@@ -811,14 +833,14 @@ async function fi(n, e = !1) {
811
833
  return {
812
834
  claims: r,
813
835
  token: i,
814
- authTime: te(Pe(r.auth_time)),
815
- issuedAtTime: te(Pe(r.iat)),
816
- expirationTime: te(Pe(r.exp)),
836
+ authTime: te(Ce(r.auth_time)),
837
+ issuedAtTime: te(Ce(r.iat)),
838
+ expirationTime: te(Ce(r.exp)),
817
839
  signInProvider: o || null,
818
840
  signInSecondFactor: (s == null ? void 0 : s.sign_in_second_factor) || null
819
841
  };
820
842
  }
821
- function Pe(n) {
843
+ function Ce(n) {
822
844
  return Number(n) * 1e3;
823
845
  }
824
846
  function We(n) {
@@ -826,7 +848,7 @@ function We(n) {
826
848
  if (e === void 0 || t === void 0 || i === void 0)
827
849
  return ue("JWT malformed, contained fewer than 3 sections"), null;
828
850
  try {
829
- const r = An(t);
851
+ const r = Cn(t);
830
852
  return r ? JSON.parse(r) : (ue("Failed to decode base64 JWT payload"), null);
831
853
  } catch (r) {
832
854
  return ue("Caught error parsing JWT payload as JSON", r == null ? void 0 : r.toString()), null;
@@ -870,10 +892,10 @@ async function ie(n, e, t = !1) {
870
892
  try {
871
893
  return await e;
872
894
  } catch (i) {
873
- throw i instanceof Ve && pi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
895
+ throw i instanceof Ve && gi(i) && n.auth.currentUser === n && await n.auth.signOut(), i;
874
896
  }
875
897
  }
876
- function pi({ code: n }) {
898
+ function gi({ code: n }) {
877
899
  return n === "auth/user-disabled" || n === "auth/user-token-expired";
878
900
  }
879
901
  /**
@@ -892,7 +914,7 @@ function pi({ code: n }) {
892
914
  * See the License for the specific language governing permissions and
893
915
  * limitations under the License.
894
916
  */
895
- class mi {
917
+ class _i {
896
918
  constructor(e) {
897
919
  this.user = e, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
898
920
  }
@@ -954,7 +976,7 @@ class mi {
954
976
  * See the License for the specific language governing permissions and
955
977
  * limitations under the License.
956
978
  */
957
- class Me {
979
+ class Ue {
958
980
  constructor(e, t) {
959
981
  this.createdAt = e, this.lastLoginAt = t, this._initializeTime();
960
982
  }
@@ -987,7 +1009,7 @@ class Me {
987
1009
  * See the License for the specific language governing permissions and
988
1010
  * limitations under the License.
989
1011
  */
990
- async function _e(n) {
1012
+ async function ve(n) {
991
1013
  var e;
992
1014
  const t = n.auth, i = await n.getIdToken(), r = await ie(n, Mt(t, { idToken: i }));
993
1015
  u(
@@ -998,7 +1020,7 @@ async function _e(n) {
998
1020
  );
999
1021
  const s = r.users[0];
1000
1022
  n._notifyReloadListener(s);
1001
- const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = _i(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, h = {
1023
+ const o = !((e = s.providerUserInfo) === null || e === void 0) && e.length ? Ut(s.providerUserInfo) : [], c = Ii(n.providerData, o), a = n.isAnonymous, l = !(n.email && s.passwordHash) && !(c != null && c.length), d = a ? l : !1, m = {
1002
1024
  uid: s.localId,
1003
1025
  displayName: s.displayName || null,
1004
1026
  photoURL: s.photoUrl || null,
@@ -1007,16 +1029,16 @@ async function _e(n) {
1007
1029
  phoneNumber: s.phoneNumber || null,
1008
1030
  tenantId: s.tenantId || null,
1009
1031
  providerData: c,
1010
- metadata: new Me(s.createdAt, s.lastLoginAt),
1032
+ metadata: new Ue(s.createdAt, s.lastLoginAt),
1011
1033
  isAnonymous: d
1012
1034
  };
1013
- Object.assign(n, h);
1035
+ Object.assign(n, m);
1014
1036
  }
1015
- async function gi(n) {
1016
- const e = K(n);
1017
- await _e(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1037
+ async function vi(n) {
1038
+ const e = Y(n);
1039
+ await ve(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
1018
1040
  }
1019
- function _i(n, e) {
1041
+ function Ii(n, e) {
1020
1042
  return [...n.filter((i) => !e.some((r) => r.providerId === i.providerId)), ...e];
1021
1043
  }
1022
1044
  function Ut(n) {
@@ -1048,7 +1070,7 @@ function Ut(n) {
1048
1070
  * See the License for the specific language governing permissions and
1049
1071
  * limitations under the License.
1050
1072
  */
1051
- async function vi(n, e) {
1073
+ async function yi(n, e) {
1052
1074
  const t = await Nt(n, {}, async () => {
1053
1075
  const i = se({
1054
1076
  grant_type: "refresh_token",
@@ -1069,8 +1091,8 @@ async function vi(n, e) {
1069
1091
  refreshToken: t.refresh_token
1070
1092
  };
1071
1093
  }
1072
- async function Ii(n, e) {
1073
- return J(n, "POST", "/v2/accounts:revokeToken", we(n, e));
1094
+ async function wi(n, e) {
1095
+ return X(n, "POST", "/v2/accounts:revokeToken", Te(n, e));
1074
1096
  }
1075
1097
  /**
1076
1098
  * @license
@@ -1088,7 +1110,7 @@ async function Ii(n, e) {
1088
1110
  * See the License for the specific language governing permissions and
1089
1111
  * limitations under the License.
1090
1112
  */
1091
- class G {
1113
+ class q {
1092
1114
  constructor() {
1093
1115
  this.refreshToken = null, this.accessToken = null, this.expirationTime = null;
1094
1116
  }
@@ -1133,14 +1155,14 @@ class G {
1133
1155
  this.refreshToken = null;
1134
1156
  }
1135
1157
  async refresh(e, t) {
1136
- const { accessToken: i, refreshToken: r, expiresIn: s } = await vi(e, t);
1158
+ const { accessToken: i, refreshToken: r, expiresIn: s } = await yi(e, t);
1137
1159
  this.updateTokensAndExpiration(i, r, Number(s));
1138
1160
  }
1139
1161
  updateTokensAndExpiration(e, t, i) {
1140
1162
  this.refreshToken = t || null, this.accessToken = e || null, this.expirationTime = Date.now() + i * 1e3;
1141
1163
  }
1142
1164
  static fromJSON(e, t) {
1143
- const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new G();
1165
+ const { refreshToken: i, accessToken: r, expirationTime: s } = t, o = new q();
1144
1166
  return i && (u(typeof i == "string", "internal-error", {
1145
1167
  appName: e
1146
1168
  }), o.refreshToken = i), r && (u(typeof r == "string", "internal-error", {
@@ -1160,7 +1182,7 @@ class G {
1160
1182
  this.accessToken = e.accessToken, this.refreshToken = e.refreshToken, this.expirationTime = e.expirationTime;
1161
1183
  }
1162
1184
  _clone() {
1163
- return Object.assign(new G(), this.toJSON());
1185
+ return Object.assign(new q(), this.toJSON());
1164
1186
  }
1165
1187
  _performRefresh() {
1166
1188
  return P("not implemented");
@@ -1188,7 +1210,7 @@ function U(n, e) {
1188
1210
  class C {
1189
1211
  constructor(e) {
1190
1212
  var { uid: t, auth: i, stsTokenManager: r } = e, s = $e(e, ["uid", "auth", "stsTokenManager"]);
1191
- this.providerId = "firebase", this.proactiveRefresh = new mi(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.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 Me(s.createdAt || void 0, s.lastLoginAt || void 0);
1213
+ this.providerId = "firebase", this.proactiveRefresh = new _i(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = t, this.auth = i, this.stsTokenManager = r, this.accessToken = r.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 Ue(s.createdAt || void 0, s.lastLoginAt || void 0);
1192
1214
  }
1193
1215
  async getIdToken(e) {
1194
1216
  const t = await ie(this, this.stsTokenManager.getToken(this.auth, e));
@@ -1200,10 +1222,10 @@ class C {
1200
1222
  ), this.accessToken !== t && (this.accessToken = t, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), t;
1201
1223
  }
1202
1224
  getIdTokenResult(e) {
1203
- return fi(this, e);
1225
+ return mi(this, e);
1204
1226
  }
1205
1227
  reload() {
1206
- return gi(this);
1228
+ return vi(this);
1207
1229
  }
1208
1230
  _assign(e) {
1209
1231
  this !== e && (u(
@@ -1236,13 +1258,13 @@ class C {
1236
1258
  }
1237
1259
  async _updateTokensIfNecessary(e, t = !1) {
1238
1260
  let i = !1;
1239
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await _e(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
1261
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), i = !0), t && await ve(this), await this.auth._persistUserIfCurrent(this), i && this.auth._notifyListenersIfCurrent(this);
1240
1262
  }
1241
1263
  async delete() {
1242
1264
  if (A(this.auth.app))
1243
1265
  return Promise.reject($(this.auth));
1244
1266
  const e = await this.getIdToken();
1245
- return await ie(this, hi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1267
+ return await ie(this, pi(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
1246
1268
  }
1247
1269
  toJSON() {
1248
1270
  return Object.assign(Object.assign({
@@ -1270,20 +1292,20 @@ class C {
1270
1292
  }
1271
1293
  static _fromJSON(e, t) {
1272
1294
  var i, r, s, o, c, a, l, d;
1273
- const h = (i = t.displayName) !== null && i !== void 0 ? i : void 0, m = (r = t.email) !== null && r !== void 0 ? r : void 0, I = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, w = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, g = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, v = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Se, stsTokenManager: Ye } = t;
1295
+ const m = (i = t.displayName) !== null && i !== void 0 ? i : void 0, h = (r = t.email) !== null && r !== void 0 ? r : void 0, y = (s = t.phoneNumber) !== null && s !== void 0 ? s : void 0, _ = (o = t.photoURL) !== null && o !== void 0 ? o : void 0, f = (c = t.tenantId) !== null && c !== void 0 ? c : void 0, I = (a = t._redirectEventId) !== null && a !== void 0 ? a : void 0, T = (l = t.createdAt) !== null && l !== void 0 ? l : void 0, M = (d = t.lastLoginAt) !== null && d !== void 0 ? d : void 0, { uid: k, emailVerified: Ke, isAnonymous: Je, providerData: Re, stsTokenManager: Ye } = t;
1274
1296
  u(
1275
1297
  k && Ye,
1276
1298
  e,
1277
1299
  "internal-error"
1278
1300
  /* AuthErrorCode.INTERNAL_ERROR */
1279
1301
  );
1280
- const on = G.fromJSON(this.name, Ye);
1302
+ const on = q.fromJSON(this.name, Ye);
1281
1303
  u(
1282
1304
  typeof k == "string",
1283
1305
  e,
1284
1306
  "internal-error"
1285
1307
  /* AuthErrorCode.INTERNAL_ERROR */
1286
- ), U(h, e.name), U(m, e.name), u(
1308
+ ), U(m, e.name), U(h, e.name), u(
1287
1309
  typeof Ke == "boolean",
1288
1310
  e,
1289
1311
  "internal-error"
@@ -1293,22 +1315,22 @@ class C {
1293
1315
  e,
1294
1316
  "internal-error"
1295
1317
  /* AuthErrorCode.INTERNAL_ERROR */
1296
- ), U(I, e.name), U(w, e.name), U(g, e.name), U(v, e.name), U(T, e.name), U(M, e.name);
1297
- const Re = new C({
1318
+ ), U(y, e.name), U(_, e.name), U(f, e.name), U(I, e.name), U(T, e.name), U(M, e.name);
1319
+ const Ae = new C({
1298
1320
  uid: k,
1299
1321
  auth: e,
1300
- email: m,
1322
+ email: h,
1301
1323
  emailVerified: Ke,
1302
- displayName: h,
1324
+ displayName: m,
1303
1325
  isAnonymous: Je,
1304
- photoURL: w,
1305
- phoneNumber: I,
1306
- tenantId: g,
1326
+ photoURL: _,
1327
+ phoneNumber: y,
1328
+ tenantId: f,
1307
1329
  stsTokenManager: on,
1308
1330
  createdAt: T,
1309
1331
  lastLoginAt: M
1310
1332
  });
1311
- return Se && Array.isArray(Se) && (Re.providerData = Se.map((an) => Object.assign({}, an))), v && (Re._redirectEventId = v), Re;
1333
+ return Re && Array.isArray(Re) && (Ae.providerData = Re.map((an) => Object.assign({}, an))), I && (Ae._redirectEventId = I), Ae;
1312
1334
  }
1313
1335
  /**
1314
1336
  * Initialize a User from an idToken server response
@@ -1316,7 +1338,7 @@ class C {
1316
1338
  * @param idTokenResponse
1317
1339
  */
1318
1340
  static async _fromIdTokenResponse(e, t, i = !1) {
1319
- const r = new G();
1341
+ const r = new q();
1320
1342
  r.updateFromServerResponse(t);
1321
1343
  const s = new C({
1322
1344
  uid: t.localId,
@@ -1324,7 +1346,7 @@ class C {
1324
1346
  stsTokenManager: r,
1325
1347
  isAnonymous: i
1326
1348
  });
1327
- return await _e(s), s;
1349
+ return await ve(s), s;
1328
1350
  }
1329
1351
  /**
1330
1352
  * Initialize a User from an idToken server response
@@ -1338,7 +1360,7 @@ class C {
1338
1360
  "internal-error"
1339
1361
  /* AuthErrorCode.INTERNAL_ERROR */
1340
1362
  );
1341
- const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new G();
1363
+ const s = r.providerUserInfo !== void 0 ? Ut(r.providerUserInfo) : [], o = !(r.email && r.passwordHash) && !(s != null && s.length), c = new q();
1342
1364
  c.updateFromIdToken(i);
1343
1365
  const a = new C({
1344
1366
  uid: r.localId,
@@ -1354,7 +1376,7 @@ class C {
1354
1376
  phoneNumber: r.phoneNumber || null,
1355
1377
  tenantId: r.tenantId || null,
1356
1378
  providerData: s,
1357
- metadata: new Me(r.createdAt, r.lastLoginAt),
1379
+ metadata: new Ue(r.createdAt, r.lastLoginAt),
1358
1380
  isAnonymous: !(r.email && r.passwordHash) && !(s != null && s.length)
1359
1381
  };
1360
1382
  return Object.assign(a, l), a;
@@ -1441,7 +1463,7 @@ const st = Dt;
1441
1463
  function de(n, e, t) {
1442
1464
  return `firebase:${n}:${e}:${t}`;
1443
1465
  }
1444
- class z {
1466
+ class K {
1445
1467
  constructor(e, t, i) {
1446
1468
  this.persistence = e, this.auth = t, this.userKey = i;
1447
1469
  const { config: r, name: s } = this.auth;
@@ -1472,7 +1494,7 @@ class z {
1472
1494
  }
1473
1495
  static async create(e, t, i = "authUser") {
1474
1496
  if (!t.length)
1475
- return new z(N(st), e, i);
1497
+ return new K(N(st), e, i);
1476
1498
  const r = (await Promise.all(t.map(async (l) => {
1477
1499
  if (await l._isAvailable())
1478
1500
  return l;
@@ -1484,20 +1506,20 @@ class z {
1484
1506
  try {
1485
1507
  const d = await l._get(o);
1486
1508
  if (d) {
1487
- const h = C._fromJSON(e, d);
1488
- l !== s && (c = h), s = l;
1509
+ const m = C._fromJSON(e, d);
1510
+ l !== s && (c = m), s = l;
1489
1511
  break;
1490
1512
  }
1491
1513
  } catch {
1492
1514
  }
1493
1515
  const a = r.filter((l) => l._shouldAllowMigration);
1494
- return !s._shouldAllowMigration || !a.length ? new z(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1516
+ return !s._shouldAllowMigration || !a.length ? new K(s, e, i) : (s = a[0], c && await s._set(o, c.toJSON()), await Promise.all(t.map(async (l) => {
1495
1517
  if (l !== s)
1496
1518
  try {
1497
1519
  await l._remove(o);
1498
1520
  } catch {
1499
1521
  }
1500
- })), new z(s, e, i));
1522
+ })), new K(s, e, i));
1501
1523
  }
1502
1524
  }
1503
1525
  /**
@@ -1547,42 +1569,42 @@ function ot(n) {
1547
1569
  }
1548
1570
  return "Other";
1549
1571
  }
1550
- function xt(n = y()) {
1572
+ function xt(n = w()) {
1551
1573
  return /firefox\//i.test(n);
1552
1574
  }
1553
- function Be(n = y()) {
1575
+ function Be(n = w()) {
1554
1576
  const e = n.toLowerCase();
1555
1577
  return e.includes("safari/") && !e.includes("chrome/") && !e.includes("crios/") && !e.includes("android");
1556
1578
  }
1557
- function Ft(n = y()) {
1579
+ function Ft(n = w()) {
1558
1580
  return /crios\//i.test(n);
1559
1581
  }
1560
- function Vt(n = y()) {
1582
+ function Vt(n = w()) {
1561
1583
  return /iemobile/i.test(n);
1562
1584
  }
1563
- function $t(n = y()) {
1585
+ function $t(n = w()) {
1564
1586
  return /android/i.test(n);
1565
1587
  }
1566
- function Ht(n = y()) {
1588
+ function Ht(n = w()) {
1567
1589
  return /blackberry/i.test(n);
1568
1590
  }
1569
- function jt(n = y()) {
1591
+ function jt(n = w()) {
1570
1592
  return /webos/i.test(n);
1571
1593
  }
1572
- function Te(n = y()) {
1594
+ function ke(n = w()) {
1573
1595
  return /iphone|ipad|ipod/i.test(n) || /macintosh/i.test(n) && /mobile/i.test(n);
1574
1596
  }
1575
- function yi(n = y()) {
1597
+ function Ti(n = w()) {
1576
1598
  var e;
1577
- return Te(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1599
+ return ke(n) && !!(!((e = window.navigator) === null || e === void 0) && e.standalone);
1578
1600
  }
1579
- function wi() {
1580
- return Pn() && document.documentMode === 10;
1601
+ function ki() {
1602
+ return Nn() && document.documentMode === 10;
1581
1603
  }
1582
- function Wt(n = y()) {
1583
- return Te(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1604
+ function Wt(n = w()) {
1605
+ return ke(n) || $t(n) || jt(n) || Ht(n) || /windows phone/i.test(n) || Vt(n);
1584
1606
  }
1585
- function Ti() {
1607
+ function bi() {
1586
1608
  try {
1587
1609
  return !!(window && window !== window.top);
1588
1610
  } catch {
@@ -1609,10 +1631,10 @@ function Bt(n, e = []) {
1609
1631
  let t;
1610
1632
  switch (n) {
1611
1633
  case "Browser":
1612
- t = ot(y());
1634
+ t = ot(w());
1613
1635
  break;
1614
1636
  case "Worker":
1615
- t = `${ot(y())}-${n}`;
1637
+ t = `${ot(w())}-${n}`;
1616
1638
  break;
1617
1639
  default:
1618
1640
  t = n;
@@ -1636,7 +1658,7 @@ function Bt(n, e = []) {
1636
1658
  * See the License for the specific language governing permissions and
1637
1659
  * limitations under the License.
1638
1660
  */
1639
- class ki {
1661
+ class Ei {
1640
1662
  constructor(e) {
1641
1663
  this.auth = e, this.queue = [];
1642
1664
  }
@@ -1691,8 +1713,8 @@ class ki {
1691
1713
  * See the License for the specific language governing permissions and
1692
1714
  * limitations under the License.
1693
1715
  */
1694
- async function Ei(n, e = {}) {
1695
- return J(n, "GET", "/v2/passwordPolicy", we(n, e));
1716
+ async function Si(n, e = {}) {
1717
+ return X(n, "GET", "/v2/passwordPolicy", Te(n, e));
1696
1718
  }
1697
1719
  /**
1698
1720
  * @license
@@ -1710,12 +1732,12 @@ async function Ei(n, e = {}) {
1710
1732
  * See the License for the specific language governing permissions and
1711
1733
  * limitations under the License.
1712
1734
  */
1713
- const bi = 6;
1714
- class Si {
1735
+ const Ri = 6;
1736
+ class Ai {
1715
1737
  constructor(e) {
1716
1738
  var t, i, r, s;
1717
1739
  const o = e.customStrengthOptions;
1718
- this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : bi, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1740
+ this.customStrengthOptions = {}, this.customStrengthOptions.minPasswordLength = (t = o.minPasswordLength) !== null && t !== void 0 ? t : Ri, o.maxPasswordLength && (this.customStrengthOptions.maxPasswordLength = o.maxPasswordLength), o.containsLowercaseCharacter !== void 0 && (this.customStrengthOptions.containsLowercaseLetter = o.containsLowercaseCharacter), o.containsUppercaseCharacter !== void 0 && (this.customStrengthOptions.containsUppercaseLetter = o.containsUppercaseCharacter), o.containsNumericCharacter !== void 0 && (this.customStrengthOptions.containsNumericCharacter = o.containsNumericCharacter), o.containsNonAlphanumericCharacter !== void 0 && (this.customStrengthOptions.containsNonAlphanumericCharacter = o.containsNonAlphanumericCharacter), this.enforcementState = e.enforcementState, this.enforcementState === "ENFORCEMENT_STATE_UNSPECIFIED" && (this.enforcementState = "OFF"), this.allowedNonAlphanumericCharacters = (r = (i = e.allowedNonAlphanumericCharacters) === null || i === void 0 ? void 0 : i.join("")) !== null && r !== void 0 ? r : "", this.forceUpgradeOnSignin = (s = e.forceUpgradeOnSignin) !== null && s !== void 0 ? s : !1, this.schemaVersion = e.schemaVersion;
1719
1741
  }
1720
1742
  validatePassword(e) {
1721
1743
  var t, i, r, s, o, c;
@@ -1798,14 +1820,14 @@ class Si {
1798
1820
  * See the License for the specific language governing permissions and
1799
1821
  * limitations under the License.
1800
1822
  */
1801
- class Ri {
1823
+ class Pi {
1802
1824
  constructor(e, t, i, r) {
1803
- this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new ki(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 = At, 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 = r.sdkClientVersion;
1825
+ this.app = e, this.heartbeatServiceProvider = t, this.appCheckServiceProvider = i, this.config = r, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new at(this), this.idTokenSubscription = new at(this), this.beforeStateQueue = new Ei(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 = At, 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 = r.sdkClientVersion;
1804
1826
  }
1805
1827
  _initializeWithPersistence(e, t) {
1806
1828
  return t && (this._popupRedirectResolver = N(t)), this._initializationPromise = this.queue(async () => {
1807
1829
  var i, r;
1808
- if (!this._deleted && (this.persistenceManager = await z.create(this, e), !this._deleted)) {
1830
+ if (!this._deleted && (this.persistenceManager = await K.create(this, e), !this._deleted)) {
1809
1831
  if (!((i = this._popupRedirectResolver) === null || i === void 0) && i._shouldInitProactively)
1810
1832
  try {
1811
1833
  await this._popupRedirectResolver._initialize(this);
@@ -1886,7 +1908,7 @@ class Ri {
1886
1908
  }
1887
1909
  async reloadAndSetCurrentUserOrClear(e) {
1888
1910
  try {
1889
- await _e(e);
1911
+ await ve(e);
1890
1912
  } catch (t) {
1891
1913
  if ((t == null ? void 0 : t.code) !== "auth/network-request-failed")
1892
1914
  return this.directlySetCurrentUser(null);
@@ -1894,7 +1916,7 @@ class Ri {
1894
1916
  return this.directlySetCurrentUser(e);
1895
1917
  }
1896
1918
  useDeviceLanguage() {
1897
- this.languageCode = ci();
1919
+ this.languageCode = ui();
1898
1920
  }
1899
1921
  async _delete() {
1900
1922
  this._deleted = !0;
@@ -1902,7 +1924,7 @@ class Ri {
1902
1924
  async updateCurrentUser(e) {
1903
1925
  if (A(this.app))
1904
1926
  return Promise.reject($(this));
1905
- const t = e ? K(e) : null;
1927
+ const t = e ? Y(e) : null;
1906
1928
  return t && u(
1907
1929
  t.auth.config.apiKey === this.config.apiKey,
1908
1930
  this,
@@ -1945,7 +1967,7 @@ class Ri {
1945
1967
  return this.tenantId === null ? this._projectPasswordPolicy : this._tenantPasswordPolicies[this.tenantId];
1946
1968
  }
1947
1969
  async _updatePasswordPolicy() {
1948
- const e = await Ei(this), t = new Si(e);
1970
+ const e = await Si(this), t = new Ai(e);
1949
1971
  this.tenantId === null ? this._projectPasswordPolicy = t : this._tenantPasswordPolicies[this.tenantId] = t;
1950
1972
  }
1951
1973
  _getPersistence() {
@@ -1985,7 +2007,7 @@ class Ri {
1985
2007
  token: e,
1986
2008
  idToken: t
1987
2009
  };
1988
- this.tenantId != null && (i.tenantId = this.tenantId), await Ii(this, i);
2010
+ this.tenantId != null && (i.tenantId = this.tenantId), await wi(this, i);
1989
2011
  }
1990
2012
  }
1991
2013
  toJSON() {
@@ -2009,7 +2031,7 @@ class Ri {
2009
2031
  this,
2010
2032
  "argument-error"
2011
2033
  /* AuthErrorCode.ARGUMENT_ERROR */
2012
- ), this.redirectPersistenceManager = await z.create(
2034
+ ), this.redirectPersistenceManager = await K.create(
2013
2035
  this,
2014
2036
  [N(t._redirectPersistence)],
2015
2037
  "redirectUser"
@@ -2128,15 +2150,15 @@ class Ri {
2128
2150
  async _getAppCheckToken() {
2129
2151
  var e;
2130
2152
  const t = await ((e = this.appCheckServiceProvider.getImmediate({ optional: !0 })) === null || e === void 0 ? void 0 : e.getToken());
2131
- return t != null && t.error && si(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2153
+ return t != null && t.error && ai(`Error while retrieving App Check token: ${t.error}`), t == null ? void 0 : t.token;
2132
2154
  }
2133
2155
  }
2134
- function ke(n) {
2135
- return K(n);
2156
+ function be(n) {
2157
+ return Y(n);
2136
2158
  }
2137
2159
  class at {
2138
2160
  constructor(e) {
2139
- this.auth = e, this.observer = null, this.addObserver = En((t) => this.observer = t);
2161
+ this.auth = e, this.observer = null, this.addObserver = Sn((t) => this.observer = t);
2140
2162
  }
2141
2163
  get next() {
2142
2164
  return u(
@@ -2171,16 +2193,16 @@ let Ge = {
2171
2193
  recaptchaEnterpriseScript: "",
2172
2194
  gapiScript: ""
2173
2195
  };
2174
- function Ai(n) {
2196
+ function Ci(n) {
2175
2197
  Ge = n;
2176
2198
  }
2177
- function Pi(n) {
2199
+ function Ni(n) {
2178
2200
  return Ge.loadJS(n);
2179
2201
  }
2180
- function Ci() {
2202
+ function Oi() {
2181
2203
  return Ge.gapiScript;
2182
2204
  }
2183
- function Ni(n) {
2205
+ function Li(n) {
2184
2206
  return `__${n}${Math.floor(Math.random() * 1e6)}`;
2185
2207
  }
2186
2208
  /**
@@ -2199,11 +2221,11 @@ function Ni(n) {
2199
2221
  * See the License for the specific language governing permissions and
2200
2222
  * limitations under the License.
2201
2223
  */
2202
- function Oi(n, e) {
2203
- const t = Et(n, "auth");
2224
+ function Mi(n, e) {
2225
+ const t = bt(n, "auth");
2204
2226
  if (t.isInitialized()) {
2205
2227
  const r = t.getImmediate(), s = t.getOptions();
2206
- if (Rn(s, e ?? {}))
2228
+ if (Pn(s, e ?? {}))
2207
2229
  return r;
2208
2230
  O(
2209
2231
  r,
@@ -2213,12 +2235,12 @@ function Oi(n, e) {
2213
2235
  }
2214
2236
  return t.initialize({ options: e });
2215
2237
  }
2216
- function Li(n, e) {
2238
+ function Ui(n, e) {
2217
2239
  const t = (e == null ? void 0 : e.persistence) || [], i = (Array.isArray(t) ? t : [t]).map(N);
2218
2240
  e != null && e.errorMap && n._updateErrorMap(e.errorMap), n._initializeWithPersistence(i, e == null ? void 0 : e.popupRedirectResolver);
2219
2241
  }
2220
- function Mi(n, e, t) {
2221
- const i = ke(n);
2242
+ function Di(n, e, t) {
2243
+ const i = be(n);
2222
2244
  u(
2223
2245
  i._canInitEmulator,
2224
2246
  i,
@@ -2230,19 +2252,19 @@ function Mi(n, e, t) {
2230
2252
  "invalid-emulator-scheme"
2231
2253
  /* AuthErrorCode.INVALID_EMULATOR_SCHEME */
2232
2254
  );
2233
- const r = !1, s = Gt(e), { host: o, port: c } = Ui(e), a = c === null ? "" : `:${c}`;
2255
+ const r = !1, s = Gt(e), { host: o, port: c } = xi(e), a = c === null ? "" : `:${c}`;
2234
2256
  i.config.emulator = { url: `${s}//${o}${a}/` }, i.settings.appVerificationDisabledForTesting = !0, i.emulatorConfig = Object.freeze({
2235
2257
  host: o,
2236
2258
  port: c,
2237
2259
  protocol: s.replace(":", ""),
2238
2260
  options: Object.freeze({ disableWarnings: r })
2239
- }), Di();
2261
+ }), Fi();
2240
2262
  }
2241
2263
  function Gt(n) {
2242
2264
  const e = n.indexOf(":");
2243
2265
  return e < 0 ? "" : n.substr(0, e + 1);
2244
2266
  }
2245
- function Ui(n) {
2267
+ function xi(n) {
2246
2268
  const e = Gt(n), t = /(\/\/)?([^?#/]+)/.exec(n.substr(e.length));
2247
2269
  if (!t)
2248
2270
  return { host: "", port: null };
@@ -2261,7 +2283,7 @@ function ct(n) {
2261
2283
  const e = Number(n);
2262
2284
  return isNaN(e) ? null : e;
2263
2285
  }
2264
- function Di() {
2286
+ function Fi() {
2265
2287
  function n() {
2266
2288
  const e = document.createElement("p"), t = e.style;
2267
2289
  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);
@@ -2326,8 +2348,8 @@ class zt {
2326
2348
  * See the License for the specific language governing permissions and
2327
2349
  * limitations under the License.
2328
2350
  */
2329
- async function q(n, e) {
2330
- return Ot(n, "POST", "/v1/accounts:signInWithIdp", we(n, e));
2351
+ async function J(n, e) {
2352
+ return Ot(n, "POST", "/v1/accounts:signInWithIdp", Te(n, e));
2331
2353
  }
2332
2354
  /**
2333
2355
  * @license
@@ -2345,14 +2367,14 @@ async function q(n, e) {
2345
2367
  * See the License for the specific language governing permissions and
2346
2368
  * limitations under the License.
2347
2369
  */
2348
- const xi = "http://localhost";
2349
- class j extends zt {
2370
+ const Vi = "http://localhost";
2371
+ class W extends zt {
2350
2372
  constructor() {
2351
2373
  super(...arguments), this.pendingToken = null;
2352
2374
  }
2353
2375
  /** @internal */
2354
2376
  static _fromParams(e) {
2355
- const t = new j(e.providerId, e.signInMethod);
2377
+ const t = new W(e.providerId, e.signInMethod);
2356
2378
  return e.idToken || e.accessToken ? (e.idToken && (t.idToken = e.idToken), e.accessToken && (t.accessToken = e.accessToken), e.nonce && !e.pendingToken && (t.nonce = e.nonce), e.pendingToken && (t.pendingToken = e.pendingToken)) : e.oauthToken && e.oauthTokenSecret ? (t.accessToken = e.oauthToken, t.secret = e.oauthTokenSecret) : O(
2357
2379
  "argument-error"
2358
2380
  /* AuthErrorCode.ARGUMENT_ERROR */
@@ -2383,27 +2405,27 @@ class j extends zt {
2383
2405
  const t = typeof e == "string" ? JSON.parse(e) : e, { providerId: i, signInMethod: r } = t, s = $e(t, ["providerId", "signInMethod"]);
2384
2406
  if (!i || !r)
2385
2407
  return null;
2386
- const o = new j(i, r);
2408
+ const o = new W(i, r);
2387
2409
  return o.idToken = s.idToken || void 0, o.accessToken = s.accessToken || void 0, o.secret = s.secret, o.nonce = s.nonce, o.pendingToken = s.pendingToken || null, o;
2388
2410
  }
2389
2411
  /** @internal */
2390
2412
  _getIdTokenResponse(e) {
2391
2413
  const t = this.buildRequest();
2392
- return q(e, t);
2414
+ return J(e, t);
2393
2415
  }
2394
2416
  /** @internal */
2395
2417
  _linkToIdToken(e, t) {
2396
2418
  const i = this.buildRequest();
2397
- return i.idToken = t, q(e, i);
2419
+ return i.idToken = t, J(e, i);
2398
2420
  }
2399
2421
  /** @internal */
2400
2422
  _getReauthenticationResolver(e) {
2401
2423
  const t = this.buildRequest();
2402
- return t.autoCreate = !1, q(e, t);
2424
+ return t.autoCreate = !1, J(e, t);
2403
2425
  }
2404
2426
  buildRequest() {
2405
2427
  const e = {
2406
- requestUri: xi,
2428
+ requestUri: Vi,
2407
2429
  returnSecureToken: !0
2408
2430
  };
2409
2431
  if (this.pendingToken)
@@ -2539,7 +2561,7 @@ class D extends ae {
2539
2561
  * @param accessToken - Facebook access token.
2540
2562
  */
2541
2563
  static credential(e) {
2542
- return j._fromParams({
2564
+ return W._fromParams({
2543
2565
  providerId: D.PROVIDER_ID,
2544
2566
  signInMethod: D.FACEBOOK_SIGN_IN_METHOD,
2545
2567
  accessToken: e
@@ -2611,7 +2633,7 @@ class x extends ae {
2611
2633
  * @param accessToken - Google access token.
2612
2634
  */
2613
2635
  static credential(e, t) {
2614
- return j._fromParams({
2636
+ return W._fromParams({
2615
2637
  providerId: x.PROVIDER_ID,
2616
2638
  signInMethod: x.GOOGLE_SIGN_IN_METHOD,
2617
2639
  idToken: e,
@@ -2679,7 +2701,7 @@ class F extends ae {
2679
2701
  * @param accessToken - Github access token.
2680
2702
  */
2681
2703
  static credential(e) {
2682
- return j._fromParams({
2704
+ return W._fromParams({
2683
2705
  providerId: F.PROVIDER_ID,
2684
2706
  signInMethod: F.GITHUB_SIGN_IN_METHOD,
2685
2707
  accessToken: e
@@ -2744,7 +2766,7 @@ class V extends ae {
2744
2766
  * @param secret - Twitter secret.
2745
2767
  */
2746
2768
  static credential(e, t) {
2747
- return j._fromParams({
2769
+ return W._fromParams({
2748
2770
  providerId: V.PROVIDER_ID,
2749
2771
  signInMethod: V.TWITTER_SIGN_IN_METHOD,
2750
2772
  oauthToken: e,
@@ -2799,13 +2821,13 @@ V.PROVIDER_ID = "twitter.com";
2799
2821
  * See the License for the specific language governing permissions and
2800
2822
  * limitations under the License.
2801
2823
  */
2802
- class W {
2824
+ class B {
2803
2825
  constructor(e) {
2804
2826
  this.user = e.user, this.providerId = e.providerId, this._tokenResponse = e._tokenResponse, this.operationType = e.operationType;
2805
2827
  }
2806
2828
  static async _fromIdTokenResponse(e, t, i, r = !1) {
2807
2829
  const s = await C._fromIdTokenResponse(e, i, r), o = lt(i);
2808
- return new W({
2830
+ return new B({
2809
2831
  user: s,
2810
2832
  providerId: o,
2811
2833
  _tokenResponse: i,
@@ -2819,7 +2841,7 @@ class W {
2819
2841
  !0
2820
2842
  );
2821
2843
  const r = lt(i);
2822
- return new W({
2844
+ return new B({
2823
2845
  user: e,
2824
2846
  providerId: r,
2825
2847
  _tokenResponse: i,
@@ -2846,10 +2868,10 @@ function lt(n) {
2846
2868
  * See the License for the specific language governing permissions and
2847
2869
  * limitations under the License.
2848
2870
  */
2849
- class ve extends Ve {
2871
+ class Ie extends Ve {
2850
2872
  constructor(e, t, i, r) {
2851
2873
  var s;
2852
- super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, ve.prototype), this.customData = {
2874
+ super(t.code, t.message), this.operationType = i, this.user = r, Object.setPrototypeOf(this, Ie.prototype), this.customData = {
2853
2875
  appName: e.name,
2854
2876
  tenantId: (s = e.tenantId) !== null && s !== void 0 ? s : void 0,
2855
2877
  _serverResponse: t.customData._serverResponse,
@@ -2857,17 +2879,17 @@ class ve extends Ve {
2857
2879
  };
2858
2880
  }
2859
2881
  static _fromErrorAndOperation(e, t, i, r) {
2860
- return new ve(e, t, i, r);
2882
+ return new Ie(e, t, i, r);
2861
2883
  }
2862
2884
  }
2863
2885
  function Kt(n, e, t, i) {
2864
2886
  return (e === "reauthenticate" ? t._getReauthenticationResolver(n) : t._getIdTokenResponse(n)).catch((s) => {
2865
- throw s.code === "auth/multi-factor-auth-required" ? ve._fromErrorAndOperation(n, s, e, i) : s;
2887
+ throw s.code === "auth/multi-factor-auth-required" ? Ie._fromErrorAndOperation(n, s, e, i) : s;
2866
2888
  });
2867
2889
  }
2868
- async function Fi(n, e, t = !1) {
2890
+ async function $i(n, e, t = !1) {
2869
2891
  const i = await ie(n, e._linkToIdToken(n.auth, await n.getIdToken()), t);
2870
- return W._forOperation(n, "link", i);
2892
+ return B._forOperation(n, "link", i);
2871
2893
  }
2872
2894
  /**
2873
2895
  * @license
@@ -2885,7 +2907,7 @@ async function Fi(n, e, t = !1) {
2885
2907
  * See the License for the specific language governing permissions and
2886
2908
  * limitations under the License.
2887
2909
  */
2888
- async function Vi(n, e, t = !1) {
2910
+ async function Hi(n, e, t = !1) {
2889
2911
  const { auth: i } = n;
2890
2912
  if (A(i.app))
2891
2913
  return Promise.reject($(i));
@@ -2911,7 +2933,7 @@ async function Vi(n, e, t = !1) {
2911
2933
  i,
2912
2934
  "user-mismatch"
2913
2935
  /* AuthErrorCode.USER_MISMATCH */
2914
- ), W._forOperation(n, r, s);
2936
+ ), B._forOperation(n, r, s);
2915
2937
  } catch (s) {
2916
2938
  throw (s == null ? void 0 : s.code) === "auth/user-not-found" && O(
2917
2939
  i,
@@ -2936,10 +2958,10 @@ async function Vi(n, e, t = !1) {
2936
2958
  * See the License for the specific language governing permissions and
2937
2959
  * limitations under the License.
2938
2960
  */
2939
- async function $i(n, e, t = !1) {
2961
+ async function ji(n, e, t = !1) {
2940
2962
  if (A(n.app))
2941
2963
  return Promise.reject($(n));
2942
- const i = "signIn", r = await Kt(n, i, e), s = await W._fromIdTokenResponse(n, i, r);
2964
+ const i = "signIn", r = await Kt(n, i, e), s = await B._fromIdTokenResponse(n, i, r);
2943
2965
  return t || await n._updateCurrentUser(s.user), s;
2944
2966
  }
2945
2967
  /**
@@ -2958,8 +2980,8 @@ async function $i(n, e, t = !1) {
2958
2980
  * See the License for the specific language governing permissions and
2959
2981
  * limitations under the License.
2960
2982
  */
2961
- async function Hi(n, e) {
2962
- return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", we(n, e));
2983
+ async function Wi(n, e) {
2984
+ return Ot(n, "POST", "/v1/accounts:signInWithCustomToken", Te(n, e));
2963
2985
  }
2964
2986
  /**
2965
2987
  * @license
@@ -2977,22 +2999,22 @@ async function Hi(n, e) {
2977
2999
  * See the License for the specific language governing permissions and
2978
3000
  * limitations under the License.
2979
3001
  */
2980
- async function ji(n, e) {
3002
+ async function Bi(n, e) {
2981
3003
  if (A(n.app))
2982
3004
  return Promise.reject($(n));
2983
- const t = ke(n), i = await Hi(t, {
3005
+ const t = be(n), i = await Wi(t, {
2984
3006
  token: e,
2985
3007
  returnSecureToken: !0
2986
- }), r = await W._fromIdTokenResponse(t, "signIn", i);
3008
+ }), r = await B._fromIdTokenResponse(t, "signIn", i);
2987
3009
  return await t._updateCurrentUser(r.user), r;
2988
3010
  }
2989
- function Wi(n, e, t, i) {
2990
- return K(n).onIdTokenChanged(e, t, i);
3011
+ function Gi(n, e, t, i) {
3012
+ return Y(n).onIdTokenChanged(e, t, i);
2991
3013
  }
2992
- function Bi(n, e, t) {
2993
- return K(n).beforeAuthStateChanged(e, t);
3014
+ function zi(n, e, t) {
3015
+ return Y(n).beforeAuthStateChanged(e, t);
2994
3016
  }
2995
- const Ie = "__sak";
3017
+ const ye = "__sak";
2996
3018
  /**
2997
3019
  * @license
2998
3020
  * Copyright 2019 Google LLC
@@ -3015,7 +3037,7 @@ class Jt {
3015
3037
  }
3016
3038
  _isAvailable() {
3017
3039
  try {
3018
- return this.storage ? (this.storage.setItem(Ie, "1"), this.storage.removeItem(Ie), Promise.resolve(!0)) : Promise.resolve(!1);
3040
+ return this.storage ? (this.storage.setItem(ye, "1"), this.storage.removeItem(ye), Promise.resolve(!0)) : Promise.resolve(!1);
3019
3041
  } catch {
3020
3042
  return Promise.resolve(!1);
3021
3043
  }
@@ -3050,18 +3072,18 @@ class Jt {
3050
3072
  * See the License for the specific language governing permissions and
3051
3073
  * limitations under the License.
3052
3074
  */
3053
- function Gi() {
3054
- const n = y();
3055
- return Be(n) || Te(n);
3075
+ function qi() {
3076
+ const n = w();
3077
+ return Be(n) || ke(n);
3056
3078
  }
3057
- const zi = 1e3, qi = 10;
3079
+ const Ki = 1e3, Ji = 10;
3058
3080
  class Yt extends Jt {
3059
3081
  constructor() {
3060
3082
  super(
3061
3083
  () => window.localStorage,
3062
3084
  "LOCAL"
3063
3085
  /* PersistenceType.LOCAL */
3064
- ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = Gi() && Ti(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3086
+ ), this.boundEventHandler = (e, t) => this.onStorageEvent(e, t), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = qi() && bi(), this.fallbackToPolling = Wt(), this._shouldAllowMigration = !0;
3065
3087
  }
3066
3088
  forAllChangedKeys(e) {
3067
3089
  for (const t of Object.keys(this.listeners)) {
@@ -3088,7 +3110,7 @@ class Yt extends Jt {
3088
3110
  const o = this.storage.getItem(i);
3089
3111
  !t && this.localCache[i] === o || this.notifyListeners(i, o);
3090
3112
  }, s = this.storage.getItem(i);
3091
- wi() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, qi) : r();
3113
+ ki() && s !== e.newValue && e.newValue !== e.oldValue ? setTimeout(r, Ji) : r();
3092
3114
  }
3093
3115
  notifyListeners(e, t) {
3094
3116
  this.localCache[e] = t;
@@ -3110,7 +3132,7 @@ class Yt extends Jt {
3110
3132
  !0
3111
3133
  );
3112
3134
  });
3113
- }, zi);
3135
+ }, Ki);
3114
3136
  }
3115
3137
  stopPolling() {
3116
3138
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3140,7 +3162,7 @@ class Yt extends Jt {
3140
3162
  }
3141
3163
  }
3142
3164
  Yt.type = "LOCAL";
3143
- const Ki = Yt;
3165
+ const Yi = Yt;
3144
3166
  /**
3145
3167
  * @license
3146
3168
  * Copyright 2020 Google LLC
@@ -3188,7 +3210,7 @@ const Qt = Xt;
3188
3210
  * See the License for the specific language governing permissions and
3189
3211
  * limitations under the License.
3190
3212
  */
3191
- function Ji(n) {
3213
+ function Xi(n) {
3192
3214
  return Promise.all(n.map(async (e) => {
3193
3215
  try {
3194
3216
  return {
@@ -3258,7 +3280,7 @@ class Ee {
3258
3280
  eventId: i,
3259
3281
  eventType: r
3260
3282
  });
3261
- const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Ji(c);
3283
+ const c = Array.from(o).map(async (l) => l(t.origin, s)), a = await Xi(c);
3262
3284
  t.ports[0].postMessage({
3263
3285
  status: "done",
3264
3286
  eventId: i,
@@ -3326,7 +3348,7 @@ function ze(n = "", e = 10) {
3326
3348
  * See the License for the specific language governing permissions and
3327
3349
  * limitations under the License.
3328
3350
  */
3329
- class Yi {
3351
+ class Qi {
3330
3352
  constructor(e) {
3331
3353
  this.target = e, this.handlers = /* @__PURE__ */ new Set();
3332
3354
  }
@@ -3370,10 +3392,10 @@ class Yi {
3370
3392
  }, i);
3371
3393
  o = {
3372
3394
  messageChannel: r,
3373
- onMessage(h) {
3374
- const m = h;
3375
- if (m.data.eventId === l)
3376
- switch (m.data.status) {
3395
+ onMessage(m) {
3396
+ const h = m;
3397
+ if (h.data.eventId === l)
3398
+ switch (h.data.status) {
3377
3399
  case "ack":
3378
3400
  clearTimeout(d), s = setTimeout(
3379
3401
  () => {
@@ -3387,7 +3409,7 @@ class Yi {
3387
3409
  );
3388
3410
  break;
3389
3411
  case "done":
3390
- clearTimeout(s), c(m.data.response);
3412
+ clearTimeout(s), c(h.data.response);
3391
3413
  break;
3392
3414
  default:
3393
3415
  clearTimeout(d), clearTimeout(s), a(new Error(
@@ -3423,11 +3445,11 @@ class Yi {
3423
3445
  * See the License for the specific language governing permissions and
3424
3446
  * limitations under the License.
3425
3447
  */
3426
- function b() {
3448
+ function E() {
3427
3449
  return window;
3428
3450
  }
3429
- function Xi(n) {
3430
- b().location.href = n;
3451
+ function Zi(n) {
3452
+ E().location.href = n;
3431
3453
  }
3432
3454
  /**
3433
3455
  * @license
@@ -3446,9 +3468,9 @@ function Xi(n) {
3446
3468
  * limitations under the License.
3447
3469
  */
3448
3470
  function Zt() {
3449
- return typeof b().WorkerGlobalScope < "u" && typeof b().importScripts == "function";
3471
+ return typeof E().WorkerGlobalScope < "u" && typeof E().importScripts == "function";
3450
3472
  }
3451
- async function Qi() {
3473
+ async function er() {
3452
3474
  if (!(navigator != null && navigator.serviceWorker))
3453
3475
  return null;
3454
3476
  try {
@@ -3457,11 +3479,11 @@ async function Qi() {
3457
3479
  return null;
3458
3480
  }
3459
3481
  }
3460
- function Zi() {
3482
+ function tr() {
3461
3483
  var n;
3462
3484
  return ((n = navigator == null ? void 0 : navigator.serviceWorker) === null || n === void 0 ? void 0 : n.controller) || null;
3463
3485
  }
3464
- function er() {
3486
+ function nr() {
3465
3487
  return Zt() ? self : null;
3466
3488
  }
3467
3489
  /**
@@ -3480,7 +3502,7 @@ function er() {
3480
3502
  * See the License for the specific language governing permissions and
3481
3503
  * limitations under the License.
3482
3504
  */
3483
- const en = "firebaseLocalStorageDb", tr = 1, ye = "firebaseLocalStorage", tn = "fbase_key";
3505
+ const en = "firebaseLocalStorageDb", ir = 1, we = "firebaseLocalStorage", tn = "fbase_key";
3484
3506
  class ce {
3485
3507
  constructor(e) {
3486
3508
  this.request = e;
@@ -3495,47 +3517,47 @@ class ce {
3495
3517
  });
3496
3518
  }
3497
3519
  }
3498
- function be(n, e) {
3499
- return n.transaction([ye], e ? "readwrite" : "readonly").objectStore(ye);
3520
+ function Se(n, e) {
3521
+ return n.transaction([we], e ? "readwrite" : "readonly").objectStore(we);
3500
3522
  }
3501
- function nr() {
3523
+ function rr() {
3502
3524
  const n = indexedDB.deleteDatabase(en);
3503
3525
  return new ce(n).toPromise();
3504
3526
  }
3505
- function Ue() {
3506
- const n = indexedDB.open(en, tr);
3527
+ function De() {
3528
+ const n = indexedDB.open(en, ir);
3507
3529
  return new Promise((e, t) => {
3508
3530
  n.addEventListener("error", () => {
3509
3531
  t(n.error);
3510
3532
  }), n.addEventListener("upgradeneeded", () => {
3511
3533
  const i = n.result;
3512
3534
  try {
3513
- i.createObjectStore(ye, { keyPath: tn });
3535
+ i.createObjectStore(we, { keyPath: tn });
3514
3536
  } catch (r) {
3515
3537
  t(r);
3516
3538
  }
3517
3539
  }), n.addEventListener("success", async () => {
3518
3540
  const i = n.result;
3519
- i.objectStoreNames.contains(ye) ? e(i) : (i.close(), await nr(), e(await Ue()));
3541
+ i.objectStoreNames.contains(we) ? e(i) : (i.close(), await rr(), e(await De()));
3520
3542
  });
3521
3543
  });
3522
3544
  }
3523
3545
  async function ut(n, e, t) {
3524
- const i = be(n, !0).put({
3546
+ const i = Se(n, !0).put({
3525
3547
  [tn]: e,
3526
3548
  value: t
3527
3549
  });
3528
3550
  return new ce(i).toPromise();
3529
3551
  }
3530
- async function ir(n, e) {
3531
- const t = be(n, !1).get(e), i = await new ce(t).toPromise();
3552
+ async function sr(n, e) {
3553
+ const t = Se(n, !1).get(e), i = await new ce(t).toPromise();
3532
3554
  return i === void 0 ? null : i.value;
3533
3555
  }
3534
3556
  function dt(n, e) {
3535
- const t = be(n, !0).delete(e);
3557
+ const t = Se(n, !0).delete(e);
3536
3558
  return new ce(t).toPromise();
3537
3559
  }
3538
- const rr = 800, sr = 3;
3560
+ const or = 800, ar = 3;
3539
3561
  class nn {
3540
3562
  constructor() {
3541
3563
  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(() => {
@@ -3543,7 +3565,7 @@ class nn {
3543
3565
  });
3544
3566
  }
3545
3567
  async _openDb() {
3546
- return this.db ? this.db : (this.db = await Ue(), this.db);
3568
+ return this.db ? this.db : (this.db = await De(), this.db);
3547
3569
  }
3548
3570
  async _withRetries(e) {
3549
3571
  let t = 0;
@@ -3552,7 +3574,7 @@ class nn {
3552
3574
  const i = await this._openDb();
3553
3575
  return await e(i);
3554
3576
  } catch (i) {
3555
- if (t++ > sr)
3577
+ if (t++ > ar)
3556
3578
  throw i;
3557
3579
  this.db && (this.db.close(), this.db = void 0);
3558
3580
  }
@@ -3568,7 +3590,7 @@ class nn {
3568
3590
  * As the worker we should listen to events from the main window.
3569
3591
  */
3570
3592
  async initializeReceiver() {
3571
- this.receiver = Ee._getInstance(er()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3593
+ this.receiver = Ee._getInstance(nr()), this.receiver._subscribe("keyChanged", async (e, t) => ({
3572
3594
  keyProcessed: (await this._poll()).includes(t.key)
3573
3595
  })), this.receiver._subscribe("ping", async (e, t) => [
3574
3596
  "keyChanged"
@@ -3584,9 +3606,9 @@ class nn {
3584
3606
  */
3585
3607
  async initializeSender() {
3586
3608
  var e, t;
3587
- if (this.activeServiceWorker = await Qi(), !this.activeServiceWorker)
3609
+ if (this.activeServiceWorker = await er(), !this.activeServiceWorker)
3588
3610
  return;
3589
- this.sender = new Yi(this.activeServiceWorker);
3611
+ this.sender = new Qi(this.activeServiceWorker);
3590
3612
  const i = await this.sender._send(
3591
3613
  "ping",
3592
3614
  {},
@@ -3608,7 +3630,7 @@ class nn {
3608
3630
  * @param key - Storage key which changed.
3609
3631
  */
3610
3632
  async notifyServiceWorker(e) {
3611
- if (!(!this.sender || !this.activeServiceWorker || Zi() !== this.activeServiceWorker))
3633
+ if (!(!this.sender || !this.activeServiceWorker || tr() !== this.activeServiceWorker))
3612
3634
  try {
3613
3635
  await this.sender._send(
3614
3636
  "keyChanged",
@@ -3624,8 +3646,8 @@ class nn {
3624
3646
  try {
3625
3647
  if (!indexedDB)
3626
3648
  return !1;
3627
- const e = await Ue();
3628
- return await ut(e, Ie, "1"), await dt(e, Ie), !0;
3649
+ const e = await De();
3650
+ return await ut(e, ye, "1"), await dt(e, ye), !0;
3629
3651
  } catch {
3630
3652
  }
3631
3653
  return !1;
@@ -3642,7 +3664,7 @@ class nn {
3642
3664
  return this._withPendingWrite(async () => (await this._withRetries((i) => ut(i, e, t)), this.localCache[e] = t, this.notifyServiceWorker(e)));
3643
3665
  }
3644
3666
  async _get(e) {
3645
- const t = await this._withRetries((i) => ir(i, e));
3667
+ const t = await this._withRetries((i) => sr(i, e));
3646
3668
  return this.localCache[e] = t, t;
3647
3669
  }
3648
3670
  async _remove(e) {
@@ -3650,7 +3672,7 @@ class nn {
3650
3672
  }
3651
3673
  async _poll() {
3652
3674
  const e = await this._withRetries((r) => {
3653
- const s = be(r, !1).getAll();
3675
+ const s = Se(r, !1).getAll();
3654
3676
  return new ce(s).toPromise();
3655
3677
  });
3656
3678
  if (!e)
@@ -3673,7 +3695,7 @@ class nn {
3673
3695
  r(t);
3674
3696
  }
3675
3697
  startPolling() {
3676
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), rr);
3698
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), or);
3677
3699
  }
3678
3700
  stopPolling() {
3679
3701
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -3686,7 +3708,7 @@ class nn {
3686
3708
  }
3687
3709
  }
3688
3710
  nn.type = "LOCAL";
3689
- const or = nn;
3711
+ const cr = nn;
3690
3712
  new oe(3e4, 6e4);
3691
3713
  /**
3692
3714
  * @license
@@ -3704,7 +3726,7 @@ new oe(3e4, 6e4);
3704
3726
  * See the License for the specific language governing permissions and
3705
3727
  * limitations under the License.
3706
3728
  */
3707
- function ar(n, e) {
3729
+ function lr(n, e) {
3708
3730
  return e ? N(e) : (u(
3709
3731
  n._popupRedirectResolver,
3710
3732
  n,
@@ -3737,13 +3759,13 @@ class qe extends zt {
3737
3759
  ), this.params = e;
3738
3760
  }
3739
3761
  _getIdTokenResponse(e) {
3740
- return q(e, this._buildIdpRequest());
3762
+ return J(e, this._buildIdpRequest());
3741
3763
  }
3742
3764
  _linkToIdToken(e, t) {
3743
- return q(e, this._buildIdpRequest(t));
3765
+ return J(e, this._buildIdpRequest(t));
3744
3766
  }
3745
3767
  _getReauthenticationResolver(e) {
3746
- return q(e, this._buildIdpRequest());
3768
+ return J(e, this._buildIdpRequest());
3747
3769
  }
3748
3770
  _buildIdpRequest(e) {
3749
3771
  const t = {
@@ -3758,26 +3780,26 @@ class qe extends zt {
3758
3780
  return e && (t.idToken = e), t;
3759
3781
  }
3760
3782
  }
3761
- function cr(n) {
3762
- return $i(n.auth, new qe(n), n.bypassAuthState);
3783
+ function ur(n) {
3784
+ return ji(n.auth, new qe(n), n.bypassAuthState);
3763
3785
  }
3764
- function lr(n) {
3786
+ function dr(n) {
3765
3787
  const { auth: e, user: t } = n;
3766
3788
  return u(
3767
3789
  t,
3768
3790
  e,
3769
3791
  "internal-error"
3770
3792
  /* AuthErrorCode.INTERNAL_ERROR */
3771
- ), Vi(t, new qe(n), n.bypassAuthState);
3793
+ ), Hi(t, new qe(n), n.bypassAuthState);
3772
3794
  }
3773
- async function ur(n) {
3795
+ async function hr(n) {
3774
3796
  const { auth: e, user: t } = n;
3775
3797
  return u(
3776
3798
  t,
3777
3799
  e,
3778
3800
  "internal-error"
3779
3801
  /* AuthErrorCode.INTERNAL_ERROR */
3780
- ), Fi(t, new qe(n), n.bypassAuthState);
3802
+ ), $i(t, new qe(n), n.bypassAuthState);
3781
3803
  }
3782
3804
  /**
3783
3805
  * @license
@@ -3837,13 +3859,13 @@ class rn {
3837
3859
  switch (e) {
3838
3860
  case "signInViaPopup":
3839
3861
  case "signInViaRedirect":
3840
- return cr;
3862
+ return ur;
3841
3863
  case "linkViaPopup":
3842
3864
  case "linkViaRedirect":
3843
- return ur;
3865
+ return hr;
3844
3866
  case "reauthViaPopup":
3845
3867
  case "reauthViaRedirect":
3846
- return lr;
3868
+ return dr;
3847
3869
  default:
3848
3870
  O(
3849
3871
  this.auth,
@@ -3878,10 +3900,10 @@ class rn {
3878
3900
  * See the License for the specific language governing permissions and
3879
3901
  * limitations under the License.
3880
3902
  */
3881
- const dr = new oe(2e3, 1e4);
3882
- class B extends rn {
3903
+ const fr = new oe(2e3, 1e4);
3904
+ class z extends rn {
3883
3905
  constructor(e, t, i, r, s) {
3884
- super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, B.currentPopupAction && B.currentPopupAction.cancel(), B.currentPopupAction = this;
3906
+ super(e, t, r, s), this.provider = i, this.authWindow = null, this.pollId = null, z.currentPopupAction && z.currentPopupAction.cancel(), z.currentPopupAction = this;
3885
3907
  }
3886
3908
  async executeNotNull() {
3887
3909
  const e = await this.execute();
@@ -3904,7 +3926,7 @@ class B extends rn {
3904
3926
  ), this.authWindow.associatedEvent = e, this.resolver._originValidation(this.auth).catch((t) => {
3905
3927
  this.reject(t);
3906
3928
  }), this.resolver._isIframeWebStorageSupported(this.auth, (t) => {
3907
- t || this.reject(E(
3929
+ t || this.reject(b(
3908
3930
  this.auth,
3909
3931
  "web-storage-unsupported"
3910
3932
  /* AuthErrorCode.WEB_STORAGE_UNSUPPORTED */
@@ -3916,14 +3938,14 @@ class B extends rn {
3916
3938
  return ((e = this.authWindow) === null || e === void 0 ? void 0 : e.associatedEvent) || null;
3917
3939
  }
3918
3940
  cancel() {
3919
- this.reject(E(
3941
+ this.reject(b(
3920
3942
  this.auth,
3921
3943
  "cancelled-popup-request"
3922
3944
  /* AuthErrorCode.EXPIRED_POPUP_REQUEST */
3923
3945
  ));
3924
3946
  }
3925
3947
  cleanUp() {
3926
- this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, B.currentPopupAction = null;
3948
+ this.authWindow && this.authWindow.close(), this.pollId && window.clearTimeout(this.pollId), this.authWindow = null, this.pollId = null, z.currentPopupAction = null;
3927
3949
  }
3928
3950
  pollUserCancellation() {
3929
3951
  const e = () => {
@@ -3931,7 +3953,7 @@ class B extends rn {
3931
3953
  if (!((i = (t = this.authWindow) === null || t === void 0 ? void 0 : t.window) === null || i === void 0) && i.closed) {
3932
3954
  this.pollId = window.setTimeout(
3933
3955
  () => {
3934
- this.pollId = null, this.reject(E(
3956
+ this.pollId = null, this.reject(b(
3935
3957
  this.auth,
3936
3958
  "popup-closed-by-user"
3937
3959
  /* AuthErrorCode.POPUP_CLOSED_BY_USER */
@@ -3942,12 +3964,12 @@ class B extends rn {
3942
3964
  );
3943
3965
  return;
3944
3966
  }
3945
- this.pollId = window.setTimeout(e, dr.get());
3967
+ this.pollId = window.setTimeout(e, fr.get());
3946
3968
  };
3947
3969
  e();
3948
3970
  }
3949
3971
  }
3950
- B.currentPopupAction = null;
3972
+ z.currentPopupAction = null;
3951
3973
  /**
3952
3974
  * @license
3953
3975
  * Copyright 2020 Google LLC
@@ -3964,8 +3986,8 @@ B.currentPopupAction = null;
3964
3986
  * See the License for the specific language governing permissions and
3965
3987
  * limitations under the License.
3966
3988
  */
3967
- const hr = "pendingRedirect", he = /* @__PURE__ */ new Map();
3968
- class fr extends rn {
3989
+ const pr = "pendingRedirect", he = /* @__PURE__ */ new Map();
3990
+ class mr extends rn {
3969
3991
  constructor(e, t, i = !1) {
3970
3992
  super(e, [
3971
3993
  "signInViaRedirect",
@@ -3983,7 +4005,7 @@ class fr extends rn {
3983
4005
  let e = he.get(this.auth._key());
3984
4006
  if (!e) {
3985
4007
  try {
3986
- const i = await pr(this.resolver, this.auth) ? await super.execute() : null;
4008
+ const i = await gr(this.resolver, this.auth) ? await super.execute() : null;
3987
4009
  e = () => Promise.resolve(i);
3988
4010
  } catch (t) {
3989
4011
  e = () => Promise.reject(t);
@@ -4011,26 +4033,26 @@ class fr extends rn {
4011
4033
  cleanUp() {
4012
4034
  }
4013
4035
  }
4014
- async function pr(n, e) {
4015
- const t = _r(e), i = gr(n);
4036
+ async function gr(n, e) {
4037
+ const t = Ir(e), i = vr(n);
4016
4038
  if (!await i._isAvailable())
4017
4039
  return !1;
4018
4040
  const r = await i._get(t) === "true";
4019
4041
  return await i._remove(t), r;
4020
4042
  }
4021
- function mr(n, e) {
4043
+ function _r(n, e) {
4022
4044
  he.set(n._key(), e);
4023
4045
  }
4024
- function gr(n) {
4046
+ function vr(n) {
4025
4047
  return N(n._redirectPersistence);
4026
4048
  }
4027
- function _r(n) {
4028
- return de(hr, n.config.apiKey, n.name);
4049
+ function Ir(n) {
4050
+ return de(pr, n.config.apiKey, n.name);
4029
4051
  }
4030
- async function vr(n, e, t = !1) {
4052
+ async function yr(n, e, t = !1) {
4031
4053
  if (A(n.app))
4032
4054
  return Promise.reject($(n));
4033
- const i = ke(n), r = ar(i, e), o = await new fr(i, r, t).execute();
4055
+ const i = be(n), r = lr(i, e), o = await new mr(i, r, t).execute();
4034
4056
  return o && !t && (delete o.user._redirectEventId, await i._persistUserIfCurrent(o.user), await i._setRedirectUser(null, e)), o;
4035
4057
  }
4036
4058
  /**
@@ -4049,8 +4071,8 @@ async function vr(n, e, t = !1) {
4049
4071
  * See the License for the specific language governing permissions and
4050
4072
  * limitations under the License.
4051
4073
  */
4052
- const Ir = 10 * 60 * 1e3;
4053
- class yr {
4074
+ const wr = 10 * 60 * 1e3;
4075
+ class Tr {
4054
4076
  constructor(e) {
4055
4077
  this.auth = e, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
4056
4078
  }
@@ -4066,13 +4088,13 @@ class yr {
4066
4088
  let t = !1;
4067
4089
  return this.consumers.forEach((i) => {
4068
4090
  this.isEventForConsumer(e, i) && (t = !0, this.sendToConsumer(e, i), this.saveEventToCache(e));
4069
- }), this.hasHandledPotentialRedirect || !wr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4091
+ }), this.hasHandledPotentialRedirect || !kr(e) || (this.hasHandledPotentialRedirect = !0, t || (this.queuedRedirectEvent = e, t = !0)), t;
4070
4092
  }
4071
4093
  sendToConsumer(e, t) {
4072
4094
  var i;
4073
4095
  if (e.error && !sn(e)) {
4074
4096
  const r = ((i = e.error.code) === null || i === void 0 ? void 0 : i.split("auth/")[1]) || "internal-error";
4075
- t.onError(E(this.auth, r));
4097
+ t.onError(b(this.auth, r));
4076
4098
  } else
4077
4099
  t.onAuthEvent(e);
4078
4100
  }
@@ -4081,7 +4103,7 @@ class yr {
4081
4103
  return t.filter.includes(e.type) && i;
4082
4104
  }
4083
4105
  hasEventBeenHandled(e) {
4084
- return Date.now() - this.lastProcessedEventTime >= Ir && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4106
+ return Date.now() - this.lastProcessedEventTime >= wr && this.cachedEventUids.clear(), this.cachedEventUids.has(ht(e));
4085
4107
  }
4086
4108
  saveEventToCache(e) {
4087
4109
  this.cachedEventUids.add(ht(e)), this.lastProcessedEventTime = Date.now();
@@ -4093,7 +4115,7 @@ function ht(n) {
4093
4115
  function sn({ type: n, error: e }) {
4094
4116
  return n === "unknown" && (e == null ? void 0 : e.code) === "auth/no-auth-event";
4095
4117
  }
4096
- function wr(n) {
4118
+ function kr(n) {
4097
4119
  switch (n.type) {
4098
4120
  case "signInViaRedirect":
4099
4121
  case "linkViaRedirect":
@@ -4121,8 +4143,8 @@ function wr(n) {
4121
4143
  * See the License for the specific language governing permissions and
4122
4144
  * limitations under the License.
4123
4145
  */
4124
- async function Tr(n, e = {}) {
4125
- return J(n, "GET", "/v1/projects", e);
4146
+ async function br(n, e = {}) {
4147
+ return X(n, "GET", "/v1/projects", e);
4126
4148
  }
4127
4149
  /**
4128
4150
  * @license
@@ -4140,14 +4162,14 @@ async function Tr(n, e = {}) {
4140
4162
  * See the License for the specific language governing permissions and
4141
4163
  * limitations under the License.
4142
4164
  */
4143
- const kr = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Er = /^https?/;
4144
- async function br(n) {
4165
+ const Er = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, Sr = /^https?/;
4166
+ async function Rr(n) {
4145
4167
  if (n.config.emulator)
4146
4168
  return;
4147
- const { authorizedDomains: e } = await Tr(n);
4169
+ const { authorizedDomains: e } = await br(n);
4148
4170
  for (const t of e)
4149
4171
  try {
4150
- if (Sr(t))
4172
+ if (Ar(t))
4151
4173
  return;
4152
4174
  } catch {
4153
4175
  }
@@ -4157,15 +4179,15 @@ async function br(n) {
4157
4179
  /* AuthErrorCode.INVALID_ORIGIN */
4158
4180
  );
4159
4181
  }
4160
- function Sr(n) {
4161
- const e = Le(), { protocol: t, hostname: i } = new URL(e);
4182
+ function Ar(n) {
4183
+ const e = Me(), { protocol: t, hostname: i } = new URL(e);
4162
4184
  if (n.startsWith("chrome-extension://")) {
4163
4185
  const o = new URL(n);
4164
4186
  return o.hostname === "" && i === "" ? t === "chrome-extension:" && n.replace("chrome-extension://", "") === e.replace("chrome-extension://", "") : t === "chrome-extension:" && o.hostname === i;
4165
4187
  }
4166
- if (!Er.test(t))
4188
+ if (!Sr.test(t))
4167
4189
  return !1;
4168
- if (kr.test(n))
4190
+ if (Er.test(n))
4169
4191
  return i === n;
4170
4192
  const r = n.replace(/\./g, "\\.");
4171
4193
  return new RegExp("^(.+\\." + r + "|" + r + ")$", "i").test(i);
@@ -4186,9 +4208,9 @@ function Sr(n) {
4186
4208
  * See the License for the specific language governing permissions and
4187
4209
  * limitations under the License.
4188
4210
  */
4189
- const Rr = new oe(3e4, 6e4);
4211
+ const Pr = new oe(3e4, 6e4);
4190
4212
  function ft() {
4191
- const n = b().___jsl;
4213
+ const n = E().___jsl;
4192
4214
  if (n != null && n.H) {
4193
4215
  for (const e of Object.keys(n.H))
4194
4216
  if (n.H[e].r = n.H[e].r || [], n.H[e].L = n.H[e].L || [], n.H[e].r = [...n.H[e].L], n.CP)
@@ -4196,7 +4218,7 @@ function ft() {
4196
4218
  n.CP[t] = null;
4197
4219
  }
4198
4220
  }
4199
- function Ar(n) {
4221
+ function Cr(n) {
4200
4222
  return new Promise((e, t) => {
4201
4223
  var i, r, s;
4202
4224
  function o() {
@@ -4205,36 +4227,36 @@ function Ar(n) {
4205
4227
  e(gapi.iframes.getContext());
4206
4228
  },
4207
4229
  ontimeout: () => {
4208
- ft(), t(E(
4230
+ ft(), t(b(
4209
4231
  n,
4210
4232
  "network-request-failed"
4211
4233
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4212
4234
  ));
4213
4235
  },
4214
- timeout: Rr.get()
4236
+ timeout: Pr.get()
4215
4237
  });
4216
4238
  }
4217
- if (!((r = (i = b().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4239
+ if (!((r = (i = E().gapi) === null || i === void 0 ? void 0 : i.iframes) === null || r === void 0) && r.Iframe)
4218
4240
  e(gapi.iframes.getContext());
4219
- else if (!((s = b().gapi) === null || s === void 0) && s.load)
4241
+ else if (!((s = E().gapi) === null || s === void 0) && s.load)
4220
4242
  o();
4221
4243
  else {
4222
- const c = Ni("iframefcb");
4223
- return b()[c] = () => {
4224
- gapi.load ? o() : t(E(
4244
+ const c = Li("iframefcb");
4245
+ return E()[c] = () => {
4246
+ gapi.load ? o() : t(b(
4225
4247
  n,
4226
4248
  "network-request-failed"
4227
4249
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4228
4250
  ));
4229
- }, Pi(`${Ci()}?onload=${c}`).catch((a) => t(a));
4251
+ }, Ni(`${Oi()}?onload=${c}`).catch((a) => t(a));
4230
4252
  }
4231
4253
  }).catch((e) => {
4232
4254
  throw fe = null, e;
4233
4255
  });
4234
4256
  }
4235
4257
  let fe = null;
4236
- function Pr(n) {
4237
- return fe = fe || Ar(n), fe;
4258
+ function Nr(n) {
4259
+ return fe = fe || Cr(n), fe;
4238
4260
  }
4239
4261
  /**
4240
4262
  * @license
@@ -4252,7 +4274,7 @@ function Pr(n) {
4252
4274
  * See the License for the specific language governing permissions and
4253
4275
  * limitations under the License.
4254
4276
  */
4255
- const Cr = new oe(5e3, 15e3), Nr = "__/auth/iframe", Or = "emulator/auth/iframe", Lr = {
4277
+ const Or = new oe(5e3, 15e3), Lr = "__/auth/iframe", Mr = "emulator/auth/iframe", Ur = {
4256
4278
  style: {
4257
4279
  position: "absolute",
4258
4280
  top: "-100px",
@@ -4261,13 +4283,13 @@ const Cr = new oe(5e3, 15e3), Nr = "__/auth/iframe", Or = "emulator/auth/iframe"
4261
4283
  },
4262
4284
  "aria-hidden": "true",
4263
4285
  tabindex: "-1"
4264
- }, Mr = /* @__PURE__ */ new Map([
4286
+ }, Dr = /* @__PURE__ */ new Map([
4265
4287
  ["identitytoolkit.googleapis.com", "p"],
4266
4288
  ["staging-identitytoolkit.sandbox.googleapis.com", "s"],
4267
4289
  ["test-identitytoolkit.sandbox.googleapis.com", "t"]
4268
4290
  // test
4269
4291
  ]);
4270
- function Ur(n) {
4292
+ function xr(n) {
4271
4293
  const e = n.config;
4272
4294
  u(
4273
4295
  e.authDomain,
@@ -4275,17 +4297,17 @@ function Ur(n) {
4275
4297
  "auth-domain-config-required"
4276
4298
  /* AuthErrorCode.MISSING_AUTH_DOMAIN */
4277
4299
  );
4278
- const t = e.emulator ? je(e, Or) : `https://${n.config.authDomain}/${Nr}`, i = {
4300
+ const t = e.emulator ? je(e, Mr) : `https://${n.config.authDomain}/${Lr}`, i = {
4279
4301
  apiKey: e.apiKey,
4280
4302
  appName: n.name,
4281
4303
  v: re
4282
- }, r = Mr.get(n.config.apiHost);
4304
+ }, r = Dr.get(n.config.apiHost);
4283
4305
  r && (i.eid = r);
4284
4306
  const s = n._getFrameworks();
4285
4307
  return s.length && (i.fw = s.join(",")), `${t}?${se(i).slice(1)}`;
4286
4308
  }
4287
- async function Dr(n) {
4288
- const e = await Pr(n), t = b().gapi;
4309
+ async function Fr(n) {
4310
+ const e = await Nr(n), t = E().gapi;
4289
4311
  return u(
4290
4312
  t,
4291
4313
  n,
@@ -4293,24 +4315,24 @@ async function Dr(n) {
4293
4315
  /* AuthErrorCode.INTERNAL_ERROR */
4294
4316
  ), e.open({
4295
4317
  where: document.body,
4296
- url: Ur(n),
4318
+ url: xr(n),
4297
4319
  messageHandlersFilter: t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
4298
- attributes: Lr,
4320
+ attributes: Ur,
4299
4321
  dontclear: !0
4300
4322
  }, (i) => new Promise(async (r, s) => {
4301
4323
  await i.restyle({
4302
4324
  // Prevent iframe from closing on mouse out.
4303
4325
  setHideOnLeave: !1
4304
4326
  });
4305
- const o = E(
4327
+ const o = b(
4306
4328
  n,
4307
4329
  "network-request-failed"
4308
4330
  /* AuthErrorCode.NETWORK_REQUEST_FAILED */
4309
- ), c = b().setTimeout(() => {
4331
+ ), c = E().setTimeout(() => {
4310
4332
  s(o);
4311
- }, Cr.get());
4333
+ }, Or.get());
4312
4334
  function a() {
4313
- b().clearTimeout(c), r(i);
4335
+ E().clearTimeout(c), r(i);
4314
4336
  }
4315
4337
  i.ping(a).then(a, () => {
4316
4338
  s(o);
@@ -4333,12 +4355,12 @@ async function Dr(n) {
4333
4355
  * See the License for the specific language governing permissions and
4334
4356
  * limitations under the License.
4335
4357
  */
4336
- const xr = {
4358
+ const Vr = {
4337
4359
  location: "yes",
4338
4360
  resizable: "yes",
4339
4361
  statusbar: "yes",
4340
4362
  toolbar: "no"
4341
- }, Fr = 500, Vr = 600, $r = "_blank", Hr = "http://localhost";
4363
+ }, $r = 500, Hr = 600, jr = "_blank", Wr = "http://localhost";
4342
4364
  class pt {
4343
4365
  constructor(e) {
4344
4366
  this.window = e, this.associatedEvent = null;
@@ -4351,33 +4373,33 @@ class pt {
4351
4373
  }
4352
4374
  }
4353
4375
  }
4354
- function jr(n, e, t, i = Fr, r = Vr) {
4376
+ function Br(n, e, t, i = $r, r = Hr) {
4355
4377
  const s = Math.max((window.screen.availHeight - r) / 2, 0).toString(), o = Math.max((window.screen.availWidth - i) / 2, 0).toString();
4356
4378
  let c = "";
4357
- const a = Object.assign(Object.assign({}, xr), {
4379
+ const a = Object.assign(Object.assign({}, Vr), {
4358
4380
  width: i.toString(),
4359
4381
  height: r.toString(),
4360
4382
  top: s,
4361
4383
  left: o
4362
- }), l = y().toLowerCase();
4363
- t && (c = Ft(l) ? $r : t), xt(l) && (e = e || Hr, a.scrollbars = "yes");
4364
- const d = Object.entries(a).reduce((m, [I, w]) => `${m}${I}=${w},`, "");
4365
- if (yi(l) && c !== "_self")
4366
- return Wr(e || "", c), new pt(null);
4367
- const h = window.open(e || "", c, d);
4384
+ }), l = w().toLowerCase();
4385
+ t && (c = Ft(l) ? jr : t), xt(l) && (e = e || Wr, a.scrollbars = "yes");
4386
+ const d = Object.entries(a).reduce((h, [y, _]) => `${h}${y}=${_},`, "");
4387
+ if (Ti(l) && c !== "_self")
4388
+ return Gr(e || "", c), new pt(null);
4389
+ const m = window.open(e || "", c, d);
4368
4390
  u(
4369
- h,
4391
+ m,
4370
4392
  n,
4371
4393
  "popup-blocked"
4372
4394
  /* AuthErrorCode.POPUP_BLOCKED */
4373
4395
  );
4374
4396
  try {
4375
- h.focus();
4397
+ m.focus();
4376
4398
  } catch {
4377
4399
  }
4378
- return new pt(h);
4400
+ return new pt(m);
4379
4401
  }
4380
- function Wr(n, e) {
4402
+ function Gr(n, e) {
4381
4403
  const t = document.createElement("a");
4382
4404
  t.href = n, t.target = e;
4383
4405
  const i = document.createEvent("MouseEvent");
@@ -4399,7 +4421,7 @@ function Wr(n, e) {
4399
4421
  * See the License for the specific language governing permissions and
4400
4422
  * limitations under the License.
4401
4423
  */
4402
- const Br = "__/auth/handler", Gr = "emulator/auth/handler", zr = encodeURIComponent("fac");
4424
+ const zr = "__/auth/handler", qr = "emulator/auth/handler", Kr = encodeURIComponent("fac");
4403
4425
  async function mt(n, e, t, i, r, s) {
4404
4426
  u(
4405
4427
  n.config.authDomain,
@@ -4421,23 +4443,23 @@ async function mt(n, e, t, i, r, s) {
4421
4443
  eventId: r
4422
4444
  };
4423
4445
  if (e instanceof qt) {
4424
- e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", Cn(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4425
- for (const [d, h] of Object.entries({}))
4426
- o[d] = h;
4446
+ e.setDefaultLanguage(n.languageCode), o.providerId = e.providerId || "", On(e.getCustomParameters()) || (o.customParameters = JSON.stringify(e.getCustomParameters()));
4447
+ for (const [d, m] of Object.entries({}))
4448
+ o[d] = m;
4427
4449
  }
4428
4450
  if (e instanceof ae) {
4429
- const d = e.getScopes().filter((h) => h !== "");
4451
+ const d = e.getScopes().filter((m) => m !== "");
4430
4452
  d.length > 0 && (o.scopes = d.join(","));
4431
4453
  }
4432
4454
  n.tenantId && (o.tid = n.tenantId);
4433
4455
  const c = o;
4434
4456
  for (const d of Object.keys(c))
4435
4457
  c[d] === void 0 && delete c[d];
4436
- const a = await n._getAppCheckToken(), l = a ? `#${zr}=${encodeURIComponent(a)}` : "";
4437
- return `${qr(n)}?${se(c).slice(1)}${l}`;
4458
+ const a = await n._getAppCheckToken(), l = a ? `#${Kr}=${encodeURIComponent(a)}` : "";
4459
+ return `${Jr(n)}?${se(c).slice(1)}${l}`;
4438
4460
  }
4439
- function qr({ config: n }) {
4440
- return n.emulator ? je(n, Gr) : `https://${n.authDomain}/${Br}`;
4461
+ function Jr({ config: n }) {
4462
+ return n.emulator ? je(n, qr) : `https://${n.authDomain}/${zr}`;
4441
4463
  }
4442
4464
  /**
4443
4465
  * @license
@@ -4455,23 +4477,23 @@ function qr({ config: n }) {
4455
4477
  * See the License for the specific language governing permissions and
4456
4478
  * limitations under the License.
4457
4479
  */
4458
- const Ce = "webStorageSupport";
4459
- class Kr {
4480
+ const Ne = "webStorageSupport";
4481
+ class Yr {
4460
4482
  constructor() {
4461
- this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = vr, this._overrideRedirectResult = mr;
4483
+ this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = Qt, this._completeRedirectFn = yr, this._overrideRedirectResult = _r;
4462
4484
  }
4463
4485
  // Wrapping in async even though we don't await anywhere in order
4464
4486
  // to make sure errors are raised as promise rejections
4465
4487
  async _openPopup(e, t, i, r) {
4466
4488
  var s;
4467
4489
  L((s = this.eventManagers[e._key()]) === null || s === void 0 ? void 0 : s.manager, "_initialize() not called before _openPopup()");
4468
- const o = await mt(e, t, i, Le(), r);
4469
- return jr(e, o, ze());
4490
+ const o = await mt(e, t, i, Me(), r);
4491
+ return Br(e, o, ze());
4470
4492
  }
4471
4493
  async _openRedirect(e, t, i, r) {
4472
4494
  await this._originValidation(e);
4473
- const s = await mt(e, t, i, Le(), r);
4474
- return Xi(s), new Promise(() => {
4495
+ const s = await mt(e, t, i, Me(), r);
4496
+ return Zi(s), new Promise(() => {
4475
4497
  });
4476
4498
  }
4477
4499
  _initialize(e) {
@@ -4486,7 +4508,7 @@ class Kr {
4486
4508
  }), i;
4487
4509
  }
4488
4510
  async initAndGetManager(e) {
4489
- const t = await Dr(e), i = new yr(e);
4511
+ const t = await Fr(e), i = new Tr(e);
4490
4512
  return t.register("authEvent", (r) => (u(
4491
4513
  r == null ? void 0 : r.authEvent,
4492
4514
  e,
@@ -4498,9 +4520,9 @@ class Kr {
4498
4520
  }), gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER), this.eventManagers[e._key()] = { manager: i }, this.iframes[e._key()] = t, i;
4499
4521
  }
4500
4522
  _isIframeWebStorageSupported(e, t) {
4501
- this.iframes[e._key()].send(Ce, { type: Ce }, (r) => {
4523
+ this.iframes[e._key()].send(Ne, { type: Ne }, (r) => {
4502
4524
  var s;
4503
- const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ce];
4525
+ const o = (s = r == null ? void 0 : r[0]) === null || s === void 0 ? void 0 : s[Ne];
4504
4526
  o !== void 0 && t(!!o), O(
4505
4527
  e,
4506
4528
  "internal-error"
@@ -4510,13 +4532,13 @@ class Kr {
4510
4532
  }
4511
4533
  _originValidation(e) {
4512
4534
  const t = e._key();
4513
- return this.originValidationPromises[t] || (this.originValidationPromises[t] = br(e)), this.originValidationPromises[t];
4535
+ return this.originValidationPromises[t] || (this.originValidationPromises[t] = Rr(e)), this.originValidationPromises[t];
4514
4536
  }
4515
4537
  get _shouldInitProactively() {
4516
- return Wt() || Be() || Te();
4538
+ return Wt() || Be() || ke();
4517
4539
  }
4518
4540
  }
4519
- const Jr = Kr;
4541
+ const Xr = Yr;
4520
4542
  var gt = "@firebase/auth", _t = "1.7.5";
4521
4543
  /**
4522
4544
  * @license
@@ -4534,7 +4556,7 @@ var gt = "@firebase/auth", _t = "1.7.5";
4534
4556
  * See the License for the specific language governing permissions and
4535
4557
  * limitations under the License.
4536
4558
  */
4537
- class Yr {
4559
+ class Qr {
4538
4560
  constructor(e) {
4539
4561
  this.auth = e, this.internalListeners = /* @__PURE__ */ new Map();
4540
4562
  }
@@ -4585,7 +4607,7 @@ class Yr {
4585
4607
  * See the License for the specific language governing permissions and
4586
4608
  * limitations under the License.
4587
4609
  */
4588
- function Xr(n) {
4610
+ function Zr(n) {
4589
4611
  switch (n) {
4590
4612
  case "Node":
4591
4613
  return "node";
@@ -4601,7 +4623,7 @@ function Xr(n) {
4601
4623
  return;
4602
4624
  }
4603
4625
  }
4604
- function Qr(n) {
4626
+ function es(n) {
4605
4627
  Ze(new et(
4606
4628
  "auth",
4607
4629
  (e, { options: t }) => {
@@ -4615,8 +4637,8 @@ function Qr(n) {
4615
4637
  tokenApiHost: "securetoken.googleapis.com",
4616
4638
  apiScheme: "https",
4617
4639
  sdkClientVersion: Bt(n)
4618
- }, l = new Ri(i, r, s, a);
4619
- return Li(l, t), l;
4640
+ }, l = new Pi(i, r, s, a);
4641
+ return Ui(l, t), l;
4620
4642
  },
4621
4643
  "PUBLIC"
4622
4644
  /* ComponentType.PUBLIC */
@@ -4631,18 +4653,18 @@ function Qr(n) {
4631
4653
  })), Ze(new et(
4632
4654
  "auth-internal",
4633
4655
  (e) => {
4634
- const t = ke(e.getProvider(
4656
+ const t = be(e.getProvider(
4635
4657
  "auth"
4636
4658
  /* _ComponentName.AUTH */
4637
4659
  ).getImmediate());
4638
- return ((i) => new Yr(i))(t);
4660
+ return ((i) => new Qr(i))(t);
4639
4661
  },
4640
4662
  "PRIVATE"
4641
4663
  /* ComponentType.PRIVATE */
4642
4664
  ).setInstantiationMode(
4643
4665
  "EXPLICIT"
4644
4666
  /* InstantiationMode.EXPLICIT */
4645
- )), Oe(gt, _t, Xr(n)), Oe(gt, _t, "esm2017");
4667
+ )), Le(gt, _t, Zr(n)), Le(gt, _t, "esm2017");
4646
4668
  }
4647
4669
  /**
4648
4670
  * @license
@@ -4660,11 +4682,11 @@ function Qr(n) {
4660
4682
  * See the License for the specific language governing permissions and
4661
4683
  * limitations under the License.
4662
4684
  */
4663
- const Zr = 5 * 60, es = kt("authIdTokenMaxAge") || Zr;
4685
+ const ts = 5 * 60, ns = kt("authIdTokenMaxAge") || ts;
4664
4686
  let vt = null;
4665
- const ts = (n) => async (e) => {
4687
+ const is = (n) => async (e) => {
4666
4688
  const t = e && await e.getIdTokenResult(), i = t && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(t.issuedAtTime)) / 1e3;
4667
- if (i && i > es)
4689
+ if (i && i > ns)
4668
4690
  return;
4669
4691
  const r = t == null ? void 0 : t.token;
4670
4692
  vt !== r && (vt = r, await fetch(n, {
@@ -4674,104 +4696,104 @@ const ts = (n) => async (e) => {
4674
4696
  } : {}
4675
4697
  }));
4676
4698
  };
4677
- function ns(n = Sn()) {
4678
- const e = Et(n, "auth");
4699
+ function rs(n = An()) {
4700
+ const e = bt(n, "auth");
4679
4701
  if (e.isInitialized())
4680
4702
  return e.getImmediate();
4681
- const t = Oi(n, {
4682
- popupRedirectResolver: Jr,
4703
+ const t = Mi(n, {
4704
+ popupRedirectResolver: Xr,
4683
4705
  persistence: [
4684
- or,
4685
- Ki,
4706
+ cr,
4707
+ Yi,
4686
4708
  Qt
4687
4709
  ]
4688
4710
  }), i = kt("authTokenSyncURL");
4689
4711
  if (i && typeof isSecureContext == "boolean" && isSecureContext) {
4690
4712
  const s = new URL(i, location.origin);
4691
4713
  if (location.origin === s.origin) {
4692
- const o = ts(s.toString());
4693
- Bi(t, o, () => o(t.currentUser)), Wi(t, (c) => o(c));
4714
+ const o = is(s.toString());
4715
+ zi(t, o, () => o(t.currentUser)), Gi(t, (c) => o(c));
4694
4716
  }
4695
4717
  }
4696
- const r = bn("auth");
4697
- return r && Mi(t, `http://${r}`), t;
4718
+ const r = Rn("auth");
4719
+ return r && Di(t, `http://${r}`), t;
4698
4720
  }
4699
- function is() {
4721
+ function ss() {
4700
4722
  var n, e;
4701
4723
  return (e = (n = document.getElementsByTagName("head")) === null || n === void 0 ? void 0 : n[0]) !== null && e !== void 0 ? e : document;
4702
4724
  }
4703
- Ai({
4725
+ Ci({
4704
4726
  loadJS(n) {
4705
4727
  return new Promise((e, t) => {
4706
4728
  const i = document.createElement("script");
4707
4729
  i.setAttribute("src", n), i.onload = e, i.onerror = (r) => {
4708
- const s = E(
4730
+ const s = b(
4709
4731
  "internal-error"
4710
4732
  /* AuthErrorCode.INTERNAL_ERROR */
4711
4733
  );
4712
4734
  s.customData = r, t(s);
4713
- }, i.type = "text/javascript", i.charset = "UTF-8", is().appendChild(i);
4735
+ }, i.type = "text/javascript", i.charset = "UTF-8", ss().appendChild(i);
4714
4736
  });
4715
4737
  },
4716
4738
  gapiScript: "https://apis.google.com/js/api.js",
4717
4739
  recaptchaV2Script: "https://www.google.com/recaptcha/api.js",
4718
4740
  recaptchaEnterpriseScript: "https://www.google.com/recaptcha/enterprise.js?render="
4719
4741
  });
4720
- Qr(
4742
+ es(
4721
4743
  "Browser"
4722
4744
  /* ClientPlatform.BROWSER */
4723
4745
  );
4724
- var rs = { 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" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" }, ss = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4725
- const os = {
4746
+ var os = { 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" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" }, as = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
4747
+ const cs = {
4726
4748
  key: 2,
4727
4749
  class: "h-full w-full"
4728
- }, as = ["src"], ks = /* @__PURE__ */ De({
4750
+ }, ls = ["src"], Ss = /* @__PURE__ */ xe({
4729
4751
  __name: "App",
4730
4752
  setup(n) {
4731
- const e = me(), t = fn(), i = pn(), r = mn(), s = gn(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = me(), d = ee(!1), h = ne(() => i.version), m = ne(() => {
4732
- const g = e.currentCountry.value || "MY", v = tt.getIdToken(), T = l.value._id;
4733
- return `${ss.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${g}&token=${v}`;
4753
+ const e = ge(), t = pn(), i = mn(), r = gn(), s = _n(), o = wt(), c = ee(o.query.showHeader !== "false"), a = ee(!1), { currentBusiness: l } = ge(), d = ee(!1), m = ne(() => i.version), h = ne(() => {
4754
+ const f = e.currentCountry.value || "MY", I = tt.getIdToken(), T = l.value._id;
4755
+ return `${as.marketingV1Portal}/b/${T}/marketing/overview?showHeader=false&country=${f}&token=${I}`;
4734
4756
  });
4735
- async function I() {
4736
- if (Nn().length) {
4757
+ async function y() {
4758
+ if (Ln().length) {
4737
4759
  console.warn("CONNECT: initFirebase: Firebase already initialized");
4738
4760
  return;
4739
4761
  }
4740
- const g = On(rs.firebase), v = await hn.getCustomToken(), T = ns();
4741
- await ji(T, v), Ln(g), console.log("initFirebase", g);
4762
+ const f = Mn(os.firebase), I = await fn.getCustomToken(), T = rs();
4763
+ await Bi(T, I), Un(f), console.log("initFirebase", f);
4742
4764
  }
4743
- const w = async () => {
4744
- d.value = !1, await un(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && h.value === "v2" ? e.registerSidebarComponent(xn) : e.hideSidebarToggle(!0), await I(), a.value = !0, d.value = !0;
4765
+ const _ = async () => {
4766
+ d.value = !1, await dn(), console.log("forceRerender"), tt.setBusinessId(l.value._id), await i.readPremium(), !a.value && m.value === "v2" ? e.registerSidebarComponent(Vn) : e.hideSidebarToggle(!0), await y(), a.value = !0, d.value = !0;
4745
4767
  };
4746
- return ln(() => {
4747
- if (Mn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4748
- const g = document.getElementsByClassName("app-header")[0], v = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4749
- g == null || g.classList.add("!hidden"), v == null || v.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4768
+ return un(() => {
4769
+ if (Dn.Config.setCountry(e.currentCountry.value || "MY"), t.initProvider(r, s), !c.value) {
4770
+ const f = document.getElementsByClassName("app-header")[0], I = document.getElementsByClassName("app-sidebar")[0], T = document.getElementsByClassName("app-container")[0], M = document.getElementsByTagName("main")[0];
4771
+ f == null || f.classList.add("!hidden"), I == null || I.classList.add("!pt-0"), T == null || T.classList.add("!pt-0"), M == null || M.classList.add("!pt-0"), e.hideSidebarToggle(!0);
4750
4772
  }
4751
- l.value != null && (console.log("App mounted, forceRerender"), w());
4752
- }), xe(
4773
+ l.value != null && (console.log("App mounted, forceRerender"), _());
4774
+ }), pe(
4753
4775
  () => e.currentBusiness.value,
4754
- async (g, v) => {
4755
- console.log("Current business changed"), g != null && g._id != v._id && (console.log("forceRerender when business changes", g, v), w());
4776
+ async (f, I) => {
4777
+ console.log("Current business changed"), f != null && f._id != I._id && (console.log("forceRerender when business changes", f, I), _());
4756
4778
  }
4757
- ), (g, v) => (H(), pe(It, null, [
4758
- p(d) && p(h) === "v2" ? (H(), Ne(p(dn), { key: 0 })) : Ae("", !0),
4759
- p(d) && p(h) === "v2" && p(c) ? (H(), Ne(ti, { key: 1 })) : Ae("", !0),
4760
- p(d) && p(h) !== "v2" ? (H(), pe("div", os, [
4761
- S(In, {
4762
- json: { url: p(m) }
4779
+ ), (f, I) => (j(), me(It, null, [
4780
+ g(d) && g(m) === "v2" ? (j(), Oe(g(hn), { key: 0 })) : Pe("", !0),
4781
+ g(d) && g(m) === "v2" && g(c) ? (j(), Oe(ii, { key: 1 })) : Pe("", !0),
4782
+ g(d) && g(m) !== "v2" ? (j(), me("div", cs, [
4783
+ S(wn, {
4784
+ json: { url: g(h) }
4763
4785
  }, null, 8, ["json"]),
4764
- _("iframe", {
4786
+ v("iframe", {
4765
4787
  allow: "clipboard-read; clipboard-write",
4766
4788
  frameBorder: "0",
4767
4789
  height: "100%",
4768
4790
  width: "100%",
4769
- src: p(m)
4770
- }, null, 8, as)
4771
- ])) : Ae("", !0)
4791
+ src: g(h)
4792
+ }, null, 8, ls)
4793
+ ])) : Pe("", !0)
4772
4794
  ], 64));
4773
4795
  }
4774
4796
  });
4775
4797
  export {
4776
- ks as default
4798
+ Ss as default
4777
4799
  };