reacthub-pixitweenjs 0.2.107-alpha.37 → 0.2.107-alpha.38
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 +909 -907
- 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 Ee = 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 m = 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(), m();
|
|
136
136
|
}).eventCallback("onUpdate", function() {
|
|
137
|
-
|
|
137
|
+
m();
|
|
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"), m();
|
|
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
|
+
}, []), g = 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__ */ Ee.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: g,
|
|
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"), m = er.utils.string2hex("#F3C409"), c = te.useRef({
|
|
223
223
|
isDragging: !1
|
|
224
|
-
}), d = 300,
|
|
224
|
+
}), d = 300, g = 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 - g.current < d && u && u(), g.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__ */ Ee.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: m },
|
|
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__ */ Ee.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), m = a.get(e);
|
|
721
|
+
if (p && m)
|
|
722
|
+
return p == e && m == t;
|
|
723
|
+
var c = -1, d = !0, g = 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 (g) {
|
|
735
735
|
if (!dI(e, function(x, E) {
|
|
736
|
-
if (!pI(
|
|
737
|
-
return
|
|
736
|
+
if (!pI(g, E) && (_ === x || i(_, x, r, n, a)))
|
|
737
|
+
return g.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 m = EI(l(t), l(e), n, i, a, u);
|
|
792
|
+
return u.delete(t), m;
|
|
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), m = p.length;
|
|
859
|
+
if (f != m && !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 g = a.get(t), _ = a.get(e);
|
|
867
|
+
if (g && _)
|
|
868
|
+
return g == 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 m = 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, m = !1;
|
|
897
897
|
}
|
|
898
|
-
if (d && !
|
|
898
|
+
if (d && !m)
|
|
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 g = m && Ap.call(t, "__wrapped__"), _ = c && Ap.call(e, "__wrapped__");
|
|
902
|
+
if (g || _) {
|
|
903
|
+
var y = g ? 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, m, c, d; --l > -1; )
|
|
943
|
+
for (f = t[l], p = f.length, m = 0; m < p; m += 2)
|
|
944
|
+
c = f[m], d = f[m + 1], f[m] = c * e + d * n + a, f[m + 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, m = ka(p), c = La(p), d = Math.PI, g = d * 2, _ = (t - l) / 2, y = (e - f) / 2, b = m * _ + c * y, x = -c * _ + m * 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 + (m * D - c * V), G = se + (c * D + m * 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 -= g : u && j < 0 && (j += g), W %= g, j %= g;
|
|
956
|
+
var le = Math.ceil(xs(j) / (g / 4)), he = [], me = j / le, fe = 4 / 3 * La(me / 2) / (1 + ka(me / 2)), we = m * r, Ue = c * r, He = c * -n, je = m * 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 * we + 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, m, c, d, g, _, 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 = g, isNaN(e[p]) ? (g = e[p].toUpperCase(), _ = g !== e[p]) : p--, c = +e[p + 1], d = +e[p + 2], _ && (c += n, d += i), p || (b = c, x = d), g === "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, g = "L";
|
|
976
|
+
else if (g === "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 (g === "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 (g === "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 (g === "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 (g === "H")
|
|
985
985
|
L(n, i, n = c, i), p += 1;
|
|
986
|
-
else if (
|
|
986
|
+
else if (g === "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 (g === "L" || g === "Z")
|
|
989
|
+
g === "Z" && (c = b, d = x, y.closed = !0), (g === "L" || xs(n - c) > 0.5 || xs(i - d) > 0.5) && (L(n, i, c, d), g === "L" && (p += 2)), n = c, i = d;
|
|
990
|
+
else if (g === "A") {
|
|
991
|
+
if (F = e[p + 4], N = e[p + 5], E = e[p + 6], w = e[p + 7], m = 7, F.length > 1 && (F.length < 3 ? (w = E, E = N, m--) : (w = N, E = F.substr(2), m -= 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 += m, I)
|
|
992
|
+
for (m = 0; m < I.length; m++)
|
|
993
|
+
y.push(I[m]);
|
|
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, m, c) {
|
|
1035
|
+
var d = (e + n) / 2, g = (r + i) / 2, _ = (n + a) / 2, y = (i + u) / 2, b = (a + l) / 2, x = (u + f) / 2, E = (d + _) / 2, w = (g + 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 m || (m = [{
|
|
1037
1037
|
x: e,
|
|
1038
1038
|
y: r
|
|
1039
1039
|
}, {
|
|
1040
1040
|
x: l,
|
|
1041
1041
|
y: f
|
|
1042
|
-
}], c = 1),
|
|
1042
|
+
}], c = 1), m.splice(c || m.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 = m.length, t(e, r, d, g, E, w, F, N, p, m, c), t(F, N, I, O, b, x, l, f, p, m, c + 1 + (m.length - se))), m;
|
|
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, m = p <= 1, c, d, g, _, 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
|
+
}, g = {
|
|
1063
1063
|
x: +a[_ + 4],
|
|
1064
1064
|
y: +a[_ + 5]
|
|
1065
|
-
}, l.push(d,
|
|
1065
|
+
}, l.push(d, g), uP(d.x, d.y, +a[_], +a[_ + 1], +a[_ + 2], +a[_ + 3], g.x, g.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, m && _ > 1 && Math.abs(E.cy / E.cx - l[_ - 2].cy / l[_ - 2].cx) > 2 && (m = 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), m = 0)))) : (l.splice(_--, 1), c--);
|
|
1068
|
+
if (c = 1 / u + 1 | 0, y = 1 / c, b = 0, x = l[0], m) {
|
|
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], m, c, d, g, _, 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
|
+
m = rP(JR([n.segment], a, 0, 0, -u, l, f));
|
|
1100
1100
|
else {
|
|
1101
|
-
for (
|
|
1102
|
-
_ = Da(l + d *
|
|
1103
|
-
|
|
1101
|
+
for (m = [l, f], b = Math.max(5, (i.precision || 1) * 200), g = 1 / b, b += 2, x = 5 / b, E = Da(l + g * a), w = Da(f + n(g) * -u), c = (w - f) / (E - l), d = 2; d < b; d++)
|
|
1102
|
+
_ = Da(l + d * g * a), y = Da(f + n(d * g) * -u), (Math.abs((y - w) / (_ - E) - c) > x || d === b - 1) && (m.push(E, w), c = (y - w) / (_ - E)), E = _, w = y;
|
|
1103
|
+
m = "M" + m.join(",");
|
|
1104
1104
|
}
|
|
1105
|
-
return p && p.setAttribute("d",
|
|
1105
|
+
return p && p.setAttribute("d", m), m;
|
|
1106
1106
|
}, t;
|
|
1107
1107
|
}();
|
|
1108
1108
|
Pm() && Vt.registerPlugin(zs);
|
|
@@ -1356,7 +1356,7 @@ function lP(t, e, r) {
|
|
|
1356
1356
|
}
|
|
1357
1357
|
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 || {});
|
|
1358
1358
|
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) => {
|
|
1359
|
-
const [r, n] = te.useState(!1), [i, a] = Fi(!1), [u, l] = Fi(!1), f = pe(null), p = pe(null),
|
|
1359
|
+
const [r, n] = te.useState(!1), [i, a] = Fi(!1), [u, l] = Fi(!1), f = pe(null), p = pe(null), m = pe(null), c = pe(null), d = pe(null), { tl: g } = Gi(Yn), {
|
|
1360
1360
|
uniqueId: _,
|
|
1361
1361
|
visible: y,
|
|
1362
1362
|
startAt: b,
|
|
@@ -1399,13 +1399,15 @@ const cP = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], vn = te
|
|
|
1399
1399
|
), te.useEffect(() => {
|
|
1400
1400
|
f.current && n(!0);
|
|
1401
1401
|
}, []), te.useEffect(() => {
|
|
1402
|
-
if (
|
|
1403
|
-
console.log("running rect effect",
|
|
1404
|
-
const fe =
|
|
1405
|
-
d.current &&
|
|
1402
|
+
if (g.current) {
|
|
1403
|
+
console.log("running rect effect", g.current.progress());
|
|
1404
|
+
const fe = g.current.progress();
|
|
1405
|
+
d.current && g.current.remove(d.current), g.current.add(W, b);
|
|
1406
|
+
const we = fe * W.totalDuration();
|
|
1407
|
+
console.log("setting up the progress", we), W.seek(we), d.current = W;
|
|
1406
1408
|
}
|
|
1407
1409
|
return () => {
|
|
1408
|
-
|
|
1410
|
+
g.current && (g.current.remove(W), W.progress(0).kill());
|
|
1409
1411
|
};
|
|
1410
1412
|
}, [b, , W]);
|
|
1411
1413
|
const j = te.useCallback(() => {
|
|
@@ -1420,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
|
|
|
1420
1422
|
), me = rS(wt, {
|
|
1421
1423
|
matrix: er.filters.ColorMatrixFilter
|
|
1422
1424
|
});
|
|
1423
|
-
return /* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
+
return /* @__PURE__ */ Ee.jsxs(wt, { ref: p, children: [
|
|
1426
|
+
/* @__PURE__ */ Ee.jsxs(
|
|
1425
1427
|
wt,
|
|
1426
1428
|
{
|
|
1427
1429
|
ref: f,
|
|
@@ -1439,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
|
|
|
1439
1441
|
pointerout: X
|
|
1440
1442
|
},
|
|
1441
1443
|
children: [
|
|
1442
|
-
!H && /* @__PURE__ */
|
|
1444
|
+
!H && /* @__PURE__ */ Ee.jsx(
|
|
1443
1445
|
me,
|
|
1444
1446
|
{
|
|
1445
1447
|
scale: 1,
|
|
@@ -1451,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
|
|
|
1451
1453
|
// @ts-ignore
|
|
1452
1454
|
matrix: cP
|
|
1453
1455
|
},
|
|
1454
|
-
children: /* @__PURE__ */
|
|
1456
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: m, children: t.children })
|
|
1455
1457
|
}
|
|
1456
1458
|
),
|
|
1457
|
-
H && /* @__PURE__ */
|
|
1458
|
-
!Hs(L) && L !== cc.NONE && L !== cc.NORMAL && /* @__PURE__ */
|
|
1459
|
+
H && /* @__PURE__ */ Ee.jsx(wt, { ref: m, children: t.children }),
|
|
1460
|
+
!Hs(L) && L !== cc.NONE && L !== cc.NORMAL && /* @__PURE__ */ Ee.jsx(
|
|
1459
1461
|
lC,
|
|
1460
1462
|
{
|
|
1461
1463
|
overlay: L,
|
|
@@ -1468,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
|
|
|
1468
1470
|
]
|
|
1469
1471
|
}
|
|
1470
1472
|
),
|
|
1471
|
-
V && y && !ge && /* @__PURE__ */
|
|
1473
|
+
V && y && !ge && /* @__PURE__ */ Ee.jsx(
|
|
1472
1474
|
dS,
|
|
1473
1475
|
{
|
|
1474
1476
|
pixiTransformerRef: c,
|
|
@@ -1501,7 +1503,7 @@ const hP = {
|
|
|
1501
1503
|
getFontFaceSet: () => document.fonts,
|
|
1502
1504
|
fetch: (t, e) => fetch(t, e),
|
|
1503
1505
|
parseXML: (t) => new DOMParser().parseFromString(t, "text/xml")
|
|
1504
|
-
},
|
|
1506
|
+
}, Re = {
|
|
1505
1507
|
ADAPTER: hP,
|
|
1506
1508
|
RESOLUTION: 1,
|
|
1507
1509
|
CREATE_IMAGE_BITMAP: !1,
|
|
@@ -1570,22 +1572,22 @@ function $p(t) {
|
|
|
1570
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;
|
|
1571
1573
|
}
|
|
1572
1574
|
const dP = $p.default ?? $p, Ai = dP(globalThis.navigator);
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
+
Re.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
1576
|
+
Re.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = !1;
|
|
1575
1577
|
var Fm = { exports: {} };
|
|
1576
1578
|
(function(t) {
|
|
1577
1579
|
var e = Object.prototype.hasOwnProperty, r = "~";
|
|
1578
1580
|
function n() {
|
|
1579
1581
|
}
|
|
1580
1582
|
Object.create && (n.prototype = /* @__PURE__ */ Object.create(null), new n().__proto__ || (r = !1));
|
|
1581
|
-
function i(f, p,
|
|
1582
|
-
this.fn = f, this.context = p, this.once =
|
|
1583
|
+
function i(f, p, m) {
|
|
1584
|
+
this.fn = f, this.context = p, this.once = m || !1;
|
|
1583
1585
|
}
|
|
1584
|
-
function a(f, p,
|
|
1585
|
-
if (typeof
|
|
1586
|
+
function a(f, p, m, c, d) {
|
|
1587
|
+
if (typeof m != "function")
|
|
1586
1588
|
throw new TypeError("The listener must be a function");
|
|
1587
|
-
var
|
|
1588
|
-
return f._events[_] ? f._events[_].fn ? f._events[_] = [f._events[_],
|
|
1589
|
+
var g = new i(m, c || f, d), _ = r ? r + p : p;
|
|
1590
|
+
return f._events[_] ? f._events[_].fn ? f._events[_] = [f._events[_], g] : f._events[_].push(g) : (f._events[_] = g, f._eventsCount++), f;
|
|
1589
1591
|
}
|
|
1590
1592
|
function u(f, p) {
|
|
1591
1593
|
--f._eventsCount === 0 ? f._events = new n() : delete f._events[p];
|
|
@@ -1594,25 +1596,25 @@ var Fm = { exports: {} };
|
|
|
1594
1596
|
this._events = new n(), this._eventsCount = 0;
|
|
1595
1597
|
}
|
|
1596
1598
|
l.prototype.eventNames = function() {
|
|
1597
|
-
var p = [],
|
|
1599
|
+
var p = [], m, c;
|
|
1598
1600
|
if (this._eventsCount === 0)
|
|
1599
1601
|
return p;
|
|
1600
|
-
for (c in
|
|
1601
|
-
e.call(
|
|
1602
|
-
return Object.getOwnPropertySymbols ? p.concat(Object.getOwnPropertySymbols(
|
|
1602
|
+
for (c in m = this._events)
|
|
1603
|
+
e.call(m, c) && p.push(r ? c.slice(1) : c);
|
|
1604
|
+
return Object.getOwnPropertySymbols ? p.concat(Object.getOwnPropertySymbols(m)) : p;
|
|
1603
1605
|
}, l.prototype.listeners = function(p) {
|
|
1604
|
-
var
|
|
1606
|
+
var m = r ? r + p : p, c = this._events[m];
|
|
1605
1607
|
if (!c)
|
|
1606
1608
|
return [];
|
|
1607
1609
|
if (c.fn)
|
|
1608
1610
|
return [c.fn];
|
|
1609
|
-
for (var d = 0,
|
|
1611
|
+
for (var d = 0, g = c.length, _ = new Array(g); d < g; d++)
|
|
1610
1612
|
_[d] = c[d].fn;
|
|
1611
1613
|
return _;
|
|
1612
1614
|
}, l.prototype.listenerCount = function(p) {
|
|
1613
|
-
var
|
|
1615
|
+
var m = r ? r + p : p, c = this._events[m];
|
|
1614
1616
|
return c ? c.fn ? 1 : c.length : 0;
|
|
1615
|
-
}, l.prototype.emit = function(p,
|
|
1617
|
+
}, l.prototype.emit = function(p, m, c, d, g, _) {
|
|
1616
1618
|
var y = r ? r + p : p;
|
|
1617
1619
|
if (!this._events[y])
|
|
1618
1620
|
return !1;
|
|
@@ -1622,15 +1624,15 @@ var Fm = { exports: {} };
|
|
|
1622
1624
|
case 1:
|
|
1623
1625
|
return b.fn.call(b.context), !0;
|
|
1624
1626
|
case 2:
|
|
1625
|
-
return b.fn.call(b.context,
|
|
1627
|
+
return b.fn.call(b.context, m), !0;
|
|
1626
1628
|
case 3:
|
|
1627
|
-
return b.fn.call(b.context,
|
|
1629
|
+
return b.fn.call(b.context, m, c), !0;
|
|
1628
1630
|
case 4:
|
|
1629
|
-
return b.fn.call(b.context,
|
|
1631
|
+
return b.fn.call(b.context, m, c, d), !0;
|
|
1630
1632
|
case 5:
|
|
1631
|
-
return b.fn.call(b.context,
|
|
1633
|
+
return b.fn.call(b.context, m, c, d, g), !0;
|
|
1632
1634
|
case 6:
|
|
1633
|
-
return b.fn.call(b.context,
|
|
1635
|
+
return b.fn.call(b.context, m, c, d, g, _), !0;
|
|
1634
1636
|
}
|
|
1635
1637
|
for (w = 1, E = new Array(x - 1); w < x; w++)
|
|
1636
1638
|
E[w - 1] = arguments[w];
|
|
@@ -1643,13 +1645,13 @@ var Fm = { exports: {} };
|
|
|
1643
1645
|
b[w].fn.call(b[w].context);
|
|
1644
1646
|
break;
|
|
1645
1647
|
case 2:
|
|
1646
|
-
b[w].fn.call(b[w].context,
|
|
1648
|
+
b[w].fn.call(b[w].context, m);
|
|
1647
1649
|
break;
|
|
1648
1650
|
case 3:
|
|
1649
|
-
b[w].fn.call(b[w].context,
|
|
1651
|
+
b[w].fn.call(b[w].context, m, c);
|
|
1650
1652
|
break;
|
|
1651
1653
|
case 4:
|
|
1652
|
-
b[w].fn.call(b[w].context,
|
|
1654
|
+
b[w].fn.call(b[w].context, m, c, d);
|
|
1653
1655
|
break;
|
|
1654
1656
|
default:
|
|
1655
1657
|
if (!E)
|
|
@@ -1659,28 +1661,28 @@ var Fm = { exports: {} };
|
|
|
1659
1661
|
}
|
|
1660
1662
|
}
|
|
1661
1663
|
return !0;
|
|
1662
|
-
}, l.prototype.on = function(p,
|
|
1663
|
-
return a(this, p,
|
|
1664
|
-
}, l.prototype.once = function(p,
|
|
1665
|
-
return a(this, p,
|
|
1666
|
-
}, l.prototype.removeListener = function(p,
|
|
1667
|
-
var
|
|
1668
|
-
if (!this._events[
|
|
1664
|
+
}, l.prototype.on = function(p, m, c) {
|
|
1665
|
+
return a(this, p, m, c, !1);
|
|
1666
|
+
}, l.prototype.once = function(p, m, c) {
|
|
1667
|
+
return a(this, p, m, c, !0);
|
|
1668
|
+
}, l.prototype.removeListener = function(p, m, c, d) {
|
|
1669
|
+
var g = r ? r + p : p;
|
|
1670
|
+
if (!this._events[g])
|
|
1669
1671
|
return this;
|
|
1670
|
-
if (!
|
|
1671
|
-
return u(this,
|
|
1672
|
-
var _ = this._events[
|
|
1672
|
+
if (!m)
|
|
1673
|
+
return u(this, g), this;
|
|
1674
|
+
var _ = this._events[g];
|
|
1673
1675
|
if (_.fn)
|
|
1674
|
-
_.fn ===
|
|
1676
|
+
_.fn === m && (!d || _.once) && (!c || _.context === c) && u(this, g);
|
|
1675
1677
|
else {
|
|
1676
1678
|
for (var y = 0, b = [], x = _.length; y < x; y++)
|
|
1677
|
-
(_[y].fn !==
|
|
1678
|
-
b.length ? this._events[
|
|
1679
|
+
(_[y].fn !== m || d && !_[y].once || c && _[y].context !== c) && b.push(_[y]);
|
|
1680
|
+
b.length ? this._events[g] = b.length === 1 ? b[0] : b : u(this, g);
|
|
1679
1681
|
}
|
|
1680
1682
|
return this;
|
|
1681
1683
|
}, l.prototype.removeAllListeners = function(p) {
|
|
1682
|
-
var
|
|
1683
|
-
return p ? (
|
|
1684
|
+
var m;
|
|
1685
|
+
return p ? (m = r ? r + p : p, this._events[m] && u(this, m)) : (this._events = new n(), this._eventsCount = 0), this;
|
|
1684
1686
|
}, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = r, l.EventEmitter = l, t.exports = l;
|
|
1685
1687
|
})(Fm);
|
|
1686
1688
|
var pP = Fm.exports;
|
|
@@ -1693,14 +1695,14 @@ function Do(t, e, r) {
|
|
|
1693
1695
|
var n = e && e.length, i = n ? e[0] * r : t.length, a = Nm(t, 0, i, r, !0), u = [];
|
|
1694
1696
|
if (!a || a.next === a.prev)
|
|
1695
1697
|
return u;
|
|
1696
|
-
var l, f, p,
|
|
1698
|
+
var l, f, p, m, c, d, g;
|
|
1697
1699
|
if (n && (a = yP(t, e, a, r)), t.length > 80 * r) {
|
|
1698
|
-
l = p = t[0], f =
|
|
1700
|
+
l = p = t[0], f = m = t[1];
|
|
1699
1701
|
for (var _ = r; _ < i; _ += r)
|
|
1700
|
-
c = t[_], d = t[_ + 1], c < l && (l = c), d < f && (f = d), c > p && (p = c), d >
|
|
1701
|
-
|
|
1702
|
+
c = t[_], d = t[_ + 1], c < l && (l = c), d < f && (f = d), c > p && (p = c), d > m && (m = d);
|
|
1703
|
+
g = Math.max(p - l, m - f), g = g !== 0 ? 32767 / g : 0;
|
|
1702
1704
|
}
|
|
1703
|
-
return Ps(a, u, r, l, f,
|
|
1705
|
+
return Ps(a, u, r, l, f, g, 0), u;
|
|
1704
1706
|
}
|
|
1705
1707
|
function Nm(t, e, r, n, i) {
|
|
1706
1708
|
var a, u;
|
|
@@ -1746,8 +1748,8 @@ function gP(t) {
|
|
|
1746
1748
|
var e = t.prev, r = t, n = t.next;
|
|
1747
1749
|
if (ot(e, r, n) >= 0)
|
|
1748
1750
|
return !1;
|
|
1749
|
-
for (var i = e.x, a = r.x, u = n.x, l = e.y, f = r.y, p = n.y,
|
|
1750
|
-
if (_.x >=
|
|
1751
|
+
for (var i = e.x, a = r.x, u = n.x, l = e.y, f = r.y, p = n.y, m = 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, g = l > f ? l > p ? l : p : f > p ? f : p, _ = n.next; _ !== e; ) {
|
|
1752
|
+
if (_.x >= m && _.x <= d && _.y >= c && _.y <= g && Ei(i, l, a, f, u, p, _.x, _.y) && ot(_.prev, _, _.next) >= 0)
|
|
1751
1753
|
return !1;
|
|
1752
1754
|
_ = _.next;
|
|
1753
1755
|
}
|
|
@@ -1757,18 +1759,18 @@ function mP(t, e, r, n) {
|
|
|
1757
1759
|
var i = t.prev, a = t, u = t.next;
|
|
1758
1760
|
if (ot(i, a, u) >= 0)
|
|
1759
1761
|
return !1;
|
|
1760
|
-
for (var l = i.x, f = a.x, p = u.x,
|
|
1761
|
-
if (w.x >=
|
|
1762
|
+
for (var l = i.x, f = a.x, p = u.x, m = i.y, c = a.y, d = u.y, g = l < f ? l < p ? l : p : f < p ? f : p, _ = m < c ? m < d ? m : d : c < d ? c : d, y = l > f ? l > p ? l : p : f > p ? f : p, b = m > c ? m > d ? m : d : c > d ? c : d, x = dc(g, _, 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 >= g && w.x <= y && w.y >= _ && w.y <= b && w !== i && w !== u && Ei(l, m, f, c, p, d, w.x, w.y) && ot(w.prev, w, w.next) >= 0 || (w = w.prevZ, I.x >= g && I.x <= y && I.y >= _ && I.y <= b && I !== i && I !== u && Ei(l, m, f, c, p, d, I.x, I.y) && ot(I.prev, I, I.next) >= 0))
|
|
1762
1764
|
return !1;
|
|
1763
1765
|
I = I.nextZ;
|
|
1764
1766
|
}
|
|
1765
1767
|
for (; w && w.z >= x; ) {
|
|
1766
|
-
if (w.x >=
|
|
1768
|
+
if (w.x >= g && w.x <= y && w.y >= _ && w.y <= b && w !== i && w !== u && Ei(l, m, f, c, p, d, w.x, w.y) && ot(w.prev, w, w.next) >= 0)
|
|
1767
1769
|
return !1;
|
|
1768
1770
|
w = w.prevZ;
|
|
1769
1771
|
}
|
|
1770
1772
|
for (; I && I.z <= E; ) {
|
|
1771
|
-
if (I.x >=
|
|
1773
|
+
if (I.x >= g && I.x <= y && I.y >= _ && I.y <= b && I !== i && I !== u && Ei(l, m, f, c, p, d, I.x, I.y) && ot(I.prev, I, I.next) >= 0)
|
|
1772
1774
|
return !1;
|
|
1773
1775
|
I = I.nextZ;
|
|
1774
1776
|
}
|
|
@@ -1826,10 +1828,10 @@ function TP(t, e) {
|
|
|
1826
1828
|
} while (r !== e);
|
|
1827
1829
|
if (!u)
|
|
1828
1830
|
return null;
|
|
1829
|
-
var f = u, p = u.x,
|
|
1831
|
+
var f = u, p = u.x, m = u.y, c = 1 / 0, d;
|
|
1830
1832
|
r = u;
|
|
1831
1833
|
do
|
|
1832
|
-
n >= r.x && r.x >= p && n !== r.x && Ei(i <
|
|
1834
|
+
n >= r.x && r.x >= p && n !== r.x && Ei(i < m ? n : a, i, p, m, i < m ? 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;
|
|
1833
1835
|
while (r !== f);
|
|
1834
1836
|
return u;
|
|
1835
1837
|
}
|
|
@@ -1929,14 +1931,14 @@ Do.deviation = function(t, e, r, n) {
|
|
|
1929
1931
|
var i = e && e.length, a = i ? e[0] * r : t.length, u = Math.abs(gc(t, 0, a, r));
|
|
1930
1932
|
if (i)
|
|
1931
1933
|
for (var l = 0, f = e.length; l < f; l++) {
|
|
1932
|
-
var p = e[l] * r,
|
|
1933
|
-
u -= Math.abs(gc(t, p,
|
|
1934
|
+
var p = e[l] * r, m = l < f - 1 ? e[l + 1] * r : t.length;
|
|
1935
|
+
u -= Math.abs(gc(t, p, m, r));
|
|
1934
1936
|
}
|
|
1935
1937
|
var c = 0;
|
|
1936
1938
|
for (l = 0; l < n.length; l += 3) {
|
|
1937
|
-
var d = n[l] * r,
|
|
1939
|
+
var d = n[l] * r, g = n[l + 1] * r, _ = n[l + 2] * r;
|
|
1938
1940
|
c += Math.abs(
|
|
1939
|
-
(t[d] - t[_]) * (t[
|
|
1941
|
+
(t[d] - t[_]) * (t[g + 1] - t[d + 1]) - (t[d] - t[g]) * (t[_ + 1] - t[d + 1])
|
|
1940
1942
|
);
|
|
1941
1943
|
}
|
|
1942
1944
|
return u === 0 && c === 0 ? 0 : Math.abs((c - u) / u);
|
|
@@ -1964,7 +1966,7 @@ vo.exports;
|
|
|
1964
1966
|
(function(r) {
|
|
1965
1967
|
var n = e && !e.nodeType && e, i = t && !t.nodeType && t, a = typeof Et == "object" && Et;
|
|
1966
1968
|
(a.global === a || a.window === a || a.self === a) && (r = a);
|
|
1967
|
-
var u, l = 2147483647, f = 36, p = 1,
|
|
1969
|
+
var u, l = 2147483647, f = 36, p = 1, m = 26, c = 38, d = 700, g = 72, _ = 128, y = "-", b = /^xn--/, x = /[^\x20-\x7E]/, E = /[\x2E\u3002\uFF0E\uFF61]/g, w = {
|
|
1968
1970
|
overflow: "Overflow: input needs wider integers to process",
|
|
1969
1971
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
1970
1972
|
"invalid-input": "Invalid input"
|
|
@@ -2002,35 +2004,35 @@ vo.exports;
|
|
|
2002
2004
|
}
|
|
2003
2005
|
function ie(W, j, le) {
|
|
2004
2006
|
var he = 0;
|
|
2005
|
-
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 * m >> 1; he += f)
|
|
2006
2008
|
W = O(W / I);
|
|
2007
2009
|
return O(he + (I + 1) * W / (W + c));
|
|
2008
2010
|
}
|
|
2009
2011
|
function re(W) {
|
|
2010
|
-
var j = [], le = W.length, he, me = 0, fe = _,
|
|
2012
|
+
var j = [], le = W.length, he, me = 0, fe = _, we = g, Ue, He, je, be, Ce, $e, Ke, Ae, _e;
|
|
2011
2013
|
for (Ue = W.lastIndexOf(y), Ue < 0 && (Ue = 0), He = 0; He < Ue; ++He)
|
|
2012
2014
|
W.charCodeAt(He) >= 128 && L("not-basic"), j.push(W.charCodeAt(He));
|
|
2013
2015
|
for (je = Ue > 0 ? Ue + 1 : 0; je < le; ) {
|
|
2014
|
-
for (be = me,
|
|
2015
|
-
_e = f -
|
|
2016
|
-
he = j.length + 1,
|
|
2016
|
+
for (be = me, Ce = 1, $e = f; je >= le && L("invalid-input"), Ke = X(W.charCodeAt(je++)), (Ke >= f || Ke > O((l - me) / Ce)) && L("overflow"), me += Ke * Ce, Ae = $e <= we ? p : $e >= we + m ? m : $e - we, !(Ke < Ae); $e += f)
|
|
2017
|
+
_e = f - Ae, Ce > O(l / _e) && L("overflow"), Ce *= _e;
|
|
2018
|
+
he = j.length + 1, we = ie(me - be, he, be == 0), O(me / he) > l - fe && L("overflow"), fe += O(me / he), me %= he, j.splice(me++, 0, fe);
|
|
2017
2019
|
}
|
|
2018
2020
|
return se(j);
|
|
2019
2021
|
}
|
|
2020
2022
|
function H(W) {
|
|
2021
|
-
var j, le, he, me, fe,
|
|
2022
|
-
for (W = Y(W), Ke = W.length, j = _, le = 0, fe =
|
|
2023
|
-
|
|
2023
|
+
var j, le, he, me, fe, we, Ue, He, je, be, Ce, $e = [], Ke, Ae, _e, rt;
|
|
2024
|
+
for (W = Y(W), Ke = W.length, j = _, le = 0, fe = g, we = 0; we < Ke; ++we)
|
|
2025
|
+
Ce = W[we], Ce < 128 && $e.push(F(Ce));
|
|
2024
2026
|
for (he = me = $e.length, me && $e.push(y); he < Ke; ) {
|
|
2025
|
-
for (Ue = l,
|
|
2026
|
-
|
|
2027
|
-
for (
|
|
2028
|
-
if (
|
|
2029
|
-
for (He = le, je = f; be = je <= fe ? p : je >= fe +
|
|
2027
|
+
for (Ue = l, we = 0; we < Ke; ++we)
|
|
2028
|
+
Ce = W[we], Ce >= j && Ce < Ue && (Ue = Ce);
|
|
2029
|
+
for (Ae = he + 1, Ue - j > O((l - le) / Ae) && L("overflow"), le += (Ue - j) * Ae, j = Ue, we = 0; we < Ke; ++we)
|
|
2030
|
+
if (Ce = W[we], Ce < j && ++le > l && L("overflow"), Ce == j) {
|
|
2031
|
+
for (He = le, je = f; be = je <= fe ? p : je >= fe + m ? m : je - fe, !(He < be); je += f)
|
|
2030
2032
|
rt = He - be, _e = f - be, $e.push(
|
|
2031
2033
|
F(G(be + rt % _e, 0))
|
|
2032
2034
|
), He = O(rt / _e);
|
|
2033
|
-
$e.push(F(G(He, 0))), fe = ie(le,
|
|
2035
|
+
$e.push(F(G(He, 0))), fe = ie(le, Ae, he == me), le = 0, ++he;
|
|
2034
2036
|
}
|
|
2035
2037
|
++le, ++j;
|
|
2036
2038
|
}
|
|
@@ -2113,11 +2115,11 @@ var OP = vo.exports, FP = function() {
|
|
|
2113
2115
|
throw new TypeError(BP + r);
|
|
2114
2116
|
for (var n = Cl.call(arguments, 1), i, a = function() {
|
|
2115
2117
|
if (this instanceof i) {
|
|
2116
|
-
var
|
|
2118
|
+
var m = r.apply(
|
|
2117
2119
|
this,
|
|
2118
2120
|
n.concat(Cl.call(arguments))
|
|
2119
2121
|
);
|
|
2120
|
-
return Object(
|
|
2122
|
+
return Object(m) === m ? m : this;
|
|
2121
2123
|
} else
|
|
2122
2124
|
return r.apply(
|
|
2123
2125
|
e,
|
|
@@ -2333,9 +2335,9 @@ var YP = function t(e) {
|
|
|
2333
2335
|
throw new Ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
2334
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;
|
|
2335
2337
|
p && (i = p[0], ZP(n, KP([0, 1], p)));
|
|
2336
|
-
for (var
|
|
2337
|
-
var d = n[
|
|
2338
|
-
if ((
|
|
2338
|
+
for (var m = 1, c = !0; m < n.length; m += 1) {
|
|
2339
|
+
var d = n[m], g = yo(d, 0, 1), _ = yo(d, -1);
|
|
2340
|
+
if ((g === '"' || g === "'" || g === "`" || _ === '"' || _ === "'" || _ === "`") && g !== _)
|
|
2339
2341
|
throw new Ni("property names with quotes must have matching quotes");
|
|
2340
2342
|
if ((d === "constructor" || !c) && (f = !0), i += "." + d, u = "%" + i + "%", _o(Vn, u))
|
|
2341
2343
|
l = Vn[u];
|
|
@@ -2345,7 +2347,7 @@ var YP = function t(e) {
|
|
|
2345
2347
|
throw new Ri("base intrinsic for " + e + " exists, but the property is not available.");
|
|
2346
2348
|
return;
|
|
2347
2349
|
}
|
|
2348
|
-
if (zn &&
|
|
2350
|
+
if (zn && m + 1 >= n.length) {
|
|
2349
2351
|
var y = zn(l, d);
|
|
2350
2352
|
c = !!y, c && "get" in y && !("originalValue" in y.get) ? l = y.get : l = l[d];
|
|
2351
2353
|
} else
|
|
@@ -2366,8 +2368,8 @@ var YP = function t(e) {
|
|
|
2366
2368
|
t.exports = function(c) {
|
|
2367
2369
|
var d = a(e, i, arguments);
|
|
2368
2370
|
if (u && l) {
|
|
2369
|
-
var
|
|
2370
|
-
|
|
2371
|
+
var g = u(d, "length");
|
|
2372
|
+
g.configurable && l(
|
|
2371
2373
|
d,
|
|
2372
2374
|
"length",
|
|
2373
2375
|
{ value: 1 + f(0, c.length - (arguments.length - 1)) }
|
|
@@ -2436,8 +2438,8 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2436
2438
|
var p = String(e) + "n";
|
|
2437
2439
|
return l ? Jp(e, p) : p;
|
|
2438
2440
|
}
|
|
2439
|
-
var
|
|
2440
|
-
if (typeof n > "u" && (n = 0), n >=
|
|
2441
|
+
var m = typeof a.depth > "u" ? 5 : a.depth;
|
|
2442
|
+
if (typeof n > "u" && (n = 0), n >= m && m > 0 && typeof e == "object")
|
|
2441
2443
|
return yc(e) ? "[Array]" : "[Object]";
|
|
2442
2444
|
var c = kM(a, n);
|
|
2443
2445
|
if (typeof i > "u")
|
|
@@ -2454,8 +2456,8 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2454
2456
|
return t(X, a, n + 1, i);
|
|
2455
2457
|
}
|
|
2456
2458
|
if (typeof e == "function" && !rg(e)) {
|
|
2457
|
-
var
|
|
2458
|
-
return "[Function" + (
|
|
2459
|
+
var g = CM(e), _ = Ga(e, d);
|
|
2460
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (_.length > 0 ? " { " + Nr.call(_, ", ") + " }" : "");
|
|
2459
2461
|
}
|
|
2460
2462
|
if (Vm(e)) {
|
|
2461
2463
|
var y = Li ? pn.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : vc.call(e);
|
|
@@ -2478,7 +2480,7 @@ var _c = uM, eg = _c.custom, tg = Vm(eg) ? eg : null, _M = function t(e, r, n, i
|
|
|
2478
2480
|
}
|
|
2479
2481
|
if (typeof e == "object" && u) {
|
|
2480
2482
|
if (tg && typeof e[tg] == "function" && _c)
|
|
2481
|
-
return _c(e, { depth:
|
|
2483
|
+
return _c(e, { depth: m - n });
|
|
2482
2484
|
if (u !== "symbol" && typeof e.inspect == "function")
|
|
2483
2485
|
return e.inspect();
|
|
2484
2486
|
}
|
|
@@ -2859,8 +2861,8 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2859
2861
|
return e;
|
|
2860
2862
|
var u = e;
|
|
2861
2863
|
if (typeof e == "symbol" ? u = Symbol.prototype.toString.call(e) : typeof e != "string" && (u = String(e)), n === "iso-8859-1")
|
|
2862
|
-
return escape(u).replace(/%u[0-9a-f]{4}/gi, function(
|
|
2863
|
-
return "%26%23" + parseInt(
|
|
2864
|
+
return escape(u).replace(/%u[0-9a-f]{4}/gi, function(m) {
|
|
2865
|
+
return "%26%23" + parseInt(m.slice(2), 16) + "%3B";
|
|
2864
2866
|
});
|
|
2865
2867
|
for (var l = "", f = 0; f < u.length; ++f) {
|
|
2866
2868
|
var p = u.charCodeAt(f);
|
|
@@ -2886,8 +2888,8 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2886
2888
|
}, nO = function(e) {
|
|
2887
2889
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], i = 0; i < r.length; ++i)
|
|
2888
2890
|
for (var a = r[i], u = a.obj[a.prop], l = Object.keys(u), f = 0; f < l.length; ++f) {
|
|
2889
|
-
var p = l[f],
|
|
2890
|
-
typeof
|
|
2891
|
+
var p = l[f], m = u[p];
|
|
2892
|
+
typeof m == "object" && m !== null && n.indexOf(m) === -1 && (r.push({ obj: u, prop: p }), n.push(m));
|
|
2891
2893
|
}
|
|
2892
2894
|
return QM(r), e;
|
|
2893
2895
|
}, iO = function(e) {
|
|
@@ -2947,7 +2949,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2947
2949
|
strictNullHandling: !1
|
|
2948
2950
|
}, hO = function(e) {
|
|
2949
2951
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
2950
|
-
}, 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, m, c, d, g, _, y, b) {
|
|
2951
2953
|
for (var x = e, E = b, w = 0, I = !1; (E = E.get(kl)) !== void 0 && !I; ) {
|
|
2952
2954
|
var O = E.get(e);
|
|
2953
2955
|
if (w += 1, typeof O < "u") {
|
|
@@ -2967,9 +2969,9 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2967
2969
|
if (hO(x) || ro.isBuffer(x)) {
|
|
2968
2970
|
if (l) {
|
|
2969
2971
|
var F = _ ? r : l(r, Pt.encoder, y, "key", d);
|
|
2970
|
-
return [
|
|
2972
|
+
return [g(F) + "=" + g(l(x, Pt.encoder, y, "value", d))];
|
|
2971
2973
|
}
|
|
2972
|
-
return [
|
|
2974
|
+
return [g(r) + "=" + g(String(x))];
|
|
2973
2975
|
}
|
|
2974
2976
|
var N = [];
|
|
2975
2977
|
if (typeof x > "u")
|
|
@@ -2986,7 +2988,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2986
2988
|
for (var V = i && Zr(x) && x.length === 1 ? r + "[]" : r, Y = 0; Y < L.length; ++Y) {
|
|
2987
2989
|
var se = L[Y], X = typeof se == "object" && typeof se.value < "u" ? se.value : x[se];
|
|
2988
2990
|
if (!(u && X === null)) {
|
|
2989
|
-
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 + (m ? "." + se : "[" + se + "]");
|
|
2990
2992
|
b.set(e, w);
|
|
2991
2993
|
var ie = Ym();
|
|
2992
2994
|
ie.set(kl, b), Km(N, t(
|
|
@@ -2999,10 +3001,10 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
2999
3001
|
n === "comma" && _ && Zr(x) ? null : l,
|
|
3000
3002
|
f,
|
|
3001
3003
|
p,
|
|
3002
|
-
|
|
3004
|
+
m,
|
|
3003
3005
|
c,
|
|
3004
3006
|
d,
|
|
3005
|
-
|
|
3007
|
+
g,
|
|
3006
3008
|
_,
|
|
3007
3009
|
y,
|
|
3008
3010
|
ie
|
|
@@ -3055,7 +3057,7 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3055
3057
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
3056
3058
|
var p = f === "comma" && e && e.commaRoundTrip;
|
|
3057
3059
|
i || (i = Object.keys(r)), n.sort && i.sort(n.sort);
|
|
3058
|
-
for (var
|
|
3060
|
+
for (var m = Ym(), c = 0; c < i.length; ++c) {
|
|
3059
3061
|
var d = i[c];
|
|
3060
3062
|
n.skipNulls && r[d] === null || Km(u, fO(
|
|
3061
3063
|
r[d],
|
|
@@ -3073,11 +3075,11 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3073
3075
|
n.formatter,
|
|
3074
3076
|
n.encodeValuesOnly,
|
|
3075
3077
|
n.charset,
|
|
3076
|
-
|
|
3078
|
+
m
|
|
3077
3079
|
));
|
|
3078
3080
|
}
|
|
3079
|
-
var
|
|
3080
|
-
return n.charsetSentinel && (n.charset === "iso-8859-1" ? _ += "utf8=%26%2310003%3B&" : _ += "utf8=%E2%9C%93&"),
|
|
3081
|
+
var g = u.join(n.delimiter), _ = n.addQueryPrefix === !0 ? "?" : "";
|
|
3082
|
+
return n.charsetSentinel && (n.charset === "iso-8859-1" ? _ += "utf8=%26%2310003%3B&" : _ += "utf8=%E2%9C%93&"), g.length > 0 ? _ + g : "";
|
|
3081
3083
|
}, ki = qm, bc = Object.prototype.hasOwnProperty, gO = Array.isArray, xt = {
|
|
3082
3084
|
allowDots: !1,
|
|
3083
3085
|
allowPrototypes: !1,
|
|
@@ -3108,13 +3110,13 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3108
3110
|
u[f].indexOf("utf8=") === 0 && (u[f] === _O ? p = "utf-8" : u[f] === vO && (p = "iso-8859-1"), l = f, f = u.length);
|
|
3109
3111
|
for (f = 0; f < u.length; ++f)
|
|
3110
3112
|
if (f !== l) {
|
|
3111
|
-
var
|
|
3112
|
-
d === -1 ? (
|
|
3113
|
-
Zm(
|
|
3113
|
+
var m = u[f], c = m.indexOf("]="), d = c === -1 ? m.indexOf("=") : c + 1, g, _;
|
|
3114
|
+
d === -1 ? (g = r.decoder(m, xt.decoder, p, "key"), _ = r.strictNullHandling ? null : "") : (g = r.decoder(m.slice(0, d), xt.decoder, p, "key"), _ = ki.maybeMap(
|
|
3115
|
+
Zm(m.slice(d + 1), r),
|
|
3114
3116
|
function(y) {
|
|
3115
3117
|
return r.decoder(y, xt.decoder, p, "value");
|
|
3116
3118
|
}
|
|
3117
|
-
)), _ && r.interpretNumericEntities && p === "iso-8859-1" && (_ = mO(_)),
|
|
3119
|
+
)), _ && r.interpretNumericEntities && p === "iso-8859-1" && (_ = mO(_)), m.indexOf("[]=") > -1 && (_ = gO(_) ? [_] : _), bc.call(n, g) ? n[g] = ki.combine(n[g], _) : n[g] = _;
|
|
3118
3120
|
}
|
|
3119
3121
|
return n;
|
|
3120
3122
|
}, xO = function(t, e, r, n) {
|
|
@@ -3132,18 +3134,18 @@ var sh = th, qi = sM, DM = _M, BM = sh("%TypeError%"), Ha = sh("%WeakMap%", !0),
|
|
|
3132
3134
|
return i;
|
|
3133
3135
|
}, bO = function(e, r, n, i) {
|
|
3134
3136
|
if (e) {
|
|
3135
|
-
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, m = [];
|
|
3136
3138
|
if (p) {
|
|
3137
3139
|
if (!n.plainObjects && bc.call(Object.prototype, p) && !n.allowPrototypes)
|
|
3138
3140
|
return;
|
|
3139
|
-
|
|
3141
|
+
m.push(p);
|
|
3140
3142
|
}
|
|
3141
3143
|
for (var c = 0; n.depth > 0 && (f = l.exec(a)) !== null && c < n.depth; ) {
|
|
3142
3144
|
if (c += 1, !n.plainObjects && bc.call(Object.prototype, f[1].slice(1, -1)) && !n.allowPrototypes)
|
|
3143
3145
|
return;
|
|
3144
|
-
|
|
3146
|
+
m.push(f[1]);
|
|
3145
3147
|
}
|
|
3146
|
-
return f &&
|
|
3148
|
+
return f && m.push("[" + a.slice(f.index) + "]"), xO(m, r, n, i);
|
|
3147
3149
|
}
|
|
3148
3150
|
}, TO = function(e) {
|
|
3149
3151
|
if (!e)
|
|
@@ -3254,34 +3256,34 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3254
3256
|
var p = RO.exec(l);
|
|
3255
3257
|
if (p) {
|
|
3256
3258
|
p = p[0];
|
|
3257
|
-
var
|
|
3258
|
-
this.protocol =
|
|
3259
|
+
var m = p.toLowerCase();
|
|
3260
|
+
this.protocol = m, l = l.substr(p.length);
|
|
3259
3261
|
}
|
|
3260
3262
|
if (r || p || l.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
3261
3263
|
var c = l.substr(0, 2) === "//";
|
|
3262
3264
|
c && !(p && wc[p]) && (l = l.substr(2), this.slashes = !0);
|
|
3263
3265
|
}
|
|
3264
3266
|
if (!wc[p] && (c || p && !Pi[p])) {
|
|
3265
|
-
for (var d = -1,
|
|
3266
|
-
var _ = l.indexOf(og[
|
|
3267
|
+
for (var d = -1, g = 0; g < og.length; g++) {
|
|
3268
|
+
var _ = l.indexOf(og[g]);
|
|
3267
3269
|
_ !== -1 && (d === -1 || _ < d) && (d = _);
|
|
3268
3270
|
}
|
|
3269
3271
|
var y, b;
|
|
3270
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;
|
|
3271
|
-
for (var
|
|
3272
|
-
var _ = l.indexOf(ag[
|
|
3273
|
+
for (var g = 0; g < ag.length; g++) {
|
|
3274
|
+
var _ = l.indexOf(ag[g]);
|
|
3273
3275
|
_ !== -1 && (d === -1 || _ < d) && (d = _);
|
|
3274
3276
|
}
|
|
3275
3277
|
d === -1 && (d = l.length), this.host = l.slice(0, d), l = l.slice(d), this.parseHost(), this.hostname = this.hostname || "";
|
|
3276
3278
|
var x = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]";
|
|
3277
3279
|
if (!x)
|
|
3278
|
-
for (var E = this.hostname.split(/\./),
|
|
3279
|
-
var I = E[
|
|
3280
|
+
for (var E = this.hostname.split(/\./), g = 0, w = E.length; g < w; g++) {
|
|
3281
|
+
var I = E[g];
|
|
3280
3282
|
if (I && !I.match(ug)) {
|
|
3281
3283
|
for (var O = "", F = 0, N = I.length; F < N; F++)
|
|
3282
3284
|
I.charCodeAt(F) > 127 ? O += "x" : O += I[F];
|
|
3283
3285
|
if (!O.match(ug)) {
|
|
3284
|
-
var L = E.slice(0,
|
|
3286
|
+
var L = E.slice(0, g), D = E.slice(g + 1), V = I.match(LO);
|
|
3285
3287
|
V && (L.push(V[1]), D.unshift(V[2])), D.length && (l = "/" + D.join(".") + l), this.hostname = L.join(".");
|
|
3286
3288
|
break;
|
|
3287
3289
|
}
|
|
@@ -3291,9 +3293,9 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3291
3293
|
var Y = this.port ? ":" + this.port : "", se = this.hostname || "";
|
|
3292
3294
|
this.host = se + Y, this.href += this.host, x && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), l[0] !== "/" && (l = "/" + l));
|
|
3293
3295
|
}
|
|
3294
|
-
if (!kO[
|
|
3295
|
-
for (var
|
|
3296
|
-
var X = Tc[
|
|
3296
|
+
if (!kO[m])
|
|
3297
|
+
for (var g = 0, w = Tc.length; g < w; g++) {
|
|
3298
|
+
var X = Tc[g];
|
|
3297
3299
|
if (l.indexOf(X) !== -1) {
|
|
3298
3300
|
var G = encodeURIComponent(X);
|
|
3299
3301
|
G === X && (G = escape(X)), l = l.split(X).join(G);
|
|
@@ -3302,7 +3304,7 @@ Sr.prototype.parse = function(t, e, r) {
|
|
|
3302
3304
|
var ie = l.indexOf("#");
|
|
3303
3305
|
ie !== -1 && (this.hash = l.substr(ie), l = l.slice(0, ie));
|
|
3304
3306
|
var re = l.indexOf("?");
|
|
3305
|
-
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[m] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
3306
3308
|
var Y = this.pathname || "", H = this.search || "";
|
|
3307
3309
|
this.path = Y + H;
|
|
3308
3310
|
}
|
|
@@ -3347,8 +3349,8 @@ Sr.prototype.resolveObject = function(t) {
|
|
|
3347
3349
|
}
|
|
3348
3350
|
if (t.protocol && t.protocol !== r.protocol) {
|
|
3349
3351
|
if (!Pi[t.protocol]) {
|
|
3350
|
-
for (var p = Object.keys(t),
|
|
3351
|
-
var c = p[
|
|
3352
|
+
for (var p = Object.keys(t), m = 0; m < p.length; m++) {
|
|
3353
|
+
var c = p[m];
|
|
3352
3354
|
r[c] = t[c];
|
|
3353
3355
|
}
|
|
3354
3356
|
return r.href = r.format(), r;
|
|
@@ -3360,8 +3362,8 @@ Sr.prototype.resolveObject = function(t) {
|
|
|
3360
3362
|
} else
|
|
3361
3363
|
r.pathname = t.pathname;
|
|
3362
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) {
|
|
3363
|
-
var d = r.pathname || "",
|
|
3364
|
-
r.path = d +
|
|
3365
|
+
var d = r.pathname || "", g = r.search || "";
|
|
3366
|
+
r.path = d + g;
|
|
3365
3367
|
}
|
|
3366
3368
|
return r.slashes = r.slashes || t.slashes, r.href = r.format(), r;
|
|
3367
3369
|
}
|
|
@@ -3421,12 +3423,12 @@ function zO() {
|
|
|
3421
3423
|
var r;
|
|
3422
3424
|
const e = {
|
|
3423
3425
|
stencil: !0,
|
|
3424
|
-
failIfMajorPerformanceCaveat:
|
|
3426
|
+
failIfMajorPerformanceCaveat: Re.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT
|
|
3425
3427
|
};
|
|
3426
3428
|
try {
|
|
3427
|
-
if (!
|
|
3429
|
+
if (!Re.ADAPTER.getWebGLRenderingContext())
|
|
3428
3430
|
return !1;
|
|
3429
|
-
const n =
|
|
3431
|
+
const n = Re.ADAPTER.createCanvas();
|
|
3430
3432
|
let i = n.getContext("webgl", e) || n.getContext("experimental-webgl", e);
|
|
3431
3433
|
const a = !!((r = i == null ? void 0 : i.getContextAttributes()) != null && r.stencil);
|
|
3432
3434
|
if (i) {
|
|
@@ -3589,12 +3591,12 @@ function QO(t, e) {
|
|
|
3589
3591
|
if (p)
|
|
3590
3592
|
return p;
|
|
3591
3593
|
if (u != null && u.closest) {
|
|
3592
|
-
var
|
|
3594
|
+
var m = this.toRgb(), c = 1 / 0, d = "black";
|
|
3593
3595
|
if (!a.length)
|
|
3594
|
-
for (var
|
|
3595
|
-
a[
|
|
3596
|
+
for (var g in r)
|
|
3597
|
+
a[g] = new t(r[g]).toRgb();
|
|
3596
3598
|
for (var _ in r) {
|
|
3597
|
-
var y = (l =
|
|
3599
|
+
var y = (l = m, f = a[_], Math.pow(l.r - f.r, 2) + Math.pow(l.g - f.g, 2) + Math.pow(l.b - f.b, 2));
|
|
3598
3600
|
y < c && (c = y, d = _);
|
|
3599
3601
|
}
|
|
3600
3602
|
return d;
|
|
@@ -3828,7 +3830,7 @@ function rF(t, e = globalThis.location) {
|
|
|
3828
3830
|
}
|
|
3829
3831
|
function xg(t, e = 1) {
|
|
3830
3832
|
var n;
|
|
3831
|
-
const r = (n =
|
|
3833
|
+
const r = (n = Re.RETINA_PREFIX) == null ? void 0 : n.exec(t);
|
|
3832
3834
|
return r ? parseFloat(r[1]) : e;
|
|
3833
3835
|
}
|
|
3834
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 || {});
|
|
@@ -4042,11 +4044,11 @@ class Ar {
|
|
|
4042
4044
|
emit(e, r, n, i, a, u, l, f) {
|
|
4043
4045
|
if (arguments.length > 8)
|
|
4044
4046
|
throw new Error("max arguments reached");
|
|
4045
|
-
const { name: p, items:
|
|
4047
|
+
const { name: p, items: m } = this;
|
|
4046
4048
|
this._aliasCount++;
|
|
4047
|
-
for (let c = 0, d =
|
|
4048
|
-
|
|
4049
|
-
return
|
|
4049
|
+
for (let c = 0, d = m.length; c < d; c++)
|
|
4050
|
+
m[c][p](e, r, n, i, a, u, l, f);
|
|
4051
|
+
return m === this.items && this._aliasCount--, this;
|
|
4050
4052
|
}
|
|
4051
4053
|
ensureNonAliasedItems() {
|
|
4052
4054
|
this._aliasCount > 0 && this.items.length > 1 && (this._aliasCount = 0, this.items = this.items.slice(0));
|
|
@@ -4154,12 +4156,12 @@ const oF = {
|
|
|
4154
4156
|
height: l,
|
|
4155
4157
|
wrapMode: f,
|
|
4156
4158
|
format: p,
|
|
4157
|
-
type:
|
|
4159
|
+
type: m,
|
|
4158
4160
|
target: c,
|
|
4159
4161
|
resolution: d,
|
|
4160
|
-
resourceOptions:
|
|
4162
|
+
resourceOptions: g
|
|
4161
4163
|
} = e;
|
|
4162
|
-
t && !(t instanceof Ns) && (t = n0(t,
|
|
4164
|
+
t && !(t instanceof Ns) && (t = n0(t, g), t.internal = !0), this.resolution = d || Re.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 = m, 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);
|
|
4163
4165
|
}
|
|
4164
4166
|
get realWidth() {
|
|
4165
4167
|
return Math.round(this.width * this.resolution);
|
|
@@ -4224,7 +4226,7 @@ const oF = {
|
|
|
4224
4226
|
castToBaseTexture() {
|
|
4225
4227
|
return this;
|
|
4226
4228
|
}
|
|
4227
|
-
static from(t, e, r =
|
|
4229
|
+
static from(t, e, r = Re.STRICT_TEXTURE_CACHE) {
|
|
4228
4230
|
const n = typeof t == "string";
|
|
4229
4231
|
let i = null;
|
|
4230
4232
|
if (n)
|
|
@@ -4330,11 +4332,11 @@ function cF(t, e) {
|
|
|
4330
4332
|
const a = new ArrayBuffer(r * 4);
|
|
4331
4333
|
let u = null, l = 0;
|
|
4332
4334
|
for (let f = 0; f < t.length; f++) {
|
|
4333
|
-
const p = e[f],
|
|
4335
|
+
const p = e[f], m = t[f], c = t0(m);
|
|
4334
4336
|
i[c] || (i[c] = new lF[c](a)), u = i[c];
|
|
4335
|
-
for (let d = 0; d <
|
|
4336
|
-
const
|
|
4337
|
-
u[
|
|
4337
|
+
for (let d = 0; d < m.length; d++) {
|
|
4338
|
+
const g = (d / p | 0) * n + l, _ = d % p;
|
|
4339
|
+
u[g + _] = m[d];
|
|
4338
4340
|
}
|
|
4339
4341
|
l += p;
|
|
4340
4342
|
}
|
|
@@ -4363,8 +4365,8 @@ class Di {
|
|
|
4363
4365
|
this.addAttribute(p[c], r, n, i, a);
|
|
4364
4366
|
return this;
|
|
4365
4367
|
}
|
|
4366
|
-
let
|
|
4367
|
-
return
|
|
4368
|
+
let m = this.buffers.indexOf(r);
|
|
4369
|
+
return m === -1 && (this.buffers.push(r), m = this.buffers.length - 1), this.attributes[e] = new wo(m, n, i, a, u, l, f), this.instanced = this.instanced || f, this;
|
|
4368
4370
|
}
|
|
4369
4371
|
getAttribute(e) {
|
|
4370
4372
|
return this.attributes[e];
|
|
@@ -4431,21 +4433,21 @@ class Di {
|
|
|
4431
4433
|
}
|
|
4432
4434
|
if (r.attributes = u.attributes, u.indexBuffer) {
|
|
4433
4435
|
r.indexBuffer = r.buffers[u.buffers.indexOf(u.indexBuffer)], r.indexBuffer.type = kr.ELEMENT_ARRAY_BUFFER;
|
|
4434
|
-
let l = 0, f = 0, p = 0,
|
|
4436
|
+
let l = 0, f = 0, p = 0, m = 0;
|
|
4435
4437
|
for (let c = 0; c < u.buffers.length; c++)
|
|
4436
4438
|
if (u.buffers[c] !== u.indexBuffer) {
|
|
4437
|
-
|
|
4439
|
+
m = c;
|
|
4438
4440
|
break;
|
|
4439
4441
|
}
|
|
4440
4442
|
for (const c in u.attributes) {
|
|
4441
4443
|
const d = u.attributes[c];
|
|
4442
|
-
(d.buffer | 0) ===
|
|
4444
|
+
(d.buffer | 0) === m && (f += d.size * Tg[d.type] / 4);
|
|
4443
4445
|
}
|
|
4444
4446
|
for (let c = 0; c < e.length; c++) {
|
|
4445
4447
|
const d = e[c].indexBuffer.data;
|
|
4446
|
-
for (let
|
|
4447
|
-
r.indexBuffer.data[
|
|
4448
|
-
l += e[c].buffers[
|
|
4448
|
+
for (let g = 0; g < d.length; g++)
|
|
4449
|
+
r.indexBuffer.data[g + p] += l;
|
|
4450
|
+
l += e[c].buffers[m].data.length / f, p += d.length;
|
|
4449
4451
|
}
|
|
4450
4452
|
}
|
|
4451
4453
|
return r;
|
|
@@ -4524,17 +4526,17 @@ class Ye {
|
|
|
4524
4526
|
const n = this.left, i = this.right, a = this.top, u = this.bottom;
|
|
4525
4527
|
if (i <= n || u <= a)
|
|
4526
4528
|
return !1;
|
|
4527
|
-
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), m = Wa[3].set(e.right, e.bottom);
|
|
4528
4530
|
if (p.x <= l.x || f.y <= l.y)
|
|
4529
4531
|
return !1;
|
|
4530
4532
|
const c = Math.sign(r.a * r.d - r.b * r.c);
|
|
4531
|
-
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(m, m), Math.max(l.x, f.x, p.x, m.x) <= n || Math.min(l.x, f.x, p.x, m.x) >= i || Math.max(l.y, f.y, p.y, m.y) <= a || Math.min(l.y, f.y, p.y, m.y) >= u))
|
|
4532
4534
|
return !1;
|
|
4533
|
-
const d = c * (f.y - l.y),
|
|
4534
|
-
if (Math.max(_, y, b, x) <= d * l.x +
|
|
4535
|
+
const d = c * (f.y - l.y), g = c * (l.x - f.x), _ = d * n + g * a, y = d * i + g * a, b = d * n + g * u, x = d * i + g * u;
|
|
4536
|
+
if (Math.max(_, y, b, x) <= d * l.x + g * l.y || Math.min(_, y, b, x) >= d * m.x + g * m.y)
|
|
4535
4537
|
return !1;
|
|
4536
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;
|
|
4537
|
-
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 * m.x + w * m.y);
|
|
4538
4540
|
}
|
|
4539
4541
|
pad(e = 0, r = e) {
|
|
4540
4542
|
return this.x -= e, this.y -= r, this.width += e * 2, this.height += r * 2, this;
|
|
@@ -4615,8 +4617,8 @@ class As {
|
|
|
4615
4617
|
let n = !1;
|
|
4616
4618
|
const i = this.points.length / 2;
|
|
4617
4619
|
for (let a = 0, u = i - 1; a < i; u = a++) {
|
|
4618
|
-
const l = this.points[a * 2], f = this.points[a * 2 + 1], p = this.points[u * 2],
|
|
4619
|
-
f > r !=
|
|
4620
|
+
const l = this.points[a * 2], f = this.points[a * 2 + 1], p = this.points[u * 2], m = this.points[u * 2 + 1];
|
|
4621
|
+
f > r != m > r && e < (p - l) * ((r - f) / (m - f)) + l && (n = !n);
|
|
4620
4622
|
}
|
|
4621
4623
|
return n;
|
|
4622
4624
|
}
|
|
@@ -5340,9 +5342,9 @@ const l0 = {};
|
|
|
5340
5342
|
let _i = l0;
|
|
5341
5343
|
function bF() {
|
|
5342
5344
|
if (_i === l0 || _i != null && _i.isContextLost()) {
|
|
5343
|
-
const t =
|
|
5345
|
+
const t = Re.ADAPTER.createCanvas();
|
|
5344
5346
|
let e;
|
|
5345
|
-
|
|
5347
|
+
Re.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;
|
|
5346
5348
|
}
|
|
5347
5349
|
return _i;
|
|
5348
5350
|
}
|
|
@@ -5357,7 +5359,7 @@ function TF() {
|
|
|
5357
5359
|
}
|
|
5358
5360
|
function Sg(t, e) {
|
|
5359
5361
|
const r = t.getShaderSource(e).split(`
|
|
5360
|
-
`).map((p,
|
|
5362
|
+
`).map((p, m) => `${m}: ${p}`), n = t.getShaderInfoLog(e), i = n.split(`
|
|
5361
5363
|
`), a = {}, u = i.map((p) => parseFloat(p.replace(/^ERROR\: 0\:([\d]+)\:.*$/, "$1"))).filter((p) => p && !a[p] ? (a[p] = !0, !0) : !1), l = [""];
|
|
5362
5364
|
u.forEach((p) => {
|
|
5363
5365
|
r[p - 1] = `%c${r[p - 1]}%c`, l.push("background: #FF0000; color:#FFFFFF; font-size: 10px", "font-size: 10px");
|
|
@@ -5578,7 +5580,7 @@ function RF() {
|
|
|
5578
5580
|
}
|
|
5579
5581
|
function PF(t) {
|
|
5580
5582
|
let e = !0;
|
|
5581
|
-
const r =
|
|
5583
|
+
const r = Re.ADAPTER.getNavigator();
|
|
5582
5584
|
if (Ai.tablet || Ai.phone) {
|
|
5583
5585
|
if (Ai.apple.device) {
|
|
5584
5586
|
const n = r.userAgent.match(/OS (\d+)_(\d+)?/);
|
|
@@ -5673,7 +5675,7 @@ const vr = class extends f0 {
|
|
|
5673
5675
|
}
|
|
5674
5676
|
contextChange() {
|
|
5675
5677
|
const t = this.renderer.gl;
|
|
5676
|
-
|
|
5678
|
+
Re.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);
|
|
5677
5679
|
for (let e = 0; e < this._packedGeometryPoolSize; e++)
|
|
5678
5680
|
this._packedGeometries[e] = new this.geometryClass();
|
|
5679
5681
|
this.initFlushBuffers();
|
|
@@ -5703,13 +5705,13 @@ const vr = class extends f0 {
|
|
|
5703
5705
|
} = this, r = vr._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, a = this.renderer.textureGC.count;
|
|
5704
5706
|
let u = ++Be._globalBatch, l = 0, f = r[0], p = 0;
|
|
5705
5707
|
n.copyBoundTextures(i, e);
|
|
5706
|
-
for (let
|
|
5707
|
-
const c = t[
|
|
5708
|
-
t[
|
|
5708
|
+
for (let m = 0; m < this._bufferSize; ++m) {
|
|
5709
|
+
const c = t[m];
|
|
5710
|
+
t[m] = null, c._batchEnabled !== u && (f.count >= e && (n.boundArray(f, i, u, e), this.buildDrawCalls(f, p, m), p = m, f = r[++l], ++u), c._batchEnabled = u, c.touched = a, f.elements[f.count++] = c);
|
|
5709
5711
|
}
|
|
5710
5712
|
f.count > 0 && (n.boundArray(f, i, u, e), this.buildDrawCalls(f, p, this._bufferSize), ++l, ++u);
|
|
5711
|
-
for (let
|
|
5712
|
-
i[
|
|
5713
|
+
for (let m = 0; m < i.length; m++)
|
|
5714
|
+
i[m] = null;
|
|
5713
5715
|
Be._globalBatch = u;
|
|
5714
5716
|
}
|
|
5715
5717
|
buildDrawCalls(t, e, r) {
|
|
@@ -5719,13 +5721,13 @@ const vr = class extends f0 {
|
|
|
5719
5721
|
_indexBuffer: a,
|
|
5720
5722
|
vertexSize: u
|
|
5721
5723
|
} = this, l = vr._drawCallPool;
|
|
5722
|
-
let f = this._dcIndex, p = this._aIndex,
|
|
5724
|
+
let f = this._dcIndex, p = this._aIndex, m = this._iIndex, c = l[f];
|
|
5723
5725
|
c.start = this._iIndex, c.texArray = t;
|
|
5724
5726
|
for (let d = e; d < r; ++d) {
|
|
5725
|
-
const
|
|
5726
|
-
n[d] = null, e < d && c.blend !== y && (c.size =
|
|
5727
|
+
const g = n[d], _ = g._texture.baseTexture, y = eF[_.alphaMode ? 1 : 0][g.blendMode];
|
|
5728
|
+
n[d] = null, e < d && c.blend !== y && (c.size = m - c.start, e = d, c = l[++f], c.texArray = t, c.start = m), this.packInterleavedGeometry(g, i, a, p, m), p += g.vertexData.length / 2 * u, m += g.indices.length, c.blend = y;
|
|
5727
5729
|
}
|
|
5728
|
-
e < r && (c.size =
|
|
5730
|
+
e < r && (c.size = m - c.start, ++f), this._dcIndex = f, this._aIndex = p, this._iIndex = m;
|
|
5729
5731
|
}
|
|
5730
5732
|
bindAndClearTexArray(t) {
|
|
5731
5733
|
const e = this.renderer.texture;
|
|
@@ -5745,8 +5747,8 @@ const vr = class extends f0 {
|
|
|
5745
5747
|
const t = this._dcIndex, { gl: e, state: r } = this.renderer, n = vr._drawCallPool;
|
|
5746
5748
|
let i = null;
|
|
5747
5749
|
for (let a = 0; a < t; a++) {
|
|
5748
|
-
const { texArray: u, type: l, size: f, start: p, blend:
|
|
5749
|
-
i !== u && (i = u, this.bindAndClearTexArray(u)), this.state.blendMode =
|
|
5750
|
+
const { texArray: u, type: l, size: f, start: p, blend: m } = n[a];
|
|
5751
|
+
i !== u && (i = u, this.bindAndClearTexArray(u)), this.state.blendMode = m, r.set(this.state), e.drawElements(l, f, e.UNSIGNED_SHORT, p * 2);
|
|
5750
5752
|
}
|
|
5751
5753
|
}
|
|
5752
5754
|
flush() {
|
|
@@ -5779,9 +5781,9 @@ const vr = class extends f0 {
|
|
|
5779
5781
|
const {
|
|
5780
5782
|
uint32View: a,
|
|
5781
5783
|
float32View: u
|
|
5782
|
-
} = e, l = n / this.vertexSize, f = t.uvs, p = t.indices,
|
|
5783
|
-
for (let _ = 0; _ <
|
|
5784
|
-
u[n++] =
|
|
5784
|
+
} = e, l = n / this.vertexSize, f = t.uvs, p = t.indices, m = t.vertexData, c = t._texture.baseTexture._batchLocation, d = Math.min(t.worldAlpha, 1), g = Mt.shared.setValue(t._tintRGB).toPremultiplied(d);
|
|
5785
|
+
for (let _ = 0; _ < m.length; _ += 2)
|
|
5786
|
+
u[n++] = m[_], u[n++] = m[_ + 1], u[n++] = f[_], u[n++] = f[_ + 1], a[n++] = g, u[n++] = c;
|
|
5785
5787
|
for (let _ = 0; _ < p.length; _++)
|
|
5786
5788
|
r[i++] = l + p[_];
|
|
5787
5789
|
}
|
|
@@ -5921,8 +5923,8 @@ class d0 {
|
|
|
5921
5923
|
const { elements: a, ids: u, count: l } = e;
|
|
5922
5924
|
let f = 0;
|
|
5923
5925
|
for (let p = 0; p < l; p++) {
|
|
5924
|
-
const
|
|
5925
|
-
if (c >= 0 && c < i && r[c] ===
|
|
5926
|
+
const m = a[p], c = m._batchLocation;
|
|
5927
|
+
if (c >= 0 && c < i && r[c] === m) {
|
|
5926
5928
|
u[p] = c;
|
|
5927
5929
|
continue;
|
|
5928
5930
|
}
|
|
@@ -5932,7 +5934,7 @@ class d0 {
|
|
|
5932
5934
|
f++;
|
|
5933
5935
|
continue;
|
|
5934
5936
|
}
|
|
5935
|
-
u[p] = f,
|
|
5937
|
+
u[p] = f, m._batchLocation = f, r[f] = m;
|
|
5936
5938
|
break;
|
|
5937
5939
|
}
|
|
5938
5940
|
}
|
|
@@ -5985,7 +5987,7 @@ class zo {
|
|
|
5985
5987
|
}
|
|
5986
5988
|
createContext(e, r) {
|
|
5987
5989
|
let n;
|
|
5988
|
-
if (
|
|
5990
|
+
if (Re.PREFER_ENV >= Kn.WEBGL2 && (n = e.getContext("webgl2", r)), n)
|
|
5989
5991
|
this.webGLVersion = 2;
|
|
5990
5992
|
else if (this.webGLVersion = 1, n = e.getContext("webgl", r) || e.getContext("experimental-webgl", r), !n)
|
|
5991
5993
|
throw new Error("This browser does not support WebGL. Try using the canvas renderer");
|
|
@@ -6172,7 +6174,7 @@ class g0 extends gn {
|
|
|
6172
6174
|
const n = new Image();
|
|
6173
6175
|
gn.crossOrigin(n, e, r.crossorigin), n.src = e, e = n;
|
|
6174
6176
|
}
|
|
6175
|
-
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 ?? Re.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();
|
|
6176
6178
|
}
|
|
6177
6179
|
load(e) {
|
|
6178
6180
|
return this._load ? this._load : (e !== void 0 && (this.createBitmap = e), this._load = new Promise((r, n) => {
|
|
@@ -6288,7 +6290,7 @@ class ke extends ko {
|
|
|
6288
6290
|
updateUvs() {
|
|
6289
6291
|
this._uvs === Ig && (this._uvs = new m0()), this._uvs.set(this._frame, this.baseTexture, this.rotate), this._updateID++;
|
|
6290
6292
|
}
|
|
6291
|
-
static from(e, r = {}, n =
|
|
6293
|
+
static from(e, r = {}, n = Re.STRICT_TEXTURE_CACHE) {
|
|
6292
6294
|
const i = typeof e == "string";
|
|
6293
6295
|
let a = null;
|
|
6294
6296
|
if (i)
|
|
@@ -6356,8 +6358,8 @@ class ke extends ko {
|
|
|
6356
6358
|
this._frame = e, this.noFrame = !1;
|
|
6357
6359
|
const { x: r, y: n, width: i, height: a } = e, u = r + i > this.baseTexture.width, l = n + a > this.baseTexture.height;
|
|
6358
6360
|
if (u || l) {
|
|
6359
|
-
const f = u && l ? "and" : "or", p = `X: ${r} + ${i} = ${r + i} > ${this.baseTexture.width}`,
|
|
6360
|
-
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}`, m = `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} ${m}`);
|
|
6361
6363
|
}
|
|
6362
6364
|
this.valid = i && a && this.baseTexture.valid, !this.trim && !this.rotate && (this.orig = e), this.valid && this.updateUvs();
|
|
6363
6365
|
}
|
|
@@ -6381,7 +6383,7 @@ class ke extends ko {
|
|
|
6381
6383
|
}
|
|
6382
6384
|
static get WHITE() {
|
|
6383
6385
|
if (!ke._WHITE) {
|
|
6384
|
-
const e =
|
|
6386
|
+
const e = Re.ADAPTER.createCanvas(16, 16), r = e.getContext("2d");
|
|
6385
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);
|
|
6386
6388
|
}
|
|
6387
6389
|
return ke._WHITE;
|
|
@@ -6539,16 +6541,16 @@ class _0 {
|
|
|
6539
6541
|
}
|
|
6540
6542
|
push(e, r) {
|
|
6541
6543
|
const n = this.renderer, i = this.defaultFilterStack, a = this.statePool.pop() || new BF(), u = this.renderer.renderTexture;
|
|
6542
|
-
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, m = r[0].autoFit, c = r[0].legacy ?? !0;
|
|
6543
6545
|
for (let _ = 1; _ < r.length; _++) {
|
|
6544
6546
|
const y = r[_];
|
|
6545
|
-
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, m = m && y.autoFit, c = c || (y.legacy ?? !0);
|
|
6546
6548
|
}
|
|
6547
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);
|
|
6548
6550
|
const d = this.tempRect.copyFrom(u.sourceFrame);
|
|
6549
|
-
n.projection.transform && this.transformAABB(ql.copyFrom(n.projection.transform).invert(), d),
|
|
6550
|
-
const
|
|
6551
|
-
|
|
6551
|
+
n.projection.transform && this.transformAABB(ql.copyFrom(n.projection.transform).invert(), d), m ? (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 g = this.tempRect;
|
|
6553
|
+
g.x = 0, g.y = 0, g.width = a.sourceFrame.width, g.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, g), n.framebuffer.clear(0, 0, 0, 0);
|
|
6552
6554
|
}
|
|
6553
6555
|
pop() {
|
|
6554
6556
|
const e = this.defaultFilterStack, r = e.pop(), n = r.filters;
|
|
@@ -6565,15 +6567,15 @@ class _0 {
|
|
|
6565
6567
|
if (this.renderer.framebuffer.blit(), n.length === 1)
|
|
6566
6568
|
n[0].apply(this, r.renderTexture, f.renderTexture, Nn.BLEND, r), this.returnFilterTexture(r.renderTexture);
|
|
6567
6569
|
else {
|
|
6568
|
-
let p = r.renderTexture,
|
|
6569
|
-
|
|
6570
|
+
let p = r.renderTexture, m = this.getOptimalFilterTexture(p.width, p.height, r.resolution);
|
|
6571
|
+
m.filterFrame = p.filterFrame;
|
|
6570
6572
|
let c = 0;
|
|
6571
6573
|
for (c = 0; c < n.length - 1; ++c) {
|
|
6572
|
-
c === 1 && r.multisample > 1 && (
|
|
6574
|
+
c === 1 && r.multisample > 1 && (m = this.getOptimalFilterTexture(p.width, p.height, r.resolution), m.filterFrame = p.filterFrame), n[c].apply(this, p, m, Nn.CLEAR, r);
|
|
6573
6575
|
const d = p;
|
|
6574
|
-
p =
|
|
6576
|
+
p = m, m = d;
|
|
6575
6577
|
}
|
|
6576
|
-
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(m);
|
|
6577
6579
|
}
|
|
6578
6580
|
r.clear(), this.statePool.push(r);
|
|
6579
6581
|
}
|
|
@@ -6625,8 +6627,8 @@ class _0 {
|
|
|
6625
6627
|
transformAABB(e, r) {
|
|
6626
6628
|
const n = Qa[0], i = Qa[1], a = Qa[2], u = Qa[3];
|
|
6627
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);
|
|
6628
|
-
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),
|
|
6629
|
-
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), m = Math.max(n.y, i.y, a.y, u.y);
|
|
6631
|
+
r.x = l, r.y = f, r.width = p - l, r.height = m - f;
|
|
6630
6632
|
}
|
|
6631
6633
|
roundFrame(e, r, n, i, a) {
|
|
6632
6634
|
if (!(e.width <= 0 || e.height <= 0 || n.width <= 0 || n.height <= 0)) {
|
|
@@ -6659,7 +6661,7 @@ class y0 {
|
|
|
6659
6661
|
const e = this.gl = this.renderer.gl;
|
|
6660
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) {
|
|
6661
6663
|
let r = this.renderer.context.extensions.drawBuffers, n = this.renderer.context.extensions.depthTexture;
|
|
6662
|
-
|
|
6664
|
+
Re.PREFER_ENV === Kn.WEBGL_LEGACY && (r = null, n = null), r ? e.drawBuffers = (i) => r.drawBuffersWEBGL(i) : (this.hasMRT = !1, e.drawBuffers = () => {
|
|
6663
6665
|
}), n || (this.writeDepthTexture = !1);
|
|
6664
6666
|
} else
|
|
6665
6667
|
this.msaaSamples = e.getInternalformatParameter(e.RENDERBUFFER, e.RGBA8, e.SAMPLES);
|
|
@@ -6716,8 +6718,8 @@ class y0 {
|
|
|
6716
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));
|
|
6717
6719
|
const l = [];
|
|
6718
6720
|
for (let f = 0; f < u; f++) {
|
|
6719
|
-
const p = a[f],
|
|
6720
|
-
this.renderer.texture.bind(
|
|
6721
|
+
const p = a[f], m = p.parentTextureArray || p;
|
|
6722
|
+
this.renderer.texture.bind(m, 0), f === 0 && i.msaaBuffer ? (n.bindRenderbuffer(n.RENDERBUFFER, i.msaaBuffer), n.renderbufferStorageMultisample(n.RENDERBUFFER, i.multisample, m._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, m._glTextures[this.CONTEXT_UID].texture, r), l.push(n.COLOR_ATTACHMENT0 + f));
|
|
6721
6723
|
}
|
|
6722
6724
|
if (l.length > 1 && n.drawBuffers(l), e.depthTexture && this.writeDepthTexture) {
|
|
6723
6725
|
const p = e.depthTexture;
|
|
@@ -6750,10 +6752,10 @@ class y0 {
|
|
|
6750
6752
|
if (!e) {
|
|
6751
6753
|
if (!f.msaaBuffer)
|
|
6752
6754
|
return;
|
|
6753
|
-
const
|
|
6754
|
-
if (!
|
|
6755
|
+
const m = i.colorTextures[0];
|
|
6756
|
+
if (!m)
|
|
6755
6757
|
return;
|
|
6756
|
-
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, m)), e = f.blitFramebuffer, e.colorTextures[0] !== m && (e.colorTextures[0] = m, e.dirtyId++, e.dirtyFormat++), (e.width !== i.width || e.height !== i.height) && (e.width = i.width, e.height = i.height, e.dirtyId++, e.dirtySize++);
|
|
6757
6759
|
}
|
|
6758
6760
|
r || (r = $F, r.width = i.width, r.height = i.height), n || (n = r);
|
|
6759
6761
|
const p = r.width === n.width && r.height === n.height;
|
|
@@ -6806,7 +6808,7 @@ class x0 {
|
|
|
6806
6808
|
const e = this.gl = this.renderer.gl, r = this.renderer.context;
|
|
6807
6809
|
if (this.CONTEXT_UID = this.renderer.CONTEXT_UID, r.webGLVersion !== 2) {
|
|
6808
6810
|
let n = this.renderer.context.extensions.vertexArrayObject;
|
|
6809
|
-
|
|
6811
|
+
Re.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);
|
|
6810
6812
|
}
|
|
6811
6813
|
if (r.webGLVersion !== 2) {
|
|
6812
6814
|
const n = e.getExtension("ANGLE_instanced_arrays");
|
|
@@ -6848,24 +6850,24 @@ class x0 {
|
|
|
6848
6850
|
const i = this.gl, a = this.CONTEXT_UID, u = this.renderer.buffer, l = r.program;
|
|
6849
6851
|
l.glPrograms[a] || this.renderer.shader.generateProgram(r), this.checkCompatibility(e, l);
|
|
6850
6852
|
const f = this.getSignature(e, l), p = e.glVertexArrayObjects[this.CONTEXT_UID];
|
|
6851
|
-
let
|
|
6852
|
-
if (
|
|
6853
|
-
return p[l.id] =
|
|
6854
|
-
const c = e.buffers, d = e.attributes,
|
|
6853
|
+
let m = p[f];
|
|
6854
|
+
if (m)
|
|
6855
|
+
return p[l.id] = m, m;
|
|
6856
|
+
const c = e.buffers, d = e.attributes, g = {}, _ = {};
|
|
6855
6857
|
for (const y in c)
|
|
6856
|
-
|
|
6858
|
+
g[y] = 0, _[y] = 0;
|
|
6857
6859
|
for (const y in d)
|
|
6858
|
-
!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)`), g[d[y].buffer] += d[y].size * Yl[d[y].type];
|
|
6859
6861
|
for (const y in d) {
|
|
6860
6862
|
const b = d[y], x = b.size;
|
|
6861
|
-
b.stride === void 0 && (
|
|
6863
|
+
b.stride === void 0 && (g[b.buffer] === x * Yl[b.type] ? b.stride = 0 : b.stride = g[b.buffer]), b.start === void 0 && (b.start = _[b.buffer], _[b.buffer] += x * Yl[b.type]);
|
|
6862
6864
|
}
|
|
6863
|
-
|
|
6865
|
+
m = i.createVertexArray(), i.bindVertexArray(m);
|
|
6864
6866
|
for (let y = 0; y < c.length; y++) {
|
|
6865
6867
|
const b = c[y];
|
|
6866
6868
|
u.bind(b), n && b._glBuffers[a].refCount++;
|
|
6867
6869
|
}
|
|
6868
|
-
return this.activateVao(e, l), p[l.id] =
|
|
6870
|
+
return this.activateVao(e, l), p[l.id] = m, p[f] = m, i.bindVertexArray(null), u.unbind(kr.ARRAY_BUFFER), m;
|
|
6869
6871
|
}
|
|
6870
6872
|
disposeGeometry(e, r) {
|
|
6871
6873
|
var l;
|
|
@@ -6899,13 +6901,13 @@ class x0 {
|
|
|
6899
6901
|
e.indexBuffer && a.bind(e.indexBuffer);
|
|
6900
6902
|
let f = null;
|
|
6901
6903
|
for (const p in l) {
|
|
6902
|
-
const
|
|
6904
|
+
const m = l[p], c = u[m.buffer], d = c._glBuffers[i];
|
|
6903
6905
|
if (r.attributeData[p]) {
|
|
6904
6906
|
f !== d && (a.bind(c), f = d);
|
|
6905
|
-
const
|
|
6906
|
-
if (n.enableVertexAttribArray(
|
|
6907
|
+
const g = r.attributeData[p].location;
|
|
6908
|
+
if (n.enableVertexAttribArray(g), n.vertexAttribPointer(g, m.size, m.type || n.FLOAT, m.normalized, m.stride, m.start), m.instance)
|
|
6907
6909
|
if (this.hasInstance)
|
|
6908
|
-
n.vertexAttribDivisor(
|
|
6910
|
+
n.vertexAttribDivisor(g, m.divisor);
|
|
6909
6911
|
else
|
|
6910
6912
|
throw new Error("geometry error, GPU Instancing is not supported on this device");
|
|
6911
6913
|
}
|
|
@@ -7106,8 +7108,8 @@ class b0 {
|
|
|
7106
7108
|
const a = this.renderer, u = a.renderTexture;
|
|
7107
7109
|
let l, f;
|
|
7108
7110
|
if (u.current) {
|
|
7109
|
-
const
|
|
7110
|
-
l = e.resolution ||
|
|
7111
|
+
const m = u.current;
|
|
7112
|
+
l = e.resolution || m.resolution, f = e.multisample ?? m.multisample;
|
|
7111
7113
|
} else
|
|
7112
7114
|
l = e.resolution || a.resolution, f = e.multisample ?? a.multisample;
|
|
7113
7115
|
i[0].resolution = l, i[0].multisample = f, i[0].maskSprite = r;
|
|
@@ -7155,7 +7157,7 @@ class T0 {
|
|
|
7155
7157
|
}
|
|
7156
7158
|
const Pg = new Dt(), Mg = [], so = class extends T0 {
|
|
7157
7159
|
constructor(t) {
|
|
7158
|
-
super(t), this.glConst =
|
|
7160
|
+
super(t), this.glConst = Re.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST;
|
|
7159
7161
|
}
|
|
7160
7162
|
getStackLength() {
|
|
7161
7163
|
const t = this.maskStack[this.maskStack.length - 1];
|
|
@@ -7207,7 +7209,7 @@ w0.extension = {
|
|
|
7207
7209
|
We.add(w0);
|
|
7208
7210
|
class S0 extends T0 {
|
|
7209
7211
|
constructor(e) {
|
|
7210
|
-
super(e), this.glConst =
|
|
7212
|
+
super(e), this.glConst = Re.ADAPTER.getWebGLRenderingContext().STENCIL_TEST;
|
|
7211
7213
|
}
|
|
7212
7214
|
getStackLength() {
|
|
7213
7215
|
const e = this.maskStack[this.maskStack.length - 1];
|
|
@@ -7352,8 +7354,8 @@ class I0 {
|
|
|
7352
7354
|
clear(e, r) {
|
|
7353
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;
|
|
7354
7356
|
if (l) {
|
|
7355
|
-
let { x: f, y: p, width:
|
|
7356
|
-
f = Math.round(f), p = Math.round(p),
|
|
7357
|
+
let { x: f, y: p, width: m, height: c } = this.viewportFrame;
|
|
7358
|
+
f = Math.round(f), p = Math.round(p), m = Math.round(m), c = Math.round(c), this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST), this.renderer.gl.scissor(f, p, m, c);
|
|
7357
7359
|
}
|
|
7358
7360
|
this.renderer.framebuffer.clear(i.red, i.green, i.blue, i.alpha, r), l && this.renderer.scissor.pop();
|
|
7359
7361
|
}
|
|
@@ -7418,18 +7420,18 @@ function KF(t, e) {
|
|
|
7418
7420
|
const a = (f = e.extra) == null ? void 0 : f.transformFeedbackVaryings;
|
|
7419
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)) {
|
|
7420
7422
|
const p = Object.keys(e.attributeData);
|
|
7421
|
-
p.sort((
|
|
7422
|
-
for (let
|
|
7423
|
-
e.attributeData[p[
|
|
7423
|
+
p.sort((m, c) => m > c ? 1 : -1);
|
|
7424
|
+
for (let m = 0; m < p.length; m++)
|
|
7425
|
+
e.attributeData[p[m]].location = m, t.bindAttribLocation(i, m, p[m]);
|
|
7424
7426
|
t.linkProgram(i);
|
|
7425
7427
|
}
|
|
7426
7428
|
t.deleteShader(r), t.deleteShader(n);
|
|
7427
7429
|
const u = {};
|
|
7428
7430
|
for (const p in e.uniformData) {
|
|
7429
|
-
const
|
|
7431
|
+
const m = e.uniformData[p];
|
|
7430
7432
|
u[p] = {
|
|
7431
7433
|
location: t.getUniformLocation(i, p),
|
|
7432
|
-
value: u0(
|
|
7434
|
+
value: u0(m.type, m.size)
|
|
7433
7435
|
};
|
|
7434
7436
|
}
|
|
7435
7437
|
return new jF(i, u);
|
|
@@ -7542,17 +7544,17 @@ function tN(t, e) {
|
|
|
7542
7544
|
`];
|
|
7543
7545
|
for (let u = 0; u < n.length; u++) {
|
|
7544
7546
|
const l = n[u], f = t.uniforms[l.data.name], p = l.data.name;
|
|
7545
|
-
let
|
|
7547
|
+
let m = !1;
|
|
7546
7548
|
for (let c = 0; c < Oi.length; c++) {
|
|
7547
7549
|
const d = Oi[c];
|
|
7548
7550
|
if (d.codeUbo && d.test(l.data, f)) {
|
|
7549
|
-
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)), m = !0;
|
|
7550
7552
|
break;
|
|
7551
7553
|
}
|
|
7552
7554
|
}
|
|
7553
|
-
if (!
|
|
7555
|
+
if (!m)
|
|
7554
7556
|
if (l.data.size > 1) {
|
|
7555
|
-
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), g = c / d, _ = (4 - g % 4) % 4;
|
|
7556
7558
|
a.push(`
|
|
7557
7559
|
cv = ud.${p}.value;
|
|
7558
7560
|
v = uv.${p};
|
|
@@ -7562,7 +7564,7 @@ function tN(t, e) {
|
|
|
7562
7564
|
|
|
7563
7565
|
for(var i=0; i < ${l.data.size * d}; i++)
|
|
7564
7566
|
{
|
|
7565
|
-
for(var j = 0; j < ${
|
|
7567
|
+
for(var j = 0; j < ${g}; j++)
|
|
7566
7568
|
{
|
|
7567
7569
|
data[offset++] = v[t++];
|
|
7568
7570
|
}
|
|
@@ -8134,7 +8136,7 @@ class Wo {
|
|
|
8134
8136
|
this.renderer = e;
|
|
8135
8137
|
}
|
|
8136
8138
|
init(e) {
|
|
8137
|
-
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 || Re.ADAPTER.createCanvas(), this.resolution = e.resolution || Re.RESOLUTION, this.autoDensity = !!e.autoDensity;
|
|
8138
8140
|
}
|
|
8139
8141
|
resizeView(e, r) {
|
|
8140
8142
|
this.element.width = Math.round(e * this.resolution), this.element.height = Math.round(r * this.resolution);
|
|
@@ -8149,7 +8151,7 @@ class Wo {
|
|
|
8149
8151
|
Wo.defaultOptions = {
|
|
8150
8152
|
width: 800,
|
|
8151
8153
|
height: 600,
|
|
8152
|
-
resolution:
|
|
8154
|
+
resolution: Re.RESOLUTION,
|
|
8153
8155
|
autoDensity: !1
|
|
8154
8156
|
};
|
|
8155
8157
|
Wo.extension = {
|
|
@@ -8160,15 +8162,15 @@ Wo.extension = {
|
|
|
8160
8162
|
name: "_view"
|
|
8161
8163
|
};
|
|
8162
8164
|
We.add(Wo);
|
|
8163
|
-
|
|
8164
|
-
|
|
8165
|
-
|
|
8165
|
+
Re.PREFER_ENV = Kn.WEBGL2;
|
|
8166
|
+
Re.STRICT_TEXTURE_CACHE = !1;
|
|
8167
|
+
Re.RENDER_OPTIONS = {
|
|
8166
8168
|
...zo.defaultOptions,
|
|
8167
8169
|
...Ho.defaultOptions,
|
|
8168
8170
|
...Wo.defaultOptions,
|
|
8169
8171
|
...Xo.defaultOptions
|
|
8170
8172
|
};
|
|
8171
|
-
Object.defineProperties(
|
|
8173
|
+
Object.defineProperties(Re, {
|
|
8172
8174
|
WRAP_MODE: {
|
|
8173
8175
|
get() {
|
|
8174
8176
|
return Be.defaultOptions.wrapMode;
|
|
@@ -8427,7 +8429,7 @@ const Qt = class {
|
|
|
8427
8429
|
};
|
|
8428
8430
|
let Tr = Qt;
|
|
8429
8431
|
Tr.targetFPMS = 0.06;
|
|
8430
|
-
Object.defineProperties(
|
|
8432
|
+
Object.defineProperties(Re, {
|
|
8431
8433
|
TARGET_FPMS: {
|
|
8432
8434
|
get() {
|
|
8433
8435
|
return Tr.targetFPMS;
|
|
@@ -8583,7 +8585,7 @@ D0.extension = {
|
|
|
8583
8585
|
We.add(D0);
|
|
8584
8586
|
const Nc = class extends cN {
|
|
8585
8587
|
constructor(t) {
|
|
8586
|
-
super(), this.type = Om.WEBGL, t = Object.assign({},
|
|
8588
|
+
super(), this.type = Om.WEBGL, t = Object.assign({}, Re.RENDER_OPTIONS, t), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new Er({
|
|
8587
8589
|
projectionMatrix: new Dt()
|
|
8588
8590
|
}, !0);
|
|
8589
8591
|
const e = {
|
|
@@ -8853,7 +8855,7 @@ class Ci extends gn {
|
|
|
8853
8855
|
return;
|
|
8854
8856
|
}
|
|
8855
8857
|
try {
|
|
8856
|
-
const n = await
|
|
8858
|
+
const n = await Re.ADAPTER.fetch(this.url, {
|
|
8857
8859
|
mode: this.crossOrigin ? "cors" : "no-cors"
|
|
8858
8860
|
});
|
|
8859
8861
|
if (this.destroyed)
|
|
@@ -8884,12 +8886,12 @@ class Ci extends gn {
|
|
|
8884
8886
|
return !!globalThis.createImageBitmap && typeof ImageBitmap < "u" && (typeof e == "string" || e instanceof ImageBitmap);
|
|
8885
8887
|
}
|
|
8886
8888
|
static get EMPTY() {
|
|
8887
|
-
return Ci._EMPTY = Ci._EMPTY ??
|
|
8889
|
+
return Ci._EMPTY = Ci._EMPTY ?? Re.ADAPTER.createCanvas(0, 0), Ci._EMPTY;
|
|
8888
8890
|
}
|
|
8889
8891
|
}
|
|
8890
8892
|
const oo = class extends gn {
|
|
8891
8893
|
constructor(t, e) {
|
|
8892
|
-
e = e || {}, super(
|
|
8894
|
+
e = e || {}, super(Re.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();
|
|
8893
8895
|
}
|
|
8894
8896
|
load() {
|
|
8895
8897
|
return this._load ? this._load : (this._load = new Promise((t) => {
|
|
@@ -9144,10 +9146,10 @@ let ks = class extends Ve {
|
|
|
9144
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);
|
|
9145
9147
|
else {
|
|
9146
9148
|
const f = e.getFilterTexture();
|
|
9147
|
-
let p = r,
|
|
9149
|
+
let p = r, m = f, c;
|
|
9148
9150
|
const d = this._quality - 1;
|
|
9149
|
-
for (let
|
|
9150
|
-
l = this._kernels[
|
|
9151
|
+
for (let g = 0; g < d; g++)
|
|
9152
|
+
l = this._kernels[g] + 0.5, this.uniforms.uOffset[0] = l * a, this.uniforms.uOffset[1] = l * u, e.applyFilter(this, p, m, 1), c = p, p = m, m = c;
|
|
9151
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);
|
|
9152
9154
|
}
|
|
9153
9155
|
}
|
|
@@ -9253,7 +9255,7 @@ void main() {
|
|
|
9253
9255
|
`;
|
|
9254
9256
|
const G0 = class extends Ve {
|
|
9255
9257
|
constructor(e) {
|
|
9256
|
-
super($0, SN), this.bloomScale = 1, this.brightness = 1, this._resolution =
|
|
9258
|
+
super($0, SN), this.bloomScale = 1, this.brightness = 1, this._resolution = Re.FILTER_RESOLUTION, typeof e == "number" && (e = { threshold: e });
|
|
9257
9259
|
const r = Object.assign(G0.defaults, e);
|
|
9258
9260
|
this.bloomScale = r.bloomScale, this.brightness = r.brightness;
|
|
9259
9261
|
const { kernels: n, blur: i, quality: a, pixelSize: u, resolution: l } = r;
|
|
@@ -9303,7 +9305,7 @@ const G0 = class extends Ve {
|
|
|
9303
9305
|
}
|
|
9304
9306
|
};
|
|
9305
9307
|
let AN = G0;
|
|
9306
|
-
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: Re.FILTER_RESOLUTION };
|
|
9307
9309
|
var EN = `attribute vec2 aVertexPosition;
|
|
9308
9310
|
attribute vec2 aTextureCoord;
|
|
9309
9311
|
|
|
@@ -9623,12 +9625,12 @@ Zn.parse = function() {
|
|
|
9623
9625
|
}
|
|
9624
9626
|
}
|
|
9625
9627
|
function f() {
|
|
9626
|
-
return p() ||
|
|
9628
|
+
return p() || m();
|
|
9627
9629
|
}
|
|
9628
9630
|
function p() {
|
|
9629
9631
|
return G("directional", t.sideOrCorner, 1);
|
|
9630
9632
|
}
|
|
9631
|
-
function
|
|
9633
|
+
function m() {
|
|
9632
9634
|
return G("angular", t.angleValue, 1);
|
|
9633
9635
|
}
|
|
9634
9636
|
function c() {
|
|
@@ -9636,7 +9638,7 @@ Zn.parse = function() {
|
|
|
9636
9638
|
return Q && (H = [], H.push(Q), ge = e, ie(t.comma) && (Q = d(), Q ? H.push(Q) : e = ge)), H;
|
|
9637
9639
|
}
|
|
9638
9640
|
function d() {
|
|
9639
|
-
var H =
|
|
9641
|
+
var H = g() || _();
|
|
9640
9642
|
if (H)
|
|
9641
9643
|
H.at = b();
|
|
9642
9644
|
else {
|
|
@@ -9652,7 +9654,7 @@ Zn.parse = function() {
|
|
|
9652
9654
|
}
|
|
9653
9655
|
return H;
|
|
9654
9656
|
}
|
|
9655
|
-
function
|
|
9657
|
+
function g() {
|
|
9656
9658
|
var H = G("shape", /^(circle)/i, 0);
|
|
9657
9659
|
return H && (H.style = X() || y()), H;
|
|
9658
9660
|
}
|
|
@@ -9752,10 +9754,10 @@ function ON(t) {
|
|
|
9752
9754
|
var f = e[1], p = f === "rgb", a = f.replace(/a$/, "");
|
|
9753
9755
|
i = a;
|
|
9754
9756
|
var u = a === "cmyk" ? 4 : a === "gray" ? 1 : 3;
|
|
9755
|
-
r = e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d,
|
|
9757
|
+
r = e[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(d, g) {
|
|
9756
9758
|
if (/%$/.test(d))
|
|
9757
|
-
return
|
|
9758
|
-
if (a[
|
|
9759
|
+
return g === u ? parseFloat(d) / 100 : a === "rgb" ? parseFloat(d) * 255 / 100 : parseFloat(d);
|
|
9760
|
+
if (a[g] === "h") {
|
|
9759
9761
|
if (/deg$/.test(d))
|
|
9760
9762
|
return parseFloat(d);
|
|
9761
9763
|
if (Fg[d] !== void 0)
|
|
@@ -9764,8 +9766,8 @@ function ON(t) {
|
|
|
9764
9766
|
return parseFloat(d);
|
|
9765
9767
|
}), f === a && r.push(1), n = p || r[u] === void 0 ? 1 : r[u], r = r.slice(0, u);
|
|
9766
9768
|
} else
|
|
9767
|
-
t.length > 10 && /[0-9](?:\s|\/)/.test(t) && (r = t.match(/([0-9]+)/g).map(function(
|
|
9768
|
-
return parseFloat(
|
|
9769
|
+
t.length > 10 && /[0-9](?:\s|\/)/.test(t) && (r = t.match(/([0-9]+)/g).map(function(m) {
|
|
9770
|
+
return parseFloat(m);
|
|
9769
9771
|
}), i = t.match(/([a-z])/ig).join("").toLowerCase());
|
|
9770
9772
|
else
|
|
9771
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]);
|
|
@@ -10206,11 +10208,11 @@ void main(void){
|
|
|
10206
10208
|
};
|
|
10207
10209
|
const Dc = class extends Ve {
|
|
10208
10210
|
constructor(e) {
|
|
10209
|
-
super(), this.angle = 45, this._distance = 5, this._resolution =
|
|
10211
|
+
super(), this.angle = 45, this._distance = 5, this._resolution = Re.FILTER_RESOLUTION;
|
|
10210
10212
|
const r = e ? Ug(Ug({}, Dc.defaults), e) : Dc.defaults, { kernels: n, blur: i, quality: a, pixelSize: u, resolution: l } = r;
|
|
10211
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;
|
|
10212
|
-
const { shadowOnly: f, rotation: p, distance:
|
|
10213
|
-
this.shadowOnly = f, p !== void 0 &&
|
|
10214
|
+
const { shadowOnly: f, rotation: p, distance: m, offset: c, alpha: d, color: g } = r;
|
|
10215
|
+
this.shadowOnly = f, p !== void 0 && m !== void 0 ? (this.rotation = p, this.distance = m) : this.offset = c, this.alpha = d, this.color = g;
|
|
10214
10216
|
}
|
|
10215
10217
|
apply(e, r, n, i) {
|
|
10216
10218
|
const a = e.getFilterTexture();
|
|
@@ -10285,7 +10287,7 @@ const Dc = class extends Ve {
|
|
|
10285
10287
|
}
|
|
10286
10288
|
};
|
|
10287
10289
|
let l3 = Dc;
|
|
10288
|
-
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: Re.FILTER_RESOLUTION };
|
|
10289
10291
|
var c3 = `attribute vec2 aVertexPosition;
|
|
10290
10292
|
attribute vec2 aTextureCoord;
|
|
10291
10293
|
|
|
@@ -11785,10 +11787,10 @@ const Qn = (t) => {
|
|
|
11785
11787
|
gamma: l = 1,
|
|
11786
11788
|
green: f = 1,
|
|
11787
11789
|
blurRadius: p = 0,
|
|
11788
|
-
temperature:
|
|
11790
|
+
temperature: m = 0,
|
|
11789
11791
|
hue: c = 0,
|
|
11790
11792
|
sharpness: d = 0,
|
|
11791
|
-
vignette:
|
|
11793
|
+
vignette: g = 0,
|
|
11792
11794
|
noise: _ = 0
|
|
11793
11795
|
// outline = 0,
|
|
11794
11796
|
// outlineColor = 0x000000,
|
|
@@ -11809,7 +11811,7 @@ const Qn = (t) => {
|
|
|
11809
11811
|
}
|
|
11810
11812
|
`
|
|
11811
11813
|
);
|
|
11812
|
-
y.uniforms.temperature =
|
|
11814
|
+
y.uniforms.temperature = m;
|
|
11813
11815
|
const b = new e3([
|
|
11814
11816
|
0,
|
|
11815
11817
|
-d,
|
|
@@ -11823,7 +11825,7 @@ const Qn = (t) => {
|
|
|
11823
11825
|
]), x = new er.filters.ColorMatrixFilter();
|
|
11824
11826
|
x.hue(c, !1);
|
|
11825
11827
|
const E = new ks(p, 1, !0), w = new Y0({
|
|
11826
|
-
vignetting:
|
|
11828
|
+
vignetting: g
|
|
11827
11829
|
}), I = new er.filters.NoiseFilter(_);
|
|
11828
11830
|
return {
|
|
11829
11831
|
adjustmentFilter: new _N({
|
|
@@ -11904,10 +11906,10 @@ const Qn = (t) => {
|
|
|
11904
11906
|
x: l,
|
|
11905
11907
|
y: f,
|
|
11906
11908
|
width: p,
|
|
11907
|
-
height:
|
|
11909
|
+
height: m,
|
|
11908
11910
|
anchor: c,
|
|
11909
11911
|
colorCorrection: d = {},
|
|
11910
|
-
effect:
|
|
11912
|
+
effect: g
|
|
11911
11913
|
},
|
|
11912
11914
|
pointerdown: _
|
|
11913
11915
|
} = t, {
|
|
@@ -11927,12 +11929,12 @@ const Qn = (t) => {
|
|
|
11927
11929
|
} = Qn(d), { nightVisionFilter: D } = W3();
|
|
11928
11930
|
return te.useEffect(() => (console.log("PixiImageSprite mounting"), () => {
|
|
11929
11931
|
console.log("PixiImageSprite unmounting");
|
|
11930
|
-
}), []), console.log("imageRef", r.current), /* @__PURE__ */
|
|
11932
|
+
}), []), console.log("imageRef", r.current), /* @__PURE__ */ Ee.jsx(vn, { ...t, ref: e, children: /* @__PURE__ */ Ee.jsx(wt, { ref: n, children: /* @__PURE__ */ Ee.jsx(
|
|
11931
11933
|
Bs,
|
|
11932
11934
|
{
|
|
11933
11935
|
image: i,
|
|
11934
11936
|
width: p,
|
|
11935
|
-
height:
|
|
11937
|
+
height: m,
|
|
11936
11938
|
anchor: c,
|
|
11937
11939
|
ref: r,
|
|
11938
11940
|
alpha: a ? 1 : 0,
|
|
@@ -11947,7 +11949,7 @@ const Qn = (t) => {
|
|
|
11947
11949
|
// conditionally add blur filter
|
|
11948
11950
|
...y > 0 ? [O] : [],
|
|
11949
11951
|
// conditionally add night vision filter
|
|
11950
|
-
...
|
|
11952
|
+
...g === Un.NightVision ? [D] : [],
|
|
11951
11953
|
// conditionally add vignette filter
|
|
11952
11954
|
...b > 0 ? [N] : [],
|
|
11953
11955
|
// conditionally add noise filter
|
|
@@ -11987,21 +11989,21 @@ const Eo = {
|
|
|
11987
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;
|
|
11988
11990
|
return;
|
|
11989
11991
|
}
|
|
11990
|
-
let
|
|
11992
|
+
let m = 0, c = f * 4 + (i ? 2 : 0) + 2, d = c, g = p;
|
|
11991
11993
|
{
|
|
11992
11994
|
const _ = i + u, y = a, b = r + _, x = r - _, E = n + y;
|
|
11993
|
-
if (e[
|
|
11995
|
+
if (e[m++] = b, e[m++] = E, e[--c] = E, e[--c] = x, a) {
|
|
11994
11996
|
const w = n - y;
|
|
11995
|
-
e[d++] = x, e[d++] = w, e[--
|
|
11997
|
+
e[d++] = x, e[d++] = w, e[--g] = w, e[--g] = b;
|
|
11996
11998
|
}
|
|
11997
11999
|
}
|
|
11998
12000
|
for (let _ = 1; _ < f; _++) {
|
|
11999
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;
|
|
12000
|
-
e[
|
|
12002
|
+
e[m++] = E, e[m++] = I, e[--c] = I, e[--c] = w, e[d++] = w, e[d++] = O, e[--g] = O, e[--g] = E;
|
|
12001
12003
|
}
|
|
12002
12004
|
{
|
|
12003
12005
|
const _ = i, y = a + l, b = r + _, x = r - _, E = n + y, w = n - y;
|
|
12004
|
-
e[
|
|
12006
|
+
e[m++] = b, e[m++] = E, e[--g] = w, e[--g] = b, i && (e[m++] = x, e[m++] = E, e[--g] = w, e[--g] = x);
|
|
12005
12007
|
}
|
|
12006
12008
|
},
|
|
12007
12009
|
triangulate(t, e) {
|
|
@@ -12012,16 +12014,16 @@ const Eo = {
|
|
|
12012
12014
|
const u = a;
|
|
12013
12015
|
let l, f;
|
|
12014
12016
|
if (t.type !== Ct.RREC) {
|
|
12015
|
-
const
|
|
12016
|
-
l =
|
|
12017
|
+
const m = t.shape;
|
|
12018
|
+
l = m.x, f = m.y;
|
|
12017
12019
|
} else {
|
|
12018
|
-
const
|
|
12019
|
-
l =
|
|
12020
|
+
const m = t.shape;
|
|
12021
|
+
l = m.x + m.width / 2, f = m.y + m.height / 2;
|
|
12020
12022
|
}
|
|
12021
12023
|
const p = t.matrix;
|
|
12022
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]);
|
|
12023
|
-
for (let
|
|
12024
|
-
n.push(r[
|
|
12025
|
+
for (let m = 2; m < r.length; m += 2)
|
|
12026
|
+
n.push(r[m], r[m + 1]), i.push(a++, u, a);
|
|
12025
12027
|
i.push(u + 1, u, a);
|
|
12026
12028
|
}
|
|
12027
12029
|
};
|
|
@@ -12053,8 +12055,8 @@ const rv = {
|
|
|
12053
12055
|
Hg(r, !1);
|
|
12054
12056
|
const u = [];
|
|
12055
12057
|
for (let p = 0; p < n.length; p++) {
|
|
12056
|
-
const
|
|
12057
|
-
Hg(
|
|
12058
|
+
const m = n[p];
|
|
12059
|
+
Hg(m.points, !0), u.push(r.length / 2), r = r.concat(m.points);
|
|
12058
12060
|
}
|
|
12059
12061
|
const l = MP(r, u, 2);
|
|
12060
12062
|
if (!l)
|
|
@@ -12102,23 +12104,23 @@ const Bi = {
|
|
|
12102
12104
|
};
|
|
12103
12105
|
class zg {
|
|
12104
12106
|
static curveTo(e, r, n, i, a, u) {
|
|
12105
|
-
const l = u[u.length - 2], p = u[u.length - 1] - r,
|
|
12106
|
-
if (
|
|
12107
|
+
const l = u[u.length - 2], p = u[u.length - 1] - r, m = l - e, c = i - r, d = n - e, g = Math.abs(p * d - m * c);
|
|
12108
|
+
if (g < 1e-8 || a === 0)
|
|
12107
12109
|
return (u[u.length - 2] !== e || u[u.length - 1] !== r) && u.push(e, r), null;
|
|
12108
|
-
const _ = p * p +
|
|
12110
|
+
const _ = p * p + m * m, y = c * c + d * d, b = p * c + m * d, x = a * Math.sqrt(_) / g, E = a * Math.sqrt(y) / g, w = x * b / _, I = E * b / y, O = x * d + E * m, F = x * c + E * p, N = m * (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);
|
|
12109
12111
|
return {
|
|
12110
12112
|
cx: O + e,
|
|
12111
12113
|
cy: F + r,
|
|
12112
12114
|
radius: a,
|
|
12113
12115
|
startAngle: Y,
|
|
12114
12116
|
endAngle: se,
|
|
12115
|
-
anticlockwise:
|
|
12117
|
+
anticlockwise: m * c > d * p
|
|
12116
12118
|
};
|
|
12117
12119
|
}
|
|
12118
12120
|
static arc(e, r, n, i, a, u, l, f, p) {
|
|
12119
|
-
const
|
|
12121
|
+
const m = l - u, c = Bi._segmentsCount(Math.abs(m) * a, Math.ceil(Math.abs(m) / So) * 40), d = m / (c * 2), g = d * 2, _ = Math.cos(d), y = Math.sin(d), b = c - 1, x = b % 1 / b;
|
|
12120
12122
|
for (let E = 0; E <= b; ++E) {
|
|
12121
|
-
const w = E + x * E, I = d + u +
|
|
12123
|
+
const w = E + x * E, I = d + u + g * w, O = Math.cos(I), F = -Math.sin(I);
|
|
12122
12124
|
p.push((_ * O + y * F) * a + n, (_ * -F + y * O) * a + i);
|
|
12123
12125
|
}
|
|
12124
12126
|
}
|
|
@@ -12139,34 +12141,34 @@ class K3 {
|
|
|
12139
12141
|
}
|
|
12140
12142
|
class mh {
|
|
12141
12143
|
static curveLength(e, r, n, i, a, u, l, f) {
|
|
12142
|
-
let
|
|
12144
|
+
let m = 0, c = 0, d = 0, g = 0, _ = 0, y = 0, b = 0, x = 0, E = 0, w = 0, I = 0, O = e, F = r;
|
|
12143
12145
|
for (let N = 1; N <= 10; ++N)
|
|
12144
|
-
c = N / 10, d = c * c,
|
|
12145
|
-
return
|
|
12146
|
+
c = N / 10, d = c * c, g = d * c, _ = 1 - c, y = _ * _, b = y * _, x = b * e + 3 * y * c * n + 3 * _ * d * a + g * l, E = b * r + 3 * y * c * i + 3 * _ * d * u + g * f, w = O - x, I = F - E, O = x, F = E, m += Math.sqrt(w * w + I * I);
|
|
12147
|
+
return m;
|
|
12146
12148
|
}
|
|
12147
12149
|
static curveTo(e, r, n, i, a, u, l) {
|
|
12148
12150
|
const f = l[l.length - 2], p = l[l.length - 1];
|
|
12149
12151
|
l.length -= 2;
|
|
12150
|
-
const
|
|
12151
|
-
let c = 0, d = 0,
|
|
12152
|
+
const m = Bi._segmentsCount(mh.curveLength(f, p, e, r, n, i, a, u));
|
|
12153
|
+
let c = 0, d = 0, g = 0, _ = 0, y = 0;
|
|
12152
12154
|
l.push(f, p);
|
|
12153
|
-
for (let b = 1, x = 0; b <=
|
|
12154
|
-
x = b /
|
|
12155
|
+
for (let b = 1, x = 0; b <= m; ++b)
|
|
12156
|
+
x = b / m, c = 1 - x, d = c * c, g = d * c, _ = x * x, y = _ * x, l.push(g * f + 3 * d * x * e + 3 * c * _ * n + y * a, g * p + 3 * d * x * r + 3 * c * _ * i + y * u);
|
|
12155
12157
|
}
|
|
12156
12158
|
}
|
|
12157
12159
|
function Vg(t, e, r, n, i, a, u, l) {
|
|
12158
|
-
const f = t - r * i, p = e - n * i,
|
|
12159
|
-
let d,
|
|
12160
|
-
u ? (d = n,
|
|
12161
|
-
const _ = f + d, y = p +
|
|
12160
|
+
const f = t - r * i, p = e - n * i, m = t + r * a, c = e + n * a;
|
|
12161
|
+
let d, g;
|
|
12162
|
+
u ? (d = n, g = -r) : (d = -n, g = r);
|
|
12163
|
+
const _ = f + d, y = p + g, b = m + d, x = c + g;
|
|
12162
12164
|
return l.push(_, y, b, x), 2;
|
|
12163
12165
|
}
|
|
12164
12166
|
function On(t, e, r, n, i, a, u, l) {
|
|
12165
12167
|
const f = r - t, p = n - e;
|
|
12166
|
-
let
|
|
12167
|
-
l &&
|
|
12168
|
-
let d =
|
|
12169
|
-
const
|
|
12168
|
+
let m = Math.atan2(f, p), c = Math.atan2(i - t, a - e);
|
|
12169
|
+
l && m < c ? m += Math.PI * 2 : !l && m > c && (c += Math.PI * 2);
|
|
12170
|
+
let d = m;
|
|
12171
|
+
const g = c - m, _ = Math.abs(g), y = Math.sqrt(f * f + p * p), b = (15 * _ * Math.sqrt(y) / Math.PI >> 0) + 1, x = g / b;
|
|
12170
12172
|
if (d += x, l) {
|
|
12171
12173
|
u.push(t, e, r, n);
|
|
12172
12174
|
for (let E = 1, w = d; E < b; E++, w += x)
|
|
@@ -12192,55 +12194,55 @@ function Z3(t, e) {
|
|
|
12192
12194
|
const H = (u.x + l.x) * 0.5, Q = (l.y + u.y) * 0.5;
|
|
12193
12195
|
n.unshift(H, Q), n.push(H, Q);
|
|
12194
12196
|
}
|
|
12195
|
-
const
|
|
12197
|
+
const m = e.points, c = n.length / 2;
|
|
12196
12198
|
let d = n.length;
|
|
12197
|
-
const
|
|
12199
|
+
const g = m.length / 2, _ = a.width / 2, y = _ * _, b = a.miterLimit * a.miterLimit;
|
|
12198
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);
|
|
12199
12201
|
N /= Y, L /= Y, N *= _, L *= _;
|
|
12200
12202
|
const se = a.alignment, X = (1 - se) * 2, G = se * 2;
|
|
12201
|
-
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, m, !0) + 2 : a.cap === Hn.SQUARE && (d += Vg(x, E, N, L, X, G, !0, m))), m.push(x - N * X, E - L * X, x + N * G, E + L * G);
|
|
12202
12204
|
for (let H = 1; H < c - 1; ++H) {
|
|
12203
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 *= _;
|
|
12204
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;
|
|
12205
12207
|
if (Math.abs(he) < 1e-3 * Math.abs(le)) {
|
|
12206
|
-
|
|
12208
|
+
m.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, m, !1) + 4 : d += 2, m.push(w - D * G, I - V * G, w + D * X, I + V * X));
|
|
12207
12209
|
continue;
|
|
12208
12210
|
}
|
|
12209
|
-
const fe = (-N + x) * (-L + I) - (-N + w) * (-L + E),
|
|
12211
|
+
const fe = (-N + x) * (-L + I) - (-N + w) * (-L + E), we = (-D + O) * (-V + I) - (-D + w) * (-V + F), Ue = (Q * we - W * fe) / he, He = (j * fe - ge * we) / he, je = (Ue - w) * (Ue - w) + (He - I) * (He - I), be = w + (Ue - w) * X, Ce = I + (He - I) * X, $e = w - (Ue - w) * G, Ke = I - (He - I) * G, Ae = Math.min(Q * Q + ge * ge, W * W + j * j), _e = me ? X : G, rt = Ae + _e * _e * y, ce = je <= rt;
|
|
12210
12212
|
let Oe = a.join;
|
|
12211
12213
|
if (Oe === yr.MITER && je / y > b && (Oe = yr.BEVEL), ce)
|
|
12212
12214
|
switch (Oe) {
|
|
12213
12215
|
case yr.MITER: {
|
|
12214
|
-
|
|
12216
|
+
m.push(be, Ce, $e, Ke);
|
|
12215
12217
|
break;
|
|
12216
12218
|
}
|
|
12217
12219
|
case yr.BEVEL: {
|
|
12218
|
-
me ?
|
|
12220
|
+
me ? m.push(be, Ce, w + N * G, I + L * G, be, Ce, w + D * G, I + V * G) : m.push(w - N * X, I - L * X, $e, Ke, w - D * X, I - V * X, $e, Ke), d += 2;
|
|
12219
12221
|
break;
|
|
12220
12222
|
}
|
|
12221
12223
|
case yr.ROUND: {
|
|
12222
|
-
me ? (
|
|
12224
|
+
me ? (m.push(be, Ce, w + N * G, I + L * G), d += On(w, I, w + N * G, I + L * G, w + D * G, I + V * G, m, !0) + 4, m.push(be, Ce, w + D * G, I + V * G)) : (m.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, m, !1) + 4, m.push(w - D * X, I - V * X, $e, Ke));
|
|
12223
12225
|
break;
|
|
12224
12226
|
}
|
|
12225
12227
|
}
|
|
12226
12228
|
else {
|
|
12227
|
-
switch (
|
|
12229
|
+
switch (m.push(w - N * X, I - L * X, w + N * G, I + L * G), Oe) {
|
|
12228
12230
|
case yr.MITER: {
|
|
12229
|
-
me ?
|
|
12231
|
+
me ? m.push($e, Ke, $e, Ke) : m.push(be, Ce, be, Ce), d += 2;
|
|
12230
12232
|
break;
|
|
12231
12233
|
}
|
|
12232
12234
|
case yr.ROUND: {
|
|
12233
|
-
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, m, !0) + 2 : d += On(w, I, w - N * X, I - L * X, w - D * X, I - V * X, m, !1) + 2;
|
|
12234
12236
|
break;
|
|
12235
12237
|
}
|
|
12236
12238
|
}
|
|
12237
|
-
|
|
12239
|
+
m.push(w - D * X, I - V * X, w + D * G, I + V * G), d += 2;
|
|
12238
12240
|
}
|
|
12239
12241
|
}
|
|
12240
|
-
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 *= _, m.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, m, !1) + 2 : a.cap === Hn.SQUARE && (d += Vg(w, I, N, L, X, G, !1, m)));
|
|
12241
12243
|
const ie = e.indices, re = Bi.epsilon * Bi.epsilon;
|
|
12242
|
-
for (let H =
|
|
12243
|
-
x =
|
|
12244
|
+
for (let H = g; H < d + g - 2; ++H)
|
|
12245
|
+
x = m[H * 2], E = m[H * 2 + 1], w = m[(H + 1) * 2], I = m[(H + 1) * 2 + 1], O = m[(H + 2) * 2], F = m[(H + 2) * 2 + 1], !(Math.abs(x * (I - F) + w * (F - E) + O * (E - I)) < re) && ie.push(H, H + 1, H + 2);
|
|
12244
12246
|
}
|
|
12245
12247
|
function Q3(t, e) {
|
|
12246
12248
|
let r = 0;
|
|
@@ -12248,25 +12250,25 @@ function Q3(t, e) {
|
|
|
12248
12250
|
if (i.length === 0)
|
|
12249
12251
|
return;
|
|
12250
12252
|
const u = e.points, l = e.indices, f = i.length / 2, p = u.length / 2;
|
|
12251
|
-
let
|
|
12253
|
+
let m = p;
|
|
12252
12254
|
for (u.push(i[0], i[1]), r = 1; r < f; r++)
|
|
12253
|
-
u.push(i[r * 2], i[r * 2 + 1]), l.push(
|
|
12254
|
-
a && l.push(
|
|
12255
|
+
u.push(i[r * 2], i[r * 2 + 1]), l.push(m, m + 1), m++;
|
|
12256
|
+
a && l.push(m, p);
|
|
12255
12257
|
}
|
|
12256
12258
|
function Xg(t, e) {
|
|
12257
12259
|
t.lineStyle.native ? Q3(t, e) : Z3(t, e);
|
|
12258
12260
|
}
|
|
12259
12261
|
class vh {
|
|
12260
12262
|
static curveLength(e, r, n, i, a, u) {
|
|
12261
|
-
const l = e - 2 * n + a, f = r - 2 * i + u, p = 2 * n - 2 * e,
|
|
12262
|
-
return (b * _ + y * d * (_ - x) + (4 *
|
|
12263
|
+
const l = e - 2 * n + a, f = r - 2 * i + u, p = 2 * n - 2 * e, m = 2 * i - 2 * r, c = 4 * (l * l + f * f), d = 4 * (l * p + f * m), g = p * p + m * m, _ = 2 * Math.sqrt(c + d + g), y = Math.sqrt(c), b = 2 * c * y, x = 2 * Math.sqrt(g), E = d / y;
|
|
12264
|
+
return (b * _ + y * d * (_ - x) + (4 * g * c - d * d) * Math.log((2 * y + E + _) / (E + x))) / (4 * b);
|
|
12263
12265
|
}
|
|
12264
12266
|
static curveTo(e, r, n, i, a) {
|
|
12265
12267
|
const u = a[a.length - 2], l = a[a.length - 1], f = Bi._segmentsCount(vh.curveLength(u, l, e, r, n, i));
|
|
12266
|
-
let p = 0,
|
|
12268
|
+
let p = 0, m = 0;
|
|
12267
12269
|
for (let c = 1; c <= f; ++c) {
|
|
12268
12270
|
const d = c / f;
|
|
12269
|
-
p = u + (e - u) * d,
|
|
12271
|
+
p = u + (e - u) * d, m = l + (r - l) * d, a.push(p + (e + (n - e) * d - p) * d, m + (r + (i - r) * d - m) * d);
|
|
12270
12272
|
}
|
|
12271
12273
|
}
|
|
12272
12274
|
}
|
|
@@ -12294,8 +12296,8 @@ class Uc {
|
|
|
12294
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);
|
|
12295
12297
|
}
|
|
12296
12298
|
addPointMatrix(e, r) {
|
|
12297
|
-
const { a: n, b: i, c: a, d: u, tx: l, ty: f } = e, p = n * r.x + a * r.y + l,
|
|
12298
|
-
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, m = 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, m), this.maxY = Math.max(this.maxY, m);
|
|
12299
12301
|
}
|
|
12300
12302
|
addQuad(e) {
|
|
12301
12303
|
let r = this.minX, n = this.minY, i = this.maxX, a = this.maxY, u = e[0], l = e[1];
|
|
@@ -12305,15 +12307,15 @@ class Uc {
|
|
|
12305
12307
|
this.addFrameMatrix(e.worldTransform, r, n, i, a);
|
|
12306
12308
|
}
|
|
12307
12309
|
addFrameMatrix(e, r, n, i, a) {
|
|
12308
|
-
const u = e.a, l = e.b, f = e.c, p = e.d,
|
|
12309
|
-
let d = this.minX,
|
|
12310
|
-
d = b < d ? b : d,
|
|
12310
|
+
const u = e.a, l = e.b, f = e.c, p = e.d, m = e.tx, c = e.ty;
|
|
12311
|
+
let d = this.minX, g = this.minY, _ = this.maxX, y = this.maxY, b = u * r + f * n + m, x = l * r + p * n + c;
|
|
12312
|
+
d = b < d ? b : d, g = x < g ? x : g, _ = b > _ ? b : _, y = x > y ? x : y, b = u * i + f * n + m, x = l * i + p * n + c, d = b < d ? b : d, g = x < g ? x : g, _ = b > _ ? b : _, y = x > y ? x : y, b = u * r + f * a + m, x = l * r + p * a + c, d = b < d ? b : d, g = x < g ? x : g, _ = b > _ ? b : _, y = x > y ? x : y, b = u * i + f * a + m, x = l * i + p * a + c, d = b < d ? b : d, g = x < g ? x : g, _ = b > _ ? b : _, y = x > y ? x : y, this.minX = d, this.minY = g, this.maxX = _, this.maxY = y;
|
|
12311
12313
|
}
|
|
12312
12314
|
addVertexData(e, r, n) {
|
|
12313
12315
|
let i = this.minX, a = this.minY, u = this.maxX, l = this.maxY;
|
|
12314
12316
|
for (let f = r; f < n; f += 2) {
|
|
12315
|
-
const p = e[f],
|
|
12316
|
-
i = p < i ? p : i, a =
|
|
12317
|
+
const p = e[f], m = e[f + 1];
|
|
12318
|
+
i = p < i ? p : i, a = m < a ? m : a, u = p > u ? p : u, l = m > l ? m : l;
|
|
12317
12319
|
}
|
|
12318
12320
|
this.minX = i, this.minY = a, this.maxX = u, this.maxY = l;
|
|
12319
12321
|
}
|
|
@@ -12321,13 +12323,13 @@ class Uc {
|
|
|
12321
12323
|
this.addVerticesMatrix(e.worldTransform, r, n, i);
|
|
12322
12324
|
}
|
|
12323
12325
|
addVerticesMatrix(e, r, n, i, a = 0, u = a) {
|
|
12324
|
-
const l = e.a, f = e.b, p = e.c,
|
|
12325
|
-
let
|
|
12326
|
+
const l = e.a, f = e.b, p = e.c, m = e.d, c = e.tx, d = e.ty;
|
|
12327
|
+
let g = this.minX, _ = this.minY, y = this.maxX, b = this.maxY;
|
|
12326
12328
|
for (let x = n; x < i; x += 2) {
|
|
12327
|
-
const E = r[x], w = r[x + 1], I = l * E + p * w + c, O =
|
|
12328
|
-
|
|
12329
|
+
const E = r[x], w = r[x + 1], I = l * E + p * w + c, O = m * w + f * E + d;
|
|
12330
|
+
g = Math.min(g, I - a), y = Math.max(y, I + a), _ = Math.min(_, O - u), b = Math.max(b, O + u);
|
|
12329
12331
|
}
|
|
12330
|
-
this.minX =
|
|
12332
|
+
this.minX = g, this.minY = _, this.maxX = y, this.maxY = b;
|
|
12331
12333
|
}
|
|
12332
12334
|
addBounds(e) {
|
|
12333
12335
|
const r = this.minX, n = this.minY, i = this.maxX, a = this.maxY;
|
|
@@ -12336,8 +12338,8 @@ class Uc {
|
|
|
12336
12338
|
addBoundsMask(e, r) {
|
|
12337
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;
|
|
12338
12340
|
if (n <= a && i <= u) {
|
|
12339
|
-
const l = this.minX, f = this.minY, p = this.maxX,
|
|
12340
|
-
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, m = this.maxY;
|
|
12342
|
+
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u > m ? u : m;
|
|
12341
12343
|
}
|
|
12342
12344
|
}
|
|
12343
12345
|
addBoundsMatrix(e, r) {
|
|
@@ -12346,8 +12348,8 @@ class Uc {
|
|
|
12346
12348
|
addBoundsArea(e, r) {
|
|
12347
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;
|
|
12348
12350
|
if (n <= a && i <= u) {
|
|
12349
|
-
const l = this.minX, f = this.minY, p = this.maxX,
|
|
12350
|
-
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, m = this.maxY;
|
|
12352
|
+
this.minX = n < l ? n : l, this.minY = i < f ? i : f, this.maxX = a > p ? a : p, this.maxY = u > m ? u : m;
|
|
12351
12353
|
}
|
|
12352
12354
|
}
|
|
12353
12355
|
pad(e = 0, r = e) {
|
|
@@ -12703,7 +12705,7 @@ const $c = class extends Ui {
|
|
|
12703
12705
|
let $i = $c;
|
|
12704
12706
|
$i.defaultSortableChildren = !1;
|
|
12705
12707
|
$i.prototype.containerUpdateTransform = $i.prototype.updateTransform;
|
|
12706
|
-
Object.defineProperties(
|
|
12708
|
+
Object.defineProperties(Re, {
|
|
12707
12709
|
SORTABLE_CHILDREN: {
|
|
12708
12710
|
get() {
|
|
12709
12711
|
return $i.defaultSortableChildren;
|
|
@@ -12793,16 +12795,16 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12793
12795
|
this.batches.length > 0 && (r = this.batches[this.batches.length - 1], n = r.style);
|
|
12794
12796
|
for (let l = this.shapeIndex; l < e.length; l++) {
|
|
12795
12797
|
this.shapeIndex++;
|
|
12796
|
-
const f = e[l], p = f.fillStyle,
|
|
12797
|
-
ec[f.type].build(f), f.matrix && this.transformPoints(f.points, f.matrix), (p.visible ||
|
|
12798
|
+
const f = e[l], p = f.fillStyle, m = f.lineStyle;
|
|
12799
|
+
ec[f.type].build(f), f.matrix && this.transformPoints(f.points, f.matrix), (p.visible || m.visible) && this.processHoles(f.holes);
|
|
12798
12800
|
for (let d = 0; d < 2; d++) {
|
|
12799
|
-
const
|
|
12800
|
-
if (!
|
|
12801
|
+
const g = d === 0 ? p : m;
|
|
12802
|
+
if (!g.visible)
|
|
12801
12803
|
continue;
|
|
12802
|
-
const _ =
|
|
12804
|
+
const _ = g.texture.baseTexture, y = this.indices.length, b = this.points.length / 2;
|
|
12803
12805
|
_.wrapMode = Rs.REPEAT, d === 0 ? this.processFill(f) : this.processLine(f);
|
|
12804
12806
|
const x = this.points.length / 2 - b;
|
|
12805
|
-
x !== 0 && (r && !this._compareStyles(n,
|
|
12807
|
+
x !== 0 && (r && !this._compareStyles(n, g) && (r.end(y, b), r = null), r || (r = Wg.pop() || new K3(), r.begin(g, y, b), this.batches.push(r), n = g), this.addUvs(this.points, t, g.texture, b, x, g.matrix));
|
|
12806
12808
|
}
|
|
12807
12809
|
}
|
|
12808
12810
|
const i = this.indices.length, a = this.points.length / 2;
|
|
@@ -12848,17 +12850,17 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12848
12850
|
}
|
|
12849
12851
|
buildDrawCalls() {
|
|
12850
12852
|
let t = ++Be._globalBatch;
|
|
12851
|
-
for (let
|
|
12852
|
-
this.drawCalls[
|
|
12853
|
+
for (let m = 0; m < this.drawCalls.length; m++)
|
|
12854
|
+
this.drawCalls[m].texArray.clear(), to.push(this.drawCalls[m]);
|
|
12853
12855
|
this.drawCalls.length = 0;
|
|
12854
12856
|
const e = this.colors, r = this.textureIds;
|
|
12855
12857
|
let n = to.pop();
|
|
12856
12858
|
n || (n = new Rc(), n.texArray = new Mc()), n.texArray.count = 0, n.start = 0, n.size = 0, n.type = dn.TRIANGLES;
|
|
12857
12859
|
let i = 0, a = null, u = 0, l = !1, f = dn.TRIANGLES, p = 0;
|
|
12858
12860
|
this.drawCalls.push(n);
|
|
12859
|
-
for (let
|
|
12860
|
-
const c = this.batches[
|
|
12861
|
-
l !== !!
|
|
12861
|
+
for (let m = 0; m < this.batches.length; m++) {
|
|
12862
|
+
const c = this.batches[m], d = 8, g = c.style, _ = g.texture.baseTexture;
|
|
12863
|
+
l !== !!g.native && (l = !!g.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, g.color, g.alpha, c.attribSize, c.attribStart), this.addTextureIds(r, u, c.attribSize, c.attribStart);
|
|
12862
12864
|
}
|
|
12863
12865
|
Be._globalBatch = t, this.packAttributes();
|
|
12864
12866
|
}
|
|
@@ -12908,24 +12910,24 @@ const xi = new Je(), nv = class extends i0 {
|
|
|
12908
12910
|
let u = 0;
|
|
12909
12911
|
const l = e.length, f = r.frame;
|
|
12910
12912
|
for (; u < i; ) {
|
|
12911
|
-
let
|
|
12913
|
+
let m = t[(n + u) * 2], c = t[(n + u) * 2 + 1];
|
|
12912
12914
|
if (a) {
|
|
12913
|
-
const d = a.a *
|
|
12914
|
-
c = a.b *
|
|
12915
|
+
const d = a.a * m + a.c * c + a.tx;
|
|
12916
|
+
c = a.b * m + a.d * c + a.ty, m = d;
|
|
12915
12917
|
}
|
|
12916
|
-
u++, e.push(
|
|
12918
|
+
u++, e.push(m / f.width, c / f.height);
|
|
12917
12919
|
}
|
|
12918
12920
|
const p = r.baseTexture;
|
|
12919
12921
|
(f.width < p.width || f.height < p.height) && this.adjustUvs(e, r, l, i);
|
|
12920
12922
|
}
|
|
12921
12923
|
adjustUvs(t, e, r, n) {
|
|
12922
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;
|
|
12923
|
-
let
|
|
12925
|
+
let m = l.x / l.width, c = l.y / l.height, d = Math.floor(t[r] + a), g = Math.floor(t[r + 1] + a);
|
|
12924
12926
|
for (let _ = r + 2; _ < u; _ += 2)
|
|
12925
|
-
d = Math.min(d, Math.floor(t[_] + a)),
|
|
12926
|
-
|
|
12927
|
+
d = Math.min(d, Math.floor(t[_] + a)), g = Math.min(g, Math.floor(t[_ + 1] + a));
|
|
12928
|
+
m -= d, c -= g;
|
|
12927
12929
|
for (let _ = r; _ < u; _ += 2)
|
|
12928
|
-
t[_] = (t[_] +
|
|
12930
|
+
t[_] = (t[_] + m) * f, t[_ + 1] = (t[_ + 1] + c) * p;
|
|
12929
12931
|
}
|
|
12930
12932
|
};
|
|
12931
12933
|
let iv = nv;
|
|
@@ -13037,8 +13039,8 @@ const tc = {}, lo = class extends $i {
|
|
|
13037
13039
|
this._initCurve(t, e);
|
|
13038
13040
|
const a = this.currentPath.points, u = zg.curveTo(t, e, r, n, i, a);
|
|
13039
13041
|
if (u) {
|
|
13040
|
-
const { cx: l, cy: f, radius: p, startAngle:
|
|
13041
|
-
this.arc(l, f, p,
|
|
13042
|
+
const { cx: l, cy: f, radius: p, startAngle: m, endAngle: c, anticlockwise: d } = u;
|
|
13043
|
+
this.arc(l, f, p, m, c, d);
|
|
13042
13044
|
}
|
|
13043
13045
|
return this;
|
|
13044
13046
|
}
|
|
@@ -13048,13 +13050,13 @@ const tc = {}, lo = class extends $i {
|
|
|
13048
13050
|
if (!a && i <= n ? i += So : a && n <= i && (n += So), i - n === 0)
|
|
13049
13051
|
return this;
|
|
13050
13052
|
const l = t + Math.cos(n) * r, f = e + Math.sin(n) * r, p = this._geometry.closePointEps;
|
|
13051
|
-
let
|
|
13052
|
-
if (
|
|
13053
|
-
const c = Math.abs(
|
|
13054
|
-
c < p && d < p ||
|
|
13053
|
+
let m = this.currentPath ? this.currentPath.points : null;
|
|
13054
|
+
if (m) {
|
|
13055
|
+
const c = Math.abs(m[m.length - 2] - l), d = Math.abs(m[m.length - 1] - f);
|
|
13056
|
+
c < p && d < p || m.push(l, f);
|
|
13055
13057
|
} else
|
|
13056
|
-
this.moveTo(l, f),
|
|
13057
|
-
return zg.arc(l, f, t, e, r, n, i, a,
|
|
13058
|
+
this.moveTo(l, f), m = this.currentPath.points;
|
|
13059
|
+
return zg.arc(l, f, t, e, r, n, i, a, m), this;
|
|
13058
13060
|
}
|
|
13059
13061
|
beginFill(t = 0, e) {
|
|
13060
13062
|
return this.beginTextureFill({ texture: ke.WHITE, color: t, alpha: e });
|
|
@@ -13194,10 +13196,10 @@ const tc = {}, lo = class extends $i {
|
|
|
13194
13196
|
return;
|
|
13195
13197
|
this._transformID = t;
|
|
13196
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;
|
|
13197
|
-
let
|
|
13199
|
+
let m = 0;
|
|
13198
13200
|
for (let c = 0; c < f.length; c += 2) {
|
|
13199
|
-
const d = f[c],
|
|
13200
|
-
p[
|
|
13201
|
+
const d = f[c], g = f[c + 1];
|
|
13202
|
+
p[m++] = r * d + i * g + u, p[m++] = a * g + n * d + l;
|
|
13201
13203
|
}
|
|
13202
13204
|
}
|
|
13203
13205
|
closePath() {
|
|
@@ -13249,27 +13251,27 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13249
13251
|
flag: /\s*([01])/g
|
|
13250
13252
|
}, a = {
|
|
13251
13253
|
number: function(y) {
|
|
13252
|
-
return +
|
|
13254
|
+
return +g("number", y);
|
|
13253
13255
|
},
|
|
13254
13256
|
"coordinate pair": function(y) {
|
|
13255
|
-
var b =
|
|
13257
|
+
var b = g("number", y);
|
|
13256
13258
|
if (b === null && !y)
|
|
13257
13259
|
return null;
|
|
13258
|
-
|
|
13259
|
-
var x =
|
|
13260
|
+
g("comma");
|
|
13261
|
+
var x = g("number", !0);
|
|
13260
13262
|
return { x: +b, y: +x };
|
|
13261
13263
|
},
|
|
13262
13264
|
"arc definition": function(y) {
|
|
13263
13265
|
var b = a["coordinate pair"](y);
|
|
13264
13266
|
if (!b && !y)
|
|
13265
13267
|
return null;
|
|
13266
|
-
|
|
13267
|
-
var x = +
|
|
13268
|
-
|
|
13269
|
-
var E = !!+
|
|
13270
|
-
|
|
13271
|
-
var w = !!+
|
|
13272
|
-
|
|
13268
|
+
g("comma");
|
|
13269
|
+
var x = +g("number", !0);
|
|
13270
|
+
g("comma", !0);
|
|
13271
|
+
var E = !!+g("flag", !0);
|
|
13272
|
+
g("comma");
|
|
13273
|
+
var w = !!+g("flag", !0);
|
|
13274
|
+
g("comma");
|
|
13273
13275
|
var I = a["coordinate pair"](!0);
|
|
13274
13276
|
return {
|
|
13275
13277
|
radii: b,
|
|
@@ -13280,11 +13282,11 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13280
13282
|
};
|
|
13281
13283
|
}
|
|
13282
13284
|
}, u = 0, l = []; u < n.length; ) {
|
|
13283
|
-
var f =
|
|
13285
|
+
var f = g("command"), p = f.toUpperCase(), m = f !== p, c;
|
|
13284
13286
|
switch (p) {
|
|
13285
13287
|
case "M":
|
|
13286
13288
|
c = _("coordinate pair").map(function(y, b) {
|
|
13287
|
-
return b === 1 && (f =
|
|
13289
|
+
return b === 1 && (f = m ? "l" : "L"), d({ end: y });
|
|
13288
13290
|
});
|
|
13289
13291
|
break;
|
|
13290
13292
|
case "L":
|
|
@@ -13339,9 +13341,9 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13339
13341
|
}
|
|
13340
13342
|
return l;
|
|
13341
13343
|
function d(y) {
|
|
13342
|
-
return y.code = f, y.relative =
|
|
13344
|
+
return y.code = f, y.relative = m, y;
|
|
13343
13345
|
}
|
|
13344
|
-
function
|
|
13346
|
+
function g(y, b) {
|
|
13345
13347
|
i[y].lastIndex = u;
|
|
13346
13348
|
var x = i[y].exec(n);
|
|
13347
13349
|
if (!x || x.index !== u) {
|
|
@@ -13353,7 +13355,7 @@ var rL = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
13353
13355
|
}
|
|
13354
13356
|
function _(y) {
|
|
13355
13357
|
for (var b = [], x, E = !0; x = a[y](E); )
|
|
13356
|
-
b.push(x), E = !!
|
|
13358
|
+
b.push(x), E = !!g("comma");
|
|
13357
13359
|
return b;
|
|
13358
13360
|
}
|
|
13359
13361
|
};
|
|
@@ -13571,8 +13573,8 @@ function jg(t, e, r) {
|
|
|
13571
13573
|
function uL(t, e, r) {
|
|
13572
13574
|
var n, i, a;
|
|
13573
13575
|
t = it(t, 360), e = it(e, 100), r = it(r, 100);
|
|
13574
|
-
function u(p,
|
|
13575
|
-
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (
|
|
13576
|
+
function u(p, m, c) {
|
|
13577
|
+
return c < 0 && (c += 1), c > 1 && (c -= 1), c < 1 / 6 ? p + (m - p) * 6 * c : c < 1 / 2 ? m : c < 2 / 3 ? p + (m - p) * (2 / 3 - c) * 6 : p;
|
|
13576
13578
|
}
|
|
13577
13579
|
if (e === 0)
|
|
13578
13580
|
n = i = a = r;
|
|
@@ -13605,8 +13607,8 @@ function qg(t, e, r) {
|
|
|
13605
13607
|
}
|
|
13606
13608
|
function lL(t, e, r) {
|
|
13607
13609
|
t = it(t, 360) * 6, e = it(e, 100), r = it(r, 100);
|
|
13608
|
-
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],
|
|
13609
|
-
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], m = [l, r, r, u, a, a][f], c = [a, a, l, r, r, u][f];
|
|
13611
|
+
return { r: p * 255, g: m * 255, b: c * 255 };
|
|
13610
13612
|
}
|
|
13611
13613
|
function Yg(t, e, r, n) {
|
|
13612
13614
|
var i = [
|
|
@@ -14020,9 +14022,9 @@ var IL = function() {
|
|
|
14020
14022
|
}(), Es = Math.PI * 2, rc = function(e, r, n, i, a, u, l) {
|
|
14021
14023
|
var f = e.x, p = e.y;
|
|
14022
14024
|
f *= r, p *= n;
|
|
14023
|
-
var
|
|
14025
|
+
var m = i * f - a * p, c = a * f + i * p;
|
|
14024
14026
|
return {
|
|
14025
|
-
x:
|
|
14027
|
+
x: m + u,
|
|
14026
14028
|
y: c + l
|
|
14027
14029
|
};
|
|
14028
14030
|
}, RL = function(e, r) {
|
|
@@ -14040,13 +14042,13 @@ var IL = function() {
|
|
|
14040
14042
|
}, Jg = function(e, r, n, i) {
|
|
14041
14043
|
var a = e * i - r * n < 0 ? -1 : 1, u = e * n + r * i;
|
|
14042
14044
|
return u > 1 && (u = 1), u < -1 && (u = -1), a * Math.acos(u);
|
|
14043
|
-
}, PL = function(e, r, n, i, a, u, l, f, p,
|
|
14044
|
-
var
|
|
14045
|
-
x < 0 && (x = 0), x /=
|
|
14046
|
-
var E = x * a / u * d, w = x * -u / a * c, I =
|
|
14045
|
+
}, PL = function(e, r, n, i, a, u, l, f, p, m, c, d) {
|
|
14046
|
+
var g = Math.pow(a, 2), _ = Math.pow(u, 2), y = Math.pow(c, 2), b = Math.pow(d, 2), x = g * _ - g * b - _ * y;
|
|
14047
|
+
x < 0 && (x = 0), x /= g * b + _ * y, x = Math.sqrt(x) * (l === f ? -1 : 1);
|
|
14048
|
+
var E = x * a / u * d, w = x * -u / a * c, I = m * E - p * w + (e + n) / 2, O = p * E + m * 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);
|
|
14047
14049
|
return f === 0 && Y > 0 && (Y -= Es), f === 1 && Y < 0 && (Y += Es), [I, O, V, Y];
|
|
14048
14050
|
}, em = function(e) {
|
|
14049
|
-
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, m = e.largeArcFlag, c = m === void 0 ? 0 : m, d = e.sweepFlag, g = d === void 0 ? 0 : d, _ = [];
|
|
14050
14052
|
if (u === 0 || l === 0)
|
|
14051
14053
|
return [];
|
|
14052
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;
|
|
@@ -14055,7 +14057,7 @@ var IL = function() {
|
|
|
14055
14057
|
u = Math.abs(u), l = Math.abs(l);
|
|
14056
14058
|
var w = Math.pow(x, 2) / Math.pow(u, 2) + Math.pow(E, 2) / Math.pow(l, 2);
|
|
14057
14059
|
w > 1 && (u *= Math.sqrt(w), l *= Math.sqrt(w));
|
|
14058
|
-
var I = PL(r, n, i, a, u, l, c,
|
|
14060
|
+
var I = PL(r, n, i, a, u, l, c, g, 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);
|
|
14059
14061
|
Math.abs(1 - V) < 1e-7 && (V = 1);
|
|
14060
14062
|
var Y = Math.max(Math.ceil(V), 1);
|
|
14061
14063
|
D /= Y;
|
|
@@ -14143,8 +14145,8 @@ class ML extends yh {
|
|
|
14143
14145
|
const i = e.nodeName === "elipse";
|
|
14144
14146
|
i && (r += "x", n += "y");
|
|
14145
14147
|
const a = parseFloat(e.getAttribute(n)), u = parseFloat(e.getAttribute(r)), l = e.getAttribute("cx"), f = e.getAttribute("cy");
|
|
14146
|
-
let p = 0,
|
|
14147
|
-
l !== null && (p = parseFloat(l)), f !== null && (
|
|
14148
|
+
let p = 0, m = 0;
|
|
14149
|
+
l !== null && (p = parseFloat(l)), f !== null && (m = parseFloat(f)), i ? this.drawEllipse(p, m, a, u) : this.drawCircle(p, m, a);
|
|
14148
14150
|
}
|
|
14149
14151
|
/**
|
|
14150
14152
|
* Render a <rect> element
|
|
@@ -14201,17 +14203,17 @@ class ML extends yh {
|
|
|
14201
14203
|
* @param inherit - Inherit the fill style
|
|
14202
14204
|
*/
|
|
14203
14205
|
_svgFill(e, r) {
|
|
14204
|
-
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: m } = this._svgStyle(e), d = l !== null ? parseFloat(l) : a !== null ? 1 : 0, g = a !== null ? this._hexToUint(a) : this.lineColor;
|
|
14205
14207
|
n ? n === "none" ? this.beginFill(0, 0) : this.beginFill(
|
|
14206
14208
|
this._hexToUint(n),
|
|
14207
14209
|
i !== null ? parseFloat(i) : 1
|
|
14208
14210
|
) : r || this.beginFill(0), this.lineStyle({
|
|
14209
14211
|
width: a === null && l === null && r ? this.line.width : d,
|
|
14210
14212
|
alpha: u === null ? this.line.alpha : parseFloat(u),
|
|
14211
|
-
color: a === null && r ? this.line.color :
|
|
14213
|
+
color: a === null && r ? this.line.color : g,
|
|
14212
14214
|
cap: f === null && r ? this.line.cap : f,
|
|
14213
14215
|
join: p === null && r ? this.line.join : p,
|
|
14214
|
-
miterLimit:
|
|
14216
|
+
miterLimit: m === null && r ? this.line.miterLimit : parseFloat(m)
|
|
14215
14217
|
}), e.getAttribute("fill-rule") && console.info('[PIXI.SVG] "fill-rule" attribute is not supported');
|
|
14216
14218
|
}
|
|
14217
14219
|
/**
|
|
@@ -14328,7 +14330,7 @@ class ML extends yh {
|
|
|
14328
14330
|
xAxisRotation: l.rotation,
|
|
14329
14331
|
largeArcFlag: l.large ? 1 : 0,
|
|
14330
14332
|
sweepFlag: l.clockwise ? 1 : 0
|
|
14331
|
-
}).forEach(({ x1: f, y1: p, x2:
|
|
14333
|
+
}).forEach(({ x1: f, y1: p, x2: m, y2: c, x: d, y: g }) => this.bezierCurveTo(f, p, m, c, d, g));
|
|
14332
14334
|
break;
|
|
14333
14335
|
}
|
|
14334
14336
|
case "A": {
|
|
@@ -14342,7 +14344,7 @@ class ML extends yh {
|
|
|
14342
14344
|
xAxisRotation: l.rotation,
|
|
14343
14345
|
largeArcFlag: l.large ? 1 : 0,
|
|
14344
14346
|
sweepFlag: l.clockwise ? 1 : 0
|
|
14345
|
-
}).forEach(({ x1: f, y1: p, x2:
|
|
14347
|
+
}).forEach(({ x1: f, y1: p, x2: m, y2: c, x: d, y: g }) => this.bezierCurveTo(f, p, m, c, d, g));
|
|
14346
14348
|
break;
|
|
14347
14349
|
}
|
|
14348
14350
|
default: {
|
|
@@ -14603,9 +14605,9 @@ function tm(t, e, r, n) {
|
|
|
14603
14605
|
return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
|
|
14604
14606
|
}
|
|
14605
14607
|
function qL(t, e, r, n, i, a, u, l, f, p) {
|
|
14606
|
-
var
|
|
14607
|
-
b < 0 && (b = 0), b /= d * y +
|
|
14608
|
-
var x = b * u / l * c, E = b * -l / u *
|
|
14608
|
+
var m = p * (t - r) / 2 + f * (e - n) / 2, c = -f * (t - r) / 2 + p * (e - n) / 2, d = u * u, g = l * l, _ = m * m, y = c * c, b = d * g - d * y - g * _;
|
|
14609
|
+
b < 0 && (b = 0), b /= d * y + g * _, b = Math.sqrt(b) * (i === a ? -1 : 1);
|
|
14610
|
+
var x = b * u / l * c, E = b * -l / u * m, w = p * x - f * E + (t + r) / 2, I = f * x + p * E + (e + n) / 2, O = (m - x) / u, F = (c - E) / l, N = (-m - x) / u, L = (-c - E) / l, D = tm(1, 0, O, F), V = tm(O, F, N, L);
|
|
14609
14611
|
return a === 0 && V > 0 && (V -= Cs), a === 1 && V < 0 && (V += Cs), [w, I, D, V];
|
|
14610
14612
|
}
|
|
14611
14613
|
function YL(t, e) {
|
|
@@ -14613,15 +14615,15 @@ function YL(t, e) {
|
|
|
14613
14615
|
return [n, i, n - i * r, i + n * r, a + u * r, u - a * r, a, u];
|
|
14614
14616
|
}
|
|
14615
14617
|
var KL = function(e, r, n, i, a, u, l, f, p) {
|
|
14616
|
-
var
|
|
14617
|
-
if (d === 0 &&
|
|
14618
|
+
var m = Math.sin(p * Cs / 360), c = Math.cos(p * Cs / 360), d = c * (e - n) / 2 + m * (r - i) / 2, g = -m * (e - n) / 2 + c * (r - i) / 2;
|
|
14619
|
+
if (d === 0 && g === 0)
|
|
14618
14620
|
return [];
|
|
14619
14621
|
if (l === 0 || f === 0)
|
|
14620
14622
|
return [];
|
|
14621
14623
|
l = Math.abs(l), f = Math.abs(f);
|
|
14622
|
-
var _ = d * d / (l * l) +
|
|
14624
|
+
var _ = d * d / (l * l) + g * g / (f * f);
|
|
14623
14625
|
_ > 1 && (l *= Math.sqrt(_), f *= Math.sqrt(_));
|
|
14624
|
-
var y = qL(e, r, n, i, a, u, l, f,
|
|
14626
|
+
var y = qL(e, r, n, i, a, u, l, f, m, c), b = [], x = y[2], E = y[3], w = Math.max(Math.ceil(Math.abs(E) / (Cs / 4)), 1);
|
|
14625
14627
|
E /= w;
|
|
14626
14628
|
for (var I = 0; I < w; I++)
|
|
14627
14629
|
b.push(YL(x, E)), x += E;
|
|
@@ -14629,7 +14631,7 @@ var KL = function(e, r, n, i, a, u, l, f, p) {
|
|
|
14629
14631
|
for (var F = 0; F < O.length; F += 2) {
|
|
14630
14632
|
var N = O[F + 0], L = O[F + 1];
|
|
14631
14633
|
N *= l, L *= f;
|
|
14632
|
-
var D = c * N -
|
|
14634
|
+
var D = c * N - m * L, V = m * N + c * L;
|
|
14633
14635
|
O[F + 0] = D + y[0], O[F + 1] = V + y[1];
|
|
14634
14636
|
}
|
|
14635
14637
|
return O;
|
|
@@ -14651,10 +14653,10 @@ Ds.prototype.transform = function(t) {
|
|
|
14651
14653
|
return this.rx = this.ry = Math.sqrt(l), this.ax = 0, this;
|
|
14652
14654
|
var f = n[0] * n[1] + n[2] * n[3];
|
|
14653
14655
|
u = Math.sqrt(u);
|
|
14654
|
-
var p = l + u / 2,
|
|
14656
|
+
var p = l + u / 2, m = l - u / 2;
|
|
14655
14657
|
return this.ax = Math.abs(f) < Is && Math.abs(p - a) < Is ? 90 : Math.atan(
|
|
14656
14658
|
Math.abs(f) > Math.abs(p - a) ? (p - i) / f : f / (p - a)
|
|
14657
|
-
) * 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(m)) : (this.ax += 90, this.rx = Math.sqrt(m), this.ry = Math.sqrt(p)), this;
|
|
14658
14660
|
};
|
|
14659
14661
|
Ds.prototype.isDegenerate = function() {
|
|
14660
14662
|
return this.rx < Is * this.ry || this.ry < Is * this.rx;
|
|
@@ -14682,7 +14684,7 @@ ut.from = function(t) {
|
|
|
14682
14684
|
ut.prototype.__matrix = function(t) {
|
|
14683
14685
|
var e = this, r;
|
|
14684
14686
|
t.queue.length && this.iterate(function(n, i, a, u) {
|
|
14685
|
-
var l, f, p,
|
|
14687
|
+
var l, f, p, m;
|
|
14686
14688
|
switch (n[0]) {
|
|
14687
14689
|
case "v":
|
|
14688
14690
|
l = t.calc(0, n[1], !0), f = l[0] === 0 ? ["v", l[1]] : ["l", l[0], l[1]];
|
|
@@ -14706,11 +14708,11 @@ ut.prototype.__matrix = function(t) {
|
|
|
14706
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]];
|
|
14707
14709
|
break;
|
|
14708
14710
|
case "m":
|
|
14709
|
-
|
|
14711
|
+
m = i > 0, l = t.calc(n[1], n[2], m), f = ["m", l[0], l[1]];
|
|
14710
14712
|
break;
|
|
14711
14713
|
default:
|
|
14712
|
-
for (p = n[0], f = [p],
|
|
14713
|
-
l = t.calc(n[r], n[r + 1],
|
|
14714
|
+
for (p = n[0], f = [p], m = p.toLowerCase() === p, r = 1; r < n.length; r += 2)
|
|
14715
|
+
l = t.calc(n[r], n[r + 1], m), f.push(l[0], l[1]);
|
|
14714
14716
|
}
|
|
14715
14717
|
e.segments[i] = f;
|
|
14716
14718
|
}, !0);
|
|
@@ -14796,10 +14798,10 @@ ut.prototype.round = function(t) {
|
|
|
14796
14798
|
}), this;
|
|
14797
14799
|
};
|
|
14798
14800
|
ut.prototype.iterate = function(t, e) {
|
|
14799
|
-
var r = this.segments, n = {}, i = !1, a = 0, u = 0, l = 0, f = 0, p,
|
|
14800
|
-
if (e || this.__evaluateStack(), r.forEach(function(d,
|
|
14801
|
-
var _ = t(d,
|
|
14802
|
-
Array.isArray(_) && (n[
|
|
14801
|
+
var r = this.segments, n = {}, i = !1, a = 0, u = 0, l = 0, f = 0, p, m, c;
|
|
14802
|
+
if (e || this.__evaluateStack(), r.forEach(function(d, g) {
|
|
14803
|
+
var _ = t(d, g, a, u);
|
|
14804
|
+
Array.isArray(_) && (n[g] = _, i = !0);
|
|
14803
14805
|
var y = d[0] === d[0].toLowerCase();
|
|
14804
14806
|
switch (d[0]) {
|
|
14805
14807
|
case "m":
|
|
@@ -14825,8 +14827,8 @@ ut.prototype.iterate = function(t, e) {
|
|
|
14825
14827
|
return this;
|
|
14826
14828
|
for (c = [], p = 0; p < r.length; p++)
|
|
14827
14829
|
if (typeof n[p] < "u")
|
|
14828
|
-
for (
|
|
14829
|
-
c.push(n[p][
|
|
14830
|
+
for (m = 0; m < n[p].length; m++)
|
|
14831
|
+
c.push(n[p][m]);
|
|
14830
14832
|
else
|
|
14831
14833
|
c.push(r[p]);
|
|
14832
14834
|
return this.segments = c, this;
|
|
@@ -14876,14 +14878,14 @@ ut.prototype.unarc = function() {
|
|
|
14876
14878
|
ut.prototype.unshort = function() {
|
|
14877
14879
|
var t = this.segments, e, r, n, i, a;
|
|
14878
14880
|
return this.iterate(function(u, l, f, p) {
|
|
14879
|
-
var
|
|
14880
|
-
l && (c === "T" ? (d =
|
|
14881
|
+
var m = u[0], c = m.toUpperCase(), d;
|
|
14882
|
+
l && (c === "T" ? (d = m === "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] = [
|
|
14881
14883
|
d ? "q" : "Q",
|
|
14882
14884
|
i,
|
|
14883
14885
|
a,
|
|
14884
14886
|
u[1],
|
|
14885
14887
|
u[2]
|
|
14886
|
-
]) : c === "S" && (d =
|
|
14888
|
+
]) : c === "S" && (d = m === "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] = [
|
|
14887
14889
|
d ? "c" : "C",
|
|
14888
14890
|
i,
|
|
14889
14891
|
a,
|
|
@@ -14901,10 +14903,10 @@ const ik = /* @__PURE__ */ qn(nk), cU = te.forwardRef((t, e) => {
|
|
|
14901
14903
|
visible: f,
|
|
14902
14904
|
disabled: p,
|
|
14903
14905
|
transformation: {
|
|
14904
|
-
x:
|
|
14906
|
+
x: m,
|
|
14905
14907
|
y: c,
|
|
14906
14908
|
width: d,
|
|
14907
|
-
height:
|
|
14909
|
+
height: g,
|
|
14908
14910
|
anchor: _,
|
|
14909
14911
|
hexColor: y,
|
|
14910
14912
|
fill: b,
|
|
@@ -14924,21 +14926,21 @@ const ik = /* @__PURE__ */ qn(nk), cU = te.forwardRef((t, e) => {
|
|
|
14924
14926
|
noiseFilter: X
|
|
14925
14927
|
} = Qn(w), { blurRadius: G = 0, vignette: ie = 0, noise: re = 0 } = w;
|
|
14926
14928
|
return te.useEffect(() => {
|
|
14927
|
-
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="${g}">
|
|
14928
14930
|
<path stroke="${x}" stroke-width="${E}" fill="${y || b}" d="${H}">
|
|
14929
14931
|
</path>
|
|
14930
14932
|
</svg>`, ge = new ML(Q), W = F.renderer.generateTexture(ge);
|
|
14931
14933
|
return n(W), () => {
|
|
14932
14934
|
};
|
|
14933
|
-
}, [F, l, x, E, y, b]), /* @__PURE__ */
|
|
14935
|
+
}, [F, l, x, E, y, b]), /* @__PURE__ */ Ee.jsx(vn, { ...t, ref: e, children: /* @__PURE__ */ Ee.jsx(wt, { ref: a, children: /* @__PURE__ */ Ee.jsx(wt, { ref: u, children: r && /* @__PURE__ */ Ee.jsx(
|
|
14934
14936
|
Bs,
|
|
14935
14937
|
{
|
|
14936
14938
|
texture: r,
|
|
14937
14939
|
width: d,
|
|
14938
|
-
height:
|
|
14940
|
+
height: g,
|
|
14939
14941
|
anchor: _,
|
|
14940
14942
|
ref: i,
|
|
14941
|
-
x:
|
|
14943
|
+
x: m,
|
|
14942
14944
|
y: c,
|
|
14943
14945
|
alpha: f ? 1 : 0,
|
|
14944
14946
|
...!p && f && {
|
|
@@ -14992,14 +14994,14 @@ var uv = {};
|
|
|
14992
14994
|
*/
|
|
14993
14995
|
volume: function(c) {
|
|
14994
14996
|
var d = this || r;
|
|
14995
|
-
if (c = parseFloat(c), d.ctx ||
|
|
14997
|
+
if (c = parseFloat(c), d.ctx || m(), typeof c < "u" && c >= 0 && c <= 1) {
|
|
14996
14998
|
if (d._volume = c, d._muted)
|
|
14997
14999
|
return d;
|
|
14998
15000
|
d.usingWebAudio && d.masterGain.gain.setValueAtTime(c, r.ctx.currentTime);
|
|
14999
|
-
for (var
|
|
15000
|
-
if (!d._howls[
|
|
15001
|
-
for (var _ = d._howls[
|
|
15002
|
-
var b = d._howls[
|
|
15001
|
+
for (var g = 0; g < d._howls.length; g++)
|
|
15002
|
+
if (!d._howls[g]._webAudio)
|
|
15003
|
+
for (var _ = d._howls[g]._getSoundIds(), y = 0; y < _.length; y++) {
|
|
15004
|
+
var b = d._howls[g]._soundById(_[y]);
|
|
15003
15005
|
b && b._node && (b._node.volume = b._volume * c);
|
|
15004
15006
|
}
|
|
15005
15007
|
return d;
|
|
@@ -15012,11 +15014,11 @@ var uv = {};
|
|
|
15012
15014
|
*/
|
|
15013
15015
|
mute: function(c) {
|
|
15014
15016
|
var d = this || r;
|
|
15015
|
-
d.ctx ||
|
|
15016
|
-
for (var
|
|
15017
|
-
if (!d._howls[
|
|
15018
|
-
for (var _ = d._howls[
|
|
15019
|
-
var b = d._howls[
|
|
15017
|
+
d.ctx || m(), d._muted = c, d.usingWebAudio && d.masterGain.gain.setValueAtTime(c ? 0 : d._volume, r.ctx.currentTime);
|
|
15018
|
+
for (var g = 0; g < d._howls.length; g++)
|
|
15019
|
+
if (!d._howls[g]._webAudio)
|
|
15020
|
+
for (var _ = d._howls[g]._getSoundIds(), y = 0; y < _.length; y++) {
|
|
15021
|
+
var b = d._howls[g]._soundById(_[y]);
|
|
15020
15022
|
b && b._node && (b._node.muted = c ? !0 : b._muted);
|
|
15021
15023
|
}
|
|
15022
15024
|
return d;
|
|
@@ -15036,7 +15038,7 @@ var uv = {};
|
|
|
15036
15038
|
unload: function() {
|
|
15037
15039
|
for (var c = this || r, d = c._howls.length - 1; d >= 0; d--)
|
|
15038
15040
|
c._howls[d].unload();
|
|
15039
|
-
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, m()), c;
|
|
15040
15042
|
},
|
|
15041
15043
|
/**
|
|
15042
15044
|
* Check for codec support of specific extension.
|
|
@@ -15082,10 +15084,10 @@ var uv = {};
|
|
|
15082
15084
|
}
|
|
15083
15085
|
if (!d || typeof d.canPlayType != "function")
|
|
15084
15086
|
return c;
|
|
15085
|
-
var
|
|
15087
|
+
var g = 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;
|
|
15086
15088
|
return c._codecs = {
|
|
15087
|
-
mp3: !!(!b && (
|
|
15088
|
-
mpeg: !!
|
|
15089
|
+
mp3: !!(!b && (g || d.canPlayType("audio/mp3;").replace(/^no$/, ""))),
|
|
15090
|
+
mpeg: !!g,
|
|
15089
15091
|
opus: !!d.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ""),
|
|
15090
15092
|
ogg: !!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
|
|
15091
15093
|
oga: !!d.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""),
|
|
@@ -15111,7 +15113,7 @@ var uv = {};
|
|
|
15111
15113
|
var c = this || r;
|
|
15112
15114
|
if (!(c._audioUnlocked || !c.ctx)) {
|
|
15113
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);
|
|
15114
|
-
var d = function(
|
|
15116
|
+
var d = function(g) {
|
|
15115
15117
|
for (; c._html5AudioPool.length < c.html5PoolSize; )
|
|
15116
15118
|
try {
|
|
15117
15119
|
var _ = new Audio();
|
|
@@ -15169,8 +15171,8 @@ var uv = {};
|
|
|
15169
15171
|
if (!(!c.autoSuspend || !c.ctx || typeof c.ctx.suspend > "u" || !r.usingWebAudio)) {
|
|
15170
15172
|
for (var d = 0; d < c._howls.length; d++)
|
|
15171
15173
|
if (c._howls[d]._webAudio) {
|
|
15172
|
-
for (var
|
|
15173
|
-
if (!c._howls[d]._sounds[
|
|
15174
|
+
for (var g = 0; g < c._howls[d]._sounds.length; g++)
|
|
15175
|
+
if (!c._howls[d]._sounds[g]._paused)
|
|
15174
15176
|
return c;
|
|
15175
15177
|
}
|
|
15176
15178
|
return c._suspendTimer && clearTimeout(c._suspendTimer), c._suspendTimer = setTimeout(function() {
|
|
@@ -15214,7 +15216,7 @@ var uv = {};
|
|
|
15214
15216
|
*/
|
|
15215
15217
|
init: function(c) {
|
|
15216
15218
|
var d = this;
|
|
15217
|
-
return r.ctx ||
|
|
15219
|
+
return r.ctx || m(), 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 = {
|
|
15218
15220
|
method: c.xhr && c.xhr.method ? c.xhr.method : "GET",
|
|
15219
15221
|
headers: c.xhr && c.xhr.headers ? c.xhr.headers : null,
|
|
15220
15222
|
withCredentials: c.xhr && c.xhr.withCredentials ? c.xhr.withCredentials : !1
|
|
@@ -15236,19 +15238,19 @@ var uv = {};
|
|
|
15236
15238
|
return;
|
|
15237
15239
|
}
|
|
15238
15240
|
typeof c._src == "string" && (c._src = [c._src]);
|
|
15239
|
-
for (var
|
|
15241
|
+
for (var g = 0; g < c._src.length; g++) {
|
|
15240
15242
|
var _, y;
|
|
15241
|
-
if (c._format && c._format[
|
|
15242
|
-
_ = c._format[
|
|
15243
|
+
if (c._format && c._format[g])
|
|
15244
|
+
_ = c._format[g];
|
|
15243
15245
|
else {
|
|
15244
|
-
if (y = c._src[
|
|
15246
|
+
if (y = c._src[g], typeof y != "string") {
|
|
15245
15247
|
c._emit("loaderror", null, "Non-string found in selected audio sources - ignoring.");
|
|
15246
15248
|
continue;
|
|
15247
15249
|
}
|
|
15248
15250
|
_ = /^data:audio\/([^;,]+);/i.exec(y), _ || (_ = /\.([^.]+)$/.exec(y.split("?", 1)[0])), _ && (_ = _[1].toLowerCase());
|
|
15249
15251
|
}
|
|
15250
15252
|
if (_ || console.warn('No file extension was found. Consider using the "format" property or specify an extension.'), _ && r.codecs(_)) {
|
|
15251
|
-
d = c._src[
|
|
15253
|
+
d = c._src[g];
|
|
15252
15254
|
break;
|
|
15253
15255
|
}
|
|
15254
15256
|
}
|
|
@@ -15265,83 +15267,83 @@ var uv = {};
|
|
|
15265
15267
|
* @return {Number} Sound ID.
|
|
15266
15268
|
*/
|
|
15267
15269
|
play: function(c, d) {
|
|
15268
|
-
var
|
|
15270
|
+
var g = this, _ = null;
|
|
15269
15271
|
if (typeof c == "number")
|
|
15270
15272
|
_ = c, c = null;
|
|
15271
15273
|
else {
|
|
15272
|
-
if (typeof c == "string" &&
|
|
15274
|
+
if (typeof c == "string" && g._state === "loaded" && !g._sprite[c])
|
|
15273
15275
|
return null;
|
|
15274
|
-
if (typeof c > "u" && (c = "__default", !
|
|
15275
|
-
for (var y = 0, b = 0; b <
|
|
15276
|
-
|
|
15276
|
+
if (typeof c > "u" && (c = "__default", !g._playLock)) {
|
|
15277
|
+
for (var y = 0, b = 0; b < g._sounds.length; b++)
|
|
15278
|
+
g._sounds[b]._paused && !g._sounds[b]._ended && (y++, _ = g._sounds[b]._id);
|
|
15277
15279
|
y === 1 ? c = null : _ = null;
|
|
15278
15280
|
}
|
|
15279
15281
|
}
|
|
15280
|
-
var x = _ ?
|
|
15282
|
+
var x = _ ? g._soundById(_) : g._inactiveSound();
|
|
15281
15283
|
if (!x)
|
|
15282
15284
|
return null;
|
|
15283
|
-
if (_ && !c && (c = x._sprite || "__default"),
|
|
15285
|
+
if (_ && !c && (c = x._sprite || "__default"), g._state !== "loaded") {
|
|
15284
15286
|
x._sprite = c, x._ended = !1;
|
|
15285
15287
|
var E = x._id;
|
|
15286
|
-
return
|
|
15288
|
+
return g._queue.push({
|
|
15287
15289
|
event: "play",
|
|
15288
15290
|
action: function() {
|
|
15289
|
-
|
|
15291
|
+
g.play(E);
|
|
15290
15292
|
}
|
|
15291
15293
|
}), E;
|
|
15292
15294
|
}
|
|
15293
15295
|
if (_ && !x._paused)
|
|
15294
|
-
return d ||
|
|
15295
|
-
|
|
15296
|
-
var w = Math.max(0, x._seek > 0 ? x._seek :
|
|
15296
|
+
return d || g._loadQueue("play"), x._id;
|
|
15297
|
+
g._webAudio && r._autoResume();
|
|
15298
|
+
var w = Math.max(0, x._seek > 0 ? x._seek : g._sprite[c][0] / 1e3), I = Math.max(0, (g._sprite[c][0] + g._sprite[c][1]) / 1e3 - w), O = I * 1e3 / Math.abs(x._rate), F = g._sprite[c][0] / 1e3, N = (g._sprite[c][0] + g._sprite[c][1]) / 1e3;
|
|
15297
15299
|
x._sprite = c, x._ended = !1;
|
|
15298
15300
|
var L = function() {
|
|
15299
|
-
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 || g._sprite[c][2]);
|
|
15300
15302
|
};
|
|
15301
15303
|
if (w >= N) {
|
|
15302
|
-
|
|
15304
|
+
g._ended(x);
|
|
15303
15305
|
return;
|
|
15304
15306
|
}
|
|
15305
15307
|
var D = x._node;
|
|
15306
|
-
if (
|
|
15308
|
+
if (g._webAudio) {
|
|
15307
15309
|
var V = function() {
|
|
15308
|
-
|
|
15309
|
-
var G = x._muted ||
|
|
15310
|
-
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 && (
|
|
15311
|
-
|
|
15310
|
+
g._playLock = !1, L(), g._refreshBuffer(x);
|
|
15311
|
+
var G = x._muted || g._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 && (g._endTimers[x._id] = setTimeout(g._ended.bind(g, x), O)), d || setTimeout(function() {
|
|
15313
|
+
g._emit("play", x._id), g._loadQueue();
|
|
15312
15314
|
}, 0);
|
|
15313
15315
|
};
|
|
15314
|
-
r.state === "running" && r.ctx.state !== "interrupted" ? V() : (
|
|
15316
|
+
r.state === "running" && r.ctx.state !== "interrupted" ? V() : (g._playLock = !0, g.once("resume", V), g._clearTimer(x._id));
|
|
15315
15317
|
} else {
|
|
15316
15318
|
var Y = function() {
|
|
15317
|
-
D.currentTime = w, D.muted = x._muted ||
|
|
15319
|
+
D.currentTime = w, D.muted = x._muted || g._muted || r._muted || D.muted, D.volume = x._volume * r.volume(), D.playbackRate = x._rate;
|
|
15318
15320
|
try {
|
|
15319
15321
|
var G = D.play();
|
|
15320
|
-
if (G && typeof Promise < "u" && (G instanceof Promise || typeof G.then == "function") ? (
|
|
15321
|
-
|
|
15322
|
+
if (G && typeof Promise < "u" && (G instanceof Promise || typeof G.then == "function") ? (g._playLock = !0, L(), G.then(function() {
|
|
15323
|
+
g._playLock = !1, D._unlocked = !0, d ? g._loadQueue() : g._emit("play", x._id);
|
|
15322
15324
|
}).catch(function() {
|
|
15323
|
-
|
|
15324
|
-
})) : d || (
|
|
15325
|
-
|
|
15325
|
+
g._playLock = !1, g._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 || (g._playLock = !1, L(), g._emit("play", x._id)), D.playbackRate = x._rate, D.paused) {
|
|
15327
|
+
g._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.");
|
|
15326
15328
|
return;
|
|
15327
15329
|
}
|
|
15328
|
-
c !== "__default" || x._loop ?
|
|
15329
|
-
|
|
15330
|
-
}, D.addEventListener("ended",
|
|
15330
|
+
c !== "__default" || x._loop ? g._endTimers[x._id] = setTimeout(g._ended.bind(g, x), O) : (g._endTimers[x._id] = function() {
|
|
15331
|
+
g._ended(x), D.removeEventListener("ended", g._endTimers[x._id], !1);
|
|
15332
|
+
}, D.addEventListener("ended", g._endTimers[x._id], !1));
|
|
15331
15333
|
} catch (ie) {
|
|
15332
|
-
|
|
15334
|
+
g._emit("playerror", x._id, ie);
|
|
15333
15335
|
}
|
|
15334
15336
|
};
|
|
15335
|
-
D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src =
|
|
15337
|
+
D.src === "data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA" && (D.src = g._src, D.load());
|
|
15336
15338
|
var se = window && window.ejecta || !D.readyState && r._navigator.isCocoonJS;
|
|
15337
15339
|
if (D.readyState >= 3 || se)
|
|
15338
15340
|
Y();
|
|
15339
15341
|
else {
|
|
15340
|
-
|
|
15342
|
+
g._playLock = !0, g._state = "loading";
|
|
15341
15343
|
var X = function() {
|
|
15342
|
-
|
|
15344
|
+
g._state = "loaded", Y(), D.removeEventListener(r._canPlayEvent, X, !1);
|
|
15343
15345
|
};
|
|
15344
|
-
D.addEventListener(r._canPlayEvent, X, !1),
|
|
15346
|
+
D.addEventListener(r._canPlayEvent, X, !1), g._clearTimer(x._id);
|
|
15345
15347
|
}
|
|
15346
15348
|
}
|
|
15347
15349
|
return x._id;
|
|
@@ -15360,10 +15362,10 @@ var uv = {};
|
|
|
15360
15362
|
d.pause(c);
|
|
15361
15363
|
}
|
|
15362
15364
|
}), d;
|
|
15363
|
-
for (var
|
|
15364
|
-
d._clearTimer(
|
|
15365
|
-
var y = d._soundById(
|
|
15366
|
-
if (y && !y._paused && (y._seek = d.seek(
|
|
15365
|
+
for (var g = d._getSoundIds(c), _ = 0; _ < g.length; _++) {
|
|
15366
|
+
d._clearTimer(g[_]);
|
|
15367
|
+
var y = d._soundById(g[_]);
|
|
15368
|
+
if (y && !y._paused && (y._seek = d.seek(g[_]), y._rateSeek = 0, y._paused = !0, d._stopFade(g[_]), y._node))
|
|
15367
15369
|
if (d._webAudio) {
|
|
15368
15370
|
if (!y._node.bufferSource)
|
|
15369
15371
|
continue;
|
|
@@ -15381,20 +15383,20 @@ var uv = {};
|
|
|
15381
15383
|
* @return {Howl}
|
|
15382
15384
|
*/
|
|
15383
15385
|
stop: function(c, d) {
|
|
15384
|
-
var
|
|
15385
|
-
if (
|
|
15386
|
-
return
|
|
15386
|
+
var g = this;
|
|
15387
|
+
if (g._state !== "loaded" || g._playLock)
|
|
15388
|
+
return g._queue.push({
|
|
15387
15389
|
event: "stop",
|
|
15388
15390
|
action: function() {
|
|
15389
|
-
|
|
15391
|
+
g.stop(c);
|
|
15390
15392
|
}
|
|
15391
|
-
}),
|
|
15392
|
-
for (var _ =
|
|
15393
|
-
|
|
15394
|
-
var b =
|
|
15395
|
-
b && (b._seek = b._start || 0, b._rateSeek = 0, b._paused = !0, b._ended = !0,
|
|
15393
|
+
}), g;
|
|
15394
|
+
for (var _ = g._getSoundIds(c), y = 0; y < _.length; y++) {
|
|
15395
|
+
g._clearTimer(_[y]);
|
|
15396
|
+
var b = g._soundById(_[y]);
|
|
15397
|
+
b && (b._seek = b._start || 0, b._rateSeek = 0, b._paused = !0, b._ended = !0, g._stopFade(_[y]), b._node && (g._webAudio ? b._node.bufferSource && (typeof b._node.bufferSource.stop > "u" ? b._node.bufferSource.noteOff(0) : b._node.bufferSource.stop(0), g._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 && g._clearSound(b._node))), d || g._emit("stop", b._id));
|
|
15396
15398
|
}
|
|
15397
|
-
return
|
|
15399
|
+
return g;
|
|
15398
15400
|
},
|
|
15399
15401
|
/**
|
|
15400
15402
|
* Mute/unmute a single sound or all sounds in this Howl group.
|
|
@@ -15403,24 +15405,24 @@ var uv = {};
|
|
|
15403
15405
|
* @return {Howl}
|
|
15404
15406
|
*/
|
|
15405
15407
|
mute: function(c, d) {
|
|
15406
|
-
var
|
|
15407
|
-
if (
|
|
15408
|
-
return
|
|
15408
|
+
var g = this;
|
|
15409
|
+
if (g._state !== "loaded" || g._playLock)
|
|
15410
|
+
return g._queue.push({
|
|
15409
15411
|
event: "mute",
|
|
15410
15412
|
action: function() {
|
|
15411
|
-
|
|
15413
|
+
g.mute(c, d);
|
|
15412
15414
|
}
|
|
15413
|
-
}),
|
|
15415
|
+
}), g;
|
|
15414
15416
|
if (typeof d > "u")
|
|
15415
15417
|
if (typeof c == "boolean")
|
|
15416
|
-
|
|
15418
|
+
g._muted = c;
|
|
15417
15419
|
else
|
|
15418
|
-
return
|
|
15419
|
-
for (var _ =
|
|
15420
|
-
var b =
|
|
15421
|
-
b && (b._muted = c, b._interval &&
|
|
15420
|
+
return g._muted;
|
|
15421
|
+
for (var _ = g._getSoundIds(d), y = 0; y < _.length; y++) {
|
|
15422
|
+
var b = g._soundById(_[y]);
|
|
15423
|
+
b && (b._muted = c, b._interval && g._stopFade(b._id), g._webAudio && b._node ? b._node.gain.setValueAtTime(c ? 0 : b._volume, r.ctx.currentTime) : b._node && (b._node.muted = r._muted ? !0 : c), g._emit("mute", b._id));
|
|
15422
15424
|
}
|
|
15423
|
-
return
|
|
15425
|
+
return g;
|
|
15424
15426
|
},
|
|
15425
15427
|
/**
|
|
15426
15428
|
* Get/set the volume of this sound or of the Howl group. This method can optionally take 0, 1 or 2 arguments.
|
|
@@ -15431,16 +15433,16 @@ var uv = {};
|
|
|
15431
15433
|
* @return {Howl/Number} Returns self or current volume.
|
|
15432
15434
|
*/
|
|
15433
15435
|
volume: function() {
|
|
15434
|
-
var c = this, d = arguments,
|
|
15436
|
+
var c = this, d = arguments, g, _;
|
|
15435
15437
|
if (d.length === 0)
|
|
15436
15438
|
return c._volume;
|
|
15437
15439
|
if (d.length === 1 || d.length === 2 && typeof d[1] > "u") {
|
|
15438
15440
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15439
|
-
b >= 0 ? _ = parseInt(d[0], 10) :
|
|
15441
|
+
b >= 0 ? _ = parseInt(d[0], 10) : g = parseFloat(d[0]);
|
|
15440
15442
|
} else
|
|
15441
|
-
d.length >= 2 && (
|
|
15443
|
+
d.length >= 2 && (g = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15442
15444
|
var x;
|
|
15443
|
-
if (typeof
|
|
15445
|
+
if (typeof g < "u" && g >= 0 && g <= 1) {
|
|
15444
15446
|
if (c._state !== "loaded" || c._playLock)
|
|
15445
15447
|
return c._queue.push({
|
|
15446
15448
|
event: "volume",
|
|
@@ -15448,9 +15450,9 @@ var uv = {};
|
|
|
15448
15450
|
c.volume.apply(c, d);
|
|
15449
15451
|
}
|
|
15450
15452
|
}), c;
|
|
15451
|
-
typeof _ > "u" && (c._volume =
|
|
15453
|
+
typeof _ > "u" && (c._volume = g), _ = c._getSoundIds(_);
|
|
15452
15454
|
for (var E = 0; E < _.length; E++)
|
|
15453
|
-
x = c._soundById(_[E]), x && (x._volume =
|
|
15455
|
+
x = c._soundById(_[E]), x && (x._volume = g, d[2] || c._stopFade(_[E]), c._webAudio && x._node && !x._muted ? x._node.gain.setValueAtTime(g, r.ctx.currentTime) : x._node && !x._muted && (x._node.volume = g * r.volume()), c._emit("volume", x._id));
|
|
15454
15456
|
} else
|
|
15455
15457
|
return x = _ ? c._soundById(_) : c._sounds[0], x ? x._volume : 0;
|
|
15456
15458
|
return c;
|
|
@@ -15463,24 +15465,24 @@ var uv = {};
|
|
|
15463
15465
|
* @param {Number} id The sound id (omit to fade all sounds).
|
|
15464
15466
|
* @return {Howl}
|
|
15465
15467
|
*/
|
|
15466
|
-
fade: function(c, d,
|
|
15468
|
+
fade: function(c, d, g, _) {
|
|
15467
15469
|
var y = this;
|
|
15468
15470
|
if (y._state !== "loaded" || y._playLock)
|
|
15469
15471
|
return y._queue.push({
|
|
15470
15472
|
event: "fade",
|
|
15471
15473
|
action: function() {
|
|
15472
|
-
y.fade(c, d,
|
|
15474
|
+
y.fade(c, d, g, _);
|
|
15473
15475
|
}
|
|
15474
15476
|
}), y;
|
|
15475
|
-
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), g = parseFloat(g), y.volume(c, _);
|
|
15476
15478
|
for (var b = y._getSoundIds(_), x = 0; x < b.length; x++) {
|
|
15477
15479
|
var E = y._soundById(b[x]);
|
|
15478
15480
|
if (E) {
|
|
15479
15481
|
if (_ || y._stopFade(b[x]), y._webAudio && !E._muted) {
|
|
15480
|
-
var w = r.ctx.currentTime, I = w +
|
|
15482
|
+
var w = r.ctx.currentTime, I = w + g / 1e3;
|
|
15481
15483
|
E._volume = c, E._node.gain.setValueAtTime(c, w), E._node.gain.linearRampToValueAtTime(d, I);
|
|
15482
15484
|
}
|
|
15483
|
-
y._startFadeInterval(E, c, d,
|
|
15485
|
+
y._startFadeInterval(E, c, d, g, b[x], typeof _ > "u");
|
|
15484
15486
|
}
|
|
15485
15487
|
}
|
|
15486
15488
|
return y;
|
|
@@ -15494,11 +15496,11 @@ var uv = {};
|
|
|
15494
15496
|
* @param {Number} id The sound id to fade.
|
|
15495
15497
|
* @param {Boolean} isGroup If true, set the volume on the group.
|
|
15496
15498
|
*/
|
|
15497
|
-
_startFadeInterval: function(c, d,
|
|
15498
|
-
var x = this, E = d, w =
|
|
15499
|
-
c._fadeTo =
|
|
15499
|
+
_startFadeInterval: function(c, d, g, _, y, b) {
|
|
15500
|
+
var x = this, E = d, w = g - d, I = Math.abs(w / 0.01), O = Math.max(4, I > 0 ? _ / I : _), F = Date.now();
|
|
15501
|
+
c._fadeTo = g, c._interval = setInterval(function() {
|
|
15500
15502
|
var N = (Date.now() - F) / _;
|
|
15501
|
-
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(g, E) : E = Math.min(g, E), x._webAudio ? c._volume = E : x.volume(E, c._id, !0), b && (x._volume = E), (g < d && E <= g || g > d && E >= g) && (clearInterval(c._interval), c._interval = null, c._fadeTo = null, x.volume(g, c._id), x._emit("fade", c._id));
|
|
15502
15504
|
}, O);
|
|
15503
15505
|
},
|
|
15504
15506
|
/**
|
|
@@ -15508,8 +15510,8 @@ var uv = {};
|
|
|
15508
15510
|
* @return {Howl}
|
|
15509
15511
|
*/
|
|
15510
15512
|
_stopFade: function(c) {
|
|
15511
|
-
var d = this,
|
|
15512
|
-
return
|
|
15513
|
+
var d = this, g = d._soundById(c);
|
|
15514
|
+
return g && g._interval && (d._webAudio && g._node.gain.cancelScheduledValues(r.ctx.currentTime), clearInterval(g._interval), g._interval = null, d.volume(g._fadeTo, c), g._fadeTo = null, d._emit("fade", c)), d;
|
|
15513
15515
|
},
|
|
15514
15516
|
/**
|
|
15515
15517
|
* Get/set the loop parameter on a sound. This method can optionally take 0, 1 or 2 arguments.
|
|
@@ -15520,18 +15522,18 @@ var uv = {};
|
|
|
15520
15522
|
* @return {Howl/Boolean} Returns self or current loop value.
|
|
15521
15523
|
*/
|
|
15522
15524
|
loop: function() {
|
|
15523
|
-
var c = this, d = arguments,
|
|
15525
|
+
var c = this, d = arguments, g, _, y;
|
|
15524
15526
|
if (d.length === 0)
|
|
15525
15527
|
return c._loop;
|
|
15526
15528
|
if (d.length === 1)
|
|
15527
15529
|
if (typeof d[0] == "boolean")
|
|
15528
|
-
|
|
15530
|
+
g = d[0], c._loop = g;
|
|
15529
15531
|
else
|
|
15530
15532
|
return y = c._soundById(parseInt(d[0], 10)), y ? y._loop : !1;
|
|
15531
15533
|
else
|
|
15532
|
-
d.length === 2 && (
|
|
15534
|
+
d.length === 2 && (g = d[0], _ = parseInt(d[1], 10));
|
|
15533
15535
|
for (var b = c._getSoundIds(_), x = 0; x < b.length; x++)
|
|
15534
|
-
y = c._soundById(b[x]), y && (y._loop =
|
|
15536
|
+
y = c._soundById(b[x]), y && (y._loop = g, c._webAudio && y._node && y._node.bufferSource && (y._node.bufferSource.loop = g, g && (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)))));
|
|
15535
15537
|
return c;
|
|
15536
15538
|
},
|
|
15537
15539
|
/**
|
|
@@ -15543,16 +15545,16 @@ var uv = {};
|
|
|
15543
15545
|
* @return {Howl/Number} Returns self or the current playback rate.
|
|
15544
15546
|
*/
|
|
15545
15547
|
rate: function() {
|
|
15546
|
-
var c = this, d = arguments,
|
|
15548
|
+
var c = this, d = arguments, g, _;
|
|
15547
15549
|
if (d.length === 0)
|
|
15548
15550
|
_ = c._sounds[0]._id;
|
|
15549
15551
|
else if (d.length === 1) {
|
|
15550
15552
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15551
|
-
b >= 0 ? _ = parseInt(d[0], 10) :
|
|
15553
|
+
b >= 0 ? _ = parseInt(d[0], 10) : g = parseFloat(d[0]);
|
|
15552
15554
|
} else
|
|
15553
|
-
d.length === 2 && (
|
|
15555
|
+
d.length === 2 && (g = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15554
15556
|
var x;
|
|
15555
|
-
if (typeof
|
|
15557
|
+
if (typeof g == "number") {
|
|
15556
15558
|
if (c._state !== "loaded" || c._playLock)
|
|
15557
15559
|
return c._queue.push({
|
|
15558
15560
|
event: "rate",
|
|
@@ -15560,10 +15562,10 @@ var uv = {};
|
|
|
15560
15562
|
c.rate.apply(c, d);
|
|
15561
15563
|
}
|
|
15562
15564
|
}), c;
|
|
15563
|
-
typeof _ > "u" && (c._rate =
|
|
15565
|
+
typeof _ > "u" && (c._rate = g), _ = c._getSoundIds(_);
|
|
15564
15566
|
for (var E = 0; E < _.length; E++)
|
|
15565
15567
|
if (x = c._soundById(_[E]), x) {
|
|
15566
|
-
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 = g, c._webAudio && x._node && x._node.bufferSource ? x._node.bufferSource.playbackRate.setValueAtTime(g, r.ctx.currentTime) : x._node && (x._node.playbackRate = g);
|
|
15567
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);
|
|
15568
15570
|
(c._endTimers[_[E]] || !x._paused) && (c._clearTimer(_[E]), c._endTimers[_[E]] = setTimeout(c._ended.bind(c, x), O)), c._emit("rate", x._id);
|
|
15569
15571
|
}
|
|
@@ -15580,17 +15582,17 @@ var uv = {};
|
|
|
15580
15582
|
* @return {Howl/Number} Returns self or the current seek position.
|
|
15581
15583
|
*/
|
|
15582
15584
|
seek: function() {
|
|
15583
|
-
var c = this, d = arguments,
|
|
15585
|
+
var c = this, d = arguments, g, _;
|
|
15584
15586
|
if (d.length === 0)
|
|
15585
15587
|
c._sounds.length && (_ = c._sounds[0]._id);
|
|
15586
15588
|
else if (d.length === 1) {
|
|
15587
15589
|
var y = c._getSoundIds(), b = y.indexOf(d[0]);
|
|
15588
|
-
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, g = parseFloat(d[0]));
|
|
15589
15591
|
} else
|
|
15590
|
-
d.length === 2 && (
|
|
15592
|
+
d.length === 2 && (g = parseFloat(d[0]), _ = parseInt(d[1], 10));
|
|
15591
15593
|
if (typeof _ > "u")
|
|
15592
15594
|
return 0;
|
|
15593
|
-
if (typeof
|
|
15595
|
+
if (typeof g == "number" && (c._state !== "loaded" || c._playLock))
|
|
15594
15596
|
return c._queue.push({
|
|
15595
15597
|
event: "seek",
|
|
15596
15598
|
action: function() {
|
|
@@ -15599,9 +15601,9 @@ var uv = {};
|
|
|
15599
15601
|
}), c;
|
|
15600
15602
|
var x = c._soundById(_);
|
|
15601
15603
|
if (x)
|
|
15602
|
-
if (typeof
|
|
15604
|
+
if (typeof g == "number" && g >= 0) {
|
|
15603
15605
|
var E = c.playing(_);
|
|
15604
|
-
E && c.pause(_, !0), x._seek =
|
|
15606
|
+
E && c.pause(_, !0), x._seek = g, x._ended = !1, c._clearTimer(_), !c._webAudio && x._node && !isNaN(x._node.duration) && (x._node.currentTime = g);
|
|
15605
15607
|
var w = function() {
|
|
15606
15608
|
E && c.play(_, !0), c._emit("seek", _);
|
|
15607
15609
|
};
|
|
@@ -15627,8 +15629,8 @@ var uv = {};
|
|
|
15627
15629
|
playing: function(c) {
|
|
15628
15630
|
var d = this;
|
|
15629
15631
|
if (typeof c == "number") {
|
|
15630
|
-
var
|
|
15631
|
-
return
|
|
15632
|
+
var g = d._soundById(c);
|
|
15633
|
+
return g ? !g._paused : !1;
|
|
15632
15634
|
}
|
|
15633
15635
|
for (var _ = 0; _ < d._sounds.length; _++)
|
|
15634
15636
|
if (!d._sounds[_]._paused)
|
|
@@ -15641,8 +15643,8 @@ var uv = {};
|
|
|
15641
15643
|
* @return {Number} Audio duration in seconds.
|
|
15642
15644
|
*/
|
|
15643
15645
|
duration: function(c) {
|
|
15644
|
-
var d = this,
|
|
15645
|
-
return _ && (
|
|
15646
|
+
var d = this, g = d._duration, _ = d._soundById(c);
|
|
15647
|
+
return _ && (g = d._sprite[_._sprite][1] / 1e3), g;
|
|
15646
15648
|
},
|
|
15647
15649
|
/**
|
|
15648
15650
|
* Returns the current loaded state of this Howl.
|
|
@@ -15656,13 +15658,13 @@ var uv = {};
|
|
|
15656
15658
|
* This will immediately stop all sound instances attached to this group.
|
|
15657
15659
|
*/
|
|
15658
15660
|
unload: function() {
|
|
15659
|
-
for (var c = this, d = c._sounds,
|
|
15660
|
-
d[
|
|
15661
|
+
for (var c = this, d = c._sounds, g = 0; g < d.length; g++)
|
|
15662
|
+
d[g]._paused || c.stop(d[g]._id), c._webAudio || (c._clearSound(d[g]._node), d[g]._node.removeEventListener("error", d[g]._errorFn, !1), d[g]._node.removeEventListener(r._canPlayEvent, d[g]._loadFn, !1), d[g]._node.removeEventListener("ended", d[g]._endFn, !1), r._releaseHtml5Audio(d[g]._node)), delete d[g]._node, c._clearTimer(d[g]._id);
|
|
15661
15663
|
var _ = r._howls.indexOf(c);
|
|
15662
15664
|
_ >= 0 && r._howls.splice(_, 1);
|
|
15663
15665
|
var y = !0;
|
|
15664
|
-
for (
|
|
15665
|
-
if (r._howls[
|
|
15666
|
+
for (g = 0; g < r._howls.length; g++)
|
|
15667
|
+
if (r._howls[g]._src === c._src || c._src.indexOf(r._howls[g]._src) >= 0) {
|
|
15666
15668
|
y = !1;
|
|
15667
15669
|
break;
|
|
15668
15670
|
}
|
|
@@ -15676,9 +15678,9 @@ var uv = {};
|
|
|
15676
15678
|
* @param {Number} once (INTERNAL) Marks event to fire only once.
|
|
15677
15679
|
* @return {Howl}
|
|
15678
15680
|
*/
|
|
15679
|
-
on: function(c, d,
|
|
15681
|
+
on: function(c, d, g, _) {
|
|
15680
15682
|
var y = this, b = y["_on" + c];
|
|
15681
|
-
return typeof d == "function" && b.push(_ ? { id:
|
|
15683
|
+
return typeof d == "function" && b.push(_ ? { id: g, fn: d, once: _ } : { id: g, fn: d }), y;
|
|
15682
15684
|
},
|
|
15683
15685
|
/**
|
|
15684
15686
|
* Remove a custom event. Call without parameters to remove all events.
|
|
@@ -15687,11 +15689,11 @@ var uv = {};
|
|
|
15687
15689
|
* @param {Number} id (optional) Only remove events for this sound.
|
|
15688
15690
|
* @return {Howl}
|
|
15689
15691
|
*/
|
|
15690
|
-
off: function(c, d,
|
|
15692
|
+
off: function(c, d, g) {
|
|
15691
15693
|
var _ = this, y = _["_on" + c], b = 0;
|
|
15692
|
-
if (typeof d == "number" && (
|
|
15694
|
+
if (typeof d == "number" && (g = d, d = null), d || g)
|
|
15693
15695
|
for (b = 0; b < y.length; b++) {
|
|
15694
|
-
var x =
|
|
15696
|
+
var x = g === y[b].id;
|
|
15695
15697
|
if (d === y[b].fn && x || !d && x) {
|
|
15696
15698
|
y.splice(b, 1);
|
|
15697
15699
|
break;
|
|
@@ -15713,9 +15715,9 @@ var uv = {};
|
|
|
15713
15715
|
* @param {Number} id (optional) Only listen to events for this sound.
|
|
15714
15716
|
* @return {Howl}
|
|
15715
15717
|
*/
|
|
15716
|
-
once: function(c, d,
|
|
15718
|
+
once: function(c, d, g) {
|
|
15717
15719
|
var _ = this;
|
|
15718
|
-
return _.on(c, d,
|
|
15720
|
+
return _.on(c, d, g, 1), _;
|
|
15719
15721
|
},
|
|
15720
15722
|
/**
|
|
15721
15723
|
* Emit all events of a specific type and pass the sound id.
|
|
@@ -15724,10 +15726,10 @@ var uv = {};
|
|
|
15724
15726
|
* @param {Number} msg Message to go with event.
|
|
15725
15727
|
* @return {Howl}
|
|
15726
15728
|
*/
|
|
15727
|
-
_emit: function(c, d,
|
|
15729
|
+
_emit: function(c, d, g) {
|
|
15728
15730
|
for (var _ = this, y = _["_on" + c], b = y.length - 1; b >= 0; b--)
|
|
15729
15731
|
(!y[b].id || y[b].id === d || c === "load") && (setTimeout((function(x) {
|
|
15730
|
-
x.call(this, d,
|
|
15732
|
+
x.call(this, d, g);
|
|
15731
15733
|
}).bind(_, y[b].fn), 0), y[b].once && _.off(c, y[b].fn, y[b].id));
|
|
15732
15734
|
return _._loadQueue(c), _;
|
|
15733
15735
|
},
|
|
@@ -15740,8 +15742,8 @@ var uv = {};
|
|
|
15740
15742
|
_loadQueue: function(c) {
|
|
15741
15743
|
var d = this;
|
|
15742
15744
|
if (d._queue.length > 0) {
|
|
15743
|
-
var
|
|
15744
|
-
|
|
15745
|
+
var g = d._queue[0];
|
|
15746
|
+
g.event === c && (d._queue.shift(), d._loadQueue()), c || g.action();
|
|
15745
15747
|
}
|
|
15746
15748
|
return d;
|
|
15747
15749
|
},
|
|
@@ -15751,10 +15753,10 @@ var uv = {};
|
|
|
15751
15753
|
* @return {Howl}
|
|
15752
15754
|
*/
|
|
15753
15755
|
_ended: function(c) {
|
|
15754
|
-
var d = this,
|
|
15756
|
+
var d = this, g = c._sprite;
|
|
15755
15757
|
if (!d._webAudio && c._node && !c._node.paused && !c._node.ended && c._node.currentTime < c._stop)
|
|
15756
15758
|
return setTimeout(d._ended.bind(d, c), 100), d;
|
|
15757
|
-
var _ = !!(c._loop || d._sprite[
|
|
15759
|
+
var _ = !!(c._loop || d._sprite[g][2]);
|
|
15758
15760
|
if (d._emit("end", c._id), !d._webAudio && _ && d.stop(c._id, !0).play(c._id), d._webAudio && _) {
|
|
15759
15761
|
d._emit("play", c._id), c._seek = c._start || 0, c._rateSeek = 0, c._playStart = r.ctx.currentTime;
|
|
15760
15762
|
var y = (c._stop - c._start) * 1e3 / Math.abs(c._rate);
|
|
@@ -15773,8 +15775,8 @@ var uv = {};
|
|
|
15773
15775
|
if (typeof d._endTimers[c] != "function")
|
|
15774
15776
|
clearTimeout(d._endTimers[c]);
|
|
15775
15777
|
else {
|
|
15776
|
-
var
|
|
15777
|
-
|
|
15778
|
+
var g = d._soundById(c);
|
|
15779
|
+
g && g._node && g._node.removeEventListener("ended", d._endTimers[c], !1);
|
|
15778
15780
|
}
|
|
15779
15781
|
delete d._endTimers[c];
|
|
15780
15782
|
}
|
|
@@ -15786,9 +15788,9 @@ var uv = {};
|
|
|
15786
15788
|
* @return {Object} Sound object or null.
|
|
15787
15789
|
*/
|
|
15788
15790
|
_soundById: function(c) {
|
|
15789
|
-
for (var d = this,
|
|
15790
|
-
if (c === d._sounds[
|
|
15791
|
-
return d._sounds[
|
|
15791
|
+
for (var d = this, g = 0; g < d._sounds.length; g++)
|
|
15792
|
+
if (c === d._sounds[g]._id)
|
|
15793
|
+
return d._sounds[g];
|
|
15792
15794
|
return null;
|
|
15793
15795
|
},
|
|
15794
15796
|
/**
|
|
@@ -15807,14 +15809,14 @@ var uv = {};
|
|
|
15807
15809
|
* Drain excess inactive sounds from the pool.
|
|
15808
15810
|
*/
|
|
15809
15811
|
_drain: function() {
|
|
15810
|
-
var c = this, d = c._pool,
|
|
15812
|
+
var c = this, d = c._pool, g = 0, _ = 0;
|
|
15811
15813
|
if (!(c._sounds.length < d)) {
|
|
15812
15814
|
for (_ = 0; _ < c._sounds.length; _++)
|
|
15813
|
-
c._sounds[_]._ended &&
|
|
15815
|
+
c._sounds[_]._ended && g++;
|
|
15814
15816
|
for (_ = c._sounds.length - 1; _ >= 0; _--) {
|
|
15815
|
-
if (
|
|
15817
|
+
if (g <= d)
|
|
15816
15818
|
return;
|
|
15817
|
-
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), g--);
|
|
15818
15820
|
}
|
|
15819
15821
|
}
|
|
15820
15822
|
},
|
|
@@ -15826,9 +15828,9 @@ var uv = {};
|
|
|
15826
15828
|
_getSoundIds: function(c) {
|
|
15827
15829
|
var d = this;
|
|
15828
15830
|
if (typeof c > "u") {
|
|
15829
|
-
for (var
|
|
15830
|
-
|
|
15831
|
-
return
|
|
15831
|
+
for (var g = [], _ = 0; _ < d._sounds.length; _++)
|
|
15832
|
+
g.push(d._sounds[_]._id);
|
|
15833
|
+
return g;
|
|
15832
15834
|
} else
|
|
15833
15835
|
return [c];
|
|
15834
15836
|
},
|
|
@@ -15847,8 +15849,8 @@ var uv = {};
|
|
|
15847
15849
|
* @return {Howl}
|
|
15848
15850
|
*/
|
|
15849
15851
|
_cleanBuffer: function(c) {
|
|
15850
|
-
var d = this,
|
|
15851
|
-
if (r._scratchBuffer && c.bufferSource && (c.bufferSource.onended = null, c.bufferSource.disconnect(0),
|
|
15852
|
+
var d = this, g = r._navigator && r._navigator.vendor.indexOf("Apple") >= 0;
|
|
15853
|
+
if (r._scratchBuffer && c.bufferSource && (c.bufferSource.onended = null, c.bufferSource.disconnect(0), g))
|
|
15852
15854
|
try {
|
|
15853
15855
|
c.bufferSource.buffer = r._scratchBuffer;
|
|
15854
15856
|
} catch {
|
|
@@ -15881,8 +15883,8 @@ var uv = {};
|
|
|
15881
15883
|
* @return {Sound}
|
|
15882
15884
|
*/
|
|
15883
15885
|
create: function() {
|
|
15884
|
-
var c = this, d = c._parent,
|
|
15885
|
-
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, g = 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(g, 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 = g * r.volume(), c._node.load()), c;
|
|
15886
15888
|
},
|
|
15887
15889
|
/**
|
|
15888
15890
|
* Reset the parameters of this sound to the original state (for recycle).
|
|
@@ -15921,8 +15923,8 @@ var uv = {};
|
|
|
15921
15923
|
return;
|
|
15922
15924
|
}
|
|
15923
15925
|
if (/^data:[^;]+;base64,/.test(d)) {
|
|
15924
|
-
for (var
|
|
15925
|
-
_[y] =
|
|
15926
|
+
for (var g = atob(d.split(",")[1]), _ = new Uint8Array(g.length), y = 0; y < g.length; ++y)
|
|
15927
|
+
_[y] = g.charCodeAt(y);
|
|
15926
15928
|
f(_.buffer, c);
|
|
15927
15929
|
} else {
|
|
15928
15930
|
var b = new XMLHttpRequest();
|
|
@@ -15946,15 +15948,15 @@ var uv = {};
|
|
|
15946
15948
|
c.onerror();
|
|
15947
15949
|
}
|
|
15948
15950
|
}, f = function(c, d) {
|
|
15949
|
-
var
|
|
15951
|
+
var g = function() {
|
|
15950
15952
|
d._emit("loaderror", null, "Decoding audio data failed.");
|
|
15951
15953
|
}, _ = function(y) {
|
|
15952
|
-
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)) : g();
|
|
15953
15955
|
};
|
|
15954
|
-
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(g) : r.ctx.decodeAudioData(c, _, g);
|
|
15955
15957
|
}, p = function(c, d) {
|
|
15956
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());
|
|
15957
|
-
},
|
|
15959
|
+
}, m = function() {
|
|
15958
15960
|
if (r.usingWebAudio) {
|
|
15959
15961
|
try {
|
|
15960
15962
|
typeof AudioContext < "u" ? r.ctx = new AudioContext() : typeof webkitAudioContext < "u" ? r.ctx = new webkitAudioContext() : r.usingWebAudio = !1;
|
|
@@ -15962,8 +15964,8 @@ var uv = {};
|
|
|
15962
15964
|
r.usingWebAudio = !1;
|
|
15963
15965
|
}
|
|
15964
15966
|
r.ctx || (r.usingWebAudio = !1);
|
|
15965
|
-
var c = /iP(hone|od|ad)/.test(r._navigator && r._navigator.platform), d = r._navigator && r._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),
|
|
15966
|
-
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+)?/), g = d ? parseInt(d[1], 10) : null;
|
|
15968
|
+
if (c && g && g < 9) {
|
|
15967
15969
|
var _ = /safari/.test(r._navigator && r._navigator.userAgent.toLowerCase());
|
|
15968
15970
|
r._navigator && !_ && (r.usingWebAudio = !1);
|
|
15969
15971
|
}
|
|
@@ -16144,8 +16146,8 @@ var uv = {};
|
|
|
16144
16146
|
rolloffFactor: typeof i.rolloffFactor < "u" ? i.rolloffFactor : p.rolloffFactor,
|
|
16145
16147
|
panningModel: typeof i.panningModel < "u" ? i.panningModel : p.panningModel
|
|
16146
16148
|
};
|
|
16147
|
-
var
|
|
16148
|
-
|
|
16149
|
+
var m = u._panner;
|
|
16150
|
+
m ? (m.coneInnerAngle = p.coneInnerAngle, m.coneOuterAngle = p.coneOuterAngle, m.coneOuterGain = p.coneOuterGain, m.distanceModel = p.distanceModel, m.maxDistance = p.maxDistance, m.refDistance = p.refDistance, m.rolloffFactor = p.rolloffFactor, m.panningModel = p.panningModel) : (u._pos || (u._pos = r._pos || [0, 0, -0.5]), e(u, "spatial"));
|
|
16149
16151
|
}
|
|
16150
16152
|
return r;
|
|
16151
16153
|
}, Sound.prototype.init = function(r) {
|
|
@@ -16176,10 +16178,10 @@ const hU = (t) => {
|
|
|
16176
16178
|
isDragging: !1
|
|
16177
16179
|
}, [, r] = te.useState(!1), n = pe(null), i = pe(e), a = pe(null), u = te.useRef(null), { tl: l, dragModeRef: f } = Gi(Yn), {
|
|
16178
16180
|
uniqueId: p,
|
|
16179
|
-
src:
|
|
16181
|
+
src: m,
|
|
16180
16182
|
startAt: c,
|
|
16181
16183
|
endAt: d,
|
|
16182
|
-
mute:
|
|
16184
|
+
mute: g,
|
|
16183
16185
|
speed: _,
|
|
16184
16186
|
audioStartAt: y,
|
|
16185
16187
|
audioEndAt: b,
|
|
@@ -16235,17 +16237,17 @@ const hU = (t) => {
|
|
|
16235
16237
|
};
|
|
16236
16238
|
}, [c, d, y, b]), te.useEffect(() => {
|
|
16237
16239
|
n.current && r(!0);
|
|
16238
|
-
}, []), te.useEffect(() => (Hs(
|
|
16239
|
-
src: [
|
|
16240
|
+
}, []), te.useEffect(() => (Hs(m) || (u.current = new uv.Howl({
|
|
16241
|
+
src: [m],
|
|
16240
16242
|
// sprite: {
|
|
16241
16243
|
// [uniqueId]: [audioStartAt * 1000, (audioEndAt - audioStartAt) * 1000],
|
|
16242
16244
|
// },
|
|
16243
16245
|
autoplay: !1,
|
|
16244
16246
|
loop: !1,
|
|
16245
16247
|
rate: _ || 1,
|
|
16246
|
-
volume: !
|
|
16248
|
+
volume: !g && x ? 1 : 0,
|
|
16247
16249
|
onload: () => {
|
|
16248
|
-
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(!g && x ? 1 : 0), u.current.rate(_ || 1), u.current.pause(), i.current.isPlaying = !1, i.current.completed = !1);
|
|
16249
16251
|
},
|
|
16250
16252
|
onend: () => {
|
|
16251
16253
|
console.log("end of playing audio sprite" + p), i.current.isPlaying = !1, i.current.completed = !0;
|
|
@@ -16263,18 +16265,18 @@ const hU = (t) => {
|
|
|
16263
16265
|
u.current && u.current.unload();
|
|
16264
16266
|
}), [
|
|
16265
16267
|
p,
|
|
16266
|
-
|
|
16268
|
+
m,
|
|
16267
16269
|
c,
|
|
16268
16270
|
d,
|
|
16269
16271
|
y,
|
|
16270
16272
|
b,
|
|
16271
|
-
|
|
16273
|
+
g,
|
|
16272
16274
|
x,
|
|
16273
16275
|
_
|
|
16274
16276
|
]), te.useEffect(() => {
|
|
16275
|
-
u.current && (console.log("running updateEffect 2002", p, b), u.current.volume(!
|
|
16276
|
-
}, [
|
|
16277
|
-
/* @__PURE__ */
|
|
16277
|
+
u.current && (console.log("running updateEffect 2002", p, b), u.current.volume(!g && x ? 1 : 0), u.current.rate(_ || 1), i.current.isPlaying = !0);
|
|
16278
|
+
}, [g, x, _]), // @ts-ignore
|
|
16279
|
+
/* @__PURE__ */ Ee.jsx(wt, { ref: n });
|
|
16278
16280
|
};
|
|
16279
16281
|
function sk(t, e) {
|
|
16280
16282
|
for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; )
|
|
@@ -16293,15 +16295,15 @@ function ck(t, e, r, n) {
|
|
|
16293
16295
|
}
|
|
16294
16296
|
for (; ++i < a; ) {
|
|
16295
16297
|
l = r[i];
|
|
16296
|
-
var f = l[0], p = t[f],
|
|
16298
|
+
var f = l[0], p = t[f], m = l[1];
|
|
16297
16299
|
if (u && l[2]) {
|
|
16298
16300
|
if (p === void 0 && !(f in t))
|
|
16299
16301
|
return !1;
|
|
16300
16302
|
} else {
|
|
16301
16303
|
var c = new ak();
|
|
16302
16304
|
if (n)
|
|
16303
|
-
var d = n(p,
|
|
16304
|
-
if (!(d === void 0 ? ok(
|
|
16305
|
+
var d = n(p, m, f, t, e, c);
|
|
16306
|
+
if (!(d === void 0 ? ok(m, p, uk | lk, n, c) : d))
|
|
16305
16307
|
return !1;
|
|
16306
16308
|
}
|
|
16307
16309
|
}
|
|
@@ -16617,7 +16619,7 @@ dt.readBits = $B;
|
|
|
16617
16619
|
}), t.default = void 0;
|
|
16618
16620
|
var e = Jr, r = dt, n = {
|
|
16619
16621
|
blocks: function(d) {
|
|
16620
|
-
for (var
|
|
16622
|
+
for (var g = 0, _ = [], y = d.data.length, b = 0, x = (0, r.readByte)()(d); x !== g && x; x = (0, r.readByte)()(d)) {
|
|
16621
16623
|
if (d.pos + x >= y) {
|
|
16622
16624
|
var E = y - d.pos;
|
|
16623
16625
|
_.push((0, r.readBytes)(E)(d)), b += E;
|
|
@@ -16695,11 +16697,11 @@ dt.readBits = $B;
|
|
|
16695
16697
|
})
|
|
16696
16698
|
}]
|
|
16697
16699
|
}, (0, e.conditional)({
|
|
16698
|
-
lct: (0, r.readArray)(3, function(c, d,
|
|
16699
|
-
return Math.pow(2,
|
|
16700
|
+
lct: (0, r.readArray)(3, function(c, d, g) {
|
|
16701
|
+
return Math.pow(2, g.descriptor.lct.size + 1);
|
|
16700
16702
|
})
|
|
16701
|
-
}, function(c, d,
|
|
16702
|
-
return
|
|
16703
|
+
}, function(c, d, g) {
|
|
16704
|
+
return g.descriptor.lct.exists;
|
|
16703
16705
|
}), {
|
|
16704
16706
|
data: [{
|
|
16705
16707
|
minCodeSize: (0, r.readByte)()
|
|
@@ -16713,7 +16715,7 @@ dt.readBits = $B;
|
|
|
16713
16715
|
}, {
|
|
16714
16716
|
blockSize: (0, r.readByte)()
|
|
16715
16717
|
}, {
|
|
16716
|
-
preData: function(d,
|
|
16718
|
+
preData: function(d, g, _) {
|
|
16717
16719
|
return (0, r.readBytes)(_.text.blockSize)(d);
|
|
16718
16720
|
}
|
|
16719
16721
|
}, n]
|
|
@@ -16726,7 +16728,7 @@ dt.readBits = $B;
|
|
|
16726
16728
|
}, {
|
|
16727
16729
|
blockSize: (0, r.readByte)()
|
|
16728
16730
|
}, {
|
|
16729
|
-
id: function(d,
|
|
16731
|
+
id: function(d, g, _) {
|
|
16730
16732
|
return (0, r.readString)(_.blockSize)(d);
|
|
16731
16733
|
}
|
|
16732
16734
|
}, n]
|
|
@@ -16790,8 +16792,8 @@ dt.readBits = $B;
|
|
|
16790
16792
|
return d === 33 || d === 44;
|
|
16791
16793
|
})
|
|
16792
16794
|
}
|
|
16793
|
-
],
|
|
16794
|
-
t.default =
|
|
16795
|
+
], m = p;
|
|
16796
|
+
t.default = m;
|
|
16795
16797
|
})(mv);
|
|
16796
16798
|
var Qo = {};
|
|
16797
16799
|
Object.defineProperty(Qo, "__esModule", {
|
|
@@ -16799,12 +16801,12 @@ Object.defineProperty(Qo, "__esModule", {
|
|
|
16799
16801
|
});
|
|
16800
16802
|
Qo.deinterlace = void 0;
|
|
16801
16803
|
var GB = function(e, r) {
|
|
16802
|
-
for (var n = new Array(e.length), i = e.length / r, a = function(d,
|
|
16803
|
-
var _ = e.slice(
|
|
16804
|
+
for (var n = new Array(e.length), i = e.length / r, a = function(d, g) {
|
|
16805
|
+
var _ = e.slice(g * r, (g + 1) * r);
|
|
16804
16806
|
n.splice.apply(n, [d * r, r].concat(_));
|
|
16805
16807
|
}, u = [0, 4, 2, 1], l = [8, 8, 4, 2], f = 0, p = 0; p < 4; p++)
|
|
16806
|
-
for (var
|
|
16807
|
-
a(
|
|
16808
|
+
for (var m = u[p]; m < i; m += l[p])
|
|
16809
|
+
a(m, f), f++;
|
|
16808
16810
|
return n;
|
|
16809
16811
|
};
|
|
16810
16812
|
Qo.deinterlace = GB;
|
|
@@ -16814,29 +16816,29 @@ Object.defineProperty(Jo, "__esModule", {
|
|
|
16814
16816
|
});
|
|
16815
16817
|
Jo.lzw = void 0;
|
|
16816
16818
|
var HB = function(e, r, n) {
|
|
16817
|
-
var i = 4096, a = -1, u = n, l, f, p,
|
|
16818
|
-
for (b = e, f = 1 << b, c = f + 1, l = f + 2,
|
|
16819
|
+
var i = 4096, a = -1, u = n, l, f, p, m, c, d, g, 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, g = a, m = b + 1, p = (1 << m) - 1, _ = 0; _ < f; _++)
|
|
16819
16821
|
E[_] = 0, w[_] = _;
|
|
16820
16822
|
var O, F, N, L, D, V;
|
|
16821
16823
|
for (O = F = N = L = D = V = 0, y = 0; y < u; ) {
|
|
16822
16824
|
if (L === 0) {
|
|
16823
|
-
if (F <
|
|
16825
|
+
if (F < m) {
|
|
16824
16826
|
O += r[V] << F, F += 8, V++;
|
|
16825
16827
|
continue;
|
|
16826
16828
|
}
|
|
16827
|
-
if (_ = O & p, O >>=
|
|
16829
|
+
if (_ = O & p, O >>= m, F -= m, _ > l || _ == c)
|
|
16828
16830
|
break;
|
|
16829
16831
|
if (_ == f) {
|
|
16830
|
-
|
|
16832
|
+
m = b + 1, p = (1 << m) - 1, l = f + 2, g = a;
|
|
16831
16833
|
continue;
|
|
16832
16834
|
}
|
|
16833
|
-
if (
|
|
16834
|
-
I[L++] = w[_],
|
|
16835
|
+
if (g == a) {
|
|
16836
|
+
I[L++] = w[_], g = _, N = _;
|
|
16835
16837
|
continue;
|
|
16836
16838
|
}
|
|
16837
|
-
for (d = _, _ == l && (I[L++] = N, _ =
|
|
16839
|
+
for (d = _, _ == l && (I[L++] = N, _ = g); _ > f; )
|
|
16838
16840
|
I[L++] = w[_], _ = E[_];
|
|
16839
|
-
N = w[_] & 255, I[L++] = N, l < i && (E[l] =
|
|
16841
|
+
N = w[_] & 255, I[L++] = N, l < i && (E[l] = g, w[l] = N, l++, !(l & p) && l < i && (m++, p += l)), g = d;
|
|
16840
16842
|
}
|
|
16841
16843
|
L--, x[D++] = I[L], y++;
|
|
16842
16844
|
}
|
|
@@ -16983,7 +16985,7 @@ const r5 = (t) => ({
|
|
|
16983
16985
|
return;
|
|
16984
16986
|
const i = n.current;
|
|
16985
16987
|
i[t ? "gotoAndPlay" : "gotoAndStop"](i.currentFrame);
|
|
16986
|
-
}, [t]), /* @__PURE__ */
|
|
16988
|
+
}, [t]), /* @__PURE__ */ Ee.jsx(
|
|
16987
16989
|
nS,
|
|
16988
16990
|
{
|
|
16989
16991
|
ref: n,
|
|
@@ -17004,7 +17006,7 @@ var Io = { exports: {} };
|
|
|
17004
17006
|
Io.exports;
|
|
17005
17007
|
(function(t, e) {
|
|
17006
17008
|
(function() {
|
|
17007
|
-
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, m = "__lodash_placeholder__", c = 1, d = 2, g = 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 = [
|
|
17008
17010
|
["ary", N],
|
|
17009
17011
|
["bind", b],
|
|
17010
17012
|
["bindKey", x],
|
|
@@ -17014,7 +17016,7 @@ Io.exports;
|
|
|
17014
17016
|
["partial", O],
|
|
17015
17017
|
["partialRight", F],
|
|
17016
17018
|
["rearg", L]
|
|
17017
|
-
], fe = "[object Arguments]",
|
|
17019
|
+
], fe = "[object Arguments]", we = "[object Array]", Ue = "[object AsyncFunction]", He = "[object Boolean]", je = "[object Date]", be = "[object DOMException]", Ce = "[object Error]", $e = "[object Function]", Ke = "[object GeneratorFunction]", Ae = "[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([
|
|
17018
17020
|
ri + "?" + Lh + "+" + $h + "(?=" + [Fh, ri, "$"].join("|") + ")",
|
|
17019
17021
|
r_ + "+" + Gh + "(?=" + [Fh, ri + Uh, "$"].join("|") + ")",
|
|
17020
17022
|
ri + "?" + Uh + "+" + $h,
|
|
@@ -17055,9 +17057,9 @@ Io.exports;
|
|
|
17055
17057
|
"parseInt",
|
|
17056
17058
|
"setTimeout"
|
|
17057
17059
|
], p_ = -1, et = {};
|
|
17058
|
-
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[we] = et[ei] = et[He] = et[ti] = et[je] = et[Ce] = et[$e] = et[Ae] = et[_e] = et[ce] = et[Bt] = et[lt] = et[tr] = et[bn] = !1;
|
|
17059
17061
|
var Ze = {};
|
|
17060
|
-
Ze[fe] = Ze[
|
|
17062
|
+
Ze[fe] = Ze[we] = Ze[ei] = Ze[ti] = Ze[He] = Ze[je] = Ze[tu] = Ze[ru] = Ze[nu] = Ze[iu] = Ze[su] = Ze[Ae] = Ze[_e] = Ze[ce] = Ze[Bt] = Ze[lt] = Ze[tr] = Ze[Jn] = Ze[au] = Ze[ou] = Ze[uu] = Ze[lu] = !0, Ze[Ce] = Ze[$e] = Ze[bn] = !1;
|
|
17061
17063
|
var g_ = {
|
|
17062
17064
|
// Latin-1 Supplement block.
|
|
17063
17065
|
À: "A",
|
|
@@ -17495,7 +17497,7 @@ Io.exports;
|
|
|
17495
17497
|
function rn(P, B) {
|
|
17496
17498
|
for (var k = -1, Z = P.length, ve = 0, Ge = []; ++k < Z; ) {
|
|
17497
17499
|
var mt = P[k];
|
|
17498
|
-
(mt === B || mt ===
|
|
17500
|
+
(mt === B || mt === m) && (P[k] = m, Ge[ve++] = k);
|
|
17499
17501
|
}
|
|
17500
17502
|
return Ge;
|
|
17501
17503
|
}
|
|
@@ -17656,7 +17658,7 @@ Io.exports;
|
|
|
17656
17658
|
for (; M-- && q < ee; ) {
|
|
17657
17659
|
U += o;
|
|
17658
17660
|
for (var Te = -1, ue = s[U]; ++Te < z; ) {
|
|
17659
|
-
var
|
|
17661
|
+
var Ie = $[Te], Fe = Ie.iteratee, Kt = Ie.type, Lt = Fe(ue);
|
|
17660
17662
|
if (Kt == ie)
|
|
17661
17663
|
ue = Lt;
|
|
17662
17664
|
else if (!Lt) {
|
|
@@ -17860,7 +17862,7 @@ Io.exports;
|
|
|
17860
17862
|
return s === s && (h !== r && (s = s <= h ? s : h), o !== r && (s = s >= o ? s : o)), s;
|
|
17861
17863
|
}
|
|
17862
17864
|
function ar(s, o, h, v, T, A) {
|
|
17863
|
-
var C, R = o & c, M = o & d, U = o &
|
|
17865
|
+
var C, R = o & c, M = o & d, U = o & g;
|
|
17864
17866
|
if (h && (C = T ? h(s, v, T, A) : h(s)), C !== r)
|
|
17865
17867
|
return C;
|
|
17866
17868
|
if (!st(s))
|
|
@@ -17888,12 +17890,12 @@ Io.exports;
|
|
|
17888
17890
|
return ee;
|
|
17889
17891
|
A.set(s, C), Bd(s) ? s.forEach(function(ue) {
|
|
17890
17892
|
C.add(ar(ue, o, h, ue, s, A));
|
|
17891
|
-
}) : kd(s) && s.forEach(function(ue,
|
|
17892
|
-
C.set(
|
|
17893
|
+
}) : kd(s) && s.forEach(function(ue, Ie) {
|
|
17894
|
+
C.set(Ie, ar(ue, o, h, Ie, s, A));
|
|
17893
17895
|
});
|
|
17894
17896
|
var oe = U ? M ? Ju : Qu : M ? Gt : yt, Te = $ ? r : oe(s);
|
|
17895
|
-
return nr(Te || s, function(ue,
|
|
17896
|
-
Te && (
|
|
17897
|
+
return nr(Te || s, function(ue, Ie) {
|
|
17898
|
+
Te && (Ie = ue, ue = s[Ie]), rs(C, Ie, ar(ue, o, h, Ie, s, A));
|
|
17897
17899
|
}), C;
|
|
17898
17900
|
}
|
|
17899
17901
|
function Gy(s) {
|
|
@@ -18054,7 +18056,7 @@ Io.exports;
|
|
|
18054
18056
|
return s === o ? !0 : s == null || o == null || !ct(s) && !ct(o) ? s !== s && o !== o : Ky(s, o, h, v, ss, T);
|
|
18055
18057
|
}
|
|
18056
18058
|
function Ky(s, o, h, v, T, A) {
|
|
18057
|
-
var C = ye(s), R = ye(o), M = C ?
|
|
18059
|
+
var C = ye(s), R = ye(o), M = C ? we : Rt(s), U = R ? we : Rt(o);
|
|
18058
18060
|
M = M == fe ? ce : M, U = U == fe ? ce : U;
|
|
18059
18061
|
var $ = M == ce, z = U == ce, q = M == U;
|
|
18060
18062
|
if (q && ln(s)) {
|
|
@@ -18074,7 +18076,7 @@ Io.exports;
|
|
|
18074
18076
|
return q ? (A || (A = new pr()), Sx(s, o, h, v, T, A)) : !1;
|
|
18075
18077
|
}
|
|
18076
18078
|
function Zy(s) {
|
|
18077
|
-
return ct(s) && Rt(s) ==
|
|
18079
|
+
return ct(s) && Rt(s) == Ae;
|
|
18078
18080
|
}
|
|
18079
18081
|
function Bu(s, o, h, v) {
|
|
18080
18082
|
var T = h.length, A = T, C = !v;
|
|
@@ -18253,7 +18255,7 @@ Io.exports;
|
|
|
18253
18255
|
while (o);
|
|
18254
18256
|
return h;
|
|
18255
18257
|
}
|
|
18256
|
-
function
|
|
18258
|
+
function Se(s, o) {
|
|
18257
18259
|
return al(fd(s, o, Ht), s + "");
|
|
18258
18260
|
}
|
|
18259
18261
|
function ax(s) {
|
|
@@ -18420,7 +18422,7 @@ Io.exports;
|
|
|
18420
18422
|
function on(s, o) {
|
|
18421
18423
|
return ye(s) ? s : nl(s, o) ? [s] : vd(ze(s));
|
|
18422
18424
|
}
|
|
18423
|
-
var hx =
|
|
18425
|
+
var hx = Se;
|
|
18424
18426
|
function un(s, o, h) {
|
|
18425
18427
|
var v = s.length;
|
|
18426
18428
|
return h = h === r ? v : h, !o && h >= v ? s : or(s, o, h);
|
|
@@ -18521,7 +18523,7 @@ Io.exports;
|
|
|
18521
18523
|
};
|
|
18522
18524
|
}
|
|
18523
18525
|
function hi(s) {
|
|
18524
|
-
return
|
|
18526
|
+
return Se(function(o, h) {
|
|
18525
18527
|
var v = -1, T = h.length, A = T > 1 ? h[T - 1] : r, C = T > 2 ? h[2] : r;
|
|
18526
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; ) {
|
|
18527
18529
|
var R = h[v];
|
|
@@ -18661,11 +18663,11 @@ Io.exports;
|
|
|
18661
18663
|
function ya(s, o, h, v, T, A, C, R, M, U) {
|
|
18662
18664
|
var $ = o & N, z = o & b, q = o & x, ee = o & (w | I), oe = o & D, Te = q ? r : os(s);
|
|
18663
18665
|
function ue() {
|
|
18664
|
-
for (var
|
|
18666
|
+
for (var Ie = arguments.length, Fe = k(Ie), Kt = Ie; Kt--; )
|
|
18665
18667
|
Fe[Kt] = arguments[Kt];
|
|
18666
18668
|
if (ee)
|
|
18667
18669
|
var Lt = di(ue), Zt = M_(Fe, Lt);
|
|
18668
|
-
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)), Ie -= Zt, ee && Ie < U) {
|
|
18669
18671
|
var ft = rn(Fe, Lt);
|
|
18670
18672
|
return rd(
|
|
18671
18673
|
s,
|
|
@@ -18677,11 +18679,11 @@ Io.exports;
|
|
|
18677
18679
|
ft,
|
|
18678
18680
|
R,
|
|
18679
18681
|
M,
|
|
18680
|
-
U -
|
|
18682
|
+
U - Ie
|
|
18681
18683
|
);
|
|
18682
18684
|
}
|
|
18683
18685
|
var mr = z ? h : this, jr = q ? mr[s] : s;
|
|
18684
|
-
return
|
|
18686
|
+
return Ie = Fe.length, R ? Fe = Ux(Fe, R) : oe && Ie > 1 && Fe.reverse(), $ && M < Ie && (Fe.length = M), this && this !== St && this instanceof ue && (jr = Te || os(jr)), jr.apply(mr, Fe);
|
|
18685
18687
|
}
|
|
18686
18688
|
return ue;
|
|
18687
18689
|
}
|
|
@@ -18705,7 +18707,7 @@ Io.exports;
|
|
|
18705
18707
|
}
|
|
18706
18708
|
function Ku(s) {
|
|
18707
18709
|
return zr(function(o) {
|
|
18708
|
-
return o = nt(o, jt(ae())),
|
|
18710
|
+
return o = nt(o, jt(ae())), Se(function(h) {
|
|
18709
18711
|
var v = this;
|
|
18710
18712
|
return s(o, function(T) {
|
|
18711
18713
|
return Wt(T, v, h);
|
|
@@ -18775,7 +18777,7 @@ Io.exports;
|
|
|
18775
18777
|
function nd(s) {
|
|
18776
18778
|
return function(o) {
|
|
18777
18779
|
var h = Rt(o);
|
|
18778
|
-
return h ==
|
|
18780
|
+
return h == Ae ? Cu(o) : h == lt ? B_(o) : P_(o, s(o));
|
|
18779
18781
|
};
|
|
18780
18782
|
}
|
|
18781
18783
|
function Hr(s, o, h, v, T, A, C, R) {
|
|
@@ -18834,8 +18836,8 @@ Io.exports;
|
|
|
18834
18836
|
break;
|
|
18835
18837
|
}
|
|
18836
18838
|
if (ee) {
|
|
18837
|
-
if (!bu(o, function(
|
|
18838
|
-
if (!Ki(ee, Fe) && (oe ===
|
|
18839
|
+
if (!bu(o, function(Ie, Fe) {
|
|
18840
|
+
if (!Ki(ee, Fe) && (oe === Ie || T(oe, Ie, h, v, A)))
|
|
18839
18841
|
return ee.push(Fe);
|
|
18840
18842
|
})) {
|
|
18841
18843
|
q = !1;
|
|
@@ -18860,12 +18862,12 @@ Io.exports;
|
|
|
18860
18862
|
case je:
|
|
18861
18863
|
case _e:
|
|
18862
18864
|
return gr(+s, +o);
|
|
18863
|
-
case
|
|
18865
|
+
case Ce:
|
|
18864
18866
|
return s.name == o.name && s.message == o.message;
|
|
18865
18867
|
case Bt:
|
|
18866
18868
|
case tr:
|
|
18867
18869
|
return s == o + "";
|
|
18868
|
-
case
|
|
18870
|
+
case Ae:
|
|
18869
18871
|
var R = Cu;
|
|
18870
18872
|
case lt:
|
|
18871
18873
|
var M = v & _;
|
|
@@ -18899,10 +18901,10 @@ Io.exports;
|
|
|
18899
18901
|
A.set(s, o), A.set(o, s);
|
|
18900
18902
|
for (var ue = C; ++z < M; ) {
|
|
18901
18903
|
q = R[z];
|
|
18902
|
-
var
|
|
18904
|
+
var Ie = s[q], Fe = o[q];
|
|
18903
18905
|
if (v)
|
|
18904
|
-
var Kt = C ? v(Fe,
|
|
18905
|
-
if (!(Kt === r ?
|
|
18906
|
+
var Kt = C ? v(Fe, Ie, q, o, s, A) : v(Ie, Fe, q, s, o, A);
|
|
18907
|
+
if (!(Kt === r ? Ie === Fe || T(Ie, Fe, h, v, A) : Kt)) {
|
|
18906
18908
|
Te = !1;
|
|
18907
18909
|
break;
|
|
18908
18910
|
}
|
|
@@ -18976,14 +18978,14 @@ Io.exports;
|
|
|
18976
18978
|
tn(o, rl(s)), s = ia(s);
|
|
18977
18979
|
return o;
|
|
18978
18980
|
} : xl, Rt = Ft;
|
|
18979
|
-
(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()) != Ae || Mu && Rt(Mu.resolve()) != Oe || ui && Rt(new ui()) != lt || Ji && Rt(new Ji()) != bn) && (Rt = function(s) {
|
|
18980
18982
|
var o = Ft(s), h = o == ce ? s.constructor : r, v = h ? Rn(h) : "";
|
|
18981
18983
|
if (v)
|
|
18982
18984
|
switch (v) {
|
|
18983
18985
|
case oy:
|
|
18984
18986
|
return ti;
|
|
18985
18987
|
case uy:
|
|
18986
|
-
return
|
|
18988
|
+
return Ae;
|
|
18987
18989
|
case ly:
|
|
18988
18990
|
return Oe;
|
|
18989
18991
|
case cy:
|
|
@@ -19054,7 +19056,7 @@ Io.exports;
|
|
|
19054
19056
|
case uu:
|
|
19055
19057
|
case lu:
|
|
19056
19058
|
return Xf(s, h);
|
|
19057
|
-
case
|
|
19059
|
+
case Ae:
|
|
19058
19060
|
return new v();
|
|
19059
19061
|
case _e:
|
|
19060
19062
|
case tr:
|
|
@@ -19138,9 +19140,9 @@ Io.exports;
|
|
|
19138
19140
|
var R = o[3];
|
|
19139
19141
|
if (R) {
|
|
19140
19142
|
var M = s[3];
|
|
19141
|
-
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], m) : o[4];
|
|
19142
19144
|
}
|
|
19143
|
-
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], m) : 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;
|
|
19144
19146
|
}
|
|
19145
19147
|
function Dx(s) {
|
|
19146
19148
|
var o = [];
|
|
@@ -19264,12 +19266,12 @@ Io.exports;
|
|
|
19264
19266
|
o[v - 1] = arguments[v];
|
|
19265
19267
|
return tn(ye(h) ? Ut(h) : [h], At(o, 1));
|
|
19266
19268
|
}
|
|
19267
|
-
var Vx =
|
|
19269
|
+
var Vx = Se(function(s, o) {
|
|
19268
19270
|
return ht(s) ? ns(s, At(o, 1, ht, !0)) : [];
|
|
19269
|
-
}), Xx =
|
|
19271
|
+
}), Xx = Se(function(s, o) {
|
|
19270
19272
|
var h = ur(o);
|
|
19271
19273
|
return ht(h) && (h = r), ht(s) ? ns(s, At(o, 1, ht, !0), ae(h, 2)) : [];
|
|
19272
|
-
}), Wx =
|
|
19274
|
+
}), Wx = Se(function(s, o) {
|
|
19273
19275
|
var h = ur(o);
|
|
19274
19276
|
return ht(h) && (h = r), ht(s) ? ns(s, At(o, 1, ht, !0), r, h) : [];
|
|
19275
19277
|
});
|
|
@@ -19338,13 +19340,13 @@ Io.exports;
|
|
|
19338
19340
|
var o = s == null ? 0 : s.length;
|
|
19339
19341
|
return o ? or(s, 0, -1) : [];
|
|
19340
19342
|
}
|
|
19341
|
-
var n1 =
|
|
19343
|
+
var n1 = Se(function(s) {
|
|
19342
19344
|
var o = nt(s, ju);
|
|
19343
19345
|
return o.length && o[0] === s[0] ? Du(o) : [];
|
|
19344
|
-
}), i1 =
|
|
19346
|
+
}), i1 = Se(function(s) {
|
|
19345
19347
|
var o = ur(s), h = nt(s, ju);
|
|
19346
19348
|
return o === ur(h) ? o = r : h.pop(), h.length && h[0] === s[0] ? Du(h, ae(o, 2)) : [];
|
|
19347
|
-
}), s1 =
|
|
19349
|
+
}), s1 = Se(function(s) {
|
|
19348
19350
|
var o = ur(s), h = nt(s, ju);
|
|
19349
19351
|
return o = typeof o == "function" ? o : r, o && h.pop(), h.length && h[0] === s[0] ? Du(h, r, o) : [];
|
|
19350
19352
|
});
|
|
@@ -19365,7 +19367,7 @@ Io.exports;
|
|
|
19365
19367
|
function u1(s, o) {
|
|
19366
19368
|
return s && s.length ? Ff(s, xe(o)) : r;
|
|
19367
19369
|
}
|
|
19368
|
-
var l1 =
|
|
19370
|
+
var l1 = Se(wd);
|
|
19369
19371
|
function wd(s, o) {
|
|
19370
19372
|
return s && s.length && o && o.length ? Gu(s, o) : s;
|
|
19371
19373
|
}
|
|
@@ -19452,12 +19454,12 @@ Io.exports;
|
|
|
19452
19454
|
function C1(s, o) {
|
|
19453
19455
|
return s && s.length ? va(s, ae(o, 3)) : [];
|
|
19454
19456
|
}
|
|
19455
|
-
var I1 =
|
|
19457
|
+
var I1 = Se(function(s) {
|
|
19456
19458
|
return an(At(s, 1, ht, !0));
|
|
19457
|
-
}), R1 =
|
|
19459
|
+
}), R1 = Se(function(s) {
|
|
19458
19460
|
var o = ur(s);
|
|
19459
19461
|
return ht(o) && (o = r), an(At(s, 1, ht, !0), ae(o, 2));
|
|
19460
|
-
}), P1 =
|
|
19462
|
+
}), P1 = Se(function(s) {
|
|
19461
19463
|
var o = ur(s);
|
|
19462
19464
|
return o = typeof o == "function" ? o : r, an(At(s, 1, ht, !0), r, o);
|
|
19463
19465
|
});
|
|
@@ -19489,24 +19491,24 @@ Io.exports;
|
|
|
19489
19491
|
return Wt(o, r, v);
|
|
19490
19492
|
});
|
|
19491
19493
|
}
|
|
19492
|
-
var N1 =
|
|
19494
|
+
var N1 = Se(function(s, o) {
|
|
19493
19495
|
return ht(s) ? ns(s, o) : [];
|
|
19494
|
-
}), L1 =
|
|
19496
|
+
}), L1 = Se(function(s) {
|
|
19495
19497
|
return Wu(en(s, ht));
|
|
19496
|
-
}), k1 =
|
|
19498
|
+
}), k1 = Se(function(s) {
|
|
19497
19499
|
var o = ur(s);
|
|
19498
19500
|
return ht(o) && (o = r), Wu(en(s, ht), ae(o, 2));
|
|
19499
|
-
}), D1 =
|
|
19501
|
+
}), D1 = Se(function(s) {
|
|
19500
19502
|
var o = ur(s);
|
|
19501
19503
|
return o = typeof o == "function" ? o : r, Wu(en(s, ht), r, o);
|
|
19502
|
-
}), B1 =
|
|
19504
|
+
}), B1 = Se(ul);
|
|
19503
19505
|
function U1(s, o) {
|
|
19504
19506
|
return Hf(s || [], o || [], rs);
|
|
19505
19507
|
}
|
|
19506
19508
|
function $1(s, o) {
|
|
19507
19509
|
return Hf(s || [], o || [], as);
|
|
19508
19510
|
}
|
|
19509
|
-
var G1 =
|
|
19511
|
+
var G1 = Se(function(s) {
|
|
19510
19512
|
var o = s.length, h = o > 1 ? s[o - 1] : r;
|
|
19511
19513
|
return h = typeof h == "function" ? (s.pop(), h) : r, Sd(s, h);
|
|
19512
19514
|
});
|
|
@@ -19607,7 +19609,7 @@ Io.exports;
|
|
|
19607
19609
|
var T = s.length;
|
|
19608
19610
|
return h < 0 && (h = vt(T + h, 0)), Oa(s) ? h <= T && s.indexOf(o, h) > -1 : !!T && ni(s, o, h) > -1;
|
|
19609
19611
|
}
|
|
19610
|
-
var ob =
|
|
19612
|
+
var ob = Se(function(s, o, h) {
|
|
19611
19613
|
var v = -1, T = typeof o == "function", A = $t(s) ? k(s.length) : [];
|
|
19612
19614
|
return sn(s, function(C) {
|
|
19613
19615
|
A[++v] = T ? Wt(o, C, h) : is(C, o, h);
|
|
@@ -19658,13 +19660,13 @@ Io.exports;
|
|
|
19658
19660
|
if ($t(s))
|
|
19659
19661
|
return Oa(s) ? si(s) : s.length;
|
|
19660
19662
|
var o = Rt(s);
|
|
19661
|
-
return o ==
|
|
19663
|
+
return o == Ae || o == lt ? s.size : Uu(s).length;
|
|
19662
19664
|
}
|
|
19663
19665
|
function _b(s, o, h) {
|
|
19664
19666
|
var v = ye(s) ? bu : cx;
|
|
19665
19667
|
return h && Nt(s, o, h) && (o = r), v(s, ae(o, 3));
|
|
19666
19668
|
}
|
|
19667
|
-
var yb =
|
|
19669
|
+
var yb = Se(function(s, o) {
|
|
19668
19670
|
if (s == null)
|
|
19669
19671
|
return [];
|
|
19670
19672
|
var h = o.length;
|
|
@@ -19691,14 +19693,14 @@ Io.exports;
|
|
|
19691
19693
|
return --s > 0 && (h = o.apply(this, arguments)), s <= 1 && (o = r), h;
|
|
19692
19694
|
};
|
|
19693
19695
|
}
|
|
19694
|
-
var ll =
|
|
19696
|
+
var ll = Se(function(s, o, h) {
|
|
19695
19697
|
var v = b;
|
|
19696
19698
|
if (h.length) {
|
|
19697
19699
|
var T = rn(h, di(ll));
|
|
19698
19700
|
v |= O;
|
|
19699
19701
|
}
|
|
19700
19702
|
return Hr(s, v, o, h, T);
|
|
19701
|
-
}), Pd =
|
|
19703
|
+
}), Pd = Se(function(s, o, h) {
|
|
19702
19704
|
var v = b | x;
|
|
19703
19705
|
if (h.length) {
|
|
19704
19706
|
var T = rn(h, di(Pd));
|
|
@@ -19726,7 +19728,7 @@ Io.exports;
|
|
|
19726
19728
|
return v = T = r, U = ft, C = s.apply(jr, mr), C;
|
|
19727
19729
|
}
|
|
19728
19730
|
function oe(ft) {
|
|
19729
|
-
return U = ft, R = ls(
|
|
19731
|
+
return U = ft, R = ls(Ie, o), $ ? ee(ft) : C;
|
|
19730
19732
|
}
|
|
19731
19733
|
function Te(ft) {
|
|
19732
19734
|
var mr = ft - M, jr = ft - U, Qd = o - mr;
|
|
@@ -19736,11 +19738,11 @@ Io.exports;
|
|
|
19736
19738
|
var mr = ft - M, jr = ft - U;
|
|
19737
19739
|
return M === r || mr >= o || mr < 0 || z && jr >= A;
|
|
19738
19740
|
}
|
|
19739
|
-
function
|
|
19741
|
+
function Ie() {
|
|
19740
19742
|
var ft = Ia();
|
|
19741
19743
|
if (ue(ft))
|
|
19742
19744
|
return Fe(ft);
|
|
19743
|
-
R = ls(
|
|
19745
|
+
R = ls(Ie, Te(ft));
|
|
19744
19746
|
}
|
|
19745
19747
|
function Fe(ft) {
|
|
19746
19748
|
return R = r, q && v ? ee(ft) : (v = T = r, C);
|
|
@@ -19757,15 +19759,15 @@ Io.exports;
|
|
|
19757
19759
|
if (R === r)
|
|
19758
19760
|
return oe(M);
|
|
19759
19761
|
if (z)
|
|
19760
|
-
return zf(R), R = ls(
|
|
19762
|
+
return zf(R), R = ls(Ie, o), ee(M);
|
|
19761
19763
|
}
|
|
19762
|
-
return R === r && (R = ls(
|
|
19764
|
+
return R === r && (R = ls(Ie, o)), C;
|
|
19763
19765
|
}
|
|
19764
19766
|
return Zt.cancel = Kt, Zt.flush = Lt, Zt;
|
|
19765
19767
|
}
|
|
19766
|
-
var bb =
|
|
19768
|
+
var bb = Se(function(s, o) {
|
|
19767
19769
|
return Tf(s, 1, o);
|
|
19768
|
-
}), Tb =
|
|
19770
|
+
}), Tb = Se(function(s, o, h) {
|
|
19769
19771
|
return Tf(s, lr(o) || 0, h);
|
|
19770
19772
|
});
|
|
19771
19773
|
function wb(s) {
|
|
@@ -19808,15 +19810,15 @@ Io.exports;
|
|
|
19808
19810
|
var Ab = hx(function(s, o) {
|
|
19809
19811
|
o = o.length == 1 && ye(o[0]) ? nt(o[0], jt(ae())) : nt(At(o, 1), jt(ae()));
|
|
19810
19812
|
var h = o.length;
|
|
19811
|
-
return
|
|
19813
|
+
return Se(function(v) {
|
|
19812
19814
|
for (var T = -1, A = It(v.length, h); ++T < A; )
|
|
19813
19815
|
v[T] = o[T].call(this, v[T]);
|
|
19814
19816
|
return Wt(s, this, v);
|
|
19815
19817
|
});
|
|
19816
|
-
}), cl =
|
|
19818
|
+
}), cl = Se(function(s, o) {
|
|
19817
19819
|
var h = rn(o, di(cl));
|
|
19818
19820
|
return Hr(s, O, r, o, h);
|
|
19819
|
-
}), Nd =
|
|
19821
|
+
}), Nd = Se(function(s, o) {
|
|
19820
19822
|
var h = rn(o, di(Nd));
|
|
19821
19823
|
return Hr(s, F, r, o, h);
|
|
19822
19824
|
}), Eb = zr(function(s, o) {
|
|
@@ -19825,12 +19827,12 @@ Io.exports;
|
|
|
19825
19827
|
function Cb(s, o) {
|
|
19826
19828
|
if (typeof s != "function")
|
|
19827
19829
|
throw new ir(u);
|
|
19828
|
-
return o = o === r ? o : xe(o),
|
|
19830
|
+
return o = o === r ? o : xe(o), Se(s, o);
|
|
19829
19831
|
}
|
|
19830
19832
|
function Ib(s, o) {
|
|
19831
19833
|
if (typeof s != "function")
|
|
19832
19834
|
throw new ir(u);
|
|
19833
|
-
return o = o == null ? 0 : vt(xe(o), 0),
|
|
19835
|
+
return o = o == null ? 0 : vt(xe(o), 0), Se(function(h) {
|
|
19834
19836
|
var v = h[o], T = un(h, 0, o);
|
|
19835
19837
|
return v && tn(T, v), Wt(s, this, T);
|
|
19836
19838
|
});
|
|
@@ -19858,16 +19860,16 @@ Io.exports;
|
|
|
19858
19860
|
return ye(s) ? s : [s];
|
|
19859
19861
|
}
|
|
19860
19862
|
function Fb(s) {
|
|
19861
|
-
return ar(s,
|
|
19863
|
+
return ar(s, g);
|
|
19862
19864
|
}
|
|
19863
19865
|
function Nb(s, o) {
|
|
19864
|
-
return o = typeof o == "function" ? o : r, ar(s,
|
|
19866
|
+
return o = typeof o == "function" ? o : r, ar(s, g, o);
|
|
19865
19867
|
}
|
|
19866
19868
|
function Lb(s) {
|
|
19867
|
-
return ar(s, c |
|
|
19869
|
+
return ar(s, c | g);
|
|
19868
19870
|
}
|
|
19869
19871
|
function kb(s, o) {
|
|
19870
|
-
return o = typeof o == "function" ? o : r, ar(s, c |
|
|
19872
|
+
return o = typeof o == "function" ? o : r, ar(s, c | g, o);
|
|
19871
19873
|
}
|
|
19872
19874
|
function Db(s, o) {
|
|
19873
19875
|
return o == null || bf(s, o, yt(o));
|
|
@@ -19901,7 +19903,7 @@ Io.exports;
|
|
|
19901
19903
|
if ($t(s) && (ye(s) || typeof s == "string" || typeof s.splice == "function" || ln(s) || pi(s) || Pn(s)))
|
|
19902
19904
|
return !s.length;
|
|
19903
19905
|
var o = Rt(s);
|
|
19904
|
-
if (o ==
|
|
19906
|
+
if (o == Ae || o == lt)
|
|
19905
19907
|
return !s.size;
|
|
19906
19908
|
if (us(s))
|
|
19907
19909
|
return !Uu(s).length;
|
|
@@ -19922,7 +19924,7 @@ Io.exports;
|
|
|
19922
19924
|
if (!ct(s))
|
|
19923
19925
|
return !1;
|
|
19924
19926
|
var o = Ft(s);
|
|
19925
|
-
return o ==
|
|
19927
|
+
return o == Ce || o == be || typeof s.message == "string" && typeof s.name == "string" && !cs(s);
|
|
19926
19928
|
}
|
|
19927
19929
|
function jb(s) {
|
|
19928
19930
|
return typeof s == "number" && gf(s);
|
|
@@ -20010,7 +20012,7 @@ Io.exports;
|
|
|
20010
20012
|
return Oa(s) ? dr(s) : Ut(s);
|
|
20011
20013
|
if (Zi && s[Zi])
|
|
20012
20014
|
return D_(s[Zi]());
|
|
20013
|
-
var o = Rt(s), h = o ==
|
|
20015
|
+
var o = Rt(s), h = o == Ae ? Cu : o == lt ? Zs : gi;
|
|
20014
20016
|
return h(s);
|
|
20015
20017
|
}
|
|
20016
20018
|
function Wr(s) {
|
|
@@ -20071,7 +20073,7 @@ Io.exports;
|
|
|
20071
20073
|
var h = ci(s);
|
|
20072
20074
|
return o == null ? h : xf(h, o);
|
|
20073
20075
|
}
|
|
20074
|
-
var hT =
|
|
20076
|
+
var hT = Se(function(s, o) {
|
|
20075
20077
|
s = qe(s);
|
|
20076
20078
|
var h = -1, v = o.length, T = v > 2 ? o[2] : r;
|
|
20077
20079
|
for (T && Nt(o[0], o[1], T) && (v = 1); ++h < v; )
|
|
@@ -20080,7 +20082,7 @@ Io.exports;
|
|
|
20080
20082
|
($ === r || gr($, oi[U]) && !Xe.call(s, U)) && (s[U] = A[U]);
|
|
20081
20083
|
}
|
|
20082
20084
|
return s;
|
|
20083
|
-
}), fT =
|
|
20085
|
+
}), fT = Se(function(s) {
|
|
20084
20086
|
return s.push(r, sd), Wt(zd, r, s);
|
|
20085
20087
|
});
|
|
20086
20088
|
function dT(s, o) {
|
|
@@ -20121,7 +20123,7 @@ Io.exports;
|
|
|
20121
20123
|
o != null && typeof o.toString != "function" && (o = ta.call(o)), s[o] = h;
|
|
20122
20124
|
}, ml(Ht)), wT = ed(function(s, o, h) {
|
|
20123
20125
|
o != null && typeof o.toString != "function" && (o = ta.call(o)), Xe.call(s, o) ? s[o].push(h) : s[o] = [h];
|
|
20124
|
-
}, ae), ST =
|
|
20126
|
+
}, ae), ST = Se(is);
|
|
20125
20127
|
function yt(s) {
|
|
20126
20128
|
return $t(s) ? _f(s) : Uu(s);
|
|
20127
20129
|
}
|
|
@@ -20151,7 +20153,7 @@ Io.exports;
|
|
|
20151
20153
|
var v = !1;
|
|
20152
20154
|
o = nt(o, function(A) {
|
|
20153
20155
|
return A = on(A, s), v || (v = A.length > 1), A;
|
|
20154
|
-
}), Rr(s, Ju(s), h), v && (h = ar(h, c | d |
|
|
20156
|
+
}), Rr(s, Ju(s), h), v && (h = ar(h, c | d | g, Tx));
|
|
20155
20157
|
for (var T = o.length; T--; )
|
|
20156
20158
|
Xu(h, o[T]);
|
|
20157
20159
|
return h;
|
|
@@ -20305,9 +20307,9 @@ Io.exports;
|
|
|
20305
20307
|
"g"
|
|
20306
20308
|
), ee = "//# sourceURL=" + (Xe.call(o, "sourceURL") ? (o.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++p_ + "]") + `
|
|
20307
20309
|
`;
|
|
20308
|
-
s.replace(q, function(ue,
|
|
20309
|
-
return Fe || (Fe = Kt), z += s.slice(U, Zt).replace(Xv, N_),
|
|
20310
|
-
__e(` +
|
|
20310
|
+
s.replace(q, function(ue, Ie, Fe, Kt, Lt, Zt) {
|
|
20311
|
+
return Fe || (Fe = Kt), z += s.slice(U, Zt).replace(Xv, N_), Ie && (R = !0, z += `' +
|
|
20312
|
+
__e(` + Ie + `) +
|
|
20311
20313
|
'`), Lt && (M = !0, z += `';
|
|
20312
20314
|
` + Lt + `;
|
|
20313
20315
|
__p += '`), Fe && (z += `' +
|
|
@@ -20409,7 +20411,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20409
20411
|
function Yd(s, o, h) {
|
|
20410
20412
|
return s = ze(s), o = h ? r : o, o === r ? k_(s) ? V_(s) : C_(s) : s.match(o) || [];
|
|
20411
20413
|
}
|
|
20412
|
-
var Kd =
|
|
20414
|
+
var Kd = Se(function(s, o) {
|
|
20413
20415
|
try {
|
|
20414
20416
|
return Wt(s, r, o);
|
|
20415
20417
|
} catch (h) {
|
|
@@ -20426,7 +20428,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20426
20428
|
if (typeof v[1] != "function")
|
|
20427
20429
|
throw new ir(u);
|
|
20428
20430
|
return [h(v[0]), v[1]];
|
|
20429
|
-
}) : [],
|
|
20431
|
+
}) : [], Se(function(v) {
|
|
20430
20432
|
for (var T = -1; ++T < o; ) {
|
|
20431
20433
|
var A = s[T];
|
|
20432
20434
|
if (Wt(A[0], this, v))
|
|
@@ -20458,11 +20460,11 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20458
20460
|
function bw(s, o) {
|
|
20459
20461
|
return Of(s, ar(o, c));
|
|
20460
20462
|
}
|
|
20461
|
-
var Tw =
|
|
20463
|
+
var Tw = Se(function(s, o) {
|
|
20462
20464
|
return function(h) {
|
|
20463
20465
|
return is(h, s, o);
|
|
20464
20466
|
};
|
|
20465
|
-
}), ww =
|
|
20467
|
+
}), ww = Se(function(s, o) {
|
|
20466
20468
|
return function(h) {
|
|
20467
20469
|
return is(s, h, o);
|
|
20468
20470
|
};
|
|
@@ -20489,7 +20491,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20489
20491
|
function yl() {
|
|
20490
20492
|
}
|
|
20491
20493
|
function Aw(s) {
|
|
20492
|
-
return s = xe(s),
|
|
20494
|
+
return s = xe(s), Se(function(o) {
|
|
20493
20495
|
return Ff(o, s);
|
|
20494
20496
|
});
|
|
20495
20497
|
}
|
|
@@ -20611,7 +20613,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20611
20613
|
return this.filter(s).head();
|
|
20612
20614
|
}, Pe.prototype.findLast = function(s) {
|
|
20613
20615
|
return this.reverse().find(s);
|
|
20614
|
-
}, Pe.prototype.invokeMap =
|
|
20616
|
+
}, Pe.prototype.invokeMap = Se(function(s, o) {
|
|
20615
20617
|
return typeof s == "function" ? new Pe(this) : this.map(function(h) {
|
|
20616
20618
|
return is(h, s, o);
|
|
20617
20619
|
});
|
|
@@ -20628,8 +20630,8 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
20628
20630
|
}, Ir(Pe.prototype, function(s, o) {
|
|
20629
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);
|
|
20630
20632
|
T && (S.prototype[o] = function() {
|
|
20631
|
-
var C = this.__wrapped__, R = v ? [1] : arguments, M = C instanceof Pe, U = R[0], $ = M || ye(C), z = function(
|
|
20632
|
-
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(Ie) {
|
|
20634
|
+
var Fe = T.apply(S, tn([Ie], R));
|
|
20633
20635
|
return v && q ? Fe[0] : Fe;
|
|
20634
20636
|
};
|
|
20635
20637
|
$ && h && typeof U == "function" && U.length != 1 && (M = $ = !1);
|
|
@@ -20680,7 +20682,7 @@ const c5 = {
|
|
|
20680
20682
|
totalFrames: 0,
|
|
20681
20683
|
totalDuration: 0
|
|
20682
20684
|
}, h5 = te.forwardRef((t, e) => {
|
|
20683
|
-
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 }), m = pe(null), c = pe(null), d = pe(c5), g = pe(), { tl: _, dragModeRef: y } = Gi(Yn), { frames: b, delays: x } = f, {
|
|
20684
20686
|
src: E,
|
|
20685
20687
|
startAt: w,
|
|
20686
20688
|
endAt: I,
|
|
@@ -20699,62 +20701,62 @@ const c5 = {
|
|
|
20699
20701
|
adjustmentFilter: W,
|
|
20700
20702
|
vignetteFilter: j,
|
|
20701
20703
|
noiseFilter: le
|
|
20702
|
-
} = 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, we = 0.1;
|
|
20703
20705
|
o5(E, p), pt(Qe.PAUSE, () => {
|
|
20704
|
-
|
|
20706
|
+
m.current && (m.current.stop(), d.current.isPlaying = !1);
|
|
20705
20707
|
}), pt(Qe.SEEK_END, () => {
|
|
20706
|
-
|
|
20708
|
+
m.current && (m.current.stop(), d.current.isPlaying = !1);
|
|
20707
20709
|
}), pt(Qe.SCRUBBER_CLICKED, () => {
|
|
20708
|
-
|
|
20710
|
+
m.current && (m.current.stop(), d.current.isPlaying = !1);
|
|
20709
20711
|
}), te.useEffect(() => {
|
|
20710
|
-
d.current &&
|
|
20712
|
+
d.current && m.current && (y.current ? (m.current.stop(), d.current.isPlaying = !1, d.current.isDragging = !0) : d.current.isDragging = !1);
|
|
20711
20713
|
}, [y]), te.useEffect(() => {
|
|
20712
20714
|
if (!Hs(b)) {
|
|
20713
|
-
const
|
|
20715
|
+
const Ae = RB(b, (ce) => {
|
|
20714
20716
|
const { data: Oe, width: Xt, height: Bt } = ce, lt = new Uint8Array(Oe);
|
|
20715
20717
|
return er.Texture.fromBuffer(lt, Xt, Bt);
|
|
20716
|
-
}), _e =
|
|
20718
|
+
}), _e = Ae.map(
|
|
20717
20719
|
(ce, Oe) => ({
|
|
20718
20720
|
texture: ce,
|
|
20719
20721
|
time: x[Oe]
|
|
20720
20722
|
})
|
|
20721
20723
|
);
|
|
20722
|
-
n(
|
|
20724
|
+
n(Ae), u(_e);
|
|
20723
20725
|
let rt = 0;
|
|
20724
20726
|
x.forEach((ce) => {
|
|
20725
20727
|
rt += ce * 10;
|
|
20726
20728
|
}), i(rt), d.current.totalDuration = rt, d.current.totalFrames = b.length;
|
|
20727
20729
|
}
|
|
20728
20730
|
}, [b, x]);
|
|
20729
|
-
const Ue = am.debounce((
|
|
20730
|
-
if (
|
|
20731
|
-
let _e =
|
|
20731
|
+
const Ue = am.debounce((Ae) => {
|
|
20732
|
+
if (m.current) {
|
|
20733
|
+
let _e = Ae === 0 ? 0 : Ae / we;
|
|
20732
20734
|
_e = isNaN(_e) ? 0 : _e;
|
|
20733
20735
|
const rt = d.current.totalFrames;
|
|
20734
|
-
_e = _e > rt ? rt : _e, _e >= rt ? (
|
|
20736
|
+
_e = _e > rt ? rt : _e, _e >= rt ? (m.current.gotoAndStop(0), d.current.isPlaying = !1) : (m.current.gotoAndPlay(_e || 0), d.current.isPlaying = !0);
|
|
20735
20737
|
}
|
|
20736
20738
|
}, 20), He = am.debounce(() => {
|
|
20737
|
-
|
|
20738
|
-
}, 50), je = (
|
|
20739
|
-
if (
|
|
20740
|
-
let _e =
|
|
20739
|
+
m.current && (m.current.stop(), d.current.isPlaying = !1);
|
|
20740
|
+
}, 50), je = (Ae) => {
|
|
20741
|
+
if (m.current) {
|
|
20742
|
+
let _e = Ae === 0 ? 0 : Ae / we;
|
|
20741
20743
|
_e = isNaN(_e) ? 0 : _e;
|
|
20742
20744
|
const rt = d.current.totalFrames;
|
|
20743
|
-
_e = _e > rt ? rt : _e, _e >= rt ? (
|
|
20745
|
+
_e = _e > rt ? rt : _e, _e >= rt ? (m.current.gotoAndStop(0), d.current.isPlaying = !1) : (m.current.gotoAndPlay(_e || 0), d.current.isPlaying = !0);
|
|
20744
20746
|
}
|
|
20745
20747
|
}, be = () => {
|
|
20746
|
-
|
|
20747
|
-
},
|
|
20748
|
-
|
|
20749
|
-
}, $e = (
|
|
20748
|
+
m.current && (m.current.stop(), d.current.isPlaying = !1);
|
|
20749
|
+
}, Ce = () => {
|
|
20750
|
+
m.current && (m.current.stop(), d.current.isPlaying = !1);
|
|
20751
|
+
}, $e = (Ae) => {
|
|
20750
20752
|
var rt;
|
|
20751
|
-
const _e =
|
|
20752
|
-
|
|
20753
|
+
const _e = Ae + ((rt = g.current) == null ? void 0 : rt.time());
|
|
20754
|
+
m.current && y.current ? (Ue(_e), He(), d.current.isPlaying = !1) : g.current && m.current && !d.current.isPlaying && g.current.isActive() && _.current.isActive() && (Ue(_e), d.current.isPlaying = !0);
|
|
20753
20755
|
}, Ke = () => {
|
|
20754
20756
|
l(!0);
|
|
20755
20757
|
};
|
|
20756
20758
|
return mn(() => {
|
|
20757
|
-
let
|
|
20759
|
+
let Ae = J.context(() => {
|
|
20758
20760
|
});
|
|
20759
20761
|
if (c.current && _.current) {
|
|
20760
20762
|
const _e = {
|
|
@@ -20763,30 +20765,30 @@ const c5 = {
|
|
|
20763
20765
|
onComplete: be,
|
|
20764
20766
|
onStartParams: [O, F],
|
|
20765
20767
|
onCompleteParams: [],
|
|
20766
|
-
onInterrupt:
|
|
20768
|
+
onInterrupt: Ce,
|
|
20767
20769
|
onUpdate: $e,
|
|
20768
20770
|
onUpdateParams: [O, F]
|
|
20769
20771
|
};
|
|
20770
|
-
|
|
20771
|
-
|
|
20772
|
+
g.current && g.current.kill(), Ae = J.context(() => {
|
|
20773
|
+
g.current = J.from(
|
|
20772
20774
|
c.current,
|
|
20773
20775
|
// @ts-ignore
|
|
20774
20776
|
_e,
|
|
20775
20777
|
O
|
|
20776
|
-
), _.current.add(
|
|
20778
|
+
), _.current.add(g.current, w);
|
|
20777
20779
|
});
|
|
20778
20780
|
}
|
|
20779
20781
|
return () => {
|
|
20780
|
-
|
|
20782
|
+
g.current && (g.current.kill(), J.killTweensOf(g.current)), Ae.revert();
|
|
20781
20783
|
};
|
|
20782
|
-
}, [w, I, O, F]), /* @__PURE__ */
|
|
20784
|
+
}, [w, I, O, F]), /* @__PURE__ */ Ee.jsx(
|
|
20783
20785
|
vn,
|
|
20784
20786
|
{
|
|
20785
20787
|
...t,
|
|
20786
20788
|
ref: e,
|
|
20787
20789
|
ignoreTlForVideo: !0,
|
|
20788
20790
|
isGif: !0,
|
|
20789
|
-
children: /* @__PURE__ */
|
|
20791
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: c, children: r && r.length > 0 && /* @__PURE__ */ Ee.jsx(
|
|
20790
20792
|
l5,
|
|
20791
20793
|
{
|
|
20792
20794
|
x: se,
|
|
@@ -20799,7 +20801,7 @@ const c5 = {
|
|
|
20799
20801
|
textures: a,
|
|
20800
20802
|
onComplete: Ke,
|
|
20801
20803
|
anchor: 0.5,
|
|
20802
|
-
forwardRef:
|
|
20804
|
+
forwardRef: m,
|
|
20803
20805
|
...!D && L && { interactive: !0, pointerdown: ie },
|
|
20804
20806
|
filters: [
|
|
20805
20807
|
re,
|
|
@@ -20825,10 +20827,10 @@ h5.whyDidYouRender = {
|
|
|
20825
20827
|
const fU = te.forwardRef((t, e) => {
|
|
20826
20828
|
const n = pe(null), i = pe(0), a = pe(null), u = pe(null), l = pe(16), f = pe(null), {
|
|
20827
20829
|
visible: p,
|
|
20828
|
-
text:
|
|
20830
|
+
text: m,
|
|
20829
20831
|
disabled: c,
|
|
20830
20832
|
transformation: d,
|
|
20831
|
-
pointerdown:
|
|
20833
|
+
pointerdown: g,
|
|
20832
20834
|
onDobuleClick: _
|
|
20833
20835
|
} = t, {
|
|
20834
20836
|
x: y,
|
|
@@ -20865,7 +20867,7 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20865
20867
|
te.useEffect(() => {
|
|
20866
20868
|
l.current = Number(I);
|
|
20867
20869
|
}, [I]);
|
|
20868
|
-
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), we = [
|
|
20869
20871
|
"bold",
|
|
20870
20872
|
"bolder",
|
|
20871
20873
|
"lighter",
|
|
@@ -20887,8 +20889,8 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20887
20889
|
...fe && {
|
|
20888
20890
|
fontVariant: fe
|
|
20889
20891
|
},
|
|
20890
|
-
...
|
|
20891
|
-
fontWeight:
|
|
20892
|
+
...we && {
|
|
20893
|
+
fontWeight: we
|
|
20892
20894
|
},
|
|
20893
20895
|
...Ue && { letterSpacing: Ue },
|
|
20894
20896
|
...V && {
|
|
@@ -20919,7 +20921,7 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20919
20921
|
w,
|
|
20920
20922
|
ie,
|
|
20921
20923
|
me,
|
|
20922
|
-
|
|
20924
|
+
we,
|
|
20923
20925
|
fe,
|
|
20924
20926
|
Ue,
|
|
20925
20927
|
Y,
|
|
@@ -20935,26 +20937,26 @@ const fU = te.forwardRef((t, e) => {
|
|
|
20935
20937
|
};
|
|
20936
20938
|
}, [d]);
|
|
20937
20939
|
const je = () => {
|
|
20938
|
-
const
|
|
20939
|
-
|
|
20940
|
+
const Ce = (/* @__PURE__ */ new Date()).getTime();
|
|
20941
|
+
Ce - i.current < 300 && _ ? _() : g && g(), i.current = Ce;
|
|
20940
20942
|
}, be = () => {
|
|
20941
20943
|
!c && _ && _();
|
|
20942
20944
|
};
|
|
20943
|
-
return /* @__PURE__ */
|
|
20945
|
+
return /* @__PURE__ */ Ee.jsx(
|
|
20944
20946
|
vn,
|
|
20945
20947
|
{
|
|
20946
20948
|
...t,
|
|
20947
20949
|
ref: e,
|
|
20948
20950
|
isText: !0,
|
|
20949
20951
|
onDoubleClick: be,
|
|
20950
|
-
children: /* @__PURE__ */
|
|
20952
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: n, children: /* @__PURE__ */ Ee.jsx(wt, { alpha: 1, ref: u, children: /* @__PURE__ */ Ee.jsx(
|
|
20951
20953
|
iS,
|
|
20952
20954
|
{
|
|
20953
20955
|
style: He,
|
|
20954
20956
|
x: y,
|
|
20955
20957
|
y: b,
|
|
20956
20958
|
anchor: 0.5,
|
|
20957
|
-
text:
|
|
20959
|
+
text: m,
|
|
20958
20960
|
alpha: p ? 1 : 0,
|
|
20959
20961
|
...p && !c && {
|
|
20960
20962
|
interactive: !0,
|
|
@@ -21005,16 +21007,16 @@ function I5(t) {
|
|
|
21005
21007
|
}
|
|
21006
21008
|
var R5 = I5, P5 = $s, ic = p5, lm = R5, M5 = "Expected a function", O5 = Math.max, F5 = Math.min;
|
|
21007
21009
|
function N5(t, e, r) {
|
|
21008
|
-
var n, i, a, u, l, f, p = 0,
|
|
21010
|
+
var n, i, a, u, l, f, p = 0, m = !1, c = !1, d = !0;
|
|
21009
21011
|
if (typeof t != "function")
|
|
21010
21012
|
throw new TypeError(M5);
|
|
21011
|
-
e = lm(e) || 0, P5(r) && (
|
|
21012
|
-
function
|
|
21013
|
+
e = lm(e) || 0, P5(r) && (m = !!r.leading, c = "maxWait" in r, a = c ? O5(lm(r.maxWait) || 0, e) : a, d = "trailing" in r ? !!r.trailing : d);
|
|
21014
|
+
function g(F) {
|
|
21013
21015
|
var N = n, L = i;
|
|
21014
21016
|
return n = i = void 0, p = F, u = t.apply(L, N), u;
|
|
21015
21017
|
}
|
|
21016
21018
|
function _(F) {
|
|
21017
|
-
return p = F, l = setTimeout(x, e),
|
|
21019
|
+
return p = F, l = setTimeout(x, e), m ? g(F) : u;
|
|
21018
21020
|
}
|
|
21019
21021
|
function y(F) {
|
|
21020
21022
|
var N = F - f, L = F - p, D = e - N;
|
|
@@ -21031,7 +21033,7 @@ function N5(t, e, r) {
|
|
|
21031
21033
|
l = setTimeout(x, y(F));
|
|
21032
21034
|
}
|
|
21033
21035
|
function E(F) {
|
|
21034
|
-
return l = void 0, d && n ?
|
|
21036
|
+
return l = void 0, d && n ? g(F) : (n = i = void 0, u);
|
|
21035
21037
|
}
|
|
21036
21038
|
function w() {
|
|
21037
21039
|
l !== void 0 && clearTimeout(l), p = 0, n = f = i = l = void 0;
|
|
@@ -21045,7 +21047,7 @@ function N5(t, e, r) {
|
|
|
21045
21047
|
if (l === void 0)
|
|
21046
21048
|
return _(f);
|
|
21047
21049
|
if (c)
|
|
21048
|
-
return clearTimeout(l), l = setTimeout(x, e),
|
|
21050
|
+
return clearTimeout(l), l = setTimeout(x, e), g(f);
|
|
21049
21051
|
}
|
|
21050
21052
|
return l === void 0 && (l = setTimeout(x, e)), u;
|
|
21051
21053
|
}
|
|
@@ -21086,10 +21088,10 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21086
21088
|
isDragging: !1,
|
|
21087
21089
|
timeDiff: 0
|
|
21088
21090
|
}, D5 = te.forwardRef((t, e) => {
|
|
21089
|
-
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), m = pe(), {
|
|
21090
21092
|
uniqueId: c,
|
|
21091
21093
|
mute: d = !1,
|
|
21092
|
-
src:
|
|
21094
|
+
src: g,
|
|
21093
21095
|
startAt: _,
|
|
21094
21096
|
endAt: y,
|
|
21095
21097
|
frameStartAt: b,
|
|
@@ -21108,14 +21110,14 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21108
21110
|
temperatureFilter: he,
|
|
21109
21111
|
sharpnessFilter: me,
|
|
21110
21112
|
hueFilter: fe,
|
|
21111
|
-
blurFilter:
|
|
21113
|
+
blurFilter: we,
|
|
21112
21114
|
adjustmentFilter: Ue,
|
|
21113
21115
|
vignetteFilter: He,
|
|
21114
21116
|
noiseFilter: je
|
|
21115
|
-
} = Qn(D), be =
|
|
21117
|
+
} = Qn(D), be = g || "", Ce = te.useMemo(() => {
|
|
21116
21118
|
const ce = document.createElement("video");
|
|
21117
|
-
return ce.src =
|
|
21118
|
-
}, [
|
|
21119
|
+
return ce.src = g, ce.crossOrigin = "Anonymus", ce.autoplay = !1, ce.currentTime = b === 0 ? 1e-3 : b, ce;
|
|
21120
|
+
}, [g, b]);
|
|
21119
21121
|
pt(Qe.PAUSE, () => {
|
|
21120
21122
|
f.current && (f.current.pause(), p.current.isPlaying = !1);
|
|
21121
21123
|
}), pt(Qe.SCRUBBER_CLICKED, () => {
|
|
@@ -21139,27 +21141,27 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21139
21141
|
if (f.current) {
|
|
21140
21142
|
if (f.current.currentTime = Number(ce), !ie.current) {
|
|
21141
21143
|
const Oe = f.current, Xt = Oe.currentTime > 0 && !Oe.paused && !Oe.ended && Oe.readyState > Oe.HAVE_CURRENT_DATA;
|
|
21142
|
-
G.current && G.current.isActive() &&
|
|
21144
|
+
G.current && G.current.isActive() && m.current && m.current.isActive() && (Xt || f.current.play(), p.current.isPlaying = !0, n((Bt) => Bt + 1));
|
|
21143
21145
|
}
|
|
21144
21146
|
p.current.progress = 0;
|
|
21145
21147
|
}
|
|
21146
|
-
},
|
|
21148
|
+
}, Ae = () => {
|
|
21147
21149
|
if (f.current) {
|
|
21148
21150
|
const ce = f.current;
|
|
21149
|
-
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, m.current && (p.current.progress = m.current.progress());
|
|
21150
21152
|
}
|
|
21151
21153
|
}, _e = () => {
|
|
21152
21154
|
}, rt = () => {
|
|
21153
21155
|
var ce, Oe;
|
|
21154
|
-
if (
|
|
21155
|
-
const Xt = b + ((ce =
|
|
21156
|
+
if (m.current && (p.current.progress = m.current.progress()), f.current && m.current) {
|
|
21157
|
+
const Xt = b + ((ce = m == null ? void 0 : m.current) == null ? void 0 : ce.time()), Bt = Math.abs(
|
|
21156
21158
|
f.current.currentTime - Xt
|
|
21157
21159
|
), lt = f.current, tr = lt.currentTime > 0 && !lt.paused && !lt.ended && lt.readyState > lt.HAVE_CURRENT_DATA;
|
|
21158
21160
|
ie.current ? (f.current.currentTime = Xt, setTimeout(() => {
|
|
21159
21161
|
f.current && f.current.play().then(() => {
|
|
21160
21162
|
p.current.isPlaying = !1, f.current && f.current.pause();
|
|
21161
21163
|
});
|
|
21162
|
-
}, 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() && m.current && m.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);
|
|
21163
21165
|
}
|
|
21164
21166
|
};
|
|
21165
21167
|
return mn(() => {
|
|
@@ -21169,7 +21171,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21169
21171
|
const Oe = {
|
|
21170
21172
|
duration: Number(x) - Number(b),
|
|
21171
21173
|
onStart: Ke,
|
|
21172
|
-
onComplete:
|
|
21174
|
+
onComplete: Ae,
|
|
21173
21175
|
onStartParams: [b, x],
|
|
21174
21176
|
onCompleteParams: [],
|
|
21175
21177
|
onInterrupt: _e,
|
|
@@ -21192,16 +21194,16 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21192
21194
|
}
|
|
21193
21195
|
};
|
|
21194
21196
|
ce = J.context(() => {
|
|
21195
|
-
|
|
21197
|
+
m.current = J.from(
|
|
21196
21198
|
l.current,
|
|
21197
21199
|
// @ts-ignore
|
|
21198
21200
|
Oe,
|
|
21199
21201
|
b
|
|
21200
|
-
), G.current.add(
|
|
21202
|
+
), G.current.add(m.current, _);
|
|
21201
21203
|
});
|
|
21202
21204
|
}
|
|
21203
21205
|
return () => {
|
|
21204
|
-
|
|
21206
|
+
m.current && (m.current.kill(), J.killTweensOf(m.current)), ce.revert();
|
|
21205
21207
|
};
|
|
21206
21208
|
}, [L, _, y, b, x]), te.useEffect(() => {
|
|
21207
21209
|
f.current && (f.current.muted = d);
|
|
@@ -21221,7 +21223,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21221
21223
|
}, tr = function() {
|
|
21222
21224
|
p.current.isWaiting = !1, p.current.isStalled = !0;
|
|
21223
21225
|
}, Jn = Math.round((Number(b) + Number.EPSILON) * 100) / 100, eu = Math.round((Number(x) + Number.EPSILON) * 100) / 100, bn = `${be}#t=${Jn},${eu}`;
|
|
21224
|
-
return er.Texture.fromLoader(
|
|
21226
|
+
return er.Texture.fromLoader(Ce, bn, c, {
|
|
21225
21227
|
pixiIdPrefix: c,
|
|
21226
21228
|
resourceOptions: {
|
|
21227
21229
|
autoPlay: !1,
|
|
@@ -21236,9 +21238,9 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21236
21238
|
lt
|
|
21237
21239
|
), f.current.removeEventListener("stalled", tr));
|
|
21238
21240
|
};
|
|
21239
|
-
}, [be, c, b, x,
|
|
21241
|
+
}, [be, c, b, x, Ce]), te.useEffect(() => {
|
|
21240
21242
|
const ce = setTimeout(() => {
|
|
21241
|
-
i &&
|
|
21243
|
+
i && m.current && G.current && m.current.progress() < 0.1 && f.current && !m.current.isActive() && !re && f.current.play().then(() => {
|
|
21242
21244
|
p.current.isPlaying = !1, f.current && f.current.pause();
|
|
21243
21245
|
});
|
|
21244
21246
|
}, 30);
|
|
@@ -21251,13 +21253,13 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21251
21253
|
if (i && G.current && r > 0 && !re) {
|
|
21252
21254
|
G.current.isActive() || (p.current.isPlaying = !1, f.current && f.current.pause());
|
|
21253
21255
|
const Oe = f.current;
|
|
21254
|
-
Oe && G.current.isActive() &&
|
|
21256
|
+
Oe && G.current.isActive() && m.current && m.current.isActive() && (Oe.currentTime > 0 && !Oe.paused && !Oe.ended && Oe.readyState > Oe.HAVE_CURRENT_DATA || f.current.play(), p.current.isPlaying = !0);
|
|
21255
21257
|
}
|
|
21256
21258
|
}, 10);
|
|
21257
21259
|
return () => {
|
|
21258
21260
|
clearTimeout(ce);
|
|
21259
21261
|
};
|
|
21260
|
-
}, [r, i]), /* @__PURE__ */
|
|
21262
|
+
}, [r, i]), /* @__PURE__ */ Ee.jsx(
|
|
21261
21263
|
vn,
|
|
21262
21264
|
{
|
|
21263
21265
|
...t,
|
|
@@ -21266,7 +21268,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21266
21268
|
pointerdown: H,
|
|
21267
21269
|
pointerover: ge,
|
|
21268
21270
|
pointerout: Q,
|
|
21269
|
-
children: /* @__PURE__ */
|
|
21271
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: l, children: i && /* @__PURE__ */ Ee.jsx(
|
|
21270
21272
|
Bs,
|
|
21271
21273
|
{
|
|
21272
21274
|
texture: i,
|
|
@@ -21284,7 +21286,7 @@ const fo = /* @__PURE__ */ qn(L5), Th = (t, e, r, n) => {
|
|
|
21284
21286
|
fe,
|
|
21285
21287
|
Ue,
|
|
21286
21288
|
// conditionally add blur filter
|
|
21287
|
-
...W > 0 ? [
|
|
21289
|
+
...W > 0 ? [we] : [],
|
|
21288
21290
|
// conditionally add vignette filter
|
|
21289
21291
|
...j > 0 ? [He] : [],
|
|
21290
21292
|
// conditionally add noise filter
|
|
@@ -21303,15 +21305,15 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21303
21305
|
const [r, n] = te.useState(), i = pe(null), a = pe(null), {
|
|
21304
21306
|
visible: u,
|
|
21305
21307
|
disabled: l,
|
|
21306
|
-
transformation: { x: f, y: p, width:
|
|
21307
|
-
pointerdown:
|
|
21308
|
+
transformation: { x: f, y: p, width: m, height: c, colorCorrection: d = {} },
|
|
21309
|
+
pointerdown: g = () => {
|
|
21308
21310
|
},
|
|
21309
21311
|
pointerout: _ = () => {
|
|
21310
21312
|
},
|
|
21311
21313
|
pointerover: y = () => {
|
|
21312
21314
|
},
|
|
21313
21315
|
canvasImageRef: b
|
|
21314
|
-
} = 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, g, _, 1), { blurRadius: F = 0, vignette: N = 0, noise: L = 0 } = d, {
|
|
21315
21317
|
temperatureFilter: D,
|
|
21316
21318
|
sharpnessFilter: V,
|
|
21317
21319
|
hueFilter: Y,
|
|
@@ -21330,7 +21332,7 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21330
21332
|
const re = er.Texture.from(x);
|
|
21331
21333
|
n(re);
|
|
21332
21334
|
}
|
|
21333
|
-
}, [x]), /* @__PURE__ */
|
|
21335
|
+
}, [x]), /* @__PURE__ */ Ee.jsx(
|
|
21334
21336
|
vn,
|
|
21335
21337
|
{
|
|
21336
21338
|
...t,
|
|
@@ -21339,18 +21341,18 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21339
21341
|
pointerdown: w,
|
|
21340
21342
|
pointerover: O,
|
|
21341
21343
|
pointerout: I,
|
|
21342
|
-
children: /* @__PURE__ */
|
|
21344
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: a, children: r && /* @__PURE__ */ Ee.jsx(
|
|
21343
21345
|
Bs,
|
|
21344
21346
|
{
|
|
21345
21347
|
texture: r,
|
|
21346
|
-
width:
|
|
21348
|
+
width: m,
|
|
21347
21349
|
height: c,
|
|
21348
21350
|
anchor: 0.5,
|
|
21349
21351
|
x: f,
|
|
21350
21352
|
y: p,
|
|
21351
21353
|
ref: i,
|
|
21352
21354
|
alpha: u ? 1 : 0,
|
|
21353
|
-
...!l && u && { interactive: !0, pointerdown:
|
|
21355
|
+
...!l && u && { interactive: !0, pointerdown: g },
|
|
21354
21356
|
filters: [
|
|
21355
21357
|
D,
|
|
21356
21358
|
V,
|
|
@@ -21370,9 +21372,9 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21370
21372
|
}), pU = (t) => {
|
|
21371
21373
|
const { startAt: e, endAt: r, uniqueId: n } = t, i = pe(null), a = pe(null), u = pe(null), l = pe(null), f = pe(!1), {
|
|
21372
21374
|
tl: p,
|
|
21373
|
-
totalDuration:
|
|
21375
|
+
totalDuration: m = 0,
|
|
21374
21376
|
reverseModeRef: c
|
|
21375
|
-
} = Gi(Yn), d = e < 0.2 ? "static" : "none",
|
|
21377
|
+
} = Gi(Yn), d = e < 0.2 ? "static" : "none", g = pe(1);
|
|
21376
21378
|
pt(Qe.COMPLETE, () => {
|
|
21377
21379
|
i.current && (i.current.eventMode = d);
|
|
21378
21380
|
}), pt(Qe.REVERSE_MODE_END, () => {
|
|
@@ -21400,11 +21402,11 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21400
21402
|
alpha: 1,
|
|
21401
21403
|
duration: Number(r) - Number(e),
|
|
21402
21404
|
onStart: () => {
|
|
21403
|
-
i.current && (i.current.alpha = 1, i.current.eventMode = "static",
|
|
21405
|
+
i.current && (i.current.alpha = 1, i.current.eventMode = "static", g.current = 1);
|
|
21404
21406
|
},
|
|
21405
21407
|
onUpdate: _,
|
|
21406
21408
|
onComplete: () => {
|
|
21407
|
-
i.current && (i.current.alpha = 0, i.current.eventMode = "none",
|
|
21409
|
+
i.current && (i.current.alpha = 0, i.current.eventMode = "none", g.current = 0);
|
|
21408
21410
|
}
|
|
21409
21411
|
}), p.current.add([b, l.current], e);
|
|
21410
21412
|
}
|
|
@@ -21412,13 +21414,13 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21412
21414
|
return () => {
|
|
21413
21415
|
l.current && (p.current.remove(l.current), l.current.progress(0).kill()), y.revert();
|
|
21414
21416
|
};
|
|
21415
|
-
}, [e, r,
|
|
21417
|
+
}, [e, r, m, n]), /* @__PURE__ */ Ee.jsx(
|
|
21416
21418
|
wt,
|
|
21417
21419
|
{
|
|
21418
21420
|
ref: i,
|
|
21419
21421
|
alpha: e < 0.2 ? 1 : 0,
|
|
21420
21422
|
eventMode: e < 0.2 ? "static" : "none",
|
|
21421
|
-
children: /* @__PURE__ */
|
|
21423
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: u, children: /* @__PURE__ */ Ee.jsx(wt, { ref: a, alpha: 1, children: t.children }) })
|
|
21422
21424
|
}
|
|
21423
21425
|
);
|
|
21424
21426
|
}, gU = (t) => {
|
|
@@ -21430,15 +21432,15 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21430
21432
|
const [r, n] = te.useState(), i = pe(null), a = pe(null), {
|
|
21431
21433
|
visible: u,
|
|
21432
21434
|
disabled: l,
|
|
21433
|
-
transformation: { x: f, y: p, width:
|
|
21434
|
-
pointerdown:
|
|
21435
|
+
transformation: { x: f, y: p, width: m, height: c, colorCorrection: d = {} },
|
|
21436
|
+
pointerdown: g = () => {
|
|
21435
21437
|
},
|
|
21436
21438
|
pointerout: _ = () => {
|
|
21437
21439
|
},
|
|
21438
21440
|
pointerover: y = () => {
|
|
21439
21441
|
},
|
|
21440
21442
|
canvasImageRef: b
|
|
21441
|
-
} = 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, g, _, 1), { blurRadius: F = 0, vignette: N = 0, noise: L = 0 } = d, {
|
|
21442
21444
|
temperatureFilter: D,
|
|
21443
21445
|
sharpnessFilter: V,
|
|
21444
21446
|
hueFilter: Y,
|
|
@@ -21457,7 +21459,7 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21457
21459
|
const re = er.Texture.from(x);
|
|
21458
21460
|
n(re);
|
|
21459
21461
|
}
|
|
21460
|
-
}, [x]), /* @__PURE__ */
|
|
21462
|
+
}, [x]), /* @__PURE__ */ Ee.jsx(
|
|
21461
21463
|
vn,
|
|
21462
21464
|
{
|
|
21463
21465
|
...t,
|
|
@@ -21466,18 +21468,18 @@ const dU = te.forwardRef((t, e) => {
|
|
|
21466
21468
|
pointerdown: w,
|
|
21467
21469
|
pointerover: O,
|
|
21468
21470
|
pointerout: I,
|
|
21469
|
-
children: /* @__PURE__ */
|
|
21471
|
+
children: /* @__PURE__ */ Ee.jsx(wt, { ref: a, children: r && /* @__PURE__ */ Ee.jsx(
|
|
21470
21472
|
Bs,
|
|
21471
21473
|
{
|
|
21472
21474
|
texture: r,
|
|
21473
|
-
width:
|
|
21475
|
+
width: m,
|
|
21474
21476
|
height: c,
|
|
21475
21477
|
anchor: 0.5,
|
|
21476
21478
|
x: f,
|
|
21477
21479
|
y: p,
|
|
21478
21480
|
ref: i,
|
|
21479
21481
|
alpha: u ? 1 : 0,
|
|
21480
|
-
...!l && u && { interactive: !0, pointerdown:
|
|
21482
|
+
...!l && u && { interactive: !0, pointerdown: g },
|
|
21481
21483
|
filters: [
|
|
21482
21484
|
D,
|
|
21483
21485
|
V,
|