@netless/app-slide 0.2.16 → 0.2.18

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/main.es.js CHANGED
@@ -603,7 +603,7 @@ var Slide = function(t) {
603
603
  function w(t3) {
604
604
  return t3 && t3.__local_forage_encoded_blob;
605
605
  }
606
- function E(t3) {
606
+ function S(t3) {
607
607
  var e4 = this, n3 = e4._initReady().then(function() {
608
608
  var t4 = d[e4._dbInfo.name];
609
609
  if (t4 && t4.dbReady)
@@ -611,7 +611,7 @@ var Slide = function(t) {
611
611
  });
612
612
  return l(n3, t3, t3), n3;
613
613
  }
614
- function S(t3, e4, n3, i2) {
614
+ function E(t3, e4, n3, i2) {
615
615
  i2 === void 0 && (i2 = 1);
616
616
  try {
617
617
  var r2 = t3.db.transaction(t3.storeName, e4);
@@ -638,7 +638,7 @@ var Slide = function(t) {
638
638
  throw v(t4, e6), e6;
639
639
  });
640
640
  }(t3).then(function() {
641
- S(t3, e4, n3, i2 - 1);
641
+ E(t3, e4, n3, i2 - 1);
642
642
  });
643
643
  }).catch(n3);
644
644
  n3(r3);
@@ -650,7 +650,7 @@ var Slide = function(t) {
650
650
  for (var i2 in t3)
651
651
  n3[i2] = t3[i2];
652
652
  var r2 = d[n3.name];
653
- r2 || (r2 = { forages: [], db: null, dbReady: null, deferredOperations: [] }, d[n3.name] = r2), r2.forages.push(e4), e4._initReady || (e4._initReady = e4.ready, e4.ready = E);
653
+ r2 || (r2 = { forages: [], db: null, dbReady: null, deferredOperations: [] }, d[n3.name] = r2), r2.forages.push(e4), e4._initReady || (e4._initReady = e4.ready, e4.ready = S);
654
654
  var o2 = [];
655
655
  function a2() {
656
656
  return s.resolve();
@@ -683,7 +683,7 @@ var Slide = function(t) {
683
683
  }(), iterate: function(t3, e4) {
684
684
  var n3 = this, i2 = new s(function(e5, i3) {
685
685
  n3.ready().then(function() {
686
- S(n3._dbInfo, "readonly", function(r2, o2) {
686
+ E(n3._dbInfo, "readonly", function(r2, o2) {
687
687
  if (r2)
688
688
  return i3(r2);
689
689
  try {
@@ -712,7 +712,7 @@ var Slide = function(t) {
712
712
  t3 = h(t3);
713
713
  var i2 = new s(function(e5, i3) {
714
714
  n3.ready().then(function() {
715
- S(n3._dbInfo, "readonly", function(r2, o2) {
715
+ E(n3._dbInfo, "readonly", function(r2, o2) {
716
716
  if (r2)
717
717
  return i3(r2);
718
718
  try {
@@ -747,7 +747,7 @@ var Slide = function(t) {
747
747
  var n5;
748
748
  }) : e4;
749
749
  }).then(function(e5) {
750
- S(i2._dbInfo, "readwrite", function(o3, s2) {
750
+ E(i2._dbInfo, "readwrite", function(o3, s2) {
751
751
  if (o3)
752
752
  return r3(o3);
753
753
  try {
@@ -772,7 +772,7 @@ var Slide = function(t) {
772
772
  t3 = h(t3);
773
773
  var i2 = new s(function(e5, i3) {
774
774
  n3.ready().then(function() {
775
- S(n3._dbInfo, "readwrite", function(r2, o2) {
775
+ E(n3._dbInfo, "readwrite", function(r2, o2) {
776
776
  if (r2)
777
777
  return i3(r2);
778
778
  try {
@@ -795,7 +795,7 @@ var Slide = function(t) {
795
795
  }, clear: function(t3) {
796
796
  var e4 = this, n3 = new s(function(t4, n4) {
797
797
  e4.ready().then(function() {
798
- S(e4._dbInfo, "readwrite", function(i2, r2) {
798
+ E(e4._dbInfo, "readwrite", function(i2, r2) {
799
799
  if (i2)
800
800
  return n4(i2);
801
801
  try {
@@ -816,7 +816,7 @@ var Slide = function(t) {
816
816
  }, length: function(t3) {
817
817
  var e4 = this, n3 = new s(function(t4, n4) {
818
818
  e4.ready().then(function() {
819
- S(e4._dbInfo, "readonly", function(i2, r2) {
819
+ E(e4._dbInfo, "readonly", function(i2, r2) {
820
820
  if (i2)
821
821
  return n4(i2);
822
822
  try {
@@ -836,7 +836,7 @@ var Slide = function(t) {
836
836
  }, key: function(t3, e4) {
837
837
  var n3 = this, i2 = new s(function(e5, i3) {
838
838
  t3 < 0 ? e5(null) : n3.ready().then(function() {
839
- S(n3._dbInfo, "readonly", function(r2, o2) {
839
+ E(n3._dbInfo, "readonly", function(r2, o2) {
840
840
  if (r2)
841
841
  return i3(r2);
842
842
  try {
@@ -857,7 +857,7 @@ var Slide = function(t) {
857
857
  }, keys: function(t3) {
858
858
  var e4 = this, n3 = new s(function(t4, n4) {
859
859
  e4.ready().then(function() {
860
- S(e4._dbInfo, "readonly", function(i2, r2) {
860
+ E(e4._dbInfo, "readonly", function(i2, r2) {
861
861
  if (i2)
862
862
  return n4(i2);
863
863
  try {
@@ -1686,10 +1686,10 @@ var Slide = function(t) {
1686
1686
  !w || b && g[b] || (_2 = _2.substr(2), this.slashes = true);
1687
1687
  }
1688
1688
  if (!g[b] && (w || b && !v[b])) {
1689
- for (var E, S, A = -1, M = 0; M < d.length; M++) {
1689
+ for (var S, E, A = -1, M = 0; M < d.length; M++) {
1690
1690
  (P = _2.indexOf(d[M])) !== -1 && (A === -1 || P < A) && (A = P);
1691
1691
  }
1692
- (S = A === -1 ? _2.lastIndexOf("@") : _2.lastIndexOf("@", A)) !== -1 && (E = _2.slice(0, S), _2 = _2.slice(S + 1), this.auth = decodeURIComponent(E)), A = -1;
1692
+ (E = A === -1 ? _2.lastIndexOf("@") : _2.lastIndexOf("@", A)) !== -1 && (S = _2.slice(0, E), _2 = _2.slice(E + 1), this.auth = decodeURIComponent(S)), A = -1;
1693
1693
  for (M = 0; M < c.length; M++) {
1694
1694
  var P;
1695
1695
  (P = _2.indexOf(c[M])) !== -1 && (A === -1 || P < A) && (A = P);
@@ -1780,26 +1780,26 @@ var Slide = function(t) {
1780
1780
  }
1781
1781
  return n2.slashes = n2.slashes || t2.slashes, n2.href = n2.format(), n2;
1782
1782
  }
1783
- var _2 = n2.pathname && n2.pathname.charAt(0) === "/", x = t2.host || t2.pathname && t2.pathname.charAt(0) === "/", b = x || _2 || n2.host && t2.pathname, T = b, w = n2.pathname && n2.pathname.split("/") || [], E = (f2 = t2.pathname && t2.pathname.split("/") || [], n2.protocol && !v[n2.protocol]);
1784
- if (E && (n2.hostname = "", n2.port = null, n2.host && (w[0] === "" ? w[0] = n2.host : w.unshift(n2.host)), n2.host = "", t2.protocol && (t2.hostname = null, t2.port = null, t2.host && (f2[0] === "" ? f2[0] = t2.host : f2.unshift(t2.host)), t2.host = null), b = b && (f2[0] === "" || w[0] === "")), x)
1783
+ var _2 = n2.pathname && n2.pathname.charAt(0) === "/", x = t2.host || t2.pathname && t2.pathname.charAt(0) === "/", b = x || _2 || n2.host && t2.pathname, T = b, w = n2.pathname && n2.pathname.split("/") || [], S = (f2 = t2.pathname && t2.pathname.split("/") || [], n2.protocol && !v[n2.protocol]);
1784
+ if (S && (n2.hostname = "", n2.port = null, n2.host && (w[0] === "" ? w[0] = n2.host : w.unshift(n2.host)), n2.host = "", t2.protocol && (t2.hostname = null, t2.port = null, t2.host && (f2[0] === "" ? f2[0] = t2.host : f2.unshift(t2.host)), t2.host = null), b = b && (f2[0] === "" || w[0] === "")), x)
1785
1785
  n2.host = t2.host || t2.host === "" ? t2.host : n2.host, n2.hostname = t2.hostname || t2.hostname === "" ? t2.hostname : n2.hostname, n2.search = t2.search, n2.query = t2.query, w = f2;
1786
1786
  else if (f2.length)
1787
1787
  w || (w = []), w.pop(), w = w.concat(f2), n2.search = t2.search, n2.query = t2.query;
1788
1788
  else if (!r.isNullOrUndefined(t2.search)) {
1789
- if (E)
1789
+ if (S)
1790
1790
  n2.hostname = n2.host = w.shift(), (C = !!(n2.host && n2.host.indexOf("@") > 0) && n2.host.split("@")) && (n2.auth = C.shift(), n2.host = n2.hostname = C.shift());
1791
1791
  return n2.search = t2.search, n2.query = t2.query, r.isNull(n2.pathname) && r.isNull(n2.search) || (n2.path = (n2.pathname ? n2.pathname : "") + (n2.search ? n2.search : "")), n2.href = n2.format(), n2;
1792
1792
  }
1793
1793
  if (!w.length)
1794
1794
  return n2.pathname = null, n2.search ? n2.path = "/" + n2.search : n2.path = null, n2.href = n2.format(), n2;
1795
- for (var S = w.slice(-1)[0], A = (n2.host || t2.host || w.length > 1) && (S === "." || S === "..") || S === "", M = 0, P = w.length; P >= 0; P--)
1796
- (S = w[P]) === "." ? w.splice(P, 1) : S === ".." ? (w.splice(P, 1), M++) : M && (w.splice(P, 1), M--);
1795
+ for (var E = w.slice(-1)[0], A = (n2.host || t2.host || w.length > 1) && (E === "." || E === "..") || E === "", M = 0, P = w.length; P >= 0; P--)
1796
+ (E = w[P]) === "." ? w.splice(P, 1) : E === ".." ? (w.splice(P, 1), M++) : M && (w.splice(P, 1), M--);
1797
1797
  if (!b && !T)
1798
1798
  for (; M--; M)
1799
1799
  w.unshift("..");
1800
1800
  !b || w[0] === "" || w[0] && w[0].charAt(0) === "/" || w.unshift(""), A && w.join("/").substr(-1) !== "/" && w.push("");
1801
1801
  var C, R = w[0] === "" || w[0] && w[0].charAt(0) === "/";
1802
- E && (n2.hostname = n2.host = R ? "" : w.length ? w.shift() : "", (C = !!(n2.host && n2.host.indexOf("@") > 0) && n2.host.split("@")) && (n2.auth = C.shift(), n2.host = n2.hostname = C.shift()));
1802
+ S && (n2.hostname = n2.host = R ? "" : w.length ? w.shift() : "", (C = !!(n2.host && n2.host.indexOf("@") > 0) && n2.host.split("@")) && (n2.auth = C.shift(), n2.host = n2.hostname = C.shift()));
1803
1803
  return (b = b || n2.host && w.length) && !R && w.unshift(""), w.length ? n2.pathname = w.join("/") : (n2.pathname = null, n2.path = null), r.isNull(n2.pathname) && r.isNull(n2.search) || (n2.path = (n2.pathname ? n2.pathname : "") + (n2.search ? n2.search : "")), n2.auth = t2.auth || n2.auth, n2.slashes = n2.slashes || t2.slashes, n2.href = n2.format(), n2;
1804
1804
  }, o.prototype.parseHost = function() {
1805
1805
  var t2 = this.host, e2 = a.exec(t2);
@@ -2023,10 +2023,10 @@ var Slide = function(t) {
2023
2023
  var o2, s2;
2024
2024
  if (r2 === P(t2, e2, n2, i2) > 0)
2025
2025
  for (o2 = e2; o2 < n2; o2 += i2)
2026
- s2 = S(o2, t2[o2], t2[o2 + 1], s2);
2026
+ s2 = E(o2, t2[o2], t2[o2 + 1], s2);
2027
2027
  else
2028
2028
  for (o2 = n2 - i2; o2 >= e2; o2 -= i2)
2029
- s2 = S(o2, t2[o2], t2[o2 + 1], s2);
2029
+ s2 = E(o2, t2[o2], t2[o2 + 1], s2);
2030
2030
  return s2 && _(s2, s2.next) && (A(s2), s2 = s2.next), s2;
2031
2031
  }
2032
2032
  function o(t2, e2) {
@@ -2122,7 +2122,7 @@ var Slide = function(t) {
2122
2122
  do {
2123
2123
  for (var h2 = l2.next.next; h2 !== l2.prev; ) {
2124
2124
  if (l2.i !== h2.i && v(l2, h2)) {
2125
- var u2 = E(l2, h2);
2125
+ var u2 = S(l2, h2);
2126
2126
  return l2 = o(l2, l2.next), u2 = o(u2, u2.next), s(l2, e2, n2, i2, r2, a2, 0), void s(u2, e2, n2, i2, r2, a2, 0);
2127
2127
  }
2128
2128
  h2 = h2.next;
@@ -2155,7 +2155,7 @@ var Slide = function(t) {
2155
2155
  }(t2, e2);
2156
2156
  if (!n2)
2157
2157
  return e2;
2158
- var i2 = E(n2, t2);
2158
+ var i2 = S(n2, t2);
2159
2159
  return o(i2, i2.next), o(n2, n2.next);
2160
2160
  }
2161
2161
  function p(t2, e2) {
@@ -2210,11 +2210,11 @@ var Slide = function(t) {
2210
2210
  function w(t2, e2) {
2211
2211
  return y(t2.prev, t2, t2.next) < 0 ? y(t2, e2, t2.next) >= 0 && y(t2, t2.prev, e2) >= 0 : y(t2, e2, t2.prev) < 0 || y(t2, t2.next, e2) < 0;
2212
2212
  }
2213
- function E(t2, e2) {
2213
+ function S(t2, e2) {
2214
2214
  var n2 = new M(t2.i, t2.x, t2.y), i2 = new M(e2.i, e2.x, e2.y), r2 = t2.next, o2 = e2.prev;
2215
2215
  return t2.next = e2, e2.prev = t2, n2.next = r2, r2.prev = n2, i2.next = n2, n2.prev = i2, o2.next = i2, i2.prev = o2, i2;
2216
2216
  }
2217
- function S(t2, e2, n2, i2) {
2217
+ function E(t2, e2, n2, i2) {
2218
2218
  var r2 = new M(t2, e2, n2);
2219
2219
  return i2 ? (r2.next = i2.next, r2.prev = i2, i2.next.prev = r2, i2.next = r2) : (r2.prev = r2, r2.next = r2), r2;
2220
2220
  }
@@ -3317,12 +3317,12 @@ var Slide = function(t) {
3317
3317
  }.call(e, n, e, t)) === void 0 || (t.exports = i) : r !== void 0 && (r.UAParser = T);
3318
3318
  var w = r !== void 0 && (r.jQuery || r.Zepto);
3319
3319
  if (w && !w.ua) {
3320
- var E = new T();
3321
- w.ua = E.getResult(), w.ua.get = function() {
3322
- return E.getUA();
3320
+ var S = new T();
3321
+ w.ua = S.getResult(), w.ua.get = function() {
3322
+ return S.getUA();
3323
3323
  }, w.ua.set = function(t2) {
3324
- E.setUA(t2);
3325
- var e2 = E.getResult();
3324
+ S.setUA(t2);
3325
+ var e2 = S.getResult();
3326
3326
  for (var n2 in e2)
3327
3327
  w.ua[n2] = e2[n2];
3328
3328
  };
@@ -3586,10 +3586,10 @@ var Slide = function(t) {
3586
3586
  if (T && !x)
3587
3587
  return m || (m = new i()), g || u(t2) ? r(t2, e2, n2, p, f, m) : o(t2, e2, y, n2, p, f, m);
3588
3588
  if (!(1 & n2)) {
3589
- var w = x && d.call(t2, "__wrapped__"), E = b && d.call(e2, "__wrapped__");
3590
- if (w || E) {
3591
- var S = w ? t2.value() : t2, A = E ? e2.value() : e2;
3592
- return m || (m = new i()), f(S, A, n2, p, m);
3589
+ var w = x && d.call(t2, "__wrapped__"), S = b && d.call(e2, "__wrapped__");
3590
+ if (w || S) {
3591
+ var E = w ? t2.value() : t2, A = S ? e2.value() : e2;
3592
+ return m || (m = new i()), f(E, A, n2, p, m);
3593
3593
  }
3594
3594
  }
3595
3595
  return !!T && (m || (m = new i()), s(t2, e2, n2, p, f, m));
@@ -3919,8 +3919,8 @@ var Slide = function(t) {
3919
3919
  var i = n(10)(n(4), "WeakMap");
3920
3920
  t.exports = i;
3921
3921
  }, function(t, e, n) {
3922
- var i = n(40), r = n(182), o = n(54), s = n(184), a = n(185), l = n(188), h = n(189), u = n(190), c = n(191), d = n(45), p = n(192), f = n(21), m = n(193), g = n(194), v = n(199), y = n(20), _ = n(29), x = n(201), b = n(9), T = n(203), w = n(28), E = n(33), S = {};
3923
- S["[object Arguments]"] = S["[object Array]"] = S["[object ArrayBuffer]"] = S["[object DataView]"] = S["[object Boolean]"] = S["[object Date]"] = S["[object Float32Array]"] = S["[object Float64Array]"] = S["[object Int8Array]"] = S["[object Int16Array]"] = S["[object Int32Array]"] = S["[object Map]"] = S["[object Number]"] = S["[object Object]"] = S["[object RegExp]"] = S["[object Set]"] = S["[object String]"] = S["[object Symbol]"] = S["[object Uint8Array]"] = S["[object Uint8ClampedArray]"] = S["[object Uint16Array]"] = S["[object Uint32Array]"] = true, S["[object Error]"] = S["[object Function]"] = S["[object WeakMap]"] = false, t.exports = function t2(e2, n2, A, M, P, C) {
3922
+ var i = n(40), r = n(182), o = n(54), s = n(184), a = n(185), l = n(188), h = n(189), u = n(190), c = n(191), d = n(45), p = n(192), f = n(21), m = n(193), g = n(194), v = n(199), y = n(20), _ = n(29), x = n(201), b = n(9), T = n(203), w = n(28), S = n(33), E = {};
3923
+ E["[object Arguments]"] = E["[object Array]"] = E["[object ArrayBuffer]"] = E["[object DataView]"] = E["[object Boolean]"] = E["[object Date]"] = E["[object Float32Array]"] = E["[object Float64Array]"] = E["[object Int8Array]"] = E["[object Int16Array]"] = E["[object Int32Array]"] = E["[object Map]"] = E["[object Number]"] = E["[object Object]"] = E["[object RegExp]"] = E["[object Set]"] = E["[object String]"] = E["[object Symbol]"] = E["[object Uint8Array]"] = E["[object Uint8ClampedArray]"] = E["[object Uint16Array]"] = E["[object Uint32Array]"] = true, E["[object Error]"] = E["[object Function]"] = E["[object WeakMap]"] = false, t.exports = function t2(e2, n2, A, M, P, C) {
3924
3924
  var R, I = 1 & n2, L = 2 & n2, N = 4 & n2;
3925
3925
  if (A && (R = P ? A(e2, M, P, C) : A(e2)), R !== void 0)
3926
3926
  return R;
@@ -3938,7 +3938,7 @@ var Slide = function(t) {
3938
3938
  if (R = L || F ? {} : v(e2), !I)
3939
3939
  return L ? c(e2, a(R, e2)) : u(e2, s(R, e2));
3940
3940
  } else {
3941
- if (!S[D])
3941
+ if (!E[D])
3942
3942
  return P ? e2 : {};
3943
3943
  R = g(e2, D, I);
3944
3944
  }
@@ -3952,7 +3952,7 @@ var Slide = function(t) {
3952
3952
  }) : x(e2) && e2.forEach(function(i2, r2) {
3953
3953
  R.set(r2, t2(i2, n2, A, r2, e2, C));
3954
3954
  });
3955
- var B = O ? void 0 : (N ? L ? p : d : L ? E : w)(e2);
3955
+ var B = O ? void 0 : (N ? L ? p : d : L ? S : w)(e2);
3956
3956
  return r(B || e2, function(i2, r2) {
3957
3957
  B && (i2 = e2[r2 = i2]), o(R, r2, t2(i2, n2, A, r2, e2, C));
3958
3958
  }), R;
@@ -4136,15 +4136,15 @@ var Slide = function(t) {
4136
4136
  n.r(e), n.d(e, "ErrorType", function() {
4137
4137
  return by;
4138
4138
  }), n.d(e, "preloadResource", function() {
4139
- return zE;
4139
+ return zS;
4140
4140
  }), n.d(e, "delay", function() {
4141
- return JE;
4141
+ return JS;
4142
4142
  }), n.d(e, "waitUntil", function() {
4143
- return QE;
4143
+ return QS;
4144
4144
  }), n.d(e, "SLIDE_EVENTS", function() {
4145
- return KE;
4145
+ return KS;
4146
4146
  }), n.d(e, "Slide", function() {
4147
- return nS;
4147
+ return nE;
4148
4148
  });
4149
4149
  var i = {};
4150
4150
  n.r(i), n.d(i, "isMobile", function() {
@@ -4242,11 +4242,11 @@ var Slide = function(t) {
4242
4242
  }), n.d(r, "GC_MODES", function() {
4243
4243
  return Tu;
4244
4244
  }), n.d(r, "MASK_TYPES", function() {
4245
- return Eu;
4245
+ return Su;
4246
4246
  }), n.d(r, "MIPMAP_MODES", function() {
4247
4247
  return _u;
4248
4248
  }), n.d(r, "MSAA_QUALITY", function() {
4249
- return Su;
4249
+ return Eu;
4250
4250
  }), n.d(r, "PRECISION", function() {
4251
4251
  return wu;
4252
4252
  }), n.d(r, "RENDERER_TYPE", function() {
@@ -4274,7 +4274,7 @@ var Slide = function(t) {
4274
4274
  }), n.d(r, "PI_2", function() {
4275
4275
  return bc;
4276
4276
  }), n.d(r, "Point", function() {
4277
- return Ec;
4277
+ return Sc;
4278
4278
  }), n.d(r, "Polygon", function() {
4279
4279
  return Cc;
4280
4280
  }), n.d(r, "RAD_TO_DEG", function() {
@@ -4336,7 +4336,7 @@ var Slide = function(t) {
4336
4336
  }), n.d(r, "Buffer", function() {
4337
4337
  return Zd;
4338
4338
  }), n.d(r, "BufferResource", function() {
4339
- return Sd;
4339
+ return Ed;
4340
4340
  }), n.d(r, "CanvasResource", function() {
4341
4341
  return Id;
4342
4342
  }), n.d(r, "ContextSystem", function() {
@@ -4394,7 +4394,7 @@ var Slide = function(t) {
4394
4394
  }), n.d(r, "Renderer", function() {
4395
4395
  return Af;
4396
4396
  }), n.d(r, "Resource", function() {
4397
- return Ed;
4397
+ return Sd;
4398
4398
  }), n.d(r, "SVGResource", function() {
4399
4399
  return Od;
4400
4400
  }), n.d(r, "ScissorSystem", function() {
@@ -4502,7 +4502,7 @@ var Slide = function(t) {
4502
4502
  }), n.d(r, "InteractionManager", function() {
4503
4503
  return Pm;
4504
4504
  }), n.d(r, "InteractionTrackingData", function() {
4505
- return Em;
4505
+ return Sm;
4506
4506
  }), n.d(r, "interactiveTarget", function() {
4507
4507
  return Am;
4508
4508
  }), n.d(r, "Spritesheet", function() {
@@ -4910,9 +4910,9 @@ var Slide = function(t) {
4910
4910
  if (Array.isArray(i2)) {
4911
4911
  e3 = [];
4912
4912
  for (let t3 = 0, n3 = i2.length; t3 < n3; t3++)
4913
- i2[t3].isDataTexture ? e3.push(E(i2[t3].image)) : e3.push(E(i2[t3]));
4913
+ i2[t3].isDataTexture ? e3.push(S(i2[t3].image)) : e3.push(S(i2[t3]));
4914
4914
  } else
4915
- e3 = E(i2);
4915
+ e3 = S(i2);
4916
4916
  t2.images[i2.uuid] = { uuid: i2.uuid, url: e3 };
4917
4917
  }
4918
4918
  n2.image = i2.uuid;
@@ -4953,11 +4953,11 @@ var Slide = function(t) {
4953
4953
  t2 === true && this.version++;
4954
4954
  }
4955
4955
  }
4956
- function E(t2) {
4956
+ function S(t2) {
4957
4957
  return typeof HTMLImageElement != "undefined" && t2 instanceof HTMLImageElement || typeof HTMLCanvasElement != "undefined" && t2 instanceof HTMLCanvasElement || typeof ImageBitmap != "undefined" && t2 instanceof ImageBitmap ? b.getDataURL(t2) : t2.data ? { data: Array.prototype.slice.call(t2.data), width: t2.width, height: t2.height, type: t2.data.constructor.name } : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
4958
4958
  }
4959
4959
  w.DEFAULT_IMAGE = void 0, w.DEFAULT_MAPPING = 300, w.prototype.isTexture = true;
4960
- class S {
4960
+ class E {
4961
4961
  constructor(t2 = 0, e2 = 0, n2 = 0, i2 = 1) {
4962
4962
  this.x = t2, this.y = e2, this.z = n2, this.w = i2;
4963
4963
  }
@@ -5153,10 +5153,10 @@ var Slide = function(t) {
5153
5153
  return this.x = Math.random(), this.y = Math.random(), this.z = Math.random(), this.w = Math.random(), this;
5154
5154
  }
5155
5155
  }
5156
- S.prototype.isVector4 = true;
5156
+ E.prototype.isVector4 = true;
5157
5157
  class A extends l {
5158
5158
  constructor(t2, e2, n2 = {}) {
5159
- super(), this.width = t2, this.height = e2, this.depth = 1, this.scissor = new S(0, 0, t2, e2), this.scissorTest = false, this.viewport = new S(0, 0, t2, e2), this.texture = new w(void 0, n2.mapping, n2.wrapS, n2.wrapT, n2.magFilter, n2.minFilter, n2.format, n2.type, n2.anisotropy, n2.encoding), this.texture.image = { width: t2, height: e2, depth: 1 }, this.texture.generateMipmaps = n2.generateMipmaps !== void 0 && n2.generateMipmaps, this.texture.minFilter = n2.minFilter !== void 0 ? n2.minFilter : 1006, this.depthBuffer = n2.depthBuffer === void 0 || n2.depthBuffer, this.stencilBuffer = n2.stencilBuffer !== void 0 && n2.stencilBuffer, this.depthTexture = n2.depthTexture !== void 0 ? n2.depthTexture : null;
5159
+ super(), this.width = t2, this.height = e2, this.depth = 1, this.scissor = new E(0, 0, t2, e2), this.scissorTest = false, this.viewport = new E(0, 0, t2, e2), this.texture = new w(void 0, n2.mapping, n2.wrapS, n2.wrapT, n2.magFilter, n2.minFilter, n2.format, n2.type, n2.anisotropy, n2.encoding), this.texture.image = { width: t2, height: e2, depth: 1 }, this.texture.generateMipmaps = n2.generateMipmaps !== void 0 && n2.generateMipmaps, this.texture.minFilter = n2.minFilter !== void 0 ? n2.minFilter : 1006, this.depthBuffer = n2.depthBuffer === void 0 || n2.depthBuffer, this.stencilBuffer = n2.stencilBuffer !== void 0 && n2.stencilBuffer, this.depthTexture = n2.depthTexture !== void 0 ? n2.depthTexture : null;
5160
5160
  }
5161
5161
  setTexture(t2) {
5162
5162
  t2.image = { width: this.width, height: this.height, depth: this.depth }, this.texture = t2;
@@ -6068,8 +6068,8 @@ var Slide = function(t) {
6068
6068
  return this.multiplyMatrices(t2, this);
6069
6069
  }
6070
6070
  multiplyMatrices(t2, e2) {
6071
- const n2 = t2.elements, i2 = e2.elements, r2 = this.elements, o2 = n2[0], s2 = n2[4], a2 = n2[8], l2 = n2[12], h2 = n2[1], u2 = n2[5], c2 = n2[9], d2 = n2[13], p2 = n2[2], f2 = n2[6], m2 = n2[10], g2 = n2[14], v2 = n2[3], y2 = n2[7], _2 = n2[11], x2 = n2[15], b2 = i2[0], T2 = i2[4], w2 = i2[8], E2 = i2[12], S2 = i2[1], A2 = i2[5], M2 = i2[9], P2 = i2[13], C2 = i2[2], R2 = i2[6], I2 = i2[10], L2 = i2[14], N2 = i2[3], O2 = i2[7], D2 = i2[11], F2 = i2[15];
6072
- return r2[0] = o2 * b2 + s2 * S2 + a2 * C2 + l2 * N2, r2[4] = o2 * T2 + s2 * A2 + a2 * R2 + l2 * O2, r2[8] = o2 * w2 + s2 * M2 + a2 * I2 + l2 * D2, r2[12] = o2 * E2 + s2 * P2 + a2 * L2 + l2 * F2, r2[1] = h2 * b2 + u2 * S2 + c2 * C2 + d2 * N2, r2[5] = h2 * T2 + u2 * A2 + c2 * R2 + d2 * O2, r2[9] = h2 * w2 + u2 * M2 + c2 * I2 + d2 * D2, r2[13] = h2 * E2 + u2 * P2 + c2 * L2 + d2 * F2, r2[2] = p2 * b2 + f2 * S2 + m2 * C2 + g2 * N2, r2[6] = p2 * T2 + f2 * A2 + m2 * R2 + g2 * O2, r2[10] = p2 * w2 + f2 * M2 + m2 * I2 + g2 * D2, r2[14] = p2 * E2 + f2 * P2 + m2 * L2 + g2 * F2, r2[3] = v2 * b2 + y2 * S2 + _2 * C2 + x2 * N2, r2[7] = v2 * T2 + y2 * A2 + _2 * R2 + x2 * O2, r2[11] = v2 * w2 + y2 * M2 + _2 * I2 + x2 * D2, r2[15] = v2 * E2 + y2 * P2 + _2 * L2 + x2 * F2, this;
6071
+ const n2 = t2.elements, i2 = e2.elements, r2 = this.elements, o2 = n2[0], s2 = n2[4], a2 = n2[8], l2 = n2[12], h2 = n2[1], u2 = n2[5], c2 = n2[9], d2 = n2[13], p2 = n2[2], f2 = n2[6], m2 = n2[10], g2 = n2[14], v2 = n2[3], y2 = n2[7], _2 = n2[11], x2 = n2[15], b2 = i2[0], T2 = i2[4], w2 = i2[8], S2 = i2[12], E2 = i2[1], A2 = i2[5], M2 = i2[9], P2 = i2[13], C2 = i2[2], R2 = i2[6], I2 = i2[10], L2 = i2[14], N2 = i2[3], O2 = i2[7], D2 = i2[11], F2 = i2[15];
6072
+ return r2[0] = o2 * b2 + s2 * E2 + a2 * C2 + l2 * N2, r2[4] = o2 * T2 + s2 * A2 + a2 * R2 + l2 * O2, r2[8] = o2 * w2 + s2 * M2 + a2 * I2 + l2 * D2, r2[12] = o2 * S2 + s2 * P2 + a2 * L2 + l2 * F2, r2[1] = h2 * b2 + u2 * E2 + c2 * C2 + d2 * N2, r2[5] = h2 * T2 + u2 * A2 + c2 * R2 + d2 * O2, r2[9] = h2 * w2 + u2 * M2 + c2 * I2 + d2 * D2, r2[13] = h2 * S2 + u2 * P2 + c2 * L2 + d2 * F2, r2[2] = p2 * b2 + f2 * E2 + m2 * C2 + g2 * N2, r2[6] = p2 * T2 + f2 * A2 + m2 * R2 + g2 * O2, r2[10] = p2 * w2 + f2 * M2 + m2 * I2 + g2 * D2, r2[14] = p2 * S2 + f2 * P2 + m2 * L2 + g2 * F2, r2[3] = v2 * b2 + y2 * E2 + _2 * C2 + x2 * N2, r2[7] = v2 * T2 + y2 * A2 + _2 * R2 + x2 * O2, r2[11] = v2 * w2 + y2 * M2 + _2 * I2 + x2 * D2, r2[15] = v2 * S2 + y2 * P2 + _2 * L2 + x2 * F2, this;
6073
6073
  }
6074
6074
  multiplyScalar(t2) {
6075
6075
  const e2 = this.elements;
@@ -6286,7 +6286,7 @@ var Slide = function(t) {
6286
6286
  }
6287
6287
  }
6288
6288
  let yt = 0;
6289
- const _t = new C(), xt = new P(), bt = new st(), Tt = new C(), wt = new C(), Et = new C(), St = new P(), At = new C(1, 0, 0), Mt = new C(0, 1, 0), Pt = new C(0, 0, 1), Ct = { type: "added" }, Rt = { type: "removed" };
6289
+ const _t = new C(), xt = new P(), bt = new st(), Tt = new C(), wt = new C(), St = new C(), Et = new P(), At = new C(1, 0, 0), Mt = new C(0, 1, 0), Pt = new C(0, 0, 1), Ct = { type: "added" }, Rt = { type: "removed" };
6290
6290
  class It extends l {
6291
6291
  constructor() {
6292
6292
  super(), Object.defineProperty(this, "id", { value: yt++ }), this.uuid = d(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = It.DefaultUp.clone();
@@ -6407,10 +6407,10 @@ var Slide = function(t) {
6407
6407
  return this.updateWorldMatrix(true, false), t2.setFromMatrixPosition(this.matrixWorld);
6408
6408
  }
6409
6409
  getWorldQuaternion(t2) {
6410
- return this.updateWorldMatrix(true, false), this.matrixWorld.decompose(wt, t2, Et), t2;
6410
+ return this.updateWorldMatrix(true, false), this.matrixWorld.decompose(wt, t2, St), t2;
6411
6411
  }
6412
6412
  getWorldScale(t2) {
6413
- return this.updateWorldMatrix(true, false), this.matrixWorld.decompose(wt, St, t2), t2;
6413
+ return this.updateWorldMatrix(true, false), this.matrixWorld.decompose(wt, Et, t2), t2;
6414
6414
  }
6415
6415
  getWorldDirection(t2) {
6416
6416
  this.updateWorldMatrix(true, false);
@@ -6940,7 +6940,7 @@ var Slide = function(t) {
6940
6940
  let n2 = 0;
6941
6941
  for (let i2 = 0, r2 = t2.length; i2 < r2; i2++) {
6942
6942
  let r3 = t2[i2];
6943
- r3 === void 0 && (console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined", i2), r3 = new S()), e2[n2++] = r3.x, e2[n2++] = r3.y, e2[n2++] = r3.z, e2[n2++] = r3.w;
6943
+ r3 === void 0 && (console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined", i2), r3 = new E()), e2[n2++] = r3.x, e2[n2++] = r3.y, e2[n2++] = r3.z, e2[n2++] = r3.w;
6944
6944
  }
6945
6945
  return this;
6946
6946
  }
@@ -7189,18 +7189,18 @@ var Slide = function(t) {
7189
7189
  for (let t4 = i3, r3 = i3 + e4.count; t4 < r3; t4 += 3)
7190
7190
  _2(n2[t4 + 0], n2[t4 + 1], n2[t4 + 2]);
7191
7191
  }
7192
- const b2 = new C(), T2 = new C(), w2 = new C(), E2 = new C();
7193
- function S2(t3) {
7194
- w2.fromArray(r2, 3 * t3), E2.copy(w2);
7192
+ const b2 = new C(), T2 = new C(), w2 = new C(), S2 = new C();
7193
+ function E2(t3) {
7194
+ w2.fromArray(r2, 3 * t3), S2.copy(w2);
7195
7195
  const e3 = l2[t3];
7196
- b2.copy(e3), b2.sub(w2.multiplyScalar(w2.dot(e3))).normalize(), T2.crossVectors(E2, e3);
7196
+ b2.copy(e3), b2.sub(w2.multiplyScalar(w2.dot(e3))).normalize(), T2.crossVectors(S2, e3);
7197
7197
  const n3 = T2.dot(h2[t3]) < 0 ? -1 : 1;
7198
7198
  a2[4 * t3] = b2.x, a2[4 * t3 + 1] = b2.y, a2[4 * t3 + 2] = b2.z, a2[4 * t3 + 3] = n3;
7199
7199
  }
7200
7200
  for (let t3 = 0, e3 = x2.length; t3 < e3; ++t3) {
7201
7201
  const e4 = x2[t3], i3 = e4.start;
7202
7202
  for (let t4 = i3, r3 = i3 + e4.count; t4 < r3; t4 += 3)
7203
- S2(n2[t4 + 0]), S2(n2[t4 + 1]), S2(n2[t4 + 2]);
7203
+ E2(n2[t4 + 0]), E2(n2[t4 + 1]), E2(n2[t4 + 2]);
7204
7204
  }
7205
7205
  }
7206
7206
  computeVertexNormals() {
@@ -7347,7 +7347,7 @@ var Slide = function(t) {
7347
7347
  }
7348
7348
  }
7349
7349
  fe.prototype.isBufferGeometry = true;
7350
- const me = new st(), ge = new ot(), ve = new Q(), ye = new C(), _e = new C(), xe = new C(), be = new C(), Te = new C(), we = new C(), Ee = new C(), Se = new C(), Ae = new C(), Me = new y(), Pe = new y(), Ce = new y(), Re = new C(), Ie = new C();
7350
+ const me = new st(), ge = new ot(), ve = new Q(), ye = new C(), _e = new C(), xe = new C(), be = new C(), Te = new C(), we = new C(), Se = new C(), Ee = new C(), Ae = new C(), Me = new y(), Pe = new y(), Ce = new y(), Re = new C(), Ie = new C();
7351
7351
  class Le extends It {
7352
7352
  constructor(t2 = new fe(), e2 = new Kt()) {
7353
7353
  super(), this.type = "Mesh", this.geometry = t2, this.material = e2, this.updateMorphTargets();
@@ -7421,12 +7421,12 @@ var Slide = function(t) {
7421
7421
  ye.fromBufferAttribute(r2, h2), _e.fromBufferAttribute(r2, u2), xe.fromBufferAttribute(r2, c2);
7422
7422
  const d2 = t2.morphTargetInfluences;
7423
7423
  if (e2.morphTargets && o2 && d2) {
7424
- Ee.set(0, 0, 0), Se.set(0, 0, 0), Ae.set(0, 0, 0);
7424
+ Se.set(0, 0, 0), Ee.set(0, 0, 0), Ae.set(0, 0, 0);
7425
7425
  for (let t3 = 0, e3 = o2.length; t3 < e3; t3++) {
7426
7426
  const e4 = d2[t3], n3 = o2[t3];
7427
- e4 !== 0 && (be.fromBufferAttribute(n3, h2), Te.fromBufferAttribute(n3, u2), we.fromBufferAttribute(n3, c2), s2 ? (Ee.addScaledVector(be, e4), Se.addScaledVector(Te, e4), Ae.addScaledVector(we, e4)) : (Ee.addScaledVector(be.sub(ye), e4), Se.addScaledVector(Te.sub(_e), e4), Ae.addScaledVector(we.sub(xe), e4)));
7427
+ e4 !== 0 && (be.fromBufferAttribute(n3, h2), Te.fromBufferAttribute(n3, u2), we.fromBufferAttribute(n3, c2), s2 ? (Se.addScaledVector(be, e4), Ee.addScaledVector(Te, e4), Ae.addScaledVector(we, e4)) : (Se.addScaledVector(be.sub(ye), e4), Ee.addScaledVector(Te.sub(_e), e4), Ae.addScaledVector(we.sub(xe), e4)));
7428
7428
  }
7429
- ye.add(Ee), _e.add(Se), xe.add(Ae);
7429
+ ye.add(Se), _e.add(Ee), xe.add(Ae);
7430
7430
  }
7431
7431
  t2.isSkinnedMesh && (t2.boneTransform(h2, ye), t2.boneTransform(u2, _e), t2.boneTransform(c2, xe));
7432
7432
  const p2 = function(t3, e3, n3, i3, r3, o3, s3, a3) {
@@ -7453,14 +7453,14 @@ var Slide = function(t) {
7453
7453
  const a2 = [], l2 = [], h2 = [], u2 = [];
7454
7454
  let c2 = 0, d2 = 0;
7455
7455
  function p2(t3, e3, n3, i3, r3, o3, p3, f2, m2, g2, v2) {
7456
- const y2 = o3 / m2, _2 = p3 / g2, x2 = o3 / 2, b2 = p3 / 2, T2 = f2 / 2, w2 = m2 + 1, E2 = g2 + 1;
7457
- let S2 = 0, A2 = 0;
7456
+ const y2 = o3 / m2, _2 = p3 / g2, x2 = o3 / 2, b2 = p3 / 2, T2 = f2 / 2, w2 = m2 + 1, S2 = g2 + 1;
7457
+ let E2 = 0, A2 = 0;
7458
7458
  const M2 = new C();
7459
- for (let o4 = 0; o4 < E2; o4++) {
7459
+ for (let o4 = 0; o4 < S2; o4++) {
7460
7460
  const s3 = o4 * _2 - b2;
7461
7461
  for (let a3 = 0; a3 < w2; a3++) {
7462
7462
  const c3 = a3 * y2 - x2;
7463
- M2[t3] = c3 * i3, M2[e3] = s3 * r3, M2[n3] = T2, l2.push(M2.x, M2.y, M2.z), M2[t3] = 0, M2[e3] = 0, M2[n3] = f2 > 0 ? 1 : -1, h2.push(M2.x, M2.y, M2.z), u2.push(a3 / m2), u2.push(1 - o4 / g2), S2 += 1;
7463
+ M2[t3] = c3 * i3, M2[e3] = s3 * r3, M2[n3] = T2, l2.push(M2.x, M2.y, M2.z), M2[t3] = 0, M2[e3] = 0, M2[n3] = f2 > 0 ? 1 : -1, h2.push(M2.x, M2.y, M2.z), u2.push(a3 / m2), u2.push(1 - o4 / g2), E2 += 1;
7464
7464
  }
7465
7465
  }
7466
7466
  for (let t4 = 0; t4 < g2; t4++)
@@ -7468,7 +7468,7 @@ var Slide = function(t) {
7468
7468
  const n4 = c2 + e4 + w2 * t4, i4 = c2 + e4 + w2 * (t4 + 1), r4 = c2 + (e4 + 1) + w2 * (t4 + 1), o4 = c2 + (e4 + 1) + w2 * t4;
7469
7469
  a2.push(n4, i4, o4), a2.push(i4, r4, o4), A2 += 6;
7470
7470
  }
7471
- s2.addGroup(d2, A2, v2), d2 += A2, c2 += S2;
7471
+ s2.addGroup(d2, A2, v2), d2 += A2, c2 += E2;
7472
7472
  }
7473
7473
  p2("z", "y", "x", -1, -1, n2, e2, t2, o2, r2, 0), p2("z", "y", "x", 1, -1, n2, e2, -t2, o2, r2, 1), p2("x", "z", "y", 1, 1, t2, n2, e2, i2, o2, 2), p2("x", "z", "y", 1, -1, t2, n2, -e2, i2, o2, 3), p2("x", "y", "z", 1, -1, t2, e2, n2, i2, r2, 4), p2("x", "y", "z", -1, -1, t2, e2, -n2, i2, r2, 5), this.setIndex(a2), this.setAttribute("position", new oe(l2, 3)), this.setAttribute("normal", new oe(h2, 3)), this.setAttribute("uv", new oe(u2, 2));
7474
7474
  }
@@ -8351,14 +8351,14 @@ var Slide = function(t) {
8351
8351
  }
8352
8352
  }
8353
8353
  _n.prototype.isDataTexture3D = true;
8354
- const xn = new w(), bn = new yn(), Tn = new _n(), wn = new je(), En = [], Sn = [], An = new Float32Array(16), Mn = new Float32Array(9), Pn = new Float32Array(4);
8354
+ const xn = new w(), bn = new yn(), Tn = new _n(), wn = new je(), Sn = [], En = [], An = new Float32Array(16), Mn = new Float32Array(9), Pn = new Float32Array(4);
8355
8355
  function Cn(t2, e2, n2) {
8356
8356
  const i2 = t2[0];
8357
8357
  if (i2 <= 0 || i2 > 0)
8358
8358
  return t2;
8359
8359
  const r2 = e2 * n2;
8360
- let o2 = En[r2];
8361
- if (o2 === void 0 && (o2 = new Float32Array(r2), En[r2] = o2), e2 !== 0) {
8360
+ let o2 = Sn[r2];
8361
+ if (o2 === void 0 && (o2 = new Float32Array(r2), Sn[r2] = o2), e2 !== 0) {
8362
8362
  i2.toArray(o2, 0);
8363
8363
  for (let i3 = 1, r3 = 0; i3 !== e2; ++i3)
8364
8364
  r3 += n2, t2[i3].toArray(o2, r3);
@@ -8378,8 +8378,8 @@ var Slide = function(t) {
8378
8378
  t2[n2] = e2[n2];
8379
8379
  }
8380
8380
  function Ln(t2, e2) {
8381
- let n2 = Sn[e2];
8382
- n2 === void 0 && (n2 = new Int32Array(e2), Sn[e2] = n2);
8381
+ let n2 = En[e2];
8382
+ n2 === void 0 && (n2 = new Int32Array(e2), En[e2] = n2);
8383
8383
  for (let i2 = 0; i2 !== e2; ++i2)
8384
8384
  n2[i2] = t2.allocateTextureUnit();
8385
8385
  return n2;
@@ -8743,7 +8743,7 @@ var Slide = function(t) {
8743
8743
  return n2;
8744
8744
  };
8745
8745
  let wi = 0;
8746
- function Ei(t2) {
8746
+ function Si(t2) {
8747
8747
  switch (t2) {
8748
8748
  case 3e3:
8749
8749
  return ["Linear", "( value )"];
@@ -8765,7 +8765,7 @@ var Slide = function(t) {
8765
8765
  return console.warn("THREE.WebGLProgram: Unsupported encoding:", t2), ["Linear", "( value )"];
8766
8766
  }
8767
8767
  }
8768
- function Si(t2, e2, n2) {
8768
+ function Ei(t2, e2, n2) {
8769
8769
  const i2 = t2.getShaderParameter(e2, 35713), r2 = t2.getShaderInfoLog(e2).trim();
8770
8770
  if (i2 && r2 === "")
8771
8771
  return "";
@@ -8777,11 +8777,11 @@ var Slide = function(t) {
8777
8777
  }(t2.getShaderSource(e2));
8778
8778
  }
8779
8779
  function Ai(t2, e2) {
8780
- const n2 = Ei(e2);
8780
+ const n2 = Si(e2);
8781
8781
  return "vec4 " + t2 + "( vec4 value ) { return " + n2[0] + "ToLinear" + n2[1] + "; }";
8782
8782
  }
8783
8783
  function Mi(t2, e2) {
8784
- const n2 = Ei(e2);
8784
+ const n2 = Si(e2);
8785
8785
  return "vec4 " + t2 + "( vec4 value ) { return LinearTo" + n2[0] + n2[1] + "; }";
8786
8786
  }
8787
8787
  function Pi(t2, e2) {
@@ -8903,7 +8903,7 @@ var Slide = function(t) {
8903
8903
  let i3 = true, o3 = true;
8904
8904
  if (r2.getProgramParameter(m2, 35714) === false) {
8905
8905
  i3 = false;
8906
- const e4 = Si(r2, x2, "vertex"), n4 = Si(r2, b2, "fragment");
8906
+ const e4 = Ei(r2, x2, "vertex"), n4 = Ei(r2, b2, "fragment");
8907
8907
  console.error("THREE.WebGLProgram: shader error: ", r2.getError(), "35715", r2.getProgramParameter(m2, 35715), "gl.getProgramInfoLog", t3, e4, n4);
8908
8908
  } else
8909
8909
  t3 !== "" ? console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()", t3) : e3 !== "" && n3 !== "" || (o3 = false);
@@ -8943,14 +8943,14 @@ var Slide = function(t) {
8943
8943
  return i3 < e3.length ? (console.warn("THREE.WebGLRenderer: Skeleton has " + e3.length + " bones. This GPU supports " + i3 + "."), 0) : i3;
8944
8944
  }
8945
8945
  }(v2) : 0;
8946
- let w2, E2;
8946
+ let w2, S2;
8947
8947
  if (r3.precision !== null && (d2 = i2.getMaxPrecision(r3.precision), d2 !== r3.precision && console.warn("THREE.WebGLProgram.getParameters:", r3.precision, "not supported, using", d2, "instead.")), b2) {
8948
8948
  const t3 = nn[b2];
8949
- w2 = t3.vertexShader, E2 = t3.fragmentShader;
8949
+ w2 = t3.vertexShader, S2 = t3.fragmentShader;
8950
8950
  } else
8951
- w2 = r3.vertexShader, E2 = r3.fragmentShader;
8952
- const S2 = t2.getRenderTarget();
8953
- return { isWebGL2: a2, shaderID: b2, shaderName: r3.type, vertexShader: w2, fragmentShader: E2, defines: r3.defines, isRawShaderMaterial: r3.isRawShaderMaterial === true, glslVersion: r3.glslVersion, precision: d2, instancing: v2.isInstancedMesh === true, instancingColor: v2.isInstancedMesh === true && v2.instanceColor !== null, supportsVertexTextures: c2, outputEncoding: S2 !== null ? m2(S2.texture) : t2.outputEncoding, map: !!r3.map, mapEncoding: m2(r3.map), matcap: !!r3.matcap, matcapEncoding: m2(r3.matcap), envMap: !!x2, envMapMode: x2 && x2.mapping, envMapEncoding: m2(x2), envMapCubeUV: !!x2 && (x2.mapping === 306 || x2.mapping === 307), lightMap: !!r3.lightMap, lightMapEncoding: m2(r3.lightMap), aoMap: !!r3.aoMap, emissiveMap: !!r3.emissiveMap, emissiveMapEncoding: m2(r3.emissiveMap), bumpMap: !!r3.bumpMap, normalMap: !!r3.normalMap, objectSpaceNormalMap: r3.normalMapType === 1, tangentSpaceNormalMap: r3.normalMapType === 0, clearcoatMap: !!r3.clearcoatMap, clearcoatRoughnessMap: !!r3.clearcoatRoughnessMap, clearcoatNormalMap: !!r3.clearcoatNormalMap, displacementMap: !!r3.displacementMap, roughnessMap: !!r3.roughnessMap, metalnessMap: !!r3.metalnessMap, specularMap: !!r3.specularMap, alphaMap: !!r3.alphaMap, gradientMap: !!r3.gradientMap, sheen: !!r3.sheen, transmission: !!r3.transmission, transmissionMap: !!r3.transmissionMap, thicknessMap: !!r3.thicknessMap, combine: r3.combine, vertexTangents: r3.normalMap && r3.vertexTangents, vertexColors: r3.vertexColors, vertexAlphas: r3.vertexColors === true && v2.geometry && v2.geometry.attributes.color && v2.geometry.attributes.color.itemSize === 4, vertexUvs: !!(r3.map || r3.bumpMap || r3.normalMap || r3.specularMap || r3.alphaMap || r3.emissiveMap || r3.roughnessMap || r3.metalnessMap || r3.clearcoatMap || r3.clearcoatRoughnessMap || r3.clearcoatNormalMap || r3.displacementMap || r3.transmissionMap || r3.thicknessMap), uvsVertexOnly: !(r3.map || r3.bumpMap || r3.normalMap || r3.specularMap || r3.alphaMap || r3.emissiveMap || r3.roughnessMap || r3.metalnessMap || r3.clearcoatNormalMap || r3.transmission || r3.transmissionMap || r3.thicknessMap || !r3.displacementMap), fog: !!y2, useFog: r3.fog, fogExp2: y2 && y2.isFogExp2, flatShading: !!r3.flatShading, sizeAttenuation: r3.sizeAttenuation, logarithmicDepthBuffer: l2, skinning: v2.isSkinnedMesh === true && T2 > 0, maxBones: T2, useVertexTexture: h2, morphTargets: r3.morphTargets, morphNormals: r3.morphNormals, numDirLights: s3.directional.length, numPointLights: s3.point.length, numSpotLights: s3.spot.length, numRectAreaLights: s3.rectArea.length, numHemiLights: s3.hemi.length, numDirLightShadows: s3.directionalShadowMap.length, numPointLightShadows: s3.pointShadowMap.length, numSpotLightShadows: s3.spotShadowMap.length, numClippingPlanes: o2.numPlanes, numClipIntersection: o2.numIntersection, dithering: r3.dithering, shadowMapEnabled: t2.shadowMap.enabled && f3.length > 0, shadowMapType: t2.shadowMap.type, toneMapping: r3.toneMapped ? t2.toneMapping : 0, physicallyCorrectLights: t2.physicallyCorrectLights, premultipliedAlpha: r3.premultipliedAlpha, alphaTest: r3.alphaTest, doubleSided: r3.side === 2, flipSided: r3.side === 1, depthPacking: r3.depthPacking !== void 0 && r3.depthPacking, index0AttributeName: r3.index0AttributeName, extensionDerivatives: r3.extensions && r3.extensions.derivatives, extensionFragDepth: r3.extensions && r3.extensions.fragDepth, extensionDrawBuffers: r3.extensions && r3.extensions.drawBuffers, extensionShaderTextureLOD: r3.extensions && r3.extensions.shaderTextureLOD, rendererExtensionFragDepth: a2 || n2.has("EXT_frag_depth"), rendererExtensionDrawBuffers: a2 || n2.has("WEBGL_draw_buffers"), rendererExtensionShaderTextureLod: a2 || n2.has("EXT_shader_texture_lod"), customProgramCacheKey: r3.customProgramCacheKey() };
8951
+ w2 = r3.vertexShader, S2 = r3.fragmentShader;
8952
+ const E2 = t2.getRenderTarget();
8953
+ return { isWebGL2: a2, shaderID: b2, shaderName: r3.type, vertexShader: w2, fragmentShader: S2, defines: r3.defines, isRawShaderMaterial: r3.isRawShaderMaterial === true, glslVersion: r3.glslVersion, precision: d2, instancing: v2.isInstancedMesh === true, instancingColor: v2.isInstancedMesh === true && v2.instanceColor !== null, supportsVertexTextures: c2, outputEncoding: E2 !== null ? m2(E2.texture) : t2.outputEncoding, map: !!r3.map, mapEncoding: m2(r3.map), matcap: !!r3.matcap, matcapEncoding: m2(r3.matcap), envMap: !!x2, envMapMode: x2 && x2.mapping, envMapEncoding: m2(x2), envMapCubeUV: !!x2 && (x2.mapping === 306 || x2.mapping === 307), lightMap: !!r3.lightMap, lightMapEncoding: m2(r3.lightMap), aoMap: !!r3.aoMap, emissiveMap: !!r3.emissiveMap, emissiveMapEncoding: m2(r3.emissiveMap), bumpMap: !!r3.bumpMap, normalMap: !!r3.normalMap, objectSpaceNormalMap: r3.normalMapType === 1, tangentSpaceNormalMap: r3.normalMapType === 0, clearcoatMap: !!r3.clearcoatMap, clearcoatRoughnessMap: !!r3.clearcoatRoughnessMap, clearcoatNormalMap: !!r3.clearcoatNormalMap, displacementMap: !!r3.displacementMap, roughnessMap: !!r3.roughnessMap, metalnessMap: !!r3.metalnessMap, specularMap: !!r3.specularMap, alphaMap: !!r3.alphaMap, gradientMap: !!r3.gradientMap, sheen: !!r3.sheen, transmission: !!r3.transmission, transmissionMap: !!r3.transmissionMap, thicknessMap: !!r3.thicknessMap, combine: r3.combine, vertexTangents: r3.normalMap && r3.vertexTangents, vertexColors: r3.vertexColors, vertexAlphas: r3.vertexColors === true && v2.geometry && v2.geometry.attributes.color && v2.geometry.attributes.color.itemSize === 4, vertexUvs: !!(r3.map || r3.bumpMap || r3.normalMap || r3.specularMap || r3.alphaMap || r3.emissiveMap || r3.roughnessMap || r3.metalnessMap || r3.clearcoatMap || r3.clearcoatRoughnessMap || r3.clearcoatNormalMap || r3.displacementMap || r3.transmissionMap || r3.thicknessMap), uvsVertexOnly: !(r3.map || r3.bumpMap || r3.normalMap || r3.specularMap || r3.alphaMap || r3.emissiveMap || r3.roughnessMap || r3.metalnessMap || r3.clearcoatNormalMap || r3.transmission || r3.transmissionMap || r3.thicknessMap || !r3.displacementMap), fog: !!y2, useFog: r3.fog, fogExp2: y2 && y2.isFogExp2, flatShading: !!r3.flatShading, sizeAttenuation: r3.sizeAttenuation, logarithmicDepthBuffer: l2, skinning: v2.isSkinnedMesh === true && T2 > 0, maxBones: T2, useVertexTexture: h2, morphTargets: r3.morphTargets, morphNormals: r3.morphNormals, numDirLights: s3.directional.length, numPointLights: s3.point.length, numSpotLights: s3.spot.length, numRectAreaLights: s3.rectArea.length, numHemiLights: s3.hemi.length, numDirLightShadows: s3.directionalShadowMap.length, numPointLightShadows: s3.pointShadowMap.length, numSpotLightShadows: s3.spotShadowMap.length, numClippingPlanes: o2.numPlanes, numClipIntersection: o2.numIntersection, dithering: r3.dithering, shadowMapEnabled: t2.shadowMap.enabled && f3.length > 0, shadowMapType: t2.shadowMap.type, toneMapping: r3.toneMapped ? t2.toneMapping : 0, physicallyCorrectLights: t2.physicallyCorrectLights, premultipliedAlpha: r3.premultipliedAlpha, alphaTest: r3.alphaTest, doubleSided: r3.side === 2, flipSided: r3.side === 1, depthPacking: r3.depthPacking !== void 0 && r3.depthPacking, index0AttributeName: r3.index0AttributeName, extensionDerivatives: r3.extensions && r3.extensions.derivatives, extensionFragDepth: r3.extensions && r3.extensions.fragDepth, extensionDrawBuffers: r3.extensions && r3.extensions.drawBuffers, extensionShaderTextureLOD: r3.extensions && r3.extensions.shaderTextureLOD, rendererExtensionFragDepth: a2 || n2.has("EXT_frag_depth"), rendererExtensionDrawBuffers: a2 || n2.has("WEBGL_draw_buffers"), rendererExtensionShaderTextureLod: a2 || n2.has("EXT_shader_texture_lod"), customProgramCacheKey: r3.customProgramCacheKey() };
8954
8954
  }, getProgramCacheKey: function(e3) {
8955
8955
  const n3 = [];
8956
8956
  if (e3.shaderID ? n3.push(e3.shaderID) : (n3.push(e3.fragmentShader), n3.push(e3.vertexShader)), e3.defines !== void 0)
@@ -9206,7 +9206,7 @@ var Slide = function(t) {
9206
9206
  er.prototype.isMeshDistanceMaterial = true;
9207
9207
  function nr(t2, e2, n2) {
9208
9208
  let i2 = new Je();
9209
- const r2 = new y(), o2 = new y(), s2 = new S(), a2 = [], l2 = [], h2 = {}, u2 = n2.maxTextureSize, c2 = { 0: 1, 1: 0, 2: 2 }, d2 = new Be({ defines: { SAMPLE_RATE: 2 / 8, HALF_SAMPLE_RATE: 1 / 8 }, uniforms: { shadow_pass: { value: null }, resolution: { value: new y() }, radius: { value: 4 } }, vertexShader: "void main() {\n gl_Position = vec4( position, 1.0 );\n}", fragmentShader: "uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n float mean = 0.0;\n float squared_mean = 0.0;\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n for ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n #ifdef HORIZONTAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean * HALF_SAMPLE_RATE;\n squared_mean = squared_mean * HALF_SAMPLE_RATE;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}" }), p2 = d2.clone();
9209
+ const r2 = new y(), o2 = new y(), s2 = new E(), a2 = [], l2 = [], h2 = {}, u2 = n2.maxTextureSize, c2 = { 0: 1, 1: 0, 2: 2 }, d2 = new Be({ defines: { SAMPLE_RATE: 2 / 8, HALF_SAMPLE_RATE: 1 / 8 }, uniforms: { shadow_pass: { value: null }, resolution: { value: new y() }, radius: { value: 4 } }, vertexShader: "void main() {\n gl_Position = vec4( position, 1.0 );\n}", fragmentShader: "uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n float mean = 0.0;\n float squared_mean = 0.0;\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n for ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n #ifdef HORIZONTAL_PASS\n vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n mean += distribution.x;\n squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n #else\n float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n mean += depth;\n squared_mean += depth * depth;\n #endif\n }\n mean = mean * HALF_SAMPLE_RATE;\n squared_mean = squared_mean * HALF_SAMPLE_RATE;\n float std_dev = sqrt( squared_mean - mean * mean );\n gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}" }), p2 = d2.clone();
9210
9210
  p2.defines.HORIZONTAL_PASS = 1;
9211
9211
  const f2 = new fe();
9212
9212
  f2.setAttribute("position", new ee(new Float32Array([-1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5]), 3));
@@ -9307,9 +9307,9 @@ var Slide = function(t) {
9307
9307
  const i2 = n2.isWebGL2;
9308
9308
  const r2 = new function() {
9309
9309
  let e3 = false;
9310
- const n3 = new S();
9310
+ const n3 = new E();
9311
9311
  let i3 = null;
9312
- const r3 = new S(0, 0, 0, 0);
9312
+ const r3 = new E(0, 0, 0, 0);
9313
9313
  return { setMask: function(n4) {
9314
9314
  i3 === n4 || e3 || (t2.colorMask(n4, n4, n4, n4), i3 = n4);
9315
9315
  }, setLocked: function(t3) {
@@ -9385,13 +9385,13 @@ var Slide = function(t) {
9385
9385
  e3 = false, n3 = null, i3 = null, r3 = null, o3 = null, s3 = null, a3 = null, l3 = null, h3 = null;
9386
9386
  } };
9387
9387
  }();
9388
- let a2 = {}, l2 = null, h2 = {}, u2 = null, c2 = false, d2 = null, p2 = null, f2 = null, m2 = null, g2 = null, v2 = null, y2 = null, _2 = false, x2 = null, b2 = null, T2 = null, w2 = null, E2 = null;
9388
+ let a2 = {}, l2 = null, h2 = {}, u2 = null, c2 = false, d2 = null, p2 = null, f2 = null, m2 = null, g2 = null, v2 = null, y2 = null, _2 = false, x2 = null, b2 = null, T2 = null, w2 = null, S2 = null;
9389
9389
  const A2 = t2.getParameter(35661);
9390
9390
  let M2 = false, P2 = 0;
9391
9391
  const C2 = t2.getParameter(7938);
9392
9392
  C2.indexOf("WebGL") !== -1 ? (P2 = parseFloat(/^WebGL (\d)/.exec(C2)[1]), M2 = P2 >= 1) : C2.indexOf("OpenGL ES") !== -1 && (P2 = parseFloat(/^OpenGL ES (\d)/.exec(C2)[1]), M2 = P2 >= 2);
9393
9393
  let R2 = null, I2 = {};
9394
- const L2 = t2.getParameter(3088), N2 = t2.getParameter(2978), O2 = new S().fromArray(L2), D2 = new S().fromArray(N2);
9394
+ const L2 = t2.getParameter(3088), N2 = t2.getParameter(2978), O2 = new E().fromArray(L2), D2 = new E().fromArray(N2);
9395
9395
  function F2(e3, n3, i3) {
9396
9396
  const r3 = new Uint8Array(4), o3 = t2.createTexture();
9397
9397
  t2.bindTexture(e3, o3), t2.texParameteri(e3, 10241, 9728), t2.texParameteri(e3, 10240, 9728);
@@ -9466,7 +9466,7 @@ var Slide = function(t) {
9466
9466
  e3 !== 0 ? (B2(2884), e3 !== b2 && (e3 === 1 ? t2.cullFace(1029) : e3 === 2 ? t2.cullFace(1028) : t2.cullFace(1032))) : k2(2884), b2 = e3;
9467
9467
  }
9468
9468
  function W2(e3, n3, i3) {
9469
- e3 ? (B2(32823), w2 === n3 && E2 === i3 || (t2.polygonOffset(n3, i3), w2 = n3, E2 = i3)) : k2(32823);
9469
+ e3 ? (B2(32823), w2 === n3 && S2 === i3 || (t2.polygonOffset(n3, i3), w2 = n3, S2 = i3)) : k2(32823);
9470
9470
  }
9471
9471
  function X2(e3) {
9472
9472
  e3 === void 0 && (e3 = 33984 + A2 - 1), R2 !== e3 && (t2.activeTexture(e3), R2 = e3);
@@ -9517,7 +9517,7 @@ var Slide = function(t) {
9517
9517
  }, viewport: function(e3) {
9518
9518
  D2.equals(e3) === false && (t2.viewport(e3.x, e3.y, e3.z, e3.w), D2.copy(e3));
9519
9519
  }, reset: function() {
9520
- t2.disable(3042), t2.disable(2884), t2.disable(2929), t2.disable(32823), t2.disable(3089), t2.disable(2960), t2.disable(32926), t2.blendEquation(32774), t2.blendFunc(1, 0), t2.blendFuncSeparate(1, 0, 1, 0), t2.colorMask(true, true, true, true), t2.clearColor(0, 0, 0, 0), t2.depthMask(true), t2.depthFunc(513), t2.clearDepth(1), t2.stencilMask(4294967295), t2.stencilFunc(519, 0, 4294967295), t2.stencilOp(7680, 7680, 7680), t2.clearStencil(0), t2.cullFace(1029), t2.frontFace(2305), t2.polygonOffset(0, 0), t2.activeTexture(33984), t2.bindFramebuffer(36160, null), i2 === true && (t2.bindFramebuffer(36009, null), t2.bindFramebuffer(36008, null)), t2.useProgram(null), t2.lineWidth(1), t2.scissor(0, 0, t2.canvas.width, t2.canvas.height), t2.viewport(0, 0, t2.canvas.width, t2.canvas.height), a2 = {}, R2 = null, I2 = {}, l2 = null, h2 = {}, u2 = null, c2 = false, d2 = null, p2 = null, f2 = null, m2 = null, g2 = null, v2 = null, y2 = null, _2 = false, x2 = null, b2 = null, T2 = null, w2 = null, E2 = null, O2.set(0, 0, t2.canvas.width, t2.canvas.height), D2.set(0, 0, t2.canvas.width, t2.canvas.height), r2.reset(), o2.reset(), s2.reset();
9520
+ t2.disable(3042), t2.disable(2884), t2.disable(2929), t2.disable(32823), t2.disable(3089), t2.disable(2960), t2.disable(32926), t2.blendEquation(32774), t2.blendFunc(1, 0), t2.blendFuncSeparate(1, 0, 1, 0), t2.colorMask(true, true, true, true), t2.clearColor(0, 0, 0, 0), t2.depthMask(true), t2.depthFunc(513), t2.clearDepth(1), t2.stencilMask(4294967295), t2.stencilFunc(519, 0, 4294967295), t2.stencilOp(7680, 7680, 7680), t2.clearStencil(0), t2.cullFace(1029), t2.frontFace(2305), t2.polygonOffset(0, 0), t2.activeTexture(33984), t2.bindFramebuffer(36160, null), i2 === true && (t2.bindFramebuffer(36009, null), t2.bindFramebuffer(36008, null)), t2.useProgram(null), t2.lineWidth(1), t2.scissor(0, 0, t2.canvas.width, t2.canvas.height), t2.viewport(0, 0, t2.canvas.width, t2.canvas.height), a2 = {}, R2 = null, I2 = {}, l2 = null, h2 = {}, u2 = null, c2 = false, d2 = null, p2 = null, f2 = null, m2 = null, g2 = null, v2 = null, y2 = null, _2 = false, x2 = null, b2 = null, T2 = null, w2 = null, S2 = null, O2.set(0, 0, t2.canvas.width, t2.canvas.height), D2.set(0, 0, t2.canvas.width, t2.canvas.height), r2.reset(), o2.reset(), s2.reset();
9521
9521
  } };
9522
9522
  }
9523
9523
  function rr(t2, e2, n2, i2, r2, o2, s2) {
@@ -9568,18 +9568,18 @@ var Slide = function(t) {
9568
9568
  function w2(t3) {
9569
9569
  return t3 === 1003 || t3 === 1004 || t3 === 1005 ? 9728 : 9729;
9570
9570
  }
9571
- function E2(e3) {
9571
+ function S2(e3) {
9572
9572
  const n3 = e3.target;
9573
- n3.removeEventListener("dispose", E2), function(e4) {
9573
+ n3.removeEventListener("dispose", S2), function(e4) {
9574
9574
  const n4 = i2.get(e4);
9575
9575
  if (n4.__webglInit === void 0)
9576
9576
  return;
9577
9577
  t2.deleteTexture(n4.__webglTexture), i2.remove(e4);
9578
9578
  }(n3), n3.isVideoTexture && d2.delete(n3), s2.memory.textures--;
9579
9579
  }
9580
- function S2(e3) {
9580
+ function E2(e3) {
9581
9581
  const n3 = e3.target;
9582
- n3.removeEventListener("dispose", S2), function(e4) {
9582
+ n3.removeEventListener("dispose", E2), function(e4) {
9583
9583
  const n4 = e4.texture, r3 = i2.get(e4), o3 = i2.get(n4);
9584
9584
  if (!e4)
9585
9585
  return;
@@ -9670,7 +9670,7 @@ var Slide = function(t) {
9670
9670
  }
9671
9671
  }
9672
9672
  function L2(e3, n3) {
9673
- e3.__webglInit === void 0 && (e3.__webglInit = true, n3.addEventListener("dispose", E2), e3.__webglTexture = t2.createTexture(), s2.memory.textures++);
9673
+ e3.__webglInit === void 0 && (e3.__webglInit = true, n3.addEventListener("dispose", S2), e3.__webglTexture = t2.createTexture(), s2.memory.textures++);
9674
9674
  }
9675
9675
  function N2(e3, i3, r3) {
9676
9676
  let s3 = 3553;
@@ -9783,7 +9783,7 @@ var Slide = function(t) {
9783
9783
  t3.version > 0 && r3.__version !== t3.version ? N2(r3, t3, e3) : (n2.activeTexture(33984 + e3), n2.bindTexture(32879, r3.__webglTexture));
9784
9784
  }, this.setTextureCube = P2, this.setupRenderTarget = function(e3) {
9785
9785
  const l3 = e3.texture, h3 = i2.get(e3), u3 = i2.get(l3);
9786
- e3.addEventListener("dispose", S2), e3.isWebGLMultipleRenderTargets !== true && (u3.__webglTexture = t2.createTexture(), u3.__version = l3.version, s2.memory.textures++);
9786
+ e3.addEventListener("dispose", E2), e3.isWebGLMultipleRenderTargets !== true && (u3.__webglTexture = t2.createTexture(), u3.__version = l3.version, s2.memory.textures++);
9787
9787
  const c3 = e3.isWebGLCubeRenderTarget === true, d3 = e3.isWebGLMultipleRenderTargets === true, p3 = e3.isWebGLMultisampleRenderTarget === true, f3 = l3.isDataTexture3D || l3.isDataTexture2DArray, m3 = _2(e3) || a2;
9788
9788
  if (!a2 || l3.format !== 1022 || l3.type !== 1015 && l3.type !== 1016 || (l3.format = 1023, console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")), c3) {
9789
9789
  h3.__webglFramebuffer = [];
@@ -9999,9 +9999,9 @@ var Slide = function(t) {
9999
9999
  const n2 = this, i2 = t2.state;
10000
10000
  let r2 = null, o2 = 1, s2 = null, a2 = "local-floor", l2 = null, h2 = null, u2 = null, c2 = null;
10001
10001
  const d2 = [], p2 = /* @__PURE__ */ new Map(), f2 = new Ge();
10002
- f2.layers.enable(1), f2.viewport = new S();
10002
+ f2.layers.enable(1), f2.viewport = new E();
10003
10003
  const m2 = new Ge();
10004
- m2.layers.enable(2), m2.viewport = new S();
10004
+ m2.layers.enable(2), m2.viewport = new E();
10005
10005
  const g2 = [f2, m2], v2 = new sr();
10006
10006
  v2.layers.enable(1), v2.layers.enable(2);
10007
10007
  let y2 = null, _2 = null;
@@ -10060,7 +10060,7 @@ var Slide = function(t) {
10060
10060
  s2 = await r2.requestReferenceSpace(a2), P2.setContext(r2), P2.start(), n2.isPresenting = true, n2.dispatchEvent({ type: "sessionstart" });
10061
10061
  }
10062
10062
  };
10063
- const w2 = new C(), E2 = new C();
10063
+ const w2 = new C(), S2 = new C();
10064
10064
  function A2(t3, e3) {
10065
10065
  e3 === null ? t3.matrixWorld.copy(t3.matrix) : t3.matrixWorld.multiplyMatrices(e3.matrixWorld, t3.matrix), t3.matrixWorldInverse.copy(t3.matrixWorld).invert();
10066
10066
  }
@@ -10077,8 +10077,8 @@ var Slide = function(t) {
10077
10077
  for (let t4 = 0, e4 = i3.length; t4 < e4; t4++)
10078
10078
  i3[t4].updateMatrixWorld(true);
10079
10079
  n3.length === 2 ? function(t4, e4, n4) {
10080
- w2.setFromMatrixPosition(e4.matrixWorld), E2.setFromMatrixPosition(n4.matrixWorld);
10081
- const i4 = w2.distanceTo(E2), r3 = e4.projectionMatrix.elements, o3 = n4.projectionMatrix.elements, s3 = r3[14] / (r3[10] - 1), a3 = r3[14] / (r3[10] + 1), l3 = (r3[9] + 1) / r3[5], h3 = (r3[9] - 1) / r3[5], u3 = (r3[8] - 1) / r3[0], c3 = (o3[8] + 1) / o3[0], d3 = s3 * u3, p3 = s3 * c3, f3 = i4 / (-u3 + c3), m3 = f3 * -u3;
10080
+ w2.setFromMatrixPosition(e4.matrixWorld), S2.setFromMatrixPosition(n4.matrixWorld);
10081
+ const i4 = w2.distanceTo(S2), r3 = e4.projectionMatrix.elements, o3 = n4.projectionMatrix.elements, s3 = r3[14] / (r3[10] - 1), a3 = r3[14] / (r3[10] + 1), l3 = (r3[9] + 1) / r3[5], h3 = (r3[9] - 1) / r3[5], u3 = (r3[8] - 1) / r3[0], c3 = (o3[8] + 1) / o3[0], d3 = s3 * u3, p3 = s3 * c3, f3 = i4 / (-u3 + c3), m3 = f3 * -u3;
10082
10082
  e4.matrixWorld.decompose(t4.position, t4.quaternion, t4.scale), t4.translateX(m3), t4.translateZ(f3), t4.matrixWorld.compose(t4.position, t4.quaternion, t4.scale), t4.matrixWorldInverse.copy(t4.matrixWorld).invert();
10083
10083
  const g3 = s3 + f3, v3 = a3 + f3, y3 = d3 - m3, _3 = p3 + (i4 - m3), x3 = l3 * a3 / v3 * g3, b3 = h3 * a3 / v3 * g3;
10084
10084
  t4.projectionMatrix.makePerspective(y3, _3, x3, b3, g3, v3);
@@ -10203,9 +10203,9 @@ var Slide = function(t) {
10203
10203
  this.domElement = e2, this.debug = { checkShaderErrors: true }, this.autoClear = true, this.autoClearColor = true, this.autoClearDepth = true, this.autoClearStencil = true, this.sortObjects = true, this.clippingPlanes = [], this.localClippingEnabled = false, this.gammaFactor = 2, this.outputEncoding = 3e3, this.physicallyCorrectLights = false, this.toneMapping = 0, this.toneMappingExposure = 1;
10204
10204
  const m2 = this;
10205
10205
  let g2 = false, v2 = 0, y2 = 0, _2 = null, x2 = -1, b2 = null;
10206
- const T2 = new S(), w2 = new S();
10207
- let E2 = null, P2 = e2.width, R2 = e2.height, I2 = 1, L2 = null, N2 = null;
10208
- const O2 = new S(0, 0, P2, R2), D2 = new S(0, 0, P2, R2);
10206
+ const T2 = new E(), w2 = new E();
10207
+ let S2 = null, P2 = e2.width, R2 = e2.height, I2 = 1, L2 = null, N2 = null;
10208
+ const O2 = new E(0, 0, P2, R2), D2 = new E(0, 0, P2, R2);
10209
10209
  let F2 = false;
10210
10210
  const U2 = [], B2 = new Je();
10211
10211
  let k2 = false, G2 = false, H2 = null;
@@ -10317,7 +10317,7 @@ var Slide = function(t) {
10317
10317
  }, this.clearStencil = function() {
10318
10318
  this.clear(false, false, true);
10319
10319
  }, this.dispose = function() {
10320
- e2.removeEventListener("webglcontextlost", _t2, false), e2.removeEventListener("webglcontextrestored", xt2, false), rt2.dispose(), ot2.dispose(), J2.dispose(), K2.dispose(), et2.dispose(), ft2.dispose(), yt2.dispose(), yt2.removeEventListener("sessionstart", wt2), yt2.removeEventListener("sessionend", Et2), H2 && (H2.dispose(), H2 = null), St2.stop();
10320
+ e2.removeEventListener("webglcontextlost", _t2, false), e2.removeEventListener("webglcontextrestored", xt2, false), rt2.dispose(), ot2.dispose(), J2.dispose(), K2.dispose(), et2.dispose(), ft2.dispose(), yt2.dispose(), yt2.removeEventListener("sessionstart", wt2), yt2.removeEventListener("sessionend", St2), H2 && (H2.dispose(), H2 = null), Et2.stop();
10321
10321
  }, this.renderBufferImmediate = function(t3, e3) {
10322
10322
  ft2.initAttributes();
10323
10323
  const n3 = J2.get(t3);
@@ -10372,12 +10372,12 @@ var Slide = function(t) {
10372
10372
  };
10373
10373
  let Tt2 = null;
10374
10374
  function wt2() {
10375
- St2.stop();
10375
+ Et2.stop();
10376
10376
  }
10377
- function Et2() {
10378
- St2.start();
10377
+ function St2() {
10378
+ Et2.start();
10379
10379
  }
10380
- const St2 = new Qe();
10380
+ const Et2 = new Qe();
10381
10381
  function At2(t3, e3, n3) {
10382
10382
  const i3 = e3.isScene === true ? e3.overrideMaterial : null;
10383
10383
  for (let r3 = 0, o3 = t3.length; r3 < o3; r3++) {
@@ -10451,14 +10451,14 @@ var Slide = function(t) {
10451
10451
  const t4 = i3.skeleton;
10452
10452
  t4 && (Y2.floatVertexTextures ? (t4.boneTexture === null && t4.computeBoneTexture(), y3.setValue(mt2, "boneTexture", t4.boneTexture, Q2), y3.setValue(mt2, "boneTextureSize", t4.boneTextureSize)) : y3.setOptional(mt2, t4, "boneMatrices"));
10453
10453
  }
10454
- var w3, E3;
10455
- return (g3 || h3.receiveShadow !== i3.receiveShadow) && (h3.receiveShadow = i3.receiveShadow, y3.setValue(mt2, "receiveShadow", i3.receiveShadow)), g3 && (y3.setValue(mt2, "toneMappingExposure", m2.toneMappingExposure), h3.needsLights && (E3 = v3, (w3 = T3).ambientLightColor.needsUpdate = E3, w3.lightProbe.needsUpdate = E3, w3.directionalLights.needsUpdate = E3, w3.directionalLightShadows.needsUpdate = E3, w3.pointLights.needsUpdate = E3, w3.pointLightShadows.needsUpdate = E3, w3.spotLights.needsUpdate = E3, w3.spotLightShadows.needsUpdate = E3, w3.rectAreaLights.needsUpdate = E3, w3.hemisphereLights.needsUpdate = E3), r3 && n3.fog && it2.refreshFogUniforms(T3, r3), it2.refreshMaterialUniforms(T3, n3, I2, R2, H2), bi.upload(mt2, h3.uniformsList, T3, Q2)), n3.isShaderMaterial && n3.uniformsNeedUpdate === true && (bi.upload(mt2, h3.uniformsList, T3, Q2), n3.uniformsNeedUpdate = false), n3.isSpriteMaterial && y3.setValue(mt2, "center", i3.center), y3.setValue(mt2, "modelViewMatrix", i3.modelViewMatrix), y3.setValue(mt2, "normalMatrix", i3.normalMatrix), y3.setValue(mt2, "modelMatrix", i3.matrixWorld), p3;
10454
+ var w3, S3;
10455
+ return (g3 || h3.receiveShadow !== i3.receiveShadow) && (h3.receiveShadow = i3.receiveShadow, y3.setValue(mt2, "receiveShadow", i3.receiveShadow)), g3 && (y3.setValue(mt2, "toneMappingExposure", m2.toneMappingExposure), h3.needsLights && (S3 = v3, (w3 = T3).ambientLightColor.needsUpdate = S3, w3.lightProbe.needsUpdate = S3, w3.directionalLights.needsUpdate = S3, w3.directionalLightShadows.needsUpdate = S3, w3.pointLights.needsUpdate = S3, w3.pointLightShadows.needsUpdate = S3, w3.spotLights.needsUpdate = S3, w3.spotLightShadows.needsUpdate = S3, w3.rectAreaLights.needsUpdate = S3, w3.hemisphereLights.needsUpdate = S3), r3 && n3.fog && it2.refreshFogUniforms(T3, r3), it2.refreshMaterialUniforms(T3, n3, I2, R2, H2), bi.upload(mt2, h3.uniformsList, T3, Q2)), n3.isShaderMaterial && n3.uniformsNeedUpdate === true && (bi.upload(mt2, h3.uniformsList, T3, Q2), n3.uniformsNeedUpdate = false), n3.isSpriteMaterial && y3.setValue(mt2, "center", i3.center), y3.setValue(mt2, "modelViewMatrix", i3.modelViewMatrix), y3.setValue(mt2, "normalMatrix", i3.normalMatrix), y3.setValue(mt2, "modelMatrix", i3.matrixWorld), p3;
10456
10456
  }
10457
- St2.setAnimationLoop(function(t3) {
10457
+ Et2.setAnimationLoop(function(t3) {
10458
10458
  Tt2 && Tt2(t3);
10459
- }), typeof window != "undefined" && St2.setContext(window), this.setAnimationLoop = function(t3) {
10460
- Tt2 = t3, yt2.setAnimationLoop(t3), t3 === null ? St2.stop() : St2.start();
10461
- }, yt2.addEventListener("sessionstart", wt2), yt2.addEventListener("sessionend", Et2), this.render = function(t3, e3) {
10459
+ }), typeof window != "undefined" && Et2.setContext(window), this.setAnimationLoop = function(t3) {
10460
+ Tt2 = t3, yt2.setAnimationLoop(t3), t3 === null ? Et2.stop() : Et2.start();
10461
+ }, yt2.addEventListener("sessionstart", wt2), yt2.addEventListener("sessionend", St2), this.render = function(t3, e3) {
10462
10462
  if (e3 !== void 0 && e3.isCamera !== true)
10463
10463
  return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
10464
10464
  if (g2 === true)
@@ -10524,9 +10524,9 @@ var Slide = function(t) {
10524
10524
  const n4 = t3.texture;
10525
10525
  (n4.isDataTexture3D || n4.isDataTexture2DArray) && (o3 = true);
10526
10526
  const s3 = J2.get(t3).__webglFramebuffer;
10527
- t3.isWebGLCubeRenderTarget ? (i3 = s3[e3], r3 = true) : i3 = t3.isWebGLMultisampleRenderTarget ? J2.get(t3).__webglMultisampledFramebuffer : s3, T2.copy(t3.viewport), w2.copy(t3.scissor), E2 = t3.scissorTest;
10527
+ t3.isWebGLCubeRenderTarget ? (i3 = s3[e3], r3 = true) : i3 = t3.isWebGLMultisampleRenderTarget ? J2.get(t3).__webglMultisampledFramebuffer : s3, T2.copy(t3.viewport), w2.copy(t3.scissor), S2 = t3.scissorTest;
10528
10528
  } else
10529
- T2.copy(O2).multiplyScalar(I2).floor(), w2.copy(D2).multiplyScalar(I2).floor(), E2 = F2;
10529
+ T2.copy(O2).multiplyScalar(I2).floor(), w2.copy(D2).multiplyScalar(I2).floor(), S2 = F2;
10530
10530
  if (q2.bindFramebuffer(36160, i3) && Y2.drawBuffers) {
10531
10531
  let e4 = false;
10532
10532
  if (t3)
@@ -10543,7 +10543,7 @@ var Slide = function(t) {
10543
10543
  U2.length === 1 && U2[0] === 1029 || (U2[0] = 1029, U2.length = 1, e4 = true);
10544
10544
  e4 && (Y2.isWebGL2 ? mt2.drawBuffers(U2) : X2.get("WEBGL_draw_buffers").drawBuffersWEBGL(U2));
10545
10545
  }
10546
- if (q2.viewport(T2), q2.scissor(w2), q2.setScissorTest(E2), r3) {
10546
+ if (q2.viewport(T2), q2.scissor(w2), q2.setScissorTest(S2), r3) {
10547
10547
  const i4 = J2.get(t3.texture);
10548
10548
  mt2.framebufferTexture2D(36160, 36064, 34069 + e3, i4.__webglTexture, n3);
10549
10549
  } else if (o3) {
@@ -10749,7 +10749,7 @@ var Slide = function(t) {
10749
10749
  }
10750
10750
  let xr;
10751
10751
  _r.prototype.isSpriteMaterial = true;
10752
- const br = new C(), Tr = new C(), wr = new C(), Er = new y(), Sr = new y(), Ar = new st(), Mr = new C(), Pr = new C(), Cr = new C(), Rr = new y(), Ir = new y(), Lr = new y();
10752
+ const br = new C(), Tr = new C(), wr = new C(), Sr = new y(), Er = new y(), Ar = new st(), Mr = new C(), Pr = new C(), Cr = new C(), Rr = new y(), Ir = new y(), Lr = new y();
10753
10753
  class Nr extends It {
10754
10754
  constructor(t2) {
10755
10755
  if (super(), this.type = "Sprite", xr === void 0) {
@@ -10777,10 +10777,10 @@ var Slide = function(t) {
10777
10777
  }
10778
10778
  }
10779
10779
  function Or(t2, e2, n2, i2, r2, o2) {
10780
- Er.subVectors(t2, n2).addScalar(0.5).multiply(i2), r2 !== void 0 ? (Sr.x = o2 * Er.x - r2 * Er.y, Sr.y = r2 * Er.x + o2 * Er.y) : Sr.copy(Er), t2.copy(e2), t2.x += Sr.x, t2.y += Sr.y, t2.applyMatrix4(Ar);
10780
+ Sr.subVectors(t2, n2).addScalar(0.5).multiply(i2), r2 !== void 0 ? (Er.x = o2 * Sr.x - r2 * Sr.y, Er.y = r2 * Sr.x + o2 * Sr.y) : Er.copy(Sr), t2.copy(e2), t2.x += Er.x, t2.y += Er.y, t2.applyMatrix4(Ar);
10781
10781
  }
10782
10782
  Nr.prototype.isSprite = true;
10783
- const Dr = new C(), Fr = new S(), Ur = new S(), Br = new C(), kr = new st();
10783
+ const Dr = new C(), Fr = new E(), Ur = new E(), Br = new C(), kr = new st();
10784
10784
  class Gr extends Le {
10785
10785
  constructor(t2, e2) {
10786
10786
  super(t2, e2), this.type = "SkinnedMesh", this.bindMode = "attached", this.bindMatrix = new st(), this.bindMatrixInverse = new st();
@@ -10795,7 +10795,7 @@ var Slide = function(t) {
10795
10795
  this.skeleton.pose();
10796
10796
  }
10797
10797
  normalizeSkinWeights() {
10798
- const t2 = new S(), e2 = this.geometry.attributes.skinWeight;
10798
+ const t2 = new E(), e2 = this.geometry.attributes.skinWeight;
10799
10799
  for (let n2 = 0, i2 = e2.count; n2 < i2; n2++) {
10800
10800
  t2.x = e2.getX(n2), t2.y = e2.getY(n2), t2.z = e2.getZ(n2), t2.w = e2.getW(n2);
10801
10801
  const i3 = 1 / t2.manhattanLength();
@@ -11296,11 +11296,11 @@ var Slide = function(t) {
11296
11296
  return this.closed = t2.closed, this.curveType = t2.curveType, this.tension = t2.tension, this;
11297
11297
  }
11298
11298
  }
11299
- function Eo(t2, e2, n2, i2, r2) {
11299
+ function So(t2, e2, n2, i2, r2) {
11300
11300
  const o2 = 0.5 * (i2 - e2), s2 = 0.5 * (r2 - n2), a2 = t2 * t2;
11301
11301
  return (2 * n2 - 2 * i2 + o2 + s2) * (t2 * a2) + (-3 * n2 + 3 * i2 - 2 * o2 - s2) * a2 + o2 * t2 + n2;
11302
11302
  }
11303
- function So(t2, e2, n2, i2) {
11303
+ function Eo(t2, e2, n2, i2) {
11304
11304
  return function(t3, e3) {
11305
11305
  const n3 = 1 - t3;
11306
11306
  return n3 * n3 * e3;
@@ -11397,7 +11397,7 @@ var Slide = function(t) {
11397
11397
  }
11398
11398
  getPoint(t2, e2 = new y()) {
11399
11399
  const n2 = e2, i2 = this.v0, r2 = this.v1, o2 = this.v2;
11400
- return n2.set(So(t2, i2.x, r2.x, o2.x), So(t2, i2.y, r2.y, o2.y)), n2;
11400
+ return n2.set(Eo(t2, i2.x, r2.x, o2.x), Eo(t2, i2.y, r2.y, o2.y)), n2;
11401
11401
  }
11402
11402
  copy(t2) {
11403
11403
  return super.copy(t2), this.v0.copy(t2.v0), this.v1.copy(t2.v1), this.v2.copy(t2.v2), this;
@@ -11417,7 +11417,7 @@ var Slide = function(t) {
11417
11417
  }
11418
11418
  getPoint(t2, e2 = new C()) {
11419
11419
  const n2 = e2, i2 = this.v0, r2 = this.v1, o2 = this.v2;
11420
- return n2.set(So(t2, i2.x, r2.x, o2.x), So(t2, i2.y, r2.y, o2.y), So(t2, i2.z, r2.z, o2.z)), n2;
11420
+ return n2.set(Eo(t2, i2.x, r2.x, o2.x), Eo(t2, i2.y, r2.y, o2.y), Eo(t2, i2.z, r2.z, o2.z)), n2;
11421
11421
  }
11422
11422
  copy(t2) {
11423
11423
  return super.copy(t2), this.v0.copy(t2.v0), this.v1.copy(t2.v1), this.v2.copy(t2.v2), this;
@@ -11437,7 +11437,7 @@ var Slide = function(t) {
11437
11437
  }
11438
11438
  getPoint(t2, e2 = new y()) {
11439
11439
  const n2 = e2, i2 = this.points, r2 = (i2.length - 1) * t2, o2 = Math.floor(r2), s2 = r2 - o2, a2 = i2[o2 === 0 ? o2 : o2 - 1], l2 = i2[o2], h2 = i2[o2 > i2.length - 2 ? i2.length - 1 : o2 + 1], u2 = i2[o2 > i2.length - 3 ? i2.length - 1 : o2 + 2];
11440
- return n2.set(Eo(s2, a2.x, l2.x, h2.x, u2.x), Eo(s2, a2.y, l2.y, h2.y, u2.y)), n2;
11440
+ return n2.set(So(s2, a2.x, l2.x, h2.x, u2.x), So(s2, a2.y, l2.y, h2.y, u2.y)), n2;
11441
11441
  }
11442
11442
  copy(t2) {
11443
11443
  super.copy(t2), this.points = [];
@@ -11785,24 +11785,24 @@ var Slide = function(t) {
11785
11785
  let g2, v2, _2, x2, b2, T2 = false;
11786
11786
  f2 && (g2 = f2.getSpacedPoints(a2), T2 = true, h2 = false, v2 = f2.computeFrenetFrames(a2, false), _2 = new C(), x2 = new C(), b2 = new C()), h2 || (p2 = 0, u2 = 0, c2 = 0, d2 = 0);
11787
11787
  const w2 = t3.extractPoints(s2);
11788
- let E2 = w2.shape;
11789
- const S2 = w2.holes;
11790
- if (!os.isClockWise(E2)) {
11791
- E2 = E2.reverse();
11792
- for (let t4 = 0, e3 = S2.length; t4 < e3; t4++) {
11793
- const e4 = S2[t4];
11794
- os.isClockWise(e4) && (S2[t4] = e4.reverse());
11788
+ let S2 = w2.shape;
11789
+ const E2 = w2.holes;
11790
+ if (!os.isClockWise(S2)) {
11791
+ S2 = S2.reverse();
11792
+ for (let t4 = 0, e3 = E2.length; t4 < e3; t4++) {
11793
+ const e4 = E2[t4];
11794
+ os.isClockWise(e4) && (E2[t4] = e4.reverse());
11795
11795
  }
11796
11796
  }
11797
- const A2 = os.triangulateShape(E2, S2), M2 = E2;
11798
- for (let t4 = 0, e3 = S2.length; t4 < e3; t4++) {
11799
- const e4 = S2[t4];
11800
- E2 = E2.concat(e4);
11797
+ const A2 = os.triangulateShape(S2, E2), M2 = S2;
11798
+ for (let t4 = 0, e3 = E2.length; t4 < e3; t4++) {
11799
+ const e4 = E2[t4];
11800
+ S2 = S2.concat(e4);
11801
11801
  }
11802
11802
  function P2(t4, e3, n3) {
11803
11803
  return e3 || console.error("THREE.ExtrudeGeometry: vec does not exist"), e3.clone().multiplyScalar(n3).add(t4);
11804
11804
  }
11805
- const R2 = E2.length, I2 = A2.length;
11805
+ const R2 = S2.length, I2 = A2.length;
11806
11806
  function L2(t4, e3, n3) {
11807
11807
  let i3, r3, o4;
11808
11808
  const s3 = t4.x - e3.x, a3 = t4.y - e3.y, l3 = n3.x - t4.x, h3 = n3.y - t4.y, u3 = s3 * s3 + a3 * a3, c3 = s3 * h3 - a3 * l3;
@@ -11824,8 +11824,8 @@ var Slide = function(t) {
11824
11824
  n3 === e3 && (n3 = 0), i3 === e3 && (i3 = 0), N2[t4] = L2(M2[t4], M2[n3], M2[i3]);
11825
11825
  const O2 = [];
11826
11826
  let D2, F2 = N2.concat();
11827
- for (let t4 = 0, e3 = S2.length; t4 < e3; t4++) {
11828
- const e4 = S2[t4];
11827
+ for (let t4 = 0, e3 = E2.length; t4 < e3; t4++) {
11828
+ const e4 = E2[t4];
11829
11829
  D2 = [];
11830
11830
  for (let t5 = 0, n3 = e4.length, i3 = n3 - 1, r3 = t5 + 1; t5 < n3; t5++, i3++, r3++)
11831
11831
  i3 === n3 && (i3 = 0), r3 === n3 && (r3 = 0), D2[t5] = L2(e4[t5], e4[i3], e4[r3]);
@@ -11837,8 +11837,8 @@ var Slide = function(t) {
11837
11837
  const e5 = P2(M2[t5], N2[t5], i3);
11838
11838
  k2(e5.x, e5.y, -n3);
11839
11839
  }
11840
- for (let t5 = 0, e4 = S2.length; t5 < e4; t5++) {
11841
- const e5 = S2[t5];
11840
+ for (let t5 = 0, e4 = E2.length; t5 < e4; t5++) {
11841
+ const e5 = E2[t5];
11842
11842
  D2 = O2[t5];
11843
11843
  for (let t6 = 0, r3 = e5.length; t6 < r3; t6++) {
11844
11844
  const r4 = P2(e5[t6], D2[t6], i3);
@@ -11848,12 +11848,12 @@ var Slide = function(t) {
11848
11848
  }
11849
11849
  const U2 = c2 + d2;
11850
11850
  for (let t4 = 0; t4 < R2; t4++) {
11851
- const e3 = h2 ? P2(E2[t4], F2[t4], U2) : E2[t4];
11851
+ const e3 = h2 ? P2(S2[t4], F2[t4], U2) : S2[t4];
11852
11852
  T2 ? (x2.copy(v2.normals[0]).multiplyScalar(e3.x), _2.copy(v2.binormals[0]).multiplyScalar(e3.y), b2.copy(g2[0]).add(x2).add(_2), k2(b2.x, b2.y, b2.z)) : k2(e3.x, e3.y, 0);
11853
11853
  }
11854
11854
  for (let t4 = 1; t4 <= a2; t4++)
11855
11855
  for (let e3 = 0; e3 < R2; e3++) {
11856
- const n3 = h2 ? P2(E2[e3], F2[e3], U2) : E2[e3];
11856
+ const n3 = h2 ? P2(S2[e3], F2[e3], U2) : S2[e3];
11857
11857
  T2 ? (x2.copy(v2.normals[t4]).multiplyScalar(n3.x), _2.copy(v2.binormals[t4]).multiplyScalar(n3.y), b2.copy(g2[t4]).add(x2).add(_2), k2(b2.x, b2.y, b2.z)) : k2(n3.x, n3.y, l2 / a2 * t4);
11858
11858
  }
11859
11859
  for (let t4 = p2 - 1; t4 >= 0; t4--) {
@@ -11862,8 +11862,8 @@ var Slide = function(t) {
11862
11862
  const e5 = P2(M2[t5], N2[t5], i3);
11863
11863
  k2(e5.x, e5.y, l2 + n3);
11864
11864
  }
11865
- for (let t5 = 0, e4 = S2.length; t5 < e4; t5++) {
11866
- const e5 = S2[t5];
11865
+ for (let t5 = 0, e4 = E2.length; t5 < e4; t5++) {
11866
+ const e5 = E2[t5];
11867
11867
  D2 = O2[t5];
11868
11868
  for (let t6 = 0, r3 = e5.length; t6 < r3; t6++) {
11869
11869
  const r4 = P2(e5[t6], D2[t6], i3);
@@ -11930,8 +11930,8 @@ var Slide = function(t) {
11930
11930
  const t4 = i2.length / 3;
11931
11931
  let e3 = 0;
11932
11932
  B2(M2, e3), e3 += M2.length;
11933
- for (let t5 = 0, n3 = S2.length; t5 < n3; t5++) {
11934
- const n4 = S2[t5];
11933
+ for (let t5 = 0, n3 = E2.length; t5 < n3; t5++) {
11934
+ const n4 = E2[t5];
11935
11935
  B2(n4, e3), e3 += n4.length;
11936
11936
  }
11937
11937
  n2.addGroup(t4, i2.length / 3 - t4, 1);
@@ -12340,7 +12340,7 @@ var Slide = function(t) {
12340
12340
  return r2;
12341
12341
  }
12342
12342
  }
12343
- class Es extends Ts {
12343
+ class Ss extends Ts {
12344
12344
  constructor(t2, e2, n2, i2) {
12345
12345
  super(t2, e2, n2, i2);
12346
12346
  }
@@ -12351,7 +12351,7 @@ var Slide = function(t) {
12351
12351
  return r2;
12352
12352
  }
12353
12353
  }
12354
- class Ss extends Ts {
12354
+ class Es extends Ts {
12355
12355
  constructor(t2, e2, n2, i2) {
12356
12356
  super(t2, e2, n2, i2);
12357
12357
  }
@@ -12380,10 +12380,10 @@ var Slide = function(t) {
12380
12380
  return n2.type = t2.ValueTypeName, n2;
12381
12381
  }
12382
12382
  InterpolantFactoryMethodDiscrete(t2) {
12383
- return new Ss(this.times, this.values, this.getValueSize(), t2);
12383
+ return new Es(this.times, this.values, this.getValueSize(), t2);
12384
12384
  }
12385
12385
  InterpolantFactoryMethodLinear(t2) {
12386
- return new Es(this.times, this.values, this.getValueSize(), t2);
12386
+ return new Ss(this.times, this.values, this.getValueSize(), t2);
12387
12387
  }
12388
12388
  InterpolantFactoryMethodSmooth(t2) {
12389
12389
  return new ws(this.times, this.values, this.getValueSize(), t2);
@@ -13154,7 +13154,7 @@ var Slide = function(t) {
13154
13154
  const Js = new st(), Qs = new C(), Ks = new C();
13155
13155
  class $s {
13156
13156
  constructor(t2) {
13157
- this.camera = t2, this.bias = 0, this.normalBias = 0, this.radius = 1, this.mapSize = new y(512, 512), this.map = null, this.mapPass = null, this.matrix = new st(), this.autoUpdate = true, this.needsUpdate = false, this._frustum = new Je(), this._frameExtents = new y(1, 1), this._viewportCount = 1, this._viewports = [new S(0, 0, 1, 1)];
13157
+ this.camera = t2, this.bias = 0, this.normalBias = 0, this.radius = 1, this.mapSize = new y(512, 512), this.map = null, this.mapPass = null, this.matrix = new st(), this.autoUpdate = true, this.needsUpdate = false, this._frustum = new Je(), this._frameExtents = new y(1, 1), this._viewportCount = 1, this._viewports = [new E(0, 0, 1, 1)];
13158
13158
  }
13159
13159
  getViewportCount() {
13160
13160
  return this._viewportCount;
@@ -13220,7 +13220,7 @@ var Slide = function(t) {
13220
13220
  const na = new st(), ia = new C(), ra = new C();
13221
13221
  class oa extends $s {
13222
13222
  constructor() {
13223
- super(new Ge(90, 1, 0.5, 500)), this._frameExtents = new y(4, 2), this._viewportCount = 6, this._viewports = [new S(2, 1, 1, 1), new S(0, 1, 1, 1), new S(3, 1, 1, 1), new S(1, 1, 1, 1), new S(3, 0, 1, 1), new S(1, 0, 1, 1)], this._cubeDirections = [new C(1, 0, 0), new C(-1, 0, 0), new C(0, 0, 1), new C(0, 0, -1), new C(0, 1, 0), new C(0, -1, 0)], this._cubeUps = [new C(0, 1, 0), new C(0, 1, 0), new C(0, 1, 0), new C(0, 1, 0), new C(0, 0, 1), new C(0, 0, -1)];
13223
+ super(new Ge(90, 1, 0.5, 500)), this._frameExtents = new y(4, 2), this._viewportCount = 6, this._viewports = [new E(2, 1, 1, 1), new E(0, 1, 1, 1), new E(3, 1, 1, 1), new E(1, 1, 1, 1), new E(3, 0, 1, 1), new E(1, 0, 1, 1)], this._cubeDirections = [new C(1, 0, 0), new C(-1, 0, 0), new C(0, 0, 1), new C(0, 0, -1), new C(0, 1, 0), new C(0, -1, 0)], this._cubeUps = [new C(0, 1, 0), new C(0, 1, 0), new C(0, 1, 0), new C(0, 1, 0), new C(0, 0, 1), new C(0, 0, -1)];
13224
13224
  }
13225
13225
  updateMatrices(t2, e2 = 0) {
13226
13226
  const n2 = this.camera, i2 = this.matrix, r2 = t2.distance || n2.far;
@@ -13619,7 +13619,7 @@ var Slide = function(t) {
13619
13619
  return this.gain.gain.setTargetAtTime(t2, this.context.currentTime, 0.01), this;
13620
13620
  }
13621
13621
  }
13622
- class Ea {
13622
+ class Sa {
13623
13623
  constructor(t2, e2, n2) {
13624
13624
  let i2, r2, o2;
13625
13625
  switch (this.binding = t2, this.valueSize = n2, e2) {
@@ -13716,7 +13716,7 @@ var Slide = function(t) {
13716
13716
  }
13717
13717
  }
13718
13718
  }
13719
- const Sa = new RegExp("[\\[\\]\\.:\\/]", "g"), Aa = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Ma = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Pa = /(WCOD+)?/.source.replace("WCOD", Aa), Ca = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ra = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ia = new RegExp("^" + Ma + Pa + Ca + Ra + "$"), La = ["material", "materials", "bones"];
13719
+ const Ea = new RegExp("[\\[\\]\\.:\\/]", "g"), Aa = "[^" + "\\[\\]\\.:\\/".replace("\\.", "") + "]", Ma = /((?:WC+[\/:])*)/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Pa = /(WCOD+)?/.source.replace("WCOD", Aa), Ca = /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ra = /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", "[^\\[\\]\\.:\\/]"), Ia = new RegExp("^" + Ma + Pa + Ca + Ra + "$"), La = ["material", "materials", "bones"];
13720
13720
  class Na {
13721
13721
  constructor(t2, e2, n2) {
13722
13722
  this.path = e2, this.parsedPath = n2 || Na.parseTrackName(e2), this.node = Na.findNode(t2, this.parsedPath.nodeName) || t2, this.rootNode = t2, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
@@ -13725,7 +13725,7 @@ var Slide = function(t) {
13725
13725
  return t2 && t2.isAnimationObjectGroup ? new Na.Composite(t2, e2, n2) : new Na(t2, e2, n2);
13726
13726
  }
13727
13727
  static sanitizeNodeName(t2) {
13728
- return t2.replace(/\s/g, "_").replace(Sa, "");
13728
+ return t2.replace(/\s/g, "_").replace(Ea, "");
13729
13729
  }
13730
13730
  static parseTrackName(t2) {
13731
13731
  const e2 = Ia.exec(t2);
@@ -14137,7 +14137,7 @@ var Slide = function(t) {
14137
14137
  continue;
14138
14138
  }
14139
14139
  const i3 = e2 && e2._propertyBindings[t3].binding.parsedPath;
14140
- u2 = new Ea(Na.create(n2, l3, i3), r3.ValueTypeName, r3.getValueSize()), ++u2.referenceCount, this._addInactiveBinding(u2, a2, l3), o2[t3] = u2;
14140
+ u2 = new Sa(Na.create(n2, l3, i3), r3.ValueTypeName, r3.getValueSize()), ++u2.referenceCount, this._addInactiveBinding(u2, a2, l3), o2[t3] = u2;
14141
14141
  }
14142
14142
  s2[t3].resultBuffer = u2.buffer;
14143
14143
  }
@@ -14240,7 +14240,7 @@ var Slide = function(t) {
14240
14240
  _lendControlInterpolant() {
14241
14241
  const t2 = this._controlInterpolants, e2 = this._nActiveControlInterpolants++;
14242
14242
  let n2 = t2[e2];
14243
- return n2 === void 0 && (n2 = new Es(new Float32Array(2), new Float32Array(2), 1, this._controlInterpolantsResultBuffer), n2.__cacheIndex = e2, t2[e2] = n2), n2;
14243
+ return n2 === void 0 && (n2 = new Ss(new Float32Array(2), new Float32Array(2), 1, this._controlInterpolantsResultBuffer), n2.__cacheIndex = e2, t2[e2] = n2), n2;
14244
14244
  }
14245
14245
  _takeBackControlInterpolant(t2) {
14246
14246
  const e2 = this._controlInterpolants, n2 = t2.__cacheIndex, i2 = --this._nActiveControlInterpolants, r2 = e2[i2];
@@ -14545,9 +14545,9 @@ var Slide = function(t) {
14545
14545
  return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."), this.manhattanDistanceTo(t2);
14546
14546
  }, C.prototype.lengthManhattan = function() {
14547
14547
  return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength();
14548
- }, S.prototype.fromAttribute = function(t2, e2, n2) {
14548
+ }, E.prototype.fromAttribute = function(t2, e2, n2) {
14549
14549
  return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t2, e2, n2);
14550
- }, S.prototype.lengthManhattan = function() {
14550
+ }, E.prototype.lengthManhattan = function() {
14551
14551
  return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength();
14552
14552
  }, It.prototype.getChildByName = function(t2) {
14553
14553
  return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."), this.getObjectByName(t2);
@@ -14871,8 +14871,8 @@ var Slide = function(t) {
14871
14871
  var vl = n(63), yl = n.n(vl);
14872
14872
  var _l = n(64), xl = n.n(_l);
14873
14873
  var bl = n(65), Tl = n.n(bl);
14874
- var wl = n(66), El = n.n(wl);
14875
- var Sl = n(67), Al = n.n(Sl);
14874
+ var wl = n(66), Sl = n.n(wl);
14875
+ var El = n(67), Al = n.n(El);
14876
14876
  var Ml = n(68), Pl = n.n(Ml);
14877
14877
  var Cl = n(69), Rl = n.n(Cl);
14878
14878
  var Il = n(70), Ll = n.n(Il);
@@ -14967,7 +14967,7 @@ var Slide = function(t) {
14967
14967
  var gh = n(88), vh = n.n(gh);
14968
14968
  var yh = n(89), _h = n.n(yh), xh = n(90), bh = n.n(xh);
14969
14969
  var Th = n(91), wh = n.n(Th);
14970
- const Eh = { RandomLines: class extends sl {
14970
+ const Sh = { RandomLines: class extends sl {
14971
14971
  constructor() {
14972
14972
  super(...arguments), this.duration = 1e3, this.fragmentShader = ul.a, this.options = [{ name: "dir", value: "horz" }];
14973
14973
  }
@@ -15062,7 +15062,7 @@ var Slide = function(t) {
15062
15062
  }
15063
15063
  }, Push: class extends sl {
15064
15064
  constructor() {
15065
- super(...arguments), this.duration = 1e3, this.fragmentShader = El.a, this.options = [], this.optionsMap = { u: 0, r: 1, d: 2, l: 3 };
15065
+ super(...arguments), this.duration = 1e3, this.fragmentShader = Sl.a, this.options = [], this.optionsMap = { u: 0, r: 1, d: 2, l: 3 };
15066
15066
  }
15067
15067
  applyOptions(t2) {
15068
15068
  var e2, n2, i2, r2;
@@ -15273,7 +15273,7 @@ var Slide = function(t) {
15273
15273
  this.material.uniforms.option = { value: (e2 = this.optionsMap) === null || e2 === void 0 ? void 0 : e2[(n2 = i2 == null ? void 0 : i2.value) !== null && n2 !== void 0 ? n2 : this.defaultDir] };
15274
15274
  }
15275
15275
  } };
15276
- class Sh {
15276
+ class Eh {
15277
15277
  constructor() {
15278
15278
  this.startTime = 0, this.lastTime = 0, this.lastFPSTime = 0, this.renderingDuration = 16, this.reverse = false, this.scene = new mr(), this.delay = 0, this.easeFn = rl.linear, this.preset = null, this.onTransactionEnd = () => {
15279
15279
  }, this.isTransactionStartApplied = false, this.prevTexture = null, this.nextTexture = null, this.animationId = null, this.renderer = new dr({ alpha: true, premultipliedAlpha: true }), this.isPlaying = false, this.animate = (t2 = -1) => {
@@ -15286,7 +15286,7 @@ var Slide = function(t) {
15286
15286
  };
15287
15287
  }
15288
15288
  initPlayer(t2) {
15289
- this.reverse = t2.reverse, t2.delay && Number.isInteger(t2.delay) && (this.delay = t2.delay), t2.easeFn && (this.easeFn = rl[t2.easeFn]), t2.maxFPS && Number.isInteger(t2.maxFPS) && t2.maxFPS > 0 && (this.renderingDuration = Math.ceil(1e3 / t2.maxFPS)), this.startTime = 0, this.lastTime = 0, this.scene.clear(), this.renderer.shadowMap.enabled = true, this.renderer.autoClear = false, this.renderer.setClearColor(t2.clearColor || 0), this.isTransactionStartApplied = false, this.renderer.setSize(t2.stageWidth, t2.stageHeight), this.preset = new Eh[t2.presetType](), t2.options && (this.preset.options = t2.options), t2.duration && Number.isInteger(t2.duration) && (this.preset.duration = t2.duration), this.preset.setSize(t2.stageWidth, t2.stageHeight);
15289
+ this.reverse = t2.reverse, t2.delay && Number.isInteger(t2.delay) && (this.delay = t2.delay), t2.easeFn && (this.easeFn = rl[t2.easeFn]), t2.maxFPS && Number.isInteger(t2.maxFPS) && t2.maxFPS > 0 && (this.renderingDuration = Math.ceil(1e3 / t2.maxFPS)), this.startTime = 0, this.lastTime = 0, this.scene.clear(), this.renderer.shadowMap.enabled = true, this.renderer.autoClear = false, this.renderer.setClearColor(t2.clearColor || 0), this.isTransactionStartApplied = false, this.renderer.setSize(t2.stageWidth, t2.stageHeight), this.preset = new Sh[t2.presetType](), t2.options && (this.preset.options = t2.options), t2.duration && Number.isInteger(t2.duration) && (this.preset.duration = t2.duration), this.preset.setSize(t2.stageWidth, t2.stageHeight);
15290
15290
  }
15291
15291
  setPrevTexture(t2) {
15292
15292
  var e2, n2;
@@ -15390,7 +15390,7 @@ var Slide = function(t) {
15390
15390
  }(ou || (ou = {})), function(t2) {
15391
15391
  t2[t2.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t2[t2.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t2[t2.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
15392
15392
  }(su || (su = {}));
15393
- var lu, hu, uu, cu, du, pu, fu, mu, gu, vu, yu, _u, xu, bu, Tu, wu, Eu, Su, Au, Mu = { MIPMAP_TEXTURES: $h.POW2, ANISOTROPIC_LEVEL: 0, RESOLUTION: 1, FILTER_RESOLUTION: 1, FILTER_MULTISAMPLE: ou.NONE, SPRITE_MAX_TEXTURES: function(t2) {
15393
+ var lu, hu, uu, cu, du, pu, fu, mu, gu, vu, yu, _u, xu, bu, Tu, wu, Su, Eu, Au, Mu = { MIPMAP_TEXTURES: $h.POW2, ANISOTROPIC_LEVEL: 0, RESOLUTION: 1, FILTER_RESOLUTION: 1, FILTER_MULTISAMPLE: ou.NONE, SPRITE_MAX_TEXTURES: function(t2) {
15394
15394
  var e2 = true;
15395
15395
  if (au.tablet || au.phone) {
15396
15396
  var n2;
@@ -15439,9 +15439,9 @@ var Slide = function(t) {
15439
15439
  t2.LOW = "lowp", t2.MEDIUM = "mediump", t2.HIGH = "highp";
15440
15440
  }(wu || (wu = {})), function(t2) {
15441
15441
  t2[t2.NONE = 0] = "NONE", t2[t2.SCISSOR = 1] = "SCISSOR", t2[t2.STENCIL = 2] = "STENCIL", t2[t2.SPRITE = 3] = "SPRITE";
15442
- }(Eu || (Eu = {})), function(t2) {
15443
- t2[t2.NONE = 0] = "NONE", t2[t2.LOW = 2] = "LOW", t2[t2.MEDIUM = 4] = "MEDIUM", t2[t2.HIGH = 8] = "HIGH";
15444
15442
  }(Su || (Su = {})), function(t2) {
15443
+ t2[t2.NONE = 0] = "NONE", t2[t2.LOW = 2] = "LOW", t2[t2.MEDIUM = 4] = "MEDIUM", t2[t2.HIGH = 8] = "HIGH";
15444
+ }(Eu || (Eu = {})), function(t2) {
15445
15445
  t2[t2.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", t2[t2.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", t2[t2.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER";
15446
15446
  }(Au || (Au = {}));
15447
15447
  /*!
@@ -15659,7 +15659,7 @@ var Slide = function(t) {
15659
15659
  !function(t2) {
15660
15660
  t2[t2.POLY = 0] = "POLY", t2[t2.RECT = 1] = "RECT", t2[t2.CIRC = 2] = "CIRC", t2[t2.ELIP = 3] = "ELIP", t2[t2.RREC = 4] = "RREC";
15661
15661
  }(xc || (xc = {}));
15662
- var Ec = function() {
15662
+ var Sc = function() {
15663
15663
  function t2(t3, e2) {
15664
15664
  t3 === void 0 && (t3 = 0), e2 === void 0 && (e2 = 0), this.x = 0, this.y = 0, this.x = t3, this.y = e2;
15665
15665
  }
@@ -15676,7 +15676,7 @@ var Slide = function(t) {
15676
15676
  }, t2.prototype.toString = function() {
15677
15677
  return "[@pixi/math:Point x=" + this.x + " y=" + this.y + "]";
15678
15678
  }, t2;
15679
- }(), Sc = [new Ec(), new Ec(), new Ec(), new Ec()], Ac = function() {
15679
+ }(), Ec = [new Sc(), new Sc(), new Sc(), new Sc()], Ac = function() {
15680
15680
  function t2(t3, e2, n2, i2) {
15681
15681
  t3 === void 0 && (t3 = 0), e2 === void 0 && (e2 = 0), n2 === void 0 && (n2 = 0), i2 === void 0 && (i2 = 0), this.x = Number(t3), this.y = Number(e2), this.width = Number(n2), this.height = Number(i2), this.type = xc.RECT;
15682
15682
  }
@@ -15709,7 +15709,7 @@ var Slide = function(t) {
15709
15709
  var r2 = this.left, o2 = this.right, s2 = this.top, a2 = this.bottom;
15710
15710
  if (o2 <= r2 || a2 <= s2)
15711
15711
  return false;
15712
- var l2 = Sc[0].set(t3.left, t3.top), h2 = Sc[1].set(t3.left, t3.bottom), u2 = Sc[2].set(t3.right, t3.top), c2 = Sc[3].set(t3.right, t3.bottom);
15712
+ var l2 = Ec[0].set(t3.left, t3.top), h2 = Ec[1].set(t3.left, t3.bottom), u2 = Ec[2].set(t3.right, t3.top), c2 = Ec[3].set(t3.right, t3.bottom);
15713
15713
  if (u2.x <= l2.x || h2.y <= l2.y)
15714
15714
  return false;
15715
15715
  var d2 = Math.sign(e2.a * e2.d - e2.b * e2.c);
@@ -15720,8 +15720,8 @@ var Slide = function(t) {
15720
15720
  var p2 = d2 * (h2.y - l2.y), f2 = d2 * (l2.x - h2.x), m2 = p2 * r2 + f2 * s2, g2 = p2 * o2 + f2 * s2, v2 = p2 * r2 + f2 * a2, y2 = p2 * o2 + f2 * a2;
15721
15721
  if (Math.max(m2, g2, v2, y2) <= p2 * l2.x + f2 * l2.y || Math.min(m2, g2, v2, y2) >= p2 * c2.x + f2 * c2.y)
15722
15722
  return false;
15723
- var _2 = d2 * (l2.y - u2.y), x2 = d2 * (u2.x - l2.x), b2 = _2 * r2 + x2 * s2, T2 = _2 * o2 + x2 * s2, w2 = _2 * r2 + x2 * a2, E2 = _2 * o2 + x2 * a2;
15724
- return !(Math.max(b2, T2, w2, E2) <= _2 * l2.x + x2 * l2.y || Math.min(b2, T2, w2, E2) >= _2 * c2.x + x2 * c2.y);
15723
+ var _2 = d2 * (l2.y - u2.y), x2 = d2 * (u2.x - l2.x), b2 = _2 * r2 + x2 * s2, T2 = _2 * o2 + x2 * s2, w2 = _2 * r2 + x2 * a2, S2 = _2 * o2 + x2 * a2;
15724
+ return !(Math.max(b2, T2, w2, S2) <= _2 * l2.x + x2 * l2.y || Math.min(b2, T2, w2, S2) >= _2 * c2.x + x2 * c2.y);
15725
15725
  }, t2.prototype.pad = function(t3, e2) {
15726
15726
  return t3 === void 0 && (t3 = 0), e2 === void 0 && (e2 = t3), this.x -= t3, this.y -= e2, this.width += 2 * t3, this.height += 2 * e2, this;
15727
15727
  }, t2.prototype.fit = function(t3) {
@@ -15860,11 +15860,11 @@ var Slide = function(t) {
15860
15860
  var n2 = e2 || this.array;
15861
15861
  return t3 ? (n2[0] = this.a, n2[1] = this.b, n2[2] = 0, n2[3] = this.c, n2[4] = this.d, n2[5] = 0, n2[6] = this.tx, n2[7] = this.ty, n2[8] = 1) : (n2[0] = this.a, n2[1] = this.c, n2[2] = this.tx, n2[3] = this.b, n2[4] = this.d, n2[5] = this.ty, n2[6] = 0, n2[7] = 0, n2[8] = 1), n2;
15862
15862
  }, t2.prototype.apply = function(t3, e2) {
15863
- e2 = e2 || new Ec();
15863
+ e2 = e2 || new Sc();
15864
15864
  var n2 = t3.x, i2 = t3.y;
15865
15865
  return e2.x = this.a * n2 + this.c * i2 + this.tx, e2.y = this.b * n2 + this.d * i2 + this.ty, e2;
15866
15866
  }, t2.prototype.applyInverse = function(t3, e2) {
15867
- e2 = e2 || new Ec();
15867
+ e2 = e2 || new Sc();
15868
15868
  var n2 = 1 / (this.a * this.d + this.c * -this.b), i2 = t3.x, r2 = t3.y;
15869
15869
  return e2.x = this.d * n2 * i2 + -this.c * n2 * r2 + (this.ty * this.c - this.tx * this.d) * n2, e2.y = this.a * n2 * r2 + -this.b * n2 * i2 + (-this.ty * this.a + this.tx * this.b) * n2, e2;
15870
15870
  }, t2.prototype.translate = function(t3, e2) {
@@ -16391,7 +16391,7 @@ var Slide = function(t) {
16391
16391
  }, enumerable: false, configurable: true }), e2;
16392
16392
  }(ud);
16393
16393
  pd.prototype.containerUpdateTransform = pd.prototype.updateTransform, ud.prototype.getGlobalPosition = function(t2, e2) {
16394
- return t2 === void 0 && (t2 = new Ec()), e2 === void 0 && (e2 = false), this.parent ? this.parent.toGlobal(this.position, t2, e2) : (t2.x = this.position.x, t2.y = this.position.y), t2;
16394
+ return t2 === void 0 && (t2 = new Sc()), e2 === void 0 && (e2 = false), this.parent ? this.parent.toGlobal(this.position, t2, e2) : (t2.x = this.position.x, t2.y = this.position.y), t2;
16395
16395
  }, ud.prototype.name = null, pd.prototype.getChildByName = function(t2, e2) {
16396
16396
  for (var n2 = 0, i2 = this.children.length; n2 < i2; n2++)
16397
16397
  if (this.children[n2].name === t2)
@@ -16642,7 +16642,7 @@ var Slide = function(t) {
16642
16642
  return t2;
16643
16643
  }).apply(this, arguments);
16644
16644
  };
16645
- var Ed = function() {
16645
+ var Sd = function() {
16646
16646
  function t2(t3, e2) {
16647
16647
  t3 === void 0 && (t3 = 0), e2 === void 0 && (e2 = 0), this._width = t3, this._height = e2, this.destroyed = false, this.internal = false, this.onResize = new md("setRealSize"), this.onUpdate = new md("update"), this.onError = new md("onError");
16648
16648
  }
@@ -16670,7 +16670,7 @@ var Slide = function(t) {
16670
16670
  }, t2.test = function(t3, e2) {
16671
16671
  return false;
16672
16672
  }, t2;
16673
- }(), Sd = function(t2) {
16673
+ }(), Ed = function(t2) {
16674
16674
  function e2(e3, n2) {
16675
16675
  var i2 = this, r2 = n2 || {}, o2 = r2.width, s2 = r2.height;
16676
16676
  if (!o2 || !s2)
@@ -16687,11 +16687,11 @@ var Slide = function(t) {
16687
16687
  }, e2.test = function(t3) {
16688
16688
  return t3 instanceof Float32Array || t3 instanceof Uint8Array || t3 instanceof Uint32Array;
16689
16689
  }, e2;
16690
- }(Ed), Ad = { scaleMode: vu.NEAREST, format: pu.RGBA, alphaMode: xu.NPM }, Md = function(t2) {
16690
+ }(Sd), Ad = { scaleMode: vu.NEAREST, format: pu.RGBA, alphaMode: xu.NPM }, Md = function(t2) {
16691
16691
  function e2(e3, n2) {
16692
16692
  e3 === void 0 && (e3 = null), n2 === void 0 && (n2 = null);
16693
16693
  var i2 = t2.call(this) || this, r2 = (n2 = n2 || {}).alphaMode, o2 = n2.mipmap, s2 = n2.anisotropicLevel, a2 = n2.scaleMode, l2 = n2.width, h2 = n2.height, u2 = n2.wrapMode, c2 = n2.format, d2 = n2.type, p2 = n2.target, f2 = n2.resolution, m2 = n2.resourceOptions;
16694
- return !e3 || e3 instanceof Ed || ((e3 = xd(e3, m2)).internal = true), i2.resolution = f2 || Mu.RESOLUTION, i2.width = Math.round((l2 || 0) * i2.resolution) / i2.resolution, i2.height = Math.round((h2 || 0) * i2.resolution) / i2.resolution, i2._mipmap = o2 !== void 0 ? o2 : Mu.MIPMAP_TEXTURES, i2.anisotropicLevel = s2 !== void 0 ? s2 : Mu.ANISOTROPIC_LEVEL, i2._wrapMode = u2 || Mu.WRAP_MODE, i2._scaleMode = a2 !== void 0 ? a2 : Mu.SCALE_MODE, i2.format = c2 || pu.RGBA, i2.type = d2 || mu.UNSIGNED_BYTE, i2.target = p2 || fu.TEXTURE_2D, i2.alphaMode = r2 !== void 0 ? r2 : xu.UNPACK, i2.uid = oc(), i2.touched = 0, i2.isPowerOfTwo = false, i2._refreshPOT(), i2._glTextures = {}, i2.dirtyId = 0, i2.dirtyStyleId = 0, i2.cacheId = null, i2.valid = l2 > 0 && h2 > 0, i2.textureCacheIds = [], i2.destroyed = false, i2.resource = null, i2._batchEnabled = 0, i2._batchLocation = 0, i2.parentTextureArray = null, i2.setResource(e3), i2;
16694
+ return !e3 || e3 instanceof Sd || ((e3 = xd(e3, m2)).internal = true), i2.resolution = f2 || Mu.RESOLUTION, i2.width = Math.round((l2 || 0) * i2.resolution) / i2.resolution, i2.height = Math.round((h2 || 0) * i2.resolution) / i2.resolution, i2._mipmap = o2 !== void 0 ? o2 : Mu.MIPMAP_TEXTURES, i2.anisotropicLevel = s2 !== void 0 ? s2 : Mu.ANISOTROPIC_LEVEL, i2._wrapMode = u2 || Mu.WRAP_MODE, i2._scaleMode = a2 !== void 0 ? a2 : Mu.SCALE_MODE, i2.format = c2 || pu.RGBA, i2.type = d2 || mu.UNSIGNED_BYTE, i2.target = p2 || fu.TEXTURE_2D, i2.alphaMode = r2 !== void 0 ? r2 : xu.UNPACK, i2.uid = oc(), i2.touched = 0, i2.isPowerOfTwo = false, i2._refreshPOT(), i2._glTextures = {}, i2.dirtyId = 0, i2.dirtyStyleId = 0, i2.cacheId = null, i2.valid = l2 > 0 && h2 > 0, i2.textureCacheIds = [], i2.destroyed = false, i2.resource = null, i2._batchEnabled = 0, i2._batchLocation = 0, i2.parentTextureArray = null, i2.setResource(e3), i2;
16695
16695
  }
16696
16696
  return Td(e2, t2), Object.defineProperty(e2.prototype, "realWidth", { get: function() {
16697
16697
  return Math.round(this.width * this.resolution);
@@ -16755,7 +16755,7 @@ var Slide = function(t) {
16755
16755
  return a2 || ((a2 = new e2(t3, n2)).cacheId = o2, e2.addToCache(a2, o2)), a2;
16756
16756
  }, e2.fromBuffer = function(t3, n2, i2, r2) {
16757
16757
  t3 = t3 || new Float32Array(n2 * i2 * 4);
16758
- var o2 = new Sd(t3, { width: n2, height: i2 }), s2 = t3 instanceof Float32Array ? mu.FLOAT : mu.UNSIGNED_BYTE;
16758
+ var o2 = new Ed(t3, { width: n2, height: i2 }), s2 = t3 instanceof Float32Array ? mu.FLOAT : mu.UNSIGNED_BYTE;
16759
16759
  return new e2(o2, Object.assign(Ad, r2 || { width: n2, height: i2, type: s2 }));
16760
16760
  }, e2.addToCache = function(t3, e3) {
16761
16761
  e3 && (t3.textureCacheIds.indexOf(e3) === -1 && t3.textureCacheIds.push(e3), uc[e3] && console.warn("BaseTexture added to the cache with an id [" + e3 + "] that already had an entry"), uc[e3] = t3);
@@ -16785,7 +16785,7 @@ var Slide = function(t) {
16785
16785
  }
16786
16786
  return Td(e2, t2), e2.prototype.initFromArray = function(t3, e3) {
16787
16787
  for (var n2 = 0; n2 < this.length; n2++)
16788
- t3[n2] && (t3[n2].castToBaseTexture ? this.addBaseTextureAt(t3[n2].castToBaseTexture(), n2) : t3[n2] instanceof Ed ? this.addResourceAt(t3[n2], n2) : this.addResourceAt(xd(t3[n2], e3), n2));
16788
+ t3[n2] && (t3[n2].castToBaseTexture ? this.addBaseTextureAt(t3[n2].castToBaseTexture(), n2) : t3[n2] instanceof Sd ? this.addResourceAt(t3[n2], n2) : this.addResourceAt(xd(t3[n2], e3), n2));
16789
16789
  }, e2.prototype.dispose = function() {
16790
16790
  for (var t3 = 0, e3 = this.length; t3 < e3; t3++)
16791
16791
  this.items[t3].destroy();
@@ -16820,7 +16820,7 @@ var Slide = function(t) {
16820
16820
  return t3.resize(n2, i2), Promise.resolve(t3);
16821
16821
  }), this._load;
16822
16822
  }, e2;
16823
- }(Ed), Cd = function(t2) {
16823
+ }(Sd), Cd = function(t2) {
16824
16824
  function e2(e3, n2) {
16825
16825
  var i2, r2, o2 = this, s2 = n2 || {}, a2 = s2.width, l2 = s2.height;
16826
16826
  return Array.isArray(e3) ? (i2 = e3, r2 = e3.length) : r2 = e3, o2 = t2.call(this, r2, { width: a2, height: l2 }) || this, i2 && o2.initFromArray(i2, n2), o2;
@@ -16863,7 +16863,7 @@ var Slide = function(t) {
16863
16863
  }, e2.prototype.dispose = function() {
16864
16864
  this.source = null;
16865
16865
  }, e2;
16866
- }(Ed), Id = function(t2) {
16866
+ }(Sd), Id = function(t2) {
16867
16867
  function e2(e3) {
16868
16868
  return t2.call(this, e3) || this;
16869
16869
  }
@@ -17068,8 +17068,8 @@ var Slide = function(t) {
17068
17068
  return !!globalThis.createImageBitmap && t3 instanceof ImageBitmap;
17069
17069
  }, e2;
17070
17070
  }(Rd);
17071
- _d.push(Nd, Fd, Id, Dd, Od, Sd, Ld, Cd);
17072
- var Ud = { __proto__: null, Resource: Ed, BaseImageResource: Rd, INSTALLED: _d, autoDetectResource: xd, AbstractMultiResource: Pd, ArrayResource: Cd, BufferResource: Sd, CanvasResource: Id, CubeResource: Ld, ImageResource: Nd, SVGResource: Od, VideoResource: Dd, ImageBitmapResource: Fd }, Bd = function(t2) {
17071
+ _d.push(Nd, Fd, Id, Dd, Od, Ed, Ld, Cd);
17072
+ var Ud = { __proto__: null, Resource: Sd, BaseImageResource: Rd, INSTALLED: _d, autoDetectResource: xd, AbstractMultiResource: Pd, ArrayResource: Cd, BufferResource: Ed, CanvasResource: Id, CubeResource: Ld, ImageResource: Nd, SVGResource: Od, VideoResource: Dd, ImageBitmapResource: Fd }, Bd = function(t2) {
17073
17073
  function e2() {
17074
17074
  return t2 !== null && t2.apply(this, arguments) || this;
17075
17075
  }
@@ -17079,9 +17079,9 @@ var Slide = function(t) {
17079
17079
  var r2 = e3.realWidth, o2 = e3.realHeight;
17080
17080
  return n2.width === r2 && n2.height === o2 ? i2.texSubImage2D(e3.target, 0, 0, 0, r2, o2, e3.format, n2.type, this.data) : (n2.width = r2, n2.height = o2, i2.texImage2D(e3.target, 0, n2.internalFormat, r2, o2, 0, e3.format, n2.type, this.data)), true;
17081
17081
  }, e2;
17082
- }(Sd), kd = function() {
17082
+ }(Ed), kd = function() {
17083
17083
  function t2(t3, e2) {
17084
- this.width = Math.round(t3 || 100), this.height = Math.round(e2 || 100), this.stencil = false, this.depth = false, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new md("disposeFramebuffer"), this.multisample = Su.NONE;
17084
+ this.width = Math.round(t3 || 100), this.height = Math.round(e2 || 100), this.stencil = false, this.depth = false, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new md("disposeFramebuffer"), this.multisample = Eu.NONE;
17085
17085
  }
17086
17086
  return Object.defineProperty(t2.prototype, "colorTexture", { get: function() {
17087
17087
  return this.colorTextures[0];
@@ -17118,7 +17118,7 @@ var Slide = function(t) {
17118
17118
  var i2 = arguments[0], r2 = arguments[1], o2 = arguments[2], s2 = arguments[3];
17119
17119
  e3 = { width: i2, height: r2, scaleMode: o2, resolution: s2 };
17120
17120
  }
17121
- return e3.width = e3.width || 100, e3.height = e3.height || 100, e3.multisample = e3.multisample !== void 0 ? e3.multisample : Su.NONE, (n2 = t2.call(this, null, e3) || this).mipmap = _u.OFF, n2.valid = true, n2.clearColor = [0, 0, 0, 0], n2.framebuffer = new kd(n2.realWidth, n2.realHeight).addColorTexture(0, n2), n2.framebuffer.multisample = e3.multisample, n2.maskStack = [], n2.filterStack = [{}], n2;
17121
+ return e3.width = e3.width || 100, e3.height = e3.height || 100, e3.multisample = e3.multisample !== void 0 ? e3.multisample : Eu.NONE, (n2 = t2.call(this, null, e3) || this).mipmap = _u.OFF, n2.valid = true, n2.clearColor = [0, 0, 0, 0], n2.framebuffer = new kd(n2.realWidth, n2.realHeight).addColorTexture(0, n2), n2.framebuffer.multisample = e3.multisample, n2.maskStack = [], n2.filterStack = [{}], n2;
17122
17122
  }
17123
17123
  return Td(e2, t2), e2.prototype.resize = function(t3, e3) {
17124
17124
  this.framebuffer.resize(t3 * this.resolution, e3 * this.resolution), this.setRealSize(this.framebuffer.width, this.framebuffer.height);
@@ -17157,7 +17157,7 @@ var Slide = function(t) {
17157
17157
  l2._rotate = 2;
17158
17158
  else if (l2._rotate % 2 != 0)
17159
17159
  throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
17160
- return l2.defaultAnchor = a2 ? new Ec(a2.x, a2.y) : new Ec(0, 0), l2._updateID = 0, l2.textureCacheIds = [], n2.valid ? l2.noFrame ? n2.valid && l2.onBaseTextureUpdated(n2) : l2.frame = i2 : n2.once("loaded", l2.onBaseTextureUpdated, l2), l2.noFrame && n2.on("update", l2.onBaseTextureUpdated, l2), l2;
17160
+ return l2.defaultAnchor = a2 ? new Sc(a2.x, a2.y) : new Sc(0, 0), l2._updateID = 0, l2.textureCacheIds = [], n2.valid ? l2.noFrame ? n2.valid && l2.onBaseTextureUpdated(n2) : l2.frame = i2 : n2.once("loaded", l2.onBaseTextureUpdated, l2), l2.noFrame && n2.on("update", l2.onBaseTextureUpdated, l2), l2;
17161
17161
  }
17162
17162
  return Td(e2, t2), e2.prototype.update = function() {
17163
17163
  this.baseTexture.resource && this.baseTexture.resource.update();
@@ -17295,16 +17295,16 @@ var Slide = function(t) {
17295
17295
  this.texturePool = {}, this.textureOptions = t3 || {}, this.enableFullScreen = false, this._pixelsWidth = 0, this._pixelsHeight = 0;
17296
17296
  }
17297
17297
  return t2.prototype.createTexture = function(t3, e2, n2) {
17298
- n2 === void 0 && (n2 = Su.NONE);
17298
+ n2 === void 0 && (n2 = Eu.NONE);
17299
17299
  var i2 = new Gd(Object.assign({ width: t3, height: e2, resolution: 1, multisample: n2 }, this.textureOptions));
17300
17300
  return new Wd(i2);
17301
17301
  }, t2.prototype.getOptimalTexture = function(t3, e2, n2, i2) {
17302
17302
  var r2;
17303
- n2 === void 0 && (n2 = 1), i2 === void 0 && (i2 = Su.NONE), t3 = Math.ceil(t3 * n2 - 1e-6), e2 = Math.ceil(e2 * n2 - 1e-6), this.enableFullScreen && t3 === this._pixelsWidth && e2 === this._pixelsHeight ? r2 = i2 > 1 ? -i2 : -1 : (r2 = ((65535 & (t3 = $u(t3))) << 16 | 65535 & (e2 = $u(e2))) >>> 0, i2 > 1 && (r2 += 4294967296 * i2)), this.texturePool[r2] || (this.texturePool[r2] = []);
17303
+ n2 === void 0 && (n2 = 1), i2 === void 0 && (i2 = Eu.NONE), t3 = Math.ceil(t3 * n2 - 1e-6), e2 = Math.ceil(e2 * n2 - 1e-6), this.enableFullScreen && t3 === this._pixelsWidth && e2 === this._pixelsHeight ? r2 = i2 > 1 ? -i2 : -1 : (r2 = ((65535 & (t3 = $u(t3))) << 16 | 65535 & (e2 = $u(e2))) >>> 0, i2 > 1 && (r2 += 4294967296 * i2)), this.texturePool[r2] || (this.texturePool[r2] = []);
17304
17304
  var o2 = this.texturePool[r2].pop();
17305
17305
  return o2 || (o2 = this.createTexture(t3, e2, i2)), o2.filterPoolKey = r2, o2.setResolution(n2), o2;
17306
17306
  }, t2.prototype.getFilterTexture = function(t3, e2, n2) {
17307
- var i2 = this.getOptimalTexture(t3.width, t3.height, e2 || t3.resolution, n2 || Su.NONE);
17307
+ var i2 = this.getOptimalTexture(t3.width, t3.height, e2 || t3.resolution, n2 || Eu.NONE);
17308
17308
  return i2.filterFrame = t3.filterFrame, i2;
17309
17309
  }, t2.prototype.returnTexture = function(t3) {
17310
17310
  var e2 = t3.filterPoolKey;
@@ -17494,12 +17494,12 @@ var Slide = function(t) {
17494
17494
  }, t2;
17495
17495
  }(), op = function() {
17496
17496
  function t2() {
17497
- this.renderTexture = null, this.target = null, this.legacy = false, this.resolution = 1, this.multisample = Su.NONE, this.sourceFrame = new Ac(), this.destinationFrame = new Ac(), this.bindingSourceFrame = new Ac(), this.bindingDestinationFrame = new Ac(), this.filters = [], this.transform = null;
17497
+ this.renderTexture = null, this.target = null, this.legacy = false, this.resolution = 1, this.multisample = Eu.NONE, this.sourceFrame = new Ac(), this.destinationFrame = new Ac(), this.bindingSourceFrame = new Ac(), this.bindingDestinationFrame = new Ac(), this.filters = [], this.transform = null;
17498
17498
  }
17499
17499
  return t2.prototype.clear = function() {
17500
17500
  this.target = null, this.filters = null, this.renderTexture = null;
17501
17501
  }, t2;
17502
- }(), sp = [new Ec(), new Ec(), new Ec(), new Ec()], ap = new Lc(), lp = function() {
17502
+ }(), sp = [new Sc(), new Sc(), new Sc(), new Sc()], ap = new Lc(), lp = function() {
17503
17503
  function t2(t3) {
17504
17504
  this.renderer = t3, this.defaultFilterStack = [{}], this.texturePool = new Xd(), this.texturePool.setScreenSize(t3.view), this.statePool = [], this.quad = new ep(), this.quadUv = new np(), this.tempRect = new Ac(), this.activeState = {}, this.globalUniforms = new rp({ outputFrame: new Ac(), inputSize: new Float32Array(4), inputPixel: new Float32Array(4), inputClamp: new Float32Array(4), resolution: 1, filterArea: new Float32Array(4), filterClamp: new Float32Array(4) }, true), this.forceClear = false, this.useMaxPadding = false;
17505
17505
  }
@@ -17558,14 +17558,14 @@ var Slide = function(t) {
17558
17558
  }, t2.prototype.destroy = function() {
17559
17559
  this.renderer = null, this.texturePool.clear(false);
17560
17560
  }, t2.prototype.getOptimalFilterTexture = function(t3, e2, n2, i2) {
17561
- return n2 === void 0 && (n2 = 1), i2 === void 0 && (i2 = Su.NONE), this.texturePool.getOptimalTexture(t3, e2, n2, i2);
17561
+ return n2 === void 0 && (n2 = 1), i2 === void 0 && (i2 = Eu.NONE), this.texturePool.getOptimalTexture(t3, e2, n2, i2);
17562
17562
  }, t2.prototype.getFilterTexture = function(t3, e2, n2) {
17563
17563
  if (typeof t3 == "number") {
17564
17564
  var i2 = t3;
17565
17565
  t3 = e2, e2 = i2;
17566
17566
  }
17567
17567
  t3 = t3 || this.activeState.renderTexture;
17568
- var r2 = this.texturePool.getOptimalTexture(t3.width, t3.height, e2 || t3.resolution, n2 || Su.NONE);
17568
+ var r2 = this.texturePool.getOptimalTexture(t3.width, t3.height, e2 || t3.resolution, n2 || Eu.NONE);
17569
17569
  return r2.filterFrame = t3.filterFrame, r2;
17570
17570
  }, t2.prototype.returnFilterTexture = function(t3) {
17571
17571
  this.texturePool.returnTexture(t3);
@@ -17670,7 +17670,7 @@ var Slide = function(t) {
17670
17670
  this.supports.uint32Indices = i2, i2 || console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly");
17671
17671
  }, t2;
17672
17672
  }(), pp = function(t2) {
17673
- this.framebuffer = t2, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample = Su.NONE, this.msaaBuffer = null, this.blitFramebuffer = null, this.mipLevel = 0;
17673
+ this.framebuffer = t2, this.stencil = null, this.dirtyId = -1, this.dirtyFormat = -1, this.dirtySize = -1, this.multisample = Eu.NONE, this.msaaBuffer = null, this.blitFramebuffer = null, this.mipLevel = 0;
17674
17674
  }, fp = new Ac(), mp = function() {
17675
17675
  function t2(t3) {
17676
17676
  this.renderer = t3, this.managedFramebuffers = [], this.unknownFramebuffer = new kd(10, 10), this.msaaSamples = null;
@@ -17741,7 +17741,7 @@ var Slide = function(t) {
17741
17741
  }, t2.prototype.canMultisampleFramebuffer = function(t3) {
17742
17742
  return this.renderer.context.webGLVersion !== 1 && t3.colorTextures.length <= 1 && !t3.depthTexture;
17743
17743
  }, t2.prototype.detectSamples = function(t3) {
17744
- var e2 = this.msaaSamples, n2 = Su.NONE;
17744
+ var e2 = this.msaaSamples, n2 = Eu.NONE;
17745
17745
  if (t3 <= 1 || e2 === null)
17746
17746
  return n2;
17747
17747
  for (var i2 = 0; i2 < e2.length; i2++)
@@ -17749,7 +17749,7 @@ var Slide = function(t) {
17749
17749
  n2 = e2[i2];
17750
17750
  break;
17751
17751
  }
17752
- return n2 === 1 && (n2 = Su.NONE), n2;
17752
+ return n2 === 1 && (n2 = Eu.NONE), n2;
17753
17753
  }, t2.prototype.blit = function(t3, e2, n2) {
17754
17754
  var i2 = this.current, r2 = this.renderer, o2 = this.gl, s2 = this.CONTEXT_UID;
17755
17755
  if (r2.context.webGLVersion === 2 && i2) {
@@ -17929,14 +17929,14 @@ var Slide = function(t) {
17929
17929
  }, t2;
17930
17930
  }(), yp = function() {
17931
17931
  function t2(t3) {
17932
- t3 === void 0 && (t3 = null), this.type = Eu.NONE, this.autoDetect = true, this.maskObject = t3 || null, this.pooled = false, this.isMaskData = true, this.resolution = null, this.multisample = Mu.FILTER_MULTISAMPLE, this.enabled = true, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._target = null;
17932
+ t3 === void 0 && (t3 = null), this.type = Su.NONE, this.autoDetect = true, this.maskObject = t3 || null, this.pooled = false, this.isMaskData = true, this.resolution = null, this.multisample = Mu.FILTER_MULTISAMPLE, this.enabled = true, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._target = null;
17933
17933
  }
17934
17934
  return Object.defineProperty(t2.prototype, "filter", { get: function() {
17935
17935
  return this._filters ? this._filters[0] : null;
17936
17936
  }, set: function(t3) {
17937
17937
  t3 ? this._filters ? this._filters[0] = t3 : this._filters = [t3] : this._filters = null;
17938
17938
  }, enumerable: false, configurable: true }), t2.prototype.reset = function() {
17939
- this.pooled && (this.maskObject = null, this.type = Eu.NONE, this.autoDetect = true), this._target = null, this._scissorRectLocal = null;
17939
+ this.pooled && (this.maskObject = null, this.type = Su.NONE, this.autoDetect = true), this._target = null, this._scissorRectLocal = null;
17940
17940
  }, t2.prototype.copyCountersOrReset = function(t3) {
17941
17941
  t3 ? (this._stencilCounter = t3._stencilCounter, this._scissorCounter = t3._scissorCounter, this._scissorRect = t3._scissorRect) : (this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null);
17942
17942
  }, t2;
@@ -18008,13 +18008,13 @@ var Slide = function(t) {
18008
18008
  }
18009
18009
  return null;
18010
18010
  }
18011
- var wp, Ep = {}, Sp = Ep;
18011
+ var wp, Sp = {}, Ep = Sp;
18012
18012
  function Ap() {
18013
- if (Sp === Ep || Sp && Sp.isContextLost()) {
18013
+ if (Ep === Sp || Ep && Ep.isContextLost()) {
18014
18014
  var t2 = document.createElement("canvas"), e2 = void 0;
18015
- Mu.PREFER_ENV >= lu.WEBGL2 && (e2 = t2.getContext("webgl2", {})), e2 || ((e2 = t2.getContext("webgl", {}) || t2.getContext("experimental-webgl", {})) ? e2.getExtension("WEBGL_draw_buffers") : e2 = null), Sp = e2;
18015
+ Mu.PREFER_ENV >= lu.WEBGL2 && (e2 = t2.getContext("webgl2", {})), e2 || ((e2 = t2.getContext("webgl", {}) || t2.getContext("experimental-webgl", {})) ? e2.getExtension("WEBGL_draw_buffers") : e2 = null), Ep = e2;
18016
18016
  }
18017
- return Sp;
18017
+ return Ep;
18018
18018
  }
18019
18019
  function Mp(t2, e2, n2) {
18020
18020
  if (t2.substring(0, 9) !== "precision") {
@@ -18250,39 +18250,39 @@ var Slide = function(t) {
18250
18250
  i2.pooled = true, i2.maskObject = e2, n2 = i2;
18251
18251
  }
18252
18252
  var r2 = this.maskStack.length !== 0 ? this.maskStack[this.maskStack.length - 1] : null;
18253
- if (n2.copyCountersOrReset(r2), n2.autoDetect && this.detect(n2), n2._target = t3, n2.type !== Eu.SPRITE && this.maskStack.push(n2), n2.enabled)
18253
+ if (n2.copyCountersOrReset(r2), n2.autoDetect && this.detect(n2), n2._target = t3, n2.type !== Su.SPRITE && this.maskStack.push(n2), n2.enabled)
18254
18254
  switch (n2.type) {
18255
- case Eu.SCISSOR:
18255
+ case Su.SCISSOR:
18256
18256
  this.renderer.scissor.push(n2);
18257
18257
  break;
18258
- case Eu.STENCIL:
18258
+ case Su.STENCIL:
18259
18259
  this.renderer.stencil.push(n2);
18260
18260
  break;
18261
- case Eu.SPRITE:
18261
+ case Su.SPRITE:
18262
18262
  n2.copyCountersOrReset(null), this.pushSpriteMask(n2);
18263
18263
  }
18264
- n2.type === Eu.SPRITE && this.maskStack.push(n2);
18264
+ n2.type === Su.SPRITE && this.maskStack.push(n2);
18265
18265
  }, t2.prototype.pop = function(t3) {
18266
18266
  var e2 = this.maskStack.pop();
18267
18267
  if (e2 && e2._target === t3) {
18268
18268
  if (e2.enabled)
18269
18269
  switch (e2.type) {
18270
- case Eu.SCISSOR:
18270
+ case Su.SCISSOR:
18271
18271
  this.renderer.scissor.pop();
18272
18272
  break;
18273
- case Eu.STENCIL:
18273
+ case Su.STENCIL:
18274
18274
  this.renderer.stencil.pop(e2.maskObject);
18275
18275
  break;
18276
- case Eu.SPRITE:
18276
+ case Su.SPRITE:
18277
18277
  this.popSpriteMask(e2);
18278
18278
  }
18279
18279
  if (e2.reset(), e2.pooled && this.maskDataPool.push(e2), this.maskStack.length !== 0) {
18280
18280
  var n2 = this.maskStack[this.maskStack.length - 1];
18281
- n2.type === Eu.SPRITE && n2._filters && (n2._filters[0].maskSprite = n2.maskObject);
18281
+ n2.type === Su.SPRITE && n2._filters && (n2._filters[0].maskSprite = n2.maskObject);
18282
18282
  }
18283
18283
  }
18284
18284
  }, t2.prototype.detect = function(t3) {
18285
- t3.maskObject.isSprite ? t3.type = Eu.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(t3) ? t3.type = Eu.SCISSOR : t3.type = Eu.STENCIL;
18285
+ t3.maskObject.isSprite ? t3.type = Su.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(t3) ? t3.type = Su.SCISSOR : t3.type = Su.STENCIL;
18286
18286
  }, t2.prototype.pushSpriteMask = function(t3) {
18287
18287
  var e2, n2, i2 = t3.maskObject, r2 = t3._target, o2 = t3._filters;
18288
18288
  o2 || (o2 = this.alphaMaskPool[this.alphaMaskIndex]) || (o2 = this.alphaMaskPool[this.alphaMaskIndex] = [new qp()]);
@@ -18821,9 +18821,9 @@ var Slide = function(t) {
18821
18821
  }, set: function(t3) {
18822
18822
  this._backgroundColorRgba[3] = t3;
18823
18823
  }, enumerable: false, configurable: true }), e2;
18824
- }(Cu.a), Ef = function(t2) {
18824
+ }(Cu.a), Sf = function(t2) {
18825
18825
  this.buffer = t2 || null, this.updateID = -1, this.byteLength = -1, this.refCount = 0;
18826
- }, Sf = function() {
18826
+ }, Ef = function() {
18827
18827
  function t2(t3) {
18828
18828
  this.renderer = t3, this.managedBuffers = {}, this.boundBufferBases = {};
18829
18829
  }
@@ -18865,12 +18865,12 @@ var Slide = function(t) {
18865
18865
  this.dispose(this.managedBuffers[e2[n2]], t3);
18866
18866
  }, t2.prototype.createGLBuffer = function(t3) {
18867
18867
  var e2 = this.CONTEXT_UID, n2 = this.gl;
18868
- return t3._glBuffers[e2] = new Ef(n2.createBuffer()), this.managedBuffers[t3.id] = t3, t3.disposeRunner.add(this), t3._glBuffers[e2];
18868
+ return t3._glBuffers[e2] = new Sf(n2.createBuffer()), this.managedBuffers[t3.id] = t3, t3.disposeRunner.add(this), t3._glBuffers[e2];
18869
18869
  }, t2;
18870
18870
  }(), Af = function(t2) {
18871
18871
  function e2(n2) {
18872
18872
  var i2 = t2.call(this, hu.WEBGL, n2) || this;
18873
- return n2 = i2.options, i2.gl = null, i2.CONTEXT_UID = 0, i2.runners = { destroy: new md("destroy"), contextChange: new md("contextChange"), reset: new md("reset"), update: new md("update"), postrender: new md("postrender"), prerender: new md("prerender"), resize: new md("resize") }, i2.runners.contextChange.add(i2), i2.globalUniforms = new rp({ projectionMatrix: new Lc() }, true), i2.addSystem(Zp, "mask").addSystem(dp, "context").addSystem(vf, "state").addSystem(gf, "shader").addSystem(xf, "texture").addSystem(Sf, "buffer").addSystem(vp, "geometry").addSystem(mp, "framebuffer").addSystem(Kp, "scissor").addSystem($p, "stencil").addSystem(tf, "projection").addSystem(yf, "textureGC").addSystem(lp, "filter").addSystem(rf, "renderTexture").addSystem(up, "batch"), i2.initPlugins(e2.__plugins), i2.multisample = void 0, n2.context ? i2.context.initFromContext(n2.context) : i2.context.initFromOptions({ alpha: !!i2.useContextAlpha, antialias: n2.antialias, premultipliedAlpha: i2.useContextAlpha && i2.useContextAlpha !== "notMultiplied", stencil: true, preserveDrawingBuffer: n2.preserveDrawingBuffer, powerPreference: i2.options.powerPreference }), i2.renderingToScreen = true, Uu(i2.context.webGLVersion === 2 ? "WebGL 2" : "WebGL 1"), i2.resize(i2.options.width, i2.options.height), i2;
18873
+ return n2 = i2.options, i2.gl = null, i2.CONTEXT_UID = 0, i2.runners = { destroy: new md("destroy"), contextChange: new md("contextChange"), reset: new md("reset"), update: new md("update"), postrender: new md("postrender"), prerender: new md("prerender"), resize: new md("resize") }, i2.runners.contextChange.add(i2), i2.globalUniforms = new rp({ projectionMatrix: new Lc() }, true), i2.addSystem(Zp, "mask").addSystem(dp, "context").addSystem(vf, "state").addSystem(gf, "shader").addSystem(xf, "texture").addSystem(Ef, "buffer").addSystem(vp, "geometry").addSystem(mp, "framebuffer").addSystem(Kp, "scissor").addSystem($p, "stencil").addSystem(tf, "projection").addSystem(yf, "textureGC").addSystem(lp, "filter").addSystem(rf, "renderTexture").addSystem(up, "batch"), i2.initPlugins(e2.__plugins), i2.multisample = void 0, n2.context ? i2.context.initFromContext(n2.context) : i2.context.initFromOptions({ alpha: !!i2.useContextAlpha, antialias: n2.antialias, premultipliedAlpha: i2.useContextAlpha && i2.useContextAlpha !== "notMultiplied", stencil: true, preserveDrawingBuffer: n2.preserveDrawingBuffer, powerPreference: i2.options.powerPreference }), i2.renderingToScreen = true, Uu(i2.context.webGLVersion === 2 ? "WebGL 2" : "WebGL 1"), i2.resize(i2.options.width, i2.options.height), i2;
18874
18874
  }
18875
18875
  return Td(e2, t2), e2.create = function(t3) {
18876
18876
  if (Bu())
@@ -18885,7 +18885,7 @@ var Slide = function(t) {
18885
18885
  n2 = e3.getParameter(e3.DRAW_FRAMEBUFFER_BINDING);
18886
18886
  e3.bindFramebuffer(e3.DRAW_FRAMEBUFFER, null), t3 = e3.getParameter(e3.SAMPLES), e3.bindFramebuffer(e3.DRAW_FRAMEBUFFER, n2);
18887
18887
  }
18888
- t3 >= Su.HIGH ? this.multisample = Su.HIGH : t3 >= Su.MEDIUM ? this.multisample = Su.MEDIUM : t3 >= Su.LOW ? this.multisample = Su.LOW : this.multisample = Su.NONE;
18888
+ t3 >= Eu.HIGH ? this.multisample = Eu.HIGH : t3 >= Eu.MEDIUM ? this.multisample = Eu.MEDIUM : t3 >= Eu.LOW ? this.multisample = Eu.LOW : this.multisample = Eu.NONE;
18889
18889
  }, e2.prototype.addSystem = function(t3, e3) {
18890
18890
  var n2 = new t3(this);
18891
18891
  if (this[e3])
@@ -19147,7 +19147,7 @@ var Slide = function(t) {
19147
19147
  e3.hasOwnProperty(n2) && (t3[n2] = e3[n2]);
19148
19148
  })(t2, e2);
19149
19149
  };
19150
- var Yf, qf, Zf, Jf, Qf, Kf, $f, tm, em, nm, im, rm, om, sm, am, lm, hm, um, cm, dm = new Ec(), pm = new Uint16Array([0, 1, 2, 0, 2, 3]), fm = function(t2) {
19150
+ var Yf, qf, Zf, Jf, Qf, Kf, $f, tm, em, nm, im, rm, om, sm, am, lm, hm, um, cm, dm = new Sc(), pm = new Uint16Array([0, 1, 2, 0, 2, 3]), fm = function(t2) {
19151
19151
  function e2(e3) {
19152
19152
  var n2 = t2.call(this) || this;
19153
19153
  return n2._anchor = new Ic(n2._onAnchorUpdate, n2, e3 ? e3.defaultAnchor.x : 0, e3 ? e3.defaultAnchor.y : 0), n2._texture = null, n2._width = 0, n2._height = 0, n2._tint = null, n2._tintRGB = null, n2.tint = 16777215, n2.blendMode = cu.NORMAL, n2._cachedTint = 16777215, n2.uvs = null, n2.texture = e3 || Vd.EMPTY, n2.vertexData = new Float32Array(8), n2.vertexTrimmedData = null, n2._transformID = -1, n2._textureID = -1, n2._transformTrimmedID = -1, n2._textureTrimmedID = -1, n2.indices = pm, n2.pluginName = "batch", n2.isSprite = true, n2._roundPixels = Mu.ROUND_PIXELS, n2;
@@ -19508,7 +19508,7 @@ var Slide = function(t) {
19508
19508
  */
19509
19509
  var bm = function() {
19510
19510
  function t2() {
19511
- this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0, this.global = new Ec(), this.target = null, this.originalEvent = null, this.identifier = null, this.isPrimary = false, this.button = 0, this.buttons = 0, this.width = 0, this.height = 0, this.tiltX = 0, this.tiltY = 0, this.pointerType = null, this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0;
19511
+ this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0, this.global = new Sc(), this.target = null, this.originalEvent = null, this.identifier = null, this.isPrimary = false, this.button = 0, this.buttons = 0, this.width = 0, this.height = 0, this.tiltX = 0, this.tiltY = 0, this.pointerType = null, this.pressure = 0, this.rotationAngle = 0, this.twist = 0, this.tangentialPressure = 0;
19512
19512
  }
19513
19513
  return Object.defineProperty(t2.prototype, "pointerId", { get: function() {
19514
19514
  return this.identifier;
@@ -19552,7 +19552,7 @@ var Slide = function(t) {
19552
19552
  }, t2.prototype.reset = function() {
19553
19553
  this.stopped = false, this.stopsPropagatingAt = null, this.stopPropagationHint = false, this.currentTarget = null, this.target = null;
19554
19554
  }, t2;
19555
- }(), Em = function() {
19555
+ }(), Sm = function() {
19556
19556
  function t2(e2) {
19557
19557
  this._pointerId = e2, this._flags = t2.FLAGS.NONE;
19558
19558
  }
@@ -19579,9 +19579,9 @@ var Slide = function(t) {
19579
19579
  }, set: function(e2) {
19580
19580
  this._doSet(t2.FLAGS.LEFT_DOWN, e2);
19581
19581
  }, enumerable: false, configurable: true }), t2.FLAGS = Object.freeze({ NONE: 0, OVER: 1, LEFT_DOWN: 2, RIGHT_DOWN: 4 }), t2;
19582
- }(), Sm = function() {
19582
+ }(), Em = function() {
19583
19583
  function t2() {
19584
- this._tempPoint = new Ec();
19584
+ this._tempPoint = new Sc();
19585
19585
  }
19586
19586
  return t2.prototype.recursiveFindHit = function(t3, e2, n2, i2, r2) {
19587
19587
  if (!e2 || !e2.visible)
@@ -19611,7 +19611,7 @@ var Slide = function(t) {
19611
19611
  var Mm = { target: null, data: { global: null } }, Pm = function(t2) {
19612
19612
  function e2(e3, n2) {
19613
19613
  var i2 = t2.call(this) || this;
19614
- return n2 = n2 || {}, i2.renderer = e3, i2.autoPreventDefault = n2.autoPreventDefault === void 0 || n2.autoPreventDefault, i2.interactionFrequency = n2.interactionFrequency || 10, i2.mouse = new bm(), i2.mouse.identifier = 1, i2.mouse.global.set(-999999), i2.activeInteractionData = {}, i2.activeInteractionData[1] = i2.mouse, i2.interactionDataPool = [], i2.eventData = new wm(), i2.interactionDOMElement = null, i2.moveWhenInside = false, i2.eventsAdded = false, i2.tickerAdded = false, i2.mouseOverRenderer = !("PointerEvent" in globalThis), i2.supportsTouchEvents = "ontouchstart" in globalThis, i2.supportsPointerEvents = !!globalThis.PointerEvent, i2.onPointerUp = i2.onPointerUp.bind(i2), i2.processPointerUp = i2.processPointerUp.bind(i2), i2.onPointerCancel = i2.onPointerCancel.bind(i2), i2.processPointerCancel = i2.processPointerCancel.bind(i2), i2.onPointerDown = i2.onPointerDown.bind(i2), i2.processPointerDown = i2.processPointerDown.bind(i2), i2.onPointerMove = i2.onPointerMove.bind(i2), i2.processPointerMove = i2.processPointerMove.bind(i2), i2.onPointerOut = i2.onPointerOut.bind(i2), i2.processPointerOverOut = i2.processPointerOverOut.bind(i2), i2.onPointerOver = i2.onPointerOver.bind(i2), i2.cursorStyles = { default: "inherit", pointer: "pointer" }, i2.currentCursorMode = null, i2.cursor = null, i2.resolution = 1, i2.delayedEvents = [], i2.search = new Sm(), i2._tempDisplayObject = new cd(), i2._eventListenerOptions = { capture: true, passive: false }, i2._useSystemTicker = n2.useSystemTicker === void 0 || n2.useSystemTicker, i2.setTargetElement(i2.renderer.view, i2.renderer.resolution), i2;
19614
+ return n2 = n2 || {}, i2.renderer = e3, i2.autoPreventDefault = n2.autoPreventDefault === void 0 || n2.autoPreventDefault, i2.interactionFrequency = n2.interactionFrequency || 10, i2.mouse = new bm(), i2.mouse.identifier = 1, i2.mouse.global.set(-999999), i2.activeInteractionData = {}, i2.activeInteractionData[1] = i2.mouse, i2.interactionDataPool = [], i2.eventData = new wm(), i2.interactionDOMElement = null, i2.moveWhenInside = false, i2.eventsAdded = false, i2.tickerAdded = false, i2.mouseOverRenderer = !("PointerEvent" in globalThis), i2.supportsTouchEvents = "ontouchstart" in globalThis, i2.supportsPointerEvents = !!globalThis.PointerEvent, i2.onPointerUp = i2.onPointerUp.bind(i2), i2.processPointerUp = i2.processPointerUp.bind(i2), i2.onPointerCancel = i2.onPointerCancel.bind(i2), i2.processPointerCancel = i2.processPointerCancel.bind(i2), i2.onPointerDown = i2.onPointerDown.bind(i2), i2.processPointerDown = i2.processPointerDown.bind(i2), i2.onPointerMove = i2.onPointerMove.bind(i2), i2.processPointerMove = i2.processPointerMove.bind(i2), i2.onPointerOut = i2.onPointerOut.bind(i2), i2.processPointerOverOut = i2.processPointerOverOut.bind(i2), i2.onPointerOver = i2.onPointerOver.bind(i2), i2.cursorStyles = { default: "inherit", pointer: "pointer" }, i2.currentCursorMode = null, i2.cursor = null, i2.resolution = 1, i2.delayedEvents = [], i2.search = new Em(), i2._tempDisplayObject = new cd(), i2._eventListenerOptions = { capture: true, passive: false }, i2._useSystemTicker = n2.useSystemTicker === void 0 || n2.useSystemTicker, i2.setTargetElement(i2.renderer.view, i2.renderer.resolution), i2;
19615
19615
  }
19616
19616
  return function(t3, e3) {
19617
19617
  function n2() {
@@ -19718,7 +19718,7 @@ var Slide = function(t) {
19718
19718
  }, e2.prototype.processPointerDown = function(t3, e3, n2) {
19719
19719
  var i2 = t3.data, r2 = t3.data.identifier;
19720
19720
  if (n2) {
19721
- if (e3.trackedPointers[r2] || (e3.trackedPointers[r2] = new Em(r2)), this.dispatchEvent(e3, "pointerdown", t3), i2.pointerType === "touch")
19721
+ if (e3.trackedPointers[r2] || (e3.trackedPointers[r2] = new Sm(r2)), this.dispatchEvent(e3, "pointerdown", t3), i2.pointerType === "touch")
19722
19722
  this.dispatchEvent(e3, "touchstart", t3);
19723
19723
  else if (i2.pointerType === "mouse" || i2.pointerType === "pen") {
19724
19724
  var o2 = i2.button === 2;
@@ -19744,7 +19744,7 @@ var Slide = function(t) {
19744
19744
  }, e2.prototype.processPointerUp = function(t3, e3, n2) {
19745
19745
  var i2 = t3.data, r2 = t3.data.identifier, o2 = e3.trackedPointers[r2], s2 = i2.pointerType === "touch", a2 = i2.pointerType === "mouse" || i2.pointerType === "pen", l2 = false;
19746
19746
  if (a2) {
19747
- var h2 = i2.button === 2, u2 = Em.FLAGS, c2 = h2 ? u2.RIGHT_DOWN : u2.LEFT_DOWN, d2 = o2 !== void 0 && o2.flags & c2;
19747
+ var h2 = i2.button === 2, u2 = Sm.FLAGS, c2 = h2 ? u2.RIGHT_DOWN : u2.LEFT_DOWN, d2 = o2 !== void 0 && o2.flags & c2;
19748
19748
  n2 ? (this.dispatchEvent(e3, h2 ? "rightup" : "mouseup", t3), d2 && (this.dispatchEvent(e3, h2 ? "rightclick" : "click", t3), l2 = true)) : d2 && this.dispatchEvent(e3, h2 ? "rightupoutside" : "mouseupoutside", t3), o2 && (h2 ? o2.rightDown = false : o2.leftDown = false);
19749
19749
  }
19750
19750
  n2 ? (this.dispatchEvent(e3, "pointerup", t3), s2 && this.dispatchEvent(e3, "touchend", t3), o2 && (a2 && !l2 || this.dispatchEvent(e3, "pointertap", t3), s2 && (this.dispatchEvent(e3, "tap", t3), o2.over = false))) : o2 && (this.dispatchEvent(e3, "pointerupoutside", t3), s2 && this.dispatchEvent(e3, "touchendoutside", t3)), o2 && o2.none && delete e3.trackedPointers[r2];
@@ -19770,7 +19770,7 @@ var Slide = function(t) {
19770
19770
  }
19771
19771
  }, e2.prototype.processPointerOverOut = function(t3, e3, n2) {
19772
19772
  var i2 = t3.data, r2 = t3.data.identifier, o2 = i2.pointerType === "mouse" || i2.pointerType === "pen", s2 = e3.trackedPointers[r2];
19773
- n2 && !s2 && (s2 = e3.trackedPointers[r2] = new Em(r2)), s2 !== void 0 && (n2 && this.mouseOverRenderer ? (s2.over || (s2.over = true, this.delayDispatchEvent(e3, "pointerover", t3), o2 && this.delayDispatchEvent(e3, "mouseover", t3)), o2 && this.cursor === null && (this.cursor = e3.cursor)) : s2.over && (s2.over = false, this.dispatchEvent(e3, "pointerout", this.eventData), o2 && this.dispatchEvent(e3, "mouseout", t3), s2.none && delete e3.trackedPointers[r2]));
19773
+ n2 && !s2 && (s2 = e3.trackedPointers[r2] = new Sm(r2)), s2 !== void 0 && (n2 && this.mouseOverRenderer ? (s2.over || (s2.over = true, this.delayDispatchEvent(e3, "pointerover", t3), o2 && this.delayDispatchEvent(e3, "mouseover", t3)), o2 && this.cursor === null && (this.cursor = e3.cursor)) : s2.over && (s2.over = false, this.dispatchEvent(e3, "pointerout", this.eventData), o2 && this.dispatchEvent(e3, "mouseout", t3), s2.none && delete e3.trackedPointers[r2]));
19774
19774
  }, e2.prototype.onPointerOver = function(t3) {
19775
19775
  var e3 = this.normalizeToPointerData(t3)[0], n2 = this.getInteractionDataForPointerId(e3), i2 = this.configureInteractionEventForDOMEvent(this.eventData, e3, n2);
19776
19776
  i2.data.originalEvent = e3, e3.pointerType === "mouse" && (this.mouseOverRenderer = true), this.emit("pointerover", i2), e3.pointerType !== "mouse" && e3.pointerType !== "pen" || this.emit("mouseover", i2);
@@ -19968,7 +19968,7 @@ var Slide = function(t) {
19968
19968
  }
19969
19969
  pg(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (n2.prototype = e2.prototype, new n2());
19970
19970
  }
19971
- var mg, gg, vg, yg, _g, xg, bg, Tg, wg, Eg, Sg, Ag, Mg, Pg, Cg, Rg, Ig, Lg, Ng, Og = function(t2) {
19971
+ var mg, gg, vg, yg, _g, xg, bg, Tg, wg, Sg, Eg, Ag, Mg, Pg, Cg, Rg, Ig, Lg, Ng, Og = function(t2) {
19972
19972
  function e2() {
19973
19973
  var e3 = t2.call(this) || this;
19974
19974
  return e3.tempDisplayObjectParent = null, e3.transform = new Hc(), e3.alpha = 1, e3.visible = true, e3.renderable = true, e3.cullable = false, e3.cullArea = null, e3.parent = null, e3.worldAlpha = 1, e3._lastSortedIndex = 0, e3._zIndex = 0, e3.filterArea = null, e3.filters = null, e3._enabledFilters = null, e3._bounds = new dg(), e3._localBounds = null, e3._boundsID = 0, e3._boundsRect = null, e3._localBoundsRect = null, e3._mask = null, e3._maskRefCount = 0, e3._destroyed = false, e3.isSprite = false, e3.isMask = false, e3;
@@ -20102,9 +20102,9 @@ var Slide = function(t) {
20102
20102
  t2[t2.FLOAT = 0] = "FLOAT", t2[t2.INT = 1] = "INT", t2[t2.UINT = 2] = "UINT";
20103
20103
  }(wg || (wg = {})), function(t2) {
20104
20104
  t2[t2.NEAREST = 0] = "NEAREST", t2[t2.LINEAR = 1] = "LINEAR";
20105
- }(Eg || (Eg = {})), function(t2) {
20106
- t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
20107
20105
  }(Sg || (Sg = {})), function(t2) {
20106
+ t2[t2.CLAMP = 33071] = "CLAMP", t2[t2.REPEAT = 10497] = "REPEAT", t2[t2.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT";
20107
+ }(Eg || (Eg = {})), function(t2) {
20108
20108
  t2[t2.OFF = 0] = "OFF", t2[t2.POW2 = 1] = "POW2", t2[t2.ON = 2] = "ON", t2[t2.ON_MANUAL = 3] = "ON_MANUAL";
20109
20109
  }(Ag || (Ag = {})), function(t2) {
20110
20110
  t2[t2.NPM = 0] = "NPM", t2[t2.UNPACK = 1] = "UNPACK", t2[t2.PMA = 2] = "PMA", t2[t2.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", t2[t2.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", t2[t2.PREMULTIPLY_ALPHA = 2] = "PREMULTIPLY_ALPHA", t2[t2.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA";
@@ -20481,7 +20481,7 @@ var Slide = function(t) {
20481
20481
  this.data && this.data.length === e2.length || (this.data = new Float32Array(e2.length)), this.uvMatrix.multiplyUvs(e2, this.data), this._updateID++;
20482
20482
  }
20483
20483
  }, t2;
20484
- }(), gv = new Ec(), vv = new Cc(), yv = function(t2) {
20484
+ }(), gv = new Sc(), vv = new Cc(), yv = function(t2) {
20485
20485
  function e2(e3, n2, i2, r2) {
20486
20486
  r2 === void 0 && (r2 = du.TRIANGLES);
20487
20487
  var o2 = t2.call(this) || this;
@@ -20623,13 +20623,13 @@ var Slide = function(t) {
20623
20623
  e3.hasOwnProperty(n2) && (t3[n2] = e3[n2]);
20624
20624
  })(t2, e2);
20625
20625
  };
20626
- function Ev(t2, e2) {
20626
+ function Sv(t2, e2) {
20627
20627
  function n2() {
20628
20628
  this.constructor = t2;
20629
20629
  }
20630
20630
  wv(t2, e2), t2.prototype = e2 === null ? Object.create(e2) : (n2.prototype = e2.prototype, new n2());
20631
20631
  }
20632
- function Sv(t2, e2) {
20632
+ function Ev(t2, e2) {
20633
20633
  var n2, i2;
20634
20634
  e2 === void 0 && (e2 = false);
20635
20635
  var r2 = t2.length;
@@ -20652,10 +20652,10 @@ var Slide = function(t) {
20652
20652
  }, triangulate: function(t2, e2) {
20653
20653
  var n2 = t2.points, i2 = t2.holes, r2 = e2.points, o2 = e2.indices;
20654
20654
  if (n2.length >= 6) {
20655
- Sv(n2, false);
20655
+ Ev(n2, false);
20656
20656
  for (var s2 = [], a2 = 0; a2 < i2.length; a2++) {
20657
20657
  var l2 = i2[a2];
20658
- Sv(l2.points, true), s2.push(n2.length / 2), n2 = n2.concat(l2.points);
20658
+ Ev(l2.points, true), s2.push(n2.length / 2), n2 = n2.concat(l2.points);
20659
20659
  }
20660
20660
  var h2 = Iu()(n2, s2, 2);
20661
20661
  if (!h2)
@@ -20683,18 +20683,18 @@ var Slide = function(t) {
20683
20683
  if (a2.length = f2, f2 !== 0) {
20684
20684
  if (p2 === 0)
20685
20685
  return a2.length = 8, a2[0] = a2[6] = e2 + i2, a2[1] = a2[3] = n2 + r2, a2[2] = a2[4] = e2 - i2, void (a2[5] = a2[7] = n2 - r2);
20686
- var m2 = 0, g2 = 4 * p2 + (i2 ? 2 : 0) + 2, v2 = g2, y2 = f2, _2 = e2 + (S2 = i2 + o2), x2 = e2 - S2, b2 = n2 + (A2 = r2);
20686
+ var m2 = 0, g2 = 4 * p2 + (i2 ? 2 : 0) + 2, v2 = g2, y2 = f2, _2 = e2 + (E2 = i2 + o2), x2 = e2 - E2, b2 = n2 + (A2 = r2);
20687
20687
  if (a2[m2++] = _2, a2[m2++] = b2, a2[--g2] = b2, a2[--g2] = x2, r2) {
20688
20688
  var T2 = n2 - A2;
20689
20689
  a2[v2++] = x2, a2[v2++] = T2, a2[--y2] = T2, a2[--y2] = _2;
20690
20690
  }
20691
20691
  for (var w2 = 1; w2 < p2; w2++) {
20692
- var E2 = Math.PI / 2 * (w2 / p2);
20693
- _2 = e2 + (S2 = i2 + Math.cos(E2) * o2), x2 = e2 - S2, b2 = n2 + (A2 = r2 + Math.sin(E2) * s2), T2 = n2 - A2;
20692
+ var S2 = Math.PI / 2 * (w2 / p2);
20693
+ _2 = e2 + (E2 = i2 + Math.cos(S2) * o2), x2 = e2 - E2, b2 = n2 + (A2 = r2 + Math.sin(S2) * s2), T2 = n2 - A2;
20694
20694
  a2[m2++] = _2, a2[m2++] = b2, a2[--g2] = b2, a2[--g2] = x2, a2[v2++] = x2, a2[v2++] = T2, a2[--y2] = T2, a2[--y2] = _2;
20695
20695
  }
20696
- var S2, A2;
20697
- _2 = e2 + (S2 = i2), x2 = e2 - S2, b2 = n2 + (A2 = r2 + s2), T2 = n2 - A2;
20696
+ var E2, A2;
20697
+ _2 = e2 + (E2 = i2), x2 = e2 - E2, b2 = n2 + (A2 = r2 + s2), T2 = n2 - A2;
20698
20698
  a2[m2++] = _2, a2[m2++] = b2, a2[--y2] = T2, a2[--y2] = _2, i2 && (a2[m2++] = x2, a2[m2++] = b2, a2[--y2] = T2, a2[--y2] = x2);
20699
20699
  }
20700
20700
  } else
@@ -20781,30 +20781,30 @@ var Slide = function(t) {
20781
20781
  }(t2, e2) : function(t3, e3) {
20782
20782
  var n2 = t3.shape, i2 = t3.points || n2.points.slice(), r2 = e3.closePointEps;
20783
20783
  if (i2.length !== 0) {
20784
- var o2 = t3.lineStyle, s2 = new Ec(i2[0], i2[1]), a2 = new Ec(i2[i2.length - 2], i2[i2.length - 1]), l2 = n2.type !== xc.POLY || n2.closeStroke, h2 = Math.abs(s2.x - a2.x) < r2 && Math.abs(s2.y - a2.y) < r2;
20784
+ var o2 = t3.lineStyle, s2 = new Sc(i2[0], i2[1]), a2 = new Sc(i2[i2.length - 2], i2[i2.length - 1]), l2 = n2.type !== xc.POLY || n2.closeStroke, h2 = Math.abs(s2.x - a2.x) < r2 && Math.abs(s2.y - a2.y) < r2;
20785
20785
  if (l2) {
20786
20786
  i2 = i2.slice(), h2 && (i2.pop(), i2.pop(), a2.set(i2[i2.length - 2], i2[i2.length - 1]));
20787
20787
  var u2 = 0.5 * (s2.x + a2.x), c2 = 0.5 * (a2.y + s2.y);
20788
20788
  i2.unshift(u2, c2), i2.push(u2, c2);
20789
20789
  }
20790
- var d2 = e3.points, p2 = i2.length / 2, f2 = i2.length, m2 = d2.length / 2, g2 = o2.width / 2, v2 = g2 * g2, y2 = o2.miterLimit * o2.miterLimit, _2 = i2[0], x2 = i2[1], b2 = i2[2], T2 = i2[3], w2 = 0, E2 = 0, S2 = -(x2 - T2), A2 = _2 - b2, M2 = 0, P2 = 0, C2 = Math.sqrt(S2 * S2 + A2 * A2);
20791
- S2 /= C2, A2 /= C2, S2 *= g2, A2 *= g2;
20790
+ var d2 = e3.points, p2 = i2.length / 2, f2 = i2.length, m2 = d2.length / 2, g2 = o2.width / 2, v2 = g2 * g2, y2 = o2.miterLimit * o2.miterLimit, _2 = i2[0], x2 = i2[1], b2 = i2[2], T2 = i2[3], w2 = 0, S2 = 0, E2 = -(x2 - T2), A2 = _2 - b2, M2 = 0, P2 = 0, C2 = Math.sqrt(E2 * E2 + A2 * A2);
20791
+ E2 /= C2, A2 /= C2, E2 *= g2, A2 *= g2;
20792
20792
  var R2 = o2.alignment, I2 = 2 * (1 - R2), L2 = 2 * R2;
20793
- l2 || (o2.cap === fv.ROUND ? f2 += Nv(_2 - S2 * (I2 - L2) * 0.5, x2 - A2 * (I2 - L2) * 0.5, _2 - S2 * I2, x2 - A2 * I2, _2 + S2 * L2, x2 + A2 * L2, d2, true) + 2 : o2.cap === fv.SQUARE && (f2 += Lv(_2, x2, S2, A2, I2, L2, true, d2))), d2.push(_2 - S2 * I2, x2 - A2 * I2), d2.push(_2 + S2 * L2, x2 + A2 * L2);
20793
+ l2 || (o2.cap === fv.ROUND ? f2 += Nv(_2 - E2 * (I2 - L2) * 0.5, x2 - A2 * (I2 - L2) * 0.5, _2 - E2 * I2, x2 - A2 * I2, _2 + E2 * L2, x2 + A2 * L2, d2, true) + 2 : o2.cap === fv.SQUARE && (f2 += Lv(_2, x2, E2, A2, I2, L2, true, d2))), d2.push(_2 - E2 * I2, x2 - A2 * I2), d2.push(_2 + E2 * L2, x2 + A2 * L2);
20794
20794
  for (var N2 = 1; N2 < p2 - 1; ++N2) {
20795
- _2 = i2[2 * (N2 - 1)], x2 = i2[2 * (N2 - 1) + 1], b2 = i2[2 * N2], T2 = i2[2 * N2 + 1], w2 = i2[2 * (N2 + 1)], E2 = i2[2 * (N2 + 1) + 1], S2 = -(x2 - T2), A2 = _2 - b2, S2 /= C2 = Math.sqrt(S2 * S2 + A2 * A2), A2 /= C2, S2 *= g2, A2 *= g2, M2 = -(T2 - E2), P2 = b2 - w2, M2 /= C2 = Math.sqrt(M2 * M2 + P2 * P2), P2 /= C2, M2 *= g2, P2 *= g2;
20796
- var O2 = b2 - _2, D2 = x2 - T2, F2 = b2 - w2, U2 = E2 - T2, B2 = D2 * F2 - U2 * O2, k2 = B2 < 0;
20795
+ _2 = i2[2 * (N2 - 1)], x2 = i2[2 * (N2 - 1) + 1], b2 = i2[2 * N2], T2 = i2[2 * N2 + 1], w2 = i2[2 * (N2 + 1)], S2 = i2[2 * (N2 + 1) + 1], E2 = -(x2 - T2), A2 = _2 - b2, E2 /= C2 = Math.sqrt(E2 * E2 + A2 * A2), A2 /= C2, E2 *= g2, A2 *= g2, M2 = -(T2 - S2), P2 = b2 - w2, M2 /= C2 = Math.sqrt(M2 * M2 + P2 * P2), P2 /= C2, M2 *= g2, P2 *= g2;
20796
+ var O2 = b2 - _2, D2 = x2 - T2, F2 = b2 - w2, U2 = S2 - T2, B2 = D2 * F2 - U2 * O2, k2 = B2 < 0;
20797
20797
  if (Math.abs(B2) < 0.1)
20798
- d2.push(b2 - S2 * I2, T2 - A2 * I2), d2.push(b2 + S2 * L2, T2 + A2 * L2);
20798
+ d2.push(b2 - E2 * I2, T2 - A2 * I2), d2.push(b2 + E2 * L2, T2 + A2 * L2);
20799
20799
  else {
20800
- var G2 = (-S2 + _2) * (-A2 + T2) - (-S2 + b2) * (-A2 + x2), H2 = (-M2 + w2) * (-P2 + T2) - (-M2 + b2) * (-P2 + E2), j2 = (O2 * H2 - F2 * G2) / B2, z2 = (U2 * G2 - D2 * H2) / B2, V2 = (j2 - b2) * (j2 - b2) + (z2 - T2) * (z2 - T2), W2 = b2 + (j2 - b2) * I2, X2 = T2 + (z2 - T2) * I2, Y2 = b2 - (j2 - b2) * L2, q2 = T2 - (z2 - T2) * L2, Z2 = k2 ? I2 : L2;
20801
- V2 <= Math.min(O2 * O2 + D2 * D2, F2 * F2 + U2 * U2) + Z2 * Z2 * v2 ? o2.join === pv.BEVEL || V2 / v2 > y2 ? (k2 ? (d2.push(W2, X2), d2.push(b2 + S2 * L2, T2 + A2 * L2), d2.push(W2, X2), d2.push(b2 + M2 * L2, T2 + P2 * L2)) : (d2.push(b2 - S2 * I2, T2 - A2 * I2), d2.push(Y2, q2), d2.push(b2 - M2 * I2, T2 - P2 * I2), d2.push(Y2, q2)), f2 += 2) : o2.join === pv.ROUND ? k2 ? (d2.push(W2, X2), d2.push(b2 + S2 * L2, T2 + A2 * L2), f2 += Nv(b2, T2, b2 + S2 * L2, T2 + A2 * L2, b2 + M2 * L2, T2 + P2 * L2, d2, true) + 4, d2.push(W2, X2), d2.push(b2 + M2 * L2, T2 + P2 * L2)) : (d2.push(b2 - S2 * I2, T2 - A2 * I2), d2.push(Y2, q2), f2 += Nv(b2, T2, b2 - S2 * I2, T2 - A2 * I2, b2 - M2 * I2, T2 - P2 * I2, d2, false) + 4, d2.push(b2 - M2 * I2, T2 - P2 * I2), d2.push(Y2, q2)) : (d2.push(W2, X2), d2.push(Y2, q2)) : (d2.push(b2 - S2 * I2, T2 - A2 * I2), d2.push(b2 + S2 * L2, T2 + A2 * L2), o2.join === pv.ROUND ? f2 += k2 ? Nv(b2, T2, b2 + S2 * L2, T2 + A2 * L2, b2 + M2 * L2, T2 + P2 * L2, d2, true) + 2 : Nv(b2, T2, b2 - S2 * I2, T2 - A2 * I2, b2 - M2 * I2, T2 - P2 * I2, d2, false) + 2 : o2.join === pv.MITER && V2 / v2 <= y2 && (k2 ? (d2.push(Y2, q2), d2.push(Y2, q2)) : (d2.push(W2, X2), d2.push(W2, X2)), f2 += 2), d2.push(b2 - M2 * I2, T2 - P2 * I2), d2.push(b2 + M2 * L2, T2 + P2 * L2), f2 += 2);
20800
+ var G2 = (-E2 + _2) * (-A2 + T2) - (-E2 + b2) * (-A2 + x2), H2 = (-M2 + w2) * (-P2 + T2) - (-M2 + b2) * (-P2 + S2), j2 = (O2 * H2 - F2 * G2) / B2, z2 = (U2 * G2 - D2 * H2) / B2, V2 = (j2 - b2) * (j2 - b2) + (z2 - T2) * (z2 - T2), W2 = b2 + (j2 - b2) * I2, X2 = T2 + (z2 - T2) * I2, Y2 = b2 - (j2 - b2) * L2, q2 = T2 - (z2 - T2) * L2, Z2 = k2 ? I2 : L2;
20801
+ V2 <= Math.min(O2 * O2 + D2 * D2, F2 * F2 + U2 * U2) + Z2 * Z2 * v2 ? o2.join === pv.BEVEL || V2 / v2 > y2 ? (k2 ? (d2.push(W2, X2), d2.push(b2 + E2 * L2, T2 + A2 * L2), d2.push(W2, X2), d2.push(b2 + M2 * L2, T2 + P2 * L2)) : (d2.push(b2 - E2 * I2, T2 - A2 * I2), d2.push(Y2, q2), d2.push(b2 - M2 * I2, T2 - P2 * I2), d2.push(Y2, q2)), f2 += 2) : o2.join === pv.ROUND ? k2 ? (d2.push(W2, X2), d2.push(b2 + E2 * L2, T2 + A2 * L2), f2 += Nv(b2, T2, b2 + E2 * L2, T2 + A2 * L2, b2 + M2 * L2, T2 + P2 * L2, d2, true) + 4, d2.push(W2, X2), d2.push(b2 + M2 * L2, T2 + P2 * L2)) : (d2.push(b2 - E2 * I2, T2 - A2 * I2), d2.push(Y2, q2), f2 += Nv(b2, T2, b2 - E2 * I2, T2 - A2 * I2, b2 - M2 * I2, T2 - P2 * I2, d2, false) + 4, d2.push(b2 - M2 * I2, T2 - P2 * I2), d2.push(Y2, q2)) : (d2.push(W2, X2), d2.push(Y2, q2)) : (d2.push(b2 - E2 * I2, T2 - A2 * I2), d2.push(b2 + E2 * L2, T2 + A2 * L2), o2.join === pv.ROUND ? f2 += k2 ? Nv(b2, T2, b2 + E2 * L2, T2 + A2 * L2, b2 + M2 * L2, T2 + P2 * L2, d2, true) + 2 : Nv(b2, T2, b2 - E2 * I2, T2 - A2 * I2, b2 - M2 * I2, T2 - P2 * I2, d2, false) + 2 : o2.join === pv.MITER && V2 / v2 <= y2 && (k2 ? (d2.push(Y2, q2), d2.push(Y2, q2)) : (d2.push(W2, X2), d2.push(W2, X2)), f2 += 2), d2.push(b2 - M2 * I2, T2 - P2 * I2), d2.push(b2 + M2 * L2, T2 + P2 * L2), f2 += 2);
20802
20802
  }
20803
20803
  }
20804
- _2 = i2[2 * (p2 - 2)], x2 = i2[2 * (p2 - 2) + 1], b2 = i2[2 * (p2 - 1)], S2 = -(x2 - (T2 = i2[2 * (p2 - 1) + 1])), A2 = _2 - b2, S2 /= C2 = Math.sqrt(S2 * S2 + A2 * A2), A2 /= C2, S2 *= g2, A2 *= g2, d2.push(b2 - S2 * I2, T2 - A2 * I2), d2.push(b2 + S2 * L2, T2 + A2 * L2), l2 || (o2.cap === fv.ROUND ? f2 += Nv(b2 - S2 * (I2 - L2) * 0.5, T2 - A2 * (I2 - L2) * 0.5, b2 - S2 * I2, T2 - A2 * I2, b2 + S2 * L2, T2 + A2 * L2, d2, false) + 2 : o2.cap === fv.SQUARE && (f2 += Lv(b2, T2, S2, A2, I2, L2, false, d2)));
20804
+ _2 = i2[2 * (p2 - 2)], x2 = i2[2 * (p2 - 2) + 1], b2 = i2[2 * (p2 - 1)], E2 = -(x2 - (T2 = i2[2 * (p2 - 1) + 1])), A2 = _2 - b2, E2 /= C2 = Math.sqrt(E2 * E2 + A2 * A2), A2 /= C2, E2 *= g2, A2 *= g2, d2.push(b2 - E2 * I2, T2 - A2 * I2), d2.push(b2 + E2 * L2, T2 + A2 * L2), l2 || (o2.cap === fv.ROUND ? f2 += Nv(b2 - E2 * (I2 - L2) * 0.5, T2 - A2 * (I2 - L2) * 0.5, b2 - E2 * I2, T2 - A2 * I2, b2 + E2 * L2, T2 + A2 * L2, d2, false) + 2 : o2.cap === fv.SQUARE && (f2 += Lv(b2, T2, E2, A2, I2, L2, false, d2)));
20805
20805
  var J2 = e3.indices, Q2 = bv.epsilon * bv.epsilon;
20806
20806
  for (N2 = m2; N2 < f2 + m2 - 2; ++N2)
20807
- _2 = d2[2 * N2], x2 = d2[2 * N2 + 1], b2 = d2[2 * (N2 + 1)], T2 = d2[2 * (N2 + 1) + 1], w2 = d2[2 * (N2 + 2)], E2 = d2[2 * (N2 + 2) + 1], Math.abs(_2 * (T2 - E2) + b2 * (E2 - x2) + w2 * (x2 - T2)) < Q2 || J2.push(N2, N2 + 1, N2 + 2);
20807
+ _2 = d2[2 * N2], x2 = d2[2 * N2 + 1], b2 = d2[2 * (N2 + 1)], T2 = d2[2 * (N2 + 1) + 1], w2 = d2[2 * (N2 + 2)], S2 = d2[2 * (N2 + 2) + 1], Math.abs(_2 * (T2 - S2) + b2 * (S2 - x2) + w2 * (x2 - T2)) < Q2 || J2.push(N2, N2 + 1, N2 + 2);
20808
20808
  }
20809
20809
  }(t2, e2);
20810
20810
  }
@@ -20815,8 +20815,8 @@ var Slide = function(t) {
20815
20815
  var s2 = o2[o2.length - 2], a2 = o2[o2.length - 1] - e2, l2 = s2 - t3, h2 = i2 - e2, u2 = n2 - t3, c2 = Math.abs(a2 * u2 - l2 * h2);
20816
20816
  if (c2 < 1e-8 || r2 === 0)
20817
20817
  return o2[o2.length - 2] === t3 && o2[o2.length - 1] === e2 || o2.push(t3, e2), null;
20818
- var d2 = a2 * a2 + l2 * l2, p2 = h2 * h2 + u2 * u2, f2 = a2 * h2 + l2 * u2, m2 = r2 * Math.sqrt(d2) / c2, g2 = r2 * Math.sqrt(p2) / c2, v2 = m2 * f2 / d2, y2 = g2 * f2 / p2, _2 = m2 * u2 + g2 * l2, x2 = m2 * h2 + g2 * a2, b2 = l2 * (g2 + v2), T2 = a2 * (g2 + v2), w2 = u2 * (m2 + y2), E2 = h2 * (m2 + y2);
20819
- return { cx: _2 + t3, cy: x2 + e2, radius: r2, startAngle: Math.atan2(T2 - x2, b2 - _2), endAngle: Math.atan2(E2 - x2, w2 - _2), anticlockwise: l2 * h2 > u2 * a2 };
20818
+ var d2 = a2 * a2 + l2 * l2, p2 = h2 * h2 + u2 * u2, f2 = a2 * h2 + l2 * u2, m2 = r2 * Math.sqrt(d2) / c2, g2 = r2 * Math.sqrt(p2) / c2, v2 = m2 * f2 / d2, y2 = g2 * f2 / p2, _2 = m2 * u2 + g2 * l2, x2 = m2 * h2 + g2 * a2, b2 = l2 * (g2 + v2), T2 = a2 * (g2 + v2), w2 = u2 * (m2 + y2), S2 = h2 * (m2 + y2);
20819
+ return { cx: _2 + t3, cy: x2 + e2, radius: r2, startAngle: Math.atan2(T2 - x2, b2 - _2), endAngle: Math.atan2(S2 - x2, w2 - _2), anticlockwise: l2 * h2 > u2 * a2 };
20820
20820
  }, t2.arc = function(t3, e2, n2, i2, r2, o2, s2, a2, l2) {
20821
20821
  for (var h2 = s2 - o2, u2 = bv._segmentsCount(Math.abs(h2) * r2, 40 * Math.ceil(Math.abs(h2) / bc)), c2 = h2 / (2 * u2), d2 = 2 * c2, p2 = Math.cos(c2), f2 = Math.sin(c2), m2 = u2 - 1, g2 = m2 % 1 / m2, v2 = 0; v2 <= m2; ++v2) {
20822
20822
  var y2 = c2 + o2 + d2 * (v2 + g2 * v2), _2 = Math.cos(y2), x2 = -Math.sin(y2);
@@ -20870,12 +20870,12 @@ var Slide = function(t) {
20870
20870
  }, t2.prototype.destroy = function() {
20871
20871
  this.shape = null, this.holes.length = 0, this.holes = null, this.points.length = 0, this.points = null, this.lineStyle = null, this.fillStyle = null;
20872
20872
  }, t2;
20873
- }(), Vv = new Ec(), Wv = new jc(), Xv = function(t2) {
20873
+ }(), Vv = new Sc(), Wv = new jc(), Xv = function(t2) {
20874
20874
  function e2() {
20875
20875
  var e3 = t2.call(this) || this;
20876
20876
  return e3.closePointEps = 1e-4, e3.boundsPadding = 0, e3.uvsFloat32 = null, e3.indicesUint16 = null, e3.batchable = false, e3.points = [], e3.colors = [], e3.uvs = [], e3.indices = [], e3.textureIds = [], e3.graphicsData = [], e3.drawCalls = [], e3.batchDirty = -1, e3.batches = [], e3.dirty = 0, e3.cacheDirty = -1, e3.clearDirty = 0, e3.shapeIndex = 0, e3._bounds = new jc(), e3.boundsDirty = -1, e3;
20877
20877
  }
20878
- return Ev(e2, t2), Object.defineProperty(e2.prototype, "bounds", { get: function() {
20878
+ return Sv(e2, t2), Object.defineProperty(e2.prototype, "bounds", { get: function() {
20879
20879
  return this.boundsDirty !== this.dirty && (this.boundsDirty = this.dirty, this.calculateBounds()), this._bounds;
20880
20880
  }, enumerable: false, configurable: true }), e2.prototype.invalidate = function() {
20881
20881
  this.boundsDirty = -1, this.dirty++, this.batchDirty++, this.shapeIndex = 0, this.points.length = 0, this.colors.length = 0, this.uvs.length = 0, this.indices.length = 0, this.textureIds.length = 0;
@@ -21068,7 +21068,7 @@ var Slide = function(t) {
21068
21068
  var e3 = t2 !== null && t2.apply(this, arguments) || this;
21069
21069
  return e3.width = 0, e3.alignment = 0.5, e3.native = false, e3.cap = fv.BUTT, e3.join = pv.MITER, e3.miterLimit = 10, e3;
21070
21070
  }
21071
- return Ev(e2, t2), e2.prototype.clone = function() {
21071
+ return Sv(e2, t2), e2.prototype.clone = function() {
21072
21072
  var t3 = new e2();
21073
21073
  return t3.color = this.color, t3.alpha = this.alpha, t3.texture = this.texture, t3.matrix = this.matrix, t3.visible = this.visible, t3.width = this.width, t3.alignment = this.alignment, t3.native = this.native, t3.cap = this.cap, t3.join = this.join, t3.miterLimit = this.miterLimit, t3;
21074
21074
  }, e2.prototype.reset = function() {
@@ -21080,7 +21080,7 @@ var Slide = function(t) {
21080
21080
  var n2 = t2.call(this) || this;
21081
21081
  return n2.shader = null, n2.pluginName = "batch", n2.currentPath = null, n2.batches = [], n2.batchTint = -1, n2.batchDirty = -1, n2.vertexData = null, n2._fillStyle = new Tv(), n2._lineStyle = new Yv(), n2._matrix = null, n2._holeMode = false, n2.state = Vp.for2d(), n2._geometry = e3 || new Xv(), n2._geometry.refCount++, n2._transformID = -1, n2.tint = 16777215, n2.blendMode = cu.NORMAL, n2;
21082
21082
  }
21083
- return Ev(e2, t2), Object.defineProperty(e2.prototype, "geometry", { get: function() {
21083
+ return Sv(e2, t2), Object.defineProperty(e2.prototype, "geometry", { get: function() {
21084
21084
  return this._geometry;
21085
21085
  }, enumerable: false, configurable: true }), e2.prototype.clone = function() {
21086
21086
  return this.finishPoly(), new e2(this._geometry);
@@ -21251,7 +21251,7 @@ var Slide = function(t) {
21251
21251
  return this.finishPoly(), this._holeMode = false, this;
21252
21252
  }, e2.prototype.destroy = function(e3) {
21253
21253
  this._geometry.refCount--, this._geometry.refCount === 0 && this._geometry.dispose(), this._matrix = null, this.currentPath = null, this._lineStyle.destroy(), this._lineStyle = null, this._fillStyle.destroy(), this._fillStyle = null, this._geometry = null, this.shader = null, this.vertexData = null, this.batches.length = 0, this.batches = null, t2.prototype.destroy.call(this, e3);
21254
- }, e2.nextRoundedRectBehavior = false, e2._TEMP_POINT = new Ec(), e2;
21254
+ }, e2.nextRoundedRectBehavior = false, e2._TEMP_POINT = new Sc(), e2;
21255
21255
  }(pd), Qv = { buildPoly: Av, buildCircle: Mv, buildRectangle: Pv, buildRoundedRectangle: Iv, buildLine: Ov, ArcUtils: Fv, BezierUtils: Uv, QuadraticUtils: Bv, BatchPart: kv, FILL_COMMANDS: Gv, BATCH_POOL: Hv, DRAW_CALL_POOL: jv }, Kv = function(t2, e2) {
21256
21256
  return (Kv = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
21257
21257
  t3.__proto__ = e3;
@@ -21953,7 +21953,7 @@ var Slide = function(t) {
21953
21953
  };
21954
21954
  };
21955
21955
  }
21956
- var Ey = n(35), Sy = n.n(Ey), Ay = function(t2, e2, n2, i2) {
21956
+ var Sy = n(35), Ey = n.n(Sy), Ay = function(t2, e2, n2, i2) {
21957
21957
  return new (n2 || (n2 = Promise))(function(r2, o2) {
21958
21958
  function s2(t3) {
21959
21959
  try {
@@ -22430,9 +22430,9 @@ var Slide = function(t) {
22430
22430
  const a2 = [];
22431
22431
  let l2 = null;
22432
22432
  for (; (o2 > 2048 || s2 > 2048) && i2.length > 0; )
22433
- r2 -= 1, l2 = Sy()(i2.slice(0, r2)), o2 = l2.width, s2 = l2.height;
22433
+ r2 -= 1, l2 = Ey()(i2.slice(0, r2)), o2 = l2.width, s2 = l2.height;
22434
22434
  return l2 && a2.push(l2), n2.forEach((t3) => {
22435
- const e3 = Sy()([t3]);
22435
+ const e3 = Ey()([t3]);
22436
22436
  a2.push(e3);
22437
22437
  }), r2 < i2.length ? a2.concat(t2(i2.slice(r2))) : a2;
22438
22438
  }(this.graphics);
@@ -22844,7 +22844,7 @@ var Slide = function(t) {
22844
22844
  const T_ = new _y.ColorMatrixFilter();
22845
22845
  T_.matrix = [1, 0, 0, 0, 0.1, 0, 1, 0, 0, 0.1, 0, 0, 1, 0, 0.1, 0, 0, 0, 1, 0];
22846
22846
  const w_ = { darken: __, darkenLess: x_, lightenLess: T_, lighten: b_ };
22847
- class E_ extends h_ {
22847
+ class S_ extends h_ {
22848
22848
  constructor(t2, e2, n2) {
22849
22849
  super({ position: { x: t2.x, y: t2.y }, width: t2.width, height: t2.height }, e2, n2), this.fillColorFilter = new y_(), this.fill = new i_(this), this.json = t2, this.ctx = e2, this.parentGlobalPos = n2, this.global = { x: n2.x + t2.x, y: n2.y + t2.y }, this.updateTransform({ position: { x: t2.x, y: t2.y }, width: t2.width, height: t2.height });
22850
22850
  }
@@ -22893,7 +22893,7 @@ var Slide = function(t) {
22893
22893
  return a_(this.global.y / this.ctx.stageHeight);
22894
22894
  }
22895
22895
  }
22896
- class S_ {
22896
+ class E_ {
22897
22897
  constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2) {
22898
22898
  this.ctx = t2, this.type = e2, this.lineWidth = n2, this.width = i2, this.height = r2, this.fillColor = o2, this.isHorz = s2, this.renderContainer = new pd(), this.ghcTextureId = `${a2}-text-p${l2}-l${h2}-u${u2}-underLine`;
22899
22899
  }
@@ -22957,21 +22957,21 @@ var Slide = function(t) {
22957
22957
  return l2;
22958
22958
  const h2 = Math.abs(s2 + a2);
22959
22959
  return Math.abs(l2) >= 33306690738754716e-32 * h2 ? l2 : -function(t3, e3, n3, i3, r3, o3, s3) {
22960
- let a3, l3, h3, u2, c2, d2, p2, f2, m2, g2, v2, y2, _2, x2, b2, T2, w2, E2;
22961
- const S2 = t3 - r3, A2 = n3 - r3, M2 = e3 - o3, P2 = i3 - o3;
22962
- x2 = S2 * P2, d2 = A_ * S2, p2 = d2 - (d2 - S2), f2 = S2 - p2, d2 = A_ * P2, m2 = d2 - (d2 - P2), g2 = P2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = A_ * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = A_ * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, R_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, R_[1] = _2 - (v2 + c2) + (c2 - T2), E2 = y2 + v2, c2 = E2 - y2, R_[2] = y2 - (E2 - c2) + (v2 - c2), R_[3] = E2;
22960
+ let a3, l3, h3, u2, c2, d2, p2, f2, m2, g2, v2, y2, _2, x2, b2, T2, w2, S2;
22961
+ const E2 = t3 - r3, A2 = n3 - r3, M2 = e3 - o3, P2 = i3 - o3;
22962
+ x2 = E2 * P2, d2 = A_ * E2, p2 = d2 - (d2 - E2), f2 = E2 - p2, d2 = A_ * P2, m2 = d2 - (d2 - P2), g2 = P2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * A2, d2 = A_ * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = A_ * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, R_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, R_[1] = _2 - (v2 + c2) + (c2 - T2), S2 = y2 + v2, c2 = S2 - y2, R_[2] = y2 - (S2 - c2) + (v2 - c2), R_[3] = S2;
22963
22963
  let C2 = P_(4, R_), R2 = 22204460492503146e-32 * s3;
22964
22964
  if (C2 >= R2 || -C2 >= R2)
22965
22965
  return C2;
22966
- if (c2 = t3 - S2, a3 = t3 - (S2 + c2) + (c2 - r3), c2 = n3 - A2, h3 = n3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = i3 - P2, u2 = i3 - (P2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
22966
+ if (c2 = t3 - E2, a3 = t3 - (E2 + c2) + (c2 - r3), c2 = n3 - A2, h3 = n3 - (A2 + c2) + (c2 - r3), c2 = e3 - M2, l3 = e3 - (M2 + c2) + (c2 - o3), c2 = i3 - P2, u2 = i3 - (P2 + c2) + (c2 - o3), a3 === 0 && l3 === 0 && h3 === 0 && u2 === 0)
22967
22967
  return C2;
22968
- if (R2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(C2), C2 += S2 * u2 + P2 * a3 - (M2 * h3 + A2 * l3), C2 >= R2 || -C2 >= R2)
22968
+ if (R2 = 11093356479670487e-47 * s3 + 33306690738754706e-32 * Math.abs(C2), C2 += E2 * u2 + P2 * a3 - (M2 * h3 + A2 * l3), C2 >= R2 || -C2 >= R2)
22969
22969
  return C2;
22970
- x2 = a3 * P2, d2 = A_ * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = A_ * P2, m2 = d2 - (d2 - P2), g2 = P2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = A_ * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = A_ * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, O_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, O_[1] = _2 - (v2 + c2) + (c2 - T2), E2 = y2 + v2, c2 = E2 - y2, O_[2] = y2 - (E2 - c2) + (v2 - c2), O_[3] = E2;
22970
+ x2 = a3 * P2, d2 = A_ * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = A_ * P2, m2 = d2 - (d2 - P2), g2 = P2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * A2, d2 = A_ * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = A_ * A2, m2 = d2 - (d2 - A2), g2 = A2 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, O_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, O_[1] = _2 - (v2 + c2) + (c2 - T2), S2 = y2 + v2, c2 = S2 - y2, O_[2] = y2 - (S2 - c2) + (v2 - c2), O_[3] = S2;
22971
22971
  const I2 = M_(4, R_, 4, O_, I_);
22972
- x2 = S2 * u2, d2 = A_ * S2, p2 = d2 - (d2 - S2), f2 = S2 - p2, d2 = A_ * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * h3, d2 = A_ * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = A_ * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, O_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, O_[1] = _2 - (v2 + c2) + (c2 - T2), E2 = y2 + v2, c2 = E2 - y2, O_[2] = y2 - (E2 - c2) + (v2 - c2), O_[3] = E2;
22972
+ x2 = E2 * u2, d2 = A_ * E2, p2 = d2 - (d2 - E2), f2 = E2 - p2, d2 = A_ * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = M2 * h3, d2 = A_ * M2, p2 = d2 - (d2 - M2), f2 = M2 - p2, d2 = A_ * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, O_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, O_[1] = _2 - (v2 + c2) + (c2 - T2), S2 = y2 + v2, c2 = S2 - y2, O_[2] = y2 - (S2 - c2) + (v2 - c2), O_[3] = S2;
22973
22973
  const L2 = M_(I2, I_, 4, O_, L_);
22974
- x2 = a3 * u2, d2 = A_ * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = A_ * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * h3, d2 = A_ * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = A_ * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, O_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, O_[1] = _2 - (v2 + c2) + (c2 - T2), E2 = y2 + v2, c2 = E2 - y2, O_[2] = y2 - (E2 - c2) + (v2 - c2), O_[3] = E2;
22974
+ x2 = a3 * u2, d2 = A_ * a3, p2 = d2 - (d2 - a3), f2 = a3 - p2, d2 = A_ * u2, m2 = d2 - (d2 - u2), g2 = u2 - m2, b2 = f2 * g2 - (x2 - p2 * m2 - f2 * m2 - p2 * g2), T2 = l3 * h3, d2 = A_ * l3, p2 = d2 - (d2 - l3), f2 = l3 - p2, d2 = A_ * h3, m2 = d2 - (d2 - h3), g2 = h3 - m2, w2 = f2 * g2 - (T2 - p2 * m2 - f2 * m2 - p2 * g2), v2 = b2 - w2, c2 = b2 - v2, O_[0] = b2 - (v2 + c2) + (c2 - w2), y2 = x2 + v2, c2 = y2 - x2, _2 = x2 - (y2 - c2) + (v2 - c2), v2 = _2 - T2, c2 = _2 - v2, O_[1] = _2 - (v2 + c2) + (c2 - T2), S2 = y2 + v2, c2 = S2 - y2, O_[2] = y2 - (S2 - c2) + (v2 - c2), O_[3] = S2;
22975
22975
  const N2 = M_(L2, L_, 4, O_, N_);
22976
22976
  return N_[N2 - 1];
22977
22977
  }(t2, e2, n2, i2, r2, o2, h2);
@@ -23047,7 +23047,7 @@ var Slide = function(t) {
23047
23047
  for (let e3 = 0; e3 < o2; e3++)
23048
23048
  this._dists[e3] = k_(t2[2 * e3], t2[2 * e3 + 1], w2.x, w2.y);
23049
23049
  j_(this._ids, this._dists, 0, o2 - 1), this._hullStart = d2;
23050
- let E2 = 3;
23050
+ let S2 = 3;
23051
23051
  n2[d2] = e2[f2] = p2, n2[p2] = e2[d2] = f2, n2[f2] = e2[p2] = d2, i2[d2] = 0, i2[p2] = 1, i2[f2] = 2, r2.fill(-1), r2[this._hashKey(g2, v2)] = d2, r2[this._hashKey(y2, _2)] = p2, r2[this._hashKey(b2, T2)] = f2, this.trianglesLen = 0, this._addTriangle(d2, p2, f2, -1, -1, -1);
23052
23052
  for (let o3, s3, a3 = 0; a3 < this._ids.length; a3++) {
23053
23053
  const l3 = this._ids[a3], h3 = t2[2 * l3], u3 = t2[2 * l3 + 1];
@@ -23068,17 +23068,17 @@ var Slide = function(t) {
23068
23068
  if (g3 === -1)
23069
23069
  continue;
23070
23070
  let v3 = this._addTriangle(g3, l3, n2[g3], -1, -1, i2[g3]);
23071
- i2[l3] = this._legalize(v3 + 2), i2[g3] = v3, E2++;
23071
+ i2[l3] = this._legalize(v3 + 2), i2[g3] = v3, S2++;
23072
23072
  let y3 = n2[g3];
23073
23073
  for (; m3 = n2[y3], D_(h3, u3, t2[2 * y3], t2[2 * y3 + 1], t2[2 * m3], t2[2 * m3 + 1]) < 0; )
23074
- v3 = this._addTriangle(y3, l3, m3, i2[l3], -1, i2[y3]), i2[l3] = this._legalize(v3 + 2), n2[y3] = y3, E2--, y3 = m3;
23074
+ v3 = this._addTriangle(y3, l3, m3, i2[l3], -1, i2[y3]), i2[l3] = this._legalize(v3 + 2), n2[y3] = y3, S2--, y3 = m3;
23075
23075
  if (g3 === c3)
23076
23076
  for (; m3 = e2[g3], D_(h3, u3, t2[2 * m3], t2[2 * m3 + 1], t2[2 * g3], t2[2 * g3 + 1]) < 0; )
23077
- v3 = this._addTriangle(m3, l3, g3, -1, i2[g3], i2[m3]), this._legalize(v3 + 2), i2[m3] = v3, n2[g3] = g3, E2--, g3 = m3;
23077
+ v3 = this._addTriangle(m3, l3, g3, -1, i2[g3], i2[m3]), this._legalize(v3 + 2), i2[m3] = v3, n2[g3] = g3, S2--, g3 = m3;
23078
23078
  this._hullStart = e2[l3] = g3, n2[g3] = e2[y3] = l3, n2[l3] = y3, r2[this._hashKey(h3, u3)] = l3, r2[this._hashKey(t2[2 * g3], t2[2 * g3 + 1])] = g3;
23079
23079
  }
23080
- this.hull = new Uint32Array(E2);
23081
- for (let t3 = 0, e3 = this._hullStart; t3 < E2; t3++)
23080
+ this.hull = new Uint32Array(S2);
23081
+ for (let t3 = 0, e3 = this._hullStart; t3 < S2; t3++)
23082
23082
  this.hull[t3] = e3, e3 = n2[e3];
23083
23083
  this.triangles = this._triangles.subarray(0, this.trianglesLen), this.halfedges = this._halfedges.subarray(0, this.trianglesLen);
23084
23084
  }
@@ -23491,14 +23491,14 @@ void main(void){
23491
23491
  l2((i2 = i2.apply(t2, e2 || [])).next());
23492
23492
  });
23493
23493
  };
23494
- class hx extends E_ {
23494
+ class hx extends S_ {
23495
23495
  constructor(t2, e2, n2) {
23496
23496
  var i2;
23497
23497
  super(t2, e2, n2), this.textureContainer = new pd(), this.underline = null, this.cacheSprite = new fm();
23498
23498
  const { shapeId: r2, paragraphIndex: o2, lineIndex: s2, unitIndex: a2, lineHeight: l2, width: h2, underLine: u2, fill: c2, height: d2, isHorz: p2, lineWidth: f2 } = t2, m2 = ((i2 = c2 == null ? void 0 : c2.fill) === null || i2 === void 0 ? void 0 : i2.fillType) === "solidFill" ? c2.fill.color : null;
23499
23499
  if (u2) {
23500
23500
  const t3 = p2 ? l2 / 16 : f2 / 16;
23501
- this.underline = new S_(e2, u2.type, t3, h2, d2, m2, p2, r2, o2, s2, a2);
23501
+ this.underline = new E_(e2, u2.type, t3, h2, d2, m2, p2, r2, o2, s2, a2);
23502
23502
  }
23503
23503
  this.textGraphics = this.createTextGraphics(), this.textFill = this.createTextFill(), this.strokeGraphics = this.createStrokeGraphics(), this.strokeFill = this.createStrokeFill();
23504
23504
  }
@@ -23618,7 +23618,7 @@ void main(void){
23618
23618
  l2((i2 = i2.apply(t2, e2 || [])).next());
23619
23619
  });
23620
23620
  };
23621
- class cx extends E_ {
23621
+ class cx extends S_ {
23622
23622
  constructor() {
23623
23623
  super(...arguments), this.units = [], this.isHorz = true;
23624
23624
  }
@@ -23674,7 +23674,7 @@ void main(void){
23674
23674
  l2((i2 = i2.apply(t2, e2 || [])).next());
23675
23675
  });
23676
23676
  };
23677
- class px extends E_ {
23677
+ class px extends S_ {
23678
23678
  constructor() {
23679
23679
  super(...arguments), this.iterateElements = [], this.lines = [], this.isHorz = true;
23680
23680
  }
@@ -23956,10 +23956,10 @@ void main(void){
23956
23956
  return new Ac(n2, n2, i2, r2);
23957
23957
  }
23958
23958
  }
23959
- var Ex = n(7), Sx = n.n(Ex), Ax = n(95), Mx = n.n(Ax);
23959
+ var Sx = n(7), Ex = n.n(Sx), Ax = n(95), Mx = n.n(Ax);
23960
23960
  class Px extends yx {
23961
23961
  constructor(t2) {
23962
- super(Sx.a, Mx.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uRad: t2.rad, uSdfSampler: Vd.WHITE, uSdfReady: 0, uSdfMaxDis: 1 }), this.priority = 2, this.json = t2;
23962
+ super(Ex.a, Mx.a, { uShapeFilterArea: new Float32Array([0, 0, 0, 0]), uRad: t2.rad, uSdfSampler: Vd.WHITE, uSdfReady: 0, uSdfMaxDis: 1 }), this.priority = 2, this.json = t2;
23963
23963
  }
23964
23964
  filterAreaJustify(t2) {
23965
23965
  return t2;
@@ -23973,7 +23973,7 @@ void main(void){
23973
23973
  var Rx = n(96), Ix = n.n(Rx);
23974
23974
  class Lx extends Wp {
23975
23975
  constructor(t2) {
23976
- super(Sx.a, Ix.a, { uColor: m_(t2) });
23976
+ super(Ex.a, Ix.a, { uColor: m_(t2) });
23977
23977
  }
23978
23978
  }
23979
23979
  class Nx extends Cx {
@@ -23983,7 +23983,7 @@ void main(void){
23983
23983
  updateFrame(t2) {
23984
23984
  const e2 = this.frameTextures[t2];
23985
23985
  if (e2) {
23986
- const t3 = this.effectContainer.getBounds(), n2 = (this.effectContainer.width - e2.width) / 2, i2 = (this.effectContainer.height - e2.height) / 2, r2 = new Ec(t3.x, t3.y), o2 = new Ec(t3.x, t3.y);
23986
+ const t3 = this.effectContainer.getBounds(), n2 = (this.effectContainer.width - e2.width) / 2, i2 = (this.effectContainer.height - e2.height) / 2, r2 = new Sc(t3.x, t3.y), o2 = new Sc(t3.x, t3.y);
23987
23987
  switch (this.json.align) {
23988
23988
  case "tl":
23989
23989
  o2.x = t3.x, o2.y = t3.y;
@@ -24014,7 +24014,7 @@ void main(void){
24014
24014
  }
24015
24015
  const s2 = this.effectContainer.toLocal(o2);
24016
24016
  this.outputSprite.pivot.x = s2.x, this.outputSprite.pivot.y = s2.y;
24017
- const a2 = new Ec(this.json.dist, 0), l2 = new Lc();
24017
+ const a2 = new Sc(this.json.dist, 0), l2 = new Lc();
24018
24018
  l2.rotate(this.json.dir), l2.translate(r2.x + n2, r2.y + i2), l2.apply({ x: a2.x, y: a2.y }, a2);
24019
24019
  const h2 = this.effectContainer.toLocal(a2);
24020
24020
  this.outputSprite.position.x = h2.x, this.outputSprite.position.y = h2.y, this.outputSprite.texture = e2;
@@ -24027,7 +24027,7 @@ void main(void){
24027
24027
  var Ox = n(97), Dx = n.n(Ox);
24028
24028
  class Fx extends Wp {
24029
24029
  constructor(t2, e2) {
24030
- super(Sx.a, Dx.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
24030
+ super(Ex.a, Dx.a, { uStartAlpha: t2.startAlpha, uEndAlpha: t2.endAlpha, uStartPos: t2.startPos, uEndPos: t2.endPos, uHeight: e2 }), console.log(this);
24031
24031
  }
24032
24032
  }
24033
24033
  class Ux extends Cx {
@@ -24035,7 +24035,7 @@ void main(void){
24035
24035
  super(), this.order = 2, this.outputSprite = new fm(), this.outputTexture = Vd.WHITE, this.frameTextures = [], this.json = t2, this.effectContainer = e2, this.rotation = n2, this.ctx = i2, this.outputSprite.anchor.x = 0.5, this.outputSprite.anchor.y = 0.5;
24036
24036
  const r2 = this.effectContainer.getBounds();
24037
24037
  this.outputSprite.filters = [new _y.BlurFilter(this.json.blurRad / 2, 4), new Fx(this.json, r2.height)];
24038
- const o2 = new Ec(r2.x + r2.width / 2, r2.y + r2.height / 2), s2 = new Ec(o2.x, o2.y + r2.height + this.json.dist), a2 = this.effectContainer.toLocal(s2);
24038
+ const o2 = new Sc(r2.x + r2.width / 2, r2.y + r2.height / 2), s2 = new Sc(o2.x, o2.y + r2.height + this.json.dist), a2 = this.effectContainer.toLocal(s2);
24039
24039
  this.outputSprite.position.x = a2.x, this.outputSprite.position.y = a2.y, this.outputSprite.alpha = 0.5, this.outputSprite.rotation = Math.PI - 2 * this.rotation, this.outputSprite.scale.x = -1;
24040
24040
  }
24041
24041
  updateFrame(t2) {
@@ -24049,7 +24049,7 @@ void main(void){
24049
24049
  var Bx = n(98), kx = n.n(Bx);
24050
24050
  class Gx extends yx {
24051
24051
  constructor(t2) {
24052
- super(Sx.a, kx.a, {}), this.priority = 1, this.json = t2;
24052
+ super(Ex.a, kx.a, {}), this.priority = 1, this.json = t2;
24053
24053
  }
24054
24054
  filterAreaJustify(t2) {
24055
24055
  return t2;
@@ -24331,7 +24331,7 @@ void main(void){
24331
24331
  const t4 = Wd.create({ width: this.json.width, height: this.json.height, resolution: Math.ceil(this.ctx.renderer.resolution) });
24332
24332
  this.ctx.renderer.render(this.renderContainer, { renderTexture: t4 }), this.ctx.bgTexture = t4;
24333
24333
  }
24334
- this.json.effectList && this.json.effectList.length > 0 && ((h2 = this.ctx.featureList) === null || h2 === void 0 ? void 0 : h2.effect) && (this.effectObject = new jx(this.effectContainer, this.json.effectList, `${this.ctx.taskId}_${this.ctx.slideIndex}_${this.json.id}`, this.ctx, this.json.rotation || 0, new Ec(((u2 = this.json.scale) === null || u2 === void 0 ? void 0 : u2.x) || 1, ((c2 = this.json.scale) === null || c2 === void 0 ? void 0 : c2.y) || 1)), function(t4) {
24334
+ this.json.effectList && this.json.effectList.length > 0 && ((h2 = this.ctx.featureList) === null || h2 === void 0 ? void 0 : h2.effect) && (this.effectObject = new jx(this.effectContainer, this.json.effectList, `${this.ctx.taskId}_${this.ctx.slideIndex}_${this.json.id}`, this.ctx, this.json.rotation || 0, new Sc(((u2 = this.json.scale) === null || u2 === void 0 ? void 0 : u2.x) || 1, ((c2 = this.json.scale) === null || c2 === void 0 ? void 0 : c2.y) || 1)), function(t4) {
24335
24335
  var e3, n3, i3;
24336
24336
  return ((e3 = t4.fillStyle) === null || e3 === void 0 ? void 0 : e3.fillType) === "gifFill" || (((i3 = (n3 = t4.lineStyle) === null || n3 === void 0 ? void 0 : n3.fill) === null || i3 === void 0 ? void 0 : i3.fillType) === "gifFill" || !!t4.picFill && t4.picFill.fillType === "gifFill");
24337
24337
  }(this.json) && this.effectObject.setFrameCount(-1), this.effectObject.on("ready", () => {
@@ -25288,7 +25288,7 @@ void main(void){
25288
25288
  }
25289
25289
  var yb = n(100), _b = n.n(yb), xb = n(101), bb = n.n(xb);
25290
25290
  var Tb = n(102), wb = n.n(Tb);
25291
- var Eb = n(103), Sb = n.n(Eb), Ab = n(1), Mb = n.n(Ab);
25291
+ var Sb = n(103), Eb = n.n(Sb), Ab = n(1), Mb = n.n(Ab);
25292
25292
  var Pb = n(104), Cb = n.n(Pb);
25293
25293
  var Rb = n(105), Ib = n.n(Rb);
25294
25294
  const Lb = "data:image/png;base64,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";
@@ -25315,7 +25315,7 @@ void main(void){
25315
25315
  }
25316
25316
  }, blinds: class extends vb {
25317
25317
  constructor(t2) {
25318
- super(Mb.a, Sb.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0;
25318
+ super(Mb.a, Eb.a, { percent: 0, transition: 1, rect: new Float32Array([0, 0, 0, 0]) }), this.uniforms.option = t2 === "vertical" ? 1 : 0;
25319
25319
  }
25320
25320
  }, checkerboard: class extends vb {
25321
25321
  constructor(t2) {
@@ -26468,7 +26468,7 @@ void main(void){
26468
26468
  }
26469
26469
  }
26470
26470
  wT.worker = null;
26471
- var ET = function(t2, e2, n2, i2) {
26471
+ var ST = function(t2, e2, n2, i2) {
26472
26472
  return new (n2 || (n2 = Promise))(function(r2, o2) {
26473
26473
  function s2(t3) {
26474
26474
  try {
@@ -26493,7 +26493,7 @@ void main(void){
26493
26493
  l2((i2 = i2.apply(t2, e2 || [])).next());
26494
26494
  });
26495
26495
  };
26496
- class ST {
26496
+ class ET {
26497
26497
  constructor(t2, e2, n2, i2, r2, o2, s2, a2, l2, h2, u2, c2, d2, p2) {
26498
26498
  this.loader = t2, this.mode = e2, this.renderer = n2, this.ticker = i2, this.view = r2, this.clock = o2, this.objPoolGroup = s2, this.errorChannel = a2, this.localstorage = l2, this.logger = h2, this.loaderDelegate = u2, this.isPlayerPaused = c2, this.maxResolution = d2, this.volumeAdjuster = p2, this.currentStageIndex = 0, this.cacheCount = bT.isDesktop() ? 2 : 1, this.stageStates = /* @__PURE__ */ Object.create(null), this.stageJsons = /* @__PURE__ */ Object.create(null), this.stageCtxs = /* @__PURE__ */ Object.create(null), this.stageImpls = /* @__PURE__ */ Object.create(null), this.taskId = "", this.url = "", this.runningAudio = /* @__PURE__ */ new Map(), this.activeMedia = /* @__PURE__ */ new Set(), this.microTaskManager = new dT(i2), this.sdfManager = new wT(n2, l2);
26499
26499
  }
@@ -26502,14 +26502,14 @@ void main(void){
26502
26502
  }
26503
26503
  createCtx(t2) {
26504
26504
  const { task: e2 } = this.stageStates[t2];
26505
- e2.addMTask(() => ET(this, void 0, void 0, function* () {
26505
+ e2.addMTask(() => ST(this, void 0, void 0, function* () {
26506
26506
  const e3 = new ky(this.loader), n2 = new Ka.a(), i2 = { taskId: this.taskId, mode: this.mode, renderer: this.renderer, graphicsTexture: new Jy(), stageWidth: 0, stageHeight: 0, ticker: this.ticker, timingTargets: new Ky(n2), eventHub: n2, view: this.view, medias: /* @__PURE__ */ Object.create(null), lastViewedIndex: 0, conflictTimeNodeManager: new Qy(), clock: this.clock, spriteTexture: e3, slideIndex: t2, objectPoolGroup: this.objPoolGroup, hasBackgroundFillShape: false, slideScopeEventHub: new Ka.a(), logger: this.logger, sdfManager: this.sdfManager, loaderDelegate: this.loaderDelegate, runningAudio: this.runningAudio, activeMedia: this.activeMedia, isPlayerPaused: this.isPlayerPaused, timingEventHub: new Ka.a(), maxResolution: this.maxResolution, animatedIds: /* @__PURE__ */ new Set(), volumeAdjuster: this.volumeAdjuster };
26507
26507
  this.stageCtxs[t2] = i2;
26508
26508
  }), "@StagePool[createCtx]");
26509
26509
  }
26510
26510
  loadStageJson(t2) {
26511
26511
  const { task: e2 } = this.stageStates[t2];
26512
- e2.addMTask(() => ET(this, void 0, void 0, function* () {
26512
+ e2.addMTask(() => ST(this, void 0, void 0, function* () {
26513
26513
  const e3 = yield this.loader.fetchJson(`${this.url}/${this.taskId}/jsonOutput/slide-${t2}.json`);
26514
26514
  this.stageJsons[t2] = e3, this.stageCtxs[t2].stageWidth = e3.width, this.stageCtxs[t2].stageHeight = e3.height, this.stageCtxs[t2].featureList = e3.featureList;
26515
26515
  }), "@StagePool[loadStageJson]");
@@ -26544,7 +26544,7 @@ void main(void){
26544
26544
  }
26545
26545
  createGraphicsTexture(t2) {
26546
26546
  const { task: e2 } = this.stageStates[t2];
26547
- e2.addMTask(() => ET(this, void 0, void 0, function* () {
26547
+ e2.addMTask(() => ST(this, void 0, void 0, function* () {
26548
26548
  const n2 = this.stageCtxs[t2];
26549
26549
  n2.graphicsTexture.pack().forEach((t3, i2) => {
26550
26550
  e2.addSubMTask(() => n2.graphicsTexture.render(t3, i2, this.objPoolGroup), "@StagePool[graphicsTexture.render]");
@@ -26553,7 +26553,7 @@ void main(void){
26553
26553
  }
26554
26554
  renderStage(t2) {
26555
26555
  const { task: e2 } = this.stageStates[t2];
26556
- e2.addMTask(() => ET(this, void 0, void 0, function* () {
26556
+ e2.addMTask(() => ST(this, void 0, void 0, function* () {
26557
26557
  const n2 = this.stageImpls[t2];
26558
26558
  yield n2.render(e2);
26559
26559
  }), "@StagePool[renderStage]");
@@ -26591,7 +26591,7 @@ void main(void){
26591
26591
  return this.stageJsons[t2] || null;
26592
26592
  }
26593
26593
  getStage(t2) {
26594
- return ET(this, void 0, void 0, function* () {
26594
+ return ST(this, void 0, void 0, function* () {
26595
26595
  this.currentStageIndex = t2;
26596
26596
  const e2 = this.stageStates[t2];
26597
26597
  return (e2 == null ? void 0 : e2.state) === "finish" && this.stageImpls[t2] ? this.stageImpls[t2] : (e2 == null ? void 0 : e2.state) === "load" ? (yield e2.task.applyAll(), this.stageImpls[t2]) : (yield this.preload(t2, true), this.stageImpls[t2]);
@@ -26714,7 +26714,7 @@ void main(void){
26714
26714
  const RT = { randomBar: "RandomLines", circle: "Shape", ripple: "Ripples", wipe: "Erase", dissolve: "Dissolve", morph: "Smooth", fade: "FadeInOut", push: "Push", split: "Separation", reveal: "Display", pull: "Uncover", cover: "Cover", flash: "Flash", checker: "Checkerboard", blinds: "WindowShades", curtains: "Curtain", fallOver: "Fall", drape: "Suspension", wheel: "Clock", comb: "Combing", warp: "Scale", peelOff: "PeelOff", flip: "Flip" }, IT = { mainSeqStepChange: "mainSeqStepChange", mainSeqStateChange: "mainSeqStateChange", interactiveSeqStateChange: "interactiveSeqStateChange", interactiveSeqAction: "interactiveSeqAction", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", slideChange: "slideChange", renderStart: "renderStart", renderEnd: "renderEnd", hyperlinkTrigger: "hyperlinkTrigger", animateStart: "animateStart", animateEnd: "animateEnd", mediaSeek: "mediaSeek", mediaPlay: "mediaPlay", mediaPause: "mediaPause", requestNextSlide: "requestNextSlide", requestPrevSlide: "requestPrevSlide", requestGotoSlide: "requestGotoSlide", userInput: "userInput" };
26715
26715
  class LT extends Ka.a {
26716
26716
  constructor(t2, e2 = {}) {
26717
- super(), this.errorChannel = new Ka.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Ec(0, 0), this.fps = new xy(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
26717
+ super(), this.errorChannel = new Ka.a(), this.transactionPlayer = null, this.isForward = true, this.drawCall = 0, this.scale = 1, this._isPaused = false, this.maxResolution = new Sc(0, 0), this.fps = new xy(), this.designWidth = 0, this.designHeight = 0, this.currentIndex = 0, this.slideCount = 0, this.runtime = { drawCall: 0, fps: 0 }, this.isPlayerPaused = () => this._isPaused, this.onWebGLLost = () => {
26718
26718
  this.errorChannel.emit("error", new Ty(by.CanvasCrash, "webgl context lost."));
26719
26719
  }, this.logger = t2.logger, this.mode = t2.mode, this.volumeAdjuster = t2.volumeAdjuster, this.localStorage = new MT(this.logger), this.config = { minFPS: nl()(e2.minFPS) ? 30 : e2.minFPS, maxFPS: nl()(e2.maxFPS) ? 40 : e2.maxFPS, resolution: nl()(e2.resolution) ? 1 : e2.resolution, autoFPS: !nl()(e2.autoFPS) && e2.autoFPS, autoResolution: !nl()(e2.autoResolution) && e2.autoResolution, transactionBgColor: nl()(e2.transactionBgColor) ? 0 : e2.transactionBgColor, maxResolutionLevel: this.getMaxResolution(e2.maxResolutionLevel) }, this.updateMaxResolutionLevel(this.config.maxResolutionLevel), this.loader = new Ny(this.localStorage, t2.useLocalCache, this.logger, t2.resourceTimeout, t2.loadDelegate), this.app = new vm({ antialias: true, autoDensity: false, backgroundColor: 16777215 }), this.updateConfig(this.config), this.app.ticker.maxFPS = 60, this.app.ticker.minFPS = this.config.minFPS, this.app.ticker.maxFPS = this.config.maxFPS, this.app.view.style.zIndex = "1", this.app.stage.sortableChildren = true;
26720
26720
  const n2 = this.app.renderer, { drawElements: i2 } = n2.gl;
@@ -26732,9 +26732,9 @@ void main(void){
26732
26732
  }
26733
26733
  }), this.app.ticker.add(() => {
26734
26734
  this.runtime.drawCall = this.drawCall, this.runtime.fps = Math.floor(this.app.ticker.minFPS), this.drawCall = 0;
26735
- }, null, fd.LOW), this.clock = new Dy(this.app.ticker), this.objPoolGroup = My(), this.stagePool = new ST(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
26735
+ }, null, fd.LOW), this.clock = new Dy(this.app.ticker), this.objPoolGroup = My(), this.stagePool = new ET(this.loader, this.mode, this.app.renderer, this.app.ticker, this.app.view, this.clock, this.objPoolGroup, this.errorChannel, this.localStorage, this.logger, t2.loadDelegate, this.isPlayerPaused, this.maxResolution, this.volumeAdjuster), this.app.view.addEventListener("webglcontextlost", this.onWebGLLost);
26736
26736
  try {
26737
- this.transactionPlayer = new Sh();
26737
+ this.transactionPlayer = new Eh();
26738
26738
  } catch (t3) {
26739
26739
  /Error creating WebGL context/.test(t3.message) ? this.errorChannel.emit("error", new Ty(by.CanvasCrash, "webgl context lost.")) : this.errorChannel.emit("error", new Ty(by.RuntimeWarn, t3.message));
26740
26740
  }
@@ -26759,7 +26759,7 @@ void main(void){
26759
26759
  this.maxResolution.set(e2, n2);
26760
26760
  }
26761
26761
  updateConfig(t2) {
26762
- nl()(t2.maxFPS) || (this.config.maxFPS = t2.maxFPS), nl()(t2.minFPS) || (this.config.minFPS = t2.minFPS), nl()(t2.resolution) || (this.config.resolution = t2.resolution, this.updateResolution(this.scale * this.config.resolution)), nl()(t2.autoFPS) || (this.config.autoFPS = t2.autoFPS), nl()(t2.autoResolution) || (this.config.autoResolution = t2.autoResolution), nl()(t2.transactionBgColor) || (this.config.transactionBgColor = t2.transactionBgColor), this.taskId && this.logger.info("ppt player update config: " + JSON.stringify(this.config), this.taskId), nl()(t2.maxResolutionLevel) || (this.config.maxResolutionLevel = t2.maxResolutionLevel, this.updateMaxResolutionLevel(this.config.maxResolutionLevel));
26762
+ nl()(t2.maxFPS) || nl()(t2.minFPS) || (this.config.maxFPS = t2.maxFPS, this.app.ticker.maxFPS = t2.maxFPS, this.config.minFPS = t2.minFPS, this.app.ticker.minFPS = t2.minFPS), nl()(t2.resolution) || (this.config.resolution = t2.resolution, this.updateResolution(this.scale * this.config.resolution)), nl()(t2.autoFPS) || (this.config.autoFPS = t2.autoFPS), nl()(t2.autoResolution) || (this.config.autoResolution = t2.autoResolution), nl()(t2.transactionBgColor) || (this.config.transactionBgColor = t2.transactionBgColor), this.taskId && this.logger.info("ppt player update config: " + JSON.stringify(this.config), this.taskId), nl()(t2.maxResolutionLevel) || (this.config.maxResolutionLevel = t2.maxResolutionLevel, this.updateMaxResolutionLevel(this.config.maxResolutionLevel));
26763
26763
  }
26764
26764
  preload(t2) {
26765
26765
  return CT(this, void 0, void 0, function* () {
@@ -26832,6 +26832,20 @@ void main(void){
26832
26832
  return "__null__";
26833
26833
  });
26834
26834
  }
26835
+ snapshotWithTimingEnd(t2) {
26836
+ return CT(this, void 0, void 0, function* () {
26837
+ const e2 = yield this.stagePool.getStage(t2);
26838
+ if (e2) {
26839
+ const { width: n2, height: i2 } = e2.json;
26840
+ this.designWidth = n2, this.designHeight = i2;
26841
+ const r2 = Wd.create({ width: this.designWidth, height: this.designHeight, resolution: 1 });
26842
+ e2.container.visible = true, e2.createTiming(), e2.setMainSeqStep(-1, "end"), this.app.renderer.render(e2.container, { renderTexture: r2 });
26843
+ const o2 = this.app.renderer.plugins.extract.base64(r2, "image/png");
26844
+ return t2 !== this.currentIndex && this.stagePool.destroyStageByIndex(t2), o2;
26845
+ }
26846
+ return null;
26847
+ });
26848
+ }
26835
26849
  getBase64(t2) {
26836
26850
  if (!t2.container.transform)
26837
26851
  return null;
@@ -27032,7 +27046,7 @@ void main(void){
27032
27046
  return JT.get(t2);
27033
27047
  if (YT(t2))
27034
27048
  return JT.set(t2, nw), nw;
27035
- var n2 = getComputedStyle(t2), i2 = XT(t2) && t2.ownerSVGElement && t2.getBBox(), r2 = !$T && n2.boxSizing === "border-box", o2 = KT.test(n2.writingMode || ""), s2 = !i2 && QT.test(n2.overflowY || ""), a2 = !i2 && QT.test(n2.overflowX || ""), l2 = i2 ? 0 : tw(n2.paddingTop), h2 = i2 ? 0 : tw(n2.paddingRight), u2 = i2 ? 0 : tw(n2.paddingBottom), c2 = i2 ? 0 : tw(n2.paddingLeft), d2 = i2 ? 0 : tw(n2.borderTopWidth), p2 = i2 ? 0 : tw(n2.borderRightWidth), f2 = i2 ? 0 : tw(n2.borderBottomWidth), m2 = c2 + h2, g2 = l2 + u2, v2 = (i2 ? 0 : tw(n2.borderLeftWidth)) + p2, y2 = d2 + f2, _2 = a2 ? t2.offsetHeight - y2 - t2.clientHeight : 0, x2 = s2 ? t2.offsetWidth - v2 - t2.clientWidth : 0, b2 = r2 ? m2 + v2 : 0, T2 = r2 ? g2 + y2 : 0, w2 = i2 ? i2.width : tw(n2.width) - b2 - x2, E2 = i2 ? i2.height : tw(n2.height) - T2 - _2, S2 = w2 + m2 + x2 + v2, A2 = E2 + g2 + _2 + y2, M2 = zT({ devicePixelContentBoxSize: ew(Math.round(w2 * devicePixelRatio), Math.round(E2 * devicePixelRatio), o2), borderBoxSize: ew(S2, A2, o2), contentBoxSize: ew(w2, E2, o2), contentRect: new WT(c2, l2, w2, E2) });
27049
+ var n2 = getComputedStyle(t2), i2 = XT(t2) && t2.ownerSVGElement && t2.getBBox(), r2 = !$T && n2.boxSizing === "border-box", o2 = KT.test(n2.writingMode || ""), s2 = !i2 && QT.test(n2.overflowY || ""), a2 = !i2 && QT.test(n2.overflowX || ""), l2 = i2 ? 0 : tw(n2.paddingTop), h2 = i2 ? 0 : tw(n2.paddingRight), u2 = i2 ? 0 : tw(n2.paddingBottom), c2 = i2 ? 0 : tw(n2.paddingLeft), d2 = i2 ? 0 : tw(n2.borderTopWidth), p2 = i2 ? 0 : tw(n2.borderRightWidth), f2 = i2 ? 0 : tw(n2.borderBottomWidth), m2 = c2 + h2, g2 = l2 + u2, v2 = (i2 ? 0 : tw(n2.borderLeftWidth)) + p2, y2 = d2 + f2, _2 = a2 ? t2.offsetHeight - y2 - t2.clientHeight : 0, x2 = s2 ? t2.offsetWidth - v2 - t2.clientWidth : 0, b2 = r2 ? m2 + v2 : 0, T2 = r2 ? g2 + y2 : 0, w2 = i2 ? i2.width : tw(n2.width) - b2 - x2, S2 = i2 ? i2.height : tw(n2.height) - T2 - _2, E2 = w2 + m2 + x2 + v2, A2 = S2 + g2 + _2 + y2, M2 = zT({ devicePixelContentBoxSize: ew(Math.round(w2 * devicePixelRatio), Math.round(S2 * devicePixelRatio), o2), borderBoxSize: ew(E2, A2, o2), contentBoxSize: ew(w2, S2, o2), contentRect: new WT(c2, l2, w2, S2) });
27036
27050
  return JT.set(t2, M2), M2;
27037
27051
  }, rw = function(t2, e2, n2) {
27038
27052
  var i2 = iw(t2, n2), r2 = i2.borderBoxSize, o2 = i2.contentBoxSize, s2 = i2.devicePixelContentBoxSize;
@@ -27192,7 +27206,7 @@ void main(void){
27192
27206
  return e2.unobserve(t3, n3.target);
27193
27207
  }), n2.activeTargets.splice(0, n2.activeTargets.length);
27194
27208
  }, t2;
27195
- }(), Ew = function() {
27209
+ }(), Sw = function() {
27196
27210
  function t2(t3) {
27197
27211
  if (arguments.length === 0)
27198
27212
  throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
@@ -27217,7 +27231,7 @@ void main(void){
27217
27231
  }, t2.toString = function() {
27218
27232
  return "function ResizeObserver () { [polyfill code] }";
27219
27233
  }, t2;
27220
- }(), Sw = function(t2, e2, n2, i2) {
27234
+ }(), Ew = function(t2, e2, n2, i2) {
27221
27235
  return new (n2 || (n2 = Promise))(function(r2, o2) {
27222
27236
  function s2(t3) {
27223
27237
  try {
@@ -27309,7 +27323,7 @@ void main(void){
27309
27323
  this.state = "idle", this.index = -1, this.slideIndex = -1, this.fn = n2, this.index = t3, this.slideIndex = e2, this.eventHub = i2, this.id = r2;
27310
27324
  }
27311
27325
  return t2.prototype.apply = function() {
27312
- return Sw(this, void 0, void 0, function() {
27326
+ return Ew(this, void 0, void 0, function() {
27313
27327
  var t3;
27314
27328
  return Aw(this, function(e2) {
27315
27329
  switch (e2.label) {
@@ -27701,7 +27715,7 @@ void main(void){
27701
27715
  } }, { key: "updateDisplay", value: function() {
27702
27716
  return this.getValue() === true ? (this.__checkbox.setAttribute("checked", "checked"), this.__checkbox.checked = true, this.__prev = true) : (this.__checkbox.checked = false, this.__prev = false), jw(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
27703
27717
  } }]), e2;
27704
- }(qw), tE = function(t2) {
27718
+ }(qw), tS = function(t2) {
27705
27719
  function e2(t3, n2, i2) {
27706
27720
  Gw(this, e2);
27707
27721
  var r2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), o2 = i2, s2 = r2;
@@ -27725,7 +27739,7 @@ void main(void){
27725
27739
  } }, { key: "updateDisplay", value: function() {
27726
27740
  return Kw.isActive(this.__select) ? this : (this.__select.value = this.getValue(), jw(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this));
27727
27741
  } }]), e2;
27728
- }(qw), eE = function(t2) {
27742
+ }(qw), eS = function(t2) {
27729
27743
  function e2(t3, n2) {
27730
27744
  Gw(this, e2);
27731
27745
  var i2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), r2 = i2;
@@ -27742,15 +27756,15 @@ void main(void){
27742
27756
  return Kw.isActive(this.__input) || (this.__input.value = this.getValue()), jw(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
27743
27757
  } }]), e2;
27744
27758
  }(qw);
27745
- function nE(t2) {
27759
+ function nS(t2) {
27746
27760
  var e2 = t2.toString();
27747
27761
  return e2.indexOf(".") > -1 ? e2.length - e2.indexOf(".") - 1 : 0;
27748
27762
  }
27749
- var iE = function(t2) {
27763
+ var iS = function(t2) {
27750
27764
  function e2(t3, n2, i2) {
27751
27765
  Gw(this, e2);
27752
27766
  var r2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), o2 = i2 || {};
27753
- return r2.__min = o2.min, r2.__max = o2.max, r2.__step = o2.step, Lw.isUndefined(r2.__step) ? r2.initialValue === 0 ? r2.__impliedStep = 1 : r2.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r2.initialValue)) / Math.LN10)) / 10 : r2.__impliedStep = r2.__step, r2.__precision = nE(r2.__impliedStep), r2;
27767
+ return r2.__min = o2.min, r2.__max = o2.max, r2.__step = o2.step, Lw.isUndefined(r2.__step) ? r2.initialValue === 0 ? r2.__impliedStep = 1 : r2.__impliedStep = Math.pow(10, Math.floor(Math.log(Math.abs(r2.initialValue)) / Math.LN10)) / 10 : r2.__impliedStep = r2.__step, r2.__precision = nS(r2.__impliedStep), r2;
27754
27768
  }
27755
27769
  return zw(e2, t2), Hw(e2, [{ key: "setValue", value: function(t3) {
27756
27770
  var n2 = t3;
@@ -27760,10 +27774,10 @@ void main(void){
27760
27774
  } }, { key: "max", value: function(t3) {
27761
27775
  return this.__max = t3, this;
27762
27776
  } }, { key: "step", value: function(t3) {
27763
- return this.__step = t3, this.__impliedStep = t3, this.__precision = nE(t3), this;
27777
+ return this.__step = t3, this.__impliedStep = t3, this.__precision = nS(t3), this;
27764
27778
  } }]), e2;
27765
27779
  }(qw);
27766
- var rE = function(t2) {
27780
+ var rS = function(t2) {
27767
27781
  function e2(t3, n2, i2) {
27768
27782
  Gw(this, e2);
27769
27783
  var r2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2, i2));
@@ -27794,25 +27808,25 @@ void main(void){
27794
27808
  var t3, n2, i2;
27795
27809
  return this.__input.value = this.__truncationSuspended ? this.getValue() : (t3 = this.getValue(), n2 = this.__precision, i2 = Math.pow(10, n2), Math.round(t3 * i2) / i2), jw(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
27796
27810
  } }]), e2;
27797
- }(iE);
27798
- function oE(t2, e2, n2, i2, r2) {
27811
+ }(iS);
27812
+ function oS(t2, e2, n2, i2, r2) {
27799
27813
  return i2 + (t2 - e2) / (n2 - e2) * (r2 - i2);
27800
27814
  }
27801
- var sE = function(t2) {
27815
+ var sS = function(t2) {
27802
27816
  function e2(t3, n2, i2, r2, o2) {
27803
27817
  Gw(this, e2);
27804
27818
  var s2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2, { min: i2, max: r2, step: o2 })), a2 = s2;
27805
27819
  function l2(t4) {
27806
27820
  t4.preventDefault();
27807
27821
  var e3 = a2.__background.getBoundingClientRect();
27808
- return a2.setValue(oE(t4.clientX, e3.left, e3.right, a2.__min, a2.__max)), false;
27822
+ return a2.setValue(oS(t4.clientX, e3.left, e3.right, a2.__min, a2.__max)), false;
27809
27823
  }
27810
27824
  function h2() {
27811
27825
  Kw.unbind(window, "mousemove", l2), Kw.unbind(window, "mouseup", h2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
27812
27826
  }
27813
27827
  function u2(t4) {
27814
27828
  var e3 = t4.touches[0].clientX, n3 = a2.__background.getBoundingClientRect();
27815
- a2.setValue(oE(e3, n3.left, n3.right, a2.__min, a2.__max));
27829
+ a2.setValue(oS(e3, n3.left, n3.right, a2.__min, a2.__max));
27816
27830
  }
27817
27831
  function c2() {
27818
27832
  Kw.unbind(window, "touchmove", u2), Kw.unbind(window, "touchend", c2), a2.__onFinishChange && a2.__onFinishChange.call(a2, a2.getValue());
@@ -27829,7 +27843,7 @@ void main(void){
27829
27843
  var t3 = (this.getValue() - this.__min) / (this.__max - this.__min);
27830
27844
  return this.__foreground.style.width = 100 * t3 + "%", jw(e2.prototype.__proto__ || Object.getPrototypeOf(e2.prototype), "updateDisplay", this).call(this);
27831
27845
  } }]), e2;
27832
- }(iE), aE = function(t2) {
27846
+ }(iS), aS = function(t2) {
27833
27847
  function e2(t3, n2, i2) {
27834
27848
  Gw(this, e2);
27835
27849
  var r2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2)), o2 = r2;
@@ -27840,7 +27854,7 @@ void main(void){
27840
27854
  return zw(e2, t2), Hw(e2, [{ key: "fire", value: function() {
27841
27855
  this.__onChange && this.__onChange.call(this), this.getValue().call(this.object), this.__onFinishChange && this.__onFinishChange.call(this, this.getValue());
27842
27856
  } }]), e2;
27843
- }(qw), lE = function(t2) {
27857
+ }(qw), lS = function(t2) {
27844
27858
  function e2(t3, n2) {
27845
27859
  Gw(this, e2);
27846
27860
  var i2 = Vw(this, (e2.__proto__ || Object.getPrototypeOf(e2)).call(this, t3, n2));
@@ -27887,7 +27901,7 @@ void main(void){
27887
27901
  var e3 = r2.__hue_field.getBoundingClientRect(), n3 = 1 - ((t4.touches && t4.touches[0] || t4).clientY - e3.top) / (e3.bottom - e3.top);
27888
27902
  return n3 > 1 ? n3 = 1 : n3 < 0 && (n3 = 0), r2.__color.h = 360 * n3, r2.setValue(r2.__color.toOriginal()), false;
27889
27903
  }
27890
- return Lw.extend(i2.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), Lw.extend(i2.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i2.__field_knob_border + (i2.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), Lw.extend(i2.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), Lw.extend(i2.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), Lw.extend(s2.style, { width: "100%", height: "100%", background: "none" }), uE(s2, "top", "rgba(0,0,0,0)", "#000"), Lw.extend(i2.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o2 = i2.__hue_field).style.background = "", o2.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);", o2.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", Lw.extend(i2.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: i2.__input_textShadow + "rgba(0,0,0,0.7)" }), Kw.bind(i2.__saturation_field, "mousedown", a2), Kw.bind(i2.__saturation_field, "touchstart", a2), Kw.bind(i2.__field_knob, "mousedown", a2), Kw.bind(i2.__field_knob, "touchstart", a2), Kw.bind(i2.__hue_field, "mousedown", l2), Kw.bind(i2.__hue_field, "touchstart", l2), i2.__saturation_field.appendChild(s2), i2.__selector.appendChild(i2.__field_knob), i2.__selector.appendChild(i2.__saturation_field), i2.__selector.appendChild(i2.__hue_field), i2.__hue_field.appendChild(i2.__hue_knob), i2.domElement.appendChild(i2.__input), i2.domElement.appendChild(i2.__selector), i2.updateDisplay(), i2;
27904
+ return Lw.extend(i2.__selector.style, { width: "122px", height: "102px", padding: "3px", backgroundColor: "#222", boxShadow: "0px 1px 3px rgba(0,0,0,0.3)" }), Lw.extend(i2.__field_knob.style, { position: "absolute", width: "12px", height: "12px", border: i2.__field_knob_border + (i2.__color.v < 0.5 ? "#fff" : "#000"), boxShadow: "0px 1px 3px rgba(0,0,0,0.5)", borderRadius: "12px", zIndex: 1 }), Lw.extend(i2.__hue_knob.style, { position: "absolute", width: "15px", height: "2px", borderRight: "4px solid #fff", zIndex: 1 }), Lw.extend(i2.__saturation_field.style, { width: "100px", height: "100px", border: "1px solid #555", marginRight: "3px", display: "inline-block", cursor: "pointer" }), Lw.extend(s2.style, { width: "100%", height: "100%", background: "none" }), uS(s2, "top", "rgba(0,0,0,0)", "#000"), Lw.extend(i2.__hue_field.style, { width: "15px", height: "100px", border: "1px solid #555", cursor: "ns-resize", position: "absolute", top: "3px", right: "3px" }), (o2 = i2.__hue_field).style.background = "", o2.style.cssText += "background: -moz-linear-gradient(top, #ff0000 0%, #ff00ff 17%, #0000ff 34%, #00ffff 50%, #00ff00 67%, #ffff00 84%, #ff0000 100%);", o2.style.cssText += "background: -webkit-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -o-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: -ms-linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", o2.style.cssText += "background: linear-gradient(top, #ff0000 0%,#ff00ff 17%,#0000ff 34%,#00ffff 50%,#00ff00 67%,#ffff00 84%,#ff0000 100%);", Lw.extend(i2.__input.style, { outline: "none", textAlign: "center", color: "#fff", border: 0, fontWeight: "bold", textShadow: i2.__input_textShadow + "rgba(0,0,0,0.7)" }), Kw.bind(i2.__saturation_field, "mousedown", a2), Kw.bind(i2.__saturation_field, "touchstart", a2), Kw.bind(i2.__field_knob, "mousedown", a2), Kw.bind(i2.__field_knob, "touchstart", a2), Kw.bind(i2.__hue_field, "mousedown", l2), Kw.bind(i2.__hue_field, "touchstart", l2), i2.__saturation_field.appendChild(s2), i2.__selector.appendChild(i2.__field_knob), i2.__selector.appendChild(i2.__saturation_field), i2.__selector.appendChild(i2.__hue_field), i2.__hue_field.appendChild(i2.__hue_knob), i2.domElement.appendChild(i2.__input), i2.domElement.appendChild(i2.__selector), i2.updateDisplay(), i2;
27891
27905
  }
27892
27906
  return zw(e2, t2), Hw(e2, [{ key: "updateDisplay", value: function() {
27893
27907
  var t3 = Fw(this.getValue());
@@ -27900,15 +27914,15 @@ void main(void){
27900
27914
  }
27901
27915
  Lw.extend(this.__temp.__state, this.__color.__state), this.__temp.a = 1;
27902
27916
  var n2 = this.__color.v < 0.5 || this.__color.s > 0.5 ? 255 : 0, i2 = 255 - n2;
27903
- Lw.extend(this.__field_knob.style, { marginLeft: 100 * this.__color.s - 7 + "px", marginTop: 100 * (1 - this.__color.v) - 7 + "px", backgroundColor: this.__temp.toHexString(), border: this.__field_knob_border + "rgb(" + n2 + "," + n2 + "," + n2 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, uE(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), Lw.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + n2 + "," + n2 + "," + n2 + ")", textShadow: this.__input_textShadow + "rgba(" + i2 + "," + i2 + "," + i2 + ",.7)" });
27917
+ Lw.extend(this.__field_knob.style, { marginLeft: 100 * this.__color.s - 7 + "px", marginTop: 100 * (1 - this.__color.v) - 7 + "px", backgroundColor: this.__temp.toHexString(), border: this.__field_knob_border + "rgb(" + n2 + "," + n2 + "," + n2 + ")" }), this.__hue_knob.style.marginTop = 100 * (1 - this.__color.h / 360) + "px", this.__temp.s = 1, this.__temp.v = 1, uS(this.__saturation_field, "left", "#fff", this.__temp.toHexString()), this.__input.value = this.__color.toString(), Lw.extend(this.__input.style, { backgroundColor: this.__color.toHexString(), color: "rgb(" + n2 + "," + n2 + "," + n2 + ")", textShadow: this.__input_textShadow + "rgba(" + i2 + "," + i2 + "," + i2 + ",.7)" });
27904
27918
  } }]), e2;
27905
- }(qw), hE = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
27906
- function uE(t2, e2, n2, i2) {
27907
- t2.style.background = "", Lw.each(hE, function(r2) {
27919
+ }(qw), hS = ["-moz-", "-o-", "-webkit-", "-ms-", ""];
27920
+ function uS(t2, e2, n2, i2) {
27921
+ t2.style.background = "", Lw.each(hS, function(r2) {
27908
27922
  t2.style.cssText += "background: " + r2 + "linear-gradient(" + e2 + ", " + n2 + " 0%, " + i2 + " 100%); ";
27909
27923
  });
27910
27924
  }
27911
- var cE = function(t2, e2) {
27925
+ var cS = function(t2, e2) {
27912
27926
  var n2 = e2 || document, i2 = document.createElement("style");
27913
27927
  i2.type = "text/css", i2.innerHTML = t2;
27914
27928
  var r2 = n2.getElementsByTagName("head")[0];
@@ -27916,7 +27930,7 @@ void main(void){
27916
27930
  r2.appendChild(i2);
27917
27931
  } catch (t3) {
27918
27932
  }
27919
- }, dE = `<div id="dg-save" class="dg dialogue">
27933
+ }, dS = `<div id="dg-save" class="dg dialogue">
27920
27934
 
27921
27935
  Here's the new load parameter for your <code>GUI</code>'s constructor:
27922
27936
 
@@ -27936,13 +27950,13 @@ void main(void){
27936
27950
 
27937
27951
  </div>
27938
27952
 
27939
- </div>`, pE = function(t2, e2) {
27953
+ </div>`, pS = function(t2, e2) {
27940
27954
  var n2 = t2[e2];
27941
- return Lw.isArray(arguments[2]) || Lw.isObject(arguments[2]) ? new tE(t2, e2, arguments[2]) : Lw.isNumber(n2) ? Lw.isNumber(arguments[2]) && Lw.isNumber(arguments[3]) ? Lw.isNumber(arguments[4]) ? new sE(t2, e2, arguments[2], arguments[3], arguments[4]) : new sE(t2, e2, arguments[2], arguments[3]) : Lw.isNumber(arguments[4]) ? new rE(t2, e2, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new rE(t2, e2, { min: arguments[2], max: arguments[3] }) : Lw.isString(n2) ? new eE(t2, e2) : Lw.isFunction(n2) ? new aE(t2, e2, "") : Lw.isBoolean(n2) ? new $w(t2, e2) : null;
27955
+ return Lw.isArray(arguments[2]) || Lw.isObject(arguments[2]) ? new tS(t2, e2, arguments[2]) : Lw.isNumber(n2) ? Lw.isNumber(arguments[2]) && Lw.isNumber(arguments[3]) ? Lw.isNumber(arguments[4]) ? new sS(t2, e2, arguments[2], arguments[3], arguments[4]) : new sS(t2, e2, arguments[2], arguments[3]) : Lw.isNumber(arguments[4]) ? new rS(t2, e2, { min: arguments[2], max: arguments[3], step: arguments[4] }) : new rS(t2, e2, { min: arguments[2], max: arguments[3] }) : Lw.isString(n2) ? new eS(t2, e2) : Lw.isFunction(n2) ? new aS(t2, e2, "") : Lw.isBoolean(n2) ? new $w(t2, e2) : null;
27942
27956
  };
27943
- var fE = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t2) {
27957
+ var fS = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(t2) {
27944
27958
  setTimeout(t2, 1e3 / 60);
27945
- }, mE = function() {
27959
+ }, mS = function() {
27946
27960
  function t2() {
27947
27961
  Gw(this, t2), this.backgroundElement = document.createElement("div"), Lw.extend(this.backgroundElement.style, { backgroundColor: "rgba(0,0,0,0.8)", top: 0, left: 0, display: "none", zIndex: "1000", opacity: 0, WebkitTransition: "opacity 0.2s linear", transition: "opacity 0.2s linear" }), Kw.makeFullscreen(this.backgroundElement), this.backgroundElement.style.position = "fixed", this.domElement = document.createElement("div"), Lw.extend(this.domElement.style, { position: "fixed", display: "none", zIndex: "1001", opacity: 0, WebkitTransition: "-webkit-transform 0.2s ease-out, opacity 0.2s linear", transition: "transform 0.2s ease-out, opacity 0.2s linear" }), document.body.appendChild(this.backgroundElement), document.body.appendChild(this.domElement);
27948
27962
  var e2 = this;
@@ -27964,22 +27978,22 @@ void main(void){
27964
27978
  this.domElement.style.left = window.innerWidth / 2 - Kw.getWidth(this.domElement) / 2 + "px", this.domElement.style.top = window.innerHeight / 2 - Kw.getHeight(this.domElement) / 2 + "px";
27965
27979
  } }]), t2;
27966
27980
  }();
27967
- cE(function(t2) {
27981
+ cS(function(t2) {
27968
27982
  if (t2 && typeof window != "undefined") {
27969
27983
  var e2 = document.createElement("style");
27970
27984
  return e2.setAttribute("type", "text/css"), e2.innerHTML = t2, document.head.appendChild(e2), t2;
27971
27985
  }
27972
27986
  }(".dg ul{list-style:none;margin:0;padding:0;width:100%;clear:both}.dg.ac{position:fixed;top:0;left:0;right:0;height:0;z-index:0}.dg:not(.ac) .main{overflow:hidden}.dg.main{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear}.dg.main.taller-than-window{overflow-y:auto}.dg.main.taller-than-window .close-button{opacity:1;margin-top:-1px;border-top:1px solid #2c2c2c}.dg.main ul.closed .close-button{opacity:1 !important}.dg.main:hover .close-button,.dg.main .close-button.drag{opacity:1}.dg.main .close-button{-webkit-transition:opacity .1s linear;-o-transition:opacity .1s linear;-moz-transition:opacity .1s linear;transition:opacity .1s linear;border:0;line-height:19px;height:20px;cursor:pointer;text-align:center;background-color:#000}.dg.main .close-button.close-top{position:relative}.dg.main .close-button.close-bottom{position:absolute}.dg.main .close-button:hover{background-color:#111}.dg.a{float:right;margin-right:15px;overflow-y:visible}.dg.a.has-save>ul.close-top{margin-top:0}.dg.a.has-save>ul.close-bottom{margin-top:27px}.dg.a.has-save>ul.closed{margin-top:0}.dg.a .save-row{top:0;z-index:1002}.dg.a .save-row.close-top{position:relative}.dg.a .save-row.close-bottom{position:fixed}.dg li{-webkit-transition:height .1s ease-out;-o-transition:height .1s ease-out;-moz-transition:height .1s ease-out;transition:height .1s ease-out;-webkit-transition:overflow .1s linear;-o-transition:overflow .1s linear;-moz-transition:overflow .1s linear;transition:overflow .1s linear}.dg li:not(.folder){cursor:auto;height:27px;line-height:27px;padding:0 4px 0 5px}.dg li.folder{padding:0;border-left:4px solid rgba(0,0,0,0)}.dg li.title{cursor:pointer;margin-left:-4px}.dg .closed li:not(.title),.dg .closed ul li,.dg .closed ul li>*{height:0;overflow:hidden;border:0}.dg .cr{clear:both;padding-left:3px;height:27px;overflow:hidden}.dg .property-name{cursor:default;float:left;clear:left;width:40%;overflow:hidden;text-overflow:ellipsis}.dg .cr.function .property-name{width:100%}.dg .c{float:left;width:60%;position:relative}.dg .c input[type=text]{border:0;margin-top:4px;padding:3px;width:100%;float:right}.dg .has-slider input[type=text]{width:30%;margin-left:0}.dg .slider{float:left;width:66%;margin-left:-5px;margin-right:0;height:19px;margin-top:4px}.dg .slider-fg{height:100%}.dg .c input[type=checkbox]{margin-top:7px}.dg .c select{margin-top:5px}.dg .cr.function,.dg .cr.function .property-name,.dg .cr.function *,.dg .cr.boolean,.dg .cr.boolean *{cursor:pointer}.dg .cr.color{overflow:visible}.dg .selector{display:none;position:absolute;margin-left:-9px;margin-top:23px;z-index:10}.dg .c:hover .selector,.dg .selector.drag{display:block}.dg li.save-row{padding:0}.dg li.save-row .button{display:inline-block;padding:0px 6px}.dg.dialogue{background-color:#222;width:460px;padding:15px;font-size:13px;line-height:15px}#dg-new-constructor{padding:10px;color:#222;font-family:Monaco, monospace;font-size:10px;border:0;resize:none;box-shadow:inset 1px 1px 1px #888;word-wrap:break-word;margin:12px 0;display:block;width:440px;overflow-y:scroll;height:100px;position:relative}#dg-local-explain{display:none;font-size:11px;line-height:17px;border-radius:3px;background-color:#333;padding:8px;margin-top:10px}#dg-local-explain code{font-size:10px}#dat-gui-save-locally{display:none}.dg{color:#eee;font:11px 'Lucida Grande', sans-serif;text-shadow:0 -1px 0 #111}.dg.main::-webkit-scrollbar{width:5px;background:#1a1a1a}.dg.main::-webkit-scrollbar-corner{height:0;display:none}.dg.main::-webkit-scrollbar-thumb{border-radius:5px;background:#676767}.dg li:not(.folder){background:#1a1a1a;border-bottom:1px solid #2c2c2c}.dg li.save-row{line-height:25px;background:#dad5cb;border:0}.dg li.save-row select{margin-left:5px;width:108px}.dg li.save-row .button{margin-left:5px;margin-top:1px;border-radius:2px;font-size:9px;line-height:7px;padding:4px 4px 5px 4px;background:#c5bdad;color:#fff;text-shadow:0 1px 0 #b0a58f;box-shadow:0 -1px 0 #b0a58f;cursor:pointer}.dg li.save-row .button.gears{background:#c5bdad url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAANCAYAAAB/9ZQ7AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQJJREFUeNpiYKAU/P//PwGIC/ApCABiBSAW+I8AClAcgKxQ4T9hoMAEUrxx2QSGN6+egDX+/vWT4e7N82AMYoPAx/evwWoYoSYbACX2s7KxCxzcsezDh3evFoDEBYTEEqycggWAzA9AuUSQQgeYPa9fPv6/YWm/Acx5IPb7ty/fw+QZblw67vDs8R0YHyQhgObx+yAJkBqmG5dPPDh1aPOGR/eugW0G4vlIoTIfyFcA+QekhhHJhPdQxbiAIguMBTQZrPD7108M6roWYDFQiIAAv6Aow/1bFwXgis+f2LUAynwoIaNcz8XNx3Dl7MEJUDGQpx9gtQ8YCueB+D26OECAAQDadt7e46D42QAAAABJRU5ErkJggg==) 2px 1px no-repeat;height:7px;width:8px}.dg li.save-row .button:hover{background-color:#bab19e;box-shadow:0 -1px 0 #b0a58f}.dg li.folder{border-bottom:0}.dg li.title{padding-left:16px;background:#000 url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlI+hKgFxoCgAOw==) 6px 10px no-repeat;cursor:pointer;border-bottom:1px solid rgba(255,255,255,0.2)}.dg .closed li.title{background-image:url(data:image/gif;base64,R0lGODlhBQAFAJEAAP////Pz8////////yH5BAEAAAIALAAAAAAFAAUAAAIIlGIWqMCbWAEAOw==)}.dg .cr.boolean{border-left:3px solid #806787}.dg .cr.color{border-left:3px solid}.dg .cr.function{border-left:3px solid #e61d5f}.dg .cr.number{border-left:3px solid #2FA1D6}.dg .cr.number input[type=text]{color:#2FA1D6}.dg .cr.string{border-left:3px solid #1ed36f}.dg .cr.string input[type=text]{color:#1ed36f}.dg .cr.function:hover,.dg .cr.boolean:hover{background:#111}.dg .c input[type=text]{background:#303030;outline:none}.dg .c input[type=text]:hover{background:#3c3c3c}.dg .c input[type=text]:focus{background:#494949;color:#fff}.dg .c .slider{background:#303030;cursor:ew-resize}.dg .c .slider-fg{background:#2FA1D6;max-width:100%}.dg .c .slider:hover{background:#3c3c3c}.dg .c .slider:hover .slider-fg{background:#44abda}\n"));
27973
- var gE = function() {
27987
+ var gS = function() {
27974
27988
  try {
27975
27989
  return !!window.localStorage;
27976
27990
  } catch (t2) {
27977
27991
  return false;
27978
27992
  }
27979
- }(), vE = void 0, yE = true, _E = void 0, xE = false, bE = [], TE = function t2(e2) {
27993
+ }(), vS = void 0, yS = true, _S = void 0, xS = false, bS = [], TS = function t2(e2) {
27980
27994
  var n2 = this, i2 = e2 || {};
27981
- this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), Kw.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], i2 = Lw.defaults(i2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), i2 = Lw.defaults(i2, { resizable: i2.autoPlace, hideable: i2.autoPlace }), Lw.isUndefined(i2.load) ? i2.load = { preset: "Default" } : i2.preset && (i2.load.preset = i2.preset), Lw.isUndefined(i2.parent) && i2.hideable && bE.push(this), i2.resizable = Lw.isUndefined(i2.parent) && i2.resizable, i2.autoPlace && Lw.isUndefined(i2.scrollable) && (i2.scrollable = true);
27982
- var r2, o2 = gE && localStorage.getItem(PE(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
27995
+ this.domElement = document.createElement("div"), this.__ul = document.createElement("ul"), this.domElement.appendChild(this.__ul), Kw.addClass(this.domElement, "dg"), this.__folders = {}, this.__controllers = [], this.__rememberedObjects = [], this.__rememberedObjectIndecesToControllers = [], this.__listening = [], i2 = Lw.defaults(i2, { closeOnTop: false, autoPlace: true, width: t2.DEFAULT_WIDTH }), i2 = Lw.defaults(i2, { resizable: i2.autoPlace, hideable: i2.autoPlace }), Lw.isUndefined(i2.load) ? i2.load = { preset: "Default" } : i2.preset && (i2.load.preset = i2.preset), Lw.isUndefined(i2.parent) && i2.hideable && bS.push(this), i2.resizable = Lw.isUndefined(i2.parent) && i2.resizable, i2.autoPlace && Lw.isUndefined(i2.scrollable) && (i2.scrollable = true);
27996
+ var r2, o2 = gS && localStorage.getItem(PS(this, "isLocal")) === "true", s2 = void 0, a2 = void 0;
27983
27997
  if (Object.defineProperties(this, { parent: { get: function() {
27984
27998
  return i2.parent;
27985
27999
  } }, scrollable: { get: function() {
@@ -27998,7 +28012,7 @@ void main(void){
27998
28012
  } }, width: { get: function() {
27999
28013
  return i2.width;
28000
28014
  }, set: function(t3) {
28001
- i2.width = t3, NE(n2, t3);
28015
+ i2.width = t3, NS(n2, t3);
28002
28016
  } }, name: { get: function() {
28003
28017
  return i2.name;
28004
28018
  }, set: function(t3) {
@@ -28012,11 +28026,11 @@ void main(void){
28012
28026
  } }, useLocalStorage: { get: function() {
28013
28027
  return o2;
28014
28028
  }, set: function(t3) {
28015
- gE && (o2 = t3, t3 ? Kw.bind(window, "unload", s2) : Kw.unbind(window, "unload", s2), localStorage.setItem(PE(n2, "isLocal"), t3));
28029
+ gS && (o2 = t3, t3 ? Kw.bind(window, "unload", s2) : Kw.unbind(window, "unload", s2), localStorage.setItem(PS(n2, "isLocal"), t3));
28016
28030
  } } }), Lw.isUndefined(i2.parent)) {
28017
- if (this.closed = i2.closed || false, Kw.addClass(this.domElement, t2.CLASS_MAIN), Kw.makeSelectable(this.domElement, false), gE && o2) {
28031
+ if (this.closed = i2.closed || false, Kw.addClass(this.domElement, t2.CLASS_MAIN), Kw.makeSelectable(this.domElement, false), gS && o2) {
28018
28032
  n2.useLocalStorage = true;
28019
- var l2 = localStorage.getItem(PE(this, "gui"));
28033
+ var l2 = localStorage.getItem(PS(this, "gui"));
28020
28034
  l2 && (i2.load = JSON.parse(l2));
28021
28035
  }
28022
28036
  this.__closeButton = document.createElement("div"), this.__closeButton.innerHTML = t2.TEXT_CLOSED, Kw.addClass(this.__closeButton, t2.CLASS_CLOSE_BUTTON), i2.closeOnTop ? (Kw.addClass(this.__closeButton, t2.CLASS_CLOSE_TOP), this.domElement.insertBefore(this.__closeButton, this.domElement.childNodes[0])) : (Kw.addClass(this.__closeButton, t2.CLASS_CLOSE_BOTTOM), this.domElement.appendChild(this.__closeButton)), Kw.bind(this.__closeButton, "click", function() {
@@ -28025,31 +28039,31 @@ void main(void){
28025
28039
  } else {
28026
28040
  i2.closed === void 0 && (i2.closed = true);
28027
28041
  var h2 = document.createTextNode(i2.name);
28028
- Kw.addClass(h2, "controller-name"), a2 = wE(n2, h2);
28042
+ Kw.addClass(h2, "controller-name"), a2 = wS(n2, h2);
28029
28043
  Kw.addClass(this.__ul, t2.CLASS_CLOSED), Kw.addClass(a2, "title"), Kw.bind(a2, "click", function(t3) {
28030
28044
  return t3.preventDefault(), n2.closed = !n2.closed, false;
28031
28045
  }), i2.closed || (this.closed = false);
28032
28046
  }
28033
- i2.autoPlace && (Lw.isUndefined(i2.parent) && (yE && (_E = document.createElement("div"), Kw.addClass(_E, "dg"), Kw.addClass(_E, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(_E), yE = false), _E.appendChild(this.domElement), Kw.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || NE(n2, i2.width)), this.__resizeHandler = function() {
28047
+ i2.autoPlace && (Lw.isUndefined(i2.parent) && (yS && (_S = document.createElement("div"), Kw.addClass(_S, "dg"), Kw.addClass(_S, t2.CLASS_AUTO_PLACE_CONTAINER), document.body.appendChild(_S), yS = false), _S.appendChild(this.domElement), Kw.addClass(this.domElement, t2.CLASS_AUTO_PLACE)), this.parent || NS(n2, i2.width)), this.__resizeHandler = function() {
28034
28048
  n2.onResizeDebounced();
28035
- }, Kw.bind(window, "resize", this.__resizeHandler), Kw.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), Kw.bind(this.__ul, "transitionend", this.__resizeHandler), Kw.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), i2.resizable && LE(this), s2 = function() {
28036
- gE && localStorage.getItem(PE(n2, "isLocal")) === "true" && localStorage.setItem(PE(n2, "gui"), JSON.stringify(n2.getSaveObject()));
28049
+ }, Kw.bind(window, "resize", this.__resizeHandler), Kw.bind(this.__ul, "webkitTransitionEnd", this.__resizeHandler), Kw.bind(this.__ul, "transitionend", this.__resizeHandler), Kw.bind(this.__ul, "oTransitionEnd", this.__resizeHandler), this.onResize(), i2.resizable && LS(this), s2 = function() {
28050
+ gS && localStorage.getItem(PS(n2, "isLocal")) === "true" && localStorage.setItem(PS(n2, "gui"), JSON.stringify(n2.getSaveObject()));
28037
28051
  }, this.saveToLocalStorageIfPossible = s2, i2.parent || ((r2 = n2.getRoot()).width += 1, Lw.defer(function() {
28038
28052
  r2.width -= 1;
28039
28053
  }));
28040
28054
  };
28041
- function wE(t2, e2, n2) {
28055
+ function wS(t2, e2, n2) {
28042
28056
  var i2 = document.createElement("li");
28043
28057
  return e2 && i2.appendChild(e2), n2 ? t2.__ul.insertBefore(i2, n2) : t2.__ul.appendChild(i2), t2.onResize(), i2;
28044
28058
  }
28045
- function EE(t2) {
28059
+ function SS(t2) {
28046
28060
  Kw.unbind(window, "resize", t2.__resizeHandler), t2.saveToLocalStorageIfPossible && Kw.unbind(window, "unload", t2.saveToLocalStorageIfPossible);
28047
28061
  }
28048
- function SE(t2, e2) {
28062
+ function ES(t2, e2) {
28049
28063
  var n2 = t2.__preset_select[t2.__preset_select.selectedIndex];
28050
28064
  n2.innerHTML = e2 ? n2.value + "*" : n2.value;
28051
28065
  }
28052
- function AE(t2, e2) {
28066
+ function AS(t2, e2) {
28053
28067
  var n2 = t2.getRoot(), i2 = n2.__rememberedObjects.indexOf(e2.object);
28054
28068
  if (i2 !== -1) {
28055
28069
  var r2 = n2.__rememberedObjectIndecesToControllers[i2];
@@ -28069,31 +28083,31 @@ void main(void){
28069
28083
  }
28070
28084
  }
28071
28085
  }
28072
- function ME(t2, e2, n2, i2) {
28086
+ function MS(t2, e2, n2, i2) {
28073
28087
  if (e2[n2] === void 0)
28074
28088
  throw new Error('Object "' + e2 + '" has no property "' + n2 + '"');
28075
28089
  var r2 = void 0;
28076
28090
  if (i2.color)
28077
- r2 = new lE(e2, n2);
28091
+ r2 = new lS(e2, n2);
28078
28092
  else {
28079
28093
  var o2 = [e2, n2].concat(i2.factoryArgs);
28080
- r2 = pE.apply(t2, o2);
28094
+ r2 = pS.apply(t2, o2);
28081
28095
  }
28082
- i2.before instanceof qw && (i2.before = i2.before.__li), AE(t2, r2), Kw.addClass(r2.domElement, "c");
28096
+ i2.before instanceof qw && (i2.before = i2.before.__li), AS(t2, r2), Kw.addClass(r2.domElement, "c");
28083
28097
  var s2 = document.createElement("span");
28084
28098
  Kw.addClass(s2, "property-name"), s2.innerHTML = r2.property;
28085
28099
  var a2 = document.createElement("div");
28086
28100
  a2.appendChild(s2), a2.appendChild(r2.domElement);
28087
- var l2 = wE(t2, a2, i2.before);
28088
- return Kw.addClass(l2, TE.CLASS_CONTROLLER_ROW), r2 instanceof lE ? Kw.addClass(l2, "color") : Kw.addClass(l2, kw(r2.getValue())), function(t3, e3, n3) {
28101
+ var l2 = wS(t2, a2, i2.before);
28102
+ return Kw.addClass(l2, TS.CLASS_CONTROLLER_ROW), r2 instanceof lS ? Kw.addClass(l2, "color") : Kw.addClass(l2, kw(r2.getValue())), function(t3, e3, n3) {
28089
28103
  if (n3.__li = e3, n3.__gui = t3, Lw.extend(n3, { options: function(e4) {
28090
28104
  if (arguments.length > 1) {
28091
28105
  var i4 = n3.__li.nextElementSibling;
28092
- return n3.remove(), ME(t3, n3.object, n3.property, { before: i4, factoryArgs: [Lw.toArray(arguments)] });
28106
+ return n3.remove(), MS(t3, n3.object, n3.property, { before: i4, factoryArgs: [Lw.toArray(arguments)] });
28093
28107
  }
28094
28108
  if (Lw.isArray(e4) || Lw.isObject(e4)) {
28095
28109
  var r4 = n3.__li.nextElementSibling;
28096
- return n3.remove(), ME(t3, n3.object, n3.property, { before: r4, factoryArgs: [e4] });
28110
+ return n3.remove(), MS(t3, n3.object, n3.property, { before: r4, factoryArgs: [e4] });
28097
28111
  }
28098
28112
  }, name: function(t4) {
28099
28113
  return n3.__li.firstElementChild.firstElementChild.innerHTML = t4, n3;
@@ -28101,8 +28115,8 @@ void main(void){
28101
28115
  return n3.__gui.listen(n3), n3;
28102
28116
  }, remove: function() {
28103
28117
  return n3.__gui.remove(n3), n3;
28104
- } }), n3 instanceof sE) {
28105
- var i3 = new rE(n3.object, n3.property, { min: n3.__min, max: n3.__max, step: n3.__step });
28118
+ } }), n3 instanceof sS) {
28119
+ var i3 = new rS(n3.object, n3.property, { min: n3.__min, max: n3.__max, step: n3.__step });
28106
28120
  Lw.each(["updateDisplay", "onChange", "onFinishChange", "step", "min", "max"], function(t4) {
28107
28121
  var e4 = n3[t4], r4 = i3[t4];
28108
28122
  n3[t4] = i3[t4] = function() {
@@ -28110,12 +28124,12 @@ void main(void){
28110
28124
  return r4.apply(i3, t5), e4.apply(n3, t5);
28111
28125
  };
28112
28126
  }), Kw.addClass(e3, "has-slider"), n3.domElement.insertBefore(i3.domElement, n3.domElement.firstElementChild);
28113
- } else if (n3 instanceof rE) {
28127
+ } else if (n3 instanceof rS) {
28114
28128
  var r3 = function(e4) {
28115
28129
  if (Lw.isNumber(n3.__min) && Lw.isNumber(n3.__max)) {
28116
28130
  var i4 = n3.__li.firstElementChild.firstElementChild.innerHTML, r4 = n3.__gui.__listening.indexOf(n3) > -1;
28117
28131
  n3.remove();
28118
- var o3 = ME(t3, n3.object, n3.property, { before: n3.__li.nextElementSibling, factoryArgs: [n3.__min, n3.__max, n3.__step] });
28132
+ var o3 = MS(t3, n3.object, n3.property, { before: n3.__li.nextElementSibling, factoryArgs: [n3.__min, n3.__max, n3.__step] });
28119
28133
  return o3.name(i4), r4 && o3.listen(), o3;
28120
28134
  }
28121
28135
  return e4;
@@ -28126,31 +28140,31 @@ void main(void){
28126
28140
  Kw.fakeEvent(n3.__checkbox, "click");
28127
28141
  }), Kw.bind(n3.__checkbox, "click", function(t4) {
28128
28142
  t4.stopPropagation();
28129
- })) : n3 instanceof aE ? (Kw.bind(e3, "click", function() {
28143
+ })) : n3 instanceof aS ? (Kw.bind(e3, "click", function() {
28130
28144
  Kw.fakeEvent(n3.__button, "click");
28131
28145
  }), Kw.bind(e3, "mouseover", function() {
28132
28146
  Kw.addClass(n3.__button, "hover");
28133
28147
  }), Kw.bind(e3, "mouseout", function() {
28134
28148
  Kw.removeClass(n3.__button, "hover");
28135
- })) : n3 instanceof lE && (Kw.addClass(e3, "color"), n3.updateDisplay = Lw.compose(function(t4) {
28149
+ })) : n3 instanceof lS && (Kw.addClass(e3, "color"), n3.updateDisplay = Lw.compose(function(t4) {
28136
28150
  return e3.style.borderLeftColor = n3.__color.toString(), t4;
28137
28151
  }, n3.updateDisplay), n3.updateDisplay());
28138
28152
  n3.setValue = Lw.compose(function(e4) {
28139
- return t3.getRoot().__preset_select && n3.isModified() && SE(t3.getRoot(), true), e4;
28153
+ return t3.getRoot().__preset_select && n3.isModified() && ES(t3.getRoot(), true), e4;
28140
28154
  }, n3.setValue);
28141
28155
  }(t2, l2, r2), t2.__controllers.push(r2), r2;
28142
28156
  }
28143
- function PE(t2, e2) {
28157
+ function PS(t2, e2) {
28144
28158
  return document.location.href + "." + e2;
28145
28159
  }
28146
- function CE(t2, e2, n2) {
28160
+ function CS(t2, e2, n2) {
28147
28161
  var i2 = document.createElement("option");
28148
28162
  i2.innerHTML = e2, i2.value = e2, t2.__preset_select.appendChild(i2), n2 && (t2.__preset_select.selectedIndex = t2.__preset_select.length - 1);
28149
28163
  }
28150
- function RE(t2, e2) {
28164
+ function RS(t2, e2) {
28151
28165
  e2.style.display = t2.useLocalStorage ? "block" : "none";
28152
28166
  }
28153
- function IE(t2) {
28167
+ function IS(t2) {
28154
28168
  var e2 = t2.__save_row = document.createElement("li");
28155
28169
  Kw.addClass(t2.domElement, "has-save"), t2.__ul.insertBefore(e2, t2.__ul.firstChild), Kw.addClass(e2, "save-row");
28156
28170
  var n2 = document.createElement("span");
@@ -28163,22 +28177,22 @@ void main(void){
28163
28177
  o2.innerHTML = "Revert", Kw.addClass(o2, "button"), Kw.addClass(o2, "revert");
28164
28178
  var s2 = t2.__preset_select = document.createElement("select");
28165
28179
  if (t2.load && t2.load.remembered ? Lw.each(t2.load.remembered, function(e3, n3) {
28166
- CE(t2, n3, n3 === t2.preset);
28167
- }) : CE(t2, "Default", false), Kw.bind(s2, "change", function() {
28180
+ CS(t2, n3, n3 === t2.preset);
28181
+ }) : CS(t2, "Default", false), Kw.bind(s2, "change", function() {
28168
28182
  for (var e3 = 0; e3 < t2.__preset_select.length; e3++)
28169
28183
  t2.__preset_select[e3].innerHTML = t2.__preset_select[e3].value;
28170
28184
  t2.preset = this.value;
28171
- }), e2.appendChild(s2), e2.appendChild(n2), e2.appendChild(i2), e2.appendChild(r2), e2.appendChild(o2), gE) {
28185
+ }), e2.appendChild(s2), e2.appendChild(n2), e2.appendChild(i2), e2.appendChild(r2), e2.appendChild(o2), gS) {
28172
28186
  var a2 = document.getElementById("dg-local-explain"), l2 = document.getElementById("dg-local-storage");
28173
- document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(PE(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), RE(t2, a2), Kw.bind(l2, "change", function() {
28174
- t2.useLocalStorage = !t2.useLocalStorage, RE(t2, a2);
28187
+ document.getElementById("dg-save-locally").style.display = "block", localStorage.getItem(PS(0, "isLocal")) === "true" && l2.setAttribute("checked", "checked"), RS(t2, a2), Kw.bind(l2, "change", function() {
28188
+ t2.useLocalStorage = !t2.useLocalStorage, RS(t2, a2);
28175
28189
  });
28176
28190
  }
28177
28191
  var h2 = document.getElementById("dg-new-constructor");
28178
28192
  Kw.bind(h2, "keydown", function(t3) {
28179
- !t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 || vE.hide();
28193
+ !t3.metaKey || t3.which !== 67 && t3.keyCode !== 67 || vS.hide();
28180
28194
  }), Kw.bind(n2, "click", function() {
28181
- h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2), vE.show(), h2.focus(), h2.select();
28195
+ h2.innerHTML = JSON.stringify(t2.getSaveObject(), void 0, 2), vS.show(), h2.focus(), h2.select();
28182
28196
  }), Kw.bind(i2, "click", function() {
28183
28197
  t2.save();
28184
28198
  }), Kw.bind(r2, "click", function() {
@@ -28188,23 +28202,23 @@ void main(void){
28188
28202
  t2.revert();
28189
28203
  });
28190
28204
  }
28191
- function LE(t2) {
28205
+ function LS(t2) {
28192
28206
  var e2 = void 0;
28193
28207
  function n2(n3) {
28194
28208
  return n3.preventDefault(), t2.width += e2 - n3.clientX, t2.onResize(), e2 = n3.clientX, false;
28195
28209
  }
28196
28210
  function i2() {
28197
- Kw.removeClass(t2.__closeButton, TE.CLASS_DRAG), Kw.unbind(window, "mousemove", n2), Kw.unbind(window, "mouseup", i2);
28211
+ Kw.removeClass(t2.__closeButton, TS.CLASS_DRAG), Kw.unbind(window, "mousemove", n2), Kw.unbind(window, "mouseup", i2);
28198
28212
  }
28199
28213
  function r2(r3) {
28200
- return r3.preventDefault(), e2 = r3.clientX, Kw.addClass(t2.__closeButton, TE.CLASS_DRAG), Kw.bind(window, "mousemove", n2), Kw.bind(window, "mouseup", i2), false;
28214
+ return r3.preventDefault(), e2 = r3.clientX, Kw.addClass(t2.__closeButton, TS.CLASS_DRAG), Kw.bind(window, "mousemove", n2), Kw.bind(window, "mouseup", i2), false;
28201
28215
  }
28202
28216
  t2.__resize_handle = document.createElement("div"), Lw.extend(t2.__resize_handle.style, { width: "6px", marginLeft: "-3px", height: "200px", cursor: "ew-resize", position: "absolute" }), Kw.bind(t2.__resize_handle, "mousedown", r2), Kw.bind(t2.__closeButton, "mousedown", r2), t2.domElement.insertBefore(t2.__resize_handle, t2.domElement.firstElementChild);
28203
28217
  }
28204
- function NE(t2, e2) {
28218
+ function NS(t2, e2) {
28205
28219
  t2.domElement.style.width = e2 + "px", t2.__save_row && t2.autoPlace && (t2.__save_row.style.width = e2 + "px"), t2.__closeButton && (t2.__closeButton.style.width = e2 + "px");
28206
28220
  }
28207
- function OE(t2, e2) {
28221
+ function OS(t2, e2) {
28208
28222
  var n2 = {};
28209
28223
  return Lw.each(t2.__rememberedObjects, function(i2, r2) {
28210
28224
  var o2 = {}, s2 = t2.__rememberedObjectIndecesToControllers[r2];
@@ -28213,16 +28227,16 @@ void main(void){
28213
28227
  }), n2[r2] = o2;
28214
28228
  }), n2;
28215
28229
  }
28216
- TE.toggleHide = function() {
28217
- xE = !xE, Lw.each(bE, function(t2) {
28218
- t2.domElement.style.display = xE ? "none" : "";
28230
+ TS.toggleHide = function() {
28231
+ xS = !xS, Lw.each(bS, function(t2) {
28232
+ t2.domElement.style.display = xS ? "none" : "";
28219
28233
  });
28220
- }, TE.CLASS_AUTO_PLACE = "a", TE.CLASS_AUTO_PLACE_CONTAINER = "ac", TE.CLASS_MAIN = "main", TE.CLASS_CONTROLLER_ROW = "cr", TE.CLASS_TOO_TALL = "taller-than-window", TE.CLASS_CLOSED = "closed", TE.CLASS_CLOSE_BUTTON = "close-button", TE.CLASS_CLOSE_TOP = "close-top", TE.CLASS_CLOSE_BOTTOM = "close-bottom", TE.CLASS_DRAG = "drag", TE.DEFAULT_WIDTH = 245, TE.TEXT_CLOSED = "Close Controls", TE.TEXT_OPEN = "Open Controls", TE._keydownHandler = function(t2) {
28221
- document.activeElement.type === "text" || t2.which !== 72 && t2.keyCode !== 72 || TE.toggleHide();
28222
- }, Kw.bind(window, "keydown", TE._keydownHandler, false), Lw.extend(TE.prototype, { add: function(t2, e2) {
28223
- return ME(this, t2, e2, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
28234
+ }, TS.CLASS_AUTO_PLACE = "a", TS.CLASS_AUTO_PLACE_CONTAINER = "ac", TS.CLASS_MAIN = "main", TS.CLASS_CONTROLLER_ROW = "cr", TS.CLASS_TOO_TALL = "taller-than-window", TS.CLASS_CLOSED = "closed", TS.CLASS_CLOSE_BUTTON = "close-button", TS.CLASS_CLOSE_TOP = "close-top", TS.CLASS_CLOSE_BOTTOM = "close-bottom", TS.CLASS_DRAG = "drag", TS.DEFAULT_WIDTH = 245, TS.TEXT_CLOSED = "Close Controls", TS.TEXT_OPEN = "Open Controls", TS._keydownHandler = function(t2) {
28235
+ document.activeElement.type === "text" || t2.which !== 72 && t2.keyCode !== 72 || TS.toggleHide();
28236
+ }, Kw.bind(window, "keydown", TS._keydownHandler, false), Lw.extend(TS.prototype, { add: function(t2, e2) {
28237
+ return MS(this, t2, e2, { factoryArgs: Array.prototype.slice.call(arguments, 2) });
28224
28238
  }, addColor: function(t2, e2) {
28225
- return ME(this, t2, e2, { color: true });
28239
+ return MS(this, t2, e2, { color: true });
28226
28240
  }, remove: function(t2) {
28227
28241
  this.__ul.removeChild(t2.__li), this.__controllers.splice(this.__controllers.indexOf(t2), 1);
28228
28242
  var e2 = this;
@@ -28232,22 +28246,22 @@ void main(void){
28232
28246
  }, destroy: function() {
28233
28247
  if (this.parent)
28234
28248
  throw new Error("Only the root GUI should be removed with .destroy(). For subfolders, use gui.removeFolder(folder) instead.");
28235
- this.autoPlace && _E.removeChild(this.domElement);
28249
+ this.autoPlace && _S.removeChild(this.domElement);
28236
28250
  var t2 = this;
28237
28251
  Lw.each(this.__folders, function(e2) {
28238
28252
  t2.removeFolder(e2);
28239
- }), Kw.unbind(window, "keydown", TE._keydownHandler, false), EE(this);
28253
+ }), Kw.unbind(window, "keydown", TS._keydownHandler, false), SS(this);
28240
28254
  }, addFolder: function(t2) {
28241
28255
  if (this.__folders[t2] !== void 0)
28242
28256
  throw new Error('You already have a folder in this GUI by the name "' + t2 + '"');
28243
28257
  var e2 = { name: t2, parent: this };
28244
28258
  e2.autoPlace = this.autoPlace, this.load && this.load.folders && this.load.folders[t2] && (e2.closed = this.load.folders[t2].closed, e2.load = this.load.folders[t2]);
28245
- var n2 = new TE(e2);
28259
+ var n2 = new TS(e2);
28246
28260
  this.__folders[t2] = n2;
28247
- var i2 = wE(this, n2.domElement);
28261
+ var i2 = wS(this, n2.domElement);
28248
28262
  return Kw.addClass(i2, "folder"), n2;
28249
28263
  }, removeFolder: function(t2) {
28250
- this.__ul.removeChild(t2.domElement.parentElement), delete this.__folders[t2.name], this.load && this.load.folders && this.load.folders[t2.name] && delete this.load.folders[t2.name], EE(t2);
28264
+ this.__ul.removeChild(t2.domElement.parentElement), delete this.__folders[t2.name], this.load && this.load.folders && this.load.folders[t2.name] && delete this.load.folders[t2.name], SS(t2);
28251
28265
  var e2 = this;
28252
28266
  Lw.each(t2.__folders, function(e3) {
28253
28267
  t2.removeFolder(e3);
@@ -28268,7 +28282,7 @@ void main(void){
28268
28282
  var e2 = Kw.getOffset(t2.__ul).top, n2 = 0;
28269
28283
  Lw.each(t2.__ul.childNodes, function(e3) {
28270
28284
  t2.autoPlace && e3 === t2.__save_row || (n2 += Kw.getHeight(e3));
28271
- }), window.innerHeight - e2 - 20 < n2 ? (Kw.addClass(t2.domElement, TE.CLASS_TOO_TALL), t2.__ul.style.height = window.innerHeight - e2 - 20 + "px") : (Kw.removeClass(t2.domElement, TE.CLASS_TOO_TALL), t2.__ul.style.height = "auto");
28285
+ }), window.innerHeight - e2 - 20 < n2 ? (Kw.addClass(t2.domElement, TS.CLASS_TOO_TALL), t2.__ul.style.height = window.innerHeight - e2 - 20 + "px") : (Kw.removeClass(t2.domElement, TS.CLASS_TOO_TALL), t2.__ul.style.height = "auto");
28272
28286
  }
28273
28287
  t2.__resize_handle && Lw.defer(function() {
28274
28288
  t2.__resize_handle.style.height = t2.__ul.offsetHeight + "px";
@@ -28276,35 +28290,35 @@ void main(void){
28276
28290
  }, onResizeDebounced: Lw.debounce(function() {
28277
28291
  this.onResize();
28278
28292
  }, 50), remember: function() {
28279
- if (Lw.isUndefined(vE) && ((vE = new mE()).domElement.innerHTML = dE), this.parent)
28293
+ if (Lw.isUndefined(vS) && ((vS = new mS()).domElement.innerHTML = dS), this.parent)
28280
28294
  throw new Error("You can only call remember on a top level GUI.");
28281
28295
  var t2 = this;
28282
28296
  Lw.each(Array.prototype.slice.call(arguments), function(e2) {
28283
- t2.__rememberedObjects.length === 0 && IE(t2), t2.__rememberedObjects.indexOf(e2) === -1 && t2.__rememberedObjects.push(e2);
28284
- }), this.autoPlace && NE(this, this.width);
28297
+ t2.__rememberedObjects.length === 0 && IS(t2), t2.__rememberedObjects.indexOf(e2) === -1 && t2.__rememberedObjects.push(e2);
28298
+ }), this.autoPlace && NS(this, this.width);
28285
28299
  }, getRoot: function() {
28286
28300
  for (var t2 = this; t2.parent; )
28287
28301
  t2 = t2.parent;
28288
28302
  return t2;
28289
28303
  }, getSaveObject: function() {
28290
28304
  var t2 = this.load;
28291
- return t2.closed = this.closed, this.__rememberedObjects.length > 0 && (t2.preset = this.preset, t2.remembered || (t2.remembered = {}), t2.remembered[this.preset] = OE(this)), t2.folders = {}, Lw.each(this.__folders, function(e2, n2) {
28305
+ return t2.closed = this.closed, this.__rememberedObjects.length > 0 && (t2.preset = this.preset, t2.remembered || (t2.remembered = {}), t2.remembered[this.preset] = OS(this)), t2.folders = {}, Lw.each(this.__folders, function(e2, n2) {
28292
28306
  t2.folders[n2] = e2.getSaveObject();
28293
28307
  }), t2;
28294
28308
  }, save: function() {
28295
- this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = OE(this), SE(this, false), this.saveToLocalStorageIfPossible();
28309
+ this.load.remembered || (this.load.remembered = {}), this.load.remembered[this.preset] = OS(this), ES(this, false), this.saveToLocalStorageIfPossible();
28296
28310
  }, saveAs: function(t2) {
28297
- this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = OE(this, true)), this.load.remembered[t2] = OE(this), this.preset = t2, CE(this, t2, true), this.saveToLocalStorageIfPossible();
28311
+ this.load.remembered || (this.load.remembered = {}, this.load.remembered.Default = OS(this, true)), this.load.remembered[t2] = OS(this), this.preset = t2, CS(this, t2, true), this.saveToLocalStorageIfPossible();
28298
28312
  }, revert: function(t2) {
28299
28313
  Lw.each(this.__controllers, function(e2) {
28300
- this.getRoot().load.remembered ? AE(t2 || this.getRoot(), e2) : e2.setValue(e2.initialValue), e2.__onFinishChange && e2.__onFinishChange.call(e2, e2.getValue());
28314
+ this.getRoot().load.remembered ? AS(t2 || this.getRoot(), e2) : e2.setValue(e2.initialValue), e2.__onFinishChange && e2.__onFinishChange.call(e2, e2.getValue());
28301
28315
  }, this), Lw.each(this.__folders, function(t3) {
28302
28316
  t3.revert(t3);
28303
- }), t2 || SE(this.getRoot(), false);
28317
+ }), t2 || ES(this.getRoot(), false);
28304
28318
  }, listen: function(t2) {
28305
28319
  var e2 = this.__listening.length === 0;
28306
28320
  this.__listening.push(t2), e2 && function t3(e3) {
28307
- e3.length !== 0 && fE.call(window, function() {
28321
+ e3.length !== 0 && fS.call(window, function() {
28308
28322
  t3(e3);
28309
28323
  });
28310
28324
  Lw.each(e3, function(t4) {
@@ -28318,7 +28332,7 @@ void main(void){
28318
28332
  t2.updateDisplay();
28319
28333
  });
28320
28334
  } });
28321
- var DE = TE, FE = function() {
28335
+ var DS = TS, FS = function() {
28322
28336
  function t2(t3) {
28323
28337
  this.player = t3;
28324
28338
  }
@@ -28360,10 +28374,10 @@ void main(void){
28360
28374
  }, set: function(t3) {
28361
28375
  this.player.updateConfig({ transactionBgColor: t3 });
28362
28376
  }, enumerable: false, configurable: true }), t2;
28363
- }(), UE = function() {
28377
+ }(), US = function() {
28364
28378
  function t2(t3, e2) {
28365
28379
  var n2;
28366
- this.config = new FE(t3), this.anchor = e2, n2 = this.createControllerGUI(), this.gui = n2[0], this.controller = n2[1], this.createStats();
28380
+ this.config = new FS(t3), this.anchor = e2, n2 = this.createControllerGUI(), this.gui = n2[0], this.controller = n2[1], this.createStats();
28367
28381
  }
28368
28382
  return t2.prototype.createStats = function() {
28369
28383
  var t3 = this;
@@ -28371,7 +28385,7 @@ void main(void){
28371
28385
  t3.controller.frameRate.updateDisplay(), t3.controller.size.updateDisplay(), t3.controller.minFPS.updateDisplay(), t3.controller.drawFrames.updateDisplay(), t3.controller.maxFPS.updateDisplay(), t3.controller.resolution.updateDisplay(), t3.controller.autoFps.updateDisplay(), t3.controller.autoResolution.updateDisplay(), t3.controller.drawCall.updateDisplay();
28372
28386
  }, 16);
28373
28387
  }, t2.prototype.createControllerGUI = function() {
28374
- var t3 = new DE({ autoPlace: true, closed: true });
28388
+ var t3 = new DS({ autoPlace: true, closed: true });
28375
28389
  t3.domElement.style.opacity = ".6", t3.domElement.style.transformOrigin = "100% 0", t3.domElement.style.transform = "scale(1)", this.anchor.appendChild(t3.domElement), t3.domElement.style.position = "absolute", t3.domElement.style.right = "0", t3.domElement.style.top = "0", t3.domElement.style.zIndex = "2";
28376
28390
  var e2 = { frameRate: t3.add(this.config, "frameRate"), drawFrames: t3.add(this.config, "drawFrames"), drawCall: t3.add(this.config, "drawCall"), size: t3.add(this.config, "size"), minFPS: t3.add(this.config, "minFPS", 0, 60), maxFPS: t3.add(this.config, "maxFPS", 0, 60), resolution: t3.add(this.config, "resolution", 0.5, 8, 0.5), autoResolution: t3.add(this.config, "autoResolution"), autoFps: t3.add(this.config, "autoFPS"), transactionBgColor: t3.addColor(this.config, "backgroundColor") };
28377
28391
  return [t3, e2];
@@ -28381,7 +28395,7 @@ void main(void){
28381
28395
  } catch (t3) {
28382
28396
  }
28383
28397
  }, t2;
28384
- }(), BE = function() {
28398
+ }(), BS = function() {
28385
28399
  function t2(t3) {
28386
28400
  var e2 = this;
28387
28401
  this.tasks = [], this.isDestroy = false, this.isScheduling = false, this.schedule = function() {
@@ -28397,7 +28411,7 @@ void main(void){
28397
28411
  }, t2.prototype.addTask = function(t3) {
28398
28412
  this.tasks.push(t3), this.isScheduling || this.schedule();
28399
28413
  }, t2;
28400
- }(), kE = function() {
28414
+ }(), kS = function() {
28401
28415
  function t2(t3) {
28402
28416
  this.autoUnlock = /* @__PURE__ */ Object.create(null), this.locks = /* @__PURE__ */ Object.create(null), this.available = false, this.available = t3;
28403
28417
  }
@@ -28411,7 +28425,7 @@ void main(void){
28411
28425
  }, t2.prototype.isLocked = function(t3) {
28412
28426
  return !!this.available && !!this.locks[t3];
28413
28427
  }, t2;
28414
- }(), GE = function() {
28428
+ }(), GS = function() {
28415
28429
  function t2() {
28416
28430
  var t3 = this;
28417
28431
  this.tasks = [], this.isDestroy = false, this.isScheduling = false, this.schedule = function() {
@@ -28434,7 +28448,7 @@ void main(void){
28434
28448
  }, t2.prototype.destroy = function() {
28435
28449
  this.isDestroy = true;
28436
28450
  }, t2;
28437
- }(), HE = function(t2, e2, n2, i2) {
28451
+ }(), HS = function(t2, e2, n2, i2) {
28438
28452
  return new (n2 || (n2 = Promise))(function(r2, o2) {
28439
28453
  function s2(t3) {
28440
28454
  try {
@@ -28458,7 +28472,7 @@ void main(void){
28458
28472
  }
28459
28473
  l2((i2 = i2.apply(t2, e2 || [])).next());
28460
28474
  });
28461
- }, jE = function(t2, e2) {
28475
+ }, jS = function(t2, e2) {
28462
28476
  var n2, i2, r2, o2, s2 = { label: 0, sent: function() {
28463
28477
  if (1 & r2[0])
28464
28478
  throw r2[1];
@@ -28522,13 +28536,13 @@ void main(void){
28522
28536
  };
28523
28537
  }
28524
28538
  };
28525
- function zE(t2, e2, n2) {
28526
- return HE(this, void 0, void 0, function() {
28539
+ function zS(t2, e2, n2) {
28540
+ return HS(this, void 0, void 0, function() {
28527
28541
  var i2, r2, o2, s2;
28528
- return jE(this, function(a2) {
28542
+ return jS(this, function(a2) {
28529
28543
  switch (a2.label) {
28530
28544
  case 0:
28531
- return i2 = document.createElement("div"), (r2 = new nS({ anchor: i2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1 }, mode: "local", interactive: false })).setResource(t2, e2), [4, r2.getSlideCountAsync()];
28545
+ return i2 = document.createElement("div"), (r2 = new nE({ anchor: i2, renderOptions: { minFPS: 1, maxFPS: 1, resolution: 1 }, mode: "local", interactive: false })).setResource(t2, e2), [4, r2.getSlideCountAsync()];
28532
28546
  case 1:
28533
28547
  if (o2 = a2.sent(), n2)
28534
28548
  return [3, 6];
@@ -28547,7 +28561,7 @@ void main(void){
28547
28561
  });
28548
28562
  });
28549
28563
  }
28550
- var VE = function() {
28564
+ var VS = function() {
28551
28565
  var t2 = function(e2, n2) {
28552
28566
  return (t2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t3, e3) {
28553
28567
  t3.__proto__ = e3;
@@ -28564,14 +28578,14 @@ void main(void){
28564
28578
  }
28565
28579
  t2(e2, n2), e2.prototype = n2 === null ? Object.create(n2) : (i2.prototype = n2.prototype, new i2());
28566
28580
  };
28567
- }(), WE = function() {
28568
- return (WE = Object.assign || function(t2) {
28581
+ }(), WS = function() {
28582
+ return (WS = Object.assign || function(t2) {
28569
28583
  for (var e2, n2 = 1, i2 = arguments.length; n2 < i2; n2++)
28570
28584
  for (var r2 in e2 = arguments[n2])
28571
28585
  Object.prototype.hasOwnProperty.call(e2, r2) && (t2[r2] = e2[r2]);
28572
28586
  return t2;
28573
28587
  }).apply(this, arguments);
28574
- }, XE = function(t2, e2, n2, i2) {
28588
+ }, XS = function(t2, e2, n2, i2) {
28575
28589
  var r2, o2 = arguments.length, s2 = o2 < 3 ? e2 : i2 === null ? i2 = Object.getOwnPropertyDescriptor(e2, n2) : i2;
28576
28590
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
28577
28591
  s2 = Reflect.decorate(t2, e2, n2, i2);
@@ -28579,7 +28593,7 @@ void main(void){
28579
28593
  for (var a2 = t2.length - 1; a2 >= 0; a2--)
28580
28594
  (r2 = t2[a2]) && (s2 = (o2 < 3 ? r2(s2) : o2 > 3 ? r2(e2, n2, s2) : r2(e2, n2)) || s2);
28581
28595
  return o2 > 3 && s2 && Object.defineProperty(e2, n2, s2), s2;
28582
- }, YE = function(t2, e2, n2, i2) {
28596
+ }, YS = function(t2, e2, n2, i2) {
28583
28597
  return new (n2 || (n2 = Promise))(function(r2, o2) {
28584
28598
  function s2(t3) {
28585
28599
  try {
@@ -28603,7 +28617,7 @@ void main(void){
28603
28617
  }
28604
28618
  l2((i2 = i2.apply(t2, e2 || [])).next());
28605
28619
  });
28606
- }, qE = function(t2, e2) {
28620
+ }, qS = function(t2, e2) {
28607
28621
  var n2, i2, r2, o2, s2 = { label: 0, sent: function() {
28608
28622
  if (1 & r2[0])
28609
28623
  throw r2[1];
@@ -28666,20 +28680,20 @@ void main(void){
28666
28680
  }([o3, a3]);
28667
28681
  };
28668
28682
  }
28669
- }, ZE = window.ResizeObserver || Ew, JE = function(t2) {
28683
+ }, ZS = window.ResizeObserver || Sw, JS = function(t2) {
28670
28684
  return new Promise(function(e2) {
28671
28685
  return setTimeout(e2, t2);
28672
28686
  });
28673
28687
  };
28674
- function QE(t2, e2) {
28675
- return YE(this, void 0, void 0, function() {
28688
+ function QS(t2, e2) {
28689
+ return YS(this, void 0, void 0, function() {
28676
28690
  var n2;
28677
- return qE(this, function(i2) {
28691
+ return qS(this, function(i2) {
28678
28692
  switch (i2.label) {
28679
28693
  case 0:
28680
28694
  n2 = Date.now(), i2.label = 1;
28681
28695
  case 1:
28682
- return !t2() && Date.now() - n2 < e2 ? [4, JE(50)] : [3, 3];
28696
+ return !t2() && Date.now() - n2 < e2 ? [4, JS(50)] : [3, 3];
28683
28697
  case 2:
28684
28698
  return i2.sent(), n2 = Date.now(), [3, 1];
28685
28699
  case 3:
@@ -28688,21 +28702,21 @@ void main(void){
28688
28702
  });
28689
28703
  });
28690
28704
  }
28691
- var KE = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange" }, $E = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, tS = "";
28705
+ var KS = { syncDispatch: "syncDispatch", syncReceive: "syncReceive", syncEventLag: "syncEventLag", renderStart: "renderStart", renderEnd: "renderEnd", renderError: "renderError", slideChange: "slideChange", mainSeqStepStart: "mainSeqStepStart", mainSeqStepEnd: "mainSeqStepEnd", animateStart: "animateStart", animateEnd: "animateEnd", stateChange: "stateChange", slideStepEnd: "slideEnd", slideStepStart: "slideStart" }, $S = { taskId: "", url: "", currentSlideIndex: -1, mainSeqStep: -1, mainSeqState: null, mediaState: /* @__PURE__ */ Object.create(null), interactiveSeqState: /* @__PURE__ */ Object.create(null) }, tE = "";
28692
28706
  try {
28693
- tS = "0.7.4";
28707
+ tE = "0.7.7";
28694
28708
  } catch (t2) {
28695
- tS = "dev";
28709
+ tE = "dev";
28696
28710
  }
28697
- var eS = null;
28711
+ var eE = null;
28698
28712
  try {
28699
- eS = a.createInstance({ name: "__slide_local_log__", driver: a.INDEXEDDB, version: 1 });
28713
+ eE = a.createInstance({ name: "__slide_local_log__", driver: a.INDEXEDDB, version: 1 });
28700
28714
  } catch (t2) {
28701
28715
  }
28702
- var nS = function(t2) {
28716
+ var nE = function(t2) {
28703
28717
  function e2(n3) {
28704
28718
  var i3 = t2.call(this) || this;
28705
- return i3.iosResetCache = [], i3.needClearCacheImage = false, i3.version = tS, i3.__slideState = kT()($E), i3.userInputTime = 0, i3.isSyncingSlideState = false, i3.frozenTaskManager = new GE(), i3.randomId = s(), i3.resize = false, i3.isAnimating = false, i3.renderingTaskManager = new Pw(), i3.isLoading = false, i3.interactive = true, i3.renderingIndex = 0, i3.frameWidth = 1, i3.frameHeight = 1, i3.frame = document.createElement("div"), i3.canvasContainer = document.createElement("div"), i3.medianController = document.createElement("div"), i3.frameResizeObserver = new ZE(function() {
28719
+ return i3.iosResetCache = [], i3.needClearCacheImage = false, i3.version = tE, i3.__slideState = kT()($S), i3.userInputTime = 0, i3.isSyncingSlideState = false, i3.frozenTaskManager = new GS(), i3.randomId = s(), i3.resize = false, i3.isAnimating = false, i3.renderingTaskManager = new Pw(), i3.isLoading = false, i3.interactive = true, i3.renderingIndex = 0, i3.frameWidth = 1, i3.frameHeight = 1, i3.frame = document.createElement("div"), i3.canvasContainer = document.createElement("div"), i3.medianController = document.createElement("div"), i3.frameResizeObserver = new ZS(function() {
28706
28720
  return i3.frameResizeHandler();
28707
28721
  }), i3.timestamp = function() {
28708
28722
  return Date.now();
@@ -28733,12 +28747,12 @@ void main(void){
28733
28747
  }, i3.handleSlideRef = function() {
28734
28748
  console.log(i3), window.__slide = i3;
28735
28749
  }, i3.receiveSyncHandler = function(t3) {
28736
- return YE(i3, void 0, void 0, function() {
28750
+ return YS(i3, void 0, void 0, function() {
28737
28751
  var e3, n4, i4, r2, o2 = this;
28738
- return qE(this, function(s2) {
28752
+ return qS(this, function(s2) {
28739
28753
  switch (s2.label) {
28740
28754
  case 0:
28741
- return zy()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(KE.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), t3.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
28755
+ return zy()(t3.incrId) && (t3.incrId && t3.incrId - this._receiveIncrId != 1 && this.emit(KS.syncEventLag), this._receiveIncrId = t3.incrId || 0), this.logger.info("sync receive " + JSON.stringify(t3), this.taskId), t3.type !== "nextStep" ? [3, 1] : (this.mainSeqStep !== t3.next - 1 && this.mainSeqStep + 1 !== this.mainSeqLength && this.player ? (this.setMainSeqStep(t3.next, "start"), this.player.nextTick(function() {
28742
28756
  o2.doNextStep(true);
28743
28757
  })) : this.doNextStep(true), [3, 6]);
28744
28758
  case 1:
@@ -28759,16 +28773,16 @@ void main(void){
28759
28773
  });
28760
28774
  });
28761
28775
  }, i3.handlePrevSlide = function(t3) {
28762
- return t3 === void 0 && (t3 = false), YE(i3, void 0, void 0, function() {
28776
+ return t3 === void 0 && (t3 = false), YS(i3, void 0, void 0, function() {
28763
28777
  var e3;
28764
- return qE(this, function(n4) {
28778
+ return qS(this, function(n4) {
28765
28779
  return this.player ? ((e3 = this.player.prevSlideIndex) >= 1 && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, false) : this.renderSlide(e3, false)), [2]) : [2];
28766
28780
  });
28767
28781
  });
28768
28782
  }, i3.handleNextSlide = function(t3) {
28769
- return t3 === void 0 && (t3 = false), YE(i3, void 0, void 0, function() {
28783
+ return t3 === void 0 && (t3 = false), YS(i3, void 0, void 0, function() {
28770
28784
  var e3;
28771
- return qE(this, function(n4) {
28785
+ return qS(this, function(n4) {
28772
28786
  return this.player ? ((e3 = this.player.nextSlideIndex) <= this.slideCount && (this.config.navigatorDelegate ? this.config.navigatorDelegate.gotoPage(e3) : t3 ? this.doRenderSlide(e3, true) : this.renderSlide(e3, true)), [2]) : [2];
28773
28787
  });
28774
28788
  });
@@ -28778,7 +28792,7 @@ void main(void){
28778
28792
  i3.renderSlide(t3, e3);
28779
28793
  } else
28780
28794
  t3 === -1 && i3.renderSlide(i3.slideCount, true);
28781
- }, i3.config = i3.initSlideConfig(n3), i3.logger = { info: function(t3, n4) {
28795
+ }, e2.instances.push(i3), i3.config = i3.initSlideConfig(n3), i3.logger = { info: function(t3, n4) {
28782
28796
  var r2;
28783
28797
  e2._tempLog += "INFO - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n";
28784
28798
  var o2 = (r2 = i3.config.logger) === null || r2 === void 0 ? void 0 : r2.info;
@@ -28793,7 +28807,7 @@ void main(void){
28793
28807
  e2._tempLog += "ERROR - " + new Date().toISOString() + " - {" + i3.randomId + "}[" + n4 + "] " + t3 + "\n";
28794
28808
  var o2 = (r2 = i3.config.logger) === null || r2 === void 0 ? void 0 : r2.error;
28795
28809
  o2 && o2("[" + n4 + "] " + t3);
28796
- } }, i3.logger.info("new slide", i3.taskId), i3.anchor = i3.config.anchor, i3.syncQueue = new BE(i3.receiveSyncHandler), i3.lock = new kE(i3.mode === "interactive"), i3.cacheImage.style.position = "absolute", i3.cacheImage.style.zIndex = "100", i3.setMedianControllerAttribute(), i3.canvasContainer.style.position = "relative", i3.canvasContainer.appendChild(i3.medianController), i3.frame.appendChild(i3.canvasContainer), i3.frameResizeObserver.observe(i3.frame), i3.on(KE.syncReceive, function(t3) {
28810
+ } }, i3.logger.info("new slide", i3.taskId), i3.anchor = i3.config.anchor, i3.syncQueue = new BS(i3.receiveSyncHandler), i3.lock = new kS(i3.mode === "interactive"), i3.cacheImage.style.position = "absolute", i3.cacheImage.style.zIndex = "100", i3.setMedianControllerAttribute(), i3.canvasContainer.style.position = "relative", i3.canvasContainer.appendChild(i3.medianController), i3.frame.appendChild(i3.canvasContainer), i3.frameResizeObserver.observe(i3.frame), i3.on(KS.syncReceive, function(t3) {
28797
28811
  i3.lock.unlock(t3.type, t3.uuid), i3.syncQueue.addTask(t3);
28798
28812
  }), i3.renderingTaskManager.eventHub.on("task-error", function(t3) {
28799
28813
  var e3 = t3.error, n4 = t3.task, r2 = Ty.transform(e3);
@@ -28804,12 +28818,12 @@ void main(void){
28804
28818
  }), window.addEventListener("message", i3.recoverHandler), i3;
28805
28819
  }
28806
28820
  var n2, i2;
28807
- return VE(e2, t2), e2.flushLog = function(t3) {
28808
- return t3 === void 0 && (t3 = false), YE(this, void 0, void 0, function() {
28809
- return qE(this, function(n3) {
28821
+ return VS(e2, t2), e2.flushLog = function(t3) {
28822
+ return t3 === void 0 && (t3 = false), YS(this, void 0, void 0, function() {
28823
+ return qS(this, function(n3) {
28810
28824
  switch (n3.label) {
28811
28825
  case 0:
28812
- return e2._tempLog.length > 131072 || t3 && e2._tempLog.length > 0 ? [4, eS == null ? void 0 : eS.setItem("run_time_log_" + e2._tempLogIndex, e2._tempLog)] : [3, 2];
28826
+ return e2._tempLog.length > 131072 || t3 && e2._tempLog.length > 0 ? [4, eE == null ? void 0 : eE.setItem("run_time_log_" + e2._tempLogIndex, e2._tempLog)] : [3, 2];
28813
28827
  case 1:
28814
28828
  n3.sent(), e2._tempLog = "", e2._tempLogIndex += 1, n3.label = 2;
28815
28829
  case 2:
@@ -28820,17 +28834,17 @@ void main(void){
28820
28834
  }, Object.defineProperty(e2.prototype, "dispatchIncrId", { get: function() {
28821
28835
  return this._dispatchIncrId++;
28822
28836
  }, enumerable: false, configurable: true }), e2.prototype.reportError = function(t3, e3) {
28823
- this.emit(KE.renderError, { error: t3, index: e3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: e3, customMessage: "@slide/_error_" }, "*");
28837
+ this.emit(KS.renderError, { error: t3, index: e3 }), window.postMessage({ type: "@slide/_error_", errorType: t3.errorType, errorMsg: t3.errorMsg, slideId: this.randomId, slideIndex: e3, customMessage: "@slide/_error_" }, "*");
28824
28838
  }, e2.prototype.initSlideConfig = function(t3) {
28825
28839
  return t3.timestamp && (this.timestamp = t3.timestamp), t3.rtcAudio && (LT.RtcAudioClazz = t3.rtcAudio), this.mode = t3.mode, this.anchor = t3.anchor, this.anchor.appendChild(this.frame), this.enableGlobalClick = !nl()(t3.enableGlobalClick) && t3.enableGlobalClick, this.resize = t3.resize || false, this.interactive = t3.interactive, this.frame.style.cssText = t3.fixedFrameSize ? "width:" + t3.fixedFrameSize.width + "px;height:" + t3.fixedFrameSize.height + "px;" : "width:100%;height:100%", this.frame.style.cssText += "display:flex;justify-content:center;align-items:center;visibility:hidden;position:relative;z-index:1;", t3.fixedFrameSize && (this.frameWidth = t3.fixedFrameSize.width, this.frameHeight = t3.fixedFrameSize.height), t3;
28826
28840
  }, e2.prototype.initPlayer = function(t3) {
28827
- var e3, n3, i3, r2 = this, o2 = new LT({ mode: this.mode, useLocalCache: !!nl()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: nl()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster });
28841
+ var e3, n3, i3, r2 = this, o2 = new LT({ mode: this.mode, useLocalCache: !!nl()(this.config.useLocalCache) || this.config.useLocalCache, logger: this.logger, resourceTimeout: nl()(this.config.resourceTimeout) ? 15e3 : this.config.resourceTimeout, loadDelegate: this.config.loaderDelegate, volumeAdjuster: this.volumeAdjuster }, t3.renderOptions);
28828
28842
  return o2.setInteractive(this.interactive), o2.updateConfig(t3.renderOptions || {}), o2.on(IT.renderStart, function(t4) {
28829
- r2.isLoading = true, r2.emit(KE.renderStart, t4);
28843
+ r2.isLoading = true, r2.emit(KS.renderStart, t4);
28830
28844
  }), o2.on(IT.renderEnd, function(t4) {
28831
- r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(KE.renderEnd, t4);
28845
+ r2.isLoading = false, r2.player && (r2.designHeight = r2.player.designHeight, r2.designWidth = r2.player.designWidth, r2.cacheImage.style.width = r2.player.designWidth + "px", r2.cacheImage.style.height = r2.player.designHeight + "px", r2._slideCount = r2.player.slideCount), r2.emit(KS.renderEnd, t4);
28832
28846
  }), o2.on(IT.slideChange, function(t4) {
28833
- r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(KE.slideChange, t4);
28847
+ r2.__slideState.currentSlideIndex = t4, r2.emitStateChange(), r2.emit(KS.slideChange, t4);
28834
28848
  }), o2.on(IT.mainSeqStateChange, function(t4) {
28835
28849
  r2.__slideState.mainSeqState = t4, r2.emitStateChange();
28836
28850
  }), o2.on(IT.mainSeqStepChange, function(t4) {
@@ -28839,16 +28853,16 @@ void main(void){
28839
28853
  var e4 = t4.id, n4 = t4.state;
28840
28854
  r2.__slideState.interactiveSeqState[e4] = n4, r2.emitStateChange();
28841
28855
  }), o2.on(IT.animateStart, function() {
28842
- r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(KE.animateStart));
28856
+ r2.isAnimating !== true && (r2.isAnimating = true, r2.emit(KS.animateStart));
28843
28857
  }), o2.on(IT.animateEnd, function() {
28844
- r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(KE.animateEnd));
28858
+ r2.isAnimating !== false && (r2.isAnimating = false, r2.emit(KS.animateEnd));
28845
28859
  }), o2.on(IT.interactiveSeqAction, function(t4) {
28846
28860
  var e4 = t4.action, n4 = t4.seqId;
28847
28861
  r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "interactiveAnim", action: e4, seqId: n4 }), r2.emitStateChange();
28848
28862
  }), o2.on(IT.mainSeqStepStart, function(t4) {
28849
- r2.emit(KE.mainSeqStepStart, t4);
28863
+ r2.emit(KS.mainSeqStepStart, t4);
28850
28864
  }), o2.on(IT.mainSeqStepEnd, function(t4) {
28851
- r2.emit(KE.mainSeqStepEnd, t4);
28865
+ r2.emit(KS.mainSeqStepEnd, t4);
28852
28866
  }), o2.on(IT.mediaPlay, function(t4) {
28853
28867
  var e4 = { type: "play", time: r2.timestamp() - 1e3 * t4.time };
28854
28868
  r2.__slideState.mediaState[t4.id] = e4, r2.emitSyncDispatch({ slideIndex: r2.__slideState.currentSlideIndex, type: "mediaPlay", id: t4.id, state: e4 }), r2.emitStateChange();
@@ -28866,7 +28880,7 @@ void main(void){
28866
28880
  r2.config.navigatorDelegate ? r2.config.navigatorDelegate.gotoPage(t4) : r2.handleGotoSlide(t4);
28867
28881
  }), (e3 = o2.view) === null || e3 === void 0 || e3.addEventListener("touchend", this.handleViewTouchEnd), (n3 = o2.view) === null || n3 === void 0 || n3.addEventListener("touchstart", this.handleViewTouchStart), (i3 = o2.view) === null || i3 === void 0 || i3.addEventListener("click", this.handleViewClick), o2.on(IT.userInput, this.userInputHandle), o2;
28868
28882
  }, e2.prototype.createController = function() {
28869
- this.player && (this.playerController = new UE(this.player, this.frame));
28883
+ this.player && (this.playerController = new US(this.player, this.frame));
28870
28884
  }, e2.prototype.setMedianControllerAttribute = function() {
28871
28885
  this.medianController.className = "median-container", this.medianController.style.position = "absolute", this.medianController.style.left = "0", this.medianController.style.top = "0", this.medianController.style.zIndex = "2";
28872
28886
  }, e2.prototype.frameResizeHandler = function() {
@@ -28886,9 +28900,9 @@ void main(void){
28886
28900
  }
28887
28901
  }, e2.prototype.setSlideState = function(t3) {
28888
28902
  var e3, n3, i3;
28889
- return YE(this, void 0, void 0, function() {
28903
+ return YS(this, void 0, void 0, function() {
28890
28904
  var r2, o2 = this;
28891
- return qE(this, function(s2) {
28905
+ return qS(this, function(s2) {
28892
28906
  switch (s2.label) {
28893
28907
  case 0:
28894
28908
  return this.isSyncingSlideState = true, this.logger.info("stateChange receive " + JSON.stringify(t3), this.taskId), t3.taskId && t3.taskId !== this.__slideState.taskId && (this.__slideState.taskId = t3.taskId, (e3 = this.player) === null || e3 === void 0 || e3.setResourceData(t3.taskId, this.__slideState.url)), t3.url && t3.url !== this.__slideState.url && (this.__slideState.url = t3.url, (n3 = this.player) === null || n3 === void 0 || n3.setResourceData(this.__slideState.taskId, t3.url)), Number.isInteger(t3.currentSlideIndex) && t3.currentSlideIndex !== this.__slideState.currentSlideIndex ? (this.__slideState.currentSlideIndex = t3.currentSlideIndex, [4, this.doRenderSlide(t3.currentSlideIndex)]) : [3, 2];
@@ -28928,9 +28942,9 @@ void main(void){
28928
28942
  }, Object.defineProperty(e2.prototype, "slideCount", { get: function() {
28929
28943
  return this._slideCount;
28930
28944
  }, enumerable: false, configurable: true }), e2.prototype.getSizeAsync = function() {
28931
- return YE(this, void 0, void 0, function() {
28945
+ return YS(this, void 0, void 0, function() {
28932
28946
  var t3;
28933
- return qE(this, function(e3) {
28947
+ return qS(this, function(e3) {
28934
28948
  switch (e3.label) {
28935
28949
  case 0:
28936
28950
  if (this.width > 0 && this.height > 0)
@@ -28950,8 +28964,8 @@ void main(void){
28950
28964
  });
28951
28965
  });
28952
28966
  }, e2.prototype.getSlideCountAsync = function() {
28953
- return YE(this, void 0, void 0, function() {
28954
- return qE(this, function(t3) {
28967
+ return YS(this, void 0, void 0, function() {
28968
+ return qS(this, function(t3) {
28955
28969
  switch (t3.label) {
28956
28970
  case 0:
28957
28971
  if (this._slideCount > 0)
@@ -29007,9 +29021,9 @@ void main(void){
29007
29021
  this.taskId = t3, (n3 = this.player) === null || n3 === void 0 || n3.setResourceData(t3, e3), this.__slideState.taskId = t3, this.__slideState.url = e3, this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "setResource", taskId: t3, url: e3 });
29008
29022
  }, e2.prototype._renderSlide = function(t3) {
29009
29023
  var e3;
29010
- return YE(this, void 0, void 0, function() {
29024
+ return YS(this, void 0, void 0, function() {
29011
29025
  var n3 = this;
29012
- return qE(this, function(i3) {
29026
+ return qS(this, function(i3) {
29013
29027
  switch (i3.label) {
29014
29028
  case 0:
29015
29029
  return this.renderingIndex = t3, this.player && t3 === this.player.currentIndex ? [2] : ((LT.platform.isIOS() || LT.platform.isAndroid()) && this.iosResetCache.indexOf(t3) < 0 && this.iosResetCache.push(t3), [4, (e3 = this.player) === null || e3 === void 0 ? void 0 : e3.renderSlide(t3)]);
@@ -29053,7 +29067,7 @@ void main(void){
29053
29067
  var t3, e3;
29054
29068
  return (e3 = (t3 = this.player) === null || t3 === void 0 ? void 0 : t3.getSnapshot()) !== null && e3 !== void 0 ? e3 : null;
29055
29069
  }, e2.prototype.nextStep = function() {
29056
- !this.isLoading && this.player && this.interactive ? this.player.mainSeqHasNextStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() + 1 }) : this.mode === "sync" ? (this.doNextStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() })) : this.doNextStep() : this.handleNextSlide() : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
29070
+ !this.isLoading && this.player && this.interactive ? (this.hasNextStep() || this.emit(KS.slideStepEnd), this.player.mainSeqHasNextStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() + 1 }) : this.mode === "sync" ? (this.doNextStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "nextStep", next: this.player.mainSeqStep() })) : this.doNextStep() : this.handleNextSlide()) : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
29057
29071
  }, e2.prototype.doNextStep = function(t3) {
29058
29072
  if (t3 === void 0 && (t3 = false), this.player) {
29059
29073
  this.player.nextStep(t3);
@@ -29061,7 +29075,7 @@ void main(void){
29061
29075
  this.__slideState.mainSeqStep = e3, this.emitStateChange();
29062
29076
  }
29063
29077
  }, e2.prototype.prevStep = function() {
29064
- !this.isLoading && this.player && this.interactive ? this.player.mainSeqHasPrevStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ type: "prevStep", slideIndex: this.__slideState.currentSlideIndex, next: this.player.mainSeqStep() - 1 }) : this.mode === "sync" ? (this.doPrevStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "prevStep", next: this.player.mainSeqStep() })) : this.doPrevStep() : this.handlePrevSlide() : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
29078
+ !this.isLoading && this.player && this.interactive ? (this.hasPrevStep() || this.emit(KS.slideStepStart), this.player.mainSeqHasPrevStep() ? this.mode === "interactive" ? this.emitSyncDispatch({ type: "prevStep", slideIndex: this.__slideState.currentSlideIndex, next: this.player.mainSeqStep() - 1 }) : this.mode === "sync" ? (this.doPrevStep(), this.emitSyncDispatch({ slideIndex: this.__slideState.currentSlideIndex, type: "prevStep", next: this.player.mainSeqStep() })) : this.doPrevStep() : this.handlePrevSlide()) : this.logger.info("prevent nextStep. " + this.isLoading + " " + this.player + " " + this.interactive, this.taskId);
29065
29079
  }, e2.prototype.doPrevStep = function(t3) {
29066
29080
  if (t3 === void 0 && (t3 = false), this.player) {
29067
29081
  this.player.prevStep(t3);
@@ -29073,14 +29087,14 @@ void main(void){
29073
29087
  }, e2.prototype.emitStateChange = function() {
29074
29088
  if (this.mode !== "local" && !this.isSyncingSlideState) {
29075
29089
  var t3 = this.slideState;
29076
- !UT()(this.lastEmitedState, t3) && this.isSlideStateReady(t3) && (this.lastEmitedState = t3, this.emit(KE.stateChange, t3), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
29090
+ !UT()(this.lastEmitedState, t3) && this.isSlideStateReady(t3) && (this.lastEmitedState = t3, this.emit(KS.stateChange, t3), this.logger.info("stateChange dispatch " + JSON.stringify(this.slideState), this.taskId));
29077
29091
  }
29078
29092
  }, e2.prototype.emitSyncDispatch = function(t3) {
29079
29093
  if (!this.lock.isLocked(t3.type)) {
29080
29094
  var e3 = Math.random().toString(32).substr(2);
29081
29095
  this.lock.addLock(t3.type, e3);
29082
- var n3 = WE(WE({}, t3), { uuid: e3 });
29083
- this.config.mode === "sync" && (n3.incrId = this.dispatchIncrId), this.emit(KE.syncDispatch, n3), this.logger.info("sync dispatch " + JSON.stringify(n3), this.taskId);
29096
+ var n3 = WS(WS({}, t3), { uuid: e3 });
29097
+ this.config.mode === "sync" && (n3.incrId = this.dispatchIncrId), this.emit(KS.syncDispatch, n3), this.logger.info("sync dispatch " + JSON.stringify(n3), this.taskId);
29084
29098
  }
29085
29099
  }, e2.prototype.setMainSeqStep = function(t3, e3) {
29086
29100
  var n3;
@@ -29096,9 +29110,9 @@ void main(void){
29096
29110
  (t3 = this.player) === null || t3 === void 0 || t3.resume();
29097
29111
  }, e2.prototype._doFrozen = function() {
29098
29112
  var t3;
29099
- return YE(this, void 0, void 0, function() {
29113
+ return YS(this, void 0, void 0, function() {
29100
29114
  var e3, n3, i3, r2 = this;
29101
- return qE(this, function(o2) {
29115
+ return qS(this, function(o2) {
29102
29116
  switch (o2.label) {
29103
29117
  case 0:
29104
29118
  return this.logger.info("frozen with player[" + !!this.player + "]", this.taskId), this.view && this.player ? [4, this.player.clock.waitUntil(function() {
@@ -29106,7 +29120,7 @@ void main(void){
29106
29120
  }, 6e4)] : [3, 2];
29107
29121
  case 1:
29108
29122
  for (n3 in o2.sent(), e3 = this.player.getSnapshot() || "", this.cacheImage.src = e3, this.frame.appendChild(this.cacheImage), this.player.destroy(), (t3 = this.playerController) === null || t3 === void 0 || t3.destroy(), this.player = void 0, this.__slideState.mediaState)
29109
- i3 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = WE(WE({}, i3), { frozenTime: this.timestamp() });
29123
+ i3 = this.__slideState.mediaState[n3], this.__slideState.mediaState[n3] = WS(WS({}, i3), { frozenTime: this.timestamp() });
29110
29124
  o2.label = 2;
29111
29125
  case 2:
29112
29126
  return [2];
@@ -29120,14 +29134,14 @@ void main(void){
29120
29134
  });
29121
29135
  }, e2.prototype._doRelease = function() {
29122
29136
  var t3, e3;
29123
- return YE(this, void 0, void 0, function() {
29137
+ return YS(this, void 0, void 0, function() {
29124
29138
  var n3, i3, r2, o2;
29125
- return qE(this, function(s2) {
29139
+ return qS(this, function(s2) {
29126
29140
  switch (s2.label) {
29127
29141
  case 0:
29128
29142
  if (this.logger.info("do release slide", this.taskId), this.player)
29129
29143
  return [2];
29130
- for (i3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = kT()($E), n3.mediaState)
29144
+ for (i3 in this.player = this.initPlayer(this.config), ((t3 = this.config) === null || t3 === void 0 ? void 0 : t3.controller) && this.createController(), this.player.view && (this.canvasContainer.appendChild(this.player.view), this.player.view.style.visibility = "hidden"), n3 = this.__slideState, this.__slideState = kT()($S), n3.mediaState)
29131
29145
  (r2 = n3.mediaState[i3]).type === "play" && (o2 = Math.max((e3 = r2.frozenTime) !== null && e3 !== void 0 ? e3 : 0, r2.time), r2.time = this.timestamp() - (o2 - r2.time), r2.frozenTime = void 0);
29132
29146
  return [4, this.setSlideState(n3)];
29133
29147
  case 1:
@@ -29148,8 +29162,12 @@ void main(void){
29148
29162
  return t3._doRelease();
29149
29163
  });
29150
29164
  }, e2.prototype._doDestroy = function() {
29151
- var t3, e3, n3, i3;
29152
- this.logger.info("do destroy slide", this.taskId), this.playerController && this.playerController.destroy(), this.frameResizeObserver.disconnect(), (t3 = this.player) === null || t3 === void 0 || t3.removeAllListeners(), (e3 = this.player) === null || e3 === void 0 || e3.destroy(), (n3 = this.player) === null || n3 === void 0 || n3.removeAllListeners(), this.logger = { warn: function() {
29165
+ var t3, n3, i3, r2, o2 = this;
29166
+ this.logger.info("do destroy slide", this.taskId);
29167
+ var s2 = e2.instances.findIndex(function(t4) {
29168
+ return t4.randomId === o2.randomId;
29169
+ });
29170
+ s2 >= 0 && e2.instances.splice(s2, 1), this.playerController && this.playerController.destroy(), this.frameResizeObserver.disconnect(), (t3 = this.player) === null || t3 === void 0 || t3.removeAllListeners(), (n3 = this.player) === null || n3 === void 0 || n3.destroy(), (i3 = this.player) === null || i3 === void 0 || i3.removeAllListeners(), this.logger = { warn: function() {
29153
29171
  return {};
29154
29172
  }, info: function() {
29155
29173
  return {};
@@ -29157,18 +29175,18 @@ void main(void){
29157
29175
  return {};
29158
29176
  } }, this.syncQueue.destroy(), this.renderingTaskManager.destroy(), this.frozenTaskManager.destroy(), window.removeEventListener("__slide_ref__", this.handleSlideRef), window.removeEventListener("message", this.recoverHandler), this.removeAllListeners();
29159
29177
  try {
29160
- ((i3 = this.player) === null || i3 === void 0 ? void 0 : i3.view) && this.anchor.removeChild(this.player.view), this.anchor.removeChild(this.frame);
29178
+ ((r2 = this.player) === null || r2 === void 0 ? void 0 : r2.view) && this.anchor.removeChild(this.player.view), this.anchor.removeChild(this.frame);
29161
29179
  } catch (t4) {
29162
29180
  }
29163
29181
  }, e2.prototype.waitLoadEnd = function() {
29164
- return YE(this, void 0, void 0, function() {
29182
+ return YS(this, void 0, void 0, function() {
29165
29183
  var t3;
29166
- return qE(this, function(e3) {
29184
+ return qS(this, function(e3) {
29167
29185
  switch (e3.label) {
29168
29186
  case 0:
29169
29187
  t3 = 0, e3.label = 1;
29170
29188
  case 1:
29171
- return this.isLoading && t3 < 10 ? [4, JE(100)] : [3, 3];
29189
+ return this.isLoading && t3 < 10 ? [4, JS(100)] : [3, 3];
29172
29190
  case 2:
29173
29191
  return e3.sent(), t3 += 1, [3, 1];
29174
29192
  case 3:
@@ -29196,6 +29214,18 @@ void main(void){
29196
29214
  return false;
29197
29215
  var t3 = this.player.currentIndex === 1, e3 = this.mainSeqLength === 0 || this.mainSeqStep === 0, n3 = this.mainSeqState === "idle" || this.mainSeqState === null;
29198
29216
  return !(t3 && e3 && n3);
29217
+ }, e2.prototype.snapshot = function() {
29218
+ return YS(this, void 0, void 0, function() {
29219
+ return qS(this, function(t3) {
29220
+ return this.player ? [2, this.player.getSnapshot()] : [2, null];
29221
+ });
29222
+ });
29223
+ }, e2.prototype.snapshotWithTimingEnd = function(t3) {
29224
+ return YS(this, void 0, void 0, function() {
29225
+ return qS(this, function(e3) {
29226
+ return this.player ? [2, this.player.snapshotWithTimingEnd(t3)] : [2, null];
29227
+ });
29228
+ });
29199
29229
  }, e2.prototype.updateGlobalVolume = function(t3) {
29200
29230
  this.volumeAdjuster.volume = t3;
29201
29231
  }, e2.prototype.getGlobalVolume = function() {
@@ -29203,15 +29233,26 @@ void main(void){
29203
29233
  }, e2.clearLocalCache = function() {
29204
29234
  LT.clearLocalCache();
29205
29235
  }, e2.disposeLocalCache = function() {
29206
- }, n2 = e2, e2._tempLog = "", e2._tempLogIndex = 1, e2.usePlugin = OT, e2.handleLogReport = function(t3) {
29207
- return YE(void 0, void 0, void 0, function() {
29236
+ }, n2 = e2, e2.instances = [], e2._tempFrozenIds = [], e2._tempLog = "", e2._tempLogIndex = 1, e2.usePlugin = OT, e2.handleFrozenAllSlide = function() {
29237
+ e2.instances.forEach(function(t3) {
29238
+ t3.player && (e2._tempFrozenIds.push(t3.randomId), t3.frozen());
29239
+ });
29240
+ }, e2.handleReleaseAllSlide = function() {
29241
+ e2._tempFrozenIds.forEach(function(t3) {
29242
+ var n3 = e2.instances.find(function(e3) {
29243
+ return e3.randomId === t3;
29244
+ });
29245
+ n3 && n3.release();
29246
+ }), e2._tempFrozenIds = [];
29247
+ }, e2.handleLogReport = function(t3) {
29248
+ return YS(void 0, void 0, void 0, function() {
29208
29249
  var i3, r2, o2, s2, a2, l2;
29209
- return qE(n2, function(n3) {
29250
+ return qS(n2, function(n3) {
29210
29251
  switch (n3.label) {
29211
29252
  case 0:
29212
29253
  return [4, e2.flushLog(true)];
29213
29254
  case 1:
29214
- return n3.sent(), eS ? [4, eS.keys()] : [3, 6];
29255
+ return n3.sent(), eE ? [4, eE.keys()] : [3, 6];
29215
29256
  case 2:
29216
29257
  if ((i3 = (n3.sent() || []).sort(function(t4, e3) {
29217
29258
  return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
@@ -29219,7 +29260,7 @@ void main(void){
29219
29260
  return window.postMessage({ type: "@slide/_report_log_", log: "", index: 1, total: 1, customMessage: "@slide/_report_log_", sessionId: t3 }, "*"), [2];
29220
29261
  r2 = 0, o2 = i3, n3.label = 3;
29221
29262
  case 3:
29222
- return r2 < o2.length ? (s2 = o2[r2], a2 = s2.replace("run_time_log_", ""), [4, eS.getItem(s2)]) : [3, 6];
29263
+ return r2 < o2.length ? (s2 = o2[r2], a2 = s2.replace("run_time_log_", ""), [4, eE.getItem(s2)]) : [3, 6];
29223
29264
  case 4:
29224
29265
  l2 = n3.sent(), window.postMessage({ type: "@slide/_report_log_", log: l2, index: parseInt(a2, 10), total: i3.length, customMessage: "@slide/_report_log_", sessionId: t3 }, "*"), n3.label = 5;
29225
29266
  case 5:
@@ -29230,20 +29271,20 @@ void main(void){
29230
29271
  });
29231
29272
  });
29232
29273
  }, e2.handleLogDownload = function() {
29233
- return YE(void 0, void 0, void 0, function() {
29274
+ return YS(void 0, void 0, void 0, function() {
29234
29275
  var t3, i3, r2, o2, s2, a2, l2;
29235
- return qE(n2, function(n3) {
29276
+ return qS(n2, function(n3) {
29236
29277
  switch (n3.label) {
29237
29278
  case 0:
29238
29279
  return [4, e2.flushLog(true)];
29239
29280
  case 1:
29240
- return n3.sent(), t3 = "", eS ? [4, eS.keys()] : [3, 6];
29281
+ return n3.sent(), t3 = "", eE ? [4, eE.keys()] : [3, 6];
29241
29282
  case 2:
29242
29283
  i3 = (n3.sent() || []).sort(function(t4, e3) {
29243
29284
  return parseInt(t4.replace("run_time_log_", "")) - parseInt(e3.replace("run_time_log_", ""));
29244
29285
  }), r2 = 0, o2 = i3, n3.label = 3;
29245
29286
  case 3:
29246
- return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4, eS.getItem(s2)]) : [3, 6];
29287
+ return r2 < o2.length ? (s2 = o2[r2], a2 = t3, [4, eE.getItem(s2)]) : [3, 6];
29247
29288
  case 4:
29248
29289
  t3 = a2 + (n3.sent() || ""), n3.label = 5;
29249
29290
  case 5:
@@ -29253,7 +29294,7 @@ void main(void){
29253
29294
  }
29254
29295
  });
29255
29296
  });
29256
- }, XE([(i2 = "Slide.initConfig", function(t3, e3, n3) {
29297
+ }, XS([(i2 = "Slide.initConfig", function(t3, e3, n3) {
29257
29298
  var r2 = n3.value;
29258
29299
  n3.value = function() {
29259
29300
  for (var t4 = [], e4 = 0; e4 < arguments.length; e4++)
@@ -29280,11 +29321,15 @@ void main(void){
29280
29321
  };
29281
29322
  })], e2.prototype, "initSlideConfig", null), e2;
29282
29323
  }(Ka.a);
29283
- eS == null || eS.clear(), window.addEventListener("__slide_log__", nS.handleLogDownload), window.addEventListener("message", function(t2) {
29284
- t2.data.type === "@slide/_request_log_" && nS.handleLogReport(t2.data.sessionId).catch(function() {
29324
+ eE == null || eE.clear(), window.addEventListener("__slide_log__", nE.handleLogDownload), window.addEventListener("message", function(t2) {
29325
+ t2.data.type === "@slide/_request_log_" && nE.handleLogReport(t2.data.sessionId).catch(function() {
29285
29326
  });
29327
+ }), window.addEventListener("message", function(t2) {
29328
+ t2.data.type === "@slide/_request_frozen_" && nE.handleFrozenAllSlide();
29329
+ }), window.addEventListener("message", function(t2) {
29330
+ t2.data.type === "@slide/_request_release_" && nE.handleReleaseAllSlide();
29286
29331
  }), window.setInterval(function() {
29287
- nS.flushLog().catch(function() {
29332
+ nE.flushLog().catch(function() {
29288
29333
  });
29289
29334
  }, 2e3);
29290
29335
  }]);
@@ -29878,7 +29923,9 @@ class SlideController {
29878
29923
  onPageChanged,
29879
29924
  onTransitionStart,
29880
29925
  onTransitionEnd,
29881
- onError
29926
+ onError,
29927
+ onRenderError,
29928
+ showRenderError
29882
29929
  }) {
29883
29930
  this.sideEffect = new SideEffectManager();
29884
29931
  this.ready = false;
@@ -29984,6 +30031,8 @@ class SlideController {
29984
30031
  this.onTransitionStart = onTransitionStart;
29985
30032
  this.onTransitionEnd = onTransitionEnd;
29986
30033
  this.onError = onError;
30034
+ this.onRenderError = onRenderError;
30035
+ this.showRenderError = showRenderError != null ? showRenderError : true;
29987
30036
  this.context = context;
29988
30037
  this.room = context.getRoom();
29989
30038
  this.player = this.room ? void 0 : context.getDisplayer();
@@ -31102,11 +31151,16 @@ class SlideDocsViewer {
31102
31151
  constructor({ box, view, mountSlideController, mountWhiteboard }) {
31103
31152
  this.slideController = null;
31104
31153
  this.isViewMounted = false;
31105
- this.onError = ({ error }) => {
31106
- var _a;
31154
+ this.onError = ({ error, index }) => {
31155
+ var _a, _b;
31107
31156
  this.viewer.setPaused();
31108
- this.$overlay.textContent = `Error on slide[page=${(_a = this.slideController) == null ? void 0 : _a.page}]: ${error.message}`;
31109
- this.$overlay.style.opacity = "1";
31157
+ if ((_a = this.slideController) == null ? void 0 : _a.showRenderError) {
31158
+ this.$overlay.textContent = `Error on slide[page=${this.slideController.page}]: ${error.message}`;
31159
+ this.$overlay.style.opacity = "1";
31160
+ }
31161
+ if ((_b = this.slideController) == null ? void 0 : _b.onRenderError) {
31162
+ this.slideController.onRenderError(error, index);
31163
+ }
31110
31164
  logger.warn("[Slide] render error", error);
31111
31165
  };
31112
31166
  this.onRenderEnd = () => {
@@ -31267,7 +31321,13 @@ class SlideDocsViewer {
31267
31321
  }
31268
31322
  }
31269
31323
  let useFreezer = false;
31270
- const FreezerLength = 2;
31324
+ let FreezerLength = 2;
31325
+ function getFreezerLength() {
31326
+ return FreezerLength;
31327
+ }
31328
+ function setFreezerLength(length) {
31329
+ FreezerLength = length < 1 ? Infinity : length;
31330
+ }
31271
31331
  const inspect = (arr) => {
31272
31332
  return "[" + arr + "]";
31273
31333
  };
@@ -31321,13 +31381,29 @@ const apps = {
31321
31381
  }
31322
31382
  }
31323
31383
  };
31384
+ const on_created_callbacks = /* @__PURE__ */ new Set();
31385
+ function onCreated(callback) {
31386
+ on_created_callbacks.add(callback);
31387
+ return () => on_created_callbacks.delete(callback);
31388
+ }
31389
+ const on_destroyed_callbacks = /* @__PURE__ */ new Set();
31390
+ function onDestroyed(callback) {
31391
+ on_destroyed_callbacks.add(callback);
31392
+ return () => on_destroyed_callbacks.delete(callback);
31393
+ }
31324
31394
  const addHooks = (emitter) => {
31325
31395
  useFreezer = true;
31326
31396
  emitter.on("focus", ({ appId }) => {
31327
31397
  apps.focus(appId);
31328
31398
  });
31399
+ emitter.on("created", ({ appId }) => {
31400
+ on_created_callbacks.forEach((callback) => callback(appId));
31401
+ });
31402
+ emitter.on("destroy", ({ appId }) => {
31403
+ on_destroyed_callbacks.forEach((callback) => callback(appId));
31404
+ });
31329
31405
  };
31330
- var styles = /* @__PURE__ */ (() => ".netless-app-slide-content{position:relative;height:100%;overflow:hidden}.netless-app-slide-preview-mask{display:none;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%}.netless-app-slide-preview{display:flex;flex-direction:column;align-items:center;position:absolute;z-index:300;top:0;left:0;width:33%;max-width:200px;height:100%;padding-top:10px;transform:translate(-100%);background:rgba(237,237,240,.9);box-shadow:inset -1px 0 #0000001c;transition:transform .4s}.netless-app-slide-preview-active .netless-app-slide-preview-mask{display:block}.netless-app-slide-preview-active .netless-app-slide-preview{transform:translate(0)}.netless-app-slide-preview-page{position:relative;display:block;width:55%;margin-bottom:10px;font-size:0;color:transparent;outline:none;border:7px solid transparent;border-radius:4px;transition:border-color .3s;user-select:none}.netless-app-slide-preview-page:hover,.netless-app-slide-preview-page.netless-app-slide-preview-page-active{border-color:#444e601a}.netless-app-slide-preview-page>img{width:100%;height:auto;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);border-radius:1px;background-color:#fff;box-shadow:0 2px 8px #0000004d}.netless-app-slide-preview-page-name{position:absolute;top:1px;left:-10px;transform:translate(-100%);text-align:right;font-size:12px;color:#5f5f5f;user-select:none}.netless-app-slide-footer{box-sizing:border-box;height:26px;display:flex;align-items:center;padding:0 16px;border-top:1px solid #eeeef7;color:#191919}.netless-app-slide-float-footer{width:100%;min-height:26px;position:absolute;left:0;bottom:0;z-index:2000;background:rgba(249,249,252,.9);transition:opacity .4s}.netless-app-slide-footer-btn{box-sizing:border-box;width:26px;height:26px;font-size:0;margin:0;padding:3px;border:none;border-radius:1px;outline:none;color:currentColor;background:transparent;transition:background .4s;cursor:pointer;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.netless-app-slide-footer-btn:hover{background:rgba(237,237,240,.9)}@media (hover: none){.netless-app-slide-footer-btn:hover{background:transparent!important}}.netless-app-slide-footer-btn>svg{width:100%;height:100%}.netless-app-slide-footer-btn>svg:nth-of-type(2){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(1){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(2){display:initial}.netless-app-slide-footer-btn~.netless-app-slide-footer-btn{margin-left:15px}.netless-app-slide-page-jumps{flex:1;display:flex;justify-content:center;align-items:center}.netless-app-slide-page-number{margin-left:auto;font-size:13px;user-select:none;white-space:nowrap;word-break:keep-all}.netless-app-slide-page-number-input{border:none;outline:none;width:3em;margin:0;padding:0 2px;text-align:right;font-size:13px;line-height:1;font-weight:400;font-family:inherit;border-radius:2px;color:currentColor;background:transparent;transition:background .4s;user-select:text;-webkit-tap-highlight-color:rgba(0,0,0,0)}.netless-app-slide-page-number-input:hover,.netless-app-slide-page-number-input:focus,.netless-app-slide-page-number-input:active{background:#fff;box-shadow:#63636333 0 2px 8px}.netless-app-slide-readonly.netless-app-slide-footer{display:none}.telebox-color-scheme-dark .netless-app-slide-page-number-input{color:#a6a6a8}.telebox-color-scheme-dark .netless-app-slide-page-number-input:active,.telebox-color-scheme-dark .netless-app-slide-page-number-input:focus,.telebox-color-scheme-dark .netless-app-slide-page-number-input:hover{color:#222}.telebox-color-scheme-dark .netless-app-slide-footer{color:#a6a6a8;background:#2d2d33;border-top:none}.telebox-color-scheme-dark .netless-app-slide-footer-btn:hover{background:#212126}.telebox-color-scheme-dark .netless-app-slide-preview{background:rgba(50,50,50,.9)}.netless-app-slide-wb-view{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;overflow:hidden}.netless-app-slide-overlay{display:flex;align-items:center;justify-content:center;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%;background:rgba(255,0,0,.25);transition:opacity .3s;opacity:0;pointer-events:none}.netless-app-slide-slide{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.netless-app-slide-slide canvas{transform:scale(var(--netless-app-slide-scale, 1))}\n")();
31406
+ var styles = /* @__PURE__ */ (() => ".netless-app-slide-content{position:relative;height:100%;overflow:hidden}.netless-app-slide-preview-mask{display:none;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%}.netless-app-slide-preview{display:flex;flex-direction:column;align-items:center;position:absolute;z-index:300;top:0;left:0;width:33%;max-width:200px;height:100%;padding-top:10px;transform:translate(-100%);background:rgba(237,237,240,.9);box-shadow:inset -1px 0 #0000001c;transition:transform .4s}.netless-app-slide-preview-active .netless-app-slide-preview-mask{display:block}.netless-app-slide-preview-active .netless-app-slide-preview{transform:translate(0)}.netless-app-slide-preview-page{position:relative;display:block;width:55%;margin-bottom:10px;font-size:0;color:transparent;outline:none;border:7px solid transparent;border-radius:4px;transition:border-color .3s;user-select:none}.netless-app-slide-preview-page:hover,.netless-app-slide-preview-page.netless-app-slide-preview-page-active{border-color:#444e601a}.netless-app-slide-preview-page>img{width:100%;height:auto;box-sizing:border-box;border:1px solid rgba(0,0,0,.5);border-radius:1px;background-color:#fff;box-shadow:0 2px 8px #0000004d}.netless-app-slide-preview-page-name{position:absolute;top:1px;left:-10px;transform:translate(-100%);text-align:right;font-size:12px;color:#5f5f5f;user-select:none}.netless-app-slide-footer{box-sizing:border-box;height:26px;display:flex;align-items:center;padding:0 16px;border-top:1px solid #eeeef7;color:#191919}.netless-app-slide-float-footer{width:100%;min-height:26px;position:absolute;left:0;bottom:0;z-index:2000;background:rgba(249,249,252,.9);transition:opacity .4s}.netless-app-slide-footer-btn{box-sizing:border-box;width:26px;height:26px;font-size:0;margin:0;padding:3px;border:none;border-radius:1px;outline:none;color:currentColor;background:transparent;transition:background .4s;cursor:pointer;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.netless-app-slide-footer-btn:hover{background:rgba(237,237,240,.9)}@media (hover: none){.netless-app-slide-footer-btn:hover{background:transparent!important}}.netless-app-slide-footer-btn>svg{width:100%;height:100%}.netless-app-slide-footer-btn>svg:nth-of-type(2){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(1){display:none}.netless-app-slide-footer-btn.netless-app-slide-footer-btn-playing>svg:nth-of-type(2){display:initial}.netless-app-slide-footer-btn~.netless-app-slide-footer-btn{margin-left:15px}.netless-app-slide-page-jumps{flex:1;display:flex;justify-content:center;align-items:center}.netless-app-slide-page-number{margin-left:auto;font-size:13px;user-select:none;white-space:nowrap;word-break:keep-all}.netless-app-slide-page-number-input{border:none;outline:none;width:3em;margin:0;padding:0 2px;text-align:right;font-size:13px;line-height:1;font-weight:400;font-family:inherit;border-radius:2px;color:currentColor;background:transparent;transition:background .4s;user-select:text;-webkit-tap-highlight-color:rgba(0,0,0,0)}.netless-app-slide-page-number-input:hover,.netless-app-slide-page-number-input:focus,.netless-app-slide-page-number-input:active{background:#fff;box-shadow:#63636333 0 2px 8px}.netless-app-slide-readonly.netless-app-slide-footer{display:none}.telebox-color-scheme-dark .netless-app-slide-page-number-input{color:#a6a6a8}.telebox-color-scheme-dark .netless-app-slide-page-number-input:active,.telebox-color-scheme-dark .netless-app-slide-page-number-input:focus,.telebox-color-scheme-dark .netless-app-slide-page-number-input:hover{color:#222}.telebox-color-scheme-dark .netless-app-slide-footer{color:#a6a6a8;background:#2d2d33;border-top:none}.telebox-color-scheme-dark .netless-app-slide-footer-btn:hover{background:#212126}.telebox-color-scheme-dark .netless-app-slide-preview{background:rgba(50,50,50,.9)}.netless-app-slide-wb-view{position:absolute;top:0;left:0;width:100%;height:100%;z-index:100;overflow:hidden}.netless-app-slide-overlay{display:flex;align-items:center;justify-content:center;position:absolute;z-index:200;top:0;left:0;width:100%;height:100%;padding:8px;background:rgba(255,0,0,.25);transition:opacity .3s;opacity:0;pointer-events:none}.netless-app-slide-slide{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.netless-app-slide-slide canvas{transform:scale(var(--netless-app-slide-scale, 1))}\n")();
31331
31407
  function previewSlide({
31332
31408
  container,
31333
31409
  taskId,
@@ -31483,7 +31559,7 @@ class SlidePreviewer {
31483
31559
  }
31484
31560
  }
31485
31561
  const usePlugin = /* @__PURE__ */ Slide.Slide.usePlugin.bind(Slide.Slide);
31486
- const version = "0.2.16";
31562
+ const version = "0.2.18";
31487
31563
  const SlideApp = {
31488
31564
  kind: "Slide",
31489
31565
  setup(context) {
@@ -31520,10 +31596,13 @@ const SlideApp = {
31520
31596
  }
31521
31597
  };
31522
31598
  const mountSlideController = (options) => {
31599
+ const appOptions = context.getAppOptions() || {};
31523
31600
  const slideController = new SlideController(__spreadProps(__spreadValues({
31524
31601
  context
31525
31602
  }, options), {
31526
- onPageChanged
31603
+ onPageChanged,
31604
+ onRenderError: appOptions.onRenderError,
31605
+ showRenderError: appOptions.showRenderError
31527
31606
  }));
31528
31607
  if (useFreezer)
31529
31608
  apps.set(context.appId, slideController, box);
@@ -31580,6 +31659,12 @@ const SlideApp = {
31580
31659
  });
31581
31660
  docsViewer.mount();
31582
31661
  return {
31662
+ viewer: () => {
31663
+ return docsViewer;
31664
+ },
31665
+ controller: () => {
31666
+ return docsViewer == null ? void 0 : docsViewer.slideController;
31667
+ },
31583
31668
  slide: () => {
31584
31669
  var _a;
31585
31670
  return (_a = docsViewer == null ? void 0 : docsViewer.slideController) == null ? void 0 : _a.slide;
@@ -31643,5 +31728,5 @@ const SlideApp = {
31643
31728
  }
31644
31729
  };
31645
31730
  var Slide$1 = Slide.Slide;
31646
- export { DefaultUrl, FreezerLength, Slide$1 as Slide, SlidePreviewer, addHooks, apps, SlideApp as default, previewSlide, usePlugin, version };
31731
+ export { DefaultUrl, FreezerLength, Slide$1 as Slide, SlidePreviewer, addHooks, apps, SlideApp as default, getFreezerLength, onCreated, onDestroyed, previewSlide, setFreezerLength, usePlugin, version };
31647
31732
  //# sourceMappingURL=main.es.js.map