@revenuecat/purchases-js 0.3.0 → 0.3.1

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.
@@ -48,7 +48,7 @@ class G {
48
48
  }
49
49
  Q(G, "logLevel", W.Silent);
50
50
  var te = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(te || {});
51
- function yt(t) {
51
+ function Je(t) {
52
52
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
53
53
  if (!e || e.length < 3)
54
54
  return G.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
@@ -82,7 +82,7 @@ function yt(t) {
82
82
  return G.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
83
83
  }
84
84
  }
85
- const Je = (t, e) => {
85
+ const Ve = (t, e) => {
86
86
  const r = t / 100;
87
87
  return new Intl.NumberFormat("en-US", {
88
88
  style: "currency",
@@ -118,26 +118,30 @@ const Je = (t, e) => {
118
118
  }
119
119
  else
120
120
  return `${e} ${t.unit}s`;
121
- }, tt = (t) => {
122
- const e = yt(t);
121
+ }, nt = (t) => {
122
+ const e = Je(t);
123
123
  return e ? Jt(e) : "unknown";
124
124
  }, Wt = (t) => {
125
- const e = yt(t);
125
+ const e = Je(t);
126
126
  return e ? Vt(e) : "unknown";
127
127
  };
128
128
  var zt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(zt || {});
129
129
  const Xt = (t) => ({
130
130
  amount: t.amount,
131
131
  currency: t.currency,
132
- formattedPrice: Je(t.amount, t.currency)
133
- }), nt = (t) => ({
134
- periodDuration: t.period_duration,
135
- cycleCount: t.cycle_count,
136
- price: t.price ? Xt(t.price) : null
137
- }), Zt = (t) => t.base == null ? (G.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
132
+ formattedPrice: Ve(t.amount, t.currency)
133
+ }), rt = (t) => {
134
+ const e = t.period_duration;
135
+ return {
136
+ periodDuration: e,
137
+ period: e ? Je(e) : null,
138
+ cycleCount: t.cycle_count,
139
+ price: t.price ? Xt(t.price) : null
140
+ };
141
+ }, Zt = (t) => t.base == null ? (G.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
138
142
  id: t.id,
139
- base: nt(t.base),
140
- trial: t.trial ? nt(t.trial) : null
143
+ base: rt(t.base),
144
+ trial: t.trial ? rt(t.trial) : null
141
145
  }, en = (t, e) => {
142
146
  const r = {};
143
147
  if (Object.entries(t.subscription_options).forEach(
@@ -178,7 +182,7 @@ const Xt = (t) => ({
178
182
  rcBillingProduct: i,
179
183
  packageType: nn(e.identifier)
180
184
  };
181
- }, rt = (t, e) => {
185
+ }, it = (t, e) => {
182
186
  const r = t.packages.map(
183
187
  (i) => tn(t.identifier, i, e)
184
188
  ).filter(jt), n = {};
@@ -232,7 +236,7 @@ function rn(t, e) {
232
236
  function Bt(t) {
233
237
  return t();
234
238
  }
235
- function it() {
239
+ function ot() {
236
240
  return /* @__PURE__ */ Object.create(null);
237
241
  }
238
242
  function we(t) {
@@ -248,11 +252,11 @@ let De;
248
252
  function Z(t, e) {
249
253
  return t === e ? !0 : (De || (De = document.createElement("a")), De.href = e, t === De.href);
250
254
  }
251
- function ot(t) {
255
+ function st(t) {
252
256
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
253
257
  }
254
258
  function on(t, e) {
255
- const r = ot(t.srcset), n = ot(e || "");
259
+ const r = st(t.srcset), n = st(e || "");
256
260
  return n.length === r.length && n.every(
257
261
  ([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
258
262
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
@@ -307,10 +311,10 @@ function V(t) {
307
311
  function Ee(t) {
308
312
  return t ?? "";
309
313
  }
310
- function M(t, e) {
314
+ function C(t, e) {
311
315
  t.appendChild(e);
312
316
  }
313
- function x(t, e, r) {
317
+ function F(t, e, r) {
314
318
  const n = ln(t);
315
319
  if (!n.getElementById(e)) {
316
320
  const i = k("style");
@@ -328,7 +332,7 @@ function ln(t) {
328
332
  ) : t.ownerDocument;
329
333
  }
330
334
  function cn(t, e) {
331
- return M(
335
+ return C(
332
336
  /** @type {Document} */
333
337
  t.head || t,
334
338
  e
@@ -355,7 +359,7 @@ function ee() {
355
359
  function ke(t, e, r, n) {
356
360
  return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
357
361
  }
358
- function Ct(t) {
362
+ function Mt(t) {
359
363
  return function(e) {
360
364
  return e.preventDefault(), t.call(this, e);
361
365
  };
@@ -388,7 +392,7 @@ function ae(t, e) {
388
392
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
389
393
  e);
390
394
  }
391
- function st(t, e) {
395
+ function lt(t, e) {
392
396
  t.value = e ?? "";
393
397
  }
394
398
  function pn(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
@@ -430,7 +434,7 @@ function An(t, e) {
430
434
  function hn(t) {
431
435
  return Oe().$$.context.get(t);
432
436
  }
433
- function Mt(t, e) {
437
+ function Ct(t, e) {
434
438
  const r = t.$$.callbacks[e.type];
435
439
  r && r.slice().forEach((n) => n.call(this, e));
436
440
  }
@@ -447,7 +451,7 @@ function qe(t) {
447
451
  function In(t) {
448
452
  He.push(t);
449
453
  }
450
- const Fe = /* @__PURE__ */ new Set();
454
+ const xe = /* @__PURE__ */ new Set();
451
455
  let ie = 0;
452
456
  function Qt() {
453
457
  if (ie !== 0)
@@ -466,13 +470,13 @@ function Qt() {
466
470
  Ue.pop()();
467
471
  for (let e = 0; e < le.length; e += 1) {
468
472
  const r = le[e];
469
- Fe.has(r) || (Fe.add(r), r());
473
+ xe.has(r) || (xe.add(r), r());
470
474
  }
471
475
  le.length = 0;
472
476
  } while (se.length);
473
477
  for (; He.length; )
474
478
  He.pop()();
475
- Ke = !1, Fe.clear(), Ae(t);
479
+ Ke = !1, xe.clear(), Ae(t);
476
480
  }
477
481
  function wn(t) {
478
482
  if (t.fragment !== null) {
@@ -542,7 +546,7 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
542
546
  props: o,
543
547
  update: v,
544
548
  not_equal: i,
545
- bound: it(),
549
+ bound: ot(),
546
550
  // lifecycle
547
551
  on_mount: [],
548
552
  on_destroy: [],
@@ -551,7 +555,7 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
551
555
  after_update: [],
552
556
  context: new Map(e.context || (c ? c.$$.context : [])),
553
557
  // everything else
554
- callbacks: it(),
558
+ callbacks: ot(),
555
559
  dirty: l,
556
560
  skip_bound: !1,
557
561
  root: e.target || c.$$.root
@@ -620,7 +624,7 @@ class U {
620
624
  const yn = "4";
621
625
  typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
622
626
  function Bn(t) {
623
- x(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
627
+ F(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
624
628
  }
625
629
  function Ge(t) {
626
630
  let e, r;
@@ -718,7 +722,7 @@ function Dn(t) {
718
722
  }
719
723
  };
720
724
  }
721
- function Cn(t, e, r) {
725
+ function Mn(t, e, r) {
722
726
  let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
723
727
  return t.$$set = (s) => {
724
728
  "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
@@ -726,11 +730,11 @@ function Cn(t, e, r) {
726
730
  }
727
731
  class ue extends U {
728
732
  constructor(e) {
729
- super(), N(this, e, Cn, Dn, T, { as: 0 }, Bn);
733
+ super(), N(this, e, Mn, Dn, T, { as: 0 }, Bn);
730
734
  }
731
735
  }
732
- function Mn(t) {
733
- x(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
736
+ function Cn(t) {
737
+ F(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
734
738
  }
735
739
  function Qn(t) {
736
740
  let e = Wt(
@@ -754,7 +758,7 @@ function Pn(t) {
754
758
  let e = (
755
759
  /*basePrice*/
756
760
  (t[2].currency || "") + ""
757
- ), r, n, i = Je(
761
+ ), r, n, i = Ve(
758
762
  /*basePrice*/
759
763
  t[2].amount,
760
764
  /*basePrice*/
@@ -780,7 +784,7 @@ function Tn(t) {
780
784
  e = k("span"), e.textContent = `${/*trial*/
781
785
  t[1] && /*basePrice*/
782
786
  t[2] && `${/*basePrice*/
783
- t[2].currency} ${Je(
787
+ t[2].currency} ${Ve(
784
788
  /*basePrice*/
785
789
  t[2].amount,
786
790
  /*basePrice*/
@@ -796,8 +800,8 @@ function Tn(t) {
796
800
  }
797
801
  };
798
802
  }
799
- function lt(t) {
800
- let e, r, n = tt(
803
+ function ct(t) {
804
+ let e, r, n = nt(
801
805
  /*productDetails*/
802
806
  t[0].normalPeriodDuration
803
807
  ) + "", i;
@@ -806,11 +810,11 @@ function lt(t) {
806
810
  e = k("li"), r = S("Renews "), i = S(n);
807
811
  },
808
812
  m(o, s) {
809
- p(o, e, s), M(e, r), M(e, i);
813
+ p(o, e, s), C(e, r), C(e, i);
810
814
  },
811
815
  p(o, s) {
812
816
  s & /*productDetails*/
813
- 1 && n !== (n = tt(
817
+ 1 && n !== (n = nt(
814
818
  /*productDetails*/
815
819
  o[0].normalPeriodDuration
816
820
  ) + "") && ae(i, n);
@@ -821,13 +825,13 @@ function lt(t) {
821
825
  };
822
826
  }
823
827
  function Nn(t) {
824
- var C, ve;
828
+ var M, ve;
825
829
  let e, r, n = (
826
830
  /*productDetails*/
827
831
  t[0].displayName + ""
828
832
  ), i, o, s, l, c, a, u, d, h, $, E, B = (
829
833
  /*trial*/
830
- ((C = t[1]) == null ? void 0 : C.periodDuration) && Qn(t)
834
+ ((M = t[1]) == null ? void 0 : M.periodDuration) && Qn(t)
831
835
  ), A = !/*trial*/
832
836
  ((ve = t[1]) != null && ve.periodDuration) && /*basePrice*/
833
837
  t[2] && Pn(t), y = (
@@ -836,29 +840,29 @@ function Nn(t) {
836
840
  t[2] && Tn(t)
837
841
  ), R = (
838
842
  /*productDetails*/
839
- t[0].normalPeriodDuration && lt(t)
843
+ t[0].normalPeriodDuration && ct(t)
840
844
  );
841
845
  return {
842
846
  c() {
843
847
  e = k("div"), r = k("span"), i = S(n), o = P(), s = k("span"), B && B.c(), l = P(), A && A.c(), c = P(), y && y.c(), a = P(), u = k("ul"), R && R.c(), d = P(), h = k("li"), h.textContent = "Continues until canceled", $ = P(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
844
848
  },
845
- m(F, O) {
846
- p(F, e, O), M(e, r), M(r, i), M(e, o), M(e, s), B && B.m(s, null), M(s, l), A && A.m(s, null), M(e, c), y && y.m(e, null), M(e, a), M(e, u), R && R.m(u, null), M(u, d), M(u, h), M(u, $), M(u, E);
849
+ m(x, O) {
850
+ p(x, e, O), C(e, r), C(r, i), C(e, o), C(e, s), B && B.m(s, null), C(s, l), A && A.m(s, null), C(e, c), y && y.m(e, null), C(e, a), C(e, u), R && R.m(u, null), C(u, d), C(u, h), C(u, $), C(u, E);
847
851
  },
848
- p(F, O) {
852
+ p(x, O) {
849
853
  var ye, Be;
850
854
  O & /*productDetails*/
851
855
  1 && n !== (n = /*productDetails*/
852
- F[0].displayName + "") && ae(i, n), /*trial*/
853
- (ye = F[1]) != null && ye.periodDuration && B.p(F, O), !/*trial*/
854
- ((Be = F[1]) != null && Be.periodDuration) && /*basePrice*/
855
- F[2] && A.p(F, O), /*trial*/
856
- F[1] && /*basePrice*/
857
- F[2] && y.p(F, O), /*productDetails*/
858
- F[0].normalPeriodDuration ? R ? R.p(F, O) : (R = lt(F), R.c(), R.m(u, d)) : R && (R.d(1), R = null);
856
+ x[0].displayName + "") && ae(i, n), /*trial*/
857
+ (ye = x[1]) != null && ye.periodDuration && B.p(x, O), !/*trial*/
858
+ ((Be = x[1]) != null && Be.periodDuration) && /*basePrice*/
859
+ x[2] && A.p(x, O), /*trial*/
860
+ x[1] && /*basePrice*/
861
+ x[2] && y.p(x, O), /*productDetails*/
862
+ x[0].normalPeriodDuration ? R ? R.p(x, O) : (R = ct(x), R.c(), R.m(u, d)) : R && (R.d(1), R = null);
859
863
  },
860
- d(F) {
861
- F && g(e), B && B.d(), A && A.d(), y && y.d(), R && R.d();
864
+ d(x) {
865
+ x && g(e), B && B.d(), A && A.d(), y && y.d(), R && R.d();
862
866
  }
863
867
  };
864
868
  }
@@ -902,7 +906,7 @@ function Rn(t, e, r) {
902
906
  }
903
907
  class Pt extends U {
904
908
  constructor(e) {
905
- super(), N(this, e, Rn, Un, T, { productDetails: 0, purchaseOption: 3 }, Mn);
909
+ super(), N(this, e, Rn, Un, T, { productDetails: 0, purchaseOption: 3 }, Cn);
906
910
  }
907
911
  }
908
912
  const On = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOrQCRLoqbQuZCKR7NdqzD5MaQKXIhZmAwBIqTJ3YVYogQZ8oMJ178Kk/A1YhfxQiRHjBYMCAAh+QQFBQABACwNAAMAIAAQAAAInQADCBxIMECGDAUTKlxI8EEEhhADcGEI4QFDJQy5ZJmo0OFCFBFkLNzCRQvHghEgKHQi4cEPhhuzdHyYUMQDDxC5kNSSsGLCIA4x5oxZ0GNBDBFKRAxgkmTBgwVpRJhAZWkAohErPKhhVaLJpR8+YFnohEjXrlB2qHgB5SxELD5etHgBxC1DJC9eqOAxxe5CHSxc0HDilyEOG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GwYnlgyAAQACgxtnPiEAoERBhDMDjBBAoCINHw8ZNHjI5EGEDUyCFtSyIoJVE1KkEnwCIsIDCjK0EgSSAQIED2IHYqkxQUTat3Djyp1b0UbDjXdhBqUxcWTfhHQDCx5MuCIXLVy2vOWShTEXsVsOJz6stbHlx1ojI1b8tvHbgAAAIfkEBQQAAQAsAwADABcAFwAACJQAAwgcSLCgwRIkDCpcqIHDwoFHHm7Y8DCACgMJFWroUBGHgQNMFE6sGGDCAQsaHVY8csAAD4MjSX4w8MDgRpIBoCQwsKIgQpwBUBxIULEHkYcUUC580tDEE6AGbXSYKKMKVIJSUnDQIGIHl6sQS0w8AZagjxAsyqpdy7at24pJfgwBMkQukCRQjQQBIgTIXiFGoAYEACH5BAUFAAEALAMAAwAXABcAAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
@@ -928,10 +932,10 @@ class Ln extends U {
928
932
  super(), N(this, e, null, Sn, T, {});
929
933
  }
930
934
  }
931
- function xn(t) {
932
- x(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
933
- }
934
935
  function Fn(t) {
936
+ F(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
937
+ }
938
+ function xn(t) {
935
939
  let e, r, n;
936
940
  return r = new Ln({}), {
937
941
  c() {
@@ -952,9 +956,9 @@ function Fn(t) {
952
956
  }
953
957
  };
954
958
  }
955
- class Ve extends U {
959
+ class We extends U {
956
960
  constructor(e) {
957
- super(), N(this, e, null, Fn, T, {}, xn);
961
+ super(), N(this, e, null, xn, T, {}, Fn);
958
962
  }
959
963
  }
960
964
  var pe = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(pe || {}), Te = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Te || {}), L = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(L || {});
@@ -1072,7 +1076,7 @@ class Gn {
1072
1076
  }
1073
1077
  const Yn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
1074
1078
  function Hn(t) {
1075
- x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1079
+ F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1076
1080
  }
1077
1081
  function Kn(t) {
1078
1082
  let e, r;
@@ -1097,7 +1101,7 @@ class qn extends U {
1097
1101
  }
1098
1102
  }
1099
1103
  function jn(t) {
1100
- x(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
1104
+ F(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
1101
1105
  }
1102
1106
  function Jn(t) {
1103
1107
  let e, r, n, i, o;
@@ -1164,7 +1168,7 @@ function Jn(t) {
1164
1168
  function Vn(t, e, r) {
1165
1169
  let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1166
1170
  function l(c) {
1167
- Mt.call(this, t, c);
1171
+ Ct.call(this, t, c);
1168
1172
  }
1169
1173
  return t.$$set = (c) => {
1170
1174
  "intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
@@ -1176,7 +1180,7 @@ class Ie extends U {
1176
1180
  }
1177
1181
  }
1178
1182
  function Wn(t) {
1179
- x(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1183
+ F(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1180
1184
  }
1181
1185
  function zn(t) {
1182
1186
  let e, r;
@@ -1235,13 +1239,13 @@ function Xn(t, e, r) {
1235
1239
  "$$scope" in o && r(0, i = o.$$scope);
1236
1240
  }, [i, n];
1237
1241
  }
1238
- class We extends U {
1242
+ class ze extends U {
1239
1243
  constructor(e) {
1240
1244
  super(), N(this, e, Xn, zn, T, {}, Wn);
1241
1245
  }
1242
1246
  }
1243
1247
  function Zn(t) {
1244
- x(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1248
+ F(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1245
1249
  }
1246
1250
  function er(t) {
1247
1251
  let e, r, n;
@@ -1310,7 +1314,7 @@ class $e extends U {
1310
1314
  }
1311
1315
  const nr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
1312
1316
  function rr(t) {
1313
- x(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1317
+ F(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1314
1318
  }
1315
1319
  function ir(t) {
1316
1320
  let e, r, n, i, o;
@@ -1320,7 +1324,7 @@ function ir(t) {
1320
1324
  t[0];
1321
1325
  },
1322
1326
  m(s, l) {
1323
- p(s, e, l), M(e, r), i || (o = ke(
1327
+ p(s, e, l), C(e, r), i || (o = ke(
1324
1328
  e,
1325
1329
  "click",
1326
1330
  /*click_handler*/
@@ -1342,7 +1346,7 @@ function ir(t) {
1342
1346
  function or(t, e, r) {
1343
1347
  let { disabled: n = !1 } = e;
1344
1348
  function i(o) {
1345
- Mt.call(this, t, o);
1349
+ Ct.call(this, t, o);
1346
1350
  }
1347
1351
  return t.$$set = (o) => {
1348
1352
  "disabled" in o && r(0, n = o.disabled);
@@ -1354,7 +1358,7 @@ class sr extends U {
1354
1358
  }
1355
1359
  }
1356
1360
  function lr(t) {
1357
- x(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1361
+ F(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1358
1362
  }
1359
1363
  function cr(t) {
1360
1364
  let e;
@@ -1380,7 +1384,7 @@ function ar(t) {
1380
1384
  t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1381
1385
  },
1382
1386
  m(l, c) {
1383
- p(l, e, c), M(e, r), M(e, i), M(e, o);
1387
+ p(l, e, c), C(e, r), C(e, i), C(e, o);
1384
1388
  },
1385
1389
  p(l, c) {
1386
1390
  c & /*srcWebp*/
@@ -1431,9 +1435,9 @@ class Tt extends U {
1431
1435
  super(), N(this, e, fr, ur, T, { src: 0, srcWebp: 1 }, lr);
1432
1436
  }
1433
1437
  }
1434
- const Ce = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1438
+ const Me = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1435
1439
  function dr(t) {
1436
- x(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1440
+ F(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1437
1441
  }
1438
1442
  function mr(t) {
1439
1443
  let e, r;
@@ -1463,20 +1467,20 @@ function gr(t) {
1463
1467
  ), i, o, s = (
1464
1468
  /*brandingInfo*/
1465
1469
  t[0].app_icon_webp !== null && /*brandingInfo*/
1466
- t[0].app_icon !== null && ct(t)
1470
+ t[0].app_icon !== null && at(t)
1467
1471
  );
1468
1472
  return {
1469
1473
  c() {
1470
1474
  s && s.c(), e = P(), r = k("span"), i = S(n), _(r, "class", "app-title svelte-10uf5fq");
1471
1475
  },
1472
1476
  m(l, c) {
1473
- s && s.m(l, c), p(l, e, c), p(l, r, c), M(r, i), o = !0;
1477
+ s && s.m(l, c), p(l, e, c), p(l, r, c), C(r, i), o = !0;
1474
1478
  },
1475
1479
  p(l, c) {
1476
1480
  /*brandingInfo*/
1477
1481
  l[0].app_icon_webp !== null && /*brandingInfo*/
1478
1482
  l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
1479
- 1 && f(s, 1)) : (s = ct(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (Y(), m(s, 1, 1, () => {
1483
+ 1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (Y(), m(s, 1, 1, () => {
1480
1484
  s = null;
1481
1485
  }), H()), (!o || c & /*brandingInfo*/
1482
1486
  1) && n !== (n = /*brandingInfo*/
@@ -1493,15 +1497,15 @@ function gr(t) {
1493
1497
  }
1494
1498
  };
1495
1499
  }
1496
- function ct(t) {
1500
+ function at(t) {
1497
1501
  let e, r;
1498
1502
  return e = new Tt({
1499
1503
  props: {
1500
- src: Ce(
1504
+ src: Me(
1501
1505
  /*brandingInfo*/
1502
1506
  t[0].app_icon
1503
1507
  ),
1504
- srcWebp: Ce(
1508
+ srcWebp: Me(
1505
1509
  /*brandingInfo*/
1506
1510
  t[0].app_icon_webp
1507
1511
  )
@@ -1516,11 +1520,11 @@ function ct(t) {
1516
1520
  p(n, i) {
1517
1521
  const o = {};
1518
1522
  i & /*brandingInfo*/
1519
- 1 && (o.src = Ce(
1523
+ 1 && (o.src = Me(
1520
1524
  /*brandingInfo*/
1521
1525
  n[0].app_icon
1522
1526
  )), i & /*brandingInfo*/
1523
- 1 && (o.srcWebp = Ce(
1527
+ 1 && (o.srcWebp = Me(
1524
1528
  /*brandingInfo*/
1525
1529
  n[0].app_icon_webp
1526
1530
  )), e.$set(o);
@@ -1581,7 +1585,7 @@ class Nt extends U {
1581
1585
  }
1582
1586
  }
1583
1587
  function Ar(t) {
1584
- x(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1588
+ F(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1585
1589
  }
1586
1590
  function hr(t) {
1587
1591
  let e, r, n, i, o;
@@ -1600,7 +1604,7 @@ function hr(t) {
1600
1604
  e = k("div"), w(r.$$.fragment), n = P(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1601
1605
  },
1602
1606
  m(s, l) {
1603
- p(s, e, l), b(r, e, null), M(e, n), b(i, e, null), o = !0;
1607
+ p(s, e, l), b(r, e, null), C(e, n), b(i, e, null), o = !0;
1604
1608
  },
1605
1609
  p(s, l) {
1606
1610
  t = s;
@@ -1663,9 +1667,9 @@ class Ir extends U {
1663
1667
  }
1664
1668
  }
1665
1669
  function wr(t) {
1666
- x(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
1670
+ F(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
1667
1671
  }
1668
- const kr = (t) => ({}), at = (t) => ({});
1672
+ const kr = (t) => ({}), ut = (t) => ({});
1669
1673
  function $r(t) {
1670
1674
  let e, r, n, i, o;
1671
1675
  const s = (
@@ -1686,7 +1690,7 @@ function $r(t) {
1686
1690
  ), n = P(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1687
1691
  },
1688
1692
  m(c, a) {
1689
- p(c, e, a), M(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1693
+ p(c, e, a), C(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1690
1694
  },
1691
1695
  p(c, a) {
1692
1696
  (!o || a & /*title*/
@@ -1735,7 +1739,7 @@ function vr(t) {
1735
1739
  t,
1736
1740
  /*$$scope*/
1737
1741
  t[5],
1738
- at
1742
+ ut
1739
1743
  );
1740
1744
  return r = new $e({
1741
1745
  props: {
@@ -1768,7 +1772,7 @@ function vr(t) {
1768
1772
  /*$$scope*/
1769
1773
  s[5]
1770
1774
  ),
1771
- at
1775
+ ut
1772
1776
  );
1773
1777
  const c = {};
1774
1778
  l & /*$$scope, title*/
@@ -1877,7 +1881,7 @@ function Dr(t) {
1877
1881
  }
1878
1882
  };
1879
1883
  }
1880
- function Cr(t) {
1884
+ function Mr(t) {
1881
1885
  let e, r, n, i, o, s;
1882
1886
  return e = new Ir({
1883
1887
  props: {
@@ -1895,7 +1899,7 @@ function Cr(t) {
1895
1899
  $$slots: { default: [yr] },
1896
1900
  $$scope: { ctx: t }
1897
1901
  }
1898
- }), o = new We({
1902
+ }), o = new ze({
1899
1903
  props: {
1900
1904
  $$slots: { default: [Dr] },
1901
1905
  $$scope: { ctx: t }
@@ -1932,12 +1936,12 @@ function Cr(t) {
1932
1936
  }
1933
1937
  };
1934
1938
  }
1935
- function Mr(t) {
1939
+ function Cr(t) {
1936
1940
  let e, r;
1937
1941
  return e = new $e({
1938
1942
  props: {
1939
1943
  gutter: "32px",
1940
- $$slots: { default: [Cr] },
1944
+ $$slots: { default: [Mr] },
1941
1945
  $$scope: { ctx: t }
1942
1946
  }
1943
1947
  }), {
@@ -1975,7 +1979,7 @@ class Ut extends U {
1975
1979
  this,
1976
1980
  e,
1977
1981
  Qr,
1978
- Mr,
1982
+ Cr,
1979
1983
  T,
1980
1984
  {
1981
1985
  brandingInfo: 0,
@@ -1987,7 +1991,7 @@ class Ut extends U {
1987
1991
  );
1988
1992
  }
1989
1993
  }
1990
- function ut(t) {
1994
+ function ft(t) {
1991
1995
  let e, r, n, i, o;
1992
1996
  return {
1993
1997
  c() {
@@ -1998,7 +2002,7 @@ function ut(t) {
1998
2002
  t[1]);
1999
2003
  },
2000
2004
  m(s, l) {
2001
- p(s, e, l), p(s, r, l), M(r, n), p(s, o, l);
2005
+ p(s, e, l), p(s, r, l), C(r, n), p(s, o, l);
2002
2006
  },
2003
2007
  p(s, l) {
2004
2008
  l & /*supportEmail*/
@@ -2021,7 +2025,7 @@ function Pr(t) {
2021
2025
  t[3]() + ""
2022
2026
  ), r, n, i, o = (
2023
2027
  /*supportEmail*/
2024
- t[1] && ut(t)
2028
+ t[1] && ft(t)
2025
2029
  );
2026
2030
  return {
2027
2031
  c() {
@@ -2032,7 +2036,7 @@ function Pr(t) {
2032
2036
  },
2033
2037
  p(s, l) {
2034
2038
  /*supportEmail*/
2035
- s[1] ? o ? o.p(s, l) : (o = ut(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2039
+ s[1] ? o ? o.p(s, l) : (o = ft(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2036
2040
  },
2037
2041
  d(s) {
2038
2042
  s && (g(r), g(n), g(i)), o && o.d(s);
@@ -2145,7 +2149,7 @@ class Rr extends U {
2145
2149
  }
2146
2150
  const Or = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
2147
2151
  function Sr(t) {
2148
- x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2152
+ F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2149
2153
  }
2150
2154
  function Lr(t) {
2151
2155
  let e, r;
@@ -2164,12 +2168,12 @@ function Lr(t) {
2164
2168
  }
2165
2169
  };
2166
2170
  }
2167
- class xr extends U {
2171
+ class Fr extends U {
2168
2172
  constructor(e) {
2169
2173
  super(), N(this, e, null, Lr, T, {}, Sr);
2170
2174
  }
2171
2175
  }
2172
- function Fr(t) {
2176
+ function xr(t) {
2173
2177
  let e;
2174
2178
  return {
2175
2179
  c() {
@@ -2185,7 +2189,7 @@ function Fr(t) {
2185
2189
  }
2186
2190
  function Gr(t) {
2187
2191
  let e, r;
2188
- return e = new xr({ props: { slot: "icon" } }), {
2192
+ return e = new Fr({ props: { slot: "icon" } }), {
2189
2193
  c() {
2190
2194
  w(e.$$.fragment);
2191
2195
  },
@@ -2220,7 +2224,7 @@ function Yr(t) {
2220
2224
  ),
2221
2225
  $$slots: {
2222
2226
  icon: [Gr],
2223
- default: [Fr]
2227
+ default: [xr]
2224
2228
  },
2225
2229
  $$scope: { ctx: t }
2226
2230
  }
@@ -2340,7 +2344,7 @@ class zr extends U {
2340
2344
  return this.$$.ctx[5];
2341
2345
  }
2342
2346
  }
2343
- function ft(t) {
2347
+ function dt(t) {
2344
2348
  let e;
2345
2349
  const r = (
2346
2350
  /*#slots*/
@@ -2395,7 +2399,7 @@ function Xr(t) {
2395
2399
  let e, r, n = (
2396
2400
  /*stripe*/
2397
2401
  t[1] && /*elements*/
2398
- t[0] && ft(t)
2402
+ t[0] && dt(t)
2399
2403
  );
2400
2404
  return {
2401
2405
  c() {
@@ -2408,7 +2412,7 @@ function Xr(t) {
2408
2412
  /*stripe*/
2409
2413
  i[1] && /*elements*/
2410
2414
  i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
2411
- 3 && f(n, 1)) : (n = ft(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (Y(), m(n, 1, 1, () => {
2415
+ 3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (Y(), m(n, 1, 1, () => {
2412
2416
  n = null;
2413
2417
  }), H());
2414
2418
  },
@@ -2425,8 +2429,8 @@ function Xr(t) {
2425
2429
  }
2426
2430
  function Zr(t, e, r) {
2427
2431
  let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: d = "above" } = e, { loader: h = "auto" } = e, { fonts: $ = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: R = null } = e;
2428
- return t.$$set = (C) => {
2429
- "stripe" in C && r(1, s = C.stripe), "mode" in C && r(2, l = C.mode), "theme" in C && r(3, c = C.theme), "variables" in C && r(4, a = C.variables), "rules" in C && r(5, u = C.rules), "labels" in C && r(6, d = C.labels), "loader" in C && r(7, h = C.loader), "fonts" in C && r(8, $ = C.fonts), "locale" in C && r(9, E = C.locale), "currency" in C && r(10, B = C.currency), "amount" in C && r(11, A = C.amount), "clientSecret" in C && r(12, y = C.clientSecret), "elements" in C && r(0, R = C.elements), "$$scope" in C && r(14, o = C.$$scope);
2432
+ return t.$$set = (M) => {
2433
+ "stripe" in M && r(1, s = M.stripe), "mode" in M && r(2, l = M.mode), "theme" in M && r(3, c = M.theme), "variables" in M && r(4, a = M.variables), "rules" in M && r(5, u = M.rules), "labels" in M && r(6, d = M.labels), "loader" in M && r(7, h = M.loader), "fonts" in M && r(8, $ = M.fonts), "locale" in M && r(9, E = M.locale), "currency" in M && r(10, B = M.currency), "amount" in M && r(11, A = M.amount), "clientSecret" in M && r(12, y = M.clientSecret), "elements" in M && r(0, R = M.elements), "$$scope" in M && r(14, o = M.$$scope);
2430
2434
  }, t.$$.update = () => {
2431
2435
  t.$$.dirty & /*theme, variables, rules, labels*/
2432
2436
  120 && r(13, n = { theme: c, variables: a, rules: u, labels: d }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
@@ -2479,14 +2483,14 @@ class ei extends U {
2479
2483
  });
2480
2484
  }
2481
2485
  }
2482
- var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, dt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ni = function() {
2486
+ var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, mt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ni = function() {
2483
2487
  for (var e = document.querySelectorAll('script[src^="'.concat(Rt, '"]')), r = 0; r < e.length; r++) {
2484
2488
  var n = e[r];
2485
2489
  if (ti.test(n.src))
2486
2490
  return n;
2487
2491
  }
2488
2492
  return null;
2489
- }, mt = function(e) {
2493
+ }, gt = function(e) {
2490
2494
  var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
2491
2495
  n.src = "".concat(Rt).concat(r);
2492
2496
  var i = document.head || document.body;
@@ -2499,7 +2503,7 @@ var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2499
2503
  version: "2.4.0",
2500
2504
  startTime: r
2501
2505
  });
2502
- }, me = null, Me = null, Qe = null, ii = function(e) {
2506
+ }, me = null, Ce = null, Qe = null, ii = function(e) {
2503
2507
  return function() {
2504
2508
  e(new Error("Failed to load Stripe.js"));
2505
2509
  };
@@ -2513,21 +2517,21 @@ var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
2513
2517
  r(null);
2514
2518
  return;
2515
2519
  }
2516
- if (window.Stripe && e && console.warn(dt), window.Stripe) {
2520
+ if (window.Stripe && e && console.warn(mt), window.Stripe) {
2517
2521
  r(window.Stripe);
2518
2522
  return;
2519
2523
  }
2520
2524
  try {
2521
2525
  var i = ni();
2522
2526
  if (i && e)
2523
- console.warn(dt);
2527
+ console.warn(mt);
2524
2528
  else if (!i)
2525
- i = mt(e);
2526
- else if (i && Qe !== null && Me !== null) {
2529
+ i = gt(e);
2530
+ else if (i && Qe !== null && Ce !== null) {
2527
2531
  var o;
2528
- i.removeEventListener("load", Qe), i.removeEventListener("error", Me), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = mt(e);
2532
+ i.removeEventListener("load", Qe), i.removeEventListener("error", Ce), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = gt(e);
2529
2533
  }
2530
- Qe = oi(r, n), Me = ii(n), i.addEventListener("load", Qe), i.addEventListener("error", Me);
2534
+ Qe = oi(r, n), Ce = ii(n), i.addEventListener("load", Qe), i.addEventListener("error", Ce);
2531
2535
  } catch (s) {
2532
2536
  n(s);
2533
2537
  return;
@@ -2560,7 +2564,7 @@ var ci = function() {
2560
2564
  });
2561
2565
  };
2562
2566
  function ai(t) {
2563
- x(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
2567
+ F(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
2564
2568
  }
2565
2569
  function ui(t) {
2566
2570
  let e, r;
@@ -2650,7 +2654,7 @@ function di(t, e, r) {
2650
2654
  "$$scope" in o && r(1, i = o.$$scope);
2651
2655
  }, [n, i];
2652
2656
  }
2653
- class ze extends U {
2657
+ class Xe extends U {
2654
2658
  constructor(e) {
2655
2659
  super(), N(this, e, di, fi, T, {}, ai);
2656
2660
  }
@@ -2688,7 +2692,7 @@ const _e = {
2688
2692
  white: "#ffffff"
2689
2693
  };
2690
2694
  function _i(t) {
2691
- x(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2695
+ F(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2692
2696
  -20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
2693
2697
  -20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
2694
2698
  -20px 0 #fff2;background:#ffff}75%{box-shadow:20px 0 #ffff,
@@ -2718,11 +2722,11 @@ class Lt extends U {
2718
2722
  }
2719
2723
  }
2720
2724
  function hi(t) {
2721
- x(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2725
+ F(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2722
2726
  }
2723
2727
  function Ei(t) {
2724
2728
  let e, r;
2725
- return e = new Ve({}), {
2729
+ return e = new We({}), {
2726
2730
  c() {
2727
2731
  w(e.$$.fragment);
2728
2732
  },
@@ -2782,7 +2786,7 @@ function bi(t) {
2782
2786
  },
2783
2787
  ".Input--invalid": { boxShadow: "none" }
2784
2788
  },
2785
- $$slots: { default: [Ci] },
2789
+ $$slots: { default: [Mi] },
2786
2790
  $$scope: { ctx: t }
2787
2791
  };
2788
2792
  return (
@@ -2793,7 +2797,7 @@ function bi(t) {
2793
2797
  e = k("form"), w(r.$$.fragment);
2794
2798
  },
2795
2799
  m(a, u) {
2796
- p(a, e, u), b(r, e, null), i = !0, o || (s = ke(e, "submit", Ct(
2800
+ p(a, e, u), b(r, e, null), i = !0, o || (s = ke(e, "submit", Mt(
2797
2801
  /*handleContinue*/
2798
2802
  t[5]
2799
2803
  )), o = !0);
@@ -3031,9 +3035,9 @@ function Di(t) {
3031
3035
  }
3032
3036
  };
3033
3037
  }
3034
- function Ci(t) {
3038
+ function Mi(t) {
3035
3039
  let e, r, n, i, o, s;
3036
- return e = new ze({
3040
+ return e = new Xe({
3037
3041
  props: {
3038
3042
  $$slots: { default: [Ii] },
3039
3043
  $$scope: { ctx: t }
@@ -3043,7 +3047,7 @@ function Ci(t) {
3043
3047
  $$slots: { default: [wi] },
3044
3048
  $$scope: { ctx: t }
3045
3049
  }
3046
- }), o = new We({
3050
+ }), o = new ze({
3047
3051
  props: {
3048
3052
  $$slots: { default: [Di] },
3049
3053
  $$scope: { ctx: t }
@@ -3077,7 +3081,7 @@ function Ci(t) {
3077
3081
  }
3078
3082
  };
3079
3083
  }
3080
- function Mi(t) {
3084
+ function Ci(t) {
3081
3085
  let e, r, n, i;
3082
3086
  const o = [bi, Ei], s = [];
3083
3087
  function l(c, a) {
@@ -3158,7 +3162,7 @@ class Pi extends U {
3158
3162
  this,
3159
3163
  e,
3160
3164
  Qi,
3161
- Mi,
3165
+ Ci,
3162
3166
  T,
3163
3167
  {
3164
3168
  onClose: 1,
@@ -3172,7 +3176,7 @@ class Pi extends U {
3172
3176
  }
3173
3177
  }
3174
3178
  function Ti(t) {
3175
- x(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3179
+ F(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3176
3180
  }
3177
3181
  function Ni(t) {
3178
3182
  let e;
@@ -3188,7 +3192,7 @@ function Ni(t) {
3188
3192
  }
3189
3193
  };
3190
3194
  }
3191
- function gt(t) {
3195
+ function pt(t) {
3192
3196
  let e, r;
3193
3197
  return {
3194
3198
  c() {
@@ -3198,7 +3202,7 @@ function gt(t) {
3198
3202
  ), _(e, "class", "form-error svelte-favd20");
3199
3203
  },
3200
3204
  m(n, i) {
3201
- p(n, e, i), M(e, r);
3205
+ p(n, e, i), C(e, r);
3202
3206
  },
3203
3207
  p(n, i) {
3204
3208
  i & /*error*/
@@ -3216,7 +3220,7 @@ function gt(t) {
3216
3220
  function Ui(t) {
3217
3221
  let e, r, n, i, o, s, l, c, a, u = (
3218
3222
  /*error*/
3219
- t[2] && gt(t)
3223
+ t[2] && pt(t)
3220
3224
  );
3221
3225
  return {
3222
3226
  c() {
@@ -3224,11 +3228,11 @@ function Ui(t) {
3224
3228
  t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3225
3229
  },
3226
3230
  m(d, h) {
3227
- p(d, e, h), M(e, r), M(e, n), M(e, i), M(i, o), st(
3231
+ p(d, e, h), C(e, r), C(e, n), C(e, i), C(i, o), lt(
3228
3232
  o,
3229
3233
  /*email*/
3230
3234
  t[3]
3231
- ), M(e, l), u && u.m(e, null), c || (a = ke(
3235
+ ), C(e, l), u && u.m(e, null), c || (a = ke(
3232
3236
  o,
3233
3237
  "input",
3234
3238
  /*input_input_handler*/
@@ -3238,14 +3242,14 @@ function Ui(t) {
3238
3242
  p(d, h) {
3239
3243
  h & /*email*/
3240
3244
  8 && o.value !== /*email*/
3241
- d[3] && st(
3245
+ d[3] && lt(
3242
3246
  o,
3243
3247
  /*email*/
3244
3248
  d[3]
3245
3249
  ), h & /*inputClass*/
3246
3250
  16 && s !== (s = "form-input " + /*inputClass*/
3247
3251
  d[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3248
- d[2] ? u ? u.p(d, h) : (u = gt(d), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3252
+ d[2] ? u ? u.p(d, h) : (u = pt(d), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3249
3253
  },
3250
3254
  d(d) {
3251
3255
  d && g(e), u && u.d(), c = !1, a();
@@ -3335,7 +3339,7 @@ function Li(t) {
3335
3339
  }
3336
3340
  };
3337
3341
  }
3338
- function xi(t) {
3342
+ function Fi(t) {
3339
3343
  let e, r, n, i;
3340
3344
  return e = new Ie({
3341
3345
  props: {
@@ -3392,11 +3396,11 @@ function xi(t) {
3392
3396
  }
3393
3397
  };
3394
3398
  }
3395
- function Fi(t) {
3399
+ function xi(t) {
3396
3400
  let e, r;
3397
3401
  return e = new $e({
3398
3402
  props: {
3399
- $$slots: { default: [xi] },
3403
+ $$slots: { default: [Fi] },
3400
3404
  $$scope: { ctx: t }
3401
3405
  }
3402
3406
  }), {
@@ -3424,7 +3428,7 @@ function Fi(t) {
3424
3428
  }
3425
3429
  function Gi(t) {
3426
3430
  let e, r, n, i, o, s, l, c, a;
3427
- return r = new ze({
3431
+ return r = new Xe({
3428
3432
  props: {
3429
3433
  $$slots: { default: [Ni] },
3430
3434
  $$scope: { ctx: t }
@@ -3434,9 +3438,9 @@ function Gi(t) {
3434
3438
  $$slots: { default: [Ui] },
3435
3439
  $$scope: { ctx: t }
3436
3440
  }
3437
- }), s = new We({
3441
+ }), s = new ze({
3438
3442
  props: {
3439
- $$slots: { default: [Fi] },
3443
+ $$slots: { default: [xi] },
3440
3444
  $$scope: { ctx: t }
3441
3445
  }
3442
3446
  }), {
@@ -3444,7 +3448,7 @@ function Gi(t) {
3444
3448
  e = k("form"), w(r.$$.fragment), n = P(), w(i.$$.fragment), o = P(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3445
3449
  },
3446
3450
  m(u, d) {
3447
- p(u, e, d), b(r, e, null), M(e, n), b(i, e, null), M(e, o), b(s, e, null), l = !0, c || (a = ke(e, "submit", Ct(
3451
+ p(u, e, d), b(r, e, null), C(e, n), b(i, e, null), C(e, o), b(s, e, null), l = !0, c || (a = ke(e, "submit", Mt(
3448
3452
  /*handleContinue*/
3449
3453
  t[5]
3450
3454
  )), c = !0);
@@ -3501,7 +3505,7 @@ class Hi extends U {
3501
3505
  }
3502
3506
  }
3503
3507
  function Ki(t) {
3504
- x(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
3508
+ F(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
3505
3509
  }
3506
3510
  function qi(t) {
3507
3511
  let e, r;
@@ -3566,7 +3570,7 @@ class Ji extends U {
3566
3570
  }
3567
3571
  }
3568
3572
  function Vi(t) {
3569
- x(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
3573
+ F(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
3570
3574
  }
3571
3575
  function Wi(t) {
3572
3576
  let e, r, n, i;
@@ -3586,7 +3590,7 @@ function Wi(t) {
3586
3590
  t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3587
3591
  },
3588
3592
  m(l, c) {
3589
- p(l, e, c), M(e, r), s && s.m(r, null), i = !0;
3593
+ p(l, e, c), C(e, r), s && s.m(r, null), i = !0;
3590
3594
  },
3591
3595
  p(l, [c]) {
3592
3596
  s && s.p && (!i || c & /*$$scope*/
@@ -3809,7 +3813,7 @@ class io extends U {
3809
3813
  super(), N(this, e, ro, no, T, { condition: 0 });
3810
3814
  }
3811
3815
  }
3812
- const oo = (t) => ({}), pt = (t) => ({});
3816
+ const oo = (t) => ({}), _t = (t) => ({});
3813
3817
  function so(t) {
3814
3818
  let e, r;
3815
3819
  const n = (
@@ -3820,7 +3824,7 @@ function so(t) {
3820
3824
  t,
3821
3825
  /*$$scope*/
3822
3826
  t[2],
3823
- pt
3827
+ _t
3824
3828
  ), o = (
3825
3829
  /*#slots*/
3826
3830
  t[1].default
@@ -3856,7 +3860,7 @@ function so(t) {
3856
3860
  /*$$scope*/
3857
3861
  l[2]
3858
3862
  ),
3859
- pt
3863
+ _t
3860
3864
  ), s && s.p && (!r || c & /*$$scope*/
3861
3865
  4) && J(
3862
3866
  s,
@@ -3930,7 +3934,7 @@ function co(t, e, r) {
3930
3934
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
3931
3935
  }, [o, n, i];
3932
3936
  }
3933
- class xt extends U {
3937
+ class Ft extends U {
3934
3938
  constructor(e) {
3935
3939
  super(), N(this, e, co, lo, T, { dark: 0 });
3936
3940
  }
@@ -4009,6 +4013,7 @@ class he {
4009
4013
  return 11;
4010
4014
  case 7105:
4011
4015
  case 7106:
4016
+ case 7814:
4012
4017
  return 4;
4013
4018
  case 7220:
4014
4019
  return 14;
@@ -4034,7 +4039,7 @@ class he {
4034
4039
  }
4035
4040
  }
4036
4041
  static convertCodeToBackendErrorCode(e) {
4037
- return e in Ft ? e : null;
4042
+ return e in xt ? e : null;
4038
4043
  }
4039
4044
  static convertPurchaseFlowErrorCodeToErrorCode(e) {
4040
4045
  switch (e) {
@@ -4053,7 +4058,7 @@ class he {
4053
4058
  }
4054
4059
  }
4055
4060
  }
4056
- var Ft = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t))(Ft || {});
4061
+ var xt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t))(xt || {});
4057
4062
  class X extends Error {
4058
4063
  constructor(r, n, i) {
4059
4064
  super(n);
@@ -4085,7 +4090,7 @@ class ao extends Error {
4085
4090
  super("Purchases must be configured before calling getInstance");
4086
4091
  }
4087
4092
  }
4088
- const uo = "0.3.0", fe = "https://api.revenuecat.com";
4093
+ const uo = "0.3.1", fe = "https://api.revenuecat.com";
4089
4094
  var Re;
4090
4095
  (function(t) {
4091
4096
  t[t.CONTINUE = 100] = "CONTINUE", t[t.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", t[t.PROCESSING = 102] = "PROCESSING", t[t.EARLY_HINTS = 103] = "EARLY_HINTS", t[t.OK = 200] = "OK", t[t.CREATED = 201] = "CREATED", t[t.ACCEPTED = 202] = "ACCEPTED", t[t.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", t[t.NO_CONTENT = 204] = "NO_CONTENT", t[t.RESET_CONTENT = 205] = "RESET_CONTENT", t[t.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", t[t.MULTI_STATUS = 207] = "MULTI_STATUS", t[t.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", t[t.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", t[t.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", t[t.SEE_OTHER = 303] = "SEE_OTHER", t[t.NOT_MODIFIED = 304] = "NOT_MODIFIED", t[t.USE_PROXY = 305] = "USE_PROXY", t[t.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", t[t.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", t[t.BAD_REQUEST = 400] = "BAD_REQUEST", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", t[t.FORBIDDEN = 403] = "FORBIDDEN", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", t[t.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", t[t.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", t[t.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", t[t.CONFLICT = 409] = "CONFLICT", t[t.GONE = 410] = "GONE", t[t.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t[t.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", t[t.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", t[t.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", t[t.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", t[t.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", t[t.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", t[t.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", t[t.METHOD_FAILURE = 420] = "METHOD_FAILURE", t[t.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", t[t.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", t[t.LOCKED = 423] = "LOCKED", t[t.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", t[t.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", t[t.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", t[t.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", t[t.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", t[t.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", t[t.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", t[t.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", t[t.BAD_GATEWAY = 502] = "BAD_GATEWAY", t[t.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", t[t.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", t[t.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", t[t.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", t[t.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
@@ -4288,7 +4293,7 @@ class $o extends U {
4288
4293
  }
4289
4294
  }
4290
4295
  function vo(t) {
4291
- x(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
4296
+ F(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
4292
4297
  }
4293
4298
  function yo(t) {
4294
4299
  let e;
@@ -4313,17 +4318,17 @@ class Bo extends U {
4313
4318
  }
4314
4319
  }
4315
4320
  function Do(t) {
4316
- x(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4321
+ F(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4317
4322
  Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-1qect5g{width:100vw;width:100 dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}.rcb-ui-aside.svelte-1qect5g{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-1qect5g{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1qect5g{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-1qect5g{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}.rcb-ui-main.svelte-1qect5g{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1qect5g{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4318
4323
  }
4319
- function _t(t) {
4324
+ function At(t) {
4320
4325
  let e, r, n;
4321
- return r = new xt({
4326
+ return r = new Ft({
4322
4327
  props: {
4323
4328
  dark: !0,
4324
4329
  $$slots: {
4325
4330
  header: [To],
4326
- default: [Co]
4331
+ default: [Mo]
4327
4332
  },
4328
4333
  $$scope: { ctx: t }
4329
4334
  }
@@ -4350,7 +4355,7 @@ function _t(t) {
4350
4355
  }
4351
4356
  };
4352
4357
  }
4353
- function At(t) {
4358
+ function ht(t) {
4354
4359
  let e, r;
4355
4360
  return e = new Pt({
4356
4361
  props: {
@@ -4389,11 +4394,11 @@ function At(t) {
4389
4394
  }
4390
4395
  };
4391
4396
  }
4392
- function Co(t) {
4397
+ function Mo(t) {
4393
4398
  let e, r, n = (
4394
4399
  /*productDetails*/
4395
4400
  t[3] && /*purchaseOption*/
4396
- t[1] && At(t)
4401
+ t[1] && ht(t)
4397
4402
  );
4398
4403
  return {
4399
4404
  c() {
@@ -4406,7 +4411,7 @@ function Co(t) {
4406
4411
  /*productDetails*/
4407
4412
  i[3] && /*purchaseOption*/
4408
4413
  i[1] ? n ? (n.p(i, o), o & /*productDetails, purchaseOption*/
4409
- 10 && f(n, 1)) : (n = At(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (Y(), m(n, 1, 1, () => {
4414
+ 10 && f(n, 1)) : (n = ht(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (Y(), m(n, 1, 1, () => {
4410
4415
  n = null;
4411
4416
  }), H());
4412
4417
  },
@@ -4421,7 +4426,7 @@ function Co(t) {
4421
4426
  }
4422
4427
  };
4423
4428
  }
4424
- function Mo(t) {
4429
+ function Co(t) {
4425
4430
  let e, r;
4426
4431
  return e = new $o({}), {
4427
4432
  c() {
@@ -4469,7 +4474,7 @@ function Po(t) {
4469
4474
  t[4]
4470
4475
  ) }
4471
4476
  });
4472
- const c = [Qo, Mo], a = [];
4477
+ const c = [Qo, Co], a = [];
4473
4478
  function u(d, h) {
4474
4479
  return h & /*purchases*/
4475
4480
  4 && (n = null), n == null && (n = !!/*purchases*/
@@ -4505,7 +4510,7 @@ function Po(t) {
4505
4510
  }
4506
4511
  function To(t) {
4507
4512
  let e, r;
4508
- return e = new ze({
4513
+ return e = new Xe({
4509
4514
  props: {
4510
4515
  slot: "header",
4511
4516
  $$slots: { default: [Po] },
@@ -4534,7 +4539,7 @@ function To(t) {
4534
4539
  }
4535
4540
  };
4536
4541
  }
4537
- function ht(t) {
4542
+ function Et(t) {
4538
4543
  let e, r;
4539
4544
  return e = new Pt({
4540
4545
  props: {
@@ -4573,9 +4578,9 @@ function ht(t) {
4573
4578
  }
4574
4579
  };
4575
4580
  }
4576
- function Et(t) {
4581
+ function bt(t) {
4577
4582
  let e, r;
4578
- return e = new Ve({}), {
4583
+ return e = new We({}), {
4579
4584
  c() {
4580
4585
  w(e.$$.fragment);
4581
4586
  },
@@ -4593,7 +4598,7 @@ function Et(t) {
4593
4598
  }
4594
4599
  };
4595
4600
  }
4596
- function bt(t) {
4601
+ function It(t) {
4597
4602
  let e, r;
4598
4603
  return e = new Hi({
4599
4604
  props: {
@@ -4634,7 +4639,7 @@ function bt(t) {
4634
4639
  }
4635
4640
  };
4636
4641
  }
4637
- function It(t) {
4642
+ function wt(t) {
4638
4643
  let e, r;
4639
4644
  return e = new Pi({
4640
4645
  props: {
@@ -4685,9 +4690,9 @@ function It(t) {
4685
4690
  }
4686
4691
  };
4687
4692
  }
4688
- function wt(t) {
4693
+ function kt(t) {
4689
4694
  let e, r;
4690
- return e = new Ve({}), {
4695
+ return e = new We({}), {
4691
4696
  c() {
4692
4697
  w(e.$$.fragment);
4693
4698
  },
@@ -4705,7 +4710,7 @@ function wt(t) {
4705
4710
  }
4706
4711
  };
4707
4712
  }
4708
- function kt(t) {
4713
+ function $t(t) {
4709
4714
  var n;
4710
4715
  let e, r;
4711
4716
  return e = new Rr({
@@ -4756,7 +4761,7 @@ function kt(t) {
4756
4761
  }
4757
4762
  };
4758
4763
  }
4759
- function $t(t) {
4764
+ function vt(t) {
4760
4765
  let e, r;
4761
4766
  return e = new Kr({
4762
4767
  props: {
@@ -4798,29 +4803,29 @@ function No(t) {
4798
4803
  /*state*/
4799
4804
  t[7] === "present-offer" && /*productDetails*/
4800
4805
  t[3] && /*purchaseOption*/
4801
- t[1] && ht(t)
4806
+ t[1] && Et(t)
4802
4807
  ), u = (
4803
4808
  /*state*/
4804
4809
  t[7] === "present-offer" && !/*productDetails*/
4805
- t[3] && Et()
4810
+ t[3] && bt()
4806
4811
  ), d = (
4807
4812
  /*state*/
4808
4813
  (t[7] === "needs-auth-info" || /*state*/
4809
- t[7] === "processing-auth-info") && bt(t)
4814
+ t[7] === "processing-auth-info") && It(t)
4810
4815
  ), h = (
4811
4816
  /*paymentInfoCollectionMetadata*/
4812
4817
  t[5] && /*state*/
4813
4818
  (t[7] === "needs-payment-info" || /*state*/
4814
- t[7] === "polling-purchase-status") && It(t)
4819
+ t[7] === "polling-purchase-status") && wt(t)
4815
4820
  ), $ = (
4816
4821
  /*state*/
4817
- t[7] === "loading" && wt()
4822
+ t[7] === "loading" && kt()
4818
4823
  ), E = (
4819
4824
  /*state*/
4820
- t[7] === "error" && kt(t)
4825
+ t[7] === "error" && $t(t)
4821
4826
  ), B = (
4822
4827
  /*state*/
4823
- t[7] === "success" && $t(t)
4828
+ t[7] === "success" && vt(t)
4824
4829
  );
4825
4830
  return {
4826
4831
  c() {
@@ -4834,35 +4839,35 @@ function No(t) {
4834
4839
  A[7] === "present-offer" && /*productDetails*/
4835
4840
  A[3] && /*purchaseOption*/
4836
4841
  A[1] ? a ? (a.p(A, y), y & /*state, productDetails, purchaseOption*/
4837
- 138 && f(a, 1)) : (a = ht(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (Y(), m(a, 1, 1, () => {
4842
+ 138 && f(a, 1)) : (a = Et(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (Y(), m(a, 1, 1, () => {
4838
4843
  a = null;
4839
4844
  }), H()), /*state*/
4840
4845
  A[7] === "present-offer" && !/*productDetails*/
4841
4846
  A[3] ? u ? y & /*state, productDetails*/
4842
- 136 && f(u, 1) : (u = Et(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (Y(), m(u, 1, 1, () => {
4847
+ 136 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (Y(), m(u, 1, 1, () => {
4843
4848
  u = null;
4844
4849
  }), H()), /*state*/
4845
4850
  A[7] === "needs-auth-info" || /*state*/
4846
4851
  A[7] === "processing-auth-info" ? d ? (d.p(A, y), y & /*state*/
4847
- 128 && f(d, 1)) : (d = bt(A), d.c(), f(d, 1), d.m(n.parentNode, n)) : d && (Y(), m(d, 1, 1, () => {
4852
+ 128 && f(d, 1)) : (d = It(A), d.c(), f(d, 1), d.m(n.parentNode, n)) : d && (Y(), m(d, 1, 1, () => {
4848
4853
  d = null;
4849
4854
  }), H()), /*paymentInfoCollectionMetadata*/
4850
4855
  A[5] && /*state*/
4851
4856
  (A[7] === "needs-payment-info" || /*state*/
4852
4857
  A[7] === "polling-purchase-status") ? h ? (h.p(A, y), y & /*paymentInfoCollectionMetadata, state*/
4853
- 160 && f(h, 1)) : (h = It(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (Y(), m(h, 1, 1, () => {
4858
+ 160 && f(h, 1)) : (h = wt(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (Y(), m(h, 1, 1, () => {
4854
4859
  h = null;
4855
4860
  }), H()), /*state*/
4856
4861
  A[7] === "loading" ? $ ? y & /*state*/
4857
- 128 && f($, 1) : ($ = wt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (Y(), m($, 1, 1, () => {
4862
+ 128 && f($, 1) : ($ = kt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (Y(), m($, 1, 1, () => {
4858
4863
  $ = null;
4859
4864
  }), H()), /*state*/
4860
4865
  A[7] === "error" ? E ? (E.p(A, y), y & /*state*/
4861
- 128 && f(E, 1)) : (E = kt(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (Y(), m(E, 1, 1, () => {
4866
+ 128 && f(E, 1)) : (E = $t(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (Y(), m(E, 1, 1, () => {
4862
4867
  E = null;
4863
4868
  }), H()), /*state*/
4864
4869
  A[7] === "success" ? B ? (B.p(A, y), y & /*state*/
4865
- 128 && f(B, 1)) : (B = $t(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (Y(), m(B, 1, 1, () => {
4870
+ 128 && f(B, 1)) : (B = vt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (Y(), m(B, 1, 1, () => {
4866
4871
  B = null;
4867
4872
  }), H());
4868
4873
  },
@@ -4884,8 +4889,8 @@ function Uo(t) {
4884
4889
  /*state*/
4885
4890
  t[7]
4886
4891
  )
4887
- ), n, i, o, s, l = r && _t(t);
4888
- return o = new xt({
4892
+ ), n, i, o, s, l = r && At(t);
4893
+ return o = new Ft({
4889
4894
  props: {
4890
4895
  $$slots: { default: [No] },
4891
4896
  $$scope: { ctx: t }
@@ -4900,7 +4905,7 @@ function Uo(t) {
4900
4905
  );
4901
4906
  },
4902
4907
  m(c, a) {
4903
- p(c, e, a), l && l.m(e, null), M(e, n), M(e, i), b(o, i, null), s = !0;
4908
+ p(c, e, a), l && l.m(e, null), C(e, n), C(e, i), b(o, i, null), s = !0;
4904
4909
  },
4905
4910
  p(c, a) {
4906
4911
  a & /*state*/
@@ -4909,7 +4914,7 @@ function Uo(t) {
4909
4914
  /*state*/
4910
4915
  c[7]
4911
4916
  )), r ? l ? (l.p(c, a), a & /*state*/
4912
- 128 && f(l, 1)) : (l = _t(c), l.c(), f(l, 1), l.m(e, n)) : l && (Y(), m(l, 1, 1, () => {
4917
+ 128 && f(l, 1)) : (l = At(c), l.c(), f(l, 1), l.m(e, n)) : l && (Y(), m(l, 1, 1, () => {
4913
4918
  l = null;
4914
4919
  }), H());
4915
4920
  const u = {};
@@ -4964,11 +4969,11 @@ function Ro(t) {
4964
4969
  };
4965
4970
  }
4966
4971
  function Oo(t, e, r) {
4967
- var Ze, et;
4972
+ var et, tt;
4968
4973
  let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: d } = e, { backend: h } = e, { purchaseOperationHelper: $ } = e;
4969
- const E = Object.entries(_e).map(([D, xe]) => `--rc-color-${D}: ${xe}`).join("; ");
4974
+ const E = Object.entries(_e).map(([D, Fe]) => `--rc-color-${D}: ${Fe}`).join("; ");
4970
4975
  let B = null, A = null, y = null, R = null;
4971
- const C = ((Ze = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : Ze.identifier) ?? null, ve = (et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.defaultSubscriptionOption, F = l || ve;
4976
+ const M = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, x = l || ve;
4972
4977
  let O = "present-offer";
4973
4978
  const ye = [
4974
4979
  "present-offer",
@@ -4980,14 +4985,14 @@ function Oo(t, e, r) {
4980
4985
  ];
4981
4986
  Se(async () => {
4982
4987
  if (r(3, B = s.rcBillingProduct), r(4, A = await h.getBrandingInfo()), O === "present-offer") {
4983
- i ? Xe() : r(7, O = "needs-auth-info");
4988
+ i ? Ze() : r(7, O = "needs-auth-info");
4984
4989
  return;
4985
4990
  }
4986
4991
  });
4987
4992
  const Be = () => {
4988
4993
  u();
4989
- }, Xe = () => {
4990
- if (C === null) {
4994
+ }, Ze = () => {
4995
+ if (M === null) {
4991
4996
  de(new K(L.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
4992
4997
  return;
4993
4998
  } else
@@ -4996,7 +5001,7 @@ function Oo(t, e, r) {
4996
5001
  de(new K(L.MissingEmailError));
4997
5002
  return;
4998
5003
  }
4999
- $.startPurchase(o, C, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5004
+ $.startPurchase(o, M, x, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5000
5005
  if (D.next_action === "collect_payment_info") {
5001
5006
  r(7, O = "needs-payment-info"), r(5, y = D);
5002
5007
  return;
@@ -5010,14 +5015,14 @@ function Oo(t, e, r) {
5010
5015
  });
5011
5016
  }, Yt = (D) => {
5012
5017
  if (O === "needs-auth-info") {
5013
- D && (r(14, i = D.email), r(7, O = "processing-auth-info")), Xe();
5018
+ D && (r(14, i = D.email), r(7, O = "processing-auth-info")), Ze();
5014
5019
  return;
5015
5020
  }
5016
5021
  if (O === "needs-payment-info") {
5017
5022
  r(7, O = "polling-purchase-status"), $.pollCurrentPurchaseForCompletion().then(() => {
5018
5023
  r(7, O = "success");
5019
- }).catch((xe) => {
5020
- de(xe);
5024
+ }).catch((Fe) => {
5025
+ de(Fe);
5021
5026
  });
5022
5027
  return;
5023
5028
  }
@@ -5086,10 +5091,10 @@ class So extends U {
5086
5091
  function Lo(t) {
5087
5092
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
5088
5093
  }
5089
- function xo(t, e, r, n) {
5094
+ function Fo(t, e, r, n) {
5090
5095
  const i = e.product_identifier;
5091
5096
  if (i in r)
5092
- return Fo(
5097
+ return xo(
5093
5098
  t,
5094
5099
  e,
5095
5100
  r[i]
@@ -5105,7 +5110,7 @@ function xo(t, e, r, n) {
5105
5110
  "Could not find entitlement product in subscriptions or non-subscriptions."
5106
5111
  );
5107
5112
  }
5108
- function Fo(t, e, r) {
5113
+ function xo(t, e, r) {
5109
5114
  return {
5110
5115
  identifier: t,
5111
5116
  isActive: Lo(e),
@@ -5146,7 +5151,7 @@ function Go(t, e, r) {
5146
5151
  function Yo(t, e, r) {
5147
5152
  const n = {}, i = {};
5148
5153
  for (const o in t) {
5149
- const s = xo(
5154
+ const s = Fo(
5150
5155
  o,
5151
5156
  t[o],
5152
5157
  e,
@@ -5280,9 +5285,9 @@ const z = class z {
5280
5285
  r.product_details.forEach((l) => {
5281
5286
  i[l.identifier] = l;
5282
5287
  });
5283
- const o = n == null ? null : rt(n, i), s = {};
5288
+ const o = n == null ? null : it(n, i), s = {};
5284
5289
  return e.offerings.forEach((l) => {
5285
- const c = rt(l, i);
5290
+ const c = it(l, i);
5286
5291
  c != null && (s[l.identifier] = c);
5287
5292
  }), Object.keys(s).length == 0 && G.debugLog(
5288
5293
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
@@ -5482,12 +5487,12 @@ const z = class z {
5482
5487
  };
5483
5488
  /** @internal */
5484
5489
  Q(z, "instance");
5485
- let vt = z;
5490
+ let yt = z;
5486
5491
  export {
5487
5492
  ne as ErrorCode,
5488
5493
  W as LogLevel,
5489
5494
  zt as PackageType,
5490
- vt as Purchases,
5495
+ yt as Purchases,
5491
5496
  X as PurchasesError,
5492
5497
  ao as UninitializedPurchasesError
5493
5498
  };