reacthub-pixitweenjs 0.2.107-alpha.15 → 0.2.107-alpha.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.
package/dist/index.es.js CHANGED
@@ -88,7 +88,7 @@ function c5() {
88
88
  t == null || t.dispatchEvent(i);
89
89
  }, e;
90
90
  }
91
- const Pi = ne.createContext({}), Qe = {
91
+ const Pi = ne.createContext({}), We = {
92
92
  STOP: "GSAP_STOP",
93
93
  PAUSE: "GSAP_PAUSE",
94
94
  PLAY: "GSAP_PLAY",
@@ -140,7 +140,7 @@ const Pi = ne.createContext({}), Qe = {
140
140
  }).eventCallback("onReverseComplete", function() {
141
141
  console.log("onReverseComplete", x.progress());
142
142
  }).eventCallback("onComplete", function() {
143
- x.pause(), x.revert(), hs(Qe.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"), f();
143
+ x.pause(), x.revert(), hs(We.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"), f();
144
144
  });
145
145
  }
146
146
  }, []);
@@ -161,26 +161,26 @@ const Pi = ne.createContext({}), Qe = {
161
161
  const x = n.current;
162
162
  return x ? x.totalDuration() : 0;
163
163
  }, []), b = () => {
164
- n.current && (n.current.pause(), hs(Qe.PAUSE));
164
+ n.current && (n.current.pause(), hs(We.PAUSE));
165
165
  }, w = () => {
166
- n.current && (n.current.resume(), hs(Qe.RESUME));
166
+ n.current && (n.current.resume(), hs(We.RESUME));
167
167
  };
168
- return lt(Qe.SEEK_START, () => {
168
+ return lt(We.SEEK_START, () => {
169
169
  l.current = !0;
170
- }), lt(Qe.SCRUBBER_PLAY, () => {
170
+ }), lt(We.SCRUBBER_PLAY, () => {
171
171
  w();
172
- }), lt(Qe.SCRUBBER_PAUSE, () => {
172
+ }), lt(We.SCRUBBER_PAUSE, () => {
173
173
  b();
174
- }), lt(Qe.SCRUBBER_SEEK, (x) => {
174
+ }), lt(We.SCRUBBER_SEEK, (x) => {
175
175
  d(x);
176
- }), lt(Qe.SEEK_END, () => {
176
+ }), lt(We.SEEK_END, () => {
177
177
  l.current = !1;
178
- }), lt(Qe.REVERSE_MODE_START, () => {
178
+ }), lt(We.REVERSE_MODE_START, () => {
179
179
  u.current = !0;
180
- }), lt(Qe.REVERSE_MODE_END, () => {
180
+ }), lt(We.REVERSE_MODE_END, () => {
181
181
  u.current = !1;
182
182
  }), lt(
183
- Qe.SCRUBBER_PROGRESS_UPDATE,
183
+ We.SCRUBBER_PROGRESS_UPDATE,
184
184
  (x) => {
185
185
  }
186
186
  ), /* @__PURE__ */ ke.jsx(
@@ -229,7 +229,7 @@ const Pi = ne.createContext({}), Qe = {
229
229
  S - m.current < d && u && u(), m.current = S;
230
230
  }, []), x = ne.useCallback(
231
231
  (S) => {
232
- c.current.isDragging = !0, i && i(S), hs(Qe.TRANSFORMER_DRAG_START, { uniqueId: "timeline" });
232
+ c.current.isDragging = !0, i && i(S), hs(We.TRANSFORMER_DRAG_START, { uniqueId: "timeline" });
233
233
  },
234
234
  [i]
235
235
  ), E = ne.useCallback(() => {
@@ -250,7 +250,7 @@ const Pi = ne.createContext({}), Qe = {
250
250
  scale: f ? k : [$, j]
251
251
  // @todo: fix this for text
252
252
  }
253
- }), hs(Qe.TRANSFORMER_DRAG_END, { uniqueId: "timeline" })), c.current.isDragging = !1;
253
+ }), hs(We.TRANSFORMER_DRAG_END, { uniqueId: "timeline" })), c.current.isDragging = !1;
254
254
  }, [n]);
