@feedmepos/mf-payment 1.7.21-dev → 1.7.21

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 (43) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-ffHJpvXa.js → Actions.vue_vue_type_script_setup_true_lang-CX1_lQSw.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CfbmwrWK.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BeMe0eWN.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-By13wDdG.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DfYsAAaC.js} +2 -2
  4. package/dist/{Chargeback-CZJQQ9gc.js → Chargeback-xwB_glv5.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-qP-vt90W.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CrvzKQgC.js} +1 -1
  6. package/dist/{OnboardForm-B53FxupS.js → OnboardForm-DKhsjm3n.js} +5 -5
  7. package/dist/{OnboardForm-DLmRWhzp.js → OnboardForm-F2Qcvalp.js} +5 -5
  8. package/dist/{OnboardSubmission-DJ7rU1wZ.js → OnboardSubmission-0hfx_f8i.js} +3 -3
  9. package/dist/{OnboardSubmission-sakKTYkk.js → OnboardSubmission-D2ebcVnG.js} +6 -6
  10. package/dist/{PayoutAccount-BbL0ZGIp.js → PayoutAccount-CIek2Qnh.js} +5 -5
  11. package/dist/{PayoutAccount-DjsO2Zmp.js → PayoutAccount-Dw-_pf4z.js} +7 -7
  12. package/dist/{PayoutAccountSetting-BThyDhBb.js → PayoutAccountSetting-DSk8ZV9p.js} +6 -6
  13. package/dist/{Restaurant-3EwpWvG0.js → Restaurant-Bdike4SW.js} +4 -4
  14. package/dist/{RestaurantSetting-Cq3qNh49.js → RestaurantSetting-DSDzRmgE.js} +3 -3
  15. package/dist/{Settlement-Yt7S32M5.js → Settlement-BEhvMZje.js} +4 -4
  16. package/dist/{Settlement-CkYnzrb9.js → Settlement-Cw6JGHxU.js} +3 -3
  17. package/dist/{SettlementTransactions-Ku_4e-zv.js → SettlementTransactions-BlRbAo_K.js} +5 -5
  18. package/dist/{SettlementTransactions-Cb9qJOEj.js → SettlementTransactions-yczyKInV.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-DSp-aFCU.js → Status.vue_vue_type_script_setup_true_lang-sobv3LfF.js} +1 -1
  20. package/dist/{Terminal-CaFd1Gc_.js → Terminal-BwHi929R.js} +5 -5
  21. package/dist/{TerminalSetting-D0SFEEFS.js → TerminalSetting-ZA-ADJVD.js} +5 -5
  22. package/dist/{Transaction-C7k-A1m0.js → Transaction-BvvdK0go.js} +11 -11
  23. package/dist/{Transaction-gu5LaYsT.js → Transaction-DqwB7HTI.js} +10 -10
  24. package/dist/{TransactionOld-CcD_aF2l.js → TransactionOld-B0fQrQ7W.js} +7 -7
  25. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-EDYvI3F4.js → TransactionStatus.vue_vue_type_script_setup_true_lang-KpyoB07o.js} +1 -1
  26. package/dist/{app-im13caqF.js → app-v4m_QvHC.js} +352 -361
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-DTQVIMfM.js → assets-xspGnWqt.js} +1 -1
  29. package/dist/{grafana-BDmkGvlB.js → grafana-By90eHTE.js} +1 -1
  30. package/dist/{index-D8TkGZl0.js → index-B-1dMDti.js} +1 -1
  31. package/dist/{index-CQECIxJN.js → index-BO4m11-f.js} +1 -1
  32. package/dist/{index-DRG4CNUn.js → index-Bm1fndT6.js} +1 -1
  33. package/dist/{index-BVDW0-ZU.js → index-CMIKOUH0.js} +1 -1
  34. package/dist/{index-DtE260w6.js → index-COhy5Sra.js} +1 -1
  35. package/dist/{index-D5xbRZEp.js → index-ClZtCkMC.js} +1 -1
  36. package/dist/{index-BEUzu_r-.js → index-CnoeFPh3.js} +1 -1
  37. package/dist/{index-MzVSdd2h.js → index-D3G27Mr4.js} +2 -2
  38. package/dist/{index-DqoTAh5-.js → index-DQ81tv1s.js} +1 -1
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-DzEx8Tkw.js → index.vue_vue_type_script_setup_true_lang-FjfVgwqj.js} +1 -1
  40. package/dist/{onboard-submission-C45MhH1f.js → onboard-submission-dp_mz2J_.js} +1 -1
  41. package/dist/package.json +2 -2
  42. package/dist/{payout-account-EtjDZuJC.js → payout-account-Dz18wMnQ.js} +3 -3
  43. package/package.json +1 -1
@@ -3,7 +3,7 @@ var rr = (t) => {
3
3
  };
4
4
  var dn = (t, e, n) => e.has(t) || rr("Cannot " + n);
5
5
  var h = (t, e, n) => (dn(t, e, "read from private field"), n ? n.call(t) : e.get(t)), G = (t, e, n) => e.has(t) ? rr("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), D = (t, e, n, r) => (dn(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), z = (t, e, n) => (dn(t, e, "access private method"), n);
6
- var xt = (t, e, n, r) => ({
6
+ var Vt = (t, e, n, r) => ({
7
7
  set _(s) {
8
8
  D(t, e, s, n);
9
9
  },
@@ -12,9 +12,9 @@ var xt = (t, e, n, r) => ({
12
12
  }
13
13
  });
14
14
  import { routes as Ri, i18nMessages as qi } from "@feedmepos/mf-financing";
15
- import { isRef as qn, ref as St, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as vn, defineComponent as tn, unref as ge, openBlock as nn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
15
+ import { isRef as qn, ref as Xt, shallowRef as Ni, watchEffect as Hi, computed as Nn, h as wn, defineComponent as en, unref as ge, openBlock as tn, createBlock as Hn, renderSlot as Qi, createCommentVNode as Xi, createElementBlock as Si, createElementVNode as Ke, toDisplayString as sr, nextTick as Ui, defineAsyncComponent as _r, watch as $r, resolveComponent as es, provide as Wi, onMounted as zi, onBeforeMount as Zi, onUnmounted as Li } from "vue";
16
16
  import { useRoute as ts, createRouter as Ki, createWebHistory as Ji, useRouter as _i } from "vue-router";
17
- import { useCoreStore as rn, useI18n as ns } from "@feedmepos/mf-common";
17
+ import { useCoreStore as nn, useI18n as ns } from "@feedmepos/mf-common";
18
18
  import { defineStore as $i } from "pinia";
19
19
  import { components as ea } from "@feedmepos/ui-library";
20
20
  const ta = {
@@ -1249,28 +1249,28 @@ function ca(t, e, n) {
1249
1249
  evaluating: i = void 0,
1250
1250
  shallow: a = !0,
1251
1251
  onError: c = oa
1252
- } = r, l = St(!s), A = a ? Ni(e) : St(e);
1252
+ } = r, l = Xt(!s), A = a ? Ni(e) : Xt(e);
1253
1253
  let f = 0;
1254
1254
  return Hi(async (p) => {
1255
1255
  if (!l.value)
1256
1256
  return;
1257
1257
  f++;
1258
1258
  const B = f;
1259
- let w = !1;
1259
+ let v = !1;
1260
1260
  i && Promise.resolve().then(() => {
1261
1261
  i.value = !0;
1262
1262
  });
1263
1263
  try {
1264
1264
  const O = await t((I) => {
1265
1265
  p(() => {
1266
- i && (i.value = !1), w || I();
1266
+ i && (i.value = !1), v || I();
1267
1267
  });
1268
1268
  });
1269
1269
  B === f && (A.value = O);
1270
1270
  } catch (O) {
1271
1271
  c(O);
1272
1272
  } finally {
1273
- i && B === f && (i.value = !1), w = !0;
1273
+ i && B === f && (i.value = !1), v = !0;
1274
1274
  }
1275
1275
  }), s ? Nn(() => (l.value = !0, A.value)) : A;
1276
1276
  }
@@ -1381,7 +1381,7 @@ var rs = { exports: {} };
1381
1381
  return !0;
1382
1382
  };
1383
1383
  }
1384
- function w(u, m, g, y) {
1384
+ function v(u, m, g, y) {
1385
1385
  return u.validate(u.options, m, g, y);
1386
1386
  }
1387
1387
  var O = {
@@ -1426,7 +1426,7 @@ var rs = { exports: {} };
1426
1426
  },
1427
1427
  $or: function(u, m, g, y) {
1428
1428
  for (var b = 0, E = u.length; b < E; b++)
1429
- if (w(f(u, b), m, g, y)) return !0;
1429
+ if (v(f(u, b), m, g, y)) return !0;
1430
1430
  return !1;
1431
1431
  },
1432
1432
  $nor: function(u, m, g, y) {
@@ -1434,7 +1434,7 @@ var rs = { exports: {} };
1434
1434
  },
1435
1435
  $and: function(u, m, g, y) {
1436
1436
  for (var b = 0, E = u.length; b < E; b++)
1437
- if (!w(f(u, b), m, g, y)) return !1;
1437
+ if (!v(f(u, b), m, g, y)) return !1;
1438
1438
  return !0;
1439
1439
  },
1440
1440
  $regex: p(function(u, m) {
@@ -1446,9 +1446,9 @@ var rs = { exports: {} };
1446
1446
  $elemMatch: function(u, m, g, y) {
1447
1447
  return c(m) ? !!~function(b, E) {
1448
1448
  for (var P = 0; P < b.length; P++)
1449
- if (f(b, P), w(E, f(b, P))) return P;
1449
+ if (f(b, P), v(E, f(b, P))) return P;
1450
1450
  return -1;
1451
- }(m, u) : w(u, m, g, y);
1451
+ }(m, u) : v(u, m, g, y);
1452
1452
  },
1453
1453
  $exists: function(u, m, g, y) {
1454
1454
  return y.hasOwnProperty(g) === u;
@@ -1506,7 +1506,7 @@ var rs = { exports: {} };
1506
1506
  for (j = u.length; j--; ) if (u[j] == null) return !0;
1507
1507
  }
1508
1508
  for (j = u.length; j--; ) {
1509
- var P = w(H(f(u, j), g), E, j, u);
1509
+ var P = v(H(f(u, j), g), E, j, u);
1510
1510
  if (P && String(P) !== "[object Object]" && String(E) !== "[object Object]")
1511
1511
  return !0;
1512
1512
  }
@@ -1549,7 +1549,7 @@ var rs = { exports: {} };
1549
1549
  $not: function(u, m, g) {
1550
1550
  var y = Y(g)(u);
1551
1551
  return function(b, E, P) {
1552
- return !w(y, b, E, P);
1552
+ return !v(y, b, E, P);
1553
1553
  };
1554
1554
  },
1555
1555
  $type: function(u) {
@@ -1587,11 +1587,11 @@ var rs = { exports: {} };
1587
1587
  else tr(f(Ce, nr), ft, gt + 1, Ce, ln);
1588
1588
  }(m, g, 0, m, E), E.length === 1) {
1589
1589
  var P = E[0];
1590
- return w(y, P[0], P[1], P[2]);
1590
+ return v(y, P[0], P[1], P[2]);
1591
1591
  }
1592
1592
  for (var j = b && b.$ne !== void 0, W = j, _ = 0; _ < E.length; _++) {
1593
- var he = E[_], Vt = w(y, he[0], he[1], he[2]);
1594
- j ? W &= Vt : W |= Vt;
1593
+ var he = E[_], Yt = v(y, he[0], he[1], he[2]);
1594
+ j ? W &= Yt : W |= Yt;
1595
1595
  }
1596
1596
  return W;
1597
1597
  }
@@ -1613,8 +1613,8 @@ var rs = { exports: {} };
1613
1613
  else {
1614
1614
  if (W.charCodeAt(0) === 36)
1615
1615
  throw new Error("Unknown operation " + W);
1616
- var Vt = W.split(".");
1617
- j.push(Q(Vt, E(_), _));
1616
+ var Yt = W.split(".");
1617
+ j.push(Q(Yt, E(_), _));
1618
1618
  }
1619
1619
  }
1620
1620
  }
@@ -1624,24 +1624,24 @@ var rs = { exports: {} };
1624
1624
  if (!l(W)) return _;
1625
1625
  for (var he in W) _.push(he), j(W[he], _);
1626
1626
  return _;
1627
- }(P, []).join(",").search(/[$.]/) === -1 ? V(P, v) : b(P);
1627
+ }(P, []).join(",").search(/[$.]/) === -1 ? V(P, w) : b(P);
1628
1628
  };
1629
1629
  return function(P) {
1630
1630
  return b(y(P));
1631
1631
  };
1632
1632
  }
