@paynext/sdk 0.0.18 → 0.0.20

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
@@ -1,5 +1,5 @@
1
1
  import * as Pe from "react";
2
- import ut, { useState as S, useCallback as D, createContext as ne, useContext as _, useMemo as he, useEffect as te, useRef as ue, useLayoutEffect as yo, useId as _e, useInsertionEffect as bs, Children as vo, isValidElement as bo, forwardRef as xo, Fragment as xs, createElement as Co, Component as To, useReducer as ko, StrictMode as wo } from "react";
2
+ import ut, { useState as S, useCallback as D, createContext as ne, useContext as _, useMemo as he, useEffect as te, useRef as ue, useLayoutEffect as vo, useId as _e, useInsertionEffect as bs, Children as bo, isValidElement as xo, forwardRef as Co, Fragment as xs, createElement as To, Component as ko, useReducer as wo, StrictMode as Po } from "react";
3
3
  var jt = { exports: {} }, et = {};
4
4
  /**
5
5
  * @license React
@@ -11,7 +11,7 @@ var jt = { exports: {} }, et = {};
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  var Dr;
14
- function Po() {
14
+ function Ao() {
15
15
  if (Dr) return et;
16
16
  Dr = 1;
17
17
  var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
@@ -43,7 +43,7 @@ var tt = {};
43
43
  * LICENSE file in the root directory of this source tree.
44
44
  */
45
45
  var Nr;
