@revenuecat/purchases-js 1.14.3 → 1.15.0

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.
@@ -6,7 +6,7 @@ var bo = (e, r) => (r = Symbol[e]) ? r : Symbol.for("Symbol." + e), kt = (e) =>
6
6
  };
7
7
  var ko = (e, r, t) => r in e ? ln(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
8
8
  var vo = (e, r) => ln(e, "name", { value: r, configurable: !0 });
9
- var wo = (e) => [, , , nl((e == null ? void 0 : e[bo("metadata")]) ?? null)], Po = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Lt = (e) => e !== void 0 && typeof e != "function" ? kt("Function expected") : e, il = (e, r, t, a, n) => ({ kind: Po[e], name: r, metadata: a, addInitializer: (o) => t._ ? kt("Already initialized") : n.push(Lt(o || null)) }), cn = (e, r) => ko(r, bo("metadata"), e[3]), xo = (e, r, t, a) => {
9
+ var wo = (e) => [, , , nl((e == null ? void 0 : e[bo("metadata")]) ?? null)], Po = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], Bt = (e) => e !== void 0 && typeof e != "function" ? kt("Function expected") : e, il = (e, r, t, a, n) => ({ kind: Po[e], name: r, metadata: a, addInitializer: (o) => t._ ? kt("Already initialized") : n.push(Bt(o || null)) }), cn = (e, r) => ko(r, bo("metadata"), e[3]), xo = (e, r, t, a) => {
10
10
  for (var n = 0, o = e[r >> 1], s = o && o.length; n < s; n++) r & 1 ? o[n].call(t) : a = o[n].call(t, a);
11
11
  return a;
12
12
  }, Eo = (e, r, t, a, n, o) => {
@@ -17,7 +17,7 @@ var wo = (e) => [, , , nl((e == null ? void 0 : e[bo("metadata")]) ?? null)], Po
17
17
  } }, t));
18
18
  u ? g && u < 4 && vo(o, (u > 2 ? "set " : u > 1 ? "get " : "") + t) : vo(n, t);
19
19
  for (var P = a.length - 1; P >= 0; P--)
20
- d = il(u, t, c = {}, e[3], y), u && (d.static = _, d.private = g, p = d.access = { has: g ? (I) => sl(n, I) : (I) => t in I }, u ^ 3 && (p.get = g ? (I) => (u ^ 1 ? tr : un)(I, n, u ^ 4 ? o : b.get) : (I) => I[t]), u > 2 && (p.set = g ? (I, S) => ct(I, n, S, u ^ 4 ? o : b.set) : (I, S) => I[t] = S)), l = (0, a[P])(u ? u < 4 ? g ? o : b[h] : u > 4 ? void 0 : { get: b.get, set: b.set } : n, d), c._ = 1, u ^ 4 || l === void 0 ? Lt(l) && (u > 4 ? k.unshift(l) : u ? g ? o = l : b[h] = l : n = l) : typeof l != "object" || l === null ? kt("Object expected") : (Lt(s = l.get) && (b.get = s), Lt(s = l.set) && (b.set = s), Lt(s = l.init) && k.unshift(s));
20
+ d = il(u, t, c = {}, e[3], y), u && (d.static = _, d.private = g, p = d.access = { has: g ? (I) => sl(n, I) : (I) => t in I }, u ^ 3 && (p.get = g ? (I) => (u ^ 1 ? tr : un)(I, n, u ^ 4 ? o : b.get) : (I) => I[t]), u > 2 && (p.set = g ? (I, S) => ct(I, n, S, u ^ 4 ? o : b.set) : (I, S) => I[t] = S)), l = (0, a[P])(u ? u < 4 ? g ? o : b[h] : u > 4 ? void 0 : { get: b.get, set: b.set } : n, d), c._ = 1, u ^ 4 || l === void 0 ? Bt(l) && (u > 4 ? k.unshift(l) : u ? g ? o = l : b[h] = l : n = l) : typeof l != "object" || l === null ? kt("Object expected") : (Bt(s = l.get) && (b.get = s), Bt(s = l.set) && (b.set = s), Bt(s = l.init) && k.unshift(s));
21
21
  return u || cn(e, n), b && ln(n, t, b), g ? u ^ 4 ? o : b : n;
