@wix/interact 2.8.0 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,14 +153,14 @@ const $t = (e) => e, pn = (e) => 1 - Math.cos(e * Math.PI / 2), gn = (e) => Math
153
153
  if (a === 0)
154
154
  f = r === 0 ? `(${e} / ${o})` : `((sqrt(max(0, ${o * o} + ${4 * r} * ${e})) - ${o}) / ${2 * r})`;
155
155
  else {
156
- const d = r / (3 * a), p = 2 * Math.pow(r, 3) - 9 * o * r * a, m = 54 * Math.pow(a, 3), h = (3 * a * o - r * r) / (9 * a * a), g = `((${p} - ${27 * a * a} * ${e}) / ${m})`;
156
+ const d = r / (3 * a), m = 2 * Math.pow(r, 3) - 9 * o * r * a, p = 54 * Math.pow(a, 3), h = (3 * a * o - r * r) / (9 * a * a), g = `((${m} - ${27 * a * a} * ${e}) / ${p})`;
157
157
  if (h < 0) {
158
158
  const v = 2 * Math.sqrt(-h);
159
159
  let y = 0;
160
160
  for (const E of [0, 1, 2])
161
161
  [0, 0.25, 0.5, 0.75, 1].every((S) => {
162
162
  const T = Math.min(
163
- Math.max(2 * (p - 27 * a * a * S) / (m * h * v), -1),
163
+ Math.max(2 * (m - 27 * a * a * S) / (p * h * v), -1),
164
164
  1
165
165
  ), I = v * Math.cos((Math.acos(T) - E * 2 * Math.PI) / 3) - d;
166
166
  return I >= -1e-6 && I <= 1.000001;
@@ -275,11 +275,11 @@ function me(e) {
275
275
  return e ? tt[e] || e : tt.linear;
276
276
  }
277
277
  function Wn(e, t, n, s) {
278
- const i = 3 * e, o = 3 * (n - e) - i, r = 1 - i - o, a = 3 * t, l = 3 * (s - t) - a, u = 1 - a - l, c = (m) => ((r * m + o) * m + i) * m, f = (m) => ((u * m + l) * m + a) * m, d = (m) => (3 * r * m + 2 * o) * m + i;
279
- function p(m) {
280
- let h = m;
278
+ const i = 3 * e, o = 3 * (n - e) - i, r = 1 - i - o, a = 3 * t, l = 3 * (s - t) - a, u = 1 - a - l, c = (p) => ((r * p + o) * p + i) * p, f = (p) => ((u * p + l) * p + a) * p, d = (p) => (3 * r * p + 2 * o) * p + i;
279
+ function m(p) {
280
+ let h = p;
281
281
  for (let y = 0; y < 8; y++) {
282
- const $ = c(h) - m;
282
+ const $ = c(h) - p;
283
283
  if (Math.abs($) < 1e-7) return h;
284
284
  const E = d(h);
285
285
  if (Math.abs(E) < 1e-6) break;
@@ -288,12 +288,12 @@ function Wn(e, t, n, s) {
288
288
  let g = 0, v = 1;
289
289
  for (h = (g + v) / 2; v - g > 1e-7; ) {
290
290
  const y = c(h);
291
- if (Math.abs(y - m) < 1e-7) return h;
292
- m > y ? g = h : v = h, h = (g + v) / 2;
291
+ if (Math.abs(y - p) < 1e-7) return h;
292
+ p > y ? g = h : v = h, h = (g + v) / 2;
293
293
  }
294
294
  return h;
295
295
  }
296
- return (m) => m <= 0 ? 0 : m >= 1 ? 1 : f(p(m));
296
+ return (p) => p <= 0 ? 0 : p >= 1 ? 1 : f(m(p));
297
297
  }
298
298
  function It(e) {
299
299
  const t = e.match(
@@ -430,12 +430,12 @@ class Xn extends ie {
430
430
  i.animations.forEach((r, a) => {
431
431
  const l = r.effect;
432
432
  if (!l) return;
433
- const { delay: u, duration: c, iterations: f } = this.timingOptions[o][a], d = u + t[o], p = n - (d + c * f);
433
+ const { delay: u, duration: c, iterations: f } = this.timingOptions[o][a], d = u + t[o], m = n - (d + c * f);
434
434
  if (i.isCSS && this.sequenceId) {
435
- const { target: m } = l;
436
- m instanceof HTMLElement && (m.style.setProperty(`--motion-${this.sequenceId}-index`, `${o}`), m.style.setProperty(`--motion-${this.sequenceId}-last`, `${s}`)), l.updateTiming({ endDelay: p });
435
+ const { target: p } = l;
436
+ p instanceof HTMLElement && (p.style.setProperty(`--motion-${this.sequenceId}-index`, `${o}`), p.style.setProperty(`--motion-${this.sequenceId}-last`, `${s}`)), l.updateTiming({ endDelay: m });
437
437
  } else
438
- l.updateTiming({ delay: d + this.delay, endDelay: p });
438
+ l.updateTiming({ delay: d + this.delay, endDelay: m });
439
439
  });
440
440
  });
441
441
  }
@@ -742,15 +742,15 @@ function Jn() {
742
742
  c.scheduled || (c.scheduled = !0, c.raf(r.bind(null, c)));
743
743
  }
744
744
  function r(c) {
745
- var f = c.writes, d = c.reads, p;
745
+ var f = c.writes, d = c.reads, m;
746
746
  try {
747
747
  n("flushing reads", d.length), c.runTasks(d), n("flushing writes", f.length), c.runTasks(f);
748
- } catch (m) {
749
- p = m;
748
+ } catch (p) {
749
+ m = p;
750
750
  }
751
- if (c.scheduled = !1, (d.length || f.length) && o(c), p)
752
- if (n("task errored", p.message), c.catch) c.catch(p);
753
- else throw p;
751
+ if (c.scheduled = !1, (d.length || f.length) && o(c), m)
752
+ if (n("task errored", m.message), c.catch) c.catch(m);
753
+ else throw m;
754
754
  }
755
755
  function a(c, f) {
756
756
  var d = c.indexOf(f);
@@ -866,16 +866,16 @@ function At(e, t, n, s, i) {
866
866
  ...t,
867
867
  namedEffect: { id: "", type: "CustomMouse" }
868
868
  });
869
- const p = te(
869
+ const m = te(
870
870
  d
871
- ), m = ot(
872
- p,
871
+ ), p = ot(
872
+ m,
873
873
  t,
874
874
  o,
875
875
  n,
876
876
  s
877
877
  );
878
- return typeof m != "function" ? null : m(o);
878
+ return typeof p != "function" ? null : p(o);
879
879
  }
880
880
  const r = te(t), a = ot(
881
881
  r,
@@ -892,15 +892,15 @@ function At(e, t, n, s, i) {
892
892
  c && window.ViewTimeline && (u = new ViewTimeline({
893
893
  subject: n.element || Y(n.componentId)
894
894
  }));
895
- const f = l.map(({ effect: d, options: p, id: m, part: h }) => {
896
- const g = h ? Ot(o, h) : o, v = new KeyframeEffect(g || null, [], p);
895
+ const f = l.map(({ effect: d, options: m, id: p, part: h }) => {
896
+ const g = h ? Ot(o, h) : o, v = new KeyframeEffect(g || null, [], m);
897
897
  _.mutate(() => {
898
898
  "timing" in d && v.updateTiming(d.timing), v.setKeyframes(bt(d.keyframes));
899
899
  });
900
900
  const y = c && u ? { timeline: u } : {}, $ = typeof d.customEffect == "function" ? new Qn(
901
901
  d.customEffect,
902
902
  g || null,
903
- p,
903
+ m,
904
904
  y
905
905
  ) : new Animation(v, y.timeline);
906
906
  if (c)
@@ -927,7 +927,7 @@ function At(e, t, n, s, i) {
927
927
  });
928
928
  });
929
929
  }
930
- return m && ($.id = m), $;
930
+ return p && ($.id = p), $;
931
931
  });
932
932
  return f.length > 1 && f.forEach((d) => d.persist?.()), new ie(f, {
933
933
  ...t,
@@ -937,17 +937,17 @@ function At(e, t, n, s, i) {
937
937
  });
938
938
  }
939
939
  function ss(e, t, n) {
940
- const { duration: s, delay: i, iterations: o = 1, fill: r, easing: a = "linear", direction: l } = e.options, u = e.effect.name, c = s === "auto", { sequenceId: f, delay: d, offset: p, offsetEasing: m = "linear" } = n || {};
940
+ const { duration: s, delay: i, iterations: o = 1, fill: r, easing: a = "linear", direction: l } = e.options, u = e.effect.name, c = s === "auto", { sequenceId: f, delay: d, offset: m, offsetEasing: p = "linear" } = n || {};
941
941
  let h = `${i ?? 0}ms`;
942
- if (f && typeof m == "string") {
943
- const g = Kn(m);
942
+ if (f && typeof p == "string") {
943
+ const g = Kn(p);
944
944
  if (g) {
945
945
  const v = (i ?? 0) + (d ?? 0);
946
- if (p) {
946
+ if (m) {
947
947
  const y = g(
948
948
  `(var(--motion-${f}-index, 0) / var(--motion-${f}-last, 1))`
949
949
  );
950
- h = `calc(${`(${v} + ${y} * ${p} * var(--motion-${f}-last, 1))`} * 1ms)`;
950
+ h = `calc(${`(${v} + ${y} * ${m} * var(--motion-${f}-last, 1))`} * 1ms)`;
951
951
  } else
952
952
  h = `${v}ms`;
953
953
  }
@@ -1023,9 +1023,9 @@ function Rt(e, t, n, s = {}) {
1023
1023
  getProgress() {
1024
1024
  return a.getProgress();
1025
1025
  },
1026
- effect(d, p) {
1027
- const { activeDuration: m } = f.effect.getComputedTiming(), { delay: h } = f.effect.getTiming();
1028
- f.currentTime = ((h || 0) + (m || 0)) * p;
1026
+ effect(d, m) {
1027
+ const { activeDuration: p } = f.effect.getComputedTiming(), { delay: h } = f.effect.getTiming();
1028
+ f.currentTime = ((h || 0) + (p || 0)) * m;
1029
1029
  },
1030
1030
  disabled: i,
1031
1031
  destroy() {
@@ -1033,24 +1033,24 @@ function Rt(e, t, n, s = {}) {
1033
1033
  }
1034
1034
  }));
1035
1035
  } else if (n.trigger === "pointer-move") {
1036
- const u = t, { centeredToTarget: c, transitionDuration: f, transitionEasing: d } = u, p = n.axis;
1036
+ const u = t, { centeredToTarget: c, transitionDuration: f, transitionEasing: d } = u, m = n.axis;
1037
1037
  if (u.keyframeEffect) {
1038
- const m = a;
1039
- return m.animations?.length === 0 ? null : {
1038
+ const p = a;
1039
+ return p.animations?.length === 0 ? null : {
1040
1040
  target: (typeof e == "string" ? Y(e) : e) ?? void 0,
1041
1041
  centeredToTarget: c,
1042
- ready: m.ready,
1042
+ ready: p.ready,
1043
1043
  _currentProgress: 0,
1044
1044
  getProgress() {
1045
1045
  return this._currentProgress;
1046
1046
  },
1047
1047
  effect(g, v) {
1048
- const y = p === "x" ? v.x : v.y;
1049
- this._currentProgress = y, m.progress(y);
1048
+ const y = m === "x" ? v.x : v.y;
1049
+ this._currentProgress = y, p.progress(y);
1050
1050
  },
1051
1051
  disabled: i ?? !1,
1052
1052
  destroy() {
1053
- m.cancel();
1053
+ p.cancel();
1054
1054
  }
1055
1055
  };
1056
1056
  }
@@ -1172,8 +1172,8 @@ function hs({
1172
1172
  transition: n,
1173
1173
  transitionProperties: s
1174
1174
  }), a = xt({ transition: n, transitionProperties: s }).map(
1175
- (m) => `${m.name}: ${m.value};`
1176
- ), l = e.replace(/"/g, "'"), u = `:is(:state(${t}), :--${t}) ${i}`, c = `[data-interact-effect~="${t}"] ${i}`, f = o ? ge(u, o) : u, d = o ? ge(c, o) : c, p = [
1175
+ (p) => `${p.name}: ${p.value};`
1176
+ ), l = e.replace(/"/g, "'"), u = `:is(:state(${t}), :--${t}) ${i}`, c = `[data-interact-effect~="${t}"] ${i}`, f = o ? ge(u, o) : u, d = o ? ge(c, o) : c, m = [
1177
1177
  `${f},
1178
1178
  ${d} {
1179
1179
  ${a.join(`
@@ -1181,12 +1181,12 @@ function hs({
1181
1181
  }`
1182
1182
  ];
1183
1183
  if (r.length) {
1184
- const m = `[data-interact-key="${l}"] ${i}`, h = o ? ge(m, o) : m;
1185
- p.push(`${h} {
1184
+ const p = `[data-interact-key="${l}"] ${i}`, h = o ? ge(p, o) : p;
1185
+ m.push(`${h} {
1186
1186
  transition: ${r.join(", ")};
1187
1187
  }`);
1188
1188
  }
1189
- return p;
1189
+ return m;
1190
1190
  }
1191
1191
  function re(e, t, n) {
1192
1192
  const s = (e || []).filter((i) => t[i]?.type === n && t[i].predicate).map((i) => t[i].predicate).join(") and (");
@@ -1314,20 +1314,20 @@ function Gt(e, t, n, s, i = {}) {
1314
1314
  const { effects: o = {}, conditions: r = {} } = n, { key: a, trigger: l, conditions: u = [] } = t, c = l === "pointerMove";
1315
1315
  e.effectId || (e.effectId = s || ne());
1316
1316
  const { effectId: f } = e, d = { ...o[f] || {}, ...e };
1317
- let { key: p, conditions: m, triggerType: h } = d;
1318
- if (!p) {
1317
+ let { key: m, conditions: p, triggerType: h } = d;
1318
+ if (!m) {
1319
1319
  if (!a)
1320
1320
  return null;
1321
- p = a;
1321
+ m = a;
1322
1322
  }
1323
- if (fs(p))
1323
+ if (fs(m))
1324
1324
  return null;
1325
1325
  const g = u.filter(
1326
1326
  (S) => r[S].type === "media"
1327
1327
  );
1328
- m = [
1328
+ p = [
1329
1329
  ...new Set(
1330
- [...m || [], ...g].filter(
1330
+ [...p || [], ...g].filter(
1331
1331
  (S) => r[S]
1332
1332
  )
1333
1333
  )
@@ -1339,7 +1339,7 @@ function Gt(e, t, n, s, i = {}) {
1339
1339
  }
1340
1340
  if (!Es(d, c))
1341
1341
  return null;
1342
- const $ = { ...d, key: p, conditions: m, effectId: f, triggerType: h }, E = { ...$, initial: mn(t, $) }, b = zt(
1342
+ const $ = { ...d, key: m, conditions: p, effectId: f, triggerType: h }, E = { ...$, initial: mn(t, $) }, b = zt(
1343
1343
  E,
1344
1344
  Te(
1345
1345
  d.reducedMotionPolicy,
@@ -1360,29 +1360,29 @@ function ws(e, t, n, s, i, o = {}) {
1360
1360
  o.defaultPolicy
1361
1361
  );
1362
1362
  let {
1363
- effects: p,
1364
- conditions: m,
1363
+ effects: m,
1364
+ conditions: p,
1365
1365
  triggerType: h,
1366
1366
  delay: g = 0,
1367
1367
  offset: v = 0,
1368
1368
  offsetEasing: y = "linear"
1369
1369
  } = f;
1370
- if (typeof y == "function" || !p)
1370
+ if (typeof y == "function" || !m)
1371
1371
  return null;
1372
1372
  h || (h = Ht.get(l));
1373
1373
  const $ = u.filter(
1374
1374
  (S) => a[S].type === "media"
1375
1375
  );
1376
- m = [
1376
+ p = [
1377
1377
  ...new Set(
1378
- [...m || [], ...$].filter(
1378
+ [...p || [], ...$].filter(
1379
1379
  (S) => a[S]
1380
1380
  )
1381
1381
  )
1382
1382
  ];
1383
- const b = p.map((S, T) => {
1383
+ const b = m.map((S, T) => {
1384
1384
  const I = Gt(
1385
- { ...S, triggerType: h, conditions: [...S.conditions || [], ...m] },
1385
+ { ...S, triggerType: h, conditions: [...S.conditions || [], ...p] },
1386
1386
  t,
1387
1387
  n,
1388
1388
  `${c}-eff-${T}`,
@@ -1393,7 +1393,7 @@ function ws(e, t, n, s, i, o = {}) {
1393
1393
  return b.length ? {
1394
1394
  sequenceId: c,
1395
1395
  triggerType: h,
1396
- conditions: m,
1396
+ conditions: p,
1397
1397
  delay: g,
1398
1398
  offset: v,
1399
1399
  offsetEasing: y,
@@ -1456,7 +1456,7 @@ function Ts(e) {
1456
1456
  l = `${l}:is(${f})`;
1457
1457
  }
1458
1458
  n && (l = `${l} ${n}`), a && (l = `${l}${a}`), r && (l = ge(l, r));
1459
- const u = s.map(({ name: f, value: d, important: p }) => `${f}: ${d}${p ? " !important" : ""};`).join(`
1459
+ const u = s.map(({ name: f, value: d, important: m }) => `${f}: ${d}${m ? " !important" : ""};`).join(`
1460
1460
  `), c = `${l} {
1461
1461
  ${u}
1462
1462
  }`;
@@ -1750,8 +1750,8 @@ function Ns(e, t, n, s, i, o) {
1750
1750
  key: c,
1751
1751
  effectId: f,
1752
1752
  conditions: d,
1753
- namedEffect: p,
1754
- keyframeEffect: m,
1753
+ namedEffect: m,
1754
+ keyframeEffect: p,
1755
1755
  transition: h,
1756
1756
  transitionProperties: g,
1757
1757
  initial: v
@@ -1768,7 +1768,7 @@ function Ns(e, t, n, s, i, o) {
1768
1768
  const { declarations: S } = E[0];
1769
1769
  e.plugins && E.push(...Ut("effect", t, c, y, e.plugins));
1770
1770
  const T = v && t.duration === 0;
1771
- if ((p || m) && !T) {
1771
+ if ((m || p) && !T) {
1772
1772
  const I = N(t), P = os(null, I, s, o).filter(
1773
1773
  (O) => O.name
1774
1774
  ), k = P.length ? {} : { "": [] };
@@ -1881,7 +1881,7 @@ function Kt(e, t, n, s, i, o) {
1881
1881
  { animation: f === "animation", transition: f === "transition", timeline: !1 },
1882
1882
  l
1883
1883
  ), e.targetsMap.set(r, a), [];
1884
- const d = a.assigned, p = c.map((h) => (h.namedEffect && (h.suffix = e.keyframeSlots.get(t.slotKey)), a.assigned = new Set(d), {
1884
+ const d = a.assigned, m = c.map((h) => (h.namedEffect && (h.suffix = e.keyframeSlots.get(t.slotKey)), a.assigned = new Set(d), {
1885
1885
  ...Ns(
1886
1886
  e,
1887
1887
  h,
@@ -1892,13 +1892,13 @@ function Kt(e, t, n, s, i, o) {
1892
1892
  ),
1893
1893
  assigned: a.assigned
1894
1894
  }));
1895
- a.assigned = new Set(p.flatMap((h) => [...h.assigned])), p.forEach(
1895
+ a.assigned = new Set(m.flatMap((h) => [...h.assigned])), m.forEach(
1896
1896
  ({ keyframes: h }) => h.forEach(({ name: g, keyframes: v }) => e.keyframesMap.set(g, v))
1897
1897
  );
1898
- const m = Object.fromEntries(
1899
- Ce.map((h) => [h, p.some((g) => g.wrote[h])])
1898
+ const p = Object.fromEntries(
1899
+ Ce.map((h) => [h, m.some((g) => g.wrote[h])])
1900
1900
  );
1901
- return je(a, m, l), e.targetsMap.set(r, a), p.flatMap(({ rules: h }) => h);
1901
+ return je(a, p, l), e.targetsMap.set(r, a), m.flatMap(({ rules: h }) => h);
1902
1902
  }
1903
1903
  function zs(e, t, n, s) {
1904
1904
  const i = [], o = /* @__PURE__ */ new Set(), r = qs(t);
@@ -1926,34 +1926,34 @@ function Hs(e, t, n) {
1926
1926
  id: J("trigger", [n], e.configIndex)
1927
1927
  }, c = /* @__PURE__ */ new Set();
1928
1928
  l === "viewProgress" && a.push(xs(e, t, u.id, c));
1929
- const f = o.map((p, m) => {
1929
+ const f = o.map((m, p) => {
1930
1930
  const h = Gt(
1931
- p,
1931
+ m,
1932
1932
  t,
1933
1933
  e.config,
1934
- J("eff", [n, m], e.configIndex),
1934
+ J("eff", [n, p], e.configIndex),
1935
1935
  { force: e.forceReducedMotion, defaultPolicy: e.reducedMotionPolicy }
1936
1936
  );
1937
- return h && Object.assign(h, { slotKey: Ee(n, m) });
1938
- }).filter((p) => p !== null);
1937
+ return h && Object.assign(h, { slotKey: Ee(n, p) });
1938
+ }).filter((m) => m !== null);
1939
1939
  a.push(
1940
- ...f.flatMap((p) => Kt(e, p, u, c))
1940
+ ...f.flatMap((m) => Kt(e, m, u, c))
1941
1941
  );
1942
1942
  const d = r.map(
1943
- (p, m) => ws(
1944
- p,
1943
+ (m, p) => ws(
1944
+ m,
1945
1945
  t,
1946
1946
  e.config,
1947
- J("seq", [n, m], e.configIndex),
1948
- (h) => Ee(n, h, m),
1947
+ J("seq", [n, p], e.configIndex),
1948
+ (h) => Ee(n, h, p),
1949
1949
  { force: e.forceReducedMotion, defaultPolicy: e.reducedMotionPolicy }
1950
1950
  )
1951
- ).filter((p) => p !== null);
1951
+ ).filter((m) => m !== null);
1952
1952
  return a.push(
1953
1953
  ...d.flatMap(
1954
- (p) => zs(e, p, u, c)
1954
+ (m) => zs(e, m, u, c)
1955
1955
  )
1956
- ), l === "viewProgress" && c.size > 1 && e.scopedTimelines.push(`--${u.id}`), c.forEach((p) => Ls(e.targetsMap.get(p))), a;
1956
+ ), l === "viewProgress" && c.size > 1 && e.scopedTimelines.push(`--${u.id}`), c.forEach((m) => Ls(e.targetsMap.get(m))), a;
1957
1957
  }
1958
1958
  function Gs(e = {}) {
1959
1959
  return typeof e == "boolean" ? { useFirstChild: e } : e;
@@ -2004,18 +2004,18 @@ function Qt(e, t = {}) {
2004
2004
  }), s;
2005
2005
  }
2006
2006
  function Ws(e, t) {
2007
- const { ctx: n, cssRules: s } = Xt(e, Gs(t)), i = [...n.targetsMap.values()], o = Math.max(0, ...i.map(({ animation: p }) => p.listIndex)), r = Math.max(0, ...i.map(({ transition: p }) => p.listIndex)), a = Math.max(0, ...i.map(({ timeline: p }) => p.listIndex)), l = _s(
2008
- i.flatMap((p) => [
2009
- p,
2010
- ...[...p.partSelectors].map((m) => ({ key: p.key, childSelector: m }))
2007
+ const { ctx: n, cssRules: s } = Xt(e, Gs(t)), i = [...n.targetsMap.values()], o = Math.max(0, ...i.map(({ animation: m }) => m.listIndex)), r = Math.max(0, ...i.map(({ transition: m }) => m.listIndex)), a = Math.max(0, ...i.map(({ timeline: m }) => m.listIndex)), l = _s(
2008
+ i.flatMap((m) => [
2009
+ m,
2010
+ ...[...m.partSelectors].map((p) => ({ key: m.key, childSelector: p }))
2011
2011
  ]),
2012
2012
  o,
2013
2013
  r,
2014
2014
  a,
2015
2015
  n.configIndex
2016
- ), u = Math.max(0, ...i.map(({ animation: p }) => p.slotCursor)), c = Math.max(
2016
+ ), u = Math.max(0, ...i.map(({ animation: m }) => m.slotCursor)), c = Math.max(
2017
2017
  0,
2018
- ...i.map(({ transition: p }) => p.slotCursor)
2018
+ ...i.map(({ transition: m }) => m.slotCursor)
2019
2019
  ), f = Cs(
2020
2020
  o,
2021
2021
  r,
@@ -2090,8 +2090,8 @@ function en(e, t = !1) {
2090
2090
  const d = Array.isArray(e.threshold) ? Math.min(...e.threshold) : e.threshold;
2091
2091
  d && c * d > f && _.mutate(() => {
2092
2092
  o.unobserve(l);
2093
- const m = en(e, !0);
2094
- X.set(l, m), m.observe(l);
2093
+ const p = en(e, !0);
2094
+ X.set(l, p), p.observe(l);
2095
2095
  });
2096
2096
  });
2097
2097
  return;
@@ -2196,20 +2196,20 @@ function qe(e, t, n, s, i) {
2196
2196
  const u = a.sticky;
2197
2197
  if (u) {
2198
2198
  if ("end" in u && e[l - 1]?.element) {
2199
- const d = ((i ? a.element.offsetWidth : a.element.offsetHeight) || 0) + u.end - s, p = o + d - a.offset, m = p < r.start, h = !m && p <= n;
2199
+ const d = ((i ? a.element.offsetWidth : a.element.offsetHeight) || 0) + u.end - s, m = o + d - a.offset, p = m < r.start, h = !p && m <= n;
2200
2200
  let g = 0;
2201
- (m || h) && (g = a.offset, r.end += g), m && (r.start += g);
2201
+ (p || h) && (g = a.offset, r.end += g), p && (r.start += g);
2202
2202
  }
2203
2203
  if ("start" in u) {
2204
2204
  const c = o - u.start, f = c < r.start, d = !f && c <= r.end;
2205
- let p = 0;
2206
- const m = e[l - 1]?.element;
2207
- if (m) {
2205
+ let m = 0;
2206
+ const p = e[l - 1]?.element;
2207
+ if (p) {
2208
2208
  if (f || d) {
2209
- const h = (i ? m.offsetWidth : m.offsetHeight) || 0, g = a.offset, v = (i ? a.element.offsetWidth : a.element.offsetHeight) || 0;
2210
- p = h - (g + v), o += p, r.end += p;
2209
+ const h = (i ? p.offsetWidth : p.offsetHeight) || 0, g = a.offset, v = (i ? a.element.offsetWidth : a.element.offsetHeight) || 0;
2210
+ m = h - (g + v), o += m, r.end += m;
2211
2211
  }
2212
- f && (r.start += p);
2212
+ f && (r.start += m);
2213
2213
  }
2214
2214
  }
2215
2215
  }
@@ -2217,24 +2217,24 @@ function qe(e, t, n, s, i) {
2217
2217
  }
2218
2218
  function si(e, t, n, s, i, o) {
2219
2219
  const { start: r, end: a, duration: l } = e;
2220
- let u = r, c = a, f = e.startRange, d = e.endRange, p;
2220
+ let u = r, c = a, f = e.startRange, d = e.endRange, m;
2221
2221
  if (typeof l == "string") {
2222
- f = { name: l, offset: 0 }, d = { name: l, offset: 100 }, u = H(f, n, t), c = H(d, n, t), p = c - u;
2223
- const m = qe(o, u, c, n, s);
2224
- u = m.start, c = m.end;
2222
+ f = { name: l, offset: 0 }, d = { name: l, offset: 100 }, u = H(f, n, t), c = H(d, n, t), m = c - u;
2223
+ const p = qe(o, u, c, n, s);
2224
+ u = p.start, c = p.end;
2225
2225
  } else {
2226
2226
  if (f || r?.name) {
2227
2227
  f = f || r;
2228
- const m = $e(f.add, i), h = H({ ...f, offset: 0 }, n, t), g = H({ ...f, offset: 100 }, n, t), v = qe(o, h, g, n, s);
2229
- u = v.start + f.offset / 100 * (v.end - v.start) + m;
2228
+ const p = $e(f.add, i), h = H({ ...f, offset: 0 }, n, t), g = H({ ...f, offset: 100 }, n, t), v = qe(o, h, g, n, s);
2229
+ u = v.start + f.offset / 100 * (v.end - v.start) + p;
2230
2230
  }
2231
2231
  if (d || a?.name) {
2232
2232
  d = d || a;
2233
- const m = $e(d.add, i), h = H({ ...d, offset: 0 }, n, t), g = H({ ...d, offset: 100 }, n, t), v = qe(o, h, g, n, s);
2234
- c = v.start + d.offset / 100 * (v.end - v.start) + m;
2233
+ const p = $e(d.add, i), h = H({ ...d, offset: 0 }, n, t), g = H({ ...d, offset: 100 }, n, t), v = qe(o, h, g, n, s);
2234
+ c = v.start + d.offset / 100 * (v.end - v.start) + p;
2235
2235
  } else typeof l == "number" && (c = u + l);
2236
2236
  }
2237
- return !p && !l && (p = c - u), { ...e, start: u, end: c, startRange: f, endRange: d, duration: p || l };
2237
+ return !m && !l && (m = c - u), { ...e, start: u, end: c, startRange: f, endRange: d, duration: m || l };
2238
2238
  }
2239
2239
  function ii(e) {
2240
2240
  return e.position === "sticky";
@@ -2262,8 +2262,8 @@ function ue(e, t, n, s, i) {
2262
2262
  const o = e[0].viewSource, r = [];
2263
2263
  let a = (s ? o.offsetWidth : o.offsetHeight) || 0, l = 0, u = o;
2264
2264
  for (; u; ) {
2265
- const f = window.getComputedStyle(u), d = ii(f), p = d ? li(f, s) : void 0, m = ci(u, s, d);
2266
- if ((!p || !("end" in p)) && (l += m), r.push({ element: u, offset: m, sticky: p }), u = u.offsetParent, oi(f, u, t))
2265
+ const f = window.getComputedStyle(u), d = ii(f), m = d ? li(f, s) : void 0, p = ci(u, s, d);
2266
+ if ((!m || !("end" in m)) && (l += p), r.push({ element: u, offset: p, sticky: m }), u = u.offsetParent, oi(f, u, t))
2267
2267
  break;
2268
2268
  if (u === t) {
2269
2269
  r.push({ element: u, offset: 0 });
@@ -2369,7 +2369,7 @@ function hi(e) {
2369
2369
  g || (g = [], i.set(h.viewSource, g), a.observe(h.viewSource)), g.push(h);
2370
2370
  }
2371
2371
  }));
2372
- function p({ p: h, vp: g }) {
2372
+ function m({ p: h, vp: g }) {
2373
2373
  h = +h.toFixed(1);
2374
2374
  const v = +g.toFixed(4);
2375
2375
  if (h !== r) {
@@ -2381,12 +2381,12 @@ function hi(e) {
2381
2381
  r = h;
2382
2382
  }
2383
2383
  }
2384
- function m() {
2384
+ function p() {
2385
2385
  t.scenes.forEach((h) => h.destroy?.()), a && (a.disconnect(), a = null), l && (l.disconnect(), l = null), u && (c ? (c.disconnect(), c = null) : window.removeEventListener("resize", u));
2386
2386
  }
2387
2387
  return {
2388
- tick: p,
2389
- destroy: m
2388
+ tick: m,
2389
+ destroy: p
2390
2390
  };
2391
2391
  }
2392
2392
  const mi = {
@@ -2672,8 +2672,8 @@ function Pi(e) {
2672
2672
  }), s = function(c) {
2673
2673
  for (let f of e.scenes)
2674
2674
  if (!f.disabled) {
2675
- const d = f.transform?.x(c.x) || c.x / e.rect.width, p = f.transform?.y(c.y) || c.y / e.rect.height, m = +mt(0, 1, d).toPrecision(4), h = +mt(0, 1, p).toPrecision(4), g = { x: c.vx, y: c.vy };
2676
- e.allowActiveEvent && (c.active = d <= 1 && p <= 1 && d >= 0 && p >= 0), f.effect(f, { x: m, y: h }, g, c.active);
2675
+ const d = f.transform?.x(c.x) || c.x / e.rect.width, m = f.transform?.y(c.y) || c.y / e.rect.height, p = +mt(0, 1, d).toPrecision(4), h = +mt(0, 1, m).toPrecision(4), g = { x: c.vx, y: c.vy };
2676
+ e.allowActiveEvent && (c.active = d <= 1 && m <= 1 && d >= 0 && m >= 0), f.effect(f, { x: p, y: h }, g, c.active);
2677
2677
  }
2678
2678
  Object.assign(n, c);
2679
2679
  }, t && (r = Ci.bind(l, s, n), a = Ti(document, r));
@@ -2849,11 +2849,11 @@ function Di(e, t, n, s, { selectorCondition: i, animation: o, sourceAnimationOpt
2849
2849
  return;
2850
2850
  const { effectId: l } = s, u = (d) => {
2851
2851
  if (i && !t.matches(i)) return;
2852
- const p = d.animationName, m = d.detail?.effectId, h = r ? qt(e, r) : null;
2852
+ const m = d.animationName, p = d.detail?.effectId, h = r ? qt(e, r) : null;
2853
2853
  if (h) {
2854
- if (h.playState === "running" || p && !h.hasAnimationName(p))
2854
+ if (h.playState === "running" || m && !h.hasAnimationName(m))
2855
2855
  return;
2856
- if (m && m !== l && !h.hasAnimationId(m))
2856
+ if (p && p !== l && !h.hasAnimationId(p))
2857
2857
  return;
2858
2858
  }
2859
2859
  a.play();
@@ -2875,28 +2875,31 @@ function Hi(e, t, n, s, i) {
2875
2875
  return null;
2876
2876
  let r = !0;
2877
2877
  const a = t.triggerType || "alternate";
2878
- return (l) => {
2879
- if (n && !e.matches(n)) return;
2880
- const u = !s, c = s?.enter?.includes(l.type), f = s?.leave?.includes(l.type);
2881
- if (c || u) {
2882
- if (a === "alternate" || a === "state")
2883
- r ? (r = !1, o.play()) : a === "alternate" ? o.reverse() : a === "state" && (o.playState === "running" ? o.pause() : o.playState !== "finished" && o.play());
2884
- else {
2885
- if (o.progress(0), delete e.dataset.interactEnter, o.isCSS) {
2886
- const d = () => {
2887
- _.mutate(() => {
2888
- e.dataset.interactEnter = "done";
2889
- });
2890
- };
2891
- o.onFinish(d), o.onAbort(d);
2878
+ return {
2879
+ handler: (u) => {
2880
+ if (n && !e.matches(n)) return;
2881
+ const c = !s, f = s?.enter?.includes(u.type), d = s?.leave?.includes(u.type);
2882
+ if (f || c) {
2883
+ if (a === "alternate" || a === "state")
2884
+ r ? (r = !1, o.play()) : a === "alternate" ? o.reverse() : a === "state" && (o.playState === "running" ? o.pause() : o.playState !== "finished" && o.play());
2885
+ else {
2886
+ if (o.progress(0), delete e.dataset.interactEnter, o.isCSS) {
2887
+ const m = () => {
2888
+ _.mutate(() => {
2889
+ e.dataset.interactEnter = "done";
2890
+ });
2891
+ };
2892
+ o.onFinish(m), o.onAbort(m);
2893
+ }
2894
+ o.play();
2892
2895
  }
2893
- o.play();
2896
+ return;
2894
2897
  }
2895
- return;
2896
- }
2897
- f && (a === "alternate" ? o.reverse() : a === "repeat" ? (o.cancel(), _.mutate(() => {
2898
- delete e.dataset.interactEnter;
2899
- })) : a === "state" && o.playState === "running" && o.pause());
2898
+ d && (a === "alternate" ? o.reverse() : a === "repeat" ? (o.cancel(), _.mutate(() => {
2899
+ delete e.dataset.interactEnter;
2900
+ })) : a === "state" && o.playState === "running" && o.pause());
2901
+ },
2902
+ cleanup: () => o.cancel()
2900
2903
  };
2901
2904
  }
2902
2905
  function Gi(e, t, {
@@ -2910,8 +2913,8 @@ function Gi(e, t, {
2910
2913
  if (r && !e.matches(r)) return;
2911
2914
  const d = l ? e.closest(
2912
2915
  `${s} > ${i || ""}:has(:scope)`
2913
- ) : void 0, p = !a, m = a?.enter?.includes(f.type), h = a?.leave?.includes(f.type);
2914
- p ? t.toggleEffect(n, u, d) : (m && t.toggleEffect(n, c ? "add" : u, d), h && c && t.toggleEffect(n, "remove", d));
2916
+ ) : void 0, m = !a, p = a?.enter?.includes(f.type), h = a?.leave?.includes(f.type);
2917
+ m ? t.toggleEffect(n, u, d) : (p && t.toggleEffect(n, c ? "add" : u, d), h && c && t.toggleEffect(n, "remove", d));
2915
2918
  };
2916
2919
  }
2917
2920
  const We = /* @__PURE__ */ new WeakMap();
@@ -2965,45 +2968,51 @@ function Qi(e) {
2965
2968
  }
2966
2969
  function Zi(e, t, n, s, { targetController: i, selectorCondition: o, animation: r }) {
2967
2970
  const a = Ki(s.eventConfig), l = n.transition || n.transitionProperties, u = Qi(a);
2968
- let c, f = !1;
2969
- if (l ? c = Gi(
2970
- t,
2971
- i,
2972
- n,
2973
- o,
2974
- u
2975
- ) : (c = Hi(
2976
- t,
2977
- n,
2978
- o,
2979
- u,
2980
- r
2981
- ), f = n.triggerType === "once"), !c)
2971
+ let c, f, d = !1;
2972
+ if (l)
2973
+ c = Gi(
2974
+ t,
2975
+ i,
2976
+ n,
2977
+ o,
2978
+ u
2979
+ );
2980
+ else {
2981
+ const y = Hi(
2982
+ t,
2983
+ n,
2984
+ o,
2985
+ u,
2986
+ r
2987
+ );
2988
+ c = y?.handler ?? null, f = y?.cleanup, d = n.triggerType === "once";
2989
+ }
2990
+ if (!c)
2982
2991
  return;
2983
- const d = c, p = new AbortController();
2984
- function m(v, y, $) {
2985
- const E = Yi(y, e, d);
2986
- v.addEventListener(y, E, { ...$, signal: p.signal });
2992
+ const m = c, p = new AbortController();
2993
+ function h(y, $, E) {
2994
+ const b = Yi($, e, m);
2995
+ y.addEventListener($, b, { ...E, signal: p.signal });
2987
2996
  }
2988
- const g = { source: e, target: t, cleanup: () => {
2989
- p.abort();
2997
+ const v = { source: e, target: t, cleanup: () => {
2998
+ p.abort(), f?.();
2990
2999
  } };
2991
- if (q(We, e, g), q(We, t, g), u) {
2992
- const v = a.enter, y = a.leave;
2993
- v.forEach((b) => {
2994
- b === "focusin" && (e.tabIndex = 0), m(e, b, { passive: !0, once: f });
3000
+ if (q(We, e, v), q(We, t, v), u) {
3001
+ const y = a.enter, $ = a.leave;
3002
+ y.forEach((S) => {
3003
+ S === "focusin" && (e.tabIndex = 0), h(e, S, { passive: !0, once: d });
2995
3004
  });
2996
- const $ = !n.stateAction || n.stateAction === "toggle";
2997
- (l ? $ : n.triggerType !== "once") && y.forEach((b) => {
2998
- if (b === "focusout") {
2999
- m(e, b, { once: f });
3005
+ const E = !n.stateAction || n.stateAction === "toggle";
3006
+ (l ? E : n.triggerType !== "once") && $.forEach((S) => {
3007
+ if (S === "focusout") {
3008
+ h(e, S, { once: d });
3000
3009
  return;
3001
3010
  }
3002
- m(e, b, { passive: !0 });
3011
+ h(e, S, { passive: !0 });
3003
3012
  });
3004
3013
  } else
3005
- (a.toggle ?? []).forEach((y) => {
3006
- m(e, y, { once: f, passive: y !== "keydown" });
3014
+ (a.toggle ?? []).forEach(($) => {
3015
+ h(e, $, { once: d, passive: $ !== "keydown" });
3007
3016
  });
3008
3017
  }
3009
3018
  function Ji(e) {
@@ -3275,15 +3284,15 @@ function no(e, t, n) {
3275
3284
  function so(e, t, n) {
3276
3285
  const { configIndex: s } = n, { effects: i = {}, sequences: o = {}, conditions: r = {} } = e, a = {}, l = e.interactions ? Qt(e, n) : /* @__PURE__ */ new Map();
3277
3286
  return e.interactions?.forEach((u, c) => {
3278
- const f = u.key, d = ++to, { effects: p, sequences: m, ...h } = u;
3287
+ const f = u.key, d = ++to, { effects: m, sequences: p, ...h } = u;
3279
3288
  if (!f) {
3280
3289
  console.error(`Interaction ${d} is missing a key for source element.`);
3281
3290
  return;
3282
3291
  }
3283
3292
  Re(a, f);
3284
- const g = p ? Array.from(p) : [];
3293
+ const g = m ? Array.from(m) : [];
3285
3294
  g.reverse();
3286
- const v = m?.map((E, b) => {
3295
+ const v = p?.map((E, b) => {
3287
3296
  if (yt(E)) {
3288
3297
  const T = o[E.sequenceId];
3289
3298
  return T ? { ...T, ...E } : (console.warn(`Interact: Sequence "${E.sequenceId}" not found in config`), E);
@@ -3452,7 +3461,7 @@ function an(e, t, n, s, i) {
3452
3461
  }, f = c.key, d = A(a.interactionId, e);
3453
3462
  if (o[d] || n.addedInteractions[d] && !i)
3454
3463
  return;
3455
- const p = _e(
3464
+ const m = _e(
3456
3465
  c,
3457
3466
  n,
3458
3467
  {
@@ -3464,28 +3473,28 @@ function an(e, t, n, s, i) {
3464
3473
  },
3465
3474
  { policy: s.reducedMotionPolicy }
3466
3475
  );
3467
- if (p) {
3476
+ if (m) {
3468
3477
  o[d] = !0;
3469
- const m = f && A(f, e);
3478
+ const p = f && A(f, e);
3470
3479
  let h;
3471
- if (m) {
3472
- if (h = w.getController(m), !h)
3480
+ if (p) {
3481
+ if (h = w.getController(p), !h)
3473
3482
  return;
3474
- p.listContainer && h.watchChildList(p.listContainer);
3483
+ m.listContainer && h.watchChildList(m.listContainer);
3475
3484
  } else
3476
3485
  h = t;
3477
- if (z(m || s.key, p))
3486
+ if (z(p || s.key, m))
3478
3487
  return;
3479
3488
  Me(
3480
3489
  h,
3481
3490
  h.element,
3482
- p,
3483
- m || s.key,
3491
+ m,
3492
+ p || s.key,
3484
3493
  "effect"
3485
3494
  );
3486
3495
  const [g, v] = on(
3487
3496
  s,
3488
- p,
3497
+ m,
3489
3498
  t.element,
3490
3499
  t.useFirstChild,
3491
3500
  h.element,
@@ -3495,14 +3504,14 @@ function an(e, t, n, s, i) {
3495
3504
  if (!g || !v)
3496
3505
  return;
3497
3506
  n.addedInteractions[d] = !0;
3498
- const y = m || s.key, $ = x(
3499
- p.conditions || [],
3507
+ const y = p || s.key, $ = x(
3508
+ m.conditions || [],
3500
3509
  n.dataCache.conditions
3501
3510
  );
3502
3511
  r.push([
3503
3512
  y,
3504
3513
  s,
3505
- p,
3514
+ m,
3506
3515
  g,
3507
3516
  v,
3508
3517
  $,
@@ -3542,8 +3551,8 @@ function ln(e, t, n, s, i, o, r, a) {
3542
3551
  return z(y || s, g);
3543
3552
  }))
3544
3553
  return null;
3545
- const d = [], p = cn(e, t, o);
3546
- let m = !1;
3554
+ const d = [], m = cn(e, t, o);
3555
+ let p = !1;
3547
3556
  for (const h of u) {
3548
3557
  const g = h.effectId, v = _e(
3549
3558
  c(h),
@@ -3553,7 +3562,7 @@ function ln(e, t, n, s, i, o, r, a) {
3553
3562
  key: r.updateKey,
3554
3563
  onUpdate: r.onUpdate
3555
3564
  },
3556
- { policy: p, collapsesStagger: p !== "ignore" }
3565
+ { policy: m, collapsesStagger: m !== "ignore" }
3557
3566
  );
3558
3567
  if (!v) continue;
3559
3568
  const y = v.key, $ = y && A(y, s);
@@ -3571,7 +3580,7 @@ function ln(e, t, n, s, i, o, r, a) {
3571
3580
  "effect"
3572
3581
  );
3573
3582
  let S;
3574
- if (a && b === a.controllerKey && v.listContainer === a.listContainer ? (S = be(v, a.elements), S.length > 0 && (m = !0)) : S = Se(
3583
+ if (a && b === a.controllerKey && v.listContainer === a.listContainer ? (S = be(v, a.elements), S.length > 0 && (p = !0)) : S = Se(
3575
3584
  v,
3576
3585
  E.element,
3577
3586
  E.useFirstChild
@@ -3579,7 +3588,7 @@ function ln(e, t, n, s, i, o, r, a) {
3579
3588
  const T = N(v);
3580
3589
  d.push({ target: S, options: T });
3581
3590
  }
3582
- return a && !m ? null : d.length > 0 ? d : null;
3591
+ return a && !p ? null : d.length > 0 ? d : null;
3583
3592
  }
3584
3593
  function Ye(e, t, n) {
3585
3594
  const s = n ? be(e, n) : Se(e, t.element, t.useFirstChild);
@@ -3613,12 +3622,12 @@ function oo(e, t, n, s, i) {
3613
3622
  s.sequences?.forEach((o) => {
3614
3623
  let r;
3615
3624
  if (io(o)) {
3616
- const m = n.dataCache.sequences[o.sequenceId];
3617
- if (!m) {
3625
+ const p = n.dataCache.sequences[o.sequenceId];
3626
+ if (!p) {
3618
3627
  console.warn(`Interact: Sequence "${o.sequenceId}" not found in cache`);
3619
3628
  return;
3620
3629
  }
3621
- r = { ...m, ...o };
3630
+ r = { ...p, ...o };
3622
3631
  } else
3623
3632
  r = o;
3624
3633
  const a = r.sequenceId || ne(), l = A(`${e}::seq::${a}`, e);
@@ -3638,12 +3647,12 @@ function oo(e, t, n, s, i) {
3638
3647
  );
3639
3648
  if (!c) return;
3640
3649
  if (i && n.addedInteractions[l]) {
3641
- const m = un(
3650
+ const p = un(
3642
3651
  t,
3643
3652
  s.listContainer,
3644
3653
  i
3645
3654
  );
3646
- w.addToSequence(l, c, m);
3655
+ w.addToSequence(l, c, p);
3647
3656
  const h = w.getSequence(
3648
3657
  l,
3649
3658
  Be(r, s, n),
@@ -3668,11 +3677,11 @@ function oo(e, t, n, s, i) {
3668
3677
  ), d = x(
3669
3678
  s.conditions || [],
3670
3679
  n.dataCache.conditions
3671
- ), p = Ye(s, t, i);
3672
- p && (n.addedInteractions[l] = !0, Ue(
3680
+ ), m = Ye(s, t, i);
3681
+ m && (n.addedInteractions[l] = !0, Ue(
3673
3682
  s,
3674
3683
  r,
3675
- p,
3684
+ m,
3676
3685
  f,
3677
3686
  d
3678
3687
  ));
@@ -3688,10 +3697,10 @@ function ro(e, t, n, s, i) {
3688
3697
  );
3689
3698
  if (f && !f.matches)
3690
3699
  return !1;
3691
- const d = c.key && A(c.key, e), p = w.getController(d);
3692
- if (!p)
3700
+ const d = c.key && A(c.key, e), m = w.getController(d);
3701
+ if (!m)
3693
3702
  return !0;
3694
- const m = u.sequenceId || ne(), h = A(`${d}::seq::${m}`, d);
3703
+ const p = u.sequenceId || ne(), h = A(`${d}::seq::${p}`, d);
3695
3704
  if (n.addedInteractions[h] && !i || z(d, c))
3696
3705
  return !0;
3697
3706
  const v = ln(
@@ -3699,7 +3708,7 @@ function ro(e, t, n, s, i) {
3699
3708
  c,
3700
3709
  h,
3701
3710
  d,
3702
- p,
3711
+ m,
3703
3712
  n,
3704
3713
  {
3705
3714
  updateKey: e,
@@ -3719,7 +3728,7 @@ function ro(e, t, n, s, i) {
3719
3728
  ), $ = x(
3720
3729
  c.conditions || [],
3721
3730
  n.dataCache.conditions
3722
- ), E = Ye(c, p);
3731
+ ), E = Ye(c, m);
3723
3732
  return E && (n.addedInteractions[h] = !0, Ue(
3724
3733
  c,
3725
3734
  u,
@@ -3736,16 +3745,16 @@ function fn(e, t, n, s, i) {
3736
3745
  const f = A(c, e);
3737
3746
  if (n.addedInteractions[f] && !i)
3738
3747
  return;
3739
- r[c].some(({ effect: p, ...m }, h) => {
3748
+ r[c].some(({ effect: m, ...p }, h) => {
3740
3749
  const g = F(
3741
- m.conditions || [],
3750
+ p.conditions || [],
3742
3751
  n.dataCache.conditions
3743
3752
  );
3744
3753
  if (g && !g.matches)
3745
3754
  return !1;
3746
- const v = p.effectId, y = {
3755
+ const v = m.effectId, y = {
3747
3756
  ...n.dataCache.effects[v] || {},
3748
- ...p,
3757
+ ...m,
3749
3758
  effectId: v
3750
3759
  };
3751
3760
  if (s && y.listContainer !== s)
@@ -3760,11 +3769,11 @@ function fn(e, t, n, s, i) {
3760
3769
  t.update();
3761
3770
  }
3762
3771
  },
3763
- { policy: m.reducedMotionPolicy }
3772
+ { policy: p.reducedMotionPolicy }
3764
3773
  );
3765
3774
  if ($) {
3766
- const E = m.key && A(m.key, e), b = w.getController(E);
3767
- if (!b || z(E, m) || z(e, $))
3775
+ const E = p.key && A(p.key, e), b = w.getController(E);
3776
+ if (!b || z(E, p) || z(e, $))
3768
3777
  return !0;
3769
3778
  Me(
3770
3779
  t,
@@ -3774,7 +3783,7 @@ function fn(e, t, n, s, i) {
3774
3783
  "effect"
3775
3784
  ), $.listContainer && t.watchChildList($.listContainer);
3776
3785
  const [S, T] = on(
3777
- m,
3786
+ p,
3778
3787
  $,
3779
3788
  b.element,
3780
3789
  b.useFirstChild,
@@ -3792,7 +3801,7 @@ function fn(e, t, n, s, i) {
3792
3801
  );
3793
3802
  return l.push([
3794
3803
  e,
3795
- m,
3804
+ p,
3796
3805
  $,
3797
3806
  S,
3798
3807
  T,
@@ -3830,14 +3839,14 @@ function Et(e, t, n, s, i, o, r, a, l) {
3830
3839
  }
3831
3840
  let c;
3832
3841
  if (n === "animationEnd") {
3833
- const f = o.effectId, d = l ? w.getInstance(l) : void 0, p = d?.dataCache.effects[f], m = p && _e(p, d, {
3842
+ const f = o.effectId, d = l ? w.getInstance(l) : void 0, m = d?.dataCache.effects[f], p = m && _e(m, d, {
3834
3843
  id: `${l}::animationEnd::${f}`,
3835
3844
  key: l,
3836
3845
  onUpdate: () => {
3837
3846
  w.getController(l)?.update();
3838
3847
  }
3839
3848
  });
3840
- m && (c = N(m));
3849
+ p && (c = N(p));
3841
3850
  }
3842
3851
  W[n]?.add(t, s, i, o, {
3843
3852
  targetController: u,
@@ -4017,4 +4026,4 @@ export {
4017
4026
  uo as g,
4018
4027
  ho as r
4019
4028
  };
4020
- //# sourceMappingURL=index-CHEx5VT7.mjs.map
4029
+ //# sourceMappingURL=index-Bn1cDv1F.mjs.map