@cliquify.me/elements-ui 8.0.15 → 8.0.16

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.
Files changed (2) hide show
  1. package/dist/index.es.js +809 -809
  2. package/package.json +6 -6
package/dist/index.es.js CHANGED
@@ -1,20 +1,20 @@
1
1
  var qn = Object.defineProperty;
2
2
  var Tn = (t, r, n) => r in t ? qn(t, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[r] = n;
3
3
  var Bt = (t, r, n) => Tn(t, typeof r != "symbol" ? r + "" : r, n);
4
- import { jsx as f, jsxs as bt, Fragment as kt } from "react/jsx-runtime";
4
+ import { jsx as f, jsxs as yt, Fragment as kt } from "react/jsx-runtime";
5
5
  import { Sequence as sn, AbsoluteFill as Nr, Audio as an, Easing as k, interpolate as W, HtmlInCanvas as Dn, useCurrentFrame as Nt, OffthreadVideo as sr, Img as qt, useVideoConfig as cn, delayRender as to, continueRender as Gr, cancelRender as ro, spring as Mt, random as no } from "remotion";
6
6
  import { TransitionSeries as dn, Transitions as oo } from "@cliquify.me/transitions";
7
7
  import { BoxAnim as jt, ContentAnim as At, MaskAnim as Tt } from "@cliquify.me/animations";
8
8
  import un from "@emotion/styled";
9
- import { css as pr } from "@emotion/react";
10
- import Vt, { Component as eo, useState as fr, useEffect as er, useMemo as yr, useRef as _r } from "react";
9
+ import { css as hr } from "@emotion/react";
10
+ import Vt, { Component as eo, useState as fr, useEffect as er, useMemo as yr, useRef as Er } from "react";
11
11
  import { chromaticAberration as so } from "@remotion/effects/chromatic-aberration";
12
12
  import { noise as ao } from "@remotion/effects/noise";
13
13
  import { pixelate as co } from "@remotion/effects/pixelate";
14
14
  import { ENTER_EDIT_MODE as io } from "@cliquify.me/state";
15
15
  import { getAudioData as uo, visualizeAudio as lo } from "@remotion/media-utils";
16
- import { isEqual as ho, cloneDeep as or } from "lodash";
17
- import { Circle as po, Triangle as fo, Star as yo, Polygon as bo, Ellipse as vo } from "@remotion/shapes";
16
+ import { isEqual as po, cloneDeep as or } from "lodash";
17
+ import { Circle as ho, Triangle as fo, Star as yo, Polygon as bo, Ellipse as vo } from "@remotion/shapes";
18
18
  const wt = (t, r) => {
19
19
  const n = t.from / 1e3 * r, s = t.to / 1e3 * r - n;
20
20
  return { from: n, durationInFrames: s };
@@ -36,7 +36,7 @@ const wt = (t, r) => {
36
36
  overflow: "hidden",
37
37
  ...n
38
38
  };
39
- }, hn = (t, r) => {
39
+ }, pn = (t, r) => {
40
40
  const n = `${Math.min(
41
41
  r.width || t.width || 0,
42
42
  r.height || t.height || 0
@@ -145,7 +145,7 @@ const wt = (t, r) => {
145
145
  }
146
146
  )
147
147
  }
148
- ), mt = ({
148
+ ), gt = ({
149
149
  item: t,
150
150
  options: r,
151
151
  children: n
@@ -157,18 +157,18 @@ const wt = (t, r) => {
157
157
  to: t.display.to
158
158
  },
159
159
  c
160
- ), p = s.crop || {
160
+ ), h = s.crop || {
161
161
  width: t.details.width,
162
162
  height: t.details.height
163
- }, o = ((y = s == null ? void 0 : s.background) == null ? void 0 : y.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", h = ["template", "composition"].includes(t.type), l = ["image", "video"].includes(t.type), u = ["text", "caption"].includes(t.type);
164
- let d = Pt(s, p, { background: o });
163
+ }, o = ((y = s == null ? void 0 : s.background) == null ? void 0 : y.type) === "color" ? (v = s == null ? void 0 : s.background) == null ? void 0 : v.value : typeof (s == null ? void 0 : s.background) == "string" ? s == null ? void 0 : s.background : "transparent", p = ["template", "composition"].includes(t.type), l = ["image", "video"].includes(t.type), u = ["text", "caption"].includes(t.type);
164
+ let d = Pt(s, h, { background: o });
165
165
  if (l) {
166
166
  const { background: m, ...g } = d;
167
167
  d = g;
168
168
  }
169
169
  u && (delete d.boxShadow, delete d.filter);
170
- const b = h ? "!pointer-events-auto" : "";
171
- return a ? /* @__PURE__ */ bt(
170
+ const b = p ? "!pointer-events-auto" : "";
171
+ return a ? /* @__PURE__ */ yt(
172
172
  dn.Sequence,
173
173
  {
174
174
  durationInFrames: e,
@@ -204,7 +204,7 @@ const wt = (t, r) => {
204
204
  ]
205
205
  },
206
206
  t.id
207
- ) : /* @__PURE__ */ bt(
207
+ ) : /* @__PURE__ */ yt(
208
208
  sn,
209
209
  {
210
210
  from: i,
@@ -245,7 +245,7 @@ const wt = (t, r) => {
245
245
  t.id
246
246
  );
247
247
  };
248
- function pn({
248
+ function hn({
249
249
  item: t,
250
250
  options: r
251
251
  }) {
@@ -261,10 +261,10 @@ function pn({
261
261
  pauseWhenBuffering: !0
262
262
  }
263
263
  );
264
- return mt({ item: t, options: r, children: a });
264
+ return gt({ item: t, options: r, children: a });
265
265
  }
266
266
  const Ft = (t, r, n, s, c) => {
267
- let a = null, i = null, e = null, p = null;
267
+ let a = null, i = null, e = null, h = null;
268
268
  return c != null && c.isAnimationEditor || c != null && c.insideTemplate, t != null && t.in && (a = [], t.in.composition.forEach((o) => {
269
269
  var b, y, v, x, M;
270
270
  a.push({
@@ -278,7 +278,7 @@ const Ft = (t, r, n, s, c) => {
278
278
  persist: o.persist,
279
279
  details: o.details
280
280
  }), o.property === "translateX" || o.property === "translateY" || o.property.toLowerCase().includes("slide");
281
- const h = !!((b = o.details) != null && b.fade || o.fade), l = o.property === "moveScaleIn" || o.property === "moveScaleOut", u = o.property === "blurSlideV2In" || o.property === "blurSlideV2Out";
281
+ const p = !!((b = o.details) != null && b.fade || o.fade), l = o.property === "moveScaleIn" || o.property === "moveScaleOut", u = o.property === "blurSlideV2In" || o.property === "blurSlideV2Out";
282
282
  if (l) {
283
283
  const m = ((y = o.details) == null ? void 0 : y.translateY) || 0;
284
284
  a.push({
@@ -303,7 +303,7 @@ const Ft = (t, r, n, s, c) => {
303
303
  persist: o.persist
304
304
  });
305
305
  }
306
- if (h && a.push({
306
+ if (p && a.push({
307
307
  property: "opacity",
308
308
  from: 0,
309
309
  to: 1,
@@ -413,10 +413,10 @@ const Ft = (t, r, n, s, c) => {
413
413
  persist: o.persist,
414
414
  details: o.details
415
415
  });
416
- })), t != null && t.timed && s !== void 0 && n !== void 0 && (p = [], t.timed.composition.forEach((o) => {
416
+ })), t != null && t.timed && s !== void 0 && n !== void 0 && (h = [], t.timed.composition.forEach((o) => {
417
417
  var x;
418
- const h = o.delay, l = r.display.from * s / 1e3, u = n - l - h, d = o.property === "hide-show" || o.property === "hide" || o.property === "show", b = d ? !0 : u >= 0;
419
- p.push({
418
+ const p = o.delay, l = r.display.from * s / 1e3, u = n - l - p, d = o.property === "hide-show" || o.property === "hide" || o.property === "show", b = d ? !0 : u >= 0;
419
+ h.push({
420
420
  id: o.id,
421
421
  property: d || b ? o.property : "none",
422
422
  from: Number(o.from ?? 0),
@@ -428,7 +428,7 @@ const Ft = (t, r, n, s, c) => {
428
428
  details: o.details
429
429
  });
430
430
  const y = o.property === "translateX" || o.property === "translateY" || o.property.toLowerCase().includes("slide"), v = !!((x = o.details) != null && x.fade || o.fade);
431
- y && v && p.push({
431
+ y && v && h.push({
432
432
  property: b ? "opacity" : "none",
433
433
  from: 0,
434
434
  to: 1,
@@ -441,7 +441,7 @@ const Ft = (t, r, n, s, c) => {
441
441
  animationIn: a,
442
442
  animationOut: i,
443
443
  animationLoop: e,
444
- animationTimed: p
444
+ animationTimed: h
445
445
  };
446
446
  }, xo = (t) => {
447
447
  const c = t % 30;
@@ -467,7 +467,7 @@ const Ft = (t, r, n, s, c) => {
467
467
  transition: scale 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
468
468
  vertical-align: baseline;
469
469
 
470
- ${(t) => t.animation === "letterPopline" && t.isActive && pr`
470
+ ${(t) => t.animation === "letterPopline" && t.isActive && hr`
471
471
  text-decoration: underline;
472
472
  text-decoration-color: #9238ef;
473
473
  text-decoration-thickness: 0.2em;
@@ -491,7 +491,7 @@ const Ft = (t, r, n, s, c) => {
491
491
  -webkit-text-fill-color: unset !important;
492
492
  }
493
493
 
494
- ${(t) => t.isActive && pr`
494
+ ${(t) => t.isActive && hr`
495
495
  &::before {
496
496
  opacity: 1;
497
497
  background: ${t.activeFillColor};
@@ -503,7 +503,7 @@ const Ft = (t, r, n, s, c) => {
503
503
  margin: 0;
504
504
  padding: 0;
505
505
 
506
- ${(t) => t.wordColor.includes("gradient") ? pr`
506
+ ${(t) => t.wordColor.includes("gradient") ? hr`
507
507
  background: ${t.wordColor};
508
508
  background-size: 100% 100%;
509
509
  -webkit-background-clip: text;
@@ -518,7 +518,7 @@ const Ft = (t, r, n, s, c) => {
518
518
  background: none !important;
519
519
  text-shadow: none !important;
520
520
  }
521
- ` : pr`
521
+ ` : hr`
522
522
  color: ${t.wordColor};
523
523
  `}
524
524
  `, Mo = ["letter", "letterUmi", "letterTracy"], wo = ["letterKaraoke", "letterPopline"], Io = ({
@@ -530,10 +530,10 @@ const Ft = (t, r, n, s, c) => {
530
530
  color: a,
531
531
  animation: i,
532
532
  currentFrame: e,
533
- fps: p,
533
+ fps: h,
534
534
  textDecoration: o
535
535
  }) => {
536
- const { start: h, end: l } = t, u = (h + r) / 1e3 * p, d = (l + r) / 1e3 * p, b = e >= u && e < d, y = e >= u, v = b ? n : y ? c : a, x = wo.includes(i) && b ? 1.2 : 1, M = t.word.length, m = d - u;
536
+ const { start: p, end: l } = t, u = (p + r) / 1e3 * h, d = (l + r) / 1e3 * h, b = e >= u && e < d, y = e >= u, v = b ? n : y ? c : a, x = wo.includes(i) && b ? 1.2 : 1, M = t.word.length, m = d - u;
537
537
  return /* @__PURE__ */ f(
538
538
  $o,
539
539
  {
@@ -575,14 +575,14 @@ function fn({
575
575
  item: t,
576
576
  options: r
577
577
  }) {
578
- const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: e, animationOut: p, animationTimed: o } = Ft(
578
+ const { fps: n, frame: s } = r, { details: c, display: a, animations: i } = t, { animationIn: e, animationOut: h, animationTimed: o } = Ft(
579
579
  i,
580
580
  t,
581
581
  s,
582
582
  n,
583
583
  r
584
- ), { from: h, durationInFrames: l } = wt(t.display, n), u = Array.isArray(c.words) ? c.words : [], [d] = u, b = a.from - ((d == null ? void 0 : d.start) || 0);
585
- let y = Math.max((s ?? 0) - h, 0), v = {};
584
+ ), { from: p, durationInFrames: l } = wt(t.display, n), u = Array.isArray(c.words) ? c.words : [], [d] = u, b = a.from - ((d == null ? void 0 : d.start) || 0);
585
+ let y = Math.max((s ?? 0) - p, 0), v = {};
586
586
  switch (c == null ? void 0 : c.animation) {
587
587
  case "letterElla":
588
588
  v = xo(y);
@@ -611,7 +611,7 @@ function fn({
611
611
  transform: `scale(${v.scale})`
612
612
  }
613
613
  }, M = (s || 0) - t.display.from * n / 1e3, { boxShadow: m, ...g } = Pt(c), { color: w, textShadow: I, ...S } = Dt(c);
614
- return mt({
614
+ return gt({
615
615
  item: t,
616
616
  options: r,
617
617
  children: /* @__PURE__ */ f(
@@ -619,7 +619,7 @@ function fn({
619
619
  {
620
620
  style: g,
621
621
  animationIn: e,
622
- animationOut: p,
622
+ animationOut: h,
623
623
  frame: M,
624
624
  durationInFrames: l,
625
625
  children: /* @__PURE__ */ f(
@@ -671,26 +671,26 @@ const yn = ({
671
671
  options: r
672
672
  }) => {
673
673
  var u, d, b, y;
674
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Ft(
674
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: h } = Ft(
675
675
  a,
676
676
  t,
677
677
  s,
678
678
  n,
679
679
  r
680
- ), { durationInFrames: o } = wt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, l = /* @__PURE__ */ f(
680
+ ), { durationInFrames: o } = wt(t.display, n), p = (s || 0) - t.display.from * n / 1e3, l = /* @__PURE__ */ f(
681
681
  jt,
682
682
  {
683
683
  style: Pt(c),
684
684
  animationIn: i,
685
685
  animationOut: e,
686
- frame: h,
686
+ frame: p,
687
687
  durationInFrames: o,
688
688
  children: /* @__PURE__ */ f(
689
689
  At,
690
690
  {
691
- animationTimed: p,
691
+ animationTimed: h,
692
692
  durationInFrames: o,
693
- frame: h,
693
+ frame: p,
694
694
  style: c,
695
695
  children: /* @__PURE__ */ f(
696
696
  Tt,
@@ -703,9 +703,9 @@ const yn = ({
703
703
  ...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || [],
704
704
  ...i || [],
705
705
  ...e || [],
706
- ...p || []
706
+ ...h || []
707
707
  ],
708
- frame: h,
708
+ frame: p,
709
709
  durationInFrames: o,
710
710
  children: /* @__PURE__ */ f("div", { dangerouslySetInnerHTML: { __html: t.details.svgString } })
711
711
  }
@@ -714,9 +714,9 @@ const yn = ({
714
714
  )
715
715
  }
716
716
  );
717
- return mt({ item: t, options: r, children: l });
717
+ return gt({ item: t, options: r, children: l });
718
718
  };
719
- class Er extends eo {
719
+ class _r extends eo {
720
720
  constructor(r) {
721
721
  super(r), this.state = { hasError: !1 };
722
722
  }
@@ -751,15 +751,15 @@ const bn = ({
751
751
  from: a = 0,
752
752
  to: i = 1,
753
753
  width: e,
754
- height: p,
754
+ height: h,
755
755
  borderRadius: o,
756
- borderWidth: h,
756
+ borderWidth: p,
757
757
  borderColor: l,
758
758
  boxShadow: u,
759
759
  marqueeDetails: d,
760
760
  effects: b
761
761
  }) => {
762
- const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = Math.max(0, v - (s || 0)), M = Math.min(1, Math.max(0, x / (c || 1))), m = e || 300, g = p || 300, w = (d == null ? void 0 : d.direction) || "horizontal", I = w === "static", S = Math.min(15, Math.max(1, Number((d == null ? void 0 : d.repeatX) ?? 5))), $ = Math.min(15, Math.max(1, Number((d == null ? void 0 : d.repeatY) ?? 5))), N = (d == null ? void 0 : d.baseSpeed) !== void 0 ? Number(d.baseSpeed) : 2, F = (d == null ? void 0 : d.speedVariation) !== void 0 ? Number(d.speedVariation) : 0.5, B = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialBaseSpeed) !== void 0 ? Number(d.initialBaseSpeed) : N, X = d != null && d.hasInitialValue ? B + (N - B) * M : N, P = I ? 0 : X * 400, R = I ? 0 : X * 400, E = (d == null ? void 0 : d.scaleFactor) !== void 0 ? Number(d.scaleFactor) : 1, Y = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialScaleFactor) !== void 0 ? Number(d.initialScaleFactor) : E, C = d != null && d.hasInitialValue ? Y + (E - Y) * M : E, U = (d == null ? void 0 : d.lineOffset) !== void 0 ? Number(d.lineOffset) : 0.5, z = (d == null ? void 0 : d.gapX) !== void 0 ? Number(d.gapX) : 60, D = (d == null ? void 0 : d.gapY) !== void 0 ? Number(d.gapY) : 60, dt = z / 100 * m, et = D / 100 * g, K = m, nt = g, G = K * C + dt, Q = nt * C + et, ht = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, O = w === "vertical" || w === "up" || w === "down", j = w === "diagonal", T = (S - 1) / 2, lt = ($ - 1) / 2, q = $, Z = S, at = Array.from({ length: q }, (rt, ct) => ct - lt), tt = Array.from({ length: Z }, (rt, ct) => ct - T), yt = (rt, ct, st, ut) => /* @__PURE__ */ f(
762
+ const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = Math.max(0, v - (s || 0)), M = Math.min(1, Math.max(0, x / (c || 1))), m = e || 300, g = h || 300, w = (d == null ? void 0 : d.direction) || "horizontal", I = w === "static", S = Math.min(15, Math.max(1, Number((d == null ? void 0 : d.repeatX) ?? 5))), $ = Math.min(15, Math.max(1, Number((d == null ? void 0 : d.repeatY) ?? 5))), N = (d == null ? void 0 : d.baseSpeed) !== void 0 ? Number(d.baseSpeed) : 2, F = (d == null ? void 0 : d.speedVariation) !== void 0 ? Number(d.speedVariation) : 0.5, B = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialBaseSpeed) !== void 0 ? Number(d.initialBaseSpeed) : N, X = d != null && d.hasInitialValue ? B + (N - B) * M : N, P = I ? 0 : X * 400, R = I ? 0 : X * 400, _ = (d == null ? void 0 : d.scaleFactor) !== void 0 ? Number(d.scaleFactor) : 1, Y = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialScaleFactor) !== void 0 ? Number(d.initialScaleFactor) : _, C = d != null && d.hasInitialValue ? Y + (_ - Y) * M : _, U = (d == null ? void 0 : d.lineOffset) !== void 0 ? Number(d.lineOffset) : 0.5, z = (d == null ? void 0 : d.gapX) !== void 0 ? Number(d.gapX) : 60, tt = (d == null ? void 0 : d.gapY) !== void 0 ? Number(d.gapY) : 60, dt = z / 100 * m, et = tt / 100 * g, K = m, nt = g, G = K * C + dt, Q = nt * C + et, pt = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, O = w === "vertical" || w === "up" || w === "down", j = w === "diagonal", D = (S - 1) / 2, lt = ($ - 1) / 2, T = $, Z = S, at = Array.from({ length: T }, (rt, ct) => ct - lt), mt = Array.from({ length: Z }, (rt, ct) => ct - D), J = (rt, ct, st, ut) => /* @__PURE__ */ f(
763
763
  "div",
764
764
  {
765
765
  style: {
@@ -771,10 +771,10 @@ const bn = ({
771
771
  width: `${K}px`,
772
772
  height: `${nt}px`,
773
773
  borderRadius: o || 0,
774
- boxShadow: ht,
774
+ boxShadow: pt,
775
775
  opacity: ut ? 1 : 0.85
776
776
  },
777
- children: /* @__PURE__ */ bt(
777
+ children: /* @__PURE__ */ yt(
778
778
  "div",
779
779
  {
780
780
  style: {
@@ -806,14 +806,14 @@ const bn = ({
806
806
  }
807
807
  }
808
808
  ),
809
- h && l ? /* @__PURE__ */ f(
809
+ p && l ? /* @__PURE__ */ f(
810
810
  "div",
811
811
  {
812
812
  style: {
813
813
  position: "absolute",
814
814
  inset: 0,
815
815
  borderRadius: o || 0,
816
- border: `${h}px solid ${l}`,
816
+ border: `${p}px solid ${l}`,
817
817
  boxSizing: "border-box",
818
818
  pointerEvents: "none"
819
819
  }
@@ -835,13 +835,13 @@ const bn = ({
835
835
  overflow: "visible",
836
836
  borderRadius: o || 0
837
837
  },
838
- children: tt.map((rt, ct) => {
838
+ children: mt.map((rt, ct) => {
839
839
  let st = ct % 2 === 0 ? 1 : -1;
840
840
  w === "up" && (st = -1), w === "down" && (st = 1);
841
- const ut = 1 + ct % 2 * (F * 0.5), pt = R > 0 && st !== 0 ? st * (x * R * 0.1 * ut) + rt * (Q * U) : rt * (Q * U), vt = R === 0 || st === 0 ? 0 : (pt % Q + Q) % Q - Q / 2;
841
+ const ut = 1 + ct % 2 * (F * 0.5), ht = R > 0 && st !== 0 ? st * (x * R * 0.1 * ut) + rt * (Q * U) : rt * (Q * U), bt = R === 0 || st === 0 ? 0 : (ht % Q + Q) % Q - Q / 2;
842
842
  return at.map(($t, It) => {
843
- const ft = rt * G, St = $t * Q + vt;
844
- return yt(
843
+ const ft = rt * G, St = $t * Q + bt;
844
+ return J(
845
845
  `v-${ct}-${It}`,
846
846
  ft,
847
847
  St,
@@ -861,10 +861,10 @@ const bn = ({
861
861
  borderRadius: o || 0
862
862
  },
863
863
  children: at.map((rt, ct) => {
864
- const st = ct % 2 === 0 ? 1 : -1, ut = ct % 2 === 0 ? 1 : -1, pt = 1 + ct % 2 * (F * 0.5), vt = P > 0 ? st * (x * P * 0.1 * pt) + rt * (G * U) : rt * (G * U), $t = P === 0 ? 0 : (vt % G + G) % G - G / 2, It = R > 0 ? ut * (x * R * 0.1 * pt) + rt * (Q * U) : rt * (Q * U), ft = R === 0 ? 0 : (It % Q + Q) % Q - Q / 2;
865
- return tt.map((St, Yt) => {
864
+ const st = ct % 2 === 0 ? 1 : -1, ut = ct % 2 === 0 ? 1 : -1, ht = 1 + ct % 2 * (F * 0.5), bt = P > 0 ? st * (x * P * 0.1 * ht) + rt * (G * U) : rt * (G * U), $t = P === 0 ? 0 : (bt % G + G) % G - G / 2, It = R > 0 ? ut * (x * R * 0.1 * ht) + rt * (Q * U) : rt * (Q * U), ft = R === 0 ? 0 : (It % Q + Q) % Q - Q / 2;
865
+ return mt.map((St, Yt) => {
866
866
  const Rt = St * G + $t, Xt = rt * Q + ft;
867
- return yt(
867
+ return J(
868
868
  `d-${ct}-${Yt}`,
869
869
  Rt,
870
870
  Xt,
@@ -886,10 +886,10 @@ const bn = ({
886
886
  children: at.map((rt, ct) => {
887
887
  let st = ct % 2 === 0 ? 1 : -1;
888
888
  w === "left" && (st = -1), w === "right" && (st = 1);
889
- const ut = 1 + ct % 2 * (F * 0.5), pt = P > 0 && st !== 0 ? st * (x * P * 0.1 * ut) + rt * (G * U) : rt * (G * U), vt = P === 0 || st === 0 ? 0 : (pt % G + G) % G - G / 2;
890
- return tt.map(($t, It) => {
891
- const ft = $t * G + vt, St = rt * Q;
892
- return yt(
889
+ const ut = 1 + ct % 2 * (F * 0.5), ht = P > 0 && st !== 0 ? st * (x * P * 0.1 * ut) + rt * (G * U) : rt * (G * U), bt = P === 0 || st === 0 ? 0 : (ht % G + G) % G - G / 2;
890
+ return mt.map(($t, It) => {
891
+ const ft = $t * G + bt, St = rt * Q;
892
+ return J(
893
893
  `h-${ct}-${It}`,
894
894
  ft,
895
895
  St,
@@ -908,18 +908,18 @@ const bn = ({
908
908
  from: a = 0,
909
909
  to: i = 1,
910
910
  width: e,
911
- height: p,
911
+ height: h,
912
912
  borderRadius: o,
913
- borderWidth: h,
913
+ borderWidth: p,
914
914
  borderColor: l,
915
915
  boxShadow: u,
916
916
  echoesDetails: d,
917
917
  effects: b
918
918
  }) => {
919
- const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = e || 300, M = p || 300, m = (d == null ? void 0 : d.keepStill) || "both", g = Number((d == null ? void 0 : d.toRepeatCount) ?? 5), w = Number((d == null ? void 0 : d.toScaleDown) ?? 0.3), I = Number((d == null ? void 0 : d.toCenterX) ?? 0.5), S = Number((d == null ? void 0 : d.toCenterY) ?? 0.5), $ = (d == null ? void 0 : d.initialRepeatCount) !== void 0 ? Number(d.initialRepeatCount) : g, N = (d == null ? void 0 : d.initialScaleDown) !== void 0 ? Number(d.initialScaleDown) : 1, F = (d == null ? void 0 : d.initialCenterX) !== void 0 ? Number(d.initialCenterX) : I, B = (d == null ? void 0 : d.initialCenterY) !== void 0 ? Number(d.initialCenterY) : S, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1)));
920
- let E = a + (i - a) * P;
921
- m === "initial" ? E = 0 : m === "final" && (E = 1);
922
- const Y = Math.max(1, Math.round(W(E, [0, 1], [$, g]))), C = W(E, [0, 1], [N, w]), U = W(E, [0, 1], [F, I]), z = W(E, [0, 1], [B, S]), D = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, dt = Array.from({ length: Y }, (et, K) => K);
919
+ const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = e || 300, M = h || 300, m = (d == null ? void 0 : d.keepStill) || "both", g = Number((d == null ? void 0 : d.toRepeatCount) ?? 5), w = Number((d == null ? void 0 : d.toScaleDown) ?? 0.3), I = Number((d == null ? void 0 : d.toCenterX) ?? 0.5), S = Number((d == null ? void 0 : d.toCenterY) ?? 0.5), $ = (d == null ? void 0 : d.initialRepeatCount) !== void 0 ? Number(d.initialRepeatCount) : g, N = (d == null ? void 0 : d.initialScaleDown) !== void 0 ? Number(d.initialScaleDown) : 1, F = (d == null ? void 0 : d.initialCenterX) !== void 0 ? Number(d.initialCenterX) : I, B = (d == null ? void 0 : d.initialCenterY) !== void 0 ? Number(d.initialCenterY) : S, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1)));
920
+ let _ = a + (i - a) * P;
921
+ m === "initial" ? _ = 0 : m === "final" && (_ = 1);
922
+ const Y = Math.max(1, Math.round(W(_, [0, 1], [$, g]))), C = W(_, [0, 1], [N, w]), U = W(_, [0, 1], [F, I]), z = W(_, [0, 1], [B, S]), tt = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0, dt = Array.from({ length: Y }, (et, K) => K);
923
923
  return /* @__PURE__ */ f(
924
924
  "div",
925
925
  {
@@ -944,10 +944,10 @@ const bn = ({
944
944
  transform: `translate(-50%, -50%) translate(${G}px, ${Q}px) scale(${nt})`,
945
945
  transformOrigin: "center center",
946
946
  borderRadius: o || 0,
947
- boxShadow: D,
947
+ boxShadow: tt,
948
948
  zIndex: et + 1
949
949
  },
950
- children: /* @__PURE__ */ bt(
950
+ children: /* @__PURE__ */ yt(
951
951
  "div",
952
952
  {
953
953
  style: {
@@ -979,14 +979,14 @@ const bn = ({
979
979
  }
980
980
  }
981
981
  ),
982
- h && l ? /* @__PURE__ */ f(
982
+ p && l ? /* @__PURE__ */ f(
983
983
  "div",
984
984
  {
985
985
  style: {
986
986
  position: "absolute",
987
987
  inset: 0,
988
988
  borderRadius: o || 0,
989
- border: `${h}px solid ${l}`,
989
+ border: `${p}px solid ${l}`,
990
990
  boxSizing: "border-box",
991
991
  pointerEvents: "none"
992
992
  }
@@ -1010,15 +1010,15 @@ const bn = ({
1010
1010
  from: a = 0,
1011
1011
  to: i = 1,
1012
1012
  width: e,
1013
- height: p,
1013
+ height: h,
1014
1014
  borderRadius: o,
1015
- borderWidth: h,
1015
+ borderWidth: p,
1016
1016
  borderColor: l,
1017
1017
  boxShadow: u,
1018
1018
  wiggleDetails: d,
1019
1019
  effects: b
1020
1020
  }) => {
1021
- const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = e || 300, M = p || 300, m = Number((d == null ? void 0 : d.wiggleX) ?? 20), g = Number((d == null ? void 0 : d.wiggleY) ?? 20), w = Number((d == null ? void 0 : d.speed) ?? 3), I = Number((d == null ? void 0 : d.angle) ?? 10), S = Number((d == null ? void 0 : d.seed) ?? 1), $ = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialWiggleX) !== void 0 ? Number(d.initialWiggleX) : m, N = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialWiggleY) !== void 0 ? Number(d.initialWiggleY) : g, F = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialSpeed) !== void 0 ? Number(d.initialSpeed) : w, B = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialAngle) !== void 0 ? Number(d.initialAngle) : I, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1))), R = d != null && d.hasInitialValue ? $ + (m - $) * P : m, E = d != null && d.hasInitialValue ? N + (g - N) * P : g, Y = d != null && d.hasInitialValue ? F + (w - F) * P : w, C = d != null && d.hasInitialValue ? B + (I - B) * P : I, U = v * (Y * 0.08), z = S * 12.345, D = Math.sin(U + z) * Math.cos(U * 0.65 + z) * R, dt = Math.cos(U * 0.85 + z) * Math.sin(U * 1.15 + z) * E, et = Math.sin(U * 0.9 + z * 1.35) * C, K = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0;
1021
+ const y = Nt(), v = typeof n == "number" && !isNaN(n) ? n : y, x = e || 300, M = h || 300, m = Number((d == null ? void 0 : d.wiggleX) ?? 20), g = Number((d == null ? void 0 : d.wiggleY) ?? 20), w = Number((d == null ? void 0 : d.speed) ?? 3), I = Number((d == null ? void 0 : d.angle) ?? 10), S = Number((d == null ? void 0 : d.seed) ?? 1), $ = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialWiggleX) !== void 0 ? Number(d.initialWiggleX) : m, N = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialWiggleY) !== void 0 ? Number(d.initialWiggleY) : g, F = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialSpeed) !== void 0 ? Number(d.initialSpeed) : w, B = d != null && d.hasInitialValue && (d == null ? void 0 : d.initialAngle) !== void 0 ? Number(d.initialAngle) : I, X = Math.max(0, v - (s || 0)), P = Math.min(1, Math.max(0, X / (c || 1))), R = d != null && d.hasInitialValue ? $ + (m - $) * P : m, _ = d != null && d.hasInitialValue ? N + (g - N) * P : g, Y = d != null && d.hasInitialValue ? F + (w - F) * P : w, C = d != null && d.hasInitialValue ? B + (I - B) * P : I, U = v * (Y * 0.08), z = S * 12.345, tt = Math.sin(U + z) * Math.cos(U * 0.65 + z) * R, dt = Math.cos(U * 0.85 + z) * Math.sin(U * 1.15 + z) * _, et = Math.sin(U * 0.9 + z * 1.35) * C, K = u ? typeof u == "string" ? u : `${u.x ?? 0}px ${u.y ?? 0}px ${u.blur ?? 0}px ${u.color ?? ""}` : void 0;
1022
1022
  return /* @__PURE__ */ f(
1023
1023
  "div",
1024
1024
  {
@@ -1028,7 +1028,7 @@ const bn = ({
1028
1028
  position: "relative",
1029
1029
  overflow: "visible"
1030
1030
  },
1031
- children: /* @__PURE__ */ bt(
1031
+ children: /* @__PURE__ */ yt(
1032
1032
  "div",
1033
1033
  {
1034
1034
  style: {
@@ -1037,7 +1037,7 @@ const bn = ({
1037
1037
  position: "absolute",
1038
1038
  left: "50%",
1039
1039
  top: "50%",
1040
- transform: `translate(-50%, -50%) translate(${D}px, ${dt}px) rotate(${et}deg)`,
1040
+ transform: `translate(-50%, -50%) translate(${tt}px, ${dt}px) rotate(${et}deg)`,
1041
1041
  transformOrigin: "center center",
1042
1042
  borderRadius: o || 0,
1043
1043
  boxShadow: K,
@@ -1065,14 +1065,14 @@ const bn = ({
1065
1065
  }
1066
1066
  }
1067
1067
  ),
1068
- h && l ? /* @__PURE__ */ f(
1068
+ p && l ? /* @__PURE__ */ f(
1069
1069
  "div",
1070
1070
  {
1071
1071
  style: {
1072
1072
  position: "absolute",
1073
1073
  inset: 0,
1074
1074
  borderRadius: o || 0,
1075
- border: `${h}px solid ${l}`,
1075
+ border: `${p}px solid ${l}`,
1076
1076
  boxSizing: "border-box",
1077
1077
  pointerEvents: "none"
1078
1078
  }
@@ -1092,28 +1092,28 @@ const bn = ({
1092
1092
  width: a = 300,
1093
1093
  height: i = 300,
1094
1094
  borderRadius: e,
1095
- boxShadow: p,
1095
+ boxShadow: h,
1096
1096
  cardFlipDetails: o,
1097
- children: h,
1097
+ children: p,
1098
1098
  style: l = {}
1099
1099
  }) => {
1100
- const u = Nt(), d = typeof t == "number" && !isNaN(t) ? t : u, b = a || 300, y = i || 300, v = (o == null ? void 0 : o.keepStill) || "both", x = Number((o == null ? void 0 : o.toRotationX) ?? 0), M = Number((o == null ? void 0 : o.toRotationY) ?? 360), m = Number((o == null ? void 0 : o.toRotationZ) ?? 0), g = Number((o == null ? void 0 : o.toPivotX) ?? 0), w = Number((o == null ? void 0 : o.toPivotY) ?? 0), I = Number((o == null ? void 0 : o.toPerspective) ?? 0.45), S = !!(o != null && o.hasInitialValue), $ = S ? Number((o == null ? void 0 : o.initialRotationX) ?? 0) : 0, N = S ? Number((o == null ? void 0 : o.initialRotationY) ?? 0) : 0, F = S ? Number((o == null ? void 0 : o.initialRotationZ) ?? 0) : 0, B = S ? Number((o == null ? void 0 : o.initialPivotX) ?? 0) : g, X = S ? Number((o == null ? void 0 : o.initialPivotY) ?? 0) : w, P = S ? Number((o == null ? void 0 : o.initialPerspective) ?? 0.45) : I, R = (o == null ? void 0 : o.frontFace) ?? !0, E = (o == null ? void 0 : o.backFace) ?? !0, Y = Math.max(0, d - (r || 0)), C = Math.min(1, Math.max(0, Y / (n || 1)));
1100
+ const u = Nt(), d = typeof t == "number" && !isNaN(t) ? t : u, b = a || 300, y = i || 300, v = (o == null ? void 0 : o.keepStill) || "both", x = Number((o == null ? void 0 : o.toRotationX) ?? 0), M = Number((o == null ? void 0 : o.toRotationY) ?? 360), m = Number((o == null ? void 0 : o.toRotationZ) ?? 0), g = Number((o == null ? void 0 : o.toPivotX) ?? 0), w = Number((o == null ? void 0 : o.toPivotY) ?? 0), I = Number((o == null ? void 0 : o.toPerspective) ?? 0.45), S = !!(o != null && o.hasInitialValue), $ = S ? Number((o == null ? void 0 : o.initialRotationX) ?? 0) : 0, N = S ? Number((o == null ? void 0 : o.initialRotationY) ?? 0) : 0, F = S ? Number((o == null ? void 0 : o.initialRotationZ) ?? 0) : 0, B = S ? Number((o == null ? void 0 : o.initialPivotX) ?? 0) : g, X = S ? Number((o == null ? void 0 : o.initialPivotY) ?? 0) : w, P = S ? Number((o == null ? void 0 : o.initialPerspective) ?? 0.45) : I, R = (o == null ? void 0 : o.frontFace) ?? !0, _ = (o == null ? void 0 : o.backFace) ?? !0, Y = Math.max(0, d - (r || 0)), C = Math.min(1, Math.max(0, Y / (n || 1)));
1101
1101
  let z = s + (c - s) * C;
1102
1102
  v === "initial" ? z = 0 : v === "final" && (z = 1);
1103
- const D = W(z, [0, 1], [$, x]), dt = W(z, [0, 1], [N, M]), et = W(z, [0, 1], [F, m]), K = W(z, [0, 1], [B, g]), nt = W(z, [0, 1], [X, w]), G = W(z, [0, 1], [P, I]), Q = Math.max(b, y), ht = Math.max(
1103
+ const tt = W(z, [0, 1], [$, x]), dt = W(z, [0, 1], [N, M]), et = W(z, [0, 1], [F, m]), K = W(z, [0, 1], [B, g]), nt = W(z, [0, 1], [X, w]), G = W(z, [0, 1], [P, I]), Q = Math.max(b, y), pt = Math.max(
1104
1104
  1200,
1105
1105
  Math.round(Q * 2.5 / Math.max(0.05, G))
1106
- ), O = D * Math.PI / 180, j = dt * Math.PI / 180, T = Math.cos(O) * Math.cos(j), lt = T >= 0, q = T < 0;
1106
+ ), O = tt * Math.PI / 180, j = dt * Math.PI / 180, D = Math.cos(O) * Math.cos(j), lt = D >= 0, T = D < 0;
1107
1107
  let Z = !0;
1108
- lt && !R && (Z = !1), q && !E && (Z = !1);
1109
- const at = p ? typeof p == "string" ? p : `${p.x ?? 0}px ${p.y ?? 0}px ${p.blur ?? 0}px ${p.color ?? ""}` : void 0;
1108
+ lt && !R && (Z = !1), T && !_ && (Z = !1);
1109
+ const at = h ? typeof h == "string" ? h : `${h.x ?? 0}px ${h.y ?? 0}px ${h.blur ?? 0}px ${h.color ?? ""}` : void 0;
1110
1110
  return /* @__PURE__ */ f(
1111
1111
  "div",
1112
1112
  {
1113
1113
  style: {
1114
1114
  width: "100%",
1115
1115
  height: "100%",
1116
- perspective: `${ht}px`,
1116
+ perspective: `${pt}px`,
1117
1117
  transformStyle: "preserve-3d",
1118
1118
  position: "relative",
1119
1119
  ...l
@@ -1125,14 +1125,14 @@ const bn = ({
1125
1125
  width: "100%",
1126
1126
  height: "100%",
1127
1127
  transformOrigin: `${50 + K}% ${50 + nt}%`,
1128
- transform: `rotateX(${D}deg) rotateY(${dt}deg) rotateZ(${et}deg)`,
1129
- backfaceVisibility: E ? "visible" : "hidden",
1128
+ transform: `rotateX(${tt}deg) rotateY(${dt}deg) rotateZ(${et}deg)`,
1129
+ backfaceVisibility: _ ? "visible" : "hidden",
1130
1130
  visibility: Z ? "visible" : "hidden",
1131
1131
  borderRadius: e || 0,
1132
1132
  boxShadow: at,
1133
1133
  position: "relative"
1134
1134
  },
1135
- children: h
1135
+ children: p
1136
1136
  }
1137
1137
  )
1138
1138
  }
@@ -1146,9 +1146,9 @@ const bn = ({
1146
1146
  to: a = 1,
1147
1147
  width: i,
1148
1148
  height: e,
1149
- borderRadius: p,
1149
+ borderRadius: h,
1150
1150
  borderWidth: o,
1151
- borderColor: h,
1151
+ borderColor: p,
1152
1152
  boxShadow: l,
1153
1153
  cardFlipDetails: u,
1154
1154
  activeEffects: d,
@@ -1169,16 +1169,16 @@ const bn = ({
1169
1169
  to: a,
1170
1170
  width: i,
1171
1171
  height: e,
1172
- borderRadius: p,
1172
+ borderRadius: h,
1173
1173
  boxShadow: l,
1174
1174
  cardFlipDetails: u,
1175
- children: /* @__PURE__ */ bt(
1175
+ children: /* @__PURE__ */ yt(
1176
1176
  "div",
1177
1177
  {
1178
1178
  style: {
1179
1179
  width: "100%",
1180
1180
  height: "100%",
1181
- borderRadius: p || 0,
1181
+ borderRadius: h || 0,
1182
1182
  overflow: "hidden",
1183
1183
  position: "relative"
1184
1184
  },
@@ -1191,7 +1191,7 @@ const bn = ({
1191
1191
  width: "100%",
1192
1192
  height: "100%",
1193
1193
  objectFit: "cover",
1194
- borderRadius: p || 0,
1194
+ borderRadius: h || 0,
1195
1195
  filter: M
1196
1196
  },
1197
1197
  effects: b
@@ -1203,7 +1203,7 @@ const bn = ({
1203
1203
  style: {
1204
1204
  position: "absolute",
1205
1205
  inset: 0,
1206
- borderRadius: p || 0,
1206
+ borderRadius: h || 0,
1207
1207
  pointerEvents: "none",
1208
1208
  zIndex: 2,
1209
1209
  background: `radial-gradient(ellipse at center, transparent ${Math.round(
@@ -1212,14 +1212,14 @@ const bn = ({
1212
1212
  }
1213
1213
  }
1214
1214
  ) : null,
1215
- o && h ? /* @__PURE__ */ f(
1215
+ o && p ? /* @__PURE__ */ f(
1216
1216
  "div",
1217
1217
  {
1218
1218
  style: {
1219
1219
  position: "absolute",
1220
1220
  inset: 0,
1221
- borderRadius: p || 0,
1222
- border: `${o}px solid ${h}`,
1221
+ borderRadius: h || 0,
1222
+ border: `${o}px solid ${p}`,
1223
1223
  boxSizing: "border-box",
1224
1224
  pointerEvents: "none",
1225
1225
  zIndex: 3
@@ -1250,31 +1250,31 @@ function ur(t, r, n, s) {
1250
1250
  }
1251
1251
  function mn(t, r, n, s = 0) {
1252
1252
  const c = [];
1253
- for (let q = 0; q < 256; q++) c[q] = q;
1253
+ for (let T = 0; T < 256; T++) c[T] = T;
1254
1254
  let a = Math.floor(Math.abs(s) * 1e3) % 2147483647 + 1;
1255
- for (let q = 255; q > 0; q--) {
1255
+ for (let T = 255; T > 0; T--) {
1256
1256
  a = a * 16807 % 2147483647;
1257
- const Z = Math.floor(a / 2147483647 * (q + 1)), at = c[q];
1258
- c[q] = c[Z], c[Z] = at;
1257
+ const Z = Math.floor(a / 2147483647 * (T + 1)), at = c[T];
1258
+ c[T] = c[Z], c[Z] = at;
1259
1259
  }
1260
1260
  const i = new Array(512), e = new Array(512);
1261
- for (let q = 0; q < 512; q++)
1262
- i[q] = c[q & 255], e[q] = i[q] % 12;
1263
- const p = 1 / 3, o = 1 / 6;
1264
- let h = 0, l = 0, u = 0, d = 0;
1265
- const b = (t + r + n) * p, y = Math.floor(t + b), v = Math.floor(r + b), x = Math.floor(n + b), M = (y + v + x) * o, m = y - M, g = v - M, w = x - M, I = t - m, S = r - g, $ = n - w;
1261
+ for (let T = 0; T < 512; T++)
1262
+ i[T] = c[T & 255], e[T] = i[T] % 12;
1263
+ const h = 1 / 3, o = 1 / 6;
1264
+ let p = 0, l = 0, u = 0, d = 0;
1265
+ const b = (t + r + n) * h, y = Math.floor(t + b), v = Math.floor(r + b), x = Math.floor(n + b), M = (y + v + x) * o, m = y - M, g = v - M, w = x - M, I = t - m, S = r - g, $ = n - w;
1266
1266
  let N = 0, F = 0, B = 0, X = 0, P = 0, R = 0;
1267
1267
  I >= S ? S >= $ ? (N = 1, F = 0, B = 0, X = 1, P = 1, R = 0) : I >= $ ? (N = 1, F = 0, B = 0, X = 1, P = 0, R = 1) : (N = 0, F = 0, B = 1, X = 1, P = 0, R = 1) : S < $ ? (N = 0, F = 0, B = 1, X = 0, P = 1, R = 1) : I < $ ? (N = 0, F = 1, B = 0, X = 0, P = 1, R = 1) : (N = 0, F = 1, B = 0, X = 1, P = 1, R = 0);
1268
- const E = I - N + o, Y = S - F + o, C = $ - B + o, U = I - X + 2 * o, z = S - P + 2 * o, D = $ - R + 2 * o, dt = I - 1 + 3 * o, et = S - 1 + 3 * o, K = $ - 1 + 3 * o, nt = y & 255, G = v & 255, Q = x & 255;
1269
- let ht = 0.6 - I * I - S * S - $ * $;
1270
- ht >= 0 && (ht *= ht, h = ht * ht * ur(dr[e[nt + i[G + i[Q]]]], I, S, $));
1271
- let O = 0.6 - E * E - Y * Y - C * C;
1272
- O >= 0 && (O *= O, l = O * O * ur(dr[e[nt + N + i[G + F + i[Q + B]]]], E, Y, C));
1273
- let j = 0.6 - U * U - z * z - D * D;
1274
- j >= 0 && (j *= j, u = j * j * ur(dr[e[nt + X + i[G + P + i[Q + R]]]], U, z, D));
1275
- let T = 0.6 - dt * dt - et * et - K * K;
1276
- T >= 0 && (T *= T, d = T * T * ur(dr[e[nt + 1 + i[G + 1 + i[Q + 1]]]], dt, et, K));
1277
- const lt = 32 * (h + l + u + d);
1268
+ const _ = I - N + o, Y = S - F + o, C = $ - B + o, U = I - X + 2 * o, z = S - P + 2 * o, tt = $ - R + 2 * o, dt = I - 1 + 3 * o, et = S - 1 + 3 * o, K = $ - 1 + 3 * o, nt = y & 255, G = v & 255, Q = x & 255;
1269
+ let pt = 0.6 - I * I - S * S - $ * $;
1270
+ pt >= 0 && (pt *= pt, p = pt * pt * ur(dr[e[nt + i[G + i[Q]]]], I, S, $));
1271
+ let O = 0.6 - _ * _ - Y * Y - C * C;
1272
+ O >= 0 && (O *= O, l = O * O * ur(dr[e[nt + N + i[G + F + i[Q + B]]]], _, Y, C));
1273
+ let j = 0.6 - U * U - z * z - tt * tt;
1274
+ j >= 0 && (j *= j, u = j * j * ur(dr[e[nt + X + i[G + P + i[Q + R]]]], U, z, tt));
1275
+ let D = 0.6 - dt * dt - et * et - K * K;
1276
+ D >= 0 && (D *= D, d = D * D * ur(dr[e[nt + 1 + i[G + 1 + i[Q + 1]]]], dt, et, K));
1277
+ const lt = 32 * (p + l + u + d);
1278
1278
  return Math.min(1, Math.max(0, (lt + 1) / 2));
1279
1279
  }
1280
1280
  const No = ({
@@ -1286,28 +1286,28 @@ const No = ({
1286
1286
  to: a = 1,
1287
1287
  width: i,
1288
1288
  height: e,
1289
- borderRadius: p,
1289
+ borderRadius: h,
1290
1290
  borderWidth: o,
1291
- borderColor: h,
1291
+ borderColor: p,
1292
1292
  boxShadow: l,
1293
1293
  noiseTileDetails: u
1294
1294
  }) => {
1295
- const d = Nt(), b = typeof r == "number" && !isNaN(r) ? r : d, y = i || 300, v = e || 300, x = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toXRepetitions) ?? (u == null ? void 0 : u.xRepetitions) ?? 5), m = Number((u == null ? void 0 : u.toYRepetitions) ?? (u == null ? void 0 : u.yRepetitions) ?? 5), g = Number((u == null ? void 0 : u.toGapX) ?? (u == null ? void 0 : u.gapX) ?? 12), w = Number((u == null ? void 0 : u.toGapY) ?? (u == null ? void 0 : u.gapY) ?? 12), I = Number((u == null ? void 0 : u.toScale) ?? (u == null ? void 0 : u.scale) ?? 1), S = Number((u == null ? void 0 : u.toNoiseScale) ?? (u == null ? void 0 : u.noiseScale) ?? 1.5), $ = Number((u == null ? void 0 : u.toNoiseMoveX) ?? (u == null ? void 0 : u.noiseMoveX) ?? 0.6), N = Number((u == null ? void 0 : u.toNoiseMoveY) ?? (u == null ? void 0 : u.noiseMoveY) ?? 0.4), F = Number((u == null ? void 0 : u.toFps) ?? (u == null ? void 0 : u.fps) ?? 12), B = Number((u == null ? void 0 : u.toThreshold) ?? (u == null ? void 0 : u.threshold) ?? 0.45), X = Number((u == null ? void 0 : u.toSeedOffset) ?? (u == null ? void 0 : u.seedOffset) ?? 0), P = !!(u != null && u.hasInitialValue), R = P ? Number((u == null ? void 0 : u.initialXRepetitions) ?? M) : M, E = P ? Number((u == null ? void 0 : u.initialYRepetitions) ?? m) : m, Y = P ? Number((u == null ? void 0 : u.initialGapX) ?? g) : g, C = P ? Number((u == null ? void 0 : u.initialGapY) ?? w) : w, U = P ? Number((u == null ? void 0 : u.initialScale) ?? I) : I, z = P ? Number((u == null ? void 0 : u.initialNoiseScale) ?? S) : S, D = P ? Number((u == null ? void 0 : u.initialNoiseMoveX) ?? $) : $, dt = P ? Number((u == null ? void 0 : u.initialNoiseMoveY) ?? N) : N, et = P ? Number((u == null ? void 0 : u.initialFps) ?? F) : F, K = P ? Number((u == null ? void 0 : u.initialThreshold) ?? B) : B, nt = P ? Number((u == null ? void 0 : u.initialSeedOffset) ?? X) : X, G = Math.max(0, b - (n || 0)), Q = Math.min(1, Math.max(0, G / (s || 1)));
1295
+ const d = Nt(), b = typeof r == "number" && !isNaN(r) ? r : d, y = i || 300, v = e || 300, x = (u == null ? void 0 : u.keepStill) || "both", M = Number((u == null ? void 0 : u.toXRepetitions) ?? (u == null ? void 0 : u.xRepetitions) ?? 5), m = Number((u == null ? void 0 : u.toYRepetitions) ?? (u == null ? void 0 : u.yRepetitions) ?? 5), g = Number((u == null ? void 0 : u.toGapX) ?? (u == null ? void 0 : u.gapX) ?? 12), w = Number((u == null ? void 0 : u.toGapY) ?? (u == null ? void 0 : u.gapY) ?? 12), I = Number((u == null ? void 0 : u.toScale) ?? (u == null ? void 0 : u.scale) ?? 1), S = Number((u == null ? void 0 : u.toNoiseScale) ?? (u == null ? void 0 : u.noiseScale) ?? 1.5), $ = Number((u == null ? void 0 : u.toNoiseMoveX) ?? (u == null ? void 0 : u.noiseMoveX) ?? 0.6), N = Number((u == null ? void 0 : u.toNoiseMoveY) ?? (u == null ? void 0 : u.noiseMoveY) ?? 0.4), F = Number((u == null ? void 0 : u.toFps) ?? (u == null ? void 0 : u.fps) ?? 12), B = Number((u == null ? void 0 : u.toThreshold) ?? (u == null ? void 0 : u.threshold) ?? 0.45), X = Number((u == null ? void 0 : u.toSeedOffset) ?? (u == null ? void 0 : u.seedOffset) ?? 0), P = !!(u != null && u.hasInitialValue), R = P ? Number((u == null ? void 0 : u.initialXRepetitions) ?? M) : M, _ = P ? Number((u == null ? void 0 : u.initialYRepetitions) ?? m) : m, Y = P ? Number((u == null ? void 0 : u.initialGapX) ?? g) : g, C = P ? Number((u == null ? void 0 : u.initialGapY) ?? w) : w, U = P ? Number((u == null ? void 0 : u.initialScale) ?? I) : I, z = P ? Number((u == null ? void 0 : u.initialNoiseScale) ?? S) : S, tt = P ? Number((u == null ? void 0 : u.initialNoiseMoveX) ?? $) : $, dt = P ? Number((u == null ? void 0 : u.initialNoiseMoveY) ?? N) : N, et = P ? Number((u == null ? void 0 : u.initialFps) ?? F) : F, K = P ? Number((u == null ? void 0 : u.initialThreshold) ?? B) : B, nt = P ? Number((u == null ? void 0 : u.initialSeedOffset) ?? X) : X, G = Math.max(0, b - (n || 0)), Q = Math.min(1, Math.max(0, G / (s || 1)));
1296
1296
  let O = c + (a - c) * Q;
1297
1297
  x === "initial" ? O = 0 : x === "final" && (O = 1);
1298
- const j = Math.max(1, Math.round(W(O, [0, 1], [R, M]))), T = Math.max(1, Math.round(W(O, [0, 1], [E, m]))), lt = W(O, [0, 1], [Y, g]), q = W(O, [0, 1], [C, w]), Z = W(O, [0, 1], [U, I]), at = W(O, [0, 1], [z, S]), tt = W(O, [0, 1], [D, $]), yt = W(O, [0, 1], [dt, N]), rt = Math.max(1, Math.round(W(O, [0, 1], [et, F]))), ct = W(O, [0, 1], [K, B]), st = W(O, [0, 1], [nt, X]), ut = l ? typeof l == "string" ? l : `${l.x ?? 0}px ${l.y ?? 0}px ${l.blur ?? 0}px ${l.color ?? ""}` : void 0, pt = Math.floor(G * (rt / 30)), vt = (j - 1) / 2, $t = (T - 1) / 2, It = [];
1299
- for (let ft = 0; ft < T; ft++)
1298
+ const j = Math.max(1, Math.round(W(O, [0, 1], [R, M]))), D = Math.max(1, Math.round(W(O, [0, 1], [_, m]))), lt = W(O, [0, 1], [Y, g]), T = W(O, [0, 1], [C, w]), Z = W(O, [0, 1], [U, I]), at = W(O, [0, 1], [z, S]), mt = W(O, [0, 1], [tt, $]), J = W(O, [0, 1], [dt, N]), rt = Math.max(1, Math.round(W(O, [0, 1], [et, F]))), ct = W(O, [0, 1], [K, B]), st = W(O, [0, 1], [nt, X]), ut = l ? typeof l == "string" ? l : `${l.x ?? 0}px ${l.y ?? 0}px ${l.blur ?? 0}px ${l.color ?? ""}` : void 0, ht = Math.floor(G * (rt / 30)), bt = (j - 1) / 2, $t = (D - 1) / 2, It = [];
1299
+ for (let ft = 0; ft < D; ft++)
1300
1300
  for (let St = 0; St < j; St++) {
1301
- const Yt = St / Math.max(1, j) * at, Rt = ft / Math.max(1, T) * at, Xt = pt * 0.1 + st, _t = mn(
1302
- Yt + pt * tt * 0.05,
1303
- Rt + pt * yt * 0.05,
1301
+ const Yt = St / Math.max(1, j) * at, Rt = ft / Math.max(1, D) * at, Xt = ht * 0.1 + st, Et = mn(
1302
+ Yt + ht * mt * 0.05,
1303
+ Rt + ht * J * 0.05,
1304
1304
  Xt,
1305
1305
  st
1306
- ), Et = St === Math.floor(vt) && ft === Math.floor($t) || _t >= ct, Wt = St - vt, Lt = ft - $t, Ht = lt / 100 * y, Ut = q / 100 * v, Zt = Wt * (y * Z + Ht), Qt = Lt * (v * Z + Ut);
1306
+ ), _t = St === Math.floor(bt) && ft === Math.floor($t) || Et >= ct, Wt = St - bt, Lt = ft - $t, Ht = lt / 100 * y, Ut = T / 100 * v, Zt = Wt * (y * Z + Ht), Qt = Lt * (v * Z + Ut);
1307
1307
  It.push({
1308
1308
  col: St,
1309
1309
  row: ft,
1310
- visible: Et,
1310
+ visible: _t,
1311
1311
  posX: Zt,
1312
1312
  posY: Qt
1313
1313
  });
@@ -1332,16 +1332,16 @@ const No = ({
1332
1332
  height: `${v}px`,
1333
1333
  transform: `translate(-50%, -50%) translate(${ft.posX}px, ${ft.posY}px) scale(${Z})`,
1334
1334
  transformOrigin: "center center",
1335
- borderRadius: p || 0,
1335
+ borderRadius: h || 0,
1336
1336
  boxShadow: ut
1337
1337
  },
1338
- children: /* @__PURE__ */ bt(
1338
+ children: /* @__PURE__ */ yt(
1339
1339
  "div",
1340
1340
  {
1341
1341
  style: {
1342
1342
  width: "100%",
1343
1343
  height: "100%",
1344
- borderRadius: p || 0,
1344
+ borderRadius: h || 0,
1345
1345
  overflow: "hidden",
1346
1346
  position: "relative"
1347
1347
  },
@@ -1367,14 +1367,14 @@ const No = ({
1367
1367
  }
1368
1368
  }
1369
1369
  ),
1370
- o && h ? /* @__PURE__ */ f(
1370
+ o && p ? /* @__PURE__ */ f(
1371
1371
  "div",
1372
1372
  {
1373
1373
  style: {
1374
1374
  position: "absolute",
1375
1375
  inset: 0,
1376
- borderRadius: p || 0,
1377
- border: `${o}px solid ${h}`,
1376
+ borderRadius: h || 0,
1377
+ border: `${o}px solid ${p}`,
1378
1378
  boxSizing: "border-box",
1379
1379
  pointerEvents: "none"
1380
1380
  }
@@ -1412,13 +1412,13 @@ function Vr(t) {
1412
1412
  return r.length > 0 ? r : void 0;
1413
1413
  }
1414
1414
  function Cr(t, r, n = 0) {
1415
- var i, e, p, o;
1415
+ var i, e, h, o;
1416
1416
  const s = [], c = /* @__PURE__ */ new Set(), a = [];
1417
1417
  if (r) {
1418
- const h = [
1418
+ const p = [
1419
1419
  ...((i = r == null ? void 0 : r.in) == null ? void 0 : i.composition) || [],
1420
1420
  ...((e = r == null ? void 0 : r.out) == null ? void 0 : e.composition) || [],
1421
- ...((p = r == null ? void 0 : r.timed) == null ? void 0 : p.composition) || [],
1421
+ ...((h = r == null ? void 0 : r.timed) == null ? void 0 : h.composition) || [],
1422
1422
  ...((o = r == null ? void 0 : r.loop) == null ? void 0 : o.composition) || []
1423
1423
  ], l = [
1424
1424
  "blur",
@@ -1434,7 +1434,7 @@ function Cr(t, r, n = 0) {
1434
1434
  "duotone",
1435
1435
  "lightLeak"
1436
1436
  ];
1437
- h.forEach((u) => {
1437
+ p.forEach((u) => {
1438
1438
  if (!u) return;
1439
1439
  const d = u.property;
1440
1440
  if (l.includes(d)) {
@@ -1510,8 +1510,8 @@ function Cr(t, r, n = 0) {
1510
1510
  }
1511
1511
  });
1512
1512
  }
1513
- return t && Array.isArray(t) && t.forEach((h) => {
1514
- !h || !h.type || c.has(h.type) || s.push(h);
1513
+ return t && Array.isArray(t) && t.forEach((p) => {
1514
+ !p || !p.type || c.has(p.type) || s.push(p);
1515
1515
  }), s.push(...a), s;
1516
1516
  }
1517
1517
  function xn(t) {
@@ -1620,11 +1620,11 @@ var Yo = function(r, n) {
1620
1620
  Ct.conditional = Yo;
1621
1621
  var Ro = function(r, n) {
1622
1622
  return function(s, c, a, i) {
1623
- for (var e = [], p = s.pos; n(s, c, a); ) {
1623
+ for (var e = [], h = s.pos; n(s, c, a); ) {
1624
1624
  var o = {};
1625
- if (i(s, r, c, o), s.pos === p)
1625
+ if (i(s, r, c, o), s.pos === h)
1626
1626
  break;
1627
- p = s.pos, e.push(o);
1627
+ h = s.pos, e.push(o);
1628
1628
  }
1629
1629
  return e;
1630
1630
  };
@@ -1667,26 +1667,26 @@ var Po = function(r) {
1667
1667
  };
1668
1668
  };
1669
1669
  xt.peekBytes = Po;
1670
- var _o = function(r) {
1670
+ var Eo = function(r) {
1671
1671
  return function(n) {
1672
1672
  return Array.from(br(r)(n)).map(function(s) {
1673
1673
  return String.fromCharCode(s);
1674
1674
  }).join("");
1675
1675
  };
1676
1676
  };
1677
- xt.readString = _o;
1678
- var Eo = function(r) {
1677
+ xt.readString = Eo;
1678
+ var _o = function(r) {
1679
1679
  return function(n) {
1680
1680
  var s = br(2)(n);
1681
1681
  return r ? (s[1] << 8) + s[0] : (s[0] << 8) + s[1];
1682
1682
  };
1683
1683
  };
1684
- xt.readUnsigned = Eo;
1684
+ xt.readUnsigned = _o;
1685
1685
  var Wo = function(r, n) {
1686
1686
  return function(s, c, a) {
1687
- for (var i = typeof n == "function" ? n(s, c, a) : n, e = br(r), p = new Array(i), o = 0; o < i; o++)
1688
- p[o] = e(s);
1689
- return p;
1687
+ for (var i = typeof n == "function" ? n(s, c, a) : n, e = br(r), h = new Array(i), o = 0; o < i; o++)
1688
+ h[o] = e(s);
1689
+ return h;
1690
1690
  };
1691
1691
  };
1692
1692
  xt.readArray = Wo;
@@ -1699,8 +1699,8 @@ var Vo = function(r, n, s) {
1699
1699
  for (var s = Sn()(n), c = new Array(8), a = 0; a < 8; a++)
1700
1700
  c[7 - a] = !!(s & 1 << a);
1701
1701
  return Object.keys(r).reduce(function(i, e) {
1702
- var p = r[e];
1703
- return p.length ? i[e] = Vo(c, p.index, p.length) : i[e] = c[p.index], i;
1702
+ var h = r[e];
1703
+ return h.length ? i[e] = Vo(c, h.index, h.length) : i[e] = c[h.index], i;
1704
1704
  }, {});
1705
1705
  };
1706
1706
  };
@@ -1827,7 +1827,7 @@ xt.readBits = Co;
1827
1827
  }, function(l) {
1828
1828
  var u = (0, n.peekBytes)(2)(l);
1829
1829
  return u[0] === 33 && u[1] === 255;
1830
- }), p = (0, r.conditional)({
1830
+ }), h = (0, r.conditional)({
1831
1831
  comment: [{
1832
1832
  codes: (0, n.readBytes)(2)
1833
1833
  }, s]
@@ -1879,13 +1879,13 @@ xt.readBits = Co;
1879
1879
  }),
1880
1880
  // content frames
1881
1881
  {
1882
- frames: (0, r.loop)([c, e, p, a, i], function(l) {
1882
+ frames: (0, r.loop)([c, e, h, a, i], function(l) {
1883
1883
  var u = (0, n.peekByte)()(l);
1884
1884
  return u === 33 || u === 44;
1885
1885
  })
1886
1886
  }
1887
- ], h = o;
1888
- t.default = h;
1887
+ ], p = o;
1888
+ t.default = p;
1889
1889
  })($n);
1890
1890
  var vr = {};
1891
1891
  Object.defineProperty(vr, "__esModule", {
@@ -1896,9 +1896,9 @@ var Oo = function(r, n) {
1896
1896
  for (var s = new Array(r.length), c = r.length / n, a = function(u, d) {
1897
1897
  var b = r.slice(d * n, (d + 1) * n);
1898
1898
  s.splice.apply(s, [u * n, n].concat(b));
1899
- }, i = [0, 4, 2, 1], e = [8, 8, 4, 2], p = 0, o = 0; o < 4; o++)
1900
- for (var h = i[o]; h < c; h += e[o])
1901
- a(h, p), p++;
1899
+ }, i = [0, 4, 2, 1], e = [8, 8, 4, 2], h = 0, o = 0; o < 4; o++)
1900
+ for (var p = i[o]; p < c; p += e[o])
1901
+ a(p, h), h++;
1902
1902
  return s;
1903
1903
  };
1904
1904
  vr.deinterlace = Oo;
@@ -1908,29 +1908,29 @@ Object.defineProperty(gr, "__esModule", {
1908
1908
  });
1909
1909
  gr.lzw = void 0;
1910
1910
  var zo = function(r, n, s) {
1911
- var c = 4096, a = -1, i = s, e, p, o, h, l, u, d, I, b, y, w, v, S, $, F, N, x = new Array(s), M = new Array(c), m = new Array(c), g = new Array(c + 1);
1912
- for (v = r, p = 1 << v, l = p + 1, e = p + 2, d = a, h = v + 1, o = (1 << h) - 1, b = 0; b < p; b++)
1911
+ var c = 4096, a = -1, i = s, e, h, o, p, l, u, d, I, b, y, w, v, S, $, F, N, x = new Array(s), M = new Array(c), m = new Array(c), g = new Array(c + 1);
1912
+ for (v = r, h = 1 << v, l = h + 1, e = h + 2, d = a, p = v + 1, o = (1 << p) - 1, b = 0; b < h; b++)
1913
1913
  M[b] = 0, m[b] = b;
1914
1914
  var w, I, S, $, N, F;
1915
1915
  for (w = I = S = $ = N = F = 0, y = 0; y < i; ) {
1916
1916
  if ($ === 0) {
1917
- if (I < h) {
1917
+ if (I < p) {
1918
1918
  w += n[F] << I, I += 8, F++;
1919
1919
  continue;
1920
1920
  }
1921
- if (b = w & o, w >>= h, I -= h, b > e || b == l)
1921
+ if (b = w & o, w >>= p, I -= p, b > e || b == l)
1922
1922
  break;
1923
- if (b == p) {
1924
- h = v + 1, o = (1 << h) - 1, e = p + 2, d = a;
1923
+ if (b == h) {
1924
+ p = v + 1, o = (1 << p) - 1, e = h + 2, d = a;
1925
1925
  continue;
1926
1926
  }
1927
1927
  if (d == a) {
1928
1928
  g[$++] = m[b], d = b, S = b;
1929
1929
  continue;
1930
1930
  }
1931
- for (u = b, b == e && (g[$++] = S, b = d); b > p; )
1931
+ for (u = b, b == e && (g[$++] = S, b = d); b > h; )
1932
1932
  g[$++] = m[b], b = M[b];
1933
- S = m[b] & 255, g[$++] = S, e < c && (M[e] = d, m[e] = S, e++, !(e & o) && e < c && (h++, o += e)), d = u;
1933
+ S = m[b] & 255, g[$++] = S, e < c && (M[e] = d, m[e] = S, e++, !(e & o) && e < c && (p++, o += e)), d = u;
1934
1934
  }
1935
1935
  $--, x[N++] = g[$], y++;
1936
1936
  }
@@ -1991,28 +1991,28 @@ const xr = /* @__PURE__ */ new Map(), Jo = (t) => !!t && t.split("?")[0].toLower
1991
1991
  throw new Error(`GIF has no frames: ${t}`);
1992
1992
  const e = document.createElement("canvas");
1993
1993
  e.width = a, e.height = i;
1994
- const p = e.getContext("2d");
1995
- if (!p)
1996
- throw new Error("Could not create GIF canvas context");
1997
- const o = document.createElement("canvas"), h = o.getContext("2d");
1994
+ const h = e.getContext("2d");
1998
1995
  if (!h)
1996
+ throw new Error("Could not create GIF canvas context");
1997
+ const o = document.createElement("canvas"), p = o.getContext("2d");
1998
+ if (!p)
1999
1999
  throw new Error("Could not create temp GIF canvas context");
2000
- p.clearRect(0, 0, a, i);
2000
+ h.clearRect(0, 0, a, i);
2001
2001
  const l = [], u = [];
2002
2002
  return c.forEach((d) => {
2003
- const b = d.disposalType === 3 ? p.getImageData(0, 0, a, i) : null;
2003
+ const b = d.disposalType === 3 ? h.getImageData(0, 0, a, i) : null;
2004
2004
  o.width = d.dims.width, o.height = d.dims.height;
2005
2005
  const y = new ImageData(
2006
2006
  new Uint8ClampedArray(d.patch),
2007
2007
  d.dims.width,
2008
2008
  d.dims.height
2009
2009
  );
2010
- h.putImageData(y, 0, 0), p.drawImage(o, d.dims.left, d.dims.top), l.push(e.toDataURL("image/png")), u.push(qo(d.delay || 0)), d.disposalType === 2 ? p.clearRect(
2010
+ p.putImageData(y, 0, 0), h.drawImage(o, d.dims.left, d.dims.top), l.push(e.toDataURL("image/png")), u.push(qo(d.delay || 0)), d.disposalType === 2 ? h.clearRect(
2011
2011
  d.dims.left,
2012
2012
  d.dims.top,
2013
2013
  d.dims.width,
2014
2014
  d.dims.height
2015
- ) : d.disposalType === 3 && b && p.putImageData(b, 0, 0);
2015
+ ) : d.disposalType === 3 && b && h.putImageData(b, 0, 0);
2016
2016
  }), {
2017
2017
  width: a,
2018
2018
  height: i,
@@ -2040,26 +2040,26 @@ const xr = /* @__PURE__ */ new Map(), Jo = (t) => !!t && t.split("?")[0].toLower
2040
2040
  }, re = ({ src: t, alt: r = "gif", style: n, playbackRate: s }) => {
2041
2041
  const c = Nt(), { fps: a } = cn(), [i, e] = fr(null);
2042
2042
  if (er(() => {
2043
- const h = to(`Decoding GIF ${t}`);
2043
+ const p = to(`Decoding GIF ${t}`);
2044
2044
  let l = !1;
2045
2045
  return Do(t).then((u) => {
2046
- l || (e(u), Gr(h));
2046
+ l || (e(u), Gr(p));
2047
2047
  }).catch((u) => {
2048
2048
  l || ro(u instanceof Error ? u : new Error(String(u)));
2049
2049
  }), () => {
2050
- l = !0, Gr(h);
2050
+ l = !0, Gr(p);
2051
2051
  };
2052
2052
  }, [t]), !i)
2053
2053
  return null;
2054
- const p = c / a * 1e3 * s, o = te(p, i);
2054
+ const h = c / a * 1e3 * s, o = te(h, i);
2055
2055
  return /* @__PURE__ */ f(qt, { src: i.frames[o], alt: r, style: n });
2056
2056
  };
2057
2057
  function kn({
2058
2058
  item: t,
2059
2059
  options: r
2060
2060
  }) {
2061
- var dt, et, K, nt, G, Q, ht, O, j, T, lt, q, Z, at;
2062
- const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Ft(
2061
+ var et, K, nt, G, Q, pt, O, j, D, lt, T, Z, at, mt;
2062
+ const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: h, animationOut: o, animationTimed: p } = Ft(
2063
2063
  i,
2064
2064
  t,
2065
2065
  s,
@@ -2074,21 +2074,21 @@ function kn({
2074
2074
  a.effects,
2075
2075
  i,
2076
2076
  d
2077
- ), M = Vr(x), { filter: m, overlays: g } = xn(x), w = a.width || l.width || 300, I = a.height || l.height || 300, S = Jo(a.src), $ = (et = (dt = i == null ? void 0 : i.loop) == null ? void 0 : dt.composition) == null ? void 0 : et.find(
2078
- (tt) => tt.property === "textGridMarqueeTextAnimationLoop" || tt.property === "textGridMarquee" || tt.property === "imageGridMarqueeTextAnimationLoop" || tt.property === "imageGridMarquee" || tt.id === "textGridMarquee" || tt.id === "imageGridMarquee"
2079
- ), N = !!($ && d >= ($.delay || 0) && d <= ($.delay || 0) + ($.durationInFrames || 60)), F = (nt = (K = i == null ? void 0 : i.loop) == null ? void 0 : K.composition) == null ? void 0 : nt.find(
2080
- (tt) => tt.property === "inwardEchoes" || tt.id === "inwardEchoes"
2081
- ), B = !!(F && d >= (F.delay || 0) && d <= (F.delay || 0) + (F.durationInFrames || 120)), X = (Q = (G = i == null ? void 0 : i.loop) == null ? void 0 : G.composition) == null ? void 0 : Q.find(
2082
- (tt) => tt.property === "wiggle" || tt.id === "wiggle"
2083
- ), P = !!(X && d >= (X.delay || 0) && d <= (X.delay || 0) + (X.durationInFrames || 120)), R = (O = (ht = i == null ? void 0 : i.loop) == null ? void 0 : ht.composition) == null ? void 0 : O.find(
2084
- (tt) => tt.property === "cardFlip" || tt.id === "cardFlip"
2085
- ), E = !!(R && d >= (R.delay || 0) && d <= (R.delay || 0) + (R.durationInFrames || 120)), Y = (T = (j = i == null ? void 0 : i.loop) == null ? void 0 : j.composition) == null ? void 0 : T.find(
2086
- (tt) => tt.property === "noiseTile" || tt.id === "noiseTile"
2077
+ ), M = Vr(x), { filter: m, overlays: g } = xn(x), w = a.width || l.width || 300, I = a.height || l.height || 300, S = Jo(a.src), $ = (K = (et = i == null ? void 0 : i.loop) == null ? void 0 : et.composition) == null ? void 0 : K.find(
2078
+ (J) => J.property === "textGridMarqueeTextAnimationLoop" || J.property === "textGridMarquee" || J.property === "imageGridMarqueeTextAnimationLoop" || J.property === "imageGridMarquee" || J.id === "textGridMarquee" || J.id === "imageGridMarquee"
2079
+ ), N = !!($ && d >= ($.delay || 0) && d <= ($.delay || 0) + ($.durationInFrames || 60)), F = (G = (nt = i == null ? void 0 : i.loop) == null ? void 0 : nt.composition) == null ? void 0 : G.find(
2080
+ (J) => J.property === "inwardEchoes" || J.id === "inwardEchoes"
2081
+ ), B = !!(F && d >= (F.delay || 0) && d <= (F.delay || 0) + (F.durationInFrames || 120)), X = (pt = (Q = i == null ? void 0 : i.loop) == null ? void 0 : Q.composition) == null ? void 0 : pt.find(
2082
+ (J) => J.property === "wiggle" || J.id === "wiggle"
2083
+ ), P = !!(X && d >= (X.delay || 0) && d <= (X.delay || 0) + (X.durationInFrames || 120)), R = (j = (O = i == null ? void 0 : i.loop) == null ? void 0 : O.composition) == null ? void 0 : j.find(
2084
+ (J) => J.property === "cardFlip" || J.id === "cardFlip"
2085
+ ), _ = !!(R && d >= (R.delay || 0) && d <= (R.delay || 0) + (R.durationInFrames || 120)), Y = (lt = (D = i == null ? void 0 : i.loop) == null ? void 0 : D.composition) == null ? void 0 : lt.find(
2086
+ (J) => J.property === "noiseTile" || J.id === "noiseTile"
2087
2087
  ), C = !!(Y && d >= (Y.delay || 0) && d <= (Y.delay || 0) + (Y.durationInFrames || 120)), U = [
2088
- ...((lt = i == null ? void 0 : i.in) == null ? void 0 : lt.composition) || [],
2089
- ...((q = i == null ? void 0 : i.out) == null ? void 0 : q.composition) || [],
2090
- ...((Z = i == null ? void 0 : i.timed) == null ? void 0 : Z.composition) || [],
2091
- ...((at = i == null ? void 0 : i.loop) == null ? void 0 : at.composition) || []
2088
+ ...((T = i == null ? void 0 : i.in) == null ? void 0 : T.composition) || [],
2089
+ ...((Z = i == null ? void 0 : i.out) == null ? void 0 : Z.composition) || [],
2090
+ ...((at = i == null ? void 0 : i.timed) == null ? void 0 : at.composition) || [],
2091
+ ...((mt = i == null ? void 0 : i.loop) == null ? void 0 : mt.composition) || []
2092
2092
  ], z = () => N ? /* @__PURE__ */ f(
2093
2093
  bn,
2094
2094
  {
@@ -2098,8 +2098,8 @@ function kn({
2098
2098
  durationInFrames: $ == null ? void 0 : $.durationInFrames,
2099
2099
  from: $ == null ? void 0 : $.from,
2100
2100
  to: $ == null ? void 0 : $.to,
2101
- width: a.width,
2102
- height: a.height,
2101
+ width: w,
2102
+ height: I,
2103
2103
  borderRadius: v.borderRadius,
2104
2104
  borderWidth: a.borderWidth,
2105
2105
  borderColor: a.borderColor,
@@ -2116,8 +2116,8 @@ function kn({
2116
2116
  durationInFrames: F == null ? void 0 : F.durationInFrames,
2117
2117
  from: F == null ? void 0 : F.from,
2118
2118
  to: F == null ? void 0 : F.to,
2119
- width: a.width,
2120
- height: a.height,
2119
+ width: w,
2120
+ height: I,
2121
2121
  borderRadius: v.borderRadius,
2122
2122
  borderWidth: a.borderWidth,
2123
2123
  borderColor: a.borderColor,
@@ -2134,8 +2134,8 @@ function kn({
2134
2134
  durationInFrames: X == null ? void 0 : X.durationInFrames,
2135
2135
  from: X == null ? void 0 : X.from,
2136
2136
  to: X == null ? void 0 : X.to,
2137
- width: a.width,
2138
- height: a.height,
2137
+ width: w,
2138
+ height: I,
2139
2139
  borderRadius: v.borderRadius,
2140
2140
  borderWidth: a.borderWidth,
2141
2141
  borderColor: a.borderColor,
@@ -2143,7 +2143,7 @@ function kn({
2143
2143
  fps: n,
2144
2144
  wiggleDetails: X == null ? void 0 : X.details
2145
2145
  }
2146
- ) : E ? /* @__PURE__ */ f(
2146
+ ) : _ ? /* @__PURE__ */ f(
2147
2147
  ko,
2148
2148
  {
2149
2149
  src: a.src,
@@ -2152,8 +2152,8 @@ function kn({
2152
2152
  durationInFrames: R == null ? void 0 : R.durationInFrames,
2153
2153
  from: R == null ? void 0 : R.from,
2154
2154
  to: R == null ? void 0 : R.to,
2155
- width: a.width,
2156
- height: a.height,
2155
+ width: w,
2156
+ height: I,
2157
2157
  borderRadius: v.borderRadius,
2158
2158
  borderWidth: a.borderWidth,
2159
2159
  borderColor: a.borderColor,
@@ -2172,8 +2172,8 @@ function kn({
2172
2172
  durationInFrames: Y == null ? void 0 : Y.durationInFrames,
2173
2173
  from: Y == null ? void 0 : Y.from,
2174
2174
  to: Y == null ? void 0 : Y.to,
2175
- width: a.width,
2176
- height: a.height,
2175
+ width: w,
2176
+ height: I,
2177
2177
  borderRadius: v.borderRadius,
2178
2178
  borderWidth: a.borderWidth,
2179
2179
  borderColor: a.borderColor,
@@ -2206,7 +2206,7 @@ function kn({
2206
2206
  filter: m || void 0
2207
2207
  }
2208
2208
  }
2209
- ), D = /* @__PURE__ */ f(
2209
+ ), tt = N || B || P || _ || C, dt = /* @__PURE__ */ f(
2210
2210
  jt,
2211
2211
  {
2212
2212
  style: {
@@ -2215,7 +2215,7 @@ function kn({
2215
2215
  boxShadow: void 0,
2216
2216
  WebkitTextStroke: y
2217
2217
  },
2218
- animationIn: p,
2218
+ animationIn: h,
2219
2219
  animationOut: o,
2220
2220
  frame: d,
2221
2221
  durationInFrames: u,
@@ -2223,7 +2223,7 @@ function kn({
2223
2223
  children: /* @__PURE__ */ f(
2224
2224
  At,
2225
2225
  {
2226
- animationTimed: h,
2226
+ animationTimed: p,
2227
2227
  durationInFrames: u,
2228
2228
  frame: d,
2229
2229
  style: {
@@ -2238,7 +2238,7 @@ function kn({
2238
2238
  keyframeAnimations: U,
2239
2239
  frame: d,
2240
2240
  durationInFrames: u,
2241
- children: /* @__PURE__ */ bt(
2241
+ children: /* @__PURE__ */ yt(
2242
2242
  "div",
2243
2243
  {
2244
2244
  id: `${t.id}-reveal-mask`,
@@ -2250,11 +2250,11 @@ function kn({
2250
2250
  width: "100%",
2251
2251
  height: "100%",
2252
2252
  position: "relative",
2253
- overflow: "hidden",
2253
+ overflow: tt ? "visible" : "hidden",
2254
2254
  borderRadius: v.borderRadius
2255
2255
  },
2256
2256
  children: [
2257
- /* @__PURE__ */ bt(
2257
+ /* @__PURE__ */ yt(
2258
2258
  "div",
2259
2259
  {
2260
2260
  style: {
@@ -2264,7 +2264,7 @@ function kn({
2264
2264
  },
2265
2265
  children: [
2266
2266
  M ? /* @__PURE__ */ f(
2267
- Er,
2267
+ _r,
2268
2268
  {
2269
2269
  width: w,
2270
2270
  height: I,
@@ -2272,15 +2272,15 @@ function kn({
2272
2272
  children: z()
2273
2273
  }
2274
2274
  ) : z(),
2275
- g.map((tt) => /* @__PURE__ */ f("div", { style: tt.style }, tt.id))
2275
+ g.map((J) => /* @__PURE__ */ f("div", { style: J.style }, J.id))
2276
2276
  ]
2277
2277
  }
2278
2278
  ),
2279
- !N && !B && !P && !E && !C && /* @__PURE__ */ f(
2279
+ !N && !B && !P && !_ && !C && /* @__PURE__ */ f(
2280
2280
  "div",
2281
2281
  {
2282
2282
  style: {
2283
- ...hn(a, l),
2283
+ ...pn(a, l),
2284
2284
  backgroundColor: "transparent"
2285
2285
  }
2286
2286
  }
@@ -2294,33 +2294,33 @@ function kn({
2294
2294
  )
2295
2295
  }
2296
2296
  );
2297
- return mt({ item: t, options: r, children: D });
2297
+ return gt({ item: t, options: r, children: dt });
2298
2298
  }
2299
2299
  const Nn = ({
2300
2300
  item: t,
2301
2301
  options: r
2302
2302
  }) => {
2303
2303
  var u, d, b, y;
2304
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Ft(
2304
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: h } = Ft(
2305
2305
  a,
2306
2306
  t,
2307
2307
  s,
2308
2308
  n,
2309
2309
  r
2310
- ), { durationInFrames: o } = wt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, l = /* @__PURE__ */ f(
2310
+ ), { durationInFrames: o } = wt(t.display, n), p = (s || 0) - t.display.from * n / 1e3, l = /* @__PURE__ */ f(
2311
2311
  jt,
2312
2312
  {
2313
2313
  style: Pt(c),
2314
2314
  animationIn: i,
2315
2315
  animationOut: e,
2316
- frame: h,
2316
+ frame: p,
2317
2317
  durationInFrames: o,
2318
2318
  children: /* @__PURE__ */ f(
2319
2319
  At,
2320
2320
  {
2321
- animationTimed: p,
2321
+ animationTimed: h,
2322
2322
  durationInFrames: o,
2323
- frame: h,
2323
+ frame: p,
2324
2324
  style: Pt(c),
2325
2325
  children: /* @__PURE__ */ f(
2326
2326
  Tt,
@@ -2333,9 +2333,9 @@ const Nn = ({
2333
2333
  ...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || [],
2334
2334
  ...i || [],
2335
2335
  ...e || [],
2336
- ...p || []
2336
+ ...h || []
2337
2337
  ],
2338
- frame: h,
2338
+ frame: p,
2339
2339
  durationInFrames: o,
2340
2340
  children: /* @__PURE__ */ f(
2341
2341
  "div",
@@ -2357,7 +2357,7 @@ const Nn = ({
2357
2357
  )
2358
2358
  }
2359
2359
  );
2360
- return mt({ item: t, options: r, children: l });
2360
+ return gt({ item: t, options: r, children: l });
2361
2361
  }, Lr = {
2362
2362
  // Legacy Easings
2363
2363
  linear: k.linear,
@@ -2391,20 +2391,20 @@ const Nn = ({
2391
2391
  animationTextFrames: a,
2392
2392
  property: i,
2393
2393
  from: e,
2394
- to: p,
2394
+ to: h,
2395
2395
  easing: o,
2396
- delay: h,
2396
+ delay: p,
2397
2397
  details: l,
2398
2398
  phase: u = "in",
2399
2399
  fade: d = !1
2400
2400
  }) => {
2401
- const b = Math.max(1, a), y = e === p;
2401
+ const b = Math.max(1, a), y = e === h;
2402
2402
  let v, x;
2403
2403
  c <= 1 ? (v = b, x = 0) : y ? (x = b / c, v = x) : (v = Math.min(
2404
2404
  b * 0.45,
2405
2405
  Math.max(2, b / c * 1.5)
2406
2406
  ), v >= b && (v = b * 0.5), x = (b - v) / (c - 1));
2407
- const M = h + r * x, m = n - M;
2407
+ const M = p + r * x, m = n - M;
2408
2408
  if (u === "in" && m < 0)
2409
2409
  return /* @__PURE__ */ f(
2410
2410
  "span",
@@ -2437,18 +2437,18 @@ const Nn = ({
2437
2437
  const g = y ? 1 : W(m, [0, v], [0, 1], {
2438
2438
  extrapolateLeft: "clamp",
2439
2439
  extrapolateRight: "clamp"
2440
- }), w = ne(o), I = y ? 1 : w(g), S = e + (p - e) * I;
2440
+ }), w = ne(o), I = y ? 1 : w(g), S = e + (h - e) * I;
2441
2441
  let $ = {
2442
2442
  display: "inline-block",
2443
2443
  transformOrigin: "center"
2444
2444
  };
2445
2445
  const N = [], F = [], B = (X = 50, P = "down") => {
2446
- const R = typeof (l == null ? void 0 : l.translateY) == "number" ? l.translateY : typeof (l == null ? void 0 : l.translateX) == "number" ? l.translateX : typeof (l == null ? void 0 : l.translate) == "number" ? l.translate : X, E = (l == null ? void 0 : l.direction) || P, Y = u === "out" ? 0 : R, U = Y + ((u === "out" ? R : 0) - Y) * I;
2447
- if (E === "left" || E === "right") {
2448
- const z = E === "left" ? -1 : 1;
2446
+ const R = typeof (l == null ? void 0 : l.translateY) == "number" ? l.translateY : typeof (l == null ? void 0 : l.translateX) == "number" ? l.translateX : typeof (l == null ? void 0 : l.translate) == "number" ? l.translate : X, _ = (l == null ? void 0 : l.direction) || P, Y = u === "out" ? 0 : R, U = Y + ((u === "out" ? R : 0) - Y) * I;
2447
+ if (_ === "left" || _ === "right") {
2448
+ const z = _ === "left" ? -1 : 1;
2449
2449
  N.push(`translateX(${z * U}%)`);
2450
2450
  } else {
2451
- const z = E === "up" ? -1 : 1;
2451
+ const z = _ === "up" ? -1 : 1;
2452
2452
  N.push(`translateY(${z * U}%)`);
2453
2453
  }
2454
2454
  };
@@ -2463,16 +2463,16 @@ const Nn = ({
2463
2463
  let X;
2464
2464
  if (g < 0.65) {
2465
2465
  const P = g / 0.65, R = k.out(k.cubic)(P);
2466
- X = e + (p + 0.1 - e) * R;
2466
+ X = e + (h + 0.1 - e) * R;
2467
2467
  } else {
2468
2468
  const P = (g - 0.65) / 0.35, R = k.out(k.quad)(P);
2469
- X = p + 0.1 - 0.1 * R;
2469
+ X = h + 0.1 - 0.1 * R;
2470
2470
  }
2471
2471
  N.push(`scale(${X})`), $.opacity = k.out(k.quad)(g);
2472
2472
  break;
2473
2473
  }
2474
2474
  case "growOut": {
2475
- const X = k.out(k.cubic)(g), P = e + (p - e) * X;
2475
+ const X = k.out(k.cubic)(g), P = e + (h - e) * X;
2476
2476
  N.push(`scale(${P})`), $.opacity = 1 - k.out(k.quad)(g);
2477
2477
  break;
2478
2478
  }
@@ -2514,8 +2514,8 @@ const Nn = ({
2514
2514
  case "translateX": {
2515
2515
  let X = 100, P = !1;
2516
2516
  if ((l == null ? void 0 : l.width) !== void 0) {
2517
- const E = typeof l.width == "number" ? l.width : parseFloat(l.width);
2518
- isNaN(E) || (X = E, P = !0);
2517
+ const _ = typeof l.width == "number" ? l.width : parseFloat(l.width);
2518
+ isNaN(_) || (X = _, P = !0);
2519
2519
  }
2520
2520
  const R = P ? `${S / 100 * X}px` : `${S}%`;
2521
2521
  N.push(`translateX(${R})`), (d || l != null && l.fade) && ($.opacity = u === "out" ? 1 - I : I);
@@ -2524,8 +2524,8 @@ const Nn = ({
2524
2524
  case "translateY": {
2525
2525
  let X = 100, P = !1;
2526
2526
  if ((l == null ? void 0 : l.height) !== void 0) {
2527
- const E = typeof l.height == "number" ? l.height : parseFloat(l.height);
2528
- isNaN(E) || (X = E, P = !0);
2527
+ const _ = typeof l.height == "number" ? l.height : parseFloat(l.height);
2528
+ isNaN(_) || (X = _, P = !0);
2529
2529
  }
2530
2530
  const R = P ? `${S / 100 * X}px` : `${S}%`;
2531
2531
  N.push(`translateY(${R})`), (d || l != null && l.fade) && ($.opacity = u === "out" ? 1 - I : I);
@@ -2570,14 +2570,14 @@ const Nn = ({
2570
2570
  textLength: c,
2571
2571
  animationTextInFrames: a
2572
2572
  }) => {
2573
- const i = a, e = i / (c + 1), p = r * e, o = Mt({
2574
- frame: n - p,
2573
+ const i = a, e = i / (c + 1), h = r * e, o = Mt({
2574
+ frame: n - h,
2575
2575
  fps: s,
2576
2576
  from: 4,
2577
2577
  to: 1,
2578
2578
  config: { mass: 1, damping: 10 }
2579
- }), h = W(
2580
- n - p,
2579
+ }), p = W(
2580
+ n - h,
2581
2581
  [0, i / 2],
2582
2582
  // Ensure opacity fades in within half the duration
2583
2583
  [0, 1],
@@ -2589,7 +2589,7 @@ const Nn = ({
2589
2589
  style: {
2590
2590
  display: "inline-block",
2591
2591
  transform: `scale(${o})`,
2592
- opacity: h
2592
+ opacity: p
2593
2593
  },
2594
2594
  children: t === " " ? " " : t
2595
2595
  },
@@ -2603,8 +2603,8 @@ const Nn = ({
2603
2603
  textLength: c,
2604
2604
  animationTextInFrames: a
2605
2605
  }) => {
2606
- const e = a / c, p = r * e, o = Mt({
2607
- frame: n - p,
2606
+ const e = a / c, h = r * e, o = Mt({
2607
+ frame: n - h,
2608
2608
  fps: s,
2609
2609
  from: -90,
2610
2610
  to: 0,
@@ -2629,8 +2629,8 @@ const Nn = ({
2629
2629
  textLength: c,
2630
2630
  animationTextInFrames: a
2631
2631
  }) => {
2632
- const e = a / c, p = r * e, o = Mt({
2633
- frame: n - p,
2632
+ const e = a / c, h = r * e, o = Mt({
2633
+ frame: n - h,
2634
2634
  fps: s,
2635
2635
  from: 0,
2636
2636
  to: 1,
@@ -2655,13 +2655,13 @@ const Nn = ({
2655
2655
  textLength: c,
2656
2656
  animationTextInFrames: a
2657
2657
  }) => {
2658
- const i = a, e = i / c, p = r * e, o = Mt({
2659
- frame: n - p,
2658
+ const i = a, e = i / c, h = r * e, o = Mt({
2659
+ frame: n - h,
2660
2660
  fps: s,
2661
2661
  from: 1.1,
2662
2662
  to: 0,
2663
2663
  config: { damping: 10 }
2664
- }), h = W(n - p, [0, i / 2], [0, 1], {
2664
+ }), p = W(n - h, [0, i / 2], [0, 1], {
2665
2665
  extrapolateRight: "clamp",
2666
2666
  extrapolateLeft: "clamp"
2667
2667
  });
@@ -2671,7 +2671,7 @@ const Nn = ({
2671
2671
  style: {
2672
2672
  display: "inline-block",
2673
2673
  transform: `translateY(${o}em)`,
2674
- opacity: h
2674
+ opacity: p
2675
2675
  },
2676
2676
  children: t === " " ? " " : t
2677
2677
  },
@@ -2685,14 +2685,14 @@ const Nn = ({
2685
2685
  textLength: c,
2686
2686
  animationTextInFrames: a
2687
2687
  }) => {
2688
- const i = a, e = i / c, p = r * e, o = Mt({
2689
- frame: n - p,
2688
+ const i = a, e = i / c, h = r * e, o = Mt({
2689
+ frame: n - h,
2690
2690
  fps: s,
2691
2691
  from: -100,
2692
2692
  to: 0,
2693
2693
  config: { damping: 20, stiffness: 120 }
2694
- }), h = W(
2695
- n - p,
2694
+ }), p = W(
2695
+ n - h,
2696
2696
  [0, i / 2],
2697
2697
  // Complete opacity ramp-up within half the duration
2698
2698
  [0, 1],
@@ -2707,7 +2707,7 @@ const Nn = ({
2707
2707
  style: {
2708
2708
  display: "inline-block",
2709
2709
  transform: `translateY(${o}px)`,
2710
- opacity: h
2710
+ opacity: p
2711
2711
  },
2712
2712
  children: t === " " ? " " : t
2713
2713
  },
@@ -2722,20 +2722,20 @@ const Nn = ({
2722
2722
  animationTextOutFrames: a,
2723
2723
  durationInFrames: i
2724
2724
  }) => {
2725
- const e = i - a, p = r / c * (i - e), o = Mt({
2726
- frame: n - e - p,
2725
+ const e = i - a, h = r / c * (i - e), o = Mt({
2726
+ frame: n - e - h,
2727
2727
  fps: s,
2728
2728
  from: 1,
2729
2729
  to: 0,
2730
2730
  config: { mass: 0.5, damping: 10 }
2731
- }), h = Mt({
2732
- frame: n - e - p,
2731
+ }), p = Mt({
2732
+ frame: n - e - h,
2733
2733
  fps: s,
2734
2734
  from: 0,
2735
2735
  to: 50,
2736
2736
  config: { mass: 0.5, damping: 10 }
2737
2737
  }), l = Mt({
2738
- frame: n - e - p,
2738
+ frame: n - e - h,
2739
2739
  fps: s,
2740
2740
  from: 0,
2741
2741
  to: 180,
@@ -2747,7 +2747,7 @@ const Nn = ({
2747
2747
  style: {
2748
2748
  display: "inline-block",
2749
2749
  opacity: o,
2750
- transform: `translateY(${h}px) rotate(${l}deg)`
2750
+ transform: `translateY(${p}px) rotate(${l}deg)`
2751
2751
  },
2752
2752
  children: t === " " ? " " : t
2753
2753
  },
@@ -2762,13 +2762,13 @@ const Nn = ({
2762
2762
  animationTextOutFrames: a,
2763
2763
  durationInFrames: i
2764
2764
  }) => {
2765
- const e = i - a, p = a / c, o = e + r * p, h = n - o, l = Mt({
2766
- frame: h,
2765
+ const e = i - a, h = a / c, o = e + r * h, p = n - o, l = Mt({
2766
+ frame: p,
2767
2767
  fps: s,
2768
2768
  from: 1,
2769
2769
  to: 0,
2770
2770
  config: { mass: 1, damping: 10 }
2771
- }), u = W(h, [0, p], [1, 0], {
2771
+ }), u = W(p, [0, h], [1, 0], {
2772
2772
  extrapolateLeft: "clamp",
2773
2773
  extrapolateRight: "clamp"
2774
2774
  });
@@ -2793,7 +2793,7 @@ const Nn = ({
2793
2793
  animationTextOutFrames: a,
2794
2794
  durationInFrames: i
2795
2795
  }) => {
2796
- const p = a / c, h = i - a + r * p, l = n - h, u = Mt({
2796
+ const h = a / c, p = i - a + r * h, l = n - p, u = Mt({
2797
2797
  frame: l,
2798
2798
  fps: s,
2799
2799
  from: 0,
@@ -2811,7 +2811,7 @@ const Nn = ({
2811
2811
  },
2812
2812
  r
2813
2813
  );
2814
- }, he = ({
2814
+ }, pe = ({
2815
2815
  char: t,
2816
2816
  index: r,
2817
2817
  frame: n,
@@ -2820,13 +2820,13 @@ const Nn = ({
2820
2820
  animationTextOutFrames: a,
2821
2821
  durationInFrames: i
2822
2822
  }) => {
2823
- const p = a / c, h = i - a + r * p, l = n - h, u = Mt({
2823
+ const h = a / c, p = i - a + r * h, l = n - p, u = Mt({
2824
2824
  frame: l,
2825
2825
  fps: s,
2826
2826
  from: 0,
2827
2827
  to: 1.1,
2828
2828
  config: { damping: 10 }
2829
- }), d = W(l, [0, p], [1, 0], {
2829
+ }), d = W(l, [0, h], [1, 0], {
2830
2830
  extrapolateRight: "clamp",
2831
2831
  extrapolateLeft: "clamp"
2832
2832
  });
@@ -2842,7 +2842,7 @@ const Nn = ({
2842
2842
  },
2843
2843
  r
2844
2844
  );
2845
- }, pe = ({
2845
+ }, he = ({
2846
2846
  char: t,
2847
2847
  index: r,
2848
2848
  frame: n,
@@ -2850,27 +2850,27 @@ const Nn = ({
2850
2850
  textLength: c,
2851
2851
  animationTextInFrames: a
2852
2852
  }) => {
2853
- const e = a / c, p = r * e, o = Mt({
2854
- frame: n - p,
2853
+ const e = a / c, h = r * e, o = Mt({
2854
+ frame: n - h,
2855
2855
  fps: s,
2856
2856
  from: 1.1,
2857
2857
  to: 0,
2858
2858
  config: { damping: 10 }
2859
- }), h = Mt({
2860
- frame: n - p,
2859
+ }), p = Mt({
2860
+ frame: n - h,
2861
2861
  fps: s,
2862
2862
  from: 0.55,
2863
2863
  to: 0,
2864
2864
  config: { damping: 10 }
2865
2865
  }), l = Mt({
2866
- frame: n - p,
2866
+ frame: n - h,
2867
2867
  fps: s,
2868
2868
  from: 180,
2869
2869
  to: 0,
2870
2870
  config: { damping: 10 }
2871
2871
  }), u = W(
2872
2872
  n,
2873
- [p, p + 15],
2873
+ [h, h + 15],
2874
2874
  // Adjust for opacity ramp-up
2875
2875
  [0, 1],
2876
2876
  {
@@ -2884,7 +2884,7 @@ const Nn = ({
2884
2884
  style: {
2885
2885
  display: "inline-block",
2886
2886
  transformOrigin: "0 100%",
2887
- transform: `translateY(${o}em) translateX(${h}em) rotateZ(${l}deg)`,
2887
+ transform: `translateY(${o}em) translateX(${p}em) rotateZ(${l}deg)`,
2888
2888
  opacity: u
2889
2889
  },
2890
2890
  children: t === " " ? " " : t
@@ -2900,16 +2900,16 @@ const Nn = ({
2900
2900
  animationTextOutFrames: a,
2901
2901
  durationInFrames: i
2902
2902
  }) => {
2903
- const e = i - a, p = a / c, o = e + r * p, h = n - o, l = Mt({
2904
- frame: h,
2903
+ const e = i - a, h = a / c, o = e + r * h, p = n - o, l = Mt({
2904
+ frame: p,
2905
2905
  fps: s,
2906
2906
  from: 0,
2907
2907
  to: 100,
2908
2908
  // Move text out of view
2909
2909
  config: { damping: 20, stiffness: 120 }
2910
2910
  }), u = W(
2911
- h,
2912
- [0, p],
2911
+ p,
2912
+ [0, h],
2913
2913
  // Frames for opacity fade-out
2914
2914
  [1, 0],
2915
2915
  {
@@ -2938,25 +2938,25 @@ const Nn = ({
2938
2938
  animationTextOutFrames: a,
2939
2939
  durationInFrames: i
2940
2940
  }) => {
2941
- const e = i - a, p = a / c, o = e + r * p, h = n - o, l = Mt({
2942
- frame: h,
2941
+ const e = i - a, h = a / c, o = e + r * h, p = n - o, l = Mt({
2942
+ frame: p,
2943
2943
  fps: s,
2944
2944
  from: 0,
2945
2945
  to: 1,
2946
2946
  config: { mass: 1, damping: 10 }
2947
2947
  }), u = Mt({
2948
- frame: h,
2948
+ frame: p,
2949
2949
  fps: s,
2950
2950
  from: 0,
2951
2951
  to: 0.55,
2952
2952
  config: { mass: 1, damping: 10 }
2953
2953
  }), d = Mt({
2954
- frame: h,
2954
+ frame: p,
2955
2955
  fps: s,
2956
2956
  from: 0,
2957
2957
  to: 180,
2958
2958
  config: { mass: 1, damping: 10 }
2959
- }), b = W(h, [0, p], [1, 0], {
2959
+ }), b = W(p, [0, h], [1, 0], {
2960
2960
  extrapolateLeft: "clamp",
2961
2961
  extrapolateRight: "clamp"
2962
2962
  });
@@ -2982,8 +2982,8 @@ const Nn = ({
2982
2982
  animationTextOutFrames: a,
2983
2983
  durationInFrames: i
2984
2984
  }) => {
2985
- const e = i - a, p = a / c, o = e + r * p, h = n - o, l = Mt({
2986
- frame: h,
2985
+ const e = i - a, h = a / c, o = e + r * h, p = n - o, l = Mt({
2986
+ frame: p,
2987
2987
  fps: s,
2988
2988
  from: 1,
2989
2989
  to: 0,
@@ -3057,13 +3057,13 @@ const Nn = ({
3057
3057
  fps: s,
3058
3058
  animationTextInFrames: c
3059
3059
  }) => {
3060
- const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1), p = 3 - e * 2, o = e;
3060
+ const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1), h = 3 - e * 2, o = e;
3061
3061
  return /* @__PURE__ */ f(
3062
3062
  "span",
3063
3063
  {
3064
3064
  style: {
3065
3065
  display: "inline-block",
3066
- transform: `scale(${p})`,
3066
+ transform: `scale(${h})`,
3067
3067
  opacity: o
3068
3068
  },
3069
3069
  children: t === " " ? " " : t
@@ -3077,13 +3077,13 @@ const Nn = ({
3077
3077
  fps: s,
3078
3078
  animationTextInFrames: c
3079
3079
  }) => {
3080
- const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1), p = 3 - e * 2, o = e;
3080
+ const a = c / s, i = n / s, e = Math.min(Math.max(i / a, 0), 1), h = 3 - e * 2, o = e;
3081
3081
  return /* @__PURE__ */ f(
3082
3082
  "span",
3083
3083
  {
3084
3084
  style: {
3085
3085
  display: "inline-block",
3086
- transform: `scaleX(${p})`,
3086
+ transform: `scaleX(${h})`,
3087
3087
  opacity: o
3088
3088
  },
3089
3089
  children: t === " " ? " " : t
@@ -3098,16 +3098,16 @@ const Nn = ({
3098
3098
  animationTextOutFrames: c,
3099
3099
  durationInFrames: a
3100
3100
  }) => {
3101
- const i = (a - c) / s, e = a / s, p = n / s, o = Math.min(
3102
- Math.max((p - i) / (e - i), 0),
3101
+ const i = (a - c) / s, e = a / s, h = n / s, o = Math.min(
3102
+ Math.max((h - i) / (e - i), 0),
3103
3103
  1
3104
- ), h = 1 + o, l = 1 - o;
3104
+ ), p = 1 + o, l = 1 - o;
3105
3105
  return /* @__PURE__ */ f(
3106
3106
  "span",
3107
3107
  {
3108
3108
  style: {
3109
3109
  display: "inline-block",
3110
- transform: `scaleX(${h})`,
3110
+ transform: `scaleX(${p})`,
3111
3111
  opacity: l
3112
3112
  },
3113
3113
  children: t === " " ? " " : t
@@ -3122,16 +3122,16 @@ const Nn = ({
3122
3122
  animationTextOutFrames: c,
3123
3123
  durationInFrames: a
3124
3124
  }) => {
3125
- const i = (a - c) / s, e = a / s, p = n / s, o = Math.min(
3126
- Math.max((p - i) / (e - i), 0),
3125
+ const i = (a - c) / s, e = a / s, h = n / s, o = Math.min(
3126
+ Math.max((h - i) / (e - i), 0),
3127
3127
  1
3128
- ), h = 1 + o, l = 1 - o;
3128
+ ), p = 1 + o, l = 1 - o;
3129
3129
  return /* @__PURE__ */ f(
3130
3130
  "span",
3131
3131
  {
3132
3132
  style: {
3133
3133
  display: "inline-block",
3134
- transform: `scale(${h})`,
3134
+ transform: `scale(${p})`,
3135
3135
  opacity: l
3136
3136
  },
3137
3137
  children: t === " " ? " " : t
@@ -3215,7 +3215,7 @@ const ke = ({
3215
3215
  extrapolateRight: "clamp"
3216
3216
  }
3217
3217
  );
3218
- return /* @__PURE__ */ bt(
3218
+ return /* @__PURE__ */ yt(
3219
3219
  "span",
3220
3220
  {
3221
3221
  style: {
@@ -3263,13 +3263,13 @@ function Fe({
3263
3263
  if (i + e.length <= c)
3264
3264
  return i += e.length + 1, e;
3265
3265
  if (i < c) {
3266
- const p = e.slice(0, c - i);
3267
- return i = c, p;
3266
+ const h = e.slice(0, c - i);
3267
+ return i = c, h;
3268
3268
  }
3269
3269
  return "";
3270
3270
  }).join(" ");
3271
3271
  }, [c]);
3272
- return /* @__PURE__ */ bt(
3272
+ return /* @__PURE__ */ yt(
3273
3273
  "div",
3274
3274
  {
3275
3275
  style: {
@@ -3307,7 +3307,7 @@ const Ye = ({
3307
3307
  }) => {
3308
3308
  const c = W(r, [0, s], [0, 1], {
3309
3309
  extrapolateRight: "clamp"
3310
- }), a = n.width, i = n.height, e = W(c, [0, 1], [0, a]), p = W(c, [0, 1], [a / 2, 0]);
3310
+ }), a = n.width, i = n.height, e = W(c, [0, 1], [0, a]), h = W(c, [0, 1], [a / 2, 0]);
3311
3311
  return /* @__PURE__ */ f(
3312
3312
  "div",
3313
3313
  {
@@ -3345,7 +3345,7 @@ const Ye = ({
3345
3345
  width: n.width,
3346
3346
  height: n.height,
3347
3347
  color: n.color === "white" || n.color.includes("fff") ? "black" : n.color,
3348
- transform: `translateX(${p * 2}px)`
3348
+ transform: `translateX(${h * 2}px)`
3349
3349
  },
3350
3350
  children: t
3351
3351
  }
@@ -3362,7 +3362,7 @@ const Ye = ({
3362
3362
  }) => {
3363
3363
  const c = n * 0.5, a = n, i = 8, e = W(r, [0, c], [0.5, 1], {
3364
3364
  extrapolateRight: "clamp"
3365
- }), p = e, o = 0, h = 1, l = W(r, [0, c], [2, 1], {
3365
+ }), h = e, o = 0, p = 1, l = W(r, [0, c], [2, 1], {
3366
3366
  extrapolateRight: "clamp"
3367
3367
  }), u = r < c ? W(r, [0, c], [20, 0], {
3368
3368
  extrapolateRight: "clamp"
@@ -3405,7 +3405,7 @@ const Ye = ({
3405
3405
  )
3406
3406
  );
3407
3407
  }
3408
- return /* @__PURE__ */ bt(
3408
+ return /* @__PURE__ */ yt(
3409
3409
  "div",
3410
3410
  {
3411
3411
  style: {
@@ -3423,7 +3423,7 @@ const Ye = ({
3423
3423
  width: s.width,
3424
3424
  height: s.height,
3425
3425
  background: "transparent",
3426
- transform: `scale(${p})`
3426
+ transform: `scale(${h})`
3427
3427
  },
3428
3428
  children: t
3429
3429
  }
@@ -3446,9 +3446,9 @@ const Ye = ({
3446
3446
  "span",
3447
3447
  {
3448
3448
  style: {
3449
- opacity: h,
3449
+ opacity: p,
3450
3450
  filter: `blur(${o}px)`,
3451
- transform: `scale(${p})`,
3451
+ transform: `scale(${h})`,
3452
3452
  fontSize: parseFloat(s.fontSize.toString()),
3453
3453
  position: "absolute",
3454
3454
  width: s.width,
@@ -3477,12 +3477,12 @@ const Ye = ({
3477
3477
  details: s
3478
3478
  }) => {
3479
3479
  const c = n * 3 / 4, a = Math.floor(c / Hr.length);
3480
- let i = "", e = 0, p = a, o = 2, h = 0.5, l = parseFloat(s.fontSize.toString());
3480
+ let i = "", e = 0, h = a, o = 2, p = 0.5, l = parseFloat(s.fontSize.toString());
3481
3481
  if (r < c) {
3482
3482
  const v = Math.floor(r / a);
3483
- i = Hr[v], e = r - v * a, p = a, o = 2, h = 0.5, l = parseFloat(s.fontSize.toString());
3484
- } else r < n ? (i = t, e = r - c, p = n - c, o = 2, h = 1, l = parseFloat(s.fontSize.toString())) : (i = t, e = p, o = 1, h = 1, l = parseFloat(s.fontSize.toString()));
3485
- const u = Math.min(e / p, 1), d = W(u, [0, 1], [o, h]), b = W(u, [0, 1], [0.3, 1]), y = W(u, [0, 1], [8, 0]);
3483
+ i = Hr[v], e = r - v * a, h = a, o = 2, p = 0.5, l = parseFloat(s.fontSize.toString());
3484
+ } else r < n ? (i = t, e = r - c, h = n - c, o = 2, p = 1, l = parseFloat(s.fontSize.toString())) : (i = t, e = h, o = 1, p = 1, l = parseFloat(s.fontSize.toString()));
3485
+ const u = Math.min(e / h, 1), d = W(u, [0, 1], [o, p]), b = W(u, [0, 1], [0.3, 1]), y = W(u, [0, 1], [8, 0]);
3486
3486
  return /* @__PURE__ */ f(
3487
3487
  "span",
3488
3488
  {
@@ -3518,8 +3518,8 @@ const Ye = ({
3518
3518
  const w = m ? `${m} ${g}` : g;
3519
3519
  v.measureText(w).width > d ? (M.push(m), m = g) : m = w;
3520
3520
  }), m && M.push(m), M;
3521
- }, i = n.width || 300, e = a(t, i, n.fontSize), p = s / c, o = 0.3, h = p / e.length, l = e.map((u, d) => {
3522
- const b = d * h * (1 - o) * 1.5, y = b + h, v = b * c, x = Math.max(y * c, p * c), M = W(r, [v, x], [0, 1], {
3521
+ }, i = n.width || 300, e = a(t, i, n.fontSize), h = s / c, o = 0.3, p = h / e.length, l = e.map((u, d) => {
3522
+ const b = d * p * (1 - o) * 1.5, y = b + p, v = b * c, x = Math.max(y * c, h * c), M = W(r, [v, x], [0, 1], {
3523
3523
  easing: k.out(k.cubic),
3524
3524
  extrapolateLeft: "clamp",
3525
3525
  extrapolateRight: "clamp"
@@ -3581,13 +3581,13 @@ const Ye = ({
3581
3581
  children: t
3582
3582
  }
3583
3583
  );
3584
- }, _e = ({
3584
+ }, Ee = ({
3585
3585
  frame: t,
3586
3586
  durationInFrames: r,
3587
3587
  text: n
3588
3588
  }) => {
3589
3589
  const s = W(t, [0, r / 2], [0, 360]), c = s - 90;
3590
- return /* @__PURE__ */ bt(
3590
+ return /* @__PURE__ */ yt(
3591
3591
  "div",
3592
3592
  {
3593
3593
  style: {
@@ -3626,7 +3626,7 @@ const Ye = ({
3626
3626
  ]
3627
3627
  }
3628
3628
  );
3629
- }, Ee = ({
3629
+ }, _e = ({
3630
3630
  frame: t,
3631
3631
  text: r,
3632
3632
  details: n,
@@ -3689,31 +3689,31 @@ const We = ({ text: t, frame: r }) => {
3689
3689
  height: "100%",
3690
3690
  position: "relative"
3691
3691
  },
3692
- children: Array.from({ length: i }).map((e, p) => {
3693
- const o = p * 4, h = -p * 2, l = 1 / (i - p);
3692
+ children: Array.from({ length: i }).map((e, h) => {
3693
+ const o = h * 4, p = -h * 2, l = 1 / (i - h);
3694
3694
  return /* @__PURE__ */ f(
3695
3695
  "div",
3696
3696
  {
3697
3697
  style: {
3698
3698
  position: "absolute",
3699
- transform: `translate(${o * 4}px, ${h * 4}px)`,
3699
+ transform: `translate(${o * 4}px, ${p * 4}px)`,
3700
3700
  fontWeight: "bold",
3701
3701
  fontSize: n.fontSize,
3702
- zIndex: p,
3703
- color: i !== p + 1 ? "red" : n.color,
3702
+ zIndex: h,
3703
+ color: i !== h + 1 ? "red" : n.color,
3704
3704
  background: "transparent",
3705
3705
  opacity: l
3706
3706
  },
3707
3707
  children: t
3708
3708
  },
3709
- p
3709
+ h
3710
3710
  );
3711
3711
  })
3712
3712
  }
3713
3713
  );
3714
3714
  }, Ce = ({ text: t, frame: r }) => {
3715
3715
  const n = Math.sin(r / 10) * 10, s = Math.sin(r / 5) * 10;
3716
- return /* @__PURE__ */ bt(
3716
+ return /* @__PURE__ */ yt(
3717
3717
  "span",
3718
3718
  {
3719
3719
  style: {
@@ -3760,14 +3760,14 @@ const We = ({ text: t, frame: r }) => {
3760
3760
  details: i,
3761
3761
  marqueeDetails: e
3762
3762
  }) => {
3763
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Math.max(0, o - (n || 0)), l = Math.min(1, Math.max(0, h / (s || 1))), u = i.width || 300, d = i.height || 100, b = (e == null ? void 0 : e.direction) || "horizontal", y = b === "static", v = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatX) ?? 5))), x = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatY) ?? 5))), M = (e == null ? void 0 : e.baseSpeed) !== void 0 ? Number(e.baseSpeed) : 2, m = (e == null ? void 0 : e.speedVariation) !== void 0 ? Number(e.speedVariation) : 0.5, g = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialBaseSpeed) !== void 0 ? Number(e.initialBaseSpeed) : M, w = e != null && e.hasInitialValue ? g + (M - g) * l : M, I = y ? 0 : w * 400, S = y ? 0 : w * 400, $ = (e == null ? void 0 : e.scaleFactor) !== void 0 ? Number(e.scaleFactor) : 1, N = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialScaleFactor) !== void 0 ? Number(e.initialScaleFactor) : $, F = e != null && e.hasInitialValue ? N + ($ - N) * l : $, B = (e == null ? void 0 : e.lineOffset) !== void 0 ? Number(e.lineOffset) : 0.5, X = (e == null ? void 0 : e.gapX) !== void 0 ? Number(e.gapX) : 60, P = (e == null ? void 0 : e.gapY) !== void 0 ? Number(e.gapY) : 60, R = X / 100 * u, E = P / 100 * d, Y = u * F + R, C = d * F + E, U = Dt(i), z = b === "vertical" || b === "up" || b === "down", D = b === "diagonal", dt = (v - 1) / 2, et = (x - 1) / 2, K = x, nt = v, G = Array.from({ length: K }, (O, j) => j - et), Q = Array.from({ length: nt }, (O, j) => j - dt), ht = (O, j, T, lt) => /* @__PURE__ */ f(
3763
+ const h = Nt(), o = typeof r == "number" && !isNaN(r) ? r : h, p = Math.max(0, o - (n || 0)), l = Math.min(1, Math.max(0, p / (s || 1))), u = i.width || 300, d = i.height || 100, b = (e == null ? void 0 : e.direction) || "horizontal", y = b === "static", v = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatX) ?? 5))), x = Math.min(15, Math.max(1, Number((e == null ? void 0 : e.repeatY) ?? 5))), M = (e == null ? void 0 : e.baseSpeed) !== void 0 ? Number(e.baseSpeed) : 2, m = (e == null ? void 0 : e.speedVariation) !== void 0 ? Number(e.speedVariation) : 0.5, g = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialBaseSpeed) !== void 0 ? Number(e.initialBaseSpeed) : M, w = e != null && e.hasInitialValue ? g + (M - g) * l : M, I = y ? 0 : w * 400, S = y ? 0 : w * 400, $ = (e == null ? void 0 : e.scaleFactor) !== void 0 ? Number(e.scaleFactor) : 1, N = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialScaleFactor) !== void 0 ? Number(e.initialScaleFactor) : $, F = e != null && e.hasInitialValue ? N + ($ - N) * l : $, B = (e == null ? void 0 : e.lineOffset) !== void 0 ? Number(e.lineOffset) : 0.5, X = (e == null ? void 0 : e.gapX) !== void 0 ? Number(e.gapX) : 60, P = (e == null ? void 0 : e.gapY) !== void 0 ? Number(e.gapY) : 60, R = X / 100 * u, _ = P / 100 * d, Y = u * F + R, C = d * F + _, U = Dt(i), z = b === "vertical" || b === "up" || b === "down", tt = b === "diagonal", dt = (v - 1) / 2, et = (x - 1) / 2, K = x, nt = v, G = Array.from({ length: K }, (O, j) => j - et), Q = Array.from({ length: nt }, (O, j) => j - dt), pt = (O, j, D, lt) => /* @__PURE__ */ f(
3764
3764
  "span",
3765
3765
  {
3766
3766
  style: {
3767
3767
  ...U,
3768
3768
  position: "absolute",
3769
3769
  left: `calc(50% + ${j}px)`,
3770
- top: `calc(50% + ${T}px)`,
3770
+ top: `calc(50% + ${D}px)`,
3771
3771
  transform: `translate(-50%, -50%) scale(${F})`,
3772
3772
  transformOrigin: "center center",
3773
3773
  opacity: lt ? 1 : 0.85,
@@ -3787,21 +3787,21 @@ const We = ({ text: t, frame: r }) => {
3787
3787
  overflow: "visible"
3788
3788
  },
3789
3789
  children: Q.map((O, j) => {
3790
- let T = j % 2 === 0 ? 1 : -1;
3791
- b === "up" && (T = -1), b === "down" && (T = 1);
3792
- const lt = 1 + j % 2 * (m * 0.5), q = S > 0 && T !== 0 ? T * (h * S * 0.1 * lt) + O * (C * B) : O * (C * B), Z = S === 0 || T === 0 ? 0 : (q % C + C) % C - C / 2;
3793
- return G.map((at, tt) => {
3794
- const yt = O * Y, rt = at * C + Z;
3795
- return ht(
3796
- `v-${j}-${tt}`,
3797
- yt,
3790
+ let D = j % 2 === 0 ? 1 : -1;
3791
+ b === "up" && (D = -1), b === "down" && (D = 1);
3792
+ const lt = 1 + j % 2 * (m * 0.5), T = S > 0 && D !== 0 ? D * (p * S * 0.1 * lt) + O * (C * B) : O * (C * B), Z = S === 0 || D === 0 ? 0 : (T % C + C) % C - C / 2;
3793
+ return G.map((at, mt) => {
3794
+ const J = O * Y, rt = at * C + Z;
3795
+ return pt(
3796
+ `v-${j}-${mt}`,
3797
+ J,
3798
3798
  rt,
3799
3799
  O === 0 && at === 0
3800
3800
  );
3801
3801
  });
3802
3802
  })
3803
3803
  }
3804
- ) : D ? /* @__PURE__ */ f(
3804
+ ) : tt ? /* @__PURE__ */ f(
3805
3805
  "div",
3806
3806
  {
3807
3807
  style: {
@@ -3811,10 +3811,10 @@ const We = ({ text: t, frame: r }) => {
3811
3811
  overflow: "visible"
3812
3812
  },
3813
3813
  children: G.map((O, j) => {
3814
- const T = j % 2 === 0 ? 1 : -1, lt = j % 2 === 0 ? 1 : -1, q = 1 + j % 2 * (m * 0.5), Z = I > 0 ? T * (h * I * 0.1 * q) + O * (Y * B) : O * (Y * B), at = I === 0 ? 0 : (Z % Y + Y) % Y - Y / 2, tt = S > 0 ? lt * (h * S * 0.1 * q) + O * (C * B) : O * (C * B), yt = S === 0 ? 0 : (tt % C + C) % C - C / 2;
3814
+ const D = j % 2 === 0 ? 1 : -1, lt = j % 2 === 0 ? 1 : -1, T = 1 + j % 2 * (m * 0.5), Z = I > 0 ? D * (p * I * 0.1 * T) + O * (Y * B) : O * (Y * B), at = I === 0 ? 0 : (Z % Y + Y) % Y - Y / 2, mt = S > 0 ? lt * (p * S * 0.1 * T) + O * (C * B) : O * (C * B), J = S === 0 ? 0 : (mt % C + C) % C - C / 2;
3815
3815
  return Q.map((rt, ct) => {
3816
- const st = rt * Y + at, ut = O * C + yt;
3817
- return ht(
3816
+ const st = rt * Y + at, ut = O * C + J;
3817
+ return pt(
3818
3818
  `d-${j}-${ct}`,
3819
3819
  st,
3820
3820
  ut,
@@ -3833,14 +3833,14 @@ const We = ({ text: t, frame: r }) => {
3833
3833
  overflow: "visible"
3834
3834
  },
3835
3835
  children: G.map((O, j) => {
3836
- let T = j % 2 === 0 ? 1 : -1;
3837
- b === "left" && (T = -1), b === "right" && (T = 1);
3838
- const lt = 1 + j % 2 * (m * 0.5), q = I > 0 && T !== 0 ? T * (h * I * 0.1 * lt) + O * (Y * B) : O * (Y * B), Z = I === 0 || T === 0 ? 0 : (q % Y + Y) % Y - Y / 2;
3839
- return Q.map((at, tt) => {
3840
- const yt = at * Y + Z, rt = O * C;
3841
- return ht(
3842
- `h-${j}-${tt}`,
3843
- yt,
3836
+ let D = j % 2 === 0 ? 1 : -1;
3837
+ b === "left" && (D = -1), b === "right" && (D = 1);
3838
+ const lt = 1 + j % 2 * (m * 0.5), T = I > 0 && D !== 0 ? D * (p * I * 0.1 * lt) + O * (Y * B) : O * (Y * B), Z = I === 0 || D === 0 ? 0 : (T % Y + Y) % Y - Y / 2;
3839
+ return Q.map((at, mt) => {
3840
+ const J = at * Y + Z, rt = O * C;
3841
+ return pt(
3842
+ `h-${j}-${mt}`,
3843
+ J,
3844
3844
  rt,
3845
3845
  O === 0 && at === 0
3846
3846
  );
@@ -3858,7 +3858,7 @@ const We = ({ text: t, frame: r }) => {
3858
3858
  details: i,
3859
3859
  echoesDetails: e
3860
3860
  }) => {
3861
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, l = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", d = Number((e == null ? void 0 : e.toRepeatCount) ?? 5), b = Number((e == null ? void 0 : e.toScaleDown) ?? 0.3), y = Number((e == null ? void 0 : e.toCenterX) ?? 0.5), v = Number((e == null ? void 0 : e.toCenterY) ?? 0.5), x = (e == null ? void 0 : e.initialRepeatCount) !== void 0 ? Number(e.initialRepeatCount) : d, M = (e == null ? void 0 : e.initialScaleDown) !== void 0 ? Number(e.initialScaleDown) : 1, m = (e == null ? void 0 : e.initialCenterX) !== void 0 ? Number(e.initialCenterX) : y, g = (e == null ? void 0 : e.initialCenterY) !== void 0 ? Number(e.initialCenterY) : v, w = Math.max(0, o - (n || 0)), I = Math.min(1, Math.max(0, w / (s || 1)));
3861
+ const h = Nt(), o = typeof r == "number" && !isNaN(r) ? r : h, p = i.width || 300, l = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", d = Number((e == null ? void 0 : e.toRepeatCount) ?? 5), b = Number((e == null ? void 0 : e.toScaleDown) ?? 0.3), y = Number((e == null ? void 0 : e.toCenterX) ?? 0.5), v = Number((e == null ? void 0 : e.toCenterY) ?? 0.5), x = (e == null ? void 0 : e.initialRepeatCount) !== void 0 ? Number(e.initialRepeatCount) : d, M = (e == null ? void 0 : e.initialScaleDown) !== void 0 ? Number(e.initialScaleDown) : 1, m = (e == null ? void 0 : e.initialCenterX) !== void 0 ? Number(e.initialCenterX) : y, g = (e == null ? void 0 : e.initialCenterY) !== void 0 ? Number(e.initialCenterY) : v, w = Math.max(0, o - (n || 0)), I = Math.min(1, Math.max(0, w / (s || 1)));
3862
3862
  let $ = c + (a - c) * I;
3863
3863
  u === "initial" ? $ = 0 : u === "final" && ($ = 1);
3864
3864
  const N = Math.max(
@@ -3876,7 +3876,7 @@ const We = ({ text: t, frame: r }) => {
3876
3876
  $,
3877
3877
  [0, 1],
3878
3878
  [g, v]
3879
- ), P = Dt(i), R = Array.from({ length: N }, (E, Y) => Y);
3879
+ ), P = Dt(i), R = Array.from({ length: N }, (_, Y) => Y);
3880
3880
  return /* @__PURE__ */ f(
3881
3881
  "div",
3882
3882
  {
@@ -3886,8 +3886,8 @@ const We = ({ text: t, frame: r }) => {
3886
3886
  position: "relative",
3887
3887
  overflow: "hidden"
3888
3888
  },
3889
- children: R.map((E) => {
3890
- const Y = N > 1 ? E / (N - 1) : 0, C = 1 - Y * (1 - Math.max(0.01, F)), U = (B - 0.5) * h * Y, z = (X - 0.5) * l * Y;
3889
+ children: R.map((_) => {
3890
+ const Y = N > 1 ? _ / (N - 1) : 0, C = 1 - Y * (1 - Math.max(0.01, F)), U = (B - 0.5) * p * Y, z = (X - 0.5) * l * Y;
3891
3891
  return /* @__PURE__ */ f(
3892
3892
  "span",
3893
3893
  {
@@ -3900,12 +3900,12 @@ const We = ({ text: t, frame: r }) => {
3900
3900
  transformOrigin: "center center",
3901
3901
  lineHeight: 1,
3902
3902
  whiteSpace: "nowrap",
3903
- zIndex: E + 1,
3904
- opacity: E === 0 ? 1 : 0.85
3903
+ zIndex: _ + 1,
3904
+ opacity: _ === 0 ? 1 : 0.85
3905
3905
  },
3906
3906
  children: t
3907
3907
  },
3908
- `echo-${E}`
3908
+ `echo-${_}`
3909
3909
  );
3910
3910
  })
3911
3911
  }
@@ -3920,7 +3920,7 @@ const We = ({ text: t, frame: r }) => {
3920
3920
  details: i,
3921
3921
  wiggleDetails: e
3922
3922
  }) => {
3923
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = Number((e == null ? void 0 : e.wiggleX) ?? 20), l = Number((e == null ? void 0 : e.wiggleY) ?? 20), u = Number((e == null ? void 0 : e.speed) ?? 3), d = Number((e == null ? void 0 : e.angle) ?? 10), b = Number((e == null ? void 0 : e.seed) ?? 1), y = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleX) !== void 0 ? Number(e.initialWiggleX) : h, v = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleY) !== void 0 ? Number(e.initialWiggleY) : l, x = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialSpeed) !== void 0 ? Number(e.initialSpeed) : u, M = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialAngle) !== void 0 ? Number(e.initialAngle) : d, m = Math.max(0, o - (n || 0)), g = Math.min(1, Math.max(0, m / (s || 1))), w = e != null && e.hasInitialValue ? y + (h - y) * g : h, I = e != null && e.hasInitialValue ? v + (l - v) * g : l, S = e != null && e.hasInitialValue ? x + (u - x) * g : u, $ = e != null && e.hasInitialValue ? M + (d - M) * g : d, N = o * (S * 0.08), F = b * 12.345, B = Math.sin(N + F) * Math.cos(N * 0.65 + F) * w, X = Math.cos(N * 0.85 + F) * Math.sin(N * 1.15 + F) * I, P = Math.sin(N * 0.9 + F * 1.35) * $, R = Dt(i);
3923
+ const h = Nt(), o = typeof r == "number" && !isNaN(r) ? r : h, p = Number((e == null ? void 0 : e.wiggleX) ?? 20), l = Number((e == null ? void 0 : e.wiggleY) ?? 20), u = Number((e == null ? void 0 : e.speed) ?? 3), d = Number((e == null ? void 0 : e.angle) ?? 10), b = Number((e == null ? void 0 : e.seed) ?? 1), y = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleX) !== void 0 ? Number(e.initialWiggleX) : p, v = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialWiggleY) !== void 0 ? Number(e.initialWiggleY) : l, x = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialSpeed) !== void 0 ? Number(e.initialSpeed) : u, M = e != null && e.hasInitialValue && (e == null ? void 0 : e.initialAngle) !== void 0 ? Number(e.initialAngle) : d, m = Math.max(0, o - (n || 0)), g = Math.min(1, Math.max(0, m / (s || 1))), w = e != null && e.hasInitialValue ? y + (p - y) * g : p, I = e != null && e.hasInitialValue ? v + (l - v) * g : l, S = e != null && e.hasInitialValue ? x + (u - x) * g : u, $ = e != null && e.hasInitialValue ? M + (d - M) * g : d, N = o * (S * 0.08), F = b * 12.345, B = Math.sin(N + F) * Math.cos(N * 0.65 + F) * w, X = Math.cos(N * 0.85 + F) * Math.sin(N * 1.15 + F) * I, P = Math.sin(N * 0.9 + F * 1.35) * $, R = Dt(i);
3924
3924
  return /* @__PURE__ */ f(
3925
3925
  "div",
3926
3926
  {
@@ -3958,7 +3958,7 @@ const We = ({ text: t, frame: r }) => {
3958
3958
  details: i,
3959
3959
  cardFlipDetails: e
3960
3960
  }) => {
3961
- const p = Dt(i);
3961
+ const h = Dt(i);
3962
3962
  return /* @__PURE__ */ f(
3963
3963
  Wr,
3964
3964
  {
@@ -3970,7 +3970,7 @@ const We = ({ text: t, frame: r }) => {
3970
3970
  width: i.width,
3971
3971
  height: i.height,
3972
3972
  cardFlipDetails: e,
3973
- children: /* @__PURE__ */ f("span", { style: p, children: t })
3973
+ children: /* @__PURE__ */ f("span", { style: h, children: t })
3974
3974
  }
3975
3975
  );
3976
3976
  }, Ae = ({
@@ -3983,23 +3983,23 @@ const We = ({ text: t, frame: r }) => {
3983
3983
  details: i,
3984
3984
  noiseTileDetails: e
3985
3985
  }) => {
3986
- const p = Nt(), o = typeof r == "number" && !isNaN(r) ? r : p, h = i.width || 300, l = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", d = Number((e == null ? void 0 : e.toXRepetitions) ?? (e == null ? void 0 : e.xRepetitions) ?? 5), b = Number((e == null ? void 0 : e.toYRepetitions) ?? (e == null ? void 0 : e.yRepetitions) ?? 5), y = Number((e == null ? void 0 : e.toGapX) ?? (e == null ? void 0 : e.gapX) ?? 12), v = Number((e == null ? void 0 : e.toGapY) ?? (e == null ? void 0 : e.gapY) ?? 12), x = Number((e == null ? void 0 : e.toScale) ?? (e == null ? void 0 : e.scale) ?? 1), M = Number((e == null ? void 0 : e.toNoiseScale) ?? (e == null ? void 0 : e.noiseScale) ?? 1.5), m = Number((e == null ? void 0 : e.toNoiseMoveX) ?? (e == null ? void 0 : e.noiseMoveX) ?? 0.6), g = Number((e == null ? void 0 : e.toNoiseMoveY) ?? (e == null ? void 0 : e.noiseMoveY) ?? 0.4), w = Number((e == null ? void 0 : e.toFps) ?? (e == null ? void 0 : e.fps) ?? 12), I = Number((e == null ? void 0 : e.toThreshold) ?? (e == null ? void 0 : e.threshold) ?? 0.45), S = Number((e == null ? void 0 : e.toSeedOffset) ?? (e == null ? void 0 : e.seedOffset) ?? 0), $ = !!(e != null && e.hasInitialValue), N = $ ? Number((e == null ? void 0 : e.initialXRepetitions) ?? d) : d, F = $ ? Number((e == null ? void 0 : e.initialYRepetitions) ?? b) : b, B = $ ? Number((e == null ? void 0 : e.initialGapX) ?? y) : y, X = $ ? Number((e == null ? void 0 : e.initialGapY) ?? v) : v, P = $ ? Number((e == null ? void 0 : e.initialScale) ?? x) : x, R = $ ? Number((e == null ? void 0 : e.initialNoiseScale) ?? M) : M, E = $ ? Number((e == null ? void 0 : e.initialNoiseMoveX) ?? m) : m, Y = $ ? Number((e == null ? void 0 : e.initialNoiseMoveY) ?? g) : g, C = $ ? Number((e == null ? void 0 : e.initialFps) ?? w) : w, U = $ ? Number((e == null ? void 0 : e.initialThreshold) ?? I) : I, z = $ ? Number((e == null ? void 0 : e.initialSeedOffset) ?? S) : S, D = Math.max(0, o - (n || 0)), dt = Math.min(1, Math.max(0, D / (s || 1)));
3986
+ const h = Nt(), o = typeof r == "number" && !isNaN(r) ? r : h, p = i.width || 300, l = i.height || 100, u = (e == null ? void 0 : e.keepStill) || "both", d = Number((e == null ? void 0 : e.toXRepetitions) ?? (e == null ? void 0 : e.xRepetitions) ?? 5), b = Number((e == null ? void 0 : e.toYRepetitions) ?? (e == null ? void 0 : e.yRepetitions) ?? 5), y = Number((e == null ? void 0 : e.toGapX) ?? (e == null ? void 0 : e.gapX) ?? 12), v = Number((e == null ? void 0 : e.toGapY) ?? (e == null ? void 0 : e.gapY) ?? 12), x = Number((e == null ? void 0 : e.toScale) ?? (e == null ? void 0 : e.scale) ?? 1), M = Number((e == null ? void 0 : e.toNoiseScale) ?? (e == null ? void 0 : e.noiseScale) ?? 1.5), m = Number((e == null ? void 0 : e.toNoiseMoveX) ?? (e == null ? void 0 : e.noiseMoveX) ?? 0.6), g = Number((e == null ? void 0 : e.toNoiseMoveY) ?? (e == null ? void 0 : e.noiseMoveY) ?? 0.4), w = Number((e == null ? void 0 : e.toFps) ?? (e == null ? void 0 : e.fps) ?? 12), I = Number((e == null ? void 0 : e.toThreshold) ?? (e == null ? void 0 : e.threshold) ?? 0.45), S = Number((e == null ? void 0 : e.toSeedOffset) ?? (e == null ? void 0 : e.seedOffset) ?? 0), $ = !!(e != null && e.hasInitialValue), N = $ ? Number((e == null ? void 0 : e.initialXRepetitions) ?? d) : d, F = $ ? Number((e == null ? void 0 : e.initialYRepetitions) ?? b) : b, B = $ ? Number((e == null ? void 0 : e.initialGapX) ?? y) : y, X = $ ? Number((e == null ? void 0 : e.initialGapY) ?? v) : v, P = $ ? Number((e == null ? void 0 : e.initialScale) ?? x) : x, R = $ ? Number((e == null ? void 0 : e.initialNoiseScale) ?? M) : M, _ = $ ? Number((e == null ? void 0 : e.initialNoiseMoveX) ?? m) : m, Y = $ ? Number((e == null ? void 0 : e.initialNoiseMoveY) ?? g) : g, C = $ ? Number((e == null ? void 0 : e.initialFps) ?? w) : w, U = $ ? Number((e == null ? void 0 : e.initialThreshold) ?? I) : I, z = $ ? Number((e == null ? void 0 : e.initialSeedOffset) ?? S) : S, tt = Math.max(0, o - (n || 0)), dt = Math.min(1, Math.max(0, tt / (s || 1)));
3987
3987
  let K = c + (a - c) * dt;
3988
3988
  u === "initial" ? K = 0 : u === "final" && (K = 1);
3989
- const nt = Math.max(1, Math.round(W(K, [0, 1], [N, d]))), G = Math.max(1, Math.round(W(K, [0, 1], [F, b]))), Q = W(K, [0, 1], [B, y]), ht = W(K, [0, 1], [X, v]), O = W(K, [0, 1], [P, x]), j = W(K, [0, 1], [R, M]), T = W(K, [0, 1], [E, m]), lt = W(K, [0, 1], [Y, g]), q = Math.max(1, Math.round(W(K, [0, 1], [C, w]))), Z = W(K, [0, 1], [U, I]), at = W(K, [0, 1], [z, S]), tt = Dt(i), yt = Math.floor(D * (q / 30)), rt = (nt - 1) / 2, ct = (G - 1) / 2, st = [];
3989
+ const nt = Math.max(1, Math.round(W(K, [0, 1], [N, d]))), G = Math.max(1, Math.round(W(K, [0, 1], [F, b]))), Q = W(K, [0, 1], [B, y]), pt = W(K, [0, 1], [X, v]), O = W(K, [0, 1], [P, x]), j = W(K, [0, 1], [R, M]), D = W(K, [0, 1], [_, m]), lt = W(K, [0, 1], [Y, g]), T = Math.max(1, Math.round(W(K, [0, 1], [C, w]))), Z = W(K, [0, 1], [U, I]), at = W(K, [0, 1], [z, S]), mt = Dt(i), J = Math.floor(tt * (T / 30)), rt = (nt - 1) / 2, ct = (G - 1) / 2, st = [];
3990
3990
  for (let ut = 0; ut < G; ut++)
3991
- for (let pt = 0; pt < nt; pt++) {
3992
- const vt = pt / Math.max(1, nt) * j, $t = ut / Math.max(1, G) * j, It = yt * 0.1 + at, ft = mn(
3993
- vt + yt * T * 0.05,
3994
- $t + yt * lt * 0.05,
3991
+ for (let ht = 0; ht < nt; ht++) {
3992
+ const bt = ht / Math.max(1, nt) * j, $t = ut / Math.max(1, G) * j, It = J * 0.1 + at, ft = mn(
3993
+ bt + J * D * 0.05,
3994
+ $t + J * lt * 0.05,
3995
3995
  It,
3996
3996
  at
3997
- ), Yt = pt === Math.floor(rt) && ut === Math.floor(ct) || ft >= Z, Rt = pt - rt, Xt = ut - ct, _t = Q / 100 * h, zt = ht / 100 * l, Et = Rt * (h * O + _t), Wt = Xt * (l * O + zt);
3997
+ ), Yt = ht === Math.floor(rt) && ut === Math.floor(ct) || ft >= Z, Rt = ht - rt, Xt = ut - ct, Et = Q / 100 * p, zt = pt / 100 * l, _t = Rt * (p * O + Et), Wt = Xt * (l * O + zt);
3998
3998
  st.push({
3999
- col: pt,
3999
+ col: ht,
4000
4000
  row: ut,
4001
4001
  visible: Yt,
4002
- posX: Et,
4002
+ posX: _t,
4003
4003
  posY: Wt
4004
4004
  });
4005
4005
  }
@@ -4016,7 +4016,7 @@ const We = ({ text: t, frame: r }) => {
4016
4016
  "span",
4017
4017
  {
4018
4018
  style: {
4019
- ...tt,
4019
+ ...mt,
4020
4020
  position: "absolute",
4021
4021
  left: `calc(50% + ${ut.posX}px)`,
4022
4022
  top: `calc(50% + ${ut.posY}px)`,
@@ -4047,17 +4047,17 @@ const We = ({ text: t, frame: r }) => {
4047
4047
  )
4048
4048
  ), i = yr(() => {
4049
4049
  let e = 0;
4050
- return r.split(" ").map((p) => {
4051
- if (e + p.length <= a)
4052
- return e += p.length + 1, p;
4050
+ return r.split(" ").map((h) => {
4051
+ if (e + h.length <= a)
4052
+ return e += h.length + 1, h;
4053
4053
  if (e < a) {
4054
- const o = p.slice(0, a - e);
4054
+ const o = h.slice(0, a - e);
4055
4055
  return e = a, o;
4056
4056
  }
4057
4057
  return "";
4058
4058
  }).join(" ");
4059
4059
  }, [a]);
4060
- return /* @__PURE__ */ bt(
4060
+ return /* @__PURE__ */ yt(
4061
4061
  "div",
4062
4062
  {
4063
4063
  style: {
@@ -4104,10 +4104,10 @@ const We = ({ text: t, frame: r }) => {
4104
4104
  const S = w ? `${w} ${I}` : I;
4105
4105
  M.measureText(S).width > y ? (g.push(w), w = I) : w = S;
4106
4106
  }), w && g.push(w), g;
4107
- }, e = (a - s) / c, p = n.width || 300, o = i(t, p, n.fontSize), h = s / c, l = 0.5, u = h / o.length, d = o.map((b, y) => {
4107
+ }, e = (a - s) / c, h = n.width || 300, o = i(t, h, n.fontSize), p = s / c, l = 0.5, u = p / o.length, d = o.map((b, y) => {
4108
4108
  const v = e + y * u * (1 - l) * 1.5, x = v + u, M = v * c, m = Math.min(
4109
4109
  x * c,
4110
- (e + h) * c
4110
+ (e + p) * c
4111
4111
  ), g = W(r, [M, m], [0, 1], {
4112
4112
  easing: k.in(k.cubic),
4113
4113
  extrapolateLeft: "clamp",
@@ -4128,7 +4128,7 @@ const We = ({ text: t, frame: r }) => {
4128
4128
  flexDirection: "column",
4129
4129
  alignItems: "center",
4130
4130
  overflow: "hidden",
4131
- width: `${p}px`
4131
+ width: `${h}px`
4132
4132
  },
4133
4133
  children: d.map((b, y) => /* @__PURE__ */ f(
4134
4134
  "div",
@@ -4162,13 +4162,13 @@ const We = ({ text: t, frame: r }) => {
4162
4162
  durationInFrames: c,
4163
4163
  fps: a
4164
4164
  }) => {
4165
- const i = c - n, p = W(r, [i, i + n], [0, 1], {
4165
+ const i = c - n, h = W(r, [i, i + n], [0, 1], {
4166
4166
  extrapolateRight: "clamp"
4167
- }), o = s.width, h = s.height, l = W(
4168
- Math.round(p * 100),
4167
+ }), o = s.width, p = s.height, l = W(
4168
+ Math.round(h * 100),
4169
4169
  [0, 100 - a / 10],
4170
4170
  [o, 0]
4171
- ), u = W(p, [0, 1], [0, o * 2]);
4171
+ ), u = W(h, [0, 1], [0, o * 2]);
4172
4172
  return /* @__PURE__ */ f(
4173
4173
  "div",
4174
4174
  {
@@ -4186,7 +4186,7 @@ const We = ({ text: t, frame: r }) => {
4186
4186
  {
4187
4187
  style: {
4188
4188
  width: l,
4189
- height: h,
4189
+ height: p,
4190
4190
  overflow: "hidden",
4191
4191
  display: "flex",
4192
4192
  position: "relative",
@@ -4221,14 +4221,14 @@ const We = ({ text: t, frame: r }) => {
4221
4221
  greatThinkersTextAnimationIn: ae,
4222
4222
  beautifulQuestionsTextAnimationIn: ce,
4223
4223
  madeWithLoveTextAnimationIn: ie,
4224
- realityIsBrokenTextAnimationIn: pe,
4224
+ realityIsBrokenTextAnimationIn: he,
4225
4225
  dropTextAnimationIn: xe,
4226
4226
  descompressTextAnimationIn: $e
4227
4227
  }, Qe = {
4228
4228
  animatedTextOut: de,
4229
4229
  sunnyMorningsTextAnimationOut: ue,
4230
4230
  dominoDreamsTextAnimationOut: le,
4231
- beautifulQuestionsTextAnimationOut: he,
4231
+ beautifulQuestionsTextAnimationOut: pe,
4232
4232
  madeWithLoveTextAnimationOut: fe,
4233
4233
  realityIsBrokenTextAnimationOut: ye,
4234
4234
  greatThinkersTextAnimationOut: be,
@@ -4251,9 +4251,9 @@ const We = ({ text: t, frame: r }) => {
4251
4251
  textAnimationModeIn: a = "letter",
4252
4252
  textAnimationModeOut: i = "letter",
4253
4253
  textAnimationModeLoop: e = "letter",
4254
- textAnimationModeTimed: p = "all",
4254
+ textAnimationModeTimed: h = "all",
4255
4255
  basicCharAnimationsIn: o,
4256
- basicCharAnimationsOut: h,
4256
+ basicCharAnimationsOut: p,
4257
4257
  basicCharAnimationsLoop: l,
4258
4258
  basicCharAnimationsTimed: u,
4259
4259
  loopComposition: d,
@@ -4266,11 +4266,11 @@ const We = ({ text: t, frame: r }) => {
4266
4266
  durationInFrames: g,
4267
4267
  animationFonts: w
4268
4268
  }) => {
4269
- var St, Yt, Rt, Xt, _t, zt, Et, Wt, Lt, Ht, Ut, Zt, Qt, tr;
4270
- const I = v, S = g - x, $ = n ? I >= y : !1, N = s ? y >= S : !1, F = o && o.length > 0, B = h && h.length > 0, X = l && l.length > 0, P = u && u.length > 0, R = ((St = o == null ? void 0 : o[0]) == null ? void 0 : St.durationInFrames) || v, E = ((Yt = o == null ? void 0 : o[0]) == null ? void 0 : Yt.delay) || 0, Y = R + E, C = ((Rt = h == null ? void 0 : h[0]) == null ? void 0 : Rt.durationInFrames) || x, U = ((Xt = h == null ? void 0 : h[0]) == null ? void 0 : Xt.delay) || 0, z = C + U, D = Math.max(0, g - z), dt = ((_t = u == null ? void 0 : u[0]) == null ? void 0 : _t.delay) || 0, et = dt, K = dt + (((zt = u == null ? void 0 : u[0]) == null ? void 0 : zt.durationInFrames) || m), nt = F && !n && (X ? y < Y : y < D), G = B && !s && y >= D, Q = P && !nt && !G && y >= et && y <= K, ht = X && !c && !nt && !G && !Q, j = ((H, L, _) => {
4269
+ var St, Yt, Rt, Xt, Et, zt, _t, Wt, Lt, Ht, Ut, Zt, Qt, tr;
4270
+ const I = v, S = g - x, $ = n ? I >= y : !1, N = s ? y >= S : !1, F = o && o.length > 0, B = p && p.length > 0, X = l && l.length > 0, P = u && u.length > 0, R = ((St = o == null ? void 0 : o[0]) == null ? void 0 : St.durationInFrames) || v, _ = ((Yt = o == null ? void 0 : o[0]) == null ? void 0 : Yt.delay) || 0, Y = R + _, C = ((Rt = p == null ? void 0 : p[0]) == null ? void 0 : Rt.durationInFrames) || x, U = ((Xt = p == null ? void 0 : p[0]) == null ? void 0 : Xt.delay) || 0, z = C + U, tt = Math.max(0, g - z), dt = ((Et = u == null ? void 0 : u[0]) == null ? void 0 : Et.delay) || 0, et = dt, K = dt + (((zt = u == null ? void 0 : u[0]) == null ? void 0 : zt.durationInFrames) || m), nt = F && !n && (X ? y < Y : y < tt), G = B && !s && y >= tt, Q = P && !nt && !G && y >= et && y <= K, pt = X && !c && !nt && !G && !Q, j = ((H, L, E) => {
4271
4271
  const it = document.createElement("canvas").getContext("2d");
4272
4272
  if (!it) return [];
4273
- it.font = `${_}px Arial`;
4273
+ it.font = `${E}px Arial`;
4274
4274
  const V = [], A = H.split(`
4275
4275
  `);
4276
4276
  for (const ot of A) {
@@ -4279,12 +4279,12 @@ const We = ({ text: t, frame: r }) => {
4279
4279
  continue;
4280
4280
  }
4281
4281
  const rr = ot.split(" ");
4282
- let gt = "";
4282
+ let vt = "";
4283
4283
  for (const Kt of rr) {
4284
- const ir = gt ? `${gt} ${Kt}` : Kt;
4285
- it.measureText(ir).width > L ? (gt && V.push(gt), gt = Kt) : gt = ir;
4284
+ const ir = vt ? `${vt} ${Kt}` : Kt;
4285
+ it.measureText(ir).width > L ? (vt && V.push(vt), vt = Kt) : vt = ir;
4286
4286
  }
4287
- gt && V.push(gt);
4287
+ vt && V.push(vt);
4288
4288
  }
4289
4289
  return V;
4290
4290
  })(t, b.width, b.fontSize);
@@ -4344,7 +4344,7 @@ const We = ({ text: t, frame: r }) => {
4344
4344
  return /* @__PURE__ */ f(Pe, { text: t, frame: y, fps: r });
4345
4345
  if (c === "rotate3dTextAnimationLoop")
4346
4346
  return /* @__PURE__ */ f(
4347
- _e,
4347
+ Ee,
4348
4348
  {
4349
4349
  text: t,
4350
4350
  frame: y,
@@ -4353,7 +4353,7 @@ const We = ({ text: t, frame: r }) => {
4353
4353
  );
4354
4354
  if (c === "textFontChangeAnimationLoop")
4355
4355
  return /* @__PURE__ */ f(
4356
- Ee,
4356
+ _e,
4357
4357
  {
4358
4358
  text: t,
4359
4359
  frame: y,
@@ -4368,24 +4368,24 @@ const We = ({ text: t, frame: r }) => {
4368
4368
  if (c === "glitchTextAnimationLoop")
4369
4369
  return /* @__PURE__ */ f(Ce, { text: t, frame: y });
4370
4370
  if (c === "textGridMarqueeTextAnimationLoop" || c === "textGridMarquee") {
4371
- const _ = (d == null ? void 0 : d.find(
4371
+ const E = (d == null ? void 0 : d.find(
4372
4372
  (ot) => ot.property === "textGridMarqueeTextAnimationLoop" || ot.property === "textGridMarquee" || ot.id === "textGridMarquee"
4373
4373
  )) || (l == null ? void 0 : l.find(
4374
4374
  (ot) => ot.property === "textGridMarqueeTextAnimationLoop" || ot.property === "textGridMarquee" || ot.id === "textGridMarquee"
4375
- )), J = (_ == null ? void 0 : _.delay) || 0, it = (_ == null ? void 0 : _.durationInFrames) || (M > 0 ? M : g), V = J + it, A = y >= J && y <= V;
4375
+ )), q = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (M > 0 ? M : g), V = q + it, A = y >= q && y <= V;
4376
4376
  if (console.log(
4377
- `[SpecialEffect Marquee] frame: ${y.toFixed(2)}, range: [${J}, ${V}], active: ${A}`
4377
+ `[SpecialEffect Marquee] frame: ${y.toFixed(2)}, range: [${q}, ${V}], active: ${A}`
4378
4378
  ), A) {
4379
- const ot = _ == null ? void 0 : _.details;
4379
+ const ot = E == null ? void 0 : E.details;
4380
4380
  return /* @__PURE__ */ f(
4381
4381
  Oe,
4382
4382
  {
4383
4383
  text: t,
4384
4384
  frame: y,
4385
- delay: J,
4385
+ delay: q,
4386
4386
  durationInFrames: it,
4387
- from: _ == null ? void 0 : _.from,
4388
- to: _ == null ? void 0 : _.to,
4387
+ from: E == null ? void 0 : E.from,
4388
+ to: E == null ? void 0 : E.to,
4389
4389
  details: b,
4390
4390
  fps: r,
4391
4391
  marqueeDetails: ot
@@ -4394,24 +4394,24 @@ const We = ({ text: t, frame: r }) => {
4394
4394
  }
4395
4395
  }
4396
4396
  if (c === "inwardEchoes") {
4397
- const _ = (d == null ? void 0 : d.find(
4397
+ const E = (d == null ? void 0 : d.find(
4398
4398
  (ot) => ot.property === "inwardEchoes" || ot.id === "inwardEchoes"
4399
4399
  )) || (l == null ? void 0 : l.find(
4400
4400
  (ot) => ot.property === "inwardEchoes" || ot.id === "inwardEchoes"
4401
- )), J = (_ == null ? void 0 : _.delay) || 0, it = (_ == null ? void 0 : _.durationInFrames) || (M > 0 ? M : g), V = J + it, A = y >= J && y <= V;
4401
+ )), q = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (M > 0 ? M : g), V = q + it, A = y >= q && y <= V;
4402
4402
  if (console.log(
4403
- `[SpecialEffect InwardEchoes] frame: ${y.toFixed(2)}, range: [${J}, ${V}], active: ${A}`
4403
+ `[SpecialEffect InwardEchoes] frame: ${y.toFixed(2)}, range: [${q}, ${V}], active: ${A}`
4404
4404
  ), A) {
4405
- const ot = _ == null ? void 0 : _.details;
4405
+ const ot = E == null ? void 0 : E.details;
4406
4406
  return /* @__PURE__ */ f(
4407
4407
  ze,
4408
4408
  {
4409
4409
  text: t,
4410
4410
  frame: y,
4411
- delay: J,
4411
+ delay: q,
4412
4412
  durationInFrames: it,
4413
- from: _ == null ? void 0 : _.from,
4414
- to: _ == null ? void 0 : _.to,
4413
+ from: E == null ? void 0 : E.from,
4414
+ to: E == null ? void 0 : E.to,
4415
4415
  details: b,
4416
4416
  fps: r,
4417
4417
  echoesDetails: ot
@@ -4420,24 +4420,24 @@ const We = ({ text: t, frame: r }) => {
4420
4420
  }
4421
4421
  }
4422
4422
  if (c === "wiggle") {
4423
- const _ = (d == null ? void 0 : d.find(
4423
+ const E = (d == null ? void 0 : d.find(
4424
4424
  (ot) => ot.property === "wiggle" || ot.id === "wiggle"
4425
4425
  )) || (l == null ? void 0 : l.find(
4426
4426
  (ot) => ot.property === "wiggle" || ot.id === "wiggle"
4427
- )), J = (_ == null ? void 0 : _.delay) || 0, it = (_ == null ? void 0 : _.durationInFrames) || (M > 0 ? M : g), V = J + it, A = y >= J && y <= V;
4427
+ )), q = (E == null ? void 0 : E.delay) || 0, it = (E == null ? void 0 : E.durationInFrames) || (M > 0 ? M : g), V = q + it, A = y >= q && y <= V;
4428
4428
  if (console.log(
4429
- `[SpecialEffect Wiggle] frame: ${y.toFixed(2)}, range: [${J}, ${V}], active: ${A}`
4429
+ `[SpecialEffect Wiggle] frame: ${y.toFixed(2)}, range: [${q}, ${V}], active: ${A}`
4430
4430
  ), A) {
4431
- const ot = _ == null ? void 0 : _.details;
4431
+ const ot = E == null ? void 0 : E.details;
4432
4432
  return /* @__PURE__ */ f(
4433
4433
  Ge,
4434
4434
  {
4435
4435
  text: t,
4436
4436
  frame: y,
4437
- delay: J,
4437
+ delay: q,
4438
4438
  durationInFrames: it,
4439
- from: _ == null ? void 0 : _.from,
4440
- to: _ == null ? void 0 : _.to,
4439
+ from: E == null ? void 0 : E.from,
4440
+ to: E == null ? void 0 : E.to,
4441
4441
  details: b,
4442
4442
  fps: r,
4443
4443
  wiggleDetails: ot
@@ -4446,14 +4446,14 @@ const We = ({ text: t, frame: r }) => {
4446
4446
  }
4447
4447
  }
4448
4448
  const H = (d == null ? void 0 : d.find(
4449
- (_) => _.property === "cardFlip" || _.id === "cardFlip"
4449
+ (E) => E.property === "cardFlip" || E.id === "cardFlip"
4450
4450
  )) || (l == null ? void 0 : l.find(
4451
- (_) => _.property === "cardFlip" || _.id === "cardFlip"
4451
+ (E) => E.property === "cardFlip" || E.id === "cardFlip"
4452
4452
  ));
4453
4453
  if (c === "cardFlip" || H) {
4454
- const _ = (H == null ? void 0 : H.delay) || 0, J = (H == null ? void 0 : H.durationInFrames) || (M > 0 ? M : g), it = _ + J, V = y >= _ && y <= it;
4454
+ const E = (H == null ? void 0 : H.delay) || 0, q = (H == null ? void 0 : H.durationInFrames) || (M > 0 ? M : g), it = E + q, V = y >= E && y <= it;
4455
4455
  if (console.log(
4456
- `[SpecialEffect CardFlip] frame: ${y.toFixed(2)}, range: [${_}, ${it}], active: ${V}`
4456
+ `[SpecialEffect CardFlip] frame: ${y.toFixed(2)}, range: [${E}, ${it}], active: ${V}`
4457
4457
  ), V) {
4458
4458
  const A = H == null ? void 0 : H.details;
4459
4459
  return /* @__PURE__ */ f(
@@ -4461,8 +4461,8 @@ const We = ({ text: t, frame: r }) => {
4461
4461
  {
4462
4462
  text: t,
4463
4463
  frame: y,
4464
- delay: _,
4465
- durationInFrames: J,
4464
+ delay: E,
4465
+ durationInFrames: q,
4466
4466
  from: H == null ? void 0 : H.from,
4467
4467
  to: H == null ? void 0 : H.to,
4468
4468
  details: b,
@@ -4473,14 +4473,14 @@ const We = ({ text: t, frame: r }) => {
4473
4473
  }
4474
4474
  }
4475
4475
  const L = (d == null ? void 0 : d.find(
4476
- (_) => _.property === "noiseTile" || _.id === "noiseTile"
4476
+ (E) => E.property === "noiseTile" || E.id === "noiseTile"
4477
4477
  )) || (l == null ? void 0 : l.find(
4478
- (_) => _.property === "noiseTile" || _.id === "noiseTile"
4478
+ (E) => E.property === "noiseTile" || E.id === "noiseTile"
4479
4479
  ));
4480
4480
  if (c === "noiseTile" || L) {
4481
- const _ = (L == null ? void 0 : L.delay) || 0, J = (L == null ? void 0 : L.durationInFrames) || (M > 0 ? M : g), it = _ + J, V = y >= _ && y <= it;
4481
+ const E = (L == null ? void 0 : L.delay) || 0, q = (L == null ? void 0 : L.durationInFrames) || (M > 0 ? M : g), it = E + q, V = y >= E && y <= it;
4482
4482
  if (console.log(
4483
- `[SpecialEffect NoiseTile] frame: ${y.toFixed(2)}, range: [${_}, ${it}], active: ${V}`
4483
+ `[SpecialEffect NoiseTile] frame: ${y.toFixed(2)}, range: [${E}, ${it}], active: ${V}`
4484
4484
  ), V) {
4485
4485
  const A = L == null ? void 0 : L.details;
4486
4486
  return /* @__PURE__ */ f(
@@ -4488,8 +4488,8 @@ const We = ({ text: t, frame: r }) => {
4488
4488
  {
4489
4489
  text: t,
4490
4490
  frame: y,
4491
- delay: _,
4492
- durationInFrames: J,
4491
+ delay: E,
4492
+ durationInFrames: q,
4493
4493
  from: L == null ? void 0 : L.from,
4494
4494
  to: L == null ? void 0 : L.to,
4495
4495
  details: b,
@@ -4535,13 +4535,13 @@ const We = ({ text: t, frame: r }) => {
4535
4535
  fps: r
4536
4536
  }
4537
4537
  );
4538
- const T = j.reduce(
4538
+ const D = j.reduce(
4539
4539
  (H, L) => H + (L === "" ? 1 : L.length),
4540
4540
  0
4541
4541
  ), lt = j.reduce(
4542
4542
  (H, L) => H + (L.trim() === "" ? 0 : L.split(/\s+/).length),
4543
4543
  0
4544
- ), q = j.length, Z = Ze[n], at = Qe[s], tt = Ke[c], yt = ((Et = o == null ? void 0 : o[0]) == null ? void 0 : Et.textAnimationMode) || ((Wt = h == null ? void 0 : h[0]) == null ? void 0 : Wt.textAnimationMode) || ((Lt = l == null ? void 0 : l[0]) == null ? void 0 : Lt.textAnimationMode) || ((Ht = u == null ? void 0 : u[0]) == null ? void 0 : Ht.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? e : void 0) || a || e || "letter", rt = $ ? a : N ? i : nt ? o[0].textAnimationMode || yt : G ? h[0].textAnimationMode || yt : Q ? u[0].textAnimationMode || yt : ht && l[0].textAnimationMode || yt, ct = nt ? o : G ? h : Q ? u : ht ? l : [], st = (H, L, _, J) => {
4544
+ ), T = j.length, Z = Ze[n], at = Qe[s], mt = Ke[c], J = ((_t = o == null ? void 0 : o[0]) == null ? void 0 : _t.textAnimationMode) || ((Wt = p == null ? void 0 : p[0]) == null ? void 0 : Wt.textAnimationMode) || ((Lt = l == null ? void 0 : l[0]) == null ? void 0 : Lt.textAnimationMode) || ((Ht = u == null ? void 0 : u[0]) == null ? void 0 : Ht.textAnimationMode) || (n ? a : void 0) || (s ? i : void 0) || (c ? e : void 0) || a || e || "letter", rt = $ ? a : N ? i : nt ? o[0].textAnimationMode || J : G ? p[0].textAnimationMode || J : Q ? u[0].textAnimationMode || J : pt && l[0].textAnimationMode || J, ct = nt ? o : G ? p : Q ? u : pt ? l : [], st = (H, L, E, q) => {
4545
4545
  var it, V, A;
4546
4546
  if ($ && Z)
4547
4547
  return /* @__PURE__ */ f(
@@ -4550,12 +4550,12 @@ const We = ({ text: t, frame: r }) => {
4550
4550
  char: H,
4551
4551
  index: L,
4552
4552
  frame: y,
4553
- textLength: _,
4553
+ textLength: E,
4554
4554
  fps: r,
4555
4555
  animationTextInFrames: v,
4556
4556
  details: b
4557
4557
  },
4558
- J
4558
+ q
4559
4559
  );
4560
4560
  if (N && at)
4561
4561
  return /* @__PURE__ */ f(
@@ -4564,30 +4564,30 @@ const We = ({ text: t, frame: r }) => {
4564
4564
  char: H,
4565
4565
  index: L,
4566
4566
  frame: y,
4567
- textLength: _,
4567
+ textLength: E,
4568
4568
  fps: r,
4569
4569
  animationTextOutFrames: x,
4570
4570
  durationInFrames: g,
4571
4571
  details: b
4572
4572
  },
4573
- J
4573
+ q
4574
4574
  );
4575
- if (c && !$ && !N && tt)
4575
+ if (c && !$ && !N && mt)
4576
4576
  return /* @__PURE__ */ f(
4577
- tt,
4577
+ mt,
4578
4578
  {
4579
4579
  char: H,
4580
4580
  index: L,
4581
4581
  frame: y,
4582
- textLength: _,
4582
+ textLength: E,
4583
4583
  fps: r,
4584
4584
  animationTextLoopFrames: M,
4585
4585
  details: b
4586
4586
  },
4587
- J
4587
+ q
4588
4588
  );
4589
4589
  if (ct.length > 0) {
4590
- const ot = nt ? R : G ? C : Q ? ((it = u == null ? void 0 : u[0]) == null ? void 0 : it.durationInFrames) || m : ((V = l == null ? void 0 : l[0]) == null ? void 0 : V.durationInFrames) || M, rr = G ? y - D : Q ? y - et : y, gt = ct[0], Kt = nt ? "in" : G ? "out" : Q ? "timed" : "loop";
4590
+ const ot = nt ? R : G ? C : Q ? ((it = u == null ? void 0 : u[0]) == null ? void 0 : it.durationInFrames) || m : ((V = l == null ? void 0 : l[0]) == null ? void 0 : V.durationInFrames) || M, rr = G ? y - tt : Q ? y - et : y, vt = ct[0], Kt = nt ? "in" : G ? "out" : Q ? "timed" : "loop";
4591
4591
  return /* @__PURE__ */ f(
4592
4592
  oe,
4593
4593
  {
@@ -4595,46 +4595,46 @@ const We = ({ text: t, frame: r }) => {
4595
4595
  index: L,
4596
4596
  frame: rr,
4597
4597
  fps: r,
4598
- textLength: _,
4598
+ textLength: E,
4599
4599
  animationTextFrames: ot,
4600
- property: gt.property,
4601
- from: gt.from,
4602
- to: gt.to,
4603
- easing: gt.easing,
4604
- delay: G ? 0 : gt.delay,
4600
+ property: vt.property,
4601
+ from: vt.from,
4602
+ to: vt.to,
4603
+ easing: vt.easing,
4604
+ delay: G ? 0 : vt.delay,
4605
4605
  details: b,
4606
4606
  phase: Kt,
4607
- fade: !!((A = gt == null ? void 0 : gt.details) != null && A.fade || gt != null && gt.fade)
4607
+ fade: !!((A = vt == null ? void 0 : vt.details) != null && A.fade || vt != null && vt.fade)
4608
4608
  },
4609
- J
4609
+ q
4610
4610
  );
4611
4611
  }
4612
- return /* @__PURE__ */ f("span", { children: H === "" ? " " : H }, J);
4612
+ return /* @__PURE__ */ f("span", { children: H === "" ? " " : H }, q);
4613
4613
  };
4614
- let pt = (b == null ? void 0 : b.textAlign) === "right";
4615
- const vt = o && o.length > 0 ? o[0] : h && h.length > 0 ? h[0] : u && u.length > 0 ? u[0] : l && l.length > 0 ? l[0] : null, $t = vt != null && vt.order ? vt : (Ut = o == null ? void 0 : o[0]) != null && Ut.order ? o[0] : (Zt = h == null ? void 0 : h[0]) != null && Zt.order ? h[0] : (Qt = u == null ? void 0 : u[0]) != null && Qt.order ? u[0] : (tr = l == null ? void 0 : l[0]) != null && tr.order ? l[0] : null;
4614
+ let ht = (b == null ? void 0 : b.textAlign) === "right";
4615
+ const bt = o && o.length > 0 ? o[0] : p && p.length > 0 ? p[0] : u && u.length > 0 ? u[0] : l && l.length > 0 ? l[0] : null, $t = bt != null && bt.order ? bt : (Ut = o == null ? void 0 : o[0]) != null && Ut.order ? o[0] : (Zt = p == null ? void 0 : p[0]) != null && Zt.order ? p[0] : (Qt = u == null ? void 0 : u[0]) != null && Qt.order ? u[0] : (tr = l == null ? void 0 : l[0]) != null && tr.order ? l[0] : null;
4616
4616
  if ($t != null && $t.order)
4617
- pt = $t.order === "backward";
4618
- else if (vt && vt.property === "translateX") {
4619
- const H = Number(vt.from), L = Number(vt.to);
4620
- !isNaN(H) && !isNaN(L) && (pt = H < L);
4617
+ ht = $t.order === "backward";
4618
+ else if (bt && bt.property === "translateX") {
4619
+ const H = Number(bt.from), L = Number(bt.to);
4620
+ !isNaN(H) && !isNaN(L) && (ht = H < L);
4621
4621
  }
4622
4622
  if (rt === "all")
4623
4623
  return /* @__PURE__ */ f(kt, { children: j.map((H, L) => /* @__PURE__ */ f("div", { children: (H === "" ? [" "] : H.split("")).map(
4624
- (_, J) => st(_, 0, 1, `${L}-${J}`)
4624
+ (E, q) => st(E, 0, 1, `${L}-${q}`)
4625
4625
  ) }, L)) });
4626
4626
  if (rt === "word") {
4627
4627
  let H = 0;
4628
- const L = j.map((_, J) => {
4629
- if (_.trim() === "")
4628
+ const L = j.map((E, q) => {
4629
+ if (E.trim() === "")
4630
4630
  return {
4631
- rowIndex: J,
4631
+ rowIndex: q,
4632
4632
  tokens: []
4633
4633
  };
4634
- const V = _.split(/(\s+)/).map((A) => /^\s+$/.test(A) ? { token: A, wordIndex: null } : { token: A, wordIndex: H++ });
4635
- return { rowIndex: J, tokens: V };
4634
+ const V = E.split(/(\s+)/).map((A) => /^\s+$/.test(A) ? { token: A, wordIndex: null } : { token: A, wordIndex: H++ });
4635
+ return { rowIndex: q, tokens: V };
4636
4636
  });
4637
- return /* @__PURE__ */ f(kt, { children: L.map(({ rowIndex: _, tokens: J }) => J.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, _) : /* @__PURE__ */ f("div", { children: J.map(({ token: it, wordIndex: V }, A) => {
4637
+ return /* @__PURE__ */ f(kt, { children: L.map(({ rowIndex: E, tokens: q }) => q.length === 0 ? /* @__PURE__ */ f("div", { children: " " }, E) : /* @__PURE__ */ f("div", { children: q.map(({ token: it, wordIndex: V }, A) => {
4638
4638
  if (V === null)
4639
4639
  return /* @__PURE__ */ f(
4640
4640
  "span",
@@ -4642,39 +4642,39 @@ const We = ({ text: t, frame: r }) => {
4642
4642
  style: { display: "inline-block" },
4643
4643
  children: it.replace(/ /g, " ")
4644
4644
  },
4645
- `space-${_}-${A}`
4645
+ `space-${E}-${A}`
4646
4646
  );
4647
- const ot = pt ? lt - 1 - V : V;
4647
+ const ot = ht ? lt - 1 - V : V;
4648
4648
  return st(
4649
4649
  it,
4650
4650
  ot,
4651
4651
  lt,
4652
- `word-${_}-${A}`
4652
+ `word-${E}-${A}`
4653
4653
  );
4654
- }) }, _)) });
4654
+ }) }, E)) });
4655
4655
  }
4656
4656
  if (rt === "line")
4657
4657
  return /* @__PURE__ */ f(kt, { children: j.map((H, L) => {
4658
- const _ = pt ? q - 1 - L : L;
4658
+ const E = ht ? T - 1 - L : L;
4659
4659
  return /* @__PURE__ */ f("div", { children: st(
4660
4660
  H === "" ? " " : H,
4661
- _,
4662
- q,
4661
+ E,
4662
+ T,
4663
4663
  `line-${L}`
4664
4664
  ) }, L);
4665
4665
  }) });
4666
4666
  let It = 0;
4667
- const ft = j.map((H) => (H === "" ? [" "] : H.split("")).map((J) => ({
4668
- char: J,
4667
+ const ft = j.map((H) => (H === "" ? [" "] : H.split("")).map((q) => ({
4668
+ char: q,
4669
4669
  globalIndex: It++
4670
4670
  })));
4671
- return /* @__PURE__ */ f(kt, { children: ft.map((H, L) => /* @__PURE__ */ f("div", { children: H.map(({ char: _, globalIndex: J }) => {
4672
- const it = pt ? T - 1 - J : J;
4671
+ return /* @__PURE__ */ f(kt, { children: ft.map((H, L) => /* @__PURE__ */ f("div", { children: H.map(({ char: E, globalIndex: q }) => {
4672
+ const it = ht ? D - 1 - q : q;
4673
4673
  return st(
4674
- _,
4674
+ E,
4675
4675
  it,
4676
- T,
4677
- `${L}-${J}`
4676
+ D,
4677
+ `${L}-${q}`
4678
4678
  );
4679
4679
  }) }, L)) });
4680
4680
  }, Zr = ({
@@ -4686,9 +4686,9 @@ const We = ({ text: t, frame: r }) => {
4686
4686
  onBlur: a,
4687
4687
  fps: i,
4688
4688
  frame: e,
4689
- textAnimationNameIn: p,
4689
+ textAnimationNameIn: h,
4690
4690
  textAnimationNameOut: o,
4691
- textAnimationNameLoop: h,
4691
+ textAnimationNameLoop: p,
4692
4692
  textAnimationModeIn: l,
4693
4693
  textAnimationModeOut: u,
4694
4694
  textAnimationModeLoop: d,
@@ -4706,7 +4706,7 @@ const We = ({ text: t, frame: r }) => {
4706
4706
  durationInFrames: N,
4707
4707
  animationFonts: F
4708
4708
  }) => {
4709
- const [B, X] = fr(r), P = _r(null);
4709
+ const [B, X] = fr(r), P = Er(null);
4710
4710
  er(() => {
4711
4711
  if (n && P.current) {
4712
4712
  const Y = P.current;
@@ -4737,14 +4737,14 @@ const We = ({ text: t, frame: r }) => {
4737
4737
  Y.stopPropagation();
4738
4738
  const C = window.getSelection(), U = P.current;
4739
4739
  if (C != null && C.rangeCount && U) {
4740
- const D = C.getRangeAt(0);
4741
- D.endOffset - D.startOffset === ((z = U.textContent) == null ? void 0 : z.length) && R();
4740
+ const tt = C.getRangeAt(0);
4741
+ tt.endOffset - tt.startOffset === ((z = U.textContent) == null ? void 0 : z.length) && R();
4742
4742
  }
4743
4743
  },
4744
4744
  onInput: (Y) => c(t, Y.target.innerText),
4745
4745
  onBlur: (Y) => a(t, Y.target.innerText),
4746
4746
  style: {
4747
- height: h === "textGridMarqueeTextAnimationLoop" || h === "textGridMarquee" ? g != null && g.height ? `${g.height}px` : "100%" : "max-content",
4747
+ height: p === "textGridMarqueeTextAnimationLoop" || p === "textGridMarquee" ? g != null && g.height ? `${g.height}px` : "100%" : "max-content",
4748
4748
  boxShadow: "none",
4749
4749
  outline: "none",
4750
4750
  ...s,
@@ -4757,9 +4757,9 @@ const We = ({ text: t, frame: r }) => {
4757
4757
  children: n ? r : /* @__PURE__ */ f(
4758
4758
  Je,
4759
4759
  {
4760
- textAnimationNameIn: p,
4760
+ textAnimationNameIn: h,
4761
4761
  textAnimationNameOut: o,
4762
- textAnimationNameLoop: h,
4762
+ textAnimationNameLoop: p,
4763
4763
  textAnimationModeIn: l,
4764
4764
  textAnimationModeOut: u,
4765
4765
  textAnimationModeLoop: d,
@@ -4868,25 +4868,25 @@ var mr = function() {
4868
4868
  if (i)
4869
4869
  if (this._parentage = null, Array.isArray(i))
4870
4870
  try {
4871
- for (var e = Yr(i), p = e.next(); !p.done; p = e.next()) {
4872
- var o = p.value;
4871
+ for (var e = Yr(i), h = e.next(); !h.done; h = e.next()) {
4872
+ var o = h.value;
4873
4873
  o.remove(this);
4874
4874
  }
4875
4875
  } catch (y) {
4876
4876
  r = { error: y };
4877
4877
  } finally {
4878
4878
  try {
4879
- p && !p.done && (n = e.return) && n.call(e);
4879
+ h && !h.done && (n = e.return) && n.call(e);
4880
4880
  } finally {
4881
4881
  if (r) throw r.error;
4882
4882
  }
4883
4883
  }
4884
4884
  else
4885
4885
  i.remove(this);
4886
- var h = this.initialTeardown;
4887
- if (Ot(h))
4886
+ var p = this.initialTeardown;
4887
+ if (Ot(p))
4888
4888
  try {
4889
- h();
4889
+ p();
4890
4890
  } catch (y) {
4891
4891
  a = y instanceof Mr ? y.errors : [y];
4892
4892
  }
@@ -4971,7 +4971,7 @@ function De(t) {
4971
4971
  }
4972
4972
  function Kr() {
4973
4973
  }
4974
- function hr(t) {
4974
+ function pr(t) {
4975
4975
  t();
4976
4976
  }
4977
4977
  var Or = function(t) {
@@ -5081,9 +5081,9 @@ var Jr = function() {
5081
5081
  return n.source = this, n.operator = r, n;
5082
5082
  }, t.prototype.subscribe = function(r, n, s) {
5083
5083
  var c = this, a = cs(r) ? r : new Pr(r, n, s);
5084
- return hr(function() {
5085
- var i = c, e = i.operator, p = i.source;
5086
- a.add(e ? e.call(a, p) : p ? c._subscribe(a) : c._trySubscribe(a));
5084
+ return pr(function() {
5085
+ var i = c, e = i.operator, h = i.source;
5086
+ a.add(e ? e.call(a, h) : h ? c._subscribe(a) : c._trySubscribe(a));
5087
5087
  }), a;
5088
5088
  }, t.prototype._trySubscribe = function(r) {
5089
5089
  try {
@@ -5098,8 +5098,8 @@ var Jr = function() {
5098
5098
  next: function(e) {
5099
5099
  try {
5100
5100
  r(e);
5101
- } catch (p) {
5102
- a(p), i.unsubscribe();
5101
+ } catch (h) {
5102
+ a(h), i.unsubscribe();
5103
5103
  }
5104
5104
  },
5105
5105
  error: a,
@@ -5145,22 +5145,22 @@ function cs(t) {
5145
5145
  (function(t) {
5146
5146
  ar(r, t);
5147
5147
  function r(n, s, c, a, i, e) {
5148
- var p = t.call(this, n) || this;
5149
- return p.onFinalize = i, p.shouldUnsubscribe = e, p._next = s ? function(o) {
5148
+ var h = t.call(this, n) || this;
5149
+ return h.onFinalize = i, h.shouldUnsubscribe = e, h._next = s ? function(o) {
5150
5150
  try {
5151
5151
  s(o);
5152
- } catch (h) {
5153
- n.error(h);
5152
+ } catch (p) {
5153
+ n.error(p);
5154
5154
  }
5155
- } : t.prototype._next, p._error = a ? function(o) {
5155
+ } : t.prototype._next, h._error = a ? function(o) {
5156
5156
  try {
5157
5157
  a(o);
5158
- } catch (h) {
5159
- n.error(h);
5158
+ } catch (p) {
5159
+ n.error(p);
5160
5160
  } finally {
5161
5161
  this.unsubscribe();
5162
5162
  }
5163
- } : t.prototype._error, p._complete = c ? function() {
5163
+ } : t.prototype._error, h._complete = c ? function() {
5164
5164
  try {
5165
5165
  c();
5166
5166
  } catch (o) {
@@ -5168,7 +5168,7 @@ function cs(t) {
5168
5168
  } finally {
5169
5169
  this.unsubscribe();
5170
5170
  }
5171
- } : t.prototype._complete, p;
5171
+ } : t.prototype._complete, h;
5172
5172
  }
5173
5173
  return r.prototype.unsubscribe = function() {
5174
5174
  var n;
@@ -5196,14 +5196,14 @@ var is = Fn(function(t) {
5196
5196
  throw new is();
5197
5197
  }, r.prototype.next = function(n) {
5198
5198
  var s = this;
5199
- hr(function() {
5199
+ pr(function() {
5200
5200
  var c, a;
5201
5201
  if (s._throwIfClosed(), !s.isStopped) {
5202
5202
  s.currentObservers || (s.currentObservers = Array.from(s.observers));
5203
5203
  try {
5204
5204
  for (var i = Yr(s.currentObservers), e = i.next(); !e.done; e = i.next()) {
5205
- var p = e.value;
5206
- p.next(n);
5205
+ var h = e.value;
5206
+ h.next(n);
5207
5207
  }
5208
5208
  } catch (o) {
5209
5209
  c = { error: o };
@@ -5218,7 +5218,7 @@ var is = Fn(function(t) {
5218
5218
  });
5219
5219
  }, r.prototype.error = function(n) {
5220
5220
  var s = this;
5221
- hr(function() {
5221
+ pr(function() {
5222
5222
  if (s._throwIfClosed(), !s.isStopped) {
5223
5223
  s.hasError = s.isStopped = !0, s.thrownError = n;
5224
5224
  for (var c = s.observers; c.length; )
@@ -5227,7 +5227,7 @@ var is = Fn(function(t) {
5227
5227
  });
5228
5228
  }, r.prototype.complete = function() {
5229
5229
  var n = this;
5230
- hr(function() {
5230
+ pr(function() {
5231
5231
  if (n._throwIfClosed(), !n.isStopped) {
5232
5232
  n.isStopped = !0;
5233
5233
  for (var s = n.observers; s.length; )
@@ -5294,8 +5294,8 @@ function Bn({
5294
5294
  item: t,
5295
5295
  options: r
5296
5296
  }) {
5297
- var st, ut, pt, vt, $t, It, ft, St, Yt, Rt, Xt, _t, zt, Et, Wt, Lt, Ht, Ut, Zt, Qt, tr, H, L, _, J, it;
5298
- const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: e, details: p, animations: o } = t, { durationInFrames: h } = wt(t.display, c), l = [
5297
+ var st, ut, ht, bt, $t, It, ft, St, Yt, Rt, Xt, Et, zt, _t, Wt, Lt, Ht, Ut, Zt, Qt, tr, H, L, E, q, it;
5298
+ const { handleTextChange: n, onTextBlur: s, fps: c, editableTextId: a, frame: i } = r, { id: e, details: h, animations: o } = t, { durationInFrames: p } = wt(t.display, c), l = [
5299
5299
  "opacity",
5300
5300
  "scale",
5301
5301
  "translateX",
@@ -5326,9 +5326,9 @@ function Bn({
5326
5326
  (V) => l.some((A) => V.property === A) && V.textAnimationMode && V.textAnimationMode !== "all"
5327
5327
  ), d = (((ut = o == null ? void 0 : o.out) == null ? void 0 : ut.composition) || []).filter(
5328
5328
  (V) => l.some((A) => V.property === A) && V.textAnimationMode && V.textAnimationMode !== "all"
5329
- ), b = (((pt = o == null ? void 0 : o.loop) == null ? void 0 : pt.composition) || []).filter(
5329
+ ), b = (((ht = o == null ? void 0 : o.loop) == null ? void 0 : ht.composition) || []).filter(
5330
5330
  (V) => l.some((A) => V.property === A) && V.textAnimationMode && V.textAnimationMode !== "all"
5331
- ), y = (((vt = o == null ? void 0 : o.timed) == null ? void 0 : vt.composition) || []).filter(
5331
+ ), y = (((bt = o == null ? void 0 : o.timed) == null ? void 0 : bt.composition) || []).filter(
5332
5332
  (V) => l.some((A) => V.property === A) && V.textAnimationMode && V.textAnimationMode !== "all"
5333
5333
  ), v = new Set(u.map((V) => V.id)), x = new Set(d.map((V) => V.id)), M = new Set(
5334
5334
  b.map((V) => V.id)
@@ -5372,7 +5372,7 @@ function Bn({
5372
5372
  (V) => !l.some((A) => V.property === A)
5373
5373
  ), F = (ft = o == null ? void 0 : o.loop) == null ? void 0 : ft.composition.find(
5374
5374
  (V) => !l.some((A) => V.property === A)
5375
- ), B = ($ == null ? void 0 : $.property) || "", X = (N == null ? void 0 : N.property) || "", P = (F == null ? void 0 : F.property) || "", R = ($ == null ? void 0 : $.textAnimationMode) || ((St = u[0]) == null ? void 0 : St.textAnimationMode) || ($ ? "letter" : "all"), E = (N == null ? void 0 : N.textAnimationMode) || ((Yt = d[0]) == null ? void 0 : Yt.textAnimationMode) || (N ? "letter" : "all"), Y = (F == null ? void 0 : F.textAnimationMode) || ((Rt = b[0]) == null ? void 0 : Rt.textAnimationMode) || (F ? "letter" : "all"), C = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", U = ($ == null ? void 0 : $.durationInFrames) || ((zt = (_t = o == null ? void 0 : o.in) == null ? void 0 : _t.composition[0]) == null ? void 0 : zt.durationInFrames) || 0, z = (N == null ? void 0 : N.durationInFrames) || ((Wt = (Et = o == null ? void 0 : o.out) == null ? void 0 : Et.composition[0]) == null ? void 0 : Wt.durationInFrames) || 0, D = (F == null ? void 0 : F.durationInFrames) || ((Ht = (Lt = o == null ? void 0 : o.loop) == null ? void 0 : Lt.composition[0]) == null ? void 0 : Ht.durationInFrames) || 0, dt = ((Ut = y[0]) == null ? void 0 : Ut.durationInFrames) || 0, et = [];
5375
+ ), B = ($ == null ? void 0 : $.property) || "", X = (N == null ? void 0 : N.property) || "", P = (F == null ? void 0 : F.property) || "", R = ($ == null ? void 0 : $.textAnimationMode) || ((St = u[0]) == null ? void 0 : St.textAnimationMode) || ($ ? "letter" : "all"), _ = (N == null ? void 0 : N.textAnimationMode) || ((Yt = d[0]) == null ? void 0 : Yt.textAnimationMode) || (N ? "letter" : "all"), Y = (F == null ? void 0 : F.textAnimationMode) || ((Rt = b[0]) == null ? void 0 : Rt.textAnimationMode) || (F ? "letter" : "all"), C = ((Xt = y[0]) == null ? void 0 : Xt.textAnimationMode) || "all", U = ($ == null ? void 0 : $.durationInFrames) || ((zt = (Et = o == null ? void 0 : o.in) == null ? void 0 : Et.composition[0]) == null ? void 0 : zt.durationInFrames) || 0, z = (N == null ? void 0 : N.durationInFrames) || ((Wt = (_t = o == null ? void 0 : o.out) == null ? void 0 : _t.composition[0]) == null ? void 0 : Wt.durationInFrames) || 0, tt = (F == null ? void 0 : F.durationInFrames) || ((Ht = (Lt = o == null ? void 0 : o.loop) == null ? void 0 : Lt.composition[0]) == null ? void 0 : Ht.durationInFrames) || 0, dt = ((Ut = y[0]) == null ? void 0 : Ut.durationInFrames) || 0, et = [];
5376
5376
  o != null && o.loop && o.loop.composition.forEach((V) => {
5377
5377
  var A;
5378
5378
  (A = V.details) != null && A.fonts && et.push(...V.details.fonts);
@@ -5383,28 +5383,28 @@ function Bn({
5383
5383
  var A;
5384
5384
  (A = V.details) != null && A.fonts && et.push(...V.details.fonts);
5385
5385
  });
5386
- let K = p.text;
5386
+ let K = h.text;
5387
5387
  if ((Qt = (Zt = t.animations) == null ? void 0 : Zt.timed) != null && Qt.composition) {
5388
5388
  const V = (r.frame || 0) - t.display.from * c / 1e3;
5389
5389
  if (V >= 0) {
5390
5390
  const A = (tr = t.animations) == null ? void 0 : tr.timed.composition;
5391
5391
  A.forEach((ot, rr) => {
5392
- const gt = A.slice(0, rr).reduce((Kt, ir) => Kt + ir.durationInFrames, 0);
5393
- V >= gt && ot.text && (K = ot.text);
5392
+ const vt = A.slice(0, rr).reduce((Kt, ir) => Kt + ir.durationInFrames, 0);
5393
+ V >= vt && ot.text && (K = ot.text);
5394
5394
  });
5395
5395
  }
5396
5396
  }
5397
- const nt = (i || 0) - t.display.from * c / 1e3, G = p || {}, { top: Q, left: ht, transform: O, position: j, boxShadow: T, ...lt } = G, q = (V) => {
5397
+ const nt = (i || 0) - t.display.from * c / 1e3, G = h || {}, { top: Q, left: pt, transform: O, position: j, boxShadow: D, ...lt } = G, T = (V) => {
5398
5398
  V.stopPropagation(), V.preventDefault(), us(io, {
5399
5399
  payload: {
5400
5400
  id: e
5401
5401
  }
5402
5402
  });
5403
5403
  }, Z = Cr(
5404
- p.effects,
5404
+ h.effects,
5405
5405
  t.animations,
5406
5406
  nt
5407
- ), at = Vr(Z), tt = typeof p.width == "number" ? p.width : parseInt(String(p.width || 300), 10) || 300, yt = typeof p.height == "number" ? p.height : parseInt(String(p.height || 100), 10) || 100, rt = {
5407
+ ), at = Vr(Z), mt = typeof h.width == "number" ? h.width : parseInt(String(h.width || 300), 10) || 300, J = typeof h.height == "number" ? h.height : parseInt(String(h.height || 100), 10) || 100, rt = {
5408
5408
  key: e,
5409
5409
  id: e,
5410
5410
  fps: c,
@@ -5416,7 +5416,7 @@ function Bn({
5416
5416
  textAnimationNameOut: X,
5417
5417
  textAnimationNameLoop: P,
5418
5418
  textAnimationModeIn: R,
5419
- textAnimationModeOut: E,
5419
+ textAnimationModeOut: _,
5420
5420
  textAnimationModeLoop: Y,
5421
5421
  textAnimationModeTimed: C,
5422
5422
  basicCharAnimationsIn: u,
@@ -5425,14 +5425,14 @@ function Bn({
5425
5425
  basicCharAnimationsTimed: y,
5426
5426
  loopComposition: (H = o == null ? void 0 : o.loop) == null ? void 0 : H.composition,
5427
5427
  onBlur: s,
5428
- onDoubleClick: q,
5429
- style: Dt(p),
5430
- details: p,
5428
+ onDoubleClick: T,
5429
+ style: Dt(h),
5430
+ details: h,
5431
5431
  animationTextInFrames: U,
5432
5432
  animationTextOutFrames: z,
5433
- animationTextLoopFrames: D,
5433
+ animationTextLoopFrames: tt,
5434
5434
  animationTextTimedFrames: dt,
5435
- durationInFrames: h,
5435
+ durationInFrames: p,
5436
5436
  animationFonts: et
5437
5437
  }, ct = /* @__PURE__ */ f(
5438
5438
  jt,
@@ -5442,21 +5442,21 @@ function Bn({
5442
5442
  basicCharAnimationsIn: u,
5443
5443
  basicCharAnimationsOut: d,
5444
5444
  frame: nt,
5445
- durationInFrames: h,
5445
+ durationInFrames: p,
5446
5446
  style: {
5447
- transform: p.transform,
5448
- rotate: p == null ? void 0 : p.rotate,
5447
+ transform: h.transform,
5448
+ rotate: h == null ? void 0 : h.rotate,
5449
5449
  display: "flex"
5450
5450
  },
5451
5451
  children: /* @__PURE__ */ f(
5452
5452
  At,
5453
5453
  {
5454
5454
  animationTimed: a === e ? null : S,
5455
- durationInFrames: h,
5455
+ durationInFrames: p,
5456
5456
  frame: nt,
5457
5457
  style: {
5458
- transform: p.transform,
5459
- rotate: p == null ? void 0 : p.rotate,
5458
+ transform: h.transform,
5459
+ rotate: h == null ? void 0 : h.rotate,
5460
5460
  display: "flex"
5461
5461
  },
5462
5462
  children: /* @__PURE__ */ f(
@@ -5465,20 +5465,20 @@ function Bn({
5465
5465
  item: t,
5466
5466
  keyframeAnimations: [
5467
5467
  ...((L = o == null ? void 0 : o.in) == null ? void 0 : L.composition) || [],
5468
- ...((_ = o == null ? void 0 : o.out) == null ? void 0 : _.composition) || [],
5469
- ...((J = o == null ? void 0 : o.timed) == null ? void 0 : J.composition) || [],
5468
+ ...((E = o == null ? void 0 : o.out) == null ? void 0 : E.composition) || [],
5469
+ ...((q = o == null ? void 0 : o.timed) == null ? void 0 : q.composition) || [],
5470
5470
  ...((it = o == null ? void 0 : o.loop) == null ? void 0 : it.composition) || [],
5471
5471
  ...w || [],
5472
5472
  ...I || [],
5473
5473
  ...S || []
5474
5474
  ],
5475
5475
  frame: nt,
5476
- durationInFrames: h,
5476
+ durationInFrames: p,
5477
5477
  children: at ? /* @__PURE__ */ f(
5478
- Er,
5478
+ _r,
5479
5479
  {
5480
- width: tt,
5481
- height: yt,
5480
+ width: mt,
5481
+ height: J,
5482
5482
  effects: at,
5483
5483
  children: /* @__PURE__ */ f(Zr, { ...rt })
5484
5484
  }
@@ -5489,14 +5489,14 @@ function Bn({
5489
5489
  )
5490
5490
  }
5491
5491
  );
5492
- return mt({ item: t, options: r, children: ct });
5492
+ return gt({ item: t, options: r, children: ct });
5493
5493
  }
5494
5494
  const Pn = ({
5495
5495
  item: t,
5496
5496
  options: r
5497
5497
  }) => {
5498
- var z, D, dt, et, K, nt, G, Q, ht, O, j, T, lt, q;
5499
- const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: p, animationOut: o, animationTimed: h } = Ft(
5498
+ var z, tt, dt, et, K, nt, G, Q, pt, O, j, D, lt, T;
5499
+ const { fps: n, frame: s, isTransition: c } = r, { details: a, animations: i } = t, e = t.playbackRate || 1, { animationIn: h, animationOut: o, animationTimed: p } = Ft(
5500
5500
  i,
5501
5501
  t,
5502
5502
  s,
@@ -5511,7 +5511,7 @@ const Pn = ({
5511
5511
  a.effects,
5512
5512
  i,
5513
5513
  d
5514
- ), M = Vr(x), { filter: m, overlays: g } = xn(x), w = (D = (z = i == null ? void 0 : i.loop) == null ? void 0 : z.composition) == null ? void 0 : D.find(
5514
+ ), M = Vr(x), { filter: m, overlays: g } = xn(x), w = (tt = (z = i == null ? void 0 : i.loop) == null ? void 0 : z.composition) == null ? void 0 : tt.find(
5515
5515
  (Z) => Z.property === "textGridMarqueeTextAnimationLoop" || Z.property === "textGridMarquee" || Z.property === "imageGridMarqueeTextAnimationLoop" || Z.property === "imageGridMarquee" || Z.id === "textGridMarquee" || Z.id === "imageGridMarquee"
5516
5516
  ), I = !!(w && d >= (w.delay || 0) && d <= (w.delay || 0) + (w.durationInFrames || 60)), S = (et = (dt = i == null ? void 0 : i.loop) == null ? void 0 : dt.composition) == null ? void 0 : et.find(
5517
5517
  (Z) => Z.property === "inwardEchoes" || Z.id === "inwardEchoes"
@@ -5520,16 +5520,16 @@ const Pn = ({
5520
5520
  ), F = !!(N && d >= (N.delay || 0) && d <= (N.delay || 0) + (N.durationInFrames || 120)), B = (Q = (G = i == null ? void 0 : i.loop) == null ? void 0 : G.composition) == null ? void 0 : Q.find(
5521
5521
  (Z) => Z.property === "cardFlip" || Z.id === "cardFlip"
5522
5522
  ), X = !!(B && d >= (B.delay || 0) && d <= (B.delay || 0) + (B.durationInFrames || 120)), P = [
5523
- ...((ht = i == null ? void 0 : i.in) == null ? void 0 : ht.composition) || [],
5523
+ ...((pt = i == null ? void 0 : i.in) == null ? void 0 : pt.composition) || [],
5524
5524
  ...((O = i == null ? void 0 : i.out) == null ? void 0 : O.composition) || [],
5525
5525
  ...((j = i == null ? void 0 : i.timed) == null ? void 0 : j.composition) || [],
5526
- ...((T = i == null ? void 0 : i.loop) == null ? void 0 : T.composition) || []
5527
- ], R = a.width || l.width || 300, E = a.height || l.height || 300, Y = /* @__PURE__ */ f(
5526
+ ...((D = i == null ? void 0 : i.loop) == null ? void 0 : D.composition) || []
5527
+ ], R = a.width || l.width || 300, _ = a.height || l.height || 300, Y = /* @__PURE__ */ f(
5528
5528
  sr,
5529
5529
  {
5530
5530
  "data-id": t.id,
5531
5531
  startFrom: ((lt = t.trim) == null ? void 0 : lt.from) / 1e3 * n,
5532
- endAt: (((q = t.trim) == null ? void 0 : q.to) / 1e3 * n || 1 / n) / e,
5532
+ endAt: (((T = t.trim) == null ? void 0 : T.to) / 1e3 * n || 1 / n) / e,
5533
5533
  playbackRate: e,
5534
5534
  src: a.src,
5535
5535
  volume: (a.volume || 0) / 100,
@@ -5607,7 +5607,7 @@ const Pn = ({
5607
5607
  from: B == null ? void 0 : B.from,
5608
5608
  to: B == null ? void 0 : B.to,
5609
5609
  width: R,
5610
- height: E,
5610
+ height: _,
5611
5611
  borderRadius: v.borderRadius,
5612
5612
  boxShadow: a.boxShadow,
5613
5613
  cardFlipDetails: B == null ? void 0 : B.details,
@@ -5622,7 +5622,7 @@ const Pn = ({
5622
5622
  boxShadow: void 0,
5623
5623
  WebkitTextStroke: y
5624
5624
  },
5625
- animationIn: p,
5625
+ animationIn: h,
5626
5626
  animationOut: o,
5627
5627
  frame: d,
5628
5628
  durationInFrames: u,
@@ -5630,7 +5630,7 @@ const Pn = ({
5630
5630
  children: /* @__PURE__ */ f(
5631
5631
  At,
5632
5632
  {
5633
- animationTimed: h,
5633
+ animationTimed: p,
5634
5634
  durationInFrames: u,
5635
5635
  frame: d,
5636
5636
  style: {
@@ -5645,7 +5645,7 @@ const Pn = ({
5645
5645
  keyframeAnimations: P,
5646
5646
  frame: d,
5647
5647
  durationInFrames: u,
5648
- children: /* @__PURE__ */ bt(
5648
+ children: /* @__PURE__ */ yt(
5649
5649
  "div",
5650
5650
  {
5651
5651
  id: `${t.id}-reveal-mask`,
@@ -5661,7 +5661,7 @@ const Pn = ({
5661
5661
  borderRadius: v.borderRadius
5662
5662
  },
5663
5663
  children: [
5664
- /* @__PURE__ */ bt(
5664
+ /* @__PURE__ */ yt(
5665
5665
  "div",
5666
5666
  {
5667
5667
  style: {
@@ -5671,10 +5671,10 @@ const Pn = ({
5671
5671
  },
5672
5672
  children: [
5673
5673
  M ? /* @__PURE__ */ f(
5674
- Er,
5674
+ _r,
5675
5675
  {
5676
5676
  width: R,
5677
- height: E,
5677
+ height: _,
5678
5678
  effects: M,
5679
5679
  children: C()
5680
5680
  }
@@ -5687,7 +5687,7 @@ const Pn = ({
5687
5687
  "div",
5688
5688
  {
5689
5689
  style: {
5690
- ...hn(a, l),
5690
+ ...pn(a, l),
5691
5691
  backgroundColor: "transparent"
5692
5692
  }
5693
5693
  }
@@ -5701,9 +5701,9 @@ const Pn = ({
5701
5701
  )
5702
5702
  }
5703
5703
  );
5704
- return mt({ item: t, options: r, children: U });
5704
+ return gt({ item: t, options: r, children: U });
5705
5705
  };
5706
- function _n({
5706
+ function En({
5707
5707
  item: t,
5708
5708
  options: r
5709
5709
  }) {
@@ -5714,15 +5714,15 @@ function _n({
5714
5714
  },
5715
5715
  n
5716
5716
  );
5717
- let p;
5717
+ let h;
5718
5718
  if (c.inverted) {
5719
- const h = Math.max((s || 0) - i, 0);
5720
- p = 100 - Math.min(h / e * 100, 100);
5719
+ const p = Math.max((s || 0) - i, 0);
5720
+ h = 100 - Math.min(p / e * 100, 100);
5721
5721
  } else {
5722
- const h = Math.max((s || 0) - i, 0);
5723
- p = Math.min(h / e * 100, 100);
5722
+ const p = Math.max((s || 0) - i, 0);
5723
+ h = Math.min(p / e * 100, 100);
5724
5724
  }
5725
- const o = /* @__PURE__ */ bt(kt, { children: [
5725
+ const o = /* @__PURE__ */ yt(kt, { children: [
5726
5726
  /* @__PURE__ */ f(
5727
5727
  "div",
5728
5728
  {
@@ -5741,24 +5741,24 @@ function _n({
5741
5741
  {
5742
5742
  style: {
5743
5743
  position: "absolute",
5744
- width: `${p}%`,
5744
+ width: `${h}%`,
5745
5745
  height: "100%",
5746
5746
  backgroundColor: c.backgroundColors[1] || "rgba(128, 128, 128,1)"
5747
5747
  }
5748
5748
  }
5749
5749
  )
5750
5750
  ] });
5751
- return mt({ item: t, options: r, children: o });
5751
+ return gt({ item: t, options: r, children: o });
5752
5752
  }
5753
5753
  const ls = (t) => {
5754
5754
  let r = 0;
5755
5755
  for (let n = 0; n < t.length; n++)
5756
5756
  r += t[n] * t[n];
5757
5757
  return r = r / t.length, r = Math.sqrt(r), r;
5758
- }, hs = (t) => 20 * Math.log10(t), ps = (t, r, n) => (t - r) / (n - r), fs = (t, r, n) => Math.max(Math.min(t, n), r), ys = -100, bs = -30, zr = (t, r = {}) => {
5759
- const { minDb: n = ys, maxDb: s = bs } = r, c = hs(t);
5760
- return fs(ps(c, n, s), 0, 1);
5761
- }, En = ({
5758
+ }, ps = (t) => 20 * Math.log10(t), hs = (t, r, n) => (t - r) / (n - r), fs = (t, r, n) => Math.max(Math.min(t, n), r), ys = -100, bs = -30, zr = (t, r = {}) => {
5759
+ const { minDb: n = ys, maxDb: s = bs } = r, c = ps(t);
5760
+ return fs(hs(c, n, s), 0, 1);
5761
+ }, _n = ({
5762
5762
  totalWidth: t,
5763
5763
  itemWidth: r,
5764
5764
  frequencyData: n,
@@ -5766,9 +5766,9 @@ const ls = (t) => {
5766
5766
  minDb: c = -80
5767
5767
  }) => {
5768
5768
  const a = Math.floor(t / r), i = n, e = Math.floor(i.length / a);
5769
- return Array.from({ length: a }).map((o, h) => {
5769
+ return Array.from({ length: a }).map((o, p) => {
5770
5770
  const l = zr(
5771
- i[h * e % i.length],
5771
+ i[p * e % i.length],
5772
5772
  { maxDb: s, minDb: c }
5773
5773
  );
5774
5774
  return Math.log(1 + l);
@@ -5782,11 +5782,11 @@ const ls = (t) => {
5782
5782
  roundness: a = 4,
5783
5783
  placement: i = "middle",
5784
5784
  color: e = "white",
5785
- maxAmplitude: p = 1
5785
+ maxAmplitude: h = 1
5786
5786
  }) => {
5787
- const o = r, h = n;
5788
- return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: h, viewBox: `0 0 ${o} ${h}`, children: t.map((l, u) => {
5789
- const d = l * h / p, b = u * (s + c), y = i === "over" ? 0 : i === "under" ? h - d : 0.5 * (h - d);
5787
+ const o = r, p = n;
5788
+ return !t || t.length === 0 ? null : /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: p, viewBox: `0 0 ${o} ${p}`, children: t.map((l, u) => {
5789
+ const d = l * p / h, b = u * (s + c), y = i === "over" ? 0 : i === "under" ? p - d : 0.5 * (p - d);
5790
5790
  return /* @__PURE__ */ f(
5791
5791
  "rect",
5792
5792
  {
@@ -5809,27 +5809,27 @@ const ls = (t) => {
5809
5809
  roundness: a = 2,
5810
5810
  color: i = "white",
5811
5811
  placement: e = "middle",
5812
- maxDb: p,
5812
+ maxDb: h,
5813
5813
  minDb: o
5814
5814
  }) => {
5815
- const h = _r(null), l = Nt(), [u, d] = fr({ width: 400, height: 100 });
5815
+ const p = Er(null), l = Nt(), [u, d] = fr({ width: 400, height: 100 });
5816
5816
  er(() => {
5817
5817
  d((x) => {
5818
5818
  var M, m;
5819
5819
  return {
5820
- width: ((M = h.current) == null ? void 0 : M.offsetWidth) ?? x.width,
5821
- height: ((m = h.current) == null ? void 0 : m.offsetHeight) ?? x.height
5820
+ width: ((M = p.current) == null ? void 0 : M.offsetWidth) ?? x.width,
5821
+ height: ((m = p.current) == null ? void 0 : m.offsetHeight) ?? x.height
5822
5822
  };
5823
5823
  });
5824
5824
  }, [l, d]);
5825
- const { width: b, height: y } = u, v = En({
5825
+ const { width: b, height: y } = u, v = _n({
5826
5826
  totalWidth: b,
5827
5827
  itemWidth: s + c,
5828
5828
  frequencyData: n,
5829
- maxDb: p,
5829
+ maxDb: h,
5830
5830
  minDb: o
5831
5831
  });
5832
- return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: r }, children: /* @__PURE__ */ f(
5832
+ return /* @__PURE__ */ f("div", { ref: p, style: { width: t, height: r }, children: /* @__PURE__ */ f(
5833
5833
  vs,
5834
5834
  {
5835
5835
  width: b,
@@ -5884,7 +5884,7 @@ class ms {
5884
5884
  (i) => !n.includes(i)
5885
5885
  ).forEach((i) => this.removeItem(i)), await Promise.all(
5886
5886
  c.map(async (i) => {
5887
- const e = r.find((p) => p.id === i);
5887
+ const e = r.find((h) => h.id === i);
5888
5888
  e != null && e.details.src && await this.loadAudioData(e.details.src, i);
5889
5889
  })
5890
5890
  ), this.items = r, this.frameCache.clear();
@@ -5892,7 +5892,7 @@ class ms {
5892
5892
  validateUpdateItems(r) {
5893
5893
  r.forEach((n) => {
5894
5894
  this.items.forEach((s) => {
5895
- !ho(s, n) && s.id === n.id && this.updateItem(n);
5895
+ !po(s, n) && s.id === n.id && this.updateItem(n);
5896
5896
  });
5897
5897
  });
5898
5898
  }
@@ -5908,15 +5908,15 @@ class ms {
5908
5908
  if (n)
5909
5909
  return n;
5910
5910
  const s = this.items.map((a, i) => {
5911
- var h;
5911
+ var p;
5912
5912
  const e = this.audioDatas[a.id];
5913
5913
  if (!e) return Array(this.numberOfSamples).fill(0);
5914
- const p = r - this.items[i].display.from * this.fps / 1e3 + (((h = this.items[i].trim) == null ? void 0 : h.from) || 0) * this.fps / 1e3;
5914
+ const h = r - this.items[i].display.from * this.fps / 1e3 + (((p = this.items[i].trim) == null ? void 0 : p.from) || 0) * this.fps / 1e3;
5915
5915
  if (this.items[i].display.from * this.fps / 1e3 > r || this.items[i].display.to * this.fps / 1e3 < r)
5916
5916
  return Array(this.numberOfSamples).fill(0);
5917
5917
  const o = lo({
5918
5918
  audioData: e.data,
5919
- frame: p,
5919
+ frame: h,
5920
5920
  fps: this.fps,
5921
5921
  numberOfSamples: this.numberOfSamples
5922
5922
  });
@@ -5957,7 +5957,7 @@ function Wn({
5957
5957
  item: t,
5958
5958
  options: r
5959
5959
  }) {
5960
- return mt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(xs, { item: t, options: r }) }) });
5960
+ return gt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(xs, { item: t, options: r }) }) });
5961
5961
  }
5962
5962
  function Vn({
5963
5963
  item: t,
@@ -5970,15 +5970,15 @@ function Vn({
5970
5970
  },
5971
5971
  n
5972
5972
  );
5973
- let p;
5973
+ let h;
5974
5974
  if (c.inverted) {
5975
5975
  const b = Math.max((s || 0) - i, 0);
5976
- p = 100 - Math.min(b / e * 100, 100);
5976
+ h = 100 - Math.min(b / e * 100, 100);
5977
5977
  } else {
5978
5978
  const b = Math.max((s || 0) - i, 0);
5979
- p = Math.min(b / e * 100, 100);
5979
+ h = Math.min(b / e * 100, 100);
5980
5980
  }
5981
- const o = c.width || 100, h = c.height || 100, u = Math.min(o, h) * c.barThickness / 100, d = /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
5981
+ const o = c.width || 100, p = c.height || 100, u = Math.min(o, p) * c.barThickness / 100, d = /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(
5982
5982
  "div",
5983
5983
  {
5984
5984
  style: {
@@ -5988,7 +5988,7 @@ function Vn({
5988
5988
  backgroundColor: "transparent",
5989
5989
  scale: `${c.flipX ? -1 : 1} ${c.flipY ? -1 : 1}`
5990
5990
  },
5991
- children: /* @__PURE__ */ bt(
5991
+ children: /* @__PURE__ */ yt(
5992
5992
  "div",
5993
5993
  {
5994
5994
  style: {
@@ -6016,8 +6016,8 @@ function Vn({
6016
6016
  position: "absolute",
6017
6017
  inset: 0,
6018
6018
  backgroundColor: c.backgroundColors[1] || "rgba(128, 128, 128,1)",
6019
- width: `${p}%`,
6020
- height: `${p}%`
6019
+ width: `${h}%`,
6020
+ height: `${h}%`
6021
6021
  }
6022
6022
  }
6023
6023
  )
@@ -6026,7 +6026,7 @@ function Vn({
6026
6026
  )
6027
6027
  }
6028
6028
  ) });
6029
- return mt({ item: t, options: r, children: d });
6029
+ return gt({ item: t, options: r, children: d });
6030
6030
  }
6031
6031
  const $s = ({
6032
6032
  values: t,
@@ -6040,15 +6040,15 @@ const $s = ({
6040
6040
  }) => {
6041
6041
  if (!t || t.length === 0)
6042
6042
  return null;
6043
- const p = 2 * r;
6044
- return /* @__PURE__ */ f("div", { style: { width: p, height: p }, children: /* @__PURE__ */ f(
6043
+ const h = 2 * r;
6044
+ return /* @__PURE__ */ f("div", { style: { width: h, height: h }, children: /* @__PURE__ */ f(
6045
6045
  "svg",
6046
6046
  {
6047
- width: p,
6048
- height: p,
6049
- viewBox: `0 0 ${p} ${p}`,
6050
- children: t.map((o, h) => {
6051
- const l = o * (r - e) / i, u = r, d = c === "outer" ? r - l : c === "inner" ? r : r - 0.5 * l, b = c === "outer" ? r : c === "inner" ? e : r - 0.5 * (r - e), y = `rotate(${360 * h / t.length} ${r} ${r}) translate(0 ${b})`;
6047
+ width: h,
6048
+ height: h,
6049
+ viewBox: `0 0 ${h} ${h}`,
6050
+ children: t.map((o, p) => {
6051
+ const l = o * (r - e) / i, u = r, d = c === "outer" ? r - l : c === "inner" ? r : r - 0.5 * l, b = c === "outer" ? r : c === "inner" ? e : r - 0.5 * (r - e), y = `rotate(${360 * p / t.length} ${r} ${r}) translate(0 ${b})`;
6052
6052
  return /* @__PURE__ */ f(
6053
6053
  "rect",
6054
6054
  {
@@ -6060,7 +6060,7 @@ const $s = ({
6060
6060
  rx: s,
6061
6061
  transform: y
6062
6062
  },
6063
- h
6063
+ p
6064
6064
  );
6065
6065
  })
6066
6066
  }
@@ -6074,13 +6074,13 @@ const $s = ({
6074
6074
  roundness: a = 4,
6075
6075
  barOrigin: i = "inner",
6076
6076
  color: e = "white",
6077
- maxAmplitude: p,
6077
+ maxAmplitude: h,
6078
6078
  innerRadius: o = 0,
6079
- gapSize: h = 4
6079
+ gapSize: p = 4
6080
6080
  }) => {
6081
- const l = 0.5 * s, u = En({
6081
+ const l = 0.5 * s, u = _n({
6082
6082
  totalWidth: 2 * Math.PI * o,
6083
- itemWidth: c + h,
6083
+ itemWidth: c + p,
6084
6084
  frequencyData: t,
6085
6085
  maxDb: r,
6086
6086
  minDb: n
@@ -6094,7 +6094,7 @@ const $s = ({
6094
6094
  roundness: a,
6095
6095
  barOrigin: i,
6096
6096
  color: e,
6097
- maxAmplitude: p,
6097
+ maxAmplitude: h,
6098
6098
  innerRadius: o
6099
6099
  }
6100
6100
  );
@@ -6104,25 +6104,25 @@ const $s = ({
6104
6104
  }) => {
6105
6105
  const { fps: n, frame: s } = r, { details: c } = t, a = t.playbackRate || 1;
6106
6106
  Gt.setAudioDataManager(n);
6107
- const p = Gt.getAudioDataForFrame(s || 0).slice(0, 0.7 * 512);
6108
- return /* @__PURE__ */ bt(kt, { children: [
6107
+ const h = Gt.getAudioDataForFrame(s || 0).slice(0, 0.7 * 512);
6108
+ return /* @__PURE__ */ yt(kt, { children: [
6109
6109
  /* @__PURE__ */ f(
6110
6110
  Ss,
6111
6111
  {
6112
- frequencyData: p,
6112
+ frequencyData: h,
6113
6113
  diameter: c.width,
6114
6114
  innerRadius: c.width / 4,
6115
6115
  color: c.radialBarColor
6116
6116
  }
6117
6117
  ),
6118
- c.reproduceAudio && c.srcs.map((o, h) => /* @__PURE__ */ f(an, { playbackRate: a, src: o }, h))
6118
+ c.reproduceAudio && c.srcs.map((o, p) => /* @__PURE__ */ f(an, { playbackRate: a, src: o }, p))
6119
6119
  ] });
6120
6120
  };
6121
6121
  function Cn({
6122
6122
  item: t,
6123
6123
  options: r
6124
6124
  }) {
6125
- return mt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ms, { item: t, options: r }) }) });
6125
+ return gt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ms, { item: t, options: r }) }) });
6126
6126
  }
6127
6127
  const ws = ({
6128
6128
  numberOfPoints: t,
@@ -6131,12 +6131,12 @@ const ws = ({
6131
6131
  width: s
6132
6132
  }) => {
6133
6133
  const c = 1 / t, a = n / s;
6134
- return Array.from({ length: t }).map((i, e, p) => {
6135
- const o = (e - 0.5) % p.length * c - a;
6136
- let h = (o + 1) % 1;
6137
- h = h * s;
6134
+ return Array.from({ length: t }).map((i, e, h) => {
6135
+ const o = (e - 0.5) % h.length * c - a;
6136
+ let p = (o + 1) % 1;
6137
+ p = p * s;
6138
6138
  let l = Math.sin(Math.abs(o) * Math.PI);
6139
- return l = k.cubic(l), l = l * r, l = l * Math.sin((0.5 + e) * Math.PI), { x: h, y: l };
6139
+ return l = k.cubic(l), l = l * r, l = l * Math.sin((0.5 + e) * Math.PI), { x: p, y: l };
6140
6140
  }).sort((i, e) => i.x > e.x ? 1 : -1);
6141
6141
  }, Is = ({
6142
6142
  sections: t = 12,
@@ -6147,9 +6147,9 @@ const ws = ({
6147
6147
  lines: a = 2,
6148
6148
  lineGap: i = 20,
6149
6149
  lineColor: e = ["darkblue", "lightblue"],
6150
- lineThickness: p = 2,
6150
+ lineThickness: h = 2,
6151
6151
  topRoundness: o = 0.4,
6152
- bottomRoundness: h = 0.4
6152
+ bottomRoundness: p = 0.4
6153
6153
  }) => {
6154
6154
  const l = s, u = c, d = t, b = r % (2 * s / t), y = Array.from({ length: a }).map((g, w) => {
6155
6155
  const I = w * i;
@@ -6159,7 +6159,7 @@ const ws = ({
6159
6159
  offsetPixels: I + b,
6160
6160
  amplitude: 0.5 * n
6161
6161
  });
6162
- }), v = l / d, x = o * v, M = h * v, m = (g, w) => {
6162
+ }), v = l / d, x = o * v, M = p * v, m = (g, w) => {
6163
6163
  const I = g.y <= 0, S = I ? x : M, $ = I ? M : x, N = w.x + $, F = w.y, B = g.x - S, X = g.y, P = g.x, R = g.y;
6164
6164
  return `C ${N} ${F}, ${B} ${X}, ${P} ${R}`;
6165
6165
  };
@@ -6173,7 +6173,7 @@ const ws = ({
6173
6173
  return m($, B);
6174
6174
  }).join(",")}, ${m({ x: l, y: 0 }, I)}`,
6175
6175
  stroke: S,
6176
- strokeWidth: p,
6176
+ strokeWidth: h,
6177
6177
  fill: "none"
6178
6178
  },
6179
6179
  `line-${w}`
@@ -6188,16 +6188,16 @@ const ws = ({
6188
6188
  minDb: a,
6189
6189
  ...i
6190
6190
  }) => {
6191
- const e = Nt(), { fps: p } = cn();
6191
+ const e = Nt(), { fps: h } = cn();
6192
6192
  if (!t) return null;
6193
- const o = t.slice(0.25 * t.length).map((u) => zr(u, { maxDb: c, minDb: a })), h = n * ls(o), l = e / p;
6193
+ const o = t.slice(0.25 * t.length).map((u) => zr(u, { maxDb: c, minDb: a })), p = n * ls(o), l = e / h;
6194
6194
  return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f(
6195
6195
  Is,
6196
6196
  {
6197
6197
  width: r,
6198
6198
  height: n,
6199
6199
  offsetPixels: s * l,
6200
- amplitude: h,
6200
+ amplitude: p,
6201
6201
  ...i
6202
6202
  }
6203
6203
  ) });
@@ -6228,7 +6228,7 @@ function On({
6228
6228
  item: t,
6229
6229
  options: r
6230
6230
  }) {
6231
- return mt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ns, { item: t, options: r }) }) });
6231
+ return gt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Ns, { item: t, options: r }) }) });
6232
6232
  }
6233
6233
  const Fs = (t, r) => {
6234
6234
  if (!r || r === t.length) return [...t];
@@ -6240,9 +6240,9 @@ const Fs = (t, r) => {
6240
6240
  maxDb: n = -30,
6241
6241
  minDb: s = -80
6242
6242
  }) => {
6243
- const c = t, a = Math.floor(0.2 * r.length), i = Math.floor(0.6 * r.length), e = r.slice(a, i), p = Math.floor(e.length / c);
6244
- return Array.from({ length: c }).map((h, l) => zr(
6245
- e[l * p % e.length],
6243
+ const c = t, a = Math.floor(0.2 * r.length), i = Math.floor(0.6 * r.length), e = r.slice(a, i), h = Math.floor(e.length / c);
6244
+ return Array.from({ length: c }).map((p, l) => zr(
6245
+ e[l * h % e.length],
6246
6246
  { maxDb: n, minDb: s }
6247
6247
  ));
6248
6248
  }, Rs = ({
@@ -6254,44 +6254,44 @@ const Fs = (t, r) => {
6254
6254
  strokeColor: a = "none",
6255
6255
  placement: i = "middle",
6256
6256
  copies: e = 1,
6257
- blendMode: p = "normal"
6257
+ blendMode: h = "normal"
6258
6258
  }) => {
6259
- const o = r, h = n;
6259
+ const o = r, p = n;
6260
6260
  if (!t || t.length === 0)
6261
6261
  return null;
6262
6262
  const { scaling: l, viewBoxVerticalShift: u } = i === "over" ? {
6263
- viewBoxVerticalShift: -h,
6263
+ viewBoxVerticalShift: -p,
6264
6264
  scaling: 1
6265
6265
  } : i === "under" ? {
6266
6266
  viewBoxVerticalShift: 0,
6267
6267
  scaling: 1
6268
6268
  } : {
6269
- viewBoxVerticalShift: -0.5 * h,
6269
+ viewBoxVerticalShift: -0.5 * p,
6270
6270
  scaling: 0.5
6271
6271
  }, b = 0.15 * o, y = (o - 2 * b) / (t.length - 1), v = Array.from({ length: e }).map((x, M) => {
6272
6272
  const m = 3 * M;
6273
6273
  return Fs(t, m).map((w, I) => ({
6274
6274
  x: b + I * y,
6275
- y: l * h * w * (1.2 - 0.5 * no(M * t.length + I))
6275
+ y: l * p * w * (1.2 - 0.5 * no(M * t.length + I))
6276
6276
  }));
6277
6277
  });
6278
- return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: h, viewBox: `0 ${u} ${o} ${h}`, children: v.map((x, M) => {
6278
+ return /* @__PURE__ */ f("div", { style: { width: r, height: n }, children: /* @__PURE__ */ f("svg", { width: o, height: p, viewBox: `0 ${u} ${o} ${p}`, children: v.map((x, M) => {
6279
6279
  const m = x[x.length - 1], g = Array.isArray(a) ? a[M % a.length] : a, w = Array.isArray(s) ? s[M % s.length] : s, I = {
6280
6280
  stroke: g,
6281
6281
  strokeWidth: c,
6282
6282
  fill: w,
6283
6283
  style: {
6284
- mixBlendMode: p
6284
+ mixBlendMode: h
6285
6285
  }
6286
6286
  };
6287
- return /* @__PURE__ */ bt(Vt.Fragment, { children: [
6287
+ return /* @__PURE__ */ yt(Vt.Fragment, { children: [
6288
6288
  i !== "over" && /* @__PURE__ */ f(
6289
6289
  "path",
6290
6290
  {
6291
6291
  ...I,
6292
6292
  d: `M 0 0, ${x.map((S, $, N) => {
6293
- const F = $ === 0 ? { x: 0, y: 0 } : N[$ - 1], B = F.x + 0.5 * y, X = F.y, P = S.x - 0.5 * y, R = S.y, E = S.x, Y = S.y;
6294
- return `C ${B} ${X}, ${P} ${R}, ${E} ${Y}`;
6293
+ const F = $ === 0 ? { x: 0, y: 0 } : N[$ - 1], B = F.x + 0.5 * y, X = F.y, P = S.x - 0.5 * y, R = S.y, _ = S.x, Y = S.y;
6294
+ return `C ${B} ${X}, ${P} ${R}, ${_} ${Y}`;
6295
6295
  }).join(",")}, C ${m.x + 0.5 * y} ${m.y}, ${o - 0.5 * y} 0, ${o} 0`
6296
6296
  }
6297
6297
  ),
@@ -6300,8 +6300,8 @@ const Fs = (t, r) => {
6300
6300
  {
6301
6301
  ...I,
6302
6302
  d: `M 0 0, ${x.map((S, $, N) => {
6303
- const F = $ === 0 ? { x: 0, y: 0 } : N[$ - 1], B = F.x + 0.5 * y, X = -F.y, P = S.x - 0.5 * y, R = -S.y, E = S.x, Y = -S.y;
6304
- return `C ${B} ${X}, ${P} ${R}, ${E} ${Y}`;
6303
+ const F = $ === 0 ? { x: 0, y: 0 } : N[$ - 1], B = F.x + 0.5 * y, X = -F.y, P = S.x - 0.5 * y, R = -S.y, _ = S.x, Y = -S.y;
6304
+ return `C ${B} ${X}, ${P} ${R}, ${_} ${Y}`;
6305
6305
  }).join(",")}, C ${m.x + 0.5 * y} ${-m.y}, ${o - 0.5 * y} 0, ${o} 0`
6306
6306
  }
6307
6307
  )
@@ -6316,23 +6316,23 @@ const Fs = (t, r) => {
6316
6316
  copies: a,
6317
6317
  blendMode: i,
6318
6318
  strokeWidth: e,
6319
- maxDb: p,
6319
+ maxDb: h,
6320
6320
  minDb: o
6321
6321
  }) => {
6322
- const h = _r(null), l = Nt(), [u, d] = fr({ width: 400, height: 100 });
6322
+ const p = Er(null), l = Nt(), [u, d] = fr({ width: 400, height: 100 });
6323
6323
  er(() => {
6324
6324
  d((x) => {
6325
6325
  var M, m;
6326
6326
  return {
6327
- width: ((M = h.current) == null ? void 0 : M.offsetWidth) ?? x.width,
6328
- height: ((m = h.current) == null ? void 0 : m.offsetHeight) ?? x.height
6327
+ width: ((M = p.current) == null ? void 0 : M.offsetWidth) ?? x.width,
6328
+ height: ((m = p.current) == null ? void 0 : m.offsetHeight) ?? x.height
6329
6329
  };
6330
6330
  });
6331
6331
  }, [l, d]);
6332
6332
  const { width: b, height: y } = u;
6333
6333
  if (!n) return null;
6334
- const v = Ys({ frequencyData: n, minDb: o, maxDb: p });
6335
- return /* @__PURE__ */ f("div", { ref: h, style: { width: t, height: r }, children: /* @__PURE__ */ f(
6334
+ const v = Ys({ frequencyData: n, minDb: o, maxDb: h });
6335
+ return /* @__PURE__ */ f("div", { ref: p, style: { width: t, height: r }, children: /* @__PURE__ */ f(
6336
6336
  Rs,
6337
6337
  {
6338
6338
  values: v,
@@ -6351,7 +6351,7 @@ const Fs = (t, r) => {
6351
6351
  }) => {
6352
6352
  const { frame: n, fps: s } = r, { details: c } = t;
6353
6353
  Gt.setAudioDataManager(s);
6354
- const e = Gt.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512), p = (o) => [
6354
+ const e = Gt.getAudioDataForFrame(n || 0).slice(0, 0.7 * 512), h = (o) => [
6355
6355
  "normal",
6356
6356
  "multiply",
6357
6357
  "screen",
@@ -6379,7 +6379,7 @@ const Fs = (t, r) => {
6379
6379
  ...c.fillColor != null ? { fillColor: c.fillColor } : {},
6380
6380
  ...c.copies != null ? { copies: c.copies } : {},
6381
6381
  ...c.strokeWidth != null ? { strokeWidth: c.strokeWidth } : {},
6382
- ...p(c.blendMode) ? { blendMode: c.blendMode } : { blendMode: "normal" }
6382
+ ...h(c.blendMode) ? { blendMode: c.blendMode } : { blendMode: "normal" }
6383
6383
  }
6384
6384
  ) });
6385
6385
  };
@@ -6387,33 +6387,33 @@ function zn({
6387
6387
  item: t,
6388
6388
  options: r
6389
6389
  }) {
6390
- return mt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Bs, { item: t, options: r }) }) });
6390
+ return gt({ item: t, options: r, children: /* @__PURE__ */ f(kt, { children: /* @__PURE__ */ f(Bs, { item: t, options: r }) }) });
6391
6391
  }
6392
6392
  const Gn = ({
6393
6393
  item: t,
6394
6394
  options: r
6395
6395
  }) => {
6396
6396
  var u, d, b, y;
6397
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: p } = Ft(
6397
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { animationIn: i, animationOut: e, animationTimed: h } = Ft(
6398
6398
  a,
6399
6399
  t,
6400
6400
  s,
6401
6401
  n,
6402
6402
  r
6403
- ), { durationInFrames: o } = wt(t.display, n), h = (s || 0) - t.display.from * n / 1e3, l = /* @__PURE__ */ f(
6403
+ ), { durationInFrames: o } = wt(t.display, n), p = (s || 0) - t.display.from * n / 1e3, l = /* @__PURE__ */ f(
6404
6404
  jt,
6405
6405
  {
6406
6406
  style: Pt(c),
6407
6407
  animationIn: i,
6408
6408
  animationOut: e,
6409
- frame: h,
6409
+ frame: p,
6410
6410
  durationInFrames: o,
6411
6411
  children: /* @__PURE__ */ f(
6412
6412
  At,
6413
6413
  {
6414
- animationTimed: p,
6414
+ animationTimed: h,
6415
6415
  durationInFrames: o,
6416
- frame: h,
6416
+ frame: p,
6417
6417
  style: Pt(c),
6418
6418
  children: /* @__PURE__ */ f(
6419
6419
  Tt,
@@ -6426,9 +6426,9 @@ const Gn = ({
6426
6426
  ...((y = a == null ? void 0 : a.loop) == null ? void 0 : y.composition) || [],
6427
6427
  ...i || [],
6428
6428
  ...e || [],
6429
- ...p || []
6429
+ ...h || []
6430
6430
  ],
6431
- frame: h,
6431
+ frame: p,
6432
6432
  durationInFrames: o,
6433
6433
  children: /* @__PURE__ */ f("div", { style: mo(c) })
6434
6434
  }
@@ -6437,7 +6437,7 @@ const Gn = ({
6437
6437
  )
6438
6438
  }
6439
6439
  );
6440
- return mt({ item: t, options: r, children: l });
6440
+ return gt({ item: t, options: r, children: l });
6441
6441
  }, Ps = () => ({
6442
6442
  scale: (t) => ({ transform: `scale(${t})` }),
6443
6443
  opacity: (t) => ({ opacity: t }),
@@ -6469,23 +6469,23 @@ const Gn = ({
6469
6469
  for (let c = 0; c < 6; c += 1)
6470
6470
  n.push(c * s + r);
6471
6471
  return n;
6472
- }, _s = (t, r, n, s = !1) => {
6473
- const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, p = Number(c), o = Number(a), h = Math.max(1, Number(e));
6474
- if (isNaN(p) || isNaN(o))
6475
- return p;
6472
+ }, Es = (t, r, n, s = !1) => {
6473
+ const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, h = Number(c), o = Number(a), p = Math.max(1, Number(e));
6474
+ if (isNaN(h) || isNaN(o))
6475
+ return h;
6476
6476
  const l = r.delay || 0;
6477
6477
  if (r.property === "hide-show" || r.property === "hide" || r.property === "show")
6478
- return t < l ? p : o;
6479
- const u = s ? [n - h - l, n - l] : [l, l + h];
6478
+ return t < l ? h : o;
6479
+ const u = s ? [n - p - l, n - l] : [l, l + p];
6480
6480
  if (r.property.includes("shake")) {
6481
6481
  const d = s ? Dr(
6482
- h,
6483
- n - h - l
6484
- ) : Dr(h, l);
6482
+ p,
6483
+ n - p - l
6484
+ ) : Dr(p, l);
6485
6485
  return W(
6486
6486
  t,
6487
6487
  d,
6488
- [0, p, o, p, o, 0],
6488
+ [0, h, o, h, o, 0],
6489
6489
  {
6490
6490
  extrapolateLeft: "clamp",
6491
6491
  extrapolateRight: "clamp",
@@ -6493,7 +6493,7 @@ const Gn = ({
6493
6493
  }
6494
6494
  );
6495
6495
  }
6496
- return W(t, u, [p, o], {
6496
+ return W(t, u, [h, o], {
6497
6497
  extrapolateLeft: "clamp",
6498
6498
  extrapolateRight: "clamp",
6499
6499
  easing: i
@@ -6526,16 +6526,16 @@ const Gn = ({
6526
6526
  }
6527
6527
  return 0;
6528
6528
  }, tn = (t, r, n, s, c) => {
6529
- var p, o, h, l, u;
6529
+ var h, o, p, l, u;
6530
6530
  const { property: a } = t;
6531
6531
  if (a === "move") {
6532
6532
  const d = Number(
6533
- ((p = t.details) == null ? void 0 : p.fromX) ?? t.from ?? 0
6534
- ), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((h = t.details) == null ? void 0 : h.fromY) ?? 0), v = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), x = Number(((u = t.details) == null ? void 0 : u.scale) || 1) || 1;
6533
+ ((h = t.details) == null ? void 0 : h.fromX) ?? t.from ?? 0
6534
+ ), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((p = t.details) == null ? void 0 : p.fromY) ?? 0), v = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), x = Number(((u = t.details) == null ? void 0 : u.scale) || 1) || 1;
6535
6535
  let M = c;
6536
6536
  if (M == null || Number.isNaN(M)) {
6537
- const E = t.details;
6538
- M = jn((E == null ? void 0 : E.rotate) ?? (E == null ? void 0 : E.rotation) ?? (E == null ? void 0 : E.transform));
6537
+ const _ = t.details;
6538
+ M = jn((_ == null ? void 0 : _.rotate) ?? (_ == null ? void 0 : _.rotation) ?? (_ == null ? void 0 : _.transform));
6539
6539
  }
6540
6540
  const m = t.delay || 0, g = t.durationInFrames || 30, w = s ? [n - g - m, n - m] : [m, m + g], I = W(r, w, [d, b], {
6541
6541
  extrapolateLeft: "clamp",
@@ -6550,7 +6550,7 @@ const Gn = ({
6550
6550
  transform: `translateX(${P}px) translateY(${R}px)`
6551
6551
  };
6552
6552
  }
6553
- const i = _s(r, t, n, s), e = Ps();
6553
+ const i = Es(r, t, n, s), e = Ps();
6554
6554
  return (e[a] || e.default)(i);
6555
6555
  }, rn = (t, r, n, s = !1, c = !1, a) => Vt.useMemo(() => {
6556
6556
  if (t.length === 0) return {};
@@ -6560,25 +6560,25 @@ const Gn = ({
6560
6560
  if (i.length !== t.length && console.error("Some animations are invalid and will be ignored"), c) {
6561
6561
  const e = [];
6562
6562
  return i.reverse().forEach((o) => {
6563
- const h = tn(
6563
+ const p = tn(
6564
6564
  o,
6565
6565
  n,
6566
6566
  r,
6567
6567
  !1,
6568
6568
  a
6569
6569
  );
6570
- e.push(h);
6570
+ e.push(p);
6571
6571
  }), e.reduce(
6572
- (o, h) => (Object.keys(h).forEach((l) => {
6573
- l === "transform" || l === "filter" ? o[l] = o[l] ? `${o[l]} ${h[l]}` : h[l] : o[l] = h[l];
6572
+ (o, p) => (Object.keys(p).forEach((l) => {
6573
+ l === "transform" || l === "filter" ? o[l] = o[l] ? `${o[l]} ${p[l]}` : p[l] : o[l] = p[l];
6574
6574
  }), o),
6575
6575
  {}
6576
6576
  );
6577
6577
  } else
6578
- return i.map((p) => tn(p, n, r, s, a)).reduce(
6579
- (p, o) => (Object.keys(o).forEach((h) => {
6580
- h === "transform" ? p[h] = p[h] ? `${p[h]} ${o[h]}` : o[h] : p[h] = o[h];
6581
- }), p),
6578
+ return i.map((h) => tn(h, n, r, s, a)).reduce(
6579
+ (h, o) => (Object.keys(o).forEach((p) => {
6580
+ p === "transform" ? h[p] = h[p] ? `${h[p]} ${o[p]}` : o[p] : h[p] = o[p];
6581
+ }), h),
6582
6582
  {}
6583
6583
  );
6584
6584
  }, [t, n, r, s, a]), Ir = (t) => t ? Array.isArray(t) ? t : [t] : [], cr = ({
@@ -6598,7 +6598,7 @@ const Gn = ({
6598
6598
  n,
6599
6599
  a,
6600
6600
  !0
6601
- ), p = Vt.useMemo(() => {
6601
+ ), h = Vt.useMemo(() => {
6602
6602
  const v = Object.keys(i).length > 0, x = t == null ? void 0 : t.reduce(
6603
6603
  (m, g) => Math.min(m, g.delay || 0),
6604
6604
  1 / 0
@@ -6618,14 +6618,14 @@ const Gn = ({
6618
6618
  return a < M ? {} : e;
6619
6619
  }, [e, a, r, n]), l = ((c == null ? void 0 : c.transform) || "").match(/rotate\((-?[\d.]+)deg\)/), u = l ? parseFloat(l[1]) : 0, d = Vt.useMemo(() => {
6620
6620
  const v = {
6621
- ...p
6621
+ ...h
6622
6622
  // , ...timedStyle
6623
6623
  };
6624
6624
  return Object.entries(o).forEach(([x, M]) => {
6625
6625
  x === "transform" ? v[x] = `${v[x] || ""} ${M || ""}`.trim() : x in v && typeof v[x] == "number" && typeof M == "number" ? v[x] = v[x] * M : v[x] = M;
6626
6626
  }), v;
6627
- }, [p, o]), b = yr(() => {
6628
- const v = d.transform || "", { translateX: x, translateY: M, scale: m, rotation: g, rotateY: w } = Es(v);
6627
+ }, [h, o]), b = yr(() => {
6628
+ const v = d.transform || "", { translateX: x, translateY: M, scale: m, rotation: g, rotateY: w } = _s(v);
6629
6629
  return `${g} ${x} ${M} ${m} ${w}`.trim();
6630
6630
  }, [d]);
6631
6631
  let y = i;
@@ -6661,18 +6661,18 @@ const Gn = ({
6661
6661
  )
6662
6662
  }
6663
6663
  );
6664
- }, Es = (t) => {
6664
+ }, _s = (t) => {
6665
6665
  let r = "", n = "", s = "scale(1)", c = "", a = "";
6666
6666
  const i = t.match(/translateX\([^)]+\)/g);
6667
6667
  i && (r = i[i.length - 1]);
6668
6668
  const e = t.match(/translateY\([^)]+\)/g);
6669
6669
  e && (n = e[e.length - 1]);
6670
- const p = t.match(/scale\([^)]+\)/g);
6671
- p && (s = p[p.length - 1]);
6670
+ const h = t.match(/scale\([^)]+\)/g);
6671
+ h && (s = h[h.length - 1]);
6672
6672
  const o = t.match(/rotate\([^)]+\)/g);
6673
6673
  o && (c = o[o.length - 1]);
6674
- const h = t.match(/rotateY\([^)]+\)/g);
6675
- return h && (a = h[h.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
6674
+ const p = t.match(/rotateY\([^)]+\)/g);
6675
+ return p && (a = p[p.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
6676
6676
  };
6677
6677
  k.linear;
6678
6678
  k.linear;
@@ -6687,20 +6687,20 @@ const An = ({
6687
6687
  item: t,
6688
6688
  options: r
6689
6689
  }) => {
6690
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6690
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: h, animationOut: o } = Ft(
6691
6691
  i,
6692
6692
  t,
6693
6693
  c,
6694
6694
  n
6695
- ), h = s == null ? void 0 : s[t.id], l = (h == null ? void 0 : h.width) ?? a.radius, u = /* @__PURE__ */ f(
6695
+ ), p = s == null ? void 0 : s[t.id], l = (p == null ? void 0 : p.width) ?? a.radius, u = /* @__PURE__ */ f(
6696
6696
  cr,
6697
6697
  {
6698
6698
  durationInFrames: e,
6699
- animationIn: p,
6699
+ animationIn: h,
6700
6700
  animationOut: o,
6701
6701
  style: a,
6702
6702
  children: /* @__PURE__ */ f(
6703
- po,
6703
+ ho,
6704
6704
  {
6705
6705
  radius: l,
6706
6706
  fill: a.backgroundColor
@@ -6708,24 +6708,24 @@ const An = ({
6708
6708
  )
6709
6709
  }
6710
6710
  );
6711
- return mt({ item: t, options: r, children: u });
6711
+ return gt({ item: t, options: r, children: u });
6712
6712
  }, Ln = ({
6713
6713
  item: t,
6714
6714
  options: r
6715
6715
  }) => {
6716
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6716
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: h, animationOut: o } = Ft(
6717
6717
  i,
6718
6718
  t,
6719
6719
  c,
6720
6720
  n
6721
- ), h = s == null ? void 0 : s[t.id];
6721
+ ), p = s == null ? void 0 : s[t.id];
6722
6722
  let l = a.length;
6723
- h != null && h.width ? l = h.width : h != null && h.height && (l = h.height * 2 / Math.sqrt(3));
6723
+ p != null && p.width ? l = p.width : p != null && p.height && (l = p.height * 2 / Math.sqrt(3));
6724
6724
  const u = /* @__PURE__ */ f(
6725
6725
  cr,
6726
6726
  {
6727
6727
  durationInFrames: e,
6728
- animationIn: p,
6728
+ animationIn: h,
6729
6729
  animationOut: o,
6730
6730
  style: {},
6731
6731
  children: /* @__PURE__ */ f(
@@ -6738,17 +6738,17 @@ const An = ({
6738
6738
  )
6739
6739
  }
6740
6740
  );
6741
- return mt({ item: t, options: r, children: u });
6741
+ return gt({ item: t, options: r, children: u });
6742
6742
  }, Hn = ({
6743
6743
  item: t,
6744
6744
  options: r
6745
6745
  }) => {
6746
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6746
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: h, animationOut: o } = Ft(
6747
6747
  i,
6748
6748
  t,
6749
6749
  c,
6750
6750
  n
6751
- ), h = s == null ? void 0 : s[t.id], l = (y, v, x) => {
6751
+ ), p = s == null ? void 0 : s[t.id], l = (y, v, x) => {
6752
6752
  const M = x, m = x, g = Math.PI * 2 / (y * 2);
6753
6753
  let w = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY, S = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY;
6754
6754
  for (let N = 0; N < y * 2; N++) {
@@ -6761,19 +6761,19 @@ const An = ({
6761
6761
  };
6762
6762
  };
6763
6763
  let u = a.outerRadius, d = a.innerRadius;
6764
- if (h != null && h.width || h != null && h.height) {
6764
+ if (p != null && p.width || p != null && p.height) {
6765
6765
  const y = l(
6766
6766
  a.points || 5,
6767
6767
  a.innerRadius || 0,
6768
6768
  a.outerRadius || 0
6769
- ), v = h != null && h.width ? h.width / y.width : 1, x = h != null && h.height ? h.height / y.height : 1, M = Math.max(v, x);
6769
+ ), v = p != null && p.width ? p.width / y.width : 1, x = p != null && p.height ? p.height / y.height : 1, M = Math.max(v, x);
6770
6770
  u = (a.outerRadius || 0) * M, d = (a.innerRadius || 0) * M;
6771
6771
  }
6772
6772
  const b = /* @__PURE__ */ f(
6773
6773
  cr,
6774
6774
  {
6775
6775
  durationInFrames: e,
6776
- animationIn: p,
6776
+ animationIn: h,
6777
6777
  animationOut: o,
6778
6778
  style: a,
6779
6779
  children: /* @__PURE__ */ f(
@@ -6787,17 +6787,17 @@ const An = ({
6787
6787
  )
6788
6788
  }
6789
6789
  );
6790
- return mt({ item: t, options: r, children: b });
6790
+ return gt({ item: t, options: r, children: b });
6791
6791
  }, Un = ({
6792
6792
  item: t,
6793
6793
  options: r
6794
6794
  }) => {
6795
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: e, animationOut: p } = Ft(
6795
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { animationIn: e, animationOut: h } = Ft(
6796
6796
  i,
6797
6797
  t,
6798
6798
  c,
6799
6799
  n
6800
- ), { durationInFrames: o } = wt(t.display, n), h = s == null ? void 0 : s[t.id], l = (b, y) => {
6800
+ ), { durationInFrames: o } = wt(t.display, n), p = s == null ? void 0 : s[t.id], l = (b, y) => {
6801
6801
  const v = y, x = y, M = Math.PI * 2 / b;
6802
6802
  let m = Number.POSITIVE_INFINITY, g = Number.NEGATIVE_INFINITY, w = Number.POSITIVE_INFINITY, I = Number.NEGATIVE_INFINITY;
6803
6803
  for (let S = 0; S < b; S++) {
@@ -6810,11 +6810,11 @@ const An = ({
6810
6810
  };
6811
6811
  };
6812
6812
  let u = a.radius;
6813
- if (h != null && h.width || h != null && h.height) {
6813
+ if (p != null && p.width || p != null && p.height) {
6814
6814
  const b = l(
6815
6815
  a.points || 3,
6816
6816
  a.radius || 0
6817
- ), y = h != null && h.width ? h.width / b.width : 1, v = h != null && h.height ? h.height / b.height : 1, x = Math.max(y, v);
6817
+ ), y = p != null && p.width ? p.width / b.width : 1, v = p != null && p.height ? p.height / b.height : 1, x = Math.max(y, v);
6818
6818
  u = (a.radius || 0) * x;
6819
6819
  }
6820
6820
  const d = /* @__PURE__ */ f(
@@ -6822,7 +6822,7 @@ const An = ({
6822
6822
  {
6823
6823
  durationInFrames: o,
6824
6824
  animationIn: e,
6825
- animationOut: p,
6825
+ animationOut: h,
6826
6826
  style: a,
6827
6827
  children: /* @__PURE__ */ f(
6828
6828
  bo,
@@ -6834,21 +6834,21 @@ const An = ({
6834
6834
  )
6835
6835
  }
6836
6836
  );
6837
- return mt({ item: t, options: r, children: d });
6837
+ return gt({ item: t, options: r, children: d });
6838
6838
  }, Zn = ({
6839
6839
  item: t,
6840
6840
  options: r
6841
6841
  }) => {
6842
- const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: p, animationOut: o } = Ft(
6842
+ const { fps: n, resizeState: s, frame: c } = r, { details: a, animations: i } = t, { durationInFrames: e } = wt(t.display, n), { animationIn: h, animationOut: o } = Ft(
6843
6843
  i,
6844
6844
  t,
6845
6845
  c,
6846
6846
  n
6847
- ), h = s == null ? void 0 : s[t.id], l = h != null && h.width ? h.width / 2 : a.rx, u = h != null && h.height ? h.height / 2 : a.ry, d = /* @__PURE__ */ f(
6847
+ ), p = s == null ? void 0 : s[t.id], l = p != null && p.width ? p.width / 2 : a.rx, u = p != null && p.height ? p.height / 2 : a.ry, d = /* @__PURE__ */ f(
6848
6848
  cr,
6849
6849
  {
6850
6850
  durationInFrames: e,
6851
- animationIn: p,
6851
+ animationIn: h,
6852
6852
  animationOut: o,
6853
6853
  style: a,
6854
6854
  children: /* @__PURE__ */ f(
@@ -6863,7 +6863,7 @@ const An = ({
6863
6863
  )
6864
6864
  }
6865
6865
  );
6866
- return mt({ item: t, options: r, children: d });
6866
+ return gt({ item: t, options: r, children: d });
6867
6867
  }, Ws = () => ({
6868
6868
  scale: (t) => ({ transform: `scale(${t})` }),
6869
6869
  opacity: (t) => ({ opacity: t }),
@@ -6948,22 +6948,22 @@ const An = ({
6948
6948
  n.push(c * s + r);
6949
6949
  return n;
6950
6950
  }, Vs = (t, r, n, s = !1) => {
6951
- const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, p = Number(c), o = Number(a), h = Math.max(1, Number(e));
6952
- if (isNaN(p) || isNaN(o))
6953
- return p;
6951
+ const { from: c, to: a, ease: i } = r, e = r.durationInFrames || 30, h = Number(c), o = Number(a), p = Math.max(1, Number(e));
6952
+ if (isNaN(h) || isNaN(o))
6953
+ return h;
6954
6954
  const l = r.delay || 0;
6955
6955
  if (r.property === "hide-show" || r.property === "hide" || r.property === "show")
6956
- return t < l ? p : o;
6957
- const u = s ? [n - h - l, n - l] : [l, l + h];
6956
+ return t < l ? h : o;
6957
+ const u = s ? [n - p - l, n - l] : [l, l + p];
6958
6958
  if (r.property.includes("shake")) {
6959
6959
  const d = s ? nn(
6960
- h,
6961
- n - h - l
6962
- ) : nn(h, l);
6960
+ p,
6961
+ n - p - l
6962
+ ) : nn(p, l);
6963
6963
  return W(
6964
6964
  t,
6965
6965
  d,
6966
- [0, p, o, p, o, 0],
6966
+ [0, h, o, h, o, 0],
6967
6967
  {
6968
6968
  extrapolateLeft: "clamp",
6969
6969
  extrapolateRight: "clamp",
@@ -6971,7 +6971,7 @@ const An = ({
6971
6971
  }
6972
6972
  );
6973
6973
  }
6974
- return W(t, u, [p, o], {
6974
+ return W(t, u, [h, o], {
6975
6975
  extrapolateLeft: "clamp",
6976
6976
  extrapolateRight: "clamp",
6977
6977
  easing: i
@@ -7004,16 +7004,16 @@ const An = ({
7004
7004
  }
7005
7005
  return 0;
7006
7006
  }, on = (t, r, n, s, c) => {
7007
- var p, o, h, l, u;
7007
+ var h, o, p, l, u;
7008
7008
  const { property: a } = t;
7009
7009
  if (a === "move") {
7010
7010
  const d = Number(
7011
- ((p = t.details) == null ? void 0 : p.fromX) ?? t.from ?? 0
7012
- ), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((h = t.details) == null ? void 0 : h.fromY) ?? 0), v = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), x = Number(((u = t.details) == null ? void 0 : u.scale) || 1) || 1;
7011
+ ((h = t.details) == null ? void 0 : h.fromX) ?? t.from ?? 0
7012
+ ), b = Number(((o = t.details) == null ? void 0 : o.toX) ?? t.to ?? 0), y = Number(((p = t.details) == null ? void 0 : p.fromY) ?? 0), v = Number(((l = t.details) == null ? void 0 : l.toY) ?? 0), x = Number(((u = t.details) == null ? void 0 : u.scale) || 1) || 1;
7013
7013
  let M = c;
7014
7014
  if (M == null || Number.isNaN(M)) {
7015
- const E = t.details;
7016
- M = Qn((E == null ? void 0 : E.rotate) ?? (E == null ? void 0 : E.rotation) ?? (E == null ? void 0 : E.transform));
7015
+ const _ = t.details;
7016
+ M = Qn((_ == null ? void 0 : _.rotate) ?? (_ == null ? void 0 : _.rotation) ?? (_ == null ? void 0 : _.transform));
7017
7017
  }
7018
7018
  const m = t.delay || 0, g = t.durationInFrames || 30, w = s ? [n - g - m, n - m] : [m, m + g], I = W(r, w, [d, b], {
7019
7019
  extrapolateLeft: "clamp",
@@ -7038,27 +7038,27 @@ const An = ({
7038
7038
  if (i.length !== t.length && console.error("Some animations are invalid and will be ignored"), c) {
7039
7039
  const e = [];
7040
7040
  return i.reverse().forEach((o) => {
7041
- const h = on(
7041
+ const p = on(
7042
7042
  o,
7043
7043
  n,
7044
7044
  r,
7045
7045
  !1,
7046
7046
  a
7047
7047
  );
7048
- e.push(h);
7048
+ e.push(p);
7049
7049
  }), e.reduce(
7050
- (o, h) => (Object.keys(h).forEach((l) => {
7051
- l === "transform" || l === "filter" ? o[l] = o[l] ? `${o[l]} ${h[l]}` : h[l] : o[l] = h[l];
7050
+ (o, p) => (Object.keys(p).forEach((l) => {
7051
+ l === "transform" || l === "filter" ? o[l] = o[l] ? `${o[l]} ${p[l]}` : p[l] : o[l] = p[l];
7052
7052
  }), o),
7053
7053
  {}
7054
7054
  );
7055
7055
  } else
7056
7056
  return i.map(
7057
- (p) => on(p, n, r, s, a)
7057
+ (h) => on(h, n, r, s, a)
7058
7058
  ).reduce(
7059
- (p, o) => (Object.keys(o).forEach((h) => {
7060
- h === "transform" || h === "filter" ? p[h] = p[h] ? `${p[h]} ${o[h]}` : o[h] : p[h] = o[h];
7061
- }), p),
7059
+ (h, o) => (Object.keys(o).forEach((p) => {
7060
+ p === "transform" || p === "filter" ? h[p] = h[p] ? `${h[p]} ${o[p]}` : o[p] : h[p] = o[p];
7061
+ }), h),
7062
7062
  {}
7063
7063
  );
7064
7064
  }, [t, n, r, s, a]), nr = (t) => t ? Array.isArray(t) ? t : [t] : [], Cs = ({
@@ -7071,7 +7071,7 @@ const An = ({
7071
7071
  children: i,
7072
7072
  style: e = {}
7073
7073
  }) => {
7074
- const p = kr(
7074
+ const h = kr(
7075
7075
  nr(t),
7076
7076
  s,
7077
7077
  c,
@@ -7081,7 +7081,7 @@ const An = ({
7081
7081
  s,
7082
7082
  c,
7083
7083
  !0
7084
- ), h = kr(
7084
+ ), p = kr(
7085
7085
  nr(n),
7086
7086
  s,
7087
7087
  c,
@@ -7089,12 +7089,12 @@ const An = ({
7089
7089
  !0
7090
7090
  ), l = Vt.useMemo(() => {
7091
7091
  var S;
7092
- const g = Object.keys(p).length > 0, w = (S = nr(t)) == null ? void 0 : S.reduce(
7092
+ const g = Object.keys(h).length > 0, w = (S = nr(t)) == null ? void 0 : S.reduce(
7093
7093
  ($, N) => Math.min($, N.delay || 0),
7094
7094
  1 / 0
7095
7095
  ), I = c - (w || 0);
7096
- return g && I < 0 ? { visibility: a ? "visible" : "hidden" } : p;
7097
- }, [p, c, t, a]), u = Vt.useMemo(() => {
7096
+ return g && I < 0 ? { visibility: a ? "visible" : "hidden" } : h;
7097
+ }, [h, c, t, a]), u = Vt.useMemo(() => {
7098
7098
  const g = nr(r);
7099
7099
  if (!g || g.length === 0) return {};
7100
7100
  let w = 0;
@@ -7107,12 +7107,12 @@ const An = ({
7107
7107
  }, [o, c, r, s, a]), d = Vt.useMemo(() => {
7108
7108
  const g = {
7109
7109
  ...l,
7110
- ...h
7110
+ ...p
7111
7111
  };
7112
7112
  return Object.entries(u).forEach(([w, I]) => {
7113
7113
  w === "transform" ? g[w] = `${g[w] || ""} ${I || ""}`.trim() : w in g && typeof g[w] == "number" && typeof I == "number" ? g[w] = g[w] * I : g[w] = I;
7114
7114
  }), g;
7115
- }, [l, h, u]), b = yr(() => {
7115
+ }, [l, p, u]), b = yr(() => {
7116
7116
  const g = d.transform || "", { translateX: w, translateY: I, scale: S, rotation: $, rotateY: N } = Os(g);
7117
7117
  return `${$} ${w} ${I} ${S} ${N}`.trim();
7118
7118
  }, [d]), {
@@ -7154,12 +7154,12 @@ const An = ({
7154
7154
  i && (r = i[i.length - 1]);
7155
7155
  const e = t.match(/translateY\([^)]+\)/g);
7156
7156
  e && (n = e[e.length - 1]);
7157
- const p = t.match(/scale\([^)]+\)/g);
7158
- p && (s = p[p.length - 1]);
7157
+ const h = t.match(/scale\([^)]+\)/g);
7158
+ h && (s = h[h.length - 1]);
7159
7159
  const o = t.match(/rotate\([^)]+\)/g);
7160
7160
  o && (c = o[o.length - 1]);
7161
- const h = t.match(/rotateY\([^)]+\)/g);
7162
- return h && (a = h[h.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
7161
+ const p = t.match(/rotateY\([^)]+\)/g);
7162
+ return p && (a = p[p.length - 1]), { translateX: r, translateY: n, scale: s, rotation: c, rotateY: a };
7163
7163
  };
7164
7164
  k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.linear, k.elastic(1), k.elastic(1), k.elastic(1), k.elastic(1), k.linear, k.linear, k.linear, k.linear, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease, k.ease;
7165
7165
  function Kn({
@@ -7167,26 +7167,26 @@ function Kn({
7167
7167
  options: r
7168
7168
  }) {
7169
7169
  var F, B, X, P, R;
7170
- const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: e, strokeWidth: p, strokeBackground: o, strokeColors: h } = c, { animationIn: l, animationOut: u } = Ft(a, t), { durationInFrames: d } = wt(t.display, n), b = i, y = e, v = p, x = b, M = y, m = b, g = y, w = x + M + m + g;
7170
+ const { fps: n, frame: s } = r, { details: c, animations: a } = t, { width: i, height: e, strokeWidth: h, strokeBackground: o, strokeColors: p } = c, { animationIn: l, animationOut: u } = Ft(a, t), { durationInFrames: d } = wt(t.display, n), b = i, y = e, v = h, x = b, M = y, m = b, g = y, w = x + M + m + g;
7171
7171
  let I = 0;
7172
7172
  if (((F = a == null ? void 0 : a.out) == null ? void 0 : F.name) === "progressSquareAnimationOut") {
7173
- const E = (B = a == null ? void 0 : a.out) == null ? void 0 : B.composition[0].durationInFrames, Y = Math.max(
7173
+ const _ = (B = a == null ? void 0 : a.out) == null ? void 0 : B.composition[0].durationInFrames, Y = Math.max(
7174
7174
  t.display.to * n / 1e3 - (s || 0) - 1,
7175
7175
  0
7176
7176
  );
7177
- I = Math.min(Y / E * 100, 100) / 100, Y > E && (I = 1);
7177
+ I = Math.min(Y / _ * 100, 100) / 100, Y > _ && (I = 1);
7178
7178
  }
7179
7179
  if (((X = a == null ? void 0 : a.in) == null ? void 0 : X.name) === "progressSquareAnimationIn") {
7180
- const { from: E } = wt(
7180
+ const { from: _ } = wt(
7181
7181
  {
7182
7182
  from: t.display.from,
7183
7183
  to: t.display.to
7184
7184
  },
7185
7185
  n
7186
- ), Y = (P = a == null ? void 0 : a.in) == null ? void 0 : P.composition[0].durationInFrames, C = Math.max((s || 0) - E, 0);
7186
+ ), Y = (P = a == null ? void 0 : a.in) == null ? void 0 : P.composition[0].durationInFrames, C = Math.max((s || 0) - _, 0);
7187
7187
  C < Y ? I = Math.min(C / Y * 100, 100) / 100 : ((R = a == null ? void 0 : a.out) == null ? void 0 : R.name) !== "progressSquareAnimationOut" && (I = 1);
7188
7188
  }
7189
- const S = I * 100 / 100 * w, $ = h[0] || "#4A90E2", N = /* @__PURE__ */ f(
7189
+ const S = I * 100 / 100 * w, $ = p[0] || "#4A90E2", N = /* @__PURE__ */ f(
7190
7190
  Cs,
7191
7191
  {
7192
7192
  style: Pt(
@@ -7199,7 +7199,7 @@ function Kn({
7199
7199
  animationIn: l,
7200
7200
  animationOut: u,
7201
7201
  durationInFrames: d,
7202
- children: /* @__PURE__ */ bt(
7202
+ children: /* @__PURE__ */ yt(
7203
7203
  "div",
7204
7204
  {
7205
7205
  style: {
@@ -7226,7 +7226,7 @@ function Kn({
7226
7226
  }
7227
7227
  }
7228
7228
  ),
7229
- /* @__PURE__ */ bt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
7229
+ /* @__PURE__ */ yt("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" }, children: [
7230
7230
  /* @__PURE__ */ f(
7231
7231
  "div",
7232
7232
  {
@@ -7291,39 +7291,39 @@ function Kn({
7291
7291
  )
7292
7292
  }
7293
7293
  );
7294
- return mt({ item: t, options: r, children: N });
7294
+ return gt({ item: t, options: r, children: N });
7295
7295
  }
7296
7296
  const Jn = (t) => {
7297
7297
  const { trackItemIds: r, transitionsMap: n, trackItemsMap: s } = t, c = /* @__PURE__ */ new Map();
7298
7298
  Object.values(n).forEach((o) => {
7299
7299
  var d, b;
7300
- const { fromId: h, toId: l, kind: u } = o;
7301
- u !== "none" && (c.has(h) || c.set(h, []), c.has(l) || c.set(l, []), (d = c.get(h)) == null || d.push(o), (b = c.get(l)) == null || b.push(o));
7300
+ const { fromId: p, toId: l, kind: u } = o;
7301
+ u !== "none" && (c.has(p) || c.set(p, []), c.has(l) || c.set(l, []), (d = c.get(p)) == null || d.push(o), (b = c.get(l)) == null || b.push(o));
7302
7302
  });
7303
7303
  const a = [], i = /* @__PURE__ */ new Set(), e = (o) => {
7304
- const h = [];
7304
+ const p = [];
7305
7305
  let l = o;
7306
7306
  for (; l && !i.has(l); ) {
7307
7307
  i.add(l);
7308
7308
  const u = s[l];
7309
- h.push(u);
7309
+ p.push(u);
7310
7310
  const d = Object.values(n).find(
7311
7311
  (b) => b.fromId === l && b.kind !== "none"
7312
7312
  );
7313
7313
  if (!d) break;
7314
- h.push(d), l = d.toId;
7314
+ p.push(d), l = d.toId;
7315
7315
  }
7316
- return h;
7317
- }, p = Object.values(n).filter(
7316
+ return p;
7317
+ }, h = Object.values(n).filter(
7318
7318
  (o) => o.kind !== "none"
7319
7319
  );
7320
7320
  for (const o of r)
7321
- if (!i.has(o) && (!c.has(o) || !p.some((h) => h.toId === o))) {
7322
- const h = e(o);
7323
- h.length > 0 && a.push(h);
7321
+ if (!i.has(o) && (!c.has(o) || !h.some((p) => p.toId === o))) {
7322
+ const p = e(o);
7323
+ p.length > 0 && a.push(p);
7324
7324
  }
7325
7325
  return a.forEach((o) => {
7326
- o.sort((h, l) => "display" in h && "display" in l ? h.display.from - l.display.from : 0);
7326
+ o.sort((p, l) => "display" in p && "display" in l ? p.display.from - l.display.from : 0);
7327
7327
  }), a;
7328
7328
  }, zs = (t, r) => {
7329
7329
  switch (t.type) {
@@ -7348,13 +7348,13 @@ const Jn = (t) => {
7348
7348
  case "video":
7349
7349
  return Pn({ item: t, options: r });
7350
7350
  case "audio":
7351
- return pn({ item: t, options: r });
7351
+ return hn({ item: t, options: r });
7352
7352
  case "image":
7353
7353
  return kn({ item: t, options: r });
7354
7354
  case "illustration":
7355
7355
  return yn({ item: t, options: r });
7356
7356
  case "progressBar":
7357
- return _n({ item: t, options: r });
7357
+ return En({ item: t, options: r });
7358
7358
  case "linealAudioBars":
7359
7359
  return Wn({ item: t, options: r });
7360
7360
  case "waveAudioBars":
@@ -7381,16 +7381,16 @@ function Gs({
7381
7381
  onTextBlur: a,
7382
7382
  handleTextChange: i,
7383
7383
  itemsTemplateIds: e,
7384
- transitionsTemplateMap: p,
7384
+ transitionsTemplateMap: h,
7385
7385
  itemsTemplateMap: o,
7386
- size: h,
7386
+ size: p,
7387
7387
  fps: l,
7388
7388
  structure: u,
7389
7389
  frame: d,
7390
7390
  mergedTrackItemsDeatilsMap: b
7391
7391
  } = r, y = or(o || {}), { trim: v, display: x } = t, M = e && e.some((I) => !!y[I]) ? e : Object.keys(y), m = Jn({
7392
7392
  trackItemIds: or(M),
7393
- transitionsMap: or(p || {}),
7393
+ transitionsMap: or(h || {}),
7394
7394
  trackItemsMap: y || {}
7395
7395
  }), g = (v == null ? void 0 : v.from) || 0;
7396
7396
  M.filter((I) => !!y[I]).forEach((I) => {
@@ -7403,13 +7403,13 @@ function Gs({
7403
7403
  if (!I[0]) return null;
7404
7404
  const R = y[(F = I[0]) == null ? void 0 : F.id];
7405
7405
  if (!R) return null;
7406
- let E = {}, Y = {}, C = [];
7406
+ let _ = {}, Y = {}, C = [];
7407
7407
  if (R.type === "template") {
7408
- const z = u == null ? void 0 : u.find((D) => D.id === R.id);
7408
+ const z = u == null ? void 0 : u.find((tt) => tt.id === R.id);
7409
7409
  C = (z == null ? void 0 : z.items) || [];
7410
- for (const D in b)
7411
- z != null && z.items.includes(D) && (Y[D] = {
7412
- ...b[D]
7410
+ for (const tt in b)
7411
+ z != null && z.items.includes(tt) && (Y[tt] = {
7412
+ ...b[tt]
7413
7413
  });
7414
7414
  return s(R, {
7415
7415
  fps: l,
@@ -7418,8 +7418,8 @@ function Gs({
7418
7418
  editableTextId: c,
7419
7419
  itemsTemplateIds: C,
7420
7420
  itemsTemplateMap: Y,
7421
- transitionsTemplateMap: E,
7422
- itemStructure: u == null ? void 0 : u.find((D) => D.id === R.id),
7421
+ transitionsTemplateMap: _,
7422
+ itemStructure: u == null ? void 0 : u.find((tt) => tt.id === R.id),
7423
7423
  frame: (d ?? 0) - x.from * l / 1e3,
7424
7424
  size: {
7425
7425
  width: ((B = R.details) == null ? void 0 : B.width) || 0,
@@ -7440,24 +7440,24 @@ function Gs({
7440
7440
  active: !1,
7441
7441
  itemsTemplateIds: e,
7442
7442
  itemsTemplateMap: y,
7443
- transitionsTemplateMap: p,
7443
+ transitionsTemplateMap: h,
7444
7444
  isTransition: !1,
7445
7445
  isAnimationEditor: r.isAnimationEditor,
7446
7446
  insideTemplate: !0,
7447
- size: h,
7447
+ size: p,
7448
7448
  frame: (d ?? 0) - x.from * l / 1e3
7449
7449
  });
7450
7450
  }
7451
7451
  const $ = y[I[0].id], N = (((P = $ == null ? void 0 : $.display) == null ? void 0 : P.from) || 0) / 1e3 * r.fps;
7452
7452
  return /* @__PURE__ */ f(dn, { from: N, children: I.map((R) => {
7453
7453
  if (R.type === "transition") {
7454
- const E = R.duration / 1e3 * l, Y = oo[R.kind];
7454
+ const _ = R.duration / 1e3 * l, Y = oo[R.kind];
7455
7455
  return Y ? Y({
7456
- durationInFrames: E,
7456
+ durationInFrames: _,
7457
7457
  id: R.id,
7458
7458
  direction: R.direction,
7459
- width: (h == null ? void 0 : h.width) || 0,
7460
- height: (h == null ? void 0 : h.height) || 0
7459
+ width: (p == null ? void 0 : p.width) || 0,
7460
+ height: (p == null ? void 0 : p.height) || 0
7461
7461
  }) : null;
7462
7462
  }
7463
7463
  return s(R, {
@@ -7466,11 +7466,11 @@ function Gs({
7466
7466
  onTextBlur: a,
7467
7467
  editableTextId: c,
7468
7468
  isTransition: !0,
7469
- size: h
7469
+ size: p
7470
7470
  });
7471
7471
  }) }, S);
7472
7472
  });
7473
- return mt({ children: w, item: t, options: r });
7473
+ return gt({ children: w, item: t, options: r });
7474
7474
  }
7475
7475
  function js({
7476
7476
  item: t,
@@ -7484,9 +7484,9 @@ function js({
7484
7484
  itemsTemplateMap: a,
7485
7485
  fps: i,
7486
7486
  frame: e,
7487
- onTextBlur: p,
7487
+ onTextBlur: h,
7488
7488
  handleTextChange: o,
7489
- itemStructure: h
7489
+ itemStructure: p
7490
7490
  } = r, { animations: l } = t, { durationInFrames: u } = wt(t.display, i), { animationIn: d, animationOut: b, animationTimed: y } = Ft(
7491
7491
  l,
7492
7492
  t,
@@ -7502,14 +7502,14 @@ function js({
7502
7502
  const X = v[F[0].id];
7503
7503
  if (!X) return null;
7504
7504
  let P = B;
7505
- if (h) {
7506
- const { tracks: R } = h;
7507
- P = R.length - R.findIndex((E) => E.items.includes(X.id));
7505
+ if (p) {
7506
+ const { tracks: R } = p;
7507
+ P = R.length - R.findIndex((_) => _.items.includes(X.id));
7508
7508
  }
7509
7509
  return n ? n(X, {
7510
7510
  fps: i,
7511
7511
  handleTextChange: o,
7512
- onTextBlur: p,
7512
+ onTextBlur: h,
7513
7513
  editableTextId: s,
7514
7514
  zIndex: P,
7515
7515
  isAnimationEditor: r.isAnimationEditor,
@@ -7563,7 +7563,7 @@ function js({
7563
7563
  )
7564
7564
  }
7565
7565
  );
7566
- return mt({ item: t, options: r, children: w });
7566
+ return gt({ item: t, options: r, children: w });
7567
7567
  }
7568
7568
  const en = {
7569
7569
  text: (t, r) => Bn({ item: t, options: r }),
@@ -7576,7 +7576,7 @@ const en = {
7576
7576
  polygon: (t, r) => Un({ item: t, options: r }),
7577
7577
  ellipse: (t, r) => Zn({ item: t, options: r }),
7578
7578
  video: (t, r) => Pn({ item: t, options: r }),
7579
- audio: (t, r) => pn({ item: t, options: r }),
7579
+ audio: (t, r) => hn({ item: t, options: r }),
7580
7580
  image: (t, r) => kn({ item: t, options: r }),
7581
7581
  template: (t, r) => Gs({
7582
7582
  item: t,
@@ -7584,7 +7584,7 @@ const en = {
7584
7584
  renderSequenceItem: (n, s) => en[n.type](n, s)
7585
7585
  }),
7586
7586
  illustration: (t, r) => yn({ item: t, options: r }),
7587
- progressBar: (t, r) => _n({ item: t, options: r }),
7587
+ progressBar: (t, r) => En({ item: t, options: r }),
7588
7588
  linealAudioBars: (t, r) => Wn({ item: t, options: r }),
7589
7589
  waveAudioBars: (t, r) => On({ item: t, options: r }),
7590
7590
  hillAudioBars: (t, r) => zn({ item: t, options: r }),
@@ -7598,8 +7598,8 @@ const en = {
7598
7598
  })
7599
7599
  };
7600
7600
  export {
7601
- pn as Audio,
7602
- mt as BaseSequence,
7601
+ hn as Audio,
7602
+ gt as BaseSequence,
7603
7603
  fn as Caption,
7604
7604
  An as Circle,
7605
7605
  js as Composition,
@@ -7609,12 +7609,12 @@ export {
7609
7609
  kn as Image,
7610
7610
  Wn as LinealAudioBars,
7611
7611
  Un as Polygon,
7612
- _n as ProgressBar,
7612
+ En as ProgressBar,
7613
7613
  Vn as ProgressFrame,
7614
7614
  Kn as ProgressSquare,
7615
7615
  Cn as RadialAudioBars,
7616
7616
  Gn as Rect,
7617
- Er as SafeHtmlInCanvas,
7617
+ _r as SafeHtmlInCanvas,
7618
7618
  en as SequenceItem,
7619
7619
  Nn as Shape,
7620
7620
  Hn as Star,
@@ -7623,7 +7623,7 @@ export {
7623
7623
  Ln as Triangle,
7624
7624
  Pn as Video,
7625
7625
  On as WaveAudioBars,
7626
- hn as calculateBorderOverlayStyles,
7626
+ pn as calculateBorderOverlayStyles,
7627
7627
  mo as calculateContainerFigureStyles,
7628
7628
  Pt as calculateContainerStyles,
7629
7629
  go as calculateCropStyles,