1633
- function v(u, m) {
1633
+ function w(u, m) {
1634
1634
  if (Object.prototype.toString.call(u) !== Object.prototype.toString.call(m))
1635
1635
  return !1;
1636
1636
  if (l(u)) {
1637
1637
  if (Object.keys(u).length !== Object.keys(m).length) return !1;
1638
- for (var g in u) if (!v(u[g], m[g])) return !1;
1638
+ for (var g in u) if (!w(u[g], m[g])) return !1;
1639
1639
  return !0;
1640
1640
  }
1641
1641
  if (c(u)) {
1642
1642
  if (u.length !== m.length) return !1;
1643
1643
  for (var y = 0, b = u.length; y < b; y++)
1644
- if (!v(u[y], m[y])) return !1;
1644
+ if (!w(u[y], m[y])) return !1;
1645
1645
  return !0;
1646
1646
  }
1647
1647
  return u === m;
@@ -1651,18 +1651,18 @@ var rs = { exports: {} };
1651
1651
  return m && m.select && (g = {
1652
1652
  options: g,
1653
1653
  validate: function(y, b, E, P) {
1654
- return w(y, b && m.select(b), E, P);
1654
+ return v(y, b && m.select(b), E, P);
1655
1655
  }
1656
1656
  }), g;
1657
1657
  }
1658
1658
  function U(u, m) {
1659
1659
  var g = H(u, m = Object.assign({ compare: ee, comparable: q }, m));
1660
1660
  return function(y, b, E) {
1661
- return w(g, y, b, E);
1661
+ return v(g, y, b, E);
1662
1662
  };
1663
1663
  }
1664
1664
  function ee(u, m) {
1665
- if (v(u, m)) return 0;
1665
+ if (w(u, m)) return 0;
1666
1666
  if (i(u) === i(m)) {
1667
1667
  if (u > m) return 1;
1668
1668
  if (u < m) return -1;
@@ -1689,15 +1689,15 @@ function ma(t, e, n) {
1689
1689
  function fa(t, e) {
1690
1690
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, t.__proto__ = e;
1691
1691
  }
1692
- function wn(t) {
1693
- return wn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1692
+ function vn(t) {
1693
+ return vn = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
1694
1694
  return n.__proto__ || Object.getPrototypeOf(n);
1695
- }, wn(t);
1695
+ }, vn(t);
1696
1696
  }
1697
- function Ut(t, e) {
1698
- return Ut = Object.setPrototypeOf || function(r, s) {
1697
+ function St(t, e) {
1698
+ return St = Object.setPrototypeOf || function(r, s) {
1699
1699
  return r.__proto__ = s, r;
1700
- }, Ut(t, e);
1700
+ }, St(t, e);
1701
1701
  }
1702
1702
  function ga() {
1703
1703
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
@@ -1709,13 +1709,13 @@ function ga() {
1709
1709
  return !1;
1710
1710
  }
1711
1711
  }
1712
- function qt(t, e, n) {
1713
- return ga() ? qt = Reflect.construct : qt = function(s, i, a) {
1712
+ function Rt(t, e, n) {
1713
+ return ga() ? Rt = Reflect.construct : Rt = function(s, i, a) {
1714
1714
  var c = [null];
1715
1715
  c.push.apply(c, i);
1716
1716
  var l = Function.bind.apply(s, c), A = new l();
1717
- return a && Ut(A, a.prototype), A;
1718
- }, qt.apply(null, arguments);
1717
+ return a && St(A, a.prototype), A;
1718
+ }, Rt.apply(null, arguments);
1719
1719
  }
1720
1720
  function pa(t) {
1721
1721
  return Function.toString.call(t).indexOf("[native code]") !== -1;
@@ -1731,7 +1731,7 @@ function Bn(t) {
1731
1731
  e.set(r, s);
1732
1732
  }
1733
1733
  function s() {
1734
- return qt(r, arguments, wn(this).constructor);
1734
+ return Rt(r, arguments, vn(this).constructor);
1735
1735
  }
1736
1736
  return s.prototype = Object.create(r.prototype, {
1737
1737
  constructor: {
@@ -1740,7 +1740,7 @@ function Bn(t) {
1740
1740
  writable: !0,
1741
1741
  configurable: !0
1742
1742
  }
1743
- }), Ut(s, r);
1743
+ }), St(s, r);
1744
1744
  }, Bn(t);
1745
1745
  }
1746
1746
  function ir(t) {
@@ -1750,9 +1750,9 @@ function ir(t) {
1750
1750
  }
1751
1751
  var ss = function(e) {
1752
1752
  return 'Cannot execute "' + e.action + '" on "' + e.subjectName + '"';
1753
- }, Ft = ss, ya = /* @__PURE__ */ function(t) {
1753
+ }, xt = ss, ya = /* @__PURE__ */ function(t) {
1754
1754
  fa(e, t), e.setDefaultMessage = function(s) {
1755
- s === null ? Ft = ss : Ft = typeof s == "string" ? function() {
1755
+ s === null ? xt = ss : xt = typeof s == "string" ? function() {
1756
1756
  return s;
1757
1757
  } : s;
1758
1758
  }, e.from = function(s) {
@@ -1763,7 +1763,7 @@ var ss = function(e) {
1763
1763
  };
1764
1764
  function e(r, s) {
1765
1765
  var i;
1766
- return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || Ft(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
1766
+ return s === void 0 && (s = {}), i = t.call(this, r) || this, i._setMetadata(s), i.message = r || xt(ir(i)), i._customMessage = null, typeof Error.captureStackTrace == "function" && (i.name = i.constructor.name, Error.captureStackTrace(ir(i), i.constructor)), i;
1767
1767
  }
1768
1768
  var n = e.prototype;
1769
1769
  return n.setMessage = function(s) {
@@ -1780,7 +1780,7 @@ var ss = function(e) {
1780
1780
  subjectName: this.ability.subjectName(i)
1781
1781
  });
1782
1782
  var l = c ? c.reason : "";
1783
- throw this.message = this._customMessage || l || Ft(this), this;
1783
+ throw this.message = this._customMessage || l || xt(this), this;
1784
1784
  }
1785
1785
  }, n._setMetadata = function(s) {
1786
1786
  this.subject = s.subject, this.subjectName = s.subjectName, this.action = s.action, this.field = s.field;
@@ -1795,10 +1795,10 @@ function ba(t) {
1795
1795
  var e = typeof t == "object" ? t.constructor : t;
1796
1796
  return e.modelName || e.name;
1797
1797
  }
1798
- function va(t) {
1798
+ function wa(t) {
1799
1799
  return JSON.parse(JSON.stringify(t));
1800
1800
  }
1801
- var wa = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
1801
+ var va = /[-/\\^$+?.()|[\]{}]/g, Ba = /\.?\*+\.?/g, Da = /\*+/, Ca = /\./g;
1802
1802
  function Ea(t, e, n) {
1803
1803
  var r = n[0] === "*" || t[0] === "." && t[t.length - 1] === "." ? "+" : "*", s = t.indexOf("**") === -1 ? "[^.]" : ".", i = t.replace(Ca, "\\$&").replace(Da, s + r);
1804
1804
  return e + t.length === n.length ? "(?:" + i + ")?" : i;
@@ -1808,7 +1808,7 @@ function Ma(t, e, n) {
1808
1808
  }
1809
1809
  function Ia(t) {
1810
1810
  var e = t.map(function(r) {
1811
- return r.replace(wa, Ma).replace(Ba, Ea);
1811
+ return r.replace(va, Ma).replace(Ba, Ea);
1812
1812
  }), n = e.length > 1 ? "(?:" + e.join("|") + ")" : e[0];
1813
1813
  return new RegExp("^" + n + "$");
1814
1814
  }
@@ -1853,7 +1853,7 @@ var Oa = /* @__PURE__ */ function() {
1853
1853
  indexedRules: /* @__PURE__ */ Object.create(null),
1854
1854
  mergedRules: /* @__PURE__ */ Object.create(null),
1855
1855
  events: {},
1856
- aliases: va(ar)
1856
+ aliases: wa(ar)
1857
1857
  }, this.update(n);
1858
1858
  }
1859
1859
  var e = t.prototype;
@@ -1871,8 +1871,8 @@ var Oa = /* @__PURE__ */ function() {
1871
1871
  for (var s = /* @__PURE__ */ Object.create(null), i = this[te].RuleType, a = !0, c = !1, l = 0; l < r.length; l++) {
1872
1872
  var A = new i(r[l]), f = this.expandActions(A.actions), p = Dn(A.subject), B = r.length - l - 1;
1873
1873
  a = !!(a && A.inverted), !c && A.fields && (c = !0);
1874
- for (var w = 0; w < p.length; w++) {
1875
- var O = p[w];
1874
+ for (var v = 0; v < p.length; v++) {
1875
+ var O = p[v];
1876
1876
  s[O] = s[O] || /* @__PURE__ */ Object.create(null);
1877
1877
  for (var I = 0; I < f.length; I++) {
1878
1878
  var V = f[I];
@@ -2036,7 +2036,7 @@ async function ka(t, e) {
2036
2036
  }
2037
2037
  var Cn = /* @__PURE__ */ ((t) => (t.Loading = "loading", t.Allowed = "allowed", t.Denied = "denied", t))(Cn || {});
2038
2038
  function Ra() {
2039
- const t = ts(), { sessionUser: e } = rn();
2039
+ const t = ts(), { sessionUser: e } = nn();
2040
2040
  return ca(
2041
2041
  async () => {
2042
2042
  t.matched;
@@ -2075,7 +2075,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2075
2075
  subtitle: "โอ้! คุณไม่มีสิทธิ์เข้าถึงหน้านี้"
2076
2076
  }, za = {
2077
2077
  noPermission: Wa
2078
- }, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ tn({
2078
+ }, Za = { class: "w-full h-full flex justify-center items-center" }, La = { class: "flex flex-row xs:flex-col items-center gap-24 p-16" }, Ka = { class: "w-[300px] h-[300px]" }, Ja = ["src"], _a = { class: "text-2xl" }, $a = { class: "text-xl" }, eo = /* @__PURE__ */ en({
2079
2079
  __name: "NoPermission",
2080
2080
  setup(t) {
2081
2081
  const { t: e } = ns({
@@ -2086,7 +2086,7 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2086
2086
  "th-TH": za
2087
2087
  }
2088
2088
  });
2089
- return (n, r) => (nn(), Si("div", Za, [
2089
+ return (n, r) => (tn(), Si("div", Za, [
2090
2090
  Ke("div", La, [
2091
2091
  Ke("div", Ka, [
2092
2092
  Ke("img", {
@@ -2101,18 +2101,18 @@ const qa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
2101
2101
  ])
2102
2102
  ]));
2103
2103
  }
2104
- }), to = /* @__PURE__ */ tn({
2104
+ }), to = /* @__PURE__ */ en({
2105
2105
  __name: "PermissionWrapper",
2106
2106
  setup(t) {
2107
2107
  const e = Ra();
2108
- return (n, r) => ge(e) === ge(Cn).Denied ? (nn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2108
+ return (n, r) => ge(e) === ge(Cn).Denied ? (tn(), Hn(eo, { key: 0 })) : ge(e) === ge(Cn).Allowed ? Qi(n.$slots, "default", { key: 1 }) : Xi("", !0);
2109
2109
  }
2110
2110
  });
2111
2111
  function os(t) {
2112
2112
  return {
2113
2113
  inheritAttrs: !1,
2114
2114
  setup(e, { attrs: n }) {
2115
- return () => vn(to, {}, { default: () => vn(t, n) });
2115
+ return () => wn(to, {}, { default: () => wn(t, n) });
2116
2116
  }
2117
2117
  };
2118
2118
  }
@@ -2409,10 +2409,10 @@ const k = [
2409
2409
  ), bs = $(
2410
2410
  se,
2411
2411
  ho
2412
- ), vs = $(
2412
+ ), ws = $(
2413
2413
  se,
2414
2414
  mo
2415
- ), ws = $(
2415
+ ), vs = $(
2416
2416
  se,
2417
2417
  fo
2418
2418
  ), Bs = $(
@@ -2439,7 +2439,7 @@ const k = [
2439
2439
  o.delete
2440
2440
  ]
2441
2441
  }
2442
- ], vo = [
2442
+ ], wo = [
2443
2443
  ...k,
2444
2444
  {
2445
2445
  label: "Membership",
@@ -2451,7 +2451,7 @@ const k = [
2451
2451
  o.delete
2452
2452
  ]
2453
2453
  }
2454
- ], wo = $(
2454
+ ], vo = $(
2455
2455
  no,
2456
2456
  ro,
2457
2457
  cs,
@@ -2465,8 +2465,8 @@ const k = [
2465
2465
  ps,
2466
2466
  ys,
2467
2467
  bs,
2468
- vs,
2469
2468
  ws,
2469
+ vs,
2470
2470
  Bs,
2471
2471
  Ds,
2472
2472
  ds,
@@ -2480,11 +2480,11 @@ const k = [
2480
2480
  ), Do = $(
2481
2481
  se,
2482
2482
  bo
2483
- ), Co = $(vo), Eo = {
2483
+ ), Co = $(wo), Eo = {
2484
2484
  [`set_${d.crm}`]: {
2485
2485
  key: "sys:crm:access",
2486
2486
  name: "CRM Access",
2487
- permissions: wo
2487
+ permissions: vo
2488
2488
  },
2489
2489
  [`set_${d.crm_promotion}`]: {
2490
2490
  key: "sys:crm:promotion",
@@ -2529,12 +2529,12 @@ const k = [
2529
2529
  [`set_${d.crm_credit}`]: {
2530
2530
  key: "sys:crm:credit",
2531
2531
  name: "CRM Credit",
2532
- permissions: vs
2532
+ permissions: ws
2533
2533
  },
2534
2534
  [`set_${d.crm_experience}`]: {
2535
2535
  key: "sys:crm:experience",
2536
2536
  name: "CRM Experience",
2537
- permissions: ws
2537
+ permissions: vs
2538
2538
  },
2539
2539
  [`set_${d.crm_game}`]: {
2540
2540
  key: "sys:crm:game",
@@ -3157,7 +3157,7 @@ const Ho = () => ({
3157
3157
  sidebarDisplay: "Restaurants",
3158
3158
  section: "payment-gateway"
3159
3159
  },
3160
- component: () => import("./Restaurant-3EwpWvG0.js")
3160
+ component: () => import("./Restaurant-Bdike4SW.js")
3161
3161
  },
3162
3162
  {
3163
3163
  path: "/admin/restaurants/:restaurantId",
@@ -3166,7 +3166,7 @@ const Ho = () => ({
3166
3166
  meta: {
3167
3167
  parent: "mf-payment-admin.restaurant"
3168
3168
  },
3169
- component: () => import("./RestaurantSetting-Cq3qNh49.js")
3169
+ component: () => import("./RestaurantSetting-DSDzRmgE.js")
3170
3170
  },
3171
3171
  {
3172
3172
  path: "/admin/payout-accounts",
@@ -3175,7 +3175,7 @@ const Ho = () => ({
3175
3175
  sidebarDisplay: "Payout Accounts",
3176
3176
  section: "payment-gateway"
3177
3177
  },
3178
- component: () => import("./PayoutAccount-DjsO2Zmp.js")
3178
+ component: () => import("./PayoutAccount-Dw-_pf4z.js")
3179
3179
  },
3180
3180
  {
3181
3181
  path: "/admin/payout-accounts/:accountId",
@@ -3184,7 +3184,7 @@ const Ho = () => ({
3184
3184
  meta: {
3185
3185
  parent: "mf-payment-admin.payout-account"
3186
3186
  },
3187
- component: () => import("./PayoutAccountSetting-BThyDhBb.js")
3187
+ component: () => import("./PayoutAccountSetting-DSk8ZV9p.js")
3188
3188
  },
3189
3189
  {
3190
3190
  path: "/admin/onboarding",
@@ -3193,7 +3193,7 @@ const Ho = () => ({
3193
3193
  sidebarDisplay: "Payment Onboarding",
3194
3194
  section: "payment-gateway"
3195
3195
  },
3196
- component: () => import("./OnboardSubmission-sakKTYkk.js")
3196
+ component: () => import("./OnboardSubmission-D2ebcVnG.js")
3197
3197
  },
3198
3198
  {
3199
3199
  path: "/admin/onboarding/:submissionId",
@@ -3202,7 +3202,7 @@ const Ho = () => ({
3202
3202
  meta: {
3203
3203
  parent: "mf-payment-admin.onboard-submission"
3204
3204
  },
3205
- component: () => import("./OnboardForm-DLmRWhzp.js")
3205
+ component: () => import("./OnboardForm-F2Qcvalp.js")
3206
3206
  },
3207
3207
  {
3208
3208
  path: "/admin/terminal/pos",
@@ -3211,7 +3211,7 @@ const Ho = () => ({
3211
3211
  sidebarDisplay: "POS",
3212
3212
  section: "device"
3213
3213
  },
3214
- component: () => import("./Terminal-CaFd1Gc_.js"),
3214
+ component: () => import("./Terminal-BwHi929R.js"),
3215
3215
  props: {
3216
3216
  type: "POS"
3217
3217
  }
@@ -3223,7 +3223,7 @@ const Ho = () => ({
3223
3223
  sidebarDisplay: "Kiosks",
3224
3224
  section: "device"
3225
3225
  },
3226
- component: () => import("./Terminal-CaFd1Gc_.js"),
3226
+ component: () => import("./Terminal-BwHi929R.js"),
3227
3227
  props: {
3228
3228
  type: "KIOSK"
3229
3229
  }
@@ -3235,7 +3235,7 @@ const Ho = () => ({
3235
3235
  sidebarDisplay: "Terminals",
3236
3236
  section: "device"
3237
3237
  },
3238
- component: () => import("./Terminal-CaFd1Gc_.js"),
3238
+ component: () => import("./Terminal-BwHi929R.js"),
3239
3239
  props: {
3240
3240
  type: "TERMINAL"
3241
3241
  }
@@ -3247,7 +3247,7 @@ const Ho = () => ({
3247
3247
  meta: {
3248
3248
  parent: "mf-payment-admin.pos"
3249
3249
  },
3250
- component: () => import("./TerminalSetting-D0SFEEFS.js")
3250
+ component: () => import("./TerminalSetting-ZA-ADJVD.js")
3251
3251
  },
3252
3252
  {
3253
3253
  path: "/admin/terminal/kiosk/:terminalId",
@@ -3256,7 +3256,7 @@ const Ho = () => ({
3256
3256
  meta: {
3257
3257
  parent: "mf-payment-admin.kiosk"
3258
3258
  },
3259
- component: () => import("./TerminalSetting-D0SFEEFS.js")
3259
+ component: () => import("./TerminalSetting-ZA-ADJVD.js")
3260
3260
  },
3261
3261
  {
3262
3262
  path: "/admin/terminal/terminal/:terminalId",
@@ -3265,7 +3265,7 @@ const Ho = () => ({
3265
3265
  meta: {
3266
3266
  parent: "mf-payment-admin.terminal"
3267
3267
  },
3268
- component: () => import("./TerminalSetting-D0SFEEFS.js")
3268
+ component: () => import("./TerminalSetting-ZA-ADJVD.js")
3269
3269
  },
3270
3270
  {
3271
3271
  path: "/admin/transaction",
@@ -3273,7 +3273,7 @@ const Ho = () => ({
3273
3273
  meta: {
3274
3274
  sidebarDisplay: "Transactions"
3275
3275
  },
3276
- component: () => import("./Transaction-C7k-A1m0.js")
3276
+ component: () => import("./Transaction-BvvdK0go.js")
3277
3277
  },
3278
3278
  {
3279
3279
  path: "/admin/chargeback",
@@ -3281,7 +3281,7 @@ const Ho = () => ({
3281
3281
  meta: {
3282
3282
  sidebarDisplay: "Chargebacks"
3283
3283
  },
3284
- component: () => import("./Chargeback-CZJQQ9gc.js")
3284
+ component: () => import("./Chargeback-xwB_glv5.js")
3285
3285
  },
3286
3286
  {
3287
3287
  path: "/admin/settlement",
@@ -3289,7 +3289,7 @@ const Ho = () => ({
3289
3289
  meta: {
3290
3290
  sidebarDisplay: "Settlements"
3291
3291
  },
3292
- component: () => import("./Settlement-CkYnzrb9.js")
3292
+ component: () => import("./Settlement-Cw6JGHxU.js")
3293
3293
  },
3294
3294
  {
3295
3295
  path: "/admin/settlement/:settlementId",
@@ -3298,7 +3298,7 @@ const Ho = () => ({
3298
3298
  meta: {
3299
3299
  parent: "mf-payment-admin.settlement"
3300
3300
  },
3301
- component: () => import("./SettlementTransactions-Ku_4e-zv.js")
3301
+ component: () => import("./SettlementTransactions-BlRbAo_K.js")
3302
3302
  }
3303
3303
  ].map((t) => ({
3304
3304
  ...t,
@@ -3306,7 +3306,7 @@ const Ho = () => ({
3306
3306
  ...t.meta,
3307
3307
  ...Ho()
3308
3308
  }
3309
- })), bt = [
3309
+ })), rn = [
3310
3310
  {
3311
3311
  path: "",
3312
3312
  redirect: { name: "mf-payment-payout-account" }
@@ -3314,7 +3314,7 @@ const Ho = () => ({
3314
3314
  {
3315
3315
  path: "/payout-account",
3316
3316
  name: "mf-payment-payout-account",
3317
- component: () => import("./PayoutAccount-BbL0ZGIp.js"),
3317
+ component: () => import("./PayoutAccount-CIek2Qnh.js"),
3318
3318
  meta: {
3319
3319
  sidebarDisplay: "i18n:payment.routes.payout_account",
3320
3320
  region: { MY: !0 },
@@ -3331,7 +3331,7 @@ const Ho = () => ({
3331
3331
  {
3332
3332
  path: "/onboard-submission",
3333
3333
  name: "mf-payment-onboard-submission",
3334
- component: () => import("./OnboardSubmission-DJ7rU1wZ.js"),
3334
+ component: () => import("./OnboardSubmission-0hfx_f8i.js"),
3335
3335
  meta: {
3336
3336
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
3337
3337
  region: { MY: !0, TH: !0, AU: !0 },
@@ -3349,7 +3349,7 @@ const Ho = () => ({
3349
3349
  path: "/onboard-submission/restaurant/:restaurantId/:type/:submission?",
3350
3350
  name: "mf-payment-onboard-submission-form",
3351
3351
  props: !0,
3352
- component: () => import("./OnboardForm-B53FxupS.js"),
3352
+ component: () => import("./OnboardForm-DKhsjm3n.js"),
3353
3353
  meta: {
3354
3354
  parent: "mf-payment-onboard-submission",
3355
3355
  validationManifest: {
@@ -3365,7 +3365,7 @@ const Ho = () => ({
3365
3365
  {
3366
3366
  path: "/transaction-old",
3367
3367
  name: "mf-payment-old-transaction",
3368
- component: () => import("./TransactionOld-CcD_aF2l.js"),
3368
+ component: () => import("./TransactionOld-B0fQrQ7W.js"),
3369
3369
  meta: {
3370
3370
  sidebarDisplay: "i18n:payment.routes.transaction",
3371
3371
  validationManifest: {
@@ -3381,7 +3381,7 @@ const Ho = () => ({
3381
3381
  {
3382
3382
  path: "/transaction",
3383
3383
  name: "mf-payment-transaction",
3384
- component: () => import("./Transaction-gu5LaYsT.js"),
3384
+ component: () => import("./Transaction-DqwB7HTI.js"),
3385
3385
  meta: {
3386
3386
  sidebarDisplay: "i18n:payment.routes.transaction_new",
3387
3387
  sidebarNew: !0,
@@ -3398,7 +3398,7 @@ const Ho = () => ({
3398
3398
  {
3399
3399
  path: "/settlement",
3400
3400
  name: "mf-payment-settlement",
3401
- component: () => import("./Settlement-Yt7S32M5.js"),
3401
+ component: () => import("./Settlement-BEhvMZje.js"),
3402
3402
  meta: {
3403
3403
  sidebarDisplay: "i18n:payment.routes.settlement",
3404
3404
  region: { MY: !0, SG: !0 },
@@ -3416,7 +3416,7 @@ const Ho = () => ({
3416
3416
  path: "/settlement/:settlementId",
3417
3417
  name: "mf-payment-settlement-transaction",
3418
3418
  props: !0,
3419
- component: () => import("./SettlementTransactions-Cb9qJOEj.js"),
3419
+ component: () => import("./SettlementTransactions-yczyKInV.js"),
3420
3420
  meta: {
3421
3421
  parent: "mf-payment-settlement",
3422
3422
  validationManifest: {
@@ -3584,8 +3584,8 @@ const Vs = function(t) {
3584
3584
  const n = e ? this.byteToCharMapWebSafe_ : this.byteToCharMap_, r = [];
3585
3585
  for (let s = 0; s < t.length; s += 3) {
3586
3586
  const i = t[s], a = s + 1 < t.length, c = a ? t[s + 1] : 0, l = s + 2 < t.length, A = l ? t[s + 2] : 0, f = i >> 2, p = (i & 3) << 4 | c >> 4;
3587
- let B = (c & 15) << 2 | A >> 6, w = A & 63;
3588
- l || (w = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[w]);
3587
+ let B = (c & 15) << 2 | A >> 6, v = A & 63;
3588
+ l || (v = 64, a || (B = 64)), r.push(n[f], n[p], n[B], n[v]);
3589
3589
  }
3590
3590
  return r.join("");
3591
3591
  },
@@ -3639,8 +3639,8 @@ const Vs = function(t) {
3639
3639
  throw new So();
3640
3640
  const B = i << 2 | c >> 4;
3641
3641
  if (r.push(B), A !== 64) {
3642
- const w = c << 4 & 240 | A >> 2;
3643
- if (r.push(w), p !== 64) {
3642
+ const v = c << 4 & 240 | A >> 2;
3643
+ if (r.push(v), p !== 64) {
3644
3644
  const O = A << 6 & 192 | p;
3645
3645
  r.push(O);
3646
3646
  }
@@ -3872,10 +3872,10 @@ function sc() {
3872
3872
  const ic = "FirebaseError";
3873
3873
  class qe extends Error {
3874
3874
  constructor(e, n, r) {
3875
- super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, Pt.prototype.create);
3875
+ super(n), this.code = e, this.customData = r, this.name = ic, Object.setPrototypeOf(this, qe.prototype), Error.captureStackTrace && Error.captureStackTrace(this, It.prototype.create);
3876
3876
  }
3877
3877
  }
3878
- class Pt {
3878
+ class It {
3879
3879
  constructor(e, n, r) {
3880
3880
  this.service = e, this.serviceName = n, this.errors = r;
3881
3881
  }
@@ -3897,7 +3897,7 @@ function cc(t) {
3897
3897
  return !1;
3898
3898
  return !0;
3899
3899
  }
3900
- function Wt(t, e) {
3900
+ function Ut(t, e) {
3901
3901
  if (t === e)
3902
3902
  return !0;
3903
3903
  const n = Object.keys(t), r = Object.keys(e);
@@ -3906,7 +3906,7 @@ function Wt(t, e) {
3906
3906
  return !1;
3907
3907
  const i = t[s], a = e[s];
3908
3908
  if (ur(i) && ur(a)) {
3909
- if (!Wt(i, a))
3909
+ if (!Ut(i, a))
3910
3910
  return !1;
3911
3911
  } else if (i !== a)
3912
3912
  return !1;
@@ -3935,7 +3935,7 @@ function ur(t) {
3935
3935
  * See the License for the specific language governing permissions and
3936
3936
  * limitations under the License.
3937
3937
  */
3938
- function Ot(t) {
3938
+ function Pt(t) {
3939
3939
  const e = [];
3940
3940
  for (const [n, r] of Object.entries(t))
3941
3941
  Array.isArray(r) ? r.forEach((s) => {
@@ -4428,9 +4428,9 @@ class Ns {
4428
4428
  this._userLogHandler && this._userLogHandler(this, F.ERROR, ...e), this._logHandler(this, F.ERROR, ...e);
4429
4429
  }
4430
4430
  }
4431
- const vc = (t, e) => e.some((n) => t instanceof n);
4431
+ const wc = (t, e) => e.some((n) => t instanceof n);
4432
4432
  let lr, Ar;
4433
- function wc() {
4433
+ function vc() {
4434
4434
  return lr || (lr = [
4435
4435
  IDBDatabase,
4436
4436
  IDBObjectStore,
@@ -4511,7 +4511,7 @@ function Mc(t) {
4511
4511
  };
4512
4512
  }
4513
4513
  function Ic(t) {
4514
- return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), vc(t, wc()) ? new Proxy(t, Mn) : t);
4514
+ return typeof t == "function" ? Mc(t) : (t instanceof IDBTransaction && Cc(t), wc(t, vc()) ? new Proxy(t, Mn) : t);
4515
4515
  }
4516
4516
  function Fe(t) {
4517
4517
  if (t instanceof IDBRequest)
@@ -4616,7 +4616,7 @@ const In = "@firebase/app", hr = "0.10.13";
4616
4616
  * See the License for the specific language governing permissions and
4617
4617
  * limitations under the License.
4618
4618
  */
4619
- const we = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
4619
+ const ve = new Ns("@firebase/app"), Yc = "@firebase/app-compat", Vc = "@firebase/analytics-compat", xc = "@firebase/analytics", Fc = "@firebase/app-check-compat", kc = "@firebase/app-check", Rc = "@firebase/auth", qc = "@firebase/auth-compat", Nc = "@firebase/database", Hc = "@firebase/data-connect", Qc = "@firebase/database-compat", Xc = "@firebase/functions", Sc = "@firebase/functions-compat", Uc = "@firebase/installations", Wc = "@firebase/installations-compat", zc = "@firebase/messaging", Zc = "@firebase/messaging-compat", Lc = "@firebase/performance", Kc = "@firebase/performance-compat", Jc = "@firebase/remote-config", _c = "@firebase/remote-config-compat", $c = "@firebase/storage", eu = "@firebase/storage-compat", tu = "@firebase/firestore", nu = "@firebase/vertexai-preview", ru = "@firebase/firestore-compat", su = "firebase", iu = "10.14.1";
4620
4620
  /**
4621
4621
  * @license
4622
4622
  * Copyright 2019 Google LLC
@@ -4679,20 +4679,20 @@ const Pn = "[DEFAULT]", au = {
4679
4679
  * See the License for the specific language governing permissions and
4680
4680
  * limitations under the License.
4681
4681
  */
4682
- const zt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
4682
+ const Wt = /* @__PURE__ */ new Map(), ou = /* @__PURE__ */ new Map(), On = /* @__PURE__ */ new Map();
4683
4683
  function mr(t, e) {
4684
4684
  try {
4685
4685
  t.container.addComponent(e);
4686
4686
  } catch (n) {
4687
- we.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
4687
+ ve.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`, n);
4688
4688
  }
4689
4689
  }
4690
- function vt(t) {
4690
+ function bt(t) {
4691
4691
  const e = t.name;
4692
4692
  if (On.has(e))
4693
- return we.debug(`There were multiple attempts to register component ${e}.`), !1;
4693
+ return ve.debug(`There were multiple attempts to register component ${e}.`), !1;
4694
4694
  On.set(e, t);
4695
- for (const n of zt.values())
4695
+ for (const n of Wt.values())
4696
4696
  mr(n, t);
4697
4697
  for (const n of ou.values())
4698
4698
  mr(n, t);
@@ -4736,7 +4736,7 @@ const cu = {
4736
4736
  "idb-delete": "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
4737
4737
  "finalization-registry-not-supported": "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
4738
4738
  "invalid-server-app-environment": "FirebaseServerApp is not for use in browser environments."
4739
- }, ke = new Pt("app", "Firebase", cu);
4739
+ }, ke = new It("app", "Firebase", cu);
4740
4740
  /**
4741
4741
  * @license
4742
4742
  * Copyright 2019 Google LLC
@@ -4811,7 +4811,7 @@ class uu {
4811
4811
  * See the License for the specific language governing permissions and
4812
4812
  * limitations under the License.
4813
4813
  */
4814
- const Tt = iu;
4814
+ const Ot = iu;
4815
4815
  function Ss(t, e = {}) {
4816
4816
  let n = t;
4817
4817
  typeof e != "object" && (e = { name: e });
@@ -4825,9 +4825,9 @@ function Ss(t, e = {}) {
4825
4825
  "no-options"
4826
4826
  /* AppError.NO_OPTIONS */
4827
4827
  );
4828
- const i = zt.get(s);
4828
+ const i = Wt.get(s);
4829
4829
  if (i) {
4830
- if (Wt(n, i.options) && Wt(r, i.config))
4830
+ if (Ut(n, i.options) && Ut(r, i.config))
4831
4831
  return i;
4832
4832
  throw ke.create("duplicate-app", { appName: s });
4833
4833
  }
@@ -4835,10 +4835,10 @@ function Ss(t, e = {}) {
4835
4835
  for (const l of On.values())
4836
4836
  a.addComponent(l);
4837
4837
  const c = new uu(n, r, a);
4838
- return zt.set(s, c), c;
4838
+ return Wt.set(s, c), c;
4839
4839
  }
4840
4840
  function lu(t = Pn) {
4841
- const e = zt.get(t);
4841
+ const e = Wt.get(t);
4842
4842
  if (!e && t === Pn && Rs())
4843
4843
  return Ss();
4844
4844
  if (!e)
@@ -4854,10 +4854,10 @@ function $e(t, e, n) {
4854
4854
  const c = [
4855
4855
  `Unable to register library "${s}" with version "${e}":`
4856
4856
  ];
4857
- i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), we.warn(c.join(" "));
4857
+ i && c.push(`library name "${s}" contains illegal characters (whitespace or "/")`), i && a && c.push("and"), a && c.push(`version name "${e}" contains illegal characters (whitespace or "/")`), ve.warn(c.join(" "));
4858
4858
  return;
4859
4859
  }
4860
- vt(new dt(
4860
+ bt(new dt(
4861
4861
  `${s}-version`,
4862
4862
  () => ({ library: s, version: e }),
4863
4863
  "VERSION"
@@ -4906,12 +4906,12 @@ async function hu(t) {
4906
4906
  return await n.done, r;
4907
4907
  } catch (e) {
4908
4908
  if (e instanceof qe)
4909
- we.warn(e.message);
4909
+ ve.warn(e.message);
4910
4910
  else {
4911
4911
  const n = ke.create("idb-get", {
4912
4912
  originalErrorMessage: e == null ? void 0 : e.message
4913
4913
  });
4914
- we.warn(n.message);
4914
+ ve.warn(n.message);
4915
4915
  }
4916
4916
  }
4917
4917
  }
@@ -4921,12 +4921,12 @@ async function fr(t, e) {
4921
4921
  await r.objectStore(wt).put(e, Ws(t)), await r.done;
4922
4922
  } catch (n) {
4923
4923
  if (n instanceof qe)
4924
- we.warn(n.message);
4924
+ ve.warn(n.message);
4925
4925
  else {
4926
4926
  const r = ke.create("idb-set", {
4927
4927
  originalErrorMessage: n == null ? void 0 : n.message
4928
4928
  });
4929
- we.warn(r.message);
4929
+ ve.warn(r.message);
4930
4930
  }
4931
4931
  }
4932
4932
  }
@@ -4972,7 +4972,7 @@ class gu {
4972
4972
  return Date.now() - c <= fu;
4973
4973
  }), this._storage.overwrite(this._heartbeatsCache));
4974
4974
  } catch (r) {
4975
- we.warn(r);
4975
+ ve.warn(r);
4976
4976
  }
4977
4977
  }
4978
4978
  /**
@@ -4990,7 +4990,7 @@ class gu {
4990
4990
  const n = gr(), { heartbeatsToSend: r, unsentEntries: s } = pu(this._heartbeatsCache.heartbeats), i = Fs(JSON.stringify({ version: 2, heartbeats: r }));
4991
4991
  return this._heartbeatsCache.lastSentHeartbeatDate = n, s.length > 0 ? (this._heartbeatsCache.heartbeats = s, await this._storage.overwrite(this._heartbeatsCache)) : (this._heartbeatsCache.heartbeats = [], this._storage.overwrite(this._heartbeatsCache)), i;
4992
4992
  } catch (n) {
4993
- return we.warn(n), "";
4993
+ return ve.warn(n), "";
4994
4994
  }
4995
4995
  }
4996
4996
  }
@@ -5089,12 +5089,12 @@ function pr(t) {
5089
5089
  * limitations under the License.
5090
5090
  */
5091
5091
  function bu(t) {
5092
- vt(new dt(
5092
+ bt(new dt(
5093
5093
  "platform-logger",
5094
5094
  (e) => new Gc(e),
5095
5095
  "PRIVATE"
5096
5096
  /* ComponentType.PRIVATE */
5097
- )), vt(new dt(
5097
+ )), bt(new dt(
5098
5098
  "heartbeat",
5099
5099
  (e) => new gu(e),
5100
5100
  "PRIVATE"
@@ -5102,7 +5102,7 @@ function bu(t) {
5102
5102
  )), $e(In, hr, t), $e(In, hr, "esm2017"), $e("fire-js", "");
5103
5103
  }
5104
5104
  bu("");
5105
- var vu = "firebase", wu = "10.14.1";
5105
+ var wu = "firebase", vu = "10.14.1";
5106
5106
  /**
5107
5107
  * @license
5108
5108
  * Copyright 2020 Google LLC
@@ -5119,7 +5119,7 @@ var vu = "firebase", wu = "10.14.1";
5119
5119
  * See the License for the specific language governing permissions and
5120
5120
  * limitations under the License.
5121
5121
  */
5122
- $e(vu, wu, "app");
5122
+ $e(wu, vu, "app");
5123
5123
  var yr = function() {
5124
5124
  return yr = Object.assign || function(e) {
5125
5125
  for (var n, r = 1, s = arguments.length; r < s; r++) {
@@ -5142,7 +5142,7 @@ function zs() {
5142
5142
  "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."
5143
5143
  };
5144
5144
  }
5145
- const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
5145
+ const Bu = zs, Zs = new It("auth", "Firebase", zs());
5146
5146
  /**
5147
5147
  * @license
5148
5148
  * Copyright 2020 Google LLC
@@ -5159,12 +5159,12 @@ const Bu = zs, Zs = new Pt("auth", "Firebase", zs());
5159
5159
  * See the License for the specific language governing permissions and
5160
5160
  * limitations under the License.
5161
5161
  */
5162
- const Zt = new Ns("@firebase/auth");
5162
+ const zt = new Ns("@firebase/auth");
5163
5163
  function Du(t, ...e) {
5164
- Zt.logLevel <= F.WARN && Zt.warn(`Auth (${Tt}): ${t}`, ...e);
5164
+ zt.logLevel <= F.WARN && zt.warn(`Auth (${Ot}): ${t}`, ...e);
5165
5165
  }
5166
- function Nt(t, ...e) {
5167
- Zt.logLevel <= F.ERROR && Zt.error(`Auth (${Tt}): ${t}`, ...e);
5166
+ function qt(t, ...e) {
5167
+ zt.logLevel <= F.ERROR && zt.error(`Auth (${Ot}): ${t}`, ...e);
5168
5168
  }
5169
5169
  /**
5170
5170
  * @license
@@ -5190,7 +5190,7 @@ function Ae(t, ...e) {
5190
5190
  }
5191
5191
  function Ls(t, e, n) {
5192
5192
  const r = Object.assign(Object.assign({}, Bu()), { [e]: n });
5193
- return new Pt("auth", "Firebase", r).create(e, {
5193
+ return new It("auth", "Firebase", r).create(e, {
5194
5194
  appName: t.name
5195
5195
  });
5196
5196
  }
@@ -5210,7 +5210,7 @@ function M(t, e, ...n) {
5210
5210
  }
5211
5211
  function ye(t) {
5212
5212
  const e = "INTERNAL ASSERTION FAILED: " + t;
5213
- throw Nt(e), new Error(e);
5213
+ throw qt(e), new Error(e);
5214
5214
  }
5215
5215
  function De(t, e) {
5216
5216
  t || ye(e);
@@ -5294,7 +5294,7 @@ function Mu() {
5294
5294
  * See the License for the specific language governing permissions and
5295
5295
  * limitations under the License.
5296
5296
  */
5297
- class Gt {
5297
+ class Tt {
5298
5298
  constructor(e, n) {
5299
5299
  this.shortDelay = e, this.longDelay = n, De(n > e, "Short delay should be less than long delay!"), this.isMobile = _o() || tc();
5300
5300
  }
@@ -5484,7 +5484,7 @@ const Iu = {
5484
5484
  * See the License for the specific language governing permissions and
5485
5485
  * limitations under the License.
5486
5486
  */
5487
- const Pu = new Gt(3e4, 6e4);
5487
+ const Pu = new Tt(3e4, 6e4);
5488
5488
  function sn(t, e) {
5489
5489
  return t.tenantId && !e.tenantId ? Object.assign(Object.assign({}, e), { tenantId: t.tenantId }) : e;
5490
5490
  }
@@ -5494,7 +5494,7 @@ async function mt(t, e, n, r, s = {}) {
5494
5494
  r && (e === "GET" ? a = r : i = {
5495
5495
  body: JSON.stringify(r)
5496
5496
  });
5497
- const c = Ot(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
5497
+ const c = Pt(Object.assign({ key: t.config.apiKey }, a)).slice(1), l = await t._getAdditionalHeaders();
5498
5498
  l[
5499
5499
  "Content-Type"
5500
5500
  /* HttpHeader.CONTENT_TYPE */
@@ -5520,17 +5520,17 @@ async function Js(t, e, n) {
5520
5520
  s.clearNetworkTimeout();
5521
5521
  const a = await i.json();
5522
5522
  if ("needConfirmation" in a)
5523
- throw kt(t, "account-exists-with-different-credential", a);
5523
+ throw Ft(t, "account-exists-with-different-credential", a);
5524
5524
  if (i.ok && !("errorMessage" in a))
5525
5525
  return a;
5526
5526
  {
5527
5527
  const c = i.ok ? a.errorMessage : a.error.message, [l, A] = c.split(" : ");
5528
5528
  if (l === "FEDERATED_USER_ID_ALREADY_LINKED")
5529
- throw kt(t, "credential-already-in-use", a);
5529
+ throw Ft(t, "credential-already-in-use", a);
5530
5530
  if (l === "EMAIL_EXISTS")
5531
- throw kt(t, "email-already-in-use", a);
5531
+ throw Ft(t, "email-already-in-use", a);
5532
5532
  if (l === "USER_DISABLED")
5533
- throw kt(t, "user-disabled", a);
5533
+ throw Ft(t, "user-disabled", a);
5534
5534
  const f = r[l] || l.toLowerCase().replace(/[_\s]+/g, "-");
5535
5535
  if (A)
5536
5536
  throw Ls(t, f, A);
@@ -5566,7 +5566,7 @@ class Ou {
5566
5566
  clearTimeout(this.timer);
5567
5567
  }
5568
5568
  }
5569
- function kt(t, e, n) {
5569
+ function Ft(t, e, n) {
5570
5570
  const r = {
5571
5571
  appName: t.name
5572
5572
  };
@@ -5646,15 +5646,15 @@ function yn(t) {
5646
5646
  function Ln(t) {
5647
5647
  const [e, n, r] = t.split(".");
5648
5648
  if (e === void 0 || n === void 0 || r === void 0)
5649
- return Nt("JWT malformed, contained fewer than 3 sections"), null;
5649
+ return qt("JWT malformed, contained fewer than 3 sections"), null;
5650
5650
  try {
5651
5651
  const s = ks(n);
5652
- return s ? JSON.parse(s) : (Nt("Failed to decode base64 JWT payload"), null);
5652
+ return s ? JSON.parse(s) : (qt("Failed to decode base64 JWT payload"), null);
5653
5653
  } catch (s) {
5654
- return Nt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5654
+ return qt("Caught error parsing JWT payload as JSON", s == null ? void 0 : s.toString()), null;
5655
5655
  }
5656
5656
  }
5657
- function vr(t) {
5657
+ function wr(t) {
5658
5658
  const e = Ln(t);
5659
5659
  return M(
5660
5660
  e,
@@ -5686,7 +5686,7 @@ function vr(t) {
5686
5686
  * See the License for the specific language governing permissions and
5687
5687
  * limitations under the License.
5688
5688
  */
5689
- async function Bt(t, e, n = !1) {
5689
+ async function vt(t, e, n = !1) {
5690
5690
  if (n)
5691
5691
  return e;
5692
5692
  try {
@@ -5809,9 +5809,9 @@ class Gn {
5809
5809
  * See the License for the specific language governing permissions and
5810
5810
  * limitations under the License.
5811
5811
  */
5812
- async function Lt(t) {
5812
+ async function Zt(t) {
5813
5813
  var e;
5814
- const n = t.auth, r = await t.getIdToken(), s = await Bt(t, ei(n, { idToken: r }));
5814
+ const n = t.auth, r = await t.getIdToken(), s = await vt(t, ei(n, { idToken: r }));
5815
5815
  M(
5816
5816
  s == null ? void 0 : s.users.length,
5817
5817
  n,
@@ -5836,7 +5836,7 @@ async function Lt(t) {
5836
5836
  }
5837
5837
  async function Vu(t) {
5838
5838
  const e = ht(t);
5839
- await Lt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5839
+ await Zt(e), await e.auth._persistUserIfCurrent(e), e.auth._notifyListenersIfCurrent(e);
5840
5840
  }
5841
5841
  function xu(t, e) {
5842
5842
  return [...t.filter((r) => !e.some((s) => s.providerId === r.providerId)), ...e];
@@ -5872,7 +5872,7 @@ function ti(t) {
5872
5872
  */
5873
5873
  async function Fu(t, e) {
5874
5874
  const n = await Js(t, {}, async () => {
5875
- const r = Ot({
5875
+ const r = Pt({
5876
5876
  grant_type: "refresh_token",
5877
5877
  refresh_token: e
5878
5878
  }).slice(1), { tokenApiHost: s, apiKey: i } = t.config, a = $s(t, s, "/v1/token", `key=${i}`), c = await t._getAdditionalHeaders();
@@ -5931,7 +5931,7 @@ class et {
5931
5931
  "internal-error"
5932
5932
  /* AuthErrorCode.INTERNAL_ERROR */
5933
5933
  );
5934
- const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : vr(e.idToken);
5934
+ const n = "expiresIn" in e && typeof e.expiresIn < "u" ? Number(e.expiresIn) : wr(e.idToken);
5935
5935
  this.updateTokensAndExpiration(e.idToken, e.refreshToken, n);
5936
5936
  }
5937
5937
  updateFromIdToken(e) {
@@ -5940,7 +5940,7 @@ class et {
5940
5940
  "internal-error"
5941
5941
  /* AuthErrorCode.INTERNAL_ERROR */
5942
5942
  );
5943
- const n = vr(e);
5943
+ const n = wr(e);
5944
5944
  this.updateTokensAndExpiration(e, null, n);
5945
5945
  }
5946
5946
  async getToken(e, n = !1) {
@@ -6013,7 +6013,7 @@ class be {
6013
6013
  this.providerId = "firebase", this.proactiveRefresh = new Yu(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = s, this.accessToken = s.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new Gn(i.createdAt || void 0, i.lastLoginAt || void 0);
6014
6014
  }
6015
6015
  async getIdToken(e) {
6016
- const n = await Bt(this, this.stsTokenManager.getToken(this.auth, e));
6016
+ const n = await vt(this, this.stsTokenManager.getToken(this.auth, e));
6017
6017
  return M(
6018
6018
  n,
6019
6019
  this.auth,
@@ -6058,13 +6058,13 @@ class be {
6058
6058
  }
6059
6059
  async _updateTokensIfNecessary(e, n = !1) {
6060
6060
  let r = !1;
6061
- e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Lt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
6061
+ e.idToken && e.idToken !== this.stsTokenManager.accessToken && (this.stsTokenManager.updateFromServerResponse(e), r = !0), n && await Zt(this), await this.auth._persistUserIfCurrent(this), r && this.auth._notifyListenersIfCurrent(this);
6062
6062
  }
6063
6063
  async delete() {
6064
6064
  if (pe(this.auth.app))
6065
6065
  return Promise.reject(Re(this.auth));
6066
6066
  const e = await this.getIdToken();
6067
- return await Bt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
6067
+ return await vt(this, Tu(this.auth, { idToken: e })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
6068
6068
  }
6069
6069
  toJSON() {
6070
6070
  return Object.assign(Object.assign({
@@ -6092,7 +6092,7 @@ class be {
6092
6092
  }
6093
6093
  static _fromJSON(e, n) {
6094
6094
  var r, s, i, a, c, l, A, f;
6095
- const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, w = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: v, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
6095
+ const p = (r = n.displayName) !== null && r !== void 0 ? r : void 0, B = (s = n.email) !== null && s !== void 0 ? s : void 0, v = (i = n.phoneNumber) !== null && i !== void 0 ? i : void 0, O = (a = n.photoURL) !== null && a !== void 0 ? a : void 0, I = (c = n.tenantId) !== null && c !== void 0 ? c : void 0, V = (l = n._redirectEventId) !== null && l !== void 0 ? l : void 0, R = (A = n.createdAt) !== null && A !== void 0 ? A : void 0, Q = (f = n.lastLoginAt) !== null && f !== void 0 ? f : void 0, { uid: Y, emailVerified: w, isAnonymous: H, providerData: U, stsTokenManager: ee } = n;
6096
6096
  M(
6097
6097
  Y && ee,
6098
6098
  e,
@@ -6106,7 +6106,7 @@ class be {
6106
6106
  "internal-error"
6107
6107
  /* AuthErrorCode.INTERNAL_ERROR */
6108
6108
  ), Ee(p, e.name), Ee(B, e.name), M(
6109
- typeof v == "boolean",
6109
+ typeof w == "boolean",
6110
6110
  e,
6111
6111
  "internal-error"
6112
6112
  /* AuthErrorCode.INTERNAL_ERROR */
@@ -6115,16 +6115,16 @@ class be {
6115
6115
  e,
6116
6116
  "internal-error"
6117
6117
  /* AuthErrorCode.INTERNAL_ERROR */
6118
- ), Ee(w, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
6118
+ ), Ee(v, e.name), Ee(O, e.name), Ee(I, e.name), Ee(V, e.name), Ee(R, e.name), Ee(Q, e.name);
6119
6119
  const u = new be({
6120
6120
  uid: Y,
6121
6121
  auth: e,
6122
6122
  email: B,
6123
- emailVerified: v,
6123
+ emailVerified: w,
6124
6124
  displayName: p,
6125
6125
  isAnonymous: H,
6126
6126
  photoURL: O,
6127
- phoneNumber: w,
6127
+ phoneNumber: v,
6128
6128
  tenantId: I,
6129
6129
  stsTokenManager: q,
6130
6130
  createdAt: R,
@@ -6146,7 +6146,7 @@ class be {
6146
6146
  stsTokenManager: s,
6147
6147
  isAnonymous: r
6148
6148
  });
6149
- return await Lt(i), i;
6149
+ return await Zt(i), i;
6150
6150
  }
6151
6151
  /**
6152
6152
  * Initialize a User from an idToken server response
@@ -6198,11 +6198,11 @@ class be {
6198
6198
  * See the License for the specific language governing permissions and
6199
6199
  * limitations under the License.
6200
6200
  */
6201
- const wr = /* @__PURE__ */ new Map();
6202
- function ve(t) {
6201
+ const vr = /* @__PURE__ */ new Map();
6202
+ function we(t) {
6203
6203
  De(t instanceof Function, "Expected a class definition");
6204
- let e = wr.get(t);
6205
- return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), wr.set(t, e), e);
6204
+ let e = vr.get(t);
6205
+ return e ? (De(e instanceof t, "Instance stored in cache mismatched with class"), e) : (e = new t(), vr.set(t, e), e);
6206
6206
  }
6207
6207
  /**
6208
6208
  * @license
@@ -6260,14 +6260,14 @@ const Br = ni;
6260
6260
  * See the License for the specific language governing permissions and
6261
6261
  * limitations under the License.
6262
6262
  */
6263
- function Ht(t, e, n) {
6263
+ function Nt(t, e, n) {
6264
6264
  return `firebase:${t}:${e}:${n}`;
6265
6265
  }
6266
6266
  class tt {
6267
6267
  constructor(e, n, r) {
6268
6268
  this.persistence = e, this.auth = n, this.userKey = r;
6269
6269
  const { config: s, name: i } = this.auth;
6270
- this.fullUserKey = Ht(this.userKey, s.apiKey, i), this.fullPersistenceKey = Ht("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
6270
+ this.fullUserKey = Nt(this.userKey, s.apiKey, i), this.fullPersistenceKey = Nt("persistence", s.apiKey, i), this.boundEventHandler = n._onStorageEvent.bind(n), this.persistence._addListener(this.fullUserKey, this.boundEventHandler);
6271
6271
  }
6272
6272
  setCurrentUser(e) {
6273
6273
  return this.persistence._set(this.fullUserKey, e.toJSON());
@@ -6294,13 +6294,13 @@ class tt {
6294
6294
  }
6295
6295
  static async create(e, n, r = "authUser") {
6296
6296
  if (!n.length)
6297
- return new tt(ve(Br), e, r);
6297
+ return new tt(we(Br), e, r);
6298
6298
  const s = (await Promise.all(n.map(async (A) => {
6299
6299
  if (await A._isAvailable())
6300
6300
  return A;
6301
6301
  }))).filter((A) => A);
6302
- let i = s[0] || ve(Br);
6303
- const a = Ht(r, e.config.apiKey, e.name);
6302
+ let i = s[0] || we(Br);
6303
+ const a = Nt(r, e.config.apiKey, e.name);
6304
6304
  let c = null;
6305
6305
  for (const A of n)
6306
6306
  try {
@@ -6433,7 +6433,7 @@ function Ai(t, e = []) {
6433
6433
  n = t;
6434
6434
  }
6435
6435
  const r = e.length ? e.join(",") : "FirebaseCore-web";
6436
- return `${n}/JsCore/${Tt}/${r}`;
6436
+ return `${n}/JsCore/${Ot}/${r}`;
6437
6437
  }
6438
6438
  /**
6439
6439
  * @license
@@ -6618,7 +6618,7 @@ class Su {
6618
6618
  this.app = e, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = s, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Cr(this), this.idTokenSubscription = new Cr(this), this.beforeStateQueue = new Nu(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 = Zs, 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 = s.sdkClientVersion;
6619
6619
  }
6620
6620
  _initializeWithPersistence(e, n) {
6621
- return n && (this._popupRedirectResolver = ve(n)), this._initializationPromise = this.queue(async () => {
6621
+ return n && (this._popupRedirectResolver = we(n)), this._initializationPromise = this.queue(async () => {
6622
6622
  var r, s;
6623
6623
  if (!this._deleted && (this.persistenceManager = await tt.create(this, e), !this._deleted)) {
6624
6624
  if (!((r = this._popupRedirectResolver) === null || r === void 0) && r._shouldInitProactively)
@@ -6701,7 +6701,7 @@ class Su {
6701
6701
  }
6702
6702
  async reloadAndSetCurrentUserOrClear(e) {
6703
6703
  try {
6704
- await Lt(e);
6704
+ await Zt(e);
6705
6705
  } catch (n) {
6706
6706
  if ((n == null ? void 0 : n.code) !== "auth/network-request-failed")
6707
6707
  return this.directlySetCurrentUser(null);
@@ -6745,7 +6745,7 @@ class Su {
6745
6745
  }
6746
6746
  setPersistence(e) {
6747
6747
  return pe(this.app) ? Promise.reject(Re(this)) : this.queue(async () => {
6748
- await this.assertedPersistence.setPersistence(ve(e));
6748
+ await this.assertedPersistence.setPersistence(we(e));
6749
6749
  });
6750
6750
  }
6751
6751
  _getRecaptchaConfig() {
@@ -6767,7 +6767,7 @@ class Su {
6767
6767
  return this.assertedPersistence.persistence.type;
6768
6768
  }
6769
6769
  _updateErrorMap(e) {
6770
- this._errorFactory = new Pt("auth", "Firebase", e());
6770
+ this._errorFactory = new It("auth", "Firebase", e());
6771
6771
  }
6772
6772
  onAuthStateChanged(e, n, r) {
6773
6773
  return this.registerStateListener(this.authStateSubscription, e, n, r);
@@ -6818,7 +6818,7 @@ class Su {
6818
6818
  }
6819
6819
  async getOrInitRedirectPersistenceManager(e) {
6820
6820
  if (!this.redirectPersistenceManager) {
6821
- const n = e && ve(e) || this._popupRedirectResolver;
6821
+ const n = e && we(e) || this._popupRedirectResolver;
6822
6822
  M(
6823
6823
  n,
6824
6824
  this,
@@ -6826,7 +6826,7 @@ class Su {
6826
6826
  /* AuthErrorCode.ARGUMENT_ERROR */
6827
6827
  ), this.redirectPersistenceManager = await tt.create(
6828
6828
  this,
6829
- [ve(n._redirectPersistence)],
6829
+ [we(n._redirectPersistence)],
6830
6830
  "redirectUser"
6831
6831
  /* KeyName.REDIRECT_USER */
6832
6832
  ), this.redirectUser = await this.redirectPersistenceManager.getCurrentUser();
@@ -7018,7 +7018,7 @@ function Lu(t, e) {
7018
7018
  const n = Xs(t, "auth");
7019
7019
  if (n.isInitialized()) {
7020
7020
  const s = n.getImmediate(), i = n.getOptions();
7021
- if (Wt(i, e ?? {}))
7021
+ if (Ut(i, e ?? {}))
7022
7022
  return s;
7023
7023
  Be(
7024
7024
  s,
@@ -7029,7 +7029,7 @@ function Lu(t, e) {
7029
7029
  return n.initialize({ options: e });
7030
7030
  }
7031
7031
  function Ku(t, e) {
7032
- const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(ve);
7032
+ const n = (e == null ? void 0 : e.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(we);
7033
7033
  e != null && e.errorMap && t._updateErrorMap(e.errorMap), t._initializeWithPersistence(r, e == null ? void 0 : e.popupRedirectResolver);
7034
7034
  }
7035
7035
  function Ju(t, e, n) {
@@ -7225,7 +7225,7 @@ class Ze extends hi {
7225
7225
  e.pendingToken = this.pendingToken;
7226
7226
  else {
7227
7227
  const n = {};
7228
- this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Ot(n);
7228
+ this.idToken && (n.id_token = this.idToken), this.accessToken && (n.access_token = this.accessToken), this.secret && (n.oauth_token_secret = this.secret), n.providerId = this.providerId, this.nonce && !this.pendingToken && (n.nonce = this.nonce), e.postBody = Pt(n);
7229
7229
  }
7230
7230
  return e;
7231
7231
  }
@@ -7299,7 +7299,7 @@ class mi {
7299
7299
  * See the License for the specific language governing permissions and
7300
7300
  * limitations under the License.
7301
7301
  */
7302
- class jt extends mi {
7302
+ class Gt extends mi {
7303
7303
  constructor() {
7304
7304
  super(...arguments), this.scopes = [];
7305
7305
  }
@@ -7334,7 +7334,7 @@ class jt extends mi {
7334
7334
  * See the License for the specific language governing permissions and
7335
7335
  * limitations under the License.
7336
7336
  */
7337
- class Ie extends jt {
7337
+ class Ie extends Gt {
7338
7338
  constructor() {
7339
7339
  super(
7340
7340
  "facebook.com"
@@ -7405,7 +7405,7 @@ Ie.PROVIDER_ID = "facebook.com";
7405
7405
  * See the License for the specific language governing permissions and
7406
7406
  * limitations under the License.
7407
7407
  */
7408
- class Pe extends jt {
7408
+ class Pe extends Gt {
7409
7409
  constructor() {
7410
7410
  super(
7411
7411
  "google.com"
@@ -7481,7 +7481,7 @@ Pe.PROVIDER_ID = "google.com";
7481
7481
  * See the License for the specific language governing permissions and
7482
7482
  * limitations under the License.
7483
7483
  */
7484
- class Oe extends jt {
7484
+ class Oe extends Gt {
7485
7485
  constructor() {
7486
7486
  super(
7487
7487
  "github.com"
@@ -7545,7 +7545,7 @@ Oe.PROVIDER_ID = "github.com";
7545
7545
  * See the License for the specific language governing permissions and
7546
7546
  * limitations under the License.
7547
7547
  */
7548
- class Te extends jt {
7548
+ class Te extends Gt {
7549
7549
  constructor() {
7550
7550
  super(
7551
7551
  "twitter.com"
@@ -7661,10 +7661,10 @@ function Mr(t) {
7661
7661
  * See the License for the specific language governing permissions and
7662
7662
  * limitations under the License.
7663
7663
  */
7664
- class Kt extends qe {
7664
+ class Lt extends qe {
7665
7665
  constructor(e, n, r, s) {
7666
7666
  var i;
7667
- super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Kt.prototype), this.customData = {
7667
+ super(n.code, n.message), this.operationType = r, this.user = s, Object.setPrototypeOf(this, Lt.prototype), this.customData = {
7668
7668
  appName: e.name,
7669
7669
  tenantId: (i = e.tenantId) !== null && i !== void 0 ? i : void 0,
7670
7670
  _serverResponse: n.customData._serverResponse,
@@ -7672,16 +7672,16 @@ class Kt extends qe {
7672
7672
  };
7673
7673
  }
7674
7674
  static _fromErrorAndOperation(e, n, r, s) {
7675
- return new Kt(e, n, r, s);
7675
+ return new Lt(e, n, r, s);
7676
7676
  }
7677
7677
  }
7678
7678
  function fi(t, e, n, r) {
7679
7679
  return (e === "reauthenticate" ? n._getReauthenticationResolver(t) : n._getIdTokenResponse(t)).catch((i) => {
7680
- throw i.code === "auth/multi-factor-auth-required" ? Kt._fromErrorAndOperation(t, i, e, r) : i;
7680
+ throw i.code === "auth/multi-factor-auth-required" ? Lt._fromErrorAndOperation(t, i, e, r) : i;
7681
7681
  });
7682
7682
  }
7683
7683
  async function tl(t, e, n = !1) {
7684
- const r = await Bt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
7684
+ const r = await vt(t, e._linkToIdToken(t.auth, await t.getIdToken()), n);
7685
7685
  return Le._forOperation(t, "link", r);
7686
7686
  }
7687
7687
  /**
@@ -7706,7 +7706,7 @@ async function nl(t, e, n = !1) {
7706
7706
  return Promise.reject(Re(r));
7707
7707
  const s = "reauthenticate";
7708
7708
  try {
7709
- const i = await Bt(t, fi(r, s, e, t), n);
7709
+ const i = await vt(t, fi(r, s, e, t), n);
7710
7710
  M(
7711
7711
  i.idToken,
7712
7712
  r,
@@ -7807,7 +7807,7 @@ function al(t, e, n, r) {
7807
7807
  function ol(t, e, n) {
7808
7808
  return ht(t).beforeAuthStateChanged(e, n);
7809
7809
  }
7810
- const Jt = "__sak";
7810
+ const Kt = "__sak";
7811
7811
  /**
7812
7812
  * @license
7813
7813
  * Copyright 2019 Google LLC
@@ -7830,7 +7830,7 @@ class gi {
7830
7830
  }
7831
7831
  _isAvailable() {
7832
7832
  try {
7833
- return this.storage ? (this.storage.setItem(Jt, "1"), this.storage.removeItem(Jt), Promise.resolve(!0)) : Promise.resolve(!1);
7833
+ return this.storage ? (this.storage.setItem(Kt, "1"), this.storage.removeItem(Kt), Promise.resolve(!0)) : Promise.resolve(!1);
7834
7834
  } catch {
7835
7835
  return Promise.resolve(!1);
7836
7836
  }
@@ -8250,7 +8250,7 @@ function hl(t) {
8250
8250
  * See the License for the specific language governing permissions and
8251
8251
  * limitations under the License.
8252
8252
  */
8253
- function vi() {
8253
+ function wi() {
8254
8254
  return typeof de().WorkerGlobalScope < "u" && typeof de().importScripts == "function";
8255
8255
  }
8256
8256
  async function ml() {
@@ -8267,7 +8267,7 @@ function fl() {
8267
8267
  return ((t = navigator == null ? void 0 : navigator.serviceWorker) === null || t === void 0 ? void 0 : t.controller) || null;
8268
8268
  }
8269
8269
  function gl() {
8270
- return vi() ? self : null;
8270
+ return wi() ? self : null;
8271
8271
  }
8272
8272
  /**
8273
8273
  * @license
@@ -8285,8 +8285,8 @@ function gl() {
8285
8285
  * See the License for the specific language governing permissions and
8286
8286
  * limitations under the License.
8287
8287
  */
8288
- const wi = "firebaseLocalStorageDb", pl = 1, _t = "firebaseLocalStorage", Bi = "fbase_key";
8289
- class Yt {
8288
+ const vi = "firebaseLocalStorageDb", pl = 1, Jt = "firebaseLocalStorage", Bi = "fbase_key";
8289
+ class jt {
8290
8290
  constructor(e) {
8291
8291
  this.request = e;
8292
8292
  }
@@ -8301,27 +8301,27 @@ class Yt {
8301
8301
  }
8302
8302
  }
8303
8303
  function cn(t, e) {
8304
- return t.transaction([_t], e ? "readwrite" : "readonly").objectStore(_t);
8304
+ return t.transaction([Jt], e ? "readwrite" : "readonly").objectStore(Jt);
8305
8305
  }
8306
8306
  function yl() {
8307
- const t = indexedDB.deleteDatabase(wi);
8308
- return new Yt(t).toPromise();
8307
+ const t = indexedDB.deleteDatabase(vi);
8308
+ return new jt(t).toPromise();
8309
8309
  }
8310
8310
  function jn() {
8311
- const t = indexedDB.open(wi, pl);
8311
+ const t = indexedDB.open(vi, pl);
8312
8312
  return new Promise((e, n) => {
8313
8313
  t.addEventListener("error", () => {
8314
8314
  n(t.error);
8315
8315
  }), t.addEventListener("upgradeneeded", () => {
8316
8316
  const r = t.result;
8317
8317
  try {
8318
- r.createObjectStore(_t, { keyPath: Bi });
8318
+ r.createObjectStore(Jt, { keyPath: Bi });
8319
8319
  } catch (s) {
8320
8320
  n(s);
8321
8321
  }
8322
8322
  }), t.addEventListener("success", async () => {
8323
8323
  const r = t.result;
8324
- r.objectStoreNames.contains(_t) ? e(r) : (r.close(), await yl(), e(await jn()));
8324
+ r.objectStoreNames.contains(Jt) ? e(r) : (r.close(), await yl(), e(await jn()));
8325
8325
  });
8326
8326
  });
8327
8327
  }
@@ -8330,17 +8330,17 @@ async function Ir(t, e, n) {
8330
8330
  [Bi]: e,
8331
8331
  value: n
8332
8332
  });
8333
- return new Yt(r).toPromise();
8333
+ return new jt(r).toPromise();
8334
8334
  }
8335
8335
  async function bl(t, e) {
8336
- const n = cn(t, !1).get(e), r = await new Yt(n).toPromise();
8336
+ const n = cn(t, !1).get(e), r = await new jt(n).toPromise();
8337
8337
  return r === void 0 ? null : r.value;
8338
8338
  }
8339
8339
  function Pr(t, e) {
8340
8340
  const n = cn(t, !0).delete(e);
8341
- return new Yt(n).toPromise();
8341
+ return new jt(n).toPromise();
8342
8342
  }
8343
- const vl = 800, wl = 3;
8343
+ const wl = 800, vl = 3;
8344
8344
  class Di {
8345
8345
  constructor() {
8346
8346
  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(() => {
@@ -8357,7 +8357,7 @@ class Di {
8357
8357
  const r = await this._openDb();
8358
8358
  return await e(r);
8359
8359
  } catch (r) {
8360
- if (n++ > wl)
8360
+ if (n++ > vl)
8361
8361
  throw r;
8362
8362
  this.db && (this.db.close(), this.db = void 0);
8363
8363
  }
@@ -8367,7 +8367,7 @@ class Di {
8367
8367
  * postMessage interface to send these events to the worker ourselves.
8368
8368
  */
8369
8369
  async initializeServiceWorkerMessaging() {
8370
- return vi() ? this.initializeReceiver() : this.initializeSender();
8370
+ return wi() ? this.initializeReceiver() : this.initializeSender();
8371
8371
  }
8372
8372
  /**
8373
8373
  * As the worker we should listen to events from the main window.
@@ -8430,7 +8430,7 @@ class Di {
8430
8430
  if (!indexedDB)
8431
8431
  return !1;
8432
8432
  const e = await jn();
8433
- return await Ir(e, Jt, "1"), await Pr(e, Jt), !0;
8433
+ return await Ir(e, Kt, "1"), await Pr(e, Kt), !0;
8434
8434
  } catch {
8435
8435
  }
8436
8436
  return !1;
@@ -8456,7 +8456,7 @@ class Di {
8456
8456
  async _poll() {
8457
8457
  const e = await this._withRetries((s) => {
8458
8458
  const i = cn(s, !1).getAll();
8459
- return new Yt(i).toPromise();
8459
+ return new jt(i).toPromise();
8460
8460
  });
8461
8461
  if (!e)
8462
8462
  return [];
@@ -8478,7 +8478,7 @@ class Di {
8478
8478
  s(n);
8479
8479
  }
8480
8480
  startPolling() {
8481
- this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), vl);
8481
+ this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), wl);
8482
8482
  }
8483
8483
  stopPolling() {
8484
8484
  this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
@@ -8492,7 +8492,7 @@ class Di {
8492
8492
  }
8493
8493
  Di.type = "LOCAL";
8494
8494
  const Bl = Di;
8495
- new Gt(3e4, 6e4);
8495
+ new Tt(3e4, 6e4);
8496
8496
  /**
8497
8497
  * @license
8498
8498
  * Copyright 2021 Google LLC
@@ -8510,7 +8510,7 @@ new Gt(3e4, 6e4);
8510
8510
  * limitations under the License.
8511
8511
  */
8512
8512
  function Dl(t, e) {
8513
- return e ? ve(e) : (M(
8513
+ return e ? we(e) : (M(
8514
8514
  t._popupRedirectResolver,
8515
8515
  t,
8516
8516
  "argument-error"
@@ -8683,7 +8683,7 @@ class Ci {
8683
8683
  * See the License for the specific language governing permissions and
8684
8684
  * limitations under the License.
8685
8685
  */
8686
- const Il = new Gt(2e3, 1e4);
8686
+ const Il = new Tt(2e3, 1e4);
8687
8687
  class _e extends Ci {
8688
8688
  constructor(e, n, r, s, i) {
8689
8689
  super(e, n, s, i), this.provider = r, this.authWindow = null, this.pollId = null, _e.currentPopupAction && _e.currentPopupAction.cancel(), _e.currentPopupAction = this;
@@ -8769,7 +8769,7 @@ _e.currentPopupAction = null;
8769
8769
  * See the License for the specific language governing permissions and
8770
8770
  * limitations under the License.
8771
8771
  */
8772
- const Pl = "pendingRedirect", Qt = /* @__PURE__ */ new Map();
8772
+ const Pl = "pendingRedirect", Ht = /* @__PURE__ */ new Map();
8773
8773
  class Ol extends Ci {
8774
8774
  constructor(e, n, r = !1) {
8775
8775
  super(e, [
@@ -8785,7 +8785,7 @@ class Ol extends Ci {
8785
8785
  * just return it.
8786
8786
  */
8787
8787
  async execute() {
8788
- let e = Qt.get(this.auth._key());
8788
+ let e = Ht.get(this.auth._key());
8789
8789
  if (!e) {
8790
8790
  try {
8791
8791
  const r = await Tl(this.resolver, this.auth) ? await super.execute() : null;
@@ -8793,9 +8793,9 @@ class Ol extends Ci {
8793
8793
  } catch (n) {
8794
8794
  e = () => Promise.reject(n);
8795
8795
  }
8796
- Qt.set(this.auth._key(), e);
8796
+ Ht.set(this.auth._key(), e);
8797
8797
  }
8798
- return this.bypassAuthState || Qt.set(this.auth._key(), () => Promise.resolve(null)), e();
8798
+ return this.bypassAuthState || Ht.set(this.auth._key(), () => Promise.resolve(null)), e();
8799
8799
  }
8800
8800
  async onAuthEvent(e) {
8801
8801
  if (e.type === "signInViaRedirect")
@@ -8824,13 +8824,13 @@ async function Tl(t, e) {
8824
8824
  return await r._remove(n), s;
8825
8825
  }
8826
8826
  function Gl(t, e) {
8827
- Qt.set(t._key(), e);
8827
+ Ht.set(t._key(), e);
8828
8828
  }
8829
8829
  function jl(t) {
8830
- return ve(t._redirectPersistence);
8830
+ return we(t._redirectPersistence);
8831
8831
  }
8832
8832
  function Yl(t) {
8833
- return Ht(Pl, t.config.apiKey, t.name);
8833
+ return Nt(Pl, t.config.apiKey, t.name);
8834
8834
  }
8835
8835
  async function Vl(t, e, n = !1) {
8836
8836
  if (pe(t.app))
@@ -8991,7 +8991,7 @@ function Ql(t) {
8991
8991
  * See the License for the specific language governing permissions and
8992
8992
  * limitations under the License.
8993
8993
  */
8994
- const Xl = new Gt(3e4, 6e4);
8994
+ const Xl = new Tt(3e4, 6e4);
8995
8995
  function Tr() {
8996
8996
  const t = de().___jsl;
8997
8997
  if (t != null && t.H) {
@@ -9034,12 +9034,12 @@ function Sl(t) {
9034
9034
  }, Wu(`${zu()}?onload=${c}`).catch((l) => n(l));
9035
9035
  }
9036
9036
  }).catch((e) => {
9037
- throw Xt = null, e;
9037
+ throw Qt = null, e;
9038
9038
  });
9039
9039
  }
9040
- let Xt = null;
9040
+ let Qt = null;
9041
9041
  function Ul(t) {
9042
- return Xt = Xt || Sl(t), Xt;
9042
+ return Qt = Qt || Sl(t), Qt;
9043
9043
  }
9044
9044
  /**
9045
9045
  * @license
@@ -9057,7 +9057,7 @@ function Ul(t) {
9057
9057
  * See the License for the specific language governing permissions and
9058
9058
  * limitations under the License.
9059
9059
  */
9060
- const Wl = new Gt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
9060
+ const Wl = new Tt(5e3, 15e3), zl = "__/auth/iframe", Zl = "emulator/auth/iframe", Ll = {
9061
9061
  style: {
9062
9062
  position: "absolute",
9063
9063
  top: "-100px",
@@ -9083,11 +9083,11 @@ function Jl(t) {
9083
9083
  const n = e.emulator ? Zn(e, Zl) : `https://${t.config.authDomain}/${zl}`, r = {
9084
9084
  apiKey: e.apiKey,
9085
9085
  appName: t.name,
9086
- v: Tt
9086
+ v: Ot
9087
9087
  }, s = Kl.get(t.config.apiHost);
9088
9088
  s && (r.eid = s);
9089
9089
  const i = t._getFrameworks();
9090
- return i.length && (r.fw = i.join(",")), `${n}?${Ot(r).slice(1)}`;
9090
+ return i.length && (r.fw = i.join(",")), `${n}?${Pt(r).slice(1)}`;
9091
9091
  }
9092
9092
  async function _l(t) {
9093
9093
  const e = await Ul(t), n = de().gapi;
@@ -9166,7 +9166,7 @@ function sA(t, e, n, r = eA, s = tA) {
9166
9166
  left: a
9167
9167
  }), A = K().toLowerCase();
9168
9168
  n && (c = ii(A) ? nA : n), ri(A) && (e = e || rA, l.scrollbars = "yes");
9169
- const f = Object.entries(l).reduce((B, [w, O]) => `${B}${w}=${O},`, "");
9169
+ const f = Object.entries(l).reduce((B, [v, O]) => `${B}${v}=${O},`, "");
9170
9170
  if (Ru(A) && c !== "_self")
9171
9171
  return iA(e || "", c), new Gr(null);
9172
9172
  const p = window.open(e || "", c, f);
@@ -9222,7 +9222,7 @@ async function jr(t, e, n, r, s, i) {
9222
9222
  appName: t.name,
9223
9223
  authType: n,
9224
9224
  redirectUrl: r,
9225
- v: Tt,
9225
+ v: Ot,
9226
9226
  eventId: s
9227
9227
  };
9228
9228
  if (e instanceof mi) {
@@ -9230,7 +9230,7 @@ async function jr(t, e, n, r, s, i) {
9230
9230
  for (const [f, p] of Object.entries({}))
9231
9231
  a[f] = p;
9232
9232
  }
9233
- if (e instanceof jt) {
9233
+ if (e instanceof Gt) {
9234
9234
  const f = e.getScopes().filter((p) => p !== "");
9235
9235
  f.length > 0 && (a.scopes = f.join(","));
9236
9236
  }
@@ -9239,7 +9239,7 @@ async function jr(t, e, n, r, s, i) {
9239
9239
  for (const f of Object.keys(c))
9240
9240
  c[f] === void 0 && delete c[f];
9241
9241
  const l = await t._getAppCheckToken(), A = l ? `#${cA}=${encodeURIComponent(l)}` : "";
9242
- return `${uA(t)}?${Ot(c).slice(1)}${A}`;
9242
+ return `${uA(t)}?${Pt(c).slice(1)}${A}`;
9243
9243
  }
9244
9244
  function uA({ config: t }) {
9245
9245
  return t.emulator ? Zn(t, oA) : `https://${t.authDomain}/${aA}`;
@@ -9407,7 +9407,7 @@ function hA(t) {
9407
9407
  }
9408
9408
  }
9409
9409
  function mA(t) {
9410
- vt(new dt(
9410
+ bt(new dt(
9411
9411
  "auth",
9412
9412
  (e, { options: n }) => {
9413
9413
  const r = e.getProvider("app").getImmediate(), s = e.getProvider("heartbeat"), i = e.getProvider("app-check-internal"), { apiKey: a, authDomain: c } = r.options;
@@ -9433,7 +9433,7 @@ function mA(t) {
9433
9433
  "auth-internal"
9434
9434
  /* _ComponentName.AUTH_INTERNAL */
9435
9435
  ).initialize();
9436
- })), vt(new dt(
9436
+ })), bt(new dt(
9437
9437
  "auth-internal",
9438
9438
  (e) => {
9439
9439
  const n = an(e.getProvider(
@@ -9542,7 +9542,7 @@ var un = class {
9542
9542
  }
9543
9543
  onUnsubscribe() {
9544
9544
  }
9545
- }, He, Ge, rt, Xr, vA = (Xr = class extends un {
9545
+ }, He, Ge, rt, Xr, wA = (Xr = class extends un {
9546
9546
  constructor() {
9547
9547
  super();
9548
9548
  G(this, He);
@@ -9583,7 +9583,7 @@ var un = class {
9583
9583
  var e;
9584
9584
  return typeof h(this, He) == "boolean" ? h(this, He) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
9585
9585
  }
9586
- }, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new vA(), wA = {
9586
+ }, He = new WeakMap(), Ge = new WeakMap(), rt = new WeakMap(), Xr), Mi = new wA(), vA = {
9587
9587
  // We need the wrapper function syntax below instead of direct references to
9588
9588
  // global setTimeout etc.
9589
9589
  //
@@ -9607,7 +9607,7 @@ var un = class {
9607
9607
  //
9608
9608
  // We settle for type safety for the TimeoutProvider type, and accept that
9609
9609
  // this class is unsafe internally to allow for extension.
9610
- G(this, oe, wA);
9610
+ G(this, oe, vA);
9611
9611
  G(this, Qe, !1);
9612
9612
  }
9613
9613
  setTimeoutProvider(t) {
@@ -9663,7 +9663,7 @@ function Fr(t, e) {
9663
9663
  if (r) {
9664
9664
  if (e.queryHash !== er(a, e.options))
9665
9665
  return !1;
9666
- } else if (!Ct(e.queryKey, a))
9666
+ } else if (!Dt(e.queryKey, a))
9667
9667
  return !1;
9668
9668
  }
9669
9669
  if (n !== "all") {
@@ -9679,24 +9679,24 @@ function kr(t, e) {
9679
9679
  if (!e.options.mutationKey)
9680
9680
  return !1;
9681
9681
  if (n) {
9682
- if (Dt(e.options.mutationKey) !== Dt(i))
9682
+ if (Bt(e.options.mutationKey) !== Bt(i))
9683
9683
  return !1;
9684
- } else if (!Ct(e.options.mutationKey, i))
9684
+ } else if (!Dt(e.options.mutationKey, i))
9685
9685
  return !1;
9686
9686
  }
9687
9687
  return !(r && e.state.status !== r || s && !s(e));
9688
9688
  }
9689
9689
  function er(t, e) {
9690
- return ((e == null ? void 0 : e.queryKeyHashFn) || Dt)(t);
9690
+ return ((e == null ? void 0 : e.queryKeyHashFn) || Bt)(t);
9691
9691
  }
9692
- function Dt(t) {
9692
+ function Bt(t) {
9693
9693
  return JSON.stringify(
9694
9694
  t,
9695
9695
  (e, n) => Fn(n) ? Object.keys(n).sort().reduce((r, s) => (r[s] = n[s], r), {}) : n
9696
9696
  );
9697
9697
  }
9698
- function Ct(t, e) {
9699
- return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Ct(t[n], e[n])) : !1;
9698
+ function Dt(t, e) {
9699
+ return t === e ? !0 : typeof t != typeof e ? !1 : t && e && typeof t == "object" && typeof e == "object" ? Object.keys(e).every((n) => Dt(t[n], e[n])) : !1;
9700
9700
  }
9701
9701
  var OA = Object.prototype.hasOwnProperty;
9702
9702
  function xn(t, e, n = 0) {
@@ -9708,16 +9708,16 @@ function xn(t, e, n = 0) {
9708
9708
  const i = (r ? t : Object.keys(t)).length, a = r ? e : Object.keys(e), c = a.length, l = r ? new Array(c) : {};
9709
9709
  let A = 0;
9710
9710
  for (let f = 0; f < c; f++) {
9711
- const p = r ? f : a[f], B = t[p], w = e[p];
9712
- if (B === w) {
9711
+ const p = r ? f : a[f], B = t[p], v = e[p];
9712
+ if (B === v) {
9713
9713
  l[p] = B, (r ? f < i : OA.call(t, p)) && A++;
9714
9714
  continue;
9715
9715
  }
9716
- if (B === null || w === null || typeof B != "object" || typeof w != "object") {
9717
- l[p] = w;
9716
+ if (B === null || v === null || typeof B != "object" || typeof v != "object") {
9717
+ l[p] = v;
9718
9718
  continue;
9719
9719
  }
9720
- const O = xn(B, w, n + 1);
9720
+ const O = xn(B, v, n + 1);
9721
9721
  l[p] = O, O === B && A++;
9722
9722
  }
9723
9723
  return i === c && A === i ? t : l;
@@ -9777,11 +9777,11 @@ function YA(t, e, n = 0) {
9777
9777
  const r = [e, ...t];
9778
9778
  return n && r.length > n ? r.slice(0, -1) : r;
9779
9779
  }
9780
- var $t = /* @__PURE__ */ Symbol();
9780
+ var _t = /* @__PURE__ */ Symbol();
9781
9781
  function Ii(t, e) {
9782
- return process.env.NODE_ENV !== "production" && t.queryFn === $t && console.error(
9782
+ return process.env.NODE_ENV !== "production" && t.queryFn === _t && console.error(
9783
9783
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${t.queryHash}'`
9784
- ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === $t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9784
+ ), !t.queryFn && (e != null && e.initialPromise) ? () => e.initialPromise : !t.queryFn || t.queryFn === _t ? () => Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)) : t.queryFn;
9785
9785
  }
9786
9786
  function hd(t, e) {
9787
9787
  return typeof t == "function" ? t(...e) : !!t;
@@ -9926,12 +9926,12 @@ var L = kA(), st, je, it, Ur, RA = (Ur = class extends un {
9926
9926
  isOnline() {
9927
9927
  return h(this, st);
9928
9928
  }
9929
- }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), en = new RA();
9929
+ }, st = new WeakMap(), je = new WeakMap(), it = new WeakMap(), Ur), $t = new RA();
9930
9930
  function qA(t) {
9931
9931
  return Math.min(1e3 * 2 ** t, 3e4);
9932
9932
  }
9933
9933
  function Oi(t) {
9934
- return (t ?? "online") === "online" ? en.isOnline() : !0;
9934
+ return (t ?? "online") === "online" ? $t.isOnline() : !0;
9935
9935
  }
9936
9936
  var kn = class extends Error {
9937
9937
  constructor(t) {
@@ -9950,11 +9950,11 @@ function Ti(t) {
9950
9950
  e = !0;
9951
9951
  }, l = () => {
9952
9952
  e = !1;
9953
- }, A = () => Mi.isFocused() && (t.networkMode === "always" || en.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9953
+ }, A = () => Mi.isFocused() && (t.networkMode === "always" || $t.isOnline()) && t.canRun(), f = () => Oi(t.networkMode) && t.canRun(), p = (I) => {
9954
9954
  i() || (r == null || r(), s.resolve(I));
9955
9955
  }, B = (I) => {
9956
9956
  i() || (r == null || r(), s.reject(I));
9957
- }, w = () => new Promise((I) => {
9957
+ }, v = () => new Promise((I) => {
9958
9958
  var V;
9959
9959
  r = (R) => {
9960
9960
  (i() || A()) && I(R);
@@ -9976,12 +9976,12 @@ function Ti(t) {
9976
9976
  var U;
9977
9977
  if (i())
9978
9978
  return;
9979
- const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, v = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
9979
+ const Q = t.retry ?? (Pi.isServer() ? 0 : 3), Y = t.retryDelay ?? qA, w = typeof Y == "function" ? Y(n, R) : Y, H = Q === !0 || typeof Q == "number" && n < Q || typeof Q == "function" && Q(n, R);
9980
9980
  if (e || !H) {
9981
9981
  B(R);
9982
9982
  return;
9983
9983
  }
9984
- n++, (U = t.onFail) == null || U.call(t, n, R), TA(v).then(() => A() ? void 0 : w()).then(() => {
9984
+ n++, (U = t.onFail) == null || U.call(t, n, R), TA(w).then(() => A() ? void 0 : v()).then(() => {
9985
9985
  e ? B(R) : O();
9986
9986
  });
9987
9987
  });
@@ -9994,7 +9994,7 @@ function Ti(t) {
9994
9994
  cancelRetry: c,
9995
9995
  continueRetry: l,
9996
9996
  canStart: f,
9997
- start: () => (f() ? O() : w().then(O), s)
9997
+ start: () => (f() ? O() : v().then(O), s)
9998
9998
  };
9999
9999
  }
10000
10000
  var Xe, Wr, Gi = (Wr = class {
@@ -10022,8 +10022,8 @@ var Xe, Wr, Gi = (Wr = class {
10022
10022
  function NA(t) {
10023
10023
  return {
10024
10024
  onFetch: (e, n) => {
10025
- var f, p, B, w, O;
10026
- const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((w = e.state.data) == null ? void 0 : w.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
10025
+ var f, p, B, v, O;
10026
+ const r = e.options, s = (B = (p = (f = e.fetchOptions) == null ? void 0 : f.meta) == null ? void 0 : p.fetchMore) == null ? void 0 : B.direction, i = ((v = e.state.data) == null ? void 0 : v.pages) || [], a = ((O = e.state.data) == null ? void 0 : O.pageParams) || [];
10027
10027
  let c = { pages: [], pageParams: [] }, l = 0;
10028
10028
  const A = async () => {
10029
10029
  let I = !1;
@@ -10033,16 +10033,16 @@ function NA(t) {
10033
10033
  () => e.signal,
10034
10034
  () => I = !0
10035
10035
  );
10036
- }, R = Ii(e.options, e.fetchOptions), Q = async (Y, v, H) => {
10036
+ }, R = Ii(e.options, e.fetchOptions), Q = async (Y, w, H) => {
10037
10037
  if (I)
10038
10038
  return Promise.reject(e.signal.reason);
10039
- if (v == null && Y.pages.length)
10039
+ if (w == null && Y.pages.length)
10040
10040
  return Promise.resolve(Y);
10041
10041
  const ee = (() => {
10042
10042
  const g = {
10043
10043
  client: e.client,
10044
10044
  queryKey: e.queryKey,
10045
- pageParam: v,
10045
+ pageParam: w,
10046
10046
  direction: H ? "backward" : "forward",
10047
10047
  meta: e.options.meta
10048
10048
  };
@@ -10050,22 +10050,22 @@ function NA(t) {
10050
10050
  })(), q = await R(ee), { maxPages: u } = e.options, m = H ? YA : jA;
10051
10051
  return {
10052
10052
  pages: m(Y.pages, q, u),
10053
- pageParams: m(Y.pageParams, v, u)
10053
+ pageParams: m(Y.pageParams, w, u)
10054
10054
  };
10055
10055
  };
10056
10056
  if (s && i.length) {
10057
- const Y = s === "backward", v = Y ? HA : Nr, H = {
10057
+ const Y = s === "backward", w = Y ? HA : Nr, H = {
10058
10058
  pages: i,
10059
10059
  pageParams: a
10060
- }, U = v(r, H);
10060
+ }, U = w(r, H);
10061
10061
  c = await Q(H, U, Y);
10062
10062
  } else {
10063
10063
  const Y = t ?? i.length;
10064
10064
  do {
10065
- const v = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
10066
- if (l > 0 && v == null)
10065
+ const w = l === 0 ? a[0] ?? r.initialPageParam : Nr(r, c);
10066
+ if (l > 0 && w == null)
10067
10067
  break;
10068
- c = await Q(c, v), l++;
10068
+ c = await Q(c, w), l++;
10069
10069
  } while (l < Y);
10070
10070
  }
10071
10071
  return c;
@@ -10100,7 +10100,7 @@ function HA(t, { pages: e, pageParams: n }) {
10100
10100
  var r;
10101
10101
  return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
10102
10102
  }
10103
- var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10103
+ var at, Se, ot, re, Ue, S, Ct, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10104
10104
  constructor(e) {
10105
10105
  super();
10106
10106
  G(this, ne);
@@ -10110,9 +10110,9 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10110
10110
  G(this, re);
10111
10111
  G(this, Ue);
10112
10112
  G(this, S);
10113
- G(this, Et);
10113
+ G(this, Ct);
10114
10114
  G(this, We);
10115
- D(this, We, !1), D(this, Et, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
10115
+ D(this, We, !1), D(this, Ct, e.defaultOptions), this.setOptions(e.options), this.observers = [], D(this, Ue, e.client), D(this, re, h(this, Ue).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, D(this, Se, Qr(this.options)), this.state = e.state ?? h(this, Se), this.scheduleGc();
10116
10116
  }
10117
10117
  get meta() {
10118
10118
  return this.options.meta;
@@ -10125,7 +10125,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10125
10125
  return (e = h(this, S)) == null ? void 0 : e.promise;
10126
10126
  }
10127
10127
  setOptions(e) {
10128
- if (this.options = { ...h(this, Et), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
10128
+ if (this.options = { ...h(this, Ct), ...e }, e != null && e._type && D(this, at, e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
10129
10129
  const n = Qr(this.options);
10130
10130
  n.data !== void 0 && (this.setState(
10131
10131
  Hr(n.data, n.dataUpdatedAt)
@@ -10167,7 +10167,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10167
10167
  );
10168
10168
  }
10169
10169
  isDisabled() {
10170
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === $t || !this.isFetched();
10170
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === _t || !this.isFetched();
10171
10171
  }
10172
10172
  isFetched() {
10173
10173
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
@@ -10208,7 +10208,7 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10208
10208
  this.state.isInvalidated || z(this, ne, me).call(this, { type: "invalidate" });
10209
10209
  }
10210
10210
  async fetch(e, n) {
10211
- var A, f, p, B, w, O, I, V, R, Q, Y;
10211
+ var A, f, p, B, v, O, I, V, R, Q, Y;
10212
10212
  if (this.state.fetchStatus !== "idle" && // If the promise in the retryer is already rejected, we have to definitely
10213
10213
  // re-start the fetch; there is a chance that the query is still in a
10214
10214
  // pending state when that happens
@@ -10219,19 +10219,19 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10219
10219
  return h(this, S).continueRetry(), h(this, S).promise;
10220
10220
  }
10221
10221
  if (e && this.setOptions(e), !this.options.queryFn) {
10222
- const v = this.observers.find((H) => H.options.queryFn);
10223
- v && this.setOptions(v.options);
10222
+ const w = this.observers.find((H) => H.options.queryFn);
10223
+ w && this.setOptions(w.options);
10224
10224
  }
10225
10225
  process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error(
10226
10226
  "As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"
10227
10227
  ));
10228
- const r = new AbortController(), s = (v) => {
10229
- Object.defineProperty(v, "signal", {
10228
+ const r = new AbortController(), s = (w) => {
10229
+ Object.defineProperty(w, "signal", {
10230
10230
  enumerable: !0,
10231
10231
  get: () => (D(this, We, !0), r.signal)
10232
10232
  });
10233
10233
  }, i = () => {
10234
- const v = Ii(this.options, n), U = (() => {
10234
+ const w = Ii(this.options, n), U = (() => {
10235
10235
  const ee = {
10236
10236
  client: h(this, Ue),
10237
10237
  queryKey: this.queryKey,
@@ -10240,12 +10240,12 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10240
10240
  return s(ee), ee;
10241
10241
  })();
10242
10242
  return D(this, We, !1), this.options.persister ? this.options.persister(
10243
- v,
10243
+ w,
10244
10244
  U,
10245
10245
  this
10246
- ) : v(U);
10246
+ ) : w(U);
10247
10247
  }, c = (() => {
10248
- const v = {
10248
+ const w = {
10249
10249
  fetchOptions: n,
10250
10250
  options: this.options,
10251
10251
  queryKey: this.queryKey,
@@ -10253,21 +10253,21 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10253
10253
  state: this.state,
10254
10254
  fetchFn: i
10255
10255
  };
10256
- return s(v), v;
10256
+ return s(w), w;
10257
10257
  })(), l = h(this, at) === "infinite" ? NA(
10258
10258
  this.options.pages
10259
10259
  ) : this.options.behavior;
10260
10260
  l == null || l.onFetch(c, this), D(this, ot, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((f = c.fetchOptions) == null ? void 0 : f.meta)) && z(this, ne, me).call(this, { type: "fetch", meta: (p = c.fetchOptions) == null ? void 0 : p.meta }), D(this, S, Ti({
10261
10261
  initialPromise: n == null ? void 0 : n.initialPromise,
10262
10262
  fn: c.fetchFn,
10263
- onCancel: (v) => {
10264
- v instanceof kn && v.revert && this.setState({
10263
+ onCancel: (w) => {
10264
+ w instanceof kn && w.revert && this.setState({
10265
10265
  ...h(this, ot),
10266
10266
  fetchStatus: "idle"
10267
10267
  }), r.abort();
10268
10268
  },
10269
- onFail: (v, H) => {
10270
- z(this, ne, me).call(this, { type: "failed", failureCount: v, error: H });
10269
+ onFail: (w, H) => {
10270
+ z(this, ne, me).call(this, { type: "failed", failureCount: w, error: H });
10271
10271
  },
10272
10272
  onPause: () => {
10273
10273
  z(this, ne, me).call(this, { type: "pause" });
@@ -10281,45 +10281,45 @@ var at, Se, ot, re, Ue, S, Et, We, ne, ji, me, zr, QA = (zr = class extends Gi {
10281
10281
  canRun: () => !0
10282
10282
  }));
10283
10283
  try {
10284
- const v = await h(this, S).start();
10285
- if (v === void 0)
10284
+ const w = await h(this, S).start();
10285
+ if (w === void 0)
10286
10286
  throw process.env.NODE_ENV !== "production" && console.error(
10287
10287
  `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`
10288
10288
  ), new Error(`${this.queryHash} data is undefined`);
10289
- return this.setData(v), (w = (B = h(this, re).config).onSuccess) == null || w.call(B, v, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
10289
+ return this.setData(w), (v = (B = h(this, re).config).onSuccess) == null || v.call(B, w, this), (I = (O = h(this, re).config).onSettled) == null || I.call(
10290
10290
  O,
10291
- v,
10291
+ w,
10292
10292
  this.state.error,
10293
10293
  this
10294
- ), v;
10295
- } catch (v) {
10296
- if (v instanceof kn) {
10297
- if (v.silent)
10294
+ ), w;
10295
+ } catch (w) {
10296
+ if (w instanceof kn) {
10297
+ if (w.silent)
10298
10298
  return h(this, S).promise;
10299
- if (v.revert) {
10299
+ if (w.revert) {
10300
10300
  if (this.state.data === void 0)
10301
- throw v;
10301
+ throw w;
10302
10302
  return this.state.data;
10303
10303
  }
10304
10304
  }
10305
10305
  throw z(this, ne, me).call(this, {
10306
10306
  type: "error",
10307
- error: v
10307
+ error: w
10308
10308
  }), (R = (V = h(this, re).config).onError) == null || R.call(
10309
10309
  V,
10310
- v,
10310
+ w,
10311
10311
  this
10312
10312
  ), (Y = (Q = h(this, re).config).onSettled) == null || Y.call(
10313
10313
  Q,
10314
10314
  this.state.data,
10315
- v,
10315
+ w,
10316
10316
  this
10317
- ), v;
10317
+ ), w;
10318
10318
  } finally {
10319
10319
  this.scheduleGc();
10320
10320
  }
10321
10321
  }
10322
- }, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Et = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
10322
+ }, at = new WeakMap(), Se = new WeakMap(), ot = new WeakMap(), re = new WeakMap(), Ue = new WeakMap(), S = new WeakMap(), Ct = new WeakMap(), We = new WeakMap(), ne = new WeakSet(), ji = function() {
10323
10323
  return this.state.fetchStatus === "paused" && this.state.status === "pending";
10324
10324
  }, me = function(e) {
10325
10325
  const n = (r) => {
@@ -10428,15 +10428,15 @@ function Qr(t) {
10428
10428
  fetchStatus: "idle"
10429
10429
  };
10430
10430
  }
10431
- var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10431
+ var Et, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10432
10432
  constructor(e) {
10433
10433
  super();
10434
10434
  G(this, ue);
10435
- G(this, Mt);
10435
+ G(this, Et);
10436
10436
  G(this, ce);
10437
10437
  G(this, Z);
10438
10438
  G(this, ze);
10439
- D(this, Mt, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
10439
+ D(this, Et, e.client), this.mutationId = e.mutationId, D(this, Z, e.mutationCache), D(this, ce, []), this.state = e.state || UA(), this.setOptions(e.options), this.scheduleGc();
10440
10440
  }
10441
10441
  setOptions(e) {
10442
10442
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -10467,11 +10467,11 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10467
10467
  this.execute(this.state.variables);
10468
10468
  }
10469
10469
  async execute(e) {
10470
- var a, c, l, A, f, p, B, w, O, I, V, R, Q, Y, v, H, U, ee;
10470
+ var a, c, l, A, f, p, B, v, O, I, V, R, Q, Y, w, H, U, ee;
10471
10471
  const n = () => {
10472
10472
  z(this, ue, Me).call(this, { type: "continue" });
10473
10473
  }, r = {
10474
- client: h(this, Mt),
10474
+ client: h(this, Et),
10475
10475
  meta: this.options.meta,
10476
10476
  mutationKey: this.options.mutationKey
10477
10477
  };
@@ -10525,7 +10525,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10525
10525
  e,
10526
10526
  this.state.context,
10527
10527
  r
10528
- )), await ((w = (B = h(this, Z).config).onSettled) == null ? void 0 : w.call(
10528
+ )), await ((v = (B = h(this, Z).config).onSettled) == null ? void 0 : v.call(
10529
10529
  B,
10530
10530
  q,
10531
10531
  null,
@@ -10566,8 +10566,8 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10566
10566
  Promise.reject(u);
10567
10567
  }
10568
10568
  try {
10569
- await ((H = (v = h(this, Z).config).onSettled) == null ? void 0 : H.call(
10570
- v,
10569
+ await ((H = (w = h(this, Z).config).onSettled) == null ? void 0 : H.call(
10570
+ w,
10571
10571
  void 0,
10572
10572
  q,
10573
10573
  this.state.variables,
@@ -10595,7 +10595,7 @@ var Mt, ce, Z, ze, ue, Me, Zr, SA = (Zr = class extends Gi {
10595
10595
  h(this, Z).runNext(this);
10596
10596
  }
10597
10597
  }
10598
- }, Mt = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
10598
+ }, Et = new WeakMap(), ce = new WeakMap(), Z = new WeakMap(), ze = new WeakMap(), ue = new WeakSet(), Me = function(e) {
10599
10599
  const n = (r) => {
10600
10600
  switch (e.type) {
10601
10601
  case "failed":
@@ -10672,19 +10672,19 @@ function UA() {
10672
10672
  submittedAt: 0
10673
10673
  };
10674
10674
  }
10675
- var fe, ae, It, Lr, Yi = (Lr = class extends un {
10675
+ var fe, ae, Mt, Lr, Yi = (Lr = class extends un {
10676
10676
  constructor(n = {}) {
10677
10677
  super();
10678
10678
  G(this, fe);
10679
10679
  G(this, ae);
10680
- G(this, It);
10681
- this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, It, 0);
10680
+ G(this, Mt);
10681
+ this.config = n, D(this, fe, /* @__PURE__ */ new Set()), D(this, ae, /* @__PURE__ */ new Map()), D(this, Mt, 0);
10682
10682
  }
10683
10683
  build(n, r, s) {
10684
10684
  const i = new SA({
10685
10685
  client: n,
10686
10686
  mutationCache: this,
10687
- mutationId: ++xt(this, It)._,
10687
+ mutationId: ++Vt(this, Mt)._,
10688
10688
  options: n.defaultMutationOptions(r),
10689
10689
  state: s
10690
10690
  });
@@ -10692,7 +10692,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10692
10692
  }
10693
10693
  add(n) {
10694
10694
  h(this, fe).add(n);
10695
- const r = Rt(n);
10695
+ const r = kt(n);
10696
10696
  if (typeof r == "string") {
10697
10697
  const s = h(this, ae).get(r);
10698
10698
  s ? s.push(n) : h(this, ae).set(r, [n]);
@@ -10701,7 +10701,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10701
10701
  }
10702
10702
  remove(n) {
10703
10703
  if (h(this, fe).delete(n)) {
10704
- const r = Rt(n);
10704
+ const r = kt(n);
10705
10705
  if (typeof r == "string") {
10706
10706
  const s = h(this, ae).get(r);
10707
10707
  if (s)
@@ -10714,7 +10714,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10714
10714
  this.notify({ type: "removed", mutation: n });
10715
10715
  }
10716
10716
  canRun(n) {
10717
- const r = Rt(n);
10717
+ const r = kt(n);
10718
10718
  if (typeof r == "string") {
10719
10719
  const s = h(this, ae).get(r), i = s == null ? void 0 : s.find(
10720
10720
  (a) => a.state.status === "pending"
@@ -10725,7 +10725,7 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10725
10725
  }
10726
10726
  runNext(n) {
10727
10727
  var s;
10728
- const r = Rt(n);
10728
+ const r = kt(n);
10729
10729
  if (typeof r == "string") {
10730
10730
  const i = (s = h(this, ae).get(r)) == null ? void 0 : s.find((a) => a !== n && a.state.isPaused);
10731
10731
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
@@ -10766,8 +10766,8 @@ var fe, ae, It, Lr, Yi = (Lr = class extends un {
10766
10766
  )
10767
10767
  );
10768
10768
  }
10769
- }, fe = new WeakMap(), ae = new WeakMap(), It = new WeakMap(), Lr);
10770
- function Rt(t) {
10769
+ }, fe = new WeakMap(), ae = new WeakMap(), Mt = new WeakMap(), Lr);
10770
+ function kt(t) {
10771
10771
  var e;
10772
10772
  return (e = t.options.scope) == null ? void 0 : e.id;
10773
10773
  }
@@ -10856,15 +10856,15 @@ var le, Kr, Vi = (Kr = class extends un {
10856
10856
  D(this, N, e.queryCache || new Vi()), D(this, Ye, e.mutationCache || new Yi()), D(this, Ve, e.defaultOptions || {}), D(this, ct, /* @__PURE__ */ new Map()), D(this, ut, /* @__PURE__ */ new Map()), D(this, xe, 0);
10857
10857
  }
10858
10858
  mount() {
10859
- xt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10859
+ Vt(this, xe)._++, h(this, xe) === 1 && (D(this, lt, Mi.subscribe(async (e) => {
10860
10860
  e && (await this.resumePausedMutations(), h(this, N).onFocus());
10861
- })), D(this, At, en.subscribe(async (e) => {
10861
+ })), D(this, At, $t.subscribe(async (e) => {
10862
10862
  e && (await this.resumePausedMutations(), h(this, N).onOnline());
10863
10863
  })));
10864
10864
  }
10865
10865
  unmount() {
10866
10866
  var e, n;
10867
- xt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
10867
+ Vt(this, xe)._--, h(this, xe) === 0 && ((e = h(this, lt)) == null || e.call(this), D(this, lt, void 0), (n = h(this, At)) == null || n.call(this), D(this, At, void 0));
10868
10868
  }
10869
10869
  isFetching(e) {
10870
10870
  return h(this, N).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -10986,7 +10986,7 @@ var le, Kr, Vi = (Kr = class extends un {
10986
10986
  return e._type = "infinite", this.ensureQueryData(e);
10987
10987
  }
10988
10988
  resumePausedMutations() {
10989
- return en.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10989
+ return $t.isOnline() ? h(this, Ye).resumePausedMutations() : Promise.resolve();
10990
10990
  }
10991
10991
  getQueryCache() {
10992
10992
  return h(this, N);
@@ -11001,7 +11001,7 @@ var le, Kr, Vi = (Kr = class extends un {
11001
11001
  D(this, Ve, e);
11002
11002
  }
11003
11003
  setQueryDefaults(e, n) {
11004
- h(this, ct).set(Dt(e), {
11004
+ h(this, ct).set(Bt(e), {
11005
11005
  queryKey: e,
11006
11006
  defaultOptions: n
11007
11007
  });
@@ -11009,11 +11009,11 @@ var le, Kr, Vi = (Kr = class extends un {
11009
11009
  getQueryDefaults(e) {
11010
11010
  const n = [...h(this, ct).values()], r = {};
11011
11011
  return n.forEach((s) => {
11012
- Ct(e, s.queryKey) && Object.assign(r, s.defaultOptions);
11012
+ Dt(e, s.queryKey) && Object.assign(r, s.defaultOptions);
11013
11013
  }), r;
11014
11014
  }
11015
11015
  setMutationDefaults(e, n) {
11016
- h(this, ut).set(Dt(e), {
11016
+ h(this, ut).set(Bt(e), {
11017
11017
  mutationKey: e,
11018
11018
  defaultOptions: n
11019
11019
  });
@@ -11021,7 +11021,7 @@ var le, Kr, Vi = (Kr = class extends un {
11021
11021
  getMutationDefaults(e) {
11022
11022
  const n = [...h(this, ut).values()], r = {};
11023
11023
  return n.forEach((s) => {
11024
- Ct(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
11024
+ Dt(e, s.mutationKey) && Object.assign(r, s.defaultOptions);
11025
11025
  }), r;
11026
11026
  }
11027
11027
  defaultQueryOptions(e) {
@@ -11036,7 +11036,7 @@ var le, Kr, Vi = (Kr = class extends un {
11036
11036
  return n.queryHash || (n.queryHash = er(
11037
11037
  n.queryKey,
11038
11038
  n
11039
- )), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === $t && (n.enabled = !1), n;
11039
+ )), n.refetchOnReconnect === void 0 && (n.refetchOnReconnect = n.networkMode !== "always"), n.throwOnError === void 0 && (n.throwOnError = !!n.suspense), !n.networkMode && n.persister && (n.networkMode = "offlineFirst"), n.queryFn === _t && (n.enabled = !1), n;
11040
11040
  }
11041
11041
  defaultMutationOptions(e) {
11042
11042
  return e != null && e._defaulted ? e : {
@@ -11121,7 +11121,7 @@ var KA = class extends Vi {
11121
11121
  queryCache: t.queryCache || new KA(),
11122
11122
  mutationCache: t.mutationCache || new JA()
11123
11123
  };
11124
- super(e), this.isRestoring = St(!1);
11124
+ super(e), this.isRestoring = Xt(!1);
11125
11125
  }
11126
11126
  isFetching(t = {}) {
11127
11127
  return super.isFetching(T(t));
@@ -11220,7 +11220,7 @@ var KA = class extends Vi {
11220
11220
  };
11221
11221
  const $A = Ki({
11222
11222
  history: Ji(),
11223
- routes: [...bt, ...pt].map((t) => ({
11223
+ routes: [...rn, ...pt].map((t) => ({
11224
11224
  ...t,
11225
11225
  component: os(
11226
11226
  _r({
@@ -11231,10 +11231,10 @@ const $A = Ki({
11231
11231
  });
11232
11232
  $A.beforeEach((t) => {
11233
11233
  var r;
11234
- const { currentCountry: e } = rn(), n = e.value;
11234
+ const { currentCountry: e } = nn(), n = e.value;
11235
11235
  if (!n) return !0;
11236
11236
  if ((r = t.meta) != null && r.region && !t.meta.region[n]) {
11237
- const s = bt.find(
11237
+ const s = rn.find(
11238
11238
  (i) => {
11239
11239
  var a;
11240
11240
  return ((a = i.meta) == null ? void 0 : a.sidebarDisplay) && (!i.meta.region || i.meta.region[n]);
@@ -11244,17 +11244,17 @@ $A.beforeEach((t) => {
11244
11244
  }
11245
11245
  return !0;
11246
11246
  });
11247
- const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ tn({
11247
+ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ */ en({
11248
11248
  __name: "AppSidebar",
11249
11249
  setup(t) {
11250
- const e = rn(), n = _i(), { t: r } = ns(), s = St(n.currentRoute.value.name);
11250
+ const e = nn(), n = _i(), { t: r } = ns(), s = Xt(n.currentRoute.value.name);
11251
11251
  $r(n.currentRoute, () => {
11252
11252
  let A = n.currentRoute.value.name;
11253
11253
  n.currentRoute.value.meta.parent && (A = n.currentRoute.value.meta.parent), s.value = A;
11254
11254
  });
11255
- const i = bt.map((A) => {
11256
- var B, w;
11257
- if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((w = A.meta.region) != null && w[e.currentCountry.value]) || A.meta.section)
11255
+ const i = rn.map((A) => {
11256
+ var B, v;
11257
+ if (!((B = A.meta) != null && B.sidebarDisplay) || A.meta.region && !((v = A.meta.region) != null && v[e.currentCountry.value]) || A.meta.section)
11258
11258
  return;
11259
11259
  const f = A.meta.sidebarDisplay, p = {
11260
11260
  label: f.startsWith("i18n:") ? r(f.replaceAll("i18n:", "")) : f,
@@ -11264,12 +11264,12 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11264
11264
  return n.push({ name: A.name });
11265
11265
  }
11266
11266
  };
11267
- return A.meta.sidebarNew && (p.badge = () => vn(ea.FmPill, { label: "New" })), p;
11267
+ return A.meta.sidebarNew && (p.badge = () => wn(ea.FmPill, { label: "New" })), p;
11268
11268
  }).filter((A) => !!A);
11269
11269
  function a(A, f) {
11270
11270
  return A.map((p) => {
11271
- var B, w;
11272
- return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (w = p.meta) != null && w.sidebarDisplay ? p.meta.section !== f ? [] : [
11271
+ var B, v;
11272
+ return (B = p.meta) != null && B.useChildrenRoutes ? a(p.children || [], f) : (v = p.meta) != null && v.sidebarDisplay ? p.meta.section !== f ? [] : [
11273
11273
  {
11274
11274
  label: p.meta.sidebarDisplay.startsWith("i18n:") ? r(p.meta.sidebarDisplay.replaceAll("i18n:", "")) : p.meta.sidebarDisplay,
11275
11275
  value: p.name,
@@ -11294,16 +11294,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11294
11294
  };
11295
11295
  }).filter((A) => !!A), l = Nn(() => {
11296
11296
  const A = [...i];
11297
- return A.push({
11298
- label: "",
11299
- value: "divider",
11300
- disabled: !0
11301
- }), A.push({
11302
- label: r("financing.title"),
11303
- icon: "credit_score",
11304
- value: "divider",
11305
- disabled: !0
11306
- }), A.push(...a(bt, "financing")), ed(e.sessionUser.value) && (A.push({
11297
+ return ed(e.sessionUser.value) && (A.push({
11307
11298
  label: "",
11308
11299
  value: "divider",
11309
11300
  disabled: !0
@@ -11334,7 +11325,7 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11334
11325
  });
11335
11326
  return (A, f) => {
11336
11327
  const p = es("FmCollapsibleTabs");
11337
- return nn(), Hn(p, {
11328
+ return tn(), Hn(p, {
11338
11329
  modelValue: s.value,
11339
11330
  "onUpdate:modelValue": f[0] || (f[0] = (B) => s.value = B),
11340
11331
  items: l.value,
@@ -11343,11 +11334,11 @@ const ed = (t) => t ? t.role.isAdmin || t.role.isStaff : !1, td = /* @__PURE__ *
11343
11334
  };
11344
11335
  }
11345
11336
  });
11346
- var nd = { firebase: { apiKey: "AIzaSyAj8JdCHtP0Vc5vZobCfgoLzWxPIn0WUG4", authDomain: "feedme-dev-4c3ef.firebaseapp.com", databaseURL: "https://feedme-dev-4c3ef.firebaseio.com", projectId: "feedme-dev-4c3ef", storageBucket: "feedme-dev-4c3ef.appspot.com", messagingSenderId: "458797803788", appId: "1:458797803788:web:37f2af2926a84288f0c129", measurementId: "G-J2QG09D2Q7" } };
11347
- const bd = /* @__PURE__ */ tn({
11337
+ var nd = { 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" } };
11338
+ const bd = /* @__PURE__ */ en({
11348
11339
  __name: "App",
11349
11340
  setup(t) {
11350
- const { state: e } = Qo(), n = rn(), r = ts(), s = new _A();
11341
+ const { state: e } = Qo(), n = nn(), r = ts(), s = new _A();
11351
11342
  Wi(xi, s);
11352
11343
  const i = Ss(nd.firebase);
11353
11344
  async function a() {
@@ -11364,12 +11355,12 @@ const bd = /* @__PURE__ */ tn({
11364
11355
  s.unmount();
11365
11356
  }), (c, l) => {
11366
11357
  const A = es("RouterView");
11367
- return nn(), Hn(A, {
11358
+ return tn(), Hn(A, {
11368
11359
  key: ge(r).path
11369
11360
  });
11370
11361
  };
11371
11362
  }
11372
- }), vd = () => {
11363
+ }), wd = () => {
11373
11364
  const t = [
11374
11365
  { "en-US": na, "th-TH": sa, "zh-CN": aa },
11375
11366
  qi
@@ -11386,7 +11377,7 @@ const bd = /* @__PURE__ */ tn({
11386
11377
  },
11387
11378
  {}
11388
11379
  );
11389
- }, wd = [...pt, ...bt].map((t) => ({
11380
+ }, vd = [...pt, ...rn].map((t) => ({
11390
11381
  ...t,
11391
11382
  component: os(
11392
11383
  _r({ loader: t.component })
@@ -11394,7 +11385,7 @@ const bd = /* @__PURE__ */ tn({
11394
11385
  }));
11395
11386
  export {
11396
11387
  xa as A,
11397
- wd as B,
11388
+ vd as B,
11398
11389
  un as S,
11399
11390
  yr as _,
11400
11391
  Vn as a,
@@ -11422,5 +11413,5 @@ export {
11422
11413
  ua as w,
11423
11414
  ld as x,
11424
11415
  bd as y,
11425
- vd as z
11416
+ wd as z
11426
11417
  };