@paynext/sdk 0.0.126 → 0.0.127

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.
package/dist/index.es.js CHANGED
@@ -2,7 +2,7 @@ var Er = Object.defineProperty, kr = Object.defineProperties;
2
2
  var xr = Object.getOwnPropertyDescriptors;
3
3
  var ot = Object.getOwnPropertySymbols;
4
4
  var yn = Object.prototype.hasOwnProperty, Cn = Object.prototype.propertyIsEnumerable;
5
- var xt = (n, e, t) => e in n ? Er(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, v = (n, e) => {
5
+ var xt = (n, e, t) => e in n ? Er(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, y = (n, e) => {
6
6
  for (var t in e || (e = {}))
7
7
  yn.call(e, t) && xt(n, t, e[t]);
8
8
  if (ot)
@@ -67,7 +67,7 @@ class iu {
67
67
  });
68
68
  }
69
69
  }
70
- var x = /* @__PURE__ */ ((n) => (n.PAYPAL = "PAYPAL", n.APPLE_PAY = "APPLEPAY", n.GOOGLE_PAY = "GPAY", n.CARD = "CARD", n.VENMO = "VENMO", n))(x || {}), Pt = /* @__PURE__ */ ((n) => (n.PENDING = "PENDING", n.FAILED = "FAILED", n.AUTHORIZED = "AUTHORIZED", n.SETTLING = "SETTLING", n.SETTLED = "SETTLED", n.DECLINED = "DECLINED", n.CANCELLED = "CANCELLED", n))(Pt || {}), Dt = /* @__PURE__ */ ((n) => (n.INSUFFICIENT_FUNDS = "insufficient_funds", n.AUTHENTICATION_REQUIRED = "authentication_required", n.CARD_ISSUER_DECLINE = "card_issuer_decline", n.GENERIC_DECLINE = "generic_decline", n.WITHDRAWAL_LIMIT_EXCEEDED = "withdrawal_limit_exceeded", n.DO_NOT_HONOR = "do_not_honor", n.EXPIRED_CARD = "expired_card", n.SUSPECTED_FRAUD = "suspected_fraud", n.INCORRECT_CVC = "incorrect_cvc", n.INVALID_CARD_NUMBER = "invalid_card_number", n.ISSUER_UNAVAILABLE = "issuer_unavailable", n.CARD_LOST_OR_STOLEN = "card_lost_or_stolen", n.CARD_DECLINED = "card_declined", n))(Dt || {});
70
+ var w = /* @__PURE__ */ ((n) => (n.PAYPAL = "PAYPAL", n.APPLE_PAY = "APPLEPAY", n.GOOGLE_PAY = "GPAY", n.CARD = "CARD", n.VENMO = "VENMO", n))(w || {}), Pt = /* @__PURE__ */ ((n) => (n.PENDING = "PENDING", n.FAILED = "FAILED", n.AUTHORIZED = "AUTHORIZED", n.SETTLING = "SETTLING", n.SETTLED = "SETTLED", n.DECLINED = "DECLINED", n.CANCELLED = "CANCELLED", n))(Pt || {}), Dt = /* @__PURE__ */ ((n) => (n.INSUFFICIENT_FUNDS = "insufficient_funds", n.AUTHENTICATION_REQUIRED = "authentication_required", n.CARD_ISSUER_DECLINE = "card_issuer_decline", n.GENERIC_DECLINE = "generic_decline", n.WITHDRAWAL_LIMIT_EXCEEDED = "withdrawal_limit_exceeded", n.DO_NOT_HONOR = "do_not_honor", n.EXPIRED_CARD = "expired_card", n.SUSPECTED_FRAUD = "suspected_fraud", n.INCORRECT_CVC = "incorrect_cvc", n.INVALID_CARD_NUMBER = "invalid_card_number", n.ISSUER_UNAVAILABLE = "issuer_unavailable", n.CARD_LOST_OR_STOLEN = "card_lost_or_stolen", n.CARD_DECLINED = "card_declined", n))(Dt || {});
71
71
  const En = {
72
72
  appIds: {
73
73
  develop: "app_00b96c0c3011",
@@ -83,26 +83,26 @@ const En = {
83
83
  production: "https://api.paynext.com"
84
84
  })[n], Tr = [
85
85
  {
86
- type: x.PAYPAL,
86
+ type: w.PAYPAL,
87
87
  order: 1,
88
88
  is_active: !0
89
89
  },
90
90
  {
91
- type: x.APPLE_PAY,
91
+ type: w.APPLE_PAY,
92
92
  order: 2,
93
93
  is_active: !0
94
94
  },
95
95
  {
96
- type: x.GOOGLE_PAY,
96
+ type: w.GOOGLE_PAY,
97
97
  order: 3,
98
98
  is_active: !0
99
99
  },
100
100
  {
101
- type: x.CARD,
101
+ type: w.CARD,
102
102
  order: 4,
103
103
  is_active: !0
104
104
  }
105
- ], Ar = (n) => n.googlePay ? x.GOOGLE_PAY : n.applePay ? x.APPLE_PAY : n.paypal ? x.PAYPAL : n.braintree ? x.VENMO : x.CARD, Lr = (n) => {
105
+ ], Ar = (n) => n.googlePay ? w.GOOGLE_PAY : n.applePay ? w.APPLE_PAY : n.paypal ? w.PAYPAL : n.braintree ? w.VENMO : w.CARD, Lr = (n) => {
106
106
  const e = n.card;
107
107
  if (e)
108
108
  return {
@@ -129,16 +129,16 @@ const En = {
129
129
  billing_agreement_token: e.billing_agreement_token.paypalId
130
130
  };
131
131
  }, Vr = (n) => {
132
- var t, i;
132
+ var t, i, r, a, s, o, l, u, d, h, m, p, g, b, v, E, _, T;
133
133
  const e = n.googlePay;
134
134
  if (e != null && e.token)
135
135
  return {
136
136
  cryptogram: e.cryptogram,
137
137
  eci: e.eci,
138
- exp_month: (t = e.card) != null && t.expiry.month || e.token.expiry.month ? Number(e.card.expiry.month || e.token.expiry.month) : void 0,
139
- exp_year: (i = e.card) != null && i.expiry.year || e.token.expiry.year ? Number(e.card.expiry.year || e.token.expiry.year) : void 0,
140
- token: e.token.number,
141
- token_service_provider: e.token.tokenServiceProvider
138
+ exp_month: (i = (t = e.card) == null ? void 0 : t.expiry) != null && i.month || (a = (r = e.token) == null ? void 0 : r.expiry) != null && a.month ? Number(((o = (s = e.card) == null ? void 0 : s.expiry) == null ? void 0 : o.month) || ((u = (l = e.token) == null ? void 0 : l.expiry) == null ? void 0 : u.month)) : void 0,
139
+ exp_year: (h = (d = e.card) == null ? void 0 : d.expiry) != null && h.year || (p = (m = e.token) == null ? void 0 : m.expiry) != null && p.year ? Number(((b = (g = e.card) == null ? void 0 : g.expiry) == null ? void 0 : b.year) || ((E = (v = e.token) == null ? void 0 : v.expiry) == null ? void 0 : E.year)) : void 0,
140
+ token: (_ = e.token) == null ? void 0 : _.number,
141
+ token_service_provider: (T = e.token) == null ? void 0 : T.tokenServiceProvider
142
142
  };
143
143
  }, Ir = (n) => {
144
144
  var t, i, r, a, s, o;
@@ -159,7 +159,7 @@ const En = {
159
159
  payment_method_nonce: e.nonce
160
160
  };
161
161
  }, kn = (n) => {
162
- var i, r, a, s, o, l, u, d, h, m, p, g, b, y;
162
+ var i, r, a, s, o, l, u, d, h, m, p, g, b, v;
163
163
  const { applePay: e, googlePay: t } = n;
164
164
  if (!(!e && !t))
165
165
  return {
@@ -168,10 +168,10 @@ const En = {
168
168
  line1: ((l = (o = e == null ? void 0 : e.billingContact) == null ? void 0 : o.addressLines) == null ? void 0 : l.at(0)) || ((u = t == null ? void 0 : t.billingAddress) == null ? void 0 : u.address1) || void 0,
169
169
  line2: ((h = (d = e == null ? void 0 : e.billingContact) == null ? void 0 : d.addressLines) == null ? void 0 : h.at(1)) || ((m = t == null ? void 0 : t.billingAddress) == null ? void 0 : m.address2) || void 0,
170
170
  postal_code: ((p = e == null ? void 0 : e.billingContact) == null ? void 0 : p.postalCode) || ((g = t == null ? void 0 : t.billingAddress) == null ? void 0 : g.postalCode) || void 0,
171
- state: ((b = e == null ? void 0 : e.billingContact) == null ? void 0 : b.administrativeArea) || ((y = t == null ? void 0 : t.billingAddress) == null ? void 0 : y.administrativeArea) || void 0
171
+ state: ((b = e == null ? void 0 : e.billingContact) == null ? void 0 : b.administrativeArea) || ((v = t == null ? void 0 : t.billingAddress) == null ? void 0 : v.administrativeArea) || void 0
172
172
  };
173
173
  }, xn = (n) => {
174
- var r, a, s, o, l, u, d, h, m, p, g, b, y, C, V, T, I, A, D;
174
+ var r, a, s, o, l, u, d, h, m, p, g, b, v, E, _, T, I, A, D, C, x, O, R;
175
175
  const { card: e, googlePay: t, applePay: i } = n;
176
176
  if (!(!e && !(t != null && t.card) && !(i != null && i.card)))
177
177
  return {
@@ -185,10 +185,10 @@ const En = {
185
185
  type: (e == null ? void 0 : e.type) || ((g = t == null ? void 0 : t.card) == null ? void 0 : g.segment) || ((b = i == null ? void 0 : i.card) == null ? void 0 : b.segment)
186
186
  },
187
187
  cvc: e == null ? void 0 : e.cvc,
188
- exp_month: e != null && e.expMonth || (y = t == null ? void 0 : t.card) != null && y.expiry.month ? Number((e == null ? void 0 : e.expMonth) || ((C = t == null ? void 0 : t.card) == null ? void 0 : C.expiry.month)) : void 0,
189
- exp_year: e != null && e.expYear || (V = t == null ? void 0 : t.card) != null && V.expiry.year ? Number((e == null ? void 0 : e.expYear) || ((T = t == null ? void 0 : t.card) == null ? void 0 : T.expiry.year)) : void 0,
190
- last4: (e == null ? void 0 : e.lastFourDigits) || ((I = t == null ? void 0 : t.card) == null ? void 0 : I.lastFour) || ((A = i == null ? void 0 : i.card) == null ? void 0 : A.lastFour),
191
- number: (e == null ? void 0 : e.number) || ((D = t == null ? void 0 : t.card) == null ? void 0 : D.number)
188
+ exp_month: e != null && e.expMonth || (E = (v = t == null ? void 0 : t.card) == null ? void 0 : v.expiry) != null && E.month ? Number((e == null ? void 0 : e.expMonth) || ((T = (_ = t == null ? void 0 : t.card) == null ? void 0 : _.expiry) == null ? void 0 : T.month)) : void 0,
189
+ exp_year: e != null && e.expYear || (A = (I = t == null ? void 0 : t.card) == null ? void 0 : I.expiry) != null && A.year ? Number((e == null ? void 0 : e.expYear) || ((C = (D = t == null ? void 0 : t.card) == null ? void 0 : D.expiry) == null ? void 0 : C.year)) : void 0,
190
+ last4: (e == null ? void 0 : e.lastFourDigits) || ((x = t == null ? void 0 : t.card) == null ? void 0 : x.lastFour) || ((O = i == null ? void 0 : i.card) == null ? void 0 : O.lastFour),
191
+ number: (e == null ? void 0 : e.number) || ((R = t == null ? void 0 : t.card) == null ? void 0 : R.number)
192
192
  };
193
193
  }, wn = (n) => {
194
194
  var i, r;
@@ -202,33 +202,33 @@ const En = {
202
202
  type: e
203
203
  };
204
204
  switch (e) {
205
- case x.CARD:
206
- return M(v({}, t), {
205
+ case w.CARD:
206
+ return M(y({}, t), {
207
207
  name: wn(n),
208
208
  card: Lr(n)
209
209
  });
210
- case x.PAYPAL:
211
- return M(v({}, t), {
210
+ case w.PAYPAL:
211
+ return M(y({}, t), {
212
212
  paypal: _r(n)
213
213
  });
214
- case x.GOOGLE_PAY:
215
- return M(v({}, t), {
214
+ case w.GOOGLE_PAY:
215
+ return M(y({}, t), {
216
216
  name: (r = (i = n.googlePay) == null ? void 0 : i.billingAddress) == null ? void 0 : r.name,
217
217
  phone: (l = (o = (s = (a = n.googlePay) == null ? void 0 : a.billingAddress) == null ? void 0 : s.phoneNumber) == null ? void 0 : o.replace(/ /g, "")) == null ? void 0 : l.replace(/-/g, ""),
218
218
  card: xn(n),
219
219
  google_pay: Vr(n),
220
220
  billing_address: kn(n)
221
221
  });
222
- case x.APPLE_PAY:
223
- return M(v({}, t), {
222
+ case w.APPLE_PAY:
223
+ return M(y({}, t), {
224
224
  name: wn(n),
225
225
  card: xn(n),
226
226
  apple_pay: Ir(n),
227
227
  phone: (d = (u = n.applePay) == null ? void 0 : u.shippingContact) == null ? void 0 : d.phoneNumber,
228
228
  billing_address: kn(n)
229
229
  });
230
- case x.VENMO:
231
- return M(v({}, t), {
230
+ case w.VENMO:
231
+ return M(y({}, t), {
232
232
  venmo: Mr(n)
233
233
  });
234
234
  default:
@@ -259,7 +259,8 @@ const En = {
259
259
  let Nr = class {
260
260
  constructor(e) {
261
261
  c(this, "apple", null);
262
- c(this, "isAvailable", !1);
262
+ // ToDo: remove isAvailable after testing
263
+ c(this, "isAvailable", !0);
263
264
  c(this, "onReady");
264
265
  this.ev = e;
265
266
  }
@@ -275,7 +276,7 @@ let Nr = class {
275
276
  onPaymentAttempt: o
276
277
  }, l) {
277
278
  const h = this.ev.transactions.create(e);
278
- this.apple = this.ev.ui.applePay(h, M(v({
279
+ this.apple = this.ev.ui.applePay(h, M(y({
279
280
  locale: t,
280
281
  borderRadius: 12,
281
282
  size: {
@@ -288,21 +289,19 @@ let Nr = class {
288
289
  allowedCardNetworks: ["visa", "masterCard"],
289
290
  requestBillingAddress: !0,
290
291
  requestPayerDetails: ["name", "email", "phone"],
291
- process: (b, y) => k(this, [b, y], function* (p, { fail: g }) {
292
+ process: (g, b) => k(this, [g, b], function* (m, { fail: p }) {
292
293
  o == null || o({
293
- paymentMethod: x.GOOGLE_PAY
294
+ paymentMethod: w.GOOGLE_PAY
294
295
  });
295
296
  try {
296
- a == null || a(p);
297
- } catch (C) {
298
- console.error(C), g({
297
+ a == null || a(m);
298
+ } catch (v) {
299
+ console.error(v), p({
299
300
  message: "Cannot pay with payment credentials"
300
301
  });
301
302
  }
302
303
  })
303
- }));
304
- const m = "available";
305
- this.isAvailable = m === "available", this.isAvailable || r == null || r("Apple Pay is not supported on this device"), r && this.apple.on("error", r), s && this.apple.on("cancel", s), this.onReady = i;
304
+ })), r && this.apple.on("error", r), s && this.apple.on("cancel", s), this.onReady = i;
306
305
  });
307
306
  }
308
307
  render(e) {
@@ -326,7 +325,7 @@ let Nr = class {
326
325
  init(u, d) {
327
326
  return k(this, arguments, function* ({ transaction: e, locale: t, onReady: i, onError: r, onSuccess: a, onCancel: s, onPaymentAttempt: o }, l) {
328
327
  const h = this.ev.transactions.create(e);
329
- this.google = this.ev.ui.googlePay(h, M(v({
328
+ this.google = this.ev.ui.googlePay(h, M(y({
330
329
  locale: t,
331
330
  size: {
332
331
  width: "100%",
@@ -343,12 +342,12 @@ let Nr = class {
343
342
  allowedCardNetworks: ["VISA", "MASTERCARD"],
344
343
  process: (g, b) => k(this, [g, b], function* (m, { fail: p }) {
345
344
  o == null || o({
346
- paymentMethod: x.GOOGLE_PAY
345
+ paymentMethod: w.GOOGLE_PAY
347
346
  });
348
347
  try {
349
348
  a == null || a(m);
350
- } catch (y) {
351
- console.error(y), p({
349
+ } catch (v) {
350
+ console.error(v), p({
352
351
  message: "Cannot pay with payment credentials"
353
352
  });
354
353
  }
@@ -569,7 +568,7 @@ function nn(n) {
569
568
  }
570
569
  const se = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, le = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3;
571
570
  function yi(n, e = 100, t) {
572
- const i = t(M(v({}, n), { keyframes: [0, e] })), r = Math.min(nn(i), mt);
571
+ const i = t(M(y({}, n), { keyframes: [0, e] })), r = Math.min(nn(i), mt);
573
572
  return {
574
573
  type: "keyframes",
575
574
  ease: (a) => i.next(r * a).value / e,
@@ -591,20 +590,20 @@ function Zr(n, a = {}, i, r) {
591
590
  const o = e.duration || 0.3, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map(), d = {}, h = /* @__PURE__ */ new Map();
592
591
  let m = 0, p = 0, g = 0;
593
592
  for (let b = 0; b < n.length; b++) {
594
- const y = n[b];
595
- if (typeof y == "string") {
596
- h.set(y, p);
593
+ const v = n[b];
594
+ if (typeof v == "string") {
595
+ h.set(v, p);
597
596
  continue;
598
- } else if (!Array.isArray(y)) {
599
- h.set(y.name, Tn(p, y.at, m, h));
597
+ } else if (!Array.isArray(v)) {
598
+ h.set(v.name, Tn(p, v.at, m, h));
600
599
  continue;
601
600
  }
602
- let [C, V, T = {}] = y;
601
+ let [E, _, T = {}] = v;
603
602
  T.at !== void 0 && (p = Tn(p, T.at, m, h));
604
603
  let I = 0;
605
- const A = (D, E, w, O = 0, R = 0) => {
606
- const q = Jr(D), Le = E, { delay: Te = 0, times: te = vi(q), type: fe = "keyframes", repeat: he, repeatType: Et, repeatDelay: kt = 0 } = Le, st = ae(Le, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
607
- let { ease: ne = e.ease || "easeOut", duration: f } = E;
604
+ const A = (D, C, x, O = 0, R = 0) => {
605
+ const q = Jr(D), Le = C, { delay: Te = 0, times: te = vi(q), type: fe = "keyframes", repeat: he, repeatType: Et, repeatDelay: kt = 0 } = Le, st = ae(Le, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
606
+ let { ease: ne = e.ease || "easeOut", duration: f } = C;
608
607
  const P = typeof Te == "function" ? Te(O, R) : Te, N = q.length, G = tn(fe) ? fe : r == null ? void 0 : r[fe];
609
608
  if (N <= 2 && G) {
610
609
  let z = 100;
@@ -612,7 +611,7 @@ function Zr(n, a = {}, i, r) {
612
611
  const ge = q[1] - q[0];
613
612
  z = Math.abs(ge);
614
613
  }
615
- const re = v({}, st);
614
+ const re = y({}, st);
616
615
  f !== void 0 && (re.duration = /* @__PURE__ */ se(f));
617
616
  const pe = yi(re, z, G);
618
617
  ne = pe.ease, f = pe.duration;
@@ -634,37 +633,37 @@ function Zr(n, a = {}, i, r) {
634
633
  Hr(te, he);
635
634
  }
636
635
  const Ae = ie + f;
637
- Gr(w, q, ne, te, ie, Ae), I = Math.max(P + f, I), g = Math.max(Ae, g);
636
+ Gr(x, q, ne, te, ie, Ae), I = Math.max(P + f, I), g = Math.max(Ae, g);
638
637
  };
639
- if (J(C)) {
640
- const D = An(C, u);
641
- A(V, T, Ln("default", D));
638
+ if (J(E)) {
639
+ const D = An(E, u);
640
+ A(_, T, Ln("default", D));
642
641
  } else {
643
- const D = pi(C, V, i, d), E = D.length;
644
- for (let w = 0; w < E; w++) {
645
- V = V, T = T;
646
- const O = D[w], R = An(O, u);
647
- for (const q in V)
648
- A(V[q], Xr(T, q), Ln(q, R), w, E);
642
+ const D = pi(E, _, i, d), C = D.length;
643
+ for (let x = 0; x < C; x++) {
644
+ _ = _, T = T;
645
+ const O = D[x], R = An(O, u);
646
+ for (const q in _)
647
+ A(_[q], Xr(T, q), Ln(q, R), x, C);
649
648
  }
650
649
  }
651
650
  m = p, p += I;
652
651
  }
653
- return u.forEach((b, y) => {
654
- for (const C in b) {
655
- const V = b[C];
656
- V.sort(Yr);
652
+ return u.forEach((b, v) => {
653
+ for (const E in b) {
654
+ const _ = b[E];
655
+ _.sort(Yr);
657
656
  const T = [], I = [], A = [];
658
- for (let E = 0; E < V.length; E++) {
659
- const { at: w, value: O, easing: R } = V[E];
660
- T.push(O), I.push(/* @__PURE__ */ en(0, g, w)), A.push(R || "easeOut");
657
+ for (let C = 0; C < _.length; C++) {
658
+ const { at: x, value: O, easing: R } = _[C];
659
+ T.push(O), I.push(/* @__PURE__ */ en(0, g, x)), A.push(R || "easeOut");
661
660
  }
662
- I[0] !== 0 && (I.unshift(0), T.unshift(T[0]), A.unshift(Ur)), I[I.length - 1] !== 1 && (I.push(1), T.push(null)), l.has(y) || l.set(y, {
661
+ I[0] !== 0 && (I.unshift(0), T.unshift(T[0]), A.unshift(Ur)), I[I.length - 1] !== 1 && (I.push(1), T.push(null)), l.has(v) || l.set(v, {
663
662
  keyframes: {},
664
663
  transition: {}
665
664
  });
666
- const D = l.get(y);
667
- D.keyframes[C] = T, D.transition[C] = v(M(v({}, e), {
665
+ const D = l.get(v);
666
+ D.keyframes[E] = T, D.transition[E] = y(M(y({}, e), {
668
667
  duration: g,
669
668
  ease: A,
670
669
  times: I
@@ -682,7 +681,7 @@ function Jr(n) {
682
681
  return Array.isArray(n) ? n : [n];
683
682
  }
684
683
  function Xr(n, e) {
685
- return n && n[e] ? v(v({}, n), n[e]) : v({}, n);
684
+ return n && n[e] ? y(y({}, n), n[e]) : y({}, n);
686
685
  }
687
686
  const Qr = (n) => typeof n == "number", ea = (n) => n.every(Qr), Je = /* @__PURE__ */ new WeakMap(), ta = (n) => Array.isArray(n);
688
687
  function _n(n) {
@@ -772,12 +771,12 @@ function aa(n, e) {
772
771
  }, a = () => t = !0, s = lt.reduce((T, I) => (T[I] = ia(a), T), {}), { setup: o, read: l, resolveKeyframes: u, preUpdate: d, update: h, preRender: m, render: p, postRender: g } = s, b = () => {
773
772
  const T = de.useManualTiming ? r.timestamp : performance.now();
774
773
  t = !1, de.useManualTiming || (r.delta = i ? 1e3 / 60 : Math.max(Math.min(T - r.timestamp, ra), 1)), r.timestamp = T, r.isProcessing = !0, o.process(r), l.process(r), u.process(r), d.process(r), h.process(r), m.process(r), p.process(r), g.process(r), r.isProcessing = !1, t && e && (i = !1, n(b));
775
- }, y = () => {
774
+ }, v = () => {
776
775
  t = !0, i = !0, r.isProcessing || n(b);
777
776
  };
778
777
  return { schedule: lt.reduce((T, I) => {
779
778
  const A = s[I];
780
- return T[I] = (D, E = !1, w = !1) => (t || y(), A.schedule(D, E, w)), T;
779
+ return T[I] = (D, C = !1, x = !1) => (t || v(), A.schedule(D, C, x)), T;
781
780
  }, {}), cancel: (T) => {
782
781
  for (let I = 0; I < lt.length; I++)
783
782
  s[lt[I]].cancel(T);
@@ -1040,7 +1039,7 @@ function da(n) {
1040
1039
  }
1041
1040
  function ua(n, e) {
1042
1041
  let s = na(n, e) || {}, { transitionEnd: i = {}, transition: r = {} } = s, a = ae(s, ["transitionEnd", "transition"]);
1043
- a = v(v({}, a), i);
1042
+ a = y(y({}, a), i);
1044
1043
  for (const o in a) {
1045
1044
  const l = da(a[o]);
1046
1045
  ca(n, o, l);
@@ -1115,9 +1114,9 @@ const Ti = (n) => (e) => typeof e == "string" && e.startsWith(n), Ai = /* @__PUR
1115
1114
  test: (n) => typeof n == "number",
1116
1115
  parse: parseFloat,
1117
1116
  transform: (n) => n
1118
- }, Qe = M(v({}, Ne), {
1117
+ }, Qe = M(y({}, Ne), {
1119
1118
  transform: (n) => xe(0, 1, n)
1120
- }), ct = M(v({}, Ne), {
1119
+ }), ct = M(y({}, Ne), {
1121
1120
  default: 1
1122
1121
  }), We = (n) => Math.round(n * 1e5) / 1e5, sn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
1123
1122
  function La(n) {
@@ -1133,7 +1132,7 @@ const _a = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
1133
1132
  [t]: parseFloat(s),
1134
1133
  alpha: o !== void 0 ? parseFloat(o) : 1
1135
1134
  };
1136
- }, Va = (n) => xe(0, 255, n), wt = M(v({}, Ne), {
1135
+ }, Va = (n) => xe(0, 255, n), wt = M(y({}, Ne), {
1137
1136
  transform: (n) => Math.round(Va(n))
1138
1137
  }), ye = {
1139
1138
  test: /* @__PURE__ */ on("rgb", "red"),
@@ -1157,7 +1156,7 @@ const Rt = {
1157
1156
  test: (e) => typeof e == "string" && e.endsWith(n) && e.split(" ").length === 1,
1158
1157
  parse: parseFloat,
1159
1158
  transform: (e) => `${e}${n}`
1160
- }), me = /* @__PURE__ */ rt("deg"), Me = /* @__PURE__ */ rt("%"), _ = /* @__PURE__ */ rt("px"), Ma = /* @__PURE__ */ rt("vh"), Pa = /* @__PURE__ */ rt("vw"), Mn = M(v({}, Me), {
1159
+ }), me = /* @__PURE__ */ rt("deg"), Me = /* @__PURE__ */ rt("%"), V = /* @__PURE__ */ rt("px"), Ma = /* @__PURE__ */ rt("vh"), Pa = /* @__PURE__ */ rt("vw"), Mn = M(y({}, Me), {
1161
1160
  parse: (n) => Me.parse(n) / 100,
1162
1161
  transform: (n) => Me.transform(n * 100)
1163
1162
  }), Ve = {
@@ -1247,7 +1246,7 @@ const On = (n, e) => {
1247
1246
  const t = Dn(n), i = Dn(e);
1248
1247
  if (!t || !i)
1249
1248
  return gt(n, e);
1250
- const r = v({}, t);
1249
+ const r = y({}, t);
1251
1250
  return (a) => (r.red = At(t.red, i.red, a), r.green = At(t.green, i.green, a), r.blue = At(t.blue, i.blue, a), r.alpha = nt(t.alpha, i.alpha, a), ye.transform(r));
1252
1251
  }, Nt = /* @__PURE__ */ new Set(["none", "hidden"]);
1253
1252
  function Ka(n, e) {
@@ -1269,7 +1268,7 @@ function Pi(n, e) {
1269
1268
  };
1270
1269
  }
1271
1270
  function Ha(n, e) {
1272
- const t = v(v({}, n), e), i = {};
1271
+ const t = y(y({}, n), e), i = {};
1273
1272
  for (const r in t)
1274
1273
  n[r] !== void 0 && e[r] !== void 0 && (i[r] = cn(n[r])(n[r], e[r]));
1275
1274
  return (r) => {
@@ -1393,7 +1392,7 @@ function Rn(n, e) {
1393
1392
  return e.some((t) => n[t] !== void 0);
1394
1393
  }
1395
1394
  function ns(n) {
1396
- let e = v({
1395
+ let e = y({
1397
1396
  velocity: B.velocity,
1398
1397
  stiffness: B.stiffness,
1399
1398
  damping: B.damping,
@@ -1403,14 +1402,14 @@ function ns(n) {
1403
1402
  if (!Rn(n, ts) && Rn(n, es))
1404
1403
  if (n.visualDuration) {
1405
1404
  const t = n.visualDuration, i = 2 * Math.PI / (t * 1.2), r = i * i, a = 2 * xe(0.05, 1, 1 - (n.bounce || 0)) * Math.sqrt(r);
1406
- e = M(v({}, e), {
1405
+ e = M(y({}, e), {
1407
1406
  mass: B.mass,
1408
1407
  stiffness: r,
1409
1408
  damping: a
1410
1409
  });
1411
1410
  } else {
1412
1411
  const t = Ja(n);
1413
- e = M(v(v({}, e), t), {
1412
+ e = M(y(y({}, e), t), {
1414
1413
  mass: B.mass
1415
1414
  }), e.isResolvedFromDuration = !0;
1416
1415
  }
@@ -1423,24 +1422,24 @@ function tt(n = B.visualDuration, e = B.bounce) {
1423
1422
  bounce: e
1424
1423
  } : n;
1425
1424
  let { restSpeed: i, restDelta: r } = t;
1426
- const a = t.keyframes[0], s = t.keyframes[t.keyframes.length - 1], o = { done: !1, value: a }, { stiffness: l, damping: u, mass: d, duration: h, velocity: m, isResolvedFromDuration: p } = ns(M(v({}, t), {
1425
+ const a = t.keyframes[0], s = t.keyframes[t.keyframes.length - 1], o = { done: !1, value: a }, { stiffness: l, damping: u, mass: d, duration: h, velocity: m, isResolvedFromDuration: p } = ns(M(y({}, t), {
1427
1426
  velocity: -/* @__PURE__ */ le(t.velocity || 0)
1428
- })), g = m || 0, b = u / (2 * Math.sqrt(l * d)), y = s - a, C = /* @__PURE__ */ le(Math.sqrt(l / d)), V = Math.abs(y) < 5;
1429
- i || (i = V ? B.restSpeed.granular : B.restSpeed.default), r || (r = V ? B.restDelta.granular : B.restDelta.default);
1427
+ })), g = m || 0, b = u / (2 * Math.sqrt(l * d)), v = s - a, E = /* @__PURE__ */ le(Math.sqrt(l / d)), _ = Math.abs(v) < 5;
1428
+ i || (i = _ ? B.restSpeed.granular : B.restSpeed.default), r || (r = _ ? B.restDelta.granular : B.restDelta.default);
1430
1429
  let T;
1431
1430
  if (b < 1) {
1432
- const A = St(C, b);
1431
+ const A = St(E, b);
1433
1432
  T = (D) => {
1434
- const E = Math.exp(-b * C * D);
1435
- return s - E * ((g + b * C * y) / A * Math.sin(A * D) + y * Math.cos(A * D));
1433
+ const C = Math.exp(-b * E * D);
1434
+ return s - C * ((g + b * E * v) / A * Math.sin(A * D) + v * Math.cos(A * D));
1436
1435
  };
1437
1436
  } else if (b === 1)
1438
- T = (A) => s - Math.exp(-C * A) * (y + (g + C * y) * A);
1437
+ T = (A) => s - Math.exp(-E * A) * (v + (g + E * v) * A);
1439
1438
  else {
1440
- const A = C * Math.sqrt(b * b - 1);
1439
+ const A = E * Math.sqrt(b * b - 1);
1441
1440
  T = (D) => {
1442
- const E = Math.exp(-b * C * D), w = Math.min(A * D, 300);
1443
- return s - E * ((g + b * C * y) * Math.sinh(w) + A * y * Math.cosh(w)) / A;
1441
+ const C = Math.exp(-b * E * D), x = Math.min(A * D, 300);
1442
+ return s - C * ((g + b * E * v) * Math.sinh(x) + A * v * Math.cosh(x)) / A;
1444
1443
  };
1445
1444
  }
1446
1445
  const I = {
@@ -1450,15 +1449,15 @@ function tt(n = B.visualDuration, e = B.bounce) {
1450
1449
  if (p)
1451
1450
  o.done = A >= h;
1452
1451
  else {
1453
- let E = A === 0 ? g : 0;
1454
- b < 1 && (E = A === 0 ? /* @__PURE__ */ se(g) : Ri(T, A, D));
1455
- const w = Math.abs(E) <= i, O = Math.abs(s - D) <= r;
1456
- o.done = w && O;
1452
+ let C = A === 0 ? g : 0;
1453
+ b < 1 && (C = A === 0 ? /* @__PURE__ */ se(g) : Ri(T, A, D));
1454
+ const x = Math.abs(C) <= i, O = Math.abs(s - D) <= r;
1455
+ o.done = x && O;
1457
1456
  }
1458
1457
  return o.value = o.done ? s : D, o;
1459
1458
  },
1460
1459
  toString: () => {
1461
- const A = Math.min(nn(I), mt), D = Oi((E) => I.next(A * E).value, A, 30);
1460
+ const A = Math.min(nn(I), mt), D = Oi((C) => I.next(A * C).value, A, 30);
1462
1461
  return A + "ms " + D;
1463
1462
  },
1464
1463
  toTransition: () => {
@@ -1474,19 +1473,19 @@ function Ft({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: i = 3
1474
1473
  const h = n[0], m = {
1475
1474
  done: !1,
1476
1475
  value: h
1477
- }, p = (w) => o !== void 0 && w < o || l !== void 0 && w > l, g = (w) => o === void 0 ? l : l === void 0 || Math.abs(o - w) < Math.abs(l - w) ? o : l;
1476
+ }, p = (x) => o !== void 0 && x < o || l !== void 0 && x > l, g = (x) => o === void 0 ? l : l === void 0 || Math.abs(o - x) < Math.abs(l - x) ? o : l;
1478
1477
  let b = t * e;
1479
- const y = h + b, C = s === void 0 ? y : s(y);
1480
- C !== y && (b = C - h);
1481
- const V = (w) => -b * Math.exp(-w / i), T = (w) => C + V(w), I = (w) => {
1482
- const O = V(w), R = T(w);
1483
- m.done = Math.abs(O) <= u, m.value = m.done ? C : R;
1478
+ const v = h + b, E = s === void 0 ? v : s(v);
1479
+ E !== v && (b = E - h);
1480
+ const _ = (x) => -b * Math.exp(-x / i), T = (x) => E + _(x), I = (x) => {
1481
+ const O = _(x), R = T(x);
1482
+ m.done = Math.abs(O) <= u, m.value = m.done ? E : R;
1484
1483
  };
1485
1484
  let A, D;
1486
- const E = (w) => {
1487
- p(m.value) && (A = w, D = tt({
1485
+ const C = (x) => {
1486
+ p(m.value) && (A = x, D = tt({
1488
1487
  keyframes: [m.value, g(m.value)],
1489
- velocity: Ri(T, w, m.value),
1488
+ velocity: Ri(T, x, m.value),
1490
1489
  // TODO: This should be passing * 1000
1491
1490
  damping: r,
1492
1491
  stiffness: a,
@@ -1494,11 +1493,11 @@ function Ft({ keyframes: n, velocity: e = 0, power: t = 0.8, timeConstant: i = 3
1494
1493
  restSpeed: d
1495
1494
  }));
1496
1495
  };
1497
- return E(0), {
1496
+ return C(0), {
1498
1497
  calculatedDuration: null,
1499
- next: (w) => {
1498
+ next: (x) => {
1500
1499
  let O = !1;
1501
- return !D && A === void 0 && (O = !0, I(w), E(w)), A !== void 0 && w >= A ? D.next(w - A) : (!O && I(w), m);
1500
+ return !D && A === void 0 && (O = !0, I(x), C(x)), A !== void 0 && x >= A ? D.next(x - A) : (!O && I(x), m);
1502
1501
  }
1503
1502
  };
1504
1503
  }
@@ -1647,8 +1646,8 @@ class mn extends pn {
1647
1646
  let { keyframes: o } = e;
1648
1647
  const l = t || Ie;
1649
1648
  process.env.NODE_ENV !== "production" && l !== Ie && ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== Ie && typeof o[0] != "number" && (this.mixKeyframes = ln(gs, Di(o[0], o[1])), o = [0, 100]);
1650
- const u = l(M(v({}, e), { keyframes: o }));
1651
- a === "mirror" && (this.mirroredGenerator = l(M(v({}, e), {
1649
+ const u = l(M(y({}, e), { keyframes: o }));
1650
+ a === "mirror" && (this.mirroredGenerator = l(M(y({}, e), {
1652
1651
  keyframes: [...o].reverse(),
1653
1652
  velocity: -s
1654
1653
  }))), u.calculatedDuration === null && (u.calculatedDuration = nn(u));
@@ -1663,22 +1662,22 @@ class mn extends pn {
1663
1662
  const { generator: i, totalDuration: r, mixKeyframes: a, mirroredGenerator: s, resolvedDuration: o, calculatedDuration: l } = this;
1664
1663
  if (this.startTime === null)
1665
1664
  return i.next(0);
1666
- const { delay: u = 0, keyframes: d, repeat: h, repeatType: m, repeatDelay: p, type: g, onUpdate: b, finalKeyframe: y } = this.options;
1665
+ const { delay: u = 0, keyframes: d, repeat: h, repeatType: m, repeatDelay: p, type: g, onUpdate: b, finalKeyframe: v } = this.options;
1667
1666
  this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
1668
- const C = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), V = this.playbackSpeed >= 0 ? C < 0 : C > r;
1669
- this.currentTime = Math.max(C, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
1667
+ const E = this.currentTime - u * (this.playbackSpeed >= 0 ? 1 : -1), _ = this.playbackSpeed >= 0 ? E < 0 : E > r;
1668
+ this.currentTime = Math.max(E, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
1670
1669
  let T = this.currentTime, I = i;
1671
1670
  if (h) {
1672
- const w = Math.min(this.currentTime, r) / o;
1673
- let O = Math.floor(w), R = w % 1;
1674
- !R && w >= 1 && (R = 1), R === 1 && O--, O = Math.min(O, h + 1), !!(O % 2) && (m === "reverse" ? (R = 1 - R, p && (R -= p / o)) : m === "mirror" && (I = s)), T = xe(0, 1, R) * o;
1671
+ const x = Math.min(this.currentTime, r) / o;
1672
+ let O = Math.floor(x), R = x % 1;
1673
+ !R && x >= 1 && (R = 1), R === 1 && O--, O = Math.min(O, h + 1), !!(O % 2) && (m === "reverse" ? (R = 1 - R, p && (R -= p / o)) : m === "mirror" && (I = s)), T = xe(0, 1, R) * o;
1675
1674
  }
1676
- const A = V ? { done: !1, value: d[0] } : I.next(T);
1675
+ const A = _ ? { done: !1, value: d[0] } : I.next(T);
1677
1676
  a && (A.value = a(A.value));
1678
1677
  let { done: D } = A;
1679
- !V && l !== null && (D = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
1680
- const E = this.holdTime === null && (this.state === "finished" || this.state === "running" && D);
1681
- return E && g !== Ft && (A.value = hn(d, this.options, y, this.speed)), b && b(A.value), E && this.finish(), A;
1678
+ !_ && l !== null && (D = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
1679
+ const C = this.holdTime === null && (this.state === "finished" || this.state === "running" && D);
1680
+ return C && g !== Ft && (A.value = hn(d, this.options, v, this.speed)), b && b(A.value), C && this.finish(), A;
1682
1681
  }
1683
1682
  /**
1684
1683
  * Allows the returned animation to be awaited or promise-chained. Currently
@@ -1808,7 +1807,7 @@ const Cs = (n, e) => {
1808
1807
  function Es(n) {
1809
1808
  return parseFloat(n.trim());
1810
1809
  }
1811
- const zn = (n) => n === Ne || n === _, ks = /* @__PURE__ */ new Set(["x", "y", "z"]), xs = Oe.filter((n) => !ks.has(n));
1810
+ const zn = (n) => n === Ne || n === V, ks = /* @__PURE__ */ new Set(["x", "y", "z"]), xs = Oe.filter((n) => !ks.has(n));
1812
1811
  function ws(n) {
1813
1812
  const e = [];
1814
1813
  return xs.forEach((t) => {
@@ -2084,7 +2083,7 @@ class Ns extends Ds {
2084
2083
  t.set(e);
2085
2084
  return;
2086
2085
  }
2087
- const o = new mn(M(v({}, s), {
2086
+ const o = new mn(M(y({}, s), {
2088
2087
  autoplay: !1
2089
2088
  })), l = /* @__PURE__ */ se((d = this.finishedTime) != null ? d : this.time);
2090
2089
  t.setWithVelocity(o.sample(l - Kn).value, o.sample(l).value, Kn), o.stop();
@@ -2140,12 +2139,12 @@ const Ks = 40;
2140
2139
  class qs extends pn {
2141
2140
  constructor(m) {
2142
2141
  var p = m, { autoplay: e = !0, delay: t = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: a = 0, repeatType: s = "loop", keyframes: o, name: l, motionValue: u, element: d } = p, h = ae(p, ["autoplay", "delay", "type", "repeat", "repeatDelay", "repeatType", "keyframes", "name", "motionValue", "element"]);
2143
- var y;
2142
+ var v;
2144
2143
  super(), this.stop = () => {
2145
- var C, V;
2146
- this._animation && (this._animation.stop(), (C = this.stopTimeline) == null || C.call(this)), (V = this.keyframeResolver) == null || V.cancel();
2144
+ var E, _;
2145
+ this._animation && (this._animation.stop(), (E = this.stopTimeline) == null || E.call(this)), (_ = this.keyframeResolver) == null || _.cancel();
2147
2146
  }, this.createdAt = ee.now();
2148
- const g = v({
2147
+ const g = y({
2149
2148
  autoplay: e,
2150
2149
  delay: t,
2151
2150
  type: i,
@@ -2156,18 +2155,18 @@ class qs extends pn {
2156
2155
  motionValue: u,
2157
2156
  element: d
2158
2157
  }, h), b = (d == null ? void 0 : d.KeyframeResolver) || fn;
2159
- this.keyframeResolver = new b(o, (C, V, T) => this.onKeyframesResolved(C, V, g, !T), l, u, d), (y = this.keyframeResolver) == null || y.scheduleResolve();
2158
+ this.keyframeResolver = new b(o, (E, _, T) => this.onKeyframesResolved(E, _, g, !T), l, u, d), (v = this.keyframeResolver) == null || v.scheduleResolve();
2160
2159
  }
2161
2160
  onKeyframesResolved(e, t, i, r) {
2162
2161
  this.keyframeResolver = void 0;
2163
2162
  const { name: a, type: s, velocity: o, delay: l, isHandoff: u, onUpdate: d } = i;
2164
2163
  this.resolvedAt = ee.now(), Fs(e, a, s, o) || ((de.instantAnimations || !l) && (d == null || d(hn(e, i, t))), e[0] = e[e.length - 1], i.duration = 0, i.repeat = 0);
2165
- const h = r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ks ? this.resolvedAt : this.createdAt : this.createdAt : void 0, m = M(v({
2164
+ const h = r ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ks ? this.resolvedAt : this.createdAt : this.createdAt : void 0, m = M(y({
2166
2165
  startTime: h,
2167
2166
  finalKeyframe: t
2168
2167
  }, i), {
2169
2168
  keyframes: e
2170
- }), p = !u && $s(m) ? new Ns(M(v({}, m), {
2169
+ }), p = !u && $s(m) ? new Ns(M(y({}, m), {
2171
2170
  element: m.motionValue.owner.current
2172
2171
  })) : new mn(m);
2173
2172
  p.finished.then(() => this.notifyFinished()).catch(De), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
@@ -2225,7 +2224,7 @@ const Xi = (n, e, t, i = {}, r, a) => (s) => {
2225
2224
  const o = wi(i, n) || {}, l = o.delay || i.delay || 0;
2226
2225
  let { elapsed: u = 0 } = i;
2227
2226
  u = u - /* @__PURE__ */ se(l);
2228
- const d = M(v({
2227
+ const d = M(y({
2229
2228
  keyframes: Array.isArray(t) ? t : [null, t],
2230
2229
  ease: "easeOut",
2231
2230
  velocity: e.getVelocity()
@@ -2275,22 +2274,22 @@ function Hs(n, e, { delay: t = 0, transitionOverride: i, type: r } = {}) {
2275
2274
  const p = n.getValue(m, (h = n.latestValues[m]) != null ? h : null), g = o[m];
2276
2275
  if (g === void 0 || u && Gs(u, m))
2277
2276
  continue;
2278
- const b = v({
2277
+ const b = y({
2279
2278
  delay: t
2280
- }, wi(a || {}, m)), y = p.get();
2281
- if (y !== void 0 && !p.isAnimating && !Array.isArray(g) && g === y && !b.velocity)
2279
+ }, wi(a || {}, m)), v = p.get();
2280
+ if (v !== void 0 && !p.isAnimating && !Array.isArray(g) && g === v && !b.velocity)
2282
2281
  continue;
2283
- let C = !1;
2282
+ let E = !1;
2284
2283
  if (window.MotionHandoffAnimation) {
2285
2284
  const T = ga(n);
2286
2285
  if (T) {
2287
2286
  const I = window.MotionHandoffAnimation(T, m, ue);
2288
- I !== null && (b.startTime = I, C = !0);
2287
+ I !== null && (b.startTime = I, E = !0);
2289
2288
  }
2290
2289
  }
2291
- pa(n, m), p.start(Xi(m, p, g, n.shouldReduceMotion && Qi.has(m) ? { type: !1 } : b, n, C));
2292
- const V = p.animation;
2293
- V && l.push(V);
2290
+ pa(n, m), p.start(Xi(m, p, g, n.shouldReduceMotion && Qi.has(m) ? { type: !1 } : b, n, E));
2291
+ const _ = p.animation;
2292
+ _ && l.push(_);
2294
2293
  }
2295
2294
  return s && Promise.all(l).then(() => {
2296
2295
  ue.update(() => {
@@ -2398,7 +2397,7 @@ function io(n, e, t) {
2398
2397
  const nr = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), ir = (n) => /^0[^.\s]+$/u.test(n), ro = {
2399
2398
  test: (n) => n === "auto",
2400
2399
  parse: (n) => n
2401
- }, rr = (n) => (e) => e.test(n), ar = [Ne, _, Me, me, Pa, Ma, ro], Yn = (n) => ar.find(rr(n)), ao = [...ar, U, Se], so = (n) => ao.find(rr(n)), oo = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2400
+ }, rr = (n) => (e) => e.test(n), ar = [Ne, V, Me, me, Pa, Ma, ro], Yn = (n) => ar.find(rr(n)), ao = [...ar, U, Se], so = (n) => ao.find(rr(n)), oo = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
2402
2401
  function lo(n) {
2403
2402
  const [e, t] = n.slice(0, -1).split("(");
2404
2403
  if (e === "drop-shadow")
@@ -2410,12 +2409,12 @@ function lo(n) {
2410
2409
  let a = oo.has(e) ? 1 : 0;
2411
2410
  return i !== t && (a *= 100), e + "(" + a + r + ")";
2412
2411
  }
2413
- const co = /\b([a-z-]*)\(.*?\)/gu, Ut = M(v({}, Se), {
2412
+ const co = /\b([a-z-]*)\(.*?\)/gu, Ut = M(y({}, Se), {
2414
2413
  getAnimatableNone: (n) => {
2415
2414
  const e = n.match(co);
2416
2415
  return e ? e.map(lo).join(" ") : n;
2417
2416
  }
2418
- }), Un = M(v({}, Ne), {
2417
+ }), Un = M(y({}, Ne), {
2419
2418
  transform: Math.round
2420
2419
  }), uo = {
2421
2420
  rotate: me,
@@ -2429,62 +2428,62 @@ const co = /\b([a-z-]*)\(.*?\)/gu, Ut = M(v({}, Se), {
2429
2428
  skew: me,
2430
2429
  skewX: me,
2431
2430
  skewY: me,
2432
- distance: _,
2433
- translateX: _,
2434
- translateY: _,
2435
- translateZ: _,
2436
- x: _,
2437
- y: _,
2438
- z: _,
2439
- perspective: _,
2440
- transformPerspective: _,
2431
+ distance: V,
2432
+ translateX: V,
2433
+ translateY: V,
2434
+ translateZ: V,
2435
+ x: V,
2436
+ y: V,
2437
+ z: V,
2438
+ perspective: V,
2439
+ transformPerspective: V,
2441
2440
  opacity: Qe,
2442
2441
  originX: Mn,
2443
2442
  originY: Mn,
2444
- originZ: _
2445
- }, vn = M(v({
2443
+ originZ: V
2444
+ }, vn = M(y({
2446
2445
  // Border props
2447
- borderWidth: _,
2448
- borderTopWidth: _,
2449
- borderRightWidth: _,
2450
- borderBottomWidth: _,
2451
- borderLeftWidth: _,
2452
- borderRadius: _,
2453
- radius: _,
2454
- borderTopLeftRadius: _,
2455
- borderTopRightRadius: _,
2456
- borderBottomRightRadius: _,
2457
- borderBottomLeftRadius: _,
2446
+ borderWidth: V,
2447
+ borderTopWidth: V,
2448
+ borderRightWidth: V,
2449
+ borderBottomWidth: V,
2450
+ borderLeftWidth: V,
2451
+ borderRadius: V,
2452
+ radius: V,
2453
+ borderTopLeftRadius: V,
2454
+ borderTopRightRadius: V,
2455
+ borderBottomRightRadius: V,
2456
+ borderBottomLeftRadius: V,
2458
2457
  // Positioning props
2459
- width: _,
2460
- maxWidth: _,
2461
- height: _,
2462
- maxHeight: _,
2463
- top: _,
2464
- right: _,
2465
- bottom: _,
2466
- left: _,
2458
+ width: V,
2459
+ maxWidth: V,
2460
+ height: V,
2461
+ maxHeight: V,
2462
+ top: V,
2463
+ right: V,
2464
+ bottom: V,
2465
+ left: V,
2467
2466
  // Spacing props
2468
- padding: _,
2469
- paddingTop: _,
2470
- paddingRight: _,
2471
- paddingBottom: _,
2472
- paddingLeft: _,
2473
- margin: _,
2474
- marginTop: _,
2475
- marginRight: _,
2476
- marginBottom: _,
2477
- marginLeft: _,
2467
+ padding: V,
2468
+ paddingTop: V,
2469
+ paddingRight: V,
2470
+ paddingBottom: V,
2471
+ paddingLeft: V,
2472
+ margin: V,
2473
+ marginTop: V,
2474
+ marginRight: V,
2475
+ marginBottom: V,
2476
+ marginLeft: V,
2478
2477
  // Misc
2479
- backgroundPositionX: _,
2480
- backgroundPositionY: _
2478
+ backgroundPositionX: V,
2479
+ backgroundPositionY: V
2481
2480
  }, uo), {
2482
2481
  zIndex: Un,
2483
2482
  // SVG
2484
2483
  fillOpacity: Qe,
2485
2484
  strokeOpacity: Qe,
2486
2485
  numOctaves: Un
2487
- }), ho = M(v({}, vn), {
2486
+ }), ho = M(y({}, vn), {
2488
2487
  // Color props
2489
2488
  color: U,
2490
2489
  backgroundColor: U,
@@ -2532,7 +2531,7 @@ class lr {
2532
2531
  this.renderScheduledAt < p && (this.renderScheduledAt = p, ue.render(this.render, !1, !0));
2533
2532
  };
2534
2533
  const { latestValues: l, renderState: u } = s;
2535
- this.latestValues = l, this.baseTarget = v({}, l), this.initialValues = t.initial ? v({}, l) : {}, this.renderState = u, this.parent = e, this.props = t, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.options = o, this.blockInitialAnimation = !!a, this.isControllingVariants = tr(t), this.isVariantNode = no(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2534
+ this.latestValues = l, this.baseTarget = y({}, l), this.initialValues = t.initial ? y({}, l) : {}, this.renderState = u, this.parent = e, this.props = t, this.presenceContext = i, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.options = o, this.blockInitialAnimation = !!a, this.isControllingVariants = tr(t), this.isVariantNode = no(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
2536
2535
  const m = this.scrapeMotionValuesFromProps(t, {}, this), { willChange: d } = m, h = ae(m, ["willChange"]);
2537
2536
  for (const p in h) {
2538
2537
  const g = h[p];
@@ -2951,8 +2950,8 @@ const Vo = {
2951
2950
  function Mo(n, e, t = 1, i = 0, r = !0) {
2952
2951
  n.pathLength = 1;
2953
2952
  const a = r ? Vo : Io;
2954
- n[a.offset] = _.transform(-i);
2955
- const s = _.transform(e), o = _.transform(t);
2953
+ n[a.offset] = V.transform(-i);
2954
+ const s = V.transform(e), o = V.transform(t);
2956
2955
  n[a.array] = `${s} ${o}`;
2957
2956
  }
2958
2957
  function Po(n, h, l, u, d) {
@@ -2971,14 +2970,14 @@ function Po(n, h, l, u, d) {
2971
2970
  "pathSpacing",
2972
2971
  "pathOffset"
2973
2972
  ]);
2974
- var b, y;
2973
+ var b, v;
2975
2974
  if (hr(n, o, u), l) {
2976
2975
  n.style.viewBox && (n.attrs.viewBox = n.style.viewBox);
2977
2976
  return;
2978
2977
  }
2979
2978
  n.attrs = n.style, n.style = {};
2980
2979
  const { attrs: p, style: g } = n;
2981
- p.transform && (g.transform = p.transform, delete p.transform), (g.transform || p.transformOrigin) && (g.transformOrigin = (b = p.transformOrigin) != null ? b : "50% 50%", delete p.transformOrigin), g.transform && (g.transformBox = (y = d == null ? void 0 : d.transformBox) != null ? y : "fill-box", delete p.transformBox), e !== void 0 && (p.x = e), t !== void 0 && (p.y = t), i !== void 0 && (p.scale = i), r !== void 0 && Mo(p, r, a, s, !1);
2980
+ p.transform && (g.transform = p.transform, delete p.transform), (g.transform || p.transformOrigin) && (g.transformOrigin = (b = p.transformOrigin) != null ? b : "50% 50%", delete p.transformOrigin), g.transform && (g.transformBox = (v = d == null ? void 0 : d.transformBox) != null ? v : "fill-box", delete p.transformBox), e !== void 0 && (p.x = e), t !== void 0 && (p.y = t), i !== void 0 && (p.scale = i), r !== void 0 && Mo(p, r, a, s, !1);
2982
2981
  }
2983
2982
  const fr = /* @__PURE__ */ new Set([
2984
2983
  "baseFrequency",
@@ -3099,8 +3098,8 @@ function br(n, e, t, i) {
3099
3098
  for (let o = 0; o < s; o++) {
3100
3099
  const l = a[o], u = l instanceof Element ? Fo : jo;
3101
3100
  Je.has(l) || u(l);
3102
- const d = Je.get(l), h = v({}, t);
3103
- "delay" in h && typeof h.delay == "function" && (h.delay = h.delay(o, s)), r.push(...Hs(d, M(v({}, e), { transition: h }), {}));
3101
+ const d = Je.get(l), h = y({}, t);
3102
+ "delay" in h && typeof h.delay == "function" && (h.delay = h.delay(o, s)), r.push(...Hs(d, M(y({}, e), { transition: h }), {}));
3104
3103
  }
3105
3104
  }
3106
3105
  return r;
@@ -3532,9 +3531,9 @@ function yl() {
3532
3531
  ii = 1;
3533
3532
  var n = Ge && Ge.__assign || function() {
3534
3533
  return n = Object.assign || function(g) {
3535
- for (var b, y = 1, C = arguments.length; y < C; y++) {
3536
- b = arguments[y];
3537
- for (var V in b) Object.prototype.hasOwnProperty.call(b, V) && (g[V] = b[V]);
3534
+ for (var b, v = 1, E = arguments.length; v < E; v++) {
3535
+ b = arguments[v];
3536
+ for (var _ in b) Object.prototype.hasOwnProperty.call(b, _) && (g[_] = b[_]);
3538
3537
  }
3539
3538
  return g;
3540
3539
  }, n.apply(this, arguments);
@@ -3575,10 +3574,10 @@ function yl() {
3575
3574
  }
3576
3575
  function m(g, b) {
3577
3576
  b === void 0 && (b = !1);
3578
- var y = u.indexOf(g);
3579
- if (!b && y === -1)
3577
+ var v = u.indexOf(g);
3578
+ if (!b && v === -1)
3580
3579
  throw new Error('"' + g + '" is not a supported card type.');
3581
- return y;
3580
+ return v;
3582
3581
  }
3583
3582
  function p(g) {
3584
3583
  var b = [];
@@ -3586,12 +3585,12 @@ function yl() {
3586
3585
  return b;
3587
3586
  if (g.length === 0)
3588
3587
  return h();
3589
- u.forEach(function(C) {
3590
- var V = d(C);
3591
- (0, t.addMatchingCardsToResults)(g, V, b);
3588
+ u.forEach(function(E) {
3589
+ var _ = d(E);
3590
+ (0, t.addMatchingCardsToResults)(g, _, b);
3592
3591
  });
3593
- var y = (0, r.findBestMatch)(b);
3594
- return y ? [y] : b;
3592
+ var v = (0, r.findBestMatch)(b);
3593
+ return v ? [v] : b;
3595
3594
  }
3596
3595
  return p.getTypeInfo = function(g) {
3597
3596
  return (0, a.clone)(d(g));
@@ -3602,16 +3601,16 @@ function yl() {
3602
3601
  var b = m(g.type, !0);
3603
3602
  s[g.type] = g, b === -1 && u.push(g.type);
3604
3603
  }, p.updateCard = function(g, b) {
3605
- var y = s[g] || e[g];
3606
- if (!y)
3604
+ var v = s[g] || e[g];
3605
+ if (!v)
3607
3606
  throw new Error('"'.concat(g, "\" is not a recognized type. Use `addCard` instead.'"));
3608
- if (b.type && y.type !== b.type)
3607
+ if (b.type && v.type !== b.type)
3609
3608
  throw new Error("Cannot overwrite type parameter.");
3610
- var C = (0, a.clone)(y);
3611
- C = n(n({}, C), b), s[C.type] = C;
3609
+ var E = (0, a.clone)(v);
3610
+ E = n(n({}, E), b), s[E.type] = E;
3612
3611
  }, p.changeOrder = function(g, b) {
3613
- var y = m(g);
3614
- u.splice(y, 1), u.splice(b, 0, g);
3612
+ var v = m(g);
3613
+ u.splice(v, 1), u.splice(b, 0, g);
3615
3614
  }, p.resetModifications = function() {
3616
3615
  u = (0, a.clone)(l), s = {};
3617
3616
  }, p.types = o, Ge = p, Ge;
@@ -3765,7 +3764,7 @@ const bt = [
3765
3764
  }, Il = (n) => {
3766
3765
  var e;
3767
3766
  return n ? typeof n.amount != "number" ? (console.error("Transaction amount is missing or invalid for Google Pay"), null) : n.currency ? n.country ? n.merchant_id ? n.checkout_config && !((e = n.checkout_config) == null ? void 0 : e.find(
3768
- ({ is_active: i, type: r }) => i && r === x.GOOGLE_PAY
3767
+ ({ is_active: i, type: r }) => i && r === w.GOOGLE_PAY
3769
3768
  )) ? null : {
3770
3769
  amount: n.amount,
3771
3770
  currency: n.currency,
@@ -3776,7 +3775,7 @@ const bt = [
3776
3775
  }, Ml = (n) => {
3777
3776
  var e, t;
3778
3777
  return n ? typeof n.amount != "number" ? (console.error("Transaction amount is missing or invalid for Apple Pay"), null) : n.currency ? n.country ? n.merchant_id ? n.checkout_config && !((e = n.checkout_config) == null ? void 0 : e.find(
3779
- ({ is_active: r, type: a }) => r && a === x.APPLE_PAY
3778
+ ({ is_active: r, type: a }) => r && a === w.APPLE_PAY
3780
3779
  )) ? null : {
3781
3780
  amount: n.amount,
3782
3781
  currency: n.currency,
@@ -3945,9 +3944,9 @@ function Sl() {
3945
3944
  switch (f) {
3946
3945
  case b:
3947
3946
  return "Fragment";
3948
- case C:
3947
+ case E:
3949
3948
  return "Profiler";
3950
- case y:
3949
+ case v:
3951
3950
  return "StrictMode";
3952
3951
  case A:
3953
3952
  return "Suspense";
@@ -3964,14 +3963,14 @@ function Sl() {
3964
3963
  return "Portal";
3965
3964
  case T:
3966
3965
  return (f.displayName || "Context") + ".Provider";
3967
- case V:
3966
+ case _:
3968
3967
  return (f._context.displayName || "Context") + ".Consumer";
3969
3968
  case I:
3970
3969
  var P = f.render;
3971
3970
  return f = f.displayName, f || (f = P.displayName || P.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
3972
- case E:
3971
+ case C:
3973
3972
  return P = f.displayName || null, P !== null ? P : n(f.type) || "Memo";
3974
- case w:
3973
+ case x:
3975
3974
  P = f._payload, f = f._init;
3976
3975
  try {
3977
3976
  return n(f(P));
@@ -4002,7 +4001,7 @@ function Sl() {
4002
4001
  }
4003
4002
  function i(f) {
4004
4003
  if (f === b) return "<>";
4005
- if (typeof f == "object" && f !== null && f.$$typeof === w)
4004
+ if (typeof f == "object" && f !== null && f.$$typeof === x)
4006
4005
  return "<...>";
4007
4006
  try {
4008
4007
  var P = n(f);
@@ -4128,7 +4127,7 @@ React keys must be passed directly to JSX without using spread:
4128
4127
  function h(f) {
4129
4128
  typeof f == "object" && f !== null && f.$$typeof === p && f._store && (f._store.validated = 1);
4130
4129
  }
4131
- var m = wr, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), T = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Te = Object.prototype.hasOwnProperty, te = Array.isArray, fe = console.createTask ? console.createTask : function() {
4130
+ var m = wr, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), T = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), R = Symbol.for("react.client.reference"), q = m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Te = Object.prototype.hasOwnProperty, te = Array.isArray, fe = console.createTask ? console.createTask : function() {
4132
4131
  return null;
4133
4132
  };
4134
4133
  m = {
@@ -4202,7 +4201,7 @@ class Bl {
4202
4201
  const t = this.config.state.transaction.getState(), i = this.config.state.translate.locale(), r = Ml(t);
4203
4202
  if (!r)
4204
4203
  return !1;
4205
- const a = e ? M(v({}, e), {
4204
+ const a = e ? M(y({}, e), {
4206
4205
  onError: (s) => {
4207
4206
  var l, u;
4208
4207
  if (!this.isInitialized) {
@@ -4218,7 +4217,7 @@ class Bl {
4218
4217
  }
4219
4218
  }) : void 0;
4220
4219
  return yield this.ev.initApple(
4221
- M(v({}, a), {
4220
+ M(y({}, a), {
4222
4221
  transaction: r,
4223
4222
  supportedCardTypes: Pl(jl),
4224
4223
  locale: Dl(i || "en"),
@@ -4236,11 +4235,11 @@ class Bl {
4236
4235
  }
4237
4236
  }
4238
4237
  const zl = [
4239
- { type: x.PAYPAL, is_active: !1, order: 1 },
4240
- { type: x.APPLE_PAY, is_active: !1, order: 2 },
4241
- { type: x.GOOGLE_PAY, is_active: !1, order: 3 },
4242
- { type: x.VENMO, is_active: !1, order: 4 },
4243
- { type: x.CARD, is_active: !0, order: 5 }
4238
+ { type: w.PAYPAL, is_active: !1, order: 1 },
4239
+ { type: w.APPLE_PAY, is_active: !1, order: 2 },
4240
+ { type: w.GOOGLE_PAY, is_active: !1, order: 3 },
4241
+ { type: w.VENMO, is_active: !1, order: 4 },
4242
+ { type: w.CARD, is_active: !0, order: 5 }
4244
4243
  ], _e = {
4245
4244
  open: { y: 0, opacity: 1 },
4246
4245
  close: { y: 100, opacity: 0 },
@@ -4279,7 +4278,7 @@ class ql {
4279
4278
  const t = this.config.state.transaction.getState(), i = this.config.state.translate.locale(), r = Il(t);
4280
4279
  if (!r)
4281
4280
  return !1;
4282
- const a = e ? M(v({}, e), {
4281
+ const a = e ? M(y({}, e), {
4283
4282
  onError: (s) => {
4284
4283
  var o;
4285
4284
  if (!this.isInitialized) {
@@ -4294,7 +4293,7 @@ class ql {
4294
4293
  }
4295
4294
  }) : void 0;
4296
4295
  return yield this.ev.initGoogle(
4297
- M(v({}, a), {
4296
+ M(y({}, a), {
4298
4297
  transaction: r,
4299
4298
  locale: Ol(i || "en"),
4300
4299
  onPaymentAttempt: this.onPaymentAttempt
@@ -4357,7 +4356,7 @@ class Yl {
4357
4356
  } catch (l) {
4358
4357
  return !1;
4359
4358
  }
4360
- const a = e ? M(v({}, e), {
4359
+ const a = e ? M(y({}, e), {
4361
4360
  onError: (l) => {
4362
4361
  var d, h;
4363
4362
  if (this.emitAttemptOnce(), !this.isInitialized) {
@@ -4376,7 +4375,7 @@ class Yl {
4376
4375
  }
4377
4376
  }) : void 0;
4378
4377
  try {
4379
- yield this.paypal.render(this.element, M(v({}, a), {
4378
+ yield this.paypal.render(this.element, M(y({}, a), {
4380
4379
  createBillingAgreement: r,
4381
4380
  onClick: () => {
4382
4381
  this.emitAttemptOnce();
@@ -4407,7 +4406,7 @@ class Yl {
4407
4406
  return this.events[e].addListener(t);
4408
4407
  }
4409
4408
  emitAttemptOnce() {
4410
- this.attemptEmitted || (this.attemptEmitted = !0, this.events.onPaymentAttempt.emit(x.PAYPAL));
4409
+ this.attemptEmitted || (this.attemptEmitted = !0, this.events.onPaymentAttempt.emit(w.PAYPAL));
4411
4410
  }
4412
4411
  isUserCancellationError(e) {
4413
4412
  var r;
@@ -4543,7 +4542,7 @@ class ic {
4543
4542
  // display venmo button
4544
4543
  displayVenmoButton(e) {
4545
4544
  Object.assign(this.venmoButton.style, tc), this.venmoButton.addEventListener("click", () => k(this, null, function* () {
4546
- if (this.events.onPaymentAttempt.emit(x.VENMO), !this.isProcessing) {
4545
+ if (this.events.onPaymentAttempt.emit(w.VENMO), !this.isProcessing) {
4547
4546
  this.isProcessing = !0, this.venmoButton.disabled = !0;
4548
4547
  try {
4549
4548
  const t = yield this.braintree.tokenize();
@@ -4625,19 +4624,19 @@ class rc {
4625
4624
  try {
4626
4625
  if (yield this.applePay.init({
4627
4626
  onError: (i) => {
4628
- this.events.error.emit(i), console.log("Apple Pay error:", i), e == null || e.remove(), this.attempted.delete(x.APPLE_PAY);
4627
+ this.events.error.emit(i), console.log("Apple Pay error:", i), e == null || e.remove(), this.attempted.delete(w.APPLE_PAY);
4629
4628
  },
4630
4629
  onCancel: () => {
4631
- this.events.cancel.emit(), this.attempted.delete(x.APPLE_PAY);
4630
+ this.events.cancel.emit(), this.attempted.delete(w.APPLE_PAY);
4632
4631
  },
4633
4632
  onSuccess: (i) => {
4634
- this.events.success.emit(M(v({}, i), { type: "apple" })), this.attempted.delete(x.APPLE_PAY);
4633
+ this.events.success.emit(M(y({}, i), { type: "apple" })), this.attempted.delete(w.APPLE_PAY);
4635
4634
  }
4636
4635
  })) {
4637
4636
  const i = this.applePay.render();
4638
4637
  e == null || e.appendChild(i);
4639
4638
  const r = () => {
4640
- this.attempted.has(x.APPLE_PAY) || (this.attempted.add(x.APPLE_PAY), this.events.onPaymentAttempt.emit(x.APPLE_PAY));
4639
+ this.attempted.has(w.APPLE_PAY) || (this.attempted.add(w.APPLE_PAY), this.events.onPaymentAttempt.emit(w.APPLE_PAY));
4641
4640
  };
4642
4641
  i.addEventListener("pointerdown", r, { capture: !0 }), i.addEventListener("click", r, { capture: !0 }), i.addEventListener(
4643
4642
  "keydown",
@@ -4664,19 +4663,19 @@ class rc {
4664
4663
  try {
4665
4664
  if (yield this.googlePay.init({
4666
4665
  onError: (i) => {
4667
- this.events.error.emit(i), e == null || e.remove(), this.attempted.delete(x.GOOGLE_PAY);
4666
+ this.events.error.emit(i), e == null || e.remove(), this.attempted.delete(w.GOOGLE_PAY);
4668
4667
  },
4669
4668
  onCancel: () => {
4670
- this.events.cancel.emit(), this.attempted.delete(x.GOOGLE_PAY);
4669
+ this.events.cancel.emit(), this.attempted.delete(w.GOOGLE_PAY);
4671
4670
  },
4672
4671
  onSuccess: (i) => {
4673
- this.events.success.emit(M(v({}, i), { type: "google" })), this.attempted.delete(x.GOOGLE_PAY);
4672
+ this.events.success.emit(M(y({}, i), { type: "google" })), this.attempted.delete(w.GOOGLE_PAY);
4674
4673
  }
4675
4674
  })) {
4676
4675
  const i = this.googlePay.render();
4677
4676
  e == null || e.appendChild(i);
4678
4677
  const r = () => {
4679
- this.attempted.has(x.GOOGLE_PAY) || (this.attempted.add(x.GOOGLE_PAY), this.events.onPaymentAttempt.emit(x.GOOGLE_PAY));
4678
+ this.attempted.has(w.GOOGLE_PAY) || (this.attempted.add(w.GOOGLE_PAY), this.events.onPaymentAttempt.emit(w.GOOGLE_PAY));
4680
4679
  };
4681
4680
  i.addEventListener("pointerdown", r, { capture: !0 }), i.addEventListener("click", r, { capture: !0 }), i.addEventListener(
4682
4681
  "keydown",
@@ -4704,13 +4703,13 @@ class rc {
4704
4703
  const t = this.paypal.render();
4705
4704
  e == null || e.appendChild(t), (yield this.paypal.init({
4706
4705
  onError: (r) => {
4707
- this.events.error.emit(r), this.attempted.delete(x.PAYPAL);
4706
+ this.events.error.emit(r), this.attempted.delete(w.PAYPAL);
4708
4707
  },
4709
4708
  onCancel: () => {
4710
- this.events.cancel.emit(), this.attempted.delete(x.PAYPAL);
4709
+ this.events.cancel.emit(), this.attempted.delete(w.PAYPAL);
4711
4710
  },
4712
4711
  onSuccess: (r) => {
4713
- this.events.success.emit({ paypalId: r, type: "paypal" }), this.attempted.delete(x.PAYPAL);
4712
+ this.events.success.emit({ paypalId: r, type: "paypal" }), this.attempted.delete(w.PAYPAL);
4714
4713
  }
4715
4714
  })) || e == null || e.remove();
4716
4715
  } catch (t) {
@@ -4760,7 +4759,7 @@ class rc {
4760
4759
  return k(this, null, function* () {
4761
4760
  const e = this.config.state.transaction.getState(), t = Jl(zl, (e == null ? void 0 : e.checkout_config) || [], (s, o) => s.type === o.type), i = this.config.state.checkout.getState();
4762
4761
  let r = t.filter(({ is_active: s }) => s);
4763
- (i == null ? void 0 : i.variant) === "default" && (r = r.filter(({ type: s }) => s !== x.CARD));
4762
+ (i == null ? void 0 : i.variant) === "default" && (r = r.filter(({ type: s }) => s !== w.CARD));
4764
4763
  const a = this.initializeButtonInstances(r);
4765
4764
  Promise.all(a).then(() => {
4766
4765
  this.handleOnFormLoaded();
@@ -4769,14 +4768,14 @@ class rc {
4769
4768
  }
4770
4769
  // initialize button instances
4771
4770
  initializeButtonInstances(e) {
4772
- const t = e.map(({ type: h }) => h), i = t.includes(x.APPLE_PAY), r = t.includes(x.GOOGLE_PAY), a = t.includes(x.PAYPAL), s = t.includes(x.VENMO), o = t.includes(x.CARD);
4771
+ const t = e.map(({ type: h }) => h), i = t.includes(w.APPLE_PAY), r = t.includes(w.GOOGLE_PAY), a = t.includes(w.PAYPAL), s = t.includes(w.VENMO), o = t.includes(w.CARD);
4773
4772
  i && !this.applePay && (this.applePay = new Bl(this.config)), r && !this.googlePay && (this.googlePay = new ql(this.config)), a && !this.paypal && (this.paypal = new Yl(this.config), this.paypal.addEventListener("onPaymentAttempt", (h) => this.events.onPaymentAttempt.emit(h))), s && !this.braintree && (this.braintree = new ic(this.config), this.braintree.addEventListener("onPaymentAttempt", (h) => this.events.onPaymentAttempt.emit(h))), o && !this.card && (this.card = new Zl(this.config), this.card.addEventListener(() => {
4774
4773
  this.events.open.emit();
4775
4774
  }));
4776
4775
  const l = e.filter(({ type: h }) => {
4777
- var b, y, C, V, T, I;
4778
- const m = navigator, p = (C = (y = (b = m == null ? void 0 : m.userAgentData) == null ? void 0 : b.platform) == null ? void 0 : y.toLowerCase()) == null ? void 0 : C.includes("android"), g = (I = (T = (V = m == null ? void 0 : m.userAgentData) == null ? void 0 : V.platform) == null ? void 0 : T.toLowerCase()) == null ? void 0 : I.includes("windows");
4779
- return !(h === x.APPLE_PAY && (p || g));
4776
+ var b, v, E, _, T, I;
4777
+ const m = navigator, p = (E = (v = (b = m == null ? void 0 : m.userAgentData) == null ? void 0 : b.platform) == null ? void 0 : v.toLowerCase()) == null ? void 0 : E.includes("android"), g = (I = (T = (_ = m == null ? void 0 : m.userAgentData) == null ? void 0 : _.platform) == null ? void 0 : T.toLowerCase()) == null ? void 0 : I.includes("windows");
4778
+ return !(h === w.APPLE_PAY && (p || g));
4780
4779
  }).sort((h, m) => h.order - m.order), u = /* @__PURE__ */ new Map();
4781
4780
  for (const { type: h } of l) {
4782
4781
  const m = document.createElement("div");
@@ -4784,15 +4783,15 @@ class rc {
4784
4783
  }
4785
4784
  return l.map(({ type: h }) => {
4786
4785
  const m = u.get(h);
4787
- if (h === x.APPLE_PAY && this.applePay)
4786
+ if (h === w.APPLE_PAY && this.applePay)
4788
4787
  return this.initApple(m);
4789
- if (h === x.GOOGLE_PAY && this.googlePay)
4788
+ if (h === w.GOOGLE_PAY && this.googlePay)
4790
4789
  return this.initGoogle(m);
4791
- if (h === x.PAYPAL && this.paypal)
4790
+ if (h === w.PAYPAL && this.paypal)
4792
4791
  return this.initPayPal(m);
4793
- if (h === x.VENMO && this.braintree)
4792
+ if (h === w.VENMO && this.braintree)
4794
4793
  return this.initBraintreeVenmo(m);
4795
- if (h === x.CARD && this.card)
4794
+ if (h === w.CARD && this.card)
4796
4795
  return this.initCard(m);
4797
4796
  throw new Error("Unknown button type");
4798
4797
  });
@@ -4944,7 +4943,7 @@ class Ac {
4944
4943
  var r, a, s, o, l, u, d, h, m;
4945
4944
  const i = e.messages();
4946
4945
  if (this.element = document.createElement("div"), this.element.classList.add($.wrapper), this.inputContainer.classList.add($.inputContainer), (r = t == null ? void 0 : t.container) != null && r.className && F(this.inputContainer, t.container.className), (a = t == null ? void 0 : t.container) != null && a.styles && Object.assign(this.inputContainer.style, t.container.styles), this.input.setAttribute("id", this.id), this.input.setAttribute("autocomplete", "cc-name"), this.input.setAttribute("placeholder", i.card.name.placeholder), this.input.classList.add($.input), (s = t == null ? void 0 : t.field) != null && s.className && F(this.input, t.field.className), (o = t == null ? void 0 : t.field) != null && o.styles && Object.assign(this.input.style, t.field.styles), (l = t == null ? void 0 : t.placeholder) != null && l.styles && Object.keys(t.placeholder.styles).length) {
4947
- const p = (b) => b.replace(/[A-Z]/g, (y) => "-" + y.toLowerCase()), g = Object.entries(t.placeholder.styles).map(([b, y]) => `${p(b)}:${y};`).join("");
4946
+ const p = (b) => b.replace(/[A-Z]/g, (v) => "-" + v.toLowerCase()), g = Object.entries(t.placeholder.styles).map(([b, v]) => `${p(b)}:${v};`).join("");
4948
4947
  this.placeholderStyle.textContent = `#${this.id}::placeholder{${g}}`, this.element.appendChild(this.placeholderStyle);
4949
4948
  }
4950
4949
  this.endContent.classList.add($.hidden), this.endContent.appendChild(this.warning.render()), this.inputContainer.append(this.input, this.endContent), this.label.setAttribute("for", this.id), this.label.classList.add($.label), (u = t == null ? void 0 : t.label) != null && u.className && F(this.label, t.label.className), (d = t == null ? void 0 : t.label) != null && d.styles && Object.assign(this.label.style, t.label.styles), this.labelText.textContent = i.card.name.label, this.labelError.textContent = i.card.required, this.labelError.classList.add($.labelError, $.hidden), (h = t == null ? void 0 : t.error) != null && h.className && F(this.labelError, t.error.className), (m = t == null ? void 0 : t.error) != null && m.styles && Object.assign(this.labelError.style, t.error.styles), this.label.append(this.labelText, this.labelError), this.element.append(this.label, this.inputContainer), this.input.addEventListener("input", () => this.handleChange(this.input.value)), this.input.addEventListener("paste", () => this.handleChange(this.input.value)), this.input.addEventListener("blur", () => this.validate(this.input.value)), e.subscribe(({ messages: p }) => {
@@ -5150,7 +5149,7 @@ class zc {
5150
5149
  this.translate = e;
5151
5150
  const i = e.messages();
5152
5151
  if (this.element = document.createElement("div"), this.element.classList.add(j.wrapper), this.inputContainer.classList.add(j.inputContainer), (r = t == null ? void 0 : t.container) != null && r.className && F(this.inputContainer, t.container.className), (a = t == null ? void 0 : t.container) != null && a.styles && Object.assign(this.inputContainer.style, t.container.styles), this.input.setAttribute("id", this.id), this.input.setAttribute("autocomplete", "cc-number"), this.input.setAttribute("placeholder", "1234 1234 1234 1234"), this.input.setAttribute("inputmode", "numeric"), this.input.setAttribute("pattern", "[0-9]*"), this.input.setAttribute("enterkeyhint", "done"), this.input.classList.add(j.input), (s = t == null ? void 0 : t.field) != null && s.className && F(this.input, t.field.className), (o = t == null ? void 0 : t.field) != null && o.styles && Object.assign(this.input.style, t.field.styles), (l = t == null ? void 0 : t.placeholder) != null && l.styles && Object.keys(t.placeholder.styles).length) {
5153
- const p = (y) => y.replace(/[A-Z]/g, (C) => "-" + C.toLowerCase()), g = Object.entries(t.placeholder.styles).map(([y, C]) => `${p(y)}:${C} !important;`).join(""), b = `#${this.id}`;
5152
+ const p = (v) => v.replace(/[A-Z]/g, (E) => "-" + E.toLowerCase()), g = Object.entries(t.placeholder.styles).map(([v, E]) => `${p(v)}:${E} !important;`).join(""), b = `#${this.id}`;
5154
5153
  this.placeholderStyle.textContent = `${b}::placeholder{${g}}
5155
5154
  ${b}::-webkit-input-placeholder{${g}}
5156
5155
  ${b}::-moz-placeholder{${g}}
@@ -5165,9 +5164,9 @@ ${b}::-ms-input-placeholder{${g}}
5165
5164
  const b = this.input.value.replace(/\D/g, "");
5166
5165
  this.handleChange(b);
5167
5166
  }), this.input.addEventListener("paste", (p) => {
5168
- var y;
5167
+ var v;
5169
5168
  p.preventDefault();
5170
- const b = (((y = p.clipboardData) == null ? void 0 : y.getData("text")) || "").replace(/\D/g, "");
5169
+ const b = (((v = p.clipboardData) == null ? void 0 : v.getData("text")) || "").replace(/\D/g, "");
5171
5170
  this.handleChange(b);
5172
5171
  }), this.input.addEventListener("blur", () => this.validate(this.input.value)), this.translate.subscribe(({ messages: p }) => {
5173
5172
  this.labelText.textContent = p.card.number.label, this.labelError.textContent = p.card.required, this.render();
@@ -5316,14 +5315,14 @@ class ed {
5316
5315
  expiryChange: new K(),
5317
5316
  cvcChange: new K()
5318
5317
  });
5319
- var s, o, l, u, d, h, m, p, g, b, y, C, V, T, I, A, D;
5318
+ var s, o, l, u, d, h, m, p, g, b, v, E, _, T, I, A, D;
5320
5319
  this.translate = e;
5321
5320
  const i = e.messages();
5322
5321
  this.element = document.createElement("div"), this.element.classList.add(L.securityContent), this.expiryInputContainer.classList.add(L.inputContainer), (s = t == null ? void 0 : t.container) != null && s.className && F(this.expiryInputContainer, t.container.className), (o = t == null ? void 0 : t.container) != null && o.styles && Object.assign(this.expiryInputContainer.style, t.container.styles), this.expiryInput.setAttribute("id", this.expiryId), this.expiryInput.setAttribute("autocomplete", "cc-exp"), this.expiryInput.setAttribute("placeholder", i.card.expiry.placeholder), this.expiryInput.setAttribute("inputmode", "numeric"), this.expiryInput.setAttribute("pattern", "[0-9]*"), this.expiryInput.setAttribute("enterkeyhint", "next"), this.expiryInput.classList.add(L.input), (l = t == null ? void 0 : t.field) != null && l.className && F(this.expiryInput, t.field.className), (u = t == null ? void 0 : t.field) != null && u.styles && Object.assign(this.expiryInput.style, t.field.styles), this.expiryEndContent.classList.add(L.endContent), this.expiryEndContent.appendChild(this.expiryWarning.render()), this.expiryInputContainer.append(this.expiryInput, this.expiryEndContent), this.expiryLabel.setAttribute("for", this.expiryId), this.expiryLabel.classList.add(L.label), (d = t == null ? void 0 : t.label) != null && d.className && F(this.expiryLabel, t.label.className), (h = t == null ? void 0 : t.label) != null && h.styles && Object.assign(this.expiryLabel.style, t.label.styles), this.expiryLabelText.contentEditable = "false", this.expiryLabelText.textContent = i.card.expiry.label, this.expiryLabelError.textContent = i.card.required, this.expiryLabelError.classList.add(L.labelError, L.hidden), this.expiryLabel.append(this.expiryLabelText, this.expiryLabelError), this.expiryError.classList.add(L.error, L.hidden), (m = t == null ? void 0 : t.error) != null && m.className && F(this.expiryError, t.error.className), (p = t == null ? void 0 : t.error) != null && p.styles && Object.assign(this.expiryError.style, t.error.styles);
5323
5322
  const r = document.createElement("div");
5324
- if (r.appendChild(this.expiryError), this.cvcInputContainer.classList.add(L.inputContainer), (g = t == null ? void 0 : t.container) != null && g.className && F(this.cvcInputContainer, t.container.className), (b = t == null ? void 0 : t.container) != null && b.styles && Object.assign(this.cvcInputContainer.style, t.container.styles), this.cvcInput.setAttribute("id", this.cvcId), this.cvcInput.setAttribute("autocomplete", "cc-csc"), this.cvcInput.setAttribute("placeholder", i.card.cvc.placeholder), this.cvcInput.setAttribute("inputmode", "numeric"), this.cvcInput.setAttribute("pattern", "[0-9]*"), this.cvcInput.setAttribute("enterkeyhint", "done"), this.cvcInput.classList.add(L.input), (y = t == null ? void 0 : t.field) != null && y.className && F(this.cvcInput, t.field.className), (C = t == null ? void 0 : t.field) != null && C.styles && Object.assign(this.cvcInput.style, t.field.styles), (V = t == null ? void 0 : t.placeholder) != null && V.styles && Object.keys(t.placeholder.styles).length) {
5325
- const E = (O) => O.replace(/[A-Z]/g, (R) => "-" + R.toLowerCase()), w = Object.entries(t.placeholder.styles).map(([O, R]) => `${E(O)}:${R};`).join("");
5326
- this.placeholderStyle.textContent = `#${this.expiryId}::placeholder{${w}}#${this.cvcId}::placeholder{${w}}`, this.element.appendChild(this.placeholderStyle);
5323
+ if (r.appendChild(this.expiryError), this.cvcInputContainer.classList.add(L.inputContainer), (g = t == null ? void 0 : t.container) != null && g.className && F(this.cvcInputContainer, t.container.className), (b = t == null ? void 0 : t.container) != null && b.styles && Object.assign(this.cvcInputContainer.style, t.container.styles), this.cvcInput.setAttribute("id", this.cvcId), this.cvcInput.setAttribute("autocomplete", "cc-csc"), this.cvcInput.setAttribute("placeholder", i.card.cvc.placeholder), this.cvcInput.setAttribute("inputmode", "numeric"), this.cvcInput.setAttribute("pattern", "[0-9]*"), this.cvcInput.setAttribute("enterkeyhint", "done"), this.cvcInput.classList.add(L.input), (v = t == null ? void 0 : t.field) != null && v.className && F(this.cvcInput, t.field.className), (E = t == null ? void 0 : t.field) != null && E.styles && Object.assign(this.cvcInput.style, t.field.styles), (_ = t == null ? void 0 : t.placeholder) != null && _.styles && Object.keys(t.placeholder.styles).length) {
5324
+ const C = (O) => O.replace(/[A-Z]/g, (R) => "-" + R.toLowerCase()), x = Object.entries(t.placeholder.styles).map(([O, R]) => `${C(O)}:${R};`).join("");
5325
+ this.placeholderStyle.textContent = `#${this.expiryId}::placeholder{${x}}#${this.cvcId}::placeholder{${x}}`, this.element.appendChild(this.placeholderStyle);
5327
5326
  }
5328
5327
  this.cvcEndContent.classList.add(L.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(L.label), (T = t == null ? void 0 : t.label) != null && T.className && F(this.cvcLabel, t.label.className), (I = t == null ? void 0 : t.label) != null && I.styles && Object.assign(this.cvcLabel.style, t.label.styles), this.cvcLabelText.textContent = i.card.cvc.label, this.cvcLabelError.textContent = i.card.required, this.cvcLabelError.classList.add(L.labelError, L.hidden), (A = t == null ? void 0 : t.error) != null && A.className && F(this.cvcLabel, t.error.className), (D = t == null ? void 0 : t.error) != null && D.styles && Object.assign(this.cvcLabelError.style, t.error.styles), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(L.error, L.hidden);
5329
5328
  const a = document.createElement("div");
@@ -5334,30 +5333,30 @@ class ed {
5334
5333
  this.cvcInputContainer,
5335
5334
  r,
5336
5335
  a
5337
- ), this.expiryInput.addEventListener("input", (E) => {
5338
- E.preventDefault();
5336
+ ), this.expiryInput.addEventListener("input", (C) => {
5337
+ C.preventDefault();
5339
5338
  const O = this.expiryInput.value.replace(/\D/g, "");
5340
5339
  this.handleExpiryChange(O);
5341
- }), this.expiryInput.addEventListener("paste", (E) => {
5340
+ }), this.expiryInput.addEventListener("paste", (C) => {
5342
5341
  var R;
5343
- E.preventDefault();
5344
- const O = (((R = E.clipboardData) == null ? void 0 : R.getData("text")) || "").replace(/\D/g, "");
5342
+ C.preventDefault();
5343
+ const O = (((R = C.clipboardData) == null ? void 0 : R.getData("text")) || "").replace(/\D/g, "");
5345
5344
  this.handleExpiryChange(O);
5346
- }), this.expiryInput.addEventListener("keydown", (E) => {
5347
- this.isDisabled || ["Backspace", "Delete", "Tab", "ArrowLeft", "ArrowRight", "Home", "End"].includes(E.key) || E.ctrlKey || E.metaKey || /^\d$/.test(E.key) || E.preventDefault();
5348
- }), this.expiryInput.addEventListener("blur", () => this.validateExpiry(this.expiryInput.value)), this.cvcInput.addEventListener("input", (E) => {
5349
- E.preventDefault();
5345
+ }), this.expiryInput.addEventListener("keydown", (C) => {
5346
+ this.isDisabled || ["Backspace", "Delete", "Tab", "ArrowLeft", "ArrowRight", "Home", "End"].includes(C.key) || C.ctrlKey || C.metaKey || /^\d$/.test(C.key) || C.preventDefault();
5347
+ }), this.expiryInput.addEventListener("blur", () => this.validateExpiry(this.expiryInput.value)), this.cvcInput.addEventListener("input", (C) => {
5348
+ C.preventDefault();
5350
5349
  const O = this.cvcInput.value.replace(/\D/g, "");
5351
5350
  this.handleCvcChange(O);
5352
- }), this.cvcInput.addEventListener("paste", (E) => {
5351
+ }), this.cvcInput.addEventListener("paste", (C) => {
5353
5352
  var R;
5354
- E.preventDefault();
5355
- const O = (((R = E.clipboardData) == null ? void 0 : R.getData("text")) || "").replace(/\D/g, "");
5353
+ C.preventDefault();
5354
+ const O = (((R = C.clipboardData) == null ? void 0 : R.getData("text")) || "").replace(/\D/g, "");
5356
5355
  this.handleCvcChange(O);
5357
- }), this.cvcInput.addEventListener("keydown", (E) => {
5358
- this.isDisabled || ["Backspace", "Delete", "Tab", "ArrowLeft", "ArrowRight", "Home", "End"].includes(E.key) || E.ctrlKey || E.metaKey || /^\d$/.test(E.key) || E.preventDefault();
5359
- }), this.cvcInput.addEventListener("blur", () => this.validateCvc(this.cvcInput.value)), this.translate.subscribe(({ messages: E }) => {
5360
- this.cvcInput.setAttribute("placeholder", E.card.cvc.placeholder), this.expiryInput.setAttribute("placeholder", E.card.expiry.placeholder), this.expiryLabelText.textContent = E.card.expiry.label, this.cvcLabelText.textContent = E.card.cvc.label, this.expiryLabelError.textContent = E.card.required, this.cvcLabelError.textContent = E.card.required, this.render();
5356
+ }), this.cvcInput.addEventListener("keydown", (C) => {
5357
+ this.isDisabled || ["Backspace", "Delete", "Tab", "ArrowLeft", "ArrowRight", "Home", "End"].includes(C.key) || C.ctrlKey || C.metaKey || /^\d$/.test(C.key) || C.preventDefault();
5358
+ }), this.cvcInput.addEventListener("blur", () => this.validateCvc(this.cvcInput.value)), this.translate.subscribe(({ messages: C }) => {
5359
+ this.cvcInput.setAttribute("placeholder", C.card.cvc.placeholder), this.expiryInput.setAttribute("placeholder", C.card.expiry.placeholder), this.expiryLabelText.textContent = C.card.expiry.label, this.cvcLabelText.textContent = C.card.cvc.label, this.expiryLabelError.textContent = C.card.required, this.cvcLabelError.textContent = C.card.required, this.render();
5361
5360
  });
5362
5361
  }
5363
5362
  cvcValidator(e) {
@@ -5513,7 +5512,7 @@ class td {
5513
5512
  var p;
5514
5513
  l.preventDefault();
5515
5514
  const { cvc: u, expiry: d } = this.cardSecurity.value(), { value: h, cardType: m } = this.number.value();
5516
- this.touchSubmit(), this.validate() && ((p = this.onPaymentAttempt) == null || p.call(this, { paymentMethod: x.CARD }), this.events.submit.emit({
5515
+ this.touchSubmit(), this.validate() && ((p = this.onPaymentAttempt) == null || p.call(this, { paymentMethod: w.CARD }), this.events.submit.emit({
5517
5516
  number: h,
5518
5517
  expiry: d,
5519
5518
  cvc: u,
@@ -5765,7 +5764,7 @@ class ld {
5765
5764
  cardBrand: e.cardBrand || "",
5766
5765
  number: s,
5767
5766
  cvc: o,
5768
- type: x.CARD,
5767
+ type: w.CARD,
5769
5768
  metadata: {
5770
5769
  name: e.name,
5771
5770
  userAgent: navigator == null ? void 0 : navigator.userAgent
@@ -5796,7 +5795,7 @@ class ld {
5796
5795
  yield this.config.service.ev.initThreeDs({
5797
5796
  threeDsId: r.three_ds_session_id,
5798
5797
  onSuccess: () => {
5799
- this.setLoading(!1), this.handleSuccess(M(v({}, e), { threeDsSessionId: r == null ? void 0 : r.three_ds_session_id }));
5798
+ this.setLoading(!1), this.handleSuccess(M(y({}, e), { threeDsSessionId: r == null ? void 0 : r.three_ds_session_id }));
5800
5799
  },
5801
5800
  onError: () => {
5802
5801
  this.handleError(r == null ? void 0 : r.status_reason);
@@ -5927,13 +5926,13 @@ const dd = {
5927
5926
  };
5928
5927
  class ud extends Ct {
5929
5928
  constructor(e) {
5930
- super(v(v({}, dd), e));
5929
+ super(y(y({}, dd), e));
5931
5930
  }
5932
5931
  }
5933
5932
  const hd = {};
5934
5933
  class pd extends Ct {
5935
5934
  constructor(e) {
5936
- super(v(v({}, hd), e));
5935
+ super(y(y({}, hd), e));
5937
5936
  }
5938
5937
  }
5939
5938
  class md extends Ct {
@@ -7550,20 +7549,20 @@ const fd = {
7550
7549
  if (!n) return Jt();
7551
7550
  const t = Zt[n] || Jt();
7552
7551
  return {
7553
- card: v(v({}, t.card), e.card && {
7552
+ card: y(y({}, t.card), e.card && {
7554
7553
  required: e.card.required || t.card.required,
7555
- number: e.card.number ? M(v(v({}, t.card.number), e.card.number), {
7556
- error: e.card.number.error ? v(v({}, t.card.number.error), e.card.number.error) : t.card.number.error
7554
+ number: e.card.number ? M(y(y({}, t.card.number), e.card.number), {
7555
+ error: e.card.number.error ? y(y({}, t.card.number.error), e.card.number.error) : t.card.number.error
7557
7556
  }) : t.card.number,
7558
- expiry: e.card.expiry ? M(v(v({}, t.card.expiry), e.card.expiry), {
7559
- error: e.card.expiry.error ? v(v({}, t.card.expiry.error), e.card.expiry.error) : t.card.expiry.error
7557
+ expiry: e.card.expiry ? M(y(y({}, t.card.expiry), e.card.expiry), {
7558
+ error: e.card.expiry.error ? y(y({}, t.card.expiry.error), e.card.expiry.error) : t.card.expiry.error
7560
7559
  }) : t.card.expiry,
7561
- cvc: e.card.cvc ? M(v(v({}, t.card.cvc), e.card.cvc), {
7562
- error: e.card.cvc.error ? v(v({}, t.card.cvc.error), e.card.cvc.error) : t.card.cvc.error
7560
+ cvc: e.card.cvc ? M(y(y({}, t.card.cvc), e.card.cvc), {
7561
+ error: e.card.cvc.error ? y(y({}, t.card.cvc.error), e.card.cvc.error) : t.card.cvc.error
7563
7562
  }) : t.card.cvc,
7564
- name: e.card.name ? v(v({}, t.card.name), e.card.name) : t.card.name,
7565
- pay: e.card.pay ? v(v({}, t.card.pay), e.card.pay) : t.card.pay,
7566
- compact: e.card.compact ? v(v({}, t.card.compact), e.card.compact) : t.card.compact
7563
+ name: e.card.name ? y(y({}, t.card.name), e.card.name) : t.card.name,
7564
+ pay: e.card.pay ? y(y({}, t.card.pay), e.card.pay) : t.card.pay,
7565
+ compact: e.card.compact ? y(y({}, t.card.compact), e.card.compact) : t.card.compact
7567
7566
  }),
7568
7567
  status: {
7569
7568
  error: ((r = e == null ? void 0 : e.status) == null ? void 0 : r.error) || t.status.error,
@@ -7636,7 +7635,7 @@ class Qd {
7636
7635
  if (!e.isConnected)
7637
7636
  throw new Error("PayPal parent element must be connected to DOM before render()");
7638
7637
  if (this.paypal) {
7639
- const a = v(v({}, Xd), (t == null ? void 0 : t.style) || {}), s = M(v({
7638
+ const a = y(y({}, Xd), (t == null ? void 0 : t.style) || {}), s = M(y({
7640
7639
  fundingSource: "paypal"
7641
7640
  }, t), {
7642
7641
  style: a
@@ -7683,7 +7682,7 @@ class eu {
7683
7682
  throw new Error("Braintree client must be initialized before creating Venmo instance");
7684
7683
  try {
7685
7684
  const i = (yield import("./venmo-Dybrh4_x.js").then((r) => r.v)).default;
7686
- return this.venmoInstance = yield i.create(v({
7685
+ return this.venmoInstance = yield i.create(y({
7687
7686
  client: this.client,
7688
7687
  allowDesktop: !0,
7689
7688
  mobileWebFallBack: !0,
@@ -7715,7 +7714,7 @@ class eu {
7715
7714
  if (i)
7716
7715
  t(i);
7717
7716
  else {
7718
- const a = M(v({}, r), {
7717
+ const a = M(y({}, r), {
7719
7718
  device_data: this.deviceData || void 0
7720
7719
  }), s = r, o = (s == null ? void 0 : s.billingAddress) || (s == null ? void 0 : s.billing_address);
7721
7720
  if (o) {
@@ -7759,6 +7758,6 @@ class su {
7759
7758
  export {
7760
7759
  su as Core,
7761
7760
  iu as PayNextCheckout,
7762
- x as PaymentMethod
7761
+ w as PaymentMethod
7763
7762
  };
7764
7763
  //# sourceMappingURL=index.es.js.map