@wix/interact 2.5.3 → 2.5.5

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.
@@ -1,22 +1,22 @@
1
- function gt(t) {
1
+ function yt(t) {
2
2
  return [...t.matchAll(/\[([-\w]+)]/g)].map(([e, n]) => n);
3
3
  }
4
4
  function $(t, e) {
5
- const n = gt(e);
5
+ const n = yt(e);
6
6
  let s = 0;
7
7
  return n.length ? t.replace(/\[]/g, () => {
8
8
  const i = n[s++];
9
9
  return i !== void 0 ? `[${i}]` : "[]";
10
10
  }) : t;
11
11
  }
12
- function vt(t, e) {
12
+ function Et(t, e) {
13
13
  return t.trigger === "viewEnter" && e.triggerType === "once" && G(t) === G(e);
14
14
  }
15
15
  function G(t) {
16
16
  const { key: e, listContainer: n, listItemSelector: s, selector: i } = t;
17
17
  return `${e}\0${n || ""}\0${s || ""}\0${i || ""}`;
18
18
  }
19
- function ze(t) {
19
+ function je(t) {
20
20
  let e = 0, n = 0;
21
21
  for (let s = 0; s < t.length; s++) {
22
22
  const i = t.charCodeAt(s);
@@ -128,33 +128,33 @@ class V {
128
128
  });
129
129
  }
130
130
  }
131
- const He = (t) => t, yt = (t) => 1 - Math.cos(t * Math.PI / 2), Et = (t) => Math.sin(t * Math.PI / 2), wt = (t) => -(Math.cos(Math.PI * t) - 1) / 2, bt = (t) => t ** 2, St = (t) => 1 - (1 - t) ** 2, Tt = (t) => t < 0.5 ? 2 * t ** 2 : 1 - (-2 * t + 2) ** 2 / 2, It = (t) => t ** 3, Ot = (t) => 1 - (1 - t) ** 3, At = (t) => t < 0.5 ? 4 * t ** 3 : 1 - (-2 * t + 2) ** 3 / 2, Ct = (t) => t ** 4, kt = (t) => 1 - (1 - t) ** 4, $t = (t) => t < 0.5 ? 8 * t ** 4 : 1 - (-2 * t + 2) ** 4 / 2, _t = (t) => t ** 5, qt = (t) => 1 - (1 - t) ** 5, Mt = (t) => t < 0.5 ? 16 * t ** 5 : 1 - (-2 * t + 2) ** 5 / 2, xt = (t) => t === 0 ? 0 : 2 ** (10 * t - 10), Pt = (t) => t === 1 ? 1 : 1 - 2 ** (-10 * t), Lt = (t) => t === 0 ? 0 : t === 1 ? 1 : t < 0.5 ? 2 ** (20 * t - 10) / 2 : (2 - 2 ** (-20 * t + 10)) / 2, Rt = (t) => 1 - Math.sqrt(1 - t ** 2), Ft = (t) => Math.sqrt(1 - (t - 1) ** 2), Nt = (t) => t < 0.5 ? (1 - Math.sqrt(1 - 4 * t ** 2)) / 2 : (Math.sqrt(-(2 * t - 3) * (2 * t - 1)) + 1) / 2, zt = (t) => 2.70158 * t ** 3 - 1.70158 * t ** 2, Ht = (t) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2, jt = (t, e = 1.70158 * 1.525) => t < 0.5 ? (2 * t) ** 2 * ((e + 1) * 2 * t - e) / 2 : ((2 * t - 2) ** 2 * ((e + 1) * (t * 2 - 2) + e) + 2) / 2, Te = {
132
- linear: He,
133
- sineIn: yt,
134
- sineOut: Et,
135
- sineInOut: wt,
136
- quadIn: bt,
137
- quadOut: St,
138
- quadInOut: Tt,
139
- cubicIn: It,
140
- cubicOut: Ot,
141
- cubicInOut: At,
142
- quartIn: Ct,
143
- quartOut: kt,
144
- quartInOut: $t,
145
- quintIn: _t,
146
- quintOut: qt,
147
- quintInOut: Mt,
148
- expoIn: xt,
149
- expoOut: Pt,
150
- expoInOut: Lt,
151
- circIn: Rt,
152
- circOut: Ft,
153
- circInOut: Nt,
154
- backIn: zt,
155
- backOut: Ht,
156
- backInOut: jt
157
- }, Ie = {
131
+ const De = (t) => t, wt = (t) => 1 - Math.cos(t * Math.PI / 2), bt = (t) => Math.sin(t * Math.PI / 2), St = (t) => -(Math.cos(Math.PI * t) - 1) / 2, Tt = (t) => t ** 2, It = (t) => 1 - (1 - t) ** 2, Ot = (t) => t < 0.5 ? 2 * t ** 2 : 1 - (-2 * t + 2) ** 2 / 2, At = (t) => t ** 3, Ct = (t) => 1 - (1 - t) ** 3, kt = (t) => t < 0.5 ? 4 * t ** 3 : 1 - (-2 * t + 2) ** 3 / 2, $t = (t) => t ** 4, _t = (t) => 1 - (1 - t) ** 4, qt = (t) => t < 0.5 ? 8 * t ** 4 : 1 - (-2 * t + 2) ** 4 / 2, Mt = (t) => t ** 5, xt = (t) => 1 - (1 - t) ** 5, Pt = (t) => t < 0.5 ? 16 * t ** 5 : 1 - (-2 * t + 2) ** 5 / 2, Lt = (t) => t === 0 ? 0 : 2 ** (10 * t - 10), Rt = (t) => t === 1 ? 1 : 1 - 2 ** (-10 * t), Ft = (t) => t === 0 ? 0 : t === 1 ? 1 : t < 0.5 ? 2 ** (20 * t - 10) / 2 : (2 - 2 ** (-20 * t + 10)) / 2, Nt = (t) => 1 - Math.sqrt(1 - t ** 2), zt = (t) => Math.sqrt(1 - (t - 1) ** 2), Ht = (t) => t < 0.5 ? (1 - Math.sqrt(1 - 4 * t ** 2)) / 2 : (Math.sqrt(-(2 * t - 3) * (2 * t - 1)) + 1) / 2, jt = (t) => 2.70158 * t ** 3 - 1.70158 * t ** 2, Dt = (t) => 1 + 2.70158 * (t - 1) ** 3 + 1.70158 * (t - 1) ** 2, Gt = (t, e = 1.70158 * 1.525) => t < 0.5 ? (2 * t) ** 2 * ((e + 1) * 2 * t - e) / 2 : ((2 * t - 2) ** 2 * ((e + 1) * (t * 2 - 2) + e) + 2) / 2, Oe = {
132
+ linear: De,
133
+ sineIn: wt,
134
+ sineOut: bt,
135
+ sineInOut: St,
136
+ quadIn: Tt,
137
+ quadOut: It,
138
+ quadInOut: Ot,
139
+ cubicIn: At,
140
+ cubicOut: Ct,
141
+ cubicInOut: kt,
142
+ quartIn: $t,
143
+ quartOut: _t,
144
+ quartInOut: qt,
145
+ quintIn: Mt,
146
+ quintOut: xt,
147
+ quintInOut: Pt,
148
+ expoIn: Lt,
149
+ expoOut: Rt,
150
+ expoInOut: Ft,
151
+ circIn: Nt,
152
+ circOut: zt,
153
+ circInOut: Ht,
154
+ backIn: jt,
155
+ backOut: Dt,
156
+ backInOut: Gt
157
+ }, Ae = {
158
158
  linear: "linear",
159
159
  ease: "ease",
160
160
  easeIn: "ease-in",
@@ -185,13 +185,13 @@ const He = (t) => t, yt = (t) => 1 - Math.cos(t * Math.PI / 2), Et = (t) => Math
185
185
  backOut: "cubic-bezier(0.175, 0.885, 0.32, 1.275)",
186
186
  backInOut: "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
187
187
  };
188
- function Dt(t) {
188
+ function Wt(t) {
189
189
  return t === "percentage" ? "%" : t || "px";
190
190
  }
191
191
  function J(t) {
192
- return t ? Ie[t] || t : Ie.linear;
192
+ return t ? Ae[t] || t : Ae.linear;
193
193
  }
194
- function Gt(t, e, n, s) {
194
+ function Vt(t, e, n, s) {
195
195
  const i = 3 * t, r = 3 * (n - t) - i, o = 1 - i - r, a = 3 * e, c = 3 * (s - e) - a, l = 1 - a - c, f = (p) => ((o * p + r) * p + i) * p, u = (p) => ((l * p + c) * p + a) * p, d = (p) => (3 * o * p + 2 * r) * p + i;
196
196
  function g(p) {
197
197
  let m = p;
@@ -212,16 +212,16 @@ function Gt(t, e, n, s) {
212
212
  }
213
213
  return (p) => p <= 0 ? 0 : p >= 1 ? 1 : u(g(p));
214
214
  }
215
- function Wt(t) {
215
+ function Yt(t) {
216
216
  const e = t.match(
217
217
  /^cubic-bezier\(\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*,\s*(-?[\d.]+)\s*\)$/
218
218
  );
219
219
  if (!e) return;
220
220
  const n = parseFloat(e[1]), s = parseFloat(e[2]), i = parseFloat(e[3]), r = parseFloat(e[4]);
221
221
  if (![n, s, i, r].some(isNaN))
222
- return Gt(n, s, i, r);
222
+ return Vt(n, s, i, r);
223
223
  }
224
- function Vt(t) {
224
+ function Bt(t) {
225
225
  const e = t.match(/^linear\((.+)\)$/);
226
226
  if (!e) return;
227
227
  const n = e[1].split(",").map((o) => o.trim()).filter(Boolean);
@@ -269,12 +269,12 @@ function Vt(t) {
269
269
  return u.pos === f.pos ? u.output : f.output + (u.output - f.output) * (o - f.pos) / (u.pos - f.pos);
270
270
  };
271
271
  }
272
- function be(t) {
272
+ function Te(t) {
273
273
  if (!t) return;
274
- const e = Te[t];
275
- return e || (Wt(t) ?? Vt(t) ?? Te.linear);
274
+ const e = Oe[t];
275
+ return e || (Yt(t) ?? Bt(t) ?? Oe.linear);
276
276
  }
277
- class Yt extends V {
277
+ class Kt extends V {
278
278
  animationGroups;
279
279
  delay;
280
280
  offset;
@@ -282,7 +282,7 @@ class Yt extends V {
282
282
  timingOptions;
283
283
  constructor(e, n = {}) {
284
284
  const s = e.flatMap((i) => [...i.animations]);
285
- super(s), this.animationGroups = e, this.delay = n.delay ?? 0, this.offset = n.offset ?? 0, this.offsetEasing = typeof n.offsetEasing == "function" ? n.offsetEasing : be(n.offsetEasing) ?? He, this.timingOptions = this.animationGroups.map((i) => i.getTimingOptions().map(({ delay: r, duration: o, iterations: a }) => ({
285
+ super(s), this.animationGroups = e, this.delay = n.delay ?? 0, this.offset = n.offset ?? 0, this.offsetEasing = typeof n.offsetEasing == "function" ? n.offsetEasing : Te(n.offsetEasing) ?? De, this.timingOptions = this.animationGroups.map((i) => i.getTimingOptions().map(({ delay: r, duration: o, iterations: a }) => ({
286
286
  delay: r,
287
287
  duration: Number.isFinite(o) ? o : 0,
288
288
  iterations: Number.isFinite(a) ? a : 1
@@ -367,7 +367,7 @@ class Yt extends V {
367
367
  }
368
368
  }
369
369
  }
370
- class Bt {
370
+ class Qt {
371
371
  _animation;
372
372
  customEffect;
373
373
  progress;
@@ -507,12 +507,12 @@ class Bt {
507
507
  return this._animation.dispatchEvent(e);
508
508
  }
509
509
  }
510
- function Kt(t) {
510
+ function Ut(t) {
511
511
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
512
512
  }
513
- var ee = { exports: {} }, Oe = ee.exports, Ae;
514
- function Qt() {
515
- return Ae || (Ae = 1, (function(t) {
513
+ var ee = { exports: {} }, Ce = ee.exports, ke;
514
+ function Xt() {
515
+ return ke || (ke = 1, (function(t) {
516
516
  (function(e) {
517
517
  var n = function() {
518
518
  }, s = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.msRequestAnimationFrame || function(f) {
@@ -638,51 +638,51 @@ function Qt() {
638
638
  }
639
639
  var l = e.fastdom = e.fastdom || new i();
640
640
  t.exports = l;
641
- })(typeof window < "u" ? window : typeof Oe < "u" ? Oe : globalThis);
641
+ })(typeof window < "u" ? window : typeof Ce < "u" ? Ce : globalThis);
642
642
  })(ee)), ee.exports;
643
643
  }
644
- var Ut = Qt();
645
- const O = /* @__PURE__ */ Kt(Ut), de = {};
646
- function Xt(t) {
647
- Object.assign(de, t);
644
+ var Zt = Xt();
645
+ const O = /* @__PURE__ */ Ut(Zt), me = {};
646
+ function Jt(t) {
647
+ Object.assign(me, t);
648
648
  }
649
- function Zt(t) {
650
- return t in de ? de[t] : (console.warn(
649
+ function en(t) {
650
+ return t in me ? me[t] : (console.warn(
651
651
  `${t} not found in registry. Please make sure to import and register the preset.`
652
652
  ), null);
653
653
  }
654
654
  function N(t, e) {
655
655
  return t ? (e || document).getElementById(t) : null;
656
656
  }
657
- function Jt(t, e) {
657
+ function tn(t, e) {
658
658
  return t?.matches(`[data-motion-part~="${e}"]`) ? t : t?.querySelector(`[data-motion-part~="${e}"]`);
659
659
  }
660
- function en(t) {
660
+ function nn(t) {
661
661
  const e = t.alternate ? "alternate" : "";
662
662
  return t.reversed ? `${e ? `${e}-` : ""}reverse` : e || "normal";
663
663
  }
664
- function ce(t) {
665
- return `${t.value}${Dt(t.unit)}`;
664
+ function le(t) {
665
+ return `${t.value}${Wt(t.unit)}`;
666
666
  }
667
- function Ce(t, e, n) {
668
- return `${t.name || "cover"} ${n && t.offset.unit !== "percentage" ? `calc(100% + ${ce(t.offset)}${e ? ` + ${e}` : ""})` : e ? `calc(${ce(t.offset)} + ${e})` : ce(t.offset)}`;
667
+ function $e(t, e, n) {
668
+ return `${t.name || "cover"} ${n && t.offset.unit !== "percentage" ? `calc(100% + ${le(t.offset)}${e ? ` + ${e}` : ""})` : e ? `calc(${le(t.offset)} + ${e})` : le(t.offset)}`;
669
669
  }
670
- function je(t) {
670
+ function Ge(t) {
671
671
  return {
672
- start: Ce(t.startOffset, t.startOffsetAdd),
673
- end: Ce(t.endOffset, t.endOffsetAdd, !0)
672
+ start: $e(t.startOffset, t.startOffsetAdd),
673
+ end: $e(t.endOffset, t.endOffsetAdd, !0)
674
674
  };
675
675
  }
676
- function De(t) {
676
+ function We(t) {
677
677
  return (e) => O.measure(() => e(t));
678
678
  }
679
- function Ge(t) {
679
+ function Ve(t) {
680
680
  return (e) => O.mutate(() => e(t));
681
681
  }
682
682
  function W(t) {
683
683
  if (t.namedEffect) {
684
684
  const e = t.namedEffect.type;
685
- return typeof e == "string" ? Zt(e) : null;
685
+ return typeof e == "string" ? en(e) : null;
686
686
  } else if (t.keyframeEffect) {
687
687
  const e = (s) => {
688
688
  const { name: i, keyframes: r } = s.keyframeEffect;
@@ -696,16 +696,16 @@ function W(t) {
696
696
  return (e) => [{ ...e, keyframes: [] }];
697
697
  return null;
698
698
  }
699
- function We(t, e, n, s) {
699
+ function Ye(t, e, n, s) {
700
700
  return t.map((i, r) => {
701
701
  const o = {
702
702
  fill: i.fill,
703
703
  easing: J(i.easing),
704
704
  iterations: i.iterations === 0 ? 1 / 0 : i.iterations || 1,
705
705
  composite: i.composite,
706
- direction: en(i)
706
+ direction: nn(i)
707
707
  };
708
- return Se(e) ? (o.duration = i.duration, o.delay = i.delay || 0) : e?.trigger === "view-progress" && (s || window.ViewTimeline) ? o.duration = "auto" : (o.duration = 99.99, o.delay = 0.01), {
708
+ return Ie(e) ? (o.duration = i.duration, o.delay = i.delay || 0) : e?.trigger === "view-progress" && (s || window.ViewTimeline) ? o.duration = "auto" : (o.duration = 99.99, o.delay = 0.01), {
709
709
  effect: i,
710
710
  options: o,
711
711
  id: n && `${n}-${r + 1}`,
@@ -713,23 +713,23 @@ function We(t, e, n, s) {
713
713
  };
714
714
  });
715
715
  }
716
- function Se(t) {
716
+ function Ie(t) {
717
717
  return !t || t.trigger !== "pointer-move" && t.trigger !== "view-progress";
718
718
  }
719
- function ke(t, e, n, s, i) {
719
+ function _e(t, e, n, s, i) {
720
720
  if (t) {
721
- if (Se(s) && (e.duration = e.duration || 1, i?.reducedMotion))
721
+ if (Ie(s) && (e.duration = e.duration || 1, i?.reducedMotion))
722
722
  if (e.iterations === 1 || e.iterations == null)
723
723
  e = { ...e, duration: 1 };
724
724
  else
725
725
  return [];
726
726
  let r;
727
- return n instanceof HTMLElement && (r = { measure: De(n), mutate: Ge(n) }), t.web ? t.web(e, r, i) : t(e, r, i);
727
+ return n instanceof HTMLElement && (r = { measure: We(n), mutate: Ve(n) }), t.web ? t.web(e, r, i) : t(e, r, i);
728
728
  }
729
729
  return [];
730
730
  }
731
- function Ve(t, e, n, s, i) {
732
- const r = t instanceof HTMLElement ? t : N(t, i);
731
+ function Be(t, e, n, s, i) {
732
+ const r = typeof t == "string" ? N(t, i) : t;
733
733
  if (n?.trigger === "pointer-move" && !e.keyframeEffect) {
734
734
  let d = e;
735
735
  e.customEffect && (d = {
@@ -738,7 +738,7 @@ function Ve(t, e, n, s, i) {
738
738
  });
739
739
  const g = W(
740
740
  d
741
- ), p = ke(
741
+ ), p = _e(
742
742
  g,
743
743
  e,
744
744
  r,
@@ -747,7 +747,7 @@ function Ve(t, e, n, s, i) {
747
747
  );
748
748
  return typeof p != "function" ? null : p(r);
749
749
  }
750
- const o = W(e), a = ke(
750
+ const o = W(e), a = _e(
751
751
  o,
752
752
  e,
753
753
  r,
@@ -756,18 +756,18 @@ function Ve(t, e, n, s, i) {
756
756
  );
757
757
  if (!a || a.length === 0)
758
758
  return null;
759
- const c = We(a, n, e.effectId);
759
+ const c = Ye(a, n, e.effectId);
760
760
  let l;
761
761
  const f = n?.trigger === "view-progress";
762
762
  f && window.ViewTimeline && (l = new ViewTimeline({
763
763
  subject: n.element || N(n.componentId)
764
764
  }));
765
765
  const u = c.map(({ effect: d, options: g, id: p, part: m }) => {
766
- const h = m ? Jt(r, m) : r, v = new KeyframeEffect(h || null, [], g);
766
+ const h = m ? tn(r, m) : r, v = new KeyframeEffect(h || null, [], g);
767
767
  O.mutate(() => {
768
768
  "timing" in d && v.updateTiming(d.timing), v.setKeyframes(d.keyframes);
769
769
  });
770
- const y = f && l ? { timeline: l } : {}, E = typeof d.customEffect == "function" ? new Bt(
770
+ const y = f && l ? { timeline: l } : {}, E = typeof d.customEffect == "function" ? new Qt(
771
771
  d.customEffect,
772
772
  h || null,
773
773
  g,
@@ -776,7 +776,7 @@ function Ve(t, e, n, s, i) {
776
776
  if (f)
777
777
  if (l)
778
778
  O.mutate(() => {
779
- const { start: w, end: S } = je(d);
779
+ const { start: w, end: S } = Ge(d);
780
780
  E.rangeStart = w, E.rangeEnd = S, E.play();
781
781
  });
782
782
  else {
@@ -806,23 +806,23 @@ function Ve(t, e, n, s, i) {
806
806
  measured: new Promise((d) => O.mutate(d))
807
807
  });
808
808
  }
809
- function tn(t, e) {
809
+ function sn(t, e) {
810
810
  return t ? `#${t}${e ? `[data-motion-part~="${e}"]` : ""}` : "";
811
811
  }
812
- function nn(t, e) {
812
+ function rn(t, e) {
813
813
  const { duration: n, delay: s, iterations: i = 1, fill: r, easing: o = "linear", direction: a } = t.options, c = t.effect.name, l = n === "auto";
814
- return `${c} ${l ? "auto" : `${n}ms`}${l ? " " : ` ${s || 1}ms `}${o}${r && r !== "none" ? ` ${r}` : ""} ${!i || i === 1 / 0 ? "infinite" : i}${a === "normal" ? "" : ` ${a}`} ${e ? "" : "paused"}`;
814
+ return `${c} ${l ? "auto" : `${n}ms`}${l ? " " : ` ${s ?? 0}ms `}${o}${r && r !== "none" ? ` ${r}` : ""} ${!i || i === 1 / 0 ? "infinite" : i}${a === "normal" ? "" : ` ${a}`} ${e ? "" : "paused"}`;
815
815
  }
816
- function sn(t, e, n) {
817
- return t?.style ? (Se(n) && (e.duration = e.duration || 1), t.style(e)) : [];
816
+ function on(t, e, n) {
817
+ return t?.style ? (Ie(n) && (e.duration = e.duration || 1), t.style(e)) : [];
818
818
  }
819
- function rn(t, e, n) {
820
- const s = W(e), i = sn(s, e), r = We(i, n, e.effectId, !0), o = n?.trigger === "view-progress";
819
+ function an(t, e, n) {
820
+ const s = W(e), i = on(s, e), r = Ye(i, n, e.effectId, !0), o = n?.trigger === "view-progress";
821
821
  return r.map((a, c) => {
822
- const { start: l, end: f } = o ? je(a.effect) : {};
822
+ const { start: l, end: f } = o ? Ge(a.effect) : {};
823
823
  return {
824
- target: tn(t, a.part),
825
- animation: nn(a, o),
824
+ target: sn(t, a.part),
825
+ animation: rn(a, o),
826
826
  composition: a.options.composite,
827
827
  custom: a.effect.custom,
828
828
  name: a.effect.name,
@@ -833,20 +833,20 @@ function rn(t, e, n) {
833
833
  };
834
834
  });
835
835
  }
836
- function on(t, e, n) {
836
+ function cn(t, e, n) {
837
837
  const s = W(e), i = t instanceof HTMLElement ? t : N(t);
838
838
  if (s && s.prepare && i) {
839
- const r = { measure: De(i), mutate: Ge(i) };
839
+ const r = { measure: We(i), mutate: Ve(i) };
840
840
  s.prepare(e, r);
841
841
  }
842
842
  n && O.mutate(n);
843
843
  }
844
- function Ye(t, e) {
844
+ function Ke(t, e) {
845
845
  const n = W(e);
846
846
  if (!n)
847
847
  return null;
848
848
  if (!n.style)
849
- return e.effectId && t ? an(t, e.effectId) : null;
849
+ return e.effectId && t ? fn(t, e.effectId) : null;
850
850
  const s = n.getNames(e), r = (typeof t == "string" ? N(t) : t)?.getAnimations(), o = r?.map((c) => c.animationName) || [], a = [];
851
851
  return s.forEach((c) => {
852
852
  o.includes(c) && a.push(
@@ -854,15 +854,15 @@ function Ye(t, e) {
854
854
  );
855
855
  }), a?.length ? new V(a) : null;
856
856
  }
857
- function an(t, e) {
857
+ function fn(t, e) {
858
858
  const s = (typeof t == "string" ? N(t) : t)?.getAnimations().filter((i) => {
859
859
  const r = i.id || i.animationName;
860
860
  return r ? r.startsWith(e) : !0;
861
861
  });
862
862
  return s?.length ? new V(s) : null;
863
863
  }
864
- function Be(t, e, n, s = {}) {
865
- const { disabled: i, allowActiveEvent: r, ...o } = s, a = Ve(t, e, n, o);
864
+ function Qe(t, e, n, s = {}) {
865
+ const { disabled: i, allowActiveEvent: r, ...o } = s, a = Be(t, e, n, o);
866
866
  if (!a)
867
867
  return null;
868
868
  let c = {};
@@ -916,7 +916,7 @@ function Be(t, e, n, s = {}) {
916
916
  c = {
917
917
  centeredToTarget: f,
918
918
  allowActiveEvent: r
919
- }, e.customEffect && u && (c.transitionDuration = u, c.transitionEasing = be(d)), c.target = a.target;
919
+ }, e.customEffect && u && (c.transitionDuration = u, c.transitionEasing = Te(d)), c.target = a.target;
920
920
  }
921
921
  return {
922
922
  ...c,
@@ -940,18 +940,18 @@ function Be(t, e, n, s = {}) {
940
940
  };
941
941
  }
942
942
  function Y(t, e, n, s = !1) {
943
- const i = Ye(t, e);
943
+ const i = Ke(t, e);
944
944
  return i ? (i.ready = new Promise((r) => {
945
- on(t, e, r);
946
- }), i) : Ve(t, e, n, { reducedMotion: s });
945
+ cn(t, e, r);
946
+ }), i) : Be(t, e, n, { reducedMotion: s });
947
947
  }
948
- function cn(t) {
948
+ function ln(t) {
949
949
  return t === null ? [null] : typeof t == "string" ? Array.from(document.querySelectorAll(t)) : Array.isArray(t) ? t : [t];
950
950
  }
951
- function Ke(t, e) {
951
+ function Ue(t, e) {
952
952
  const n = [];
953
953
  for (const { target: s, options: i } of t) {
954
- const r = cn(s);
954
+ const r = ln(s);
955
955
  for (const o of r) {
956
956
  const a = Y(
957
957
  o,
@@ -964,23 +964,23 @@ function Ke(t, e) {
964
964
  }
965
965
  return n;
966
966
  }
967
- function fn(t, e, n) {
968
- const s = Ke(e, n);
969
- return new Yt(s, t);
967
+ function un(t, e, n) {
968
+ const s = Ue(e, n);
969
+ return new Kt(s, t);
970
970
  }
971
- function ln(t, e = 2) {
971
+ function dn(t, e = 2) {
972
972
  return parseFloat(t.toFixed(e));
973
973
  }
974
- function un(t) {
974
+ function hn(t) {
975
975
  return /\[]/g.test(t);
976
976
  }
977
- function dn(t) {
977
+ function mn(t) {
978
978
  return `--${t.join("-")}`;
979
979
  }
980
- function hn(t) {
980
+ function pn(t) {
981
981
  return t.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`);
982
982
  }
983
- function mn(t, e, n, s) {
983
+ function gn(t, e, n, s) {
984
984
  const i = t.length - 1;
985
985
  t.forEach((r, o) => {
986
986
  if (r) {
@@ -1001,7 +1001,7 @@ function k() {
1001
1001
  // 97 for "a"
1002
1002
  );
1003
1003
  }
1004
- function Qe(t) {
1004
+ function Xe(t) {
1005
1005
  let { transition: e, transitionProperties: n } = t, s = [];
1006
1006
  if (e?.styleProperties) {
1007
1007
  const { duration: i, easing: r, delay: o } = e;
@@ -1021,7 +1021,7 @@ function Qe(t) {
1021
1021
  ) || [];
1022
1022
  return s;
1023
1023
  }
1024
- function pn({
1024
+ function vn({
1025
1025
  key: t,
1026
1026
  effectId: e,
1027
1027
  transition: n,
@@ -1029,7 +1029,7 @@ function pn({
1029
1029
  childSelector: i = "> :first-child",
1030
1030
  selectorCondition: r
1031
1031
  }) {
1032
- const o = Qe({
1032
+ const o = Xe({
1033
1033
  transition: n,
1034
1034
  transitionProperties: s
1035
1035
  }), a = (n?.styleProperties || s)?.map(
@@ -1049,22 +1049,22 @@ function pn({
1049
1049
  }
1050
1050
  return g;
1051
1051
  }
1052
- function ae(t, e, n) {
1052
+ function fe(t, e, n) {
1053
1053
  const s = (t || []).filter((i) => e[i]?.type === n && e[i].predicate).map((i) => e[i].predicate).join(") and (");
1054
1054
  return s && `(${s})`;
1055
1055
  }
1056
1056
  function _(t, e) {
1057
- const n = ae(t, e, "media");
1057
+ const n = fe(t, e, "media");
1058
1058
  return n && window.matchMedia(n);
1059
1059
  }
1060
- function L(t, e) {
1060
+ function q(t, e) {
1061
1061
  return (t || []).filter((n) => e[n]?.type === "selector" && e[n].predicate).map((n) => `:is(${e[n].predicate})`).join("");
1062
1062
  }
1063
1063
  const K = {
1064
1064
  rangeStart: { name: "cover", offset: { value: 0, unit: "percentage" } },
1065
1065
  rangeEnd: { name: "cover", offset: { value: 100, unit: "percentage" } }
1066
1066
  };
1067
- function gn(t, e) {
1067
+ function yn(t, e) {
1068
1068
  const n = t?.name ?? K.rangeStart.name, s = e?.name ?? t?.name ?? K.rangeEnd.name, i = {
1069
1069
  name: n,
1070
1070
  offset: t?.offset || K.rangeStart.offset
@@ -1074,13 +1074,13 @@ function gn(t, e) {
1074
1074
  };
1075
1075
  return { startOffset: i, endOffset: r };
1076
1076
  }
1077
- function q(t) {
1077
+ function M(t) {
1078
1078
  if ("keyframeEffect" in t && !t.keyframeEffect.name && "effectId" in t && (t.keyframeEffect.name = t.effectId), "duration" in t)
1079
1079
  return {
1080
1080
  id: "",
1081
1081
  ...t
1082
1082
  };
1083
- const { rangeStart: e, rangeEnd: n, ...s } = t, { startOffset: i, endOffset: r } = gn(e, n);
1083
+ const { rangeStart: e, rangeEnd: n, ...s } = t, { startOffset: i, endOffset: r } = yn(e, n);
1084
1084
  return {
1085
1085
  id: "",
1086
1086
  startOffset: i,
@@ -1100,44 +1100,44 @@ function B(t, e) {
1100
1100
  t.get(a)?.delete(s);
1101
1101
  }), t.delete(e);
1102
1102
  }
1103
- const vn = {
1103
+ const En = {
1104
1104
  root: null,
1105
1105
  rootMargin: "0px 0px -10% 0px",
1106
1106
  threshold: [0]
1107
- }, yn = {
1107
+ }, wn = {
1108
1108
  root: null,
1109
1109
  rootMargin: "0px",
1110
1110
  threshold: [0]
1111
- }, En = 0.2;
1112
- function wn(t) {
1111
+ }, bn = 0.2;
1112
+ function Sn(t) {
1113
1113
  const e = t.trim().split(/\s+/), n = e[0], s = e.length > 1 ? e[1] : e[0], i = (r) => r.startsWith("-") ? r.slice(1) : parseFloat(r) ? `-${r}` : r;
1114
1114
  return `${i(n)} 0px ${i(s)}`;
1115
1115
  }
1116
- const D = {}, M = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), z = /* @__PURE__ */ new WeakMap();
1117
- let Ue = {}, H = null;
1118
- function bn(t) {
1119
- Ue = t;
1116
+ const D = {}, x = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), z = /* @__PURE__ */ new WeakMap();
1117
+ let Ze = {}, H = null;
1118
+ function Tn(t) {
1119
+ Ze = t;
1120
1120
  }
1121
- function Xe(t, e, n) {
1122
- M.get(t)?.forEach(({ source: i, handler: r }) => {
1121
+ function Je(t, e, n) {
1122
+ x.get(t)?.forEach(({ source: i, handler: r }) => {
1123
1123
  i === t && r(e, n);
1124
1124
  });
1125
1125
  }
1126
- function $e() {
1126
+ function qe() {
1127
1127
  return H || (H = new IntersectionObserver((t) => {
1128
1128
  t.forEach((e) => {
1129
1129
  const n = e.target;
1130
- e.isIntersecting || Xe(n, !1, !0);
1130
+ e.isIntersecting || Je(n, !1, !0);
1131
1131
  });
1132
- }, yn), H);
1132
+ }, wn), H);
1133
1133
  }
1134
- function Ze(t, e = !1) {
1134
+ function et(t, e = !1) {
1135
1135
  const n = JSON.stringify({ ...t, isSafeMode: e });
1136
1136
  if (D[n])
1137
1137
  return D[n];
1138
- const s = t.threshold ?? En, i = e ? vn : {
1138
+ const s = t.threshold ?? bn, i = e ? En : {
1139
1139
  root: null,
1140
- rootMargin: t.inset ? wn(t.inset) : "0px",
1140
+ rootMargin: t.inset ? Sn(t.inset) : "0px",
1141
1141
  threshold: s
1142
1142
  }, r = new IntersectionObserver((o) => {
1143
1143
  o.forEach((a) => {
@@ -1150,35 +1150,35 @@ function Ze(t, e = !1) {
1150
1150
  const d = Array.isArray(t.threshold) ? Math.min(...t.threshold) : t.threshold;
1151
1151
  d && f * d > u && O.mutate(() => {
1152
1152
  r.unobserve(c);
1153
- const p = Ze(t, !0);
1153
+ const p = et(t, !0);
1154
1154
  z.set(c, p), p.observe(c);
1155
1155
  });
1156
1156
  });
1157
1157
  return;
1158
1158
  }
1159
- (a.isIntersecting || !l) && Xe(c, a.isIntersecting);
1159
+ (a.isIntersecting || !l) && Je(c, a.isIntersecting);
1160
1160
  });
1161
1161
  }, i);
1162
1162
  return D[n] = r, r;
1163
1163
  }
1164
- function Sn(t, e, n, s = {}, { reducedMotion: i, selectorCondition: r, animation: o } = {}) {
1165
- const a = { ...Ue, ...s }, c = n.triggerType || "once", l = o || Y(
1164
+ function In(t, e, n, s = {}, { reducedMotion: i, selectorCondition: r, animation: o } = {}) {
1165
+ const a = { ...Ze, ...s }, c = n.triggerType || "once", l = o || Y(
1166
1166
  e,
1167
- q(n),
1167
+ M(n),
1168
1168
  void 0,
1169
1169
  i
1170
1170
  );
1171
1171
  if (!l)
1172
1172
  return;
1173
- const f = Ze(a);
1173
+ const f = et(a);
1174
1174
  c !== "once" && l.persist?.();
1175
1175
  let u = !0, d = !1, g;
1176
1176
  g = { source: t, target: e, handler: (h, v) => {
1177
1177
  if (!(r && !e.matches(r)))
1178
1178
  if (c === "once") {
1179
1179
  if (h && !d) {
1180
- d = !0, M.get(t)?.delete(g), M.get(e)?.delete(g);
1181
- const y = M.get(t);
1180
+ d = !0, x.get(t)?.delete(g), x.get(e)?.delete(g);
1181
+ const y = x.get(t);
1182
1182
  (!y || y.size === 0) && ((z.get(t) || f).unobserve(t), re.delete(t)), l.play(() => {
1183
1183
  const E = () => {
1184
1184
  e.dataset.interactEnter = "start";
@@ -1199,25 +1199,25 @@ function Sn(t, e, n, s = {}, { reducedMotion: i, selectorCondition: r, animation
1199
1199
  }
1200
1200
  } else c === "alternate" ? u && h ? (u = !1, l.play()) : u || l.reverse() : c === "repeat" ? h ? (l.progress(0), l.play()) : v && (l.pause(), l.progress(0)) : c === "state" && (h ? l.play() : v && l.pause());
1201
1201
  }, cleanup: () => {
1202
- (z.get(t) || f).unobserve(t), (c === "repeat" || c === "state") && $e().unobserve(t), l.cancel(), re.delete(t), z.delete(t);
1203
- } }, C(M, t, g), C(M, e, g), z.set(t, f), f.observe(t), (c === "repeat" || c === "state") && $e().observe(t);
1202
+ (z.get(t) || f).unobserve(t), (c === "repeat" || c === "state") && qe().unobserve(t), l.cancel(), re.delete(t), z.delete(t);
1203
+ } }, C(x, t, g), C(x, e, g), z.set(t, f), f.observe(t), (c === "repeat" || c === "state") && qe().observe(t);
1204
1204
  }
1205
- function Tn(t) {
1206
- B(M, t);
1205
+ function On(t) {
1206
+ B(x, t);
1207
1207
  }
1208
- function In() {
1208
+ function An() {
1209
1209
  H = null, Object.keys(D).forEach((t) => delete D[t]);
1210
1210
  }
1211
- const On = {
1212
- add: Sn,
1213
- remove: Tn,
1214
- setOptions: bn,
1215
- reset: In
1211
+ const Cn = {
1212
+ add: In,
1213
+ remove: On,
1214
+ setOptions: Tn,
1215
+ reset: An
1216
1216
  };
1217
- function Je(t, e) {
1217
+ function tt(t, e) {
1218
1218
  return Object.assign(Object.create(e), t);
1219
1219
  }
1220
- function An(t, e, n, s) {
1220
+ function kn(t, e, n, s) {
1221
1221
  let i = t * (1 - n) + e * n;
1222
1222
  if (s) {
1223
1223
  const r = i - t;
@@ -1228,7 +1228,7 @@ function An(t, e, n, s) {
1228
1228
  }
1229
1229
  return i;
1230
1230
  }
1231
- function Cn(t) {
1231
+ function $n(t) {
1232
1232
  let e = !1;
1233
1233
  return function() {
1234
1234
  e || (e = !0, window.requestAnimationFrame(() => {
@@ -1236,7 +1236,7 @@ function Cn(t) {
1236
1236
  }));
1237
1237
  };
1238
1238
  }
1239
- function _e(t, e) {
1239
+ function Me(t, e) {
1240
1240
  let n = 0;
1241
1241
  return function() {
1242
1242
  n && window.clearTimeout(n), n = window.setTimeout(() => {
@@ -1244,19 +1244,19 @@ function _e(t, e) {
1244
1244
  }, e);
1245
1245
  };
1246
1246
  }
1247
- function kn(t, e) {
1247
+ function _n(t, e) {
1248
1248
  const n = t.match(/^calc\s*\(\s*(-?\d+((px)|([lsd]?vh)|([lsd]?vw)))\s*\+\s*(-?\d+((px)|([lsd]?vh)|([lsd]?vw)))\s*\)\s*$/);
1249
1249
  return oe(n[1], e) + oe(n[6], e);
1250
1250
  }
1251
1251
  function oe(t, e) {
1252
- return t ? /^-?\d+px$/.test(t) ? parseInt(t) : /^-?\d+[lsd]?vh$/.test(t) ? parseInt(t) * e.viewportHeight / 100 : /^-?\d+[lsd]?vw$/.test(t) ? parseInt(t) * e.viewportWidth / 100 : /^calc\s*\(\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\+\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\)\s*$/.test(t) ? kn(t, e) : parseInt(t) || 0 : 0;
1252
+ return t ? /^-?\d+px$/.test(t) ? parseInt(t) : /^-?\d+[lsd]?vh$/.test(t) ? parseInt(t) * e.viewportHeight / 100 : /^-?\d+[lsd]?vw$/.test(t) ? parseInt(t) * e.viewportWidth / 100 : /^calc\s*\(\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\+\s*-?\d+((px)|([lsd]?vh)|([lsd]?vw))\s*\)\s*$/.test(t) ? _n(t, e) : parseInt(t) || 0 : 0;
1253
1253
  }
1254
- function R(t, e, n) {
1254
+ function L(t, e, n) {
1255
1255
  const { name: s, offset: i = 0 } = t, { start: r, end: o } = n, a = o - r, c = i / 100;
1256
1256
  let l, f;
1257
1257
  return s === "entry" ? (l = r - e, f = Math.min(e, a)) : s === "entry-crossing" ? (l = r - e, f = a) : s === "contain" ? (l = Math.min(o - e, r), f = Math.abs(e - a)) : s === "exit" ? (l = Math.max(r, o - e), f = Math.min(e, a)) : s === "exit-crossing" ? (l = r, f = a) : s === "cover" && (l = r - e, f = a + e), l + c * f | 0;
1258
1258
  }
1259
- function fe(t, e, n, s, i) {
1259
+ function ue(t, e, n, s, i) {
1260
1260
  let r = 0;
1261
1261
  const o = { start: e, end: n };
1262
1262
  return t.forEach((a, c) => {
@@ -1283,55 +1283,55 @@ function fe(t, e, n, s, i) {
1283
1283
  }
1284
1284
  }), o;
1285
1285
  }
1286
- function $n(t, e, n, s, i, r) {
1286
+ function qn(t, e, n, s, i, r) {
1287
1287
  const { start: o, end: a, duration: c } = t;
1288
1288
  let l = o, f = a, u = t.startRange, d = t.endRange, g;
1289
1289
  if (typeof c == "string") {
1290
- u = { name: c, offset: 0 }, d = { name: c, offset: 100 }, l = R(u, n, e), f = R(d, n, e), g = f - l;
1291
- const p = fe(r, l, f, n, s);
1290
+ u = { name: c, offset: 0 }, d = { name: c, offset: 100 }, l = L(u, n, e), f = L(d, n, e), g = f - l;
1291
+ const p = ue(r, l, f, n, s);
1292
1292
  l = p.start, f = p.end;
1293
1293
  } else {
1294
1294
  if (u || o?.name) {
1295
1295
  u = u || o;
1296
- const p = oe(u.add, i), m = R({ ...u, offset: 0 }, n, e), h = R({ ...u, offset: 100 }, n, e), v = fe(r, m, h, n, s);
1296
+ const p = oe(u.add, i), m = L({ ...u, offset: 0 }, n, e), h = L({ ...u, offset: 100 }, n, e), v = ue(r, m, h, n, s);
1297
1297
  l = v.start + u.offset / 100 * (v.end - v.start) + p;
1298
1298
  }
1299
1299
  if (d || a?.name) {
1300
1300
  d = d || a;
1301
- const p = oe(d.add, i), m = R({ ...d, offset: 0 }, n, e), h = R({ ...d, offset: 100 }, n, e), v = fe(r, m, h, n, s);
1301
+ const p = oe(d.add, i), m = L({ ...d, offset: 0 }, n, e), h = L({ ...d, offset: 100 }, n, e), v = ue(r, m, h, n, s);
1302
1302
  f = v.start + d.offset / 100 * (v.end - v.start) + p;
1303
1303
  } else typeof c == "number" && (f = l + c);
1304
1304
  }
1305
1305
  return !g && !c && (g = f - l), { ...t, start: l, end: f, startRange: u, endRange: d, duration: g || c };
1306
1306
  }
1307
- function _n(t) {
1307
+ function Mn(t) {
1308
1308
  return t.position === "sticky";
1309
1309
  }
1310
- function qn(t, e, n) {
1310
+ function xn(t, e, n) {
1311
1311
  return t.position === "fixed" && (!e || e === window.document.body || e === n);
1312
1312
  }
1313
- function Mn(t, e) {
1313
+ function Pn(t, e) {
1314
1314
  return parseInt(e ? t.left : t.top);
1315
1315
  }
1316
- function xn(t, e) {
1316
+ function Ln(t, e) {
1317
1317
  return parseInt(e ? t.right : t.bottom);
1318
1318
  }
1319
- function Pn(t, e, n) {
1319
+ function Rn(t, e, n) {
1320
1320
  n && (t.style.position = "static");
1321
1321
  const s = (e ? t.offsetLeft : t.offsetTop) || 0;
1322
1322
  return n && (t.style.position = null), s;
1323
1323
  }
1324
- function Ln(t, e) {
1324
+ function Fn(t, e) {
1325
1325
  let n;
1326
- const s = Mn(t, e), i = xn(t, e), r = !isNaN(s), o = !isNaN(i);
1326
+ const s = Pn(t, e), i = Ln(t, e), r = !isNaN(s), o = !isNaN(i);
1327
1327
  return (r || o) && (n = {}, r && (n.start = s), o && (n.end = i)), n;
1328
1328
  }
1329
1329
  function Q(t, e, n, s, i) {
1330
1330
  const r = t[0].viewSource, o = [];
1331
1331
  let a = (s ? r.offsetWidth : r.offsetHeight) || 0, c = 0, l = r;
1332
1332
  for (; l; ) {
1333
- const u = window.getComputedStyle(l), d = _n(u), g = d ? Ln(u, s) : void 0, p = Pn(l, s, d);
1334
- if ((!g || !("end" in g)) && (c += p), o.push({ element: l, offset: p, sticky: g }), l = l.offsetParent, qn(u, l, e))
1333
+ const u = window.getComputedStyle(l), d = Mn(u), g = d ? Fn(u, s) : void 0, p = Rn(l, s, d);
1334
+ if ((!g || !("end" in g)) && (c += p), o.push({ element: l, offset: p, sticky: g }), l = l.offsetParent, xn(u, l, e))
1335
1335
  break;
1336
1336
  if (l === e) {
1337
1337
  o.push({ element: l, offset: 0 });
@@ -1339,7 +1339,7 @@ function Q(t, e, n, s, i) {
1339
1339
  }
1340
1340
  }
1341
1341
  return o.reverse(), t.map((u) => ({
1342
- ...$n(
1342
+ ...qn(
1343
1343
  u,
1344
1344
  { start: c, end: c + a },
1345
1345
  n,
@@ -1349,7 +1349,7 @@ function Q(t, e, n, s, i) {
1349
1349
  )
1350
1350
  }));
1351
1351
  }
1352
- const qe = 100, Rn = {
1352
+ const xe = 100, Nn = {
1353
1353
  horizontal: !1,
1354
1354
  observeViewportEntry: !0,
1355
1355
  viewportRootMargin: "7% 7%",
@@ -1357,23 +1357,23 @@ const qe = 100, Rn = {
1357
1357
  observeSourcesResize: !1,
1358
1358
  observeContentResize: !1
1359
1359
  };
1360
- function Fn(t, e, n, s) {
1360
+ function zn(t, e, n, s) {
1361
1361
  let i = 0;
1362
1362
  return t >= e && t <= n ? i = s ? (t - e) / s : 1 : t > n && (i = 1), i;
1363
1363
  }
1364
- function Me(t, e) {
1364
+ function Pe(t, e) {
1365
1365
  return t === window ? e ? window.document.documentElement.clientWidth : window.document.documentElement.clientHeight : e ? t.clientWidth : t.clientHeight;
1366
1366
  }
1367
- function Nn() {
1367
+ function Hn() {
1368
1368
  return {
1369
1369
  viewportWidth: window.document.documentElement.clientWidth,
1370
1370
  viewportHeight: window.document.documentElement.clientHeight
1371
1371
  };
1372
1372
  }
1373
- function zn(t) {
1374
- const e = Je(t, Rn), n = e.root, s = e.horizontal, i = /* @__PURE__ */ new WeakMap();
1375
- let r = Me(n, s), o, a, c, l, f;
1376
- const u = [], d = Nn();
1373
+ function jn(t) {
1374
+ const e = tt(t, Nn), n = e.root, s = e.horizontal, i = /* @__PURE__ */ new WeakMap();
1375
+ let r = Pe(n, s), o, a, c, l, f;
1376
+ const u = [], d = Hn();
1377
1377
  if (e.scenes = Object.values(
1378
1378
  // TODO(ameerf): find a polyfill and use groupBy instead of following reduce
1379
1379
  t.scenes.reduce(
@@ -1398,7 +1398,7 @@ function zn(t) {
1398
1398
  });
1399
1399
  }), u.forEach((h) => {
1400
1400
  c.observe(h[0].viewSource, { box: "border-box" }), m.set(h[0].viewSource, h);
1401
- }), e.observeContentResize && e.contentRoot && new window.ResizeObserver(_e(() => {
1401
+ }), e.observeContentResize && e.contentRoot && new window.ResizeObserver(Me(() => {
1402
1402
  const v = u.map((y) => {
1403
1403
  const E = Q(y, n, r, s, d);
1404
1404
  return E.forEach((w, S) => {
@@ -1408,8 +1408,8 @@ function zn(t) {
1408
1408
  u.length = 0, u.push(...v), u.forEach((y) => {
1409
1409
  m.set(y[0].viewSource, y);
1410
1410
  });
1411
- }, qe)).observe(e.contentRoot, { box: "border-box" })), e.observeViewportResize && (l = _e(function() {
1412
- r = Me(n, s);
1411
+ }, xe)).observe(e.contentRoot, { box: "border-box" })), e.observeViewportResize && (l = Me(function() {
1412
+ r = Pe(n, s);
1413
1413
  const h = u.map((v) => {
1414
1414
  const y = Q(v, n, r, s, d);
1415
1415
  return y.forEach((E, w) => {
@@ -1419,7 +1419,7 @@ function zn(t) {
1419
1419
  u.length = 0, u.push(...h), u.forEach((v) => {
1420
1420
  m.set(v[0].viewSource, v);
1421
1421
  });
1422
- }, qe), n === window ? window.addEventListener("resize", l) : window.ResizeObserver && (f = new window.ResizeObserver(l), f.observe(n, { box: "border-box" })));
1422
+ }, xe), n === window ? window.addEventListener("resize", l) : window.ResizeObserver && (f = new window.ResizeObserver(l), f.observe(n, { box: "border-box" })));
1423
1423
  }
1424
1424
  e.observeViewportEntry && window.IntersectionObserver && (a = new window.IntersectionObserver(function(m) {
1425
1425
  m.forEach((h) => {
@@ -1443,7 +1443,7 @@ function zn(t) {
1443
1443
  if (m !== o) {
1444
1444
  for (let y of e.scenes)
1445
1445
  if (!y.disabled) {
1446
- const { start: E, end: w, duration: S } = y, T = Fn(m, E, w, S);
1446
+ const { start: E, end: w, duration: S } = y, T = zn(m, E, w, S);
1447
1447
  y.effect(y, T, v);
1448
1448
  }
1449
1449
  o = m;
@@ -1457,16 +1457,16 @@ function zn(t) {
1457
1457
  destroy: p
1458
1458
  };
1459
1459
  }
1460
- const Hn = {
1460
+ const Dn = {
1461
1461
  transitionActive: !1,
1462
1462
  transitionFriction: 0.9,
1463
1463
  transitionEpsilon: 1,
1464
1464
  velocityActive: !1,
1465
1465
  velocityMax: 1
1466
1466
  };
1467
- class jn {
1467
+ class Gn {
1468
1468
  constructor(e = {}) {
1469
- this.config = Je(e, Hn), this.progress = {
1469
+ this.config = tt(e, Dn), this.progress = {
1470
1470
  p: 0,
1471
1471
  prevP: 0,
1472
1472
  vp: 0
@@ -1479,7 +1479,7 @@ class jn {
1479
1479
  this.config.root = n ? window : this.config.root, this.config.contentRoot = this.config.contentRoot || (n ? window.document.body : this.config.root.firstElementChild), this.config.resetProgress = this.config.resetProgress || this.resetProgress.bind(this), this._measure = this.config.measure || (() => {
1480
1480
  const s = this.config.root;
1481
1481
  this.progress.p = this.config.horizontal ? s.scrollX || s.scrollLeft || 0 : s.scrollY || s.scrollTop || 0;
1482
- }), this._trigger = Cn(() => {
1482
+ }), this._trigger = $n(() => {
1483
1483
  this._measure?.(), this.tick(!0);
1484
1484
  });
1485
1485
  }
@@ -1525,7 +1525,7 @@ class jn {
1525
1525
  * Calculate current progress.
1526
1526
  */
1527
1527
  lerp() {
1528
- this.currentProgress.p = An(this.currentProgress.p, this.progress.p, +(1 - this.config.transitionFriction).toFixed(3), this.config.transitionEpsilon);
1528
+ this.currentProgress.p = kn(this.currentProgress.p, this.progress.p, +(1 - this.config.transitionFriction).toFixed(3), this.config.transitionEpsilon);
1529
1529
  }
1530
1530
  /**
1531
1531
  * Stop the event and effect, and remove all DOM side-effects.
@@ -1549,7 +1549,7 @@ class jn {
1549
1549
  * Reset registered effect.
1550
1550
  */
1551
1551
  setupEffect() {
1552
- this.removeEffect(), this.effect = zn(this.config);
1552
+ this.removeEffect(), this.effect = jn(this.config);
1553
1553
  }
1554
1554
  /**
1555
1555
  * Remove registered effect.
@@ -1558,18 +1558,18 @@ class jn {
1558
1558
  this.effect && this.effect.destroy(), this.effect = null;
1559
1559
  }
1560
1560
  }
1561
- const he = /* @__PURE__ */ new WeakMap();
1562
- let et = () => ({});
1563
- function Dn(t) {
1564
- et = t;
1561
+ const pe = /* @__PURE__ */ new WeakMap();
1562
+ let nt = () => ({});
1563
+ function Wn(t) {
1564
+ nt = t;
1565
1565
  }
1566
- function Gn(t, e, n, s, { reducedMotion: i }) {
1566
+ function Vn(t, e, n, s, { reducedMotion: i }) {
1567
1567
  if (i)
1568
1568
  return;
1569
1569
  const r = {
1570
1570
  trigger: "view-progress",
1571
1571
  element: t
1572
- }, o = q(n);
1572
+ }, o = M(n);
1573
1573
  let a;
1574
1574
  if ("ViewTimeline" in window) {
1575
1575
  const l = Y(
@@ -1583,16 +1583,16 @@ function Gn(t, e, n, s, { reducedMotion: i }) {
1583
1583
  });
1584
1584
  });
1585
1585
  } else {
1586
- const l = Be(e, o, r);
1586
+ const l = Qe(e, o, r);
1587
1587
  if (l) {
1588
- const f = Array.isArray(l) ? l : [l], u = new jn({
1588
+ const f = Array.isArray(l) ? l : [l], u = new Gn({
1589
1589
  viewSource: t,
1590
1590
  scenes: f,
1591
1591
  observeViewportEntry: !1,
1592
1592
  observeViewportResize: !1,
1593
1593
  observeSourcesResize: !0,
1594
1594
  root: document.body,
1595
- ...et()
1595
+ ...nt()
1596
1596
  });
1597
1597
  a = () => {
1598
1598
  u.destroy();
@@ -1605,20 +1605,20 @@ function Gn(t, e, n, s, { reducedMotion: i }) {
1605
1605
  }
1606
1606
  if (!a) return;
1607
1607
  const c = { source: t, target: e, cleanup: a };
1608
- C(he, t, c), C(he, e, c);
1608
+ C(pe, t, c), C(pe, e, c);
1609
1609
  }
1610
- function Wn(t) {
1611
- B(he, t);
1610
+ function Yn(t) {
1611
+ B(pe, t);
1612
1612
  }
1613
- const Vn = {
1614
- add: Gn,
1615
- remove: Wn,
1616
- registerOptionsGetter: Dn
1613
+ const Bn = {
1614
+ add: Vn,
1615
+ remove: Yn,
1616
+ registerOptionsGetter: Wn
1617
1617
  };
1618
- function xe(t, e, n) {
1618
+ function Le(t, e, n) {
1619
1619
  return Math.min(Math.max(t, n), e);
1620
1620
  }
1621
- function Pe(t) {
1621
+ function Re(t) {
1622
1622
  let e = !1;
1623
1623
  return function() {
1624
1624
  if (!e)
@@ -1627,7 +1627,7 @@ function Pe(t) {
1627
1627
  });
1628
1628
  };
1629
1629
  }
1630
- function Yn(t) {
1630
+ function Kn(t) {
1631
1631
  let e = t, n = 0, s = 0;
1632
1632
  if (e.offsetParent)
1633
1633
  do
@@ -1640,7 +1640,7 @@ function Yn(t) {
1640
1640
  height: t.offsetHeight
1641
1641
  };
1642
1642
  }
1643
- function Bn() {
1643
+ function Qn() {
1644
1644
  const t = window.devicePixelRatio;
1645
1645
  let e = !1;
1646
1646
  if (t === 1)
@@ -1653,7 +1653,7 @@ function Bn() {
1653
1653
  });
1654
1654
  return document.body.dispatchEvent(n), e;
1655
1655
  }
1656
- function Kn() {
1656
+ function Un() {
1657
1657
  return new Promise((t) => {
1658
1658
  const e = window.scrollY;
1659
1659
  let n = !1, s;
@@ -1672,14 +1672,14 @@ function Kn() {
1672
1672
  i(), window.addEventListener("scroll", r), window.scrollY > 0 && window.scrollBy(0, -1);
1673
1673
  });
1674
1674
  }
1675
- function Qn(t) {
1676
- Kn().then((e) => {
1675
+ function Xn(t) {
1676
+ Un().then((e) => {
1677
1677
  t.fixRequired = e, e && (window.addEventListener("scroll", t.scrollHandler), t.scrollHandler());
1678
1678
  });
1679
1679
  }
1680
1680
  let U = 0;
1681
1681
  const ne = /* @__PURE__ */ new Set();
1682
- function Un() {
1682
+ function Zn() {
1683
1683
  const t = (n) => {
1684
1684
  for (let s of n.changedTouches)
1685
1685
  ne.add(s.identifier);
@@ -1691,13 +1691,13 @@ function Un() {
1691
1691
  ne.clear(), document.removeEventListener("touchstart", t), document.removeEventListener("touchend", e);
1692
1692
  };
1693
1693
  }
1694
- function Xn(t, e) {
1694
+ function Jn(t, e) {
1695
1695
  if ("onscrollend" in window)
1696
1696
  return t.addEventListener("scrollend", e), function() {
1697
1697
  t.removeEventListener("scrollend", e);
1698
1698
  };
1699
1699
  let n = 0, s;
1700
- U || (s = Un()), U += 1;
1700
+ U || (s = Zn()), U += 1;
1701
1701
  function i(r) {
1702
1702
  clearTimeout(n), n = setTimeout(() => {
1703
1703
  ne.size ? setTimeout(i, 100) : (e(r), n = 0);
@@ -1707,7 +1707,7 @@ function Xn(t, e) {
1707
1707
  t.removeEventListener("scroll", i), U -= 1, U || s();
1708
1708
  };
1709
1709
  }
1710
- function Zn(t, e, n) {
1710
+ function es(t, e, n) {
1711
1711
  return {
1712
1712
  x(s) {
1713
1713
  const i = t.left - n.x + t.width / 2, r = i >= e.width / 2, o = (r ? i : e.width - i) * 2, a = r ? 0 : i - o / 2;
@@ -1719,13 +1719,13 @@ function Zn(t, e, n) {
1719
1719
  }
1720
1720
  };
1721
1721
  }
1722
- function Jn(t, e) {
1722
+ function ts(t, e) {
1723
1723
  this.x = window.scrollX, this.y = window.scrollY, requestAnimationFrame(() => t && t(e));
1724
1724
  }
1725
- function es(t) {
1725
+ function ns(t) {
1726
1726
  t.rect.width = window.document.documentElement.clientWidth, t.rect.height = window.document.documentElement.clientHeight;
1727
1727
  }
1728
- function ts(t) {
1728
+ function ss(t) {
1729
1729
  const e = new ResizeObserver((n) => {
1730
1730
  n.forEach((s) => {
1731
1731
  t.rect.width = s.borderBoxSize[0].inlineSize, t.rect.height = s.borderBoxSize[0].blockSize;
@@ -1733,19 +1733,19 @@ function ts(t) {
1733
1733
  });
1734
1734
  return e.observe(t.root, { box: "border-box" }), e;
1735
1735
  }
1736
- function ns(t) {
1736
+ function is(t) {
1737
1737
  let e = !1, n = { x: t.rect.width / 2, y: t.rect.height / 2, vx: 0, vy: 0 }, s, i, r, o, a;
1738
1738
  const c = { x: 0, y: 0 };
1739
1739
  t.scenes.forEach((f) => {
1740
- f.target && f.centeredToTarget && (f.transform = Zn(Yn(f.target), t.rect, c), e = !0), t.root ? i = ts(t) : (r = es.bind(null, t), window.addEventListener("resize", r));
1740
+ f.target && f.centeredToTarget && (f.transform = es(Kn(f.target), t.rect, c), e = !0), t.root ? i = ss(t) : (r = ns.bind(null, t), window.addEventListener("resize", r));
1741
1741
  }), s = function(f) {
1742
1742
  for (let u of t.scenes)
1743
1743
  if (!u.disabled) {
1744
- const d = u.transform?.x(f.x) || f.x / t.rect.width, g = u.transform?.y(f.y) || f.y / t.rect.height, p = +xe(0, 1, d).toPrecision(4), m = +xe(0, 1, g).toPrecision(4), h = { x: f.vx, y: f.vy };
1744
+ const d = u.transform?.x(f.x) || f.x / t.rect.width, g = u.transform?.y(f.y) || f.y / t.rect.height, p = +Le(0, 1, d).toPrecision(4), m = +Le(0, 1, g).toPrecision(4), h = { x: f.vx, y: f.vy };
1745
1745
  t.allowActiveEvent && (f.active = d <= 1 && g <= 1 && d >= 0 && g >= 0), u.effect(u, { x: p, y: m }, h, f.active);
1746
1746
  }
1747
1747
  Object.assign(n, f);
1748
- }, e && (o = Jn.bind(c, s, n), a = Xn(document, o));
1748
+ }, e && (o = ts.bind(c, s, n), a = Jn(document, o));
1749
1749
  function l() {
1750
1750
  t.scenes.forEach((f) => f.destroy?.()), a?.(), i ? (i.disconnect(), i = null) : (window.removeEventListener("resize", r), r = null), s = null, n = null;
1751
1751
  }
@@ -1754,17 +1754,17 @@ function ns(t) {
1754
1754
  destroy: l
1755
1755
  };
1756
1756
  }
1757
- const ss = 1e3 / 60 * 3;
1757
+ const rs = 1e3 / 60 * 3;
1758
1758
  let X;
1759
- function is() {
1760
- F.x = window.scrollX, F.y = window.scrollY;
1759
+ function os() {
1760
+ R.x = window.scrollX, R.y = window.scrollY;
1761
1761
  }
1762
- const F = { x: 0, y: 0, scrollHandler: is, fixRequired: void 0 };
1763
- class rs {
1762
+ const R = { x: 0, y: 0, scrollHandler: os, fixRequired: void 0 };
1763
+ class as {
1764
1764
  constructor(e = {}) {
1765
1765
  this.config = { ...e }, this.effect = null, this._nextTick = null, this._nextTransitionTick = null, this._startTime = 0;
1766
1766
  let n;
1767
- this.config.transitionDuration ? n = this.config.noThrottle ? () => this.transition() : Pe(() => this.transition()) : n = this.config.noThrottle ? () => (this.tick(), null) : Pe(() => {
1767
+ this.config.transitionDuration ? n = this.config.noThrottle ? () => this.transition() : Re(() => this.transition()) : n = this.config.noThrottle ? () => (this.tick(), null) : Re(() => {
1768
1768
  this.tick();
1769
1769
  }), this.config.rect = this.config.root ? {
1770
1770
  width: this.config.root.offsetWidth,
@@ -1787,15 +1787,15 @@ class rs {
1787
1787
  }, this._pointerEnter = () => {
1788
1788
  this.progress.active = !0, this._nextTick = n();
1789
1789
  }, this.config.root) {
1790
- X = typeof X == "boolean" ? X : Bn();
1790
+ X = typeof X == "boolean" ? X : Qn();
1791
1791
  const i = X ? window.devicePixelRatio : 1;
1792
- typeof F.fixRequired > "u" && Qn(F), this._measure = (r) => {
1792
+ typeof R.fixRequired > "u" && Xn(R), this._measure = (r) => {
1793
1793
  if (r.target !== this.config.root) {
1794
1794
  const o = new PointerEvent("pointermove", {
1795
1795
  bubbles: !0,
1796
1796
  cancelable: !0,
1797
- clientX: r.x * i + F.x,
1798
- clientY: r.y * i + F.y
1797
+ clientX: r.x * i + R.x,
1798
+ clientY: r.y * i + R.y
1799
1799
  });
1800
1800
  r.stopPropagation(), this.config.root.dispatchEvent(o);
1801
1801
  } else
@@ -1832,7 +1832,7 @@ class rs {
1832
1832
  let i = !1;
1833
1833
  const r = (o) => {
1834
1834
  const a = (o - this._startTime) / e, c = n(Math.min(1, a));
1835
- i && (this.progress.vx = 0, this.progress.vy = 0, i = !1), this.currentProgress = Object.entries(this.progress).reduce((l, [f, u]) => (f === "active" ? l[f] = u : l[f] = this.previousProgress[f] + (u - this.previousProgress[f]) * c, l), this.currentProgress || {}), a < 1 && (this._nextTransitionTick = requestAnimationFrame(r), i = o - this._startTime > ss), this.effect.tick(this.currentProgress);
1835
+ i && (this.progress.vx = 0, this.progress.vy = 0, i = !1), this.currentProgress = Object.entries(this.progress).reduce((l, [f, u]) => (f === "active" ? l[f] = u : l[f] = this.previousProgress[f] + (u - this.previousProgress[f]) * c, l), this.currentProgress || {}), a < 1 && (this._nextTransitionTick = requestAnimationFrame(r), i = o - this._startTime > rs), this.effect.tick(this.currentProgress);
1836
1836
  };
1837
1837
  return this._startTime ? (this._nextTransitionTick && cancelAnimationFrame(this._nextTransitionTick), Object.assign(this.previousProgress, this.currentProgress), this._startTime = s, r(s)) : this._startTime = s, this._nextTransitionTick;
1838
1838
  }
@@ -1861,7 +1861,7 @@ class rs {
1861
1861
  * Reset registered effect.
1862
1862
  */
1863
1863
  setupEffect() {
1864
- this.removeEffect(), this.effect = ns(this.config);
1864
+ this.removeEffect(), this.effect = is(this.config);
1865
1865
  }
1866
1866
  /**
1867
1867
  * Remove registered effect.
@@ -1870,43 +1870,43 @@ class rs {
1870
1870
  this.effect && this.effect.destroy(), this.effect = null;
1871
1871
  }
1872
1872
  }
1873
- const me = /* @__PURE__ */ new WeakMap();
1874
- let tt = () => ({});
1875
- function os(t) {
1876
- tt = t;
1873
+ const ge = /* @__PURE__ */ new WeakMap();
1874
+ let st = () => ({});
1875
+ function cs(t) {
1876
+ st = t;
1877
1877
  }
1878
- function as(t, e, n, s = {}, { reducedMotion: i }) {
1878
+ function fs(t, e, n, s = {}, { reducedMotion: i }) {
1879
1879
  if (i)
1880
1880
  return;
1881
1881
  const r = {
1882
1882
  trigger: "pointer-move",
1883
1883
  element: t,
1884
1884
  axis: s.axis ?? "y"
1885
- }, o = Be(e, q(n), r);
1885
+ }, o = Qe(e, M(n), r);
1886
1886
  if (o) {
1887
- const a = Array.isArray(o) ? o : [o], c = new rs({
1887
+ const a = Array.isArray(o) ? o : [o], c = new as({
1888
1888
  root: s.hitArea === "self" ? t : void 0,
1889
1889
  scenes: a,
1890
- ...tt()
1890
+ ...st()
1891
1891
  }), f = { source: t, target: e, cleanup: () => {
1892
1892
  c.destroy();
1893
1893
  } };
1894
- C(me, t, f), C(me, e, f), Promise.all(
1894
+ C(ge, t, f), C(ge, e, f), Promise.all(
1895
1895
  a.map((u) => u.ready || Promise.resolve())
1896
1896
  ).then(() => {
1897
1897
  c.start();
1898
1898
  });
1899
1899
  }
1900
1900
  }
1901
- function cs(t) {
1902
- B(me, t);
1903
- }
1904
- const fs = {
1905
- add: as,
1906
- remove: cs,
1907
- registerOptionsGetter: os
1908
- }, pe = /* @__PURE__ */ new WeakMap();
1909
- function ls(t, e, n, s, {
1901
+ function ls(t) {
1902
+ B(ge, t);
1903
+ }
1904
+ const us = {
1905
+ add: fs,
1906
+ remove: ls,
1907
+ registerOptionsGetter: cs
1908
+ }, ve = /* @__PURE__ */ new WeakMap();
1909
+ function ds(t, e, n, s, {
1910
1910
  reducedMotion: i,
1911
1911
  selectorCondition: r,
1912
1912
  animation: o,
@@ -1914,7 +1914,7 @@ function ls(t, e, n, s, {
1914
1914
  }) {
1915
1915
  const c = o || Y(
1916
1916
  e,
1917
- q(n),
1917
+ M(n),
1918
1918
  void 0,
1919
1919
  i
1920
1920
  );
@@ -1922,7 +1922,7 @@ function ls(t, e, n, s, {
1922
1922
  return;
1923
1923
  const { effectId: l } = s, f = (g) => {
1924
1924
  if (r && !e.matches(r)) return;
1925
- const p = g.animationName, m = g.detail?.effectId, h = a ? Ye(t, a) : null;
1925
+ const p = g.animationName, m = g.detail?.effectId, h = a ? Ke(t, a) : null;
1926
1926
  if (h) {
1927
1927
  if (h.playState === "running" || p && !h.hasAnimationName(p))
1928
1928
  return;
@@ -1933,19 +1933,19 @@ function ls(t, e, n, s, {
1933
1933
  }, d = { source: t, target: e, cleanup: () => {
1934
1934
  c.cancel(), t.removeEventListener("animationend", f);
1935
1935
  } };
1936
- C(pe, t, d), C(pe, e, d), t.addEventListener("animationend", f);
1936
+ C(ve, t, d), C(ve, e, d), t.addEventListener("animationend", f);
1937
1937
  }
1938
- function us(t) {
1939
- B(pe, t);
1938
+ function hs(t) {
1939
+ B(ve, t);
1940
1940
  }
1941
- const ds = {
1942
- add: ls,
1943
- remove: us
1941
+ const ms = {
1942
+ add: ds,
1943
+ remove: hs
1944
1944
  };
1945
- function hs(t, e, n = !1, s, i, r) {
1945
+ function ps(t, e, n = !1, s, i, r) {
1946
1946
  const o = r || Y(
1947
1947
  t,
1948
- q(e),
1948
+ M(e),
1949
1949
  void 0,
1950
1950
  n
1951
1951
  );
@@ -1977,7 +1977,7 @@ function hs(t, e, n = !1, s, i, r) {
1977
1977
  })) : c === "state" && o.playState === "running" && o.pause());
1978
1978
  };
1979
1979
  }
1980
- function ms(t, e, {
1980
+ function gs(t, e, {
1981
1981
  effectId: n,
1982
1982
  listContainer: s,
1983
1983
  listItemSelector: i,
@@ -1992,70 +1992,70 @@ function ms(t, e, {
1992
1992
  g ? e.toggleEffect(n, l, d) : (p && e.toggleEffect(n, f ? "add" : l, d), m && f && e.toggleEffect(n, "remove", d));
1993
1993
  };
1994
1994
  }
1995
- const ge = /* @__PURE__ */ new WeakMap();
1996
- function Le(t, e) {
1995
+ const ye = /* @__PURE__ */ new WeakMap();
1996
+ function Fe(t, e) {
1997
1997
  return (n) => {
1998
1998
  const s = n;
1999
1999
  t.contains(s.relatedTarget) || e(s);
2000
2000
  };
2001
2001
  }
2002
- function ps(t) {
2002
+ function vs(t) {
2003
2003
  return (e) => {
2004
2004
  const n = e;
2005
2005
  n.pointerType && t(n);
2006
2006
  };
2007
2007
  }
2008
- function gs(t) {
2008
+ function ys(t) {
2009
2009
  return (e) => {
2010
2010
  const n = e;
2011
2011
  n.code === "Space" ? (n.preventDefault(), t(n)) : n.code === "Enter" && t(n);
2012
2012
  };
2013
2013
  }
2014
- const vs = {
2015
- focusin: (t, e) => Le(t, e),
2016
- focusout: (t, e) => Le(t, e),
2017
- click: (t, e) => ps(e),
2018
- keydown: (t, e) => gs(e)
2014
+ const Es = {
2015
+ focusin: (t, e) => Fe(t, e),
2016
+ focusout: (t, e) => Fe(t, e),
2017
+ click: (t, e) => vs(e),
2018
+ keydown: (t, e) => ys(e)
2019
2019
  };
2020
- function ys(t, e, n) {
2021
- const s = vs[t];
2020
+ function ws(t, e, n) {
2021
+ const s = Es[t];
2022
2022
  return s ? s(e, n) : (i) => n(i);
2023
2023
  }
2024
- function Es(t) {
2024
+ function bs(t) {
2025
2025
  return typeof t == "object" && !Array.isArray(t) && ("enter" in t || "leave" in t);
2026
2026
  }
2027
- function ws(t) {
2027
+ function Ss(t) {
2028
2028
  if (typeof t == "string")
2029
2029
  return { toggle: [t] };
2030
2030
  if (Array.isArray(t))
2031
2031
  return { toggle: [...t] };
2032
- if (Es(t)) {
2032
+ if (bs(t)) {
2033
2033
  const e = t.enter ? [...t.enter] : [], n = t.leave ? [...t.leave] : [];
2034
2034
  return { enter: e, leave: n };
2035
2035
  }
2036
2036
  return {};
2037
2037
  }
2038
- function bs(t) {
2038
+ function Ts(t) {
2039
2039
  return !!(t.enter?.length || t.leave?.length);
2040
2040
  }
2041
- function Ss(t) {
2042
- return bs(t) ? { enter: t.enter ?? [], leave: t.leave ?? [] } : void 0;
2041
+ function Is(t) {
2042
+ return Ts(t) ? { enter: t.enter ?? [], leave: t.leave ?? [] } : void 0;
2043
2043
  }
2044
- function Ts(t, e, n, s, {
2044
+ function Os(t, e, n, s, {
2045
2045
  reducedMotion: i,
2046
2046
  targetController: r,
2047
2047
  selectorCondition: o,
2048
2048
  animation: a
2049
2049
  }) {
2050
- const c = ws(s.eventConfig), l = n.transition || n.transitionProperties, f = Ss(c);
2050
+ const c = Ss(s.eventConfig), l = n.transition || n.transitionProperties, f = Is(c);
2051
2051
  let u, d = !1;
2052
- if (l ? u = ms(
2052
+ if (l ? u = gs(
2053
2053
  e,
2054
2054
  r,
2055
2055
  n,
2056
2056
  o,
2057
2057
  f
2058
- ) : (u = hs(
2058
+ ) : (u = ps(
2059
2059
  e,
2060
2060
  n,
2061
2061
  i,
@@ -2066,13 +2066,13 @@ function Ts(t, e, n, s, {
2066
2066
  return;
2067
2067
  const g = u, p = new AbortController();
2068
2068
  function m(y, E, w) {
2069
- const S = ys(E, t, g);
2069
+ const S = ws(E, t, g);
2070
2070
  y.addEventListener(E, S, { ...w, signal: p.signal });
2071
2071
  }
2072
2072
  const v = { source: t, target: e, cleanup: () => {
2073
2073
  p.abort();
2074
2074
  } };
2075
- if (C(ge, t, v), C(ge, e, v), f) {
2075
+ if (C(ye, t, v), C(ye, e, v), f) {
2076
2076
  const y = c.enter, E = c.leave;
2077
2077
  y.forEach((T) => {
2078
2078
  T === "focusin" && (t.tabIndex = 0), m(t, T, { passive: !0, once: d });
@@ -2090,13 +2090,13 @@ function Ts(t, e, n, s, {
2090
2090
  m(t, E, { once: d, passive: E !== "keydown" });
2091
2091
  });
2092
2092
  }
2093
- function Is(t) {
2094
- B(ge, t);
2093
+ function As(t) {
2094
+ B(ye, t);
2095
2095
  }
2096
2096
  const j = {
2097
- add: Ts,
2098
- remove: Is
2099
- }, ve = {
2097
+ add: Os,
2098
+ remove: As
2099
+ }, Ee = {
2100
2100
  click: ["click"],
2101
2101
  activate: ["click", "keydown"],
2102
2102
  hover: { enter: ["mouseenter"], leave: ["mouseleave"] },
@@ -2104,19 +2104,19 @@ const j = {
2104
2104
  enter: ["mouseenter", "focusin"],
2105
2105
  leave: ["mouseleave", "focusout"]
2106
2106
  }
2107
- }, Re = {
2108
- click: ve.activate,
2109
- hover: ve.interest
2107
+ }, Ne = {
2108
+ click: Ee.activate,
2109
+ hover: Ee.interest
2110
2110
  };
2111
2111
  function Z(t) {
2112
- const e = ve[t];
2112
+ const e = Ee[t];
2113
2113
  return (n, s, i, r, o) => {
2114
- const a = o?.allowA11yTriggers && t in Re ? Re[t] : e;
2114
+ const a = o?.allowA11yTriggers && t in Ne ? Ne[t] : e;
2115
2115
  j.add(n, s, i, { eventConfig: a }, o ?? {});
2116
2116
  };
2117
2117
  }
2118
- const x = {
2119
- viewEnter: On,
2118
+ const F = {
2119
+ viewEnter: Cn,
2120
2120
  hover: {
2121
2121
  add: Z("hover"),
2122
2122
  remove: j.remove
@@ -2125,9 +2125,9 @@ const x = {
2125
2125
  add: Z("click"),
2126
2126
  remove: j.remove
2127
2127
  },
2128
- animationEnd: ds,
2129
- viewProgress: Vn,
2130
- pointerMove: fs,
2128
+ animationEnd: ms,
2129
+ viewProgress: Bn,
2130
+ pointerMove: us,
2131
2131
  activate: {
2132
2132
  add: Z("activate"),
2133
2133
  remove: j.remove
@@ -2137,7 +2137,7 @@ const x = {
2137
2137
  remove: j.remove
2138
2138
  }
2139
2139
  };
2140
- function Os(t) {
2140
+ function Cs(t) {
2141
2141
  return t.replace(/\[([-\w]+)]/g, "[]");
2142
2142
  }
2143
2143
  class b {
@@ -2160,7 +2160,7 @@ class b {
2160
2160
  if (typeof window > "u" || !window.customElements)
2161
2161
  return;
2162
2162
  const s = n?.useCustomElement ?? !!b.defineInteractElement;
2163
- this.dataCache = Cs(e, s);
2163
+ this.dataCache = $s(e, s);
2164
2164
  const i = b.defineInteractElement?.();
2165
2165
  s && i === !1 ? document.querySelectorAll("interact-element").forEach((r) => {
2166
2166
  r.connect();
@@ -2186,7 +2186,7 @@ class b {
2186
2186
  return !!this.get(e);
2187
2187
  }
2188
2188
  get(e) {
2189
- const n = Os(e);
2189
+ const n = Cs(e);
2190
2190
  return this.dataCache.interactions[n];
2191
2191
  }
2192
2192
  clearMediaQueryListenersForKey(e) {
@@ -2219,11 +2219,11 @@ class b {
2219
2219
  }), b.instances.length = 0, b.controllerCache.clear(), b.sequenceCache.clear(), b.elementSequenceMap = /* @__PURE__ */ new WeakMap();
2220
2220
  }
2221
2221
  static setup(e) {
2222
- e.scrollOptionsGetter && x.viewProgress.registerOptionsGetter?.(
2222
+ e.scrollOptionsGetter && F.viewProgress.registerOptionsGetter?.(
2223
2223
  e.scrollOptionsGetter
2224
- ), e.pointerOptionsGetter && x.pointerMove.registerOptionsGetter?.(
2224
+ ), e.pointerOptionsGetter && F.pointerMove.registerOptionsGetter?.(
2225
2225
  e.pointerOptionsGetter
2226
- ), e.viewEnter && x.viewEnter.setOptions(
2226
+ ), e.viewEnter && F.viewEnter.setOptions(
2227
2227
  e.viewEnter
2228
2228
  ), e.allowA11yTriggers !== void 0 && (b.allowA11yTriggers = e.allowA11yTriggers);
2229
2229
  }
@@ -2241,17 +2241,17 @@ class b {
2241
2241
  static deleteController(e) {
2242
2242
  b.controllerCache.delete(e);
2243
2243
  }
2244
- static registerEffects = Xt;
2244
+ static registerEffects = Jt;
2245
2245
  static getSequence(e, n, s, i) {
2246
2246
  const r = b.sequenceCache.get(e);
2247
2247
  if (r) return r;
2248
- const o = fn(n, s, i);
2248
+ const o = un(n, s, i);
2249
2249
  return b.sequenceCache.set(e, o), b._registerSequenceElements(s, o), o;
2250
2250
  }
2251
2251
  static addToSequence(e, n, s, i) {
2252
2252
  const r = b.sequenceCache.get(e);
2253
2253
  if (!r) return !1;
2254
- const a = Ke(n, i).map((c, l) => ({
2254
+ const a = Ue(n, i).map((c, l) => ({
2255
2255
  index: s[l] ?? r.animationGroups.length,
2256
2256
  group: c
2257
2257
  }));
@@ -2279,7 +2279,7 @@ class b {
2279
2279
  }
2280
2280
  }
2281
2281
  }
2282
- let As = 0;
2282
+ let ks = 0;
2283
2283
  function P(t, {
2284
2284
  asCombinator: e = !1,
2285
2285
  addItemFilter: n = !1,
@@ -2292,10 +2292,10 @@ function P(t, {
2292
2292
  return t.selector;
2293
2293
  return s ? e ? "> :first-child" : ":scope > :first-child" : "";
2294
2294
  }
2295
- function Fe(t) {
2295
+ function ze(t) {
2296
2296
  return "sequenceId" in t && !("effects" in t);
2297
2297
  }
2298
- function le(t, e) {
2298
+ function de(t, e) {
2299
2299
  return t[e] || (t[e] = {
2300
2300
  triggers: [],
2301
2301
  effects: {},
@@ -2304,19 +2304,19 @@ function le(t, e) {
2304
2304
  selectors: /* @__PURE__ */ new Set()
2305
2305
  }), t[e];
2306
2306
  }
2307
- function Cs(t, e = !1) {
2307
+ function $s(t, e = !1) {
2308
2308
  const { effects: n = {}, sequences: s = {}, conditions: i = {} } = t, r = {};
2309
2309
  return t.interactions?.forEach((o) => {
2310
- const a = o.key, c = ++As, { effects: l, sequences: f, ...u } = o;
2310
+ const a = o.key, c = ++ks, { effects: l, sequences: f, ...u } = o;
2311
2311
  if (!a) {
2312
2312
  console.error(`Interaction ${c} is missing a key for source element.`);
2313
2313
  return;
2314
2314
  }
2315
- le(r, a);
2315
+ de(r, a);
2316
2316
  const d = l ? Array.from(l) : [];
2317
2317
  d.reverse();
2318
2318
  const g = f?.map((h) => {
2319
- if (Fe(h)) {
2319
+ if (ze(h)) {
2320
2320
  const y = s[h.sequenceId];
2321
2321
  return y ? { ...y, ...h } : (console.warn(`Interact: Sequence "${h.sequenceId}" not found in config`), h);
2322
2322
  }
@@ -2344,10 +2344,10 @@ function Cs(t, e = !1) {
2344
2344
  const E = `${a}::${v}::${y}::${c}`;
2345
2345
  if (h.interactionId = E, r[a].interactionIds.add(E), v === a)
2346
2346
  return;
2347
- const w = le(r, v);
2347
+ const w = de(r, v);
2348
2348
  w.effects[E] || (w.effects[E] = [], w.interactionIds.add(E)), w.effects[E].push({ ...u, effect: h }), w.selectors.add(P(h, { useFirstChild: e }));
2349
2349
  }), g?.forEach((h) => {
2350
- if (!h || Fe(h)) return;
2350
+ if (!h || ze(h)) return;
2351
2351
  const v = h, y = v.sequenceId || k(), E = v.effects;
2352
2352
  for (const w of E) {
2353
2353
  w.effectId || (w.effectId = k());
@@ -2359,7 +2359,7 @@ function Cs(t, e = !1) {
2359
2359
  S = S || a;
2360
2360
  const T = P(w, { useFirstChild: e });
2361
2361
  if (T && r[a].selectors.add(T), S !== a) {
2362
- const I = le(r, S), A = `${S}::seq::${y}::${c}`;
2362
+ const I = de(r, S), A = `${S}::seq::${y}::${c}`;
2363
2363
  I.sequences[A] || (I.sequences[A] = [], I.interactionIds.add(A)), I.sequences[A].push({
2364
2364
  ...u,
2365
2365
  sequence: v
@@ -2374,7 +2374,7 @@ function Cs(t, e = !1) {
2374
2374
  interactions: r
2375
2375
  };
2376
2376
  }
2377
- function ye(t, e, n) {
2377
+ function ae(t, e, n) {
2378
2378
  if (t.listContainer) {
2379
2379
  const s = e.querySelector(t.listContainer);
2380
2380
  return s ? t.selector ? Array.from(s.querySelectorAll(t.selector)) : Array.from(s.children) : (console.warn(`Interact: No container found for list container "${t.listContainer}"`), []);
@@ -2387,20 +2387,20 @@ function ye(t, e, n) {
2387
2387
  }
2388
2388
  return n ? e.firstElementChild : e;
2389
2389
  }
2390
- function Ee(t, e) {
2390
+ function ce(t, e) {
2391
2391
  return e.map((n) => t.selector ? n.querySelector(t.selector) : n).filter(Boolean);
2392
2392
  }
2393
- function nt(t, e, n, s, i, r, o, a) {
2393
+ function it(t, e, n, s, i, r, o, a) {
2394
2394
  return [
2395
- o ? Ee(t, o) : ye(t, n, s),
2396
- a ? Ee(e, a) : ye(e, i, r)
2395
+ o ? ce(t, o) : ae(t, n, s),
2396
+ a ? ce(e, a) : ae(e, i, r)
2397
2397
  ];
2398
2398
  }
2399
- function st(t, e, n, s, i, r, o, a) {
2399
+ function rt(t, e, n, s, i, r, o, a) {
2400
2400
  const c = Array.isArray(s), l = Array.isArray(i);
2401
2401
  c ? s.forEach((f, u) => {
2402
2402
  const d = l ? i[u] : i;
2403
- d && Ne(
2403
+ d && He(
2404
2404
  t,
2405
2405
  f,
2406
2406
  e.trigger,
@@ -2412,7 +2412,7 @@ function st(t, e, n, s, i, r, o, a) {
2412
2412
  a
2413
2413
  );
2414
2414
  }) : (l ? i : [i]).forEach((u) => {
2415
- Ne(
2415
+ He(
2416
2416
  t,
2417
2417
  s,
2418
2418
  e.trigger,
@@ -2425,7 +2425,7 @@ function st(t, e, n, s, i, r, o, a) {
2425
2425
  );
2426
2426
  });
2427
2427
  }
2428
- function it(t, e, n, s, i) {
2428
+ function ot(t, e, n, s, i) {
2429
2429
  const r = {}, o = [];
2430
2430
  (s.effects || []).forEach((a) => {
2431
2431
  const c = a.effectId, l = {
@@ -2448,7 +2448,7 @@ function it(t, e, n, s, i) {
2448
2448
  l.listContainer && p.watchChildList(l.listContainer);
2449
2449
  } else
2450
2450
  p = e;
2451
- const [m, h] = nt(
2451
+ const [m, h] = it(
2452
2452
  s,
2453
2453
  l,
2454
2454
  e.element,
@@ -2460,7 +2460,7 @@ function it(t, e, n, s, i) {
2460
2460
  if (!m || !h)
2461
2461
  return;
2462
2462
  n.addedInteractions[u] = !0;
2463
- const v = g || s.key, y = L(
2463
+ const v = g || s.key, y = q(
2464
2464
  l.conditions || [],
2465
2465
  n.dataCache.conditions
2466
2466
  );
@@ -2476,13 +2476,13 @@ function it(t, e, n, s, i) {
2476
2476
  ]);
2477
2477
  }
2478
2478
  }), o.reverse().forEach((a) => {
2479
- st(...a);
2480
- }), $s(t, e, n, s, i);
2479
+ rt(...a);
2480
+ }), qs(t, e, n, s, i);
2481
2481
  }
2482
- function ks(t) {
2482
+ function _s(t) {
2483
2483
  return "sequenceId" in t && !("effects" in t);
2484
2484
  }
2485
- function rt(t, e, n, s, i, r, o) {
2485
+ function at(t, e, n, s, i, r, o) {
2486
2486
  const a = _(t.conditions || [], i.dataCache.conditions);
2487
2487
  if (a && i.setupMediaQueryListener(e, a, r.updateKey, r.onUpdate), a && !a.matches) return null;
2488
2488
  const c = t.effects || [], l = [];
@@ -2510,17 +2510,37 @@ function rt(t, e, n, s, i, r, o) {
2510
2510
  y = s;
2511
2511
  const E = v || n;
2512
2512
  let w;
2513
- if (o && E === o.controllerKey && p.listContainer === o.listContainer ? (w = Ee(p, o.elements), w.length > 0 && (f = !0)) : w = ye(
2513
+ if (o && E === o.controllerKey && p.listContainer === o.listContainer ? (w = ce(p, o.elements), w.length > 0 && (f = !0)) : w = ae(
2514
2514
  p,
2515
2515
  y.element,
2516
2516
  y.useFirstChild
2517
2517
  ), !w || Array.isArray(w) && w.length === 0) return null;
2518
- const S = q(p);
2518
+ const S = M(p);
2519
2519
  l.push({ target: w, options: S });
2520
2520
  }
2521
2521
  return o && !f ? null : l.length > 0 ? l : null;
2522
2522
  }
2523
- function ot(t, e, n) {
2523
+ function we(t, e, n) {
2524
+ const s = n ? ce(t, n) : ae(t, e.element, e.useFirstChild);
2525
+ return Array.isArray(s) && s.length === 0 ? null : s;
2526
+ }
2527
+ function be(t, e, n, s, i) {
2528
+ (Array.isArray(n) ? n : [n]).forEach((o) => {
2529
+ F[t.trigger]?.add(
2530
+ o,
2531
+ o,
2532
+ { triggerType: e.triggerType },
2533
+ t.params || {},
2534
+ {
2535
+ reducedMotion: b.forceReducedMotion,
2536
+ selectorCondition: i,
2537
+ animation: s,
2538
+ allowA11yTriggers: b.allowA11yTriggers
2539
+ }
2540
+ );
2541
+ });
2542
+ }
2543
+ function ct(t, e, n) {
2524
2544
  const r = (t.useFirstChild ? t.element.firstElementChild : t.element)?.querySelector(e);
2525
2545
  if (!r) return n.map((a, c) => c);
2526
2546
  const o = Array.from(r.children);
@@ -2529,21 +2549,21 @@ function ot(t, e, n) {
2529
2549
  return c >= 0 ? c : o.length;
2530
2550
  });
2531
2551
  }
2532
- function $s(t, e, n, s, i) {
2552
+ function qs(t, e, n, s, i) {
2533
2553
  s.sequences?.forEach((r) => {
2534
2554
  let o;
2535
- if (ks(r)) {
2536
- const g = n.dataCache.sequences[r.sequenceId];
2537
- if (!g) {
2555
+ if (_s(r)) {
2556
+ const p = n.dataCache.sequences[r.sequenceId];
2557
+ if (!p) {
2538
2558
  console.warn(`Interact: Sequence "${r.sequenceId}" not found in cache`);
2539
2559
  return;
2540
2560
  }
2541
- o = { ...g, ...r };
2561
+ o = { ...p, ...r };
2542
2562
  } else
2543
2563
  o = r;
2544
2564
  const a = o.sequenceId || k(), c = $(`${t}::seq::${a}`, t);
2545
2565
  if (n.addedInteractions[c] && !i) return;
2546
- const l = i && s.listContainer ? { controllerKey: t, listContainer: s.listContainer, elements: i } : void 0, f = rt(
2566
+ const l = i && s.listContainer ? { controllerKey: t, listContainer: s.listContainer, elements: i } : void 0, f = at(
2547
2567
  o,
2548
2568
  c,
2549
2569
  t,
@@ -2554,39 +2574,45 @@ function $s(t, e, n, s, i) {
2554
2574
  );
2555
2575
  if (!f) return;
2556
2576
  if (i && n.addedInteractions[c]) {
2557
- const g = ot(
2577
+ const p = ct(
2558
2578
  e,
2559
2579
  s.listContainer,
2560
2580
  i
2561
2581
  );
2562
- b.addToSequence(c, f, g, {
2582
+ b.addToSequence(c, f, p, {
2563
2583
  reducedMotion: b.forceReducedMotion
2564
2584
  });
2585
+ const m = b.getSequence(c, o, f, {
2586
+ reducedMotion: b.forceReducedMotion
2587
+ }), h = q(
2588
+ s.conditions || [],
2589
+ n.dataCache.conditions
2590
+ ), v = we(s, e, i);
2591
+ v && be(
2592
+ s,
2593
+ o,
2594
+ v,
2595
+ m,
2596
+ h
2597
+ );
2565
2598
  return;
2566
2599
  }
2567
2600
  const u = b.getSequence(c, o, f, {
2568
2601
  reducedMotion: b.forceReducedMotion
2569
- });
2570
- n.addedInteractions[c] = !0;
2571
- const d = L(
2602
+ }), d = q(
2572
2603
  s.conditions || [],
2573
2604
  n.dataCache.conditions
2574
- );
2575
- x[s.trigger]?.add(
2576
- e.element,
2577
- e.element,
2578
- { triggerType: o.triggerType },
2579
- s.params || {},
2580
- {
2581
- reducedMotion: b.forceReducedMotion,
2582
- selectorCondition: d,
2583
- animation: u,
2584
- allowA11yTriggers: b.allowA11yTriggers
2585
- }
2586
- );
2605
+ ), g = we(s, e, i);
2606
+ g && (n.addedInteractions[c] = !0, be(
2607
+ s,
2608
+ o,
2609
+ g,
2610
+ u,
2611
+ d
2612
+ ));
2587
2613
  });
2588
2614
  }
2589
- function _s(t, e, n, s, i) {
2615
+ function Ms(t, e, n, s, i) {
2590
2616
  const r = n.get(t)?.sequences || {};
2591
2617
  Object.keys(r).forEach((a) => {
2592
2618
  r[a].some(({ sequence: l, ...f }) => {
@@ -2602,7 +2628,7 @@ function _s(t, e, n, s, i) {
2602
2628
  const p = l.sequenceId || k(), m = $(`${d}::seq::${p}`, d);
2603
2629
  if (n.addedInteractions[m] && !i)
2604
2630
  return !0;
2605
- const v = rt(
2631
+ const v = at(
2606
2632
  l,
2607
2633
  m,
2608
2634
  d,
@@ -2613,35 +2639,28 @@ function _s(t, e, n, s, i) {
2613
2639
  );
2614
2640
  if (!v) return !0;
2615
2641
  if (i && n.addedInteractions[m]) {
2616
- const w = ot(e, s, i);
2617
- return b.addToSequence(m, v, w, {
2642
+ const S = ct(e, s, i);
2643
+ return b.addToSequence(m, v, S, {
2618
2644
  reducedMotion: b.forceReducedMotion
2619
2645
  }), !0;
2620
2646
  }
2621
2647
  const y = b.getSequence(m, l, v, {
2622
2648
  reducedMotion: b.forceReducedMotion
2623
- });
2624
- n.addedInteractions[m] = !0;
2625
- const E = L(
2649
+ }), E = q(
2626
2650
  f.conditions || [],
2627
2651
  n.dataCache.conditions
2628
- );
2629
- return x[f.trigger]?.add(
2630
- g.element,
2631
- g.element,
2632
- { triggerType: l.triggerType },
2633
- f.params || {},
2634
- {
2635
- reducedMotion: b.forceReducedMotion,
2636
- selectorCondition: E,
2637
- animation: y,
2638
- allowA11yTriggers: b.allowA11yTriggers
2639
- }
2640
- ), !0;
2652
+ ), w = we(f, g);
2653
+ return w && (n.addedInteractions[m] = !0, be(
2654
+ f,
2655
+ l,
2656
+ w,
2657
+ y,
2658
+ E
2659
+ )), !0;
2641
2660
  });
2642
2661
  });
2643
2662
  }
2644
- function at(t, e, n, s, i) {
2663
+ function ft(t, e, n, s, i) {
2645
2664
  const r = n.get(t), o = r?.effects || {}, a = Object.keys(o), c = [];
2646
2665
  a.forEach((f) => {
2647
2666
  const u = $(f, t);
@@ -2669,7 +2688,7 @@ function at(t, e, n, s, i) {
2669
2688
  if (!w)
2670
2689
  return !0;
2671
2690
  v.listContainer && e.watchChildList(v.listContainer);
2672
- const [S, T] = nt(
2691
+ const [S, T] = it(
2673
2692
  p,
2674
2693
  v,
2675
2694
  w.element,
@@ -2682,7 +2701,7 @@ function at(t, e, n, s, i) {
2682
2701
  if (!S || !T)
2683
2702
  return !0;
2684
2703
  n.addedInteractions[u] = !0;
2685
- const I = L(
2704
+ const I = q(
2686
2705
  v.conditions || [],
2687
2706
  n.dataCache.conditions
2688
2707
  );
@@ -2700,12 +2719,12 @@ function at(t, e, n, s, i) {
2700
2719
  return !1;
2701
2720
  });
2702
2721
  }), c.reverse().forEach((f) => {
2703
- st(...f);
2704
- }), _s(t, e, n, s, i);
2722
+ rt(...f);
2723
+ }), Ms(t, e, n, s, i);
2705
2724
  const l = Object.keys(r?.sequences || {}).length > 0;
2706
2725
  return a.length > 0 || l;
2707
2726
  }
2708
- function Ne(t, e, n, s, i, r, o, a, c) {
2727
+ function He(t, e, n, s, i, r, o, a, c) {
2709
2728
  let l;
2710
2729
  if (i.transition || i.transitionProperties) {
2711
2730
  const u = {
@@ -2722,14 +2741,14 @@ function Ne(t, e, n, s, i, r, o, a, c) {
2722
2741
  };
2723
2742
  if (l = b.getController(t), !l)
2724
2743
  return;
2725
- l.renderStyle(pn(u));
2744
+ l.renderStyle(vn(u));
2726
2745
  }
2727
2746
  let f;
2728
2747
  if (n === "animationEnd") {
2729
2748
  const u = r.effectId, g = (c ? b.getInstance(c) : void 0)?.dataCache.effects[u];
2730
- g && (f = q(g));
2749
+ g && (f = M(g));
2731
2750
  }
2732
- x[n]?.add(e, s, i, r, {
2751
+ F[n]?.add(e, s, i, r, {
2733
2752
  reducedMotion: b.forceReducedMotion,
2734
2753
  targetController: l,
2735
2754
  selectorCondition: o,
@@ -2737,7 +2756,7 @@ function Ne(t, e, n, s, i, r, o, a, c) {
2737
2756
  sourceAnimationOptions: f
2738
2757
  });
2739
2758
  }
2740
- function qs(t) {
2759
+ function xs(t) {
2741
2760
  const e = t.key, n = b.getInstance(e);
2742
2761
  if (!n)
2743
2762
  return console.warn(`No instance found for key: ${e}`), b.setController(e, t), !1;
@@ -2750,12 +2769,12 @@ function qs(t) {
2750
2769
  t.update();
2751
2770
  });
2752
2771
  }
2753
- (!c || c.matches) && (o.listContainer && t.watchChildList(o.listContainer), it(e, t, n, o));
2772
+ (!c || c.matches) && (o.listContainer && t.watchChildList(o.listContainer), ot(e, t, n, o));
2754
2773
  });
2755
2774
  let r = !1;
2756
- return n && (r = at(e, t, n)), i || r;
2775
+ return n && (r = ft(e, t, n)), i || r;
2757
2776
  }
2758
- function Ms(t, e, n) {
2777
+ function Ps(t, e, n) {
2759
2778
  const s = t.key, i = b.getInstance(s);
2760
2779
  if (i) {
2761
2780
  const { triggers: r = [] } = i?.get(s) || {};
@@ -2769,27 +2788,27 @@ function Ms(t, e, n) {
2769
2788
  t.update();
2770
2789
  });
2771
2790
  }
2772
- (!c || c.matches) && it(s, t, i, o, n);
2773
- }), at(s, t, i, e, n);
2791
+ (!c || c.matches) && ot(s, t, i, o, n);
2792
+ }), ft(s, t, i, e, n);
2774
2793
  }
2775
2794
  }
2776
- function xs(t, e = !1) {
2795
+ function Ls(t, e = !1) {
2777
2796
  const n = t.key, s = b.getInstance(n);
2778
2797
  if (!s)
2779
2798
  return;
2780
2799
  const i = [...s.get(n)?.selectors.values() || []].filter(Boolean).join(",");
2781
2800
  let r;
2782
- i ? (r = [...t.element.querySelectorAll(i)], t.useFirstChild || r.push(t.element)) : r = [t.element], ct(r), s.deleteController(n, e);
2801
+ i ? (r = [...t.element.querySelectorAll(i)], t.useFirstChild || r.push(t.element)) : r = [t.element], lt(r), s.deleteController(n, e);
2783
2802
  }
2784
- function ct(t) {
2785
- const e = Object.values(x);
2803
+ function lt(t) {
2804
+ const e = Object.values(F);
2786
2805
  for (const n of t)
2787
2806
  for (const s of e)
2788
2807
  s.remove(n);
2789
2808
  b.removeFromSequences(t);
2790
2809
  }
2791
- const ue = "interactEffect";
2792
- class Ps {
2810
+ const he = "interactEffect";
2811
+ class Rs {
2793
2812
  element;
2794
2813
  key;
2795
2814
  connected;
@@ -2809,10 +2828,10 @@ class Ps {
2809
2828
  }
2810
2829
  n !== e && (n && console.warn(
2811
2830
  `Interact: Key mismatch between element ${n} and parameter ${e}, updating element key`
2812
- ), this.element.dataset.interactKey = e), this.key = e, this.connected = qs(this);
2831
+ ), this.element.dataset.interactKey = e), this.key = e, this.connected = xs(this);
2813
2832
  }
2814
2833
  disconnect({ removeFromCache: e = !1 } = {}) {
2815
- if ((this.key || this.element.dataset.interactKey) && xs(this, e), this.sheet) {
2834
+ if ((this.key || this.element.dataset.interactKey) && Ls(this, e), this.sheet) {
2816
2835
  const s = this.element?.getRootNode(), i = s.host ? s : document;
2817
2836
  i.adoptedStyleSheets.indexOf(this.sheet) !== -1 && (i.adoptedStyleSheets = i.adoptedStyleSheets.filter(
2818
2837
  (o) => o !== this.sheet
@@ -2846,12 +2865,12 @@ class Ps {
2846
2865
  return;
2847
2866
  }
2848
2867
  const r = new Set(
2849
- this.element.dataset[ue]?.split(" ") || []
2868
+ this.element.dataset[he]?.split(" ") || []
2850
2869
  );
2851
- n === "toggle" ? r.has(e) ? r.delete(e) : r.add(e) : n === "add" ? r.add(e) : n === "remove" ? r.delete(e) : n === "clear" && r.clear(), (s || this.element).dataset[ue] = Array.from(r).join(" ");
2870
+ n === "toggle" ? r.has(e) ? r.delete(e) : r.add(e) : n === "add" ? r.add(e) : n === "remove" ? r.delete(e) : n === "clear" && r.clear(), (s || this.element).dataset[he] = Array.from(r).join(" ");
2852
2871
  }
2853
2872
  getActiveEffects() {
2854
- const n = (this.element.dataset[ue] || "").trim();
2873
+ const n = (this.element.dataset[he] || "").trim();
2855
2874
  return n ? n.split(/\s+/) : [];
2856
2875
  }
2857
2876
  watchChildList(e) {
@@ -2869,17 +2888,17 @@ class Ps {
2869
2888
  }), o.addedNodes.forEach((a) => {
2870
2889
  a instanceof HTMLElement && r.push(a);
2871
2890
  });
2872
- }), ct(i), s && Ms(this, e, r);
2891
+ }), lt(i), s && Ps(this, e, r);
2873
2892
  }
2874
2893
  }
2875
- function Us(t, e) {
2876
- new Ps(t, e).connect();
2894
+ function Zs(t, e) {
2895
+ new Rs(t, e).connect();
2877
2896
  }
2878
- function Xs(t) {
2897
+ function Js(t) {
2879
2898
  const e = b.getController(t);
2880
2899
  e && e.disconnect({ removeFromCache: !0 });
2881
2900
  }
2882
- const ft = /* @__PURE__ */ new Map([
2901
+ const ut = /* @__PURE__ */ new Map([
2883
2902
  ["viewEnter", "once"],
2884
2903
  ["animationEnd", "once"],
2885
2904
  ["hover", "alternate"],
@@ -2887,7 +2906,7 @@ const ft = /* @__PURE__ */ new Map([
2887
2906
  ["activate", "alternate"],
2888
2907
  ["interest", "alternate"]
2889
2908
  ]);
2890
- function lt(t, e, n) {
2909
+ function dt(t, e, n) {
2891
2910
  const { effects: s = {}, conditions: i = {} } = n, { key: r, trigger: o } = e, a = o === "pointerMove";
2892
2911
  t.effectId || (t.effectId = k());
2893
2912
  const { effectId: c } = t, l = { ...s[c] || {}, ...t };
@@ -2897,18 +2916,18 @@ function lt(t, e, n) {
2897
2916
  return null;
2898
2917
  f = r;
2899
2918
  }
2900
- if (un(f))
2919
+ if (hn(f))
2901
2920
  return null;
2902
2921
  u = [
2903
2922
  ...new Set((u || []).filter((w) => i[w]))
2904
- ], d || (d = ft.get(o));
2923
+ ], d || (d = ut.get(o));
2905
2924
  const { namedEffect: g, customEffect: p, keyframeEffect: m, transition: h, transitionProperties: v, ...y } = {
2906
2925
  ...l,
2907
2926
  key: f,
2908
2927
  conditions: u,
2909
2928
  effectId: c,
2910
2929
  triggerType: d
2911
- }, E = vt(e, y);
2930
+ }, E = Et(e, y);
2912
2931
  if (g)
2913
2932
  return a || !g.type ? null : { namedEffect: g, initial: E, ...y };
2914
2933
  if (m) {
@@ -2919,7 +2938,7 @@ function lt(t, e, n) {
2919
2938
  return { keyframeEffect: m, initial: E, ...y };
2920
2939
  } else return p ? a ? null : { initial: E, ...y } : h ? { transition: h, initial: E, ...y } : v ? { transitionProperties: v, initial: E, ...y } : { initial: E, ...y };
2921
2940
  }
2922
- function Ls(t, e, n) {
2941
+ function Fs(t, e, n) {
2923
2942
  const { sequences: s = {}, conditions: i = {} } = n;
2924
2943
  t.sequenceId || (t.sequenceId = k());
2925
2944
  const { sequenceId: r } = t, o = { ...s[r] || {}, ...t };
@@ -2931,11 +2950,11 @@ function Ls(t, e, n) {
2931
2950
  offset: u = 0,
2932
2951
  offsetEasing: d = "linear"
2933
2952
  } = o;
2934
- l || (l = ft.get(e.trigger)), c = [
2953
+ l || (l = ut.get(e.trigger)), c = [
2935
2954
  ...new Set((c || []).filter((m) => i[m]))
2936
2955
  ];
2937
- const g = a.map((m) => (m.conditions ? m.conditions.push(...c) : m.conditions = [...c], lt({ ...m, triggerType: l }, e, n)));
2938
- typeof d != "function" && (d = be(d) || ((m) => m)), mn(g, f, u, d);
2956
+ const g = a.map((m) => (m.conditions ? m.conditions.push(...c) : m.conditions = [...c], dt({ ...m, triggerType: l }, e, n)));
2957
+ typeof d != "function" && (d = Te(d) || ((m) => m)), gn(g, f, u, d);
2939
2958
  const p = g.filter((m) => m !== null);
2940
2959
  return p.length ? {
2941
2960
  sequenceId: r,
@@ -2947,10 +2966,10 @@ function Ls(t, e, n) {
2947
2966
  effects: p
2948
2967
  } : null;
2949
2968
  }
2950
- function Rs(t) {
2969
+ function Ns(t) {
2951
2970
  return t === "cssFloat" ? "float" : t === "easing" ? "animation-timing-function" : t === "cssOffset" ? "offset" : t === "composite" ? "animation-composition" : t.replace(/([A-Z])/g, "-$1").toLowerCase();
2952
2971
  }
2953
- function Fs(t) {
2972
+ function zs(t) {
2954
2973
  if (!t.length)
2955
2974
  return [];
2956
2975
  const e = t.map((i) => ({ ...i }));
@@ -2972,27 +2991,27 @@ function Fs(t) {
2972
2991
  }
2973
2992
  return e;
2974
2993
  }
2975
- function Ns(t, e) {
2976
- const n = Object.entries(t).filter(([s, i]) => s !== "offset" && i !== void 0 && i !== null).map(([s, i]) => `${Rs(s)}: ${i};`).join(`
2994
+ function Hs(t, e) {
2995
+ const n = Object.entries(t).filter(([s, i]) => s !== "offset" && i !== void 0 && i !== null).map(([s, i]) => `${Ns(s)}: ${i};`).join(`
2977
2996
  `);
2978
2997
  return `${e}% {
2979
2998
  ${n}
2980
2999
  }`;
2981
3000
  }
2982
- function zs(t, e) {
2983
- const n = Fs(e);
3001
+ function js(t, e) {
3002
+ const n = zs(e);
2984
3003
  if (!n.length)
2985
3004
  return "";
2986
3005
  let s = n.map((i) => {
2987
- const r = i.offset, o = ln(r * 100);
2988
- return Ns(i, o);
3006
+ const r = i.offset, o = dn(r * 100);
3007
+ return Hs(i, o);
2989
3008
  }).join(`
2990
3009
  `);
2991
3010
  return `@keyframes ${t} {
2992
3011
  ${s}
2993
3012
  }`;
2994
3013
  }
2995
- function Hs(t) {
3014
+ function Ds(t) {
2996
3015
  const {
2997
3016
  key: e,
2998
3017
  childSelector: n,
@@ -3010,7 +3029,7 @@ function Hs(t) {
3010
3029
  c = `${c}:is(${u})`;
3011
3030
  }
3012
3031
  n && (c = `${c} ${n}`), a && (c = `${c}${a}`), o && (c = te(c, o));
3013
- const l = s.map(({ name: u, value: d }) => `${u}: ${d};`).join(`
3032
+ const l = s.map(({ name: u, value: d, important: g }) => `${u}: ${d}${g ? " !important" : ""};`).join(`
3014
3033
  `), f = `${c} {
3015
3034
  ${l}
3016
3035
  }`;
@@ -3018,7 +3037,7 @@ ${l}
3018
3037
  ${f}
3019
3038
  }` : f;
3020
3039
  }
3021
- function ut(t, e, n, s) {
3040
+ function ht(t, e, n, s) {
3022
3041
  const { key: i, childSelector: r, properties: o } = t, a = Object.entries(o).filter(
3023
3042
  (l) => l[1] && l[1].varNames.length
3024
3043
  ).map(([l, { fallback: f, varNames: u }]) => ({
@@ -3027,20 +3046,20 @@ function ut(t, e, n, s) {
3027
3046
  })), c = { key: i, childSelector: r, declarations: a };
3028
3047
  return e && c.declarations.forEach((l) => {
3029
3048
  l.name = e[l.name];
3030
- }), n && (c.media = ae(n, s || {}, "media"), c.selectorCondition = L(n, s || {})), c;
3049
+ }), n && (c.media = fe(n, s || {}, "media"), c.selectorCondition = q(n, s || {})), c;
3031
3050
  }
3032
- const js = [
3051
+ const Gs = [
3033
3052
  { name: "visibility", value: "hidden" },
3034
- { name: "transform", value: "none" },
3035
- { name: "translate", value: "none" },
3036
- { name: "scale", value: "none" },
3037
- { name: "rotate", value: "none" }
3053
+ { name: "transform", value: "none", important: !0 },
3054
+ { name: "translate", value: "none", important: !0 },
3055
+ { name: "scale", value: "none", important: !0 },
3056
+ { name: "rotate", value: "none", important: !0 }
3038
3057
  ], se = [
3039
3058
  "animation",
3040
3059
  "animation-composition",
3041
3060
  "animation-timeline",
3042
3061
  "animation-range"
3043
- ], we = ["transition", ...se], Ds = {
3062
+ ], Se = ["transition", ...se], Ws = {
3044
3063
  animation: "animation",
3045
3064
  "animation-composition": "composition",
3046
3065
  "animation-timeline": "animationTimeline",
@@ -3052,35 +3071,35 @@ const js = [
3052
3071
  "animation-timeline": "auto",
3053
3072
  "animation-range": "normal"
3054
3073
  };
3055
- function dt(t, e, n) {
3074
+ function mt(t, e, n) {
3056
3075
  const s = t.get(e);
3057
3076
  s ? n.forEach((i) => s.add(i)) : t.set(e, new Set(n));
3058
3077
  }
3059
- function ht(t, e, n, s) {
3060
- const { key: i, childSelector: r } = n, o = s ? we.filter((c) => s.has(c)) : we;
3078
+ function pt(t, e, n, s) {
3079
+ const { key: i, childSelector: r } = n, o = s ? Se.filter((c) => s.has(c)) : Se;
3061
3080
  t.has(e) || t.set(e, { key: i, childSelector: r, properties: {} });
3062
3081
  const { properties: a } = t.get(e);
3063
3082
  for (const c of o)
3064
3083
  a[c] || (a[c] = { fallback: ie[c], varNames: [] }), a[c].varNames.push(n[c]);
3065
3084
  }
3066
- function mt(t, e) {
3067
- return we.reduce(
3068
- (n, s) => (n[s] = dn([s, ...t, e]), n),
3085
+ function gt(t, e) {
3086
+ return Se.reduce(
3087
+ (n, s) => (n[s] = mn([s, ...t, e]), n),
3069
3088
  {}
3070
3089
  );
3071
3090
  }
3072
- function Gs(t, e, n, s, i) {
3091
+ function Vs(t, e, n, s, i) {
3073
3092
  return s.has(t) || s.set(t, {
3074
3093
  key: e,
3075
3094
  childSelector: i,
3076
- ...mt([n], ze(t))
3095
+ ...gt([n], je(t))
3077
3096
  }), s.get(t);
3078
3097
  }
3079
- function Ws(t, e, n) {
3080
- return mt([e, n], ze(t));
3098
+ function Ys(t, e, n) {
3099
+ return gt([e, n], je(t));
3081
3100
  }
3082
- function Vs(t, e, n, s = !0) {
3083
- const { key: i, conditions: r } = t, o = ae(r, e, "media"), a = L(r, e), c = P(t, {
3101
+ function Bs(t, e, n, s = !0) {
3102
+ const { key: i, conditions: r } = t, o = fe(r, e, "media"), a = q(r, e), c = P(t, {
3084
3103
  asCombinator: !0,
3085
3104
  useFirstChild: s,
3086
3105
  addItemFilter: !0
@@ -3100,7 +3119,7 @@ function Vs(t, e, n, s = !0) {
3100
3119
  ]
3101
3120
  };
3102
3121
  }
3103
- function Ys(t, e, n, s, i) {
3122
+ function Ks(t, e, n, s, i) {
3104
3123
  const {
3105
3124
  key: r,
3106
3125
  effectId: o,
@@ -3110,7 +3129,7 @@ function Ys(t, e, n, s, i) {
3110
3129
  transition: f,
3111
3130
  transitionProperties: u,
3112
3131
  initial: d
3113
- } = t, g = ae(a, e, "media"), p = L(a, e), m = [
3132
+ } = t, g = fe(a, e, "media"), p = q(a, e), m = [
3114
3133
  {
3115
3134
  key: r,
3116
3135
  media: g,
@@ -3124,7 +3143,7 @@ function Ys(t, e, n, s, i) {
3124
3143
  let y = [];
3125
3144
  if (c || l) {
3126
3145
  y = [...se];
3127
- const E = q(t), w = rn(null, E, s).filter(
3146
+ const E = M(t), w = an(null, E, s).filter(
3128
3147
  (T) => T.name
3129
3148
  );
3130
3149
  h = w.map((T) => ({
@@ -3138,7 +3157,7 @@ function Ys(t, e, n, s, i) {
3138
3157
  const S = se.map((T) => ({
3139
3158
  name: n[T],
3140
3159
  value: w.map((I) => {
3141
- const A = Ds[T];
3160
+ const A = Ws[T];
3142
3161
  return I[A];
3143
3162
  }).join(", ") || ie[T]
3144
3163
  }));
@@ -3147,7 +3166,7 @@ function Ys(t, e, n, s, i) {
3147
3166
  media: g,
3148
3167
  selectorCondition: p,
3149
3168
  childSelector: i,
3150
- declarations: js,
3169
+ declarations: Gs,
3151
3170
  dataInteractEnterSelector: ":not([data-interact-enter])"
3152
3171
  }), m.push({
3153
3172
  key: r,
@@ -3159,7 +3178,7 @@ function Ys(t, e, n, s, i) {
3159
3178
  })) : v.push(...S);
3160
3179
  } else if (f || u) {
3161
3180
  y = ["transition"];
3162
- const E = f?.styleProperties || u || [], w = Qe(t);
3181
+ const E = f?.styleProperties || u || [], w = Xe(t);
3163
3182
  v.push({
3164
3183
  name: n.transition,
3165
3184
  value: w.join(", ") || ie.transition
@@ -3180,12 +3199,12 @@ function Ys(t, e, n, s, i) {
3180
3199
  );
3181
3200
  return { rules: m.filter((E) => E.declarations.length), keyframes: h, usedProperties: y };
3182
3201
  }
3183
- function pt(t, e, n, s, i, r, o = !0, a, c) {
3202
+ function vt(t, e, n, s, i, r, o = !0, a, c) {
3184
3203
  const { key: l } = n, f = c ?? G(n), u = P(n, {
3185
3204
  asCombinator: !0,
3186
3205
  useFirstChild: o,
3187
3206
  addItemFilter: !0
3188
- }), g = { ...Gs(
3207
+ }), g = { ...Vs(
3189
3208
  f,
3190
3209
  l,
3191
3210
  e,
@@ -3193,7 +3212,7 @@ function pt(t, e, n, s, i, r, o = !0, a, c) {
3193
3212
  u
3194
3213
  ) };
3195
3214
  a && Object.assign(g, a);
3196
- const { rules: p, keyframes: m, usedProperties: h } = Ys(
3215
+ const { rules: p, keyframes: m, usedProperties: h } = Ks(
3197
3216
  n,
3198
3217
  t,
3199
3218
  g,
@@ -3202,7 +3221,7 @@ function pt(t, e, n, s, i, r, o = !0, a, c) {
3202
3221
  );
3203
3222
  return m.forEach(({ name: v, keyframes: y }) => i.set(v, y)), { rules: p, usedProperties: h };
3204
3223
  }
3205
- function Bs(t, e, n, s, i, r, o = !0, a) {
3224
+ function Qs(t, e, n, s, i, r, o = !0, a) {
3206
3225
  const c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), f = [];
3207
3226
  for (const d of n.effects) {
3208
3227
  const g = G(d), { key: p } = d, m = P(d, {
@@ -3211,7 +3230,7 @@ function Bs(t, e, n, s, i, r, o = !0, a) {
3211
3230
  addItemFilter: !0
3212
3231
  }), h = l.get(g) || 0;
3213
3232
  l.set(g, h + 1);
3214
- const v = Ws(g, e, h), { rules: y, usedProperties: E } = pt(
3233
+ const v = Ys(g, e, h), { rules: y, usedProperties: E } = vt(
3215
3234
  t,
3216
3235
  e,
3217
3236
  d,
@@ -3224,27 +3243,27 @@ function Bs(t, e, n, s, i, r, o = !0, a) {
3224
3243
  );
3225
3244
  f.push(...y);
3226
3245
  const w = new Set(E);
3227
- ht(
3246
+ pt(
3228
3247
  c,
3229
3248
  g,
3230
3249
  { key: p, childSelector: m, ...v },
3231
3250
  w
3232
- ), a && dt(a, g, E);
3251
+ ), a && mt(a, g, E);
3233
3252
  }
3234
3253
  const { conditions: u } = n;
3235
3254
  return c.forEach((d, g) => {
3236
3255
  const p = s.get(g);
3237
- f.push(ut(d, p, u, t));
3256
+ f.push(ht(d, p, u, t));
3238
3257
  }), f;
3239
3258
  }
3240
- function Ks(t, e, n, s, i, r = !0) {
3241
- const { effects: o = [], sequences: a = [] } = e, c = t.conditions || {}, l = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), u = o.map((h) => lt(h, e, t)).filter((h) => h !== null), d = [], { trigger: g } = e, p = {
3242
- trigger: hn(g),
3259
+ function Us(t, e, n, s, i, r = !0) {
3260
+ const { effects: o = [], sequences: a = [] } = e, c = t.conditions || {}, l = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), u = o.map((h) => dt(h, e, t)).filter((h) => h !== null), d = [], { trigger: g } = e, p = {
3261
+ trigger: pn(g),
3243
3262
  id: ["trigger", n].join("-")
3244
3263
  };
3245
- g === "viewProgress" && d.push(Vs(e, c, p.id, r));
3264
+ g === "viewProgress" && d.push(Bs(e, c, p.id, r));
3246
3265
  for (const h of u) {
3247
- const v = G(h), { rules: y, usedProperties: E } = pt(
3266
+ const v = G(h), { rules: y, usedProperties: E } = vt(
3248
3267
  c,
3249
3268
  n,
3250
3269
  h,
@@ -3253,12 +3272,12 @@ function Ks(t, e, n, s, i, r = !0) {
3253
3272
  p,
3254
3273
  r
3255
3274
  );
3256
- d.push(...y), dt(f, v, E);
3275
+ d.push(...y), mt(f, v, E);
3257
3276
  }
3258
- const m = a.map((h) => Ls(h, e, t)).filter((h) => h !== null);
3277
+ const m = a.map((h) => Fs(h, e, t)).filter((h) => h !== null);
3259
3278
  return d.push(
3260
3279
  ...m.flatMap(
3261
- (h) => Bs(
3280
+ (h) => Qs(
3262
3281
  c,
3263
3282
  n,
3264
3283
  h,
@@ -3270,7 +3289,7 @@ function Ks(t, e, n, s, i, r = !0) {
3270
3289
  )
3271
3290
  )
3272
3291
  ), l.forEach((h, v) => {
3273
- ht(
3292
+ pt(
3274
3293
  s,
3275
3294
  v,
3276
3295
  h,
@@ -3278,27 +3297,27 @@ function Ks(t, e, n, s, i, r = !0) {
3278
3297
  );
3279
3298
  }), d;
3280
3299
  }
3281
- function Qs(t, e = !0) {
3300
+ function Xs(t, e = !0) {
3282
3301
  const n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = t.interactions.flatMap(
3283
- (r, o) => Ks(t, r, o, n, s, e)
3302
+ (r, o) => Us(t, r, o, n, s, e)
3284
3303
  );
3285
3304
  return n.forEach((r) => {
3286
- i.push(ut(r));
3305
+ i.push(ht(r));
3287
3306
  }), { keyframes: s, cssRules: i };
3288
3307
  }
3289
- function Zs(t, e = !0) {
3290
- const { cssRules: n, keyframes: s } = Qs(t, e);
3308
+ function ei(t, e = !0) {
3309
+ const { cssRules: n, keyframes: s } = Xs(t, e);
3291
3310
  return [
3292
- ...[...s.entries()].map(([r, o]) => zs(r, o)),
3293
- ...n.map(Hs)
3311
+ ...[...s.entries()].map(([r, o]) => js(r, o)),
3312
+ ...n.map(Ds)
3294
3313
  ].join(`
3295
3314
  `);
3296
3315
  }
3297
3316
  export {
3298
- Ps as I,
3317
+ Rs as I,
3299
3318
  b as a,
3300
- Us as b,
3301
- Zs as g,
3302
- Xs as r
3319
+ Zs as b,
3320
+ ei as g,
3321
+ Js as r
3303
3322
  };
3304
- //# sourceMappingURL=index-C2yYG3we.mjs.map
3323
+ //# sourceMappingURL=index-7fvAL10J.mjs.map