reacthub-pixitweenjs 0.2.107-alpha.41 → 0.2.107-alpha.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +907 -909
- package/dist/index.umd.js +32 -32
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -54,7 +54,7 @@ Ro.Fragment = lS;
|
|
|
54
54
|
Ro.jsx = dm;
|
|
55
55
|
Ro.jsxs = dm;
|
|
56
56
|
fm.exports = Ro;
|
|
57
|
-
var
|
|
57
|
+
var Ae = fm.exports, Un = /* @__PURE__ */ ((t) => (t.BlackAndWhite = "BlackAndWhite", t.Sepia = "Sepia", t.RetroVintage = "RetroVintage", t.NightVision = "NightVision", t.Normal = "Normal", t.Vignette = "Vignette", t.None = "Normal", t))(Un || {});
|
|
58
58
|
let Jd;
|
|
59
59
|
function pm() {
|
|
60
60
|
return Jd = document.body, Jd;
|
|
@@ -121,7 +121,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
121
121
|
}), () => {
|
|
122
122
|
n.current && n.current.revert(), i.current.revert();
|
|
123
123
|
}), []);
|
|
124
|
-
const
|
|
124
|
+
const g = zt(() => {
|
|
125
125
|
if (n.current) {
|
|
126
126
|
let I = n.current.time();
|
|
127
127
|
I < a.current ? u.current = !0 : u.current = !1, a.current = I;
|
|
@@ -132,15 +132,15 @@ const Yn = te.createContext({}), Qe = {
|
|
|
132
132
|
const w = n.current;
|
|
133
133
|
w.eventCallback("onStart", function() {
|
|
134
134
|
}).eventCallback("onInterrupt", function() {
|
|
135
|
-
w.pause(),
|
|
135
|
+
w.pause(), g();
|
|
136
136
|
}).eventCallback("onUpdate", function() {
|
|
137
|
-
|
|
137
|
+
g();
|
|
138
138
|
}).eventCallback("onRepeat", function() {
|
|
139
139
|
console.log("onrepeat", w.progress());
|
|
140
140
|
}).eventCallback("onReverseComplete", function() {
|
|
141
141
|
console.log("onReverseComplete", w.progress());
|
|
142
142
|
}).eventCallback("onComplete", function() {
|
|
143
|
-
w.seek(0), w.pause(), ys(Qe.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"),
|
|
143
|
+
w.seek(0), w.pause(), ys(Qe.COMPLETE, { uniqueId: "timeline" }), console.log("Emitted events"), g();
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
}, []);
|
|
@@ -148,7 +148,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
148
148
|
n.current && n.current.revert();
|
|
149
149
|
}, []), d = zt(() => {
|
|
150
150
|
n.current && n.current.restart();
|
|
151
|
-
}, []),
|
|
151
|
+
}, []), m = zt(() => {
|
|
152
152
|
if (n.current) {
|
|
153
153
|
const w = n.current;
|
|
154
154
|
w.repeat(1), w.restart();
|
|
@@ -183,7 +183,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
183
183
|
Qe.SCRUBBER_PROGRESS_UPDATE,
|
|
184
184
|
(w) => {
|
|
185
185
|
}
|
|
186
|
-
), /* @__PURE__ */
|
|
186
|
+
), /* @__PURE__ */ Ae.jsx(
|
|
187
187
|
Yn.Provider,
|
|
188
188
|
{
|
|
189
189
|
value: {
|
|
@@ -195,7 +195,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
195
195
|
handleSeek: _,
|
|
196
196
|
handleSeekTest: y,
|
|
197
197
|
handleRestart: d,
|
|
198
|
-
handleRepeat:
|
|
198
|
+
handleRepeat: m,
|
|
199
199
|
playerTimeRef: a,
|
|
200
200
|
getTimelineDuration: b,
|
|
201
201
|
totalDuration: e,
|
|
@@ -219,16 +219,16 @@ const Yn = te.createContext({}), Qe = {
|
|
|
219
219
|
uniqueId: l = "",
|
|
220
220
|
isText: f = !1
|
|
221
221
|
}) => {
|
|
222
|
-
const p = er.utils.string2hex("#F3C409"),
|
|
222
|
+
const p = er.utils.string2hex("#F3C409"), g = er.utils.string2hex("#F3C409"), c = te.useRef({
|
|
223
223
|
isDragging: !1
|
|
224
|
-
}), d = 300,
|
|
224
|
+
}), d = 300, m = te.useRef(0), _ = te.useCallback(() => {
|
|
225
225
|
a && !c.current.isDragging && a(!0);
|
|
226
226
|
}, [a]), y = te.useCallback(() => {
|
|
227
227
|
a && !c.current.isDragging && a(!1);
|
|
228
228
|
}, [a]), b = te.useCallback(() => {
|
|
229
229
|
c.current.isDragging = !0;
|
|
230
230
|
const w = (/* @__PURE__ */ new Date()).getTime();
|
|
231
|
-
w -
|
|
231
|
+
w - m.current < d && u && u(), m.current = w;
|
|
232
232
|
}, []), x = te.useCallback(
|
|
233
233
|
(w) => {
|
|
234
234
|
c.current.isDragging = !0, i && i(w), ys(Qe.TRANSFORMER_DRAG_START, { uniqueId: "timeline" });
|
|
@@ -256,7 +256,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
256
256
|
}, [n]);
|
|
257
257
|
return te.useEffect(() => (t.current && (t.current.on("mouseover", _), t.current.on("mouseout", y), t.current.on("mousedown", b)), () => {
|
|
258
258
|
t.current && (t.current.off("mouseover", _), t.current.off("mouseout", y), t.current.off("mousedown", b));
|
|
259
|
-
}), []), /* @__PURE__ */
|
|
259
|
+
}), []), /* @__PURE__ */ Ae.jsx(
|
|
260
260
|
sS,
|
|
261
261
|
{
|
|
262
262
|
ref: t,
|
|
@@ -265,7 +265,7 @@ const Yn = te.createContext({}), Qe = {
|
|
|
265
265
|
boxRotationEnabled: !0,
|
|
266
266
|
centeredScaling: !0,
|
|
267
267
|
boxScalingEnabled: !0,
|
|
268
|
-
wireframeStyle: { thickness: 2, color:
|
|
268
|
+
wireframeStyle: { thickness: 2, color: g },
|
|
269
269
|
lockAspectRatio: !0,
|
|
270
270
|
scaleEnabled: !0,
|
|
271
271
|
handleStyle: {
|
|
@@ -493,7 +493,7 @@ const fp = {
|
|
|
493
493
|
}
|
|
494
494
|
}, lC = (t) => {
|
|
495
495
|
const { overlay: e, width: r, height: n, x: i, y: a } = t, { src: u, blendmode: l } = fp[e] || fp.normal;
|
|
496
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ Ae.jsx(
|
|
497
497
|
tS,
|
|
498
498
|
{
|
|
499
499
|
image: u,
|
|
@@ -717,10 +717,10 @@ function vI(t, e, r, n, i, a) {
|
|
|
717
717
|
var u = r & gI, l = t.length, f = e.length;
|
|
718
718
|
if (l != f && !(u && f > l))
|
|
719
719
|
return !1;
|
|
720
|
-
var p = a.get(t),
|
|
721
|
-
if (p &&
|
|
722
|
-
return p == e &&
|
|
723
|
-
var c = -1, d = !0,
|
|
720
|
+
var p = a.get(t), g = a.get(e);
|
|
721
|
+
if (p && g)
|
|
722
|
+
return p == e && g == t;
|
|
723
|
+
var c = -1, d = !0, m = r & mI ? new fI() : void 0;
|
|
724
724
|
for (a.set(t, e), a.set(e, t); ++c < l; ) {
|
|
725
725
|
var _ = t[c], y = e[c];
|
|
726
726
|
if (n)
|
|
@@ -731,10 +731,10 @@ function vI(t, e, r, n, i, a) {
|
|
|
731
731
|
d = !1;
|
|
732
732
|
break;
|
|
733
733
|
}
|
|
734
|
-
if (
|
|
734
|
+
if (m) {
|
|
735
735
|
if (!dI(e, function(x, E) {
|
|
736
|
-
if (!pI(
|
|
737
|
-
return
|
|
736
|
+
if (!pI(m, E) && (_ === x || i(_, x, r, n, a)))
|
|
737
|
+
return m.push(E);
|
|
738
738
|
})) {
|
|
739
739
|
d = !1;
|
|
740
740
|
break;
|
|
@@ -788,8 +788,8 @@ function HI(t, e, r, n, i, a, u) {
|
|
|
788
788
|
if (p)
|
|
789
789
|
return p == e;
|
|
790
790
|
n |= PI, u.set(t, e);
|
|
791
|
-
var
|
|
792
|
-
return u.delete(t),
|
|
791
|
+
var g = EI(l(t), l(e), n, i, a, u);
|
|
792
|
+
return u.delete(t), g;
|
|
793
793
|
case UI:
|
|
794
794
|
if (wl)
|
|
795
795
|
return wl.call(t) == wl.call(e);
|
|
@@ -855,17 +855,17 @@ function IR(t) {
|
|
|
855
855
|
}
|
|
856
856
|
var RR = IR, yp = RR, PR = 1, MR = Object.prototype, OR = MR.hasOwnProperty;
|
|
857
857
|
function FR(t, e, r, n, i, a) {
|
|
858
|
-
var u = r & PR, l = yp(t), f = l.length, p = yp(e),
|
|
859
|
-
if (f !=
|
|
858
|
+
var u = r & PR, l = yp(t), f = l.length, p = yp(e), g = p.length;
|
|
859
|
+
if (f != g && !u)
|
|
860
860
|
return !1;
|
|
861
861
|
for (var c = f; c--; ) {
|
|
862
862
|
var d = l[c];
|
|
863
863
|
if (!(u ? d in e : OR.call(e, d)))
|
|
864
864
|
return !1;
|
|
865
865
|
}
|
|
866
|
-
var
|
|
867
|
-
if (
|
|
868
|
-
return
|
|
866
|
+
var m = a.get(t), _ = a.get(e);
|
|
867
|
+
if (m && _)
|
|
868
|
+
return m == e && _ == t;
|
|
869
869
|
var y = !0;
|
|
870
870
|
a.set(t, e), a.set(e, t);
|
|
871
871
|
for (var b = u; ++c < f; ) {
|
|
@@ -889,18 +889,18 @@ var NR = FR, Sl = Am, LR = Em, kR = zI, DR = NR, xp = Tm, bp = Br, Tp = jc, BR =
|
|
|
889
889
|
function GR(t, e, r, n, i, a) {
|
|
890
890
|
var u = bp(t), l = bp(e), f = u ? Sp : xp(t), p = l ? Sp : xp(e);
|
|
891
891
|
f = f == wp ? Na : f, p = p == wp ? Na : p;
|
|
892
|
-
var
|
|
892
|
+
var g = f == Na, c = p == Na, d = f == p;
|
|
893
893
|
if (d && Tp(t)) {
|
|
894
894
|
if (!Tp(e))
|
|
895
895
|
return !1;
|
|
896
|
-
u = !0,
|
|
896
|
+
u = !0, g = !1;
|
|
897
897
|
}
|
|
898
|
-
if (d && !
|
|
898
|
+
if (d && !g)
|
|
899
899
|
return a || (a = new Sl()), u || BR(t) ? LR(t, e, r, n, i, a) : kR(t, e, f, r, n, i, a);
|
|
900
900
|
if (!(r & UR)) {
|
|
901
|
-
var
|
|
902
|
-
if (
|
|
903
|
-
var y =
|
|
901
|
+
var m = g && Ap.call(t, "__wrapped__"), _ = c && Ap.call(e, "__wrapped__");
|
|
902
|
+
if (m || _) {
|
|
903
|
+
var y = m ? t.value() : t, b = _ ? e.value() : e;
|
|
904
904
|
return a || (a = new Sl()), i(y, b, r, n, a);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
@@ -939,25 +939,25 @@ var YR = /[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig, KR = /[\+\-]?\d*\.?
|
|
|
939
939
|
return Math.round(e * Cp) / Cp || 0;
|
|
940
940
|
};
|
|
941
941
|
function JR(t, e, r, n, i, a, u) {
|
|
942
|
-
for (var l = t.length, f, p,
|
|
943
|
-
for (f = t[l], p = f.length,
|
|
944
|
-
c = f[
|
|
942
|
+
for (var l = t.length, f, p, g, c, d; --l > -1; )
|
|
943
|
+
for (f = t[l], p = f.length, g = 0; g < p; g += 2)
|
|
944
|
+
c = f[g], d = f[g + 1], f[g] = c * e + d * n + a, f[g + 1] = c * r + d * i + u;
|
|
945
945
|
return t._dirty = 1, t;
|
|
946
946
|
}
|
|
947
947
|
function eP(t, e, r, n, i, a, u, l, f) {
|
|
948
948
|
if (!(t === l && e === f)) {
|
|
949
949
|
r = xs(r), n = xs(n);
|
|
950
|
-
var p = i % 360 * ZR,
|
|
950
|
+
var p = i % 360 * ZR, g = ka(p), c = La(p), d = Math.PI, m = d * 2, _ = (t - l) / 2, y = (e - f) / 2, b = g * _ + c * y, x = -c * _ + g * y, E = b * b, w = x * x, I = E / (r * r) + w / (n * n);
|
|
951
951
|
I > 1 && (r = fs(I) * r, n = fs(I) * n);
|
|
952
952
|
var O = r * r, F = n * n, N = (O * F - O * w - F * E) / (O * w + F * E);
|
|
953
953
|
N < 0 && (N = 0);
|
|
954
|
-
var L = (a === u ? -1 : 1) * fs(N), D = L * (r * x / n), V = L * -(n * b / r), Y = (t + l) / 2, se = (e + f) / 2, X = Y + (
|
|
955
|
-
isNaN(j) && (j = d), !u && j > 0 ? j -=
|
|
956
|
-
var le = Math.ceil(xs(j) / (
|
|
954
|
+
var L = (a === u ? -1 : 1) * fs(N), D = L * (r * x / n), V = L * -(n * b / r), Y = (t + l) / 2, se = (e + f) / 2, X = Y + (g * D - c * V), G = se + (c * D + g * V), ie = (b - D) / r, re = (x - V) / n, H = (-b - D) / r, Q = (-x - V) / n, ge = ie * ie + re * re, W = (re < 0 ? -1 : 1) * Math.acos(ie / fs(ge)), j = (ie * Q - re * H < 0 ? -1 : 1) * Math.acos((ie * H + re * Q) / fs(ge * (H * H + Q * Q)));
|
|
955
|
+
isNaN(j) && (j = d), !u && j > 0 ? j -= m : u && j < 0 && (j += m), W %= m, j %= m;
|
|
956
|
+
var le = Math.ceil(xs(j) / (m / 4)), he = [], me = j / le, fe = 4 / 3 * La(me / 2) / (1 + ka(me / 2)), Re = g * r, Ue = c * r, He = c * -n, je = g * n, be;
|
|
957
957
|
for (be = 0; be < le; be++)
|
|
958
958
|
i = W + be * me, b = ka(i), x = La(i), ie = ka(i += me), re = La(i), he.push(b - fe * x, x + fe * b, ie + fe * re, re - fe * ie, ie, re);
|
|
959
959
|
for (be = 0; be < he.length; be += 2)
|
|
960
|
-
b = he[be], x = he[be + 1], he[be] = b *
|
|
960
|
+
b = he[be], x = he[be + 1], he[be] = b * Re + x * He + X, he[be + 1] = b * Ue + x * je + G;
|
|
961
961
|
return he[be - 2] = l, he[be - 1] = f, he;
|
|
962
962
|
}
|
|
963
963
|
}
|
|
@@ -965,32 +965,32 @@ function tP(t) {
|
|
|
965
965
|
var e = (t + "").replace(KR, function(D) {
|
|
966
966
|
var V = +D;
|
|
967
967
|
return V < 1e-4 && V > -1e-4 ? 0 : V;
|
|
968
|
-
}).match(YR) || [], r = [], n = 0, i = 0, a = 2 / 3, u = e.length, l = 0, f = "ERROR: malformed path: " + t, p,
|
|
968
|
+
}).match(YR) || [], r = [], n = 0, i = 0, a = 2 / 3, u = e.length, l = 0, f = "ERROR: malformed path: " + t, p, g, c, d, m, _, y, b, x, E, w, I, O, F, N, L = function(V, Y, se, X) {
|
|
969
969
|
E = (se - V) / 3, w = (X - Y) / 3, y.push(V + E, Y + w, se - E, X - w, se, X);
|
|
970
970
|
};
|
|
971
971
|
if (!t || !isNaN(e[0]) || isNaN(e[1]))
|
|
972
972
|
return console.log(f), r;
|
|
973
973
|
for (p = 0; p < u; p++)
|
|
974
|
-
if (O =
|
|
975
|
-
y && (y.length < 8 ? r.length -= 1 : l += y.length), n = b = c, i = x = d, y = [c, d], r.push(y), p += 2,
|
|
976
|
-
else if (
|
|
974
|
+
if (O = m, isNaN(e[p]) ? (m = e[p].toUpperCase(), _ = m !== e[p]) : p--, c = +e[p + 1], d = +e[p + 2], _ && (c += n, d += i), p || (b = c, x = d), m === "M")
|
|
975
|
+
y && (y.length < 8 ? r.length -= 1 : l += y.length), n = b = c, i = x = d, y = [c, d], r.push(y), p += 2, m = "L";
|
|
976
|
+
else if (m === "C")
|
|
977
977
|
y || (y = [0, 0]), _ || (n = i = 0), y.push(c, d, n + e[p + 3] * 1, i + e[p + 4] * 1, n += e[p + 5] * 1, i += e[p + 6] * 1), p += 6;
|
|
978
|
-
else if (
|
|
978
|
+
else if (m === "S")
|
|
979
979
|
E = n, w = i, (O === "C" || O === "S") && (E += n - y[y.length - 4], w += i - y[y.length - 3]), _ || (n = i = 0), y.push(E, w, c, d, n += e[p + 3] * 1, i += e[p + 4] * 1), p += 4;
|
|
980
|
-
else if (
|
|
980
|
+
else if (m === "Q")
|
|
981
981
|
E = n + (c - n) * a, w = i + (d - i) * a, _ || (n = i = 0), n += e[p + 3] * 1, i += e[p + 4] * 1, y.push(E, w, n + (c - n) * a, i + (d - i) * a, n, i), p += 4;
|
|
982
|
-
else if (
|
|
982
|
+
else if (m === "T")
|
|
983
983
|
E = n - y[y.length - 4], w = i - y[y.length - 3], y.push(n + E, i + w, c + (n + E * 1.5 - c) * a, d + (i + w * 1.5 - d) * a, n = c, i = d), p += 2;
|
|
984
|
-
else if (
|
|
984
|
+
else if (m === "H")
|
|
985
985
|
L(n, i, n = c, i), p += 1;
|
|
986
|
-
else if (
|
|
986
|
+
else if (m === "V")
|
|
987
987
|
L(n, i, n, i = c + (_ ? i - n : 0)), p += 1;
|
|
988
|
-
else if (
|
|
989
|
-
|
|
990
|
-
else if (
|
|
991
|
-
if (F = e[p + 4], N = e[p + 5], E = e[p + 6], w = e[p + 7],
|
|
992
|
-
for (
|
|
993
|
-
y.push(I[
|
|
988
|
+
else if (m === "L" || m === "Z")
|
|
989
|
+
m === "Z" && (c = b, d = x, y.closed = !0), (m === "L" || xs(n - c) > 0.5 || xs(i - d) > 0.5) && (L(n, i, c, d), m === "L" && (p += 2)), n = c, i = d;
|
|
990
|
+
else if (m === "A") {
|
|
991
|
+
if (F = e[p + 4], N = e[p + 5], E = e[p + 6], w = e[p + 7], g = 7, F.length > 1 && (F.length < 3 ? (w = E, E = N, g--) : (w = N, E = F.substr(2), g -= 2), N = F.charAt(1), F = F.charAt(0)), I = eP(n, i, +e[p + 1], +e[p + 2], +e[p + 3], +F, +N, (_ ? n : 0) + E * 1, (_ ? i : 0) + w * 1), p += g, I)
|
|
992
|
+
for (g = 0; g < I.length; g++)
|
|
993
|
+
y.push(I[g]);
|
|
994
994
|
n = y[y.length - 2], i = y[y.length - 1];
|
|
995
995
|
} else
|
|
996
996
|
console.log(f);
|
|
@@ -1031,18 +1031,18 @@ var Vt, Rm, Pm = function() {
|
|
|
1031
1031
|
var i = +e[0] * -1, a = -n, u = e.length, l = 1 / (+e[u - 2] + i), f = -r || (Math.abs(+e[u - 1] - +e[1]) < 0.01 * (+e[u - 2] - +e[0]) ? aP(e) + a : +e[u - 1] + a), p;
|
|
1032
1032
|
for (f ? f = 1 / f : f = -l, p = 0; p < u; p += 2)
|
|
1033
1033
|
e[p] = (+e[p] + i) * l, e[p + 1] = (+e[p + 1] + a) * f;
|
|
1034
|
-
}, uP = function t(e, r, n, i, a, u, l, f, p,
|
|
1035
|
-
var d = (e + n) / 2,
|
|
1036
|
-
return
|
|
1034
|
+
}, uP = function t(e, r, n, i, a, u, l, f, p, g, c) {
|
|
1035
|
+
var d = (e + n) / 2, m = (r + i) / 2, _ = (n + a) / 2, y = (i + u) / 2, b = (a + l) / 2, x = (u + f) / 2, E = (d + _) / 2, w = (m + y) / 2, I = (_ + b) / 2, O = (y + x) / 2, F = (E + I) / 2, N = (w + O) / 2, L = l - e, D = f - r, V = Math.abs((n - l) * D - (i - f) * L), Y = Math.abs((a - l) * D - (u - f) * L), se;
|
|
1036
|
+
return g || (g = [{
|
|
1037
1037
|
x: e,
|
|
1038
1038
|
y: r
|
|
1039
1039
|
}, {
|
|
1040
1040
|
x: l,
|
|
1041
1041
|
y: f
|
|
1042
|
-
}], c = 1),
|
|
1042
|
+
}], c = 1), g.splice(c || g.length - 1, 0, {
|
|
1043
1043
|
x: F,
|
|
1044
1044
|
y: N
|
|
1045
|
-
}), (V + Y) * (V + Y) > p * (L * L + D * D) && (se =
|
|
1045
|
+
}), (V + Y) * (V + Y) > p * (L * L + D * D) && (se = g.length, t(e, r, d, m, E, w, F, N, p, g, c), t(F, N, I, O, b, x, l, f, p, g, c + 1 + (g.length - se))), g;
|
|
1046
1046
|
}, zs = /* @__PURE__ */ function() {
|
|
1047
1047
|
function t(r, n, i) {
|
|
1048
1048
|
Rm || Ip(), this.id = r, this.setData(n, i);
|
|
@@ -1050,7 +1050,7 @@ var Vt, Rm, Pm = function() {
|
|
|
1050
1050
|
var e = t.prototype;
|
|
1051
1051
|
return e.setData = function(n, i) {
|
|
1052
1052
|
i = i || {}, n = n || "0,0,1,1";
|
|
1053
|
-
var a = n.match(iP), u = 1, l = [], f = [], p = i.precision || 1,
|
|
1053
|
+
var a = n.match(iP), u = 1, l = [], f = [], p = i.precision || 1, g = p <= 1, c, d, m, _, y, b, x, E, w;
|
|
1054
1054
|
if (this.data = n, (sP.test(n) || ~n.indexOf("M") && n.indexOf("C") < 0) && (a = tP(n)[0]), c = a.length, c === 4)
|
|
1055
1055
|
a.unshift(0, 0), a.push(1, 1), c = 8;
|
|
1056
1056
|
else if ((c - 2) % 6)
|
|
@@ -1059,13 +1059,13 @@ var Vt, Rm, Pm = function() {
|
|
|
1059
1059
|
d = {
|
|
1060
1060
|
x: +a[_ - 2],
|
|
1061
1061
|
y: +a[_ - 1]
|
|
1062
|
-
},
|
|
1062
|
+
}, m = {
|
|
1063
1063
|
x: +a[_ + 4],
|
|
1064
1064
|
y: +a[_ + 5]
|
|
1065
|
-
}, l.push(d,
|
|
1065
|
+
}, l.push(d, m), uP(d.x, d.y, +a[_], +a[_ + 1], +a[_ + 2], +a[_ + 3], m.x, m.y, 1 / (p * 2e5), l, l.length - 1);
|
|
1066
1066
|
for (c = l.length, _ = 0; _ < c; _++)
|
|
1067
|
-
x = l[_], E = l[_ - 1] || x, (x.x > E.x || E.y !== x.y && E.x === x.x || x === E) && x.x <= 1 ? (E.cx = x.x - E.x, E.cy = x.y - E.y, E.n = x, E.nx = x.x,
|
|
1068
|
-
if (c = 1 / u + 1 | 0, y = 1 / c, b = 0, x = l[0],
|
|
1067
|
+
x = l[_], E = l[_ - 1] || x, (x.x > E.x || E.y !== x.y && E.x === x.x || x === E) && x.x <= 1 ? (E.cx = x.x - E.x, E.cy = x.y - E.y, E.n = x, E.nx = x.x, g && _ > 1 && Math.abs(E.cy / E.cx - l[_ - 2].cy / l[_ - 2].cx) > 2 && (g = 0), E.cx < u && (E.cx ? u = E.cx : (E.cx = 1e-3, _ === c - 1 && (E.x -= 1e-3, u = Math.min(u, 1e-3), g = 0)))) : (l.splice(_--, 1), c--);
|
|
1068
|
+
if (c = 1 / u + 1 | 0, y = 1 / c, b = 0, x = l[0], g) {
|
|
1069
1069
|
for (_ = 0; _ < c; _++)
|
|
1070
1070
|
w = _ * y, x.nx < w && (x = l[++b]), d = x.y + (w - x.x) / x.cx * x.cy, f[_] = {
|
|
1071
1071
|
x: w,
|
|
@@ -1094,15 +1094,15 @@ var Vt, Rm, Pm = function() {
|
|
|
1094
1094
|
return Vt.parseEase(n);
|
|
1095
1095
|
}, t.getSVGData = function(n, i) {
|
|
1096
1096
|
i = i || {};
|
|
1097
|
-
var a = i.width || 100, u = i.height || 100, l = i.x || 0, f = (i.y || 0) + u, p = Vt.utils.toArray(i.path)[0],
|
|
1097
|
+
var a = i.width || 100, u = i.height || 100, l = i.x || 0, f = (i.y || 0) + u, p = Vt.utils.toArray(i.path)[0], g, c, d, m, _, y, b, x, E, w;
|
|
1098
1098
|
if (i.invert && (u = -u, f = 0), typeof n == "string" && (n = Vt.parseEase(n)), n.custom && (n = n.custom), n instanceof t)
|
|
1099
|
-
|
|
1099
|
+
g = rP(JR([n.segment], a, 0, 0, -u, l, f));
|
|
1100
1100
|
else {
|
|
1101
|
-
for (
|
|
1102
|
-
_ = Da(l + d *
|
|
1103
|
-
|
|
1101
|
+
for (g = [l, f], b = Math.max(5, (i.precision || 1) * 200), m = 1 / b, b += 2, x = 5 / b, E = Da(l + m * a), w = Da(f + n(m) * -u), c = (w - f) / (E - l), d = 2; d < b; d++)
|
|
1102
|
+
_ = Da(l + d * m * a), y = Da(f + n(d * m) * -u), (Math.abs((y - w) / (_ - E) - c) > x || d === b - 1) && (g.push(E, w), c = (y - w) / (_ - E)), E = _, w = y;
|
|
1103
|
+
g = "M" + g.join(",");
|
|
1104
1104
|
}
|
|
1105
|
-
return p && p.setAttribute("d",
|
|
1105
|
+
return p && p.setAttribute("d", g), g;
|
|
1106
1106
|
}, t;
|
|
1107
1107
|
}();
|
|
1108
1108
|
Pm() && Vt.registerPlugin(zs);
|
|
@@ -1358,7 +1358,7 @@ function lP(t, e, r) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
var Mm = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.FLASH = "FLASH", t.PULSE = "PULSE", t.SHAKE = "SHAKE", t.SWING = "SWING", t.JELLO = "JELLO", t.WOOBLE = "WOOBLE", t.FADE_IN = "FADE_IN", t.FADE_OUT = "FADE_OUT", t.FADE_IN_OUT = "FADE_IN_OUT", t.SLIDE_IN_LEFT = "SLIDE_IN_LEFT", t.SLIDE_IN_RIGHT = "SLIDE_IN_RIGHT", t.SLIDE_IN_TOP = "SLIDE_IN_TOP", t.SLIDE_IN_BOTTOM = "SLIDE_IN_BOTTOM", t.SLIDE_OUT_LEFT = "SLIDE_OUT_LEFT", t.SLIDE_OUT_RIGHT = "SLIDE_OUT_RIGHT", t.SLIDE_OUT_TOP = "SLIDE_OUT_TOP", t.SLIDE_OUT_BOTTOM = "SLIDE_OUT_BOTTOM", t.ZOOM_IN = "ZOOM_IN", t.ZOOM_OUT = "ZOOM_OUT", t.ZOOM_IN_OUT = "ZOOM_IN_OUT", t.BOUNCE_IN = "BOUNCE_IN", t.BOUNCE_OUT = "BOUNCE_OUT", t.BOUNCE_IN_OUT = "BOUNCE_IN_OUT", t.BOUNCE_IN_DOWN = "BOUNCE_IN_DOWN", t.BOUNCE_IN_LEFT = "BOUNCE_IN_LEFT", t.BOUNCE_IN_RIGHT = "BOUNCE_IN_RIGHT", t.BOUNCE_IN_UP = "BOUNCE_IN_UP", t.BOUNCE_OUT_DOWN = "BOUNCE_OUT_DOWN", t.BOUNCE_OUT_LEFT = "BOUNCE_OUT_LEFT", t.BOUNCE_OUT_RIGHT = "BOUNCE_OUT_RIGHT", t.BOUNCE_OUT_UP = "BOUNCE_OUT_UP", t.FADE_IN_DOWN = "FADE_IN_DOWN", t.FADE_IN_LEFT = "FADE_IN_LEFT", t.FADE_IN_RIGHT = "FADE_IN_RIGHT", t.FADE_IN_UP = "FADE_IN_UP", t.FADE_OUT_DOWN = "FADE_OUT_DOWN", t.FADE_OUT_LEFT = "FADE_OUT_LEFT", t.FADE_OUT_RIGHT = "FADE_OUT_RIGHT", t.FADE_OUT_UP = "FADE_OUT_UP", t.ELASTIC_IN = "ELASTIC_IN", t.ELASTIC_OUT = "ELASTIC_OUT", t.ELASTIC_IN_OUT = "ELASTIC_IN_OUT", t.BACK_IN = "BACK_IN", t.BACK_OUT = "BACK_OUT", t.BACK_IN_OUT = "BACK_IN_OUT", t.CIRCULAR_IN = "CIRCULAR_IN", t.CIRCULAR_OUT = "CIRCULAR_OUT", t.CIRCULAR_IN_OUT = "CIRCULAR_IN_OUT", t.EXPO_IN = "EXPO_IN", t.EXPO_OUT = "EXPO_OUT", t.EXPO_IN_OUT = "EXPO_IN_OUT", t.SINE_IN = "SINE_IN", t.SINE_OUT = "SINE_OUT", t.SINE_IN_OUT = "SINE_IN_OUT", t.BOUNCE = "BOUNCE", t.ELASTIC = "ELASTIC", t.BACK = "BACK", t.CIRCULAR = "CIRCULAR", t.EXPO = "EXPO", t.SINE = "SINE", t))(Mm || {});
|
|
1360
1360
|
const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te.forwardRef((t, e) => {
|
|
1361
|
-
const [r, n] = te.useState(!1), [i, a] = Fi(!1), [u, l] = Fi(!1), f = pe(null), p = pe(null),
|
|
1361
|
+
const [r, n] = te.useState(!1), [i, a] = Fi(!1), [u, l] = Fi(!1), f = pe(null), p = pe(null), g = pe(null), c = pe(null), d = pe(null), { tl: m } = Gi(Yn), {
|
|
1362
1362
|
uniqueId: _,
|
|
1363
1363
|
visible: y,
|
|
1364
1364
|
startAt: b,
|
|
@@ -1401,15 +1401,13 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1401
1401
|
), te.useEffect(() => {
|
|
1402
1402
|
f.current && n(!0);
|
|
1403
1403
|
}, []), te.useEffect(() => {
|
|
1404
|
-
if (
|
|
1405
|
-
console.log("running rect effect",
|
|
1406
|
-
const fe =
|
|
1407
|
-
d.current && (
|
|
1408
|
-
const we = fe * W.totalDuration();
|
|
1409
|
-
console.log("setting up the progress", we), W.seek(we), d.current = W;
|
|
1404
|
+
if (m.current) {
|
|
1405
|
+
console.log("running rect effect", m.current.progress()), console.log("nested anim progress", W.progress());
|
|
1406
|
+
const fe = W.progress();
|
|
1407
|
+
d.current && (m.current.remove(d.current), d.current.progress(0).kill(), console.log("killing timeline"), d.current.kill()), m.current.add(W, b), W.progress(fe), d.current = W;
|
|
1410
1408
|
}
|
|
1411
1409
|
return () => {
|
|
1412
|
-
|
|
1410
|
+
m.current && (m.current.remove(W), W.progress(0).kill());
|
|
1413
1411
|
};
|
|
1414
1412
|
}, [b, , W]);
|
|
1415
1413
|
const j = te.useCallback(() => {
|
|
@@ -1424,8 +1422,8 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1424
1422
|
), me = rS(wt, {
|
|
1425
1423
|
matrix: er.filters.ColorMatrixFilter
|
|
1426
1424
|
});
|
|
1427
|
-
return /* @__PURE__ */
|
|
1428
|
-
/* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ Ae.jsxs(wt, { ref: p, children: [
|
|
1426
|
+
/* @__PURE__ */ Ae.jsxs(
|
|
1429
1427
|
wt,
|
|
1430
1428
|
{
|
|
1431
1429
|
ref: f,
|
|
@@ -1443,7 +1441,7 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1443
1441
|
pointerout: X
|
|
1444
1442
|
},
|
|
1445
1443
|
children: [
|
|
1446
|
-
!H && /* @__PURE__ */
|
|
1444
|
+
!H && /* @__PURE__ */ Ae.jsx(
|
|
1447
1445
|
me,
|
|
1448
1446
|
{
|
|
1449
1447
|
scale: 1,
|
|
@@ -1455,11 +1453,11 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1455
1453
|
// @ts-ignore
|
|
1456
1454
|
matrix: cP
|
|
1457
1455
|
},
|
|
1458
|
-
children: /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: g, children: t.children })
|
|
1459
1457
|
}
|
|
1460
1458
|
),
|
|
1461
|
-
H && /* @__PURE__ */
|
|
1462
|
-
!Hs(L) && L !== cc.NONE && L !== cc.NORMAL && /* @__PURE__ */
|
|
1459
|
+
H && /* @__PURE__ */ Ae.jsx(wt, { ref: g, children: t.children }),
|
|
1460
|
+
!Hs(L) && L !== cc.NONE && L !== cc.NORMAL && /* @__PURE__ */ Ae.jsx(
|
|
1463
1461
|
lC,
|
|
1464
1462
|
{
|
|
1465
1463
|
overlay: L,
|
|
@@ -1472,7 +1470,7 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1472
1470
|
]
|
|
1473
1471
|
}
|
|
1474
1472
|
),
|
|
1475
|
-
V && y && !ge && /* @__PURE__ */
|
|
1473
|
+
V && y && !ge && /* @__PURE__ */ Ae.jsx(
|
|
1476
1474
|
dS,
|
|
1477
1475
|
{
|
|
1478
1476
|
pixiTransformerRef: c,
|
|
@@ -1505,7 +1503,7 @@ const hP = {
|
|
|
1505
1503
|
getFontFaceSet: () => document.fonts,
|
|
1506
1504
|
fetch: (t, e) => fetch(t, e),
|
|
1507
1505
|
parseXML: (t) => new DOMParser().parseFromString(t, "text/xml")
|
|
1508
|
-
},
|
|
1506
|
+
}, Ie = {
|
|
1509
1507
|
ADAPTER: hP,
|
|
1510
1508
|
RESOLUTION: 1,
|
|
1511
1509
|
CREATE_IMAGE_BITMAP: !1,
|
|
@@ -1574,22 +1572,22 @@ function $p(t) {
|
|
|
1574
1572
|
return a.any = a.apple.device || a.android.device || a.windows.device || a.other.device, a.phone = a.apple.phone || a.android.phone || a.windows.phone, a.tablet = a.apple.tablet || a.android.tablet || a.windows.tablet, a;
|
|
1575
1573
|
}
|
|
1576
1574
|
const dP = $p.default ?? $p, Ai = dP(globalThis.navigator);
|
|
1577
|
-
|
|
1578
|
-
|
|
1575
|
+
Ie.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
1576
|
+
Ie.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = !1;
|
|
1579
1577
|
var Fm = { exports: {} };
|
|
1580
1578
|
(function(t) {
|
|
1581
1579
|
var e = Object.prototype.hasOwnProperty, r = "~";
|
|
1582
1580
|
function n() {
|
|
1583
1581
|
}
|
|
1584
1582
|
Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (r = !1));
|
|
1585
|
-
function i(f, p,
|
|
1586
|
-
this.fn = f, this.context = p, this.once =
|
|
1583
|
+
function i(f, p, g) {
|
|
1584
|
+
this.fn = f, this.context = p, this.once = g || !1;
|
|
1587
1585
|
}
|
|
1588
|
-
function a(f, p,
|
|
1589
|
-
if (typeof
|
|
1586
|
+
function a(f, p, g, c, d) {
|
|
1587
|
+
if (typeof g != "function")
|
|
1590
1588
|
throw new TypeError("The listener must be a function");
|
|
1591
|
-
var
|
|
1592
|
-
return f._events[_] ? f._events[_].fn ? f._events[_] = [f._events[_],
|
|
1589
|
+
var m = new i(g, c || f, d), _ = r ? r + p : p;
|
|
1590
|
+
return f._events[_] ? f._events[_].fn ? f._events[_] = [f._events[_], m] : f._events[_].push(m) : (f._events[_] = m, f._eventsCount++), f;
|
|
1593
1591
|
}
|
|
1594
1592
|
function u(f, p) {
|
|
1595
1593
|
--f._eventsCount === 0 ? f._events = new n() : delete f._events[p];
|
|
@@ -1598,25 +1596,25 @@ var Fm = { exports: {} };
|
|
|
1598
1596
|
this._events = new n(), this._eventsCount = 0;
|
|
1599
1597
|
}
|
|
1600
1598
|
l.prototype.eventNames = function() {
|
|
1601
|
-
var p = [],
|
|
1599
|
+
var p = [], g, c;
|
|
1602
1600
|
if (this._eventsCount === 0)
|
|
1603
1601
|
return p;
|
|
1604
|
-
for (c in
|
|
1605
|
-
e.call(
|
|
1606
|
-
return Object.getOwnPropertySymbols ? p.concat(Object.getOwnPropertySymbols(
|
|
1602
|
+
for (c in g = this._events)
|
|
1603
|
+
e.call(g, c) && p.push(r ? c.slice(1) : c);
|
|
1604
|
+
return Object.getOwnPropertySymbols ? p.concat(Object.getOwnPropertySymbols(g)) : p;
|
|
1607
1605
|
}, l.prototype.listeners = function(p) {
|
|
1608
|
-
var
|
|
1606
|
+
var g = r ? r + p : p, c = this._events[g];
|
|
1609
1607
|
if (!c)
|
|
1610
1608
|
return [];
|
|
1611
1609
|
if (c.fn)
|
|
1612
1610
|
return [c.fn];
|
|
1613
|
-
for (var d = 0,
|
|
1611
|
+
for (var d = 0, m = c.length, _ = new Array(m); d < m; d++)
|
|
1614
1612
|
_[d] = c[d].fn;
|
|
1615
1613
|
return _;
|
|
1616
1614
|
}, l.prototype.listenerCount = function(p) {
|
|
1617
|
-
var
|
|
1615
|
+
var g = r ? r + p : p, c = this._events[g];
|
|
1618
1616
|
return c ? c.fn ? 1 : c.length : 0;
|
|
1619
|
-
}, l.prototype.emit = function(p,
|
|
1617
|
+
}, l.prototype.emit = function(p, g, c, d, m, _) {
|
|
1620
1618
|
var y = r ? r + p : p;
|
|
1621
1619
|
if (!this._events[y])
|
|
1622
1620
|
return !1;
|
|
@@ -1626,15 +1624,15 @@ var Fm = { exports: {} };
|
|
|
1626
1624
|
case 1:
|
|
1627
1625
|
return b.fn.call(b.context), !0;
|
|
1628
1626
|
case 2:
|
|
1629
|
-
return b.fn.call(b.context,
|
|
1627
|
+
return b.fn.call(b.context, g), !0;
|
|
1630
1628
|
case 3:
|
|
1631
|
-
return b.fn.call(b.context,
|
|
1629
|
+
return b.fn.call(b.context, g, c), !0;
|
|
1632
1630
|
case 4:
|
|
1633
|
-
return b.fn.call(b.context,
|
|
1631
|
+
return b.fn.call(b.context, g, c, d), !0;
|
|
1634
1632
|
case 5:
|
|
1635
|
-
return b.fn.call(b.context,
|
|
1633
|
+
return b.fn.call(b.context, g, c, d, m), !0;
|
|
1636
1634
|
case 6:
|
|
1637
|
-
return b.fn.call(b.context,
|
|
1635
|
+
return b.fn.call(b.context, g, c, d, m, _), !0;
|
|
1638
1636
|
}
|
|
1639
1637
|
for (w = 1, E = new Array(x - 1); w < x; w++)
|
|
1640
1638
|
E[w - 1] = arguments[w];
|
|
@@ -1647,13 +1645,13 @@ var Fm = { exports: {} };
|
|
|
1647
1645
|
b[w].fn.call(b[w].context);
|
|
1648
1646
|
break;
|
|
1649
1647
|
case 2:
|
|
1650
|
-
b[w].fn.call(b[w].context,
|
|
1648
|
+
b[w].fn.call(b[w].context, g);
|
|
1651
1649
|
break;
|
|
1652
1650
|
case 3:
|
|
1653
|
-
b[w].fn.call(b[w].context,
|
|
1651
|
+
b[w].fn.call(b[w].context, g, c);
|
|
1654
1652
|
break;
|
|
1655
1653
|
case 4:
|
|
1656
|
-
b[w].fn.call(b[w].context,
|
|
1654
|
+
b[w].fn.call(b[w].context, g, c, d);
|
|
1657
1655
|
break;
|
|
1658
1656
|
default:
|
|
1659
1657
|
if (!E)
|
|
@@ -1663,28 +1661,28 @@ var Fm = { exports: {} };
|
|
|
1663
1661
|
}
|
|
1664
1662
|
}
|
|
1665
1663
|
return !0;
|
|
1666
|
-
}, l.prototype.on = function(p,
|
|
1667
|
-
return a(this, p,
|
|
1668
|
-
}, l.prototype.once = function(p,
|
|
1669
|
-
return a(this, p,
|
|
1670
|
-
}, l.prototype.removeListener = function(p,
|
|
1671
|
-
var
|
|
1672
|
-
if (!this._events[
|
|
1664
|
+
}, l.prototype.on = function(p, g, c) {
|
|
1665
|
+
return a(this, p, g, c, !1);
|
|
1666
|
+
}, l.prototype.once = function(p, g, c) {
|
|
1667
|
+
return a(this, p, g, c, !0);
|
|
1668
|
+
}, l.prototype.removeListener = function(p, g, c, d) {
|
|
1669
|
+
var m = r ? r + p : p;
|
|
1670
|
+
if (!this._events[m])
|
|
1673
1671
|
return this;
|
|
1674
|
-
if (!
|
|
1675
|
-
return u(this,
|
|
1676
|
-
var _ = this._events[
|
|
1672
|
+
if (!g)
|
|
1673
|
+
return u(this, m), this;
|
|
1674
|
+
var _ = this._events[m];
|
|
1677
1675
|
if (_.fn)
|
|
1678
|
-
_.fn ===
|
|
1676
|
+
_.fn === g && (!d || _.once) && (!c || _.context === c) && u(this, m);
|
|
1679
1677
|
else {
|
|
1680
1678
|
for (var y = 0, b = [], x = _.length; y < x; y++)
|
|
1681
|
-
(_[y].fn !==
|
|
1682
|
-
b.length ? this._events[
|
|
1679
|
+
(_[y].fn !== g || d && !_[y].once || c && _[y].context !== c) && b.push(_[y]);
|
|
1680
|
+
b.length ? this._events[m] = b.length === 1 ? b[0] : b : u(this, m);
|
|
1683
1681
|
}
|
|
1684
1682
|
return this;
|
|
1685
1683
|
}, l.prototype.removeAllListeners = function(p) {
|
|
1686
|
-
var
|
|
1687
|
-
return p ? (
|
|
1684
|
+
var g;
|
|
1685
|
+
return p ? (g = r ? r + p : p, this._events[g] && u(this, g)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
1688
1686
|
}, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = r, l.EventEmitter = l, t.exports = l;
|
|
1689
1687
|
})(Fm);
|
|
1690
1688
|
var pP = Fm.exports;
|
|
@@ -1697,14 +1695,14 @@ function Do(t, e, r) {
|
|
|
1697
1695
|
var n = e && e.length, i = n ? e[0] * r : t.length, a = Nm(t, 0, i, r, !0), u = [];
|
|
1698
1696
|
if (!a || a.next === a.prev)
|
|
1699
1697
|
return u;
|
|
1700
|
-
var l, f, p,
|
|
1698
|
+
var l, f, p, g, c, d, m;
|
|
1701
1699
|
if (n && (a = yP(t, e, a, r)), t.length > 80 * r) {
|
|
1702
|
-
l = p = t[0], f =
|
|
1700
|
+
l = p = t[0], f = g = t[1];
|
|
1703
1701
|
for (var _ = r; _ < i; _ += r)
|
|
1704
|
-
c = t[_], d = t[_ + 1], c < l && (l = c), d < f && (f = d), c > p && (p = c), d >
|
|
1705
|
-
|
|
1702
|
+
c = t[_], d = t[_ + 1], c < l && (l = c), d < f && (f = d), c > p && (p = c), d > g && (g = d);
|
|
1703
|
+
m = Math.max(p - l, g - f), m = m !== 0 ? 32767 / m : 0;
|
|
1706
1704
|
}
|
|
1707
|
-
return Ps(a, u, r, l, f,
|
|
1705
|
+
return Ps(a, u, r, l, f, m, 0), u;
|
|
1708
1706
|
}
|
|
1709
1707
|
function Nm(t, e, r, n, i) {
|
|
1710
1708
|
var a, u;
|
|
@@ -1750,8 +1748,8 @@ function gP(t) {
|
|
|
1750
1748
|
var e = t.prev, r = t, n = t.next;
|
|
1751
1749
|
if (ot(e, r, n) >= 0)
|
|
1752
1750
|
return !1;
|
|
1753
|
-
for (var i = e.x, a = r.x, u = n.x, l = e.y, f = r.y, p = n.y,
|
|
1754
|
-
if (_.x >=
|
|
1751
|
+
for (var i = e.x, a = r.x, u = n.x, l = e.y, f = r.y, p = n.y, g = i < a ? i < u ? i : u : a < u ? a : u, c = l < f ? l < p ? l : p : f < p ? f : p, d = i > a ? i > u ? i : u : a > u ? a : u, m = l > f ? l > p ? l : p : f > p ? f : p, _ = n.next; _ !== e; ) {
|
|
1752
|
+
if (_.x >= g && _.x <= d && _.y >= c && _.y <= m && Ei(i, l, a, f, u, p, _.x, _.y) && ot(_.prev, _, _.next) >= 0)
|
|
1755
1753
|
return !1;
|
|
1756
1754
|
_ = _.next;
|
|
1757
1755
|
}
|
|
@@ -1761,18 +1759,18 @@ function mP(t, e, r, n) {
|
|
|
1761
1759
|
var i = t.prev, a = t, u = t.next;
|
|
1762
1760
|
if (ot(i, a, u) >= 0)
|
|
1763
1761
|
return !1;
|
|
1764
|
-
for (var l = i.x, f = a.x, p = u.x,
|
|
1765
|
-
if (w.x >=
|
|
1762
|
+
for (var l = i.x, f = a.x, p = u.x, g = i.y, c = a.y, d = u.y, m = l < f ? l < p ? l : p : f < p ? f : p, _ = g < c ? g < d ? g : d : c < d ? c : d, y = l > f ? l > p ? l : p : f > p ? f : p, b = g > c ? g > d ? g : d : c > d ? c : d, x = dc(m, _, e, r, n), E = dc(y, b, e, r, n), w = t.prevZ, I = t.nextZ; w && w.z >= x && I && I.z <= E; ) {
|
|
1763
|
+
if (w.x >= m && w.x <= y && w.y >= _ && w.y <= b && w !== i && w !== u && Ei(l, g, f, c, p, d, w.x, w.y) && ot(w.prev, w, w.next) >= 0 || (w = w.prevZ, I.x >= m && I.x <= y && I.y >= _ && I.y <= b && I !== i && I !== u && Ei(l, g, f, c, p, d, I.x, I.y) && ot(I.prev, I, I.next) >= 0))
|
|
1766
1764
|
return !1;
|
|
1767
1765
|
I = I.nextZ;
|
|
1768
1766
|
}
|
|
1769
1767
|
for (; w && w.z >= x; ) {
|
|
1770
|
-
if (w.x >=
|
|
1768
|
+
if (w.x >= m && w.x <= y && w.y >= _ && w.y <= b && w !== i && w !== u && Ei(l, g, f, c, p, d, w.x, w.y) && ot(w.prev, w, w.next) >= 0)
|
|
1771
1769
|
return !1;
|
|
1772
1770
|
w = w.prevZ;
|
|
1773
1771
|
}
|
|
1774
1772
|
for (; I && I.z <= E; ) {
|
|
1775
|
-
if (I.x >=
|
|
1773
|
+
if (I.x >= m && I.x <= y && I.y >= _ && I.y <= b && I !== i && I !== u && Ei(l, g, f, c, p, d, I.x, I.y) && ot(I.prev, I, I.next) >= 0)
|
|
1776
1774
|
return !1;
|
|
1777
1775
|
I = I.nextZ;
|
|
1778
1776
|
}
|
|
@@ -1830,10 +1828,10 @@ function TP(t, e) {
|
|
|
1830
1828
|
} while (r !== e);
|
|
1831
1829
|
if (!u)
|
|
1832
1830
|
return null;
|
|
1833
|
-
var f = u, p = u.x,
|
|
1831
|
+
var f = u, p = u.x, g = u.y, c = 1 / 0, d;
|
|
1834
1832
|
r = u;
|
|
1835
1833
|
do
|
|
1836
|
-
n >= r.x && r.x >= p && n !== r.x && Ei(i <
|
|
1834
|
+
n >= r.x && r.x >= p && n !== r.x && Ei(i < g ? n : a, i, p, g, i < g ? a : n, i, r.x, r.y) && (d = Math.abs(i - r.y) / (n - r.x), Ms(r, t) && (d < c || d === c && (r.x > u.x || r.x === u.x && wP(u, r))) && (u = r, c = d)), r = r.next;
|
|
1837
1835
|
while (r !== f);
|
|
1838
1836
|
return u;
|
|
1839
1837
|
}
|
|
@@ -1933,14 +1931,14 @@ Do.deviation = function(t, e, r, n) {
|
|
|
1933
1931
|
var i = e && e.length, a = i ? e[0] * r : t.length, u = Math.abs(gc(t, 0, a, r));
|
|
1934
1932
|
if (i)
|
|
1935
1933
|
for (var l = 0, f = e.length; l < f; l++) {
|
|
1936
|
-
var p = e[l] * r,
|
|
1937
|
-
u -= Math.abs(gc(t, p,
|
|
1934
|
+
var p = e[l] * r, g = l < f - 1 ? e[l + 1] * r : t.length;
|
|
1935
|
+
u -= Math.abs(gc(t, p, g, r));
|
|
1938
1936
|
}
|
|
1939
1937
|
var c = 0;
|
|
1940
1938
|
for (l = 0; l < n.length; l += 3) {
|
|
1941
|
-
var d = n[l] * r,
|
|
1939
|
+
var d = n[l] * r, m = n[l + 1] * r, _ = n[l + 2] * r;
|
|
1942
1940
|
c += Math.abs(
|
|
1943
|
-
(t[d] - t[_]) * (t[
|
|
1941
|
+
(t[d] - t[_]) * (t[m + 1] - t[d + 1]) - (t[d] - t[m]) * (t[_ + 1] - t[d + 1])
|
|
1944
1942
|
);
|
|
1945
1943
|
}
|
|
1946
1944
|
return u === 0 && c === 0 ? 0 : Math.abs((c - u) / u);
|
|
@@ -1968,7 +1966,7 @@ vo.exports;
|
|
|
1968
1966
|
(function(r) {
|
|
1969
1967
|
var n = e && !e.nodeType && e, i = t && !t.nodeType && t, a = typeof Et == "object" && Et;
|
|
1970
1968
|
(a.global === a || a.window === a || a.self === a) && (r = a);
|
|
1971
|
-
var u, l = 2147483647, f = 36, p = 1,
|
|
1969
|
+
var u, l = 2147483647, f = 36, p = 1, g = 26, c = 38, d = 700, m = 72, _ = 128, y = "-", b = /^xn--/, x = /[^\x20-\x7E]/, E = /[\x2E\u3002\uFF0E\uFF61]/g, w = {
|
|
1972
1970
|
overflow: "Overflow: input needs wider integers to process",
|
|
1973
1971
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
1974
1972
|
"invalid-input": "Invalid input"
|
|
@@ -2006,35 +2004,35 @@ vo.exports;
|
|
|
2006
2004
|
}
|
|
2007
2005
|
function ie(W, j, le) {
|
|
2008
2006
|
var he = 0;
|
|
2009
|
-
for (W = le ? O(W / d) : W >> 1, W += O(W / j); W > I *
|
|
2007
|
+
for (W = le ? O(W / d) : W >> 1, W += O(W / j); W > I * g >> 1; he += f)
|
|
2010
2008
|
W = O(W / I);
|
|
2011
2009
|
return O(he + (I + 1) * W / (W + c));
|
|
2012
2010
|
}
|
|
2013
2011
|
function re(W) {
|
|
2014
|
-
var j = [], le = W.length, he, me = 0, fe = _,
|
|
2012
|
+
var j = [], le = W.length, he, me = 0, fe = _, Re = m, Ue, He, je, be, Ee, $e, Ke, Se, _e;
|
|
2015
2013
|
for (Ue = W.lastIndexOf(y), Ue < 0 && (Ue = 0), He = 0; He < Ue; ++He)
|
|
2016
2014
|
W.charCodeAt(He) >= 128 && L("not-basic"), j.push(W.charCodeAt(He));
|
|
2017
2015
|
for (je = Ue > 0 ? Ue + 1 : 0; je < le; ) {
|
|
2018
|
-
for (be = me,
|
|
2019
|
-
_e = f -
|
|
2020
|
-
he = j.length + 1,
|
|
2016
|
+
for (be = me, Ee = 1, $e = f; je >= le && L("invalid-input"), Ke = X(W.charCodeAt(je++)), (Ke >= f || Ke > O((l - me) / Ee)) && L("overflow"), me += Ke * Ee, Se = $e <= Re ? p : $e >= Re + g ? g : $e - Re, !(Ke < Se); $e += f)
|
|
2017
|
+
_e = f - Se, Ee > O(l / _e) && L("overflow"), Ee *= _e;
|
|
2018
|
+
he = j.length + 1, Re = ie(me - be, he, be == 0), O(me / he) > l - fe && L("overflow"), fe += O(me / he), me %= he, j.splice(me++, 0, fe);
|
|
2021
2019
|
}
|
|
2022
2020
|
return se(j);
|
|
2023
2021
|
}
|
|
2024
2022
|
function H(W) {
|
|
2025
|
-
var j, le, he, me, fe,
|
|
2026
|
-
for (W = Y(W), Ke = W.length, j = _, le = 0, fe =
|
|
2027
|
-
|
|
2023
|
+
var j, le, he, me, fe, Re, Ue, He, je, be, Ee, $e = [], Ke, Se, _e, rt;
|
|
2024
|
+
for (W = Y(W), Ke = W.length, j = _, le = 0, fe = m, Re = 0; Re < Ke; ++Re)
|
|
2025
|
+
Ee = W[Re], Ee < 128 && $e.push(F(Ee));
|
|
2028
2026
|
for (he = me = $e.length, me && $e.push(y); he < Ke; ) {
|
|
2029
|
-
for (Ue = l,
|
|
2030
|
-
|
|
2031
|
-
for (
|
|
2032
|
-
if (
|
|
2033
|
-
for (He = le, je = f; be = je <= fe ? p : je >= fe +
|
|
2027
|
+
for (Ue = l, Re = 0; Re < Ke; ++Re)
|
|
2028
|
+
Ee = W[Re], Ee >= j && Ee < Ue && (Ue = Ee);
|
|
2029
|
+
for (Se = he + 1, Ue - j > O((l - le) / Se) && L("overflow"), le += (Ue - j) * Se, j = Ue, Re = 0; Re < Ke; ++Re)
|
|
2030
|
+
if (Ee = W[Re], Ee < j && ++le > l && L("overflow"), Ee == j) {
|
|
2031
|
+
for (He = le, je = f; be = je <= fe ? p : je >= fe + g ? g : je - fe, !(He < be); je += f)
|
|
2034
2032
|
rt = He - be, _e = f - be, $e.push(
|
|
2035
2033
|
F(G(be + rt % _e, 0))
|
|
2036
2034
|
), He = O(rt / _e);
|
|
2037
|
-
$e.push(F(G(He, 0))), fe = ie(le,
|
|
2035
|
+
$e.push(F(G(He, 0))), fe = ie(le, Se, he == me), le = 0, ++he;
|
|
2038
2036
|
}
|
|
2039
2037
|
++le, ++j;
|
|
2040
2038
|
}
|
|
@@ -2117,11 +2115,11 @@ var OP = vo.exports, FP = function() {
|
|
|
2117
2115
|
throw new TypeError(BP + r);
|
|
2118
2116
|
for (var n = Cl.call(arguments, 1), i, a = function() {
|
|
2119
2117
|
if (this instanceof i) {
|
|
2120
|
-
var
|
|
2118
|
+
var g = r.apply(
|
|
2121
2119
|
this,
|
|
2122
2120
|
n.concat(Cl.call(arguments))
|
|
2123
2121
|
);
|
|
2124
|
-
return Object(
|
|
2122
|
+
return Object(g) === g ? g : this;
|
|
2125
2123
|
} else
|
|
2126
2124
|
return r.apply(
|
|
2127
2125
|
e,
|
|
@@ -2337,9 +2335,9 @@ var YP = function t(e) {
|
|
|
2337
2335
|
throw new Ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2338
2336
|
var n = tM(e), i = n.length > 0 ? n[0] : "", a = rM("%" + i + "%", r), u = a.name, l = a.value, f = !1, p = a.alias;
|
|
2339
2337
|
p && (i = p[0], ZP(n, KP([0, 1], p)));
|
|
2340
|
-
for (var
|
|
2341
|
-
var d = n[
|
|
2342
|
-
if ((
|
|
2338
|
+
for (var g = 1, c = !0; g < n.length; g += 1) {
|
|
2339
|
+
var d = n[g], m = yo(d, 0, 1), _ = yo(d, -1);
|
|
2340
|
+
if ((m === '"' || m === "'" || m === "`" || _ === '"' || _ === "'" || _ === "`") && m !== _)
|
|
2343
2341
|
throw new Ni("property names with quotes must have matching quotes");
|
|
2344
2342
|
if ((d === "constructor" || !c) && (f = !0), i += "." + d, u = "%" + i + "%", _o(Vn, u))
|
|
2345
2343
|
l = Vn[u];
|
|
@@ -2349,7 +2347,7 @@ var YP = function t(e) {
|
|
|
2349
2347
|
throw new Ri("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2350
2348
|
return;
|
|
2351
2349
|
}
|
|
2352
|
-
if (zn &&
|
|
2350
|
+
if (zn && g + 1 >= n.length) {
|
|
2353
2351
|
var y = zn(l, d);
|
|
2354
2352
|
c = !!y, c && "get" in y && !("originalValue" in y.get) ? l = y.get : l = l[d];
|
|
2355
2353
|
} else
|
|
@@ -2370,8 +2368,8 @@ var YP = function t(e) {
|
|
|
2370
2368
|
t.exports = function(c) {
|
|
2371
2369
|
var d = a(e, i, arguments);
|
|
2372
2370
|
if (u && l) {
|
|
2373
|
-
var
|
|
2374
|
-
|
|
2371
|
+
var m = u(d, "length");
|
|
2372
|
+
m.configurable && l(
|
|
2375
2373
|
d,
|
|
2376
2374
|
"length",
|
|
2377
2375
|
{ value: 1 + f(0, c.length - (arguments.length - 1)) }
|
|
@@ -2440,8 +2438,8 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2440
2438
|
var p = String(e) + "n";
|
|
2441
2439
|
return l ? Jp(e, p) : p;
|
|
2442
2440
|
}
|
|
2443
|
-
var
|
|
2444
|
-
if (typeof n > "u" && (n = 0), n >=
|
|
2441
|
+
var g = typeof a.depth > "u" ? 5 : a.depth;
|
|
2442
|
+
if (typeof n > "u" && (n = 0), n >= g && g > 0 && typeof e == "object")
|
|
2445
2443
|
return yc(e) ? "[Array]" : "[Object]";
|
|
2446
2444
|
var c = kM(a, n);
|
|
2447
2445
|
if (typeof i > "u")
|
|
@@ -2458,8 +2456,8 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2458
2456
|
return t(X, a, n + 1, i);
|
|
2459
2457
|
}
|
|
2460
2458
|
if (typeof e == "function" && !rg(e)) {
|
|
2461
|
-
var
|
|
2462
|
-
return "[Function" + (
|
|
2459
|
+
var m = CM(e), _ = Ga(e, d);
|
|
2460
|
+
return "[Function" + (m ? ": " + m : " (anonymous)") + "]" + (_.length > 0 ? " { " + Nr.call(_, ", ") + " }" : "");
|
|
2463
2461
|
}
|
|
2464
2462
|
if (Vm(e)) {
|
|
2465
2463
|
var y = Li ? pn.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vc.call(e);
|
|
@@ -2482,7 +2480,7 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2482
2480
|
}
|
|
2483
2481
|
if (typeof e == "object" && u) {
|
|
2484
2482
|
if (tg && typeof e[tg] == "function" && _c)
|
|
2485
|
-
return _c(e, { depth:
|
|
2483
|
+
return _c(e, { depth: g - n });
|
|
2486
2484
|
if (u !== "symbol" && typeof e.inspect == "function")
|
|
2487
2485
|
return e.inspect();
|
|
2488
2486
|
}
|
|
@@ -2863,8 +2861,8 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2863
2861
|
return e;
|
|
2864
2862
|
var u = e;
|
|
2865
2863
|
if (typeof e == "symbol" ? u = Symbol.prototype.toString.call(e) : typeof e != "string" && (u = String(e)), n === "iso-8859-1")
|
|
2866
|
-
return escape(u).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2867
|
-
return "%26%23" + parseInt(
|
|
2864
|
+
return escape(u).replace(/%u[0-9a-f]{4}/gi, function(g) {
|
|
2865
|
+
return "%26%23" + parseInt(g.slice(2), 16) + "%3B";
|
|
2868
2866
|
});
|
|
2869
2867
|
for (var l = "", f = 0; f < u.length; ++f) {
|
|
2870
2868
|
var p = u.charCodeAt(f);
|
|
@@ -2890,8 +2888,8 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2890
2888
|
}, nO = function(e) {
|
|
2891
2889
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], i = 0; i < r.length; ++i)
|
|
2892
2890
|
for (var a = r[i], u = a.obj[a.prop], l = Object.keys(u), f = 0; f < l.length; ++f) {
|
|
2893
|
-
var p = l[f],
|
|
2894
|
-
typeof
|
|
2891
|
+
var p = l[f], g = u[p];
|
|
2892
|
+
typeof g == "object" && g !== null && n.indexOf(g) === -1 && (r.push({ obj: u, prop: p }), n.push(g));
|
|
2895
2893
|
}
|
|
2896
2894
|
return QM(r), e;
|
|
2897
2895
|
}, iO = function(e) {
|
|
@@ -2951,7 +2949,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2951
2949
|
strictNullHandling: !1
|
|
2952
2950
|
}, hO = function(e) {
|
|
2953
2951
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2954
|
-
}, kl = {}, fO = function t(e, r, n, i, a, u, l, f, p,
|
|
2952
|
+
}, kl = {}, fO = function t(e, r, n, i, a, u, l, f, p, g, c, d, m, _, y, b) {
|
|
2955
2953
|
for (var x = e, E = b, w = 0, I = !1; (E = E.get(kl)) !== void 0 && !I; ) {
|
|
2956
2954
|
var O = E.get(e);
|
|
2957
2955
|
if (w += 1, typeof O < "u") {
|
|
@@ -2971,9 +2969,9 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2971
2969
|
if (hO(x) || ro.isBuffer(x)) {
|
|
2972
2970
|
if (l) {
|
|
2973
2971
|
var F = _ ? r : l(r, Pt.encoder, y, "key", d);
|
|
2974
|
-
return [
|
|
2972
|
+
return [m(F) + "=" + m(l(x, Pt.encoder, y, "value", d))];
|
|
2975
2973
|
}
|
|
2976
|
-
return [
|
|
2974
|
+
return [m(r) + "=" + m(String(x))];
|
|
2977
2975
|
}
|
|
2978
2976
|
var N = [];
|
|
2979
2977
|
if (typeof x > "u")
|
|
@@ -2990,7 +2988,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2990
2988
|
for (var V = i && Zr(x) && x.length === 1 ? r + "[]" : r, Y = 0; Y < L.length; ++Y) {
|
|
2991
2989
|
var se = L[Y], X = typeof se == "object" && typeof se.value < "u" ? se.value : x[se];
|
|
2992
2990
|
if (!(u && X === null)) {
|
|
2993
|
-
var G = Zr(x) ? typeof n == "function" ? n(V, se) : V : V + (
|
|
2991
|
+
var G = Zr(x) ? typeof n == "function" ? n(V, se) : V : V + (g ? "." + se : "[" + se + "]");
|
|
2994
2992
|
b.set(e, w);
|
|
2995
2993
|
var ie = Ym();
|
|
2996
2994
|
ie.set(kl, b), Km(N, t(
|
|
@@ -3003,10 +3001,10 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3003
3001
|
n === "comma" && _ && Zr(x) ? null : l,
|
|
3004
3002
|
f,
|
|
3005
3003
|
p,
|
|
3006
|
-
|
|
3004
|
+
g,
|
|
3007
3005
|
c,
|
|
3008
3006
|
d,
|
|
3009
|
-
|
|
3007
|
+
m,
|
|
3010
3008
|
_,
|
|
3011
3009
|
y,
|
|
3012
3010
|
ie
|
|
@@ -3059,7 +3057,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3059
3057
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3060
3058
|
var p = f === "comma" && e && e.commaRoundTrip;
|
|
3061
3059
|
i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
|
|
3062
|
-
for (var
|
|
3060
|
+
for (var g = Ym(), c = 0; c < i.length; ++c) {
|
|
3063
3061
|
var d = i[c];
|
|
3064
3062
|
n.skipNulls && r[d] === null || Km(u, fO(
|
|
3065
3063
|
r[d],
|
|
@@ -3077,11 +3075,11 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3077
3075
|
n.formatter,
|
|
3078
3076
|
n.encodeValuesOnly,
|
|
3079
3077
|
n.charset,
|
|
3080
|
-
|
|
3078
|
+
g
|
|
3081
3079
|
));
|
|
3082
3080
|
}
|
|
3083
|
-
var
|
|
3084
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ? _ += "utf8=%26%2310003%3B&" : _ += "utf8=%E2%9C%93&"),
|
|
3081
|
+
var m = u.join(n.delimiter), _ = n.addQueryPrefix === !0 ? "?" : "";
|
|
3082
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? _ += "utf8=%26%2310003%3B&" : _ += "utf8=%E2%9C%93&"), m.length > 0 ? _ + m : "";
|
|
3085
3083
|
}, ki = qm, bc = Object.prototype.hasOwnProperty, gO = Array.isArray, xt = {
|
|
3086
3084
|
allowDots: !1,
|
|
3087
3085
|
allowPrototypes: !1,
|
|
@@ -3112,13 +3110,13 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3112
3110
|
u[f].indexOf("utf8=") === 0 && (u[f] === _O ? p = "utf-8" : u[f] === vO && (p = "iso-8859-1"), l = f, f = u.length);
|
|
3113
3111
|
for (f = 0; f < u.length; ++f)
|
|
3114
3112
|
if (f !== l) {
|
|
3115
|
-
var
|
|
3116
|
-
d === -1 ? (
|
|
3117
|
-
Zm(
|
|
3113
|
+
var g = u[f], c = g.indexOf("]="), d = c === -1 ? g.indexOf("=") : c + 1, m, _;
|
|
3114
|
+
d === -1 ? (m = r.decoder(g, xt.decoder, p, "key"), _ = r.strictNullHandling ? null : "") : (m = r.decoder(g.slice(0, d), xt.decoder, p, "key"), _ = ki.maybeMap(
|
|
3115
|
+
Zm(g.slice(d + 1), r),
|
|
3118
3116
|
function(y) {
|
|
3119
3117
|
return r.decoder(y, xt.decoder, p, "value");
|
|
3120
3118
|
}
|
|
3121
|
-
)), _ && r.interpretNumericEntities && p === "iso-8859-1" && (_ = mO(_)),
|
|
3119
|
+
)), _ && r.interpretNumericEntities && p === "iso-8859-1" && (_ = mO(_)), g.indexOf("[]=") > -1 && (_ = gO(_) ? [_] : _), bc.call(n, m) ? n[m] = ki.combine(n[m], _) : n[m] = _;
|
|
3122
3120
|
}
|
|
3123
3121
|
return n;
|
|
3124
3122
|
}, xO = function(t, e, r, n) {
|
|
@@ -3136,18 +3134,18 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3136
3134
|
return i;
|
|
3137
3135
|
}, bO = function(e, r, n, i) {
|
|
3138
3136
|
if (e) {
|
|
3139
|
-
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, u = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && u.exec(a), p = f ? a.slice(0, f.index) : a,
|
|
3137
|
+
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, u = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, f = n.depth > 0 && u.exec(a), p = f ? a.slice(0, f.index) : a, g = [];
|
|
3140
3138
|
if (p) {
|
|
3141
3139
|
if (!n.plainObjects && bc.call(Object.prototype, p) && !n.allowPrototypes)
|
|
3142
3140
|
return;
|
|
3143
|
-
|
|
3141
|
+
g.push(p);
|
|
3144
3142
|
}
|
|
3145
3143
|
for (var c = 0; n.depth > 0 && (f = l.exec(a)) !== null && c < n.depth; ) {
|
|
3146
3144
|
if (c += 1, !n.plainObjects && bc.call(Object.prototype, f[1].slice(1, -1)) && !n.allowPrototypes)
|
|
3147
3145
|
return;
|
|
3148
|
-
|
|
3146
|
+
g.push(f[1]);
|
|
3149
3147
|
}
|
|
3150
|
-
return f &&
|
|
3148
|
+
return f && g.push("[" + a.slice(f.index) + "]"), xO(g, r, n, i);
|
|
3151
3149
|
}
|
|
3152
3150
|
}, TO = function(e) {
|
|
3153
3151
|
if (!e)
|
|
@@ -3258,34 +3256,34 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3258
3256
|
var p = RO.exec(l);
|
|
3259
3257
|
if (p) {
|
|
3260
3258
|
p = p[0];
|
|
3261
|
-
var
|
|
3262
|
-
this.protocol =
|
|
3259
|
+
var g = p.toLowerCase();
|
|
3260
|
+
this.protocol = g, l = l.substr(p.length);
|
|
3263
3261
|
}
|
|
3264
3262
|
if (r || p || l.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
3265
3263
|
var c = l.substr(0, 2) === "//";
|
|
3266
3264
|
c && !(p && wc[p]) && (l = l.substr(2), this.slashes = !0);
|
|
3267
3265
|
}
|
|
3268
3266
|
if (!wc[p] && (c || p && !Pi[p])) {
|
|
3269
|
-
for (var d = -1,
|
|
3270
|
-
var _ = l.indexOf(og[
|
|
3267
|
+
for (var d = -1, m = 0; m < og.length; m++) {
|
|
3268
|
+
var _ = l.indexOf(og[m]);
|
|
3271
3269
|
_ !== -1 && (d === -1 || _ < d) && (d = _);
|
|
3272
3270
|
}
|
|
3273
3271
|
var y, b;
|
|
3274
3272
|
d === -1 ? b = l.lastIndexOf("@") : b = l.lastIndexOf("@", d), b !== -1 && (y = l.slice(0, b), l = l.slice(b + 1), this.auth = decodeURIComponent(y)), d = -1;
|
|
3275
|
-
for (var
|
|
3276
|
-
var _ = l.indexOf(ag[
|
|
3273
|
+
for (var m = 0; m < ag.length; m++) {
|
|
3274
|
+
var _ = l.indexOf(ag[m]);
|
|
3277
3275
|
_ !== -1 && (d === -1 || _ < d) && (d = _);
|
|
3278
3276
|
}
|
|
3279
3277
|
d === -1 && (d = l.length), this.host = l.slice(0, d), l = l.slice(d), this.parseHost(), this.hostname = this.hostname || "";
|
|
3280
3278
|
var x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
3281
3279
|
if (!x)
|
|
3282
|
-
for (var E = this.hostname.split(/\./),
|
|
3283
|
-
var I = E[
|
|
3280
|
+
for (var E = this.hostname.split(/\./), m = 0, w = E.length; m < w; m++) {
|
|
3281
|
+
var I = E[m];
|
|
3284
3282
|
if (I && !I.match(ug)) {
|
|
3285
3283
|
for (var O = "", F = 0, N = I.length; F < N; F++)
|
|
3286
3284
|
I.charCodeAt(F) > 127 ? O += "x" : O += I[F];
|
|
3287
3285
|
if (!O.match(ug)) {
|
|
3288
|
-
var L = E.slice(0,
|
|
3286
|
+
var L = E.slice(0, m), D = E.slice(m + 1), V = I.match(LO);
|
|
3289
3287
|
V && (L.push(V[1]), D.unshift(V[2])), D.length && (l = "/" + D.join(".") + l), this.hostname = L.join(".");
|
|
3290
3288
|
break;
|
|
3291
3289
|
}
|
|
@@ -3295,9 +3293,9 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3295
3293
|
var Y = this.port ? ":" + this.port : "", se = this.hostname || "";
|
|
3296
3294
|
this.host = se + Y, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), l[0] !== "/" && (l = "/" + l));
|
|
3297
3295
|
}
|
|
3298
|
-
if (!kO[
|
|
3299
|
-
for (var
|
|
3300
|
-
var X = Tc[
|
|
3296
|
+
if (!kO[g])
|
|
3297
|
+
for (var m = 0, w = Tc.length; m < w; m++) {
|
|
3298
|
+
var X = Tc[m];
|
|
3301
3299
|
if (l.indexOf(X) !== -1) {
|
|
3302
3300
|
var G = encodeURIComponent(X);
|
|
3303
3301
|
G === X && (G = escape(X)), l = l.split(X).join(G);
|
|
@@ -3306,7 +3304,7 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3306
3304
|
var ie = l.indexOf("#");
|
|
3307
3305
|
ie !== -1 && (this.hash = l.substr(ie), l = l.slice(0, ie));
|
|
3308
3306
|
var re = l.indexOf("?");
|
|
3309
|
-
if (re !== -1 ? (this.search = l.substr(re), this.query = l.substr(re + 1), e && (this.query = Sc.parse(this.query)), l = l.slice(0, re)) : e && (this.search = "", this.query = {}), l && (this.pathname = l), Pi[
|
|
3307
|
+
if (re !== -1 ? (this.search = l.substr(re), this.query = l.substr(re + 1), e && (this.query = Sc.parse(this.query)), l = l.slice(0, re)) : e && (this.search = "", this.query = {}), l && (this.pathname = l), Pi[g] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3310
3308
|
var Y = this.pathname || "", H = this.search || "";
|
|
3311
3309
|
this.path = Y + H;
|
|
3312
3310
|
}
|
|
@@ -3351,8 +3349,8 @@ Sr.prototype.resolveObject = function(t) {
|
|
|
3351
3349
|
}
|
|
3352
3350
|
if (t.protocol && t.protocol !== r.protocol) {
|
|
3353
3351
|
if (!Pi[t.protocol]) {
|
|
3354
|
-
for (var p = Object.keys(t),
|
|
3355
|
-
var c = p[
|
|
3352
|
+
for (var p = Object.keys(t), g = 0; g < p.length; g++) {
|
|
3353
|
+
var c = p[g];
|
|
3356
3354
|
r[c] = t[c];
|
|
3357
3355
|
}
|
|
3358
3356
|
return r.href = r.format(), r;
|
|
@@ -3364,8 +3362,8 @@ Sr.prototype.resolveObject = function(t) {
|
|
|
3364
3362
|
} else
|
|
3365
3363
|
r.pathname = t.pathname;
|
|
3366
3364
|
if (r.search = t.search, r.query = t.query, r.host = t.host || "", r.auth = t.auth, r.hostname = t.hostname || t.host, r.port = t.port, r.pathname || r.search) {
|
|
3367
|
-
var d = r.pathname || "",
|
|
3368
|
-
r.path = d +
|
|
3365
|
+
var d = r.pathname || "", m = r.search || "";
|
|
3366
|
+
r.path = d + m;
|
|
3369
3367
|
}
|
|
3370
3368
|
return r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
|
|
3371
3369
|
}
|
|
@@ -3425,12 +3423,12 @@ function zO() {
|
|
|
3425
3423
|
var r;
|
|
3426
3424
|
const e = {
|
|
3427
3425
|
stencil: !0,
|
|
3428
|
-
failIfMajorPerformanceCaveat:
|
|
3426
|
+
failIfMajorPerformanceCaveat: Ie.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
|
|
3429
3427
|
};
|
|
3430
3428
|
try {
|
|
3431
|
-
if (!
|
|
3429
|
+
if (!Ie.ADAPTER.getWebGLRenderingContext())
|
|
3432
3430
|
return !1;
|
|
3433
|
-
const n =
|
|
3431
|
+
const n = Ie.ADAPTER.createCanvas();
|
|
3434
3432
|
let i = n.getContext("webgl", e) || n.getContext("experimental-webgl", e);
|
|
3435
3433
|
const a = !!((r = i == null ? void 0 : i.getContextAttributes()) != null && r.stencil);
|
|
3436
3434
|
if (i) {
|
|
@@ -3593,12 +3591,12 @@ function QO(t, e) {
|
|
|
3593
3591
|
if (p)
|
|
3594
3592
|
return p;
|
|
3595
3593
|
if (u != null && u.closest) {
|
|
3596
|
-
var
|
|
3594
|
+
var g = this.toRgb(), c = 1 / 0, d = "black";
|
|
3597
3595
|
if (!a.length)
|
|
3598
|
-
for (var
|
|
3599
|
-
a[
|
|
3596
|
+
for (var m in r)
|
|
3597
|
+
a[m] = new t(r[m]).toRgb();
|
|
3600
3598
|
for (var _ in r) {
|
|
3601
|
-
var y = (l =
|
|
3599
|
+
var y = (l = g, f = a[_], Math.pow(l.r - f.r, 2) + Math.pow(l.g - f.g, 2) + Math.pow(l.b - f.b, 2));
|
|
3602
3600
|
y < c && (c = y, d = _);
|
|
3603
3601
|
}
|
|
3604
3602
|
return d;
|
|
@@ -3832,7 +3830,7 @@ function rF(t, e = globalThis.location) {
|
|
|
3832
3830
|
}
|
|
3833
3831
|
function xg(t, e = 1) {
|
|
3834
3832
|
var n;
|
|
3835
|
-
const r = (n =
|
|
3833
|
+
const r = (n = Ie.RETINA_PREFIX) == null ? void 0 : n.exec(t);
|
|
3836
3834
|
return r ? parseFloat(r[1]) : e;
|
|
3837
3835
|
}
|
|
3838
3836
|
var Ne = /* @__PURE__ */ ((t) => (t.Renderer = "renderer", t.Application = "application", t.RendererSystem = "renderer-webgl-system", t.RendererPlugin = "renderer-webgl-plugin", t.CanvasRendererSystem = "renderer-canvas-system", t.CanvasRendererPlugin = "renderer-canvas-plugin", t.Asset = "asset", t.LoadParser = "load-parser", t.ResolveParser = "resolve-parser", t.CacheParser = "cache-parser", t.DetectionParser = "detection-parser", t))(Ne || {});
|
|
@@ -4046,11 +4044,11 @@ class Ar {
|
|
|
4046
4044
|
emit(e, r, n, i, a, u, l, f) {
|
|
4047
4045
|
if (arguments.length > 8)
|
|
4048
4046
|
throw new Error("max arguments reached");
|
|
4049
|
-
const { name: p, items:
|
|
4047
|
+
const { name: p, items: g } = this;
|
|
4050
4048
|
this._aliasCount++;
|
|
4051
|
-
for (let c = 0, d =
|
|
4052
|
-
|
|
4053
|
-
return
|
|
4049
|
+
for (let c = 0, d = g.length; c < d; c++)
|
|
4050
|
+
g[c][p](e, r, n, i, a, u, l, f);
|
|
4051
|
+
return g === this.items && this._aliasCount--, this;
|
|
4054
4052
|
}
|
|
4055
4053
|
ensureNonAliasedItems() {
|
|
4056
4054
|
this._aliasCount > 0 && this.items.length > 1 && (this._aliasCount = 0, this.items = this.items.slice(0));
|
|
@@ -4158,12 +4156,12 @@ const oF = {
|
|
|
4158
4156
|
height: l,
|
|
4159
4157
|
wrapMode: f,
|
|
4160
4158
|
format: p,
|
|
4161
|
-
type:
|
|
4159
|
+
type: g,
|
|
4162
4160
|
target: c,
|
|
4163
4161
|
resolution: d,
|
|
4164
|
-
resourceOptions:
|
|
4162
|
+
resourceOptions: m
|
|
4165
4163
|
} = e;
|
|
4166
|
-
t && !(t instanceof Ns) && (t = n0(t,
|
|
4164
|
+
t && !(t instanceof Ns) && (t = n0(t, m), t.internal = !0), this.resolution = d || Ie.RESOLUTION, this.width = Math.round((u || 0) * this.resolution) / this.resolution, this.height = Math.round((l || 0) * this.resolution) / this.resolution, this._mipmap = n, this.anisotropicLevel = i, this._wrapMode = f, this._scaleMode = a, this.format = p, this.type = g, this.target = c, this.alphaMode = r, this.uid = Fs(), this.touched = 0, this.isPowerOfTwo = !1, this._refreshPOT(), this._glTextures = {}, this.dirtyId = 0, this.dirtyStyleId = 0, this.cacheId = null, this.valid = u > 0 && l > 0, this.textureCacheIds = [], this.destroyed = !1, this.resource = null, this._batchEnabled = 0, this._batchLocation = 0, this.parentTextureArray = null, this.setResource(t);
|
|
4167
4165
|
}
|
|
4168
4166
|
get realWidth() {
|
|
4169
4167
|
return Math.round(this.width * this.resolution);
|
|
@@ -4228,7 +4226,7 @@ const oF = {
|
|
|
4228
4226
|
castToBaseTexture() {
|
|
4229
4227
|
return this;
|
|
4230
4228
|
}
|
|
4231
|
-
static from(t, e, r =
|
|
4229
|
+
static from(t, e, r = Ie.STRICT_TEXTURE_CACHE) {
|
|
4232
4230
|
const n = typeof t == "string";
|
|
4233
4231
|
let i = null;
|
|
4234
4232
|
if (n)
|
|
@@ -4334,11 +4332,11 @@ function cF(t, e) {
|
|
|
4334
4332
|
const a = new ArrayBuffer(r * 4);
|
|
4335
4333
|
let u = null, l = 0;
|
|
4336
4334
|
for (let f = 0; f < t.length; f++) {
|
|
4337
|
-
const p = e[f],
|
|
4335
|
+
const p = e[f], g = t[f], c = t0(g);
|
|
4338
4336
|
i[c] || (i[c] = new lF[c](a)), u = i[c];
|
|
4339
|
-
for (let d = 0; d <
|
|
4340
|
-
const
|
|
4341
|
-
u[
|
|
4337
|
+
for (let d = 0; d < g.length; d++) {
|
|
4338
|
+
const m = (d / p | 0) * n + l, _ = d % p;
|
|
4339
|
+
u[m + _] = g[d];
|
|
4342
4340
|
}
|
|
4343
4341
|
l += p;
|
|
4344
4342
|
}
|
|
@@ -4367,8 +4365,8 @@ class Di {
|
|
|
4367
4365
|
this.addAttribute(p[c], r, n, i, a);
|
|
4368
4366
|
return this;
|
|
4369
4367
|
}
|
|
4370
|
-
let
|
|
4371
|
-
return
|
|
4368
|
+
let g = this.buffers.indexOf(r);
|
|
4369
|
+
return g === -1 && (this.buffers.push(r), g = this.buffers.length - 1), this.attributes[e] = new wo(g, n, i, a, u, l, f), this.instanced = this.instanced || f, this;
|
|
4372
4370
|
}
|
|
4373
4371
|
getAttribute(e) {
|
|
4374
4372
|
return this.attributes[e];
|
|
@@ -4435,21 +4433,21 @@ class Di {
|
|
|
4435
4433
|
}
|
|
4436
4434
|
if (r.attributes = u.attributes, u.indexBuffer) {
|
|
4437
4435
|
r.indexBuffer = r.buffers[u.buffers.indexOf(u.indexBuffer)], r.indexBuffer.type = kr.ELEMENT_ARRAY_BUFFER;
|
|
4438
|
-
let l = 0, f = 0, p = 0,
|
|
4436
|
+
let l = 0, f = 0, p = 0, g = 0;
|
|
4439
4437
|
for (let c = 0; c < u.buffers.length; c++)
|
|
4440
4438
|
if (u.buffers[c] !== u.indexBuffer) {
|
|
4441
|
-
|
|
4439
|
+
g = c;
|
|
4442
4440
|
break;
|
|
4443
4441
|
}
|
|
4444
4442
|
for (const c in u.attributes) {
|
|
4445
4443
|
const d = u.attributes[c];
|
|
4446
|
-
(d.buffer | 0) ===
|
|
4444
|
+
(d.buffer | 0) === g && (f += d.size * Tg[d.type] / 4);
|
|
4447
4445
|
}
|
|
4448
4446
|
for (let c = 0; c < e.length; c++) {
|
|
4449
4447
|
const d = e[c].indexBuffer.data;
|
|
4450
|
-
for (let
|
|
4451
|
-
r.indexBuffer.data[
|
|
4452
|
-
l += e[c].buffers[
|
|
4448
|
+
for (let m = 0; m < d.length; m++)
|
|
4449
|
+
r.indexBuffer.data[m + p] += l;
|
|
4450
|
+
l += e[c].buffers[g].data.length / f, p += d.length;
|
|
4453
4451
|
}
|
|
4454
4452
|
}
|
|
4455
4453
|
return r;
|
|
@@ -4528,17 +4526,17 @@ class Ye {
|
|
|
4528
4526
|
const n = this.left, i = this.right, a = this.top, u = this.bottom;
|
|
4529
4527
|
if (i <= n || u <= a)
|
|
4530
4528
|
return !1;
|
|
4531
|
-
const l = Wa[0].set(e.left, e.top), f = Wa[1].set(e.left, e.bottom), p = Wa[2].set(e.right, e.top),
|
|
4529
|
+
const l = Wa[0].set(e.left, e.top), f = Wa[1].set(e.left, e.bottom), p = Wa[2].set(e.right, e.top), g = Wa[3].set(e.right, e.bottom);
|
|
4532
4530
|
if (p.x <= l.x || f.y <= l.y)
|
|
4533
4531
|
return !1;
|
|
4534
4532
|
const c = Math.sign(r.a * r.d - r.b * r.c);
|
|
4535
|
-
if (c === 0 || (r.apply(l, l), r.apply(f, f), r.apply(p, p), r.apply(
|
|
4533
|
+
if (c === 0 || (r.apply(l, l), r.apply(f, f), r.apply(p, p), r.apply(g, g), Math.max(l.x, f.x, p.x, g.x) <= n || Math.min(l.x, f.x, p.x, g.x) >= i || Math.max(l.y, f.y, p.y, g.y) <= a || Math.min(l.y, f.y, p.y, g.y) >= u))
|
|
4536
4534
|
return !1;
|
|
4537
|
-
const d = c * (f.y - l.y),
|
|
4538
|
-
if (Math.max(_, y, b, x) <= d * l.x +
|
|
4535
|
+
const d = c * (f.y - l.y), m = c * (l.x - f.x), _ = d * n + m * a, y = d * i + m * a, b = d * n + m * u, x = d * i + m * u;
|
|
4536
|
+
if (Math.max(_, y, b, x) <= d * l.x + m * l.y || Math.min(_, y, b, x) >= d * g.x + m * g.y)
|
|
4539
4537
|
return !1;
|
|
4540
4538
|
const E = c * (l.y - p.y), w = c * (p.x - l.x), I = E * n + w * a, O = E * i + w * a, F = E * n + w * u, N = E * i + w * u;
|
|
4541
|
-
return !(Math.max(I, O, F, N) <= E * l.x + w * l.y || Math.min(I, O, F, N) >= E *
|
|
4539
|
+
return !(Math.max(I, O, F, N) <= E * l.x + w * l.y || Math.min(I, O, F, N) >= E * g.x + w * g.y);
|
|
4542
4540
|
}
|
|
4543
4541
|
pad(e = 0, r = e) {
|
|
4544
4542
|
return this.x -= e, this.y -= r, this.width += e * 2, this.height += r * 2, this;
|
|
@@ -4619,8 +4617,8 @@ class As {
|
|
|
4619
4617
|
let n = !1;
|
|
4620
4618
|
const i = this.points.length / 2;
|
|
4621
4619
|
for (let a = 0, u = i - 1; a < i; u = a++) {
|
|
4622
|
-
const l = this.points[a * 2], f = this.points[a * 2 + 1], p = this.points[u * 2],
|
|
4623
|
-
f > r !=
|
|
4620
|
+
const l = this.points[a * 2], f = this.points[a * 2 + 1], p = this.points[u * 2], g = this.points[u * 2 + 1];
|
|
4621
|
+
f > r != g > r && e < (p - l) * ((r - f) / (g - f)) + l && (n = !n);
|
|
4624
4622
|
}
|
|
4625
4623
|
return n;
|
|
4626
4624
|
}
|
|
@@ -5344,9 +5342,9 @@ const l0 = {};
|
|
|
5344
5342
|
let _i = l0;
|
|
5345
5343
|
function bF() {
|
|
5346
5344
|
if (_i === l0 || _i != null && _i.isContextLost()) {
|
|
5347
|
-
const t =
|
|
5345
|
+
const t = Ie.ADAPTER.createCanvas();
|
|
5348
5346
|
let e;
|
|
5349
|
-
|
|
5347
|
+
Ie.PREFER_ENV >= Kn.WEBGL2 && (e = t.getContext("webgl2", {})), e || (e = t.getContext("webgl", {}) || t.getContext("experimental-webgl", {}), e ? e.getExtension("WEBGL_draw_buffers") : e = null), _i = e;
|
|
5350
5348
|
}
|
|
5351
5349
|
return _i;
|
|
5352
5350
|
}
|
|
@@ -5361,7 +5359,7 @@ function TF() {
|
|
|
5361
5359
|
}
|
|
5362
5360
|
function Sg(t, e) {
|
|
5363
5361
|
const r = t.getShaderSource(e).split(`
|
|
5364
|
-
`).map((p,
|
|
5362
|
+
`).map((p, g) => `${g}: ${p}`), n = t.getShaderInfoLog(e), i = n.split(`
|
|
5365
5363
|
`), a = {}, u = i.map((p) => parseFloat(p.replace(/^ERROR\: 0\:([\d]+)\:.*$/, "$1"))).filter((p) => p && !a[p] ? (a[p] = !0, !0) : !1), l = [""];
|
|
5366
5364
|
u.forEach((p) => {
|
|
5367
5365
|
r[p - 1] = `%c${r[p - 1]}%c`, l.push("background: #FF0000; color:#FFFFFF; font-size: 10px", "font-size: 10px");
|
|
@@ -5582,7 +5580,7 @@ function RF() {
|
|
|
5582
5580
|
}
|
|
5583
5581
|
function PF(t) {
|
|
5584
5582
|
let e = !0;
|
|
5585
|
-
const r =
|
|
5583
|
+
const r = Ie.ADAPTER.getNavigator();
|
|
5586
5584
|
if (Ai.tablet || Ai.phone) {
|
|
5587
5585
|
if (Ai.apple.device) {
|
|
5588
5586
|
const n = r.userAgent.match(/OS (\d+)_(\d+)?/);
|
|
@@ -5677,7 +5675,7 @@ const vr = class extends f0 {
|
|
|
5677
5675
|
}
|
|
5678
5676
|
contextChange() {
|
|
5679
5677
|
const t = this.renderer.gl;
|
|
5680
|
-
|
|
5678
|
+
Ie.PREFER_ENV === Kn.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), vr.defaultMaxTextures), this.maxTextures = aF(this.maxTextures, t)), this._shader = this.shaderGenerator.generateShader(this.maxTextures);
|
|
5681
5679
|
for (let e = 0; e < this._packedGeometryPoolSize; e++)
|
|
5682
5680
|
this._packedGeometries[e] = new this.geometryClass();
|
|
5683
5681
|
this.initFlushBuffers();
|
|
@@ -5707,13 +5705,13 @@ const vr = class extends f0 {
|
|
|
5707
5705
|
} = this, r = vr._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, a = this.renderer.textureGC.count;
|
|
5708
5706
|
let u = ++Be._globalBatch, l = 0, f = r[0], p = 0;
|
|
5709
5707
|
n.copyBoundTextures(i, e);
|
|
5710
|
-
for (let
|
|
5711
|
-
const c = t[
|
|
5712
|
-
t[
|
|
5708
|
+
for (let g = 0; g < this._bufferSize; ++g) {
|
|
5709
|
+
const c = t[g];
|
|
5710
|
+
t[g] = null, c._batchEnabled !== u && (f.count >= e && (n.boundArray(f, i, u, e), this.buildDrawCalls(f, p, g), p = g, f = r[++l], ++u), c._batchEnabled = u, c.touched = a, f.elements[f.count++] = c);
|
|
5713
5711
|
}
|
|
5714
5712
|
f.count > 0 && (n.boundArray(f, i, u, e), this.buildDrawCalls(f, p, this._bufferSize), ++l, ++u);
|
|
5715
|
-
for (let
|
|
5716
|
-
i[
|
|
5713
|
+
for (let g = 0; g < i.length; g++)
|
|
5714
|
+
i[g] = null;
|
|
5717
5715
|
Be._globalBatch = u;
|
|
5718
5716
|
}
|
|
5719
5717
|
buildDrawCalls(t, e, r) {
|
|
@@ -5723,13 +5721,13 @@ const vr = class extends f0 {
|
|
|
5723
5721
|
_indexBuffer: a,
|
|
5724
5722
|
vertexSize: u
|
|
5725
5723
|
} = this, l = vr._drawCallPool;
|
|
5726
|
-
let f = this._dcIndex, p = this._aIndex,
|
|
5724
|
+
let f = this._dcIndex, p = this._aIndex, g = this._iIndex, c = l[f];
|
|
5727
5725
|
c.start = this._iIndex, c.texArray = t;
|
|
5728
5726
|
for (let d = e; d < r; ++d) {
|
|
5729
|
-
const
|
|
5730
|
-
n[d] = null, e < d && c.blend !== y && (c.size =
|
|
5727
|
+
const m = n[d], _ = m._texture.baseTexture, y = eF[_.alphaMode ? 1 : 0][m.blendMode];
|
|
5728
|
+
n[d] = null, e < d && c.blend !== y && (c.size = g - c.start, e = d, c = l[++f], c.texArray = t, c.start = g), this.packInterleavedGeometry(m, i, a, p, g), p += m.vertexData.length / 2 * u, g += m.indices.length, c.blend = y;
|
|
5731
5729
|
}
|
|
5732
|
-
e < r && (c.size =
|
|
5730
|
+
e < r && (c.size = g - c.start, ++f), this._dcIndex = f, this._aIndex = p, this._iIndex = g;
|
|
5733
5731
|
}
|
|
5734
5732
|
bindAndClearTexArray(t) {
|
|
5735
5733
|
const e = this.renderer.texture;
|
|
@@ -5749,8 +5747,8 @@ const vr = class extends f0 {
|
|
|
5749
5747
|
const t = this._dcIndex, { gl: e, state: r } = this.renderer, n = vr._drawCallPool;
|
|
5750
5748
|
let i = null;
|
|
5751
5749
|
for (let a = 0; a < t; a++) {
|
|
5752
|
-
const { texArray: u, type: l, size: f, start: p, blend:
|
|
5753
|
-
i !== u && (i = u, this.bindAndClearTexArray(u)), this.state.blendMode =
|
|
5750
|
+
const { texArray: u, type: l, size: f, start: p, blend: g } = n[a];
|
|
5751
|
+
i !== u && (i = u, this.bindAndClearTexArray(u)), this.state.blendMode = g, r.set(this.state), e.drawElements(l, f, e.UNSIGNED_SHORT, p * 2);
|
|
5754
5752
|
}
|
|
5755
5753
|
}
|
|
5756
5754
|
flush() {
|
|
@@ -5783,9 +5781,9 @@ const vr = class extends f0 {
|
|
|
5783
5781
|
const {
|
|
5784
5782
|
uint32View: a,
|
|
5785
5783
|
float32View: u
|
|
5786
|
-
} = e, l = n / this.vertexSize, f = t.uvs, p = t.indices,
|
|
5787
|
-
for (let _ = 0; _ <
|
|
5788
|
-
u[n++] =
|
|
5784
|
+
} = e, l = n / this.vertexSize, f = t.uvs, p = t.indices, g = t.vertexData, c = t._texture.baseTexture._batchLocation, d = Math.min(t.worldAlpha, 1), m = Mt.shared.setValue(t._tintRGB).toPremultiplied(d);
|
|
5785
|
+
for (let _ = 0; _ < g.length; _ += 2)
|
|
5786
|
+
u[n++] = g[_], u[n++] = g[_ + 1], u[n++] = f[_], u[n++] = f[_ + 1], a[n++] = m, u[n++] = c;
|
|
5789
5787
|
for (let _ = 0; _ < p.length; _++)
|
|
5790
5788
|
r[i++] = l + p[_];
|
|
5791
5789
|
}
|
|
@@ -5925,8 +5923,8 @@ class d0 {
|
|
|
5925
5923
|
const { elements: a, ids: u, count: l } = e;
|
|
5926
5924
|
let f = 0;
|
|
5927
5925
|
for (let p = 0; p < l; p++) {
|
|
5928
|
-
const
|
|
5929
|
-
if (c >= 0 && c < i && r[c] ===
|
|
5926
|
+
const g = a[p], c = g._batchLocation;
|
|
5927
|
+
if (c >= 0 && c < i && r[c] === g) {
|
|
5930
5928
|
u[p] = c;
|
|
5931
5929
|
continue;
|
|
5932
5930
|
}
|
|
@@ -5936,7 +5934,7 @@ class d0 {
|
|
|
5936
5934
|
f++;
|
|
5937
5935
|
continue;
|
|
5938
5936
|
}
|
|
5939
|
-
u[p] = f,
|
|
5937
|
+
u[p] = f, g._batchLocation = f, r[f] = g;
|
|
5940
5938
|
break;
|
|
5941
5939
|
}
|
|
5942
5940
|
}
|
|
@@ -5989,7 +5987,7 @@ class zo {
|
|
|
5989
5987
|
}
|
|
5990
5988
|
createContext(e, r) {
|
|
5991
5989
|
let n;
|
|
5992
|
-
if (
|
|
5990
|
+
if (Ie.PREFER_ENV >= Kn.WEBGL2 && (n = e.getContext("webgl2", r)), n)
|
|
5993
5991
|
this.webGLVersion = 2;
|
|
5994
5992
|
else if (this.webGLVersion = 1, n = e.getContext("webgl", r) || e.getContext("experimental-webgl", r), !n)
|
|
5995
5993
|
throw new Error("This browser does not support WebGL. Try using the canvas renderer");
|
|
@@ -6176,7 +6174,7 @@ class g0 extends gn {
|
|
|
6176
6174
|
const n = new Image();
|
|
6177
6175
|
gn.crossOrigin(n, e, r.crossorigin), n.src = e, e = n;
|
|
6178
6176
|
}
|
|
6179
|
-
super(e), !e.complete && this._width && this._height && (this._width = 0, this._height = 0), this.url = e.src, this._process = null, this.preserveBitmap = !1, this.createBitmap = (r.createBitmap ??
|
|
6177
|
+
super(e), !e.complete && this._width && this._height && (this._width = 0, this._height = 0), this.url = e.src, this._process = null, this.preserveBitmap = !1, this.createBitmap = (r.createBitmap ?? Ie.CREATE_IMAGE_BITMAP) && !!globalThis.createImageBitmap, this.alphaMode = typeof r.alphaMode == "number" ? r.alphaMode : null, this.bitmap = null, this._load = null, r.autoLoad !== !1 && this.load();
|
|
6180
6178
|
}
|
|
6181
6179
|
load(e) {
|
|
6182
6180
|
return this._load ? this._load : (e !== void 0 && (this.createBitmap = e), this._load = new Promise((r, n) => {
|
|
@@ -6292,7 +6290,7 @@ class ke extends ko {
|
|
|
6292
6290
|
updateUvs() {
|
|
6293
6291
|
this._uvs === Ig && (this._uvs = new m0()), this._uvs.set(this._frame, this.baseTexture, this.rotate), this._updateID++;
|
|
6294
6292
|
}
|
|
6295
|
-
static from(e, r = {}, n =
|
|
6293
|
+
static from(e, r = {}, n = Ie.STRICT_TEXTURE_CACHE) {
|
|
6296
6294
|
const i = typeof e == "string";
|
|
6297
6295
|
let a = null;
|
|
6298
6296
|
if (i)
|
|
@@ -6360,8 +6358,8 @@ class ke extends ko {
|
|
|
6360
6358
|
this._frame = e, this.noFrame = !1;
|
|
6361
6359
|
const { x: r, y: n, width: i, height: a } = e, u = r + i > this.baseTexture.width, l = n + a > this.baseTexture.height;
|
|
6362
6360
|
if (u || l) {
|
|
6363
|
-
const f = u && l ? "and" : "or", p = `X: ${r} + ${i} = ${r + i} > ${this.baseTexture.width}`,
|
|
6364
|
-
throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${p} ${f} ${
|
|
6361
|
+
const f = u && l ? "and" : "or", p = `X: ${r} + ${i} = ${r + i} > ${this.baseTexture.width}`, g = `Y: ${n} + ${a} = ${n + a} > ${this.baseTexture.height}`;
|
|
6362
|
+
throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${p} ${f} ${g}`);
|
|
6365
6363
|
}
|
|
6366
6364
|
this.valid = i && a && this.baseTexture.valid, !this.trim && !this.rotate && (this.orig = e), this.valid && this.updateUvs();
|
|
6367
6365
|
}
|
|
@@ -6385,7 +6383,7 @@ class ke extends ko {
|
|
|
6385
6383
|
}
|
|
6386
6384
|
static get WHITE() {
|
|
6387
6385
|
if (!ke._WHITE) {
|
|
6388
|
-
const e =
|
|
6386
|
+
const e = Ie.ADAPTER.createCanvas(16, 16), r = e.getContext("2d");
|
|
6389
6387
|
e.width = 16, e.height = 16, r.fillStyle = "white", r.fillRect(0, 0, 16, 16), ke._WHITE = new ke(Be.from(e)), Za(ke._WHITE), Za(ke._WHITE.baseTexture);
|
|
6390
6388
|
}
|
|
6391
6389
|
return ke._WHITE;
|
|
@@ -6543,16 +6541,16 @@ class _0 {
|
|
|
6543
6541
|
}
|
|
6544
6542
|
push(e, r) {
|
|
6545
6543
|
const n = this.renderer, i = this.defaultFilterStack, a = this.statePool.pop() || new BF(), u = this.renderer.renderTexture;
|
|
6546
|
-
let l = r[0].resolution, f = r[0].multisample, p = r[0].padding,
|
|
6544
|
+
let l = r[0].resolution, f = r[0].multisample, p = r[0].padding, g = r[0].autoFit, c = r[0].legacy ?? !0;
|
|
6547
6545
|
for (let _ = 1; _ < r.length; _++) {
|
|
6548
6546
|
const y = r[_];
|
|
6549
|
-
l = Math.min(l, y.resolution), f = Math.min(f, y.multisample), p = this.useMaxPadding ? Math.max(p, y.padding) : p + y.padding,
|
|
6547
|
+
l = Math.min(l, y.resolution), f = Math.min(f, y.multisample), p = this.useMaxPadding ? Math.max(p, y.padding) : p + y.padding, g = g && y.autoFit, c = c || (y.legacy ?? !0);
|
|
6550
6548
|
}
|
|
6551
6549
|
i.length === 1 && (this.defaultFilterStack[0].renderTexture = u.current), i.push(a), a.resolution = l, a.multisample = f, a.legacy = c, a.target = e, a.sourceFrame.copyFrom(e.filterArea || e.getBounds(!0)), a.sourceFrame.pad(p);
|
|
6552
6550
|
const d = this.tempRect.copyFrom(u.sourceFrame);
|
|
6553
|
-
n.projection.transform && this.transformAABB(ql.copyFrom(n.projection.transform).invert(), d),
|
|
6554
|
-
const
|
|
6555
|
-
|
|
6551
|
+
n.projection.transform && this.transformAABB(ql.copyFrom(n.projection.transform).invert(), d), g ? (a.sourceFrame.fit(d), (a.sourceFrame.width <= 0 || a.sourceFrame.height <= 0) && (a.sourceFrame.width = 0, a.sourceFrame.height = 0)) : a.sourceFrame.intersects(d) || (a.sourceFrame.width = 0, a.sourceFrame.height = 0), this.roundFrame(a.sourceFrame, u.current ? u.current.resolution : n.resolution, u.sourceFrame, u.destinationFrame, n.projection.transform), a.renderTexture = this.getOptimalFilterTexture(a.sourceFrame.width, a.sourceFrame.height, l, f), a.filters = r, a.destinationFrame.width = a.renderTexture.width, a.destinationFrame.height = a.renderTexture.height;
|
|
6552
|
+
const m = this.tempRect;
|
|
6553
|
+
m.x = 0, m.y = 0, m.width = a.sourceFrame.width, m.height = a.sourceFrame.height, a.renderTexture.filterFrame = a.sourceFrame, a.bindingSourceFrame.copyFrom(u.sourceFrame), a.bindingDestinationFrame.copyFrom(u.destinationFrame), a.transform = n.projection.transform, n.projection.transform = null, u.bind(a.renderTexture, a.sourceFrame, m), n.framebuffer.clear(0, 0, 0, 0);
|
|
6556
6554
|
}
|
|
6557
6555
|
pop() {
|
|
6558
6556
|
const e = this.defaultFilterStack, r = e.pop(), n = r.filters;
|
|
@@ -6569,15 +6567,15 @@ class _0 {
|
|
|
6569
6567
|
if (this.renderer.framebuffer.blit(), n.length === 1)
|
|
6570
6568
|
n[0].apply(this, r.renderTexture, f.renderTexture, Nn.BLEND, r), this.returnFilterTexture(r.renderTexture);
|
|
6571
6569
|
else {
|
|
6572
|
-
let p = r.renderTexture,
|
|
6573
|
-
|
|
6570
|
+
let p = r.renderTexture, g = this.getOptimalFilterTexture(p.width, p.height, r.resolution);
|
|
6571
|
+
g.filterFrame = p.filterFrame;
|
|
6574
6572
|
let c = 0;
|
|
6575
6573
|
for (c = 0; c < n.length - 1; ++c) {
|
|
6576
|
-
c === 1 && r.multisample > 1 && (
|
|
6574
|
+
c === 1 && r.multisample > 1 && (g = this.getOptimalFilterTexture(p.width, p.height, r.resolution), g.filterFrame = p.filterFrame), n[c].apply(this, p, g, Nn.CLEAR, r);
|
|
6577
6575
|
const d = p;
|
|
6578
|
-
p =
|
|
6576
|
+
p = g, g = d;
|
|
6579
6577
|
}
|
|
6580
|
-
n[c].apply(this, p, f.renderTexture, Nn.BLEND, r), c > 1 && r.multisample > 1 && this.returnFilterTexture(r.renderTexture), this.returnFilterTexture(p), this.returnFilterTexture(
|
|
6578
|
+
n[c].apply(this, p, f.renderTexture, Nn.BLEND, r), c > 1 && r.multisample > 1 && this.returnFilterTexture(r.renderTexture), this.returnFilterTexture(p), this.returnFilterTexture(g);
|
|
6581
6579
|
}
|
|
6582
6580
|
r.clear(), this.statePool.push(r);
|
|
6583
6581
|
}
|
|
@@ -6629,8 +6627,8 @@ class _0 {
|
|
|
6629
6627
|
transformAABB(e, r) {
|
|
6630
6628
|
const n = Qa[0], i = Qa[1], a = Qa[2], u = Qa[3];
|
|
6631
6629
|
n.set(r.left, r.top), i.set(r.left, r.bottom), a.set(r.right, r.top), u.set(r.right, r.bottom), e.apply(n, n), e.apply(i, i), e.apply(a, a), e.apply(u, u);
|
|
6632
|
-
const l = Math.min(n.x, i.x, a.x, u.x), f = Math.min(n.y, i.y, a.y, u.y), p = Math.max(n.x, i.x, a.x, u.x),
|
|
6633
|
-
r.x = l, r.y = f, r.width = p - l, r.height =
|
|
6630
|
+
const l = Math.min(n.x, i.x, a.x, u.x), f = Math.min(n.y, i.y, a.y, u.y), p = Math.max(n.x, i.x, a.x, u.x), g = Math.max(n.y, i.y, a.y, u.y);
|
|
6631
|
+
r.x = l, r.y = f, r.width = p - l, r.height = g - f;
|
|
6634
6632
|
}
|
|
6635
6633
|
roundFrame(e, r, n, i, a) {
|
|
6636
6634
|
if (!(e.width <= 0 || e.height <= 0 || n.width <= 0 || n.height <= 0)) {
|
|
@@ -6663,7 +6661,7 @@ class y0 {
|
|
|
6663
6661
|
const e = this.gl = this.renderer.gl;
|
|
6664
6662
|
if (this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.current = this.unknownFramebuffer, this.viewport = new Ye(), this.hasMRT = !0, this.writeDepthTexture = !0, this.renderer.context.webGLVersion === 1) {
|
|
6665
6663
|
let r = this.renderer.context.extensions.drawBuffers, n = this.renderer.context.extensions.depthTexture;
|
|
6666
|
-
|
|
6664
|
+
Ie.PREFER_ENV === Kn.WEBGL_LEGACY && (r = null, n = null), r ? e.drawBuffers = (i) => r.drawBuffersWEBGL(i) : (this.hasMRT = !1, e.drawBuffers = () => {
|
|
6667
6665
|
}), n || (this.writeDepthTexture = !1);
|
|
6668
6666
|
} else
|
|
6669
6667
|
this.msaaSamples = e.getInternalformatParameter(e.RENDERBUFFER, e.RGBA8, e.SAMPLES);
|
|
@@ -6720,8 +6718,8 @@ class y0 {
|
|
|
6720
6718
|
n.drawBuffers || (u = Math.min(u, 1)), i.multisample > 1 && this.canMultisampleFramebuffer(e) ? i.msaaBuffer = i.msaaBuffer || n.createRenderbuffer() : i.msaaBuffer && (n.deleteRenderbuffer(i.msaaBuffer), i.msaaBuffer = null, i.blitFramebuffer && (i.blitFramebuffer.dispose(), i.blitFramebuffer = null));
|
|
6721
6719
|
const l = [];
|
|
6722
6720
|
for (let f = 0; f < u; f++) {
|
|
6723
|
-
const p = a[f],
|
|
6724
|
-
this.renderer.texture.bind(
|
|
6721
|
+
const p = a[f], g = p.parentTextureArray || p;
|
|
6722
|
+
this.renderer.texture.bind(g, 0), f === 0 && i.msaaBuffer ? (n.bindRenderbuffer(n.RENDERBUFFER, i.msaaBuffer), n.renderbufferStorageMultisample(n.RENDERBUFFER, i.multisample, g._glTextures[this.CONTEXT_UID].internalFormat, e.width, e.height), n.framebufferRenderbuffer(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.RENDERBUFFER, i.msaaBuffer)) : (n.framebufferTexture2D(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0 + f, p.target, g._glTextures[this.CONTEXT_UID].texture, r), l.push(n.COLOR_ATTACHMENT0 + f));
|
|
6725
6723
|
}
|
|
6726
6724
|
if (l.length > 1 && n.drawBuffers(l), e.depthTexture && this.writeDepthTexture) {
|
|
6727
6725
|
const p = e.depthTexture;
|
|
@@ -6754,10 +6752,10 @@ class y0 {
|
|
|
6754
6752
|
if (!e) {
|
|
6755
6753
|
if (!f.msaaBuffer)
|
|
6756
6754
|
return;
|
|
6757
|
-
const
|
|
6758
|
-
if (!
|
|
6755
|
+
const g = i.colorTextures[0];
|
|
6756
|
+
if (!g)
|
|
6759
6757
|
return;
|
|
6760
|
-
f.blitFramebuffer || (f.blitFramebuffer = new Oc(i.width, i.height), f.blitFramebuffer.addColorTexture(0,
|
|
6758
|
+
f.blitFramebuffer || (f.blitFramebuffer = new Oc(i.width, i.height), f.blitFramebuffer.addColorTexture(0, g)), e = f.blitFramebuffer, e.colorTextures[0] !== g && (e.colorTextures[0] = g, e.dirtyId++, e.dirtyFormat++), (e.width !== i.width || e.height !== i.height) && (e.width = i.width, e.height = i.height, e.dirtyId++, e.dirtySize++);
|
|
6761
6759
|
}
|
|
6762
6760
|
r || (r = $F, r.width = i.width, r.height = i.height), n || (n = r);
|
|
6763
6761
|
const p = r.width === n.width && r.height === n.height;
|
|
@@ -6810,7 +6808,7 @@ class x0 {
|
|
|
6810
6808
|
const e = this.gl = this.renderer.gl, r = this.renderer.context;
|
|
6811
6809
|
if (this.CONTEXT_UID = this.renderer.CONTEXT_UID, r.webGLVersion !== 2) {
|
|
6812
6810
|
let n = this.renderer.context.extensions.vertexArrayObject;
|
|
6813
|
-
|
|
6811
|
+
Ie.PREFER_ENV === Kn.WEBGL_LEGACY && (n = null), n ? (e.createVertexArray = () => n.createVertexArrayOES(), e.bindVertexArray = (i) => n.bindVertexArrayOES(i), e.deleteVertexArray = (i) => n.deleteVertexArrayOES(i)) : (this.hasVao = !1, e.createVertexArray = () => null, e.bindVertexArray = () => null, e.deleteVertexArray = () => null);
|
|
6814
6812
|
}
|
|
6815
6813
|
if (r.webGLVersion !== 2) {
|
|
6816
6814
|
const n = e.getExtension("ANGLE_instanced_arrays");
|
|
@@ -6852,24 +6850,24 @@ class x0 {
|
|
|
6852
6850
|
const i = this.gl, a = this.CONTEXT_UID, u = this.renderer.buffer, l = r.program;
|
|
6853
6851
|
l.glPrograms[a] || this.renderer.shader.generateProgram(r), this.checkCompatibility(e, l);
|
|
6854
6852
|
const f = this.getSignature(e, l), p = e.glVertexArrayObjects[this.CONTEXT_UID];
|
|
6855
|
-
let
|
|
6856
|
-
if (
|
|
6857
|
-
return p[l.id] =
|
|
6858
|
-
const c = e.buffers, d = e.attributes,
|
|
6853
|
+
let g = p[f];
|
|
6854
|
+
if (g)
|
|
6855
|
+
return p[l.id] = g, g;
|
|
6856
|
+
const c = e.buffers, d = e.attributes, m = {}, _ = {};
|
|
6859
6857
|
for (const y in c)
|
|
6860
|
-
|
|
6858
|
+
m[y] = 0, _[y] = 0;
|
|
6861
6859
|
for (const y in d)
|
|
6862
|
-
!d[y].size && l.attributeData[y] ? d[y].size = l.attributeData[y].size : d[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`),
|
|
6860
|
+
!d[y].size && l.attributeData[y] ? d[y].size = l.attributeData[y].size : d[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`), m[d[y].buffer] += d[y].size * Yl[d[y].type];
|
|
6863
6861
|
for (const y in d) {
|
|
6864
6862
|
const b = d[y], x = b.size;
|
|
6865
|
-
b.stride === void 0 && (
|
|
6863
|
+
b.stride === void 0 && (m[b.buffer] === x * Yl[b.type] ? b.stride = 0 : b.stride = m[b.buffer]), b.start === void 0 && (b.start = _[b.buffer], _[b.buffer] += x * Yl[b.type]);
|
|
6866
6864
|
}
|
|
6867
|
-
|
|
6865
|
+
g = i.createVertexArray(), i.bindVertexArray(g);
|
|
6868
6866
|
for (let y = 0; y < c.length; y++) {
|
|
6869
6867
|
const b = c[y];
|
|
6870
6868
|
u.bind(b), n && b._glBuffers[a].refCount++;
|
|
6871
6869
|
}
|
|
6872
|
-
return this.activateVao(e, l), p[l.id] =
|
|
6870
|
+
return this.activateVao(e, l), p[l.id] = g, p[f] = g, i.bindVertexArray(null), u.unbind(kr.ARRAY_BUFFER), g;
|
|
6873
6871
|
}
|
|
6874
6872
|
disposeGeometry(e, r) {
|
|
6875
6873
|
var l;
|
|
@@ -6903,13 +6901,13 @@ class x0 {
|
|
|
6903
6901
|
e.indexBuffer && a.bind(e.indexBuffer);
|
|
6904
6902
|
let f = null;
|
|
6905
6903
|
for (const p in l) {
|
|
6906
|
-
const
|
|
6904
|
+
const g = l[p], c = u[g.buffer], d = c._glBuffers[i];
|
|
6907
6905
|
if (r.attributeData[p]) {
|
|
6908
6906
|
f !== d && (a.bind(c), f = d);
|
|
6909
|
-
const
|
|
6910
|
-
if (n.enableVertexAttribArray(
|
|
6907
|
+
const m = r.attributeData[p].location;
|
|
6908
|
+
if (n.enableVertexAttribArray(m), n.vertexAttribPointer(m, g.size, g.type || n.FLOAT, g.normalized, g.stride, g.start), g.instance)
|
|
6911
6909
|
if (this.hasInstance)
|
|
6912
|
-
n.vertexAttribDivisor(
|
|
6910
|
+
n.vertexAttribDivisor(m, g.divisor);
|
|
6913
6911
|
else
|
|
6914
6912
|
throw new Error("geometry error, GPU Instancing is not supported on this device");
|
|
6915
6913
|
}
|
|
@@ -7110,8 +7108,8 @@ class b0 {
|
|
|
7110
7108
|
const a = this.renderer, u = a.renderTexture;
|
|
7111
7109
|
let l, f;
|
|
7112
7110
|
if (u.current) {
|
|
7113
|
-
const
|
|
7114
|
-
l = e.resolution ||
|
|
7111
|
+
const g = u.current;
|
|
7112
|
+
l = e.resolution || g.resolution, f = e.multisample ?? g.multisample;
|
|
7115
7113
|
} else
|
|
7116
7114
|
l = e.resolution || a.resolution, f = e.multisample ?? a.multisample;
|
|
7117
7115
|
i[0].resolution = l, i[0].multisample = f, i[0].maskSprite = r;
|
|
@@ -7159,7 +7157,7 @@ class T0 {
|
|
|
7159
7157
|
}
|
|
7160
7158
|
const Pg = new Dt(), Mg = [], so = class extends T0 {
|
|
7161
7159
|
constructor(t) {
|
|
7162
|
-
super(t), this.glConst =
|
|
7160
|
+
super(t), this.glConst = Ie.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST;
|
|
7163
7161
|
}
|
|
7164
7162
|
getStackLength() {
|
|
7165
7163
|
const t = this.maskStack[this.maskStack.length - 1];
|
|
@@ -7211,7 +7209,7 @@ w0.extension = {
|
|
|
7211
7209
|
We.add(w0);
|
|
7212
7210
|
class S0 extends T0 {
|
|
7213
7211
|
constructor(e) {
|
|
7214
|
-
super(e), this.glConst =
|
|
7212
|
+
super(e), this.glConst = Ie.ADAPTER.getWebGLRenderingContext().STENCIL_TEST;
|
|
7215
7213
|
}
|
|
7216
7214
|
getStackLength() {
|
|
7217
7215
|
const e = this.maskStack[this.maskStack.length - 1];
|
|
@@ -7356,8 +7354,8 @@ class I0 {
|
|
|
7356
7354
|
clear(e, r) {
|
|
7357
7355
|
const n = this.current ? this.current.baseTexture.clear : this.renderer.background.backgroundColor, i = e ? Mt.shared.setValue(e) : n, a = this.destinationFrame, u = this.current ? this.current.baseTexture : this.renderer._view.screen, l = a.width !== u.width || a.height !== u.height;
|
|
7358
7356
|
if (l) {
|
|
7359
|
-
let { x: f, y: p, width:
|
|
7360
|
-
f = Math.round(f), p = Math.round(p),
|
|
7357
|
+
let { x: f, y: p, width: g, height: c } = this.viewportFrame;
|
|
7358
|
+
f = Math.round(f), p = Math.round(p), g = Math.round(g), c = Math.round(c), this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST), this.renderer.gl.scissor(f, p, g, c);
|
|
7361
7359
|
}
|
|
7362
7360
|
this.renderer.framebuffer.clear(i.red, i.green, i.blue, i.alpha, r), l && this.renderer.scissor.pop();
|
|
7363
7361
|
}
|
|
@@ -7422,18 +7420,18 @@ function KF(t, e) {
|
|
|
7422
7420
|
const a = (f = e.extra) == null ? void 0 : f.transformFeedbackVaryings;
|
|
7423
7421
|
if (a && (typeof t.transformFeedbackVaryings != "function" ? console.warn("TransformFeedback is not supported but TransformFeedbackVaryings are given.") : t.transformFeedbackVaryings(i, a.names, a.bufferMode === "separate" ? t.SEPARATE_ATTRIBS : t.INTERLEAVED_ATTRIBS)), t.linkProgram(i), t.getProgramParameter(i, t.LINK_STATUS) || wF(t, i, r, n), e.attributeData = qF(i, t), e.uniformData = YF(i, t), !/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)) {
|
|
7424
7422
|
const p = Object.keys(e.attributeData);
|
|
7425
|
-
p.sort((
|
|
7426
|
-
for (let
|
|
7427
|
-
e.attributeData[p[
|
|
7423
|
+
p.sort((g, c) => g > c ? 1 : -1);
|
|
7424
|
+
for (let g = 0; g < p.length; g++)
|
|
7425
|
+
e.attributeData[p[g]].location = g, t.bindAttribLocation(i, g, p[g]);
|
|
7428
7426
|
t.linkProgram(i);
|
|
7429
7427
|
}
|
|
7430
7428
|
t.deleteShader(r), t.deleteShader(n);
|
|
7431
7429
|
const u = {};
|
|
7432
7430
|
for (const p in e.uniformData) {
|
|
7433
|
-
const
|
|
7431
|
+
const g = e.uniformData[p];
|
|
7434
7432
|
u[p] = {
|
|
7435
7433
|
location: t.getUniformLocation(i, p),
|
|
7436
|
-
value: u0(
|
|
7434
|
+
value: u0(g.type, g.size)
|
|
7437
7435
|
};
|
|
7438
7436
|
}
|
|
7439
7437
|
return new jF(i, u);
|
|
@@ -7546,17 +7544,17 @@ function tN(t, e) {
|
|
|
7546
7544
|
`];
|
|
7547
7545
|
for (let u = 0; u < n.length; u++) {
|
|
7548
7546
|
const l = n[u], f = t.uniforms[l.data.name], p = l.data.name;
|
|
7549
|
-
let
|
|
7547
|
+
let g = !1;
|
|
7550
7548
|
for (let c = 0; c < Oi.length; c++) {
|
|
7551
7549
|
const d = Oi[c];
|
|
7552
7550
|
if (d.codeUbo && d.test(l.data, f)) {
|
|
7553
|
-
a.push(`offset = ${l.offset / 4};`, Oi[c].codeUbo(l.data.name, f)),
|
|
7551
|
+
a.push(`offset = ${l.offset / 4};`, Oi[c].codeUbo(l.data.name, f)), g = !0;
|
|
7554
7552
|
break;
|
|
7555
7553
|
}
|
|
7556
7554
|
}
|
|
7557
|
-
if (!
|
|
7555
|
+
if (!g)
|
|
7558
7556
|
if (l.data.size > 1) {
|
|
7559
|
-
const c = c0(l.data.type), d = Math.max(R0[l.data.type] / 16, 1),
|
|
7557
|
+
const c = c0(l.data.type), d = Math.max(R0[l.data.type] / 16, 1), m = c / d, _ = (4 - m % 4) % 4;
|
|
7560
7558
|
a.push(`
|
|
7561
7559
|
cv = ud.${p}.value;
|
|
7562
7560
|
v = uv.${p};
|
|
@@ -7566,7 +7564,7 @@ function tN(t, e) {
|
|
|
7566
7564
|
|
|
7567
7565
|
for(var i=0; i < ${l.data.size * d}; i++)
|
|
7568
7566
|
{
|
|
7569
|
-
for(var j = 0; j < ${
|
|
7567
|
+
for(var j = 0; j < ${m}; j++)
|
|
7570
7568
|
{
|
|
7571
7569
|
data[offset++] = v[t++];
|
|
7572
7570
|
}
|
|
@@ -8138,7 +8136,7 @@ class Wo {
|
|
|
8138
8136
|
this.renderer = e;
|
|
8139
8137
|
}
|
|
8140
8138
|
init(e) {
|
|
8141
|
-
this.screen = new Ye(0, 0, e.width, e.height), this.element = e.view ||
|
|
8139
|
+
this.screen = new Ye(0, 0, e.width, e.height), this.element = e.view || Ie.ADAPTER.createCanvas(), this.resolution = e.resolution || Ie.RESOLUTION, this.autoDensity = !!e.autoDensity;
|
|
8142
8140
|
}
|
|
8143
8141
|
resizeView(e, r) {
|
|
8144
8142
|
this.element.width = Math.round(e * this.resolution), this.element.height = Math.round(r * this.resolution);
|
|
@@ -8153,7 +8151,7 @@ class Wo {
|
|
|
8153
8151
|
Wo.defaultOptions = {
|
|
8154
8152
|
width: 800,
|
|
8155
8153
|
height: 600,
|
|
8156
|
-
resolution:
|
|
8154
|
+
resolution: Ie.RESOLUTION,
|
|
8157
8155
|
autoDensity: !1
|
|
8158
8156
|
};
|
|
8159
8157
|
Wo.extension = {
|
|
@@ -8164,15 +8162,15 @@ Wo.extension = {
|
|
|
8164
8162
|
name: "_view"
|
|
8165
8163
|
};
|
|
8166
8164
|
We.add(Wo);
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8165
|
+
Ie.PREFER_ENV = Kn.WEBGL2;
|
|
8166
|
+
Ie.STRICT_TEXTURE_CACHE = !1;
|
|
8167
|
+
Ie.RENDER_OPTIONS = {
|
|
8170
8168
|
...zo.defaultOptions,
|
|
8171
8169
|
...Ho.defaultOptions,
|
|
8172
8170
|
...Wo.defaultOptions,
|
|
8173
8171
|
...Xo.defaultOptions
|
|
8174
8172
|
};
|
|
8175
|
-
Object.defineProperties(
|
|
8173
|
+
Object.defineProperties(Ie, {
|
|
8176
8174
|
WRAP_MODE: {
|
|
8177
8175
|
get() {
|
|
8178
8176
|
return Be.defaultOptions.wrapMode;
|
|
@@ -8431,7 +8429,7 @@ const Qt = class {
|
|
|
8431
8429
|
};
|
|
8432
8430
|
let Tr = Qt;
|
|
8433
8431
|
Tr.targetFPMS = 0.06;
|
|
8434
|
-
Object.defineProperties(
|
|
8432
|
+
Object.defineProperties(Ie, {
|
|
8435
8433
|
TARGET_FPMS: {
|
|
8436
8434
|
get() {
|
|
8437
8435
|
return Tr.targetFPMS;
|
|
@@ -8587,7 +8585,7 @@ D0.extension = {
|
|
|
8587
8585
|
We.add(D0);
|
|
8588
8586
|
const Nc = class extends cN {
|
|
8589
8587
|
constructor(t) {
|
|
8590
|
-
super(), this.type = Om.WEBGL, t = Object.assign({},
|
|
8588
|
+
super(), this.type = Om.WEBGL, t = Object.assign({}, Ie.RENDER_OPTIONS, t), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new Er({
|
|
8591
8589
|
projectionMatrix: new Dt()
|
|
8592
8590
|
}, !0);
|
|
8593
8591
|
const e = {
|
|
@@ -8857,7 +8855,7 @@ class Ci extends gn {
|
|
|
8857
8855
|
return;
|
|
8858
8856
|
}
|
|
8859
8857
|
try {
|
|
8860
|
-
const n = await
|
|
8858
|
+
const n = await Ie.ADAPTER.fetch(this.url, {
|
|
8861
8859
|
mode: this.crossOrigin ? "cors" : "no-cors"
|
|
8862
8860
|
});
|
|
8863
8861
|
if (this.destroyed)
|
|
@@ -8888,12 +8886,12 @@ class Ci extends gn {
|
|
|
8888
8886
|
return !!globalThis.createImageBitmap && typeof ImageBitmap < "u" && (typeof e == "string" || e instanceof ImageBitmap);
|
|
8889
8887
|
}
|
|
8890
8888
|
static get EMPTY() {
|
|
8891
|
-
return Ci._EMPTY = Ci._EMPTY ??
|
|
8889
|
+
return Ci._EMPTY = Ci._EMPTY ?? Ie.ADAPTER.createCanvas(0, 0), Ci._EMPTY;
|
|
8892
8890
|
}
|
|
8893
8891
|
}
|
|
8894
8892
|
const oo = class extends gn {
|
|
8895
8893
|
constructor(t, e) {
|
|
8896
|
-
e = e || {}, super(
|
|
8894
|
+
e = e || {}, super(Ie.ADAPTER.createCanvas()), this._width = 0, this._height = 0, this.svg = t, this.scale = e.scale || 1, this._overrideWidth = e.width, this._overrideHeight = e.height, this._resolve = null, this._crossorigin = e.crossorigin, this._load = null, e.autoLoad !== !1 && this.load();
|
|
8897
8895
|
}
|
|
8898
8896
|
load() {
|
|
8899
8897
|
return this._load ? this._load : (this._load = new Promise((t) => {
|
|
@@ -9148,10 +9146,10 @@ let ks = class extends Ve {
|
|
|
9148
9146
|
l = this._kernels[0] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, r, n, i);
|
|
9149
9147
|
else {
|
|
9150
9148
|
const f = e.getFilterTexture();
|
|
9151
|
-
let p = r,
|
|
9149
|
+
let p = r, g = f, c;
|
|
9152
9150
|
const d = this._quality - 1;
|
|
9153
|
-
for (let
|
|
9154
|
-
l = this._kernels[
|
|
9151
|
+
for (let m = 0; m < d; m++)
|
|
9152
|
+
l = this._kernels[m] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, p, g, 1), c = p, p = g, g = c;
|
|
9155
9153
|
l = this._kernels[d] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, p, n, i), e.returnFilterTexture(f);
|
|
9156
9154
|
}
|
|
9157
9155
|
}
|
|
@@ -9257,7 +9255,7 @@ void main() {
|
|
|
9257
9255
|
`;
|
|
9258
9256
|
const G0 = class extends Ve {
|
|
9259
9257
|
constructor(e) {
|
|
9260
|
-
super($0, SN), this.bloomScale = 1, this.brightness = 1, this._resolution =
|
|
9258
|
+
super($0, SN), this.bloomScale = 1, this.brightness = 1, this._resolution = Ie.FILTER_RESOLUTION, typeof e == "number" && (e = { threshold: e });
|
|
9261
9259
|
const r = Object.assign(G0.defaults, e);
|
|
9262
9260
|
this.bloomScale = r.bloomScale, this.brightness = r.brightness;
|
|
9263
9261
|
const { kernels: n, blur: i, quality: a, pixelSize: u, resolution: l } = r;
|
|
@@ -9307,7 +9305,7 @@ const G0 = class extends Ve {
|
|
|
9307
9305
|
}
|
|
9308
9306
|
};
|
|
9309
9307
|
let AN = G0;
|
|
9310
|
-
AN.defaults = { threshold: 0.5, bloomScale: 1, brightness: 1, kernels: null, blur: 8, quality: 4, pixelSize: 1, resolution:
|
|
9308
|
+
AN.defaults = { threshold: 0.5, bloomScale: 1, brightness: 1, kernels: null, blur: 8, quality: 4, pixelSize: 1, resolution: Ie.FILTER_RESOLUTION };
|
|
9311
9309
|
var EN = `attribute vec2 aVertexPosition;
|
|
9312
9310
|
attribute vec2 aTextureCoord;
|
|
9313
9311
|
|
|
@@ -9627,12 +9625,12 @@ Zn.parse = function() {
|
|
|
9627
9625
|
}
|
|
9628
9626
|
}
|
|
9629
9627
|
function f() {
|
|
9630
|
-
return p() ||
|
|
9628
|
+
return p() || g();
|
|
9631
9629
|
}
|
|
9632
9630
|
function p() {
|
|
9633
9631
|
return G("directional", t.sideOrCorner, 1);
|
|
9634
9632
|
}
|
|
9635
|
-
function
|
|
9633
|
+
function g() {
|
|
9636
9634
|
return G("angular", t.angleValue, 1);
|
|
9637
9635
|
}
|
|
9638
9636
|
function c() {
|
|
@@ -9640,7 +9638,7 @@ Zn.parse = function() {
|
|
|
9640
9638
|
return Q && (H = [], H.push(Q), ge = e, ie(t.comma) && (Q = d(), Q ? H.push(Q) : e = ge)), H;
|
|
9641
9639
|
}
|
|
9642
9640
|
function d() {
|
|
9643
|
-
var H =
|
|
9641
|
+
var H = m() || _();
|
|
9644
9642
|
if (H)
|
|
9645
9643
|
H.at = b();
|
|
9646
9644
|
else {
|
|
@@ -9656,7 +9654,7 @@ Zn.parse = function() {
|
|
|
9656
9654
|
}
|
|
9657
9655
|
return H;
|
|
9658
9656
|
}
|
|
9659
|
-
function
|
|
9657
|
+
function m() {
|
|
9660
9658
|
var H = G("shape", /^(circle)/i, 0);
|
|
9661
9659
|
return H && (H.style = X() || y()), H;
|
|
9662
9660
|
}
|
|
@@ -9756,10 +9754,10 @@ function ON(t) {
|
|
|
9756
9754
|
var f = e[1], p = f === "rgb", a = f.replace(/a$/, "");
|
|
9757
9755
|
i = a;
|
|
9758
9756
|
var u = a === "cmyk" ? 4 : a === "gray" ? 1 : 3;
|
|
9759
|
-
r = e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d,
|
|
9757
|
+
r = e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d, m) {
|
|
9760
9758
|
if (/%$/.test(d))
|
|
9761
|
-
return
|
|
9762
|
-
if (a[
|
|
9759
|
+
return m === u ? parseFloat(d) / 100 : a === "rgb" ? parseFloat(d) * 255 / 100 : parseFloat(d);
|
|
9760
|
+
if (a[m] === "h") {
|
|
9763
9761
|
if (/deg$/.test(d))
|
|
9764
9762
|
return parseFloat(d);
|
|
9765
9763
|
if (Fg[d] !== void 0)
|
|
@@ -9768,8 +9766,8 @@ function ON(t) {
|
|
|
9768
9766
|
return parseFloat(d);
|
|
9769
9767
|
}), f === a && r.push(1), n = p || r[u] === void 0 ? 1 : r[u], r = r.slice(0, u);
|
|
9770
9768
|
} else
|
|
9771
|
-
t.length > 10 && /[0-9](?:\s|\/)/.test(t) && (r = t.match(/([0-9]+)/g).map(function(
|
|
9772
|
-
return parseFloat(
|
|
9769
|
+
t.length > 10 && /[0-9](?:\s|\/)/.test(t) && (r = t.match(/([0-9]+)/g).map(function(g) {
|
|
9770
|
+
return parseFloat(g);
|
|
9773
9771
|
}), i = t.match(/([a-z])/ig).join("").toLowerCase());
|
|
9774
9772
|
else
|
|
9775
9773
|
isNaN(t) ? Array.isArray(t) || t.length ? (r = [t[0], t[1], t[2]], i = "rgb", n = t.length === 4 ? t[3] : 1) : t instanceof Object && (t.r != null || t.red != null || t.R != null ? (i = "rgb", r = [t.r || t.red || t.R || 0, t.g || t.green || t.G || 0, t.b || t.blue || t.B || 0]) : (i = "hsl", r = [t.h || t.hue || t.H || 0, t.s || t.saturation || t.S || 0, t.l || t.lightness || t.L || t.b || t.brightness]), n = t.a || t.alpha || t.opacity || 1, t.opacity != null && (n /= 100)) : (i = "rgb", r = [t >>> 16, (t & 65280) >>> 8, t & 255]);
|
|
@@ -10210,11 +10208,11 @@ void main(void){
|
|
|
10210
10208
|
};
|
|
10211
10209
|
const Dc = class extends Ve {
|
|
10212
10210
|
constructor(e) {
|
|
10213
|
-
super(), this.angle = 45, this._distance = 5, this._resolution =
|
|
10211
|
+
super(), this.angle = 45, this._distance = 5, this._resolution = Ie.FILTER_RESOLUTION;
|
|
10214
10212
|
const r = e ? Ug(Ug({}, Dc.defaults), e) : Dc.defaults, { kernels: n, blur: i, quality: a, pixelSize: u, resolution: l } = r;
|
|
10215
10213
|
this._offset = new Gn(this._updatePadding, this), this._tintFilter = new Ve(i3, s3), this._tintFilter.uniforms.color = new Float32Array(4), this._tintFilter.uniforms.shift = this._offset, this._tintFilter.resolution = l, this._blurFilter = n ? new ks(n) : new ks(i, a), this.pixelSize = u, this.resolution = l;
|
|
10216
|
-
const { shadowOnly: f, rotation: p, distance:
|
|
10217
|
-
this.shadowOnly = f, p !== void 0 &&
|
|
10214
|
+
const { shadowOnly: f, rotation: p, distance: g, offset: c, alpha: d, color: m } = r;
|
|
10215
|
+
this.shadowOnly = f, p !== void 0 && g !== void 0 ? (this.rotation = p, this.distance = g) : this.offset = c, this.alpha = d, this.color = m;
|
|
10218
10216
|
}
|
|
10219
10217
|
apply(e, r, n, i) {
|
|
10220
10218
|
const a = e.getFilterTexture();
|
|
@@ -10289,7 +10287,7 @@ const Dc = class extends Ve {
|
|
|
10289
10287
|
}
|
|
10290
10288
|
};
|
|
10291
10289
|
let l3 = Dc;
|
|
10292
|
-
l3.defaults = { offset: { x: 4, y: 4 }, color: 0, alpha: 0.5, shadowOnly: !1, kernels: null, blur: 2, quality: 3, pixelSize: 1, resolution:
|
|
10290
|
+
l3.defaults = { offset: { x: 4, y: 4 }, color: 0, alpha: 0.5, shadowOnly: !1, kernels: null, blur: 2, quality: 3, pixelSize: 1, resolution: Ie.FILTER_RESOLUTION };
|
|
10293
10291
|
var c3 = `attribute vec2 aVertexPosition;
|
|
10294
10292
|
attribute vec2 aTextureCoord;
|
|
10295
10293
|
|
|
@@ -11789,10 +11787,10 @@ const Qn = (t) => {
|
|
|
11789
11787
|
gamma: l = 1,
|
|
11790
11788
|
green: f = 1,
|
|
11791
11789
|
blurRadius: p = 0,
|
|
11792
|
-
temperature:
|
|
11790
|
+
temperature: g = 0,
|
|
11793
11791
|
hue: c = 0,
|
|
11794
11792
|
sharpness: d = 0,
|
|
11795
|
-
vignette:
|
|
11793
|
+
vignette: m = 0,
|
|
11796
11794
|
noise: _ = 0
|
|
11797
11795
|
// outline = 0,
|
|
11798
11796
|
// outlineColor = 0x000000,
|
|
@@ -11813,7 +11811,7 @@ const Qn = (t) => {
|
|
|
11813
11811
|
}
|
|
11814
11812
|
`
|
|
11815
11813
|
);
|
|
11816
|
-
y.uniforms.temperature =
|
|
11814
|
+
y.uniforms.temperature = g;
|
|
11817
11815
|
const b = new e3([
|
|
11818
11816
|
0,
|
|
11819
11817
|
-d,
|
|
@@ -11827,7 +11825,7 @@ const Qn = (t) => {
|
|
|
11827
11825
|
]), x = new er.filters.ColorMatrixFilter();
|
|
11828
11826
|
x.hue(c, !1);
|
|
11829
11827
|
const E = new ks(p, 1, !0), w = new Y0({
|
|
11830
|
-
vignetting:
|
|
11828
|
+
vignetting: m
|
|
11831
11829
|
}), I = new er.filters.NoiseFilter(_);
|
|
11832
11830
|
return {
|
|
11833
11831
|
adjustmentFilter: new _N({
|
|
@@ -11908,10 +11906,10 @@ const Qn = (t) => {
|
|
|
11908
11906
|
x: l,
|
|
11909
11907
|
y: f,
|
|
11910
11908
|
width: p,
|
|
11911
|
-
height:
|
|
11909
|
+
height: g,
|
|
11912
11910
|
anchor: c,
|
|
11913
11911
|
colorCorrection: d = {},
|
|
11914
|
-
effect:
|
|
11912
|
+
effect: m
|
|
11915
11913
|
},
|
|
11916
11914
|
pointerdown: _
|
|
11917
11915
|
} = t, {
|
|
@@ -11931,12 +11929,12 @@ const Qn = (t) => {
|
|
|
11931
11929
|
} = Qn(d), { nightVisionFilter: D } = W3();
|
|
11932
11930
|
return te.useEffect(() => (console.log("PixiImageSprite mounting"), () => {
|
|
11933
11931
|
console.log("PixiImageSprite unmounting");
|
|
11934
|
-
}), []), console.log("imageRef", r.current), /* @__PURE__ */
|
|
11932
|
+
}), []), console.log("imageRef", r.current), /* @__PURE__ */ Ae.jsx(vn, { ...t, ref: e, children: /* @__PURE__ */ Ae.jsx(wt, { ref: n, children: /* @__PURE__ */ Ae.jsx(
|
|
11935
11933
|
Bs,
|
|
11936
11934
|
{
|
|
11937
11935
|
image: i,
|
|
11938
11936
|
width: p,
|
|
11939
|
-
height:
|
|
11937
|
+
height: g,
|
|
11940
11938
|
anchor: c,
|
|
11941
11939
|
ref: r,
|
|
11942
11940
|
alpha: a ? 1 : 0,
|
|
@@ -11951,7 +11949,7 @@ const Qn = (t) => {
|
|
|
11951
11949
|
// conditionally add blur filter
|
|
11952
11950
|
...y > 0 ? [O] : [],
|
|
11953
11951
|
// conditionally add night vision filter
|
|
11954
|
-
...
|
|
11952
|
+
...m === Un.NightVision ? [D] : [],
|
|
11955
11953
|
// conditionally add vignette filter
|
|
11956
11954
|
...b > 0 ? [N] : [],
|
|
11957
11955
|
// conditionally add noise filter
|
|
@@ -11991,21 +11989,21 @@ const Eo = {
|
|
|
11991
11989
|
e.length = 8, e[0] = e[6] = r + i, e[1] = e[3] = n + a, e[2] = e[4] = r - i, e[5] = e[7] = n - a;
|
|
11992
11990
|
return;
|
|
11993
11991
|
}
|
|
11994
|
-
let
|
|
11992
|
+
let g = 0, c = f * 4 + (i ? 2 : 0) + 2, d = c, m = p;
|
|
11995
11993
|
{
|
|
11996
11994
|
const _ = i + u, y = a, b = r + _, x = r - _, E = n + y;
|
|
11997
|
-
if (e[
|
|
11995
|
+
if (e[g++] = b, e[g++] = E, e[--c] = E, e[--c] = x, a) {
|
|
11998
11996
|
const w = n - y;
|
|
11999
|
-
e[d++] = x, e[d++] = w, e[--
|
|
11997
|
+
e[d++] = x, e[d++] = w, e[--m] = w, e[--m] = b;
|
|
12000
11998
|
}
|
|
12001
11999
|
}
|
|
12002
12000
|
for (let _ = 1; _ < f; _++) {
|
|
12003
12001
|
const y = Math.PI / 2 * (_ / f), b = i + Math.cos(y) * u, x = a + Math.sin(y) * l, E = r + b, w = r - b, I = n + x, O = n - x;
|
|
12004
|
-
e[
|
|
12002
|
+
e[g++] = E, e[g++] = I, e[--c] = I, e[--c] = w, e[d++] = w, e[d++] = O, e[--m] = O, e[--m] = E;
|
|
12005
12003
|
}
|
|
12006
12004
|
{
|
|
12007
12005
|
const _ = i, y = a + l, b = r + _, x = r - _, E = n + y, w = n - y;
|
|
12008
|
-
e[
|
|
12006
|
+
e[g++] = b, e[g++] = E, e[--m] = w, e[--m] = b, i && (e[g++] = x, e[g++] = E, e[--m] = w, e[--m] = x);
|
|
12009
12007
|
}
|
|
12010
12008
|
},
|
|
12011
12009
|
triangulate(t, e) {
|
|
@@ -12016,16 +12014,16 @@ const Eo = {
|
|
|
12016
12014
|
const u = a;
|
|
12017
12015
|
let l, f;
|
|
12018
12016
|
if (t.type !== Ct.RREC) {
|
|
12019
|
-
const
|
|
12020
|
-
l =
|
|
12017
|
+
const g = t.shape;
|
|
12018
|
+
l = g.x, f = g.y;
|
|
12021
12019
|
} else {
|
|
12022
|
-
const
|
|
12023
|
-
l =
|
|
12020
|
+
const g = t.shape;
|
|
12021
|
+
l = g.x + g.width / 2, f = g.y + g.height / 2;
|
|
12024
12022
|
}
|
|
12025
12023
|
const p = t.matrix;
|
|
12026
12024
|
n.push(t.matrix ? p.a * l + p.c * f + p.tx : l, t.matrix ? p.b * l + p.d * f + p.ty : f), a++, n.push(r[0], r[1]);
|
|
12027
|
-
for (let
|
|
12028
|
-
n.push(r[
|
|
12025
|
+
for (let g = 2; g < r.length; g += 2)
|
|
12026
|
+
n.push(r[g], r[g + 1]), i.push(a++, u, a);
|
|
12029
12027
|
i.push(u + 1, u, a);
|
|
12030
12028
|
}
|
|
12031
12029
|
};
|
|
@@ -12057,8 +12055,8 @@ const rv = {
|
|
|
12057
12055
|
Hg(r, !1);
|
|
12058
12056
|
const u = [];
|
|
12059
12057
|
for (let p = 0; p < n.length; p++) {
|
|
12060
|
-
const
|
|
12061
|
-
Hg(
|
|
12058
|
+
const g = n[p];
|
|
12059
|
+
Hg(g.points, !0), u.push(r.length / 2), r = r.concat(g.points);
|
|
12062
12060
|
}
|
|
12063
12061
|
const l = MP(r, u, 2);
|
|
12064
12062
|
if (!l)
|
|
@@ -12106,23 +12104,23 @@ const Bi = {
|
|
|
12106
12104
|
};
|
|
12107
12105
|
class zg {
|
|
12108
12106
|
static curveTo(e, r, n, i, a, u) {
|
|
12109
|
-
const l = u[u.length - 2], p = u[u.length - 1] - r,
|
|
12110
|
-
if (
|
|
12107
|
+
const l = u[u.length - 2], p = u[u.length - 1] - r, g = l - e, c = i - r, d = n - e, m = Math.abs(p * d - g * c);
|
|
12108
|
+
if (m < 1e-8 || a === 0)
|
|
12111
12109
|
return (u[u.length - 2] !== e || u[u.length - 1] !== r) && u.push(e, r), null;
|
|
12112
|
-
const _ = p * p +
|
|
12110
|
+
const _ = p * p + g * g, y = c * c + d * d, b = p * c + g * d, x = a * Math.sqrt(_) / m, E = a * Math.sqrt(y) / m, w = x * b / _, I = E * b / y, O = x * d + E * g, F = x * c + E * p, N = g * (E + w), L = p * (E + w), D = d * (x + I), V = c * (x + I), Y = Math.atan2(L - F, N - O), se = Math.atan2(V - F, D - O);
|
|
12113
12111
|
return {
|
|
12114
12112
|
cx: O + e,
|
|
12115
12113
|
cy: F + r,
|
|
12116
12114
|
radius: a,
|
|
12117
12115
|
startAngle: Y,
|
|
12118
12116
|
endAngle: se,
|
|
12119
|
-
anticlockwise:
|
|
12117
|
+
anticlockwise: g * c > d * p
|
|
12120
12118
|
};
|
|
12121
12119
|
}
|
|
12122
12120
|
static arc(e, r, n, i, a, u, l, f, p) {
|
|
12123
|
-
const
|
|
12121
|
+
const g = l - u, c = Bi._segmentsCount(Math.abs(g) * a, Math.ceil(Math.abs(g) / So) * 40), d = g / (c * 2), m = d * 2, _ = Math.cos(d), y = Math.sin(d), b = c - 1, x = b % 1 / b;
|
|
12124
12122
|
for (let E = 0; E <= b; ++E) {
|
|
12125
|
-
const w = E + x * E, I = d + u +
|
|
12123
|
+
const w = E + x * E, I = d + u + m * w, O = Math.cos(I), F = -Math.sin(I);
|
|
12126
12124
|
p.push((_ * O + y * F) * a + n, (_ * -F + y * O) * a + i);
|
|
12127
12125
|
}
|
|
12128
12126
|
}
|
|
@@ -12143,34 +12141,34 @@ class K3 {
|
|
|
12143
12141
|
}
|
|
12144
12142
|
class mh {
|
|
12145
12143
|
static curveLength(e, r, n, i, a, u, l, f) {
|
|
12146
|
-
let
|
|
12144
|
+
let g = 0, c = 0, d = 0, m = 0, _ = 0, y = 0, b = 0, x = 0, E = 0, w = 0, I = 0, O = e, F = r;
|
|
12147
12145
|
for (let N = 1; N <= 10; ++N)
|
|
12148
|
-
c = N / 10, d = c * c,
|
|
12149
|
-
return
|
|
12146
|
+
c = N / 10, d = c * c, m = d * c, _ = 1 - c, y = _ * _, b = y * _, x = b * e + 3 * y * c * n + 3 * _ * d * a + m * l, E = b * r + 3 * y * c * i + 3 * _ * d * u + m * f, w = O - x, I = F - E, O = x, F = E, g += Math.sqrt(w * w + I * I);
|
|
12147
|
+
return g;
|
|
12150
12148
|
}
|
|
12151
12149
|
static curveTo(e, r, n, i, a, u, l) {
|
|
12152
12150
|
const f = l[l.length - 2], p = l[l.length - 1];
|
|
12153
12151
|
l.length -= 2;
|
|
12154
|
-
const
|
|
12155
|
-
let c = 0, d = 0,
|
|
12152
|
+
const g = Bi._segmentsCount(mh.curveLength(f, p, e, r, n, i, a, u));
|
|
12153
|
+
let c = 0, d = 0, m = 0, _ = 0, y = 0;
|
|
12156
12154
|
l.push(f, p);
|
|
12157
|
-
for (let b = 1, x = 0; b <=
|
|
12158
|
-
x = b /
|
|
12155
|
+
for (let b = 1, x = 0; b <= g; ++b)
|
|
12156
|
+
x = b / g, c = 1 - x, d = c * c, m = d * c, _ = x * x, y = _ * x, l.push(m * f + 3 * d * x * e + 3 * c * _ * n + y * a, m * p + 3 * d * x * r + 3 * c * _ * i + y * u);
|
|
12159
12157
|
}
|
|
12160
12158
|
}
|
|
12161
12159
|
function Vg(t, e, r, n, i, a, u, l) {
|
|
12162
|
-
const f = t - r * i, p = e - n * i,
|
|
12163
|
-
let d,
|
|
12164
|
-
u ? (d = n,
|
|
12165
|
-
const _ = f + d, y = p +
|
|
12160
|
+
const f = t - r * i, p = e - n * i, g = t + r * a, c = e + n * a;
|
|
12161
|
+
let d, m;
|
|
12162
|
+
u ? (d = n, m = -r) : (d = -n, m = r);
|
|
12163
|
+
const _ = f + d, y = p + m, b = g + d, x = c + m;
|
|
12166
12164
|
return l.push(_, y, b, x), 2;
|
|
12167
12165
|
}
|
|
12168
12166
|
function On(t, e, r, n, i, a, u, l) {
|
|
12169
12167
|
const f = r - t, p = n - e;
|
|
12170
|
-
let
|
|
12171
|
-
l &&
|
|
12172
|
-
let d =
|
|
12173
|
-
const
|
|
12168
|
+
let g = Math.atan2(f, p), c = Math.atan2(i - t, a - e);
|
|
12169
|
+
l && g < c ? g += Math.PI * 2 : !l && g > c && (c += Math.PI * 2);
|
|
12170
|
+
let d = g;
|
|
12171
|
+
const m = c - g, _ = Math.abs(m), y = Math.sqrt(f * f + p * p), b = (15 * _ * Math.sqrt(y) / Math.PI >> 0) + 1, x = m / b;
|
|
12174
12172
|
if (d += x, l) {
|
|
12175
12173
|
u.push(t, e, r, n);
|
|
12176
12174
|
for (let E = 1, w = d; E < b; E++, w += x)
|
|
@@ -12196,55 +12194,55 @@ function Z3(t, e) {
|
|
|
12196
12194
|
const H = (u.x + l.x) * 0.5, Q = (l.y + u.y) * 0.5;
|
|
12197
12195
|
n.unshift(H, Q), n.push(H, Q);
|
|
12198
12196
|
}
|
|
12199
|
-
const
|
|
12197
|
+
const g = e.points, c = n.length / 2;
|
|
12200
12198
|
let d = n.length;
|
|
12201
|
-
const
|
|
12199
|
+
const m = g.length / 2, _ = a.width / 2, y = _ * _, b = a.miterLimit * a.miterLimit;
|
|
12202
12200
|
let x = n[0], E = n[1], w = n[2], I = n[3], O = 0, F = 0, N = -(E - I), L = x - w, D = 0, V = 0, Y = Math.sqrt(N * N + L * L);
|
|
12203
12201
|
N /= Y, L /= Y, N *= _, L *= _;
|
|
12204
12202
|
const se = a.alignment, X = (1 - se) * 2, G = se * 2;
|
|
12205
|
-
f || (a.cap === Hn.ROUND ? d += On(x - N * (X - G) * 0.5, E - L * (X - G) * 0.5, x - N * X, E - L * X, x + N * G, E + L * G,
|
|
12203
|
+
f || (a.cap === Hn.ROUND ? d += On(x - N * (X - G) * 0.5, E - L * (X - G) * 0.5, x - N * X, E - L * X, x + N * G, E + L * G, g, !0) + 2 : a.cap === Hn.SQUARE && (d += Vg(x, E, N, L, X, G, !0, g))), g.push(x - N * X, E - L * X, x + N * G, E + L * G);
|
|
12206
12204
|
for (let H = 1; H < c - 1; ++H) {
|
|
12207
12205
|
x = n[(H - 1) * 2], E = n[(H - 1) * 2 + 1], w = n[H * 2], I = n[H * 2 + 1], O = n[(H + 1) * 2], F = n[(H + 1) * 2 + 1], N = -(E - I), L = x - w, Y = Math.sqrt(N * N + L * L), N /= Y, L /= Y, N *= _, L *= _, D = -(I - F), V = w - O, Y = Math.sqrt(D * D + V * V), D /= Y, V /= Y, D *= _, V *= _;
|
|
12208
12206
|
const Q = w - x, ge = E - I, W = w - O, j = F - I, le = Q * W + ge * j, he = ge * W - j * Q, me = he < 0;
|
|
12209
12207
|
if (Math.abs(he) < 1e-3 * Math.abs(le)) {
|
|
12210
|
-
|
|
12208
|
+
g.push(w - N * X, I - L * X, w + N * G, I + L * G), le >= 0 && (a.join === yr.ROUND ? d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, g, !1) + 4 : d += 2, g.push(w - D * G, I - V * G, w + D * X, I + V * X));
|
|
12211
12209
|
continue;
|
|
12212
12210
|
}
|
|
12213
|
-
const fe = (-N + x) * (-L + I) - (-N + w) * (-L + E),
|
|
12211
|
+
const fe = (-N + x) * (-L + I) - (-N + w) * (-L + E), Re = (-D + O) * (-V + I) - (-D + w) * (-V + F), Ue = (Q * Re - W * fe) / he, He = (j * fe - ge * Re) / he, je = (Ue - w) * (Ue - w) + (He - I) * (He - I), be = w + (Ue - w) * X, Ee = I + (He - I) * X, $e = w - (Ue - w) * G, Ke = I - (He - I) * G, Se = Math.min(Q * Q + ge * ge, W * W + j * j), _e = me ? X : G, rt = Se + _e * _e * y, ce = je <= rt;
|
|
12214
12212
|
let Oe = a.join;
|
|
12215
12213
|
if (Oe === yr.MITER && je / y > b && (Oe = yr.BEVEL), ce)
|
|
12216
12214
|
switch (Oe) {
|
|
12217
12215
|
case yr.MITER: {
|
|
12218
|
-
|
|
12216
|
+
g.push(be, Ee, $e, Ke);
|
|
12219
12217
|
break;
|
|
12220
12218
|
}
|
|
12221
12219
|
case yr.BEVEL: {
|
|
12222
|
-
me ?
|
|
12220
|
+
me ? g.push(be, Ee, w + N * G, I + L * G, be, Ee, w + D * G, I + V * G) : g.push(w - N * X, I - L * X, $e, Ke, w - D * X, I - V * X, $e, Ke), d += 2;
|
|
12223
12221
|
break;
|
|
12224
12222
|
}
|
|
12225
12223
|
case yr.ROUND: {
|
|
12226
|
-
me ? (
|
|
12224
|
+
me ? (g.push(be, Ee, w + N * G, I + L * G), d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G, g, !0) + 4, g.push(be, Ee, w + D * G, I + V * G)) : (g.push(w - N * X, I - L * X, $e, Ke), d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, g, !1) + 4, g.push(w - D * X, I - V * X, $e, Ke));
|
|
12227
12225
|
break;
|
|
12228
12226
|
}
|
|
12229
12227
|
}
|
|
12230
12228
|
else {
|
|
12231
|
-
switch (
|
|
12229
|
+
switch (g.push(w - N * X, I - L * X, w + N * G, I + L * G), Oe) {
|
|
12232
12230
|
case yr.MITER: {
|
|
12233
|
-
me ?
|
|
12231
|
+
me ? g.push($e, Ke, $e, Ke) : g.push(be, Ee, be, Ee), d += 2;
|
|
12234
12232
|
break;
|
|
12235
12233
|
}
|
|
12236
12234
|
case yr.ROUND: {
|
|
12237
|
-
me ? d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G,
|
|
12235
|
+
me ? d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G, g, !0) + 2 : d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, g, !1) + 2;
|
|
12238
12236
|
break;
|
|
12239
12237
|
}
|
|
12240
12238
|
}
|
|
12241
|
-
|
|
12239
|
+
g.push(w - D * X, I - V * X, w + D * G, I + V * G), d += 2;
|
|
12242
12240
|
}
|
|
12243
12241
|
}
|
|
12244
|
-
x = n[(c - 2) * 2], E = n[(c - 2) * 2 + 1], w = n[(c - 1) * 2], I = n[(c - 1) * 2 + 1], N = -(E - I), L = x - w, Y = Math.sqrt(N * N + L * L), N /= Y, L /= Y, N *= _, L *= _,
|
|
12242
|
+
x = n[(c - 2) * 2], E = n[(c - 2) * 2 + 1], w = n[(c - 1) * 2], I = n[(c - 1) * 2 + 1], N = -(E - I), L = x - w, Y = Math.sqrt(N * N + L * L), N /= Y, L /= Y, N *= _, L *= _, g.push(w - N * X, I - L * X, w + N * G, I + L * G), f || (a.cap === Hn.ROUND ? d += On(w - N * (X - G) * 0.5, I - L * (X - G) * 0.5, w - N * X, I - L * X, w + N * G, I + L * G, g, !1) + 2 : a.cap === Hn.SQUARE && (d += Vg(w, I, N, L, X, G, !1, g)));
|
|
12245
12243
|
const ie = e.indices, re = Bi.epsilon * Bi.epsilon;
|
|
12246
|
-
for (let H =
|
|
12247
|
-
x =
|
|
12244
|
+
for (let H = m; H < d + m - 2; ++H)
|
|
12245
|
+
x = g[H * 2], E = g[H * 2 + 1], w = g[(H + 1) * 2], I = g[(H + 1) * 2 + 1], O = g[(H + 2) * 2], F = g[(H + 2) * 2 + 1], !(Math.abs(x * (I - F) + w * (F - E) + O * (E - I)) < re) && ie.push(H, H + 1, H + 2);
|
|
12248
12246
|
}
|
|
12249
12247
|
function Q3(t, e) {
|
|
12250
12248
|
let r = 0;
|
|
@@ -12252,25 +12250,25 @@ function Q3(t, e) {
|
|
|
12252
12250
|
if (i.length === 0)
|
|
12253
12251
|
return;
|
|
12254
12252
|
const u = e.points, l = e.indices, f = i.length / 2, p = u.length / 2;
|
|
12255
|
-
let
|
|
12253
|
+
let g = p;
|
|
12256
12254
|
for (u.push(i[0], i[1]), r = 1; r < f; r++)
|
|
12257
|
-
u.push(i[r * 2], i[r * 2 + 1]), l.push(
|
|
12258
|
-
a && l.push(
|
|
12255
|
+
u.push(i[r * 2], i[r * 2 + 1]), l.push(g, g + 1), g++;
|
|
12256
|
+
a && l.push(g, p);
|
|
12259
12257
|
}
|
|
12260
12258
|
function Xg(t, e) {
|
|
12261
12259
|
t.lineStyle.native ? Q3(t, e) : Z3(t, e);
|
|
12262
12260
|
}
|
|
12263
12261
|
class vh {
|
|
12264
12262
|
static curveLength(e, r, n, i, a, u) {
|
|
12265
|
-
const l = e - 2 * n + a, f = r - 2 * i + u, p = 2 * n - 2 * e,
|
|
12266
|
-
return (b * _ + y * d * (_ - x) + (4 *
|
|
12263
|
+
const l = e - 2 * n + a, f = r - 2 * i + u, p = 2 * n - 2 * e, g = 2 * i - 2 * r, c = 4 * (l * l + f * f), d = 4 * (l * p + f * g), m = p * p + g * g, _ = 2 * Math.sqrt(c + d + m), y = Math.sqrt(c), b = 2 * c * y, x = 2 * Math.sqrt(m), E = d / y;
|
|
12264
|
+
return (b * _ + y * d * (_ - x) + (4 * m * c - d * d) * Math.log((2 * y + E + _) / (E + x))) / (4 * b);
|
|
12267
12265
|
}
|
|
12268
12266
|
static curveTo(e, r, n, i, a) {
|
|
12269
12267
|
const u = a[a.length - 2], l = a[a.length - 1], f = Bi._segmentsCount(vh.curveLength(u, l, e, r, n, i));
|
|
12270
|
-
let p = 0,
|
|
12268
|
+
let p = 0, g = 0;
|
|
12271
12269
|
for (let c = 1; c <= f; ++c) {
|
|
12272
12270
|
const d = c / f;
|
|
12273
|
-
p = u + (e - u) * d,
|
|
12271
|
+
p = u + (e - u) * d, g = l + (r - l) * d, a.push(p + (e + (n - e) * d - p) * d, g + (r + (i - r) * d - g) * d);
|
|
12274
12272
|
}
|
|
12275
12273
|
}
|
|
12276
12274
|
}
|
|
@@ -12298,8 +12296,8 @@ class Uc {
|
|
|
12298
12296
|
this.minX = Math.min(this.minX, e.x), this.maxX = Math.max(this.maxX, e.x), this.minY = Math.min(this.minY, e.y), this.maxY = Math.max(this.maxY, e.y);
|
|
12299
12297
|
}
|
|
12300
12298
|
addPointMatrix(e, r) {
|
|
12301
|
-
const { a: n, b: i, c: a, d: u, tx: l, ty: f } = e, p = n * r.x + a * r.y + l,
|
|
12302
|
-
this.minX = Math.min(this.minX, p), this.maxX = Math.max(this.maxX, p), this.minY = Math.min(this.minY,
|
|
12299
|
+
const { a: n, b: i, c: a, d: u, tx: l, ty: f } = e, p = n * r.x + a * r.y + l, g = i * r.x + u * r.y + f;
|
|
12300
|
+
this.minX = Math.min(this.minX, p), this.maxX = Math.max(this.maxX, p), this.minY = Math.min(this.minY, g), this.maxY = Math.max(this.maxY, g);
|
|
12303
12301
|
}
|
|
12304
12302
|
addQuad(e) {
|
|
12305
12303
|
let r = this.minX, n = this.minY, i = this.maxX, a = this.maxY, u = e[0], l = e[1];
|
|
@@ -12309,15 +12307,15 @@ class Uc {
|
|
|
12309
12307
|
this.addFrameMatrix(e.worldTransform, r, n, i, a);
|
|
12310
12308
|
}
|
|
12311
12309
|
addFrameMatrix(e, r, n, i, a) {
|
|
12312
|
-
const u = e.a, l = e.b, f = e.c, p = e.d,
|
|
12313
|
-
let d = this.minX,
|
|
12314
|
-
d = b < d ? b : d,
|
|
12310
|
+
const u = e.a, l = e.b, f = e.c, p = e.d, g = e.tx, c = e.ty;
|
|
12311
|
+
let d = this.minX, m = this.minY, _ = this.maxX, y = this.maxY, b = u * r + f * n + g, x = l * r + p * n + c;
|
|
12312
|
+
d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, b = u * i + f * n + g, x = l * i + p * n + c, d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, b = u * r + f * a + g, x = l * r + p * a + c, d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, b = u * i + f * a + g, x = l * i + p * a + c, d = b < d ? b : d, m = x < m ? x : m, _ = b > _ ? b : _, y = x > y ? x : y, this.minX = d, this.minY = m, this.maxX = _, this.maxY = y;
|
|
12315
12313
|
}
|
|
12316
12314
|
addVertexData(e, r, n) {
|
|
12317
12315
|
let i = this.minX, a = this.minY, u = this.maxX, l = this.maxY;
|
|
12318
12316
|
for (let f = r; f < n; f += 2) {
|
|
12319
|
-
const p = e[f],
|
|
12320
|
-
i = p < i ? p : i, a =
|
|
12317
|
+
const p = e[f], g = e[f + 1];
|
|
12318
|
+
i = p < i ? p : i, a = g < a ? g : a, u = p > u ? p : u, l = g > l ? g : l;
|
|
12321
12319
|
}
|
|
12322
12320
|
this.minX = i, this.minY = a, this.maxX = u, this.maxY = l;
|
|
12323
12321
|
}
|
|
@@ -12325,13 +12323,13 @@ class Uc {
|
|
|
12325
12323
|
this.addVerticesMatrix(e.worldTransform, r, n, i);
|
|
12326
12324
|
}
|
|
12327
12325
|
addVerticesMatrix(e, r, n, i, a = 0, u = a) {
|
|
12328
|
-
const l = e.a, f = e.b, p = e.c,
|
|
12329
|
-
let
|
|
12326
|
+
const l = e.a, f = e.b, p = e.c, g = e.d, c = e.tx, d = e.ty;
|
|
12327
|
+
let m = this.minX, _ = this.minY, y = this.maxX, b = this.maxY;
|
|
12330
12328
|
for (let x = n; x < i; x += 2) {
|
|
12331
|
-
const E = r[x], w = r[x + 1], I = l * E + p * w + c, O =
|
|
12332
|
-
|
|
12329
|
+
const E = r[x], w = r[x + 1], I = l * E + p * w + c, O = g * w + f * E + d;
|
|
12330
|
+
m = Math.min(m, I - a), y = Math.max(y, I + a), _ = Math.min(_, O - u), b = Math.max(b, O + u);
|
|
12333
12331
|
}
|
|
12334
|
-
this.minX =
|
|
12332
|
+
this.minX = m, this.minY = _, this.maxX = y, this.maxY = b;
|
|
12335
12333
|
}
|
|
12336
12334
|
addBounds(e) {
|
|
12337
12335
|
const r = this.minX, n = this.minY, i = this.maxX, a = this.maxY;
|
|
@@ -12340,8 +12338,8 @@ class Uc {
|
|
|
12340
12338
|
addBoundsMask(e, r) {
|
|
12341
12339
|
const n = e.minX > r.minX ? e.minX : r.minX, i = e.minY > r.minY ? e.minY : r.minY, a = e.maxX < r.maxX ? e.maxX : r.maxX, u = e.maxY < r.maxY ? e.maxY : r.maxY;
|
|
12342
12340
|
if (n <= a && i <= u) {
|
|
12343
|
-
const l = this.minX, f = this.minY, p = this.maxX,
|
|
12344
|
-
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u >
|
|
12341
|
+
const l = this.minX, f = this.minY, p = this.maxX, g = this.maxY;
|
|
12342
|
+
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u > g ? u : g;
|
|
12345
12343
|
}
|
|
12346
12344
|
}
|
|
12347
12345
|
addBoundsMatrix(e, r) {
|
|
@@ -12350,8 +12348,8 @@ class Uc {
|
|
|
12350
12348
|
addBoundsArea(e, r) {
|
|
12351
12349
|
const n = e.minX > r.x ? e.minX : r.x, i = e.minY > r.y ? e.minY : r.y, a = e.maxX < r.x + r.width ? e.maxX : r.x + r.width, u = e.maxY < r.y + r.height ? e.maxY : r.y + r.height;
|
|
12352
12350
|
if (n <= a && i <= u) {
|
|
12353
|
-
const l = this.minX, f = this.minY, p = this.maxX,
|
|
12354
|
-
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u >
|
|
12351
|
+
const l = this.minX, f = this.minY, p = this.maxX, g = this.maxY;
|
|
12352
|
+
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u > g ? u : g;
|
|
12355
12353
|
}
|
|
12356
12354
|
}
|
|
12357
12355
|
pad(e = 0, r = e) {
|
|
@@ -12707,7 +12705,7 @@ const $c = class extends Ui {
|
|
|
12707
12705
|
let $i = $c;
|
|
12708
12706
|
$i.defaultSortableChildren = !1;
|
|
12709
12707
|
$i.prototype.containerUpdateTransform = $i.prototype.updateTransform;
|
|
12710
|
-
Object.defineProperties(
|
|
12708
|
+
Object.defineProperties(Ie, {
|
|
12711
12709
|
SORTABLE_CHILDREN: {
|
|
12712
12710
|
get() {
|
|
12713
12711
|
return $i.defaultSortableChildren;
|
|
@@ -12797,16 +12795,16 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12797
12795
|
this.batches.length > 0 && (r = this.batches[this.batches.length - 1], n = r.style);
|
|
12798
12796
|
for (let l = this.shapeIndex; l < e.length; l++) {
|
|
12799
12797
|
this.shapeIndex++;
|
|
12800
|
-
const f = e[l], p = f.fillStyle,
|
|
12801
|
-
ec[f.type].build(f), f.matrix && this.transformPoints(f.points, f.matrix), (p.visible ||
|
|
12798
|
+
const f = e[l], p = f.fillStyle, g = f.lineStyle;
|
|
12799
|
+
ec[f.type].build(f), f.matrix && this.transformPoints(f.points, f.matrix), (p.visible || g.visible) && this.processHoles(f.holes);
|
|
12802
12800
|
for (let d = 0; d < 2; d++) {
|
|
12803
|
-
const
|
|
12804
|
-
if (!
|
|
12801
|
+
const m = d === 0 ? p : g;
|
|
12802
|
+
if (!m.visible)
|
|
12805
12803
|
continue;
|
|
12806
|
-
const _ =
|
|
12804
|
+
const _ = m.texture.baseTexture, y = this.indices.length, b = this.points.length / 2;
|
|
12807
12805
|
_.wrapMode = Rs.REPEAT, d === 0 ? this.processFill(f) : this.processLine(f);
|
|
12808
12806
|
const x = this.points.length / 2 - b;
|
|
12809
|
-
x !== 0 && (r && !this._compareStyles(n,
|
|
12807
|
+
x !== 0 && (r && !this._compareStyles(n, m) && (r.end(y, b), r = null), r || (r = Wg.pop() || new K3(), r.begin(m, y, b), this.batches.push(r), n = m), this.addUvs(this.points, t, m.texture, b, x, m.matrix));
|
|
12810
12808
|
}
|
|
12811
12809
|
}
|
|
12812
12810
|
const i = this.indices.length, a = this.points.length / 2;
|
|
@@ -12852,17 +12850,17 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12852
12850
|
}
|
|
12853
12851
|
buildDrawCalls() {
|
|
12854
12852
|
let t = ++Be._globalBatch;
|
|
12855
|
-
for (let
|
|
12856
|
-
this.drawCalls[
|
|
12853
|
+
for (let g = 0; g < this.drawCalls.length; g++)
|
|
12854
|
+
this.drawCalls[g].texArray.clear(), to.push(this.drawCalls[g]);
|
|
12857
12855
|
this.drawCalls.length = 0;
|
|
12858
12856
|
const e = this.colors, r = this.textureIds;
|
|
12859
12857
|
let n = to.pop();
|
|
12860
12858
|
n || (n = new Rc(), n.texArray = new Mc()), n.texArray.count = 0, n.start = 0, n.size = 0, n.type = dn.TRIANGLES;
|
|
12861
12859
|
let i = 0, a = null, u = 0, l = !1, f = dn.TRIANGLES, p = 0;
|
|
12862
12860
|
this.drawCalls.push(n);
|
|
12863
|
-
for (let
|
|
12864
|
-
const c = this.batches[
|
|
12865
|
-
l !== !!
|
|
12861
|
+
for (let g = 0; g < this.batches.length; g++) {
|
|
12862
|
+
const c = this.batches[g], d = 8, m = c.style, _ = m.texture.baseTexture;
|
|
12863
|
+
l !== !!m.native && (l = !!m.native, f = l ? dn.LINES : dn.TRIANGLES, a = null, i = d, t++), a !== _ && (a = _, _._batchEnabled !== t && (i === d && (t++, i = 0, n.size > 0 && (n = to.pop(), n || (n = new Rc(), n.texArray = new Mc()), this.drawCalls.push(n)), n.start = p, n.size = 0, n.texArray.count = 0, n.type = f), _.touched = 1, _._batchEnabled = t, _._batchLocation = i, _.wrapMode = Rs.REPEAT, n.texArray.elements[n.texArray.count++] = _, i++)), n.size += c.size, p += c.size, u = _._batchLocation, this.addColors(e, m.color, m.alpha, c.attribSize, c.attribStart), this.addTextureIds(r, u, c.attribSize, c.attribStart);
|
|
12866
12864
|
}
|
|
12867
12865
|
Be._globalBatch = t, this.packAttributes();
|
|
12868
12866
|
}
|
|
@@ -12912,24 +12910,24 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12912
12910
|
let u = 0;
|
|
12913
12911
|
const l = e.length, f = r.frame;
|
|
12914
12912
|
for (; u < i; ) {
|
|
12915
|
-
let
|
|
12913
|
+
let g = t[(n + u) * 2], c = t[(n + u) * 2 + 1];
|
|
12916
12914
|
if (a) {
|
|
12917
|
-
const d = a.a *
|
|
12918
|
-
c = a.b *
|
|
12915
|
+
const d = a.a * g + a.c * c + a.tx;
|
|
12916
|
+
c = a.b * g + a.d * c + a.ty, g = d;
|
|
12919
12917
|
}
|
|
12920
|
-
u++, e.push(
|
|
12918
|
+
u++, e.push(g / f.width, c / f.height);
|
|
12921
12919
|
}
|
|
12922
12920
|
const p = r.baseTexture;
|
|
12923
12921
|
(f.width < p.width || f.height < p.height) && this.adjustUvs(e, r, l, i);
|
|
12924
12922
|
}
|
|
12925
12923
|
adjustUvs(t, e, r, n) {
|
|
12926
12924
|
const i = e.baseTexture, a = 1e-6, u = r + n * 2, l = e.frame, f = l.width / i.width, p = l.height / i.height;
|
|
12927
|
-
let
|
|
12925
|
+
let g = l.x / l.width, c = l.y / l.height, d = Math.floor(t[r] + a), m = Math.floor(t[r + 1] + a);
|
|
12928
12926
|
for (let _ = r + 2; _ < u; _ += 2)
|
|
12929
|
-
d = Math.min(d, Math.floor(t[_] + a)),
|
|
12930
|
-
|
|
12927
|
+
d = Math.min(d, Math.floor(t[_] + a)), m = Math.min(m, Math.floor(t[_ + 1] + a));
|
|
12928
|
+
g -= d, c -= m;
|
|
12931
12929
|
for (let _ = r; _ < u; _ += 2)
|
|
12932
|
-
t[_] = (t[_] +
|
|
12930
|
+
t[_] = (t[_] + g) * f, t[_ + 1] = (t[_ + 1] + c) * p;
|
|
12933
12931
|
}
|
|
12934
12932
|
};
|
|
12935
12933
|
let iv = nv;
|
|
@@ -13041,8 +13039,8 @@ const tc = {}, lo = class extends $i {
|
|
|
13041
13039
|
this._initCurve(t, e);
|
|
13042
13040
|
const a = this.currentPath.points, u = zg.curveTo(t, e, r, n, i, a);
|
|
13043
13041
|
if (u) {
|
|
13044
|
-
const { cx: l, cy: f, radius: p, startAngle:
|
|
13045
|
-
this.arc(l, f, p,
|
|
13042
|
+
const { cx: l, cy: f, radius: p, startAngle: g, endAngle: c, anticlockwise: d } = u;
|
|
13043
|
+
this.arc(l, f, p, g, c, d);
|
|
13046
13044
|
}
|
|
13047
13045
|
return this;
|
|
13048
13046
|
}
|
|
@@ -13052,13 +13050,13 @@ const tc = {}, lo = class extends $i {
|
|
|
13052
13050
|
if (!a && i <= n ? i += So : a && n <= i && (n += So), i - n === 0)
|
|
13053
13051
|
return this;
|
|
13054
13052
|
const l = t + Math.cos(n) * r, f = e + Math.sin(n) * r, p = this._geometry.closePointEps;
|
|
13055
|
-
let
|
|
13056
|
-
if (
|
|
13057
|
-
const c = Math.abs(
|
|
13058
|
-
c < p && d < p ||
|
|
13053
|
+
let g = this.currentPath ? this.currentPath.points : null;
|
|
13054
|
+
if (g) {
|
|
13055
|
+
const c = Math.abs(g[g.length - 2] - l), d = Math.abs(g[g.length - 1] - f);
|
|
13056
|
+
c < p && d < p || g.push(l, f);
|
|
13059
13057
|
} else
|
|
13060
|
-
this.moveTo(l, f),
|
|
13061
|
-
return zg.arc(l, f, t, e, r, n, i, a,
|
|
13058
|
+
this.moveTo(l, f), g = this.currentPath.points;
|
|
13059
|
+
return zg.arc(l, f, t, e, r, n, i, a, g), this;
|
|
13062
13060
|
}
|
|
13063
13061
|
beginFill(t = 0, e) {
|
|
13064
13062
|
return this.beginTextureFill({ texture: ke.WHITE, color: t, alpha: e });
|
|
@@ -13198,10 +13196,10 @@ const tc = {}, lo = class extends $i {
|
|
|
13198
13196
|
return;
|
|
13199
13197
|
this._transformID = t;
|
|
13200
13198
|
const e = this.transform.worldTransform, r = e.a, n = e.b, i = e.c, a = e.d, u = e.tx, l = e.ty, f = this._geometry.points, p = this.vertexData;
|
|
13201
|
-
let
|
|
13199
|
+
let g = 0;
|
|
13202
13200
|
for (let c = 0; c < f.length; c += 2) {
|
|
13203
|
-
const d = f[c],
|
|
13204
|
-
p[
|
|
13201
|
+
const d = f[c], m = f[c + 1];
|
|
13202
|
+
p[g++] = r * d + i * m + u, p[g++] = a * m + n * d + l;
|
|
13205
13203
|
}
|
|
13206
13204
|
}
|
|
13207
13205
|
closePath() {
|
|
@@ -13253,27 +13251,27 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13253
13251
|
flag: /\s*([01])/g
|
|
13254
13252
|
}, a = {
|
|
13255
13253
|
number: function(y) {
|
|
13256
|
-
return +
|
|
13254
|
+
return +m("number", y);
|
|
13257
13255
|
},
|
|
13258
13256
|
"coordinate pair": function(y) {
|
|
13259
|
-
var b =
|
|
13257
|
+
var b = m("number", y);
|
|
13260
13258
|
if (b === null && !y)
|
|
13261
13259
|
return null;
|
|
13262
|
-
|
|
13263
|
-
var x =
|
|
13260
|
+
m("comma");
|
|
13261
|
+
var x = m("number", !0);
|
|
13264
13262
|
return { x: +b, y: +x };
|
|
13265
13263
|
},
|
|
13266
13264
|
"arc definition": function(y) {
|
|
13267
13265
|
var b = a["coordinate pair"](y);
|
|
13268
13266
|
if (!b && !y)
|
|
13269
13267
|
return null;
|
|
13270
|
-
|
|
13271
|
-
var x = +
|
|
13272
|
-
|
|
13273
|
-
var E = !!+
|
|
13274
|
-
|
|
13275
|
-
var w = !!+
|
|
13276
|
-
|
|
13268
|
+
m("comma");
|
|
13269
|
+
var x = +m("number", !0);
|
|
13270
|
+
m("comma", !0);
|
|
13271
|
+
var E = !!+m("flag", !0);
|
|
13272
|
+
m("comma");
|
|
13273
|
+
var w = !!+m("flag", !0);
|
|
13274
|
+
m("comma");
|
|
13277
13275
|
var I = a["coordinate pair"](!0);
|
|
13278
13276
|
return {
|
|
13279
13277
|
radii: b,
|
|
@@ -13284,11 +13282,11 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13284
13282
|
};
|
|
13285
13283
|
}
|
|
13286
13284
|
}, u = 0, l = []; u < n.length; ) {
|
|
13287
|
-
var f =
|
|
13285
|
+
var f = m("command"), p = f.toUpperCase(), g = f !== p, c;
|
|
13288
13286
|
switch (p) {
|
|
13289
13287
|
case "M":
|
|
13290
13288
|
c = _("coordinate pair").map(function(y, b) {
|
|
13291
|
-
return b === 1 && (f =
|
|
13289
|
+
return b === 1 && (f = g ? "l" : "L"), d({ end: y });
|
|
13292
13290
|
});
|
|
13293
13291
|
break;
|
|
13294
13292
|
case "L":
|
|
@@ -13343,9 +13341,9 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13343
13341
|
}
|
|
13344
13342
|
return l;
|
|
13345
13343
|
function d(y) {
|
|
13346
|
-
return y.code = f, y.relative =
|
|
13344
|
+
return y.code = f, y.relative = g, y;
|
|
13347
13345
|
}
|
|
13348
|
-
function
|
|
13346
|
+
function m(y, b) {
|
|
13349
13347
|
i[y].lastIndex = u;
|
|
13350
13348
|
var x = i[y].exec(n);
|
|
13351
13349
|
if (!x || x.index !== u) {
|
|
@@ -13357,7 +13355,7 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13357
13355
|
}
|
|
13358
13356
|
function _(y) {
|
|
13359
13357
|
for (var b = [], x, E = !0; x = a[y](E); )
|
|
13360
|
-
b.push(x), E = !!
|
|
13358
|
+
b.push(x), E = !!m("comma");
|
|
13361
13359
|
return b;
|
|
13362
13360
|
}
|
|
13363
13361
|
};
|
|
@@ -13575,8 +13573,8 @@ function jg(t, e, r) {
|
|
|
13575
13573
|
function uL(t, e, r) {
|
|
13576
13574
|
var n, i, a;
|
|
13577
13575
|
t = it(t, 360), e = it(e, 100), r = it(r, 100);
|
|
13578
|
-
function u(p,
|
|
13579
|
-
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (
|
|
13576
|
+
function u(p, g, c) {
|
|
13577
|
+
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (g - p) * 6 * c : c < 1 / 2 ? g : c < 2 / 3 ? p + (g - p) * (2 / 3 - c) * 6 : p;
|
|
13580
13578
|
}
|
|
13581
13579
|
if (e === 0)
|
|
13582
13580
|
n = i = a = r;
|
|
@@ -13609,8 +13607,8 @@ function qg(t, e, r) {
|
|
|
13609
13607
|
}
|
|
13610
13608
|
function lL(t, e, r) {
|
|
13611
13609
|
t = it(t, 360) * 6, e = it(e, 100), r = it(r, 100);
|
|
13612
|
-
var n = Math.floor(t), i = t - n, a = r * (1 - e), u = r * (1 - i * e), l = r * (1 - (1 - i) * e), f = n % 6, p = [r, u, a, a, l, r][f],
|
|
13613
|
-
return { r: p * 255, g:
|
|
13610
|
+
var n = Math.floor(t), i = t - n, a = r * (1 - e), u = r * (1 - i * e), l = r * (1 - (1 - i) * e), f = n % 6, p = [r, u, a, a, l, r][f], g = [l, r, r, u, a, a][f], c = [a, a, l, r, r, u][f];
|
|
13611
|
+
return { r: p * 255, g: g * 255, b: c * 255 };
|
|
13614
13612
|
}
|
|
13615
13613
|
function Yg(t, e, r, n) {
|
|
13616
13614
|
var i = [
|
|
@@ -14024,9 +14022,9 @@ var IL = function() {
|
|
|
14024
14022
|
}(), Es = Math.PI * 2, rc = function(e, r, n, i, a, u, l) {
|
|
14025
14023
|
var f = e.x, p = e.y;
|
|
14026
14024
|
f *= r, p *= n;
|
|
14027
|
-
var
|
|
14025
|
+
var g = i * f - a * p, c = a * f + i * p;
|
|
14028
14026
|
return {
|
|
14029
|
-
x:
|
|
14027
|
+
x: g + u,
|
|
14030
14028
|
y: c + l
|
|
14031
14029
|
};
|
|
14032
14030
|
}, RL = function(e, r) {
|
|
@@ -14044,13 +14042,13 @@ var IL = function() {
|
|
|
14044
14042
|
}, Jg = function(e, r, n, i) {
|
|
14045
14043
|
var a = e * i - r * n < 0 ? -1 : 1, u = e * n + r * i;
|
|
14046
14044
|
return u > 1 && (u = 1), u < -1 && (u = -1), a * Math.acos(u);
|
|
14047
|
-
}, PL = function(e, r, n, i, a, u, l, f, p,
|
|
14048
|
-
var
|
|
14049
|
-
x < 0 && (x = 0), x /=
|
|
14050
|
-
var E = x * a / u * d, w = x * -u / a * c, I =
|
|
14045
|
+
}, PL = function(e, r, n, i, a, u, l, f, p, g, c, d) {
|
|
14046
|
+
var m = Math.pow(a, 2), _ = Math.pow(u, 2), y = Math.pow(c, 2), b = Math.pow(d, 2), x = m * _ - m * b - _ * y;
|
|
14047
|
+
x < 0 && (x = 0), x /= m * b + _ * y, x = Math.sqrt(x) * (l === f ? -1 : 1);
|
|
14048
|
+
var E = x * a / u * d, w = x * -u / a * c, I = g * E - p * w + (e + n) / 2, O = p * E + g * w + (r + i) / 2, F = (c - E) / a, N = (d - w) / u, L = (-c - E) / a, D = (-d - w) / u, V = Jg(1, 0, F, N), Y = Jg(F, N, L, D);
|
|
14051
14049
|
return f === 0 && Y > 0 && (Y -= Es), f === 1 && Y < 0 && (Y += Es), [I, O, V, Y];
|
|
14052
14050
|
}, em = function(e) {
|
|
14053
|
-
var r = e.px, n = e.py, i = e.cx, a = e.cy, u = e.rx, l = e.ry, f = e.xAxisRotation, p = f === void 0 ? 0 : f,
|
|
14051
|
+
var r = e.px, n = e.py, i = e.cx, a = e.cy, u = e.rx, l = e.ry, f = e.xAxisRotation, p = f === void 0 ? 0 : f, g = e.largeArcFlag, c = g === void 0 ? 0 : g, d = e.sweepFlag, m = d === void 0 ? 0 : d, _ = [];
|
|
14054
14052
|
if (u === 0 || l === 0)
|
|
14055
14053
|
return [];
|
|
14056
14054
|
var y = Math.sin(p * Es / 360), b = Math.cos(p * Es / 360), x = b * (r - i) / 2 + y * (n - a) / 2, E = -y * (r - i) / 2 + b * (n - a) / 2;
|
|
@@ -14059,7 +14057,7 @@ var IL = function() {
|
|
|
14059
14057
|
u = Math.abs(u), l = Math.abs(l);
|
|
14060
14058
|
var w = Math.pow(x, 2) / Math.pow(u, 2) + Math.pow(E, 2) / Math.pow(l, 2);
|
|
14061
14059
|
w > 1 && (u *= Math.sqrt(w), l *= Math.sqrt(w));
|
|
14062
|
-
var I = PL(r, n, i, a, u, l, c,
|
|
14060
|
+
var I = PL(r, n, i, a, u, l, c, m, y, b, x, E), O = IL(I, 4), F = O[0], N = O[1], L = O[2], D = O[3], V = Math.abs(D) / (Es / 4);
|
|
14063
14061
|
Math.abs(1 - V) < 1e-7 && (V = 1);
|
|
14064
14062
|
var Y = Math.max(Math.ceil(V), 1);
|
|
14065
14063
|
D /= Y;
|
|
@@ -14147,8 +14145,8 @@ class ML extends yh {
|
|
|
14147
14145
|
const i = e.nodeName === "elipse";
|
|
14148
14146
|
i && (r += "x", n += "y");
|
|
14149
14147
|
const a = parseFloat(e.getAttribute(n)), u = parseFloat(e.getAttribute(r)), l = e.getAttribute("cx"), f = e.getAttribute("cy");
|
|
14150
|
-
let p = 0,
|
|
14151
|
-
l !== null && (p = parseFloat(l)), f !== null && (
|
|
14148
|
+
let p = 0, g = 0;
|
|
14149
|
+
l !== null && (p = parseFloat(l)), f !== null && (g = parseFloat(f)), i ? this.drawEllipse(p, g, a, u) : this.drawCircle(p, g, a);
|
|
14152
14150
|
}
|
|
14153
14151
|
/**
|
|
14154
14152
|
* Render a <rect> element
|
|
@@ -14205,17 +14203,17 @@ class ML extends yh {
|
|
|
14205
14203
|
* @param inherit - Inherit the fill style
|
|
14206
14204
|
*/
|
|
14207
14205
|
_svgFill(e, r) {
|
|
14208
|
-
const { fill: n, opacity: i, stroke: a, strokeOpacity: u, strokeWidth: l, cap: f, join: p, miterLimit:
|
|
14206
|
+
const { fill: n, opacity: i, stroke: a, strokeOpacity: u, strokeWidth: l, cap: f, join: p, miterLimit: g } = this._svgStyle(e), d = l !== null ? parseFloat(l) : a !== null ? 1 : 0, m = a !== null ? this._hexToUint(a) : this.lineColor;
|
|
14209
14207
|
n ? n === "none" ? this.beginFill(0, 0) : this.beginFill(
|
|
14210
14208
|
this._hexToUint(n),
|
|
14211
14209
|
i !== null ? parseFloat(i) : 1
|
|
14212
14210
|
) : r || this.beginFill(0), this.lineStyle({
|
|
14213
14211
|
width: a === null && l === null && r ? this.line.width : d,
|
|
14214
14212
|
alpha: u === null ? this.line.alpha : parseFloat(u),
|
|
14215
|
-
color: a === null && r ? this.line.color :
|
|
14213
|
+
color: a === null && r ? this.line.color : m,
|
|
14216
14214
|
cap: f === null && r ? this.line.cap : f,
|
|
14217
14215
|
join: p === null && r ? this.line.join : p,
|
|
14218
|
-
miterLimit:
|
|
14216
|
+
miterLimit: g === null && r ? this.line.miterLimit : parseFloat(g)
|
|
14219
14217
|
}), e.getAttribute("fill-rule") && console.info('[PIXI.SVG] "fill-rule" attribute is not supported');
|
|
14220
14218
|
}
|
|
14221
14219
|
/**
|
|
@@ -14332,7 +14330,7 @@ class ML extends yh {
|
|
|
14332
14330
|
xAxisRotation: l.rotation,
|
|
14333
14331
|
largeArcFlag: l.large ? 1 : 0,
|
|
14334
14332
|
sweepFlag: l.clockwise ? 1 : 0
|
|
14335
|
-
}).forEach(({ x1: f, y1: p, x2:
|
|
14333
|
+
}).forEach(({ x1: f, y1: p, x2: g, y2: c, x: d, y: m }) => this.bezierCurveTo(f, p, g, c, d, m));
|
|
14336
14334
|
break;
|
|
14337
14335
|
}
|
|
14338
14336
|
case "A": {
|
|
@@ -14346,7 +14344,7 @@ class ML extends yh {
|
|
|
14346
14344
|
xAxisRotation: l.rotation,
|
|
14347
14345
|
largeArcFlag: l.large ? 1 : 0,
|
|
14348
14346
|
sweepFlag: l.clockwise ? 1 : 0
|
|
14349
|
-
}).forEach(({ x1: f, y1: p, x2:
|
|
14347
|
+
}).forEach(({ x1: f, y1: p, x2: g, y2: c, x: d, y: m }) => this.bezierCurveTo(f, p, g, c, d, m));
|
|
14350
14348
|
break;
|
|
14351
14349
|
}
|
|
14352
14350
|
default: {
|
|
@@ -14607,9 +14605,9 @@ function tm(t, e, r, n) {
|
|
|
14607
14605
|
return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
|
|
14608
14606
|
}
|
|
14609
14607
|
function qL(t, e, r, n, i, a, u, l, f, p) {
|
|
14610
|
-
var
|
|
14611
|
-
b < 0 && (b = 0), b /= d * y +
|
|
14612
|
-
var x = b * u / l * c, E = b * -l / u *
|
|
14608
|
+
var g = p * (t - r) / 2 + f * (e - n) / 2, c = -f * (t - r) / 2 + p * (e - n) / 2, d = u * u, m = l * l, _ = g * g, y = c * c, b = d * m - d * y - m * _;
|
|
14609
|
+
b < 0 && (b = 0), b /= d * y + m * _, b = Math.sqrt(b) * (i === a ? -1 : 1);
|
|
14610
|
+
var x = b * u / l * c, E = b * -l / u * g, w = p * x - f * E + (t + r) / 2, I = f * x + p * E + (e + n) / 2, O = (g - x) / u, F = (c - E) / l, N = (-g - x) / u, L = (-c - E) / l, D = tm(1, 0, O, F), V = tm(O, F, N, L);
|
|
14613
14611
|
return a === 0 && V > 0 && (V -= Cs), a === 1 && V < 0 && (V += Cs), [w, I, D, V];
|
|
14614
14612
|
}
|
|
14615
14613
|
function YL(t, e) {
|
|
@@ -14617,15 +14615,15 @@ function YL(t, e) {
|
|
|
14617
14615
|
return [n, i, n - i * r, i + n * r, a + u * r, u - a * r, a, u];
|
|
14618
14616
|
}
|
|
14619
14617
|
var KL = function(e, r, n, i, a, u, l, f, p) {
|
|
14620
|
-
var
|
|
14621
|
-
if (d === 0 &&
|
|
14618
|
+
var g = Math.sin(p * Cs / 360), c = Math.cos(p * Cs / 360), d = c * (e - n) / 2 + g * (r - i) / 2, m = -g * (e - n) / 2 + c * (r - i) / 2;
|
|
14619
|
+
if (d === 0 && m === 0)
|
|
14622
14620
|
return [];
|
|
14623
14621
|
if (l === 0 || f === 0)
|
|
14624
14622
|
return [];
|
|
14625
14623
|
l = Math.abs(l), f = Math.abs(f);
|
|
14626
|
-
var _ = d * d / (l * l) +
|
|
14624
|
+
var _ = d * d / (l * l) + m * m / (f * f);
|
|
14627
14625
|
_ > 1 && (l *= Math.sqrt(_), f *= Math.sqrt(_));
|
|
14628
|
-
var y = qL(e, r, n, i, a, u, l, f,
|
|
14626
|
+
var y = qL(e, r, n, i, a, u, l, f, g, c), b = [], x = y[2], E = y[3], w = Math.max(Math.ceil(Math.abs(E) / (Cs / 4)), 1);
|
|
14629
14627
|
E /= w;
|
|
14630
14628
|
for (var I = 0; I < w; I++)
|
|
14631
14629
|
b.push(YL(x, E)), x += E;
|
|
@@ -14633,7 +14631,7 @@ var KL = function(e, r, n, i, a, u, l, f, p) {
|
|
|
14633
14631
|
for (var F = 0; F < O.length; F += 2) {
|
|
14634
14632
|
var N = O[F + 0], L = O[F + 1];
|
|
14635
14633
|
N *= l, L *= f;
|
|
14636
|
-
var D = c * N -
|
|
14634
|
+
var D = c * N - g * L, V = g * N + c * L;
|
|
14637
14635
|
O[F + 0] = D + y[0], O[F + 1] = V + y[1];
|
|
14638
14636
|
}
|
|
14639
14637
|
return O;
|
|
@@ -14655,10 +14653,10 @@ Ds.prototype.transform = function(t) {
|
|
|
14655
14653
|
return this.rx = this.ry = Math.sqrt(l), this.ax = 0, this;
|
|
14656
14654
|
var f = n[0] * n[1] + n[2] * n[3];
|
|
14657
14655
|
u = Math.sqrt(u);
|
|
14658
|
-
var p = l + u / 2,
|
|
14656
|
+
var p = l + u / 2, g = l - u / 2;
|
|
14659
14657
|
return this.ax = Math.abs(f) < Is && Math.abs(p - a) < Is ? 90 : Math.atan(
|
|
14660
14658
|
Math.abs(f) > Math.abs(p - a) ? (p - i) / f : f / (p - a)
|
|
14661
|
-
) * 180 / Math.PI, this.ax >= 0 ? (this.rx = Math.sqrt(p), this.ry = Math.sqrt(
|
|
14659
|
+
) * 180 / Math.PI, this.ax >= 0 ? (this.rx = Math.sqrt(p), this.ry = Math.sqrt(g)) : (this.ax += 90, this.rx = Math.sqrt(g), this.ry = Math.sqrt(p)), this;
|
|
14662
14660
|
};
|
|
14663
14661
|
Ds.prototype.isDegenerate = function() {
|
|
14664
14662
|
return this.rx < Is * this.ry || this.ry < Is * this.rx;
|
|
@@ -14686,7 +14684,7 @@ ut.from = function(t) {
|
|
|
14686
14684
|
ut.prototype.__matrix = function(t) {
|
|
14687
14685
|
var e = this, r;
|
|
14688
14686
|
t.queue.length && this.iterate(function(n, i, a, u) {
|
|
14689
|
-
var l, f, p,
|
|
14687
|
+
var l, f, p, g;
|
|
14690
14688
|
switch (n[0]) {
|
|
14691
14689
|
case "v":
|
|
14692
14690
|
l = t.calc(0, n[1], !0), f = l[0] === 0 ? ["v", l[1]] : ["l", l[0], l[1]];
|
|
@@ -14710,11 +14708,11 @@ ut.prototype.__matrix = function(t) {
|
|
|
14710
14708
|
d.isDegenerate() ? f = [n[0] === "a" ? "l" : "L", l[0], l[1]] : f = [n[0], d.rx, d.ry, d.ax, n[4], n[5], l[0], l[1]];
|
|
14711
14709
|
break;
|
|
14712
14710
|
case "m":
|
|
14713
|
-
|
|
14711
|
+
g = i > 0, l = t.calc(n[1], n[2], g), f = ["m", l[0], l[1]];
|
|
14714
14712
|
break;
|
|
14715
14713
|
default:
|
|
14716
|
-
for (p = n[0], f = [p],
|
|
14717
|
-
l = t.calc(n[r], n[r + 1],
|
|
14714
|
+
for (p = n[0], f = [p], g = p.toLowerCase() === p, r = 1; r < n.length; r += 2)
|
|
14715
|
+
l = t.calc(n[r], n[r + 1], g), f.push(l[0], l[1]);
|
|
14718
14716
|
}
|
|
14719
14717
|
e.segments[i] = f;
|
|
14720
14718
|
}, !0);
|
|
@@ -14800,10 +14798,10 @@ ut.prototype.round = function(t) {
|
|
|
14800
14798
|
}), this;
|
|
14801
14799
|
};
|
|
14802
14800
|
ut.prototype.iterate = function(t, e) {
|
|
14803
|
-
var r = this.segments, n = {}, i = !1, a = 0, u = 0, l = 0, f = 0, p,
|
|
14804
|
-
if (e || this.__evaluateStack(), r.forEach(function(d,
|
|
14805
|
-
var _ = t(d,
|
|
14806
|
-
Array.isArray(_) && (n[
|
|
14801
|
+
var r = this.segments, n = {}, i = !1, a = 0, u = 0, l = 0, f = 0, p, g, c;
|
|
14802
|
+
if (e || this.__evaluateStack(), r.forEach(function(d, m) {
|
|
14803
|
+
var _ = t(d, m, a, u);
|
|
14804
|
+
Array.isArray(_) && (n[m] = _, i = !0);
|
|
14807
14805
|
var y = d[0] === d[0].toLowerCase();
|
|
14808
14806
|
switch (d[0]) {
|
|
14809
14807
|
case "m":
|
|
@@ -14829,8 +14827,8 @@ ut.prototype.iterate = function(t, e) {
|
|
|
14829
14827
|
return this;
|
|
14830
14828
|
for (c = [], p = 0; p < r.length; p++)
|
|
14831
14829
|
if (typeof n[p] < "u")
|
|
14832
|
-
for (
|
|
14833
|
-
c.push(n[p][
|
|
14830
|
+
for (g = 0; g < n[p].length; g++)
|
|
14831
|
+
c.push(n[p][g]);
|
|
14834
14832
|
else
|
|
14835
14833
|
c.push(r[p]);
|
|
14836
14834
|
return this.segments = c, this;
|
|
@@ -14880,14 +14878,14 @@ ut.prototype.unarc = function() {
|
|
|
14880
14878
|
ut.prototype.unshort = function() {
|
|
14881
14879
|
var t = this.segments, e, r, n, i, a;
|
|
14882
14880
|
return this.iterate(function(u, l, f, p) {
|
|
14883
|
-
var
|
|
14884
|
-
l && (c === "T" ? (d =
|
|
14881
|
+
var g = u[0], c = g.toUpperCase(), d;
|
|
14882
|
+
l && (c === "T" ? (d = g === "t", n = t[l - 1], n[0] === "Q" ? (e = n[1] - f, r = n[2] - p) : n[0] === "q" ? (e = n[1] - n[3], r = n[2] - n[4]) : (e = 0, r = 0), i = -e, a = -r, d || (i += f, a += p), t[l] = [
|
|
14885
14883
|
d ? "q" : "Q",
|
|
14886
14884
|
i,
|
|
14887
14885
|
a,
|
|
14888
14886
|
u[1],
|
|
14889
14887
|
u[2]
|
|
14890
|
-
]) : c === "S" && (d =
|
|
14888
|
+
]) : c === "S" && (d = g === "s", n = t[l - 1], n[0] === "C" ? (e = n[3] - f, r = n[4] - p) : n[0] === "c" ? (e = n[3] - n[5], r = n[4] - n[6]) : (e = 0, r = 0), i = -e, a = -r, d || (i += f, a += p), t[l] = [
|
|
14891
14889
|
d ? "c" : "C",
|
|
14892
14890
|
i,
|
|
14893
14891
|
a,
|
|
@@ -14905,10 +14903,10 @@ const ik = /* @__PURE__ */ qn(nk), cU = te.forwardRef((t, e) => {
|
|
|
14905
14903
|
visible: f,
|
|
14906
14904
|
disabled: p,
|
|
14907
14905
|
transformation: {
|
|
14908
|
-
x:
|
|
14906
|
+
x: g,
|
|
14909
14907
|
y: c,
|
|
14910
14908
|
width: d,
|
|
14911
|
-
height:
|
|
14909
|
+
height: m,
|
|
14912
14910
|
anchor: _,
|
|
14913
14911
|
hexColor: y,
|
|
14914
14912
|
fill: b,
|
|
@@ -14928,21 +14926,21 @@ const ik = /* @__PURE__ */ qn(nk), cU = te.forwardRef((t, e) => {
|
|
|
14928
14926
|
noiseFilter: X
|
|
14929
14927
|
} = Qn(w), { blurRadius: G = 0, vignette: ie = 0, noise: re = 0 } = w;
|
|
14930
14928
|
return te.useEffect(() => {
|
|
14931
|
-
const H = ik(l).scale(5).translate(0, 0).toString(), Q = `<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${
|
|
14929
|
+
const H = ik(l).scale(5).translate(0, 0).toString(), Q = `<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${m}">
|
|
14932
14930
|
<path stroke="${x}" stroke-width="${E}" fill="${y || b}" d="${H}">
|
|
14933
14931
|
</path>
|
|
14934
14932
|
</svg>`, ge = new ML(Q), W = F.renderer.generateTexture(ge);
|
|
14935
14933
|
return n(W), () => {
|
|
14936
14934
|
};
|
|
14937
|
-
}, [F, l, x, E, y, b]), /* @__PURE__ */
|
|
14935
|
+
}, [F, l, x, E, y, b]), /* @__PURE__ */ Ae.jsx(vn, { ...t, ref: e, children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, children: /* @__PURE__ */ Ae.jsx(wt, { ref: u, children: r && /* @__PURE__ */ Ae.jsx(
|
|
14938
14936
|
Bs,
|
|
14939
14937
|
{
|
|
14940
14938
|
texture: r,
|
|
14941
14939
|
width: d,
|
|
14942
|
-
height:
|
|
14940
|
+
height: m,
|
|
14943
14941
|
anchor: _,
|
|
14944
14942
|
ref: i,
|
|
14945
|
-
x:
|
|
14943
|
+
x: g,
|
|
14946
14944
|
y: c,
|
|
14947
14945
|
alpha: f ? 1 : 0,
|
|
14948
14946
|
...!p && f && {
|
|
@@ -14996,14 +14994,14 @@ var uv = {};
|
|
|
14996
14994
|
*/
|
|
14997
14995
|
volume: function(c) {
|
|
14998
14996
|
var d = this || r;
|
|
14999
|
-
if (c = parseFloat(c), d.ctx ||
|
|
14997
|
+
if (c = parseFloat(c), d.ctx || g(), typeof c < "u" && c >= 0 && c <= 1) {
|
|
15000
14998
|
if (d._volume = c, d._muted)
|
|
15001
14999
|
return d;
|
|
15002
15000
|
d.usingWebAudio && d.masterGain.gain.setValueAtTime(c, r.ctx.currentTime);
|
|
15003
|
-
for (var
|
|
15004
|
-
if (!d._howls[
|
|
15005
|
-
for (var _ = d._howls[
|
|
15006
|
-
var b = d._howls[
|
|
15001
|
+
for (var m = 0; m < d._howls.length; m++)
|
|
15002
|
+
if (!d._howls[m]._webAudio)
|
|
15003
|
+
for (var _ = d._howls[m]._getSoundIds(), y = 0; y < _.length; y++) {
|
|
15004
|
+
var b = d._howls[m]._soundById(_[y]);
|
|
15007
15005
|
b && b._node && (b._node.volume = b._volume * c);
|
|
15008
15006
|
}
|
|
15009
15007
|
return d;
|
|
@@ -15016,11 +15014,11 @@ var uv = {};
|
|
|
15016
15014
|
*/
|
|
15017
15015
|
mute: function(c) {
|
|
15018
15016
|
var d = this || r;
|
|
15019
|
-
d.ctx ||
|
|
15020
|
-
for (var
|
|
15021
|
-
if (!d._howls[
|
|
15022
|
-
for (var _ = d._howls[
|
|
15023
|
-
var b = d._howls[
|
|
15017
|
+
d.ctx || g(), d._muted = c, d.usingWebAudio && d.masterGain.gain.setValueAtTime(c ? 0 : d._volume, r.ctx.currentTime);
|
|
15018
|
+
for (var m = 0; m < d._howls.length; m++)
|
|
15019
|
+
if (!d._howls[m]._webAudio)
|
|
15020
|
+
for (var _ = d._howls[m]._getSoundIds(), y = 0; y < _.length; y++) {
|
|
15021
|
+
var b = d._howls[m]._soundById(_[y]);
|
|
15024
15022
|
b && b._node && (b._node.muted = c ? !0 : b._muted);
|
|
15025
15023
|
}
|
|
15026
15024
|
return d;
|
|
@@ -15040,7 +15038,7 @@ var uv = {};
|
|
|
15040
15038
|
unload: function() {
|
|
15041
15039
|
for (var c = this || r, d = c._howls.length - 1; d >= 0; d--)
|
|
15042
15040
|
c._howls[d].unload();
|
|
15043
|
-
return c.usingWebAudio && c.ctx && typeof c.ctx.close < "u" && (c.ctx.close(), c.ctx = null,
|
|
15041
|
+
return c.usingWebAudio && c.ctx && typeof c.ctx.close < "u" && (c.ctx.close(), c.ctx = null, g()), c;
|
|
15044
15042
|
},
|
|
15045
15043
|
/**
|
|
15046
15044
|
* Check for codec support of specific extension.
|
|
@@ -15086,10 +15084,10 @@ var uv = {};
|
|
|
15086
15084
|
}
|
|
15087
15085
|
if (!d || typeof d.canPlayType != "function")
|
|
15088
15086
|
return c;
|
|
15089
|
-
var
|
|
15087
|
+
var m = d.canPlayType("audio/mpeg;").replace(/^no$/, ""), _ = c._navigator ? c._navigator.userAgent : "", y = _.match(/OPR\/([0-6].)/g), b = y && parseInt(y[0].split("/")[1], 10) < 33, x = _.indexOf("Safari") !== -1 && _.indexOf("Chrome") === -1, E = _.match(/Version\/(.*?) /), w = x && E && parseInt(E[1], 10) < 15;
|
|
15090
15088
|
return c._codecs = {
|
|
15091
|
-
mp3: !!(!b && (
|
|
15092
|
-
mpeg: !!
|
|
15089
|
+
mp3: !!(!b && (m || d.canPlayType("audio/mp3;").replace(/^no$/, ""))),
|
|
15090
|
+
mpeg: !!m,
|
|
15093
15091
|
opus: !!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ""),
|
|
15094
15092
|
ogg: !!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
|
|
15095
15093
|
oga: !!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
|
|
@@ -15115,7 +15113,7 @@ var uv = {};
|
|
|
15115
15113
|
var c = this || r;
|
|
15116
15114
|
if (!(c._audioUnlocked || !c.ctx)) {
|
|
15117
15115
|
c._audioUnlocked = !1, c.autoUnlock = !1, !c._mobileUnloaded && c.ctx.sampleRate !== 44100 && (c._mobileUnloaded = !0, c.unload()), c._scratchBuffer = c.ctx.createBuffer(1, 1, 22050);
|
|
15118
|
-
var d = function(
|
|
15116
|
+
var d = function(m) {
|
|
15119
15117
|
for (; c._html5AudioPool.length < c.html5PoolSize; )
|
|
15120
15118
|
try {
|
|
15121
15119
|
var _ = new Audio();
|
|
@@ -15173,8 +15171,8 @@ var uv = {};
|
|
|
15173
15171
|
if (!(!c.autoSuspend || !c.ctx || typeof c.ctx.suspend > "u" || !r.usingWebAudio)) {
|
|
15174
15172
|
for (var d = 0; d < c._howls.length; d++)
|
|
15175
15173
|
if (c._howls[d]._webAudio) {
|
|
15176
|
-
for (var
|
|
15177
|
-
if (!c._howls[d]._sounds[
|
|
15174
|
+
for (var m = 0; m < c._howls[d]._sounds.length; m++)
|
|
15175
|
+
if (!c._howls[d]._sounds[m]._paused)
|
|
15178
15176
|
return c;
|
|
15179
15177
|
}
|
|
15180
15178
|
return c._suspendTimer && clearTimeout(c._suspendTimer), c._suspendTimer = setTimeout(function() {
|
|
@@ -15218,7 +15216,7 @@ var uv = {};
|
|
|
15218
15216
|
*/
|
|
15219
15217
|
init: function(c) {
|
|
15220
15218
|
var d = this;
|
|
15221
|
-
return r.ctx ||
|
|
15219
|
+
return r.ctx || g(), d._autoplay = c.autoplay || !1, d._format = typeof c.format != "string" ? c.format : [c.format], d._html5 = c.html5 || !1, d._muted = c.mute || !1, d._loop = c.loop || !1, d._pool = c.pool || 5, d._preload = typeof c.preload == "boolean" || c.preload === "metadata" ? c.preload : !0, d._rate = c.rate || 1, d._sprite = c.sprite || {}, d._src = typeof c.src != "string" ? c.src : [c.src], d._volume = c.volume !== void 0 ? c.volume : 1, d._xhr = {
|
|
15222
15220
|
method: c.xhr && c.xhr.method ? c.xhr.method : "GET",
|
|
15223
15221
|
headers: c.xhr && c.xhr.headers ? c.xhr.headers : null,
|
|
15224
15222
|
withCredentials: c.xhr && c.xhr.withCredentials ? c.xhr.withCredentials : !1
|
|
@@ -15240,19 +15238,19 @@ var uv = {};
|
|
|
15240
15238
|
return;
|
|
15241
15239
|
}
|
|
15242
15240
|
typeof c._src == "string" && (c._src = [c._src]);
|
|
15243
|
-
for (var
|
|
15241
|
+
for (var m = 0; m < c._src.length; m++) {
|
|
15244
15242
|
var _, y;
|
|
15245
|
-
if (c._format && c._format[
|
|
15246
|
-
_ = c._format[
|
|
15243
|
+
if (c._format && c._format[m])
|
|
15244
|
+
_ = c._format[m];
|
|
15247
15245
|
else {
|
|
15248
|
-
if (y = c._src[
|
|
15246
|
+
if (y = c._src[m], typeof y != "string") {
|
|
15249
15247
|
c._emit("loaderror", null, "Non-string found in selected audio sources - ignoring.");
|
|
15250
15248
|
continue;
|
|
15251
15249
|
}
|
|
15252
15250
|
_ = /^data:audio\/([^;,]+);/i.exec(y), _ || (_ = /\.([^.]+)$/.exec(y.split("?", 1)[0])), _ && (_ = _[1].toLowerCase());
|
|
15253
15251
|
}
|
|
15254
15252
|
if (_ || console.warn('No file extension was found. Consider using the "format" property or specify an extension.'), _ && r.codecs(_)) {
|
|
15255
|
-
d = c._src[
|
|
15253
|
+
d = c._src[m];
|
|
15256
15254
|
break;
|
|
15257
15255
|
}
|
|
15258
15256
|
}
|
|
@@ -15269,83 +15267,83 @@ var uv = {};
|
|
|
15269
15267
|
* @return {Number} Sound ID.
|
|
15270
15268
|
*/
|
|
15271
15269
|
play: function(c, d) {
|
|
15272
|
-
var
|
|
15270
|
+
var m = this, _ = null;
|
|
15273
15271
|
if (typeof c == "number")
|
|
15274
15272
|
_ = c, c = null;
|
|
15275
15273
|
else {
|
|
15276
|
-
if (typeof c == "string" &&
|
|
15274
|
+
if (typeof c == "string" && m._state === "loaded" && !m._sprite[c])
|
|
15277
15275
|
return null;
|
|
15278
|
-
if (typeof c > "u" && (c = "__default", !
|
|
15279
|
-
for (var y = 0, b = 0; b <
|
|
15280
|
-
|
|
15276
|
+
if (typeof c > "u" && (c = "__default", !m._playLock)) {
|
|
15277
|
+
for (var y = 0, b = 0; b < m._sounds.length; b++)
|
|
15278
|
+
m._sounds[b]._paused && !m._sounds[b]._ended && (y++, _ = m._sounds[b]._id);
|
|
15281
15279
|
y === 1 ? c = null : _ = null;
|
|
15282
15280
|
}
|
|
15283
15281
|
}
|
|
15284
|
-
var x = _ ?
|
|
15282
|
+
var x = _ ? m._soundById(_) : m._inactiveSound();
|
|
15285
15283
|
if (!x)
|
|
15286
15284
|
return null;
|
|
15287
|
-
if (_ && !c && (c = x._sprite || "__default"),
|
|
15285
|
+
if (_ && !c && (c = x._sprite || "__default"), m._state !== "loaded") {
|
|
15288
15286
|
x._sprite = c, x._ended = !1;
|
|
15289
15287
|
var E = x._id;
|
|
15290
|
-
return
|
|
15288
|
+
return m._queue.push({
|
|
15291
15289
|
event: "play",
|
|
15292
15290
|
action: function() {
|
|
15293
|
-
|
|
15291
|
+
m.play(E);
|
|
15294
15292
|
}
|
|
15295
15293
|
}), E;
|
|
15296
15294
|
}
|
|
15297
15295
|
if (_ && !x._paused)
|
|
15298
|
-
return d ||
|
|
15299
|
-
|
|
15300
|
-
var w = Math.max(0, x._seek > 0 ? x._seek :
|
|
15296
|
+
return d || m._loadQueue("play"), x._id;
|
|
15297
|
+
m._webAudio && r._autoResume();
|
|
15298
|
+
var w = Math.max(0, x._seek > 0 ? x._seek : m._sprite[c][0] / 1e3), I = Math.max(0, (m._sprite[c][0] + m._sprite[c][1]) / 1e3 - w), O = I * 1e3 / Math.abs(x._rate), F = m._sprite[c][0] / 1e3, N = (m._sprite[c][0] + m._sprite[c][1]) / 1e3;
|
|
15301
15299
|
x._sprite = c, x._ended = !1;
|
|
15302
15300
|
var L = function() {
|
|
15303
|
-
x._paused = !1, x._seek = w, x._start = F, x._stop = N, x._loop = !!(x._loop ||
|
|
15301
|
+
x._paused = !1, x._seek = w, x._start = F, x._stop = N, x._loop = !!(x._loop || m._sprite[c][2]);
|
|
15304
15302
|
};
|
|
15305
15303
|
if (w >= N) {
|
|
15306
|
-
|
|
15304
|
+
m._ended(x);
|
|
15307
15305
|
return;
|
|
15308
15306
|
}
|
|
15309
15307
|
var D = x._node;
|
|
15310
|
-
if (
|
|
15308
|
+
if (m._webAudio) {
|
|
15311
15309
|
var V = function() {
|
|
15312
|
-
|
|
15313
|
-
var G = x._muted ||
|
|
15314
|
-
D.gain.setValueAtTime(G, r.ctx.currentTime), x._playStart = r.ctx.currentTime, typeof D.bufferSource.start > "u" ? x._loop ? D.bufferSource.noteGrainOn(0, w, 86400) : D.bufferSource.noteGrainOn(0, w, I) : x._loop ? D.bufferSource.start(0, w, 86400) : D.bufferSource.start(0, w, I), O !== 1 / 0 && (
|
|
15315
|
-
|
|
15310
|
+
m._playLock = !1, L(), m._refreshBuffer(x);
|
|
15311
|
+
var G = x._muted || m._muted ? 0 : x._volume;
|
|
15312
|
+
D.gain.setValueAtTime(G, r.ctx.currentTime), x._playStart = r.ctx.currentTime, typeof D.bufferSource.start > "u" ? x._loop ? D.bufferSource.noteGrainOn(0, w, 86400) : D.bufferSource.noteGrainOn(0, w, I) : x._loop ? D.bufferSource.start(0, w, 86400) : D.bufferSource.start(0, w, I), O !== 1 / 0 && (m._endTimers[x._id] = setTimeout(m._ended.bind(m, x), O)), d || setTimeout(function() {
|
|
15313
|
+
m._emit("play", x._id), m._loadQueue();
|
|
15316
15314
|
}, 0);
|
|
15317
15315
|
};
|
|
15318
|
-
r.state === "running" && r.ctx.state !== "interrupted" ? V() : (
|
|
15316
|
+
r.state === "running" && r.ctx.state !== "interrupted" ? V() : (m._playLock = !0, m.once("resume", V), m._clearTimer(x._id));
|
|
15319
15317
|
} else {
|
|
15320
15318
|
var Y = function() {
|
|
15321
|
-
D.currentTime = w, D.muted = x._muted ||
|
|
15319
|
+
D.currentTime = w, D.muted = x._muted || m._muted || r._muted || D.muted, D.volume = x._volume * r.volume(), D.playbackRate = x._rate;
|
|
15322
15320
|
try {
|
|
15323
15321
|
var G = D.play();
|
|
15324
|
-
if (G && typeof Promise < "u" && (G instanceof Promise || typeof G.then == "function") ? (
|
|
15325
|
-
|
|
15322
|
+
if (G && typeof Promise < "u" && (G instanceof Promise || typeof G.then == "function") ? (m._playLock = !0, L(), G.then(function() {
|
|
15323
|
+
m._playLock = !1, D._unlocked = !0, d ? m._loadQueue() : m._emit("play", x._id);
|
|
15326
15324
|
}).catch(function() {
|
|
15327
|
-
|
|
15328
|
-
})) : d || (
|
|
15329
|
-
|
|
15325
|
+
m._playLock = !1, m._emit("playerror", x._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."), x._ended = !0, x._paused = !0;
|
|
15326
|
+
})) : d || (m._playLock = !1, L(), m._emit("play", x._id)), D.playbackRate = x._rate, D.paused) {
|
|
15327
|
+
m._emit("playerror", x._id, "Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");
|
|
15330
15328
|
return;
|
|
15331
15329
|
}
|
|
15332
|
-
c !== "__default" || x._loop ?
|
|
15333
|
-
|
|
15334
|
-
}, D.addEventListener("ended",
|
|
15330
|
+
c !== "__default" || x._loop ? m._endTimers[x._id] = setTimeout(m._ended.bind(m, x), O) : (m._endTimers[x._id] = function() {
|
|
15331
|
+
m._ended(x), D.removeEventListener("ended", m._endTimers[x._id], !1);
|
|
15332
|
+
}, D.addEventListener("ended", m._endTimers[x._id], !1));
|
|
15335
15333
|
} catch (ie) {
|
|
15336
|
-
|
|
15334
|
+
m._emit("playerror", x._id, ie);
|
|
15337
15335
|
}
|
|
15338
15336
|
};
|
|
15339
|
-
D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src =
|
|
15337
|
+
D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src = m._src, D.load());
|
|
15340
15338
|
var se = window && window.ejecta || !D.readyState && r._navigator.isCocoonJS;
|
|
15341
15339
|
if (D.readyState >= 3 || se)
|
|
15342
15340
|
Y();
|
|
15343
15341
|
else {
|
|
15344
|
-
|
|
15342
|
+
m._playLock = !0, m._state = "loading";
|
|
15345
15343
|
var X = function() {
|
|
15346
|
-
|
|
15344
|
+
m._state = "loaded", Y(), D.removeEventListener(r._canPlayEvent, X, !1);
|
|
15347
15345
|
};
|
|
15348
|
-
D.addEventListener(r._canPlayEvent, X, !1),
|
|
15346
|
+
D.addEventListener(r._canPlayEvent, X, !1), m._clearTimer(x._id);
|
|
15349
15347
|
}
|
|
15350
15348
|
}
|
|
15351
15349
|
return x._id;
|
|
@@ -15364,10 +15362,10 @@ var uv = {};
|
|
|
15364
15362
|
d.pause(c);
|
|
15365
15363
|
}
|
|
15366
15364
|
}), d;
|
|
15367
|
-
for (var
|
|
15368
|
-
d._clearTimer(
|
|
15369
|
-
var y = d._soundById(
|
|
15370
|
-
if (y && !y._paused && (y._seek = d.seek(
|
|
15365
|
+
for (var m = d._getSoundIds(c), _ = 0; _ < m.length; _++) {
|
|
15366
|
+
d._clearTimer(m[_]);
|
|
15367
|
+
var y = d._soundById(m[_]);
|
|
15368
|
+
if (y && !y._paused && (y._seek = d.seek(m[_]), y._rateSeek = 0, y._paused = !0, d._stopFade(m[_]), y._node))
|
|
15371
15369
|
if (d._webAudio) {
|
|
15372
15370
|
if (!y._node.bufferSource)
|
|
15373
15371
|
continue;
|
|
@@ -15385,20 +15383,20 @@ var uv = {};
|
|
|
15385
15383
|
* @return {Howl}
|
|
15386
15384
|
*/
|
|
15387
15385
|
stop: function(c, d) {
|
|
15388
|
-
var
|
|
15389
|
-
if (
|
|
15390
|
-
return
|
|
15386
|
+
var m = this;
|
|
15387
|
+
if (m._state !== "loaded" || m._playLock)
|
|
15388
|
+
return m._queue.push({
|
|
15391
15389
|
event: "stop",
|
|
15392
15390
|
action: function() {
|
|
15393
|
-
|
|
15391
|
+
m.stop(c);
|
|
15394
15392
|
}
|
|
15395
|
-
}),
|
|
15396
|
-
for (var _ =
|
|
15397
|
-
|
|
15398
|
-
var b =
|
|
15399
|
-
b && (b._seek = b._start || 0, b._rateSeek = 0, b._paused = !0, b._ended = !0,
|
|
15393
|
+
}), m;
|
|
15394
|
+
for (var _ = m._getSoundIds(c), y = 0; y < _.length; y++) {
|
|
15395
|
+
m._clearTimer(_[y]);
|
|
15396
|
+
var b = m._soundById(_[y]);
|
|
15397
|
+
b && (b._seek = b._start || 0, b._rateSeek = 0, b._paused = !0, b._ended = !0, m._stopFade(_[y]), b._node && (m._webAudio ? b._node.bufferSource && (typeof b._node.bufferSource.stop > "u" ? b._node.bufferSource.noteOff(0) : b._node.bufferSource.stop(0), m._cleanBuffer(b._node)) : (!isNaN(b._node.duration) || b._node.duration === 1 / 0) && (b._node.currentTime = b._start || 0, b._node.pause(), b._node.duration === 1 / 0 && m._clearSound(b._node))), d || m._emit("stop", b._id));
|
|
15400
15398
|
}
|
|
15401
|
-
return
|
|
15399
|
+
return m;
|
|
15402
15400
|
},
|
|
15403
15401
|
/**
|
|
15404
15402
|
* Mute/unmute a single sound or all sounds in this Howl group.
|
|
@@ -15407,24 +15405,24 @@ var uv = {};
|
|
|
15407
15405
|
* @return {Howl}
|
|
15408
15406
|
*/
|
|
15409
15407
|
mute: function(c, d) {
|
|
15410
|
-
var
|
|
15411
|
-
if (
|
|
15412
|
-
return
|
|
15408
|
+
var m = this;
|
|
15409
|
+
if (m._state !== "loaded" || m._playLock)
|
|
15410
|
+
return m._queue.push({
|
|
15413
15411
|
event: "mute",
|
|
15414
15412
|
action: function() {
|
|
15415
|
-
|
|
15413
|
+
m.mute(c, d);
|
|
15416
15414
|
}
|
|
15417
|
-
}),
|
|
15415
|
+
}), m;
|
|
15418
15416
|
if (typeof d > "u")
|
|
15419
15417
|
if (typeof c == "boolean")
|
|
15420
|
-
|
|
15418
|
+
m._muted = c;
|
|
15421
15419
|
else
|
|
15422
|
-
return
|
|
15423
|
-
for (var _ =
|
|
15424
|
-
var b =
|
|
15425
|
-
b && (b._muted = c, b._interval &&
|
|
15420
|
+
return m._muted;
|
|
15421
|
+
for (var _ = m._getSoundIds(d), y = 0; y < _.length; y++) {
|
|
15422
|
+
var b = m._soundById(_[y]);
|
|
15423
|
+
b && (b._muted = c, b._interval && m._stopFade(b._id), m._webAudio && b._node ? b._node.gain.setValueAtTime(c ? 0 : b._volume, r.ctx.currentTime) : b._node && (b._node.muted = r._muted ? !0 : c), m._emit("mute", b._id));
|
|
15426
15424
|
}
|
|
15427
|
-
return
|
|
15425
|
+
return m;
|
|
15428
15426
|
},
|
|
15429
15427
|
/**
|
|
15430
15428
|
* Get/set the volume of this sound or of the Howl group. This method can optionally take 0, 1 or 2 arguments.
|
|
@@ -15435,16 +15433,16 @@ var uv = {};
|
|
|
15435
15433
|
* @return {Howl/Number} Returns self or current volume.
|
|
15436
15434
|
*/
|
|
15437
15435
|
volume: function() {
|
|
15438
|
-
var c = this, d = arguments,
|
|
15436
|
+
var c = this, d = arguments, m, _;
|
|
15439
15437
|
if (d.length === 0)
|
|
15440
15438
|
return c._volume;
|
|
15441
15439
|
if (d.length === 1 || d.length === 2 && typeof d[1] > "u") {
|
|
15442
15440
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15443
|
-
b >= 0 ? _ = parseInt(d[0], 10) :
|
|
15441
|
+
b >= 0 ? _ = parseInt(d[0], 10) : m = parseFloat(d[0]);
|
|
15444
15442
|
} else
|
|
15445
|
-
d.length >= 2 && (
|
|
15443
|
+
d.length >= 2 && (m = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15446
15444
|
var x;
|
|
15447
|
-
if (typeof
|
|
15445
|
+
if (typeof m < "u" && m >= 0 && m <= 1) {
|
|
15448
15446
|
if (c._state !== "loaded" || c._playLock)
|
|
15449
15447
|
return c._queue.push({
|
|
15450
15448
|
event: "volume",
|
|
@@ -15452,9 +15450,9 @@ var uv = {};
|
|
|
15452
15450
|
c.volume.apply(c, d);
|
|
15453
15451
|
}
|
|
15454
15452
|
}), c;
|
|
15455
|
-
typeof _ > "u" && (c._volume =
|
|
15453
|
+
typeof _ > "u" && (c._volume = m), _ = c._getSoundIds(_);
|
|
15456
15454
|
for (var E = 0; E < _.length; E++)
|
|
15457
|
-
x = c._soundById(_[E]), x && (x._volume =
|
|
15455
|
+
x = c._soundById(_[E]), x && (x._volume = m, d[2] || c._stopFade(_[E]), c._webAudio && x._node && !x._muted ? x._node.gain.setValueAtTime(m, r.ctx.currentTime) : x._node && !x._muted && (x._node.volume = m * r.volume()), c._emit("volume", x._id));
|
|
15458
15456
|
} else
|
|
15459
15457
|
return x = _ ? c._soundById(_) : c._sounds[0], x ? x._volume : 0;
|
|
15460
15458
|
return c;
|
|
@@ -15467,24 +15465,24 @@ var uv = {};
|
|
|
15467
15465
|
* @param {Number} id The sound id (omit to fade all sounds).
|
|
15468
15466
|
* @return {Howl}
|
|
15469
15467
|
*/
|
|
15470
|
-
fade: function(c, d,
|
|
15468
|
+
fade: function(c, d, m, _) {
|
|
15471
15469
|
var y = this;
|
|
15472
15470
|
if (y._state !== "loaded" || y._playLock)
|
|
15473
15471
|
return y._queue.push({
|
|
15474
15472
|
event: "fade",
|
|
15475
15473
|
action: function() {
|
|
15476
|
-
y.fade(c, d,
|
|
15474
|
+
y.fade(c, d, m, _);
|
|
15477
15475
|
}
|
|
15478
15476
|
}), y;
|
|
15479
|
-
c = Math.min(Math.max(0, parseFloat(c)), 1), d = Math.min(Math.max(0, parseFloat(d)), 1),
|
|
15477
|
+
c = Math.min(Math.max(0, parseFloat(c)), 1), d = Math.min(Math.max(0, parseFloat(d)), 1), m = parseFloat(m), y.volume(c, _);
|
|
15480
15478
|
for (var b = y._getSoundIds(_), x = 0; x < b.length; x++) {
|
|
15481
15479
|
var E = y._soundById(b[x]);
|
|
15482
15480
|
if (E) {
|
|
15483
15481
|
if (_ || y._stopFade(b[x]), y._webAudio && !E._muted) {
|
|
15484
|
-
var w = r.ctx.currentTime, I = w +
|
|
15482
|
+
var w = r.ctx.currentTime, I = w + m / 1e3;
|
|
15485
15483
|
E._volume = c, E._node.gain.setValueAtTime(c, w), E._node.gain.linearRampToValueAtTime(d, I);
|
|
15486
15484
|
}
|
|
15487
|
-
y._startFadeInterval(E, c, d,
|
|
15485
|
+
y._startFadeInterval(E, c, d, m, b[x], typeof _ > "u");
|
|
15488
15486
|
}
|
|
15489
15487
|
}
|
|
15490
15488
|
return y;
|
|
@@ -15498,11 +15496,11 @@ var uv = {};
|
|
|
15498
15496
|
* @param {Number} id The sound id to fade.
|
|
15499
15497
|
* @param {Boolean} isGroup If true, set the volume on the group.
|
|
15500
15498
|
*/
|
|
15501
|
-
_startFadeInterval: function(c, d,
|
|
15502
|
-
var x = this, E = d, w =
|
|
15503
|
-
c._fadeTo =
|
|
15499
|
+
_startFadeInterval: function(c, d, m, _, y, b) {
|
|
15500
|
+
var x = this, E = d, w = m - d, I = Math.abs(w / 0.01), O = Math.max(4, I > 0 ? _ / I : _), F = Date.now();
|
|
15501
|
+
c._fadeTo = m, c._interval = setInterval(function() {
|
|
15504
15502
|
var N = (Date.now() - F) / _;
|
|
15505
|
-
F = Date.now(), E += w * N, E = Math.round(E * 100) / 100, w < 0 ? E = Math.max(
|
|
15503
|
+
F = Date.now(), E += w * N, E = Math.round(E * 100) / 100, w < 0 ? E = Math.max(m, E) : E = Math.min(m, E), x._webAudio ? c._volume = E : x.volume(E, c._id, !0), b && (x._volume = E), (m < d && E <= m || m > d && E >= m) && (clearInterval(c._interval), c._interval = null, c._fadeTo = null, x.volume(m, c._id), x._emit("fade", c._id));
|
|
15506
15504
|
}, O);
|
|
15507
15505
|
},
|
|
15508
15506
|
/**
|
|
@@ -15512,8 +15510,8 @@ var uv = {};
|
|
|
15512
15510
|
* @return {Howl}
|
|
15513
15511
|
*/
|
|
15514
15512
|
_stopFade: function(c) {
|
|
15515
|
-
var d = this,
|
|
15516
|
-
return
|
|
15513
|
+
var d = this, m = d._soundById(c);
|
|
15514
|
+
return m && m._interval && (d._webAudio && m._node.gain.cancelScheduledValues(r.ctx.currentTime), clearInterval(m._interval), m._interval = null, d.volume(m._fadeTo, c), m._fadeTo = null, d._emit("fade", c)), d;
|
|
15517
15515
|
},
|
|
15518
15516
|
/**
|
|
15519
15517
|
* Get/set the loop parameter on a sound. This method can optionally take 0, 1 or 2 arguments.
|
|
@@ -15524,18 +15522,18 @@ var uv = {};
|
|
|
15524
15522
|
* @return {Howl/Boolean} Returns self or current loop value.
|
|
15525
15523
|
*/
|
|
15526
15524
|
loop: function() {
|
|
15527
|
-
var c = this, d = arguments,
|
|
15525
|
+
var c = this, d = arguments, m, _, y;
|
|
15528
15526
|
if (d.length === 0)
|
|
15529
15527
|
return c._loop;
|
|
15530
15528
|
if (d.length === 1)
|
|
15531
15529
|
if (typeof d[0] == "boolean")
|
|
15532
|
-
|
|
15530
|
+
m = d[0], c._loop = m;
|
|
15533
15531
|
else
|
|
15534
15532
|
return y = c._soundById(parseInt(d[0], 10)), y ? y._loop : !1;
|
|
15535
15533
|
else
|
|
15536
|
-
d.length === 2 && (
|
|
15534
|
+
d.length === 2 && (m = d[0], _ = parseInt(d[1], 10));
|
|
15537
15535
|
for (var b = c._getSoundIds(_), x = 0; x < b.length; x++)
|
|
15538
|
-
y = c._soundById(b[x]), y && (y._loop =
|
|
15536
|
+
y = c._soundById(b[x]), y && (y._loop = m, c._webAudio && y._node && y._node.bufferSource && (y._node.bufferSource.loop = m, m && (y._node.bufferSource.loopStart = y._start || 0, y._node.bufferSource.loopEnd = y._stop, c.playing(b[x]) && (c.pause(b[x], !0), c.play(b[x], !0)))));
|
|
15539
15537
|
return c;
|
|
15540
15538
|
},
|
|
15541
15539
|
/**
|
|
@@ -15547,16 +15545,16 @@ var uv = {};
|
|
|
15547
15545
|
* @return {Howl/Number} Returns self or the current playback rate.
|
|
15548
15546
|
*/
|
|
15549
15547
|
rate: function() {
|
|
15550
|
-
var c = this, d = arguments,
|
|
15548
|
+
var c = this, d = arguments, m, _;
|
|
15551
15549
|
if (d.length === 0)
|
|
15552
15550
|
_ = c._sounds[0]._id;
|
|
15553
15551
|
else if (d.length === 1) {
|
|
15554
15552
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15555
|
-
b >= 0 ? _ = parseInt(d[0], 10) :
|
|
15553
|
+
b >= 0 ? _ = parseInt(d[0], 10) : m = parseFloat(d[0]);
|
|
15556
15554
|
} else
|
|
15557
|
-
d.length === 2 && (
|
|
15555
|
+
d.length === 2 && (m = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15558
15556
|
var x;
|
|
15559
|
-
if (typeof
|
|
15557
|
+
if (typeof m == "number") {
|
|
15560
15558
|
if (c._state !== "loaded" || c._playLock)
|
|
15561
15559
|
return c._queue.push({
|
|
15562
15560
|
event: "rate",
|
|
@@ -15564,10 +15562,10 @@ var uv = {};
|
|
|
15564
15562
|
c.rate.apply(c, d);
|
|
15565
15563
|
}
|
|
15566
15564
|
}), c;
|
|
15567
|
-
typeof _ > "u" && (c._rate =
|
|
15565
|
+
typeof _ > "u" && (c._rate = m), _ = c._getSoundIds(_);
|
|
15568
15566
|
for (var E = 0; E < _.length; E++)
|
|
15569
15567
|
if (x = c._soundById(_[E]), x) {
|
|
15570
|
-
c.playing(_[E]) && (x._rateSeek = c.seek(_[E]), x._playStart = c._webAudio ? r.ctx.currentTime : x._playStart), x._rate =
|
|
15568
|
+
c.playing(_[E]) && (x._rateSeek = c.seek(_[E]), x._playStart = c._webAudio ? r.ctx.currentTime : x._playStart), x._rate = m, c._webAudio && x._node && x._node.bufferSource ? x._node.bufferSource.playbackRate.setValueAtTime(m, r.ctx.currentTime) : x._node && (x._node.playbackRate = m);
|
|
15571
15569
|
var w = c.seek(_[E]), I = (c._sprite[x._sprite][0] + c._sprite[x._sprite][1]) / 1e3 - w, O = I * 1e3 / Math.abs(x._rate);
|
|
15572
15570
|
(c._endTimers[_[E]] || !x._paused) && (c._clearTimer(_[E]), c._endTimers[_[E]] = setTimeout(c._ended.bind(c, x), O)), c._emit("rate", x._id);
|
|
15573
15571
|
}
|
|
@@ -15584,17 +15582,17 @@ var uv = {};
|
|
|
15584
15582
|
* @return {Howl/Number} Returns self or the current seek position.
|
|
15585
15583
|
*/
|
|
15586
15584
|
seek: function() {
|
|
15587
|
-
var c = this, d = arguments,
|
|
15585
|
+
var c = this, d = arguments, m, _;
|
|
15588
15586
|
if (d.length === 0)
|
|
15589
15587
|
c._sounds.length && (_ = c._sounds[0]._id);
|
|
15590
15588
|
else if (d.length === 1) {
|
|
15591
15589
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15592
|
-
b >= 0 ? _ = parseInt(d[0], 10) : c._sounds.length && (_ = c._sounds[0]._id,
|
|
15590
|
+
b >= 0 ? _ = parseInt(d[0], 10) : c._sounds.length && (_ = c._sounds[0]._id, m = parseFloat(d[0]));
|
|
15593
15591
|
} else
|
|
15594
|
-
d.length === 2 && (
|
|
15592
|
+
d.length === 2 && (m = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15595
15593
|
if (typeof _ > "u")
|
|
15596
15594
|
return 0;
|
|
15597
|
-
if (typeof
|
|
15595
|
+
if (typeof m == "number" && (c._state !== "loaded" || c._playLock))
|
|
15598
15596
|
return c._queue.push({
|
|
15599
15597
|
event: "seek",
|
|
15600
15598
|
action: function() {
|
|
@@ -15603,9 +15601,9 @@ var uv = {};
|
|
|
15603
15601
|
}), c;
|
|
15604
15602
|
var x = c._soundById(_);
|
|
15605
15603
|
if (x)
|
|
15606
|
-
if (typeof
|
|
15604
|
+
if (typeof m == "number" && m >= 0) {
|
|
15607
15605
|
var E = c.playing(_);
|
|
15608
|
-
E && c.pause(_, !0), x._seek =
|
|
15606
|
+
E && c.pause(_, !0), x._seek = m, x._ended = !1, c._clearTimer(_), !c._webAudio && x._node && !isNaN(x._node.duration) && (x._node.currentTime = m);
|
|
15609
15607
|
var w = function() {
|
|
15610
15608
|
E && c.play(_, !0), c._emit("seek", _);
|
|
15611
15609
|
};
|
|
@@ -15631,8 +15629,8 @@ var uv = {};
|
|
|
15631
15629
|
playing: function(c) {
|
|
15632
15630
|
var d = this;
|
|
15633
15631
|
if (typeof c == "number") {
|
|
15634
|
-
var
|
|
15635
|
-
return
|
|
15632
|
+
var m = d._soundById(c);
|
|
15633
|
+
return m ? !m._paused : !1;
|
|
15636
15634
|
}
|
|
15637
15635
|
for (var _ = 0; _ < d._sounds.length; _++)
|
|
15638
15636
|
if (!d._sounds[_]._paused)
|
|
@@ -15645,8 +15643,8 @@ var uv = {};
|
|
|
15645
15643
|
* @return {Number} Audio duration in seconds.
|
|
15646
15644
|
*/
|
|
15647
15645
|
duration: function(c) {
|
|
15648
|
-
var d = this,
|
|
15649
|
-
return _ && (
|
|
15646
|
+
var d = this, m = d._duration, _ = d._soundById(c);
|
|
15647
|
+
return _ && (m = d._sprite[_._sprite][1] / 1e3), m;
|
|
15650
15648
|
},
|
|
15651
15649
|
/**
|
|
15652
15650
|
* Returns the current loaded state of this Howl.
|
|
@@ -15660,13 +15658,13 @@ var uv = {};
|
|
|
15660
15658
|
* This will immediately stop all sound instances attached to this group.
|
|
15661
15659
|
*/
|
|
15662
15660
|
unload: function() {
|
|
15663
|
-
for (var c = this, d = c._sounds,
|
|
15664
|
-
d[
|
|
15661
|
+
for (var c = this, d = c._sounds, m = 0; m < d.length; m++)
|
|
15662
|
+
d[m]._paused || c.stop(d[m]._id), c._webAudio || (c._clearSound(d[m]._node), d[m]._node.removeEventListener("error", d[m]._errorFn, !1), d[m]._node.removeEventListener(r._canPlayEvent, d[m]._loadFn, !1), d[m]._node.removeEventListener("ended", d[m]._endFn, !1), r._releaseHtml5Audio(d[m]._node)), delete d[m]._node, c._clearTimer(d[m]._id);
|
|
15665
15663
|
var _ = r._howls.indexOf(c);
|
|
15666
15664
|
_ >= 0 && r._howls.splice(_, 1);
|
|
15667
15665
|
var y = !0;
|
|
15668
|
-
for (
|
|
15669
|
-
if (r._howls[
|
|
15666
|
+
for (m = 0; m < r._howls.length; m++)
|
|
15667
|
+
if (r._howls[m]._src === c._src || c._src.indexOf(r._howls[m]._src) >= 0) {
|
|
15670
15668
|
y = !1;
|
|
15671
15669
|
break;
|
|
15672
15670
|
}
|
|
@@ -15680,9 +15678,9 @@ var uv = {};
|
|
|
15680
15678
|
* @param {Number} once (INTERNAL) Marks event to fire only once.
|
|
15681
15679
|
* @return {Howl}
|
|
15682
15680
|
*/
|
|
15683
|
-
on: function(c, d,
|
|
15681
|
+
on: function(c, d, m, _) {
|
|
15684
15682
|
var y = this, b = y["_on" + c];
|
|
15685
|
-
return typeof d == "function" && b.push(_ ? { id:
|
|
15683
|
+
return typeof d == "function" && b.push(_ ? { id: m, fn: d, once: _ } : { id: m, fn: d }), y;
|
|
15686
15684
|
},
|
|
15687
15685
|
/**
|
|
15688
15686
|
* Remove a custom event. Call without parameters to remove all events.
|
|
@@ -15691,11 +15689,11 @@ var uv = {};
|
|
|
15691
15689
|
* @param {Number} id (optional) Only remove events for this sound.
|
|
15692
15690
|
* @return {Howl}
|
|
15693
15691
|
*/
|
|
15694
|
-
off: function(c, d,
|
|
15692
|
+
off: function(c, d, m) {
|
|
15695
15693
|
var _ = this, y = _["_on" + c], b = 0;
|
|
15696
|
-
if (typeof d == "number" && (
|
|
15694
|
+
if (typeof d == "number" && (m = d, d = null), d || m)
|
|
15697
15695
|
for (b = 0; b < y.length; b++) {
|
|
15698
|
-
var x =
|
|
15696
|
+
var x = m === y[b].id;
|
|
15699
15697
|
if (d === y[b].fn && x || !d && x) {
|
|
15700
15698
|
y.splice(b, 1);
|
|
15701
15699
|
break;
|
|
@@ -15717,9 +15715,9 @@ var uv = {};
|
|
|
15717
15715
|
* @param {Number} id (optional) Only listen to events for this sound.
|
|
15718
15716
|
* @return {Howl}
|
|
15719
15717
|
*/
|
|
15720
|
-
once: function(c, d,
|
|
15718
|
+
once: function(c, d, m) {
|
|
15721
15719
|
var _ = this;
|
|
15722
|
-
return _.on(c, d,
|
|
15720
|
+
return _.on(c, d, m, 1), _;
|
|
15723
15721
|
},
|
|
15724
15722
|
/**
|
|
15725
15723
|
* Emit all events of a specific type and pass the sound id.
|
|
@@ -15728,10 +15726,10 @@ var uv = {};
|
|
|
15728
15726
|
* @param {Number} msg Message to go with event.
|
|
15729
15727
|
* @return {Howl}
|
|
15730
15728
|
*/
|
|
15731
|
-
_emit: function(c, d,
|
|
15729
|
+
_emit: function(c, d, m) {
|
|
15732
15730
|
for (var _ = this, y = _["_on" + c], b = y.length - 1; b >= 0; b--)
|
|
15733
15731
|
(!y[b].id || y[b].id === d || c === "load") && (setTimeout((function(x) {
|
|
15734
|
-
x.call(this, d,
|
|
15732
|
+
x.call(this, d, m);
|
|
15735
15733
|
}).bind(_, y[b].fn), 0), y[b].once && _.off(c, y[b].fn, y[b].id));
|
|
15736
15734
|
return _._loadQueue(c), _;
|
|
15737
15735
|
},
|
|
@@ -15744,8 +15742,8 @@ var uv = {};
|
|
|
15744
15742
|
_loadQueue: function(c) {
|
|
15745
15743
|
var d = this;
|
|
15746
15744
|
if (d._queue.length > 0) {
|
|
15747
|
-
var
|
|
15748
|
-
|
|
15745
|
+
var m = d._queue[0];
|
|
15746
|
+
m.event === c && (d._queue.shift(), d._loadQueue()), c || m.action();
|
|
15749
15747
|
}
|
|
15750
15748
|
return d;
|
|
15751
15749
|
},
|
|
@@ -15755,10 +15753,10 @@ var uv = {};
|
|
|
15755
15753
|
* @return {Howl}
|
|
15756
15754
|
*/
|
|
15757
15755
|
_ended: function(c) {
|
|
15758
|
-
var d = this,
|
|
15756
|
+
var d = this, m = c._sprite;
|
|
15759
15757
|
if (!d._webAudio && c._node && !c._node.paused && !c._node.ended && c._node.currentTime < c._stop)
|
|
15760
15758
|
return setTimeout(d._ended.bind(d, c), 100), d;
|
|
15761
|
-
var _ = !!(c._loop || d._sprite[
|
|
15759
|
+
var _ = !!(c._loop || d._sprite[m][2]);
|
|
15762
15760
|
if (d._emit("end", c._id), !d._webAudio && _ && d.stop(c._id, !0).play(c._id), d._webAudio && _) {
|
|
15763
15761
|
d._emit("play", c._id), c._seek = c._start || 0, c._rateSeek = 0, c._playStart = r.ctx.currentTime;
|
|
15764
15762
|
var y = (c._stop - c._start) * 1e3 / Math.abs(c._rate);
|
|
@@ -15777,8 +15775,8 @@ var uv = {};
|
|
|
15777
15775
|
if (typeof d._endTimers[c] != "function")
|
|
15778
15776
|
clearTimeout(d._endTimers[c]);
|
|
15779
15777
|
else {
|
|
15780
|
-
var
|
|
15781
|
-
|
|
15778
|
+
var m = d._soundById(c);
|
|
15779
|
+
m && m._node && m._node.removeEventListener("ended", d._endTimers[c], !1);
|
|
15782
15780
|
}
|
|
15783
15781
|
delete d._endTimers[c];
|
|
15784
15782
|
}
|
|
@@ -15790,9 +15788,9 @@ var uv = {};
|
|
|
15790
15788
|
* @return {Object} Sound object or null.
|
|
15791
15789
|
*/
|
|
15792
15790
|
_soundById: function(c) {
|
|
15793
|
-
for (var d = this,
|
|
15794
|
-
if (c === d._sounds[
|
|
15795
|
-
return d._sounds[
|
|
15791
|
+
for (var d = this, m = 0; m < d._sounds.length; m++)
|
|
15792
|
+
if (c === d._sounds[m]._id)
|
|
15793
|
+
return d._sounds[m];
|
|
15796
15794
|
return null;
|
|
15797
15795
|
},
|
|
15798
15796
|
/**
|
|
@@ -15811,14 +15809,14 @@ var uv = {};
|
|
|
15811
15809
|
* Drain excess inactive sounds from the pool.
|
|
15812
15810
|
*/
|
|
15813
15811
|
_drain: function() {
|
|
15814
|
-
var c = this, d = c._pool,
|
|
15812
|
+
var c = this, d = c._pool, m = 0, _ = 0;
|
|
15815
15813
|
if (!(c._sounds.length < d)) {
|
|
15816
15814
|
for (_ = 0; _ < c._sounds.length; _++)
|
|
15817
|
-
c._sounds[_]._ended &&
|
|
15815
|
+
c._sounds[_]._ended && m++;
|
|
15818
15816
|
for (_ = c._sounds.length - 1; _ >= 0; _--) {
|
|
15819
|
-
if (
|
|
15817
|
+
if (m <= d)
|
|
15820
15818
|
return;
|
|
15821
|
-
c._sounds[_]._ended && (c._webAudio && c._sounds[_]._node && c._sounds[_]._node.disconnect(0), c._sounds.splice(_, 1),
|
|
15819
|
+
c._sounds[_]._ended && (c._webAudio && c._sounds[_]._node && c._sounds[_]._node.disconnect(0), c._sounds.splice(_, 1), m--);
|
|
15822
15820
|
}
|
|
15823
15821
|
}
|
|
15824
15822
|
},
|
|
@@ -15830,9 +15828,9 @@ var uv = {};
|
|
|
15830
15828
|
_getSoundIds: function(c) {
|
|
15831
15829
|
var d = this;
|
|
15832
15830
|
if (typeof c > "u") {
|
|
15833
|
-
for (var
|
|
15834
|
-
|
|
15835
|
-
return
|
|
15831
|
+
for (var m = [], _ = 0; _ < d._sounds.length; _++)
|
|
15832
|
+
m.push(d._sounds[_]._id);
|
|
15833
|
+
return m;
|
|
15836
15834
|
} else
|
|
15837
15835
|
return [c];
|
|
15838
15836
|
},
|
|
@@ -15851,8 +15849,8 @@ var uv = {};
|
|
|
15851
15849
|
* @return {Howl}
|
|
15852
15850
|
*/
|
|
15853
15851
|
_cleanBuffer: function(c) {
|
|
15854
|
-
var d = this,
|
|
15855
|
-
if (r._scratchBuffer && c.bufferSource && (c.bufferSource.onended = null, c.bufferSource.disconnect(0),
|
|
15852
|
+
var d = this, m = r._navigator && r._navigator.vendor.indexOf("Apple") >= 0;
|
|
15853
|
+
if (r._scratchBuffer && c.bufferSource && (c.bufferSource.onended = null, c.bufferSource.disconnect(0), m))
|
|
15856
15854
|
try {
|
|
15857
15855
|
c.bufferSource.buffer = r._scratchBuffer;
|
|
15858
15856
|
} catch {
|
|
@@ -15885,8 +15883,8 @@ var uv = {};
|
|
|
15885
15883
|
* @return {Sound}
|
|
15886
15884
|
*/
|
|
15887
15885
|
create: function() {
|
|
15888
|
-
var c = this, d = c._parent,
|
|
15889
|
-
return d._webAudio ? (c._node = typeof r.ctx.createGain > "u" ? r.ctx.createGainNode() : r.ctx.createGain(), c._node.gain.setValueAtTime(
|
|
15886
|
+
var c = this, d = c._parent, m = r._muted || c._muted || c._parent._muted ? 0 : c._volume;
|
|
15887
|
+
return d._webAudio ? (c._node = typeof r.ctx.createGain > "u" ? r.ctx.createGainNode() : r.ctx.createGain(), c._node.gain.setValueAtTime(m, r.ctx.currentTime), c._node.paused = !0, c._node.connect(r.masterGain)) : r.noAudio || (c._node = r._obtainHtml5Audio(), c._errorFn = c._errorListener.bind(c), c._node.addEventListener("error", c._errorFn, !1), c._loadFn = c._loadListener.bind(c), c._node.addEventListener(r._canPlayEvent, c._loadFn, !1), c._endFn = c._endListener.bind(c), c._node.addEventListener("ended", c._endFn, !1), c._node.src = d._src, c._node.preload = d._preload === !0 ? "auto" : d._preload, c._node.volume = m * r.volume(), c._node.load()), c;
|
|
15890
15888
|
},
|
|
15891
15889
|
/**
|
|
15892
15890
|
* Reset the parameters of this sound to the original state (for recycle).
|
|
@@ -15925,8 +15923,8 @@ var uv = {};
|
|
|
15925
15923
|
return;
|
|
15926
15924
|
}
|
|
15927
15925
|
if (/^data:[^;]+;base64,/.test(d)) {
|
|
15928
|
-
for (var
|
|
15929
|
-
_[y] =
|
|
15926
|
+
for (var m = atob(d.split(",")[1]), _ = new Uint8Array(m.length), y = 0; y < m.length; ++y)
|
|
15927
|
+
_[y] = m.charCodeAt(y);
|
|
15930
15928
|
f(_.buffer, c);
|
|
15931
15929
|
} else {
|
|
15932
15930
|
var b = new XMLHttpRequest();
|
|
@@ -15950,15 +15948,15 @@ var uv = {};
|
|
|
15950
15948
|
c.onerror();
|
|
15951
15949
|
}
|
|
15952
15950
|
}, f = function(c, d) {
|
|
15953
|
-
var
|
|
15951
|
+
var m = function() {
|
|
15954
15952
|
d._emit("loaderror", null, "Decoding audio data failed.");
|
|
15955
15953
|
}, _ = function(y) {
|
|
15956
|
-
y && d._sounds.length > 0 ? (a[d._src] = y, p(d, y)) :
|
|
15954
|
+
y && d._sounds.length > 0 ? (a[d._src] = y, p(d, y)) : m();
|
|
15957
15955
|
};
|
|
15958
|
-
typeof Promise < "u" && r.ctx.decodeAudioData.length === 1 ? r.ctx.decodeAudioData(c).then(_).catch(
|
|
15956
|
+
typeof Promise < "u" && r.ctx.decodeAudioData.length === 1 ? r.ctx.decodeAudioData(c).then(_).catch(m) : r.ctx.decodeAudioData(c, _, m);
|
|
15959
15957
|
}, p = function(c, d) {
|
|
15960
15958
|
d && !c._duration && (c._duration = d.duration), Object.keys(c._sprite).length === 0 && (c._sprite = { __default: [0, c._duration * 1e3] }), c._state !== "loaded" && (c._state = "loaded", c._emit("load"), c._loadQueue());
|
|
15961
|
-
},
|
|
15959
|
+
}, g = function() {
|
|
15962
15960
|
if (r.usingWebAudio) {
|
|
15963
15961
|
try {
|
|
15964
15962
|
typeof AudioContext < "u" ? r.ctx = new AudioContext() : typeof webkitAudioContext < "u" ? r.ctx = new webkitAudioContext() : r.usingWebAudio = !1;
|
|
@@ -15966,8 +15964,8 @@ var uv = {};
|
|
|
15966
15964
|
r.usingWebAudio = !1;
|
|
15967
15965
|
}
|
|
15968
15966
|
r.ctx || (r.usingWebAudio = !1);
|
|
15969
|
-
var c = /iP(hone|od|ad)/.test(r._navigator && r._navigator.platform), d = r._navigator && r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),
|
|
15970
|
-
if (c &&
|
|
15967
|
+
var c = /iP(hone|od|ad)/.test(r._navigator && r._navigator.platform), d = r._navigator && r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/), m = d ? parseInt(d[1], 10) : null;
|
|
15968
|
+
if (c && m && m < 9) {
|
|
15971
15969
|
var _ = /safari/.test(r._navigator && r._navigator.userAgent.toLowerCase());
|
|
15972
15970
|
r._navigator && !_ && (r.usingWebAudio = !1);
|
|
15973
15971
|
}
|
|
@@ -16148,8 +16146,8 @@ var uv = {};
|
|
|
16148
16146
|
rolloffFactor: typeof i.rolloffFactor < "u" ? i.rolloffFactor : p.rolloffFactor,
|
|
16149
16147
|
panningModel: typeof i.panningModel < "u" ? i.panningModel : p.panningModel
|
|
16150
16148
|
};
|
|
16151
|
-
var
|
|
16152
|
-
|
|
16149
|
+
var g = u._panner;
|
|
16150
|
+
g ? (g.coneInnerAngle = p.coneInnerAngle, g.coneOuterAngle = p.coneOuterAngle, g.coneOuterGain = p.coneOuterGain, g.distanceModel = p.distanceModel, g.maxDistance = p.maxDistance, g.refDistance = p.refDistance, g.rolloffFactor = p.rolloffFactor, g.panningModel = p.panningModel) : (u._pos || (u._pos = r._pos || [0, 0, -0.5]), e(u, "spatial"));
|
|
16153
16151
|
}
|
|
16154
16152
|
return r;
|
|
16155
16153
|
}, Sound.prototype.init = function(r) {
|
|
@@ -16180,10 +16178,10 @@ const hU = (t) => {
|
|
|
16180
16178
|
isDragging: !1
|
|
16181
16179
|
}, [, r] = te.useState(!1), n = pe(null), i = pe(e), a = pe(null), u = te.useRef(null), { tl: l, dragModeRef: f } = Gi(Yn), {
|
|
16182
16180
|
uniqueId: p,
|
|
16183
|
-
src:
|
|
16181
|
+
src: g,
|
|
16184
16182
|
startAt: c,
|
|
16185
16183
|
endAt: d,
|
|
16186
|
-
mute:
|
|
16184
|
+
mute: m,
|
|
16187
16185
|
speed: _,
|
|
16188
16186
|
audioStartAt: y,
|
|
16189
16187
|
audioEndAt: b,
|
|
@@ -16239,17 +16237,17 @@ const hU = (t) => {
|
|
|
16239
16237
|
};
|
|
16240
16238
|
}, [c, d, y, b]), te.useEffect(() => {
|
|
16241
16239
|
n.current && r(!0);
|
|
16242
|
-
}, []), te.useEffect(() => (Hs(
|
|
16243
|
-
src: [
|
|
16240
|
+
}, []), te.useEffect(() => (Hs(g) || (u.current = new uv.Howl({
|
|
16241
|
+
src: [g],
|
|
16244
16242
|
// sprite: {
|
|
16245
16243
|
// [uniqueId]: [audioStartAt * 1000, (audioEndAt - audioStartAt) * 1000],
|
|
16246
16244
|
// },
|
|
16247
16245
|
autoplay: !1,
|
|
16248
16246
|
loop: !1,
|
|
16249
16247
|
rate: _ || 1,
|
|
16250
|
-
volume: !
|
|
16248
|
+
volume: !m && x ? 1 : 0,
|
|
16251
16249
|
onload: () => {
|
|
16252
|
-
console.log("loaded audio sprite" + p), i.current.loaded = !0, u.current && (y > 0 && u.current.seek(y), u.current.volume(!
|
|
16250
|
+
console.log("loaded audio sprite" + p), i.current.loaded = !0, u.current && (y > 0 && u.current.seek(y), u.current.volume(!m && x ? 1 : 0), u.current.rate(_ || 1), u.current.pause(), i.current.isPlaying = !1, i.current.completed = !1);
|
|
16253
16251
|
},
|
|
16254
16252
|
onend: () => {
|
|
16255
16253
|
console.log("end of playing audio sprite" + p), i.current.isPlaying = !1, i.current.completed = !0;
|
|
@@ -16267,18 +16265,18 @@ const hU = (t) => {
|
|
|
16267
16265
|
u.current && u.current.unload();
|
|
16268
16266
|
}), [
|
|
16269
16267
|
p,
|
|
16270
|
-
|
|
16268
|
+
g,
|
|
16271
16269
|
c,
|
|
16272
16270
|
d,
|
|
16273
16271
|
y,
|
|
16274
16272
|
b,
|
|
16275
|
-
|
|
16273
|
+
m,
|
|
16276
16274
|
x,
|
|
16277
16275
|
_
|
|
16278
16276
|
]), te.useEffect(() => {
|
|
16279
|
-
u.current && (console.log("running updateEffect 2002", p, b), u.current.volume(!
|
|
16280
|
-
}, [
|
|
16281
|
-
/* @__PURE__ */
|
|
16277
|
+
u.current && (console.log("running updateEffect 2002", p, b), u.current.volume(!m && x ? 1 : 0), u.current.rate(_ || 1), i.current.isPlaying = !0);
|
|
16278
|
+
}, [m, x, _]), // @ts-ignore
|
|
16279
|
+
/* @__PURE__ */ Ae.jsx(wt, { ref: n });
|
|
16282
16280
|
};
|
|
16283
16281
|
function sk(t, e) {
|
|
16284
16282
|
for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; )
|
|
@@ -16297,15 +16295,15 @@ function ck(t, e, r, n) {
|
|
|
16297
16295
|
}
|
|
16298
16296
|
for (; ++i < a; ) {
|
|
16299
16297
|
l = r[i];
|
|
16300
|
-
var f = l[0], p = t[f],
|
|
16298
|
+
var f = l[0], p = t[f], g = l[1];
|
|
16301
16299
|
if (u && l[2]) {
|
|
16302
16300
|
if (p === void 0 && !(f in t))
|
|
16303
16301
|
return !1;
|
|
16304
16302
|
} else {
|
|
16305
16303
|
var c = new ak();
|
|
16306
16304
|
if (n)
|
|
16307
|
-
var d = n(p,
|
|
16308
|
-
if (!(d === void 0 ? ok(
|
|
16305
|
+
var d = n(p, g, f, t, e, c);
|
|
16306
|
+
if (!(d === void 0 ? ok(g, p, uk | lk, n, c) : d))
|
|
16309
16307
|
return !1;
|
|
16310
16308
|
}
|
|
16311
16309
|
}
|
|
@@ -16621,7 +16619,7 @@ dt.readBits = $B;
|
|
|
16621
16619
|
}), t.default = void 0;
|
|
16622
16620
|
var e = Jr, r = dt, n = {
|
|
16623
16621
|
blocks: function(d) {
|
|
16624
|
-
for (var
|
|
16622
|
+
for (var m = 0, _ = [], y = d.data.length, b = 0, x = (0, r.readByte)()(d); x !== m && x; x = (0, r.readByte)()(d)) {
|
|
16625
16623
|
if (d.pos + x >= y) {
|
|
16626
16624
|
var E = y - d.pos;
|
|
16627
16625
|
_.push((0, r.readBytes)(E)(d)), b += E;
|
|
@@ -16699,11 +16697,11 @@ dt.readBits = $B;
|
|
|
16699
16697
|
})
|
|
16700
16698
|
}]
|
|
16701
16699
|
}, (0, e.conditional)({
|
|
16702
|
-
lct: (0, r.readArray)(3, function(c, d,
|
|
16703
|
-
return Math.pow(2,
|
|
16700
|
+
lct: (0, r.readArray)(3, function(c, d, m) {
|
|
16701
|
+
return Math.pow(2, m.descriptor.lct.size + 1);
|
|
16704
16702
|
})
|
|
16705
|
-
}, function(c, d,
|
|
16706
|
-
return
|
|
16703
|
+
}, function(c, d, m) {
|
|
16704
|
+
return m.descriptor.lct.exists;
|
|
16707
16705
|
}), {
|
|
16708
16706
|
data: [{
|
|
16709
16707
|
minCodeSize: (0, r.readByte)()
|
|
@@ -16717,7 +16715,7 @@ dt.readBits = $B;
|
|
|
16717
16715
|
}, {
|
|
16718
16716
|
blockSize: (0, r.readByte)()
|
|
16719
16717
|
}, {
|
|
16720
|
-
preData: function(d,
|
|
16718
|
+
preData: function(d, m, _) {
|
|
16721
16719
|
return (0, r.readBytes)(_.text.blockSize)(d);
|
|
16722
16720
|
}
|
|
16723
16721
|
}, n]
|
|
@@ -16730,7 +16728,7 @@ dt.readBits = $B;
|
|
|
16730
16728
|
}, {
|
|
16731
16729
|
blockSize: (0, r.readByte)()
|
|
16732
16730
|
}, {
|
|
16733
|
-
id: function(d,
|
|
16731
|
+
id: function(d, m, _) {
|
|
16734
16732
|
return (0, r.readString)(_.blockSize)(d);
|
|
16735
16733
|
}
|
|
16736
16734
|
}, n]
|
|
@@ -16794,8 +16792,8 @@ dt.readBits = $B;
|
|
|
16794
16792
|
return d === 33 || d === 44;
|
|
16795
16793
|
})
|
|
16796
16794
|
}
|
|
16797
|
-
],
|
|
16798
|
-
t.default =
|
|
16795
|
+
], g = p;
|
|
16796
|
+
t.default = g;
|
|
16799
16797
|
})(mv);
|
|
16800
16798
|
var Qo = {};
|
|
16801
16799
|
Object.defineProperty(Qo, "__esModule", {
|
|
@@ -16803,12 +16801,12 @@ Object.defineProperty(Qo, "__esModule", {
|
|
|
16803
16801
|
});
|
|
16804
16802
|
Qo.deinterlace = void 0;
|
|
16805
16803
|
var GB = function(e, r) {
|
|
16806
|
-
for (var n = new Array(e.length), i = e.length / r, a = function(d,
|
|
16807
|
-
var _ = e.slice(
|
|
16804
|
+
for (var n = new Array(e.length), i = e.length / r, a = function(d, m) {
|
|
16805
|
+
var _ = e.slice(m * r, (m + 1) * r);
|
|
16808
16806
|
n.splice.apply(n, [d * r, r].concat(_));
|
|
16809
16807
|
}, u = [0, 4, 2, 1], l = [8, 8, 4, 2], f = 0, p = 0; p < 4; p++)
|
|
16810
|
-
for (var
|
|
16811
|
-
a(
|
|
16808
|
+
for (var g = u[p]; g < i; g += l[p])
|
|
16809
|
+
a(g, f), f++;
|
|
16812
16810
|
return n;
|
|
16813
16811
|
};
|
|
16814
16812
|
Qo.deinterlace = GB;
|
|
@@ -16818,29 +16816,29 @@ Object.defineProperty(Jo, "__esModule", {
|
|
|
16818
16816
|
});
|
|
16819
16817
|
Jo.lzw = void 0;
|
|
16820
16818
|
var HB = function(e, r, n) {
|
|
16821
|
-
var i = 4096, a = -1, u = n, l, f, p,
|
|
16822
|
-
for (b = e, f = 1 << b, c = f + 1, l = f + 2,
|
|
16819
|
+
var i = 4096, a = -1, u = n, l, f, p, g, c, d, m, F, _, y, O, b, N, L, V, D, x = new Array(n), E = new Array(i), w = new Array(i), I = new Array(i + 1);
|
|
16820
|
+
for (b = e, f = 1 << b, c = f + 1, l = f + 2, m = a, g = b + 1, p = (1 << g) - 1, _ = 0; _ < f; _++)
|
|
16823
16821
|
E[_] = 0, w[_] = _;
|
|
16824
16822
|
var O, F, N, L, D, V;
|
|
16825
16823
|
for (O = F = N = L = D = V = 0, y = 0; y < u; ) {
|
|
16826
16824
|
if (L === 0) {
|
|
16827
|
-
if (F <
|
|
16825
|
+
if (F < g) {
|
|
16828
16826
|
O += r[V] << F, F += 8, V++;
|
|
16829
16827
|
continue;
|
|
16830
16828
|
}
|
|
16831
|
-
if (_ = O & p, O >>=
|
|
16829
|
+
if (_ = O & p, O >>= g, F -= g, _ > l || _ == c)
|
|
16832
16830
|
break;
|
|
16833
16831
|
if (_ == f) {
|
|
16834
|
-
|
|
16832
|
+
g = b + 1, p = (1 << g) - 1, l = f + 2, m = a;
|
|
16835
16833
|
continue;
|
|
16836
16834
|
}
|
|
16837
|
-
if (
|
|
16838
|
-
I[L++] = w[_],
|
|
16835
|
+
if (m == a) {
|
|
16836
|
+
I[L++] = w[_], m = _, N = _;
|
|
16839
16837
|
continue;
|
|
16840
16838
|
}
|
|
16841
|
-
for (d = _, _ == l && (I[L++] = N, _ =
|
|
16839
|
+
for (d = _, _ == l && (I[L++] = N, _ = m); _ > f; )
|
|
16842
16840
|
I[L++] = w[_], _ = E[_];
|
|
16843
|
-
N = w[_] & 255, I[L++] = N, l < i && (E[l] =
|
|
16841
|
+
N = w[_] & 255, I[L++] = N, l < i && (E[l] = m, w[l] = N, l++, !(l & p) && l < i && (g++, p += l)), m = d;
|
|
16844
16842
|
}
|
|
16845
16843
|
L--, x[D++] = I[L], y++;
|
|
16846
16844
|
}
|
|
@@ -16987,7 +16985,7 @@ const r5 = (t) => ({
|
|
|
16987
16985
|
return;
|
|
16988
16986
|
const i = n.current;
|
|
16989
16987
|
i[t ? "gotoAndPlay" : "gotoAndStop"](i.currentFrame);
|
|
16990
|
-
}, [t]), /* @__PURE__ */
|
|
16988
|
+
}, [t]), /* @__PURE__ */ Ae.jsx(
|
|
16991
16989
|
nS,
|
|
16992
16990
|
{
|
|
16993
16991
|
ref: n,
|
|
@@ -17008,7 +17006,7 @@ var Io = { exports: {} };
|
|
|
17008
17006
|
Io.exports;
|
|
17009
17007
|
(function(t, e) {
|
|
17010
17008
|
(function() {
|
|
17011
|
-
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", l = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", p = 500,
|
|
17009
|
+
var r, n = "4.17.21", i = 200, a = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", u = "Expected a function", l = "Invalid `variable` option passed into `_.template`", f = "__lodash_hash_undefined__", p = 500, g = "__lodash_placeholder__", c = 1, d = 2, m = 4, _ = 1, y = 2, b = 1, x = 2, E = 4, w = 8, I = 16, O = 32, F = 64, N = 128, L = 256, D = 512, V = 30, Y = "...", se = 800, X = 16, G = 1, ie = 2, re = 3, H = 1 / 0, Q = 9007199254740991, ge = 17976931348623157e292, W = 0 / 0, j = 4294967295, le = j - 1, he = j >>> 1, me = [
|
|
17012
17010
|
["ary", N],
|
|
17013
17011
|
["bind", b],
|
|
17014
17012
|
["bindKey", x],
|
|
@@ -17018,7 +17016,7 @@ Io.exports;
|
|
|
17018
17016
|
["partial", O],
|
|
17019
17017
|
["partialRight", F],
|
|
17020
17018
|
["rearg", L]
|
|
17021
|
-
], fe = "[object Arguments]",
|
|
17019
|
+
], fe = "[object Arguments]", Re = "[object Array]", Ue = "[object AsyncFunction]", He = "[object Boolean]", je = "[object Date]", be = "[object DOMException]", Ee = "[object Error]", $e = "[object Function]", Ke = "[object GeneratorFunction]", Se = "[object Map]", _e = "[object Number]", rt = "[object Null]", ce = "[object Object]", Oe = "[object Promise]", Xt = "[object Proxy]", Bt = "[object RegExp]", lt = "[object Set]", tr = "[object String]", Jn = "[object Symbol]", eu = "[object Undefined]", bn = "[object WeakMap]", fr = "[object WeakSet]", ei = "[object ArrayBuffer]", ti = "[object DataView]", tu = "[object Float32Array]", ru = "[object Float64Array]", nu = "[object Int8Array]", iu = "[object Int16Array]", su = "[object Int32Array]", au = "[object Uint8Array]", ou = "[object Uint8ClampedArray]", uu = "[object Uint16Array]", lu = "[object Uint32Array]", xv = /\b__p \+= '';/g, bv = /\b(__p \+=) '' \+/g, Tv = /(__e\(.*?\)|\b__t\)) \+\n'';/g, wh = /&(?:amp|lt|gt|quot|#39);/g, Sh = /[&<>"']/g, wv = RegExp(wh.source), Sv = RegExp(Sh.source), Av = /<%-([\s\S]+?)%>/g, Ev = /<%([\s\S]+?)%>/g, Ah = /<%=([\s\S]+?)%>/g, Cv = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Iv = /^\w*$/, Rv = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, cu = /[\\^$.*+?()[\]{}|]/g, Pv = RegExp(cu.source), hu = /^\s+/, Mv = /\s/, Ov = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Fv = /\{\n\/\* \[wrapped with (.+)\] \*/, Nv = /,? & /, Lv = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, kv = /[()=,{}\[\]\/\s]/, Dv = /\\(\\)?/g, Bv = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Eh = /\w*$/, Uv = /^[-+]0x[0-9a-f]+$/i, $v = /^0b[01]+$/i, Gv = /^\[object .+?Constructor\]$/, Hv = /^0o[0-7]+$/i, zv = /^(?:0|[1-9]\d*)$/, Vv = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ws = /($^)/, Xv = /['\n\r\u2028\u2029\\]/g, js = "\\ud800-\\udfff", Wv = "\\u0300-\\u036f", jv = "\\ufe20-\\ufe2f", qv = "\\u20d0-\\u20ff", Ch = Wv + jv + qv, Ih = "\\u2700-\\u27bf", Rh = "a-z\\xdf-\\xf6\\xf8-\\xff", Yv = "\\xac\\xb1\\xd7\\xf7", Kv = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Zv = "\\u2000-\\u206f", Qv = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Ph = "A-Z\\xc0-\\xd6\\xd8-\\xde", Mh = "\\ufe0e\\ufe0f", Oh = Yv + Kv + Zv + Qv, fu = "['’]", Jv = "[" + js + "]", Fh = "[" + Oh + "]", qs = "[" + Ch + "]", Nh = "\\d+", e_ = "[" + Ih + "]", Lh = "[" + Rh + "]", kh = "[^" + js + Oh + Nh + Ih + Rh + Ph + "]", du = "\\ud83c[\\udffb-\\udfff]", t_ = "(?:" + qs + "|" + du + ")", Dh = "[^" + js + "]", pu = "(?:\\ud83c[\\udde6-\\uddff]){2}", gu = "[\\ud800-\\udbff][\\udc00-\\udfff]", ri = "[" + Ph + "]", Bh = "\\u200d", Uh = "(?:" + Lh + "|" + kh + ")", r_ = "(?:" + ri + "|" + kh + ")", $h = "(?:" + fu + "(?:d|ll|m|re|s|t|ve))?", Gh = "(?:" + fu + "(?:D|LL|M|RE|S|T|VE))?", Hh = t_ + "?", zh = "[" + Mh + "]?", n_ = "(?:" + Bh + "(?:" + [Dh, pu, gu].join("|") + ")" + zh + Hh + ")*", i_ = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", s_ = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Vh = zh + Hh + n_, a_ = "(?:" + [e_, pu, gu].join("|") + ")" + Vh, o_ = "(?:" + [Dh + qs + "?", qs, pu, gu, Jv].join("|") + ")", u_ = RegExp(fu, "g"), l_ = RegExp(qs, "g"), mu = RegExp(du + "(?=" + du + ")|" + o_ + Vh, "g"), c_ = RegExp([
|
|
17022
17020
|
ri + "?" + Lh + "+" + $h + "(?=" + [Fh, ri, "$"].join("|") + ")",
|
|
17023
17021
|
r_ + "+" + Gh + "(?=" + [Fh, ri + Uh, "$"].join("|") + ")",
|
|
17024
17022
|
ri + "?" + Uh + "+" + $h,
|
|
@@ -17059,9 +17057,9 @@ Io.exports;
|
|
|
17059
17057
|
"parseInt",
|
|
17060
17058
|
"setTimeout"
|
|
17061
17059
|
], p_ = -1, et = {};
|
|
17062
|
-
et[tu] = et[ru] = et[nu] = et[iu] = et[su] = et[au] = et[ou] = et[uu] = et[lu] = !0, et[fe] = et[
|
|
17060
|
+
et[tu] = et[ru] = et[nu] = et[iu] = et[su] = et[au] = et[ou] = et[uu] = et[lu] = !0, et[fe] = et[Re] = et[ei] = et[He] = et[ti] = et[je] = et[Ee] = et[$e] = et[Se] = et[_e] = et[ce] = et[Bt] = et[lt] = et[tr] = et[bn] = !1;
|
|
17063
17061
|
var Ze = {};
|
|
17064
|
-
Ze[fe] = Ze[
|
|
17062
|
+
Ze[fe] = Ze[Re] = Ze[ei] = Ze[ti] = Ze[He] = Ze[je] = Ze[tu] = Ze[ru] = Ze[nu] = Ze[iu] = Ze[su] = Ze[Se] = Ze[_e] = Ze[ce] = Ze[Bt] = Ze[lt] = Ze[tr] = Ze[Jn] = Ze[au] = Ze[ou] = Ze[uu] = Ze[lu] = !0, Ze[Ee] = Ze[$e] = Ze[bn] = !1;
|
|
17065
17063
|
var g_ = {
|
|
17066
17064
|
// Latin-1 Supplement block.
|
|
17067
17065
|
À: "A",
|
|
@@ -17499,7 +17497,7 @@ Io.exports;
|
|
|
17499
17497
|
function rn(P, B) {
|
|
17500
17498
|
for (var k = -1, Z = P.length, ve = 0, Ge = []; ++k < Z; ) {
|
|
17501
17499
|
var mt = P[k];
|
|
17502
|
-
(mt === B || mt ===
|
|
17500
|
+
(mt === B || mt === g) && (P[k] = g, Ge[ve++] = k);
|
|
17503
17501
|
}
|
|
17504
17502
|
return Ge;
|
|
17505
17503
|
}
|
|
@@ -17660,7 +17658,7 @@ Io.exports;
|
|
|
17660
17658
|
for (; M-- && q < ee; ) {
|
|
17661
17659
|
U += o;
|
|
17662
17660
|
for (var Te = -1, ue = s[U]; ++Te < z; ) {
|
|
17663
|
-
var
|
|
17661
|
+
var Ce = $[Te], Fe = Ce.iteratee, Kt = Ce.type, Lt = Fe(ue);
|
|
17664
17662
|
if (Kt == ie)
|
|
17665
17663
|
ue = Lt;
|
|
17666
17664
|
else if (!Lt) {
|
|
@@ -17864,7 +17862,7 @@ Io.exports;
|
|
|
17864
17862
|
return s === s && (h !== r && (s = s <= h ? s : h), o !== r && (s = s >= o ? s : o)), s;
|
|
17865
17863
|
}
|
|
17866
17864
|
function ar(s, o, h, v, T, A) {
|
|
17867
|
-
var C, R = o & c, M = o & d, U = o &
|
|
17865
|
+
var C, R = o & c, M = o & d, U = o & m;
|
|
17868
17866
|
if (h && (C = T ? h(s, v, T, A) : h(s)), C !== r)
|
|
17869
17867
|
return C;
|
|
17870
17868
|
if (!st(s))
|
|
@@ -17892,12 +17890,12 @@ Io.exports;
|
|
|
17892
17890
|
return ee;
|
|
17893
17891
|
A.set(s, C), Bd(s) ? s.forEach(function(ue) {
|
|
17894
17892
|
C.add(ar(ue, o, h, ue, s, A));
|
|
17895
|
-
}) : kd(s) && s.forEach(function(ue,
|
|
17896
|
-
C.set(
|
|
17893
|
+
}) : kd(s) && s.forEach(function(ue, Ce) {
|
|
17894
|
+
C.set(Ce, ar(ue, o, h, Ce, s, A));
|
|
17897
17895
|
});
|
|
17898
17896
|
var oe = U ? M ? Ju : Qu : M ? Gt : yt, Te = $ ? r : oe(s);
|
|
17899
|
-
return nr(Te || s, function(ue,
|
|
17900
|
-
Te && (
|
|
17897
|
+
return nr(Te || s, function(ue, Ce) {
|
|
17898
|
+
Te && (Ce = ue, ue = s[Ce]), rs(C, Ce, ar(ue, o, h, Ce, s, A));
|
|
17901
17899
|
}), C;
|
|
17902
17900
|
}
|
|
17903
17901
|
function Gy(s) {
|
|
@@ -18058,7 +18056,7 @@ Io.exports;
|
|
|
18058
18056
|
return s === o ? !0 : s == null || o == null || !ct(s) && !ct(o) ? s !== s && o !== o : Ky(s, o, h, v, ss, T);
|
|
18059
18057
|
}
|
|
18060
18058
|
function Ky(s, o, h, v, T, A) {
|
|
18061
|
-
var C = ye(s), R = ye(o), M = C ?
|
|
18059
|
+
var C = ye(s), R = ye(o), M = C ? Re : Rt(s), U = R ? Re : Rt(o);
|
|
18062
18060
|
M = M == fe ? ce : M, U = U == fe ? ce : U;
|
|
18063
18061
|
var $ = M == ce, z = U == ce, q = M == U;
|
|
18064
18062
|
if (q && ln(s)) {
|
|
@@ -18078,7 +18076,7 @@ Io.exports;
|
|
|
18078
18076
|
return q ? (A || (A = new pr()), Sx(s, o, h, v, T, A)) : !1;
|
|
18079
18077
|
}
|
|
18080
18078
|
function Zy(s) {
|
|
18081
|
-
return ct(s) && Rt(s) ==
|
|
18079
|
+
return ct(s) && Rt(s) == Se;
|
|
18082
18080
|
}
|
|
18083
18081
|
function Bu(s, o, h, v) {
|
|
18084
18082
|
var T = h.length, A = T, C = !v;
|
|
@@ -18257,7 +18255,7 @@ Io.exports;
|
|
|
18257
18255
|
while (o);
|
|
18258
18256
|
return h;
|
|
18259
18257
|
}
|
|
18260
|
-
function
|
|
18258
|
+
function we(s, o) {
|
|
18261
18259
|
return al(fd(s, o, Ht), s + "");
|
|
18262
18260
|
}
|
|
18263
18261
|
function ax(s) {
|
|
@@ -18424,7 +18422,7 @@ Io.exports;
|
|
|
18424
18422
|
function on(s, o) {
|
|
18425
18423
|
return ye(s) ? s : nl(s, o) ? [s] : vd(ze(s));
|
|
18426
18424
|
}
|
|
18427
|
-
var hx =
|
|
18425
|
+
var hx = we;
|
|
18428
18426
|
function un(s, o, h) {
|
|
18429
18427
|
var v = s.length;
|
|
18430
18428
|
return h = h === r ? v : h, !o && h >= v ? s : or(s, o, h);
|
|
@@ -18525,7 +18523,7 @@ Io.exports;
|
|
|
18525
18523
|
};
|
|
18526
18524
|
}
|
|
18527
18525
|
function hi(s) {
|
|
18528
|
-
return
|
|
18526
|
+
return we(function(o, h) {
|
|
18529
18527
|
var v = -1, T = h.length, A = T > 1 ? h[T - 1] : r, C = T > 2 ? h[2] : r;
|
|
18530
18528
|
for (A = s.length > 3 && typeof A == "function" ? (T--, A) : r, C && Nt(h[0], h[1], C) && (A = T < 3 ? r : A, T = 1), o = qe(o); ++v < T; ) {
|
|
18531
18529
|
var R = h[v];
|
|
@@ -18665,11 +18663,11 @@ Io.exports;
|
|
|
18665
18663
|
function ya(s, o, h, v, T, A, C, R, M, U) {
|
|
18666
18664
|
var $ = o & N, z = o & b, q = o & x, ee = o & (w | I), oe = o & D, Te = q ? r : os(s);
|
|
18667
18665
|
function ue() {
|
|
18668
|
-
for (var
|
|
18666
|
+
for (var Ce = arguments.length, Fe = k(Ce), Kt = Ce; Kt--; )
|
|
18669
18667
|
Fe[Kt] = arguments[Kt];
|
|
18670
18668
|
if (ee)
|
|
18671
18669
|
var Lt = di(ue), Zt = M_(Fe, Lt);
|
|
18672
|
-
if (v && (Fe = jf(Fe, v, T, ee)), A && (Fe = qf(Fe, A, C, ee)),
|
|
18670
|
+
if (v && (Fe = jf(Fe, v, T, ee)), A && (Fe = qf(Fe, A, C, ee)), Ce -= Zt, ee && Ce < U) {
|
|
18673
18671
|
var ft = rn(Fe, Lt);
|
|
18674
18672
|
return rd(
|
|
18675
18673
|
s,
|
|
@@ -18681,11 +18679,11 @@ Io.exports;
|
|
|
18681
18679
|
ft,
|
|
18682
18680
|
R,
|
|
18683
18681
|
M,
|
|
18684
|
-
U -
|
|
18682
|
+
U - Ce
|
|
18685
18683
|
);
|
|
18686
18684
|
}
|
|
18687
18685
|
var mr = z ? h : this, jr = q ? mr[s] : s;
|
|
18688
|
-
return
|
|
18686
|
+
return Ce = Fe.length, R ? Fe = Ux(Fe, R) : oe && Ce > 1 && Fe.reverse(), $ && M < Ce && (Fe.length = M), this && this !== St && this instanceof ue && (jr = Te || os(jr)), jr.apply(mr, Fe);
|
|
18689
18687
|
}
|
|
18690
18688
|
return ue;
|
|
18691
18689
|
}
|
|
@@ -18709,7 +18707,7 @@ Io.exports;
|
|
|
18709
18707
|
}
|
|
18710
18708
|
function Ku(s) {
|
|
18711
18709
|
return zr(function(o) {
|
|
18712
|
-
return o = nt(o, jt(ae())),
|
|
18710
|
+
return o = nt(o, jt(ae())), we(function(h) {
|
|
18713
18711
|
var v = this;
|
|
18714
18712
|
return s(o, function(T) {
|
|
18715
18713
|
return Wt(T, v, h);
|
|
@@ -18779,7 +18777,7 @@ Io.exports;
|
|
|
18779
18777
|
function nd(s) {
|
|
18780
18778
|
return function(o) {
|
|
18781
18779
|
var h = Rt(o);
|
|
18782
|
-
return h ==
|
|
18780
|
+
return h == Se ? Cu(o) : h == lt ? B_(o) : P_(o, s(o));
|
|
18783
18781
|
};
|
|
18784
18782
|
}
|
|
18785
18783
|
function Hr(s, o, h, v, T, A, C, R) {
|
|
@@ -18838,8 +18836,8 @@ Io.exports;
|
|
|
18838
18836
|
break;
|
|
18839
18837
|
}
|
|
18840
18838
|
if (ee) {
|
|
18841
|
-
if (!bu(o, function(
|
|
18842
|
-
if (!Ki(ee, Fe) && (oe ===
|
|
18839
|
+
if (!bu(o, function(Ce, Fe) {
|
|
18840
|
+
if (!Ki(ee, Fe) && (oe === Ce || T(oe, Ce, h, v, A)))
|
|
18843
18841
|
return ee.push(Fe);
|
|
18844
18842
|
})) {
|
|
18845
18843
|
q = !1;
|
|
@@ -18864,12 +18862,12 @@ Io.exports;
|
|
|
18864
18862
|
case je:
|
|
18865
18863
|
case _e:
|
|
18866
18864
|
return gr(+s, +o);
|
|
18867
|
-
case
|
|
18865
|
+
case Ee:
|
|
18868
18866
|
return s.name == o.name && s.message == o.message;
|
|
18869
18867
|
case Bt:
|
|
18870
18868
|
case tr:
|
|
18871
18869
|
return s == o + "";
|
|
18872
|
-
case
|
|
18870
|
+
case Se:
|
|
18873
18871
|
var R = Cu;
|
|
18874
18872
|
case lt:
|
|
18875
18873
|
var M = v & _;
|
|
@@ -18903,10 +18901,10 @@ Io.exports;
|
|
|
18903
18901
|
A.set(s, o), A.set(o, s);
|
|
18904
18902
|
for (var ue = C; ++z < M; ) {
|
|
18905
18903
|
q = R[z];
|
|
18906
|
-
var
|
|
18904
|
+
var Ce = s[q], Fe = o[q];
|
|
18907
18905
|
if (v)
|
|
18908
|
-
var Kt = C ? v(Fe,
|
|
18909
|
-
if (!(Kt === r ?
|
|
18906
|
+
var Kt = C ? v(Fe, Ce, q, o, s, A) : v(Ce, Fe, q, s, o, A);
|
|
18907
|
+
if (!(Kt === r ? Ce === Fe || T(Ce, Fe, h, v, A) : Kt)) {
|
|
18910
18908
|
Te = !1;
|
|
18911
18909
|
break;
|
|
18912
18910
|
}
|
|
@@ -18980,14 +18978,14 @@ Io.exports;
|
|
|
18980
18978
|
tn(o, rl(s)), s = ia(s);
|
|
18981
18979
|
return o;
|
|
18982
18980
|
} : xl, Rt = Ft;
|
|
18983
|
-
(Pu && Rt(new Pu(new ArrayBuffer(1))) != ti || Qi && Rt(new Qi()) !=
|
|
18981
|
+
(Pu && Rt(new Pu(new ArrayBuffer(1))) != ti || Qi && Rt(new Qi()) != Se || Mu && Rt(Mu.resolve()) != Oe || ui && Rt(new ui()) != lt || Ji && Rt(new Ji()) != bn) && (Rt = function(s) {
|
|
18984
18982
|
var o = Ft(s), h = o == ce ? s.constructor : r, v = h ? Rn(h) : "";
|
|
18985
18983
|
if (v)
|
|
18986
18984
|
switch (v) {
|
|
18987
18985
|
case oy:
|
|
18988
18986
|
return ti;
|
|
18989
18987
|
case uy:
|
|
18990
|
-
return
|
|
18988
|
+
return Se;
|
|
18991
18989
|
case ly:
|
|
18992
18990
|
return Oe;
|
|
18993
18991
|
case cy:
|
|
@@ -19058,7 +19056,7 @@ Io.exports;
|
|
|
19058
19056
|
case uu:
|
|
19059
19057
|
case lu:
|
|
19060
19058
|
return Xf(s, h);
|
|
19061
|
-
case
|
|
19059
|
+
case Se:
|
|
19062
19060
|
return new v();
|
|
19063
19061
|
case _e:
|
|
19064
19062
|
case tr:
|
|
@@ -19142,9 +19140,9 @@ Io.exports;
|
|
|
19142
19140
|
var R = o[3];
|
|
19143
19141
|
if (R) {
|
|
19144
19142
|
var M = s[3];
|
|
19145
|
-
s[3] = M ? jf(M, R, o[4]) : R, s[4] = M ? rn(s[3],
|
|
19143
|
+
s[3] = M ? jf(M, R, o[4]) : R, s[4] = M ? rn(s[3], g) : o[4];
|
|
19146
19144
|
}
|
|
19147
|
-
return R = o[5], R && (M = s[5], s[5] = M ? qf(M, R, o[6]) : R, s[6] = M ? rn(s[5],
|
|
19145
|
+
return R = o[5], R && (M = s[5], s[5] = M ? qf(M, R, o[6]) : R, s[6] = M ? rn(s[5], g) : o[6]), R = o[7], R && (s[7] = R), v & N && (s[8] = s[8] == null ? o[8] : It(s[8], o[8])), s[9] == null && (s[9] = o[9]), s[0] = o[0], s[1] = T, s;
|
|
19148
19146
|
}
|
|
19149
19147
|
function Dx(s) {
|
|
19150
19148
|
var o = [];
|
|
@@ -19268,12 +19266,12 @@ Io.exports;
|
|
|
19268
19266
|
o[v - 1] = arguments[v];
|
|
19269
19267
|
return tn(ye(h) ? Ut(h) : [h], At(o, 1));
|
|
19270
19268
|
}
|
|
19271
|
-
var Vx =
|
|
19269
|
+
var Vx = we(function(s, o) {
|
|
19272
19270
|
return ht(s) ? ns(s, At(o, 1, ht, !0)) : [];
|
|
19273
|
-
}), Xx =
|
|
19271
|
+
}), Xx = we(function(s, o) {
|
|
19274
19272
|
var h = ur(o);
|
|
19275
19273
|
return ht(h) && (h = r), ht(s) ? ns(s, At(o, 1, ht, !0), ae(h, 2)) : [];
|
|
19276
|
-
}), Wx =
|
|
19274
|
+
}), Wx = we(function(s, o) {
|
|
19277
19275
|
var h = ur(o);
|
|
19278
19276
|
return ht(h) && (h = r), ht(s) ? ns(s, At(o, 1, ht, !0), r, h) : [];
|
|
19279
19277
|
});
|
|
@@ -19342,13 +19340,13 @@ Io.exports;
|
|
|
19342
19340
|
var o = s == null ? 0 : s.length;
|
|
19343
19341
|
return o ? or(s, 0, -1) : [];
|
|
19344
19342
|
}
|
|
19345
|
-
var n1 =
|
|
19343
|
+
var n1 = we(function(s) {
|
|
19346
19344
|
var o = nt(s, ju);
|
|
19347
19345
|
return o.length && o[0] === s[0] ? Du(o) : [];
|
|
19348
|
-
}), i1 =
|
|
19346
|
+
}), i1 = we(function(s) {
|
|
19349
19347
|
var o = ur(s), h = nt(s, ju);
|
|
19350
19348
|
return o === ur(h) ? o = r : h.pop(), h.length && h[0] === s[0] ? Du(h, ae(o, 2)) : [];
|
|
19351
|
-
}), s1 =
|
|
19349
|
+
}), s1 = we(function(s) {
|
|
19352
19350
|
var o = ur(s), h = nt(s, ju);
|
|
19353
19351
|
return o = typeof o == "function" ? o : r, o && h.pop(), h.length && h[0] === s[0] ? Du(h, r, o) : [];
|
|
19354
19352
|
});
|
|
@@ -19369,7 +19367,7 @@ Io.exports;
|
|
|
19369
19367
|
function u1(s, o) {
|
|
19370
19368
|
return s && s.length ? Ff(s, xe(o)) : r;
|
|
19371
19369
|
}
|
|
19372
|
-
var l1 =
|
|
19370
|
+
var l1 = we(wd);
|
|
19373
19371
|
function wd(s, o) {
|
|
19374
19372
|
return s && s.length && o && o.length ? Gu(s, o) : s;
|
|
19375
19373
|
}
|
|
@@ -19456,12 +19454,12 @@ Io.exports;
|
|
|
19456
19454
|
function C1(s, o) {
|
|
19457
19455
|
return s && s.length ? va(s, ae(o, 3)) : [];
|
|
19458
19456
|
}
|
|
19459
|
-
var I1 =
|
|
19457
|
+
var I1 = we(function(s) {
|
|
19460
19458
|
return an(At(s, 1, ht, !0));
|
|
19461
|
-
}), R1 =
|
|
19459
|
+
}), R1 = we(function(s) {
|
|
19462
19460
|
var o = ur(s);
|
|
19463
19461
|
return ht(o) && (o = r), an(At(s, 1, ht, !0), ae(o, 2));
|
|
19464
|
-
}), P1 =
|
|
19462
|
+
}), P1 = we(function(s) {
|
|
19465
19463
|
var o = ur(s);
|
|
19466
19464
|
return o = typeof o == "function" ? o : r, an(At(s, 1, ht, !0), r, o);
|
|
19467
19465
|
});
|
|
@@ -19493,24 +19491,24 @@ Io.exports;
|
|
|
19493
19491
|
return Wt(o, r, v);
|
|
19494
19492
|
});
|
|
19495
19493
|
}
|
|
19496
|
-
var N1 =
|
|
19494
|
+
var N1 = we(function(s, o) {
|
|
19497
19495
|
return ht(s) ? ns(s, o) : [];
|
|
19498
|
-
}), L1 =
|
|
19496
|
+
}), L1 = we(function(s) {
|
|
19499
19497
|
return Wu(en(s, ht));
|
|
19500
|
-
}), k1 =
|
|
19498
|
+
}), k1 = we(function(s) {
|
|
19501
19499
|
var o = ur(s);
|
|
19502
19500
|
return ht(o) && (o = r), Wu(en(s, ht), ae(o, 2));
|
|
19503
|
-
}), D1 =
|
|
19501
|
+
}), D1 = we(function(s) {
|
|
19504
19502
|
var o = ur(s);
|
|
19505
19503
|
return o = typeof o == "function" ? o : r, Wu(en(s, ht), r, o);
|
|
19506
|
-
}), B1 =
|
|
19504
|
+
}), B1 = we(ul);
|
|
19507
19505
|
function U1(s, o) {
|
|
19508
19506
|
return Hf(s || [], o || [], rs);
|
|
19509
19507
|
}
|
|
19510
19508
|
function $1(s, o) {
|
|
19511
19509
|
return Hf(s || [], o || [], as);
|
|
19512
19510
|
}
|
|
19513
|
-
var G1 =
|
|
19511
|
+
var G1 = we(function(s) {
|
|
19514
19512
|
var o = s.length, h = o > 1 ? s[o - 1] : r;
|
|
19515
19513
|
return h = typeof h == "function" ? (s.pop(), h) : r, Sd(s, h);
|
|
19516
19514
|
});
|
|
@@ -19611,7 +19609,7 @@ Io.exports;
|
|
|
19611
19609
|
var T = s.length;
|
|
19612
19610
|
return h < 0 && (h = vt(T + h, 0)), Oa(s) ? h <= T && s.indexOf(o, h) > -1 : !!T && ni(s, o, h) > -1;
|
|
19613
19611
|
}
|
|
19614
|
-
var ob =
|
|
19612
|
+
var ob = we(function(s, o, h) {
|
|
19615
19613
|
var v = -1, T = typeof o == "function", A = $t(s) ? k(s.length) : [];
|
|
19616
19614
|
return sn(s, function(C) {
|
|
19617
19615
|
A[++v] = T ? Wt(o, C, h) : is(C, o, h);
|
|
@@ -19662,13 +19660,13 @@ Io.exports;
|
|
|
19662
19660
|
if ($t(s))
|
|
19663
19661
|
return Oa(s) ? si(s) : s.length;
|
|
19664
19662
|
var o = Rt(s);
|
|
19665
|
-
return o ==
|
|
19663
|
+
return o == Se || o == lt ? s.size : Uu(s).length;
|
|
19666
19664
|
}
|
|
19667
19665
|
function _b(s, o, h) {
|
|
19668
19666
|
var v = ye(s) ? bu : cx;
|
|
19669
19667
|
return h && Nt(s, o, h) && (o = r), v(s, ae(o, 3));
|
|
19670
19668
|
}
|
|
19671
|
-
var yb =
|
|
19669
|
+
var yb = we(function(s, o) {
|
|
19672
19670
|
if (s == null)
|
|
19673
19671
|
return [];
|
|
19674
19672
|
var h = o.length;
|
|
@@ -19695,14 +19693,14 @@ Io.exports;
|
|
|
19695
19693
|
return --s > 0 && (h = o.apply(this, arguments)), s <= 1 && (o = r), h;
|
|
19696
19694
|
};
|
|
19697
19695
|
}
|
|
19698
|
-
var ll =
|
|
19696
|
+
var ll = we(function(s, o, h) {
|
|
19699
19697
|
var v = b;
|
|
19700
19698
|
if (h.length) {
|
|
19701
19699
|
var T = rn(h, di(ll));
|
|
19702
19700
|
v |= O;
|
|
19703
19701
|
}
|
|
19704
19702
|
return Hr(s, v, o, h, T);
|
|
19705
|
-
}), Pd =
|
|
19703
|
+
}), Pd = we(function(s, o, h) {
|
|
19706
19704
|
var v = b | x;
|
|
19707
19705
|
if (h.length) {
|
|
19708
19706
|
var T = rn(h, di(Pd));
|
|
@@ -19730,7 +19728,7 @@ Io.exports;
|
|
|
19730
19728
|
return v = T = r, U = ft, C = s.apply(jr, mr), C;
|
|
19731
19729
|
}
|
|
19732
19730
|
function oe(ft) {
|
|
19733
|
-
return U = ft, R = ls(
|
|
19731
|
+
return U = ft, R = ls(Ce, o), $ ? ee(ft) : C;
|
|
19734
19732
|
}
|
|
19735
19733
|
function Te(ft) {
|
|
19736
19734
|
var mr = ft - M, jr = ft - U, Qd = o - mr;
|
|
@@ -19740,11 +19738,11 @@ Io.exports;
|
|
|
19740
19738
|
var mr = ft - M, jr = ft - U;
|
|
19741
19739
|
return M === r || mr >= o || mr < 0 || z && jr >= A;
|
|
19742
19740
|
}
|
|
19743
|
-
function
|
|
19741
|
+
function Ce() {
|
|
19744
19742
|
var ft = Ia();
|
|
19745
19743
|
if (ue(ft))
|
|
19746
19744
|
return Fe(ft);
|
|
19747
|
-
R = ls(
|
|
19745
|
+
R = ls(Ce, Te(ft));
|
|
19748
19746
|
}
|
|
19749
19747
|
function Fe(ft) {
|
|
19750
19748
|
return R = r, q && v ? ee(ft) : (v = T = r, C);
|
|
@@ -19761,15 +19759,15 @@ Io.exports;
|
|
|
19761
19759
|
if (R === r)
|
|
19762
19760
|
return oe(M);
|
|
19763
19761
|
if (z)
|
|
19764
|
-
return zf(R), R = ls(
|
|
19762
|
+
return zf(R), R = ls(Ce, o), ee(M);
|
|
19765
19763
|
}
|
|
19766
|
-
return R === r && (R = ls(
|
|
19764
|
+
return R === r && (R = ls(Ce, o)), C;
|
|
19767
19765
|
}
|
|
19768
19766
|
return Zt.cancel = Kt, Zt.flush = Lt, Zt;
|
|
19769
19767
|
}
|
|
19770
|
-
var bb =
|
|
19768
|
+
var bb = we(function(s, o) {
|
|
19771
19769
|
return Tf(s, 1, o);
|
|
19772
|
-
}), Tb =
|
|
19770
|
+
}), Tb = we(function(s, o, h) {
|
|
19773
19771
|
return Tf(s, lr(o) || 0, h);
|
|
19774
19772
|
});
|
|
19775
19773
|
function wb(s) {
|
|
@@ -19812,15 +19810,15 @@ Io.exports;
|
|
|
19812
19810
|
var Ab = hx(function(s, o) {
|
|
19813
19811
|
o = o.length == 1 && ye(o[0]) ? nt(o[0], jt(ae())) : nt(At(o, 1), jt(ae()));
|
|
19814
19812
|
var h = o.length;
|
|
19815
|
-
return
|
|
19813
|
+
return we(function(v) {
|
|
19816
19814
|
for (var T = -1, A = It(v.length, h); ++T < A; )
|
|
19817
19815
|
v[T] = o[T].call(this, v[T]);
|
|
19818
19816
|
return Wt(s, this, v);
|
|
19819
19817
|
});
|
|
19820
|
-
}), cl =
|
|
19818
|
+
}), cl = we(function(s, o) {
|
|
19821
19819
|
var h = rn(o, di(cl));
|
|
19822
19820
|
return Hr(s, O, r, o, h);
|
|
19823
|
-
}), Nd =
|
|
19821
|
+
}), Nd = we(function(s, o) {
|
|
19824
19822
|
var h = rn(o, di(Nd));
|
|
19825
19823
|
return Hr(s, F, r, o, h);
|
|
19826
19824
|
}), Eb = zr(function(s, o) {
|
|
@@ -19829,12 +19827,12 @@ Io.exports;
|
|
|
19829
19827
|
function Cb(s, o) {
|
|
19830
19828
|
if (typeof s != "function")
|
|
19831
19829
|
throw new ir(u);
|
|
19832
|
-
return o = o === r ? o : xe(o),
|
|
19830
|
+
return o = o === r ? o : xe(o), we(s, o);
|
|
19833
19831
|
}
|
|
19834
19832
|
function Ib(s, o) {
|
|
19835
19833
|
if (typeof s != "function")
|
|
19836
19834
|
throw new ir(u);
|
|
19837
|
-
return o = o == null ? 0 : vt(xe(o), 0),
|
|
19835
|
+
return o = o == null ? 0 : vt(xe(o), 0), we(function(h) {
|
|
19838
19836
|
var v = h[o], T = un(h, 0, o);
|
|
19839
19837
|
return v && tn(T, v), Wt(s, this, T);
|
|
19840
19838
|
});
|
|
@@ -19862,16 +19860,16 @@ Io.exports;
|
|
|
19862
19860
|
return ye(s) ? s : [s];
|
|
19863
19861
|
}
|
|
19864
19862
|
function Fb(s) {
|
|
19865
|
-
return ar(s,
|
|
19863
|
+
return ar(s, m);
|
|
19866
19864
|
}
|
|
19867
19865
|
function Nb(s, o) {
|
|
19868
|
-
return o = typeof o == "function" ? o : r, ar(s,
|
|
19866
|
+
return o = typeof o == "function" ? o : r, ar(s, m, o);
|
|
19869
19867
|
}
|
|
19870
19868
|
function Lb(s) {
|
|
19871
|
-
return ar(s, c |
|
|
19869
|
+
return ar(s, c | m);
|
|
19872
19870
|
}
|
|
19873
19871
|
function kb(s, o) {
|
|
19874
|
-
return o = typeof o == "function" ? o : r, ar(s, c |
|
|
19872
|
+
return o = typeof o == "function" ? o : r, ar(s, c | m, o);
|
|
19875
19873
|
}
|
|
19876
19874
|
function Db(s, o) {
|
|
19877
19875
|
return o == null || bf(s, o, yt(o));
|
|
@@ -19905,7 +19903,7 @@ Io.exports;
|
|
|
19905
19903
|
if ($t(s) && (ye(s) || typeof s == "string" || typeof s.splice == "function" || ln(s) || pi(s) || Pn(s)))
|
|
19906
19904
|
return !s.length;
|
|
19907
19905
|
var o = Rt(s);
|
|
19908
|
-
if (o ==
|
|
19906
|
+
if (o == Se || o == lt)
|
|
19909
19907
|
return !s.size;
|
|
19910
19908
|
if (us(s))
|
|
19911
19909
|
return !Uu(s).length;
|
|
@@ -19926,7 +19924,7 @@ Io.exports;
|
|
|
19926
19924
|
if (!ct(s))
|
|
19927
19925
|
return !1;
|
|
19928
19926
|
var o = Ft(s);
|
|
19929
|
-
return o ==
|
|
19927
|
+
return o == Ee || o == be || typeof s.message == "string" && typeof s.name == "string" && !cs(s);
|
|
19930
19928
|
}
|
|
19931
19929
|
function jb(s) {
|
|
19932
19930
|
return typeof s == "number" && gf(s);
|
|
@@ -20014,7 +20012,7 @@ Io.exports;
|
|
|
20014
20012
|
return Oa(s) ? dr(s) : Ut(s);
|
|
20015
20013
|
if (Zi && s[Zi])
|
|
20016
20014
|
return D_(s[Zi]());
|
|
20017
|
-
var o = Rt(s), h = o ==
|
|
20015
|
+
var o = Rt(s), h = o == Se ? Cu : o == lt ? Zs : gi;
|
|
20018
20016
|
return h(s);
|
|
20019
20017
|
}
|
|
20020
20018
|
function Wr(s) {
|
|
@@ -20075,7 +20073,7 @@ Io.exports;
|
|
|
20075
20073
|
var h = ci(s);
|
|
20076
20074
|
return o == null ? h : xf(h, o);
|
|
20077
20075
|
}
|
|
20078
|
-
var hT =
|
|
20076
|
+
var hT = we(function(s, o) {
|
|
20079
20077
|
s = qe(s);
|
|
20080
20078
|
var h = -1, v = o.length, T = v > 2 ? o[2] : r;
|
|
20081
20079
|
for (T && Nt(o[0], o[1], T) && (v = 1); ++h < v; )
|
|
@@ -20084,7 +20082,7 @@ Io.exports;
|
|
|
20084
20082
|
($ === r || gr($, oi[U]) && !Xe.call(s, U)) && (s[U] = A[U]);
|
|
20085
20083
|
}
|
|
20086
20084
|
return s;
|
|
20087
|
-
}), fT =
|
|
20085
|
+
}), fT = we(function(s) {
|
|
20088
20086
|
return s.push(r, sd), Wt(zd, r, s);
|
|
20089
20087
|
});
|
|
20090
20088
|
function dT(s, o) {
|
|
@@ -20125,7 +20123,7 @@ Io.exports;
|
|
|
20125
20123
|
o != null && typeof o.toString != "function" && (o = ta.call(o)), s[o] = h;
|
|
20126
20124
|
}, ml(Ht)), wT = ed(function(s, o, h) {
|
|
20127
20125
|
o != null && typeof o.toString != "function" && (o = ta.call(o)), Xe.call(s, o) ? s[o].push(h) : s[o] = [h];
|
|
20128
|
-
}, ae), ST =
|
|
20126
|
+
}, ae), ST = we(is);
|
|
20129
20127
|
function yt(s) {
|
|
20130
20128
|
return $t(s) ? _f(s) : Uu(s);
|
|
20131
20129
|
}
|
|
@@ -20155,7 +20153,7 @@ Io.exports;
|
|
|
20155
20153
|
var v = !1;
|
|
20156
20154
|
o = nt(o, function(A) {
|
|
20157
20155
|
return A = on(A, s), v || (v = A.length > 1), A;
|
|
20158
|
-
}), Rr(s, Ju(s), h), v && (h = ar(h, c | d |
|
|
20156
|
+
}), Rr(s, Ju(s), h), v && (h = ar(h, c | d | m, Tx));
|
|
20159
20157
|
for (var T = o.length; T--; )
|
|
20160
20158
|
Xu(h, o[T]);
|
|
20161
20159
|
return h;
|
|
@@ -20309,9 +20307,9 @@ Io.exports;
|
|
|
20309
20307
|
"g"
|
|
20310
20308
|
), ee = "//# sourceURL=" + (Xe.call(o, "sourceURL") ? (o.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++p_ + "]") + `
|
|
20311
20309
|
`;
|
|
20312
|
-
s.replace(q, function(ue,
|
|
20313
|
-
return Fe || (Fe = Kt), z += s.slice(U, Zt).replace(Xv, N_),
|
|
20314
|
-
__e(` +
|
|
20310
|
+
s.replace(q, function(ue, Ce, Fe, Kt, Lt, Zt) {
|
|
20311
|
+
return Fe || (Fe = Kt), z += s.slice(U, Zt).replace(Xv, N_), Ce && (R = !0, z += `' +
|
|
20312
|
+
__e(` + Ce + `) +
|
|
20315
20313
|
'`), Lt && (M = !0, z += `';
|
|
20316
20314
|
` + Lt + `;
|
|
20317
20315
|
__p += '`), Fe && (z += `' +
|
|
@@ -20413,7 +20411,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20413
20411
|
function Yd(s, o, h) {
|
|
20414
20412
|
return s = ze(s), o = h ? r : o, o === r ? k_(s) ? V_(s) : C_(s) : s.match(o) || [];
|
|
20415
20413
|
}
|
|
20416
|
-
var Kd =
|
|
20414
|
+
var Kd = we(function(s, o) {
|
|
20417
20415
|
try {
|
|
20418
20416
|
return Wt(s, r, o);
|
|
20419
20417
|
} catch (h) {
|
|
@@ -20430,7 +20428,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20430
20428
|
if (typeof v[1] != "function")
|
|
20431
20429
|
throw new ir(u);
|
|
20432
20430
|
return [h(v[0]), v[1]];
|
|
20433
|
-
}) : [],
|
|
20431
|
+
}) : [], we(function(v) {
|
|
20434
20432
|
for (var T = -1; ++T < o; ) {
|
|
20435
20433
|
var A = s[T];
|
|
20436
20434
|
if (Wt(A[0], this, v))
|
|
@@ -20462,11 +20460,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20462
20460
|
function bw(s, o) {
|
|
20463
20461
|
return Of(s, ar(o, c));
|
|
20464
20462
|
}
|
|
20465
|
-
var Tw =
|
|
20463
|
+
var Tw = we(function(s, o) {
|
|
20466
20464
|
return function(h) {
|
|
20467
20465
|
return is(h, s, o);
|
|
20468
20466
|
};
|
|
20469
|
-
}), ww =
|
|
20467
|
+
}), ww = we(function(s, o) {
|
|
20470
20468
|
return function(h) {
|
|
20471
20469
|
return is(s, h, o);
|
|
20472
20470
|
};
|
|
@@ -20493,7 +20491,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20493
20491
|
function yl() {
|
|
20494
20492
|
}
|
|
20495
20493
|
function Aw(s) {
|
|
20496
|
-
return s = xe(s),
|
|
20494
|
+
return s = xe(s), we(function(o) {
|
|
20497
20495
|
return Ff(o, s);
|
|
20498
20496
|
});
|
|
20499
20497
|
}
|
|
@@ -20615,7 +20613,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20615
20613
|
return this.filter(s).head();
|
|
20616
20614
|
}, Pe.prototype.findLast = function(s) {
|
|
20617
20615
|
return this.reverse().find(s);
|
|
20618
|
-
}, Pe.prototype.invokeMap =
|
|
20616
|
+
}, Pe.prototype.invokeMap = we(function(s, o) {
|
|
20619
20617
|
return typeof s == "function" ? new Pe(this) : this.map(function(h) {
|
|
20620
20618
|
return is(h, s, o);
|
|
20621
20619
|
});
|
|
@@ -20632,8 +20630,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20632
20630
|
}, Ir(Pe.prototype, function(s, o) {
|
|
20633
20631
|
var h = /^(?:filter|find|map|reject)|While$/.test(o), v = /^(?:head|last)$/.test(o), T = S[v ? "take" + (o == "last" ? "Right" : "") : o], A = v || /^find/.test(o);
|
|
20634
20632
|
T && (S.prototype[o] = function() {
|
|
20635
|
-
var C = this.__wrapped__, R = v ? [1] : arguments, M = C instanceof Pe, U = R[0], $ = M || ye(C), z = function(
|
|
20636
|
-
var Fe = T.apply(S, tn([
|
|
20633
|
+
var C = this.__wrapped__, R = v ? [1] : arguments, M = C instanceof Pe, U = R[0], $ = M || ye(C), z = function(Ce) {
|
|
20634
|
+
var Fe = T.apply(S, tn([Ce], R));
|
|
20637
20635
|
return v && q ? Fe[0] : Fe;
|
|
20638
20636
|
};
|
|
20639
20637
|
$ && h && typeof U == "function" && U.length != 1 && (M = $ = !1);
|
|
@@ -20684,7 +20682,7 @@ const c5 = {
|
|
|
20684
20682
|
totalFrames: 0,
|
|
20685
20683
|
totalDuration: 0
|
|
20686
20684
|
}, h5 = te.forwardRef((t, e) => {
|
|
20687
|
-
const [r, n] = te.useState([]), [, i] = te.useState(0), [a, u] = te.useState([]), [, l] = Fi(!1), [f, p] = JB({ autoPlay: !1 }),
|
|
20685
|
+
const [r, n] = te.useState([]), [, i] = te.useState(0), [a, u] = te.useState([]), [, l] = Fi(!1), [f, p] = JB({ autoPlay: !1 }), g = pe(null), c = pe(null), d = pe(c5), m = pe(), { tl: _, dragModeRef: y } = Gi(Yn), { frames: b, delays: x } = f, {
|
|
20688
20686
|
src: E,
|
|
20689
20687
|
startAt: w,
|
|
20690
20688
|
endAt: I,
|
|
@@ -20703,62 +20701,62 @@ const c5 = {
|
|
|
20703
20701
|
adjustmentFilter: W,
|
|
20704
20702
|
vignetteFilter: j,
|
|
20705
20703
|
noiseFilter: le
|
|
20706
|
-
} = Qn(G), { blurRadius: he = 0, vignette: me = 0, noise: fe = 0 } = G,
|
|
20704
|
+
} = Qn(G), { blurRadius: he = 0, vignette: me = 0, noise: fe = 0 } = G, Re = 0.1;
|
|
20707
20705
|
o5(E, p), pt(Qe.PAUSE, () => {
|
|
20708
|
-
|
|
20706
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20709
20707
|
}), pt(Qe.SEEK_END, () => {
|
|
20710
|
-
|
|
20708
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20711
20709
|
}), pt(Qe.SCRUBBER_CLICKED, () => {
|
|
20712
|
-
|
|
20710
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20713
20711
|
}), te.useEffect(() => {
|
|
20714
|
-
d.current &&
|
|
20712
|
+
d.current && g.current && (y.current ? (g.current.stop(), d.current.isPlaying = !1, d.current.isDragging = !0) : d.current.isDragging = !1);
|
|
20715
20713
|
}, [y]), te.useEffect(() => {
|
|
20716
20714
|
if (!Hs(b)) {
|
|
20717
|
-
const
|
|
20715
|
+
const Se = RB(b, (ce) => {
|
|
20718
20716
|
const { data: Oe, width: Xt, height: Bt } = ce, lt = new Uint8Array(Oe);
|
|
20719
20717
|
return er.Texture.fromBuffer(lt, Xt, Bt);
|
|
20720
|
-
}), _e =
|
|
20718
|
+
}), _e = Se.map(
|
|
20721
20719
|
(ce, Oe) => ({
|
|
20722
20720
|
texture: ce,
|
|
20723
20721
|
time: x[Oe]
|
|
20724
20722
|
})
|
|
20725
20723
|
);
|
|
20726
|
-
n(
|
|
20724
|
+
n(Se), u(_e);
|
|
20727
20725
|
let rt = 0;
|
|
20728
20726
|
x.forEach((ce) => {
|
|
20729
20727
|
rt += ce * 10;
|
|
20730
20728
|
}), i(rt), d.current.totalDuration = rt, d.current.totalFrames = b.length;
|
|
20731
20729
|
}
|
|
20732
20730
|
}, [b, x]);
|
|
20733
|
-
const Ue = am.debounce((
|
|
20734
|
-
if (
|
|
20735
|
-
let _e =
|
|
20731
|
+
const Ue = am.debounce((Se) => {
|
|
20732
|
+
if (g.current) {
|
|
20733
|
+
let _e = Se === 0 ? 0 : Se / Re;
|
|
20736
20734
|
_e = isNaN(_e) ? 0 : _e;
|
|
20737
20735
|
const rt = d.current.totalFrames;
|
|
20738
|
-
_e = _e > rt ? rt : _e, _e >= rt ? (
|
|
20736
|
+
_e = _e > rt ? rt : _e, _e >= rt ? (g.current.gotoAndStop(0), d.current.isPlaying = !1) : (g.current.gotoAndPlay(_e || 0), d.current.isPlaying = !0);
|
|
20739
20737
|
}
|
|
20740
20738
|
}, 20), He = am.debounce(() => {
|
|
20741
|
-
|
|
20742
|
-
}, 50), je = (
|
|
20743
|
-
if (
|
|
20744
|
-
let _e =
|
|
20739
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20740
|
+
}, 50), je = (Se) => {
|
|
20741
|
+
if (g.current) {
|
|
20742
|
+
let _e = Se === 0 ? 0 : Se / Re;
|
|
20745
20743
|
_e = isNaN(_e) ? 0 : _e;
|
|
20746
20744
|
const rt = d.current.totalFrames;
|
|
20747
|
-
_e = _e > rt ? rt : _e, _e >= rt ? (
|
|
20745
|
+
_e = _e > rt ? rt : _e, _e >= rt ? (g.current.gotoAndStop(0), d.current.isPlaying = !1) : (g.current.gotoAndPlay(_e || 0), d.current.isPlaying = !0);
|
|
20748
20746
|
}
|
|
20749
20747
|
}, be = () => {
|
|
20750
|
-
|
|
20751
|
-
},
|
|
20752
|
-
|
|
20753
|
-
}, $e = (
|
|
20748
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20749
|
+
}, Ee = () => {
|
|
20750
|
+
g.current && (g.current.stop(), d.current.isPlaying = !1);
|
|
20751
|
+
}, $e = (Se) => {
|
|
20754
20752
|
var rt;
|
|
20755
|
-
const _e =
|
|
20756
|
-
|
|
20753
|
+
const _e = Se + ((rt = m.current) == null ? void 0 : rt.time());
|
|
20754
|
+
g.current && y.current ? (Ue(_e), He(), d.current.isPlaying = !1) : m.current && g.current && !d.current.isPlaying && m.current.isActive() && _.current.isActive() && (Ue(_e), d.current.isPlaying = !0);
|
|
20757
20755
|
}, Ke = () => {
|
|
20758
20756
|
l(!0);
|
|
20759
20757
|
};
|
|
20760
20758
|
return mn(() => {
|
|
20761
|
-
let
|
|
20759
|
+
let Se = J.context(() => {
|
|
20762
20760
|
});
|
|
20763
20761
|
if (c.current && _.current) {
|
|
20764
20762
|
const _e = {
|
|
@@ -20767,30 +20765,30 @@ const c5 = {
|
|
|
20767
20765
|
onComplete: be,
|
|
20768
20766
|
onStartParams: [O, F],
|
|
20769
20767
|
onCompleteParams: [],
|
|
20770
|
-
onInterrupt:
|
|
20768
|
+
onInterrupt: Ee,
|
|
20771
20769
|
onUpdate: $e,
|
|
20772
20770
|
onUpdateParams: [O, F]
|
|
20773
20771
|
};
|
|
20774
|
-
|
|
20775
|
-
|
|
20772
|
+
m.current && m.current.kill(), Se = J.context(() => {
|
|
20773
|
+
m.current = J.from(
|
|
20776
20774
|
c.current,
|
|
20777
20775
|
// @ts-ignore
|
|
20778
20776
|
_e,
|
|
20779
20777
|
O
|
|
20780
|
-
), _.current.add(
|
|
20778
|
+
), _.current.add(m.current, w);
|
|
20781
20779
|
});
|
|
20782
20780
|
}
|
|
20783
20781
|
return () => {
|
|
20784
|
-
|
|
20782
|
+
m.current && (m.current.kill(), J.killTweensOf(m.current)), Se.revert();
|
|
20785
20783
|
};
|
|
20786
|
-
}, [w, I, O, F]), /* @__PURE__ */
|
|
20784
|
+
}, [w, I, O, F]), /* @__PURE__ */ Ae.jsx(
|
|
20787
20785
|
vn,
|
|
20788
20786
|
{
|
|
20789
20787
|
...t,
|
|
20790
20788
|
ref: e,
|
|
20791
20789
|
ignoreTlForVideo: !0,
|
|
20792
20790
|
isGif: !0,
|
|
20793
|
-
children: /* @__PURE__ */
|
|
20791
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: c, children: r && r.length > 0 && /* @__PURE__ */ Ae.jsx(
|
|
20794
20792
|
l5,
|
|
20795
20793
|
{
|
|
20796
20794
|
x: se,
|
|
@@ -20803,7 +20801,7 @@ const c5 = {
|
|
|
20803
20801
|
textures: a,
|
|
20804
20802
|
onComplete: Ke,
|
|
20805
20803
|
anchor: 0.5,
|
|
20806
|
-
forwardRef:
|
|
20804
|
+
forwardRef: g,
|
|
20807
20805
|
...!D && L && { interactive: !0, pointerdown: ie },
|
|
20808
20806
|
filters: [
|
|
20809
20807
|
re,
|
|
@@ -20829,10 +20827,10 @@ h5.whyDidYouRender = {
|
|
|
20829
20827
|
const fU = te.forwardRef((t, e) => {
|
|
20830
20828
|
const n = pe(null), i = pe(0), a = pe(null), u = pe(null), l = pe(16), f = pe(null), {
|
|
20831
20829
|
visible: p,
|
|
20832
|
-
text:
|
|
20830
|
+
text: g,
|
|
20833
20831
|
disabled: c,
|
|
20834
20832
|
transformation: d,
|
|
20835
|
-
pointerdown:
|
|
20833
|
+
pointerdown: m,
|
|
20836
20834
|
onDobuleClick: _
|
|
20837
20835
|
} = t, {
|
|
20838
20836
|
x: y,
|
|
@@ -20869,7 +20867,7 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20869
20867
|
te.useEffect(() => {
|
|
20870
20868
|
l.current = Number(I);
|
|
20871
20869
|
}, [I]);
|
|
20872
|
-
const me = ["italic", "oblique"].includes(w) ? w : void 0, fe = ["small-caps"].includes(O),
|
|
20870
|
+
const me = ["italic", "oblique"].includes(w) ? w : void 0, fe = ["small-caps"].includes(O), Re = [
|
|
20873
20871
|
"bold",
|
|
20874
20872
|
"bolder",
|
|
20875
20873
|
"lighter",
|
|
@@ -20891,8 +20889,8 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20891
20889
|
...fe && {
|
|
20892
20890
|
fontVariant: fe
|
|
20893
20891
|
},
|
|
20894
|
-
...
|
|
20895
|
-
fontWeight:
|
|
20892
|
+
...Re && {
|
|
20893
|
+
fontWeight: Re
|
|
20896
20894
|
},
|
|
20897
20895
|
...Ue && { letterSpacing: Ue },
|
|
20898
20896
|
...V && {
|
|
@@ -20923,7 +20921,7 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20923
20921
|
w,
|
|
20924
20922
|
ie,
|
|
20925
20923
|
me,
|
|
20926
|
-
|
|
20924
|
+
Re,
|
|
20927
20925
|
fe,
|
|
20928
20926
|
Ue,
|
|
20929
20927
|
Y,
|
|
@@ -20939,26 +20937,26 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20939
20937
|
};
|
|
20940
20938
|
}, [d]);
|
|
20941
20939
|
const je = () => {
|
|
20942
|
-
const
|
|
20943
|
-
|
|
20940
|
+
const Ee = (/* @__PURE__ */ new Date()).getTime();
|
|
20941
|
+
Ee - i.current < 300 && _ ? _() : m && m(), i.current = Ee;
|
|
20944
20942
|
}, be = () => {
|
|
20945
20943
|
!c && _ && _();
|
|
20946
20944
|
};
|
|
20947
|
-
return /* @__PURE__ */
|
|
20945
|
+
return /* @__PURE__ */ Ae.jsx(
|
|
20948
20946
|
vn,
|
|
20949
20947
|
{
|
|
20950
20948
|
...t,
|
|
20951
20949
|
ref: e,
|
|
20952
20950
|
isText: !0,
|
|
20953
20951
|
onDoubleClick: be,
|
|
20954
|
-
children: /* @__PURE__ */
|
|
20952
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: n, children: /* @__PURE__ */ Ae.jsx(wt, { alpha: 1, ref: u, children: /* @__PURE__ */ Ae.jsx(
|
|
20955
20953
|
iS,
|
|
20956
20954
|
{
|
|
20957
20955
|
style: He,
|
|
20958
20956
|
x: y,
|
|
20959
20957
|
y: b,
|
|
20960
20958
|
anchor: 0.5,
|
|
20961
|
-
text:
|
|
20959
|
+
text: g,
|
|
20962
20960
|
alpha: p ? 1 : 0,
|
|
20963
20961
|
...p && !c && {
|
|
20964
20962
|
interactive: !0,
|
|
@@ -21009,16 +21007,16 @@ function I5(t) {
|
|
|
21009
21007
|
}
|
|
21010
21008
|
var R5 = I5, P5 = $s, ic = p5, lm = R5, M5 = "Expected a function", O5 = Math.max, F5 = Math.min;
|
|
21011
21009
|
function N5(t, e, r) {
|
|
21012
|
-
var n, i, a, u, l, f, p = 0,
|
|
21010
|
+
var n, i, a, u, l, f, p = 0, g = !1, c = !1, d = !0;
|
|
21013
21011
|
if (typeof t != "function")
|
|
21014
21012
|
throw new TypeError(M5);
|
|
21015
|
-
e = lm(e) || 0, P5(r) && (
|
|
21016
|
-
function
|
|
21013
|
+
e = lm(e) || 0, P5(r) && (g = !!r.leading, c = "maxWait" in r, a = c ? O5(lm(r.maxWait) || 0, e) : a, d = "trailing" in r ? !!r.trailing : d);
|
|
21014
|
+
function m(F) {
|
|
21017
21015
|
var N = n, L = i;
|
|
21018
21016
|
return n = i = void 0, p = F, u = t.apply(L, N), u;
|
|
21019
21017
|
}
|
|
21020
21018
|
function _(F) {
|
|
21021
|
-
return p = F, l = setTimeout(x, e),
|
|
21019
|
+
return p = F, l = setTimeout(x, e), g ? m(F) : u;
|
|
21022
21020
|
}
|
|
21023
21021
|
function y(F) {
|
|
21024
21022
|
var N = F - f, L = F - p, D = e - N;
|
|
@@ -21035,7 +21033,7 @@ function N5(t, e, r) {
|
|
|
21035
21033
|
l = setTimeout(x, y(F));
|
|
21036
21034
|
}
|
|
21037
21035
|
function E(F) {
|
|
21038
|
-
return l = void 0, d && n ?
|
|
21036
|
+
return l = void 0, d && n ? m(F) : (n = i = void 0, u);
|
|
21039
21037
|
}
|
|
21040
21038
|
function w() {
|
|
21041
21039
|
l !== void 0 && clearTimeout(l), p = 0, n = f = i = l = void 0;
|
|
@@ -21049,7 +21047,7 @@ function N5(t, e, r) {
|
|
|
21049
21047
|
if (l === void 0)
|
|
21050
21048
|
return _(f);
|
|
21051
21049
|
if (c)
|
|
21052
|
-
return clearTimeout(l), l = setTimeout(x, e),
|
|
21050
|
+
return clearTimeout(l), l = setTimeout(x, e), m(f);
|
|
21053
21051
|
}
|
|
21054
21052
|
return l === void 0 && (l = setTimeout(x, e)), u;
|
|
21055
21053
|
}
|
|
@@ -21090,10 +21088,10 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21090
21088
|
isDragging: !1,
|
|
21091
21089
|
timeDiff: 0
|
|
21092
21090
|
}, D5 = te.forwardRef((t, e) => {
|
|
21093
|
-
const [r, n] = te.useState(0), [i, a] = te.useState(), u = pe(null), l = pe(null), f = pe(null), p = pe(k5),
|
|
21091
|
+
const [r, n] = te.useState(0), [i, a] = te.useState(), u = pe(null), l = pe(null), f = pe(null), p = pe(k5), g = pe(), {
|
|
21094
21092
|
uniqueId: c,
|
|
21095
21093
|
mute: d = !1,
|
|
21096
|
-
src:
|
|
21094
|
+
src: m,
|
|
21097
21095
|
startAt: _,
|
|
21098
21096
|
endAt: y,
|
|
21099
21097
|
frameStartAt: b,
|
|
@@ -21112,14 +21110,14 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21112
21110
|
temperatureFilter: he,
|
|
21113
21111
|
sharpnessFilter: me,
|
|
21114
21112
|
hueFilter: fe,
|
|
21115
|
-
blurFilter:
|
|
21113
|
+
blurFilter: Re,
|
|
21116
21114
|
adjustmentFilter: Ue,
|
|
21117
21115
|
vignetteFilter: He,
|
|
21118
21116
|
noiseFilter: je
|
|
21119
|
-
} = Qn(D), be =
|
|
21117
|
+
} = Qn(D), be = m || "", Ee = te.useMemo(() => {
|
|
21120
21118
|
const ce = document.createElement("video");
|
|
21121
|
-
return ce.src =
|
|
21122
|
-
}, [
|
|
21119
|
+
return ce.src = m, ce.crossOrigin = "Anonymus", ce.autoplay = !1, ce.currentTime = b === 0 ? 1e-3 : b, ce;
|
|
21120
|
+
}, [m, b]);
|
|
21123
21121
|
pt(Qe.PAUSE, () => {
|
|
21124
21122
|
f.current && (f.current.pause(), p.current.isPlaying = !1);
|
|
21125
21123
|
}), pt(Qe.SCRUBBER_CLICKED, () => {
|
|
@@ -21143,27 +21141,27 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21143
21141
|
if (f.current) {
|
|
21144
21142
|
if (f.current.currentTime = Number(ce), !ie.current) {
|
|
21145
21143
|
const Oe = f.current, Xt = Oe.currentTime > 0 && !Oe.paused && !Oe.ended && Oe.readyState > Oe.HAVE_CURRENT_DATA;
|
|
21146
|
-
G.current && G.current.isActive() &&
|
|
21144
|
+
G.current && G.current.isActive() && g.current && g.current.isActive() && (Xt || f.current.play(), p.current.isPlaying = !0, n((Bt) => Bt + 1));
|
|
21147
21145
|
}
|
|
21148
21146
|
p.current.progress = 0;
|
|
21149
21147
|
}
|
|
21150
|
-
},
|
|
21148
|
+
}, Se = () => {
|
|
21151
21149
|
if (f.current) {
|
|
21152
21150
|
const ce = f.current;
|
|
21153
|
-
ce.currentTime > 0 && !ce.paused && !ce.ended && ce.readyState > ce.HAVE_CURRENT_DATA && f.current.pause(), p.current.isPlaying = !1,
|
|
21151
|
+
ce.currentTime > 0 && !ce.paused && !ce.ended && ce.readyState > ce.HAVE_CURRENT_DATA && f.current.pause(), p.current.isPlaying = !1, g.current && (p.current.progress = g.current.progress());
|
|
21154
21152
|
}
|
|
21155
21153
|
}, _e = () => {
|
|
21156
21154
|
}, rt = () => {
|
|
21157
21155
|
var ce, Oe;
|
|
21158
|
-
if (
|
|
21159
|
-
const Xt = b + ((ce =
|
|
21156
|
+
if (g.current && (p.current.progress = g.current.progress()), f.current && g.current) {
|
|
21157
|
+
const Xt = b + ((ce = g == null ? void 0 : g.current) == null ? void 0 : ce.time()), Bt = Math.abs(
|
|
21160
21158
|
f.current.currentTime - Xt
|
|
21161
21159
|
), lt = f.current, tr = lt.currentTime > 0 && !lt.paused && !lt.ended && lt.readyState > lt.HAVE_CURRENT_DATA;
|
|
21162
21160
|
ie.current ? (f.current.currentTime = Xt, setTimeout(() => {
|
|
21163
21161
|
f.current && f.current.play().then(() => {
|
|
21164
21162
|
p.current.isPlaying = !1, f.current && f.current.pause();
|
|
21165
21163
|
});
|
|
21166
|
-
}, 100), p.current.isPlaying = !1) : (tr !== p.current.isPlaying || !tr) && p.current.progress > 0.01 && p.current.progress < 0.99 ? (Oe = G.current) != null && Oe.isActive() &&
|
|
21164
|
+
}, 100), p.current.isPlaying = !1) : (tr !== p.current.isPlaying || !tr) && p.current.progress > 0.01 && p.current.progress < 0.99 ? (Oe = G.current) != null && Oe.isActive() && g.current && g.current.isActive() && (tr || f.current.play(), p.current.isPlaying = !0) : Bt > 0.3 && p.current.progress > 0.01 && p.current.progress < 0.99 && (f.current.currentTime = Xt);
|
|
21167
21165
|
}
|
|
21168
21166
|
};
|
|
21169
21167
|
return mn(() => {
|
|
@@ -21173,7 +21171,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21173
21171
|
const Oe = {
|
|
21174
21172
|
duration: Number(x) - Number(b),
|
|
21175
21173
|
onStart: Ke,
|
|
21176
|
-
onComplete:
|
|
21174
|
+
onComplete: Se,
|
|
21177
21175
|
onStartParams: [b, x],
|
|
21178
21176
|
onCompleteParams: [],
|
|
21179
21177
|
onInterrupt: _e,
|
|
@@ -21196,16 +21194,16 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21196
21194
|
}
|
|
21197
21195
|
};
|
|
21198
21196
|
ce = J.context(() => {
|
|
21199
|
-
|
|
21197
|
+
g.current = J.from(
|
|
21200
21198
|
l.current,
|
|
21201
21199
|
// @ts-ignore
|
|
21202
21200
|
Oe,
|
|
21203
21201
|
b
|
|
21204
|
-
), G.current.add(
|
|
21202
|
+
), G.current.add(g.current, _);
|
|
21205
21203
|
});
|
|
21206
21204
|
}
|
|
21207
21205
|
return () => {
|
|
21208
|
-
|
|
21206
|
+
g.current && (g.current.kill(), J.killTweensOf(g.current)), ce.revert();
|
|
21209
21207
|
};
|
|
21210
21208
|
}, [L, _, y, b, x]), te.useEffect(() => {
|
|
21211
21209
|
f.current && (f.current.muted = d);
|
|
@@ -21225,7 +21223,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21225
21223
|
}, tr = function() {
|
|
21226
21224
|
p.current.isWaiting = !1, p.current.isStalled = !0;
|
|
21227
21225
|
}, Jn = Math.round((Number(b) + Number.EPSILON) * 100) / 100, eu = Math.round((Number(x) + Number.EPSILON) * 100) / 100, bn = `${be}#t=${Jn},${eu}`;
|
|
21228
|
-
return er.Texture.fromLoader(
|
|
21226
|
+
return er.Texture.fromLoader(Ee, bn, c, {
|
|
21229
21227
|
pixiIdPrefix: c,
|
|
21230
21228
|
resourceOptions: {
|
|
21231
21229
|
autoPlay: !1,
|
|
@@ -21240,9 +21238,9 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21240
21238
|
lt
|
|
21241
21239
|
), f.current.removeEventListener("stalled", tr));
|
|
21242
21240
|
};
|
|
21243
|
-
}, [be, c, b, x,
|
|
21241
|
+
}, [be, c, b, x, Ee]), te.useEffect(() => {
|
|
21244
21242
|
const ce = setTimeout(() => {
|
|
21245
|
-
i &&
|
|
21243
|
+
i && g.current && G.current && g.current.progress() < 0.1 && f.current && !g.current.isActive() && !re && f.current.play().then(() => {
|
|
21246
21244
|
p.current.isPlaying = !1, f.current && f.current.pause();
|
|
21247
21245
|
});
|
|
21248
21246
|
}, 30);
|
|
@@ -21255,13 +21253,13 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21255
21253
|
if (i && G.current && r > 0 && !re) {
|
|
21256
21254
|
G.current.isActive() || (p.current.isPlaying = !1, f.current && f.current.pause());
|
|
21257
21255
|
const Oe = f.current;
|
|
21258
|
-
Oe && G.current.isActive() &&
|
|
21256
|
+
Oe && G.current.isActive() && g.current && g.current.isActive() && (Oe.currentTime > 0 && !Oe.paused && !Oe.ended && Oe.readyState > Oe.HAVE_CURRENT_DATA || f.current.play(), p.current.isPlaying = !0);
|
|
21259
21257
|
}
|
|
21260
21258
|
}, 10);
|
|
21261
21259
|
return () => {
|
|
21262
21260
|
clearTimeout(ce);
|
|
21263
21261
|
};
|
|
21264
|
-
}, [r, i]), /* @__PURE__ */
|
|
21262
|
+
}, [r, i]), /* @__PURE__ */ Ae.jsx(
|
|
21265
21263
|
vn,
|
|
21266
21264
|
{
|
|
21267
21265
|
...t,
|
|
@@ -21270,7 +21268,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21270
21268
|
pointerdown: H,
|
|
21271
21269
|
pointerover: ge,
|
|
21272
21270
|
pointerout: Q,
|
|
21273
|
-
children: /* @__PURE__ */
|
|
21271
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: l, children: i && /* @__PURE__ */ Ae.jsx(
|
|
21274
21272
|
Bs,
|
|
21275
21273
|
{
|
|
21276
21274
|
texture: i,
|
|
@@ -21288,7 +21286,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21288
21286
|
fe,
|
|
21289
21287
|
Ue,
|
|
21290
21288
|
// conditionally add blur filter
|
|
21291
|
-
...W > 0 ? [
|
|
21289
|
+
...W > 0 ? [Re] : [],
|
|
21292
21290
|
// conditionally add vignette filter
|
|
21293
21291
|
...j > 0 ? [He] : [],
|
|
21294
21292
|
// conditionally add noise filter
|
|
@@ -21307,15 +21305,15 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21307
21305
|
const [r, n] = te.useState(), i = pe(null), a = pe(null), {
|
|
21308
21306
|
visible: u,
|
|
21309
21307
|
disabled: l,
|
|
21310
|
-
transformation: { x: f, y: p, width:
|
|
21311
|
-
pointerdown:
|
|
21308
|
+
transformation: { x: f, y: p, width: g, height: c, colorCorrection: d = {} },
|
|
21309
|
+
pointerdown: m = () => {
|
|
21312
21310
|
},
|
|
21313
21311
|
pointerout: _ = () => {
|
|
21314
21312
|
},
|
|
21315
21313
|
pointerover: y = () => {
|
|
21316
21314
|
},
|
|
21317
21315
|
canvasImageRef: b
|
|
21318
|
-
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y,
|
|
21316
|
+
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y, m, _, 1), { blurRadius: F = 0, vignette: N = 0, noise: L = 0 } = d, {
|
|
21319
21317
|
temperatureFilter: D,
|
|
21320
21318
|
sharpnessFilter: V,
|
|
21321
21319
|
hueFilter: Y,
|
|
@@ -21334,7 +21332,7 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21334
21332
|
const re = er.Texture.from(x);
|
|
21335
21333
|
n(re);
|
|
21336
21334
|
}
|
|
21337
|
-
}, [x]), /* @__PURE__ */
|
|
21335
|
+
}, [x]), /* @__PURE__ */ Ae.jsx(
|
|
21338
21336
|
vn,
|
|
21339
21337
|
{
|
|
21340
21338
|
...t,
|
|
@@ -21343,18 +21341,18 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21343
21341
|
pointerdown: w,
|
|
21344
21342
|
pointerover: O,
|
|
21345
21343
|
pointerout: I,
|
|
21346
|
-
children: /* @__PURE__ */
|
|
21344
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, children: r && /* @__PURE__ */ Ae.jsx(
|
|
21347
21345
|
Bs,
|
|
21348
21346
|
{
|
|
21349
21347
|
texture: r,
|
|
21350
|
-
width:
|
|
21348
|
+
width: g,
|
|
21351
21349
|
height: c,
|
|
21352
21350
|
anchor: 0.5,
|
|
21353
21351
|
x: f,
|
|
21354
21352
|
y: p,
|
|
21355
21353
|
ref: i,
|
|
21356
21354
|
alpha: u ? 1 : 0,
|
|
21357
|
-
...!l && u && { interactive: !0, pointerdown:
|
|
21355
|
+
...!l && u && { interactive: !0, pointerdown: m },
|
|
21358
21356
|
filters: [
|
|
21359
21357
|
D,
|
|
21360
21358
|
V,
|
|
@@ -21374,9 +21372,9 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21374
21372
|
}), pU = (t) => {
|
|
21375
21373
|
const { startAt: e, endAt: r, uniqueId: n } = t, i = pe(null), a = pe(null), u = pe(null), l = pe(null), f = pe(!1), {
|
|
21376
21374
|
tl: p,
|
|
21377
|
-
totalDuration:
|
|
21375
|
+
totalDuration: g = 0,
|
|
21378
21376
|
reverseModeRef: c
|
|
21379
|
-
} = Gi(Yn), d = e < 0.2 ? "static" : "none",
|
|
21377
|
+
} = Gi(Yn), d = e < 0.2 ? "static" : "none", m = pe(1);
|
|
21380
21378
|
pt(Qe.COMPLETE, () => {
|
|
21381
21379
|
i.current && (i.current.eventMode = d);
|
|
21382
21380
|
}), pt(Qe.REVERSE_MODE_END, () => {
|
|
@@ -21404,11 +21402,11 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21404
21402
|
alpha: 1,
|
|
21405
21403
|
duration: Number(r) - Number(e),
|
|
21406
21404
|
onStart: () => {
|
|
21407
|
-
i.current && (i.current.alpha = 1, i.current.eventMode = "static",
|
|
21405
|
+
i.current && (i.current.alpha = 1, i.current.eventMode = "static", m.current = 1);
|
|
21408
21406
|
},
|
|
21409
21407
|
onUpdate: _,
|
|
21410
21408
|
onComplete: () => {
|
|
21411
|
-
i.current && (i.current.alpha = 0, i.current.eventMode = "none",
|
|
21409
|
+
i.current && (i.current.alpha = 0, i.current.eventMode = "none", m.current = 0);
|
|
21412
21410
|
}
|
|
21413
21411
|
}), p.current.add([b, l.current], e);
|
|
21414
21412
|
}
|
|
@@ -21416,13 +21414,13 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21416
21414
|
return () => {
|
|
21417
21415
|
l.current && (p.current.remove(l.current), l.current.progress(0).kill()), y.revert();
|
|
21418
21416
|
};
|
|
21419
|
-
}, [e, r,
|
|
21417
|
+
}, [e, r, g, n]), /* @__PURE__ */ Ae.jsx(
|
|
21420
21418
|
wt,
|
|
21421
21419
|
{
|
|
21422
21420
|
ref: i,
|
|
21423
21421
|
alpha: e < 0.2 ? 1 : 0,
|
|
21424
21422
|
eventMode: e < 0.2 ? "static" : "none",
|
|
21425
|
-
children: /* @__PURE__ */
|
|
21423
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: u, children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, alpha: 1, children: t.children }) })
|
|
21426
21424
|
}
|
|
21427
21425
|
);
|
|
21428
21426
|
}, gU = (t) => {
|
|
@@ -21434,15 +21432,15 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21434
21432
|
const [r, n] = te.useState(), i = pe(null), a = pe(null), {
|
|
21435
21433
|
visible: u,
|
|
21436
21434
|
disabled: l,
|
|
21437
|
-
transformation: { x: f, y: p, width:
|
|
21438
|
-
pointerdown:
|
|
21435
|
+
transformation: { x: f, y: p, width: g, height: c, colorCorrection: d = {} },
|
|
21436
|
+
pointerdown: m = () => {
|
|
21439
21437
|
},
|
|
21440
21438
|
pointerout: _ = () => {
|
|
21441
21439
|
},
|
|
21442
21440
|
pointerover: y = () => {
|
|
21443
21441
|
},
|
|
21444
21442
|
canvasImageRef: b
|
|
21445
|
-
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y,
|
|
21443
|
+
} = t, x = b && (b == null ? void 0 : b.getCanvas()), E = zc(), { onPointerDown: w, onPointerOut: I, onPointerOver: O } = Th(y, m, _, 1), { blurRadius: F = 0, vignette: N = 0, noise: L = 0 } = d, {
|
|
21446
21444
|
temperatureFilter: D,
|
|
21447
21445
|
sharpnessFilter: V,
|
|
21448
21446
|
hueFilter: Y,
|
|
@@ -21461,7 +21459,7 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21461
21459
|
const re = er.Texture.from(x);
|
|
21462
21460
|
n(re);
|
|
21463
21461
|
}
|
|
21464
|
-
}, [x]), /* @__PURE__ */
|
|
21462
|
+
}, [x]), /* @__PURE__ */ Ae.jsx(
|
|
21465
21463
|
vn,
|
|
21466
21464
|
{
|
|
21467
21465
|
...t,
|
|
@@ -21470,18 +21468,18 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21470
21468
|
pointerdown: w,
|
|
21471
21469
|
pointerover: O,
|
|
21472
21470
|
pointerout: I,
|
|
21473
|
-
children: /* @__PURE__ */
|
|
21471
|
+
children: /* @__PURE__ */ Ae.jsx(wt, { ref: a, children: r && /* @__PURE__ */ Ae.jsx(
|
|
21474
21472
|
Bs,
|
|
21475
21473
|
{
|
|
21476
21474
|
texture: r,
|
|
21477
|
-
width:
|
|
21475
|
+
width: g,
|
|
21478
21476
|
height: c,
|
|
21479
21477
|
anchor: 0.5,
|
|
21480
21478
|
x: f,
|
|
21481
21479
|
y: p,
|
|
21482
21480
|
ref: i,
|
|
21483
21481
|
alpha: u ? 1 : 0,
|
|
21484
|
-
...!l && u && { interactive: !0, pointerdown:
|
|
21482
|
+
...!l && u && { interactive: !0, pointerdown: m },
|
|
21485
21483
|
filters: [
|
|
21486
21484
|
D,
|
|
21487
21485
|
V,
|