255
255
  return ne.useEffect(() => (t.current && (t.current.on("mouseover", _), t.current.on("mouseout", b), t.current.on("mousedown", w)), () => {
256
256
  t.current && (t.current.off("mouseover", _), t.current.off("mouseout", b), t.current.off("mousedown", w));
@@ -415,11 +415,11 @@ ro.exports;
415
415
  var r = Mr, n = ZS, i = e && !e.nodeType && e, a = i && !0 && t && !t.nodeType && t, u = a && a.exports === i, l = u ? r.Buffer : void 0, f = l ? l.isBuffer : void 0, p = f || n;
416
416
  t.exports = p;
417
417
  })(ro, ro.exports);
418
- var Lc = ro.exports, QS = Ps, JS = Nc, eE = Os, tE = "[object Arguments]", rE = "[object Array]", nE = "[object Boolean]", iE = "[object Date]", sE = "[object Error]", aE = "[object Function]", oE = "[object Map]", uE = "[object Number]", lE = "[object Object]", cE = "[object RegExp]", hE = "[object Set]", fE = "[object String]", dE = "[object WeakMap]", pE = "[object ArrayBuffer]", gE = "[object DataView]", mE = "[object Float32Array]", vE = "[object Float64Array]", _E = "[object Int8Array]", yE = "[object Int16Array]", xE = "[object Int32Array]", bE = "[object Uint8Array]", wE = "[object Uint8ClampedArray]", TE = "[object Uint16Array]", AE = "[object Uint32Array]", Ze = {};
419
- Ze[mE] = Ze[vE] = Ze[_E] = Ze[yE] = Ze[xE] = Ze[bE] = Ze[wE] = Ze[TE] = Ze[AE] = !0;
420
- Ze[tE] = Ze[rE] = Ze[pE] = Ze[nE] = Ze[gE] = Ze[iE] = Ze[sE] = Ze[aE] = Ze[oE] = Ze[uE] = Ze[lE] = Ze[cE] = Ze[hE] = Ze[fE] = Ze[dE] = !1;
418
+ var Lc = ro.exports, QS = Ps, JS = Nc, eE = Os, tE = "[object Arguments]", rE = "[object Array]", nE = "[object Boolean]", iE = "[object Date]", sE = "[object Error]", aE = "[object Function]", oE = "[object Map]", uE = "[object Number]", lE = "[object Object]", cE = "[object RegExp]", hE = "[object Set]", fE = "[object String]", dE = "[object WeakMap]", pE = "[object ArrayBuffer]", gE = "[object DataView]", mE = "[object Float32Array]", vE = "[object Float64Array]", _E = "[object Int8Array]", yE = "[object Int16Array]", xE = "[object Int32Array]", bE = "[object Uint8Array]", wE = "[object Uint8ClampedArray]", TE = "[object Uint16Array]", AE = "[object Uint32Array]", Qe = {};
419
+ Qe[mE] = Qe[vE] = Qe[_E] = Qe[yE] = Qe[xE] = Qe[bE] = Qe[wE] = Qe[TE] = Qe[AE] = !0;
420
+ Qe[tE] = Qe[rE] = Qe[pE] = Qe[nE] = Qe[gE] = Qe[iE] = Qe[sE] = Qe[aE] = Qe[oE] = Qe[uE] = Qe[lE] = Qe[cE] = Qe[hE] = Qe[fE] = Qe[dE] = !1;
421
421
  function SE(t) {
422
- return eE(t) && JS(t.length) && !!Ze[QS(t)];
422
+ return eE(t) && JS(t.length) && !!Qe[QS(t)];
423
423
  }
424
424
  var EE = SE;
425
425
  function CE(t) {
@@ -530,7 +530,7 @@ const Jd = {
530
530
  onDoubleClick: H,
531
531
  isTextEditMode: me
532
532
  } = t;
533
- lt(Qe.COMPLETE, () => {
533
+ lt(We.COMPLETE, () => {
534
534
  f.current;
535
535
  }), ne.useImperativeHandle(
536
536
  e,
@@ -1141,18 +1141,18 @@ io.exports;
1141
1141
  return O(_e + (I + 1) * V / (V + c));
1142
1142
  }
1143
1143
  function Fe(V) {
1144
- var Y = [], ce = V.length, _e, ye = 0, Re = _, Me = m, ze, He, qe, Z, W, se, Se, Ee, Ye;
1144
+ var Y = [], ce = V.length, _e, ye = 0, Re = _, Me = m, ze, He, Ye, Z, W, se, Se, Ee, Ke;
1145
1145
  for (ze = V.lastIndexOf(b), ze < 0 && (ze = 0), He = 0; He < ze; ++He)
1146
1146
  V.charCodeAt(He) >= 128 && k("not-basic"), Y.push(V.charCodeAt(He));
1147
- for (qe = ze > 0 ? ze + 1 : 0; qe < ce; ) {
1148
- for (Z = ye, W = 1, se = f; qe >= ce && k("invalid-input"), Se = X(V.charCodeAt(qe++)), (Se >= f || Se > O((l - ye) / W)) && k("overflow"), ye += Se * W, Ee = se <= Me ? p : se >= Me + v ? v : se - Me, !(Se < Ee); se += f)
1149
- Ye = f - Ee, W > O(l / Ye) && k("overflow"), W *= Ye;
1147
+ for (Ye = ze > 0 ? ze + 1 : 0; Ye < ce; ) {
1148
+ for (Z = ye, W = 1, se = f; Ye >= ce && k("invalid-input"), Se = X(V.charCodeAt(Ye++)), (Se >= f || Se > O((l - ye) / W)) && k("overflow"), ye += Se * W, Ee = se <= Me ? p : se >= Me + v ? v : se - Me, !(Se < Ee); se += f)
1149
+ Ke = f - Ee, W > O(l / Ke) && k("overflow"), W *= Ke;
1150
1150
  _e = Y.length + 1, Me = me(ye - Z, _e, Z == 0), O(ye / _e) > l - Re && k("overflow"), Re += O(ye / _e), ye %= _e, Y.splice(ye++, 0, Re);
1151
1151
  }
1152
1152
  return ie(Y);
1153
1153
  }
1154
1154
  function z(V) {
1155
- var Y, ce, _e, ye, Re, Me, ze, He, qe, Z, W, se = [], Se, Ee, Ye, ir;
1155
+ var Y, ce, _e, ye, Re, Me, ze, He, Ye, Z, W, se = [], Se, Ee, Ke, ir;
1156
1156
  for (V = J(V), Se = V.length, Y = _, ce = 0, Re = m, Me = 0; Me < Se; ++Me)
1157
1157
  W = V[Me], W < 128 && se.push(N(W));
1158
1158
  for (_e = ye = se.length, ye && se.push(b); _e < Se; ) {
@@ -1160,10 +1160,10 @@ io.exports;
1160
1160
  W = V[Me], W >= Y && W < ze && (ze = W);
1161
1161
  for (Ee = _e + 1, ze - Y > O((l - ce) / Ee) && k("overflow"), ce += (ze - Y) * Ee, Y = ze, Me = 0; Me < Se; ++Me)
1162
1162
  if (W = V[Me], W < Y && ++ce > l && k("overflow"), W == Y) {
1163
- for (He = ce, qe = f; Z = qe <= Re ? p : qe >= Re + v ? v : qe - Re, !(He < Z); qe += f)
1164
- ir = He - Z, Ye = f - Z, se.push(
1165
- N(H(Z + ir % Ye, 0))
1166
- ), He = O(ir / Ye);
1163
+ for (He = ce, Ye = f; Z = Ye <= Re ? p : Ye >= Re + v ? v : Ye - Re, !(He < Z); Ye += f)
1164
+ ir = He - Z, Ke = f - Z, se.push(
1165
+ N(H(Z + ir % Ke, 0))
1166
+ ), He = O(ir / Ke);
1167
1167
  se.push(N(H(He, 0))), Re = me(ce, Ee, _e == ye), ce = 0, ++_e;
1168
1168
  }
1169
1169
  ++ce, ++Y;
@@ -3592,12 +3592,12 @@ class Nm extends Si {
3592
3592
  }
3593
3593
  const ho = Math.PI * 2, ZI = 180 / Math.PI, Es = Math.PI / 180;
3594
3594
  var wt = /* @__PURE__ */ ((t) => (t[t.POLY = 0] = "POLY", t[t.RECT = 1] = "RECT", t[t.CIRC = 2] = "CIRC", t[t.ELIP = 3] = "ELIP", t[t.RREC = 4] = "RREC", t))(wt || {});
3595
- class We {
3595
+ class qe {
3596
3596
  constructor(e = 0, r = 0) {
3597
3597
  this.x = 0, this.y = 0, this.x = e, this.y = r;
3598
3598
  }
3599
3599
  clone() {
3600
- return new We(this.x, this.y);
3600
+ return new qe(this.x, this.y);
3601
3601
  }
3602
3602
  copyFrom(e) {
3603
3603
  return this.set(e.x, e.y), this;
@@ -3615,7 +3615,7 @@ class We {
3615
3615
  return `[@pixi/math:Point x=${this.x} y=${this.y}]`;
3616
3616
  }
3617
3617
  }
3618
- const Fa = [new We(), new We(), new We(), new We()];
3618
+ const Fa = [new qe(), new qe(), new qe(), new qe()];
3619
3619
  class Xe {
3620
3620
  constructor(e = 0, r = 0, n = 0, i = 0) {
3621
3621
  this.x = Number(e), this.y = Number(r), this.width = Number(n), this.height = Number(i), this.type = wt.RECT;
@@ -3799,12 +3799,12 @@ let Nt = class ja {
3799
3799
  return e ? (n[0] = this.a, n[1] = this.b, n[2] = 0, n[3] = this.c, n[4] = this.d, n[5] = 0, n[6] = this.tx, n[7] = this.ty, n[8] = 1) : (n[0] = this.a, n[1] = this.c, n[2] = this.tx, n[3] = this.b, n[4] = this.d, n[5] = this.ty, n[6] = 0, n[7] = 0, n[8] = 1), n;
3800
3800
  }
3801
3801
  apply(e, r) {
3802
- r = r || new We();
3802
+ r = r || new qe();
3803
3803
  const n = e.x, i = e.y;
3804
3804
  return r.x = this.a * n + this.c * i + this.tx, r.y = this.b * n + this.d * i + this.ty, r;
3805
3805
  }
3806
3806
  applyInverse(e, r) {
3807
- r = r || new We();
3807
+ r = r || new qe();
3808
3808
  const n = 1 / (this.a * this.d + this.c * -this.b), i = e.x, a = e.y;
3809
3809
  return r.x = this.d * n * i + -this.c * n * a + (this.ty * this.c - this.tx * this.d) * n, r.y = this.a * n * a + -this.b * n * i + (-this.ty * this.a + this.tx * this.b) * n, r;
3810
3810
  }
@@ -5390,7 +5390,7 @@ class Oe extends bo {
5390
5390
  this._rotate = 2;
5391
5391
  else if (this._rotate % 2 !== 0)
5392
5392
  throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
5393
- this.defaultAnchor = u ? new We(u.x, u.y) : new We(0, 0), this.defaultBorders = l, this._updateID = 0, this.textureCacheIds = [], e.valid ? this.noFrame ? e.valid && this.onBaseTextureUpdated(e) : this.frame = r : e.once("loaded", this.onBaseTextureUpdated, this), this.noFrame && e.on("update", this.onBaseTextureUpdated, this);
5393
+ this.defaultAnchor = u ? new qe(u.x, u.y) : new qe(0, 0), this.defaultBorders = l, this._updateID = 0, this.textureCacheIds = [], e.valid ? this.noFrame ? e.valid && this.onBaseTextureUpdated(e) : this.frame = r : e.once("loaded", this.onBaseTextureUpdated, this), this.noFrame && e.on("update", this.onBaseTextureUpdated, this);
5394
5394
  }
5395
5395
  update() {
5396
5396
  this.baseTexture.resource && this.baseTexture.resource.update();
@@ -5655,7 +5655,7 @@ class wR {
5655
5655
  this.target = null, this.filters = null, this.renderTexture = null;
5656
5656
  }
5657
5657
  }
5658
- const Ua = [new We(), new We(), new We(), new We()], Nl = new Nt();
5658
+ const Ua = [new qe(), new qe(), new qe(), new qe()], Nl = new Nt();
5659
5659
  class qm {
5660
5660
  constructor(e) {
5661
5661
  this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new Wm(), this.statePool = [], this.quad = new xR(), this.quadUv = new bR(), this.tempRect = new Xe(), this.activeState = {}, this.globalUniforms = new xr({
@@ -8269,7 +8269,7 @@ void main(void)
8269
8269
  `;
8270
8270
  let Cs = class extends Ue {
8271
8271
  constructor(e = 4, r = 3, n = !1) {
8272
- super(nP, n ? sP : iP), this._kernels = [], this._blur = 4, this._quality = 3, this.uniforms.uOffset = new Float32Array(2), this._pixelSize = new We(), this.pixelSize = 1, this._clamp = n, Array.isArray(e) ? this.kernels = e : (this._blur = e, this.quality = r);
8272
+ super(nP, n ? sP : iP), this._kernels = [], this._blur = 4, this._quality = 3, this.uniforms.uOffset = new Float32Array(2), this._pixelSize = new qe(), this.pixelSize = 1, this._clamp = n, Array.isArray(e) ? this.kernels = e : (this._blur = e, this.quality = r);
8273
8273
  }
8274
8274
  apply(e, r, n, i) {
8275
8275
  const a = this._pixelSize.x / r._frame.width, u = this._pixelSize.y / r._frame.height;
@@ -8308,7 +8308,7 @@ let Cs = class extends Ue {
8308
8308
  return this._clamp;
8309
8309
  }
8310
8310
  set pixelSize(e) {
8311
- typeof e == "number" ? (this._pixelSize.x = e, this._pixelSize.y = e) : Array.isArray(e) ? (this._pixelSize.x = e[0], this._pixelSize.y = e[1]) : e instanceof We ? (this._pixelSize.x = e.x, this._pixelSize.y = e.y) : (this._pixelSize.x = 1, this._pixelSize.y = 1);
8311
+ typeof e == "number" ? (this._pixelSize.x = e, this._pixelSize.y = e) : Array.isArray(e) ? (this._pixelSize.x = e[0], this._pixelSize.y = e[1]) : e instanceof qe ? (this._pixelSize.x = e.x, this._pixelSize.y = e.y) : (this._pixelSize.x = 1, this._pixelSize.y = 1);
8312
8312
  }
8313
8313
  get pixelSize() {
8314
8314
  return this._pixelSize;
@@ -9911,7 +9911,7 @@ const w0 = class extends Ue {
9911
9911
  constructor(e) {
9912
9912
  super(JP, tM.replace("${perlin}", eM)), this.parallel = !0, this.time = 0, this._angle = 0, this.uniforms.dimensions = new Float32Array(2);
9913
9913
  const r = Object.assign(w0.defaults, e);
9914
- this._angleLight = new We(), this.angle = r.angle, this.gain = r.gain, this.lacunarity = r.lacunarity, this.alpha = r.alpha, this.parallel = r.parallel, this.center = r.center, this.time = r.time;
9914
+ this._angleLight = new qe(), this.angle = r.angle, this.gain = r.gain, this.lacunarity = r.lacunarity, this.alpha = r.alpha, this.parallel = r.parallel, this.center = r.center, this.time = r.time;
9915
9915
  }
9916
9916
  apply(e, r, n, i) {
9917
9917
  const { width: a, height: u } = r.filterFrame;
@@ -10602,7 +10602,7 @@ void main(void)
10602
10602
  let C0 = class extends Ue {
10603
10603
  constructor(e) {
10604
10604
  var r, n;
10605
- super(vM, _M), this.uniforms.blur = e.blur, this.uniforms.gradientBlur = e.gradientBlur, this.uniforms.start = (r = e.start) != null ? r : new We(0, window.innerHeight / 2), this.uniforms.end = (n = e.end) != null ? n : new We(600, window.innerHeight / 2), this.uniforms.delta = new We(30, 30), this.uniforms.texSize = new We(window.innerWidth, window.innerHeight), this.updateDelta();
10605
+ super(vM, _M), this.uniforms.blur = e.blur, this.uniforms.gradientBlur = e.gradientBlur, this.uniforms.start = (r = e.start) != null ? r : new qe(0, window.innerHeight / 2), this.uniforms.end = (n = e.end) != null ? n : new qe(600, window.innerHeight / 2), this.uniforms.delta = new qe(30, 30), this.uniforms.texSize = new qe(window.innerWidth, window.innerHeight), this.updateDelta();
10606
10606
  }
10607
10607
  updateDelta() {
10608
10608
  this.uniforms.delta.x = 0, this.uniforms.delta.y = 0;
@@ -10769,7 +10769,7 @@ const R0 = class extends Ue {
10769
10769
  }
10770
10770
  };
10771
10771
  let AM = R0;
10772
- AM.defaults = { radius: 200, angle: 4, padding: 20, offset: new We() };
10772
+ AM.defaults = { radius: 200, angle: 4, padding: 20, offset: new qe() };
10773
10773
  var SM = `attribute vec2 aVertexPosition;
10774
10774
  attribute vec2 aTextureCoord;
10775
10775
 
@@ -11275,7 +11275,7 @@ function kM(t, e) {
11275
11275
  const i = e.closePointEps;
11276
11276
  if (n.length === 0)
11277
11277
  return;
11278
- const a = t.lineStyle, u = new We(n[0], n[1]), l = new We(n[n.length - 2], n[n.length - 1]), f = r.type !== wt.POLY || r.closeStroke, p = Math.abs(u.x - l.x) < i && Math.abs(u.y - l.y) < i;
11278
+ const a = t.lineStyle, u = new qe(n[0], n[1]), l = new qe(n[n.length - 2], n[n.length - 1]), f = r.type !== wt.POLY || r.closeStroke, p = Math.abs(u.x - l.x) < i && Math.abs(u.y - l.y) < i;
11279
11279
  if (f) {
11280
11280
  n = n.slice(), p && (n.pop(), n.pop(), l.set(n[n.length - 2], n[n.length - 1]));
11281
11281
  const z = (u.x + l.x) * 0.5, te = (l.y + u.y) * 0.5;
@@ -11295,9 +11295,9 @@ function kM(t, e) {
11295
11295
  v.push(S - L * X, I - k * X, S + L * H, I + k * H), ce >= 0 && (a.join === dr.ROUND ? d += An(S, I, S - L * X, I - k * X, S - $ * X, I - j * X, v, !1) + 4 : d += 2, v.push(S - $ * H, I - j * H, S + $ * X, I + j * X));
11296
11296
  continue;
11297
11297
  }
11298
- const Re = (-L + x) * (-k + I) - (-L + S) * (-k + E), Me = (-$ + O) * (-j + I) - (-$ + S) * (-j + N), ze = (te * Me - V * Re) / _e, He = (Y * Re - pe * Me) / _e, qe = (ze - S) * (ze - S) + (He - I) * (He - I), Z = S + (ze - S) * X, W = I + (He - I) * X, se = S - (ze - S) * H, Se = I - (He - I) * H, Ee = Math.min(te * te + pe * pe, V * V + Y * Y), Ye = ye ? X : H, ir = Ee + Ye * Ye * b, Rt = qe <= ir;
11298
+ const Re = (-L + x) * (-k + I) - (-L + S) * (-k + E), Me = (-$ + O) * (-j + I) - (-$ + S) * (-j + N), ze = (te * Me - V * Re) / _e, He = (Y * Re - pe * Me) / _e, Ye = (ze - S) * (ze - S) + (He - I) * (He - I), Z = S + (ze - S) * X, W = I + (He - I) * X, se = S - (ze - S) * H, Se = I - (He - I) * H, Ee = Math.min(te * te + pe * pe, V * V + Y * Y), Ke = ye ? X : H, ir = Ee + Ke * Ke * b, Rt = Ye <= ir;
11299
11299
  let Fr = a.join;
11300
- if (Fr === dr.MITER && qe / b > w && (Fr = dr.BEVEL), Rt)
11300
+ if (Fr === dr.MITER && Ye / b > w && (Fr = dr.BEVEL), Rt)
11301
11301
  switch (Fr) {
11302
11302
  case dr.MITER: {
11303
11303
  v.push(Z, W, se, Se);
@@ -11813,7 +11813,7 @@ class go {
11813
11813
  this.shape = null, this.holes.length = 0, this.holes = null, this.points.length = 0, this.points = null, this.lineStyle = null, this.fillStyle = null;
11814
11814
  }
11815
11815
  }
11816
- const li = new We(), O0 = class extends Nm {
11816
+ const li = new qe(), O0 = class extends Nm {
11817
11817
  constructor() {
11818
11818
  super(), this.closePointEps = 1e-4, this.boundsPadding = 0, this.uvsFloat32 = null, this.indicesUint16 = null, this.batchable = !1, this.points = [], this.colors = [], this.uvs = [], this.indices = [], this.textureIds = [], this.graphicsData = [], this.drawCalls = [], this.batchDirty = -1, this.batches = [], this.dirty = 0, this.cacheDirty = -1, this.clearDirty = 0, this.shapeIndex = 0, this._bounds = new Cc(), this.boundsDirty = -1;
11819
11819
  }
@@ -12308,7 +12308,7 @@ const Gl = {}, Za = class extends Ii {
12308
12308
  };
12309
12309
  let sh = Za;
12310
12310
  sh.curves = Ei;
12311
- sh._TEMP_POINT = new We();
12311
+ sh._TEMP_POINT = new qe();
12312
12312
  var GM = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Rc = {}, zM = {
12313
12313
  get exports() {
12314
12314
  return Rc;
@@ -15267,10 +15267,12 @@ const O5 = (t) => {
15267
15267
  audioEndAt: w,
15268
15268
  visible: x
15269
15269
  } = t;
15270
- lt(Qe.PAUSE, () => {
15270
+ lt(We.PAUSE, () => {
15271
15271
  var N;
15272
15272
  n.current && u.current && ((N = u.current) == null || N.pause(), i.current.isPlaying = !1);
15273
- }), lt(Qe.SCRUBBER_CLICKED, () => {
15273
+ }), lt(We.COMPLETE, () => {
15274
+ b > 0 && u.current && u.current.seek(b);
15275
+ }), lt(We.SCRUBBER_CLICKED, () => {
15274
15276
  var N;
15275
15277
  n.current && u.current && ((N = u.current) == null || N.pause(), i.current.isPlaying = !1);
15276
15278
  }), ne.useEffect(() => {
@@ -16497,7 +16499,7 @@ vo.exports;
16497
16499
  ["partial", O],
16498
16500
  ["partialRight", N],
16499
16501
  ["rearg", k]
16500
- ], Re = "[object Arguments]", Me = "[object Array]", ze = "[object AsyncFunction]", He = "[object Boolean]", qe = "[object Date]", Z = "[object DOMException]", W = "[object Error]", se = "[object Function]", Se = "[object GeneratorFunction]", Ee = "[object Map]", Ye = "[object Number]", ir = "[object Null]", Rt = "[object Object]", Fr = "[object Promise]", sr = "[object Proxy]", Hn = "[object RegExp]", ar = "[object Set]", $i = "[object String]", ks = "[object Symbol]", tv = "[object Undefined]", Gi = "[object WeakMap]", rv = "[object WeakSet]", zi = "[object ArrayBuffer]", Vn = "[object DataView]", Ho = "[object Float32Array]", Vo = "[object Float64Array]", Xo = "[object Int8Array]", jo = "[object Int16Array]", Wo = "[object Int32Array]", qo = "[object Uint8Array]", Yo = "[object Uint8ClampedArray]", Ko = "[object Uint16Array]", Zo = "[object Uint32Array]", nv = /\b__p \+= '';/g, iv = /\b(__p \+=) '' \+/g, sv = /(__e\(.*?\)|\b__t\)) \+\n'';/g, ch = /&(?:amp|lt|gt|quot|#39);/g, hh = /[&<>"']/g, av = RegExp(ch.source), ov = RegExp(hh.source), uv = /<%-([\s\S]+?)%>/g, lv = /<%([\s\S]+?)%>/g, fh = /<%=([\s\S]+?)%>/g, cv = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, hv = /^\w*$/, fv = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Qo = /[\\^$.*+?()[\]{}|]/g, dv = RegExp(Qo.source), Jo = /^\s+/, pv = /\s/, gv = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, mv = /\{\n\/\* \[wrapped with (.+)\] \*/, vv = /,? & /, _v = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, yv = /[()=,{}\[\]\/\s]/, xv = /\\(\\)?/g, bv = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, dh = /\w*$/, wv = /^[-+]0x[0-9a-f]+$/i, Tv = /^0b[01]+$/i, Av = /^\[object .+?Constructor\]$/, Sv = /^0o[0-7]+$/i, Ev = /^(?:0|[1-9]\d*)$/, Cv = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Bs = /($^)/, Iv = /['\n\r\u2028\u2029\\]/g, Ds = "\\ud800-\\udfff", Rv = "\\u0300-\\u036f", Pv = "\\ufe20-\\ufe2f", Mv = "\\u20d0-\\u20ff", ph = Rv + Pv + Mv, gh = "\\u2700-\\u27bf", mh = "a-z\\xdf-\\xf6\\xf8-\\xff", Ov = "\\xac\\xb1\\xd7\\xf7", Fv = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Nv = "\\u2000-\\u206f", Lv = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", vh = "A-Z\\xc0-\\xd6\\xd8-\\xde", _h = "\\ufe0e\\ufe0f", yh = Ov + Fv + Nv + Lv, eu = "['’]", kv = "[" + Ds + "]", xh = "[" + yh + "]", Us = "[" + ph + "]", bh = "\\d+", Bv = "[" + gh + "]", wh = "[" + mh + "]", Th = "[^" + Ds + yh + bh + gh + mh + vh + "]", tu = "\\ud83c[\\udffb-\\udfff]", Dv = "(?:" + Us + "|" + tu + ")", Ah = "[^" + Ds + "]", ru = "(?:\\ud83c[\\udde6-\\uddff]){2}", nu = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xn = "[" + vh + "]", Sh = "\\u200d", Eh = "(?:" + wh + "|" + Th + ")", Uv = "(?:" + Xn + "|" + Th + ")", Ch = "(?:" + eu + "(?:d|ll|m|re|s|t|ve))?", Ih = "(?:" + eu + "(?:D|LL|M|RE|S|T|VE))?", Rh = Dv + "?", Ph = "[" + _h + "]?", $v = "(?:" + Sh + "(?:" + [Ah, ru, nu].join("|") + ")" + Ph + Rh + ")*", Gv = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", zv = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Mh = Ph + Rh + $v, Hv = "(?:" + [Bv, ru, nu].join("|") + ")" + Mh, Vv = "(?:" + [Ah + Us + "?", Us, ru, nu, kv].join("|") + ")", Xv = RegExp(eu, "g"), jv = RegExp(Us, "g"), iu = RegExp(tu + "(?=" + tu + ")|" + Vv + Mh, "g"), Wv = RegExp([
16502
+ ], Re = "[object Arguments]", Me = "[object Array]", ze = "[object AsyncFunction]", He = "[object Boolean]", Ye = "[object Date]", Z = "[object DOMException]", W = "[object Error]", se = "[object Function]", Se = "[object GeneratorFunction]", Ee = "[object Map]", Ke = "[object Number]", ir = "[object Null]", Rt = "[object Object]", Fr = "[object Promise]", sr = "[object Proxy]", Hn = "[object RegExp]", ar = "[object Set]", $i = "[object String]", ks = "[object Symbol]", tv = "[object Undefined]", Gi = "[object WeakMap]", rv = "[object WeakSet]", zi = "[object ArrayBuffer]", Vn = "[object DataView]", Ho = "[object Float32Array]", Vo = "[object Float64Array]", Xo = "[object Int8Array]", jo = "[object Int16Array]", Wo = "[object Int32Array]", qo = "[object Uint8Array]", Yo = "[object Uint8ClampedArray]", Ko = "[object Uint16Array]", Zo = "[object Uint32Array]", nv = /\b__p \+= '';/g, iv = /\b(__p \+=) '' \+/g, sv = /(__e\(.*?\)|\b__t\)) \+\n'';/g, ch = /&(?:amp|lt|gt|quot|#39);/g, hh = /[&<>"']/g, av = RegExp(ch.source), ov = RegExp(hh.source), uv = /<%-([\s\S]+?)%>/g, lv = /<%([\s\S]+?)%>/g, fh = /<%=([\s\S]+?)%>/g, cv = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, hv = /^\w*$/, fv = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Qo = /[\\^$.*+?()[\]{}|]/g, dv = RegExp(Qo.source), Jo = /^\s+/, pv = /\s/, gv = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, mv = /\{\n\/\* \[wrapped with (.+)\] \*/, vv = /,? & /, _v = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, yv = /[()=,{}\[\]\/\s]/, xv = /\\(\\)?/g, bv = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, dh = /\w*$/, wv = /^[-+]0x[0-9a-f]+$/i, Tv = /^0b[01]+$/i, Av = /^\[object .+?Constructor\]$/, Sv = /^0o[0-7]+$/i, Ev = /^(?:0|[1-9]\d*)$/, Cv = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Bs = /($^)/, Iv = /['\n\r\u2028\u2029\\]/g, Ds = "\\ud800-\\udfff", Rv = "\\u0300-\\u036f", Pv = "\\ufe20-\\ufe2f", Mv = "\\u20d0-\\u20ff", ph = Rv + Pv + Mv, gh = "\\u2700-\\u27bf", mh = "a-z\\xdf-\\xf6\\xf8-\\xff", Ov = "\\xac\\xb1\\xd7\\xf7", Fv = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Nv = "\\u2000-\\u206f", Lv = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", vh = "A-Z\\xc0-\\xd6\\xd8-\\xde", _h = "\\ufe0e\\ufe0f", yh = Ov + Fv + Nv + Lv, eu = "['’]", kv = "[" + Ds + "]", xh = "[" + yh + "]", Us = "[" + ph + "]", bh = "\\d+", Bv = "[" + gh + "]", wh = "[" + mh + "]", Th = "[^" + Ds + yh + bh + gh + mh + vh + "]", tu = "\\ud83c[\\udffb-\\udfff]", Dv = "(?:" + Us + "|" + tu + ")", Ah = "[^" + Ds + "]", ru = "(?:\\ud83c[\\udde6-\\uddff]){2}", nu = "[\\ud800-\\udbff][\\udc00-\\udfff]", Xn = "[" + vh + "]", Sh = "\\u200d", Eh = "(?:" + wh + "|" + Th + ")", Uv = "(?:" + Xn + "|" + Th + ")", Ch = "(?:" + eu + "(?:d|ll|m|re|s|t|ve))?", Ih = "(?:" + eu + "(?:D|LL|M|RE|S|T|VE))?", Rh = Dv + "?", Ph = "[" + _h + "]?", $v = "(?:" + Sh + "(?:" + [Ah, ru, nu].join("|") + ")" + Ph + Rh + ")*", Gv = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", zv = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Mh = Ph + Rh + $v, Hv = "(?:" + [Bv, ru, nu].join("|") + ")" + Mh, Vv = "(?:" + [Ah + Us + "?", Us, ru, nu, kv].join("|") + ")", Xv = RegExp(eu, "g"), jv = RegExp(Us, "g"), iu = RegExp(tu + "(?=" + tu + ")|" + Vv + Mh, "g"), Wv = RegExp([
16501
16503
  Xn + "?" + wh + "+" + Ch + "(?=" + [xh, Xn, "$"].join("|") + ")",
16502
16504
  Uv + "+" + Ih + "(?=" + [xh, Xn + Eh, "$"].join("|") + ")",
16503
16505
  Xn + "?" + Eh + "+" + Ch,
@@ -16537,10 +16539,10 @@ vo.exports;
16537
16539
  "isFinite",
16538
16540
  "parseInt",
16539
16541
  "setTimeout"
16540
- ], Zv = -1, Ke = {};
16541
- Ke[Ho] = Ke[Vo] = Ke[Xo] = Ke[jo] = Ke[Wo] = Ke[qo] = Ke[Yo] = Ke[Ko] = Ke[Zo] = !0, Ke[Re] = Ke[Me] = Ke[zi] = Ke[He] = Ke[Vn] = Ke[qe] = Ke[W] = Ke[se] = Ke[Ee] = Ke[Ye] = Ke[Rt] = Ke[Hn] = Ke[ar] = Ke[$i] = Ke[Gi] = !1;
16542
+ ], Zv = -1, Ze = {};
16543
+ Ze[Ho] = Ze[Vo] = Ze[Xo] = Ze[jo] = Ze[Wo] = Ze[qo] = Ze[Yo] = Ze[Ko] = Ze[Zo] = !0, Ze[Re] = Ze[Me] = Ze[zi] = Ze[He] = Ze[Vn] = Ze[Ye] = Ze[W] = Ze[se] = Ze[Ee] = Ze[Ke] = Ze[Rt] = Ze[Hn] = Ze[ar] = Ze[$i] = Ze[Gi] = !1;
16542
16544
  var je = {};
16543
- je[Re] = je[Me] = je[zi] = je[Vn] = je[He] = je[qe] = je[Ho] = je[Vo] = je[Xo] = je[jo] = je[Wo] = je[Ee] = je[Ye] = je[Rt] = je[Hn] = je[ar] = je[$i] = je[ks] = je[qo] = je[Yo] = je[Ko] = je[Zo] = !0, je[W] = je[se] = je[Gi] = !1;
16545
+ je[Re] = je[Me] = je[zi] = je[Vn] = je[He] = je[Ye] = je[Ho] = je[Vo] = je[Xo] = je[jo] = je[Wo] = je[Ee] = je[Ke] = je[Rt] = je[Hn] = je[ar] = je[$i] = je[ks] = je[qo] = je[Yo] = je[Ko] = je[Zo] = !0, je[W] = je[se] = je[Gi] = !1;
16544
16546
  var Qv = {
16545
16547
  // Latin-1 Supplement block.
16546
16548
  À: "A",
@@ -17531,7 +17533,7 @@ vo.exports;
17531
17533
  return st(s) && Pt(s) == zi;
17532
17534
  }
17533
17535
  function Oy(s) {
17534
- return st(s) && Pt(s) == qe;
17536
+ return st(s) && Pt(s) == Ye;
17535
17537
  }
17536
17538
  function Qi(s, o, h, g, y) {
17537
17539
  return s === o ? !0 : s == null || o == null || !st(s) && !st(o) ? s !== s && o !== o : Fy(s, o, h, g, Qi, y);
@@ -17597,7 +17599,7 @@ vo.exports;
17597
17599
  return st(s) && At(s) == ar;
17598
17600
  }
17599
17601
  function By(s) {
17600
- return st(s) && wa(s.length) && !!Ke[Pt(s)];
17602
+ return st(s) && wa(s.length) && !!Ze[Pt(s)];
17601
17603
  }
17602
17604
  function mf(s) {
17603
17605
  return typeof s == "function" ? s : s == null ? Dt : typeof s == "object" ? fe(s) ? yf(s[0], s[1]) : _f(s) : Dd(s);
@@ -18340,8 +18342,8 @@ vo.exports;
18340
18342
  case zi:
18341
18343
  return !(s.byteLength != o.byteLength || !A(new qs(s), new qs(o)));
18342
18344
  case He:
18343
- case qe:
18344
18345
  case Ye:
18346
+ case Ke:
18345
18347
  return lr(+s, +o);
18346
18348
  case W:
18347
18349
  return s.name == o.name && s.message == o.message;
@@ -18523,7 +18525,7 @@ vo.exports;
18523
18525
  case zi:
18524
18526
  return Bu(s);
18525
18527
  case He:
18526
- case qe:
18528
+ case Ye:
18527
18529
  return new g(+s);
18528
18530
  case Vn:
18529
18531
  return Yy(s, h);
@@ -18539,7 +18541,7 @@ vo.exports;
18539
18541
  return Of(s, h);
18540
18542
  case Ee:
18541
18543
  return new g();
18542
- case Ye:
18544
+ case Ke:
18543
18545
  case $i:
18544
18546
  return new g(s);
18545
18547
  case Hn:
@@ -19451,7 +19453,7 @@ vo.exports;
19451
19453
  return s == null;
19452
19454
  }
19453
19455
  function Ad(s) {
19454
- return typeof s == "number" || st(s) && Pt(s) == Ye;
19456
+ return typeof s == "number" || st(s) && Pt(s) == Ke;
19455
19457
  }
19456
19458
  function ns(s) {
19457
19459
  if (!st(s) || Pt(s) != Rt)
@@ -20187,19 +20189,19 @@ const RD = {
20187
20189
  blurFilter: pe,
20188
20190
  adjustmentFilter: V
20189
20191
  } = Ls(H), { blurRadius: Y = 0 } = H, ce = 0.1;
20190
- ED(E, p), lt(Qe.PAUSE, () => {
20192
+ ED(E, p), lt(We.PAUSE, () => {
20191
20193
  v.current && (v.current.stop(), d.current.isPlaying = !1);
20192
- }), lt(Qe.SEEK_END, () => {
20194
+ }), lt(We.SEEK_END, () => {
20193
20195
  v.current && (v.current.stop(), d.current.isPlaying = !1);
20194
- }), lt(Qe.SCRUBBER_CLICKED, () => {
20196
+ }), lt(We.SCRUBBER_CLICKED, () => {
20195
20197
  v.current && (v.current.stop(), d.current.isPlaying = !1);
20196
20198
  }), ne.useEffect(() => {
20197
20199
  d.current && v.current && (b.current ? (v.current.stop(), d.current.isPlaying = !1, d.current.isDragging = !0) : d.current.isDragging = !1);
20198
20200
  }, [b]), ne.useEffect(() => {
20199
20201
  if (!Bc(w)) {
20200
20202
  const Z = qB(w, (Se) => {
20201
- const { data: Ee, width: Ye, height: ir } = Se, Rt = new Uint8Array(Ee);
20202
- return Yr.Texture.fromBuffer(Rt, Ye, ir);
20203
+ const { data: Ee, width: Ke, height: ir } = Se, Rt = new Uint8Array(Ee);
20204
+ return Yr.Texture.fromBuffer(Rt, Ke, ir);
20203
20205
  }), W = Z.map(
20204
20206
  (Se, Ee) => ({
20205
20207
  texture: Se,
@@ -20237,7 +20239,7 @@ const RD = {
20237
20239
  var se;
20238
20240
  const W = Z + ((se = m.current) == null ? void 0 : se.time());
20239
20241
  v.current && b.current ? (_e(W), ye(), d.current.isPlaying = !1) : m.current && v.current && !d.current.isPlaying && m.current.isActive() && _.current.isActive() && (_e(W), d.current.isPlaying = !0);
20240
- }, qe = () => {
20242
+ }, Ye = () => {
20241
20243
  l(!0);
20242
20244
  };
20243
20245
  return $n(() => {
@@ -20284,7 +20286,7 @@ const RD = {
20284
20286
  alpha: k ? 1 : 0,
20285
20287
  loop: L,
20286
20288
  textures: a,
20287
- onComplete: qe,
20289
+ onComplete: Ye,
20288
20290
  anchor: 0.5,
20289
20291
  forwardRef: v,
20290
20292
  ...k && { interactive: !0, pointerdown: me },
@@ -20417,7 +20419,7 @@ const F5 = ne.forwardRef((t, e) => {
20417
20419
  ...d
20418
20420
  };
20419
20421
  }, [d]);
20420
- const qe = () => {
20422
+ const Ye = () => {
20421
20423
  const W = (/* @__PURE__ */ new Date()).getTime();
20422
20424
  W - i.current < 300 && _ ? _() : m && m(), i.current = W;
20423
20425
  }, Z = () => {
@@ -20442,7 +20444,7 @@ const F5 = ne.forwardRef((t, e) => {
20442
20444
  ...p && !c && {
20443
20445
  interactive: !0,
20444
20446
  buttonMode: !0,
20445
- pointerdown: qe
20447
+ pointerdown: Ye
20446
20448
  },
20447
20449
  ref: a,
20448
20450
  filters: [
@@ -20595,11 +20597,11 @@ const eo = /* @__PURE__ */ Ri(e5), t5 = (t, e, r, n) => {
20595
20597
  const Z = document.createElement("video");
20596
20598
  return Z.src = m, Z.crossOrigin = "Anonymus", Z.autoplay = !1, Z.currentTime = w === 0 ? 1e-3 : w, Z;
20597
20599
  }, [m, w]);
20598
- lt(Qe.PAUSE, () => {
20600
+ lt(We.PAUSE, () => {
20599
20601
  f.current && (f.current.pause(), p.current.isPlaying = !1);
20600
- }), lt(Qe.SCRUBBER_CLICKED, () => {
20602
+ }), lt(We.SCRUBBER_CLICKED, () => {
20601
20603
  f.current && (f.current.pause(), p.current.isPlaying = !1);
20602
- }), lt(Qe.REVERSE_MODE_END, () => {
20604
+ }), lt(We.REVERSE_MODE_END, () => {
20603
20605
  f.current && (f.current.pause(), p.current.isPlaying = !1);
20604
20606
  });
20605
20607
  const Re = ne.useCallback(
@@ -20628,17 +20630,17 @@ const eo = /* @__PURE__ */ Ri(e5), t5 = (t, e, r, n) => {
20628
20630
  Z.currentTime > 0 && !Z.paused && !Z.ended && Z.readyState > Z.HAVE_CURRENT_DATA && f.current.pause(), p.current.isPlaying = !1, v.current && (p.current.progress = v.current.progress());
20629
20631
  }
20630
20632
  }, He = () => {
20631
- }, qe = () => {
20633
+ }, Ye = () => {
20632
20634
  var Z, W;
20633
20635
  if (v.current && (p.current.progress = v.current.progress()), f.current && v.current) {
20634
20636
  const se = w + ((Z = v == null ? void 0 : v.current) == null ? void 0 : Z.time()), Se = Math.abs(
20635
20637
  f.current.currentTime - se
20636
- ), Ee = f.current, Ye = Ee.currentTime > 0 && !Ee.paused && !Ee.ended && Ee.readyState > Ee.HAVE_CURRENT_DATA;
20638
+ ), Ee = f.current, Ke = Ee.currentTime > 0 && !Ee.paused && !Ee.ended && Ee.readyState > Ee.HAVE_CURRENT_DATA;
20637
20639
  X.current ? (f.current.currentTime = se, setTimeout(() => {
20638
20640
  f.current && f.current.play().then(() => {
20639
20641
  p.current.isPlaying = !1, f.current && f.current.pause();
20640
20642
  });
20641
- }, 100), p.current.isPlaying = !1) : (Ye !== p.current.isPlaying || !Ye) && p.current.progress > 0.01 && p.current.progress < 0.99 ? (W = ie.current) != null && W.isActive() && v.current && v.current.isActive() && (Ye || f.current.play(), p.current.isPlaying = !0) : Se > 0.3 && p.current.progress > 0.01 && p.current.progress < 0.99 && (f.current.currentTime = se);
20643
+ }, 100), p.current.isPlaying = !1) : (Ke !== p.current.isPlaying || !Ke) && p.current.progress > 0.01 && p.current.progress < 0.99 ? (W = ie.current) != null && W.isActive() && v.current && v.current.isActive() && (Ke || f.current.play(), p.current.isPlaying = !0) : Se > 0.3 && p.current.progress > 0.01 && p.current.progress < 0.99 && (f.current.currentTime = se);
20642
20644
  }
20643
20645
  };
20644
20646
  return $n(() => {
@@ -20652,7 +20654,7 @@ const eo = /* @__PURE__ */ Ri(e5), t5 = (t, e, r, n) => {
20652
20654
  onStartParams: [w, x],
20653
20655
  onCompleteParams: [],
20654
20656
  onInterrupt: He,
20655
- onUpdate: qe,
20657
+ onUpdate: Ye,
20656
20658
  onUpdateParams: [w, x],
20657
20659
  onPause: () => {
20658
20660
  console.log("onPause video sprite pause", c);
@@ -20697,7 +20699,7 @@ const eo = /* @__PURE__ */ Ri(e5), t5 = (t, e, r, n) => {
20697
20699
  f.current && f.current.pause(), p.current.isWaiting = !0, p.current.isStalled = !1;
20698
20700
  }, Ee = function() {
20699
20701
  p.current.isWaiting = !1, p.current.isStalled = !1;
20700
- }, Ye = function() {
20702
+ }, Ke = function() {
20701
20703
  p.current.isWaiting = !1, p.current.isStalled = !0;
20702
20704
  }, ir = Math.round((Number(w) + Number.EPSILON) * 100) / 100, Rt = Math.round((Number(x) + Number.EPSILON) * 100) / 100, Fr = `${_e}#t=${ir},${Rt}`;
20703
20705
  return Yr.Texture.fromLoader(ye, Fr, c, {
@@ -20708,12 +20710,12 @@ const eo = /* @__PURE__ */ Ri(e5), t5 = (t, e, r, n) => {
20708
20710
  updateFPS: 30
20709
20711
  }
20710
20712
  }).then((sr) => {
20711
- sr && (a(sr), f.current = sr.baseTexture.resource.source, f.current.id = c, f.current.addEventListener("loadedmetadata", W), f.current.addEventListener("ended", se), f.current.addEventListener("loadstart", Se), f.current.addEventListener("canplaythrough", Ee), f.current.addEventListener("stalled", Ye));
20713
+ sr && (a(sr), f.current = sr.baseTexture.resource.source, f.current.id = c, f.current.addEventListener("loadedmetadata", W), f.current.addEventListener("ended", se), f.current.addEventListener("loadstart", Se), f.current.addEventListener("canplaythrough", Ee), f.current.addEventListener("stalled", Ke));
20712
20714
  }), () => {
20713
20715
  f.current && (f.current.pause(), f.current.removeEventListener("loadedmetadata", W), f.current.removeEventListener("ended", se), f.current.removeEventListener("loadstart", Se), f.current.removeEventListener(
20714
20716
  "canplaythrough",
20715
20717
  Ee
20716
- ), f.current.removeEventListener("stalled", Ye));
20718
+ ), f.current.removeEventListener("stalled", Ke));
20717
20719
  };
20718
20720
  }, [_e, c, w, x, ye]), ne.useEffect(() => {
20719
20721
  const Z = setTimeout(() => {
@@ -20780,9 +20782,9 @@ const N5 = (t) => {
20780
20782
  totalDuration: v = 0,
20781
20783
  reverseModeRef: c
20782
20784
  } = Rs(Pi), d = e < 0.2 ? "static" : "none";
20783
- lt(Qe.COMPLETE, () => {
20785
+ lt(We.COMPLETE, () => {
20784
20786
  i.current && (i.current.eventMode = d);
20785
- }), lt(Qe.REVERSE_MODE_END, () => {
20787
+ }), lt(We.REVERSE_MODE_END, () => {
20786
20788
  if (p.current) {
20787
20789
  const _ = p.current.time();
20788
20790
  _ > e && _ < r ? (a.current && (a.current.alpha = 1), i.current && (i.current.alpha = 1, i.current.eventMode = "static")) : (a.current && (a.current.alpha = 0), i.current && (i.current.alpha = 0, i.current.eventMode = "none"));
@@ -20795,7 +20797,7 @@ const N5 = (t) => {
20795
20797
  _ > e && _ < r ? (a.current && (a.current.alpha = 1), i.current && (i.current.alpha = 1)) : (a.current && (a.current.alpha = 0), i.current && (i.current.alpha = 0));
20796
20798
  }
20797
20799
  };
20798
- return lt(Qe.COMPLETE, () => {
20800
+ return lt(We.COMPLETE, () => {
20799
20801
  }), ne.useEffect(() => {
20800
20802
  const _ = _t.context(() => {
20801
20803
  if (i.current && p.current) {
@@ -20838,7 +20840,7 @@ var i5 = /* @__PURE__ */ ((t) => (t.FADE_IN = "FADE_IN", t.FADE_OUT = "FADE_OUT"
20838
20840
  export {
20839
20841
  i5 as Animations,
20840
20842
  s5 as BlendModes,
20841
- Qe as Events,
20843
+ We as Events,
20842
20844
  Pi as GsapPixieContext,
20843
20845
  h5 as GsapPixieContextProvider,
20844
20846
  ID as PixiAnimatedSprite,