22
22
  }, N = (e, r, t) => ko(e, typeof r != "symbol" ? r + "" : r, t), dn = (e, r, t) => r.has(e) || kt("Cannot " + t), sl = (e, r) => Object(r) !== r ? kt('Cannot use the "in" operator on this value') : e.has(r), tr = (e, r, t) => (dn(e, r, "read from private field"), t ? t.call(e) : r.get(e)), dt = (e, r, t) => r.has(e) ? kt("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, t), ct = (e, r, t, a) => (dn(e, r, "write to private field"), a ? a.call(e, t) : r.set(e, t), t), un = (e, r, t) => (dn(e, r, "access private method"), t);
23
23
  const ll = "5";
@@ -86,7 +86,7 @@ function za(e) {
86
86
  for (var r = 0; r < e.length; r++)
87
87
  e[r]();
88
88
  }
89
- const hr = 2, li = 4, ca = 8, Ka = 16, br = 32, da = 64, Aa = 128, yt = 256, Ca = 512, Je = 1024, rt = 2048, ua = 4096, Mr = 8192, At = 16384, ci = 32768, at = 65536, zl = 1 << 17, Al = 1 << 19, di = 1 << 20, Zr = Symbol("$state"), ui = Symbol("legacy props"), Cl = Symbol("");
89
+ const hr = 2, li = 4, ca = 8, Ka = 16, br = 32, da = 64, Aa = 128, yt = 256, Ca = 512, Je = 1024, rt = 2048, ua = 4096, Mr = 8192, Ct = 16384, ci = 32768, at = 65536, zl = 1 << 17, Al = 1 << 19, di = 1 << 20, Zr = Symbol("$state"), ui = Symbol("legacy props"), Cl = Symbol("");
90
90
  function pi(e) {
91
91
  return e === this.v;
92
92
  }
@@ -123,9 +123,9 @@ function Ul() {
123
123
  function Vl() {
124
124
  throw new Error("https://svelte.dev/e/state_unsafe_mutation");
125
125
  }
126
- let Ct = !1, Hl = !1;
126
+ let jt = !1, Hl = !1;
127
127
  function Wl() {
128
- Ct = !0;
128
+ jt = !0;
129
129
  }
130
130
  function Ze(e, r) {
131
131
  var t = {
@@ -146,7 +146,7 @@ function J(e) {
146
146
  function Za(e, r = !1) {
147
147
  var a;
148
148
  const t = Ze(e);
149
- return r || (t.equals = Rn), Ct && se !== null && se.l !== null && ((a = se.l).s ?? (a.s = [])).push(t), t;
149
+ return r || (t.equals = Rn), jt && se !== null && se.l !== null && ((a = se.l).s ?? (a.s = [])).push(t), t;
150
150
  }
151
151
  function gr(e, r = !1) {
152
152
  return /* @__PURE__ */ gi(/* @__PURE__ */ Za(e, r));
@@ -416,7 +416,7 @@ function bi(e) {
416
416
  kr(e, t), e.equals(r) || (e.v = r, e.wv = Fi());
417
417
  }
418
418
  function Vn(e) {
419
- yi(e), Zt(e, 0), kr(e, At), e.v = e.children = e.deps = e.ctx = e.reactions = null;
419
+ yi(e), Zt(e, 0), kr(e, Ct), e.v = e.children = e.deps = e.ctx = e.reactions = null;
420
420
  }
421
421
  function ki(e) {
422
422
  re === null && ue === null && Nl(), ue !== null && (ue.f & yt) !== 0 && Ml(), Yn && jl();
@@ -425,7 +425,7 @@ function Xl(e, r) {
425
425
  var t = r.last;
426
426
  t === null ? r.last = r.first = e : (t.next = e, e.prev = t, r.last = e);
427
427
  }
428
- function jt(e, r, t, a = !0) {
428
+ function Mt(e, r, t, a = !0) {
429
429
  var n = (e & da) !== 0, o = re, s = {
430
430
  ctx: se,
431
431
  deps: null,
@@ -467,7 +467,7 @@ function Kl() {
467
467
  return ue === null ? !1 : !Xr;
468
468
  }
469
469
  function Hn(e) {
470
- const r = jt(ca, null, !1);
470
+ const r = Mt(ca, null, !1);
471
471
  return kr(r, Je), r.teardown = e, r;
472
472
  }
473
473
  function ft(e) {
@@ -492,7 +492,7 @@ function Zl(e) {
492
492
  return ki(), ga(e);
493
493
  }
494
494
  function Jl(e) {
495
- const r = jt(da, e, !0);
495
+ const r = Mt(da, e, !0);
496
496
  return (t = {}) => new Promise((a) => {
497
497
  t.outro ? ht(r, () => {
498
498
  dr(r), a(void 0);
@@ -500,7 +500,7 @@ function Jl(e) {
500
500
  });
501
501
  }
502
502
  function _a(e) {
503
- return jt(li, e, !1);
503
+ return Mt(li, e, !1);
504
504
  }
505
505
  function Er(e, r) {
506
506
  var t = (
@@ -520,23 +520,23 @@ function Ql() {
520
520
  if (i(e.l.r2)) {
521
521
  for (var r of e.l.r1) {
522
522
  var t = r.effect;
523
- (t.f & Je) !== 0 && kr(t, ua), Mt(t) && fa(t), r.ran = !1;
523
+ (t.f & Je) !== 0 && kr(t, ua), Nt(t) && fa(t), r.ran = !1;
524
524
  }
525
525
  e.l.r2.v = !1;
526
526
  }
527
527
  });
528
528
  }
529
529
  function ga(e) {
530
- return jt(ca, e, !0);
530
+ return Mt(ca, e, !0);
531
531
  }
532
532
  function j(e) {
533
533
  return nt(e);
534
534
  }
535
535
  function nt(e, r = 0) {
536
- return jt(ca | Ka | r, e, !0);
536
+ return Mt(ca | Ka | r, e, !0);
537
537
  }
538
538
  function cr(e, r = !0) {
539
- return jt(ca | br, e, !0, r);
539
+ return Mt(ca | br, e, !0, r);
540
540
  }
541
541
  function wi(e) {
542
542
  var r = e.teardown;
@@ -583,7 +583,7 @@ function dr(e, r = !0) {
583
583
  }
584
584
  t = !0;
585
585
  }
586
- xi(e, r && !t), Pi(e), Zt(e, 0), kr(e, At);
586
+ xi(e, r && !t), Pi(e), Zt(e, 0), kr(e, Ct);
587
587
  var s = e.transitions;
588
588
  if (s !== null)
589
589
  for (const c of s)
@@ -627,7 +627,7 @@ function Gt(e) {
627
627
  }
628
628
  function Ti(e, r) {
629
629
  if ((e.f & Mr) !== 0) {
630
- Mt(e) && fa(e), e.f ^= Mr;
630
+ Nt(e) && fa(e), e.f ^= Mr;
631
631
  for (var t = e.first; t !== null; ) {
632
632
  var a = t.next, n = (t.f & at) !== 0 || (t.f & br) !== 0;
633
633
  Ti(t, n ? r : !1), t = a;
@@ -653,7 +653,7 @@ function $n(e) {
653
653
  throw new Error("https://svelte.dev/e/lifecycle_outside_component");
654
654
  }
655
655
  const qi = 0, tc = 1;
656
- let Wt = !1, Ia = qi, Xt = !1, Kt = null, qt = !1, Yn = !1;
656
+ let $t = !1, Ia = qi, Xt = !1, Kt = null, qt = !1, Yn = !1;
657
657
  function Io(e) {
658
658
  qt = e;
659
659
  }
@@ -685,9 +685,9 @@ function Fi() {
685
685
  return ++Di;
686
686
  }
687
687
  function Gn() {
688
- return !Ct || se !== null && se.l === null;
688
+ return !jt || se !== null && se.l === null;
689
689
  }
690
- function Mt(e) {
690
+ function Nt(e) {
691
691
  var d;
692
692
  var r = e.f;
693
693
  if ((r & rt) !== 0)
@@ -702,7 +702,7 @@ function Mt(e) {
702
702
  s && (e.f ^= Ca);
703
703
  }
704
704
  for (n = 0; n < c; n++)
705
- if (o = t[n], Mt(
705
+ if (o = t[n], Nt(
706
706
  /** @type {Derived} */
707
707
  o
708
708
  ) && bi(
@@ -726,21 +726,21 @@ function oc(e, r) {
726
726
  }
727
727
  t = t.parent;
728
728
  }
729
- throw Wt = !1, e;
729
+ throw $t = !1, e;
730
730
  }
731
731
  function ic(e) {
732
- return (e.f & At) === 0 && (e.parent === null || (e.parent.f & Aa) === 0);
732
+ return (e.f & Ct) === 0 && (e.parent === null || (e.parent.f & Aa) === 0);
733
733
  }
734
734
  function pn() {
735
- Wt = !1;
735
+ $t = !1;
736
736
  }
737
737
  function ma(e, r, t, a) {
738
- if (Wt) {
739
- if (t === null && (Wt = !1), ic(r))
738
+ if ($t) {
739
+ if (t === null && ($t = !1), ic(r))
740
740
  throw e;
741
741
  return;
742
742
  }
743
- t !== null && (Wt = !0);
743
+ t !== null && ($t = !0);
744
744
  {
745
745
  oc(e, r);
746
746
  return;
@@ -798,7 +798,7 @@ function Zt(e, r) {
798
798
  }
799
799
  function fa(e) {
800
800
  var r = e.f;
801
- if ((r & At) === 0) {
801
+ if ((r & Ct) === 0) {
802
802
  kr(e, Je);
803
803
  var t = re, a = se;
804
804
  re = e;
@@ -852,9 +852,9 @@ function lc(e) {
852
852
  if (r !== 0)
853
853
  for (var t = 0; t < r; t++) {
854
854
  var a = e[t];
855
- if ((a.f & (At | Mr)) === 0)
855
+ if ((a.f & (Ct | Mr)) === 0)
856
856
  try {
857
- Mt(a) && (fa(a), a.deps === null && a.first === null && a.nodes_start === null && (a.teardown === null ? Ei(a) : a.fn = null));
857
+ Nt(a) && (fa(a), a.deps === null && a.first === null && a.nodes_start === null && (a.teardown === null ? Ei(a) : a.fn = null));
858
858
  } catch (n) {
859
859
  ma(n, a, null, a.ctx);
860
860
  }
@@ -888,7 +888,7 @@ function ji(e, r) {
888
888
  t.f ^= Je;
889
889
  else
890
890
  try {
891
- Mt(t) && fa(t);
891
+ Nt(t) && fa(t);
892
892
  } catch (u) {
893
893
  ma(u, t, null, t.ctx);
894
894
  }
@@ -934,7 +934,7 @@ async function dc() {
934
934
  function i(e) {
935
935
  var p;
936
936
  var r = e.f, t = (r & hr) !== 0;
937
- if (t && (r & At) !== 0) {
937
+ if (t && (r & Ct) !== 0) {
938
938
  var a = vi(
939
939
  /** @type {Derived} */
940
940
  e
@@ -969,7 +969,7 @@ function i(e) {
969
969
  break;
970
970
  }
971
971
  return t && (o = /** @type {Derived} */
972
- e, Mt(o) && bi(o)), e.v;
972
+ e, Nt(o) && bi(o)), e.v;
973
973
  }
974
974
  function yr(e) {
975
975
  const r = ue;
@@ -983,7 +983,7 @@ const uc = -7169;
983
983
  function kr(e, r) {
984
984
  e.f = e.f & uc | r;
985
985
  }
986
- function Se(e) {
986
+ function Te(e) {
987
987
  return (
988
988
  /** @type {T} */
989
989
  Ni().get(e)
@@ -1020,7 +1020,7 @@ function W(e, r = !1, t) {
1020
1020
  s: e,
1021
1021
  x: null,
1022
1022
  l: null
1023
- }, Ct && !r && (se.l = {
1023
+ }, jt && !r && (se.l = {
1024
1024
  s: null,
1025
1025
  u: null,
1026
1026
  r1: [],
@@ -1103,7 +1103,7 @@ function mc(e) {
1103
1103
  const Oi = /* @__PURE__ */ new Set(), Sn = /* @__PURE__ */ new Set();
1104
1104
  function Xn(e, r, t, a) {
1105
1105
  function n(o) {
1106
- if (a.capture || Ut.call(r, o), !o.cancelBubble)
1106
+ if (a.capture || Vt.call(r, o), !o.cancelBubble)
1107
1107
  return mc(() => t.call(this, o));
1108
1108
  }
1109
1109
  return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? vt(() => {
@@ -1128,7 +1128,7 @@ function en(e) {
1128
1128
  for (var t of Sn)
1129
1129
  t(e);
1130
1130
  }
1131
- function Ut(e) {
1131
+ function Vt(e) {
1132
1132
  var b;
1133
1133
  var r = this, t = (
1134
1134
  /** @type {Node} */
@@ -1302,9 +1302,9 @@ function hc(e, { target: r, anchor: t, props: a = {}, events: n, context: o, int
1302
1302
  if (!l.has(g)) {
1303
1303
  l.add(g);
1304
1304
  var f = Sl(g);
1305
- r.addEventListener(g, Ut, { passive: f });
1305
+ r.addEventListener(g, Vt, { passive: f });
1306
1306
  var h = wt.get(g);
1307
- h === void 0 ? (document.addEventListener(g, Ut, { passive: f }), wt.set(g, 1)) : wt.set(g, h + 1);
1307
+ h === void 0 ? (document.addEventListener(g, Vt, { passive: f }), wt.set(g, 1)) : wt.set(g, h + 1);
1308
1308
  }
1309
1309
  }
1310
1310
  };
@@ -1324,12 +1324,12 @@ function hc(e, { target: r, anchor: t, props: a = {}, events: n, context: o, int
1324
1324
  }), () => {
1325
1325
  var f;
1326
1326
  for (var _ of l) {
1327
- r.removeEventListener(_, Ut);
1327
+ r.removeEventListener(_, Vt);
1328
1328
  var g = (
1329
1329
  /** @type {number} */
1330
1330
  wt.get(_)
1331
1331
  );
1332
- --g === 0 ? (document.removeEventListener(_, Ut), wt.delete(_)) : wt.set(_, g);
1332
+ --g === 0 ? (document.removeEventListener(_, Vt), wt.delete(_)) : wt.set(_, g);
1333
1333
  }
1334
1334
  Sn.delete(c), u !== t && ((f = u.parentNode) == null || f.removeChild(u));
1335
1335
  };
@@ -1417,7 +1417,7 @@ function Or(e, r, t, a, n, o = null) {
1417
1417
  });
1418
1418
  }
1419
1419
  function vc(e, r, t, a, n, o, s, l) {
1420
- var U, Q, Te, ce;
1420
+ var U, ee, Ie, ce;
1421
1421
  var c = (n & cl) !== 0, d = (n & (Nn | On)) !== 0, p = e.length, u = r.items, _ = r.first, g = _, f, h = null, k, y = [], b = [], P, I, S, q;
1422
1422
  if (c)
1423
1423
  for (q = 0; q < p; q += 1)
@@ -1441,7 +1441,7 @@ function vc(e, r, t, a, n, o, s, l) {
1441
1441
  ), u.set(I, h), y = [], b = [], g = h.next;
1442
1442
  continue;
1443
1443
  }
1444
- if (d && bc(S, P, q, n), (S.e.f & Mr) !== 0 && (Gt(S.e), c && ((Q = S.a) == null || Q.unfix(), (k ?? (k = /* @__PURE__ */ new Set())).delete(S))), S !== g) {
1444
+ if (d && bc(S, P, q, n), (S.e.f & Mr) !== 0 && (Gt(S.e), c && ((ee = S.a) == null || ee.unfix(), (k ?? (k = /* @__PURE__ */ new Set())).delete(S))), S !== g) {
1445
1445
  if (f !== void 0 && f.has(S)) {
1446
1446
  if (y.length < b.length) {
1447
1447
  var w = b[0], D;
@@ -1472,7 +1472,7 @@ function vc(e, r, t, a, n, o, s, l) {
1472
1472
  var B = (n & oi) !== 0 && p === 0 ? t : null;
1473
1473
  if (c) {
1474
1474
  for (q = 0; q < G; q += 1)
1475
- (Te = F[q].a) == null || Te.measure();
1475
+ (Ie = F[q].a) == null || Ie.measure();
1476
1476
  for (q = 0; q < G; q += 1)
1477
1477
  (ce = F[q].a) == null || ce.fix();
1478
1478
  }
@@ -1921,7 +1921,7 @@ function qn(e, r, t, a, n) {
1921
1921
  t: () => f()
1922
1922
  };
1923
1923
  }
1924
- var Gr, Ft, ia, $a, Hi;
1924
+ var Gr, zt, ia, $a, Hi;
1925
1925
  const Ya = class Ya {
1926
1926
  /** @param {ResizeObserverOptions} options */
1927
1927
  constructor(r) {
@@ -1929,7 +1929,7 @@ const Ya = class Ya {
1929
1929
  /** */
1930
1930
  dt(this, Gr, /* @__PURE__ */ new WeakMap());
1931
1931
  /** @type {ResizeObserver | undefined} */
1932
- dt(this, Ft);
1932
+ dt(this, zt);
1933
1933
  /** @type {ResizeObserverOptions} */
1934
1934
  dt(this, ia);
1935
1935
  ct(this, ia, r);
@@ -1942,12 +1942,12 @@ const Ya = class Ya {
1942
1942
  var a = tr(this, Gr).get(r) || /* @__PURE__ */ new Set();
1943
1943
  return a.add(t), tr(this, Gr).set(r, a), un(this, $a, Hi).call(this).observe(r, tr(this, ia)), () => {
1944
1944
  var n = tr(this, Gr).get(r);
1945
- n.delete(t), n.size === 0 && (tr(this, Gr).delete(r), tr(this, Ft).unobserve(r));
1945
+ n.delete(t), n.size === 0 && (tr(this, Gr).delete(r), tr(this, zt).unobserve(r));
1946
1946
  };
1947
1947
  }
1948
1948
  };
1949
- Gr = new WeakMap(), Ft = new WeakMap(), ia = new WeakMap(), $a = new WeakSet(), Hi = function() {
1950
- return tr(this, Ft) ?? ct(this, Ft, new ResizeObserver(
1949
+ Gr = new WeakMap(), zt = new WeakMap(), ia = new WeakMap(), $a = new WeakSet(), Hi = function() {
1950
+ return tr(this, zt) ?? ct(this, zt, new ResizeObserver(
1951
1951
  /** @param {any} entries */
1952
1952
  (r) => {
1953
1953
  for (var t of r) {
@@ -2042,7 +2042,7 @@ function $i(e, r) {
2042
2042
  n.call(this, r);
2043
2043
  }
2044
2044
  function Xe(e) {
2045
- se === null && $n(), Ct && se.l !== null ? Ac(se).m.push(e) : ft(() => {
2045
+ se === null && $n(), jt && se.l !== null ? Ac(se).m.push(e) : ft(() => {
2046
2046
  const r = yr(e);
2047
2047
  if (typeof r == "function") return (
2048
2048
  /** @type {() => void} */
@@ -2197,7 +2197,7 @@ function No(e) {
2197
2197
  }
2198
2198
  function V(e, r, t, a) {
2199
2199
  var M;
2200
- var n = (t & ul) !== 0, o = !Ct || (t & pl) !== 0, s = (t & gl) !== 0, l = (t & ml) !== 0, c = !1, d;
2200
+ var n = (t & ul) !== 0, o = !jt || (t & pl) !== 0, s = (t & gl) !== 0, l = (t & ml) !== 0, c = !1, d;
2201
2201
  s ? [d, c] = jc(() => (
2202
2202
  /** @type {V} */
2203
2203
  e[r]
@@ -2302,8 +2302,8 @@ function Oc(e, r, t) {
2302
2302
  }, n = cr(() => t(a)), pn();
2303
2303
  }, at | Aa);
2304
2304
  }
2305
- var Ie = /* @__PURE__ */ ((e) => (e[e.UnknownError = 0] = "UnknownError", e[e.UserCancelledError = 1] = "UserCancelledError", e[e.StoreProblemError = 2] = "StoreProblemError", e[e.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", e[e.PurchaseInvalidError = 4] = "PurchaseInvalidError", e[e.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", e[e.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", e[e.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", e[e.InvalidReceiptError = 8] = "InvalidReceiptError", e[e.MissingReceiptFileError = 9] = "MissingReceiptFileError", e[e.NetworkError = 10] = "NetworkError", e[e.InvalidCredentialsError = 11] = "InvalidCredentialsError", e[e.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", e[e.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", e[e.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", e[e.UnknownBackendError = 16] = "UnknownBackendError", e[e.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", e[e.IneligibleError = 18] = "IneligibleError", e[e.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", e[e.PaymentPendingError = 20] = "PaymentPendingError", e[e.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", e[e.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", e[e.ConfigurationError = 23] = "ConfigurationError", e[e.UnsupportedError = 24] = "UnsupportedError", e[e.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", e[e.CustomerInfoError = 28] = "CustomerInfoError", e[e.SignatureVerificationError = 36] = "SignatureVerificationError", e[e.InvalidEmailError = 38] = "InvalidEmailError", e))(Ie || {});
2306
- class $t {
2305
+ var Ee = /* @__PURE__ */ ((e) => (e[e.UnknownError = 0] = "UnknownError", e[e.UserCancelledError = 1] = "UserCancelledError", e[e.StoreProblemError = 2] = "StoreProblemError", e[e.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", e[e.PurchaseInvalidError = 4] = "PurchaseInvalidError", e[e.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", e[e.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", e[e.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", e[e.InvalidReceiptError = 8] = "InvalidReceiptError", e[e.MissingReceiptFileError = 9] = "MissingReceiptFileError", e[e.NetworkError = 10] = "NetworkError", e[e.InvalidCredentialsError = 11] = "InvalidCredentialsError", e[e.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", e[e.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", e[e.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", e[e.UnknownBackendError = 16] = "UnknownBackendError", e[e.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", e[e.IneligibleError = 18] = "IneligibleError", e[e.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", e[e.PaymentPendingError = 20] = "PaymentPendingError", e[e.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", e[e.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", e[e.ConfigurationError = 23] = "ConfigurationError", e[e.UnsupportedError = 24] = "UnsupportedError", e[e.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", e[e.CustomerInfoError = 28] = "CustomerInfoError", e[e.SignatureVerificationError = 36] = "SignatureVerificationError", e[e.InvalidEmailError = 38] = "InvalidEmailError", e[e.TestStoreSimulatedPurchaseError = 42] = "TestStoreSimulatedPurchaseError", e))(Ee || {});
2306
+ class Ft {
2307
2307
  // This is the message shown to developers. It is not intended to be displayed to end customers.
2308
2308
  static getPublicMessage(r) {
2309
2309
  switch (r) {
@@ -2363,6 +2363,8 @@ class $t {
2363
2363
  return "Request failed signature verification. Please see https://rev.cat/trusted-entitlements for more info.";
2364
2364
  case 38:
2365
2365
  return "Email is not valid. Please provide a valid email address.";
2366
+ case 42:
2367
+ return "Purchase failure simulated successfully in Test Store.";
2366
2368
  }
2367
2369
  }
2368
2370
  static getErrorCodeForBackendErrorCode(r) {
@@ -2443,15 +2445,15 @@ var Yt = /* @__PURE__ */ ((e) => (e[e.BackendInvalidPlatform = 7e3] = "BackendIn
2443
2445
  class Pe extends Error {
2444
2446
  constructor(t, a, n, o) {
2445
2447
  super(a);
2446
- N(this, "toString", () => `PurchasesError(code: ${Ie[this.errorCode]}, message: ${this.message})`);
2448
+ N(this, "toString", () => `PurchasesError(code: ${Ee[this.errorCode]}, message: ${this.message})`);
2447
2449
  this.errorCode = t, this.underlyingErrorMessage = n, this.extra = o;
2448
2450
  }
2449
2451
  /** @internal */
2450
2452
  static getForBackendError(t, a) {
2451
- const n = $t.getErrorCodeForBackendErrorCode(t);
2453
+ const n = Ft.getErrorCodeForBackendErrorCode(t);
2452
2454
  return new Pe(
2453
2455
  n,
2454
- $t.getPublicMessage(n),
2456
+ Ft.getPublicMessage(n),
2455
2457
  a,
2456
2458
  { backendErrorCode: t }
2457
2459
  );
@@ -2459,7 +2461,7 @@ class Pe extends Error {
2459
2461
  /** @internal */
2460
2462
  static getForPurchasesFlowError(t) {
2461
2463
  return new Pe(
2462
- $t.convertPurchaseFlowErrorCodeToErrorCode(
2464
+ Ft.convertPurchaseFlowErrorCodeToErrorCode(
2463
2465
  t.errorCode
2464
2466
  ),
2465
2467
  t.message,
@@ -2472,8 +2474,8 @@ class Lc extends Error {
2472
2474
  super("Purchases must be configured before calling getInstance");
2473
2475
  }
2474
2476
  }
2475
- var Vt = /* @__PURE__ */ ((e) => (e.Started = "started", e.InProgress = "in_progress", e.Succeeded = "succeeded", e.Failed = "failed", e))(Vt || {}), Et = /* @__PURE__ */ ((e) => (e[e.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", e[e.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", e[e.PaymentChargeFailed = 3] = "PaymentChargeFailed", e[e.SetupIntentCompletionFailed = 4] = "SetupIntentCompletionFailed", e[e.AlreadyPurchased = 5] = "AlreadyPurchased", e))(Et || {}), ar = /* @__PURE__ */ ((e) => (e[e.Silent = 0] = "Silent", e[e.Error = 1] = "Error", e[e.Warn = 2] = "Warn", e[e.Info = 3] = "Info", e[e.Debug = 4] = "Debug", e[e.Verbose = 5] = "Verbose", e))(ar || {});
2476
- class ee {
2477
+ var Ht = /* @__PURE__ */ ((e) => (e.Started = "started", e.InProgress = "in_progress", e.Succeeded = "succeeded", e.Failed = "failed", e))(Ht || {}), Et = /* @__PURE__ */ ((e) => (e[e.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", e[e.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", e[e.PaymentChargeFailed = 3] = "PaymentChargeFailed", e[e.SetupIntentCompletionFailed = 4] = "SetupIntentCompletionFailed", e[e.AlreadyPurchased = 5] = "AlreadyPurchased", e))(Et || {}), ar = /* @__PURE__ */ ((e) => (e[e.Silent = 0] = "Silent", e[e.Error = 1] = "Error", e[e.Warn = 2] = "Warn", e[e.Info = 3] = "Info", e[e.Debug = 4] = "Debug", e[e.Verbose = 5] = "Verbose", e))(ar || {});
2478
+ class Q {
2477
2479
  static setLogLevel(r) {
2478
2480
  this.logLevel = r;
2479
2481
  }
@@ -2522,7 +2524,7 @@ class ee {
2522
2524
  this.log(r, ar.Verbose);
2523
2525
  }
2524
2526
  }
2525
- N(ee, "logLevel", ar.Silent), N(ee, "logHandler", null);
2527
+ N(Q, "logLevel", ar.Silent), N(Q, "logHandler", null);
2526
2528
  function Bc(e) {
2527
2529
  var r;
2528
2530
  return e.operation.redemption_info ? {
@@ -2541,7 +2543,7 @@ class he extends Error {
2541
2543
  static fromPurchasesError(r, t) {
2542
2544
  var n;
2543
2545
  let a;
2544
- return r.errorCode === Ie.ProductAlreadyPurchasedError ? a = 5 : r.errorCode === Ie.InvalidEmailError ? a = 4 : r.errorCode === Ie.NetworkError ? a = 3 : a = he.fromBackendErrorCode((n = r.extra) == null ? void 0 : n.backendErrorCode) ?? t, new he(
2546
+ return r.errorCode === Ee.ProductAlreadyPurchasedError ? a = 5 : r.errorCode === Ee.InvalidEmailError ? a = 4 : r.errorCode === Ee.NetworkError ? a = 3 : a = he.fromBackendErrorCode((n = r.extra) == null ? void 0 : n.backendErrorCode) ?? t, new he(
2545
2547
  a,
2546
2548
  r.message,
2547
2549
  r.underlyingErrorMessage,
@@ -2592,7 +2594,7 @@ class Rc {
2592
2594
  );
2593
2595
  {
2594
2596
  const c = "Unknown error starting purchase: " + String(l);
2595
- throw ee.errorLog(c), new he(
2597
+ throw Q.errorLog(c), new he(
2596
2598
  2,
2597
2599
  c
2598
2600
  );
@@ -2622,7 +2624,7 @@ class Rc {
2622
2624
  );
2623
2625
  {
2624
2626
  const s = "Unknown error calculating tax: " + String(o);
2625
- throw ee.errorLog(s), new he(
2627
+ throw Q.errorLog(s), new he(
2626
2628
  2,
2627
2629
  s
2628
2630
  );
@@ -2647,7 +2649,7 @@ class Rc {
2647
2649
  );
2648
2650
  {
2649
2651
  const n = "Unknown error starting purchase: " + String(a);
2650
- throw ee.errorLog(n), new he(
2652
+ throw Q.errorLog(n), new he(
2651
2653
  2,
2652
2654
  n
2653
2655
  );
@@ -2675,14 +2677,14 @@ class Rc {
2675
2677
  this.backend.getCheckoutStatus(r).then((s) => {
2676
2678
  const l = s.operation.store_transaction_identifier, c = s.operation.product_identifier, d = s.operation.purchase_date ? isNaN(Date.parse(s.operation.purchase_date)) ? null : new Date(s.operation.purchase_date) : null;
2677
2679
  switch (s.operation.status) {
2678
- case Vt.Started:
2679
- case Vt.InProgress:
2680
+ case Ht.Started:
2681
+ case Ht.InProgress:
2680
2682
  setTimeout(
2681
2683
  () => n(o + 1),
2682
2684
  this.waitMSBetweenAttempts
2683
2685
  );
2684
2686
  break;
2685
- case Vt.Succeeded:
2687
+ case Ht.Succeeded:
2686
2688
  if (this.clearPurchaseInProgress(), !l || !c || !d) {
2687
2689
  a(
2688
2690
  new he(
@@ -2700,7 +2702,7 @@ class Rc {
2700
2702
  purchaseDate: d
2701
2703
  });
2702
2704
  return;
2703
- case Vt.Failed:
2705
+ case Ht.Failed:
2704
2706
  this.clearPurchaseInProgress(), this.handlePaymentError(
2705
2707
  s.operation.error,
2706
2708
  a
@@ -6025,7 +6027,7 @@ var mr = /* @__PURE__ */ ((e) => (e.Year = "year", e.Month = "month", e.Week = "
6025
6027
  function Gi(e) {
6026
6028
  const r = e.match(/^PT?([0-9]+)([MDYW])$/);
6027
6029
  if (!r || r.length < 3)
6028
- return ee.errorLog(`Invalid ISO 8601 duration format: ${e}`), null;
6030
+ return Q.errorLog(`Invalid ISO 8601 duration format: ${e}`), null;
6029
6031
  const t = parseInt(r[1]);
6030
6032
  switch (r[2]) {
6031
6033
  case "Y":
@@ -6053,7 +6055,7 @@ function Gi(e) {
6053
6055
  /* Day */
6054
6056
  };
6055
6057
  default:
6056
- return ee.errorLog(`Invalid ISO 8601 unit duration format: ${e}`), null;
6058
+ return Q.errorLog(`Invalid ISO 8601 unit duration format: ${e}`), null;
6057
6059
  }
6058
6060
  }
6059
6061
  function Dn(e, r, t) {
@@ -6143,7 +6145,7 @@ class rn {
6143
6145
  a
6144
6146
  );
6145
6147
  } catch {
6146
- ee.errorLog(
6148
+ Q.errorLog(
6147
6149
  `Failed to create a price formatter for locale: ${this.locale}`
6148
6150
  );
6149
6151
  }
@@ -6155,7 +6157,7 @@ class rn {
6155
6157
  a
6156
6158
  );
6157
6159
  } catch {
6158
- ee.errorLog(
6160
+ Q.errorLog(
6159
6161
  `Failed to create a price formatter for locale: ${this.fallbackLocale}`
6160
6162
  );
6161
6163
  }
@@ -6355,7 +6357,7 @@ function qd(e) {
6355
6357
  Vr(Zi, e);
6356
6358
  }
6357
6359
  function ya() {
6358
- const e = Se(Zi);
6360
+ const e = Te(Zi);
6359
6361
  if (e === void 0)
6360
6362
  throw new Error("Paywall context not found");
6361
6363
  return e;
@@ -6365,7 +6367,7 @@ function Qi(e) {
6365
6367
  Vr(Ji, e);
6366
6368
  }
6367
6369
  function Lr() {
6368
- return Se(Ji) ?? tn(!1);
6370
+ return Te(Ji) ?? tn(!1);
6369
6371
  }
6370
6372
  const Qt = "light", Dd = "#000000", Fd = {
6371
6373
  top: 0,
@@ -6531,7 +6533,7 @@ function Nd(e, r) {
6531
6533
  }
6532
6534
  v(e, u), $();
6533
6535
  }
6534
- function Ee(e) {
6536
+ function Se(e) {
6535
6537
  return Object.entries(e).map(([r, t]) => `${r}:${t}`).join(";");
6536
6538
  }
6537
6539
  function Ye(e) {
@@ -6579,7 +6581,7 @@ function vr(e, r) {
6579
6581
  function Ld(e, r) {
6580
6582
  return r == null ? "transparent" : vr(e, r);
6581
6583
  }
6582
- function zt(e, r) {
6584
+ function At(e, r) {
6583
6585
  if (r == null)
6584
6586
  return "none";
6585
6587
  const t = vr(e, r.color);
@@ -6645,7 +6647,7 @@ const Hd = {
6645
6647
  }, Wd = (e, r) => {
6646
6648
  const { color: t = Hd, background_color: a, padding: n, margin: o, size: s } = r, l = jd(r);
6647
6649
  return {
6648
- textStyles: Ee({
6650
+ textStyles: Se({
6649
6651
  display: "block",
6650
6652
  width: er(s.width),
6651
6653
  height: er(s.height),
@@ -6665,7 +6667,7 @@ const Hd = {
6665
6667
  };
6666
6668
  };
6667
6669
  function $d(e, r, t, a) {
6668
- return Ee({
6670
+ return Se({
6669
6671
  display: "block",
6670
6672
  position: "relative",
6671
6673
  width: er(t.width),
@@ -6738,7 +6740,7 @@ function Jd(e) {
6738
6740
  return Vr(ts, t), t;
6739
6741
  }
6740
6742
  function $r() {
6741
- return Se(ts) ?? (() => Qt);
6743
+ return Te(ts) ?? (() => Qt);
6742
6744
  }
6743
6745
  const as = Symbol("localization");
6744
6746
  function Qd(e) {
@@ -6754,7 +6756,7 @@ function Qd(e) {
6754
6756
  return Vr(as, t), t;
6755
6757
  }
6756
6758
  function eu() {
6757
- const e = Se(as);
6759
+ const e = Te(as);
6758
6760
  if (e === void 0)
6759
6761
  throw new Error("Localization context not found");
6760
6762
  return e;
@@ -6764,7 +6766,7 @@ function os(e) {
6764
6766
  Vr(ns, e);
6765
6767
  }
6766
6768
  function is() {
6767
- const e = Se(ns);
6769
+ const e = Te(ns);
6768
6770
  if (e === void 0)
6769
6771
  throw new Error("Variables context not found");
6770
6772
  return e;
@@ -6856,13 +6858,13 @@ function _u(e, r) {
6856
6858
  W(r, !0), Z(e, pu);
6857
6859
  const t = V(r, "background_color", 3, null), a = V(r, "border", 3, null), n = V(r, "shape", 3, null), o = V(r, "shadow", 3, null), s = $r(), l = /* @__PURE__ */ m(s);
6858
6860
  function c(f) {
6859
- return f.stroke_width == null || f.stroke_color == null ? "none" : zt(i(l), {
6861
+ return f.stroke_width == null || f.stroke_color == null ? "none" : At(i(l), {
6860
6862
  width: f.stroke_width,
6861
6863
  color: f.stroke_color
6862
6864
  });
6863
6865
  }
6864
6866
  function d(f) {
6865
- return Ee({
6867
+ return Se({
6866
6868
  width: Ye(f.width),
6867
6869
  height: Ye(f.height),
6868
6870
  background: vr(i(l), f.color),
@@ -6870,13 +6872,13 @@ function _u(e, r) {
6870
6872
  "border-radius": "9999px"
6871
6873
  });
6872
6874
  }
6873
- const p = /* @__PURE__ */ m(() => d(r.default)), u = /* @__PURE__ */ m(() => d(r.active)), _ = /* @__PURE__ */ m(() => Ee({
6875
+ const p = /* @__PURE__ */ m(() => d(r.default)), u = /* @__PURE__ */ m(() => d(r.active)), _ = /* @__PURE__ */ m(() => Se({
6874
6876
  order: r.position === "top" ? -1 : 1,
6875
6877
  gap: Ye(r.spacing),
6876
6878
  margin: We(r.margin),
6877
6879
  padding: We(r.padding),
6878
6880
  ...it(i(l), t(), null),
6879
- border: zt(i(l), a()),
6881
+ border: At(i(l), a()),
6880
6882
  "border-radius": va(n()),
6881
6883
  "box-shadow": ba(i(l), o())
6882
6884
  }));
@@ -6898,16 +6900,16 @@ function fu(e, r) {
6898
6900
  ...Br(a(), r.overrides)
6899
6901
  })), l = /* @__PURE__ */ m(() => i(s).pages), c = /* @__PURE__ */ m(() => i(s).padding), d = /* @__PURE__ */ m(() => i(s).margin), p = /* @__PURE__ */ m(() => i(s).background), u = /* @__PURE__ */ m(() => i(s).shape), _ = /* @__PURE__ */ m(() => i(s).border), g = /* @__PURE__ */ m(() => i(s).shadow), f = /* @__PURE__ */ m(() => i(s).page_alignment), h = /* @__PURE__ */ m(() => i(s).page_spacing), k = /* @__PURE__ */ m(() => i(s).page_peek), y = /* @__PURE__ */ m(() => i(s).page_control), b = /* @__PURE__ */ m(() => i(s).initial_page_index), P = /* @__PURE__ */ m(() => i(s).loop), I = /* @__PURE__ */ m(() => i(s).auto_advance), S = $r(), q = /* @__PURE__ */ m(S), M = /* @__PURE__ */ m(() => {
6900
6902
  var X;
6901
- return Ee({
6903
+ return Se({
6902
6904
  margin: We(i(d)),
6903
6905
  padding: We(i(c)),
6904
6906
  ...it(i(q), null, i(p)),
6905
- border: zt(i(q), i(_)),
6907
+ border: At(i(q), i(_)),
6906
6908
  "border-radius": va(i(u)),
6907
6909
  "box-shadow": ba(i(q), i(g)),
6908
6910
  "transition-duration": `${((X = i(I)) == null ? void 0 : X.ms_transition_time) ?? 0}ms`
6909
6911
  });
6910
- }), w = /* @__PURE__ */ m(() => Ee({
6912
+ }), w = /* @__PURE__ */ m(() => Se({
6911
6913
  gap: Ye(i(h)),
6912
6914
  padding: `0 ${i(k) + i(h)}px`,
6913
6915
  "align-items": iu(i(f))
@@ -6938,14 +6940,14 @@ function fu(e, r) {
6938
6940
  }
6939
6941
  });
6940
6942
  let x = null, F = J(0), G = J(0), B = /* @__PURE__ */ m(() => 2 * i(k) + i(h)), U = /* @__PURE__ */ m(() => i(G) - i(B));
6941
- function Q(X = !0, me) {
6943
+ function ee(X = !0, me) {
6942
6944
  var De, bt;
6943
6945
  if (x === null)
6944
6946
  return;
6945
6947
  const je = X ? ((De = i(I)) == null ? void 0 : De.ms_time_per_page) ?? 0 : 0;
6946
6948
  me ?? (me = ((bt = i(I)) == null ? void 0 : bt.ms_transition_time) ?? 0), x.style.transition = `transform ${me}ms ease-in-out ${je}ms`;
6947
6949
  }
6948
- function Te() {
6950
+ function Ie() {
6949
6951
  x !== null && (x.style.transition = "none");
6950
6952
  }
6951
6953
  const ce = /* @__PURE__ */ m(() => i(P) ? 2 : 0);
@@ -6960,7 +6962,7 @@ function fu(e, r) {
6960
6962
  we(me);
6961
6963
  }
6962
6964
  function Ue(X) {
6963
- X %= i(l).length + i(ce), Q(!0), _e(X);
6965
+ X %= i(l).length + i(ce), ee(!0), _e(X);
6964
6966
  }
6965
6967
  function ge() {
6966
6968
  i(I) != null && requestAnimationFrame(() => {
@@ -6969,14 +6971,14 @@ function fu(e, r) {
6969
6971
  }
6970
6972
  Xe(() => {
6971
6973
  const X = i(l).at(i(b)) !== void 0 ? i(b) : 0;
6972
- A(F, Y(X)), Te(), _e(i(F)), ge();
6974
+ A(F, Y(X)), Ie(), _e(i(F)), ge();
6973
6975
  });
6974
6976
  function oe(X) {
6975
6977
  return Math.round(X / -i(U)) - i(ce);
6976
6978
  }
6977
6979
  function xe() {
6978
6980
  const X = xa(x), me = oe(X);
6979
- A(F, (me + i(l).length) % i(l).length), Te(), _e(i(F)), requestAnimationFrame(() => {
6981
+ A(F, (me + i(l).length) % i(l).length), Ie(), _e(i(F)), requestAnimationFrame(() => {
6980
6982
  ge();
6981
6983
  });
6982
6984
  }
@@ -6987,7 +6989,7 @@ function fu(e, r) {
6987
6989
  function Be(X) {
6988
6990
  X.currentTarget.releasePointerCapture(X.pointerId);
6989
6991
  const je = xa(x), De = oe(je);
6990
- Q(!1, 500), _e(De);
6992
+ ee(!1, 500), _e(De);
6991
6993
  }
6992
6994
  function Ve(X) {
6993
6995
  if (!X.currentTarget.hasPointerCapture(X.pointerId))
@@ -6999,7 +7001,7 @@ function fu(e, r) {
6999
7001
  -(i(l).length - 1) * i(U),
7000
7002
  0
7001
7003
  ], bt = xa(x), ka = su(bt + X.movementX, je, De), on = oe(ka);
7002
- A(F, (on + i(l).length) % i(l).length), we(ka), Te();
7004
+ A(F, (on + i(l).length) % i(l).length), we(ka), Ie();
7003
7005
  }
7004
7006
  var $e = gu(), Oe = E($e);
7005
7007
  Oe.__pointerdown = Ce, Oe.__pointerup = Be, Oe.__pointermove = Ve;
@@ -7086,18 +7088,18 @@ function ss(e, r) {
7086
7088
  ...Br(a(), r.overrides)
7087
7089
  })), l = /* @__PURE__ */ m(() => i(s).base_url), c = /* @__PURE__ */ m(() => i(s).formats), d = /* @__PURE__ */ m(() => i(s).size), p = /* @__PURE__ */ m(() => i(s).margin), u = /* @__PURE__ */ m(() => i(s).padding), _ = /* @__PURE__ */ m(() => i(s).color), g = /* @__PURE__ */ m(() => i(s).icon_background), f = $r(), h = /* @__PURE__ */ m(f), k = /* @__PURE__ */ m(() => {
7088
7090
  var S, q, M, w;
7089
- return Ee({
7091
+ return Se({
7090
7092
  width: er(i(d).width),
7091
7093
  height: er(i(d).height),
7092
7094
  margin: We(i(p)),
7093
7095
  padding: We(i(u)),
7094
7096
  "background-color": vr(i(h), (S = i(g)) == null ? void 0 : S.color),
7095
- border: zt(i(h), (q = i(g)) == null ? void 0 : q.border),
7097
+ border: At(i(h), (q = i(g)) == null ? void 0 : q.border),
7096
7098
  "border-radius": va((M = i(g)) == null ? void 0 : M.shape),
7097
7099
  "box-shadow": ba(i(h), (w = i(g)) == null ? void 0 : w.shadow),
7098
7100
  flex: "0 0 auto"
7099
7101
  });
7100
- }), y = /* @__PURE__ */ m(() => `${i(l)}/${i(c).webp}`), b = /* @__PURE__ */ m(() => Ee({
7102
+ }), y = /* @__PURE__ */ m(() => `${i(l)}/${i(c).webp}`), b = /* @__PURE__ */ m(() => Se({
7101
7103
  width: "100%",
7102
7104
  height: "100%",
7103
7105
  position: "relative",
@@ -7123,7 +7125,7 @@ function yu(e) {
7123
7125
  Vr(ls, e);
7124
7126
  }
7125
7127
  function cs() {
7126
- const e = Se(ls);
7128
+ const e = Te(ls);
7127
7129
  if (e === void 0)
7128
7130
  throw new Error("Tabs context not found");
7129
7131
  return e;
@@ -7146,13 +7148,13 @@ function wu(e, r) {
7146
7148
  const t = ke(), a = () => ye(d, "$selectedState", t), n = () => ye(S, "$tab", t), o = /* @__PURE__ */ wr(r, ["$$slots", "$$events", "$$legacy"]), { control: s, tabs: l, default_tab_id: c } = o, d = Lr(), p = /* @__PURE__ */ m(() => ({
7147
7149
  ...o,
7148
7150
  ...Br(a(), r.overrides)
7149
- })), u = /* @__PURE__ */ m(() => i(p).size), _ = /* @__PURE__ */ m(() => i(p).padding), g = /* @__PURE__ */ m(() => i(p).margin), f = /* @__PURE__ */ m(() => i(p).background), h = /* @__PURE__ */ m(() => i(p).shape), k = /* @__PURE__ */ m(() => i(p).border), y = /* @__PURE__ */ m(() => i(p).shadow), b = $r(), P = /* @__PURE__ */ m(b), I = /* @__PURE__ */ m(() => Ee({
7151
+ })), u = /* @__PURE__ */ m(() => i(p).size), _ = /* @__PURE__ */ m(() => i(p).padding), g = /* @__PURE__ */ m(() => i(p).margin), f = /* @__PURE__ */ m(() => i(p).background), h = /* @__PURE__ */ m(() => i(p).shape), k = /* @__PURE__ */ m(() => i(p).border), y = /* @__PURE__ */ m(() => i(p).shadow), b = $r(), P = /* @__PURE__ */ m(b), I = /* @__PURE__ */ m(() => Se({
7150
7152
  width: er(i(u).width),
7151
7153
  height: er(i(u).height),
7152
7154
  margin: We(i(g)),
7153
7155
  padding: We(i(_)),
7154
7156
  ...it(i(P), null, i(f)),
7155
- border: zt(i(P), i(k)),
7157
+ border: At(i(P), i(k)),
7156
7158
  "border-radius": va(i(h)),
7157
7159
  "box-shadow": ba(i(P), i(y))
7158
7160
  })), S = an(l.find((T) => T.id === c) ?? l.at(0)), q = (T, x) => {
@@ -7294,7 +7296,7 @@ function Pr(e, r) {
7294
7296
  const t = ke(), a = () => ye(l, "$selectedState", t), n = /* @__PURE__ */ wr(r, ["$$slots", "$$events", "$$legacy"]), { onclick: o, children: s } = n, l = Lr(), c = /* @__PURE__ */ m(() => ({
7295
7297
  ...n,
7296
7298
  ...Br(a(), r.overrides)
7297
- })), d = /* @__PURE__ */ m(() => i(c).components), p = /* @__PURE__ */ m(() => i(c).size), u = /* @__PURE__ */ m(() => i(c).dimension), _ = /* @__PURE__ */ m(() => i(c).spacing), g = /* @__PURE__ */ m(() => i(c).margin), f = /* @__PURE__ */ m(() => i(c).padding), h = /* @__PURE__ */ m(() => i(c).background_color), k = /* @__PURE__ */ m(() => i(c).background), y = /* @__PURE__ */ m(() => i(c).border), b = /* @__PURE__ */ m(() => i(c).shape), P = /* @__PURE__ */ m(() => i(c).shadow), I = /* @__PURE__ */ m(() => i(c).badge), S = $r(), q = /* @__PURE__ */ m(S), M = /* @__PURE__ */ m(() => Ee({
7299
+ })), d = /* @__PURE__ */ m(() => i(c).components), p = /* @__PURE__ */ m(() => i(c).size), u = /* @__PURE__ */ m(() => i(c).dimension), _ = /* @__PURE__ */ m(() => i(c).spacing), g = /* @__PURE__ */ m(() => i(c).margin), f = /* @__PURE__ */ m(() => i(c).padding), h = /* @__PURE__ */ m(() => i(c).background_color), k = /* @__PURE__ */ m(() => i(c).background), y = /* @__PURE__ */ m(() => i(c).border), b = /* @__PURE__ */ m(() => i(c).shape), P = /* @__PURE__ */ m(() => i(c).shadow), I = /* @__PURE__ */ m(() => i(c).badge), S = $r(), q = /* @__PURE__ */ m(S), M = /* @__PURE__ */ m(() => Se({
7298
7300
  display: "flex",
7299
7301
  position: "relative",
7300
7302
  width: er(i(p).width),
@@ -7304,14 +7306,14 @@ function Pr(e, r) {
7304
7306
  margin: We(i(g)),
7305
7307
  padding: We(i(f)),
7306
7308
  ...it(i(q), i(h), i(k)),
7307
- border: zt(i(q), i(y)),
7309
+ border: At(i(q), i(y)),
7308
7310
  "border-radius": va(i(b)),
7309
7311
  "box-shadow": ba(i(q), i(P))
7310
7312
  })), w = (F) => {
7311
7313
  if (F === 0 || i(u).type !== "zlayer")
7312
7314
  return "";
7313
7315
  const { justifyContent: G, alignItems: B } = Tu(i(u).alignment);
7314
- return Ee({
7316
+ return Se({
7315
7317
  position: "absolute",
7316
7318
  inset: 0,
7317
7319
  display: "flex",
@@ -7321,7 +7323,7 @@ function Pr(e, r) {
7321
7323
  });
7322
7324
  }, D = /* @__PURE__ */ m(() => {
7323
7325
  var F;
7324
- return Ee(Iu(i(I), (F = i(y)) == null ? void 0 : F.width));
7326
+ return Se(Iu(i(I), (F = i(y)) == null ? void 0 : F.width));
7325
7327
  });
7326
7328
  var T = ne(), x = K(T);
7327
7329
  Zn(x, () => o !== void 0 ? "button" : "div", !1, (F, G) => {
@@ -7339,9 +7341,9 @@ function Pr(e, r) {
7339
7341
  F.namespaceURI === Ga,
7340
7342
  F.nodeName.includes("-")
7341
7343
  ));
7342
- var U = zu(), Q = K(U);
7344
+ var U = zu(), ee = K(U);
7343
7345
  {
7344
- var Te = (ge) => {
7346
+ var Ie = (ge) => {
7345
7347
  var oe = qu(), xe = E(oe);
7346
7348
  gn(xe, {
7347
7349
  get nodeData() {
@@ -7349,11 +7351,11 @@ function Pr(e, r) {
7349
7351
  }
7350
7352
  }), j(() => R(oe, "style", i(D))), v(ge, oe);
7351
7353
  };
7352
- L(Q, (ge) => {
7353
- i(I) && ge(Te);
7354
+ L(ee, (ge) => {
7355
+ i(I) && ge(Ie);
7354
7356
  });
7355
7357
  }
7356
- var ce = C(Q, 2);
7358
+ var ce = C(ee, 2);
7357
7359
  {
7358
7360
  var we = (ge) => {
7359
7361
  var oe = Fu();
@@ -7542,7 +7544,7 @@ function Qu(e, r) {
7542
7544
  de.removeEventListener("load", ve);
7543
7545
  };
7544
7546
  });
7545
- const q = /* @__PURE__ */ m(() => i(d).height.type === "fixed" ? i(d).height.value : Math.round(i(I) * (i(S).height / i(S).width))), M = /* @__PURE__ */ m(() => Ee({
7547
+ const q = /* @__PURE__ */ m(() => i(d).height.type === "fixed" ? i(d).height.value : Math.round(i(I) * (i(S).height / i(S).width))), M = /* @__PURE__ */ m(() => Se({
7546
7548
  width: er(i(d).width),
7547
7549
  height: `${i(q)}px`,
7548
7550
  margin: We(i(g)),
@@ -7564,7 +7566,7 @@ function Qu(e, r) {
7564
7566
  const { x: de, y: ve, radius: X, color: me } = i(k), je = vr(i(b), me);
7565
7567
  return `filter: drop-shadow(${de}px ${ve}px ${X}px ${je})`;
7566
7568
  }), B = /* @__PURE__ */ m(() => i(f) && ea(i(b), i(f)));
7567
- var U = Zu(), Q = E(U), Te = E(Q), ce = E(Te), we = E(ce);
7569
+ var U = Zu(), ee = E(U), Ie = E(ee), ce = E(Ie), we = E(ce);
7568
7570
  Ho(we, {
7569
7571
  get shape() {
7570
7572
  return i(p);
@@ -7597,7 +7599,7 @@ function Qu(e, r) {
7597
7599
  return i(B);
7598
7600
  }
7599
7601
  });
7600
- var xe = C(Te);
7602
+ var xe = C(Ie);
7601
7603
  {
7602
7604
  var Ae = (de) => {
7603
7605
  var ve = Gu();
@@ -7632,8 +7634,8 @@ function Qu(e, r) {
7632
7634
  });
7633
7635
  }
7634
7636
  j(() => {
7635
- R(U, "style", i(M)), R(Q, "viewBox", i(F)), R(Q, "style", i(G)), R(ce, "id", `${i(l)}-path`), R(_e, "id", `${i(l)}-border`), R(Ce, "clip-path", `url(#${i(l)}-path)`), R(Ve, "src", i(P).original), R(Ve, "style", i($e));
7636
- }), zc(Q, "contentRect", (de) => A(w, de)), Wi(U, "clientWidth", (de) => A(I, de)), v(e, U), $();
7637
+ R(U, "style", i(M)), R(ee, "viewBox", i(F)), R(ee, "style", i(G)), R(ce, "id", `${i(l)}-path`), R(_e, "id", `${i(l)}-border`), R(Ce, "clip-path", `url(#${i(l)}-path)`), R(Ve, "src", i(P).original), R(Ve, "style", i($e));
7638
+ }), zc(ee, "contentRect", (de) => A(w, de)), Wi(U, "clientWidth", (de) => A(I, de)), v(e, U), $();
7637
7639
  }
7638
7640
  function ep(e, r) {
7639
7641
  W(r, !0);
@@ -7662,9 +7664,9 @@ function op(e, r) {
7662
7664
  const t = ke(), a = () => ye(s, "$selectedState", t), n = /* @__PURE__ */ wr(r, ["$$slots", "$$events", "$$legacy"]), { stack: o } = n, s = Lr(), l = /* @__PURE__ */ m(() => ({
7663
7665
  ...n,
7664
7666
  ...Br(a(), r.overrides)
7665
- })), c = /* @__PURE__ */ m(() => i(l).size), d = /* @__PURE__ */ m(() => i(l).background), p = /* @__PURE__ */ m(() => i(l).background_blur), u = $r(), _ = /* @__PURE__ */ m(u), g = /* @__PURE__ */ m(() => Ee({
7667
+ })), c = /* @__PURE__ */ m(() => i(l).size), d = /* @__PURE__ */ m(() => i(l).background), p = /* @__PURE__ */ m(() => i(l).background_blur), u = $r(), _ = /* @__PURE__ */ m(u), g = /* @__PURE__ */ m(() => Se({
7666
7668
  background: i(p) ? "#0000003f" : ""
7667
- })), f = /* @__PURE__ */ m(() => Ee({
7669
+ })), f = /* @__PURE__ */ m(() => Se({
7668
7670
  height: er(i(c).height),
7669
7671
  ...it(i(_), null, i(d))
7670
7672
  })), { onButtonAction: h } = ya();
@@ -7771,7 +7773,7 @@ function lp(e, r) {
7771
7773
  });
7772
7774
  const k = Jt(_, (M) => n()[M || ""]);
7773
7775
  os(k);
7774
- const y = /* @__PURE__ */ m(() => Ee({
7776
+ const y = /* @__PURE__ */ m(() => Se({
7775
7777
  ...it(i(s), null, p.background)
7776
7778
  }));
7777
7779
  Xe(() => {
@@ -7849,12 +7851,12 @@ function gp(e, r) {
7849
7851
  const t = ke(), a = () => ye(o, "$selectedState", t), n = /* @__PURE__ */ wr(r, ["$$slots", "$$events", "$$legacy"]), o = Lr(), s = /* @__PURE__ */ m(() => ({
7850
7852
  ...n,
7851
7853
  ...Br(a(), r.overrides)
7852
- })), l = /* @__PURE__ */ m(() => i(s).icon), c = /* @__PURE__ */ m(() => i(s).title), d = /* @__PURE__ */ m(() => i(s).description), p = /* @__PURE__ */ m(() => i(s).connector), u = /* @__PURE__ */ m(() => i(s).text_spacing), _ = /* @__PURE__ */ m(() => i(s).item_spacing), g = $r(), f = /* @__PURE__ */ m(g), h = Ee({ position: "relative" }), k = Ee({ position: "relative", "z-index": "2" }), y = /* @__PURE__ */ m(() => Ee(up(i(f), {
7854
+ })), l = /* @__PURE__ */ m(() => i(s).icon), c = /* @__PURE__ */ m(() => i(s).title), d = /* @__PURE__ */ m(() => i(s).description), p = /* @__PURE__ */ m(() => i(s).connector), u = /* @__PURE__ */ m(() => i(s).text_spacing), _ = /* @__PURE__ */ m(() => i(s).item_spacing), g = $r(), f = /* @__PURE__ */ m(g), h = Se({ position: "relative" }), k = Se({ position: "relative", "z-index": "2" }), y = /* @__PURE__ */ m(() => Se(up(i(f), {
7853
7855
  text_spacing: i(u),
7854
7856
  item_spacing: i(_)
7855
7857
  }))), b = /* @__PURE__ */ m(() => {
7856
7858
  var B;
7857
- return i(p) ? Ee({
7859
+ return i(p) ? Se({
7858
7860
  position: "absolute",
7859
7861
  left: "50%",
7860
7862
  top: `${(((B = i(l)) == null ? void 0 : B.size.width.value) ?? 24) / 2}px`,
@@ -7873,16 +7875,16 @@ function gp(e, r) {
7873
7875
  colorMode: i(f),
7874
7876
  fallback: "#000000"
7875
7877
  });
7876
- return Ee({ width: "100%", height: "100%", background: B });
7878
+ return Se({ width: "100%", height: "100%", background: B });
7877
7879
  });
7878
7880
  var I = _p(), S = K(I);
7879
7881
  R(S, "style", h);
7880
7882
  var q = E(S);
7881
7883
  {
7882
7884
  var M = (B) => {
7883
- var U = pp(), Q = E(U);
7885
+ var U = pp(), ee = E(U);
7884
7886
  j(() => {
7885
- R(U, "style", i(b)), R(Q, "style", i(P));
7887
+ R(U, "style", i(b)), R(ee, "style", i(P));
7886
7888
  }), v(B, U);
7887
7889
  };
7888
7890
  L(q, (B) => {
@@ -7921,7 +7923,7 @@ function fp(e, r) {
7921
7923
  "size",
7922
7924
  "padding",
7923
7925
  "margin"
7924
- ])), k = /* @__PURE__ */ m(() => Ee(dp({
7926
+ ])), k = /* @__PURE__ */ m(() => Se(dp({
7925
7927
  items: i(l),
7926
7928
  text_spacing: i(c),
7927
7929
  item_spacing: i(d),
@@ -8729,7 +8731,7 @@ const f_ = {
8729
8731
  function io(e, r) {
8730
8732
  W(r, !0), Z(e, f_);
8731
8733
  let t = V(r, "title", 3, null), a = V(r, "closeButtonTitle", 3, "Go back to app"), n = V(r, "icon", 3, null), o = V(r, "message", 3, null);
8732
- const s = Se(oo);
8734
+ const s = Te(oo);
8733
8735
  function l() {
8734
8736
  r.onDismiss();
8735
8737
  }
@@ -8787,7 +8789,7 @@ function io(e, r) {
8787
8789
  }
8788
8790
  function Ge(e, r) {
8789
8791
  W(r, !0);
8790
- const t = ke(), a = () => ye(o, "$translator", t), n = V(r, "key", 3, ""), o = Se(or), s = /* @__PURE__ */ m(() => n() ? a().translate(n() || "", r.variables) : void 0);
8792
+ const t = ke(), a = () => ye(o, "$translator", t), n = V(r, "key", 3, ""), o = Te(or), s = /* @__PURE__ */ m(() => n() ? a().translate(n() || "", r.variables) : void 0);
8791
8793
  var l = ne(), c = K(l);
8792
8794
  {
8793
8795
  var d = (u) => {
@@ -8815,7 +8817,7 @@ function k_(e, r) {
8815
8817
  W(r, !1), Z(e, b_);
8816
8818
  const t = ke(), a = () => ye(k, "$translator", t), n = gr(), o = gr(), s = gr(), l = gr(), c = gr(), d = gr(), p = gr(), u = gr(), _ = gr(), g = gr();
8817
8819
  let f = V(r, "brandingInfo", 8, null), h = V(r, "purchaseOption", 8, null);
8818
- const k = Se(or);
8820
+ const k = Te(or);
8819
8821
  function y(x) {
8820
8822
  return x != null && "base" in x;
8821
8823
  }
@@ -8885,8 +8887,8 @@ function k_(e, r) {
8885
8887
  ae(G, {
8886
8888
  size: "caption-default",
8887
8889
  children: (B, U) => {
8888
- var Q = fe();
8889
- j(() => te(Q, i(_))), v(B, Q);
8890
+ var ee = fe();
8891
+ j(() => te(ee, i(_))), v(B, ee);
8890
8892
  },
8891
8893
  $$slots: { default: !0 }
8892
8894
  }), v(x, F);
@@ -8902,8 +8904,8 @@ function k_(e, r) {
8902
8904
  ae(G, {
8903
8905
  size: "caption-default",
8904
8906
  children: (B, U) => {
8905
- var Q = fe();
8906
- j(() => te(Q, i(g))), v(B, Q);
8907
+ var ee = fe();
8908
+ j(() => te(ee, i(g))), v(B, ee);
8907
8909
  },
8908
8910
  $$slots: { default: !0 }
8909
8911
  }), v(x, F);
@@ -9111,7 +9113,7 @@ function hs(e) {
9111
9113
  function N_(e, r) {
9112
9114
  var d, p;
9113
9115
  W(r, !0);
9114
- const t = ke(), a = () => ye(n, "$translator", t), n = Se(or), o = Se(oo), s = /* @__PURE__ */ m(() => r.priceBreakdown ? a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency) : null), l = (p = (d = r.subscriptionOption) == null ? void 0 : d.trial) == null ? void 0 : p.period, c = /* @__PURE__ */ m(() => l ? a().translatePeriod(l.number, l.unit) : null);
9116
+ const t = ke(), a = () => ye(n, "$translator", t), n = Te(or), o = Te(oo), s = /* @__PURE__ */ m(() => r.priceBreakdown ? a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency) : null), l = (p = (d = r.subscriptionOption) == null ? void 0 : d.trial) == null ? void 0 : p.period, c = /* @__PURE__ */ m(() => l ? a().translatePeriod(l.number, l.unit) : null);
9115
9117
  ms(e, {
9116
9118
  get disabled() {
9117
9119
  return r.disabled;
@@ -9634,7 +9636,7 @@ var og = function(r) {
9634
9636
  version: "7.3.1",
9635
9637
  startTime: t
9636
9638
  });
9637
- }, Bt = null, Ea = null, Sa = null, lg = function(r) {
9639
+ }, Rt = null, Ea = null, Sa = null, lg = function(r) {
9638
9640
  return function(t) {
9639
9641
  r(new Error("Failed to load Stripe.js", {
9640
9642
  cause: t
@@ -9645,7 +9647,7 @@ var og = function(r) {
9645
9647
  window.Stripe ? r(window.Stripe) : t(new Error("Stripe.js not available"));
9646
9648
  };
9647
9649
  }, dg = function(r) {
9648
- return Bt !== null ? Bt : (Bt = new Promise(function(t, a) {
9650
+ return Rt !== null ? Rt : (Rt = new Promise(function(t, a) {
9649
9651
  if (typeof window > "u" || typeof document > "u") {
9650
9652
  t(null);
9651
9653
  return;
@@ -9669,8 +9671,8 @@ var og = function(r) {
9669
9671
  a(s);
9670
9672
  return;
9671
9673
  }
9672
- }), Bt.catch(function(t) {
9673
- return Bt = null, Promise.reject(t);
9674
+ }), Rt.catch(function(t) {
9675
+ return Rt = null, Promise.reject(t);
9674
9676
  }));
9675
9677
  }, ug = function(r, t, a) {
9676
9678
  if (r === null)
@@ -9679,10 +9681,10 @@ var og = function(r) {
9679
9681
  o && s !== l && console.warn("Stripe.js@".concat(s, " was loaded on the page, but @stripe/stripe-js@").concat("7.3.1", " expected Stripe.js@").concat(l, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
9680
9682
  var c = r.apply(void 0, t);
9681
9683
  return sg(c, a), c;
9682
- }, Rt, Ss = !1, Ts = function() {
9683
- return Rt || (Rt = dg(null).catch(function(r) {
9684
- return Rt = null, Promise.reject(r);
9685
- }), Rt);
9684
+ }, Ut, Ss = !1, Ts = function() {
9685
+ return Ut || (Ut = dg(null).catch(function(r) {
9686
+ return Ut = null, Promise.reject(r);
9687
+ }), Ut);
9686
9688
  };
9687
9689
  Promise.resolve().then(function() {
9688
9690
  return Ts();
@@ -10025,7 +10027,7 @@ function vg(e, r) {
10025
10027
  var bg = /* @__PURE__ */ z("<div></div> <!>", 1);
10026
10028
  function kg(e, r) {
10027
10029
  W(r, !0);
10028
- const t = ke(), a = () => ye(n, "$translator", t), n = Se(or);
10030
+ const t = ke(), a = () => ye(n, "$translator", t), n = Te(or);
10029
10031
  let o = null, s = J(!1);
10030
10032
  const l = "express-checkout-element", c = async (h) => {
10031
10033
  const k = {
@@ -10079,7 +10081,7 @@ function xg(e, r) {
10079
10081
  W(r, !0), Z(e, Pg);
10080
10082
  const t = ke(), a = () => ye(s, "$translator", t);
10081
10083
  let n = V(r, "stripe", 15, null), o = V(r, "elements", 15, null);
10082
- const s = Se(or), l = Le.getStripeLocale(a().locale || a().fallbackLocale);
10084
+ const s = Te(or), l = Le.getStripeLocale(a().locale || a().fallbackLocale);
10083
10085
  let c = J(!1), d = J(Y(r.skipEmail)), p = J(!1), u = J(void 0), _ = J("mobile"), g = J(void 0);
10084
10086
  function f() {
10085
10087
  window.matchMedia && window.matchMedia("(max-width: 767px)").matches ? A(_, "mobile") : A(_, "desktop"), A(u, Y({
@@ -10233,7 +10235,7 @@ function Dg(e, r) {
10233
10235
  }
10234
10236
  function Fg(e, r) {
10235
10237
  W(r, !0);
10236
- const t = ke(), a = () => ye(n, "$translator", t), n = Se(or);
10238
+ const t = ke(), a = () => ye(n, "$translator", t), n = Te(or);
10237
10239
  var o = /* @__PURE__ */ m(() => a().translate(H.PriceUpdateTitle)), s = /* @__PURE__ */ m(() => {
10238
10240
  var l;
10239
10241
  return a().translate((l = r.subscriptionOption) != null && l.trial ? H.PriceUpdateTrialMessage : H.PriceUpdateBaseMessage);
@@ -10274,7 +10276,7 @@ const Cg = {
10274
10276
  function jg(e, r) {
10275
10277
  var fo, ho, yo;
10276
10278
  W(r, !0), Z(e, Cg);
10277
- const t = ke(), a = () => ye(o, "$translator", t), n = Se(no), o = Se(or), s = (fo = r.productDetails.subscriptionOptions) == null ? void 0 : fo[r.purchaseOption.id], l = qs(r.productDetails, r.purchaseOption);
10279
+ const t = ke(), a = () => ye(o, "$translator", t), n = Te(no), o = Te(or), s = (fo = r.productDetails.subscriptionOptions) == null ? void 0 : fo[r.purchaseOption.id], l = qs(r.productDetails, r.purchaseOption);
10278
10280
  let c = J(Y(((ho = r.defaultPriceBreakdown) == null ? void 0 : ho.taxCalculationStatus) ?? ((yo = r.brandingInfo) != null && yo.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), d = J(null), p = J(null), u = J(Y(l.amountMicros)), _ = J(Y(l.amountMicros)), g = /* @__PURE__ */ m(() => r.defaultPriceBreakdown ?? {
10279
10281
  currency: l.currency,
10280
10282
  totalAmountInMicros: i(_),
@@ -10296,12 +10298,12 @@ function jg(e, r) {
10296
10298
  n.trackSDKEvent(st), ie == null || ie.throwIfAborted(), be.failed_reason ? !O && be.failed_reason === so.invalid_tax_location ? A(c, "pending") : A(c, "disabled") : A(c, "calculated"), A(d, Y(be.tax_amount_in_micros)), A(u, Y(be.total_excluding_tax_in_micros)), A(_, Y(be.total_amount_in_micros)), A(p, Y(be.tax_breakdown)), A(f, Y(be.gateway_params.elements_configuration)), A(h, Y(O));
10297
10299
  });
10298
10300
  }
10299
- function Q() {
10301
+ function ee() {
10300
10302
  n.trackSDKEvent({
10301
10303
  eventName: rr.CheckoutPaymentFormImpression
10302
10304
  }), A(I, !1);
10303
10305
  }
10304
- async function Te(O, ie) {
10306
+ async function Ie(O, ie) {
10305
10307
  A(b, Y(ie)), A(P, Y(O)), await Ue();
10306
10308
  }
10307
10309
  async function ce({ complete: O, paymentMethod: ie }) {
@@ -10350,14 +10352,14 @@ function jg(e, r) {
10350
10352
  i(y) && await Le.submitElements(i(y));
10351
10353
  }
10352
10354
  async function Ae(O) {
10353
- var lt, Ot;
10355
+ var lt, Lt;
10354
10356
  if (i(c) === "unavailable" || i(c) === "disabled" || !i(y) || !i(k))
10355
10357
  return;
10356
10358
  const {
10357
10359
  customerDetails: ie,
10358
10360
  confirmationTokenId: be
10359
10361
  } = await Le.extractTaxCustomerDetails(i(y), i(k));
10360
- return O == null || O.throwIfAborted(), ie.postalCode === ((lt = i(h)) == null ? void 0 : lt.postalCode) && ie.countryCode === ((Ot = i(h)) == null ? void 0 : Ot.countryCode) || await U(ie, O), be && i(q) !== "card" ? be : void 0;
10362
+ return O == null || O.throwIfAborted(), ie.postalCode === ((lt = i(h)) == null ? void 0 : lt.postalCode) && ie.countryCode === ((Lt = i(h)) == null ? void 0 : Lt.countryCode) || await U(ie, O), be && i(q) !== "card" ? be : void 0;
10361
10363
  }
10362
10364
  function Ce(O) {
10363
10365
  return () => {
@@ -10422,8 +10424,8 @@ function jg(e, r) {
10422
10424
  Ki(lt);
10423
10425
  },
10424
10426
  message: (lt) => {
10425
- var Ot = fe();
10426
- j(() => te(Ot, i(M))), v(lt, Ot);
10427
+ var Lt = fe();
10428
+ j(() => te(Lt, i(M))), v(lt, Lt);
10427
10429
  },
10428
10430
  $$slots: { icon: !0, message: !0 }
10429
10431
  });
@@ -10452,9 +10454,9 @@ function jg(e, r) {
10452
10454
  get billingAddressRequired() {
10453
10455
  return i(on);
10454
10456
  },
10455
- onLoadingComplete: Q,
10457
+ onLoadingComplete: ee,
10456
10458
  onError: Oe,
10457
- onEmailChange: Te,
10459
+ onEmailChange: Ie,
10458
10460
  onPaymentInfoChange: ce,
10459
10461
  onExpressCheckoutElementSubmit: _e,
10460
10462
  get expressCheckoutOptions() {
@@ -10562,18 +10564,18 @@ function Og(e) {
10562
10564
  s = r * o;
10563
10565
  break;
10564
10566
  default:
10565
- s = 0, ee.errorLog(`Unknown period unit: ${t}`);
10567
+ s = 0, Q.errorLog(`Unknown period unit: ${t}`);
10566
10568
  }
10567
10569
  const l = s > 0 ? a / s : 0, c = s > 0 ? n / s : 0, d = s > 0 ? o / s : 0;
10568
10570
  return { toWeek: l, toMonth: c, toYear: d };
10569
10571
  }
10570
- const Lg = (e) => e.base == null ? (ee.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
10572
+ const Lg = (e) => e.base == null ? (Q.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
10571
10573
  id: e.id,
10572
10574
  priceId: e.price_id,
10573
10575
  base: hn(e.base),
10574
10576
  trial: e.trial ? hn(e.trial) : null,
10575
10577
  introPrice: e.intro_price ? hn(e.intro_price) : null
10576
- }, Bg = (e) => e.base_price == null ? (ee.debugLog(
10578
+ }, Bg = (e) => e.base_price == null ? (Q.debugLog(
10577
10579
  "Missing base price for non-subscription option. Ignoring."
10578
10580
  ), null) : {
10579
10581
  id: e.id,
@@ -10600,11 +10602,11 @@ const Lg = (e) => e.base == null ? (ee.debugLog("Missing base phase for subscrip
10600
10602
  c != null && (a[s] = c);
10601
10603
  }
10602
10604
  ), Object.keys(a).length === 0)
10603
- return ee.debugLog(
10605
+ return Q.debugLog(
10604
10606
  `Product ${e.identifier} has no purchase options. Ignoring.`
10605
10607
  ), null;
10606
10608
  const n = e.default_purchase_option_id, o = n && n in e.purchase_options ? a[n] : null;
10607
- return o == null ? (ee.debugLog(
10609
+ return o == null ? (Q.debugLog(
10608
10610
  `Product ${e.identifier} has no default purchase option. Ignoring.`
10609
10611
  ), null) : {
10610
10612
  identifier: e.identifier,
@@ -10633,16 +10635,16 @@ const Lg = (e) => e.base == null ? (ee.debugLog("Missing base phase for subscrip
10633
10635
  d != null && (a[l] = d);
10634
10636
  }
10635
10637
  ), Object.keys(a).length === 0)
10636
- return ee.debugLog(
10638
+ return Q.debugLog(
10637
10639
  `Product ${e.identifier} has no subscription options. Ignoring.`
10638
10640
  ), null;
10639
10641
  const n = e.default_purchase_option_id, o = n && n in a ? a[n] : null;
10640
10642
  if (o == null)
10641
- return ee.debugLog(
10643
+ return Q.debugLog(
10642
10644
  `Product ${e.identifier} has no default subscription option. Ignoring.`
10643
10645
  ), null;
10644
10646
  const s = o.base.price;
10645
- return s == null ? (ee.debugLog(
10647
+ return s == null ? (Q.debugLog(
10646
10648
  `Product ${e.identifier} default option has no base price. Ignoring.`
10647
10649
  ), null) : {
10648
10650
  identifier: e.identifier,
@@ -10829,9 +10831,9 @@ const gm = {
10829
10831
  };
10830
10832
  function mm(e, r) {
10831
10833
  W(r, !0), Z(e, gm);
10832
- const t = ke(), a = () => ye(o, "$translator", t), n = /* @__PURE__ */ m(() => r.lastError ?? new he(pe.UnknownError, "Unknown error without state set.")), o = Se(or), s = /* @__PURE__ */ m(() => i(n).errorCode === pe.StripeTaxNotActive || i(n).errorCode === pe.StripeInvalidTaxOriginAddress || i(n).errorCode === pe.StripeMissingRequiredPermission);
10834
+ const t = ke(), a = () => ye(o, "$translator", t), n = /* @__PURE__ */ m(() => r.lastError ?? new he(pe.UnknownError, "Unknown error without state set.")), o = Te(or), s = /* @__PURE__ */ m(() => i(n).errorCode === pe.StripeTaxNotActive || i(n).errorCode === pe.StripeInvalidTaxOriginAddress || i(n).errorCode === pe.StripeMissingRequiredPermission);
10833
10835
  Xe(() => {
10834
- ee.errorLog(`Displayed error: ${pe[i(n).errorCode]}. Message: ${i(n).message ?? "None"}. Underlying error: ${i(n).underlyingErrorMessage ?? "None"}`);
10836
+ Q.errorLog(`Displayed error: ${pe[i(n).errorCode]}. Message: ${i(n).message ?? "None"}. Underlying error: ${i(n).underlyingErrorMessage ?? "None"}`);
10835
10837
  });
10836
10838
  function l() {
10837
10839
  return i(n).errorCode === pe.AlreadyPurchasedError ? a().translate(H.ErrorPageCloseButtonTitle, { appName: r.appName ?? "App" }) : i(s) ? a().translate(H.ErrorButtonClose) : a().translate(H.ErrorButtonTryAgain);
@@ -10941,7 +10943,7 @@ function fm(e, r) {
10941
10943
  W(r, !1);
10942
10944
  const t = ke(), a = () => ye(o, "$translator", t);
10943
10945
  let n = V(r, "onContinue", 8);
10944
- const o = Se(or), s = Se(no);
10946
+ const o = Te(or), s = Te(no);
10945
10947
  function l() {
10946
10948
  s.trackSDKEvent({
10947
10949
  eventName: rr.CheckoutPurchaseSuccessfulDismiss,
@@ -10987,7 +10989,7 @@ function bm(e, r) {
10987
10989
  W(r, !1), Z(e, vm);
10988
10990
  const t = ke(), a = () => ye(s, "$translator", t);
10989
10991
  let n = V(r, "isExpanded", 12, !0), o = V(r, "children", 8);
10990
- const s = Se(or);
10992
+ const s = Te(or);
10991
10993
  function l() {
10992
10994
  n(!n());
10993
10995
  }
@@ -11090,7 +11092,7 @@ function Fm(e, r) {
11090
11092
  });
11091
11093
  var U = C(T, 2);
11092
11094
  {
11093
- var Q = (ce) => {
11095
+ var ee = (ce) => {
11094
11096
  var we = xm(), _e = E(we), Ue = E(_e);
11095
11097
  ae(Ue, {
11096
11098
  size: "body-small",
@@ -11114,7 +11116,7 @@ function Fm(e, r) {
11114
11116
  },
11115
11117
  $$slots: { default: !0 }
11116
11118
  }), v(ce, we);
11117
- }, Te = (ce) => {
11119
+ }, Ie = (ce) => {
11118
11120
  var we = ne(), _e = K(we);
11119
11121
  {
11120
11122
  var Ue = (oe) => {
@@ -11176,7 +11178,7 @@ function Fm(e, r) {
11176
11178
  v(ce, we);
11177
11179
  };
11178
11180
  L(U, (ce) => {
11179
- r.priceBreakdown.taxCalculationStatus === "loading" ? ce(Q) : ce(Te, !1);
11181
+ r.priceBreakdown.taxCalculationStatus === "loading" ? ce(ee) : ce(Ie, !1);
11180
11182
  });
11181
11183
  }
11182
11184
  v(w, D);
@@ -11192,10 +11194,10 @@ function Fm(e, r) {
11192
11194
  ae(x, {
11193
11195
  size: "body-small",
11194
11196
  children: (B, U) => {
11195
- var Q = fe();
11196
- j(() => te(Q, a().translate(H.PricingTableTrialEnds, {
11197
+ var ee = fe();
11198
+ j(() => te(ee, a().translate(H.PricingTableTrialEnds, {
11197
11199
  formattedTrialEndDate: a().translateDate(i(o), { dateStyle: "medium" })
11198
- }))), v(B, Q);
11200
+ }))), v(B, ee);
11199
11201
  },
11200
11202
  $$slots: { default: !0 }
11201
11203
  });
@@ -11203,8 +11205,8 @@ function Fm(e, r) {
11203
11205
  ae(G, {
11204
11206
  size: "body-small",
11205
11207
  children: (B, U) => {
11206
- var Q = fe();
11207
- j(() => te(Q, a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency))), v(B, Q);
11208
+ var ee = fe();
11209
+ j(() => te(ee, a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency))), v(B, ee);
11208
11210
  },
11209
11211
  $$slots: { default: !0 }
11210
11212
  }), v(w, D);
@@ -11246,7 +11248,7 @@ function Fm(e, r) {
11246
11248
  };
11247
11249
  let o = J(null);
11248
11250
  (_ = r.trialPhase) != null && _.period && A(o, Y(Dn(/* @__PURE__ */ new Date(), r.trialPhase.period, !0)));
11249
- const s = Se(or), l = /* @__PURE__ */ m(() => r.priceBreakdown.taxCalculationStatus !== "unavailable" && r.priceBreakdown.taxCalculationStatus !== "disabled" && r.priceBreakdown.taxBreakdown && r.priceBreakdown.taxBreakdown.length > 0);
11251
+ const s = Te(or), l = /* @__PURE__ */ m(() => r.priceBreakdown.taxCalculationStatus !== "unavailable" && r.priceBreakdown.taxCalculationStatus !== "disabled" && r.priceBreakdown.taxBreakdown && r.priceBreakdown.taxBreakdown.length > 0);
11250
11252
  var c = ne(), d = K(c);
11251
11253
  {
11252
11254
  var p = (g) => {
@@ -11354,7 +11356,7 @@ const Bm = {
11354
11356
  };
11355
11357
  function Rm(e, r) {
11356
11358
  W(r, !0), Z(e, Bm);
11357
- const t = ke(), a = () => ye(n, "$translator", t), n = Se(or), o = /* @__PURE__ */ m(() => ({ hideSingularNumber: T }) => {
11359
+ const t = ke(), a = () => ye(n, "$translator", t), n = Te(or), o = /* @__PURE__ */ m(() => ({ hideSingularNumber: T }) => {
11358
11360
  const x = r.introPricePhase;
11359
11361
  if (!(x != null && x.period)) return "";
11360
11362
  const { number: F, unit: G } = x.period, B = F * x.cycleCount;
@@ -11415,7 +11417,7 @@ function Rm(e, r) {
11415
11417
  get size() {
11416
11418
  return i(l);
11417
11419
  },
11418
- children: (Q, Te) => {
11420
+ children: (ee, Ie) => {
11419
11421
  var ce = ne(), we = K(ce);
11420
11422
  {
11421
11423
  var _e = (ge) => {
@@ -11449,17 +11451,17 @@ function Rm(e, r) {
11449
11451
  i(d) ? ge(_e) : ge(Ue, !1);
11450
11452
  });
11451
11453
  }
11452
- v(Q, ce);
11454
+ v(ee, ce);
11453
11455
  },
11454
11456
  $$slots: { default: !0 }
11455
11457
  });
11456
11458
  var G = C(F, 2);
11457
11459
  {
11458
- var B = (Q) => {
11459
- ae(Q, {
11460
+ var B = (ee) => {
11461
+ ae(ee, {
11460
11462
  size: "body-small",
11461
- children: (Te, ce) => {
11462
- Ge(Te, {
11463
+ children: (Ie, ce) => {
11464
+ Ge(Ie, {
11463
11465
  get key() {
11464
11466
  return H.ProductInfoIntroPricePhasePaidOnce;
11465
11467
  }
@@ -11467,8 +11469,8 @@ function Rm(e, r) {
11467
11469
  },
11468
11470
  $$slots: { default: !0 }
11469
11471
  });
11470
- }, U = (Q) => {
11471
- var Te = ne(), ce = K(Te);
11472
+ }, U = (ee) => {
11473
+ var Ie = ne(), ce = K(Ie);
11472
11474
  {
11473
11475
  var we = (_e) => {
11474
11476
  ae(_e, {
@@ -11488,10 +11490,10 @@ function Rm(e, r) {
11488
11490
  !0
11489
11491
  );
11490
11492
  }
11491
- v(Q, Te);
11493
+ v(ee, Ie);
11492
11494
  };
11493
- L(G, (Q) => {
11494
- i(u) ? Q(B) : Q(U, !1);
11495
+ L(G, (ee) => {
11496
+ i(u) ? ee(B) : ee(U, !1);
11495
11497
  });
11496
11498
  }
11497
11499
  v(T, x);
@@ -11549,7 +11551,7 @@ function Rm(e, r) {
11549
11551
  var G = (B) => {
11550
11552
  ae(B, {
11551
11553
  size: "body-small",
11552
- children: (U, Q) => {
11554
+ children: (U, ee) => {
11553
11555
  Ge(U, {
11554
11556
  get key() {
11555
11557
  return H.ProductInfoAfterTrial;
@@ -11613,7 +11615,7 @@ function Hm(e, r) {
11613
11615
  trialPhase: c
11614
11616
  }), v(e, p);
11615
11617
  }
11616
- const Ht = (e) => `https://da08ctfrofx1b.cloudfront.net/${e}`;
11618
+ const Wt = (e) => `https://da08ctfrofx1b.cloudfront.net/${e}`;
11617
11619
  var Wm = /* @__PURE__ */ z('<div class="rcb-ui-container svelte-1h6xr8z"><!></div>');
11618
11620
  const $m = {
11619
11621
  hash: "svelte-1h6xr8z",
@@ -11635,7 +11637,7 @@ function Ym(e, r) {
11635
11637
  W(r, !0), Z(e, $m);
11636
11638
  const t = V(r, "brandingAppearance", 3, void 0), a = V(r, "brandFontConfig", 3, void 0), n = V(r, "isInElement", 3, !1), o = /* @__PURE__ */ m(() => new aa(t()).getTextStyleVars(a())), s = /* @__PURE__ */ m(() => new aa(t()).spacingStyleVars), l = /* @__PURE__ */ m(() => [i(o), i(s)].join("; ")), c = /* @__PURE__ */ m(() => {
11637
11639
  var _;
11638
- return (_ = a()) != null && _.font_url ? Ht(a().font_url) : null;
11640
+ return (_ = a()) != null && _.font_url ? Wt(a().font_url) : null;
11639
11641
  }), d = async (_) => {
11640
11642
  try {
11641
11643
  const g = new FontFace(bs, `url(${_})`);
@@ -11805,7 +11807,7 @@ function bf(e, r) {
11805
11807
  W(r, !1), Z(e, vf);
11806
11808
  let t = V(r, "style", 8, ""), a = V(r, "isInElement", 8, !1), n = V(r, "brandingInfo", 8, null), o = gr(!0);
11807
11809
  function s() {
11808
- ee.debugLog("closeBanner"), A(o, !1);
11810
+ Q.debugLog("closeBanner"), A(o, !1);
11809
11811
  }
11810
11812
  pr();
11811
11813
  var l = ne(), c = K(l);
@@ -12054,7 +12056,7 @@ function Vf(e, r) {
12054
12056
  }), s = /* @__PURE__ */ m(() => {
12055
12057
  var w;
12056
12058
  return t((w = r.brandingInfo) == null ? void 0 : w.app_wordmark_webp);
12057
- }), l = /* @__PURE__ */ m(() => i(a) ? Ht(i(a)) : null), c = /* @__PURE__ */ m(() => i(n) ? Ht(i(n)) : null), d = /* @__PURE__ */ m(() => i(o) ? Ht(i(o)) : null), p = /* @__PURE__ */ m(() => i(s) ? Ht(i(s)) : null), u = () => {
12059
+ }), l = /* @__PURE__ */ m(() => i(a) ? Wt(i(a)) : null), c = /* @__PURE__ */ m(() => i(n) ? Wt(i(n)) : null), d = /* @__PURE__ */ m(() => i(o) ? Wt(i(o)) : null), p = /* @__PURE__ */ m(() => i(s) ? Wt(i(s)) : null), u = () => {
12058
12060
  r.onClose && r.onClose();
12059
12061
  };
12060
12062
  var _ = Rf(), g = E(_);
@@ -12309,7 +12311,7 @@ function $f(e) {
12309
12311
  function Yf(e) {
12310
12312
  if (e && !e.match(/^[A-Z]{3}$/)) {
12311
12313
  const r = `Currency code ${e} is not valid. Please provide a valid ISO 4217 currency code.`;
12312
- throw ee.errorLog(r), new Pe(Ie.ConfigurationError, r);
12314
+ throw Q.errorLog(r), new Pe(Ee.ConfigurationError, r);
12313
12315
  }
12314
12316
  }
12315
12317
  function Gf(e, r) {
@@ -12427,7 +12429,7 @@ function Xf(e, r, t, a) {
12427
12429
  a[n]
12428
12430
  );
12429
12431
  throw new Pe(
12430
- Ie.CustomerInfoError,
12432
+ Ee.CustomerInfoError,
12431
12433
  "Could not find entitlement product in subscriptions or non-subscriptions."
12432
12434
  );
12433
12435
  }
@@ -12609,7 +12611,7 @@ function th(e) {
12609
12611
  }
12610
12612
  return r;
12611
12613
  }
12612
- const Ns = "1.14.3", ah = "https://api.revenuecat.com", nh = "https://e.revenue.cat";
12614
+ const Ns = "1.15.0", ah = "https://api.revenuecat.com", nh = "https://e.revenue.cat";
12613
12615
  var Ha;
12614
12616
  (function(e) {
12615
12617
  e[e.CONTINUE = 100] = "CONTINUE", e[e.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", e[e.PROCESSING = 102] = "PROCESSING", e[e.EARLY_HINTS = 103] = "EARLY_HINTS", e[e.OK = 200] = "OK", e[e.CREATED = 201] = "CREATED", e[e.ACCEPTED = 202] = "ACCEPTED", e[e.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", e[e.NO_CONTENT = 204] = "NO_CONTENT", e[e.RESET_CONTENT = 205] = "RESET_CONTENT", e[e.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", e[e.MULTI_STATUS = 207] = "MULTI_STATUS", e[e.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", e[e.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", e[e.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", e[e.SEE_OTHER = 303] = "SEE_OTHER", e[e.NOT_MODIFIED = 304] = "NOT_MODIFIED", e[e.USE_PROXY = 305] = "USE_PROXY", e[e.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", e[e.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", e[e.BAD_REQUEST = 400] = "BAD_REQUEST", e[e.UNAUTHORIZED = 401] = "UNAUTHORIZED", e[e.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", e[e.FORBIDDEN = 403] = "FORBIDDEN", e[e.NOT_FOUND = 404] = "NOT_FOUND", e[e.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", e[e.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", e[e.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", e[e.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", e[e.CONFLICT = 409] = "CONFLICT", e[e.GONE = 410] = "GONE", e[e.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", e[e.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", e[e.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", e[e.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", e[e.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", e[e.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", e[e.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", e[e.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", e[e.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", e[e.METHOD_FAILURE = 420] = "METHOD_FAILURE", e[e.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", e[e.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", e[e.LOCKED = 423] = "LOCKED", e[e.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", e[e.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", e[e.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", e[e.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", e[e.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", e[e.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", e[e.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", e[e.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", e[e.BAD_GATEWAY = 502] = "BAD_GATEWAY", e[e.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", e[e.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", e[e.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", e[e.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", e[e.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
@@ -12639,8 +12641,8 @@ async function _r(e, r, t) {
12639
12641
  return await dh(d, e), await d.json();
12640
12642
  } catch (d) {
12641
12643
  throw d instanceof TypeError ? new Pe(
12642
- Ie.NetworkError,
12643
- $t.getPublicMessage(Ie.NetworkError),
12644
+ Ee.NetworkError,
12645
+ Ft.getPublicMessage(Ee.NetworkError),
12644
12646
  d.message
12645
12647
  ) : d;
12646
12648
  }
@@ -12652,7 +12654,7 @@ async function dh(e, r) {
12652
12654
  else if (t >= Ha.BAD_REQUEST) {
12653
12655
  const a = await e.json(), n = a ? JSON.stringify(a) : null, o = a == null ? void 0 : a.code, s = a == null ? void 0 : a.message;
12654
12656
  if (o != null) {
12655
- const l = $t.convertCodeToBackendErrorCode(o);
12657
+ const l = Ft.convertCodeToBackendErrorCode(o);
12656
12658
  if (l == null)
12657
12659
  yn(
12658
12660
  r,
@@ -12671,7 +12673,7 @@ async function dh(e, r) {
12671
12673
  }
12672
12674
  function yn(e, r, t, a) {
12673
12675
  throw new Pe(
12674
- Ie.UnknownBackendError,
12676
+ Ee.UnknownBackendError,
12675
12677
  "Unknown backend error.",
12676
12678
  `Request: ${e.name}. Status code: ${r}. Body: ${t}.`,
12677
12679
  { backendErrorCode: a }
@@ -12709,7 +12711,7 @@ function $s(e, r, t) {
12709
12711
  }
12710
12712
  return r && (a = { ...a, ...r }), t && (a = { ...t, ...a }), a;
12711
12713
  }
12712
- const nn = "/v1/subscribers", Nt = "/rcbilling/v1";
12714
+ const nn = "/v1/subscribers", Ot = "/rcbilling/v1";
12713
12715
  class _h {
12714
12716
  constructor(r) {
12715
12717
  N(this, "appUserId");
@@ -12733,7 +12735,7 @@ class gh {
12733
12735
  }
12734
12736
  urlPath() {
12735
12737
  const r = encodeURIComponent(this.appUserId), t = this.productIds.map(encodeURIComponent).join("&id="), a = this.currency ? `&currency=${this.currency}` : "";
12736
- return `${Nt}/subscribers/${r}/products?id=${t}${a}`;
12738
+ return `${Ot}/subscribers/${r}/products?id=${t}${a}`;
12737
12739
  }
12738
12740
  }
12739
12741
  class mh {
@@ -12754,7 +12756,7 @@ class fh {
12754
12756
  N(this, "name", "getBrandingInfo");
12755
12757
  }
12756
12758
  urlPath() {
12757
- return `${Nt}/branding`;
12759
+ return `${Ot}/branding`;
12758
12760
  }
12759
12761
  }
12760
12762
  class hh {
@@ -12763,7 +12765,7 @@ class hh {
12763
12765
  N(this, "name", "postCheckoutStart");
12764
12766
  }
12765
12767
  urlPath() {
12766
- return `${Nt}/checkout/start`;
12768
+ return `${Ot}/checkout/start`;
12767
12769
  }
12768
12770
  }
12769
12771
  class yh {
@@ -12774,7 +12776,7 @@ class yh {
12774
12776
  this.operationSessionId = r;
12775
12777
  }
12776
12778
  urlPath() {
12777
- return `${Nt}/checkout/${this.operationSessionId}/calculate_taxes`;
12779
+ return `${Ot}/checkout/${this.operationSessionId}/calculate_taxes`;
12778
12780
  }
12779
12781
  }
12780
12782
  class vh {
@@ -12785,7 +12787,7 @@ class vh {
12785
12787
  this.operationSessionId = r;
12786
12788
  }
12787
12789
  urlPath() {
12788
- return `${Nt}/checkout/${this.operationSessionId}/complete`;
12790
+ return `${Ot}/checkout/${this.operationSessionId}/complete`;
12789
12791
  }
12790
12792
  }
12791
12793
  class bh {
@@ -12796,7 +12798,7 @@ class bh {
12796
12798
  this.operationSessionId = r;
12797
12799
  }
12798
12800
  urlPath() {
12799
- return `${Nt}/checkout/${this.operationSessionId}`;
12801
+ return `${Ot}/checkout/${this.operationSessionId}`;
12800
12802
  }
12801
12803
  }
12802
12804
  class kh {
@@ -12988,7 +12990,7 @@ class xh {
12988
12990
  function Eh(e, r) {
12989
12991
  if (!(lh(e) || pt(e) || ch(e) && (r == null ? void 0 : r.allowPaddleAPIKey)))
12990
12992
  throw new Pe(
12991
- Ie.InvalidCredentialsError,
12993
+ Ee.InvalidCredentialsError,
12992
12994
  "Invalid API key. Use your Web Billing API key."
12993
12995
  );
12994
12996
  }
@@ -13007,14 +13009,14 @@ function ei(e) {
13007
13009
  "unknown"
13008
13010
  ])).has(e) || e.includes("/"))
13009
13011
  throw new Pe(
13010
- Ie.InvalidAppUserIdError,
13012
+ Ee.InvalidAppUserIdError,
13011
13013
  'Provided user id: "' + (e ?? "[Not provided]") + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
13012
13014
  );
13013
13015
  }
13014
13016
  function Sh(e) {
13015
13017
  if (e != null && e.endsWith("/"))
13016
13018
  throw new Pe(
13017
- Ie.ConfigurationError,
13019
+ Ee.ConfigurationError,
13018
13020
  "Invalid proxy URL. The proxy URL should not end with a trailing slash."
13019
13021
  );
13020
13022
  }
@@ -13023,7 +13025,7 @@ function Th(e) {
13023
13025
  for (const r in e)
13024
13026
  if (ph.has(r))
13025
13027
  throw new Pe(
13026
- Ie.ConfigurationError,
13028
+ Ee.ConfigurationError,
13027
13029
  "Invalid additional headers. Some headers are reserved for internal use."
13028
13030
  );
13029
13031
  }
@@ -13114,7 +13116,7 @@ function Dh(e, r) {
13114
13116
  l != null && (a[o.identifier] = l);
13115
13117
  });
13116
13118
  const n = e.current_offering_id ? a[e.current_offering_id] ?? null : null;
13117
- return Object.keys(a).length == 0 && ee.debugLog(
13119
+ return Object.keys(a).length == 0 && Q.debugLog(
13118
13120
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
13119
13121
  ), {
13120
13122
  all: a,
@@ -13401,7 +13403,7 @@ class Gh {
13401
13403
  }
13402
13404
  tryFlush() {
13403
13405
  if (this.backingOff()) {
13404
- ee.debugLog("Backing off, not flushing");
13406
+ Q.debugLog("Backing off, not flushing");
13405
13407
  return;
13406
13408
  }
13407
13409
  this.clearTimeout(), this.executeCallbackWithRetries();
@@ -13419,14 +13421,14 @@ class Gh {
13419
13421
  }
13420
13422
  backoff() {
13421
13423
  const r = this.currentDelay, t = Math.min(this.currentDelay * 2, this.maxDelay);
13422
- ee.debugLog(`Backing next off to ${r}ms delay`), this.clearTimeout(), this.currentDelay = t, this.schedule(r);
13424
+ Q.debugLog(`Backing next off to ${r}ms delay`), this.clearTimeout(), this.currentDelay = t, this.schedule(r);
13423
13425
  }
13424
13426
  reset() {
13425
13427
  this.currentDelay !== this.initialDelay && (this.clearTimeout(), this.currentDelay = this.initialDelay);
13426
13428
  }
13427
13429
  async executeCallbackWithRetries() {
13428
13430
  if (this.executingCallback) {
13429
- ee.debugLog("Callback already running, rescheduling"), this.schedule();
13431
+ Q.debugLog("Callback already running, rescheduling"), this.schedule();
13430
13432
  return;
13431
13433
  }
13432
13434
  this.executingCallback = !0;
@@ -13542,7 +13544,7 @@ class ey {
13542
13544
  }
13543
13545
  trackEvent(r) {
13544
13546
  if (this.isSilent) {
13545
- ee.verboseLog("Skipping event tracking, the EventsTracker is silent");
13547
+ Q.verboseLog("Skipping event tracking, the EventsTracker is silent");
13546
13548
  return;
13547
13549
  }
13548
13550
  try {
@@ -13555,7 +13557,7 @@ class ey {
13555
13557
  });
13556
13558
  this.eventsQueue.push(t), this.flushManager.tryFlush();
13557
13559
  } catch (t) {
13558
- ee.errorLog(
13560
+ Q.errorLog(
13559
13561
  `Error while tracking event ${r.eventName}: ${t}`
13560
13562
  );
13561
13563
  }
@@ -13576,9 +13578,9 @@ class ey {
13576
13578
  this.eventsQueue.splice(0, r.length);
13577
13579
  return;
13578
13580
  } else
13579
- throw ee.debugLog("Events failed to flush due to server error"), new Error("Events failed to flush due to server error");
13581
+ throw Q.debugLog("Events failed to flush due to server error"), new Error("Events failed to flush due to server error");
13580
13582
  }).catch((t) => {
13581
- throw ee.debugLog("Error while flushing events"), t;
13583
+ throw Q.debugLog("Error while flushing events"), t;
13582
13584
  });
13583
13585
  }
13584
13586
  }
@@ -13617,8 +13619,8 @@ function sy(e, r) {
13617
13619
  var u = oy(), _ = E(u), g = E(_), f = C(E(g), 2), h = E(f), k = E(h), y = C(E(k)), b = C(k, 2), P = C(E(b)), I = C(b, 2), S = C(E(I)), q = C(I, 2);
13618
13620
  {
13619
13621
  var M = (B) => {
13620
- var U = ay(), Q = C(E(U));
13621
- j(() => te(Q, ` ${o() ?? ""}`)), v(B, U);
13622
+ var U = ay(), ee = C(E(U));
13623
+ j(() => te(ee, ` ${o() ?? ""}`)), v(B, U);
13622
13624
  };
13623
13625
  L(q, (B) => {
13624
13626
  o() && B(M);
@@ -13627,8 +13629,8 @@ function sy(e, r) {
13627
13629
  var w = C(q, 2);
13628
13630
  {
13629
13631
  var D = (B) => {
13630
- var U = ny(), Q = C(E(U));
13631
- j(() => te(Q, ` ${s() ?? ""}`)), v(B, U);
13632
+ var U = ny(), ee = C(E(U));
13633
+ j(() => te(ee, ` ${s() ?? ""}`)), v(B, U);
13632
13634
  };
13633
13635
  L(w, (B) => {
13634
13636
  s() && B(D);
@@ -13687,7 +13689,9 @@ function ly(e, r, t) {
13687
13689
  freeTrialPeriod: o ? c(o.period) : void 0,
13688
13690
  introPriceFormatted: (f = s == null ? void 0 : s.price) == null ? void 0 : f.formattedPrice,
13689
13691
  onValidPurchase: async () => {
13690
- _();
13692
+ _(), Q.debugLog(
13693
+ "[Test store] Performing test purchase. This purchase won't appear in production."
13694
+ );
13691
13695
  try {
13692
13696
  d(
13693
13697
  await Js(a, r, t)
@@ -13697,15 +13701,20 @@ function ly(e, r, t) {
13697
13701
  }
13698
13702
  },
13699
13703
  onFailedPurchase: () => {
13700
- _(), p(
13704
+ _(), Q.debugLog(
13705
+ "[Test store] Purchase failure simulated successfully in Test Store."
13706
+ ), p(
13701
13707
  new Pe(
13702
- Ie.ProductNotAvailableForPurchaseError,
13703
- "Simulated test purchase failure: no real transaction occurred"
13708
+ Ee.TestStoreSimulatedPurchaseError,
13709
+ Ft.getPublicMessage(
13710
+ Ee.TestStoreSimulatedPurchaseError
13711
+ ),
13712
+ "Simulated error successfully."
13704
13713
  )
13705
13714
  );
13706
13715
  },
13707
13716
  onCancel: () => {
13708
- _(), p(new Pe(Ie.UserCancelledError));
13717
+ _(), p(new Pe(Ee.UserCancelledError));
13709
13718
  }
13710
13719
  }
13711
13720
  });
@@ -13795,9 +13804,9 @@ const Me = class Me {
13795
13804
  N(this, "eventsTracker");
13796
13805
  /** @internal */
13797
13806
  N(this, "inMemoryCache");
13798
- this._API_KEY = r, this._appUserId = t, this._flags = { ...vn, ...n }, Wa(r) ? ee.debugLog(
13807
+ this._API_KEY = r, this._appUserId = t, this._flags = { ...vn, ...n }, Wa(r) ? Q.debugLog(
13799
13808
  "Initializing Purchases SDK with Web billing sandbox API Key"
13800
- ) : pt(r) && ee.debugLog("Initializing Purchases SDK with RC Test store API Key."), this.eventsTracker = new ey({
13809
+ ) : pt(r) && Q.debugLog("Initializing Purchases SDK with RC Test store API Key."), this.eventsTracker = new ey({
13801
13810
  apiKey: this._API_KEY,
13802
13811
  appUserId: this._appUserId,
13803
13812
  silent: !this._flags.collectAnalyticsEvents,
@@ -13816,7 +13825,7 @@ const Me = class Me {
13816
13825
  * @param logLevel - LogLevel to set.
13817
13826
  */
13818
13827
  static setLogLevel(r) {
13819
- ee.setLogLevel(r);
13828
+ Q.setLogLevel(r);
13820
13829
  }
13821
13830
  /**
13822
13831
  * Set a custom log handler to handle SDK log messages with your own logging system.
@@ -13824,7 +13833,7 @@ const Me = class Me {
13824
13833
  * @param handler - LogHandler function or null to use default console logging.
13825
13834
  */
13826
13835
  static setLogHandler(r) {
13827
- ee.setLogHandler(r);
13836
+ Q.setLogHandler(r);
13828
13837
  }
13829
13838
  /**
13830
13839
  * Meant to be used by RevenueCat hybrids SDKS only.
@@ -13854,7 +13863,7 @@ const Me = class Me {
13854
13863
  return Me.instance !== void 0;
13855
13864
  }
13856
13865
  static configure(r, t, a, n) {
13857
- Me.instance !== void 0 && ee.warnLog(
13866
+ Me.instance !== void 0 && Q.warnLog(
13858
13867
  "Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
13859
13868
  );
13860
13869
  let o;
@@ -13863,12 +13872,12 @@ const Me = class Me {
13863
13872
  else {
13864
13873
  if (typeof r != "string")
13865
13874
  throw new Pe(
13866
- Ie.ConfigurationError,
13875
+ Ee.ConfigurationError,
13867
13876
  "API key must be provided as a string"
13868
13877
  );
13869
13878
  if (typeof t != "string")
13870
13879
  throw new Pe(
13871
- Ie.ConfigurationError,
13880
+ Ee.ConfigurationError,
13872
13881
  "App user ID must be provided as a string"
13873
13882
  );
13874
13883
  o = {
@@ -13901,16 +13910,16 @@ const Me = class Me {
13901
13910
  */
13902
13911
  async preload() {
13903
13912
  if (this.hasLoadedResources()) {
13904
- ee.verboseLog("Purchases resources are loaded. Skipping.");
13913
+ Q.verboseLog("Purchases resources are loaded. Skipping.");
13905
13914
  return;
13906
13915
  }
13907
13916
  if (this._loadingResourcesPromise !== null) {
13908
- ee.verboseLog("Purchases resources are loading. Waiting."), await this._loadingResourcesPromise;
13917
+ Q.verboseLog("Purchases resources are loading. Waiting."), await this._loadingResourcesPromise;
13909
13918
  return;
13910
13919
  }
13911
13920
  return this._loadingResourcesPromise = this.fetchAndCacheBrandingInfo().catch((r) => {
13912
13921
  let t = `${r}`;
13913
- r instanceof Pe && (t = `${r.message}. ${r.underlyingErrorMessage ? `Underlying error: ${r.underlyingErrorMessage}` : ""}`), ee.errorLog(`Error fetching branding info: ${t}`);
13922
+ r instanceof Pe && (t = `${r.message}. ${r.underlyingErrorMessage ? `Underlying error: ${r.underlyingErrorMessage}` : ""}`), Q.errorLog(`Error fetching branding info: ${t}`);
13914
13923
  }).finally(() => {
13915
13924
  this._loadingResourcesPromise = null;
13916
13925
  }), this._loadingResourcesPromise;
@@ -13918,7 +13927,7 @@ const Me = class Me {
13918
13927
  /** @internal */
13919
13928
  async fetchAndCacheBrandingInfo() {
13920
13929
  if (pt(this._API_KEY)) {
13921
- ee.warnLog(
13930
+ Q.warnLog(
13922
13931
  "Branding info is not available for RC Test Store API keys."
13923
13932
  );
13924
13933
  return;
@@ -14007,7 +14016,7 @@ const Me = class Me {
14007
14016
  r.onBack();
14008
14017
  return;
14009
14018
  }
14010
- n.innerHTML = "", ee.debugLog("Purchase cancelled by user"), f(new Pe(Ie.UserCancelledError));
14019
+ n.innerHTML = "", Q.debugLog("Purchase cancelled by user"), f(new Pe(Ee.UserCancelledError));
14011
14020
  },
14012
14021
  onRestorePurchasesClicked: p,
14013
14022
  onPurchaseClicked: (h) => {
@@ -14119,7 +14128,7 @@ const Me = class Me {
14119
14128
  "Could not generate a mount point for the billing widget"
14120
14129
  );
14121
14130
  const p = d, u = this._appUserId;
14122
- ee.debugLog(
14131
+ Q.debugLog(
14123
14132
  `Presenting purchase form for package ${t.identifier}`
14124
14133
  );
14125
14134
  const _ = s || l, g = a ?? t.webBillingProduct.defaultPurchaseOption, f = x_({
@@ -14138,7 +14147,7 @@ const Me = class Me {
14138
14147
  P || window.history.pushState({ checkoutOpen: !0 }, "");
14139
14148
  const w = this._flags.rcSource && ty.includes(this._flags.rcSource) ? void 0 : () => {
14140
14149
  const x = S_();
14141
- this.eventsTracker.trackSDKEvent(x), window.removeEventListener("popstate", w), y && Da(y), p.innerHTML = "", ee.debugLog("Purchase cancelled by user"), q(new Pe(Ie.UserCancelledError));
14150
+ this.eventsTracker.trackSDKEvent(x), window.removeEventListener("popstate", w), y && Da(y), p.innerHTML = "", Q.debugLog("Purchase cancelled by user"), q(new Pe(Ee.UserCancelledError));
14142
14151
  };
14143
14152
  !P && w && window.addEventListener("popstate", w), y = Tn(Gf, {
14144
14153
  target: p,
@@ -14152,7 +14161,7 @@ const Me = class Me {
14152
14161
  const F = E_({
14153
14162
  redemptionInfo: x.redemptionInfo
14154
14163
  });
14155
- this.eventsTracker.trackSDKEvent(F), this.inMemoryCache.invalidateAllCaches(), ee.debugLog("Purchase finished"), y && Da(y), p.innerHTML = "";
14164
+ this.eventsTracker.trackSDKEvent(F), this.inMemoryCache.invalidateAllCaches(), Q.debugLog("Purchase finished"), y && Da(y), p.innerHTML = "";
14156
14165
  const G = {
14157
14166
  customerInfo: await this._getCustomerInfoForUserId(u),
14158
14167
  redemptionInfo: x.redemptionInfo,
@@ -14203,7 +14212,7 @@ const Me = class Me {
14203
14212
  async _postSimulatedStoreReceipt(r) {
14204
14213
  if (!pt(this._API_KEY))
14205
14214
  throw new Pe(
14206
- Ie.ConfigurationError,
14215
+ Ee.ConfigurationError,
14207
14216
  "Posting a test store receipt is only available for RC Test Store API keys."
14208
14217
  );
14209
14218
  return await Js(
@@ -14255,7 +14264,7 @@ const Me = class Me {
14255
14264
  const n = [];
14256
14265
  r.forEach((o) => {
14257
14266
  a[o] === void 0 && n.push(o);
14258
- }), n.length > 0 && ee.debugLog(
14267
+ }), n.length > 0 && Q.debugLog(
14259
14268
  `Could not find product data for product ids:
14260
14269
  ${n.join()}.
14261
14270
  Please check that your product configuration is correct.`
@@ -14306,7 +14315,7 @@ const Me = class Me {
14306
14315
  * Closes the Purchases instance. You should never have to do this normally.
14307
14316
  */
14308
14317
  close() {
14309
- Me.instance === this ? (this.eventsTracker && this.eventsTracker.dispose(), Me.instance = void 0) : ee.warnLog(
14318
+ Me.instance === this ? (this.eventsTracker && this.eventsTracker.dispose(), Me.instance = void 0) : Q.warnLog(
14310
14319
  "Trying to close a Purchases instance that is not the current instance. Ignoring."
14311
14320
  );
14312
14321
  }
@@ -14319,9 +14328,9 @@ const Me = class Me {
14319
14328
  async _getVirtualCurrenciesForUserId(r) {
14320
14329
  const t = this.inMemoryCache.getCachedVirtualCurrencies(r);
14321
14330
  if (t)
14322
- return ee.debugLog("Vending VirtualCurrencies from cache."), t;
14331
+ return Q.debugLog("Vending VirtualCurrencies from cache."), t;
14323
14332
  const a = await this.backend.getVirtualCurrencies(r), n = uy(a);
14324
- return ee.debugLog("VirtualCurrencies updated from the network."), this.inMemoryCache.cacheVirtualCurrencies(r, n), n;
14333
+ return Q.debugLog("VirtualCurrencies updated from the network."), this.inMemoryCache.cacheVirtualCurrencies(r, n), n;
14325
14334
  }
14326
14335
  /**
14327
14336
  * Generates an anonymous app user ID that follows RevenueCat's format.
@@ -14348,7 +14357,7 @@ N(Me, "_platformInfo"), /** @internal */
14348
14357
  N(Me, "instance");
14349
14358
  let Mn = Me;
14350
14359
  export {
14351
- Ie as ErrorCode,
14360
+ Ee as ErrorCode,
14352
14361
  ar as LogLevel,
14353
14362
  Ys as OfferingKeyword,
14354
14363
  Ng as PackageType,