46
- function Ao() {
46
+ function So() {
47
47
  return Nr || (Nr = 1, process.env.NODE_ENV !== "production" && function() {
48
48
  function e(x) {
49
49
  if (x == null) return null;
@@ -198,8 +198,8 @@ function Ao() {
198
198
  else d(Z);
199
199
  if (re.call(j, "key")) {
200
200
  Z = e(x);
201
- var Be = Object.keys(j).filter(function(go) {
202
- return go !== "key";
201
+ var Be = Object.keys(j).filter(function(yo) {
202
+ return yo !== "key";
203
203
  });
204
204
  H = 0 < Be.length ? "{key: someKey, " + Be.join(": ..., ") + ": ...}" : "{key: someKey}", U[Z + H] || (Be = 0 < Be.length ? "{" + Be.join(": ..., ") + ": ...}" : "{}", console.error(
205
205
  `A props object containing a "key" prop is being spread into JSX:
@@ -276,13 +276,13 @@ React keys must be passed directly to JSX without using spread:
276
276
  }()), tt;
277
277
  }
278
278
  var Or;
279
- function So() {
280
- return Or || (Or = 1, process.env.NODE_ENV === "production" ? jt.exports = Po() : jt.exports = Ao()), jt.exports;
279
+ function Eo() {
280
+ return Or || (Or = 1, process.env.NODE_ENV === "production" ? jt.exports = Ao() : jt.exports = So()), jt.exports;
281
281
  }
282
- var h = So();
282
+ var h = Eo();
283
283
  const Xn = {
284
284
  apiBase: "https://dvfoid19j3afz.cloudfront.net/v1"
285
- }, Eo = [
285
+ }, jo = [
286
286
  {
287
287
  type: "paypal",
288
288
  order: 1,
@@ -305,7 +305,7 @@ const Xn = {
305
305
  }
306
306
  ];
307
307
  var Cs = /* @__PURE__ */ ((e) => (e.Card = "CARD", e))(Cs || {});
308
- const jo = async (e) => {
308
+ const Vo = async (e) => {
309
309
  const t = `${Xn.apiBase}/payments/create`, n = new Headers();
310
310
  return n.append("Content-Type", "application/json"), await (await fetch(t, {
311
311
  method: "POST",
@@ -347,22 +347,22 @@ const jo = async (e) => {
347
347
  client_session: e.clientSession
348
348
  })
349
349
  })).json();
350
- }, Vo = async (e) => {
350
+ }, Ro = async (e) => {
351
351
  const t = `${Xn.apiBase}/payments/create/billing/agreement`, n = new Headers();
352
352
  return n.append("Content-Type", "application/json"), await (await fetch(t, {
353
353
  method: "POST",
354
354
  headers: n,
355
355
  body: JSON.stringify({ client_session: e })
356
356
  })).json();
357
- }, Ro = async (e) => {
357
+ }, Mo = async (e) => {
358
358
  const t = `${Xn.apiBase}/payments/config?client_session_id=${e}`, r = await (await fetch(t)).json();
359
- return r.checkout_config || (r.checkout_config = Eo), r;
360
- }, Mo = ({ onCheckoutComplete: e, onCheckoutFail: t }) => {
359
+ return r.checkout_config || (r.checkout_config = jo), r;
360
+ }, Io = ({ onCheckoutComplete: e, onCheckoutFail: t }) => {
361
361
  const [n, r] = S(!1), [i, s] = S(!1), [a, o] = S(!1), l = D(
362
362
  async (d) => {
363
363
  try {
364
364
  s(!1), o(!1), r(!0);
365
- const { error: p } = await jo(d);
365
+ const { error: p } = await Vo(d);
366
366
  if (!p)
367
367
  s(!0), e?.();
368
368
  else {
@@ -389,7 +389,7 @@ const jo = async (e) => {
389
389
  isCheckoutSuccess: i,
390
390
  isCheckoutFail: a
391
391
  };
392
- }, Xt = typeof navigator < "u", Io = Xt && /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Lo = {
392
+ }, Xt = typeof navigator < "u", Ts = Xt && /^((?!chrome|android).)*safari/i.test(navigator.userAgent), Lo = {
393
393
  card: {
394
394
  title: "طريقة الدفع",
395
395
  number: {
@@ -2243,11 +2243,11 @@ const jo = async (e) => {
2243
2243
  }
2244
2244
  };
2245
2245
  return /* @__PURE__ */ h.jsx(Jt.Provider, { value: { messages: i, locale: n }, children: e });
2246
- }, xl = null, Ts = ne(xl), Cl = () => _(Ts), Tl = {
2246
+ }, xl = null, ks = ne(xl), Cl = () => _(ks), Tl = {
2247
2247
  appId: "",
2248
2248
  teamId: "",
2249
2249
  ev: null
2250
- }, ks = ne(Tl), ws = () => _(ks), Pn = ne(null);
2250
+ }, ws = ne(Tl), Ps = () => _(ws), Pn = ne(null);
2251
2251
  function kl() {
2252
2252
  if (typeof window > "u")
2253
2253
  return null;
@@ -2349,7 +2349,7 @@ async function Vl() {
2349
2349
  document.head.appendChild(n);
2350
2350
  }), Vt);
2351
2351
  }
2352
- async function Ps() {
2352
+ async function As() {
2353
2353
  if (window.Evervault)
2354
2354
  return window.Evervault;
2355
2355
  try {
@@ -2359,11 +2359,11 @@ async function Ps() {
2359
2359
  }
2360
2360
  }
2361
2361
  async function Rl(e, t, n) {
2362
- const r = await Ps();
2362
+ const r = await As();
2363
2363
  return new r(e, t, n);
2364
2364
  }
2365
2365
  Promise.resolve().then(() => {
2366
- Ps();
2366
+ As();
2367
2367
  });
2368
2368
  const Ml = ({ children: e, evConfig: t }) => {
2369
2369
  const [n, r] = S(null), i = he(
@@ -2375,26 +2375,26 @@ const Ml = ({ children: e, evConfig: t }) => {
2375
2375
  );
2376
2376
  return te(() => {
2377
2377
  t && Rl(t.teamId, t.appId).then((s) => r(s)).catch(console.error);
2378
- }, [t]), !t || !i ? null : /* @__PURE__ */ h.jsx(jl, { ...t, children: /* @__PURE__ */ h.jsx(ks.Provider, { value: i, children: e }) });
2378
+ }, [t]), !t || !i ? null : /* @__PURE__ */ h.jsx(jl, { ...t, children: /* @__PURE__ */ h.jsx(ws.Provider, { value: i, children: e }) });
2379
2379
  }, Il = "_googlePay_1a960_1", Ll = "_hidden_1a960_17", _r = {
2380
2380
  googlePay: Il,
2381
2381
  hidden: Ll
2382
2382
  };
2383
- function As(e) {
2383
+ function Ss(e) {
2384
2384
  var t, n, r = "";
2385
2385
  if (typeof e == "string" || typeof e == "number") r += e;
2386
2386
  else if (typeof e == "object") if (Array.isArray(e)) {
2387
2387
  var i = e.length;
2388
- for (t = 0; t < i; t++) e[t] && (n = As(e[t])) && (r && (r += " "), r += n);
2388
+ for (t = 0; t < i; t++) e[t] && (n = Ss(e[t])) && (r && (r += " "), r += n);
2389
2389
  } else for (n in e) e[n] && (r && (r += " "), r += n);
2390
2390
  return r;
2391
2391
  }
2392
2392
  function ve() {
2393
- for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = As(e)) && (r && (r += " "), r += t);
2393
+ for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Ss(e)) && (r && (r += " "), r += t);
2394
2394
  return r;
2395
2395
  }
2396
2396
  const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onError: n, onSuccess: r, onReady: i, transaction: s, locale: a }) => {
2397
- const { ev: o } = ws(), [l, u] = S(!1), [c, d] = S(null);
2397
+ const { ev: o } = Ps(), [l, u] = S(!1), [c, d] = S(null);
2398
2398
  return te(() => {
2399
2399
  c && (t && c.on("cancel", t), n && c.on("error", n), r && c.on("success", r));
2400
2400
  }, [c, t, n, r]), te(() => {
@@ -2429,8 +2429,8 @@ const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onErr
2429
2429
  }, Nl = "_applePay_gn91n_1", Ol = "_hidden_gn91n_21", Fr = {
2430
2430
  applePay: Nl,
2431
2431
  hidden: Ol
2432
- }, _l = () => typeof window < "u" && typeof document < "u", An = "ab-ev-apple-pay-container", Bl = (e) => {
2433
- if (e.unmount(), _l()) {
2432
+ }, _l = typeof window < "u" && typeof document < "u", An = "ab-ev-apple-pay-container", Bl = (e) => {
2433
+ if (console.log("APPLE PAY REMOUNT"), e.unmount(), _l) {
2434
2434
  const t = document.getElementById(An);
2435
2435
  t && (t.innerHTML = "");
2436
2436
  }
@@ -2445,43 +2445,43 @@ const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onErr
2445
2445
  transaction: a,
2446
2446
  supportedCardTypes: o
2447
2447
  }) => {
2448
- const { ev: l } = ws(), [u, c] = S(!1), [d, p] = S(!1), [f, m] = S(null);
2448
+ const { ev: l } = Ps(), [u, c] = S(!1), [d, p] = S(!1), [f, m] = S(null);
2449
2449
  return te(() => {
2450
2450
  f && (t && f.on("cancel", t), n && f.on("error", (g = "") => n(g)), r && f.on("success", r));
2451
2451
  }, [f, t, n, r]), te(() => {
2452
- (async () => {
2453
- if (!(!l || u))
2454
- try {
2455
- const v = l.transactions.create(a), y = l.ui.applePay(v, {
2456
- locale: s,
2457
- borderRadius: 12,
2458
- size: {
2459
- width: "100%",
2460
- height: "40px"
2461
- },
2462
- allowedCardNetworks: o,
2463
- requestBillingAddress: !0,
2464
- requestPayerDetails: ["name", "email", "phone"],
2465
- process: async (b, { fail: k }) => {
2466
- try {
2467
- e(b);
2468
- } catch (C) {
2469
- console.error(C), k({
2470
- message: "Cannot pay with payment credentials"
2471
- });
2472
- }
2452
+ if (!l || u) return;
2453
+ console.log("APPLE PAY INIT"), (async () => {
2454
+ try {
2455
+ const v = l.transactions.create(a), y = l.ui.applePay(v, {
2456
+ locale: s,
2457
+ borderRadius: 12,
2458
+ size: {
2459
+ width: "100%",
2460
+ height: "40px"
2461
+ },
2462
+ allowedCardNetworks: o,
2463
+ requestBillingAddress: !0,
2464
+ requestPayerDetails: ["name", "email", "phone"],
2465
+ process: async (b, { fail: k }) => {
2466
+ try {
2467
+ e(b);
2468
+ } catch (C) {
2469
+ console.error(C), k({
2470
+ message: "Cannot pay with payment credentials"
2471
+ });
2473
2472
  }
2474
- });
2475
- if (await y.availability() !== "available") {
2476
- p(!1);
2477
- return;
2478
2473
  }
2479
- m(y), Bl(y), p(!0);
2480
- } catch (v) {
2481
- console.error(v), p(!1);
2482
- } finally {
2483
- c(!1), i?.();
2474
+ });
2475
+ if (await y.availability() !== "available") {
2476
+ p(!1);
2477
+ return;
2484
2478
  }
2479
+ m(y), Bl(y), p(!0);
2480
+ } catch (v) {
2481
+ console.error(v), p(!1);
2482
+ } finally {
2483
+ c(!1), i?.();
2484
+ }
2485
2485
  })();
2486
2486
  }, [l, a, o, s, u, e, i]), /* @__PURE__ */ h.jsx("div", { id: An, className: ve(Fr.applePay, d ? void 0 : Fr.hidden) });
2487
2487
  }, ql = ({ children: e, clientToken: t }) => {
@@ -2490,15 +2490,15 @@ const Br = "ab-ev-google-pay-container", Dl = ({ onSubmit: e, onCancel: t, onErr
2490
2490
  [n?.evervault]
2491
2491
  );
2492
2492
  return te(() => {
2493
- Ro(t).then((s) => r(s)).catch(console.error);
2494
- }, [t]), /* @__PURE__ */ h.jsx(Ts.Provider, { value: n, children: /* @__PURE__ */ h.jsx(Ml, { evConfig: i, children: e }) });
2493
+ Mo(t).then((s) => r(s)).catch(console.error);
2494
+ }, [t]), /* @__PURE__ */ h.jsx(ks.Provider, { value: n, children: /* @__PURE__ */ h.jsx(Ml, { evConfig: i, children: e }) });
2495
2495
  }, Kl = "_button_qsmkn_1", zl = "_primary_qsmkn_11", Ul = "_success_qsmkn_15", $l = "_loading_qsmkn_19", Gl = "_press_qsmkn_24", Rt = {
2496
2496
  button: Kl,
2497
2497
  primary: zl,
2498
2498
  success: Ul,
2499
2499
  loading: $l,
2500
2500
  press: Gl
2501
- }, Ss = ({
2501
+ }, Es = ({
2502
2502
  color: e,
2503
2503
  isLoading: t,
2504
2504
  children: n,
@@ -2748,7 +2748,7 @@ function Wl() {
2748
2748
  return un = e, un;
2749
2749
  }
2750
2750
  var nt = {}, rt = {}, Kr;
2751
- function Es() {
2751
+ function js() {
2752
2752
  if (Kr) return rt;
2753
2753
  Kr = 1, Object.defineProperty(rt, "__esModule", { value: !0 }), rt.clone = void 0;
2754
2754
  function e(t) {
@@ -2776,7 +2776,7 @@ var Ur;
2776
2776
  function Hl() {
2777
2777
  if (Ur) return nt;
2778
2778
  Ur = 1, Object.defineProperty(nt, "__esModule", { value: !0 }), nt.addMatchingCardsToResults = void 0;
2779
- var e = Es(), t = Yl();
2779
+ var e = js(), t = Yl();
2780
2780
  function n(r, i, s) {
2781
2781
  var a, o;
2782
2782
  for (a = 0; a < i.patterns.length; a++) {
@@ -2828,7 +2828,7 @@ function Jl() {
2828
2828
  }
2829
2829
  return m;
2830
2830
  }, e.apply(this, arguments);
2831
- }, t = Wl(), n = Hl(), r = Zl(), i = Xl(), s = Es(), a = {}, o = {
2831
+ }, t = Wl(), n = Hl(), r = Zl(), i = Xl(), s = js(), a = {}, o = {
2832
2832
  VISA: "visa",
2833
2833
  MASTERCARD: "mastercard",
2834
2834
  AMERICAN_EXPRESS: "american-express",
@@ -2962,7 +2962,7 @@ function Qn(e) {
2962
2962
  const t = ue(null);
2963
2963
  return t.current === null && (t.current = e()), t.current;
2964
2964
  }
2965
- const er = typeof window < "u", js = er ? yo : te, Qt = /* @__PURE__ */ ne(null);
2965
+ const er = typeof window < "u", Vs = er ? vo : te, Qt = /* @__PURE__ */ ne(null);
2966
2966
  function tr(e, t) {
2967
2967
  e.indexOf(t) === -1 && e.push(t);
2968
2968
  }
@@ -2980,11 +2980,11 @@ process.env.NODE_ENV !== "production" && (Ze = (e, t) => {
2980
2980
  if (!e)
2981
2981
  throw new Error(t);
2982
2982
  });
2983
- const Te = {}, Vs = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2984
- function Rs(e) {
2983
+ const Te = {}, Rs = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);
2984
+ function Ms(e) {
2985
2985
  return typeof e == "object" && e !== null;
2986
2986
  }
2987
- const Ms = (e) => /^0[^.\s]+$/u.test(e);
2987
+ const Is = (e) => /^0[^.\s]+$/u.test(e);
2988
2988
  // @__NO_SIDE_EFFECTS__
2989
2989
  function rr(e) {
2990
2990
  let t;
@@ -3020,18 +3020,18 @@ class ir {
3020
3020
  }
3021
3021
  }
3022
3022
  const fe = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, ge = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3;
3023
- function Is(e, t) {
3023
+ function Ls(e, t) {
3024
3024
  return t ? e * (1e3 / t) : 0;
3025
3025
  }
3026
3026
  const Yr = /* @__PURE__ */ new Set();
3027
3027
  function sr(e, t, n) {
3028
3028
  e || Yr.has(t) || (console.warn(t), Yr.add(t));
3029
3029
  }
3030
- const Ls = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, yc = 1e-7, vc = 12;
3030
+ const Ds = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, yc = 1e-7, vc = 12;
3031
3031
  function bc(e, t, n, r, i) {
3032
3032
  let s, a, o = 0;
3033
3033
  do
3034
- a = t + (n - t) / 2, s = Ls(a, r, i) - e, s > 0 ? n = a : t = a;
3034
+ a = t + (n - t) / 2, s = Ds(a, r, i) - e, s > 0 ? n = a : t = a;
3035
3035
  while (Math.abs(s) > yc && ++o < vc);
3036
3036
  return a;
3037
3037
  }
@@ -3039,22 +3039,22 @@ function Pt(e, t, n, r) {
3039
3039
  if (e === t && n === r)
3040
3040
  return de;
3041
3041
  const i = (s) => bc(s, 0, 1, e, n);
3042
- return (s) => s === 0 || s === 1 ? s : Ls(i(s), t, r);
3042
+ return (s) => s === 0 || s === 1 ? s : Ds(i(s), t, r);
3043
3043
  }
3044
- const Ds = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Ns = (e) => (t) => 1 - e(1 - t), Os = /* @__PURE__ */ Pt(0.33, 1.53, 0.69, 0.99), ar = /* @__PURE__ */ Ns(Os), _s = /* @__PURE__ */ Ds(ar), Bs = (e) => (e *= 2) < 1 ? 0.5 * ar(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), or = (e) => 1 - Math.sin(Math.acos(e)), Fs = Ns(or), qs = Ds(or), xc = /* @__PURE__ */ Pt(0.42, 0, 1, 1), Cc = /* @__PURE__ */ Pt(0, 0, 0.58, 1), Ks = /* @__PURE__ */ Pt(0.42, 0, 0.58, 1), Tc = (e) => Array.isArray(e) && typeof e[0] != "number", zs = (e) => Array.isArray(e) && typeof e[0] == "number", Hr = {
3044
+ const Ns = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, Os = (e) => (t) => 1 - e(1 - t), _s = /* @__PURE__ */ Pt(0.33, 1.53, 0.69, 0.99), ar = /* @__PURE__ */ Os(_s), Bs = /* @__PURE__ */ Ns(ar), Fs = (e) => (e *= 2) < 1 ? 0.5 * ar(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), or = (e) => 1 - Math.sin(Math.acos(e)), qs = Os(or), Ks = Ns(or), xc = /* @__PURE__ */ Pt(0.42, 0, 1, 1), Cc = /* @__PURE__ */ Pt(0, 0, 0.58, 1), zs = /* @__PURE__ */ Pt(0.42, 0, 0.58, 1), Tc = (e) => Array.isArray(e) && typeof e[0] != "number", Us = (e) => Array.isArray(e) && typeof e[0] == "number", Hr = {
3045
3045
  linear: de,
3046
3046
  easeIn: xc,
3047
- easeInOut: Ks,
3047
+ easeInOut: zs,
3048
3048
  easeOut: Cc,
3049
3049
  circIn: or,
3050
- circInOut: qs,
3051
- circOut: Fs,
3050
+ circInOut: Ks,
3051
+ circOut: qs,
3052
3052
  backIn: ar,
3053
- backInOut: _s,
3054
- backOut: Os,
3055
- anticipate: Bs
3053
+ backInOut: Bs,
3054
+ backOut: _s,
3055
+ anticipate: Fs
3056
3056
  }, kc = (e) => typeof e == "string", Zr = (e) => {
3057
- if (zs(e)) {
3057
+ if (Us(e)) {
3058
3058
  Ce(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
3059
3059
  const [t, n, r, i] = e;
3060
3060
  return Pt(t, n, r, i);
@@ -3120,7 +3120,7 @@ function wc(e, t) {
3120
3120
  return c;
3121
3121
  }
3122
3122
  const Pc = 40;
3123
- function Us(e, t) {
3123
+ function $s(e, t) {
3124
3124
  let n = !1, r = !0;
3125
3125
  const i = {
3126
3126
  delta: 0,
@@ -3140,7 +3140,7 @@ function Us(e, t) {
3140
3140
  a[It[k]].cancel(b);
3141
3141
  }, state: i, steps: a };
3142
3142
  }
3143
- const { schedule: F, cancel: Se, state: W, steps: dn } = /* @__PURE__ */ Us(typeof requestAnimationFrame < "u" ? requestAnimationFrame : de, !0);
3143
+ const { schedule: F, cancel: Se, state: W, steps: dn } = /* @__PURE__ */ $s(typeof requestAnimationFrame < "u" ? requestAnimationFrame : de, !0);
3144
3144
  let Kt;
3145
3145
  function Ac() {
3146
3146
  Kt = void 0;
@@ -3150,7 +3150,7 @@ const se = {
3150
3150
  set: (e) => {
3151
3151
  Kt = e, queueMicrotask(Ac);
3152
3152
  }
3153
- }, $s = (e) => (t) => typeof t == "string" && t.startsWith(e), lr = /* @__PURE__ */ $s("--"), Sc = /* @__PURE__ */ $s("var(--"), cr = (e) => Sc(e) ? Ec.test(e.split("/*")[0].trim()) : !1, Ec = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Xe = {
3153
+ }, Gs = (e) => (t) => typeof t == "string" && t.startsWith(e), lr = /* @__PURE__ */ Gs("--"), Sc = /* @__PURE__ */ Gs("var(--"), cr = (e) => Sc(e) ? Ec.test(e.split("/*")[0].trim()) : !1, Ec = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Xe = {
3154
3154
  test: (e) => typeof e == "number",
3155
3155
  parse: parseFloat,
3156
3156
  transform: (e) => e
@@ -3164,7 +3164,7 @@ const se = {
3164
3164
  function jc(e) {
3165
3165
  return e == null;
3166
3166
  }
3167
- const Vc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, dr = (e, t) => (n) => !!(typeof n == "string" && Vc.test(n) && n.startsWith(e) || t && !jc(n) && Object.prototype.hasOwnProperty.call(n, t)), Gs = (e, t, n) => (r) => {
3167
+ const Vc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, dr = (e, t) => (n) => !!(typeof n == "string" && Vc.test(n) && n.startsWith(e) || t && !jc(n) && Object.prototype.hasOwnProperty.call(n, t)), Ws = (e, t, n) => (r) => {
3168
3168
  if (typeof r != "string")
3169
3169
  return r;
3170
3170
  const [i, s, a, o] = r.match(ur);
@@ -3179,7 +3179,7 @@ const Vc = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
3179
3179
  transform: (e) => Math.round(Rc(e))
3180
3180
  }, Ie = {
3181
3181
  test: /* @__PURE__ */ dr("rgb", "red"),
3182
- parse: /* @__PURE__ */ Gs("red", "green", "blue"),
3182
+ parse: /* @__PURE__ */ Ws("red", "green", "blue"),
3183
3183
  transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + hn.transform(e) + ", " + hn.transform(t) + ", " + hn.transform(n) + ", " + dt(yt.transform(r)) + ")"
3184
3184
  };
3185
3185
  function Mc(e) {
@@ -3205,7 +3205,7 @@ const En = {
3205
3205
  transform: (e) => ye.transform(e * 100)
3206
3206
  }, Fe = {
3207
3207
  test: /* @__PURE__ */ dr("hsl", "hue"),
3208
- parse: /* @__PURE__ */ Gs("hue", "saturation", "lightness"),
3208
+ parse: /* @__PURE__ */ Ws("hue", "saturation", "lightness"),
3209
3209
  transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + ye.transform(dt(t)) + ", " + ye.transform(dt(n)) + ", " + dt(yt.transform(r)) + ")"
3210
3210
  }, X = {
3211
3211
  test: (e) => Ie.test(e) || En.test(e) || Fe.test(e),
@@ -3215,7 +3215,7 @@ const En = {
3215
3215
  function Nc(e) {
3216
3216
  return isNaN(e) && typeof e == "string" && (e.match(ur)?.length || 0) + (e.match(Dc)?.length || 0) > 0;
3217
3217
  }
3218
- const Ws = "number", Ys = "color", Oc = "var", _c = "var(", Qr = "${}", Bc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
3218
+ const Ys = "number", Hs = "color", Oc = "var", _c = "var(", Qr = "${}", Bc = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
3219
3219
  function vt(e) {
3220
3220
  const t = e.toString(), n = [], r = {
3221
3221
  color: [],
@@ -3223,33 +3223,33 @@ function vt(e) {
3223
3223
  var: []
3224
3224
  }, i = [];
3225
3225
  let s = 0;
3226
- const o = t.replace(Bc, (l) => (X.test(l) ? (r.color.push(s), i.push(Ys), n.push(X.parse(l))) : l.startsWith(_c) ? (r.var.push(s), i.push(Oc), n.push(l)) : (r.number.push(s), i.push(Ws), n.push(parseFloat(l))), ++s, Qr)).split(Qr);
3226
+ const o = t.replace(Bc, (l) => (X.test(l) ? (r.color.push(s), i.push(Hs), n.push(X.parse(l))) : l.startsWith(_c) ? (r.var.push(s), i.push(Oc), n.push(l)) : (r.number.push(s), i.push(Ys), n.push(parseFloat(l))), ++s, Qr)).split(Qr);
3227
3227
  return { values: n, split: o, indexes: r, types: i };
3228
3228
  }
3229
- function Hs(e) {
3229
+ function Zs(e) {
3230
3230
  return vt(e).values;
3231
3231
  }
3232
- function Zs(e) {
3232
+ function Xs(e) {
3233
3233
  const { split: t, types: n } = vt(e), r = t.length;
3234
3234
  return (i) => {
3235
3235
  let s = "";
3236
3236
  for (let a = 0; a < r; a++)
3237
3237
  if (s += t[a], i[a] !== void 0) {
3238
3238
  const o = n[a];
3239
- o === Ws ? s += dt(i[a]) : o === Ys ? s += X.transform(i[a]) : s += i[a];
3239
+ o === Ys ? s += dt(i[a]) : o === Hs ? s += X.transform(i[a]) : s += i[a];
3240
3240
  }
3241
3241
  return s;
3242
3242
  };
3243
3243
  }
3244
3244
  const Fc = (e) => typeof e == "number" ? 0 : e;
3245
3245
  function qc(e) {
3246
- const t = Hs(e);
3247
- return Zs(e)(t.map(Fc));
3246
+ const t = Zs(e);
3247
+ return Xs(e)(t.map(Fc));
3248
3248
  }
3249
3249
  const Ee = {
3250
3250
  test: Nc,
3251
- parse: Hs,
3252
- createTransformer: Zs,
3251
+ parse: Zs,
3252
+ createTransformer: Xs,
3253
3253
  getAnimatableNone: qc
3254
3254
  };
3255
3255
  function pn(e, t, n) {
@@ -3299,9 +3299,9 @@ function Gc(e, t) {
3299
3299
  return (n) => B(e, t, n);
3300
3300
  }
3301
3301
  function hr(e) {
3302
- return typeof e == "number" ? Gc : typeof e == "string" ? cr(e) ? Gt : X.test(e) ? ti : Hc : Array.isArray(e) ? Xs : typeof e == "object" ? X.test(e) ? ti : Wc : Gt;
3302
+ return typeof e == "number" ? Gc : typeof e == "string" ? cr(e) ? Gt : X.test(e) ? ti : Hc : Array.isArray(e) ? Js : typeof e == "object" ? X.test(e) ? ti : Wc : Gt;
3303
3303
  }
3304
- function Xs(e, t) {
3304
+ function Js(e, t) {
3305
3305
  const n = [...e], r = n.length, i = e.map((s, a) => hr(s)(s, t[a]));
3306
3306
  return (s) => {
3307
3307
  for (let a = 0; a < r; a++)
@@ -3329,9 +3329,9 @@ function Yc(e, t) {
3329
3329
  }
3330
3330
  const Hc = (e, t) => {
3331
3331
  const n = Ee.createTransformer(t), r = vt(e), i = vt(t);
3332
- return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? jn.has(e) && !i.values.length || jn.has(t) && !r.values.length ? $c(e, t) : wt(Xs(Yc(r, i), i.values), n) : (Ze(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Gt(e, t));
3332
+ return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? jn.has(e) && !i.values.length || jn.has(t) && !r.values.length ? $c(e, t) : wt(Js(Yc(r, i), i.values), n) : (Ze(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), Gt(e, t));
3333
3333
  };
3334
- function Js(e, t, n) {
3334
+ function Qs(e, t, n) {
3335
3335
  return typeof e == "number" && typeof t == "number" && typeof n == "number" ? B(e, t, n) : hr(e)(e, t);
3336
3336
  }
3337
3337
  const Zc = (e) => {
@@ -3345,7 +3345,7 @@ const Zc = (e) => {
3345
3345
  */
3346
3346
  now: () => W.isProcessing ? W.timestamp : se.now()
3347
3347
  };
3348
- }, Qs = (e, t, n = 10) => {
3348
+ }, ea = (e, t, n = 10) => {
3349
3349
  let r = "";
3350
3350
  const i = Math.max(Math.round(t / n), 2);
3351
3351
  for (let s = 0; s < i; s++)
@@ -3369,9 +3369,9 @@ function Xc(e, t = 100, n) {
3369
3369
  };
3370
3370
  }
3371
3371
  const Jc = 5;
3372
- function ea(e, t, n) {
3372
+ function ta(e, t, n) {
3373
3373
  const r = Math.max(t - Jc, 0);
3374
- return Is(n - e(r), t - r);
3374
+ return Ls(n - e(r), t - r);
3375
3375
  }
3376
3376
  const O = {
3377
3377
  // Default spring physics
@@ -3513,14 +3513,14 @@ function Yt(e = O.visualDuration, t = O.bounce) {
3513
3513
  o.done = C >= d;
3514
3514
  else {
3515
3515
  let E = C === 0 ? m : 0;
3516
- g < 1 && (E = C === 0 ? /* @__PURE__ */ fe(m) : ea(b, C, w));
3516
+ g < 1 && (E = C === 0 ? /* @__PURE__ */ fe(m) : ta(b, C, w));
3517
3517
  const P = Math.abs(E) <= r, V = Math.abs(a - w) <= i;
3518
3518
  o.done = P && V;
3519
3519
  }
3520
3520
  return o.value = o.done ? a : w, o;
3521
3521
  },
3522
3522
  toString: () => {
3523
- const C = Math.min(pr(k), Wt), w = Qs((E) => k.next(C * E).value, C, 30);
3523
+ const C = Math.min(pr(k), Wt), w = ea((E) => k.next(C * E).value, C, 30);
3524
3524
  return C + "ms " + w;
3525
3525
  },
3526
3526
  toTransition: () => {
@@ -3548,7 +3548,7 @@ function Rn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
3548
3548
  const E = (P) => {
3549
3549
  f(p.value) && (C = P, w = Yt({
3550
3550
  keyframes: [p.value, m(p.value)],
3551
- velocity: ea(b, P, p.value),
3551
+ velocity: ta(b, P, p.value),
3552
3552
  // TODO: This should be passing * 1000
3553
3553
  damping: i,
3554
3554
  stiffness: s,
@@ -3565,7 +3565,7 @@ function Rn({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
3565
3565
  };
3566
3566
  }
3567
3567
  function su(e, t, n) {
3568
- const r = [], i = n || Te.mix || Js, s = e.length - 1;
3568
+ const r = [], i = n || Te.mix || Qs, s = e.length - 1;
3569
3569
  for (let a = 0; a < s; a++) {
3570
3570
  let o = i(e[a], e[a + 1]);
3571
3571
  if (t) {
@@ -3611,7 +3611,7 @@ function cu(e, t) {
3611
3611
  return e.map((n) => n * t);
3612
3612
  }
3613
3613
  function uu(e, t) {
3614
- return e.map(() => t || Ks).splice(0, e.length - 1);
3614
+ return e.map(() => t || zs).splice(0, e.length - 1);
3615
3615
  }
3616
3616
  function qe({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
3617
3617
  const i = Tc(r) ? r.map(Zr) : Zr(r), s = {
@@ -3642,7 +3642,7 @@ const hu = {
3642
3642
  keyframes: qe,
3643
3643
  spring: Yt
3644
3644
  };
3645
- function ta(e) {
3645
+ function na(e) {
3646
3646
  typeof e.type == "string" && (e.type = hu[e.type]);
3647
3647
  }
3648
3648
  class mr {
@@ -3682,11 +3682,11 @@ class gr extends mr {
3682
3682
  }
3683
3683
  initAnimation() {
3684
3684
  const { options: t } = this;
3685
- ta(t);
3685
+ na(t);
3686
3686
  const { type: n = qe, repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: a = 0 } = t;
3687
3687
  let { keyframes: o } = t;
3688
3688
  const l = n || qe;
3689
- process.env.NODE_ENV !== "production" && l !== qe && Ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== qe && typeof o[0] != "number" && (this.mixKeyframes = wt(pu, Js(o[0], o[1])), o = [0, 100]);
3689
+ process.env.NODE_ENV !== "production" && l !== qe && Ce(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== qe && typeof o[0] != "number" && (this.mixKeyframes = wt(pu, Qs(o[0], o[1])), o = [0, 100]);
3690
3690
  const u = l({ ...t, keyframes: o });
3691
3691
  s === "mirror" && (this.mirroredGenerator = l({
3692
3692
  ...t,
@@ -3885,7 +3885,7 @@ Ne.translateX = Ne.x;
3885
3885
  Ne.translateY = Ne.y;
3886
3886
  const Oe = /* @__PURE__ */ new Set();
3887
3887
  let Nn = !1, On = !1, _n = !1;
3888
- function na() {
3888
+ function ra() {
3889
3889
  if (On) {
3890
3890
  const e = Array.from(Oe).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
3891
3891
  t.forEach((r) => {
@@ -3903,20 +3903,20 @@ function na() {
3903
3903
  }
3904
3904
  On = !1, Nn = !1, Oe.forEach((e) => e.complete(_n)), Oe.clear();
3905
3905
  }
3906
- function ra() {
3906
+ function ia() {
3907
3907
  Oe.forEach((e) => {
3908
3908
  e.readKeyframes(), e.needsMeasurement && (On = !0);
3909
3909
  });
3910
3910
  }
3911
3911
  function Tu() {
3912
- _n = !0, ra(), na(), _n = !1;
3912
+ _n = !0, ia(), ra(), _n = !1;
3913
3913
  }
3914
3914
  class yr {
3915
3915
  constructor(t, n, r, i, s, a = !1) {
3916
3916
  this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = i, this.element = s, this.isAsync = a;
3917
3917
  }
3918
3918
  scheduleResolve() {
3919
- this.state = "scheduled", this.isAsync ? (Oe.add(this), Nn || (Nn = !0, F.read(ra), F.resolveKeyframes(na))) : (this.readKeyframes(), this.complete());
3919
+ this.state = "scheduled", this.isAsync ? (Oe.add(this), Nn || (Nn = !0, F.read(ia), F.resolveKeyframes(ra))) : (this.readKeyframes(), this.complete());
3920
3920
  }
3921
3921
  readKeyframes() {
3922
3922
  const { unresolvedKeyframes: t, name: n, element: r, motionValue: i } = this;
@@ -3959,7 +3959,7 @@ function Su(e, t) {
3959
3959
  const n = /* @__PURE__ */ rr(e);
3960
3960
  return () => Au[t] ?? n();
3961
3961
  }
3962
- const ia = /* @__PURE__ */ Su(() => {
3962
+ const sa = /* @__PURE__ */ Su(() => {
3963
3963
  try {
3964
3964
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
3965
3965
  } catch {
@@ -3977,16 +3977,16 @@ const ia = /* @__PURE__ */ Su(() => {
3977
3977
  backIn: /* @__PURE__ */ ct([0.31, 0.01, 0.66, -0.59]),
3978
3978
  backOut: /* @__PURE__ */ ct([0.33, 1.53, 0.69, 0.99])
3979
3979
  };
3980
- function sa(e, t) {
3980
+ function aa(e, t) {
3981
3981
  if (e)
3982
- return typeof e == "function" ? ia() ? Qs(e, t) : "ease-out" : zs(e) ? ct(e) : Array.isArray(e) ? e.map((n) => sa(n, t) || li.easeOut) : li[e];
3982
+ return typeof e == "function" ? sa() ? ea(e, t) : "ease-out" : Us(e) ? ct(e) : Array.isArray(e) ? e.map((n) => aa(n, t) || li.easeOut) : li[e];
3983
3983
  }
3984
3984
  function Eu(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: a = "loop", ease: o = "easeOut", times: l } = {}, u = void 0) {
3985
3985
  const c = {
3986
3986
  [t]: n
3987
3987
  };
3988
3988
  l && (c.offset = l);
3989
- const d = sa(o, i);
3989
+ const d = aa(o, i);
3990
3990
  Array.isArray(d) && (c.easing = d);
3991
3991
  const p = {
3992
3992
  delay: r,
@@ -3998,11 +3998,11 @@ function Eu(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTyp
3998
3998
  };
3999
3999
  return u && (p.pseudoElement = u), e.animate(c, p);
4000
4000
  }
4001
- function aa(e) {
4001
+ function oa(e) {
4002
4002
  return typeof e == "function" && "applyToOptions" in e;
4003
4003
  }
4004
4004
  function ju({ type: e, ...t }) {
4005
- return aa(e) && ia() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
4005
+ return oa(e) && sa() ? e.applyToOptions(t) : (t.duration ?? (t.duration = 300), t.ease ?? (t.ease = "easeOut"), t);
4006
4006
  }
4007
4007
  class Vu extends mr {
4008
4008
  constructor(t) {
@@ -4092,21 +4092,21 @@ class Vu extends mr {
4092
4092
  return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, t && Pu() ? (this.animation.timeline = t, de) : n(this);
4093
4093
  }
4094
4094
  }
4095
- const oa = {
4096
- anticipate: Bs,
4097
- backInOut: _s,
4098
- circInOut: qs
4095
+ const la = {
4096
+ anticipate: Fs,
4097
+ backInOut: Bs,
4098
+ circInOut: Ks
4099
4099
  };
4100
4100
  function Ru(e) {
4101
- return e in oa;
4101
+ return e in la;
4102
4102
  }
4103
4103
  function Mu(e) {
4104
- typeof e.ease == "string" && Ru(e.ease) && (e.ease = oa[e.ease]);
4104
+ typeof e.ease == "string" && Ru(e.ease) && (e.ease = la[e.ease]);
4105
4105
  }
4106
4106
  const ci = 10;
4107
4107
  class Iu extends Vu {
4108
4108
  constructor(t) {
4109
- Mu(t), ta(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
4109
+ Mu(t), na(t), super(t), t.startTime && (this.startTime = t.startTime), this.options = t;
4110
4110
  }
4111
4111
  /**
4112
4112
  * WAAPI doesn't natively have any interruption capabilities.
@@ -4149,10 +4149,10 @@ function Du(e, t, n, r) {
4149
4149
  if (t === "display" || t === "visibility")
4150
4150
  return !0;
4151
4151
  const s = e[e.length - 1], a = ui(i, t), o = ui(s, t);
4152
- return Ze(a === o, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !a || !o ? !1 : Lu(e) || (n === "spring" || aa(n)) && r;
4152
+ return Ze(a === o, `You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`), !a || !o ? !1 : Lu(e) || (n === "spring" || oa(n)) && r;
4153
4153
  }
4154
4154
  function vr(e) {
4155
- return Rs(e) && "offsetHeight" in e;
4155
+ return Ms(e) && "offsetHeight" in e;
4156
4156
  }
4157
4157
  const Nu = /* @__PURE__ */ new Set([
4158
4158
  "opacity",
@@ -4267,7 +4267,7 @@ function Ku(e) {
4267
4267
  return [`--${n ?? r}`, i];
4268
4268
  }
4269
4269
  const zu = 4;
4270
- function la(e, t, n = 1) {
4270
+ function ca(e, t, n = 1) {
4271
4271
  Ce(n <= zu, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
4272
4272
  const [r, i] = Ku(e);
4273
4273
  if (!r)
@@ -4275,14 +4275,14 @@ function la(e, t, n = 1) {
4275
4275
  const s = window.getComputedStyle(t).getPropertyValue(r);
4276
4276
  if (s) {
4277
4277
  const a = s.trim();
4278
- return Vs(a) ? parseFloat(a) : a;
4278
+ return Rs(a) ? parseFloat(a) : a;
4279
4279
  }
4280
- return cr(i) ? la(i, t, n + 1) : i;
4280
+ return cr(i) ? ca(i, t, n + 1) : i;
4281
4281
  }
4282
4282
  function br(e, t) {
4283
4283
  return e?.[t] ?? e?.default ?? e;
4284
4284
  }
4285
- const ca = /* @__PURE__ */ new Set([
4285
+ const ua = /* @__PURE__ */ new Set([
4286
4286
  "width",
4287
4287
  "height",
4288
4288
  "top",
@@ -4293,9 +4293,9 @@ const ca = /* @__PURE__ */ new Set([
4293
4293
  ]), Uu = {
4294
4294
  test: (e) => e === "auto",
4295
4295
  parse: (e) => e
4296
- }, ua = (e) => (t) => t.test(e), da = [Xe, A, ye, we, Lc, Ic, Uu], di = (e) => da.find(ua(e));
4296
+ }, da = (e) => (t) => t.test(e), ha = [Xe, A, ye, we, Lc, Ic, Uu], di = (e) => ha.find(da(e));
4297
4297
  function $u(e) {
4298
- return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Ms(e) : !0;
4298
+ return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || Is(e) : !0;
4299
4299
  }
4300
4300
  const Gu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
4301
4301
  function Wu(e) {
@@ -4401,9 +4401,9 @@ const Yu = /\b([a-z-]*)\(.*?\)/gu, Bn = {
4401
4401
  borderLeftColor: X,
4402
4402
  filter: Bn,
4403
4403
  WebkitFilter: Bn
4404
- }, ha = (e) => Zu[e];
4405
- function pa(e, t) {
4406
- let n = ha(e);
4404
+ }, pa = (e) => Zu[e];
4405
+ function fa(e, t) {
4406
+ let n = pa(e);
4407
4407
  return n !== Bn && (n = Ee), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
4408
4408
  }
4409
4409
  const Xu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
@@ -4415,7 +4415,7 @@ function Ju(e, t, n) {
4415
4415
  }
4416
4416
  if (i && n)
4417
4417
  for (const s of t)
4418
- e[s] = pa(n, i);
4418
+ e[s] = fa(n, i);
4419
4419
  }
4420
4420
  class Qu extends yr {
4421
4421
  constructor(t, n, r, i, s) {
@@ -4429,11 +4429,11 @@ class Qu extends yr {
4429
4429
  for (let l = 0; l < t.length; l++) {
4430
4430
  let u = t[l];
4431
4431
  if (typeof u == "string" && (u = u.trim(), cr(u))) {
4432
- const c = la(u, n.current);
4432
+ const c = ca(u, n.current);
4433
4433
  c !== void 0 && (t[l] = c), l === t.length - 1 && (this.finalKeyframe = u);
4434
4434
  }
4435
4435
  }
4436
- if (this.resolveNoneKeyframes(), !ca.has(r) || t.length !== 2)
4436
+ if (this.resolveNoneKeyframes(), !ua.has(r) || t.length !== 2)
4437
4437
  return;
4438
4438
  const [i, s] = t, a = di(i), o = di(s);
4439
4439
  if (a !== o)
@@ -4630,7 +4630,7 @@ class nd {
4630
4630
  if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > pi)
4631
4631
  return 0;
4632
4632
  const n = Math.min(this.updatedAt - this.prevUpdatedAt, pi);
4633
- return Is(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
4633
+ return Ls(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
4634
4634
  }
4635
4635
  /**
4636
4636
  * Registers a new animation to control this `MotionValue`. Only one
@@ -4684,11 +4684,11 @@ class nd {
4684
4684
  function Ge(e, t) {
4685
4685
  return new nd(e, t);
4686
4686
  }
4687
- const fa = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: Cr } = /* @__PURE__ */ Us(queueMicrotask, !1), pe = {
4687
+ const ma = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: Cr } = /* @__PURE__ */ $s(queueMicrotask, !1), pe = {
4688
4688
  x: !1,
4689
4689
  y: !1
4690
4690
  };
4691
- function ma() {
4691
+ function ga() {
4692
4692
  return pe.x || pe.y;
4693
4693
  }
4694
4694
  function rd(e) {
@@ -4698,7 +4698,7 @@ function rd(e) {
4698
4698
  pe.x = pe.y = !1;
4699
4699
  });
4700
4700
  }
4701
- function ga(e, t) {
4701
+ function ya(e, t) {
4702
4702
  const n = ed(e), r = new AbortController(), i = {
4703
4703
  passive: !0,
4704
4704
  ...t,
@@ -4707,10 +4707,10 @@ function ga(e, t) {
4707
4707
  return [n, i, () => r.abort()];
4708
4708
  }
4709
4709
  function fi(e) {
4710
- return !(e.pointerType === "touch" || ma());
4710
+ return !(e.pointerType === "touch" || ga());
4711
4711
  }
4712
4712
  function id(e, t, n = {}) {
4713
- const [r, i, s] = ga(e, n), a = (o) => {
4713
+ const [r, i, s] = ya(e, n), a = (o) => {
4714
4714
  if (!fi(o))
4715
4715
  return;
4716
4716
  const { target: l } = o, u = t(l, o);
@@ -4725,7 +4725,7 @@ function id(e, t, n = {}) {
4725
4725
  o.addEventListener("pointerenter", a, i);
4726
4726
  }), s;
4727
4727
  }
4728
- const ya = (e, t) => t ? e === t ? !0 : ya(e, t.parentElement) : !1, Tr = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, sd = /* @__PURE__ */ new Set([
4728
+ const va = (e, t) => t ? e === t ? !0 : va(e, t.parentElement) : !1, Tr = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, sd = /* @__PURE__ */ new Set([
4729
4729
  "BUTTON",
4730
4730
  "INPUT",
4731
4731
  "SELECT",
@@ -4760,10 +4760,10 @@ const od = (e, t) => {
4760
4760
  n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
4761
4761
  };
4762
4762
  function gi(e) {
4763
- return Tr(e) && !ma();
4763
+ return Tr(e) && !ga();
4764
4764
  }
4765
4765
  function ld(e, t, n = {}) {
4766
- const [r, i, s] = ga(e, n), a = (o) => {
4766
+ const [r, i, s] = ya(e, n), a = (o) => {
4767
4767
  const l = o.currentTarget;
4768
4768
  if (!gi(o))
4769
4769
  return;
@@ -4771,7 +4771,7 @@ function ld(e, t, n = {}) {
4771
4771
  const u = t(l, o), c = (f, m) => {
4772
4772
  window.removeEventListener("pointerup", d), window.removeEventListener("pointercancel", p), zt.has(l) && zt.delete(l), gi(f) && typeof u == "function" && u(f, { success: m });
4773
4773
  }, d = (f) => {
4774
- c(f, l === window || l === document || n.useGlobalTarget || ya(l, f.target));
4774
+ c(f, l === window || l === document || n.useGlobalTarget || va(l, f.target));
4775
4775
  }, p = (f) => {
4776
4776
  c(f, !1);
4777
4777
  };
@@ -4781,13 +4781,13 @@ function ld(e, t, n = {}) {
4781
4781
  (n.useGlobalTarget ? window : o).addEventListener("pointerdown", a, i), vr(o) && (o.addEventListener("focus", (u) => od(u, i)), !ad(o) && !o.hasAttribute("tabindex") && (o.tabIndex = 0));
4782
4782
  }), s;
4783
4783
  }
4784
- function va(e) {
4785
- return Rs(e) && "ownerSVGElement" in e;
4784
+ function ba(e) {
4785
+ return Ms(e) && "ownerSVGElement" in e;
4786
4786
  }
4787
4787
  function cd(e) {
4788
- return va(e) && e.tagName === "svg";
4788
+ return ba(e) && e.tagName === "svg";
4789
4789
  }
4790
- const J = (e) => !!(e && e.getVelocity), ud = [...da, X, Ee], dd = (e) => ud.find(ua(e)), kr = ne({
4790
+ const J = (e) => !!(e && e.getVelocity), ud = [...ha, X, Ee], dd = (e) => ud.find(da(e)), kr = ne({
4791
4791
  transformPagePoint: (e) => e,
4792
4792
  isStatic: !1,
4793
4793
  reducedMotion: "never"
@@ -4863,7 +4863,7 @@ const fd = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom:
4863
4863
  function md() {
4864
4864
  return /* @__PURE__ */ new Map();
4865
4865
  }
4866
- function ba(e = !0) {
4866
+ function xa(e = !0) {
4867
4867
  const t = _(Qt);
4868
4868
  if (t === null)
4869
4869
  return [!0, null];
@@ -4878,13 +4878,13 @@ function ba(e = !0) {
4878
4878
  const Dt = (e) => e.key || "";
4879
4879
  function yi(e) {
4880
4880
  const t = [];
4881
- return vo.forEach(e, (n) => {
4882
- bo(n) && t.push(n);
4881
+ return bo.forEach(e, (n) => {
4882
+ xo(n) && t.push(n);
4883
4883
  }), t;
4884
4884
  }
4885
- const xa = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: a = !1, anchorX: o = "left" }) => {
4886
- const [l, u] = ba(a), c = he(() => yi(e), [e]), d = a && !l ? [] : c.map(Dt), p = ue(!0), f = ue(c), m = Qn(() => /* @__PURE__ */ new Map()), [g, v] = S(c), [y, T] = S(c);
4887
- js(() => {
4885
+ const Ca = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: a = !1, anchorX: o = "left" }) => {
4886
+ const [l, u] = xa(a), c = he(() => yi(e), [e]), d = a && !l ? [] : c.map(Dt), p = ue(!0), f = ue(c), m = Qn(() => /* @__PURE__ */ new Map()), [g, v] = S(c), [y, T] = S(c);
4887
+ Vs(() => {
4888
4888
  p.current = !1, f.current = c;
4889
4889
  for (let C = 0; C < y.length; C++) {
4890
4890
  const w = Dt(y[C]);
@@ -4915,7 +4915,7 @@ const xa = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presen
4915
4915
  };
4916
4916
  return h.jsx(fd, { isPresent: E, initial: !p.current || n ? void 0 : !1, custom: t, presenceAffectsLayout: i, mode: s, onExitComplete: E ? void 0 : P, anchorX: o, children: C }, w);
4917
4917
  }) });
4918
- }, Ca = ne({ strict: !1 }), vi = {
4918
+ }, Ta = ne({ strict: !1 }), vi = {
4919
4919
  animation: [
4920
4920
  "animate",
4921
4921
  "variants",
@@ -4981,9 +4981,9 @@ const yd = /* @__PURE__ */ new Set([
4981
4981
  function Ht(e) {
4982
4982
  return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || yd.has(e);
4983
4983
  }
4984
- let Ta = (e) => !Ht(e);
4984
+ let ka = (e) => !Ht(e);
4985
4985
  function vd(e) {
4986
- e && (Ta = (t) => t.startsWith("on") ? !Ht(t) : e(t));
4986
+ e && (ka = (t) => t.startsWith("on") ? !Ht(t) : e(t));
4987
4987
  }
4988
4988
  try {
4989
4989
  vd(require("@emotion/is-prop-valid").default);
@@ -4992,7 +4992,7 @@ try {
4992
4992
  function bd(e, t, n) {
4993
4993
  const r = {};
4994
4994
  for (const i in e)
4995
- i === "values" && typeof e.values == "object" || (Ta(i) || n === !0 && Ht(i) || !t && !Ht(i) || // If trying to use native HTML drag events, forward drag listeners
4995
+ i === "values" && typeof e.values == "object" || (ka(i) || n === !0 && Ht(i) || !t && !Ht(i) || // If trying to use native HTML drag events, forward drag listeners
4996
4996
  e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
4997
4997
  return r;
4998
4998
  }
@@ -5028,7 +5028,7 @@ const wr = [
5028
5028
  function nn(e) {
5029
5029
  return tn(e.animate) || Pr.some((t) => bt(e[t]));
5030
5030
  }
5031
- function ka(e) {
5031
+ function wa(e) {
5032
5032
  return !!(nn(e) || e.variants);
5033
5033
  }
5034
5034
  function Cd(e, t) {
@@ -5065,9 +5065,9 @@ function wd(e, t, n) {
5065
5065
  [t]
5066
5066
  );
5067
5067
  }
5068
- const Ar = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Pd = "framerAppearId", wa = "data-" + Ar(Pd), Pa = ne({});
5068
+ const Ar = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Pd = "framerAppearId", Pa = "data-" + Ar(Pd), Aa = ne({});
5069
5069
  function Ad(e, t, n, r, i) {
5070
- const { visualElement: s } = _(en), a = _(Ca), o = _(Qt), l = _(kr).reducedMotion, u = ue(null);
5070
+ const { visualElement: s } = _(en), a = _(Ta), o = _(Qt), l = _(kr).reducedMotion, u = ue(null);
5071
5071
  r = r || a.renderer, !u.current && r && (u.current = r(e, {
5072
5072
  visualState: t,
5073
5073
  parent: s,
@@ -5076,14 +5076,14 @@ function Ad(e, t, n, r, i) {
5076
5076
  blockInitialAnimation: o ? o.initial === !1 : !1,
5077
5077
  reducedMotionConfig: l
5078
5078
  }));
5079
- const c = u.current, d = _(Pa);
5079
+ const c = u.current, d = _(Aa);
5080
5080
  c && !c.projection && i && (c.type === "html" || c.type === "svg") && Sd(u.current, n, i, d);
5081
5081
  const p = ue(!1);
5082
5082
  bs(() => {
5083
5083
  c && p.current && c.update(n, o);
5084
5084
  });
5085
- const f = n[wa], m = ue(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
5086
- return js(() => {
5085
+ const f = n[Pa], m = ue(!!f && !window.MotionHandoffIsComplete?.(f) && window.MotionHasOptimisedAnimation?.(f));
5086
+ return Vs(() => {
5087
5087
  c && (p.current = !0, window.MotionIsMounted = !0, c.updateFeatures(), Cr.render(c.render), m.current && c.animationState && c.animationState.animateChanges());
5088
5088
  }), te(() => {
5089
5089
  c && (!m.current && c.animationState && c.animationState.animateChanges(), m.current && (queueMicrotask(() => {
@@ -5093,7 +5093,7 @@ function Ad(e, t, n, r, i) {
5093
5093
  }
5094
5094
  function Sd(e, t, n, r) {
5095
5095
  const { layoutId: i, layout: s, drag: a, dragConstraints: o, layoutScroll: l, layoutRoot: u, layoutCrossfade: c } = t;
5096
- e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Aa(e.parent)), e.projection.setOptions({
5096
+ e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Sa(e.parent)), e.projection.setOptions({
5097
5097
  layoutId: i,
5098
5098
  layout: s,
5099
5099
  alwaysMeasureLayout: !!a || o && Ke(o),
@@ -5112,9 +5112,9 @@ function Sd(e, t, n, r) {
5112
5112
  layoutRoot: u
5113
5113
  });
5114
5114
  }
5115
- function Aa(e) {
5115
+ function Sa(e) {
5116
5116
  if (e)
5117
- return e.options.allowProjection !== !1 ? e.projection : Aa(e.parent);
5117
+ return e.options.allowProjection !== !1 ? e.projection : Sa(e.parent);
5118
5118
  }
5119
5119
  function Ed({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
5120
5120
  e && gd(e);
@@ -5133,7 +5133,7 @@ function Ed({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVis
5133
5133
  return h.jsxs(en.Provider, { value: p, children: [u && p.visualElement ? h.jsx(u, { visualElement: p.visualElement, ...c }) : null, n(i, o, wd(f, p.visualElement, l), f, d, p.visualElement)] });
5134
5134
  }
5135
5135
  s.displayName = `motion.${typeof i == "string" ? i : `create(${i.displayName ?? i.name ?? ""})`}`;
5136
- const a = xo(s);
5136
+ const a = Co(s);
5137
5137
  return a[kd] = i, a;
5138
5138
  }
5139
5139
  function jd({ layoutId: e }) {
@@ -5141,7 +5141,7 @@ function jd({ layoutId: e }) {
5141
5141
  return t && e !== void 0 ? t + "-" + e : e;
5142
5142
  }
5143
5143
  function Vd(e, t) {
5144
- const n = _(Ca).strict;
5144
+ const n = _(Ta).strict;
5145
5145
  if (process.env.NODE_ENV !== "production" && t && n) {
5146
5146
  const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
5147
5147
  e.ignoreStrict ? Ze(!1, r) : Ce(!1, r);
@@ -5162,7 +5162,7 @@ function Md(e) {
5162
5162
  for (const t in e)
5163
5163
  xt[t] = e[t], lr(t) && (xt[t].isCSSVariable = !0);
5164
5164
  }
5165
- function Sa(e, { layout: t, layoutId: n }) {
5165
+ function Ea(e, { layout: t, layoutId: n }) {
5166
5166
  return Qe.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!xt[e] || e === "opacity");
5167
5167
  }
5168
5168
  const Id = {
@@ -5179,7 +5179,7 @@ function Dd(e, t, n) {
5179
5179
  continue;
5180
5180
  let l = !0;
5181
5181
  if (typeof o == "number" ? l = o === (a.startsWith("scale") ? 1 : 0) : l = parseFloat(o) === 0, !l || n) {
5182
- const u = fa(o, xr[a]);
5182
+ const u = ma(o, xr[a]);
5183
5183
  if (!l) {
5184
5184
  i = !1;
5185
5185
  const c = Id[a] || a;
@@ -5202,7 +5202,7 @@ function Sr(e, t, n) {
5202
5202
  i[l] = u;
5203
5203
  continue;
5204
5204
  } else {
5205
- const c = fa(u, xr[l]);
5205
+ const c = ma(u, xr[l]);
5206
5206
  l.startsWith("origin") ? (o = !0, s[l] = c) : r[l] = c;
5207
5207
  }
5208
5208
  }
@@ -5217,9 +5217,9 @@ const Er = () => ({
5217
5217
  transformOrigin: {},
5218
5218
  vars: {}
5219
5219
  });
5220
- function Ea(e, t, n) {
5220
+ function ja(e, t, n) {
5221
5221
  for (const r in t)
5222
- !J(t[r]) && !Sa(r, n) && (e[r] = t[r]);
5222
+ !J(t[r]) && !Ea(r, n) && (e[r] = t[r]);
5223
5223
  }
5224
5224
  function Nd({ transformTemplate: e }, t) {
5225
5225
  return he(() => {
@@ -5229,7 +5229,7 @@ function Nd({ transformTemplate: e }, t) {
5229
5229
  }
5230
5230
  function Od(e, t) {
5231
5231
  const n = e.style || {}, r = {};
5232
- return Ea(r, n, e), Object.assign(r, Nd(e, t)), r;
5232
+ return ja(r, n, e), Object.assign(r, Nd(e, t)), r;
5233
5233
  }
5234
5234
  function _d(e, t) {
5235
5235
  const n = {}, r = Od(e, t);
@@ -5249,7 +5249,7 @@ function qd(e, t, n = 1, r = 0, i = !0) {
5249
5249
  const a = A.transform(t), o = A.transform(n);
5250
5250
  e[s.array] = `${a} ${o}`;
5251
5251
  }
5252
- function ja(e, {
5252
+ function Va(e, {
5253
5253
  attrX: t,
5254
5254
  attrY: n,
5255
5255
  attrScale: r,
@@ -5267,21 +5267,21 @@ function ja(e, {
5267
5267
  const { attrs: d, style: p } = e;
5268
5268
  d.transform && (p.transform = d.transform, delete d.transform), (p.transform || d.transformOrigin) && (p.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), p.transform && (p.transformBox = c?.transformBox ?? "fill-box", delete d.transformBox), t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && qd(d, i, s, a, !1);
5269
5269
  }
5270
- const Va = () => ({
5270
+ const Ra = () => ({
5271
5271
  ...Er(),
5272
5272
  attrs: {}
5273
- }), Ra = (e) => typeof e == "string" && e.toLowerCase() === "svg";
5273
+ }), Ma = (e) => typeof e == "string" && e.toLowerCase() === "svg";
5274
5274
  function Kd(e, t, n, r) {
5275
5275
  const i = he(() => {
5276
- const s = Va();
5277
- return ja(s, t, Ra(r), e.transformTemplate, e.style), {
5276
+ const s = Ra();
5277
+ return Va(s, t, Ma(r), e.transformTemplate, e.style), {
5278
5278
  ...s.attrs,
5279
5279
  style: { ...s.style }
5280
5280
  };
5281
5281
  }, [t]);
5282
5282
  if (e.style) {
5283
5283
  const s = {};
5284
- Ea(s, e.style, e), i.style = { ...s, ...i.style };
5284
+ ja(s, e.style, e), i.style = { ...s, ...i.style };
5285
5285
  }
5286
5286
  return i;
5287
5287
  }
@@ -5335,7 +5335,7 @@ function jr(e) {
5335
5335
  function Ud(e = !1) {
5336
5336
  return (n, r, i, { latestValues: s }, a) => {
5337
5337
  const l = (jr(n) ? Kd : _d)(r, s, a, n), u = bd(r, typeof n == "string", e), c = n !== xs ? { ...u, ...l, ref: i } : {}, { children: d } = r, p = he(() => J(d) ? d.get() : d, [d]);
5338
- return Co(n, {
5338
+ return To(n, {
5339
5339
  ...c,
5340
5340
  children: p
5341
5341
  });
@@ -5367,7 +5367,7 @@ function $d({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
5367
5367
  renderState: t()
5368
5368
  };
5369
5369
  }
5370
- const Ma = (e) => (t, n) => {
5370
+ const Ia = (e) => (t, n) => {
5371
5371
  const r = _(en), i = _(Qt), s = () => $d(e, t, r, i);
5372
5372
  return n ? s() : Qn(s);
5373
5373
  };
@@ -5376,7 +5376,7 @@ function Gd(e, t, n, r) {
5376
5376
  for (const p in s)
5377
5377
  i[p] = Ut(s[p]);
5378
5378
  let { initial: a, animate: o } = e;
5379
- const l = nn(e), u = ka(e);
5379
+ const l = nn(e), u = wa(e);
5380
5380
  t && u && !l && e.inherit !== !1 && (a === void 0 && (a = t.initial), o === void 0 && (o = t.animate));
5381
5381
  let c = n ? n.initial === !1 : !1;
5382
5382
  c = c || a === !1;
@@ -5405,16 +5405,16 @@ function Gd(e, t, n, r) {
5405
5405
  function Rr(e, t, n) {
5406
5406
  const { style: r } = e, i = {};
5407
5407
  for (const s in r)
5408
- (J(r[s]) || t.style && J(t.style[s]) || Sa(s, e) || n?.getValue(s)?.liveStyle !== void 0) && (i[s] = r[s]);
5408
+ (J(r[s]) || t.style && J(t.style[s]) || Ea(s, e) || n?.getValue(s)?.liveStyle !== void 0) && (i[s] = r[s]);
5409
5409
  return i;
5410
5410
  }
5411
5411
  const Wd = {
5412
- useVisualState: Ma({
5412
+ useVisualState: Ia({
5413
5413
  scrapeMotionValuesFromProps: Rr,
5414
5414
  createRenderState: Er
5415
5415
  })
5416
5416
  };
5417
- function Ia(e, t, n) {
5417
+ function La(e, t, n) {
5418
5418
  const r = Rr(e, t, n);
5419
5419
  for (const i in e)
5420
5420
  if (J(e[i]) || J(t[i])) {
@@ -5424,9 +5424,9 @@ function Ia(e, t, n) {
5424
5424
  return r;
5425
5425
  }
5426
5426
  const Yd = {
5427
- useVisualState: Ma({
5428
- scrapeMotionValuesFromProps: Ia,
5429
- createRenderState: Va
5427
+ useVisualState: Ia({
5428
+ scrapeMotionValuesFromProps: La,
5429
+ createRenderState: Ra
5430
5430
  })
5431
5431
  };
5432
5432
  function Hd(e, t) {
@@ -5473,8 +5473,8 @@ function qn(e, t) {
5473
5473
  e.addValue("willChange", r), r.add(t);
5474
5474
  }
5475
5475
  }
5476
- function La(e) {
5477
- return e.props[wa];
5476
+ function Da(e) {
5477
+ return e.props[Pa];
5478
5478
  }
5479
5479
  const e0 = (e) => e !== null;
5480
5480
  function t0(e, { repeat: t, repeatType: n = "loop" }, r) {
@@ -5539,7 +5539,7 @@ function l0({ protectedKeys: e, needsAnimating: t }, n) {
5539
5539
  const r = e.hasOwnProperty(n) && t[n] !== !0;
5540
5540
  return t[n] = !1, r;
5541
5541
  }
5542
- function Da(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
5542
+ function Na(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
5543
5543
  let { transition: s = e.getDefaultTransition(), transitionEnd: a, ...o } = t;
5544
5544
  r && (s = r);
5545
5545
  const l = [], u = i && e.animationState && e.animationState.getState()[i];
@@ -5555,13 +5555,13 @@ function Da(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
5555
5555
  continue;
5556
5556
  let g = !1;
5557
5557
  if (window.MotionHandoffAnimation) {
5558
- const y = La(e);
5558
+ const y = Da(e);
5559
5559
  if (y) {
5560
5560
  const T = window.MotionHandoffAnimation(y, c, F);
5561
5561
  T !== null && (f.startTime = T, g = !0);
5562
5562
  }
5563
5563
  }
5564
- qn(e, c), d.start(Mr(c, d, p, e.shouldReduceMotion && ca.has(c) ? { type: !1 } : f, e, g));
5564
+ qn(e, c), d.start(Mr(c, d, p, e.shouldReduceMotion && ua.has(c) ? { type: !1 } : f, e, g));
5565
5565
  const v = d.animation;
5566
5566
  v && l.push(v);
5567
5567
  }
@@ -5575,7 +5575,7 @@ function Kn(e, t, n = {}) {
5575
5575
  const r = Ct(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0);
5576
5576
  let { transition: i = e.getDefaultTransition() || {} } = r || {};
5577
5577
  n.transitionOverride && (i = n.transitionOverride);
5578
- const s = r ? () => Promise.all(Da(e, r, n)) : () => Promise.resolve(), a = e.variantChildren && e.variantChildren.size ? (l = 0) => {
5578
+ const s = r ? () => Promise.all(Na(e, r, n)) : () => Promise.resolve(), a = e.variantChildren && e.variantChildren.size ? (l = 0) => {
5579
5579
  const { delayChildren: u = 0, staggerChildren: c, staggerDirection: d } = i;
5580
5580
  return c0(e, t, u + l, c, d, n);
5581
5581
  } : () => Promise.resolve(), { when: o } = i;
@@ -5607,13 +5607,13 @@ function d0(e, t, n = {}) {
5607
5607
  r = Kn(e, t, n);
5608
5608
  else {
5609
5609
  const i = typeof t == "function" ? Ct(e, t, n.custom) : t;
5610
- r = Promise.all(Da(e, i, n));
5610
+ r = Promise.all(Na(e, i, n));
5611
5611
  }
5612
5612
  return r.then(() => {
5613
5613
  e.notify("AnimationComplete", t);
5614
5614
  });
5615
5615
  }
5616
- function Na(e, t) {
5616
+ function Oa(e, t) {
5617
5617
  if (!Array.isArray(t))
5618
5618
  return !1;
5619
5619
  const n = t.length;
@@ -5625,11 +5625,11 @@ function Na(e, t) {
5625
5625
  return !0;
5626
5626
  }
5627
5627
  const h0 = Pr.length;
5628
- function Oa(e) {
5628
+ function _a(e) {
5629
5629
  if (!e)
5630
5630
  return;
5631
5631
  if (!e.isControllingVariants) {
5632
- const n = e.parent ? Oa(e.parent) || {} : {};
5632
+ const n = e.parent ? _a(e.parent) || {} : {};
5633
5633
  return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
5634
5634
  }
5635
5635
  const t = {};
@@ -5657,7 +5657,7 @@ function g0(e) {
5657
5657
  t = l(e);
5658
5658
  }
5659
5659
  function a(l) {
5660
- const { props: u } = e, c = Oa(e.parent) || {}, d = [], p = /* @__PURE__ */ new Set();
5660
+ const { props: u } = e, c = _a(e.parent) || {}, d = [], p = /* @__PURE__ */ new Set();
5661
5661
  let f = {}, m = 1 / 0;
5662
5662
  for (let v = 0; v < f0; v++) {
5663
5663
  const y = p0[v], T = n[y], b = u[y] !== void 0 ? u[y] : c[y], k = bt(b), C = y === l ? T.isActive : null;
@@ -5688,7 +5688,7 @@ function g0(e) {
5688
5688
  if (f.hasOwnProperty(M))
5689
5689
  continue;
5690
5690
  let x = !1;
5691
- Fn(L) && Fn(U) ? x = !Na(L, U) : x = L !== U, x ? L != null ? G(M) : p.add(M) : L !== void 0 && p.has(M) ? G(M) : T.protectedKeys[M] = !0;
5691
+ Fn(L) && Fn(U) ? x = !Oa(L, U) : x = L !== U, x ? L != null ? G(M) : p.add(M) : L !== void 0 && p.has(M) ? G(M) : T.protectedKeys[M] = !0;
5692
5692
  }
5693
5693
  T.prevProp = b, T.prevResolvedValues = q, T.isActive && (f = { ...f, ...q }), r && e.blockInitialAnimation && (P = !1), P && (!(w && E) || V) && d.push(...I.map((M) => ({
5694
5694
  animation: M,
@@ -5729,7 +5729,7 @@ function g0(e) {
5729
5729
  };
5730
5730
  }
5731
5731
  function y0(e, t) {
5732
- return typeof t == "string" ? t !== e : Array.isArray(t) ? !Na(t, e) : !1;
5732
+ return typeof t == "string" ? t !== e : Array.isArray(t) ? !Oa(t, e) : !1;
5733
5733
  }
5734
5734
  function Ve(e = !1) {
5735
5735
  return {
@@ -5830,7 +5830,7 @@ const T0 = (e) => (t) => Tr(t) && e(t, St(t));
5830
5830
  function ht(e, t, n, r) {
5831
5831
  return Tt(e, t, T0(n), r);
5832
5832
  }
5833
- function _a({ top: e, left: t, right: n, bottom: r }) {
5833
+ function Ba({ top: e, left: t, right: n, bottom: r }) {
5834
5834
  return {
5835
5835
  x: { min: t, max: n },
5836
5836
  y: { min: e, max: r }
@@ -5850,7 +5850,7 @@ function w0(e, t) {
5850
5850
  right: r.x
5851
5851
  };
5852
5852
  }
5853
- const Ba = 1e-4, P0 = 1 - Ba, A0 = 1 + Ba, Fa = 0.01, S0 = 0 - Fa, E0 = 0 + Fa;
5853
+ const Fa = 1e-4, P0 = 1 - Fa, A0 = 1 + Fa, qa = 0.01, S0 = 0 - qa, E0 = 0 + qa;
5854
5854
  function ee(e) {
5855
5855
  return e.max - e.min;
5856
5856
  }
@@ -5897,9 +5897,9 @@ function zn({ scale: e, scaleX: t, scaleY: n }) {
5897
5897
  return !gn(e) || !gn(t) || !gn(n);
5898
5898
  }
5899
5899
  function Me(e) {
5900
- return zn(e) || qa(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
5900
+ return zn(e) || Ka(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
5901
5901
  }
5902
- function qa(e) {
5902
+ function Ka(e) {
5903
5903
  return Si(e.x) || Si(e.y);
5904
5904
  }
5905
5905
  function Si(e) {
@@ -5915,7 +5915,7 @@ function Ei(e, t, n, r, i) {
5915
5915
  function Un(e, t = 0, n = 1, r, i) {
5916
5916
  e.min = Ei(e.min, t, n, r, i), e.max = Ei(e.max, t, n, r, i);
5917
5917
  }
5918
- function Ka(e, { x: t, y: n }) {
5918
+ function za(e, { x: t, y: n }) {
5919
5919
  Un(e.x, t.translate, t.scale, t.originPoint), Un(e.y, n.translate, n.scale, n.originPoint);
5920
5920
  }
5921
5921
  const ji = 0.999999999999, Vi = 1.0000000000001;
@@ -5931,7 +5931,7 @@ function R0(e, t, n, r = !1) {
5931
5931
  l && l.props.style && l.props.style.display === "contents" || (r && s.options.layoutScroll && s.scroll && s !== s.root && $e(e, {
5932
5932
  x: -s.scroll.offset.x,
5933
5933
  y: -s.scroll.offset.y
5934
- }), a && (t.x *= a.x.scale, t.y *= a.y.scale, Ka(e, a)), r && Me(s.latestValues) && $e(e, s.latestValues));
5934
+ }), a && (t.x *= a.x.scale, t.y *= a.y.scale, za(e, a)), r && Me(s.latestValues) && $e(e, s.latestValues));
5935
5935
  }
5936
5936
  t.x < Vi && t.x > ji && (t.x = 1), t.y < Vi && t.y > ji && (t.y = 1);
5937
5937
  }
@@ -5945,19 +5945,19 @@ function Ri(e, t, n, r, i = 0.5) {
5945
5945
  function $e(e, t) {
5946
5946
  Ri(e.x, t.x, t.scaleX, t.scale, t.originX), Ri(e.y, t.y, t.scaleY, t.scale, t.originY);
5947
5947
  }
5948
- function za(e, t) {
5949
- return _a(w0(e.getBoundingClientRect(), t));
5948
+ function Ua(e, t) {
5949
+ return Ba(w0(e.getBoundingClientRect(), t));
5950
5950
  }
5951
5951
  function M0(e, t, n) {
5952
- const r = za(e, n), { scroll: i } = t;
5952
+ const r = Ua(e, n), { scroll: i } = t;
5953
5953
  return i && (Ue(r.x, i.offset.x), Ue(r.y, i.offset.y)), r;
5954
5954
  }
5955
- const Ua = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Mi = (e, t) => Math.abs(e - t);
5955
+ const $a = ({ current: e }) => e ? e.ownerDocument.defaultView : null, Mi = (e, t) => Math.abs(e - t);
5956
5956
  function I0(e, t) {
5957
5957
  const n = Mi(e.x, t.x), r = Mi(e.y, t.y);
5958
5958
  return Math.sqrt(n ** 2 + r ** 2);
5959
5959
  }
5960
- class $a {
5960
+ class Ga {
5961
5961
  constructor(t, n, { transformPagePoint: r, contextWindow: i, dragSnapToOrigin: s = !1 } = {}) {
5962
5962
  if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
5963
5963
  if (!(this.lastMoveEvent && this.lastMoveEventInfo))
@@ -6002,7 +6002,7 @@ function Ii(e, t) {
6002
6002
  function vn({ point: e }, t) {
6003
6003
  return {
6004
6004
  point: e,
6005
- delta: Ii(e, Ga(t)),
6005
+ delta: Ii(e, Wa(t)),
6006
6006
  offset: Ii(e, L0(t)),
6007
6007
  velocity: D0(t, 0.1)
6008
6008
  };
@@ -6010,14 +6010,14 @@ function vn({ point: e }, t) {
6010
6010
  function L0(e) {
6011
6011
  return e[0];
6012
6012
  }
6013
- function Ga(e) {
6013
+ function Wa(e) {
6014
6014
  return e[e.length - 1];
6015
6015
  }
6016
6016
  function D0(e, t) {
6017
6017
  if (e.length < 2)
6018
6018
  return { x: 0, y: 0 };
6019
6019
  let n = e.length - 1, r = null;
6020
- const i = Ga(e);
6020
+ const i = Wa(e);
6021
6021
  for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > /* @__PURE__ */ fe(t))); )
6022
6022
  n--;
6023
6023
  if (!r)
@@ -6121,7 +6121,7 @@ class z0 {
6121
6121
  }
6122
6122
  this.updateAxis("x", d.point, v), this.updateAxis("y", d.point, v), this.visualElement.render(), g && g(c, d);
6123
6123
  }, o = (c, d) => this.stop(c, d), l = () => le((c) => this.getAnimationState(c) === "paused" && this.getAxisMotionValue(c).animation?.play()), { dragSnapToOrigin: u } = this.getProps();
6124
- this.panSession = new $a(t, {
6124
+ this.panSession = new Ga(t, {
6125
6125
  onSessionStart: i,
6126
6126
  onStart: s,
6127
6127
  onMove: a,
@@ -6130,7 +6130,7 @@ class z0 {
6130
6130
  }, {
6131
6131
  transformPagePoint: this.visualElement.getTransformPagePoint(),
6132
6132
  dragSnapToOrigin: u,
6133
- contextWindow: Ua(this.visualElement)
6133
+ contextWindow: $a(this.visualElement)
6134
6134
  });
6135
6135
  }
6136
6136
  stop(t, n) {
@@ -6176,7 +6176,7 @@ class z0 {
6176
6176
  let a = _0(i.layout.layoutBox, s);
6177
6177
  if (n) {
6178
6178
  const o = n(k0(a));
6179
- this.hasMutatedConstraints = !!o, o && (a = _a(o));
6179
+ this.hasMutatedConstraints = !!o, o && (a = Ba(o));
6180
6180
  }
6181
6181
  return a;
6182
6182
  }
@@ -6326,9 +6326,9 @@ class G0 extends je {
6326
6326
  super(...arguments), this.removePointerDownListener = de;
6327
6327
  }
6328
6328
  onPointerDown(t) {
6329
- this.session = new $a(t, this.createPanHandlers(), {
6329
+ this.session = new Ga(t, this.createPanHandlers(), {
6330
6330
  transformPagePoint: this.node.getTransformPagePoint(),
6331
- contextWindow: Ua(this.node)
6331
+ contextWindow: $a(this.node)
6332
6332
  });
6333
6333
  }
6334
6334
  createPanHandlers() {
@@ -6390,7 +6390,7 @@ const lt = {
6390
6390
  return typeof i[2 + a] == "number" && (i[2 + a] /= u), typeof i[3 + a] == "number" && (i[3 + a] /= u), s(i);
6391
6391
  }
6392
6392
  };
6393
- class Y0 extends To {
6393
+ class Y0 extends ko {
6394
6394
  /**
6395
6395
  * This only mounts projection nodes for components that
6396
6396
  * need measuring, we might want to do it for all components
@@ -6430,9 +6430,9 @@ class Y0 extends To {
6430
6430
  return null;
6431
6431
  }
6432
6432
  }
6433
- function Wa(e) {
6434
- const [t, n] = ba(), r = _(Jn);
6435
- return h.jsx(Y0, { ...e, layoutGroup: r, switchLayoutGroup: _(Pa), isPresent: t, safeToRemove: n });
6433
+ function Ya(e) {
6434
+ const [t, n] = xa(), r = _(Jn);
6435
+ return h.jsx(Y0, { ...e, layoutGroup: r, switchLayoutGroup: _(Aa), isPresent: t, safeToRemove: n });
6436
6436
  }
6437
6437
  const H0 = {
6438
6438
  borderRadius: {
@@ -6476,11 +6476,11 @@ function Q0(e, t) {
6476
6476
  };
6477
6477
  return F.setup(r, !0), () => Se(r);
6478
6478
  }
6479
- const Ya = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], eh = Ya.length, Fi = (e) => typeof e == "string" ? parseFloat(e) : e, qi = (e) => typeof e == "number" || A.test(e);
6479
+ const Ha = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], eh = Ha.length, Fi = (e) => typeof e == "string" ? parseFloat(e) : e, qi = (e) => typeof e == "number" || A.test(e);
6480
6480
  function th(e, t, n, r, i, s) {
6481
6481
  i ? (e.opacity = B(0, n.opacity ?? 1, nh(r)), e.opacityExit = B(t.opacity ?? 1, 0, rh(r))) : s && (e.opacity = B(t.opacity ?? 1, n.opacity ?? 1, r));
6482
6482
  for (let a = 0; a < eh; a++) {
6483
- const o = `border${Ya[a]}Radius`;
6483
+ const o = `border${Ha[a]}Radius`;
6484
6484
  let l = Ki(t, o), u = Ki(n, o);
6485
6485
  if (l === void 0 && u === void 0)
6486
6486
  continue;
@@ -6491,8 +6491,8 @@ function th(e, t, n, r, i, s) {
6491
6491
  function Ki(e, t) {
6492
6492
  return e[t] !== void 0 ? e[t] : e.borderRadius;
6493
6493
  }
6494
- const nh = /* @__PURE__ */ Ha(0, 0.5, Fs), rh = /* @__PURE__ */ Ha(0.5, 0.95, de);
6495
- function Ha(e, t, n) {
6494
+ const nh = /* @__PURE__ */ Za(0, 0.5, qs), rh = /* @__PURE__ */ Za(0.5, 0.95, de);
6495
+ function Za(e, t, n) {
6496
6496
  return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ gt(e, t, r));
6497
6497
  }
6498
6498
  function zi(e, t) {
@@ -6523,7 +6523,7 @@ function Wi(e, t, n, r) {
6523
6523
  function Yi(e) {
6524
6524
  return e.translate === 0 && e.scale === 1;
6525
6525
  }
6526
- function Za(e) {
6526
+ function Xa(e) {
6527
6527
  return Yi(e.x) && Yi(e.y);
6528
6528
  }
6529
6529
  function Hi(e, t) {
@@ -6535,7 +6535,7 @@ function oh(e, t) {
6535
6535
  function Zi(e, t) {
6536
6536
  return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
6537
6537
  }
6538
- function Xa(e, t) {
6538
+ function Ja(e, t) {
6539
6539
  return Zi(e.x, t.x) && Zi(e.y, t.y);
6540
6540
  }
6541
6541
  function Xi(e) {
@@ -6614,21 +6614,21 @@ function xn(e, t, n, r) {
6614
6614
  const { latestValues: i } = t;
6615
6615
  i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
6616
6616
  }
6617
- function Ja(e) {
6617
+ function Qa(e) {
6618
6618
  if (e.hasCheckedOptimisedAppear = !0, e.root === e)
6619
6619
  return;
6620
6620
  const { visualElement: t } = e.options;
6621
6621
  if (!t)
6622
6622
  return;
6623
- const n = La(t);
6623
+ const n = Da(t);
6624
6624
  if (window.MotionHasOptimisedAnimation(n, "transform")) {
6625
6625
  const { layout: i, layoutId: s } = e.options;
6626
6626
  window.MotionCancelOptimisedAnimation(n, "transform", F, !(i || s));
6627
6627
  }
6628
6628
  const { parent: r } = e;
6629
- r && !r.hasCheckedOptimisedAppear && Ja(r);
6629
+ r && !r.hasCheckedOptimisedAppear && Qa(r);
6630
6630
  }
6631
- function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
6631
+ function eo({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
6632
6632
  return class {
6633
6633
  constructor(a = {}, o = t?.()) {
6634
6634
  this.id = hh++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
@@ -6656,7 +6656,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6656
6656
  mount(a) {
6657
6657
  if (this.instance)
6658
6658
  return;
6659
- this.isSVG = va(a) && !cd(a), this.instance = a;
6659
+ this.isSVG = ba(a) && !cd(a), this.instance = a;
6660
6660
  const { layoutId: o, layout: l, visualElement: u } = this.options;
6661
6661
  if (u && !u.current && u.mount(a), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (l || o) && (this.isLayoutDirty = !0), e) {
6662
6662
  let c;
@@ -6670,7 +6670,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6670
6670
  this.target = void 0, this.relativeTarget = void 0;
6671
6671
  return;
6672
6672
  }
6673
- const m = this.options.transition || u.getDefaultTransition() || Ah, { onLayoutAnimationStart: g, onLayoutAnimationComplete: v } = u.getProps(), y = !this.targetLayout || !Xa(this.targetLayout, f), T = !d && p;
6673
+ const m = this.options.transition || u.getDefaultTransition() || Ah, { onLayoutAnimationStart: g, onLayoutAnimationComplete: v } = u.getProps(), y = !this.targetLayout || !Ja(this.targetLayout, f), T = !d && p;
6674
6674
  if (this.options.layoutRoot || this.resumeFrom || T || d && (y || !this.currentAnimation)) {
6675
6675
  this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(c, T);
6676
6676
  const b = {
@@ -6715,7 +6715,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6715
6715
  this.options.onExitComplete && this.options.onExitComplete();
6716
6716
  return;
6717
6717
  }
6718
- if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Ja(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
6718
+ if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && Qa(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
6719
6719
  return;
6720
6720
  this.isLayoutDirty = !0;
6721
6721
  for (let c = 0; c < this.path.length; c++) {
@@ -6784,7 +6784,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6784
6784
  resetTransform() {
6785
6785
  if (!i)
6786
6786
  return;
6787
- const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, o = this.projectionDelta && !Za(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
6787
+ const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, o = this.projectionDelta && !Xa(this.projectionDelta), l = this.getTransformTemplate(), u = l ? l(this.latestValues, "") : void 0, c = u !== this.prevTransformTemplateValue;
6788
6788
  a && this.instance && (o || Me(this.latestValues) || c) && (i(this.instance, u), this.shouldResetTransform = !1, this.scheduleRender());
6789
6789
  }
6790
6790
  measure(a = !0) {
@@ -6872,7 +6872,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6872
6872
  const p = this.getClosestProjectingParent();
6873
6873
  p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = K(), this.relativeTargetOrigin = K(), ft(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), oe(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
6874
6874
  }
6875
- if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = K(), this.targetWithTransforms = K()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), V0(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : oe(this.target, this.layout.layoutBox), Ka(this.target, this.targetDelta)) : oe(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
6875
+ if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = K(), this.targetWithTransforms = K()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), V0(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : oe(this.target, this.layout.layoutBox), za(this.target, this.targetDelta)) : oe(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
6876
6876
  this.attemptToResolveRelativeTarget = !1;
6877
6877
  const p = this.getClosestProjectingParent();
6878
6878
  p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = K(), this.relativeTargetOrigin = K(), ft(this.relativeTargetOrigin, this.target, p.target), oe(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
@@ -6880,7 +6880,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6880
6880
  }
6881
6881
  }
6882
6882
  getClosestProjectingParent() {
6883
- if (!(!this.parent || zn(this.parent.latestValues) || qa(this.parent.latestValues)))
6883
+ if (!(!this.parent || zn(this.parent.latestValues) || Ka(this.parent.latestValues)))
6884
6884
  return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
6885
6885
  }
6886
6886
  isProjecting() {
@@ -6959,7 +6959,7 @@ function Qa({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
6959
6959
  const a = this.getLead();
6960
6960
  let { targetWithTransforms: o, target: l, layout: u, latestValues: c } = a;
6961
6961
  if (!(!o || !l || !u)) {
6962
- if (this !== a && this.layout && u && eo(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
6962
+ if (this !== a && this.layout && u && to(this.options.animationType, this.layout.layoutBox, u.layoutBox)) {
6963
6963
  l = this.target || K();
6964
6964
  const d = ee(this.layout.layoutBox.x);
6965
6965
  l.x.min = a.target.x.min, l.x.max = l.x.min + d;
@@ -7070,7 +7070,7 @@ function fh(e) {
7070
7070
  i === "size" ? le((c) => {
7071
7071
  const d = s ? t.measuredBox[c] : t.layoutBox[c], p = ee(d);
7072
7072
  d.min = n[c].min, d.max = d.min + p;
7073
- }) : eo(i, t.layoutBox, n) && le((c) => {
7073
+ }) : to(i, t.layoutBox, n) && le((c) => {
7074
7074
  const d = s ? t.measuredBox[c] : t.layoutBox[c], p = ee(n[c]);
7075
7075
  d.max = d.min + p, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[c].max = e.relativeTarget[c].min + p);
7076
7076
  });
@@ -7078,7 +7078,7 @@ function fh(e) {
7078
7078
  pt(a, n, t.layoutBox);
7079
7079
  const o = ze();
7080
7080
  s ? pt(o, e.applyTransform(r, !0), t.measuredBox) : pt(o, n, t.layoutBox);
7081
- const l = !Za(a);
7081
+ const l = !Xa(a);
7082
7082
  let u = !1;
7083
7083
  if (!e.resumeFrom) {
7084
7084
  const c = e.getClosestProjectingParent();
@@ -7088,7 +7088,7 @@ function fh(e) {
7088
7088
  const f = K();
7089
7089
  ft(f, t.layoutBox, d.layoutBox);
7090
7090
  const m = K();
7091
- ft(m, n, p.layoutBox), Xa(f, m) || (u = !0), c.options.layoutRoot && (e.relativeTarget = m, e.relativeTargetOrigin = f, e.relativeParent = c);
7091
+ ft(m, n, p.layoutBox), Ja(f, m) || (u = !0), c.options.layoutRoot && (e.relativeTarget = m, e.relativeTargetOrigin = f, e.relativeParent = c);
7092
7092
  }
7093
7093
  }
7094
7094
  }
@@ -7162,13 +7162,13 @@ function ss(e) {
7162
7162
  function Sh(e) {
7163
7163
  ss(e.x), ss(e.y);
7164
7164
  }
7165
- function eo(e, t, n) {
7165
+ function to(e, t, n) {
7166
7166
  return e === "position" || e === "preserve-aspect" && !j0(Xi(t), Xi(n), 0.2);
7167
7167
  }
7168
7168
  function Eh(e) {
7169
7169
  return e !== e.root && e.scroll?.wasRoot;
7170
7170
  }
7171
- const jh = Qa({
7171
+ const jh = eo({
7172
7172
  attachResizeListener: (e, t) => Tt(e, "resize", t),
7173
7173
  measureScroll: () => ({
7174
7174
  x: document.documentElement.scrollLeft || document.body.scrollLeft,
@@ -7177,7 +7177,7 @@ const jh = Qa({
7177
7177
  checkIsScrollRoot: () => !0
7178
7178
  }), Cn = {
7179
7179
  current: void 0
7180
- }, to = Qa({
7180
+ }, no = eo({
7181
7181
  measureScroll: (e) => ({
7182
7182
  x: e.scrollLeft,
7183
7183
  y: e.scrollTop
@@ -7199,8 +7199,8 @@ const jh = Qa({
7199
7199
  },
7200
7200
  drag: {
7201
7201
  Feature: $0,
7202
- ProjectionNode: to,
7203
- MeasureLayout: Wa
7202
+ ProjectionNode: no,
7203
+ MeasureLayout: Ya
7204
7204
  }
7205
7205
  };
7206
7206
  function as(e, t, n) {
@@ -7327,12 +7327,12 @@ const qh = {
7327
7327
  }
7328
7328
  }, Kh = {
7329
7329
  layout: {
7330
- ProjectionNode: to,
7331
- MeasureLayout: Wa
7330
+ ProjectionNode: no,
7331
+ MeasureLayout: Ya
7332
7332
  }
7333
- }, Wn = { current: null }, no = { current: !1 };
7333
+ }, Wn = { current: null }, ro = { current: !1 };
7334
7334
  function zh() {
7335
- if (no.current = !0, !!er)
7335
+ if (ro.current = !0, !!er)
7336
7336
  if (window.matchMedia) {
7337
7337
  const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Wn.current = e.matches;
7338
7338
  e.addListener(t), t();
@@ -7388,7 +7388,7 @@ class Gh {
7388
7388
  this.renderScheduledAt < p && (this.renderScheduledAt = p, F.render(this.render, !1, !0));
7389
7389
  };
7390
7390
  const { latestValues: l, renderState: u } = a;
7391
- this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!s, this.isControllingVariants = nn(n), this.isVariantNode = ka(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
7391
+ this.latestValues = l, this.baseTarget = { ...l }, this.initialValues = n.initial ? { ...l } : {}, this.renderState = u, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!s, this.isControllingVariants = nn(n), this.isVariantNode = wa(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
7392
7392
  const { willChange: c, ...d } = this.scrapeMotionValuesFromProps(n, {}, this);
7393
7393
  for (const p in d) {
7394
7394
  const f = d[p];
@@ -7396,7 +7396,7 @@ class Gh {
7396
7396
  }
7397
7397
  }
7398
7398
  mount(t) {
7399
- this.current = t, Uh.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), no.current || zh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Wn.current, process.env.NODE_ENV !== "production" && sr(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
7399
+ this.current = t, Uh.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), ro.current || zh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Wn.current, process.env.NODE_ENV !== "production" && sr(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
7400
7400
  }
7401
7401
  unmount() {
7402
7402
  this.projection && this.projection.unmount(), Se(this.notifyUpdate), Se(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
@@ -7530,7 +7530,7 @@ class Gh {
7530
7530
  */
7531
7531
  readValue(t, n) {
7532
7532
  let r = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.getBaseTargetFromProps(this.props, t) ?? this.readValueFromInstance(this.current, t, this.options);
7533
- return r != null && (typeof r == "string" && (Vs(r) || Ms(r)) ? r = parseFloat(r) : !dd(r) && Ee.test(n) && (r = pa(t, n)), this.setBaseTarget(t, J(r) ? r.get() : r)), J(r) ? r.get() : r;
7533
+ return r != null && (typeof r == "string" && (Rs(r) || Is(r)) ? r = parseFloat(r) : !dd(r) && Ee.test(n) && (r = fa(t, n)), this.setBaseTarget(t, J(r) ? r.get() : r)), J(r) ? r.get() : r;
7534
7534
  }
7535
7535
  /**
7536
7536
  * Set the base target to later animate back to. This is currently
@@ -7562,7 +7562,7 @@ class Gh {
7562
7562
  this.events[t] && this.events[t].notify(...n);
7563
7563
  }
7564
7564
  }
7565
- class ro extends Gh {
7565
+ class io extends Gh {
7566
7566
  constructor() {
7567
7567
  super(...arguments), this.KeyframeResolver = Qu;
7568
7568
  }
@@ -7583,7 +7583,7 @@ class ro extends Gh {
7583
7583
  }));
7584
7584
  }
7585
7585
  }
7586
- function io(e, { style: t, vars: n }, r, i) {
7586
+ function so(e, { style: t, vars: n }, r, i) {
7587
7587
  Object.assign(e.style, t, i && i.getProjectionStyles(r));
7588
7588
  for (const s in n)
7589
7589
  e.style.setProperty(s, n[s]);
@@ -7591,9 +7591,9 @@ function io(e, { style: t, vars: n }, r, i) {
7591
7591
  function Wh(e) {
7592
7592
  return window.getComputedStyle(e);
7593
7593
  }
7594
- class Yh extends ro {
7594
+ class Yh extends io {
7595
7595
  constructor() {
7596
- super(...arguments), this.type = "html", this.renderInstance = io;
7596
+ super(...arguments), this.type = "html", this.renderInstance = so;
7597
7597
  }
7598
7598
  readValueFromInstance(t, n) {
7599
7599
  if (Qe.has(n))
@@ -7604,7 +7604,7 @@ class Yh extends ro {
7604
7604
  }
7605
7605
  }
7606
7606
  measureInstanceViewportBox(t, { transformPagePoint: n }) {
7607
- return za(t, n);
7607
+ return Ua(t, n);
7608
7608
  }
7609
7609
  build(t, n, r) {
7610
7610
  Sr(t, n, r.transformTemplate);
@@ -7613,7 +7613,7 @@ class Yh extends ro {
7613
7613
  return Rr(t, n, r);
7614
7614
  }
7615
7615
  }
7616
- const so = /* @__PURE__ */ new Set([
7616
+ const ao = /* @__PURE__ */ new Set([
7617
7617
  "baseFrequency",
7618
7618
  "diffuseConstant",
7619
7619
  "kernelMatrix",
@@ -7639,11 +7639,11 @@ const so = /* @__PURE__ */ new Set([
7639
7639
  "lengthAdjust"
7640
7640
  ]);
7641
7641
  function Hh(e, t, n, r) {
7642
- io(e, t, void 0, r);
7642
+ so(e, t, void 0, r);
7643
7643
  for (const i in t.attrs)
7644
- e.setAttribute(so.has(i) ? i : Ar(i), t.attrs[i]);
7644
+ e.setAttribute(ao.has(i) ? i : Ar(i), t.attrs[i]);
7645
7645
  }
7646
- class Zh extends ro {
7646
+ class Zh extends io {
7647
7647
  constructor() {
7648
7648
  super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = K;
7649
7649
  }
@@ -7652,22 +7652,22 @@ class Zh extends ro {
7652
7652
  }
7653
7653
  readValueFromInstance(t, n) {
7654
7654
  if (Qe.has(n)) {
7655
- const r = ha(n);
7655
+ const r = pa(n);
7656
7656
  return r && r.default || 0;
7657
7657
  }
7658
- return n = so.has(n) ? n : Ar(n), t.getAttribute(n);
7658
+ return n = ao.has(n) ? n : Ar(n), t.getAttribute(n);
7659
7659
  }
7660
7660
  scrapeMotionValuesFromProps(t, n, r) {
7661
- return Ia(t, n, r);
7661
+ return La(t, n, r);
7662
7662
  }
7663
7663
  build(t, n, r) {
7664
- ja(t, n, this.isSVGTag, r.transformTemplate, r.style);
7664
+ Va(t, n, this.isSVGTag, r.transformTemplate, r.style);
7665
7665
  }
7666
7666
  renderInstance(t, n, r, i) {
7667
7667
  Hh(t, n, r, i);
7668
7668
  }
7669
7669
  mount(t) {
7670
- this.isSVGTag = Ra(t.tagName), super.mount(t);
7670
+ this.isSVGTag = Ma(t.tagName), super.mount(t);
7671
7671
  }
7672
7672
  }
7673
7673
  const Xh = (e, t) => jr(e) ? new Zh(t) : new Yh(t, {
@@ -7693,7 +7693,7 @@ const Xh = (e, t) => jr(e) ? new Zh(t) : new Yh(t, {
7693
7693
  height: { duration: 0.2 },
7694
7694
  opacity: { duration: 0.2 }
7695
7695
  }
7696
- }, Yn = ({ error: e, disabled: t, styles: n }) => /* @__PURE__ */ h.jsx(xa, { mode: "wait", children: e && !t && /* @__PURE__ */ h.jsx(
7696
+ }, Yn = ({ error: e, disabled: t, styles: n }) => /* @__PURE__ */ h.jsx(Ca, { mode: "wait", children: e && !t && /* @__PURE__ */ h.jsx(
7697
7697
  mt.div,
7698
7698
  {
7699
7699
  initial: Ot.initial,
@@ -7712,7 +7712,7 @@ const Xh = (e, t) => jr(e) ? new Zh(t) : new Yh(t, {
7712
7712
  style: r?.label?.styles,
7713
7713
  children: [
7714
7714
  /* @__PURE__ */ h.jsx("span", { className: ce.label, children: e }, e),
7715
- /* @__PURE__ */ h.jsx(xa, { mode: "wait", children: t && !n && /* @__PURE__ */ h.jsx(
7715
+ /* @__PURE__ */ h.jsx(Ca, { mode: "wait", children: t && !n && /* @__PURE__ */ h.jsx(
7716
7716
  mt.span,
7717
7717
  {
7718
7718
  initial: _t.initial,
@@ -8205,10 +8205,10 @@ const Xh = (e, t) => jr(e) ? new Zh(t) : new Yh(t, {
8205
8205
  /* @__PURE__ */ h.jsx("defs", { children: /* @__PURE__ */ h.jsx("clipPath", { id: "clip0_184_11820", children: /* @__PURE__ */ h.jsx("rect", { width: "30", height: "20" }) }) })
8206
8206
  ]
8207
8207
  }
8208
- ) }), R1 = "_cvcIcon_1qn9u_1", M1 = "_errorInput_1qn9u_6", ao = {
8208
+ ) }), R1 = "_cvcIcon_1qn9u_1", M1 = "_errorInput_1qn9u_6", oo = {
8209
8209
  cvcIcon: R1,
8210
8210
  errorInput: M1
8211
- }, I1 = null, oo = ne(I1), Et = () => _(oo), L1 = ({ children: e, styles: t }) => /* @__PURE__ */ h.jsx(oo.Provider, { value: t || null, children: e });
8211
+ }, I1 = null, lo = ne(I1), Et = () => _(lo), L1 = ({ children: e, styles: t }) => /* @__PURE__ */ h.jsx(lo.Provider, { value: t || null, children: e });
8212
8212
  var $ = /* @__PURE__ */ ((e) => (e.Invalid = "invalid", e.Empty = "empty", e.Incomplete = "incomplete", e.Unsupported = "unsupported", e.Expired = "expired", e))($ || {}), Q = /* @__PURE__ */ ((e) => (e.Visa = "visa", e.Mastercard = "mastercard", e.AmericanExpress = "american-express", e.Discover = "discover", e.JCB = "jcb", e.DinersClub = "diners-club", e.UnionPay = "unionpay", e.Maestro = "maestro", e))(Q || {});
8213
8213
  const Ir = [
8214
8214
  { name: "Visa", type: "visa", pattern: /^4/, minLength: 16, maxLength: 16 },
@@ -8225,7 +8225,7 @@ const Ir = [
8225
8225
  minLength: 12,
8226
8226
  maxLength: 19
8227
8227
  }
8228
- ], lo = (e) => Ir.find((t) => t.pattern.test(e)) || null, D1 = (e) => Ir.filter((t) => t.pattern.test(e)), N1 = (e) => {
8228
+ ], co = (e) => Ir.find((t) => t.pattern.test(e)) || null, D1 = (e) => Ir.filter((t) => t.pattern.test(e)), N1 = (e) => {
8229
8229
  let t = 0, n = !1;
8230
8230
  for (let r = e.length - 1; r >= 0; r--) {
8231
8231
  let i = parseInt(e[r]);
@@ -8238,7 +8238,7 @@ const Ir = [
8238
8238
  return { isValid: !1, cardType: null, error: $.Empty };
8239
8239
  if (!/^\d+$/.test(n))
8240
8240
  return { isValid: !1, cardType: null, error: $.Invalid };
8241
- const r = lo(n);
8241
+ const r = co(n);
8242
8242
  if (r) {
8243
8243
  if (n.length < r.minLength || n.length > r.maxLength)
8244
8244
  return {
@@ -8270,7 +8270,7 @@ const Ir = [
8270
8270
  return !r && !i ? null : r ? $.Empty : $.Incomplete;
8271
8271
  }, O1 = (e, t) => t ? {
8272
8272
  ...e?.card?.input,
8273
- container: { className: ve(ao.errorInput, e?.card?.input?.container?.className) }
8273
+ container: { className: ve(oo.errorInput, e?.card?.input?.container?.className) }
8274
8274
  } : e?.card?.input, _1 = ({ onChange: e, onError: t, id: n, value: r, isTouchSubmit: i, disabled: s, cardType: a = "" }) => {
8275
8275
  const o = Ye(), l = Et(), [u, c] = S(""), [d, p] = S(!0), [f, m] = S(!1), v = (i || f) && (!!u || d);
8276
8276
  te(() => {
@@ -8309,7 +8309,7 @@ const Ir = [
8309
8309
  onChange: T,
8310
8310
  onBlur: () => y(r),
8311
8311
  styles: O1(l, v),
8312
- endContent: v ? /* @__PURE__ */ h.jsx(sn, {}) : /* @__PURE__ */ h.jsx(n1, { className: ao.cvcIcon })
8312
+ endContent: v ? /* @__PURE__ */ h.jsx(sn, {}) : /* @__PURE__ */ h.jsx(n1, { className: oo.cvcIcon })
8313
8313
  }
8314
8314
  );
8315
8315
  }, B1 = "_errorInput_1ibdm_1", F1 = {
@@ -8430,7 +8430,7 @@ const Ir = [
8430
8430
  if (n) return;
8431
8431
  const { value: C } = k.currentTarget;
8432
8432
  d(""), f(!1), m || g(!0);
8433
- const w = D1(C).map((V) => V.type), E = lo(C), P = Ql(C, E?.type || "");
8433
+ const w = D1(C).map((V) => V.type), E = co(C), P = Ql(C, E?.type || "");
8434
8434
  P.replace(/\D/g, "").length === (E?.maxLength || 16) && y(P), u(w.length ? w : ps), e({
8435
8435
  card: P,
8436
8436
  cardType: E?.type || "",
@@ -8592,7 +8592,7 @@ const Ir = [
8592
8592
  /* @__PURE__ */ h.jsx(z1, { value: P.value, onChange: V, isTouchSubmit: I, disabled: e }),
8593
8593
  t ? /* @__PURE__ */ h.jsx(X1, { title: i.status.error }) : null,
8594
8594
  /* @__PURE__ */ h.jsxs(
8595
- Ss,
8595
+ Es,
8596
8596
  {
8597
8597
  type: "submit",
8598
8598
  color: "primary",
@@ -8653,7 +8653,7 @@ var z = function() {
8653
8653
  return t;
8654
8654
  }, z.apply(this, arguments);
8655
8655
  };
8656
- function co(e, t) {
8656
+ function uo(e, t) {
8657
8657
  var n = {};
8658
8658
  for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
8659
8659
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
@@ -8670,9 +8670,9 @@ var kt = "data-react-paypal-script-id", De = {
8670
8670
  DATA_LIBRARY_VALUE: "react-paypal-js",
8671
8671
  DATA_NAMESPACE: "dataNamespace",
8672
8672
  DATA_SDK_INTEGRATION_SOURCE: "dataSdkIntegrationSource"
8673
- }, op = "Failed to load the PayPal JS SDK script.", uo = "paypal", lp = "usePayPalScriptReducer must be used within a PayPalScriptProvider";
8673
+ }, op = "Failed to load the PayPal JS SDK script.", ho = "paypal", lp = "usePayPalScriptReducer must be used within a PayPalScriptProvider";
8674
8674
  function cp(e) {
8675
- return e === void 0 && (e = uo), window[e];
8675
+ return e === void 0 && (e = ho), window[e];
8676
8676
  }
8677
8677
  function up(e) {
8678
8678
  for (var t = "", n = 0; n < e.length; n++) {
@@ -8682,7 +8682,7 @@ function up(e) {
8682
8682
  return t;
8683
8683
  }
8684
8684
  function dp(e) {
8685
- var t = e.reactComponentName, n = e.sdkComponentKey, r = e.sdkRequestedComponents, i = r === void 0 ? "" : r, s = e.sdkDataNamespace, a = s === void 0 ? uo : s, o = n.charAt(0).toUpperCase().concat(n.substring(1)), l = "Unable to render <".concat(t, " /> because window.").concat(a, ".").concat(o, " is undefined."), u = typeof i == "string" ? i : i.join(",");
8685
+ var t = e.reactComponentName, n = e.sdkComponentKey, r = e.sdkRequestedComponents, i = r === void 0 ? "" : r, s = e.sdkDataNamespace, a = s === void 0 ? ho : s, o = n.charAt(0).toUpperCase().concat(n.substring(1)), l = "Unable to render <".concat(t, " /> because window.").concat(a, ".").concat(o, " is undefined."), u = typeof i == "string" ? i : i.join(",");
8686
8686
  if (!u.includes(n)) {
8687
8687
  var c = [u, n].filter(Boolean).join();
8688
8688
  l += `
@@ -8690,10 +8690,10 @@ To fix the issue, add '`.concat(n, "' to the list of components passed to the pa
8690
8690
  }
8691
8691
  return l;
8692
8692
  }
8693
- function ho(e) {
8693
+ function po(e) {
8694
8694
  var t = e, n = kt;
8695
8695
  t[n];
8696
- var r = co(t, [n + ""]);
8696
+ var r = uo(t, [n + ""]);
8697
8697
  return "react-paypal-js-".concat(up(JSON.stringify(r)));
8698
8698
  }
8699
8699
  function hp(e) {
@@ -8713,7 +8713,7 @@ function pp(e, t) {
8713
8713
  case Ae.RESET_OPTIONS:
8714
8714
  return hp(e.options[kt]), z(z({}, e), {
8715
8715
  loadingStatus: ie.PENDING,
8716
- options: z(z((n = {}, n[De.DATA_SDK_INTEGRATION_SOURCE] = De.DATA_LIBRARY_VALUE, n), t.value), (r = {}, r[kt] = "".concat(ho(t.value)), r))
8716
+ options: z(z((n = {}, n[De.DATA_SDK_INTEGRATION_SOURCE] = De.DATA_LIBRARY_VALUE, n), t.value), (r = {}, r[kt] = "".concat(po(t.value)), r))
8717
8717
  });
8718
8718
  case Ae.SET_BRAINTREE_INSTANCE:
8719
8719
  return z(z({}, e), {
@@ -8723,14 +8723,14 @@ function pp(e, t) {
8723
8723
  return e;
8724
8724
  }
8725
8725
  }
8726
- var po = ne(null);
8726
+ var fo = ne(null);
8727
8727
  function fp(e) {
8728
8728
  if (typeof e?.dispatch == "function" && e.dispatch.length !== 0)
8729
8729
  return e;
8730
8730
  throw new Error(lp);
8731
8731
  }
8732
8732
  function mp() {
8733
- var e = fp(_(po)), t = z(z({}, e), {
8733
+ var e = fp(_(fo)), t = z(z({}, e), {
8734
8734
  isInitial: e.loadingStatus === ie.INITIAL,
8735
8735
  isPending: e.loadingStatus === ie.PENDING,
8736
8736
  isResolved: e.loadingStatus === ie.RESOLVED,
@@ -8752,7 +8752,7 @@ function gp(e) {
8752
8752
  return t.current = Object.assign(t.current, e), t.current;
8753
8753
  }
8754
8754
  var Lr = function(e) {
8755
- var t, n = e.className, r = n === void 0 ? "" : n, i = e.disabled, s = i === void 0 ? !1 : i, a = e.children, o = e.forceReRender, l = o === void 0 ? [] : o, u = co(e, ["className", "disabled", "children", "forceReRender"]), c = s ? {
8755
+ var t, n = e.className, r = n === void 0 ? "" : n, i = e.disabled, s = i === void 0 ? !1 : i, a = e.children, o = e.forceReRender, l = o === void 0 ? [] : o, u = uo(e, ["className", "disabled", "children", "forceReRender"]), c = s ? {
8756
8756
  opacity: 0.38
8757
8757
  } : {}, d = "".concat(r, " ").concat(s ? "paypal-buttons-disabled" : "").trim(), p = ue(null), f = ue(null), m = gp(u), g = mp()[0], v = g.isResolved, y = g.options, T = S(null), b = T[0], k = T[1], C = S(!0), w = C[0], E = C[1], P = S(null), V = P[1];
8758
8758
  function I() {
@@ -8812,7 +8812,7 @@ function yp(e, t) {
8812
8812
  function vp(e, t) {
8813
8813
  var n = document.querySelector('script[src="'.concat(e, '"]'));
8814
8814
  if (n === null) return null;
8815
- var r = fo(e, t), i = n.cloneNode();
8815
+ var r = mo(e, t), i = n.cloneNode();
8816
8816
  if (delete i.dataset.uidAuto, Object.keys(i.dataset).length !== Object.keys(r.dataset).length)
8817
8817
  return null;
8818
8818
  var s = !0;
@@ -8821,7 +8821,7 @@ function vp(e, t) {
8821
8821
  }), s ? n : null;
8822
8822
  }
8823
8823
  function bp(e) {
8824
- var t = e.url, n = e.attributes, r = e.onSuccess, i = e.onError, s = fo(t, n);
8824
+ var t = e.url, n = e.attributes, r = e.onSuccess, i = e.onError, s = mo(t, n);
8825
8825
  s.onerror = i, s.onload = r, document.head.insertBefore(s, document.head.firstElementChild);
8826
8826
  }
8827
8827
  function xp(e) {
@@ -8854,7 +8854,7 @@ function Tp(e) {
8854
8854
  function kp(e) {
8855
8855
  return e === "sandbox" ? "https://www.sandbox.paypal.com/sdk/js" : "https://www.paypal.com/sdk/js";
8856
8856
  }
8857
- function fo(e, t) {
8857
+ function mo(e, t) {
8858
8858
  t === void 0 && (t = {});
8859
8859
  var n = document.createElement("script");
8860
8860
  return n.src = e, Object.keys(t).forEach(function(r) {
@@ -8862,7 +8862,7 @@ function fo(e, t) {
8862
8862
  }), n;
8863
8863
  }
8864
8864
  function wp(e, t) {
8865
- if (t === void 0 && (t = Promise), mo(e, t), typeof document > "u") return t.resolve(null);
8865
+ if (t === void 0 && (t = Promise), go(e, t), typeof document > "u") return t.resolve(null);
8866
8866
  var n = xp(e), r = n.url, i = n.attributes, s = i["data-namespace"] || "paypal", a = ys(s);
8867
8867
  return i["data-js-sdk-library"] || (i["data-js-sdk-library"] = "paypal-js"), vp(r, i) && a ? t.resolve(a) : Pp({
8868
8868
  url: r,
@@ -8875,7 +8875,7 @@ function wp(e, t) {
8875
8875
  });
8876
8876
  }
8877
8877
  function Pp(e, t) {
8878
- t === void 0 && (t = Promise), mo(e, t);
8878
+ t === void 0 && (t = Promise), go(e, t);
8879
8879
  var n = e.url, r = e.attributes;
8880
8880
  if (typeof n != "string" || n.length === 0)
8881
8881
  throw new Error("Invalid url.");
@@ -8899,7 +8899,7 @@ function Pp(e, t) {
8899
8899
  function ys(e) {
8900
8900
  return window[e];
8901
8901
  }
8902
- function mo(e, t) {
8902
+ function go(e, t) {
8903
8903
  if (typeof e != "object" || e === null)
8904
8904
  throw new Error("Expected an options object.");
8905
8905
  var n = e.environment;
@@ -8911,8 +8911,8 @@ function mo(e, t) {
8911
8911
  var Ap = function(e) {
8912
8912
  var t, n = e.options, r = n === void 0 ? {
8913
8913
  clientId: "test"
8914
- } : n, i = e.children, s = e.deferLoading, a = s === void 0 ? !1 : s, o = ko(pp, {
8915
- options: z(z({}, r), (t = {}, t[De.DATA_JS_SDK_LIBRARY] = De.DATA_LIBRARY_VALUE, t[De.DATA_SDK_INTEGRATION_SOURCE] = De.DATA_LIBRARY_VALUE, t[kt] = "".concat(ho(r)), t)),
8914
+ } : n, i = e.children, s = e.deferLoading, a = s === void 0 ? !1 : s, o = wo(pp, {
8915
+ options: z(z({}, r), (t = {}, t[De.DATA_JS_SDK_LIBRARY] = De.DATA_LIBRARY_VALUE, t[De.DATA_SDK_INTEGRATION_SOURCE] = De.DATA_LIBRARY_VALUE, t[kt] = "".concat(po(r)), t)),
8916
8916
  loadingStatus: a ? ie.INITIAL : ie.PENDING
8917
8917
  }), l = o[0], u = o[1];
8918
8918
  return te(function() {
@@ -8940,7 +8940,7 @@ var Ap = function(e) {
8940
8940
  c = !1;
8941
8941
  };
8942
8942
  }
8943
- }, [l.options, a, l.loadingStatus]), ut.createElement(po.Provider, {
8943
+ }, [l.options, a, l.loadingStatus]), ut.createElement(fo.Provider, {
8944
8944
  value: z(z({}, l), {
8945
8945
  dispatch: u
8946
8946
  })
@@ -9019,7 +9019,9 @@ const Sp = "_paypalBtn_2m8yd_1", Ep = {
9019
9019
  default:
9020
9020
  return t;
9021
9021
  }
9022
- }, []), Dp = ({ onError: e, onSubmit: t, onReset: n, clientToken: r }) => {
9022
+ }, []);
9023
+ console.log({ isSafari: Ts });
9024
+ const Dp = ({ onError: e, onSubmit: t, onReset: n, clientToken: r }) => {
9023
9025
  const i = kl(), s = Cl(), [a, o] = S(!1), [l, u] = S(!1), [c, d] = S(!1), [p, f] = S(!1), [m, g] = S(!1), { googlePay: v, applePay: y, paypal: T } = he(
9024
9026
  () => ({
9025
9027
  googlePay: Rp(s),
@@ -9031,7 +9033,7 @@ const Sp = "_paypalBtn_2m8yd_1", Ep = {
9031
9033
  te(() => {
9032
9034
  const R = setTimeout(() => {
9033
9035
  g(!0);
9034
- }, Io ? 4e3 : 2e3);
9036
+ }, Ts ? 4e3 : 2e3);
9035
9037
  return () => clearTimeout(R);
9036
9038
  }, []);
9037
9039
  const b = D(
@@ -9091,7 +9093,7 @@ const Sp = "_paypalBtn_2m8yd_1", Ep = {
9091
9093
  }, []), I = D(() => {
9092
9094
  u(!0);
9093
9095
  }, []), q = D(async () => {
9094
- const R = await Vo(r);
9096
+ const R = await Ro(r);
9095
9097
  if (R.error) {
9096
9098
  const ae = R.error || "Paypal request failed";
9097
9099
  throw e(ae), ae;
@@ -9312,7 +9314,7 @@ const Sp = "_paypalBtn_2m8yd_1", Ep = {
9312
9314
  },
9313
9315
  "paypal"
9314
9316
  ) : null,
9315
- card: s === "compact" ? /* @__PURE__ */ h.jsxs(Ss, { color: "success", onClick: m, className: be.cardBtn, children: [
9317
+ card: s === "compact" ? /* @__PURE__ */ h.jsxs(Es, { color: "success", onClick: m, className: be.cardBtn, children: [
9316
9318
  /* @__PURE__ */ h.jsx(a1, {}),
9317
9319
  u.card.compact.button
9318
9320
  ] }, "card") : null
@@ -9382,14 +9384,14 @@ const Sp = "_paypalBtn_2m8yd_1", Ep = {
9382
9384
  onCheckoutComplete: a,
9383
9385
  onCheckoutFail: o
9384
9386
  }) => {
9385
- const l = Mo({
9387
+ const l = Io({
9386
9388
  clientToken: e,
9387
9389
  variant: n,
9388
9390
  supportedCardTypes: i,
9389
9391
  onCheckoutComplete: a,
9390
9392
  onCheckoutFail: o
9391
9393
  });
9392
- return /* @__PURE__ */ h.jsx(wo, { children: /* @__PURE__ */ h.jsx(bl, { translate: t, locale: r, children: /* @__PURE__ */ h.jsx(ql, { clientToken: e, children: /* @__PURE__ */ h.jsx(L1, { styles: s, children: /* @__PURE__ */ h.jsx(
9394
+ return /* @__PURE__ */ h.jsx(Po, { children: /* @__PURE__ */ h.jsx(bl, { translate: t, locale: r, children: /* @__PURE__ */ h.jsx(ql, { clientToken: e, children: /* @__PURE__ */ h.jsx(L1, { styles: s, children: /* @__PURE__ */ h.jsx(
9393
9395
  Gp,
9394
9396
  {
9395
9397
  clientToken: e,