@sesamy/sesamy-components 1.9.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -322,8 +322,8 @@ function proxy($e, De = null, Fe) {
322
322
  var at = (
323
323
  /** @type {Source<number>} */
324
324
  Be.get("length")
325
- ), st = Number(Je);
326
- Number.isInteger(st) && st >= at.v && set$2(at, st + 1);
325
+ ), lt = Number(Je);
326
+ Number.isInteger(lt) && lt >= at.v && set$2(at, lt + 1);
327
327
  }
328
328
  update_version(Ke);
329
329
  }
@@ -1178,11 +1178,11 @@ function delegate($e) {
1178
1178
  Fe($e);
1179
1179
  }
1180
1180
  function handle_event_propagation($e) {
1181
- var st;
1181
+ var lt;
1182
1182
  var De = this, Fe = (
1183
1183
  /** @type {Node} */
1184
1184
  De.ownerDocument
1185
- ), He = $e.type, Be = ((st = $e.composedPath) == null ? void 0 : st.call($e)) || [], Ge = (
1185
+ ), He = $e.type, Be = ((lt = $e.composedPath) == null ? void 0 : lt.call($e)) || [], Ge = (
1186
1186
  /** @type {null | Element} */
1187
1187
  Be[0] || $e.target
1188
1188
  ), Ke = 0, We = $e.__root;
@@ -1426,12 +1426,12 @@ function await_block($e, De, Fe, He, Be) {
1426
1426
  /** @type {V} */
1427
1427
  void 0
1428
1428
  ), Qe = (Ke ? source : mutable_source)(void 0), tt = !1;
1429
- function rt(at, st) {
1430
- tt = !0, st && (set_active_effect(nt), set_active_reaction(nt), set_component_context(We));
1429
+ function rt(at, lt) {
1430
+ tt = !0, lt && (set_active_effect(nt), set_active_reaction(nt), set_component_context(We));
1431
1431
  try {
1432
1432
  at === PENDING$1 && Fe && (Je ? resume_effect(Je) : Je = branch(() => Fe(Ge))), at === THEN && He && (Ze ? resume_effect(Ze) : Ze = branch(() => He(Ge, et))), at === CATCH && Be && (Ye ? resume_effect(Ye) : Ye = branch(() => Be(Ge, Qe))), at !== PENDING$1 && Je && pause_effect(Je, () => Je = null), at !== THEN && Ze && pause_effect(Ze, () => Ze = null), at !== CATCH && Ye && pause_effect(Ye, () => Ye = null);
1433
1433
  } finally {
1434
- st && (set_component_context(null), set_active_reaction(null), set_active_effect(null), flush_sync());
1434
+ lt && (set_component_context(null), set_active_reaction(null), set_active_effect(null), flush_sync());
1435
1435
  }
1436
1436
  }
1437
1437
  var nt = block(() => {
@@ -1439,11 +1439,11 @@ function await_block($e, De, Fe, He, Be) {
1439
1439
  if (is_promise(Xe)) {
1440
1440
  var at = Xe;
1441
1441
  tt = !1, at.then(
1442
- (st) => {
1443
- at === Xe && (internal_set(et, st), rt(THEN, !0));
1442
+ (lt) => {
1443
+ at === Xe && (internal_set(et, lt), rt(THEN, !0));
1444
1444
  },
1445
- (st) => {
1446
- if (at === Xe && (internal_set(Qe, st), rt(CATCH, !0), !Be))
1445
+ (lt) => {
1446
+ if (at === Xe && (internal_set(Qe, lt), rt(CATCH, !0), !Be))
1447
1447
  throw Qe.v;
1448
1448
  }
1449
1449
  ), hydrating ? Fe && (Je = branch(() => Fe(Ge))) : queue_micro_task(() => {
@@ -1534,30 +1534,30 @@ function each($e, De, Fe, He, Be, Ge = null) {
1534
1534
  nt !== (tt === 0) && (Ke = remove_nodes(), set_hydrate_node(Ke), set_hydrating(!1), rt = !0);
1535
1535
  }
1536
1536
  if (hydrating) {
1537
- for (var at = null, st, ct = 0; ct < tt; ct++) {
1537
+ for (var at = null, lt, ct = 0; ct < tt; ct++) {
1538
1538
  if (hydrate_node.nodeType === 8 && /** @type {Comment} */
1539
1539
  hydrate_node.data === HYDRATION_END) {
1540
1540
  Ke = /** @type {Comment} */
1541
1541
  hydrate_node, rt = !0, set_hydrating(!1);
1542
1542
  break;
1543
1543
  }
1544
- var ot = Qe[ct], lt = He(ot, ct);
1545
- st = create_item(
1544
+ var ot = Qe[ct], st = He(ot, ct);
1545
+ lt = create_item(
1546
1546
  hydrate_node,
1547
1547
  We,
1548
1548
  at,
1549
1549
  null,
1550
1550
  ot,
1551
- lt,
1551
+ st,
1552
1552
  ct,
1553
1553
  Be,
1554
1554
  De
1555
- ), We.items.set(lt, st), at = st;
1555
+ ), We.items.set(st, lt), at = lt;
1556
1556
  }
1557
1557
  tt > 0 && set_hydrate_node(remove_nodes());
1558
1558
  }
1559
1559
  if (!hydrating) {
1560
- var ft = (
1560
+ var dt = (
1561
1561
  /** @type {Effect} */
1562
1562
  active_reaction
1563
1563
  );
@@ -1567,7 +1567,7 @@ function each($e, De, Fe, He, Be, Ge = null) {
1567
1567
  Ke,
1568
1568
  Be,
1569
1569
  De,
1570
- (ft.f & INERT) !== 0,
1570
+ (dt.f & INERT) !== 0,
1571
1571
  He
1572
1572
  );
1573
1573
  }
@@ -1578,12 +1578,12 @@ function each($e, De, Fe, He, Be, Ge = null) {
1578
1578
  }
1579
1579
  function reconcile($e, De, Fe, He, Be, Ge, Ke, We) {
1580
1580
  var vt, Rt, xt, Nt;
1581
- var Xe = (Be & EACH_IS_ANIMATED) !== 0, Je = (Be & (EACH_ITEM_REACTIVE | EACH_INDEX_REACTIVE)) !== 0, Ze = $e.length, Ye = De.items, et = De.first, Qe = et, tt, rt = null, nt, at = [], st = [], ct, ot, lt, ft;
1581
+ var Xe = (Be & EACH_IS_ANIMATED) !== 0, Je = (Be & (EACH_ITEM_REACTIVE | EACH_INDEX_REACTIVE)) !== 0, Ze = $e.length, Ye = De.items, et = De.first, Qe = et, tt, rt = null, nt, at = [], lt = [], ct, ot, st, dt;
1582
1582
  if (Xe)
1583
- for (ft = 0; ft < Ze; ft += 1)
1584
- ct = $e[ft], ot = Ke(ct, ft), lt = Ye.get(ot), lt !== void 0 && ((vt = lt.a) == null || vt.measure(), (nt ?? (nt = /* @__PURE__ */ new Set())).add(lt));
1585
- for (ft = 0; ft < Ze; ft += 1) {
1586
- if (ct = $e[ft], ot = Ke(ct, ft), lt = Ye.get(ot), lt === void 0) {
1583
+ for (dt = 0; dt < Ze; dt += 1)
1584
+ ct = $e[dt], ot = Ke(ct, dt), st = Ye.get(ot), st !== void 0 && ((vt = st.a) == null || vt.measure(), (nt ?? (nt = /* @__PURE__ */ new Set())).add(st));
1585
+ for (dt = 0; dt < Ze; dt += 1) {
1586
+ if (ct = $e[dt], ot = Ke(ct, dt), st = Ye.get(ot), st === void 0) {
1587
1587
  var mt = Qe ? (
1588
1588
  /** @type {TemplateNode} */
1589
1589
  Qe.e.nodes_start
@@ -1595,34 +1595,34 @@ function reconcile($e, De, Fe, He, Be, Ge, Ke, We) {
1595
1595
  rt === null ? De.first : rt.next,
1596
1596
  ct,
1597
1597
  ot,
1598
- ft,
1598
+ dt,
1599
1599
  He,
1600
1600
  Be
1601
- ), Ye.set(ot, rt), at = [], st = [], Qe = rt.next;
1601
+ ), Ye.set(ot, rt), at = [], lt = [], Qe = rt.next;
1602
1602
  continue;
1603
1603
  }
1604
- if (Je && update_item(lt, ct, ft, Be), lt.e.f & INERT && (resume_effect(lt.e), Xe && ((Rt = lt.a) == null || Rt.unfix(), (nt ?? (nt = /* @__PURE__ */ new Set())).delete(lt))), lt !== Qe) {
1605
- if (tt !== void 0 && tt.has(lt)) {
1606
- if (at.length < st.length) {
1607
- var gt = st[0], wt;
1604
+ if (Je && update_item(st, ct, dt, Be), st.e.f & INERT && (resume_effect(st.e), Xe && ((Rt = st.a) == null || Rt.unfix(), (nt ?? (nt = /* @__PURE__ */ new Set())).delete(st))), st !== Qe) {
1605
+ if (tt !== void 0 && tt.has(st)) {
1606
+ if (at.length < lt.length) {
1607
+ var gt = lt[0], wt;
1608
1608
  rt = gt.prev;
1609
1609
  var It = at[0], bt = at[at.length - 1];
1610
1610
  for (wt = 0; wt < at.length; wt += 1)
1611
1611
  move(at[wt], gt, Fe);
1612
- for (wt = 0; wt < st.length; wt += 1)
1613
- tt.delete(st[wt]);
1614
- link(De, It.prev, bt.next), link(De, rt, It), link(De, bt, gt), Qe = gt, rt = bt, ft -= 1, at = [], st = [];
1612
+ for (wt = 0; wt < lt.length; wt += 1)
1613
+ tt.delete(lt[wt]);
1614
+ link(De, It.prev, bt.next), link(De, rt, It), link(De, bt, gt), Qe = gt, rt = bt, dt -= 1, at = [], lt = [];
1615
1615
  } else
1616
- tt.delete(lt), move(lt, Qe, Fe), link(De, lt.prev, lt.next), link(De, lt, rt === null ? De.first : rt.next), link(De, rt, lt), rt = lt;
1616
+ tt.delete(st), move(st, Qe, Fe), link(De, st.prev, st.next), link(De, st, rt === null ? De.first : rt.next), link(De, rt, st), rt = st;
1617
1617
  continue;
1618
1618
  }
1619
- for (at = [], st = []; Qe !== null && Qe.k !== ot; )
1620
- (Ge || !(Qe.e.f & INERT)) && (tt ?? (tt = /* @__PURE__ */ new Set())).add(Qe), st.push(Qe), Qe = Qe.next;
1619
+ for (at = [], lt = []; Qe !== null && Qe.k !== ot; )
1620
+ (Ge || !(Qe.e.f & INERT)) && (tt ?? (tt = /* @__PURE__ */ new Set())).add(Qe), lt.push(Qe), Qe = Qe.next;
1621
1621
  if (Qe === null)
1622
1622
  continue;
1623
- lt = Qe;
1623
+ st = Qe;
1624
1624
  }
1625
- at.push(lt), rt = lt, Qe = lt.next;
1625
+ at.push(st), rt = st, Qe = st.next;
1626
1626
  }
1627
1627
  if (Qe !== null || tt !== void 0) {
1628
1628
  for (var pt = tt === void 0 ? [] : array_from(tt); Qe !== null; )
@@ -1631,10 +1631,10 @@ function reconcile($e, De, Fe, He, Be, Ge, Ke, We) {
1631
1631
  if (yt > 0) {
1632
1632
  var $t = Be & EACH_IS_CONTROLLED && Ze === 0 ? Fe : null;
1633
1633
  if (Xe) {
1634
- for (ft = 0; ft < yt; ft += 1)
1635
- (xt = pt[ft].a) == null || xt.measure();
1636
- for (ft = 0; ft < yt; ft += 1)
1637
- (Nt = pt[ft].a) == null || Nt.fix();
1634
+ for (dt = 0; dt < yt; dt += 1)
1635
+ (xt = pt[dt].a) == null || xt.measure();
1636
+ for (dt = 0; dt < yt; dt += 1)
1637
+ (Nt = pt[dt].a) == null || Nt.fix();
1638
1638
  }
1639
1639
  pause_effects(De, pt, $t, Ye);
1640
1640
  }
@@ -1642,8 +1642,8 @@ function reconcile($e, De, Fe, He, Be, Ge, Ke, We) {
1642
1642
  Xe && queue_micro_task(() => {
1643
1643
  var ut;
1644
1644
  if (nt !== void 0)
1645
- for (lt of nt)
1646
- (ut = lt.a) == null || ut.apply();
1645
+ for (st of nt)
1646
+ (ut = st.a) == null || ut.apply();
1647
1647
  }), active_effect.first = De.first && De.first.e, active_effect.last = rt && rt.e;
1648
1648
  }
1649
1649
  function update_item($e, De, Fe, He) {
@@ -1825,55 +1825,55 @@ function set_attributes($e, De, Fe, He, Be = !1, Ge = !1, Ke = !1) {
1825
1825
  $e.__attributes ?? ($e.__attributes = {})
1826
1826
  );
1827
1827
  for (const at in Fe) {
1828
- let st = Fe[at];
1829
- if (Xe && at === "value" && st == null) {
1830
- $e.value = $e.__value = "", We[at] = st;
1828
+ let lt = Fe[at];
1829
+ if (Xe && at === "value" && lt == null) {
1830
+ $e.value = $e.__value = "", We[at] = lt;
1831
1831
  continue;
1832
1832
  }
1833
1833
  var et = We[at];
1834
- if (st !== et) {
1835
- We[at] = st;
1834
+ if (lt !== et) {
1835
+ We[at] = lt;
1836
1836
  var Qe = at[0] + at[1];
1837
1837
  if (Qe !== "$$") {
1838
1838
  if (Qe === "on") {
1839
1839
  const ct = {}, ot = "$$" + at;
1840
- let lt = at.slice(2);
1841
- var tt = is_delegated(lt);
1842
- if (is_capture_event(lt) && (lt = lt.slice(0, -7), ct.capture = !0), !tt && et) {
1843
- if (st != null) continue;
1844
- $e.removeEventListener(lt, We[ot], ct), We[ot] = null;
1840
+ let st = at.slice(2);
1841
+ var tt = is_delegated(st);
1842
+ if (is_capture_event(st) && (st = st.slice(0, -7), ct.capture = !0), !tt && et) {
1843
+ if (lt != null) continue;
1844
+ $e.removeEventListener(st, We[ot], ct), We[ot] = null;
1845
1845
  }
1846
- if (st != null)
1846
+ if (lt != null)
1847
1847
  if (tt)
1848
- $e[`__${lt}`] = st, delegate([lt]);
1848
+ $e[`__${st}`] = lt, delegate([st]);
1849
1849
  else {
1850
- let ft = function(mt) {
1850
+ let dt = function(mt) {
1851
1851
  We[at].call(this, mt);
1852
1852
  };
1853
- We[ot] = create_event(lt, $e, ft, ct);
1853
+ We[ot] = create_event(st, $e, dt, ct);
1854
1854
  }
1855
- else tt && ($e[`__${lt}`] = void 0);
1856
- } else if (at === "style" && st != null)
1857
- $e.style.cssText = st + "";
1855
+ else tt && ($e[`__${st}`] = void 0);
1856
+ } else if (at === "style" && lt != null)
1857
+ $e.style.cssText = lt + "";
1858
1858
  else if (at === "autofocus")
1859
1859
  autofocus(
1860
1860
  /** @type {HTMLElement} */
1861
1861
  $e,
1862
- !!st
1862
+ !!lt
1863
1863
  );
1864
- else if (at === "__value" || at === "value" && st != null)
1865
- $e.value = $e[at] = $e.__value = st;
1864
+ else if (at === "__value" || at === "value" && lt != null)
1865
+ $e.value = $e[at] = $e.__value = lt;
1866
1866
  else if (at === "selected" && Xe)
1867
1867
  set_selected(
1868
1868
  /** @type {HTMLOptionElement} */
1869
1869
  $e,
1870
- st
1870
+ lt
1871
1871
  );
1872
1872
  else {
1873
1873
  var rt = at;
1874
1874
  Be || (rt = normalize_attribute(rt));
1875
1875
  var nt = rt === "defaultValue" || rt === "defaultChecked";
1876
- if (st == null && !Ge && !nt)
1876
+ if (lt == null && !Ge && !nt)
1877
1877
  if (Ye[at] = null, rt === "value" || rt === "checked") {
1878
1878
  let ct = (
1879
1879
  /** @type {HTMLInputElement} */
@@ -1888,7 +1888,7 @@ function set_attributes($e, De, Fe, He, Be = !1, Ge = !1, Ke = !1) {
1888
1888
  }
1889
1889
  } else
1890
1890
  $e.removeAttribute(at);
1891
- else nt || Ze.includes(rt) && (Ge || typeof st != "string") ? $e[rt] = st : typeof st != "function" && (hydrating && (rt === "src" || rt === "href" || rt === "srcset") || set_attribute($e, rt, st));
1891
+ else nt || Ze.includes(rt) && (Ge || typeof lt != "string") ? $e[rt] = lt : typeof lt != "function" && (hydrating && (rt === "src" || rt === "href" || rt === "srcset") || set_attribute($e, rt, lt));
1892
1892
  }
1893
1893
  at === "style" && "__styles" in $e && ($e.__styles = {});
1894
1894
  }
@@ -2056,14 +2056,14 @@ function animate($e, De, Fe, He, Be) {
2056
2056
  return rt.onfinish = () => {
2057
2057
  var nt = (Fe == null ? void 0 : Fe.t()) ?? 1 - He;
2058
2058
  Fe == null || Fe.abort();
2059
- var at = He - nt, st = (
2059
+ var at = He - nt, lt = (
2060
2060
  /** @type {number} */
2061
2061
  De.duration * Math.abs(at)
2062
2062
  ), ct = [];
2063
- if (st > 0) {
2063
+ if (lt > 0) {
2064
2064
  if (Je)
2065
- for (var ot = Math.ceil(st / 16.666666666666668), lt = 0; lt <= ot; lt += 1) {
2066
- var ft = nt + at * Ye(lt / ot), mt = Je(ft, 1 - ft);
2065
+ for (var ot = Math.ceil(lt / 16.666666666666668), st = 0; st <= ot; st += 1) {
2066
+ var dt = nt + at * Ye(st / ot), mt = Je(dt, 1 - dt);
2067
2067
  ct.push(css_to_keyframe(mt));
2068
2068
  }
2069
2069
  tt = () => {
@@ -2072,14 +2072,14 @@ function animate($e, De, Fe, He, Be) {
2072
2072
  /** @type {globalThis.Animation} */
2073
2073
  rt.currentTime
2074
2074
  );
2075
- return nt + at * Ye(gt / st);
2075
+ return nt + at * Ye(gt / lt);
2076
2076
  }, Ze && loop(() => {
2077
2077
  if (rt.playState !== "running") return !1;
2078
2078
  var gt = tt();
2079
2079
  return Ze(gt, 1 - gt), !0;
2080
2080
  });
2081
2081
  }
2082
- rt = $e.animate(ct, { duration: st, fill: "forwards" }), rt.onfinish = () => {
2082
+ rt = $e.animate(ct, { duration: lt, fill: "forwards" }), rt.onfinish = () => {
2083
2083
  tt = () => He, Ze == null || Ze(He, 1 - He), Be();
2084
2084
  };
2085
2085
  }, {
@@ -2356,23 +2356,23 @@ function prop($e, De, Fe, He) {
2356
2356
  if (!(Fe & PROPS_IS_UPDATED))
2357
2357
  return nt;
2358
2358
  if (Ye) {
2359
- var st = $e.$$legacy;
2359
+ var lt = $e.$$legacy;
2360
2360
  return function(gt, wt) {
2361
- return arguments.length > 0 ? ((!Ge || !wt || st || Xe) && Ye(wt ? nt() : gt), gt) : nt();
2361
+ return arguments.length > 0 ? ((!Ge || !wt || lt || Xe) && Ye(wt ? nt() : gt), gt) : nt();
2362
2362
  };
2363
2363
  }
2364
- var ct = !1, ot = !1, lt = /* @__PURE__ */ mutable_source(Je), ft = with_parent_branch(
2364
+ var ct = !1, ot = !1, st = /* @__PURE__ */ mutable_source(Je), dt = with_parent_branch(
2365
2365
  () => /* @__PURE__ */ derived(() => {
2366
- var gt = nt(), wt = get$1(lt);
2367
- return ct ? (ct = !1, ot = !0, wt) : (ot = !1, lt.v = gt);
2366
+ var gt = nt(), wt = get$1(st);
2367
+ return ct ? (ct = !1, ot = !0, wt) : (ot = !1, st.v = gt);
2368
2368
  })
2369
2369
  );
2370
- return Be || (ft.equals = safe_equals), function(gt, wt) {
2370
+ return Be || (dt.equals = safe_equals), function(gt, wt) {
2371
2371
  if (arguments.length > 0) {
2372
- const It = wt ? get$1(ft) : Ge && Ke ? proxy(gt) : gt;
2373
- return ft.equals(It) || (ct = !0, set$2(lt, It), tt && et !== void 0 && (et = It), untrack(() => get$1(ft))), gt;
2372
+ const It = wt ? get$1(dt) : Ge && Ke ? proxy(gt) : gt;
2373
+ return dt.equals(It) || (ct = !0, set$2(st, It), tt && et !== void 0 && (et = It), untrack(() => get$1(dt))), gt;
2374
2374
  }
2375
- return get$1(ft);
2375
+ return get$1(dt);
2376
2376
  };
2377
2377
  }
2378
2378
  function createClassComponent($e) {
@@ -2841,14 +2841,14 @@ const CLASS_PART_SEPARATOR = "-", createClassGroupUtils = ($e) => {
2841
2841
  }
2842
2842
  tt = !1;
2843
2843
  }
2844
- const nt = sortModifiers(Ze).join(":"), at = Ye ? nt + IMPORTANT_MODIFIER : nt, st = at + rt;
2845
- if (Ge.includes(st))
2844
+ const nt = sortModifiers(Ze).join(":"), at = Ye ? nt + IMPORTANT_MODIFIER : nt, lt = at + rt;
2845
+ if (Ge.includes(lt))
2846
2846
  continue;
2847
- Ge.push(st);
2847
+ Ge.push(lt);
2848
2848
  const ct = Be(rt, tt);
2849
2849
  for (let ot = 0; ot < ct.length; ++ot) {
2850
- const lt = ct[ot];
2851
- Ge.push(at + lt);
2850
+ const st = ct[ot];
2851
+ Ge.push(at + st);
2852
2852
  }
2853
2853
  We = Je + (We.length > 0 ? " " + We : We);
2854
2854
  }
@@ -2897,7 +2897,7 @@ const fromTheme = ($e) => {
2897
2897
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
2898
2898
  lengthUnitRegex.test($e) && !colorFunctionRegex.test($e)
2899
2899
  ), isNever = () => !1, isShadow = ($e) => shadowRegex.test($e), isImage = ($e) => imageRegex.test($e), getDefaultConfig = () => {
2900
- const $e = fromTheme("colors"), De = fromTheme("spacing"), Fe = fromTheme("blur"), He = fromTheme("brightness"), Be = fromTheme("borderColor"), Ge = fromTheme("borderRadius"), Ke = fromTheme("borderSpacing"), We = fromTheme("borderWidth"), Xe = fromTheme("contrast"), Je = fromTheme("grayscale"), Ze = fromTheme("hueRotate"), Ye = fromTheme("invert"), et = fromTheme("gap"), Qe = fromTheme("gradientColorStops"), tt = fromTheme("gradientColorStopPositions"), rt = fromTheme("inset"), nt = fromTheme("margin"), at = fromTheme("opacity"), st = fromTheme("padding"), ct = fromTheme("saturate"), ot = fromTheme("scale"), lt = fromTheme("sepia"), ft = fromTheme("skew"), mt = fromTheme("space"), gt = fromTheme("translate"), wt = () => ["auto", "contain", "none"], It = () => ["auto", "hidden", "clip", "visible", "scroll"], bt = () => ["auto", isArbitraryValue, De], pt = () => [isArbitraryValue, De], yt = () => ["", isLength, isArbitraryLength], $t = () => ["auto", isNumber, isArbitraryValue], vt = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Rt = () => ["solid", "dashed", "dotted", "double", "none"], xt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Nt = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ut = () => ["", "0", isArbitraryValue], dt = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _t = () => [isNumber, isArbitraryValue];
2900
+ const $e = fromTheme("colors"), De = fromTheme("spacing"), Fe = fromTheme("blur"), He = fromTheme("brightness"), Be = fromTheme("borderColor"), Ge = fromTheme("borderRadius"), Ke = fromTheme("borderSpacing"), We = fromTheme("borderWidth"), Xe = fromTheme("contrast"), Je = fromTheme("grayscale"), Ze = fromTheme("hueRotate"), Ye = fromTheme("invert"), et = fromTheme("gap"), Qe = fromTheme("gradientColorStops"), tt = fromTheme("gradientColorStopPositions"), rt = fromTheme("inset"), nt = fromTheme("margin"), at = fromTheme("opacity"), lt = fromTheme("padding"), ct = fromTheme("saturate"), ot = fromTheme("scale"), st = fromTheme("sepia"), dt = fromTheme("skew"), mt = fromTheme("space"), gt = fromTheme("translate"), wt = () => ["auto", "contain", "none"], It = () => ["auto", "hidden", "clip", "visible", "scroll"], bt = () => ["auto", isArbitraryValue, De], pt = () => [isArbitraryValue, De], yt = () => ["", isLength, isArbitraryLength], $t = () => ["auto", isNumber, isArbitraryValue], vt = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Rt = () => ["solid", "dashed", "dotted", "double", "none"], xt = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Nt = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ut = () => ["", "0", isArbitraryValue], ft = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], _t = () => [isNumber, isArbitraryValue];
2901
2901
  return {
2902
2902
  cacheSize: 500,
2903
2903
  separator: ":",
@@ -2954,14 +2954,14 @@ const fromTheme = ($e) => {
2954
2954
  * @see https://tailwindcss.com/docs/break-after
2955
2955
  */
2956
2956
  "break-after": [{
2957
- "break-after": dt()
2957
+ "break-after": ft()
2958
2958
  }],
2959
2959
  /**
2960
2960
  * Break Before
2961
2961
  * @see https://tailwindcss.com/docs/break-before
2962
2962
  */
2963
2963
  "break-before": [{
2964
- "break-before": dt()
2964
+ "break-before": ft()
2965
2965
  }],
2966
2966
  /**
2967
2967
  * Break Inside
@@ -3365,63 +3365,63 @@ const fromTheme = ($e) => {
3365
3365
  * @see https://tailwindcss.com/docs/padding
3366
3366
  */
3367
3367
  p: [{
3368
- p: [st]
3368
+ p: [lt]
3369
3369
  }],
3370
3370
  /**
3371
3371
  * Padding X
3372
3372
  * @see https://tailwindcss.com/docs/padding
3373
3373
  */
3374
3374
  px: [{
3375
- px: [st]
3375
+ px: [lt]
3376
3376
  }],
3377
3377
  /**
3378
3378
  * Padding Y
3379
3379
  * @see https://tailwindcss.com/docs/padding
3380
3380
  */
3381
3381
  py: [{
3382
- py: [st]
3382
+ py: [lt]
3383
3383
  }],
3384
3384
  /**
3385
3385
  * Padding Start
3386
3386
  * @see https://tailwindcss.com/docs/padding
3387
3387
  */
3388
3388
  ps: [{
3389
- ps: [st]
3389
+ ps: [lt]
3390
3390
  }],
3391
3391
  /**
3392
3392
  * Padding End
3393
3393
  * @see https://tailwindcss.com/docs/padding
3394
3394
  */
3395
3395
  pe: [{
3396
- pe: [st]
3396
+ pe: [lt]
3397
3397
  }],
3398
3398
  /**
3399
3399
  * Padding Top
3400
3400
  * @see https://tailwindcss.com/docs/padding
3401
3401
  */
3402
3402
  pt: [{
3403
- pt: [st]
3403
+ pt: [lt]
3404
3404
  }],
3405
3405
  /**
3406
3406
  * Padding Right
3407
3407
  * @see https://tailwindcss.com/docs/padding
3408
3408
  */
3409
3409
  pr: [{
3410
- pr: [st]
3410
+ pr: [lt]
3411
3411
  }],
3412
3412
  /**
3413
3413
  * Padding Bottom
3414
3414
  * @see https://tailwindcss.com/docs/padding
3415
3415
  */
3416
3416
  pb: [{
3417
- pb: [st]
3417
+ pb: [lt]
3418
3418
  }],
3419
3419
  /**
3420
3420
  * Padding Left
3421
3421
  * @see https://tailwindcss.com/docs/padding
3422
3422
  */
3423
3423
  pl: [{
3424
- pl: [st]
3424
+ pl: [lt]
3425
3425
  }],
3426
3426
  /**
3427
3427
  * Margin
@@ -4370,7 +4370,7 @@ const fromTheme = ($e) => {
4370
4370
  * @see https://tailwindcss.com/docs/sepia
4371
4371
  */
4372
4372
  sepia: [{
4373
- sepia: [lt]
4373
+ sepia: [st]
4374
4374
  }],
4375
4375
  /**
4376
4376
  * Backdrop Filter
@@ -4441,7 +4441,7 @@ const fromTheme = ($e) => {
4441
4441
  * @see https://tailwindcss.com/docs/backdrop-sepia
4442
4442
  */
4443
4443
  "backdrop-sepia": [{
4444
- "backdrop-sepia": [lt]
4444
+ "backdrop-sepia": [st]
4445
4445
  }],
4446
4446
  // Tables
4447
4447
  /**
@@ -4577,14 +4577,14 @@ const fromTheme = ($e) => {
4577
4577
  * @see https://tailwindcss.com/docs/skew
4578
4578
  */
4579
4579
  "skew-x": [{
4580
- "skew-x": [ft]
4580
+ "skew-x": [dt]
4581
4581
  }],
4582
4582
  /**
4583
4583
  * Skew Y
4584
4584
  * @see https://tailwindcss.com/docs/skew
4585
4585
  */
4586
4586
  "skew-y": [{
4587
- "skew-y": [ft]
4587
+ "skew-y": [dt]
4588
4588
  }],
4589
4589
  /**
4590
4590
  * Transform Origin
@@ -5194,32 +5194,32 @@ function Avatar_wc($e, De) {
5194
5194
  var Qe = child(Ye);
5195
5195
  {
5196
5196
  var tt = (nt) => {
5197
- var at = root_3$4(), st = child(at);
5197
+ var at = root_3$4(), lt = child(at);
5198
5198
  const ct = /* @__PURE__ */ derived_safe_equal(() => twMerge("animate-spin", Be() === "sm" && "w-7 h-7", Be() === "md" && "w-10 h-10", Be() === "lg" && "w-14 h-14"));
5199
- reset(at), template_effect(() => set_svg_class(st, get$1(ct))), append$1(nt, at);
5199
+ reset(at), template_effect(() => set_svg_class(lt, get$1(ct))), append$1(nt, at);
5200
5200
  }, rt = (nt) => {
5201
- var at = comment(), st = first_child(at);
5201
+ var at = comment(), lt = first_child(at);
5202
5202
  {
5203
- var ct = (lt) => {
5204
- var ft = root_5$1();
5203
+ var ct = (st) => {
5204
+ var dt = root_5$1();
5205
5205
  template_effect(() => {
5206
- set_attribute(ft, "src", Fe()), set_attribute(ft, "alt", He());
5207
- }), append$1(lt, ft);
5208
- }, ot = (lt) => {
5209
- Row(lt, {
5206
+ set_attribute(dt, "src", Fe()), set_attribute(dt, "alt", He());
5207
+ }), append$1(st, dt);
5208
+ }, ot = (st) => {
5209
+ Row(st, {
5210
5210
  class: "absolute top-0 left-0 w-full h-full text-white",
5211
- children: (ft, mt) => {
5211
+ children: (dt, mt) => {
5212
5212
  next();
5213
5213
  var gt = text();
5214
- template_effect(() => set_text(gt, He().charAt(0).toUpperCase())), append$1(ft, gt);
5214
+ template_effect(() => set_text(gt, He().charAt(0).toUpperCase())), append$1(dt, gt);
5215
5215
  },
5216
5216
  $$slots: { default: !0 }
5217
5217
  });
5218
5218
  };
5219
5219
  if_block(
5220
- st,
5221
- (lt) => {
5222
- Fe() ? lt(ct) : lt(ot, !1);
5220
+ lt,
5221
+ (st) => {
5222
+ Fe() ? st(ct) : st(ot, !1);
5223
5223
  },
5224
5224
  !0
5225
5225
  );
@@ -5416,10 +5416,10 @@ function Login_wc($e, De) {
5416
5416
  (at) => {
5417
5417
  Avatar_wc(at, { loading: !0, size: "sm" });
5418
5418
  },
5419
- (at, st) => {
5419
+ (at, lt) => {
5420
5420
  var ct = comment(), ot = first_child(ct);
5421
5421
  {
5422
- var lt = (mt) => {
5422
+ var st = (mt) => {
5423
5423
  Avatar_wc(mt, {
5424
5424
  get loading() {
5425
5425
  return Fe();
@@ -5427,7 +5427,7 @@ function Login_wc($e, De) {
5427
5427
  onclick: () => Je(get$1(Qe)),
5428
5428
  size: "sm"
5429
5429
  });
5430
- }, ft = (mt) => {
5430
+ }, dt = (mt) => {
5431
5431
  var gt = comment(), wt = first_child(gt);
5432
5432
  {
5433
5433
  var It = (pt) => {
@@ -5468,7 +5468,7 @@ function Login_wc($e, De) {
5468
5468
  append$1(mt, gt);
5469
5469
  };
5470
5470
  if_block(ot, (mt) => {
5471
- Fe() ? mt(lt) : mt(ft, !1);
5471
+ Fe() ? mt(st) : mt(dt, !1);
5472
5472
  });
5473
5473
  }
5474
5474
  append$1(at, ct);
@@ -5660,8 +5660,8 @@ function Button_wc($e, De) {
5660
5660
  Fe() && ct(at);
5661
5661
  });
5662
5662
  }
5663
- var st = sibling(nt, 2);
5664
- slot(st, De, "default", {}, null), append$1(Qe, rt);
5663
+ var lt = sibling(nt, 2);
5664
+ slot(lt, De, "default", {}, null), append$1(Qe, rt);
5665
5665
  },
5666
5666
  $$slots: { default: !0 }
5667
5667
  });
@@ -5855,11 +5855,11 @@ function Subscriptions($e, De) {
5855
5855
  const Qe = /* @__PURE__ */ derived(() => {
5856
5856
  const {
5857
5857
  id: at,
5858
- title: st,
5858
+ title: lt,
5859
5859
  description: ct,
5860
5860
  price: ot,
5861
- periodText: lt,
5862
- features: ft,
5861
+ periodText: st,
5862
+ features: dt,
5863
5863
  selected: mt,
5864
5864
  tag: gt,
5865
5865
  buttonText: wt,
@@ -5868,11 +5868,11 @@ function Subscriptions($e, De) {
5868
5868
  } = get$1(Ze);
5869
5869
  return {
5870
5870
  id: at,
5871
- title: st,
5871
+ title: lt,
5872
5872
  description: ct,
5873
5873
  price: ot,
5874
- periodText: lt,
5875
- features: ft,
5874
+ periodText: st,
5875
+ features: dt,
5876
5876
  selected: mt,
5877
5877
  tag: gt,
5878
5878
  buttonText: wt,
@@ -5883,13 +5883,13 @@ function Subscriptions($e, De) {
5883
5883
  var tt = first_child(et);
5884
5884
  {
5885
5885
  var rt = (at) => {
5886
- var st = /* @__PURE__ */ derived(() => twMerge("border bg-white border-gray-300 rounded-lg relative", get$1(Qe).tag && "border-primary mt-0 border-2"));
5886
+ var lt = /* @__PURE__ */ derived(() => twMerge("border bg-white border-gray-300 rounded-lg relative", get$1(Qe).tag && "border-primary mt-0 border-2"));
5887
5887
  Column(at, {
5888
5888
  get class() {
5889
- return get$1(st);
5889
+ return get$1(lt);
5890
5890
  },
5891
5891
  children: (ct, ot) => {
5892
- var lt = root_4$3(), ft = first_child(lt);
5892
+ var st = root_4$3(), dt = first_child(st);
5893
5893
  {
5894
5894
  var mt = (wt) => {
5895
5895
  Tag(wt, {
@@ -5902,11 +5902,11 @@ function Subscriptions($e, De) {
5902
5902
  chunky: !0
5903
5903
  });
5904
5904
  };
5905
- if_block(ft, (wt) => {
5905
+ if_block(dt, (wt) => {
5906
5906
  get$1(Qe).tag && wt(mt);
5907
5907
  });
5908
5908
  }
5909
- var gt = sibling(ft, 2);
5909
+ var gt = sibling(dt, 2);
5910
5910
  Column(gt, {
5911
5911
  class: "p-4 flex-1 gap-2 w-full !justify-between shadow-md",
5912
5912
  left: !0,
@@ -5921,7 +5921,7 @@ function Subscriptions($e, De) {
5921
5921
  reset(xt);
5922
5922
  var ut = sibling(xt, 2);
5923
5923
  {
5924
- var dt = (St) => {
5924
+ var ft = (St) => {
5925
5925
  Column(St, {
5926
5926
  class: "mb-0 @xl:mb-4",
5927
5927
  left: !0,
@@ -5960,7 +5960,7 @@ function Subscriptions($e, De) {
5960
5960
  });
5961
5961
  };
5962
5962
  if_block(ut, (St) => {
5963
- typeof get$1(Qe).price == "number" && St(dt);
5963
+ typeof get$1(Qe).price == "number" && St(ft);
5964
5964
  });
5965
5965
  }
5966
5966
  var _t = sibling(ut, 2);
@@ -6003,31 +6003,31 @@ function Subscriptions($e, De) {
6003
6003
  },
6004
6004
  children: (Nt, ut) => {
6005
6005
  next();
6006
- var dt = text();
6007
- template_effect(() => set_text(dt, get$1(Qe).buttonText || De.t("continue"))), append$1(Nt, dt);
6006
+ var ft = text();
6007
+ template_effect(() => set_text(ft, get$1(Qe).buttonText || De.t("continue"))), append$1(Nt, ft);
6008
6008
  },
6009
6009
  $$slots: { default: !0 }
6010
6010
  });
6011
6011
  }), append$1(wt, bt);
6012
6012
  },
6013
6013
  $$slots: { default: !0 }
6014
- }), append$1(ct, lt);
6014
+ }), append$1(ct, st);
6015
6015
  },
6016
6016
  $$slots: { default: !0 }
6017
6017
  });
6018
6018
  }, nt = (at) => {
6019
- var st = root_15$1(), ct = first_child(st);
6019
+ var lt = root_15$1(), ct = first_child(lt);
6020
6020
  {
6021
- var ot = (ft) => {
6021
+ var ot = (dt) => {
6022
6022
  var mt = root_16();
6023
- append$1(ft, mt);
6023
+ append$1(dt, mt);
6024
6024
  };
6025
- if_block(ct, (ft) => {
6026
- Ye && ft(ot);
6025
+ if_block(ct, (dt) => {
6026
+ Ye && dt(ot);
6027
6027
  });
6028
6028
  }
6029
- var lt = sibling(ct, 2);
6030
- Selection(lt, {
6029
+ var st = sibling(ct, 2);
6030
+ Selection(st, {
6031
6031
  get id() {
6032
6032
  return get$1(Qe).id;
6033
6033
  },
@@ -6037,13 +6037,13 @@ function Subscriptions($e, De) {
6037
6037
  return get$1(Qe).selected;
6038
6038
  },
6039
6039
  onchange: () => De.selectProduct(get$1(Ze)),
6040
- children: (ft, mt) => {
6040
+ children: (dt, mt) => {
6041
6041
  var gt = root_17(), wt = first_child(gt);
6042
6042
  Column(wt, {
6043
6043
  class: "flex-1",
6044
6044
  left: !0,
6045
6045
  children: (Nt, ut) => {
6046
- var dt = root_18(), _t = first_child(dt), Ot = child(_t, !0);
6046
+ var ft = root_18(), _t = first_child(ft), Ot = child(_t, !0);
6047
6047
  reset(_t);
6048
6048
  var At = sibling(_t, 2);
6049
6049
  {
@@ -6055,15 +6055,15 @@ function Subscriptions($e, De) {
6055
6055
  get$1(Qe).description && St(kt);
6056
6056
  });
6057
6057
  }
6058
- template_effect(() => set_text(Ot, get$1(Qe).title)), append$1(Nt, dt);
6058
+ template_effect(() => set_text(Ot, get$1(Qe).title)), append$1(Nt, ft);
6059
6059
  },
6060
6060
  $$slots: { default: !0 }
6061
6061
  });
6062
6062
  var It = sibling(wt, 2), bt = child(It);
6063
6063
  {
6064
6064
  var pt = (Nt) => {
6065
- var ut = root_20(), dt = child(ut);
6066
- reset(ut), template_effect(() => set_text(dt, `${get$1(Qe).discountPrice ?? ""}
6065
+ var ut = root_20(), ft = child(ut);
6066
+ reset(ut), template_effect(() => set_text(ft, `${get$1(Qe).discountPrice ?? ""}
6067
6067
  ${De.currency ?? ""} / ${get$1(Qe).periodText ?? ""}`)), append$1(Nt, ut);
6068
6068
  };
6069
6069
  if_block(bt, (Nt) => {
@@ -6093,10 +6093,10 @@ function Subscriptions($e, De) {
6093
6093
  template_effect(() => {
6094
6094
  set_class(yt, get$1($t)), set_text(vt, `${get$1(Qe).price ?? ""}
6095
6095
  ${De.currency ?? ""} / ${get$1(Qe).periodText ?? ""}`);
6096
- }), append$1(ft, gt);
6096
+ }), append$1(dt, gt);
6097
6097
  },
6098
6098
  $$slots: { default: !0 }
6099
- }), append$1(at, st);
6099
+ }), append$1(at, lt);
6100
6100
  };
6101
6101
  if_block(tt, (at) => {
6102
6102
  Fe() ? at(rt) : at(nt, !1);
@@ -6136,9 +6136,9 @@ function SinglePurchase($e, De) {
6136
6136
  return get$1(at);
6137
6137
  },
6138
6138
  onchange: We,
6139
- children: (st, ct) => {
6140
- var ot = root_3$2(), lt = first_child(ot);
6141
- Column(lt, {
6139
+ children: (lt, ct) => {
6140
+ var ot = root_3$2(), st = first_child(ot);
6141
+ Column(st, {
6142
6142
  left: !0,
6143
6143
  children: (gt, wt) => {
6144
6144
  var It = root_4$2(), bt = first_child(It);
@@ -6148,8 +6148,8 @@ function SinglePurchase($e, De) {
6148
6148
  },
6149
6149
  $$slots: { default: !0 }
6150
6150
  });
6151
- var ft = sibling(lt, 2), mt = child(ft);
6152
- reset(ft), template_effect(() => set_text(mt, `${He() ?? ""} ${Be() ?? ""}`)), append$1(st, ot);
6151
+ var dt = sibling(st, 2), mt = child(dt);
6152
+ reset(dt), template_effect(() => set_text(mt, `${He() ?? ""} ${Be() ?? ""}`)), append$1(lt, ot);
6153
6153
  },
6154
6154
  $$slots: { default: !0 }
6155
6155
  });
@@ -6450,10 +6450,10 @@ function Select($e, De) {
6450
6450
  let Je;
6451
6451
  each(Xe, 21, () => De.options, ({ value: tt, label: rt }) => tt, (tt, rt) => {
6452
6452
  let nt = () => get$1(rt).value, at = () => get$1(rt).label;
6453
- var st = root_1$2(), ct = {}, ot = child(st, !0);
6454
- reset(st), template_effect(() => {
6455
- ct !== (ct = nt()) && (st.value = (st.__value = nt()) == null ? "" : nt()), set_text(ot, at());
6456
- }), append$1(tt, st);
6453
+ var lt = root_1$2(), ct = {}, ot = child(lt, !0);
6454
+ reset(lt), template_effect(() => {
6455
+ ct !== (ct = nt()) && (lt.value = (lt.__value = nt()) == null ? "" : nt()), set_text(ot, at());
6456
+ }), append$1(tt, lt);
6457
6457
  }), reset(Xe);
6458
6458
  var Ye = sibling(Xe, 2);
6459
6459
  {
@@ -6916,9 +6916,9 @@ function PayNowForm($e, De) {
6916
6916
  const Fe = "https://checkout3.sesamy.com", He = getCountriesOptions(De.checkout.language);
6917
6917
  let Be = state(""), Ge = state(""), Ke = state(""), We = state(""), Xe = state(proxy(De.checkout.country || "SE")), Je = state(!1), Ze = state(void 0), Ye = state(void 0), et = state(""), Qe;
6918
6918
  const tt = () => {
6919
- var pt, yt, $t, vt, Rt, xt, Nt, ut, dt, _t, Ot, At, kt, St, Tt, Lt, Pt, Mt;
6919
+ var pt, yt, $t, vt, Rt, xt, Nt, ut, ft, _t, Ot, At, kt, St, Tt, Lt, Pt, Mt;
6920
6920
  const bt = [];
6921
- isValidEmail(get$1(Be)) || bt.push(["email", "invalid_email"]), ($t = (yt = (pt = De.checkout) == null ? void 0 : pt.fieldSettings) == null ? void 0 : yt.phone) != null && $t.enabled && ((xt = (Rt = (vt = De.checkout) == null ? void 0 : vt.fieldSettings) == null ? void 0 : Rt.phone) != null && xt.required) && !get$1(We) && bt.push(["phoneNumber", "phone_number_required"]), (dt = (ut = (Nt = De.checkout) == null ? void 0 : Nt.fieldSettings) == null ? void 0 : ut.name) != null && dt.enabled && ((At = (Ot = (_t = De.checkout) == null ? void 0 : _t.fieldSettings) == null ? void 0 : Ot.name) != null && At.required) && !get$1(Ge) && bt.push(["firstName", "first_name_required"]), (Tt = (St = (kt = De.checkout) == null ? void 0 : kt.fieldSettings) == null ? void 0 : St.name) != null && Tt.enabled && ((Mt = (Pt = (Lt = De.checkout) == null ? void 0 : Lt.fieldSettings) == null ? void 0 : Pt.name) != null && Mt.required) && !get$1(Ke) && bt.push(["lastName", "last_name_required"]), set$2(Ze, proxy(bt.length ? bt.reduce((Bt, [zt, Vt]) => ({ ...Bt, [zt]: Vt }), {}) : void 0));
6921
+ isValidEmail(get$1(Be)) || bt.push(["email", "invalid_email"]), ($t = (yt = (pt = De.checkout) == null ? void 0 : pt.fieldSettings) == null ? void 0 : yt.phone) != null && $t.enabled && ((xt = (Rt = (vt = De.checkout) == null ? void 0 : vt.fieldSettings) == null ? void 0 : Rt.phone) != null && xt.required) && !get$1(We) && bt.push(["phoneNumber", "phone_number_required"]), (ft = (ut = (Nt = De.checkout) == null ? void 0 : Nt.fieldSettings) == null ? void 0 : ut.name) != null && ft.enabled && ((At = (Ot = (_t = De.checkout) == null ? void 0 : _t.fieldSettings) == null ? void 0 : Ot.name) != null && At.required) && !get$1(Ge) && bt.push(["firstName", "first_name_required"]), (Tt = (St = (kt = De.checkout) == null ? void 0 : kt.fieldSettings) == null ? void 0 : St.name) != null && Tt.enabled && ((Mt = (Pt = (Lt = De.checkout) == null ? void 0 : Lt.fieldSettings) == null ? void 0 : Pt.name) != null && Mt.required) && !get$1(Ke) && bt.push(["lastName", "last_name_required"]), set$2(Ze, proxy(bt.length ? bt.reduce((Bt, [zt, Vt]) => ({ ...Bt, [zt]: Vt }), {}) : void 0));
6922
6922
  }, rt = (bt) => set$2(Ye, proxy(bt)), nt = () => {
6923
6923
  set$2(Ze, void 0), clearTimeout(Qe), Qe = setTimeout(
6924
6924
  () => {
@@ -6950,7 +6950,7 @@ function PayNowForm($e, De) {
6950
6950
  return;
6951
6951
  }
6952
6952
  }
6953
- }, st = De.checkout.availablePaymentMethods.filter(({ provider: bt }) => !["DUMMY", "SESAMY", "BILLOGRAM"].includes(bt)).reduce(
6953
+ }, lt = De.checkout.availablePaymentMethods.filter(({ provider: bt }) => !["DUMMY", "SESAMY", "BILLOGRAM"].includes(bt)).reduce(
6954
6954
  (bt, { provider: pt, methods: yt }) => [
6955
6955
  ...bt,
6956
6956
  ...yt != null && yt.length ? yt.map(($t) => ({
@@ -6961,17 +6961,17 @@ function PayNowForm($e, De) {
6961
6961
  ],
6962
6962
  []
6963
6963
  );
6964
- isSupportingGooglePay() && st.push({
6964
+ isSupportingGooglePay() && lt.push({
6965
6965
  provider: "STRIPE",
6966
6966
  method: "GOOGLE-PAY",
6967
6967
  icon: "google-pay"
6968
- }), isSupportingApplePay() && st.push({
6968
+ }), isSupportingApplePay() && lt.push({
6969
6969
  provider: "STRIPE",
6970
6970
  method: "APPLE-PAY",
6971
6971
  icon: "apple-pay"
6972
- }), st.length && rt(st[0]);
6973
- var ct = root$4(), ot = first_child(ct), lt = child(ot);
6974
- InputGroup(lt, {
6972
+ }), lt.length && rt(lt[0]);
6973
+ var ct = root$4(), ot = first_child(ct), st = child(ot);
6974
+ InputGroup(st, {
6975
6975
  children: (bt, pt) => {
6976
6976
  var yt = root_1$1(), $t = first_child(yt), vt = /* @__PURE__ */ derived(() => De.t("email")), Rt = /* @__PURE__ */ derived(() => {
6977
6977
  var St;
@@ -7026,12 +7026,12 @@ function PayNowForm($e, De) {
7026
7026
  },
7027
7027
  $$slots: { default: !0 }
7028
7028
  });
7029
- var ut = sibling(xt, 2), dt = /* @__PURE__ */ derived(() => De.t("country"));
7029
+ var ut = sibling(xt, 2), ft = /* @__PURE__ */ derived(() => De.t("country"));
7030
7030
  Select(ut, {
7031
7031
  options: He,
7032
7032
  compact: !0,
7033
7033
  get placeholder() {
7034
- return get$1(dt);
7034
+ return get$1(ft);
7035
7035
  },
7036
7036
  get value() {
7037
7037
  return get$1(Xe);
@@ -7122,8 +7122,8 @@ function PayNowForm($e, De) {
7122
7122
  },
7123
7123
  $$slots: { default: !0 }
7124
7124
  });
7125
- var ft = sibling(lt, 2);
7126
- each(ft, 23, () => st, (bt) => `${bt.provider}-${bt.method}`, (bt, pt, yt) => {
7125
+ var dt = sibling(st, 2);
7126
+ each(dt, 23, () => lt, (bt) => `${bt.provider}-${bt.method}`, (bt, pt, yt) => {
7127
7127
  const $t = /* @__PURE__ */ derived(() => {
7128
7128
  const { provider: vt, method: Rt, icon: xt } = get$1(pt);
7129
7129
  return { provider: vt, method: Rt, icon: xt };
@@ -7140,7 +7140,7 @@ function PayNowForm($e, De) {
7140
7140
  },
7141
7141
  name: "payment-method",
7142
7142
  onchange: () => rt(get$1(pt)),
7143
- children: (ut, dt) => {
7143
+ children: (ut, ft) => {
7144
7144
  var _t = root_9$1(), Ot = first_child(_t);
7145
7145
  Row(Ot, {
7146
7146
  class: "w-16",
@@ -7177,8 +7177,8 @@ function PayNowForm($e, De) {
7177
7177
  },
7178
7178
  $$slots: { default: !0 }
7179
7179
  });
7180
- }), reset(ft);
7181
- var gt = sibling(ft, 2);
7180
+ }), reset(dt);
7181
+ var gt = sibling(dt, 2);
7182
7182
  Button_wc(gt, {
7183
7183
  get loading() {
7184
7184
  return get$1(Je);
@@ -7267,10 +7267,10 @@ function Renderer($e, De) {
7267
7267
  features: rt,
7268
7268
  footerPaymentMethods: nt,
7269
7269
  logoUrl: at,
7270
- vendorId: st,
7270
+ vendorId: lt,
7271
7271
  settings: { useDefaultLogo: ct, styling: ot }
7272
7272
  } = De.paywall;
7273
- const lt = async (Rt) => {
7273
+ const st = async (Rt) => {
7274
7274
  var Nt;
7275
7275
  if (set$2(We, ""), Rt.preventDefault(), !get$1(Be)) return;
7276
7276
  set$2(Ke, !0);
@@ -7280,7 +7280,7 @@ function Renderer($e, De) {
7280
7280
  };
7281
7281
  try {
7282
7282
  set$2(Ge, proxy(await De.api.checkouts.create({
7283
- vendorId: st,
7283
+ vendorId: lt,
7284
7284
  items: [xt],
7285
7285
  discountCode: get$1(Be).discountCode,
7286
7286
  redirectUrl: Xe,
@@ -7300,7 +7300,7 @@ function Renderer($e, De) {
7300
7300
  console.error(ut), set$2(We, proxy(De.t("something_went_wrong"))), set$2(Ke, !1);
7301
7301
  return;
7302
7302
  }
7303
- }, ft = (Rt) => {
7303
+ }, dt = (Rt) => {
7304
7304
  set$2(We, ""), set$2(Be, proxy({
7305
7305
  ...Rt,
7306
7306
  features: (Rt == null ? void 0 : Rt.features) || rt
@@ -7308,7 +7308,7 @@ function Renderer($e, De) {
7308
7308
  }, mt = Je.length > 0;
7309
7309
  if (mt) {
7310
7310
  const Rt = Je.find(({ selected: xt }) => xt);
7311
- Rt ? ft(Rt) : (Je[0].selected = !0, ft(Je[0]));
7311
+ Rt ? dt(Rt) : (Je[0].selected = !0, dt(Je[0]));
7312
7312
  }
7313
7313
  const gt = hexToHsl((ot == null ? void 0 : ot.backgroundColor) || "#FFFFFF");
7314
7314
  let It = "<style>" + `
@@ -7331,7 +7331,7 @@ function Renderer($e, De) {
7331
7331
  },
7332
7332
  up: !0,
7333
7333
  left: !0,
7334
- children: (ut, dt) => {
7334
+ children: (ut, ft) => {
7335
7335
  var _t = root_2$1(), Ot = first_child(_t);
7336
7336
  NotLoggedIn(Ot, {
7337
7337
  get api() {
@@ -7367,7 +7367,7 @@ function Renderer($e, De) {
7367
7367
  {
7368
7368
  var Tt = (Ut) => {
7369
7369
  var Ht = root_6();
7370
- set_attribute(Ht, "src", at), template_effect(() => set_attribute(Ht, "alt", `${De.t("logo_of")} ${st}`)), append$1(Ut, Ht);
7370
+ set_attribute(Ht, "src", at), template_effect(() => set_attribute(Ht, "alt", `${De.t("logo_of")} ${lt}`)), append$1(Ut, Ht);
7371
7371
  };
7372
7372
  if_block(St, (Ut) => {
7373
7373
  ct && Ut(Tt);
@@ -7416,7 +7416,7 @@ function Renderer($e, De) {
7416
7416
  return De.t;
7417
7417
  },
7418
7418
  currency: et,
7419
- selectProduct: ft,
7419
+ selectProduct: dt,
7420
7420
  redirectUrl: Xe
7421
7421
  });
7422
7422
  };
@@ -7433,7 +7433,7 @@ function Renderer($e, De) {
7433
7433
  get t() {
7434
7434
  return De.t;
7435
7435
  },
7436
- selectProduct: ft,
7436
+ selectProduct: dt,
7437
7437
  hasSubscriptions: mt
7438
7438
  },
7439
7439
  () => He
@@ -7467,7 +7467,7 @@ function Renderer($e, De) {
7467
7467
  Fe() || Yt(or);
7468
7468
  });
7469
7469
  }
7470
- reset(Ht), event("submit", Ht, lt), append$1(Ut, Ht);
7470
+ reset(Ht), event("submit", Ht, st), append$1(Ut, Ht);
7471
7471
  };
7472
7472
  if_block(Bt, (Ut) => {
7473
7473
  get$1(Ge) ? Ut(zt) : Ut(Vt, !1);
@@ -7619,13 +7619,13 @@ function RegistrationWall_wc($e, De) {
7619
7619
  const Ge = /* @__PURE__ */ derived_safe_equal(() => Be.api);
7620
7620
  var Ke = root_1(), We = child(Ke);
7621
7621
  slot(We, De, "title", {}, (ot) => {
7622
- var lt = root_2();
7623
- append$1(ot, lt);
7622
+ var st = root_2();
7623
+ append$1(ot, st);
7624
7624
  });
7625
7625
  var Xe = sibling(We, 2);
7626
7626
  slot(Xe, De, "description", {}, (ot) => {
7627
- var lt = root_3();
7628
- append$1(ot, lt);
7627
+ var st = root_3();
7628
+ append$1(ot, st);
7629
7629
  });
7630
7630
  var Je = sibling(Xe, 2), Ze = sibling(child(Je), 2);
7631
7631
  Ze.__click = [on_click, Fe, Ge];
@@ -7639,8 +7639,8 @@ function RegistrationWall_wc($e, De) {
7639
7639
  FacebookLogo(nt, { width: "18", height: "18" }), next(2), reset(rt), reset(tt);
7640
7640
  var at = sibling(tt, 2);
7641
7641
  at.__click = [on_click_3, Fe, Ge];
7642
- var st = child(at), ct = child(st);
7643
- AppleLogo(ct, { width: "18", height: "18" }), next(2), reset(st), reset(at), reset(Je), next(2), reset(Ke), append$1(He, Ke);
7642
+ var lt = child(at), ct = child(lt);
7643
+ AppleLogo(ct, { width: "18", height: "18" }), next(2), reset(lt), reset(at), reset(Je), next(2), reset(Ke), append$1(He, Ke);
7644
7644
  }
7645
7645
  }
7646
7646
  });
@@ -9291,10 +9291,10 @@ var isObject$2 = isObject$c, createNonEnumerableProperty$2 = createNonEnumerable
9291
9291
  }, bind$3 = functionBindContext, call$6 = functionCall, anObject$2 = anObject$b, tryToString$1 = tryToString$4, isArrayIteratorMethod = isArrayIteratorMethod$2, lengthOfArrayLike = lengthOfArrayLike$3, isPrototypeOf$1 = objectIsPrototypeOf, getIterator = getIterator$3, getIteratorMethod = getIteratorMethod$4, iteratorClose = iteratorClose$2, $TypeError$2 = TypeError, Result = function($e, De) {
9292
9292
  this.stopped = $e, this.result = De;
9293
9293
  }, ResultPrototype = Result.prototype, iterate$5 = function($e, De, Fe) {
9294
- var He = Fe && Fe.that, Be = !!(Fe && Fe.AS_ENTRIES), Ge = !!(Fe && Fe.IS_RECORD), Ke = !!(Fe && Fe.IS_ITERATOR), We = !!(Fe && Fe.INTERRUPTED), Xe = bind$3(De, He), Je, Ze, Ye, et, Qe, tt, rt, nt = function(st) {
9295
- return Je && iteratorClose(Je, "normal", st), new Result(!0, st);
9296
- }, at = function(st) {
9297
- return Be ? (anObject$2(st), We ? Xe(st[0], st[1], nt) : Xe(st[0], st[1])) : We ? Xe(st, nt) : Xe(st);
9294
+ var He = Fe && Fe.that, Be = !!(Fe && Fe.AS_ENTRIES), Ge = !!(Fe && Fe.IS_RECORD), Ke = !!(Fe && Fe.IS_ITERATOR), We = !!(Fe && Fe.INTERRUPTED), Xe = bind$3(De, He), Je, Ze, Ye, et, Qe, tt, rt, nt = function(lt) {
9295
+ return Je && iteratorClose(Je, "normal", lt), new Result(!0, lt);
9296
+ }, at = function(lt) {
9297
+ return Be ? (anObject$2(lt), We ? Xe(lt[0], lt[1], nt) : Xe(lt[0], lt[1])) : We ? Xe(lt, nt) : Xe(lt);
9298
9298
  };
9299
9299
  if (Ge)
9300
9300
  Je = $e.iterator;
@@ -9312,8 +9312,8 @@ var isObject$2 = isObject$c, createNonEnumerableProperty$2 = createNonEnumerable
9312
9312
  for (tt = Ge ? $e.next : Je.next; !(rt = call$6(tt, Je)).done; ) {
9313
9313
  try {
9314
9314
  Qe = at(rt.value);
9315
- } catch (st) {
9316
- iteratorClose(Je, "throw", st);
9315
+ } catch (lt) {
9316
+ iteratorClose(Je, "throw", lt);
9317
9317
  }
9318
9318
  if (typeof Qe == "object" && Qe && isPrototypeOf$1(ResultPrototype, Qe)) return Qe;
9319
9319
  }
@@ -9862,24 +9862,24 @@ var a$6 = i$6(o$5(function($e, De) {
9862
9862
  return new (et || (et = Promise))(function(tt, rt) {
9863
9863
  function nt(ct) {
9864
9864
  try {
9865
- st(Qe.next(ct));
9865
+ lt(Qe.next(ct));
9866
9866
  } catch (ot) {
9867
9867
  rt(ot);
9868
9868
  }
9869
9869
  }
9870
9870
  function at(ct) {
9871
9871
  try {
9872
- st(Qe.throw(ct));
9872
+ lt(Qe.throw(ct));
9873
9873
  } catch (ot) {
9874
9874
  rt(ot);
9875
9875
  }
9876
9876
  }
9877
- function st(ct) {
9877
+ function lt(ct) {
9878
9878
  ct.done ? tt(ct.value) : new et(function(ot) {
9879
9879
  ot(ct.value);
9880
9880
  }).then(nt, at);
9881
9881
  }
9882
- st((Qe = Qe.apply(Ze, Ye || [])).next());
9882
+ lt((Qe = Qe.apply(Ze, Ye || [])).next());
9883
9883
  });
9884
9884
  }, He = t$1 && t$1.__generator || function(Ze, Ye) {
9885
9885
  var et, Qe, tt, rt, nt = { label: 0, sent: function() {
@@ -9889,7 +9889,7 @@ var a$6 = i$6(o$5(function($e, De) {
9889
9889
  return rt = { next: at(0), throw: at(1), return: at(2) }, typeof Symbol == "function" && (rt[Symbol.iterator] = function() {
9890
9890
  return this;
9891
9891
  }), rt;
9892
- function at(st) {
9892
+ function at(lt) {
9893
9893
  return function(ct) {
9894
9894
  return function(ot) {
9895
9895
  if (et) throw new TypeError("Generator is already executing.");
@@ -9929,14 +9929,14 @@ var a$6 = i$6(o$5(function($e, De) {
9929
9929
  continue;
9930
9930
  }
9931
9931
  ot = Ye.call(Ze, nt);
9932
- } catch (lt) {
9933
- ot = [6, lt], Qe = 0;
9932
+ } catch (st) {
9933
+ ot = [6, st], Qe = 0;
9934
9934
  } finally {
9935
9935
  et = tt = 0;
9936
9936
  }
9937
9937
  if (5 & ot[0]) throw ot[1];
9938
9938
  return { value: ot[0] ? ot[1] : void 0, done: !0 };
9939
- }([st, ct]);
9939
+ }([lt, ct]);
9940
9940
  };
9941
9941
  }
9942
9942
  }, Be = t$1;
@@ -9998,7 +9998,7 @@ var a$6 = i$6(o$5(function($e, De) {
9998
9998
  }
9999
9999
  return Ze.prototype.acquireLock = function(Ye, et) {
10000
10000
  return et === void 0 && (et = 5e3), Fe(this, void 0, void 0, function() {
10001
- var Qe, tt, rt, nt, at, st, ct;
10001
+ var Qe, tt, rt, nt, at, lt, ct;
10002
10002
  return He(this, function(ot) {
10003
10003
  switch (ot.label) {
10004
10004
  case 0:
@@ -10010,7 +10010,7 @@ var a$6 = i$6(o$5(function($e, De) {
10010
10010
  case 3:
10011
10011
  return ot.sent(), nt.setItemSync(rt, JSON.stringify({ id: this.id, iat: Qe, timeoutKey: at, timeAcquired: Date.now(), timeRefreshed: Date.now() })), [4, We(30)];
10012
10012
  case 4:
10013
- return ot.sent(), (st = nt.getItemSync(rt)) !== null && (ct = JSON.parse(st)).id === this.id && ct.iat === Qe ? (this.acquiredIatSet.add(Qe), this.refreshLockWhileAcquired(rt, Qe), [2, !0]) : [3, 7];
10013
+ return ot.sent(), (lt = nt.getItemSync(rt)) !== null && (ct = JSON.parse(lt)).id === this.id && ct.iat === Qe ? (this.acquiredIatSet.add(Qe), this.refreshLockWhileAcquired(rt, Qe), [2, !0]) : [3, 7];
10014
10014
  case 5:
10015
10015
  return Ze.lockCorrector(this.storageHandler === void 0 ? Ke : this.storageHandler), [4, this.waitForSomethingToChange(tt)];
10016
10016
  case 6:
@@ -10029,12 +10029,12 @@ var a$6 = i$6(o$5(function($e, De) {
10029
10029
  return setTimeout(function() {
10030
10030
  return Fe(Qe, void 0, void 0, function() {
10031
10031
  var rt, nt, at;
10032
- return He(this, function(st) {
10033
- switch (st.label) {
10032
+ return He(this, function(lt) {
10033
+ switch (lt.label) {
10034
10034
  case 0:
10035
10035
  return [4, n$2.default().lock(et)];
10036
10036
  case 1:
10037
- return st.sent(), this.acquiredIatSet.has(et) ? (rt = this.storageHandler === void 0 ? Ke : this.storageHandler, (nt = rt.getItemSync(Ye)) === null ? (n$2.default().unlock(et), [2]) : ((at = JSON.parse(nt)).timeRefreshed = Date.now(), rt.setItemSync(Ye, JSON.stringify(at)), n$2.default().unlock(et), this.refreshLockWhileAcquired(Ye, et), [2])) : (n$2.default().unlock(et), [2]);
10037
+ return lt.sent(), this.acquiredIatSet.has(et) ? (rt = this.storageHandler === void 0 ? Ke : this.storageHandler, (nt = rt.getItemSync(Ye)) === null ? (n$2.default().unlock(et), [2]) : ((at = JSON.parse(nt)).timeRefreshed = Date.now(), rt.setItemSync(Ye, JSON.stringify(at)), n$2.default().unlock(et), this.refreshLockWhileAcquired(Ye, et), [2])) : (n$2.default().unlock(et), [2]);
10038
10038
  }
10039
10039
  });
10040
10040
  });
@@ -10049,14 +10049,14 @@ var a$6 = i$6(o$5(function($e, De) {
10049
10049
  return [4, new Promise(function(Qe) {
10050
10050
  var tt = !1, rt = Date.now(), nt = !1;
10051
10051
  function at() {
10052
- if (nt || (window.removeEventListener("storage", at), Ze.removeFromWaiting(at), clearTimeout(st), nt = !0), !tt) {
10052
+ if (nt || (window.removeEventListener("storage", at), Ze.removeFromWaiting(at), clearTimeout(lt), nt = !0), !tt) {
10053
10053
  tt = !0;
10054
10054
  var ct = 50 - (Date.now() - rt);
10055
10055
  ct > 0 ? setTimeout(Qe, ct) : Qe(null);
10056
10056
  }
10057
10057
  }
10058
10058
  window.addEventListener("storage", at), Ze.addToWaiting(at);
10059
- var st = setTimeout(at, Math.max(0, Ye - Date.now()));
10059
+ var lt = setTimeout(at, Math.max(0, Ye - Date.now()));
10060
10060
  })];
10061
10061
  case 1:
10062
10062
  return et.sent(), [2];
@@ -10104,13 +10104,13 @@ var a$6 = i$6(o$5(function($e, De) {
10104
10104
  if (nt === null) break;
10105
10105
  tt.push(nt), rt++;
10106
10106
  }
10107
- for (var at = !1, st = 0; st < tt.length; st++) {
10108
- var ct = tt[st];
10107
+ for (var at = !1, lt = 0; lt < tt.length; lt++) {
10108
+ var ct = tt[lt];
10109
10109
  if (ct.includes(Ge)) {
10110
10110
  var ot = Qe.getItemSync(ct);
10111
10111
  if (ot !== null) {
10112
- var lt = JSON.parse(ot);
10113
- (lt.timeRefreshed === void 0 && lt.timeAcquired < et || lt.timeRefreshed !== void 0 && lt.timeRefreshed < et) && (Qe.removeItemSync(ct), at = !0);
10112
+ var st = JSON.parse(ot);
10113
+ (st.timeRefreshed === void 0 && st.timeAcquired < et || st.timeRefreshed !== void 0 && st.timeRefreshed < et) && (Qe.removeItemSync(ct), at = !0);
10114
10114
  }
10115
10115
  }
10116
10116
  }
@@ -10188,20 +10188,20 @@ async function T$1($e, De) {
10188
10188
  var { baseUrl: Fe, timeout: He, audience: Be, scope: Ge, auth0Client: Ke, useFormData: We } = $e, Xe = e$1($e, ["baseUrl", "timeout", "audience", "scope", "auth0Client", "useFormData"]);
10189
10189
  const Je = We ? v$1(Xe) : JSON.stringify(Xe);
10190
10190
  return await async function(Ze, Ye, et, Qe, tt, rt, nt) {
10191
- let at, st = null;
10191
+ let at, lt = null;
10192
10192
  for (let gt = 0; gt < 3; gt++) try {
10193
- at = await O$2(Ze, et, Qe, tt, rt, nt, Ye), st = null;
10193
+ at = await O$2(Ze, et, Qe, tt, rt, nt, Ye), lt = null;
10194
10194
  break;
10195
10195
  } catch (wt) {
10196
- st = wt;
10196
+ lt = wt;
10197
10197
  }
10198
- if (st) throw st;
10199
- const ct = at.json, { error: ot, error_description: lt } = ct, ft = e$1(ct, ["error", "error_description"]), { ok: mt } = at;
10198
+ if (lt) throw lt;
10199
+ const ct = at.json, { error: ot, error_description: st } = ct, dt = e$1(ct, ["error", "error_description"]), { ok: mt } = at;
10200
10200
  if (!mt) {
10201
- const gt = lt || `HTTP error. Unable to fetch ${Ze}`;
10202
- throw ot === "mfa_required" ? new m$2(ot, gt, ft.mfa_token) : ot === "missing_refresh_token" ? new f$2(et, Qe) : new d$2(ot || "request_error", gt);
10201
+ const gt = st || `HTTP error. Unable to fetch ${Ze}`;
10202
+ throw ot === "mfa_required" ? new m$2(ot, gt, dt.mfa_token) : ot === "missing_refresh_token" ? new f$2(et, Qe) : new d$2(ot || "request_error", gt);
10203
10203
  }
10204
- return ft;
10204
+ return dt;
10205
10205
  }(`${Fe}/oauth/token`, He, Be || "default", Ge, { method: "POST", body: Je, headers: { "Content-Type": We ? "application/x-www-form-urlencoded" : "application/json", "Auth0-Client": btoa(JSON.stringify(Ke || s$2)) } }, De, We);
10206
10206
  }
10207
10207
  const j$1 = (...$e) => {
@@ -10671,20 +10671,20 @@ let te$1 = class {
10671
10671
  try {
10672
10672
  if (window.crossOriginIsolated) throw new d$2("login_required", "The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");
10673
10673
  const Ze = $e.timeoutInSeconds || this.options.authorizeTimeoutInSeconds, Ye = await ((Qe, tt, rt = 60) => new Promise((nt, at) => {
10674
- const st = window.document.createElement("iframe");
10675
- st.setAttribute("width", "0"), st.setAttribute("height", "0"), st.style.display = "none";
10674
+ const lt = window.document.createElement("iframe");
10675
+ lt.setAttribute("width", "0"), lt.setAttribute("height", "0"), lt.style.display = "none";
10676
10676
  const ct = () => {
10677
- window.document.body.contains(st) && (window.document.body.removeChild(st), window.removeEventListener("message", ot, !1));
10677
+ window.document.body.contains(lt) && (window.document.body.removeChild(lt), window.removeEventListener("message", ot, !1));
10678
10678
  };
10679
10679
  let ot;
10680
- const lt = setTimeout(() => {
10680
+ const st = setTimeout(() => {
10681
10681
  at(new l$3()), ct();
10682
10682
  }, 1e3 * rt);
10683
- ot = function(ft) {
10684
- if (ft.origin != tt || !ft.data || ft.data.type !== "authorization_response") return;
10685
- const mt = ft.source;
10686
- mt && mt.close(), ft.data.response.error ? at(d$2.fromPayload(ft.data.response)) : nt(ft.data.response), clearTimeout(lt), window.removeEventListener("message", ot, !1), setTimeout(ct, 2e3);
10687
- }, window.addEventListener("message", ot, !1), window.document.body.appendChild(st), st.setAttribute("src", Qe);
10683
+ ot = function(dt) {
10684
+ if (dt.origin != tt || !dt.data || dt.data.type !== "authorization_response") return;
10685
+ const mt = dt.source;
10686
+ mt && mt.close(), dt.data.response.error ? at(d$2.fromPayload(dt.data.response)) : nt(dt.data.response), clearTimeout(st), window.removeEventListener("message", ot, !1), setTimeout(ct, 2e3);
10687
+ }, window.addEventListener("message", ot, !1), window.document.body.appendChild(lt), lt.setAttribute("src", Qe);
10688
10688
  }))(He, this.domainUrl, Ze);
10689
10689
  if (Be !== Ye.state) throw new d$2("state_mismatch", "Invalid state");
10690
10690
  const et = await this._requestToken(Object.assign(Object.assign({}, $e.authorizationParams), { code_verifier: Ke, code: Ye.code, grant_type: "authorization_code", redirect_uri: We, timeout: $e.authorizationParams.timeout || this.httpTimeoutMs }), { nonceIn: Ge, organization: De.organization });
@@ -11176,9 +11176,9 @@ const defaultSkip = ($e, De) => De.skipDedupe || De.method !== "GET", defaultKey
11176
11176
  error: tt,
11177
11177
  url: Je,
11178
11178
  options: Ze
11179
- })).then((st = {}) => {
11179
+ })).then((lt = {}) => {
11180
11180
  var ct, ot;
11181
- nt(Xe((ct = st && st.url) !== null && ct !== void 0 ? ct : Je, (ot = st && st.options) !== null && ot !== void 0 ? ot : Ze));
11181
+ nt(Xe((ct = lt && lt.url) !== null && ct !== void 0 ? ct : Je, (ot = lt && lt.options) !== null && ot !== void 0 ? ot : Ze));
11182
11182
  }) : nt(Xe(Je, Ze));
11183
11183
  }, at);
11184
11184
  }).then(et).catch((nt) => {
@@ -11248,27 +11248,27 @@ const resolver = ($e) => {
11248
11248
  }).then((ct) => {
11249
11249
  var ot;
11250
11250
  if (!ct.ok) {
11251
- const lt = new WretchError();
11252
- if (lt.cause = Qe, lt.stack = lt.stack + `
11253
- CAUSE: ` + Qe.stack, lt.response = ct, lt.status = ct.status, lt.url = Ye, ct.type === "opaque")
11254
- throw lt;
11255
- const ft = Be.errorType === "json" || ((ot = ct.headers.get("Content-Type")) === null || ot === void 0 ? void 0 : ot.split(";")[0]) === "application/json";
11256
- return (Be.errorType ? ft ? ct.text() : ct[Be.errorType]() : Promise.resolve(ct.body)).then((mt) => {
11257
- throw lt.message = typeof mt == "string" ? mt : ct.statusText, mt && (ft && typeof mt == "string" ? (lt.text = mt, lt.json = JSON.parse(mt)) : lt[Be.errorType] = mt), lt;
11251
+ const st = new WretchError();
11252
+ if (st.cause = Qe, st.stack = st.stack + `
11253
+ CAUSE: ` + Qe.stack, st.response = ct, st.status = ct.status, st.url = Ye, ct.type === "opaque")
11254
+ throw st;
11255
+ const dt = Be.errorType === "json" || ((ot = ct.headers.get("Content-Type")) === null || ot === void 0 ? void 0 : ot.split(";")[0]) === "application/json";
11256
+ return (Be.errorType ? dt ? ct.text() : ct[Be.errorType]() : Promise.resolve(ct.body)).then((mt) => {
11257
+ throw st.message = typeof mt == "string" ? mt : ct.statusText, mt && (dt && typeof mt == "string" ? (st.text = mt, st.json = JSON.parse(mt)) : st[Be.errorType] = mt), st;
11258
11258
  });
11259
11259
  }
11260
11260
  return ct;
11261
11261
  }), rt = (ct) => ct.catch((ot) => {
11262
- const lt = Object.prototype.hasOwnProperty.call(ot, FETCH_ERROR), ft = lt ? ot[FETCH_ERROR] : ot, mt = (ft == null ? void 0 : ft.status) && Je.get(ft.status) || Je.get(ft == null ? void 0 : ft.name) || lt && Je.has(FETCH_ERROR) && Je.get(FETCH_ERROR);
11262
+ const st = Object.prototype.hasOwnProperty.call(ot, FETCH_ERROR), dt = st ? ot[FETCH_ERROR] : ot, mt = (dt == null ? void 0 : dt.status) && Je.get(dt.status) || Je.get(dt == null ? void 0 : dt.name) || st && Je.has(FETCH_ERROR) && Je.get(FETCH_ERROR);
11263
11263
  if (mt)
11264
- return mt(ft, $e);
11264
+ return mt(dt, $e);
11265
11265
  const gt = Je.get(CATCHER_FALLBACK);
11266
11266
  if (gt)
11267
- return gt(ft, $e);
11268
- throw ft;
11267
+ return gt(dt, $e);
11268
+ throw dt;
11269
11269
  }), nt = (ct) => (ot) => (
11270
11270
  /* If a callback is provided, then callback with the body result otherwise return the parsed body itself. */
11271
- rt(ct ? tt.then((lt) => lt && lt[ct]()).then((lt) => ot ? ot(lt) : lt) : tt.then((lt) => ot ? ot(lt) : lt))
11271
+ rt(ct ? tt.then((st) => st && st[ct]()).then((st) => ot ? ot(st) : st) : tt.then((st) => ot ? ot(st) : st))
11272
11272
  ), at = {
11273
11273
  _wretchReq: $e,
11274
11274
  _fetchReq: et,
@@ -11303,11 +11303,11 @@ CAUSE: ` + Qe.stack, lt.response = ct, lt.status = ct.status, lt.url = Ye, ct.ty
11303
11303
  fetchError(ct) {
11304
11304
  return this.error(FETCH_ERROR, ct);
11305
11305
  }
11306
- }, st = Xe.reduce((ct, ot) => ({
11306
+ }, lt = Xe.reduce((ct, ot) => ({
11307
11307
  ...ct,
11308
11308
  ...typeof ot.resolver == "function" ? ot.resolver(ct) : ot.resolver
11309
11309
  }), at);
11310
- return Ke.reduce((ct, ot) => ot(ct, $e), st);
11310
+ return Ke.reduce((ct, ot) => ot(ct, $e), lt);
11311
11311
  }, core = {
11312
11312
  _url: "",
11313
11313
  _options: {},
@@ -11630,7 +11630,7 @@ function createApi($e) {
11630
11630
  async function at() {
11631
11631
  return Ge.get("/bills").json();
11632
11632
  }
11633
- async function st(ht) {
11633
+ async function lt(ht) {
11634
11634
  const Et = await Ge.get("/bills").json();
11635
11635
  return Et == null ? void 0 : Et.find((Ct) => Ct.id === ht);
11636
11636
  }
@@ -11641,11 +11641,11 @@ function createApi($e) {
11641
11641
  const Et = await Ge.get("/transactions").json();
11642
11642
  return Et == null ? void 0 : Et.find((Ct) => Ct.id === ht);
11643
11643
  }
11644
- async function lt(ht, Et) {
11644
+ async function st(ht, Et) {
11645
11645
  const Ct = await Ge.url(`/user-metadata/${encodeURIComponent(ht)}`).put(Et).json();
11646
11646
  return triggerEvent(Events.USER_ATTRIBUTE_CHANGED, {}), clearCache(), Ct;
11647
11647
  }
11648
- async function ft(ht) {
11648
+ async function dt(ht) {
11649
11649
  const Et = await Ge.url(`/user-metadata/${encodeURIComponent(ht)}`).delete().res();
11650
11650
  return clearCache(), Et.ok;
11651
11651
  }
@@ -11692,7 +11692,7 @@ function createApi($e) {
11692
11692
  async function ut() {
11693
11693
  return await Ge.url("/payment-issues").get().json();
11694
11694
  }
11695
- async function dt() {
11695
+ async function ft() {
11696
11696
  return (await Ge.url("/profile/spotify-link").get().json()).isSpotifyLinked;
11697
11697
  }
11698
11698
  async function _t() {
@@ -11778,9 +11778,9 @@ function createApi($e) {
11778
11778
  createCheckout: Tt,
11779
11779
  deleteTag: It,
11780
11780
  deleteTally: $t,
11781
- deleteUserMetadata: ft,
11781
+ deleteUserMetadata: dt,
11782
11782
  generateLink: St,
11783
- getBill: st,
11783
+ getBill: lt,
11784
11784
  getBills: at,
11785
11785
  getCheckout: Pt,
11786
11786
  getProxyContent: Ye,
@@ -11802,13 +11802,13 @@ function createApi($e) {
11802
11802
  getTransactions: ct,
11803
11803
  getUserMetadata: mt,
11804
11804
  hasAccess: Xe,
11805
- isSpotifyLinked: dt,
11805
+ isSpotifyLinked: ft,
11806
11806
  linkSpotify: Ot,
11807
11807
  listUserMetadata: gt,
11808
11808
  openHostedAccountPage: Vt,
11809
11809
  pushTally: vt,
11810
11810
  setTag: bt,
11811
- setUserMetadata: lt,
11811
+ setUserMetadata: st,
11812
11812
  unlinkSpotify: _t,
11813
11813
  updateCheckout: Lt,
11814
11814
  updateProfile: Nt,
@@ -12193,13 +12193,13 @@ function F$1($e, De, Fe) {
12193
12193
  Je.processIndex.forEach(function(Ye) {
12194
12194
  var et = We.actions[Ye], Qe = et.plugin, tt = et.payload.type, rt = Be[Qe][tt];
12195
12195
  if (rt && W$1(rt)) {
12196
- var nt, at = function(ot, lt) {
12197
- return ot === void 0 && (ot = {}), lt === void 0 && (lt = {}), [k$1, T].reduce(function(ft, mt) {
12198
- return ot.hasOwnProperty(mt) && lt[mt] && lt[mt] !== ot[mt] && (ft[mt] = lt[mt]), ft;
12196
+ var nt, at = function(ot, st) {
12197
+ return ot === void 0 && (ot = {}), st === void 0 && (st = {}), [k$1, T].reduce(function(dt, mt) {
12198
+ return ot.hasOwnProperty(mt) && st[mt] && st[mt] !== ot[mt] && (dt[mt] = st[mt]), dt;
12199
12199
  }, ot);
12200
- }(et.payload, Xe), st = He[at.meta.rid];
12201
- if (!st && (nt = rt({ payload: at, config: Ke[Qe].config, instance: Fe, abort: H })) && on(nt) && nt.abort) return void (He[at.meta.rid] = !0);
12202
- if (!st) {
12200
+ }(et.payload, Xe), lt = He[at.meta.rid];
12201
+ if (!lt && (nt = rt({ payload: at, config: Ke[Qe].config, instance: Fe, abort: H })) && on(nt) && nt.abort) return void (He[at.meta.rid] = !0);
12202
+ if (!lt) {
12203
12203
  var ct = tt + ":" + Qe;
12204
12204
  $e.dispatch(v({}, at, { type: ct, _: { called: ct, from: "queueDrain" } }));
12205
12205
  }
@@ -12222,34 +12222,34 @@ var G$1 = function($e) {
12222
12222
  return nt.pluginName;
12223
12223
  }));
12224
12224
  var tt = /* @__PURE__ */ function(nt, at) {
12225
- return function(st, ct, ot) {
12226
- var lt = ct.config, ft = ct.name, mt = ft + "." + st.type;
12225
+ return function(lt, ct, ot) {
12226
+ var st = ct.config, dt = ct.name, mt = dt + "." + lt.type;
12227
12227
  ot && (mt = ot.event);
12228
- var gt = st.type.match(K) ? /* @__PURE__ */ function(wt, It, bt, pt, yt) {
12228
+ var gt = lt.type.match(K) ? /* @__PURE__ */ function(wt, It, bt, pt, yt) {
12229
12229
  return function($t, vt) {
12230
12230
  var Rt = pt ? pt.name : wt, xt = vt && ae(vt) ? vt : bt;
12231
12231
  if (pt && (!(xt = vt && ae(vt) ? vt : [wt]).includes(wt) || xt.length !== 1)) throw new Error("Method " + It + " can only abort " + wt + " plugin. " + JSON.stringify(xt) + " input valid");
12232
12232
  return v({}, yt, { abort: { reason: $t, plugins: xt, caller: It, _: Rt } });
12233
12233
  };
12234
- }(ft, mt, at, ot, st) : /* @__PURE__ */ function(wt, It) {
12234
+ }(dt, mt, at, ot, lt) : /* @__PURE__ */ function(wt, It) {
12235
12235
  return function() {
12236
12236
  throw new Error(wt.type + " action not cancellable. Remove abort in " + It);
12237
12237
  };
12238
- }(st, mt);
12239
- return { payload: ce(st), instance: nt, config: lt || {}, abort: gt };
12238
+ }(lt, mt);
12239
+ return { payload: ce(lt), instance: nt, config: st || {}, abort: gt };
12240
12240
  };
12241
12241
  }(He, Qe), rt = De.exact.reduce(function(nt, at) {
12242
- var st = at.pluginName, ct = at.methodName, ot = !1;
12243
- return ct.match(/^initialize/) || ct.match(/^reset/) || (ot = !Je[st].loaded), Ze.offline && ct.match(/^(page|track|identify)/) && (ot = !0), nt["" + st] = ot, nt;
12242
+ var lt = at.pluginName, ct = at.methodName, ot = !1;
12243
+ return ct.match(/^initialize/) || ct.match(/^reset/) || (ot = !Je[lt].loaded), Ze.offline && ct.match(/^(page|track|identify)/) && (ot = !0), nt["" + lt] = ot, nt;
12244
12244
  }, {});
12245
- return Promise.resolve(De.exact.reduce(function(nt, at, st) {
12245
+ return Promise.resolve(De.exact.reduce(function(nt, at, lt) {
12246
12246
  try {
12247
12247
  var ct = at.pluginName;
12248
12248
  return Promise.resolve(nt).then(function(ot) {
12249
- function lt() {
12249
+ function st() {
12250
12250
  return Promise.resolve(ot);
12251
12251
  }
12252
- var ft = function() {
12252
+ var dt = function() {
12253
12253
  if (De.namespaced && De.namespaced[ct]) return Promise.resolve(De.namespaced[ct].reduce(function(mt, gt, wt) {
12254
12254
  try {
12255
12255
  return Promise.resolve(mt).then(function(It) {
@@ -12276,26 +12276,26 @@ var G$1 = function($e) {
12276
12276
  });
12277
12277
  ot[ct] = Fe;
12278
12278
  }();
12279
- return ft && ft.then ? ft.then(lt) : lt();
12279
+ return dt && dt.then ? dt.then(st) : st();
12280
12280
  });
12281
12281
  } catch (ot) {
12282
12282
  return Promise.reject(ot);
12283
12283
  }
12284
12284
  }, Promise.resolve({}))).then(function(nt) {
12285
- return Promise.resolve(De.exact.reduce(function(at, st, ct) {
12285
+ return Promise.resolve(De.exact.reduce(function(at, lt, ct) {
12286
12286
  try {
12287
- var ot = De.exact.length === ct + 1, lt = st.pluginName, ft = Ge[lt];
12287
+ var ot = De.exact.length === ct + 1, st = lt.pluginName, dt = Ge[st];
12288
12288
  return Promise.resolve(at).then(function(mt) {
12289
- var gt = nt[lt] ? nt[lt] : {};
12290
- if (et && (gt = mt), re(gt, lt)) return Z({ data: gt, method: Ye, instance: He, pluginName: lt, store: We }), Promise.resolve(mt);
12291
- if (re(mt, lt)) return ot && Z({ data: mt, method: Ye, instance: He, store: We }), Promise.resolve(mt);
12292
- if (rt.hasOwnProperty(lt) && rt[lt] === !0) return We.dispatch({ type: "queue", plugin: lt, payload: gt, _: { called: "queue", from: "queueMechanism" } }), Promise.resolve(mt);
12293
- var wt = tt(nt[lt], Ge[lt]);
12294
- return Promise.resolve(ft[Ye]({ abort: wt.abort, payload: gt, instance: He, config: ee(lt, Je, Ge), plugins: Je })).then(function(It) {
12295
- var bt = on(It) ? It : {}, pt = v({}, mt, bt), yt = nt[lt];
12296
- if (re(yt, lt)) Z({ data: yt, method: Ye, instance: He, pluginName: lt, store: We });
12289
+ var gt = nt[st] ? nt[st] : {};
12290
+ if (et && (gt = mt), re(gt, st)) return Z({ data: gt, method: Ye, instance: He, pluginName: st, store: We }), Promise.resolve(mt);
12291
+ if (re(mt, st)) return ot && Z({ data: mt, method: Ye, instance: He, store: We }), Promise.resolve(mt);
12292
+ if (rt.hasOwnProperty(st) && rt[st] === !0) return We.dispatch({ type: "queue", plugin: st, payload: gt, _: { called: "queue", from: "queueMechanism" } }), Promise.resolve(mt);
12293
+ var wt = tt(nt[st], Ge[st]);
12294
+ return Promise.resolve(dt[Ye]({ abort: wt.abort, payload: gt, instance: He, config: ee(st, Je, Ge), plugins: Je })).then(function(It) {
12295
+ var bt = on(It) ? It : {}, pt = v({}, mt, bt), yt = nt[st];
12296
+ if (re(yt, st)) Z({ data: yt, method: Ye, instance: He, pluginName: st, store: We });
12297
12297
  else {
12298
- var $t = Ye + ":" + lt;
12298
+ var $t = Ye + ":" + st;
12299
12299
  ($t.match(/:/g) || []).length < 2 && !Ye.match(Q) && !Ye.match(Y) && He.dispatch(v({}, et ? pt : gt, { type: $t, _: { called: $t, from: "submethod" } }));
12300
12300
  }
12301
12301
  return Promise.resolve(pt);
@@ -12307,8 +12307,8 @@ var G$1 = function($e) {
12307
12307
  }, Promise.resolve(Fe))).then(function(at) {
12308
12308
  if (!(Ye.match(K) || Ye.match(/^registerPlugin/) || Ye.match(Y) || Ye.match(Q) || Ye.match(/^params/) || Ye.match(/^userIdChanged/))) {
12309
12309
  if (Xe.plugins.includes(Ye), at._ && at._.originalAction === Ye) return at;
12310
- var st = v({}, at, { _: { originalAction: at.type, called: at.type, from: "engineEnd" } });
12311
- ie(at, De.exact.length) && !Ye.match(/End$/) && (st = v({}, st, { type: at.type + "Aborted" })), We.dispatch(st);
12310
+ var lt = v({}, at, { _: { originalAction: at.type, called: at.type, from: "engineEnd" } });
12311
+ ie(at, De.exact.length) && !Ye.match(/End$/) && (lt = v({}, lt, { type: at.type + "Aborted" })), We.dispatch(lt);
12312
12312
  }
12313
12313
  return at;
12314
12314
  });
@@ -12377,62 +12377,62 @@ function se($e, De, Fe) {
12377
12377
  return Ze.includes(ot);
12378
12378
  }).map(function(ot) {
12379
12379
  return et[ot];
12380
- }), rt = [], nt = [], at = Ke.disabled, st = tt.map(function(ot) {
12381
- var lt = ot.loaded, ft = ot.name, mt = ot.config;
12380
+ }), rt = [], nt = [], at = Ke.disabled, lt = tt.map(function(ot) {
12381
+ var st = ot.loaded, dt = ot.name, mt = ot.config;
12382
12382
  return W(ot, function() {
12383
- return lt({ config: mt });
12383
+ return st({ config: mt });
12384
12384
  }, 1e4).then(function(gt) {
12385
- return He[ft] || (Be.dispatch({ type: q.pluginReadyType(ft), name: ft, events: Object.keys(ot).filter(function(wt) {
12385
+ return He[dt] || (Be.dispatch({ type: q.pluginReadyType(dt), name: dt, events: Object.keys(ot).filter(function(wt) {
12386
12386
  return !M.includes(wt);
12387
- }) }), He[ft] = !0), rt = rt.concat(ft), ot;
12387
+ }) }), He[dt] = !0), rt = rt.concat(dt), ot;
12388
12388
  }).catch(function(gt) {
12389
12389
  if (gt instanceof Error) throw new Error(gt);
12390
12390
  return nt = nt.concat(gt.name), gt;
12391
12391
  });
12392
12392
  });
12393
- Promise.all(st).then(function(ot) {
12394
- var lt = { plugins: rt, failed: nt, disabled: at };
12393
+ Promise.all(lt).then(function(ot) {
12394
+ var st = { plugins: rt, failed: nt, disabled: at };
12395
12395
  setTimeout(function() {
12396
- Qe.length === st.length + at.length && Be.dispatch(v({}, { type: q.ready }, lt));
12396
+ Qe.length === lt.length + at.length && Be.dispatch(v({}, { type: q.ready }, st));
12397
12397
  }, 0);
12398
12398
  });
12399
12399
  }
12400
12400
  var ct = function() {
12401
12401
  if (Je !== q.bootstrap) return /^ready:([^:]*)$/.test(Je) && setTimeout(function() {
12402
12402
  return F$1(Be, De, $e);
12403
- }, 0), Promise.resolve(function(ot, lt, ft, mt, gt) {
12403
+ }, 0), Promise.resolve(function(ot, st, dt, mt, gt) {
12404
12404
  try {
12405
- var wt = W$1(lt) ? lt() : lt, It = ot.type, bt = It.replace(K, "");
12405
+ var wt = W$1(st) ? st() : st, It = ot.type, bt = It.replace(K, "");
12406
12406
  if (ot._ && ot._.called) return Promise.resolve(ot);
12407
- var pt = ft.getState(), yt = (Rt = wt, (xt = pt.plugins) === void 0 && (xt = {}), (Nt = ot.options) === void 0 && (Nt = {}), Object.keys(Rt).filter(function(ut) {
12408
- var dt = Nt.plugins || {};
12409
- return Q$1(dt[ut]) ? dt[ut] : dt.all !== !1 && (!xt[ut] || xt[ut].enabled !== !1);
12407
+ var pt = dt.getState(), yt = (Rt = wt, (xt = pt.plugins) === void 0 && (xt = {}), (Nt = ot.options) === void 0 && (Nt = {}), Object.keys(Rt).filter(function(ut) {
12408
+ var ft = Nt.plugins || {};
12409
+ return Q$1(ft[ut]) ? ft[ut] : ft.all !== !1 && (!xt[ut] || xt[ut].enabled !== !1);
12410
12410
  }).map(function(ut) {
12411
12411
  return Rt[ut];
12412
12412
  }));
12413
12413
  It === q.initializeStart && ot.fromEnable && (yt = Object.keys(pt.plugins).filter(function(ut) {
12414
- var dt = pt.plugins[ut];
12415
- return ot.plugins.includes(ut) && !dt.initialized;
12414
+ var ft = pt.plugins[ut];
12415
+ return ot.plugins.includes(ut) && !ft.initialized;
12416
12416
  }).map(function(ut) {
12417
12417
  return wt[ut];
12418
12418
  }));
12419
12419
  var $t = yt.map(function(ut) {
12420
12420
  return ut.name;
12421
- }), vt = function(ut, dt, _t) {
12421
+ }), vt = function(ut, ft, _t) {
12422
12422
  var Ot = te(ut).map(function(At) {
12423
- return ne(At, dt);
12423
+ return ne(At, ft);
12424
12424
  });
12425
- return dt.reduce(function(At, kt) {
12425
+ return ft.reduce(function(At, kt) {
12426
12426
  var St = kt.name, Tt = te(ut, St).map(function(Bt) {
12427
- return ne(Bt, dt);
12427
+ return ne(Bt, ft);
12428
12428
  }), Lt = Tt[0], Pt = Tt[1], Mt = Tt[2];
12429
12429
  return Lt.length && (At.beforeNS[St] = Lt), Pt.length && (At.duringNS[St] = Pt), Mt.length && (At.afterNS[St] = Mt), At;
12430
12430
  }, { before: Ot[0], beforeNS: {}, during: Ot[1], duringNS: {}, after: Ot[2], afterNS: {} });
12431
12431
  }(It, yt);
12432
- return Promise.resolve(G$1({ action: ot, data: { exact: vt.before, namespaced: vt.beforeNS }, state: pt, allPlugins: wt, allMatches: vt, instance: ft, store: mt, EVENTS: gt })).then(function(ut) {
12433
- function dt() {
12432
+ return Promise.resolve(G$1({ action: ot, data: { exact: vt.before, namespaced: vt.beforeNS }, state: pt, allPlugins: wt, allMatches: vt, instance: dt, store: mt, EVENTS: gt })).then(function(ut) {
12433
+ function ft() {
12434
12434
  var At = function() {
12435
- if (It.match(K)) return Promise.resolve(G$1({ action: v({}, _t, { type: bt + "End" }), data: { exact: vt.after, namespaced: vt.afterNS }, state: pt, allPlugins: wt, allMatches: vt, instance: ft, store: mt, EVENTS: gt })).then(function(kt) {
12435
+ if (It.match(K)) return Promise.resolve(G$1({ action: v({}, _t, { type: bt + "End" }), data: { exact: vt.after, namespaced: vt.afterNS }, state: pt, allPlugins: wt, allMatches: vt, instance: dt, store: mt, EVENTS: gt })).then(function(kt) {
12436
12436
  kt.meta && kt.meta.hasCallback && J$1(kt.meta.rid, { payload: kt });
12437
12437
  });
12438
12438
  }();
@@ -12442,12 +12442,12 @@ function se($e, De, Fe) {
12442
12442
  }
12443
12443
  if (ie(ut, $t.length)) return ut;
12444
12444
  var _t, Ot = function() {
12445
- if (It !== bt) return Promise.resolve(G$1({ action: v({}, ut, { type: bt }), data: { exact: vt.during, namespaced: vt.duringNS }, state: pt, allPlugins: wt, allMatches: vt, instance: ft, store: mt, EVENTS: gt })).then(function(At) {
12445
+ if (It !== bt) return Promise.resolve(G$1({ action: v({}, ut, { type: bt }), data: { exact: vt.during, namespaced: vt.duringNS }, state: pt, allPlugins: wt, allMatches: vt, instance: dt, store: mt, EVENTS: gt })).then(function(At) {
12446
12446
  _t = At;
12447
12447
  });
12448
12448
  _t = ut;
12449
12449
  }();
12450
- return Ot && Ot.then ? Ot.then(dt) : dt();
12450
+ return Ot && Ot.then ? Ot.then(ft) : ft();
12451
12451
  });
12452
12452
  } catch (ut) {
12453
12453
  return Promise.reject(ut);
@@ -12664,28 +12664,28 @@ function Ve($e, De, Fe) {
12664
12664
  }
12665
12665
  function Le($e) {
12666
12666
  $e === void 0 && ($e = {});
12667
- var De = $e.reducers || {}, Fe = $e.initialUser || {}, He = ($e.plugins || []).reduce(function(ut, dt) {
12668
- if (W$1(dt)) return ut.middlewares = ut.middlewares.concat(dt), ut;
12669
- if (dt.NAMESPACE && (dt.name = dt.NAMESPACE), !dt.name) throw new Error("https://lytics.dev/errors/1");
12670
- dt.config || (dt.config = {});
12671
- var _t = dt.EVENTS ? Object.keys(dt.EVENTS).map(function(kt) {
12672
- return dt.EVENTS[kt];
12667
+ var De = $e.reducers || {}, Fe = $e.initialUser || {}, He = ($e.plugins || []).reduce(function(ut, ft) {
12668
+ if (W$1(ft)) return ut.middlewares = ut.middlewares.concat(ft), ut;
12669
+ if (ft.NAMESPACE && (ft.name = ft.NAMESPACE), !ft.name) throw new Error("https://lytics.dev/errors/1");
12670
+ ft.config || (ft.config = {});
12671
+ var _t = ft.EVENTS ? Object.keys(ft.EVENTS).map(function(kt) {
12672
+ return ft.EVENTS[kt];
12673
12673
  }) : [];
12674
- ut.pluginEnabled[dt.name] = !(dt.enabled === !1 || dt.config.enabled === !1), delete dt.enabled, dt.methods && (ut.methods[dt.name] = Object.keys(dt.methods).reduce(function(kt, St) {
12674
+ ut.pluginEnabled[ft.name] = !(ft.enabled === !1 || ft.config.enabled === !1), delete ft.enabled, ft.methods && (ut.methods[ft.name] = Object.keys(ft.methods).reduce(function(kt, St) {
12675
12675
  var Tt;
12676
- return kt[St] = (Tt = dt.methods[St], function() {
12676
+ return kt[St] = (Tt = ft.methods[St], function() {
12677
12677
  for (var Lt = Array.prototype.slice.call(arguments), Pt = new Array(Tt.length), Mt = 0; Mt < Lt.length; Mt++) Pt[Mt] = Lt[Mt];
12678
- return Pt[Pt.length] = lt, Tt.apply({ instance: lt }, Pt);
12678
+ return Pt[Pt.length] = st, Tt.apply({ instance: st }, Pt);
12679
12679
  }), kt;
12680
- }, {}), delete dt.methods);
12681
- var Ot = Object.keys(dt).concat(_t), At = new Set(ut.events.concat(Ot));
12682
- if (ut.events = Array.from(At), ut.pluginsArray = ut.pluginsArray.concat(dt), ut.plugins[dt.name]) throw new Error(dt.name + "AlreadyLoaded");
12683
- return ut.plugins[dt.name] = dt, ut.plugins[dt.name].loaded || (ut.plugins[dt.name].loaded = function() {
12680
+ }, {}), delete ft.methods);
12681
+ var Ot = Object.keys(ft).concat(_t), At = new Set(ut.events.concat(Ot));
12682
+ if (ut.events = Array.from(At), ut.pluginsArray = ut.pluginsArray.concat(ft), ut.plugins[ft.name]) throw new Error(ft.name + "AlreadyLoaded");
12683
+ return ut.plugins[ft.name] = ft, ut.plugins[ft.name].loaded || (ut.plugins[ft.name].loaded = function() {
12684
12684
  return !0;
12685
12685
  }), ut;
12686
12686
  }, { plugins: {}, pluginEnabled: {}, methods: {}, pluginsArray: [], middlewares: [], events: [] }), Be = $e.storage ? $e.storage : { getItem: a$4, setItem: f$1, removeItem: i$4 }, Ge = /* @__PURE__ */ function(ut) {
12687
- return function(dt, _t, Ot) {
12688
- return _t.getState("user")[dt] || (Ot && on(Ot) && Ot[dt] ? Ot[dt] : $(ut)[dt] || a$4(D(dt)) || null);
12687
+ return function(ft, _t, Ot) {
12688
+ return _t.getState("user")[ft] || (Ot && on(Ot) && Ot[ft] ? Ot[ft] : $(ut)[ft] || a$4(D(ft)) || null);
12689
12689
  };
12690
12690
  }(Be), Ke = He.plugins, We = He.events.filter(function(ut) {
12691
12691
  return !M.includes(ut);
@@ -12695,75 +12695,75 @@ function Le($e) {
12695
12695
  return Ke;
12696
12696
  }, Ye = new fe(), et = Ye.addMiddleware, Qe = Ye.removeMiddleware, tt = Ye.dynamicMiddlewares, rt = function() {
12697
12697
  throw new Error("Abort disabled inListener");
12698
- }, nt = s$1(), at = $(Be), st = v({}, at, Fe, nt.an_uid ? { userId: nt.an_uid } : {}, nt.an_aid ? { anonymousId: nt.an_aid } : {});
12699
- st.anonymousId || (st.anonymousId = y$1());
12700
- var ct = v({ enable: function(ut, dt) {
12698
+ }, nt = s$1(), at = $(Be), lt = v({}, at, Fe, nt.an_uid ? { userId: nt.an_uid } : {}, nt.an_aid ? { anonymousId: nt.an_aid } : {});
12699
+ lt.anonymousId || (lt.anonymousId = y$1());
12700
+ var ct = v({ enable: function(ut, ft) {
12701
12701
  return new Promise(function(_t) {
12702
- vt.dispatch({ type: q.enablePlugin, plugins: Ue(ut), _: { originalAction: q.enablePlugin } }, _t, [dt]);
12702
+ vt.dispatch({ type: q.enablePlugin, plugins: Ue(ut), _: { originalAction: q.enablePlugin } }, _t, [ft]);
12703
12703
  });
12704
- }, disable: function(ut, dt) {
12704
+ }, disable: function(ut, ft) {
12705
12705
  return new Promise(function(_t) {
12706
- vt.dispatch({ type: q.disablePlugin, plugins: Ue(ut), _: { originalAction: q.disablePlugin } }, _t, [dt]);
12706
+ vt.dispatch({ type: q.disablePlugin, plugins: Ue(ut), _: { originalAction: q.disablePlugin } }, _t, [ft]);
12707
12707
  });
12708
- } }, He.methods), ot = !1, lt = { identify: function(ut, dt, _t, Ot) {
12708
+ } }, He.methods), ot = !1, st = { identify: function(ut, ft, _t, Ot) {
12709
12709
  try {
12710
- var At = q$1(ut) ? ut : null, kt = on(ut) ? ut : dt, St = _t || {}, Tt = lt.user();
12710
+ var At = q$1(ut) ? ut : null, kt = on(ut) ? ut : ft, St = _t || {}, Tt = st.user();
12711
12711
  f$1(D(k$1), At);
12712
- var Lt = At || kt.userId || Ge(k$1, lt, kt);
12712
+ var Lt = At || kt.userId || Ge(k$1, st, kt);
12713
12713
  return Promise.resolve(new Promise(function(Pt) {
12714
- vt.dispatch(v({ type: q.identifyStart, userId: Lt, traits: kt || {}, options: St, anonymousId: Tt.anonymousId }, Tt.id && Tt.id !== At && { previousId: Tt.id }), Pt, [dt, _t, Ot]);
12714
+ vt.dispatch(v({ type: q.identifyStart, userId: Lt, traits: kt || {}, options: St, anonymousId: Tt.anonymousId }, Tt.id && Tt.id !== At && { previousId: Tt.id }), Pt, [ft, _t, Ot]);
12715
12715
  }));
12716
12716
  } catch (Pt) {
12717
12717
  return Promise.reject(Pt);
12718
12718
  }
12719
- }, track: function(ut, dt, _t, Ot) {
12719
+ }, track: function(ut, ft, _t, Ot) {
12720
12720
  try {
12721
12721
  var At = on(ut) ? ut.event : ut;
12722
12722
  if (!At || !q$1(At)) throw new Error("EventMissing");
12723
- var kt = on(ut) ? ut : dt || {}, St = on(_t) ? _t : {};
12723
+ var kt = on(ut) ? ut : ft || {}, St = on(_t) ? _t : {};
12724
12724
  return Promise.resolve(new Promise(function(Tt) {
12725
- vt.dispatch({ type: q.trackStart, event: At, properties: kt, options: St, userId: Ge(k$1, lt, dt), anonymousId: Ge(T, lt, dt) }, Tt, [dt, _t, Ot]);
12725
+ vt.dispatch({ type: q.trackStart, event: At, properties: kt, options: St, userId: Ge(k$1, st, ft), anonymousId: Ge(T, st, ft) }, Tt, [ft, _t, Ot]);
12726
12726
  }));
12727
12727
  } catch (Tt) {
12728
12728
  return Promise.reject(Tt);
12729
12729
  }
12730
- }, page: function(ut, dt, _t) {
12730
+ }, page: function(ut, ft, _t) {
12731
12731
  try {
12732
- var Ot = on(ut) ? ut : {}, At = on(dt) ? dt : {};
12732
+ var Ot = on(ut) ? ut : {}, At = on(ft) ? ft : {};
12733
12733
  return Promise.resolve(new Promise(function(kt) {
12734
- vt.dispatch({ type: q.pageStart, properties: Oe(Ot), options: At, userId: Ge(k$1, lt, Ot), anonymousId: Ge(T, lt, Ot) }, kt, [ut, dt, _t]);
12734
+ vt.dispatch({ type: q.pageStart, properties: Oe(Ot), options: At, userId: Ge(k$1, st, Ot), anonymousId: Ge(T, st, Ot) }, kt, [ut, ft, _t]);
12735
12735
  }));
12736
12736
  } catch (kt) {
12737
12737
  return Promise.reject(kt);
12738
12738
  }
12739
12739
  }, user: function(ut) {
12740
- if (ut === k$1 || ut === "id") return Ge(k$1, lt);
12741
- if (ut === T || ut === "anonId") return Ge(T, lt);
12742
- var dt = lt.getState("user");
12743
- return ut ? i$5(dt, ut) : dt;
12740
+ if (ut === k$1 || ut === "id") return Ge(k$1, st);
12741
+ if (ut === T || ut === "anonId") return Ge(T, st);
12742
+ var ft = st.getState("user");
12743
+ return ut ? i$5(ft, ut) : ft;
12744
12744
  }, reset: function(ut) {
12745
- return new Promise(function(dt) {
12746
- vt.dispatch({ type: q.resetStart }, dt, ut);
12745
+ return new Promise(function(ft) {
12746
+ vt.dispatch({ type: q.resetStart }, ft, ut);
12747
12747
  });
12748
12748
  }, ready: function(ut) {
12749
- return ot && ut({ plugins: ct, instance: lt }), lt.on(q.ready, function(dt) {
12750
- ut(dt), ot = !0;
12749
+ return ot && ut({ plugins: ct, instance: st }), st.on(q.ready, function(ft) {
12750
+ ut(ft), ot = !0;
12751
12751
  });
12752
- }, on: function(ut, dt) {
12753
- if (!ut || !W$1(dt)) return !1;
12752
+ }, on: function(ut, ft) {
12753
+ if (!ut || !W$1(ft)) return !1;
12754
12754
  if (ut === q.bootstrap) throw new Error(".on disabled for " + ut);
12755
12755
  var _t = /Start$|Start:/;
12756
12756
  if (ut === "*") {
12757
12757
  var Ot = function(Tt) {
12758
12758
  return function(Lt) {
12759
12759
  return function(Pt) {
12760
- return Pt.type.match(_t) && dt({ payload: Pt, instance: lt, plugins: Ke }), Lt(Pt);
12760
+ return Pt.type.match(_t) && ft({ payload: Pt, instance: st, plugins: Ke }), Lt(Pt);
12761
12761
  };
12762
12762
  };
12763
12763
  }, At = function(Tt) {
12764
12764
  return function(Lt) {
12765
12765
  return function(Pt) {
12766
- return Pt.type.match(_t) || dt({ payload: Pt, instance: lt, plugins: Ke }), Lt(Pt);
12766
+ return Pt.type.match(_t) || ft({ payload: Pt, instance: st, plugins: Ke }), Lt(Pt);
12767
12767
  };
12768
12768
  };
12769
12769
  };
@@ -12774,41 +12774,41 @@ function Le($e) {
12774
12774
  var kt = ut.match(_t) ? Ce : Re, St = function(Tt) {
12775
12775
  return function(Lt) {
12776
12776
  return function(Pt) {
12777
- return Pt.type === ut && dt({ payload: Pt, instance: lt, plugins: Ke, abort: rt }), Lt(Pt);
12777
+ return Pt.type === ut && ft({ payload: Pt, instance: st, plugins: Ke, abort: rt }), Lt(Pt);
12778
12778
  };
12779
12779
  };
12780
12780
  };
12781
12781
  return et(St, kt), function() {
12782
12782
  return Qe(St, kt);
12783
12783
  };
12784
- }, once: function(ut, dt) {
12785
- if (!ut || !W$1(dt)) return !1;
12784
+ }, once: function(ut, ft) {
12785
+ if (!ut || !W$1(ft)) return !1;
12786
12786
  if (ut === q.bootstrap) throw new Error(".once disabled for " + ut);
12787
- var _t = lt.on(ut, function(Ot) {
12788
- dt({ payload: Ot.payload, instance: lt, plugins: Ke, abort: rt }), _t();
12787
+ var _t = st.on(ut, function(Ot) {
12788
+ ft({ payload: Ot.payload, instance: st, plugins: Ke, abort: rt }), _t();
12789
12789
  });
12790
12790
  return _t;
12791
12791
  }, getState: function(ut) {
12792
- var dt = vt.getState();
12793
- return ut ? i$5(dt, ut) : Object.assign({}, dt);
12792
+ var ft = vt.getState();
12793
+ return ut ? i$5(ft, ut) : Object.assign({}, ft);
12794
12794
  }, dispatch: function(ut) {
12795
- var dt = q$1(ut) ? { type: ut } : ut;
12796
- if (z.includes(dt.type)) throw new Error("reserved action " + dt.type);
12797
- var _t = v({}, dt, { _: v({ originalAction: dt.type }, ut._ || {}) });
12795
+ var ft = q$1(ut) ? { type: ut } : ut;
12796
+ if (z.includes(ft.type)) throw new Error("reserved action " + ft.type);
12797
+ var _t = v({}, ft, { _: v({ originalAction: ft.type }, ut._ || {}) });
12798
12798
  vt.dispatch(_t);
12799
- }, enablePlugin: ct.enable, disablePlugin: ct.disable, plugins: ct, storage: { getItem: Be.getItem, setItem: function(ut, dt, _t) {
12800
- vt.dispatch({ type: q.setItemStart, key: ut, value: dt, options: _t });
12801
- }, removeItem: function(ut, dt) {
12802
- vt.dispatch({ type: q.removeItemStart, key: ut, options: dt });
12803
- } }, setAnonymousId: function(ut, dt) {
12804
- lt.storage.setItem(A$1, ut, dt);
12805
- }, events: { core: z, plugins: We } }, ft = He.middlewares.concat([function(ut) {
12806
- return function(dt) {
12799
+ }, enablePlugin: ct.enable, disablePlugin: ct.disable, plugins: ct, storage: { getItem: Be.getItem, setItem: function(ut, ft, _t) {
12800
+ vt.dispatch({ type: q.setItemStart, key: ut, value: ft, options: _t });
12801
+ }, removeItem: function(ut, ft) {
12802
+ vt.dispatch({ type: q.removeItemStart, key: ut, options: ft });
12803
+ } }, setAnonymousId: function(ut, ft) {
12804
+ st.storage.setItem(A$1, ut, ft);
12805
+ }, events: { core: z, plugins: We } }, dt = He.middlewares.concat([function(ut) {
12806
+ return function(ft) {
12807
12807
  return function(_t) {
12808
- return _t.meta || (_t.meta = Ve()), dt(_t);
12808
+ return _t.meta || (_t.meta = Ve()), ft(_t);
12809
12809
  };
12810
12810
  };
12811
- }, tt(Ce), se(lt, Ze, { all: Je, plugins: We }), le(Be), C$1(lt), B(lt), tt(Re)]), mt = { context: je, user: R(Be), page: _e, track: ve, plugins: de(Ze), queue: be }, gt = N$1, wt = N$1;
12811
+ }, tt(Ce), se(st, Ze, { all: Je, plugins: We }), le(Be), C$1(st), B(st), tt(Re)]), mt = { context: je, user: R(Be), page: _e, track: ve, plugins: de(Ze), queue: be }, gt = N$1, wt = N$1;
12812
12812
  if ($$1 && $e.debug) {
12813
12813
  var It = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;
12814
12814
  It && (gt = It({ trace: !0, traceLimit: 25 })), wt = function() {
@@ -12816,15 +12816,15 @@ function Le($e) {
12816
12816
  };
12817
12817
  }
12818
12818
  var bt, pt = function(ut) {
12819
- return Object.keys(ut).reduce(function(dt, _t) {
12820
- return ke.includes(_t) || (dt[_t] = ut[_t]), dt;
12819
+ return Object.keys(ut).reduce(function(ft, _t) {
12820
+ return ke.includes(_t) || (ft[_t] = ut[_t]), ft;
12821
12821
  }, {});
12822
- }($e), yt = He.pluginsArray.reduce(function(ut, dt) {
12823
- var _t = dt.name, Ot = dt.config, At = dt.loaded, kt = He.pluginEnabled[_t];
12824
- return ut[_t] = { enabled: kt, initialized: !!kt && !dt.initialize, loaded: !!At({ config: Ot }), config: Ot }, ut;
12825
- }, {}), $t = { context: pt, user: st, plugins: yt }, vt = P(function(ut) {
12826
- for (var dt = Object.keys(ut), _t = {}, Ot = 0; Ot < dt.length; Ot++) {
12827
- var At = dt[Ot];
12822
+ }($e), yt = He.pluginsArray.reduce(function(ut, ft) {
12823
+ var _t = ft.name, Ot = ft.config, At = ft.loaded, kt = He.pluginEnabled[_t];
12824
+ return ut[_t] = { enabled: kt, initialized: !!kt && !ft.initialize, loaded: !!At({ config: Ot }), config: Ot }, ut;
12825
+ }, {}), $t = { context: pt, user: lt, plugins: yt }, vt = P(function(ut) {
12826
+ for (var ft = Object.keys(ut), _t = {}, Ot = 0; Ot < ft.length; Ot++) {
12827
+ var At = ft[Ot];
12828
12828
  typeof ut[At] === y && (_t[At] = ut[At]);
12829
12829
  }
12830
12830
  var kt, St = Object.keys(_t);
@@ -12850,28 +12850,28 @@ function Le($e) {
12850
12850
  }
12851
12851
  return Pt ? Mt : Tt;
12852
12852
  };
12853
- }(v({}, mt, De)), $t, wt(gt(O$1.apply(void 0, ft))));
12854
- vt.dispatch = (bt = vt.dispatch, function(ut, dt, _t) {
12855
- var Ot = v({}, ut, { meta: Ve(ut.meta, dt, Ue(_t)) });
12853
+ }(v({}, mt, De)), $t, wt(gt(O$1.apply(void 0, dt))));
12854
+ vt.dispatch = (bt = vt.dispatch, function(ut, ft, _t) {
12855
+ var Ot = v({}, ut, { meta: Ve(ut.meta, ft, Ue(_t)) });
12856
12856
  return bt.apply(null, [Ot]);
12857
12857
  });
12858
12858
  var Rt = Object.keys(Ke);
12859
- vt.dispatch({ type: q.bootstrap, plugins: Rt, config: pt, params: nt, user: st, initialUser: Fe, persistedUser: at });
12859
+ vt.dispatch({ type: q.bootstrap, plugins: Rt, config: pt, params: nt, user: lt, initialUser: Fe, persistedUser: at });
12860
12860
  var xt = Rt.filter(function(ut) {
12861
12861
  return He.pluginEnabled[ut];
12862
12862
  }), Nt = Rt.filter(function(ut) {
12863
12863
  return !He.pluginEnabled[ut];
12864
12864
  });
12865
- return vt.dispatch({ type: q.registerPlugins, plugins: Rt, enabled: He.pluginEnabled }), He.pluginsArray.map(function(ut, dt) {
12865
+ return vt.dispatch({ type: q.registerPlugins, plugins: Rt, enabled: He.pluginEnabled }), He.pluginsArray.map(function(ut, ft) {
12866
12866
  var _t = ut.bootstrap, Ot = ut.config, At = ut.name;
12867
- _t && W$1(_t) && _t({ instance: lt, config: Ot, payload: ut }), vt.dispatch({ type: q.registerPluginType(At), name: At, enabled: He.pluginEnabled[At], plugin: ut }), He.pluginsArray.length === dt + 1 && vt.dispatch({ type: q.initializeStart, plugins: xt, disabled: Nt });
12867
+ _t && W$1(_t) && _t({ instance: st, config: Ot, payload: ut }), vt.dispatch({ type: q.registerPluginType(At), name: At, enabled: He.pluginEnabled[At], plugin: ut }), He.pluginsArray.length === ft + 1 && vt.dispatch({ type: q.initializeStart, plugins: xt, disabled: Nt });
12868
12868
  }), ze(function(ut) {
12869
12869
  vt.dispatch({ type: ut ? q.offline : q.online });
12870
- }), function(ut, dt, _t) {
12870
+ }), function(ut, ft, _t) {
12871
12871
  setInterval(function() {
12872
- return F$1(ut, dt, _t);
12872
+ return F$1(ut, ft, _t);
12873
12873
  }, 3e3);
12874
- }(vt, Ze, lt), lt;
12874
+ }(vt, Ze, st), st;
12875
12875
  }
12876
12876
  var Ce = "before", Re = "after", t = "cookie", i$3 = a$3(), r$2 = d$1, c$2 = d$1;
12877
12877
  function u$2($e) {
@@ -13054,20 +13054,20 @@ function i$1($e) {
13054
13054
  return yt.map(function($t) {
13055
13055
  return $t === 100 ? pt - 5 : pt * ($t / 100);
13056
13056
  });
13057
- }(rt, Qe), at = c$1(), st = o$1(), ct = s(st, rt), ot = s(at, rt);
13057
+ }(rt, Qe), at = c$1(), lt = o$1(), ct = s(lt, rt), ot = s(at, rt);
13058
13058
  if (Ze = ct > Ze ? ct : Ze, Ye = ot < Ye ? ot : Ye, !(Ke.length >= Qe.length)) {
13059
- var lt = Je === st, ft = "up";
13060
- lt ? ft = "initial" : Je <= st && (ft = "down");
13059
+ var st = Je === lt, dt = "up";
13060
+ st ? dt = "initial" : Je <= lt && (dt = "down");
13061
13061
  var mt = nt, gt = Qe;
13062
- (ft === "up" || lt) && (mt = nt.slice().reverse(), gt = Qe.slice().reverse());
13062
+ (dt === "up" || st) && (mt = nt.slice().reverse(), gt = Qe.slice().reverse());
13063
13063
  var wt = gt.reduce(function(pt, yt, $t) {
13064
13064
  var vt = mt[$t];
13065
- return Xe.includes(yt) && st <= vt && (Xe = Xe.filter(function(Rt) {
13065
+ return Xe.includes(yt) && lt <= vt && (Xe = Xe.filter(function(Rt) {
13066
13066
  return Rt !== yt;
13067
- }), pt.singleFunction = yt), ft === "down" && !Ke.includes(yt) && st >= vt && yt > Ge ? (We.push(yt), pt.callbacks = pt.callbacks.concat(yt), pt) : ft === "up" && !Ke.includes(yt) && st <= vt && yt <= ct ? (pt.foundFunc = [yt], pt) : (lt && st >= vt && pt.foundFunc.length === 0 && (pt.foundFunc = [yt]), !We.includes(yt) && st >= vt && (We.push(yt), pt.singleFunction ? Xe.push(yt) : pt.singleFunction = yt), pt);
13068
- }, { foundFunc: [], singleFunction: null, callbacks: [], direction: ft });
13069
- if (Je = st, ft === "down" && wt.callbacks && wt.callbacks.forEach(function(pt) {
13070
- W$1($e[pt]) && ($e[pt]({ trigger: pt, direction: ft, scrollMin: Ye, scrollMax: Ze, range: [Ye, Ze] }), Ke.push(pt));
13067
+ }), pt.singleFunction = yt), dt === "down" && !Ke.includes(yt) && lt >= vt && yt > Ge ? (We.push(yt), pt.callbacks = pt.callbacks.concat(yt), pt) : dt === "up" && !Ke.includes(yt) && lt <= vt && yt <= ct ? (pt.foundFunc = [yt], pt) : (st && lt >= vt && pt.foundFunc.length === 0 && (pt.foundFunc = [yt]), !We.includes(yt) && lt >= vt && (We.push(yt), pt.singleFunction ? Xe.push(yt) : pt.singleFunction = yt), pt);
13068
+ }, { foundFunc: [], singleFunction: null, callbacks: [], direction: dt });
13069
+ if (Je = lt, dt === "down" && wt.callbacks && wt.callbacks.forEach(function(pt) {
13070
+ W$1($e[pt]) && ($e[pt]({ trigger: pt, direction: dt, scrollMin: Ye, scrollMax: Ze, range: [Ye, Ze] }), Ke.push(pt));
13071
13071
  }), wt.singleFunction) {
13072
13072
  var It = wt.singleFunction, bt = wt.direction;
13073
13073
  W$1($e[It]) && $e[It]({ trigger: It, direction: bt, scrollMin: Ye, scrollMax: Ze, range: [Ye, Ze] }), Ke.push(It);
@@ -13579,11 +13579,11 @@ function registerAPI($e) {
13579
13579
  getEntitlements: rt,
13580
13580
  getFulfillments: nt,
13581
13581
  getPaywall: at,
13582
- getPaymentIssues: st,
13582
+ getPaymentIssues: lt,
13583
13583
  getProfile: ct,
13584
13584
  getProduct: ot,
13585
- getProxyContent: lt,
13586
- getSubscriptions: ft,
13585
+ getProxyContent: st,
13586
+ getSubscriptions: dt,
13587
13587
  getTags: mt,
13588
13588
  getTally: gt,
13589
13589
  getTallies: wt,
@@ -13597,7 +13597,7 @@ function registerAPI($e) {
13597
13597
  linkSpotify: xt,
13598
13598
  listUserMetadata: Nt,
13599
13599
  openHostedAccountPage: ut,
13600
- pushTally: dt,
13600
+ pushTally: ft,
13601
13601
  setTag: _t,
13602
13602
  setUserMetadata: Ot,
13603
13603
  unlinkSpotify: At,
@@ -13655,7 +13655,7 @@ function registerAPI($e) {
13655
13655
  list: nt
13656
13656
  },
13657
13657
  generateLink: We,
13658
- getPaymentIssues: st,
13658
+ getPaymentIssues: lt,
13659
13659
  getVersion,
13660
13660
  log,
13661
13661
  paywalls: {
@@ -13674,10 +13674,10 @@ function registerAPI($e) {
13674
13674
  update: St
13675
13675
  },
13676
13676
  proxy: {
13677
- getContent: lt
13677
+ getContent: st
13678
13678
  },
13679
13679
  subscriptions: {
13680
- list: ft
13680
+ list: dt
13681
13681
  },
13682
13682
  tags: {
13683
13683
  delete: Be,
@@ -13688,7 +13688,7 @@ function registerAPI($e) {
13688
13688
  delete: Ge,
13689
13689
  get: gt,
13690
13690
  list: wt,
13691
- push: dt
13691
+ push: ft
13692
13692
  },
13693
13693
  transactions: {
13694
13694
  get: It,
@@ -13991,18 +13991,26 @@ function ContentContainer_wc($e, De) {
13991
13991
  rt.setAttribute("position", "relative");
13992
13992
  const nt = tt.getAttribute("class");
13993
13993
  nt && rt.setAttribute("class", nt), rt.innerHTML = Qe;
13994
- const at = rt.querySelectorAll("script"), st = [];
13994
+ const at = rt.querySelectorAll("script"), lt = [];
13995
13995
  at.forEach((ot) => {
13996
- var lt;
13997
- if (ot.src) {
13998
- const ft = document.createElement("script");
13999
- ft.src = ot.src, document.head.appendChild(ft);
14000
- } else
14001
- st.push(ot.textContent || "");
14002
- (lt = ot.parentNode) == null || lt.removeChild(ot);
14003
- }), (ct = tt.parentElement) == null || ct.insertBefore(rt, tt), st.forEach((ot) => {
14004
- const lt = document.createElement("script");
14005
- lt.textContent = ot, document.head.appendChild(lt), document.head.removeChild(lt);
13996
+ var st;
13997
+ try {
13998
+ if (ot.src) {
13999
+ const dt = document.createElement("script");
14000
+ dt.src = ot.src, document.head.appendChild(dt);
14001
+ } else
14002
+ lt.push(ot.textContent || "");
14003
+ (st = ot.parentNode) == null || st.removeChild(ot);
14004
+ } catch (dt) {
14005
+ console.error("Failed to process script:", dt, ot);
14006
+ }
14007
+ }), (ct = tt.parentElement) == null || ct.insertBefore(rt, tt), lt.forEach((ot) => {
14008
+ try {
14009
+ const st = document.createElement("script");
14010
+ st.textContent = ot, document.head.appendChild(st), document.head.removeChild(st);
14011
+ } catch (st) {
14012
+ console.error("Failed to execute inline script:", st, ot);
14013
+ }
14006
14014
  });
14007
14015
  }
14008
14016
  async function Ye(Qe) {
@@ -14041,10 +14049,10 @@ function ContentContainer_wc($e, De) {
14041
14049
  default: (Qe, tt) => {
14042
14050
  const rt = /* @__PURE__ */ derived(() => tt.api);
14043
14051
  var nt = comment(), at = first_child(nt);
14044
- await_block(at, () => Xe(get$1(rt)), null, (st, ct) => {
14045
- var ot = comment(), lt = first_child(ot);
14052
+ await_block(at, () => Xe(get$1(rt)), null, (lt, ct) => {
14053
+ var ot = comment(), st = first_child(ot);
14046
14054
  {
14047
- var ft = (gt) => {
14055
+ var dt = (gt) => {
14048
14056
  var wt = comment(), It = first_child(wt);
14049
14057
  {
14050
14058
  var bt = (yt) => {
@@ -14064,11 +14072,11 @@ function ContentContainer_wc($e, De) {
14064
14072
  var wt = comment(), It = first_child(wt);
14065
14073
  slot(It, De, "preview", {}, null), append$1(gt, wt);
14066
14074
  };
14067
- if_block(lt, (gt) => {
14068
- get$1(ct) ? gt(ft) : gt(mt, !1);
14075
+ if_block(st, (gt) => {
14076
+ get$1(ct) ? gt(dt) : gt(mt, !1);
14069
14077
  });
14070
14078
  }
14071
- append$1(st, ot);
14079
+ append$1(lt, ot);
14072
14080
  }), append$1(Qe, nt);
14073
14081
  }
14074
14082
  }