evotars 0.0.10 → 0.0.11
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/evotars.js +267 -265
- package/dist/evotars.umd.cjs +24 -24
- package/package.json +9 -3
package/dist/evotars.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Pc = Object.defineProperty;
|
|
2
2
|
var Mc = (i, t, e) => t in i ? Pc(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var F = (i, t, e) => (Mc(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
-
var oi = /* @__PURE__ */ ((i) => (i[i.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", i[i.WEBGL = 1] = "WEBGL", i[i.WEBGL2 = 2] = "WEBGL2", i))(oi || {}), Fh = /* @__PURE__ */ ((i) => (i[i.UNKNOWN = 0] = "UNKNOWN", i[i.WEBGL = 1] = "WEBGL", i[i.CANVAS = 2] = "CANVAS", i))(Fh || {}), En = /* @__PURE__ */ ((i) => (i[i.COLOR = 16384] = "COLOR", i[i.DEPTH = 256] = "DEPTH", i[i.STENCIL = 1024] = "STENCIL", i))(En || {}), z = /* @__PURE__ */ ((i) => (i[i.NORMAL = 0] = "NORMAL", i[i.ADD = 1] = "ADD", i[i.MULTIPLY = 2] = "MULTIPLY", i[i.SCREEN = 3] = "SCREEN", i[i.OVERLAY = 4] = "OVERLAY", i[i.DARKEN = 5] = "DARKEN", i[i.LIGHTEN = 6] = "LIGHTEN", i[i.COLOR_DODGE = 7] = "COLOR_DODGE", i[i.COLOR_BURN = 8] = "COLOR_BURN", i[i.HARD_LIGHT = 9] = "HARD_LIGHT", i[i.SOFT_LIGHT = 10] = "SOFT_LIGHT", i[i.DIFFERENCE = 11] = "DIFFERENCE", i[i.EXCLUSION = 12] = "EXCLUSION", i[i.HUE = 13] = "HUE", i[i.SATURATION = 14] = "SATURATION", i[i.COLOR = 15] = "COLOR", i[i.LUMINOSITY = 16] = "LUMINOSITY", i[i.NORMAL_NPM = 17] = "NORMAL_NPM", i[i.ADD_NPM = 18] = "ADD_NPM", i[i.SCREEN_NPM = 19] = "SCREEN_NPM", i[i.NONE = 20] = "NONE", i[i.SRC_OVER = 0] = "SRC_OVER", i[i.SRC_IN = 21] = "SRC_IN", i[i.SRC_OUT = 22] = "SRC_OUT", i[i.SRC_ATOP = 23] = "SRC_ATOP", i[i.DST_OVER = 24] = "DST_OVER", i[i.DST_IN = 25] = "DST_IN", i[i.DST_OUT = 26] = "DST_OUT", i[i.DST_ATOP = 27] = "DST_ATOP", i[i.ERASE = 26] = "ERASE", i[i.SUBTRACT = 28] = "SUBTRACT", i[i.XOR = 29] = "XOR", i))(z || {}), le = /* @__PURE__ */ ((i) => (i[i.POINTS = 0] = "POINTS", i[i.LINES = 1] = "LINES", i[i.LINE_LOOP = 2] = "LINE_LOOP", i[i.LINE_STRIP = 3] = "LINE_STRIP", i[i.TRIANGLES = 4] = "TRIANGLES", i[i.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", i[i.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", i))(le || {}), A = /* @__PURE__ */ ((i) => (i[i.RGBA = 6408] = "RGBA", i[i.RGB = 6407] = "RGB", i[i.RG = 33319] = "RG", i[i.RED = 6403] = "RED", i[i.RGBA_INTEGER = 36249] = "RGBA_INTEGER", i[i.RGB_INTEGER = 36248] = "RGB_INTEGER", i[i.RG_INTEGER = 33320] = "RG_INTEGER", i[i.RED_INTEGER = 36244] = "RED_INTEGER", i[i.ALPHA = 6406] = "ALPHA", i[i.LUMINANCE = 6409] = "LUMINANCE", i[i.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", i[i.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", i[i.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", i))(A || {}),
|
|
4
|
+
var oi = /* @__PURE__ */ ((i) => (i[i.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", i[i.WEBGL = 1] = "WEBGL", i[i.WEBGL2 = 2] = "WEBGL2", i))(oi || {}), Fh = /* @__PURE__ */ ((i) => (i[i.UNKNOWN = 0] = "UNKNOWN", i[i.WEBGL = 1] = "WEBGL", i[i.CANVAS = 2] = "CANVAS", i))(Fh || {}), En = /* @__PURE__ */ ((i) => (i[i.COLOR = 16384] = "COLOR", i[i.DEPTH = 256] = "DEPTH", i[i.STENCIL = 1024] = "STENCIL", i))(En || {}), z = /* @__PURE__ */ ((i) => (i[i.NORMAL = 0] = "NORMAL", i[i.ADD = 1] = "ADD", i[i.MULTIPLY = 2] = "MULTIPLY", i[i.SCREEN = 3] = "SCREEN", i[i.OVERLAY = 4] = "OVERLAY", i[i.DARKEN = 5] = "DARKEN", i[i.LIGHTEN = 6] = "LIGHTEN", i[i.COLOR_DODGE = 7] = "COLOR_DODGE", i[i.COLOR_BURN = 8] = "COLOR_BURN", i[i.HARD_LIGHT = 9] = "HARD_LIGHT", i[i.SOFT_LIGHT = 10] = "SOFT_LIGHT", i[i.DIFFERENCE = 11] = "DIFFERENCE", i[i.EXCLUSION = 12] = "EXCLUSION", i[i.HUE = 13] = "HUE", i[i.SATURATION = 14] = "SATURATION", i[i.COLOR = 15] = "COLOR", i[i.LUMINOSITY = 16] = "LUMINOSITY", i[i.NORMAL_NPM = 17] = "NORMAL_NPM", i[i.ADD_NPM = 18] = "ADD_NPM", i[i.SCREEN_NPM = 19] = "SCREEN_NPM", i[i.NONE = 20] = "NONE", i[i.SRC_OVER = 0] = "SRC_OVER", i[i.SRC_IN = 21] = "SRC_IN", i[i.SRC_OUT = 22] = "SRC_OUT", i[i.SRC_ATOP = 23] = "SRC_ATOP", i[i.DST_OVER = 24] = "DST_OVER", i[i.DST_IN = 25] = "DST_IN", i[i.DST_OUT = 26] = "DST_OUT", i[i.DST_ATOP = 27] = "DST_ATOP", i[i.ERASE = 26] = "ERASE", i[i.SUBTRACT = 28] = "SUBTRACT", i[i.XOR = 29] = "XOR", i))(z || {}), le = /* @__PURE__ */ ((i) => (i[i.POINTS = 0] = "POINTS", i[i.LINES = 1] = "LINES", i[i.LINE_LOOP = 2] = "LINE_LOOP", i[i.LINE_STRIP = 3] = "LINE_STRIP", i[i.TRIANGLES = 4] = "TRIANGLES", i[i.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", i[i.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", i))(le || {}), A = /* @__PURE__ */ ((i) => (i[i.RGBA = 6408] = "RGBA", i[i.RGB = 6407] = "RGB", i[i.RG = 33319] = "RG", i[i.RED = 6403] = "RED", i[i.RGBA_INTEGER = 36249] = "RGBA_INTEGER", i[i.RGB_INTEGER = 36248] = "RGB_INTEGER", i[i.RG_INTEGER = 33320] = "RG_INTEGER", i[i.RED_INTEGER = 36244] = "RED_INTEGER", i[i.ALPHA = 6406] = "ALPHA", i[i.LUMINANCE = 6409] = "LUMINANCE", i[i.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", i[i.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", i[i.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", i))(A || {}), Si = /* @__PURE__ */ ((i) => (i[i.TEXTURE_2D = 3553] = "TEXTURE_2D", i[i.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", i[i.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", i[i.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", i[i.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", i[i.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", i[i.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", i[i.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", i[i.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", i))(Si || {}), H = /* @__PURE__ */ ((i) => (i[i.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", i[i.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", i[i.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", i[i.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", i[i.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", i[i.UNSIGNED_INT = 5125] = "UNSIGNED_INT", i[i.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", i[i.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", i[i.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", i[i.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", i[i.BYTE = 5120] = "BYTE", i[i.SHORT = 5122] = "SHORT", i[i.INT = 5124] = "INT", i[i.FLOAT = 5126] = "FLOAT", i[i.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", i[i.HALF_FLOAT = 36193] = "HALF_FLOAT", i))(H || {}), D = /* @__PURE__ */ ((i) => (i[i.FLOAT = 0] = "FLOAT", i[i.INT = 1] = "INT", i[i.UINT = 2] = "UINT", i))(D || {}), Wt = /* @__PURE__ */ ((i) => (i[i.NEAREST = 0] = "NEAREST", i[i.LINEAR = 1] = "LINEAR", i))(Wt || {}), Ue = /* @__PURE__ */ ((i) => (i[i.CLAMP = 33071] = "CLAMP", i[i.REPEAT = 10497] = "REPEAT", i[i.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", i))(Ue || {}), de = /* @__PURE__ */ ((i) => (i[i.OFF = 0] = "OFF", i[i.POW2 = 1] = "POW2", i[i.ON = 2] = "ON", i[i.ON_MANUAL = 3] = "ON_MANUAL", i))(de || {}), Bt = /* @__PURE__ */ ((i) => (i[i.NPM = 0] = "NPM", i[i.UNPACK = 1] = "UNPACK", i[i.PMA = 2] = "PMA", i[i.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", i[i.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", i[i.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", i))(Bt || {}), oe = /* @__PURE__ */ ((i) => (i[i.NO = 0] = "NO", i[i.YES = 1] = "YES", i[i.AUTO = 2] = "AUTO", i[i.BLEND = 0] = "BLEND", i[i.CLEAR = 1] = "CLEAR", i[i.BLIT = 2] = "BLIT", i))(oe || {}), Aa = /* @__PURE__ */ ((i) => (i[i.AUTO = 0] = "AUTO", i[i.MANUAL = 1] = "MANUAL", i))(Aa || {}), kt = /* @__PURE__ */ ((i) => (i.LOW = "lowp", i.MEDIUM = "mediump", i.HIGH = "highp", i))(kt || {}), vt = /* @__PURE__ */ ((i) => (i[i.NONE = 0] = "NONE", i[i.SCISSOR = 1] = "SCISSOR", i[i.STENCIL = 2] = "STENCIL", i[i.SPRITE = 3] = "SPRITE", i[i.COLOR = 4] = "COLOR", i))(vt || {}), gt = /* @__PURE__ */ ((i) => (i[i.NONE = 0] = "NONE", i[i.LOW = 2] = "LOW", i[i.MEDIUM = 4] = "MEDIUM", i[i.HIGH = 8] = "HIGH", i))(gt || {}), ce = /* @__PURE__ */ ((i) => (i[i.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", i[i.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", i[i.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", i))(ce || {});
|
|
5
5
|
const Fc = {
|
|
6
6
|
/**
|
|
7
7
|
* Creates a canvas element of the given size.
|
|
@@ -599,7 +599,7 @@ ts.exports;
|
|
|
599
599
|
return O(P);
|
|
600
600
|
}
|
|
601
601
|
function X(I) {
|
|
602
|
-
var P, Q, et, it, Tt, pt, wt, Rt, Dt, St, nt, mt = [], yt, Qt, Jt,
|
|
602
|
+
var P, Q, et, it, Tt, pt, wt, Rt, Dt, St, nt, mt = [], yt, Qt, Jt, Hi;
|
|
603
603
|
for (I = q(I), yt = I.length, P = p, Q = 0, Tt = f, pt = 0; pt < yt; ++pt)
|
|
604
604
|
nt = I[pt], nt < 128 && mt.push(C(nt));
|
|
605
605
|
for (et = it = mt.length, it && mt.push(m); et < yt; ) {
|
|
@@ -608,9 +608,9 @@ ts.exports;
|
|
|
608
608
|
for (Qt = et + 1, wt - P > T((o - Q) / Qt) && w("overflow"), Q += (wt - P) * Qt, P = wt, pt = 0; pt < yt; ++pt)
|
|
609
609
|
if (nt = I[pt], nt < P && ++Q > o && w("overflow"), nt == P) {
|
|
610
610
|
for (Rt = Q, Dt = h; St = Dt <= Tt ? l : Dt >= Tt + c ? c : Dt - Tt, !(Rt < St); Dt += h)
|
|
611
|
-
|
|
612
|
-
C(S(St +
|
|
613
|
-
), Rt = T(
|
|
611
|
+
Hi = Rt - St, Jt = h - St, mt.push(
|
|
612
|
+
C(S(St + Hi % Jt, 0))
|
|
613
|
+
), Rt = T(Hi / Jt);
|
|
614
614
|
mt.push(C(S(Rt, 0))), Tt = G(Q, Qt, et == it), Q = 0, ++et;
|
|
615
615
|
}
|
|
616
616
|
++Q, ++P;
|
|
@@ -727,7 +727,7 @@ var tu = ts.exports, eu = Error, iu = EvalError, ru = RangeError, su = Reference
|
|
|
727
727
|
l.prototype = e.prototype, s.prototype = new l(), l.prototype = null;
|
|
728
728
|
}
|
|
729
729
|
return s;
|
|
730
|
-
}, _u = yu, Ca = Function.prototype.bind || _u, vu = Function.prototype.call, xu = Object.prototype.hasOwnProperty, bu = Ca, Tu = bu.call(vu, xu), Z, wu = eu, Eu = iu, Au = ru, Su = su,
|
|
730
|
+
}, _u = yu, Ca = Function.prototype.bind || _u, vu = Function.prototype.call, xu = Object.prototype.hasOwnProperty, bu = Ca, Tu = bu.call(vu, xu), Z, wu = eu, Eu = iu, Au = ru, Su = su, Di = kh, Ci = pr, Cu = nu, Uh = Function, Gs = function(i) {
|
|
731
731
|
try {
|
|
732
732
|
return Uh('"use strict"; return (' + i + ").constructor;")();
|
|
733
733
|
} catch {
|
|
@@ -740,7 +740,7 @@ if (ti)
|
|
|
740
740
|
ti = null;
|
|
741
741
|
}
|
|
742
742
|
var Hs = function() {
|
|
743
|
-
throw new
|
|
743
|
+
throw new Ci();
|
|
744
744
|
}, Iu = ti ? function() {
|
|
745
745
|
try {
|
|
746
746
|
return arguments.callee, Hs;
|
|
@@ -810,10 +810,10 @@ var Hs = function() {
|
|
|
810
810
|
"%String%": String,
|
|
811
811
|
"%StringIteratorPrototype%": ci && Et ? Et(""[Symbol.iterator]()) : Z,
|
|
812
812
|
"%Symbol%": ci ? Symbol : Z,
|
|
813
|
-
"%SyntaxError%":
|
|
813
|
+
"%SyntaxError%": Di,
|
|
814
814
|
"%ThrowTypeError%": Iu,
|
|
815
815
|
"%TypedArray%": Pu,
|
|
816
|
-
"%TypeError%":
|
|
816
|
+
"%TypeError%": Ci,
|
|
817
817
|
"%Uint8Array%": typeof Uint8Array > "u" ? Z : Uint8Array,
|
|
818
818
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? Z : Uint8ClampedArray,
|
|
819
819
|
"%Uint16Array%": typeof Uint16Array > "u" ? Z : Uint16Array,
|
|
@@ -902,9 +902,9 @@ var Fu = function i(t) {
|
|
|
902
902
|
}, mr = Ca, es = Tu, Bu = mr.call(Function.call, Array.prototype.concat), Du = mr.call(Function.apply, Array.prototype.splice), so = mr.call(Function.call, String.prototype.replace), is = mr.call(Function.call, String.prototype.slice), Ou = mr.call(Function.call, RegExp.prototype.exec), Lu = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Nu = /\\(\\)?/g, ku = function(t) {
|
|
903
903
|
var e = is(t, 0, 1), r = is(t, -1);
|
|
904
904
|
if (e === "%" && r !== "%")
|
|
905
|
-
throw new
|
|
905
|
+
throw new Di("invalid intrinsic syntax, expected closing `%`");
|
|
906
906
|
if (r === "%" && e !== "%")
|
|
907
|
-
throw new
|
|
907
|
+
throw new Di("invalid intrinsic syntax, expected opening `%`");
|
|
908
908
|
var s = [];
|
|
909
909
|
return so(t, Lu, function(n, a, o, h) {
|
|
910
910
|
s[s.length] = o ? so(h, Nu, "$1") : a || n;
|
|
@@ -914,33 +914,33 @@ var Fu = function i(t) {
|
|
|
914
914
|
if (es(ro, r) && (s = ro[r], r = "%" + s[0] + "%"), es(ei, r)) {
|
|
915
915
|
var n = ei[r];
|
|
916
916
|
if (n === pi && (n = Fu(r)), typeof n > "u" && !e)
|
|
917
|
-
throw new
|
|
917
|
+
throw new Ci("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
918
918
|
return {
|
|
919
919
|
alias: s,
|
|
920
920
|
name: r,
|
|
921
921
|
value: n
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
|
-
throw new
|
|
925
|
-
},
|
|
924
|
+
throw new Di("intrinsic " + t + " does not exist!");
|
|
925
|
+
}, ki = function(t, e) {
|
|
926
926
|
if (typeof t != "string" || t.length === 0)
|
|
927
|
-
throw new
|
|
927
|
+
throw new Ci("intrinsic name must be a non-empty string");
|
|
928
928
|
if (arguments.length > 1 && typeof e != "boolean")
|
|
929
|
-
throw new
|
|
929
|
+
throw new Ci('"allowMissing" argument must be a boolean');
|
|
930
930
|
if (Ou(/^%?[^%]*%?$/, t) === null)
|
|
931
|
-
throw new
|
|
931
|
+
throw new Di("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
932
932
|
var r = ku(t), s = r.length > 0 ? r[0] : "", n = Uu("%" + s + "%", e), a = n.name, o = n.value, h = !1, l = n.alias;
|
|
933
933
|
l && (s = l[0], Du(r, Bu([0, 1], l)));
|
|
934
934
|
for (var c = 1, u = !0; c < r.length; c += 1) {
|
|
935
935
|
var d = r[c], f = is(d, 0, 1), p = is(d, -1);
|
|
936
936
|
if ((f === '"' || f === "'" || f === "`" || p === '"' || p === "'" || p === "`") && f !== p)
|
|
937
|
-
throw new
|
|
937
|
+
throw new Di("property names with quotes must have matching quotes");
|
|
938
938
|
if ((d === "constructor" || !u) && (h = !0), s += "." + d, a = "%" + s + "%", es(ei, a))
|
|
939
939
|
o = ei[a];
|
|
940
940
|
else if (o != null) {
|
|
941
941
|
if (!(d in o)) {
|
|
942
942
|
if (!e)
|
|
943
|
-
throw new
|
|
943
|
+
throw new Ci("base intrinsic for " + t + " exists, but the property is not available.");
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
if (ti && c + 1 >= r.length) {
|
|
@@ -957,7 +957,7 @@ function Ia() {
|
|
|
957
957
|
if (no)
|
|
958
958
|
return $s;
|
|
959
959
|
no = 1;
|
|
960
|
-
var i =
|
|
960
|
+
var i = ki, t = i("%Object.defineProperty%", !0) || !1;
|
|
961
961
|
if (t)
|
|
962
962
|
try {
|
|
963
963
|
t({}, "a", { value: 1 });
|
|
@@ -966,7 +966,7 @@ function Ia() {
|
|
|
966
966
|
}
|
|
967
967
|
return $s = t, $s;
|
|
968
968
|
}
|
|
969
|
-
var Gu =
|
|
969
|
+
var Gu = ki, zr = Gu("%Object.getOwnPropertyDescriptor%", !0);
|
|
970
970
|
if (zr)
|
|
971
971
|
try {
|
|
972
972
|
zr([], "length");
|
|
@@ -1010,7 +1010,7 @@ $h.hasArrayLengthDefineBug = function() {
|
|
|
1010
1010
|
return !0;
|
|
1011
1011
|
}
|
|
1012
1012
|
};
|
|
1013
|
-
var Xu = $h, zu =
|
|
1013
|
+
var Xu = $h, zu = ki, ho = $u, Vu = Xu(), lo = Hh, co = pr, Wu = zu("%Math.floor%"), ju = function(t, e) {
|
|
1014
1014
|
if (typeof t != "function")
|
|
1015
1015
|
throw new co("`fn` is not a function");
|
|
1016
1016
|
if (typeof e != "number" || e < 0 || e > 4294967295 || Wu(e) !== e)
|
|
@@ -1035,7 +1035,7 @@ var Xu = $h, zu = Ni, ho = $u, Vu = Xu(), lo = Hh, co = pr, Wu = zu("%Math.floor
|
|
|
1035
1035
|
)), t;
|
|
1036
1036
|
};
|
|
1037
1037
|
(function(i) {
|
|
1038
|
-
var t = Ca, e =
|
|
1038
|
+
var t = Ca, e = ki, r = ju, s = pr, n = e("%Function.prototype.apply%"), a = e("%Function.prototype.call%"), o = e("%Reflect.apply%", !0) || t.call(a, n), h = Ia(), l = e("%Math.max%");
|
|
1039
1039
|
i.exports = function(d) {
|
|
1040
1040
|
if (typeof d != "function")
|
|
1041
1041
|
throw new s("a function is required");
|
|
@@ -1051,7 +1051,7 @@ var Xu = $h, zu = Ni, ho = $u, Vu = Xu(), lo = Hh, co = pr, Wu = zu("%Math.floor
|
|
|
1051
1051
|
};
|
|
1052
1052
|
h ? h(i.exports, "apply", { value: c }) : i.exports.apply = c;
|
|
1053
1053
|
})(Gh);
|
|
1054
|
-
var Yu = Gh.exports, Xh =
|
|
1054
|
+
var Yu = Gh.exports, Xh = ki, zh = Yu, qu = zh(Xh("String.prototype.indexOf")), Ku = function(t, e) {
|
|
1055
1055
|
var r = Xh(t, !!e);
|
|
1056
1056
|
return typeof r == "function" && qu(t, ".prototype.") > -1 ? zh(r) : r;
|
|
1057
1057
|
};
|
|
@@ -1059,7 +1059,7 @@ const Zu = {}, Qu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1059
1059
|
__proto__: null,
|
|
1060
1060
|
default: Zu
|
|
1061
1061
|
}, Symbol.toStringTag, { value: "Module" })), Ju = /* @__PURE__ */ Oc(Qu);
|
|
1062
|
-
var Ra = typeof Map == "function" && Map.prototype, Xs = Object.getOwnPropertyDescriptor && Ra ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, rs = Ra && Xs && typeof Xs.get == "function" ? Xs.get : null, uo = Ra && Map.prototype.forEach, Pa = typeof Set == "function" && Set.prototype, zs = Object.getOwnPropertyDescriptor && Pa ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ss = Pa && zs && typeof zs.get == "function" ? zs.get : null, fo = Pa && Set.prototype.forEach, td = typeof WeakMap == "function" && WeakMap.prototype, sr = td ? WeakMap.prototype.has : null, ed = typeof WeakSet == "function" && WeakSet.prototype, nr = ed ? WeakSet.prototype.has : null, id = typeof WeakRef == "function" && WeakRef.prototype, po = id ? WeakRef.prototype.deref : null, rd = Boolean.prototype.valueOf, sd = Object.prototype.toString, nd = Function.prototype.toString, ad = String.prototype.match, Ma = String.prototype.slice, Be = String.prototype.replace, od = String.prototype.toUpperCase, mo = String.prototype.toLowerCase, Vh = RegExp.prototype.test, go = Array.prototype.concat, he = Array.prototype.join, hd = Array.prototype.slice, yo = Math.floor, Rn = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Vs = Object.getOwnPropertySymbols, Pn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null,
|
|
1062
|
+
var Ra = typeof Map == "function" && Map.prototype, Xs = Object.getOwnPropertyDescriptor && Ra ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, rs = Ra && Xs && typeof Xs.get == "function" ? Xs.get : null, uo = Ra && Map.prototype.forEach, Pa = typeof Set == "function" && Set.prototype, zs = Object.getOwnPropertyDescriptor && Pa ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, ss = Pa && zs && typeof zs.get == "function" ? zs.get : null, fo = Pa && Set.prototype.forEach, td = typeof WeakMap == "function" && WeakMap.prototype, sr = td ? WeakMap.prototype.has : null, ed = typeof WeakSet == "function" && WeakSet.prototype, nr = ed ? WeakSet.prototype.has : null, id = typeof WeakRef == "function" && WeakRef.prototype, po = id ? WeakRef.prototype.deref : null, rd = Boolean.prototype.valueOf, sd = Object.prototype.toString, nd = Function.prototype.toString, ad = String.prototype.match, Ma = String.prototype.slice, Be = String.prototype.replace, od = String.prototype.toUpperCase, mo = String.prototype.toLowerCase, Vh = RegExp.prototype.test, go = Array.prototype.concat, he = Array.prototype.join, hd = Array.prototype.slice, yo = Math.floor, Rn = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Vs = Object.getOwnPropertySymbols, Pn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Oi = typeof Symbol == "function" && typeof Symbol.iterator == "object", Pt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Oi || !0) ? Symbol.toStringTag : null, Wh = Object.prototype.propertyIsEnumerable, _o = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(i) {
|
|
1063
1063
|
return i.__proto__;
|
|
1064
1064
|
} : null);
|
|
1065
1065
|
function vo(i, t) {
|
|
@@ -1129,8 +1129,8 @@ var Mn = Ju, xo = Mn.custom, bo = Yh(xo) ? xo : null, ld = function i(t, e, r, s
|
|
|
1129
1129
|
return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + he.call(p, ", ") + " }" : "");
|
|
1130
1130
|
}
|
|
1131
1131
|
if (Yh(t)) {
|
|
1132
|
-
var m =
|
|
1133
|
-
return typeof t == "object" && !
|
|
1132
|
+
var m = Oi ? Be.call(String(t), /^(Symbol\(.*\))_[^)]*$/, "$1") : Pn.call(t);
|
|
1133
|
+
return typeof t == "object" && !Oi ? $i(m) : m;
|
|
1134
1134
|
}
|
|
1135
1135
|
if (Ed(t)) {
|
|
1136
1136
|
for (var g = "<" + mo.call(String(t.nodeName)), _ = t.attributes || [], x = 0; x < _.length; x++)
|
|
@@ -1172,13 +1172,13 @@ var Mn = Ju, xo = Mn.custom, bo = Yh(xo) ? xo : null, ld = function i(t, e, r, s
|
|
|
1172
1172
|
if (bd(t))
|
|
1173
1173
|
return Ws("WeakRef");
|
|
1174
1174
|
if (pd(t))
|
|
1175
|
-
return
|
|
1175
|
+
return $i(d(Number(t)));
|
|
1176
1176
|
if (gd(t))
|
|
1177
|
-
return
|
|
1177
|
+
return $i(d(Rn.call(t)));
|
|
1178
1178
|
if (md(t))
|
|
1179
|
-
return
|
|
1179
|
+
return $i(rd.call(t));
|
|
1180
1180
|
if (fd(t))
|
|
1181
|
-
return
|
|
1181
|
+
return $i(d(String(t)));
|
|
1182
1182
|
if (typeof window < "u" && t === window)
|
|
1183
1183
|
return "{ [object Window] }";
|
|
1184
1184
|
if (t === Xr)
|
|
@@ -1218,7 +1218,7 @@ function md(i) {
|
|
|
1218
1218
|
return $e(i) === "[object Boolean]" && (!Pt || !(typeof i == "object" && Pt in i));
|
|
1219
1219
|
}
|
|
1220
1220
|
function Yh(i) {
|
|
1221
|
-
if (
|
|
1221
|
+
if (Oi)
|
|
1222
1222
|
return i && typeof i == "object" && i instanceof Symbol;
|
|
1223
1223
|
if (typeof i == "symbol")
|
|
1224
1224
|
return !0;
|
|
@@ -1352,7 +1352,7 @@ function Ad(i) {
|
|
|
1352
1352
|
}[t];
|
|
1353
1353
|
return e ? "\\" + e : "\\x" + (t < 16 ? "0" : "") + od.call(t.toString(16));
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function $i(i) {
|
|
1356
1356
|
return "Object(" + i + ")";
|
|
1357
1357
|
}
|
|
1358
1358
|
function Ws(i) {
|
|
@@ -1398,19 +1398,19 @@ function Tr(i, t) {
|
|
|
1398
1398
|
r[s] = Me(i, s) ? t(i[s], i) : "";
|
|
1399
1399
|
}
|
|
1400
1400
|
var n = typeof Vs == "function" ? Vs(i) : [], a;
|
|
1401
|
-
if (
|
|
1401
|
+
if (Oi) {
|
|
1402
1402
|
a = {};
|
|
1403
1403
|
for (var o = 0; o < n.length; o++)
|
|
1404
1404
|
a["$" + n[o]] = n[o];
|
|
1405
1405
|
}
|
|
1406
1406
|
for (var h in i)
|
|
1407
|
-
Me(i, h) && (e && String(Number(h)) === h && h < i.length ||
|
|
1407
|
+
Me(i, h) && (e && String(Number(h)) === h && h < i.length || Oi && a["$" + h] instanceof Symbol || (Vh.call(/[^\w$]/, h) ? r.push(t(h, i) + ": " + t(i[h], i)) : r.push(h + ": " + t(i[h], i))));
|
|
1408
1408
|
if (typeof Vs == "function")
|
|
1409
1409
|
for (var l = 0; l < n.length; l++)
|
|
1410
1410
|
Wh.call(i, n[l]) && r.push("[" + t(n[l]) + "]: " + t(i[n[l]], i));
|
|
1411
1411
|
return r;
|
|
1412
1412
|
}
|
|
1413
|
-
var Zh =
|
|
1413
|
+
var Zh = ki, Ui = Ku, Id = ld, Rd = pr, wr = Zh("%WeakMap%", !0), Er = Zh("%Map%", !0), Pd = Ui("WeakMap.prototype.get", !0), Md = Ui("WeakMap.prototype.set", !0), Fd = Ui("WeakMap.prototype.has", !0), Bd = Ui("Map.prototype.get", !0), Dd = Ui("Map.prototype.set", !0), Od = Ui("Map.prototype.has", !0), Fa = function(i, t) {
|
|
1414
1414
|
for (var e = i, r; (r = e.next) !== null; e = r)
|
|
1415
1415
|
if (r.key === t)
|
|
1416
1416
|
return e.next = r.next, r.next = /** @type {NonNullable<typeof list.next>} */
|
|
@@ -1776,7 +1776,7 @@ var Zh = Ni, ki = Ku, Id = ld, Rd = pr, wr = Zh("%WeakMap%", !0), Er = Zh("%Map%
|
|
|
1776
1776
|
}
|
|
1777
1777
|
var d = a.join(r.delimiter), f = r.addQueryPrefix === !0 ? "?" : "";
|
|
1778
1778
|
return r.charsetSentinel && (r.charset === "iso-8859-1" ? f += "utf8=%26%2310003%3B&" : f += "utf8=%E2%9C%93&"), d.length > 0 ? f + d : "";
|
|
1779
|
-
},
|
|
1779
|
+
}, Li = Jh, Dn = Object.prototype.hasOwnProperty, of = Array.isArray, ct = {
|
|
1780
1780
|
allowDots: !1,
|
|
1781
1781
|
allowEmptyArrays: !1,
|
|
1782
1782
|
allowPrototypes: !1,
|
|
@@ -1786,7 +1786,7 @@ var Zh = Ni, ki = Ku, Id = ld, Rd = pr, wr = Zh("%WeakMap%", !0), Er = Zh("%Map%
|
|
|
1786
1786
|
charsetSentinel: !1,
|
|
1787
1787
|
comma: !1,
|
|
1788
1788
|
decodeDotInKeys: !1,
|
|
1789
|
-
decoder:
|
|
1789
|
+
decoder: Li.decode,
|
|
1790
1790
|
delimiter: "&",
|
|
1791
1791
|
depth: 5,
|
|
1792
1792
|
duplicates: "combine",
|
|
@@ -1810,14 +1810,14 @@ var Zh = Ni, ki = Ku, Id = ld, Rd = pr, wr = Zh("%WeakMap%", !0), Er = Zh("%Map%
|
|
|
1810
1810
|
for (h = 0; h < a.length; ++h)
|
|
1811
1811
|
if (h !== o) {
|
|
1812
1812
|
var c = a[h], u = c.indexOf("]="), d = u === -1 ? c.indexOf("=") : u + 1, f, p;
|
|
1813
|
-
d === -1 ? (f = e.decoder(c, ct.decoder, l, "key"), p = e.strictNullHandling ? null : "") : (f = e.decoder(c.slice(0, d), ct.decoder, l, "key"), p =
|
|
1813
|
+
d === -1 ? (f = e.decoder(c, ct.decoder, l, "key"), p = e.strictNullHandling ? null : "") : (f = e.decoder(c.slice(0, d), ct.decoder, l, "key"), p = Li.maybeMap(
|
|
1814
1814
|
rl(c.slice(d + 1), e),
|
|
1815
1815
|
function(g) {
|
|
1816
1816
|
return e.decoder(g, ct.decoder, l, "value");
|
|
1817
1817
|
}
|
|
1818
1818
|
)), p && e.interpretNumericEntities && l === "iso-8859-1" && (p = hf(p)), c.indexOf("[]=") > -1 && (p = of(p) ? [p] : p);
|
|
1819
1819
|
var m = Dn.call(r, f);
|
|
1820
|
-
m && e.duplicates === "combine" ? r[f] =
|
|
1820
|
+
m && e.duplicates === "combine" ? r[f] = Li.combine(r[f], p) : (!m || e.duplicates === "last") && (r[f] = p);
|
|
1821
1821
|
}
|
|
1822
1822
|
return r;
|
|
1823
1823
|
}, df = function(i, t, e, r) {
|
|
@@ -1874,7 +1874,7 @@ var Zh = Ni, ki = Ku, Id = ld, Rd = pr, wr = Zh("%WeakMap%", !0), Er = Zh("%Map%
|
|
|
1874
1874
|
comma: typeof t.comma == "boolean" ? t.comma : ct.comma,
|
|
1875
1875
|
decodeDotInKeys: typeof t.decodeDotInKeys == "boolean" ? t.decodeDotInKeys : ct.decodeDotInKeys,
|
|
1876
1876
|
decoder: typeof t.decoder == "function" ? t.decoder : ct.decoder,
|
|
1877
|
-
delimiter: typeof t.delimiter == "string" ||
|
|
1877
|
+
delimiter: typeof t.delimiter == "string" || Li.isRegExp(t.delimiter) ? t.delimiter : ct.delimiter,
|
|
1878
1878
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
1879
1879
|
depth: typeof t.depth == "number" || t.depth === !1 ? +t.depth : ct.depth,
|
|
1880
1880
|
duplicates: r,
|
|
@@ -1891,9 +1891,9 @@ var Zh = Ni, ki = Ku, Id = ld, Rd = pr, wr = Zh("%WeakMap%", !0), Er = Zh("%Map%
|
|
|
1891
1891
|
return e.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
1892
1892
|
for (var r = typeof i == "string" ? uf(i, e) : i, s = e.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, n = Object.keys(r), a = 0; a < n.length; ++a) {
|
|
1893
1893
|
var o = n[a], h = ff(o, r[o], e, typeof i == "string");
|
|
1894
|
-
s =
|
|
1894
|
+
s = Li.merge(s, h, e);
|
|
1895
1895
|
}
|
|
1896
|
-
return e.allowSparse === !0 ? s :
|
|
1896
|
+
return e.allowSparse === !0 ? s : Li.compact(s);
|
|
1897
1897
|
}, gf = af, yf = mf, _f = Ba, vf = {
|
|
1898
1898
|
formats: _f,
|
|
1899
1899
|
parse: yf,
|
|
@@ -1935,7 +1935,7 @@ var bf = /^([a-z0-9.+-]+:)/i, Tf = /:[0-9]*$/, wf = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
1935
1935
|
}, Ln = {
|
|
1936
1936
|
javascript: !0,
|
|
1937
1937
|
"javascript:": !0
|
|
1938
|
-
},
|
|
1938
|
+
}, Ii = {
|
|
1939
1939
|
http: !0,
|
|
1940
1940
|
https: !0,
|
|
1941
1941
|
ftp: !0,
|
|
@@ -1974,7 +1974,7 @@ we.prototype.parse = function(i, t, e) {
|
|
|
1974
1974
|
var u = o.substr(0, 2) === "//";
|
|
1975
1975
|
u && !(l && Ln[l]) && (o = o.substr(2), this.slashes = !0);
|
|
1976
1976
|
}
|
|
1977
|
-
if (!Ln[l] && (u || l && !
|
|
1977
|
+
if (!Ln[l] && (u || l && !Ii[l])) {
|
|
1978
1978
|
for (var d = -1, f = 0; f < So.length; f++) {
|
|
1979
1979
|
var p = o.indexOf(So[f]);
|
|
1980
1980
|
p !== -1 && (d === -1 || p < d) && (d = p);
|
|
@@ -2015,7 +2015,7 @@ we.prototype.parse = function(i, t, e) {
|
|
|
2015
2015
|
var G = o.indexOf("#");
|
|
2016
2016
|
G !== -1 && (this.hash = o.substr(G), o = o.slice(0, G));
|
|
2017
2017
|
var W = o.indexOf("?");
|
|
2018
|
-
if (W !== -1 ? (this.search = o.substr(W), this.query = o.substr(W + 1), t && (this.query = Nn.parse(this.query)), o = o.slice(0, W)) : t && (this.search = "", this.query = {}), o && (this.pathname = o),
|
|
2018
|
+
if (W !== -1 ? (this.search = o.substr(W), this.query = o.substr(W + 1), t && (this.query = Nn.parse(this.query)), o = o.slice(0, W)) : t && (this.search = "", this.query = {}), o && (this.pathname = o), Ii[c] && this.hostname && !this.pathname && (this.pathname = "/"), this.pathname || this.search) {
|
|
2019
2019
|
var q = this.pathname || "", X = this.search || "";
|
|
2020
2020
|
this.path = q + X;
|
|
2021
2021
|
}
|
|
@@ -2030,7 +2030,7 @@ we.prototype.format = function() {
|
|
|
2030
2030
|
addQueryPrefix: !1
|
|
2031
2031
|
}));
|
|
2032
2032
|
var a = this.search || n && "?" + n || "";
|
|
2033
|
-
return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t ||
|
|
2033
|
+
return t && t.substr(-1) !== ":" && (t += ":"), this.slashes || (!t || Ii[t]) && s !== !1 ? (s = "//" + (s || ""), e && e.charAt(0) !== "/" && (e = "/" + e)) : s || (s = ""), r && r.charAt(0) !== "#" && (r = "#" + r), a && a.charAt(0) !== "?" && (a = "?" + a), e = e.replace(/[?#]/g, function(o) {
|
|
2034
2034
|
return encodeURIComponent(o);
|
|
2035
2035
|
}), a = a.replace("#", "%23"), t + s + e + a + r;
|
|
2036
2036
|
};
|
|
@@ -2053,10 +2053,10 @@ we.prototype.resolveObject = function(i) {
|
|
|
2053
2053
|
var h = a[o];
|
|
2054
2054
|
h !== "protocol" && (e[h] = i[h]);
|
|
2055
2055
|
}
|
|
2056
|
-
return
|
|
2056
|
+
return Ii[e.protocol] && e.hostname && !e.pathname && (e.pathname = "/", e.path = e.pathname), e.href = e.format(), e;
|
|
2057
2057
|
}
|
|
2058
2058
|
if (i.protocol && i.protocol !== e.protocol) {
|
|
2059
|
-
if (!
|
|
2059
|
+
if (!Ii[i.protocol]) {
|
|
2060
2060
|
for (var l = Object.keys(i), c = 0; c < l.length; c++) {
|
|
2061
2061
|
var u = l[c];
|
|
2062
2062
|
e[u] = i[u];
|
|
@@ -2075,7 +2075,7 @@ we.prototype.resolveObject = function(i) {
|
|
|
2075
2075
|
}
|
|
2076
2076
|
return e.slashes = e.slashes || i.slashes, e.href = e.format(), e;
|
|
2077
2077
|
}
|
|
2078
|
-
var p = e.pathname && e.pathname.charAt(0) === "/", m = i.host || i.pathname && i.pathname.charAt(0) === "/", g = m || p || e.host && i.pathname, _ = g, x = e.pathname && e.pathname.split("/") || [], y = i.pathname && i.pathname.split("/") || [], v = e.protocol && !
|
|
2078
|
+
var p = e.pathname && e.pathname.charAt(0) === "/", m = i.host || i.pathname && i.pathname.charAt(0) === "/", g = m || p || e.host && i.pathname, _ = g, x = e.pathname && e.pathname.split("/") || [], y = i.pathname && i.pathname.split("/") || [], v = e.protocol && !Ii[e.protocol];
|
|
2079
2079
|
if (v && (e.hostname = "", e.port = null, e.host && (x[0] === "" ? x[0] = e.host : x.unshift(e.host)), e.host = "", i.protocol && (i.hostname = null, i.port = null, i.host && (y[0] === "" ? y[0] = i.host : y.unshift(i.host)), i.host = null), g = g && (y[0] === "" || x[0] === "")), m)
|
|
2080
2080
|
e.host = i.host || i.host === "" ? i.host : e.host, e.hostname = i.hostname || i.hostname === "" ? i.hostname : e.hostname, e.search = i.search, e.query = i.query, x = y;
|
|
2081
2081
|
else if (y.length)
|
|
@@ -2125,11 +2125,11 @@ Deprecated since v${i}`
|
|
|
2125
2125
|
), console.warn(r), console.groupEnd()) : (console.warn("PixiJS Deprecation Warning: ", `${t}
|
|
2126
2126
|
Deprecated since v${i}`), console.warn(r))), Io[t] = !0;
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function Gt(i) {
|
|
2129
2129
|
if (typeof i != "string")
|
|
2130
2130
|
throw new TypeError(`Path must be a string. Received ${JSON.stringify(i)}`);
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Xi(i) {
|
|
2133
2133
|
return i.split("?")[0].split("#")[0];
|
|
2134
2134
|
}
|
|
2135
2135
|
function Pf(i) {
|
|
@@ -2213,7 +2213,7 @@ const xt = {
|
|
|
2213
2213
|
* @param path - The path to get the protocol from
|
|
2214
2214
|
*/
|
|
2215
2215
|
getProtocol(i) {
|
|
2216
|
-
|
|
2216
|
+
Gt(i), i = this.toPosix(i);
|
|
2217
2217
|
const t = /^file:\/\/\//.exec(i);
|
|
2218
2218
|
if (t)
|
|
2219
2219
|
return t[0];
|
|
@@ -2230,9 +2230,9 @@ const xt = {
|
|
|
2230
2230
|
* @param customRootUrl - The root URL to use
|
|
2231
2231
|
*/
|
|
2232
2232
|
toAbsolute(i, t, e) {
|
|
2233
|
-
if (
|
|
2233
|
+
if (Gt(i), this.isDataUrl(i) || this.isBlobUrl(i))
|
|
2234
2234
|
return i;
|
|
2235
|
-
const r =
|
|
2235
|
+
const r = Xi(this.toPosix(t ?? B.ADAPTER.getBaseUrl())), s = Xi(this.toPosix(e ?? this.rootname(r)));
|
|
2236
2236
|
return i = this.toPosix(i), i.startsWith("/") ? xt.join(s, i.slice(1)) : this.isAbsolute(i) ? i : this.join(r, i);
|
|
2237
2237
|
},
|
|
2238
2238
|
/**
|
|
@@ -2240,7 +2240,7 @@ const xt = {
|
|
|
2240
2240
|
* @param path - The path to normalize
|
|
2241
2241
|
*/
|
|
2242
2242
|
normalize(i) {
|
|
2243
|
-
if (
|
|
2243
|
+
if (Gt(i), i.length === 0)
|
|
2244
2244
|
return ".";
|
|
2245
2245
|
if (this.isDataUrl(i) || this.isBlobUrl(i))
|
|
2246
2246
|
return i;
|
|
@@ -2257,7 +2257,7 @@ const xt = {
|
|
|
2257
2257
|
* @param path - The path to test
|
|
2258
2258
|
*/
|
|
2259
2259
|
isAbsolute(i) {
|
|
2260
|
-
return
|
|
2260
|
+
return Gt(i), i = this.toPosix(i), this.hasProtocol(i) ? !0 : i.startsWith("/");
|
|
2261
2261
|
},
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Joins all given path segments together using the platform-specific separator as a delimiter,
|
|
@@ -2270,7 +2270,7 @@ const xt = {
|
|
|
2270
2270
|
let t;
|
|
2271
2271
|
for (let e = 0; e < i.length; ++e) {
|
|
2272
2272
|
const r = i[e];
|
|
2273
|
-
if (
|
|
2273
|
+
if (Gt(r), r.length > 0)
|
|
2274
2274
|
if (t === void 0)
|
|
2275
2275
|
t = r;
|
|
2276
2276
|
else {
|
|
@@ -2285,7 +2285,7 @@ const xt = {
|
|
|
2285
2285
|
* @param path - The path to parse
|
|
2286
2286
|
*/
|
|
2287
2287
|
dirname(i) {
|
|
2288
|
-
if (
|
|
2288
|
+
if (Gt(i), i.length === 0)
|
|
2289
2289
|
return ".";
|
|
2290
2290
|
i = this.toPosix(i);
|
|
2291
2291
|
let t = i.charCodeAt(0);
|
|
@@ -2308,7 +2308,7 @@ const xt = {
|
|
|
2308
2308
|
* @param path - The path to parse
|
|
2309
2309
|
*/
|
|
2310
2310
|
rootname(i) {
|
|
2311
|
-
|
|
2311
|
+
Gt(i), i = this.toPosix(i);
|
|
2312
2312
|
let t = "";
|
|
2313
2313
|
if (i.startsWith("/") ? t = "/" : t = this.getProtocol(i), this.isUrl(i)) {
|
|
2314
2314
|
const e = i.indexOf("/", t.length);
|
|
@@ -2322,7 +2322,7 @@ const xt = {
|
|
|
2322
2322
|
* @param ext - Optional extension to remove
|
|
2323
2323
|
*/
|
|
2324
2324
|
basename(i, t) {
|
|
2325
|
-
|
|
2325
|
+
Gt(i), t && Gt(t), i = Xi(this.toPosix(i));
|
|
2326
2326
|
let e = 0, r = -1, s = !0, n;
|
|
2327
2327
|
if (t !== void 0 && t.length > 0 && t.length <= i.length) {
|
|
2328
2328
|
if (t.length === i.length && t === i)
|
|
@@ -2357,7 +2357,7 @@ const xt = {
|
|
|
2357
2357
|
* @param path - The path to parse
|
|
2358
2358
|
*/
|
|
2359
2359
|
extname(i) {
|
|
2360
|
-
|
|
2360
|
+
Gt(i), i = Xi(this.toPosix(i));
|
|
2361
2361
|
let t = -1, e = 0, r = -1, s = !0, n = 0;
|
|
2362
2362
|
for (let a = i.length - 1; a >= 0; --a) {
|
|
2363
2363
|
const o = i.charCodeAt(a);
|
|
@@ -2377,11 +2377,11 @@ const xt = {
|
|
|
2377
2377
|
* @param path - The path to parse
|
|
2378
2378
|
*/
|
|
2379
2379
|
parse(i) {
|
|
2380
|
-
|
|
2380
|
+
Gt(i);
|
|
2381
2381
|
const t = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
2382
2382
|
if (i.length === 0)
|
|
2383
2383
|
return t;
|
|
2384
|
-
i =
|
|
2384
|
+
i = Xi(this.toPosix(i));
|
|
2385
2385
|
let e = i.charCodeAt(0);
|
|
2386
2386
|
const r = this.isAbsolute(i);
|
|
2387
2387
|
let s;
|
|
@@ -2458,12 +2458,12 @@ var Of = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, ye = function(i) {
|
|
|
2458
2458
|
return typeof i == "string" ? i.length > 0 : typeof i == "number";
|
|
2459
2459
|
}, At = function(i, t, e) {
|
|
2460
2460
|
return t === void 0 && (t = 0), e === void 0 && (e = Math.pow(10, t)), Math.round(e * i) / e + 0;
|
|
2461
|
-
},
|
|
2461
|
+
}, Ut = function(i, t, e) {
|
|
2462
2462
|
return t === void 0 && (t = 0), e === void 0 && (e = 1), i > e ? e : i > t ? i : t;
|
|
2463
2463
|
}, sl = function(i) {
|
|
2464
2464
|
return (i = isFinite(i) ? i % 360 : 0) > 0 ? i : i + 360;
|
|
2465
2465
|
}, Ro = function(i) {
|
|
2466
|
-
return { r:
|
|
2466
|
+
return { r: Ut(i.r, 0, 255), g: Ut(i.g, 0, 255), b: Ut(i.b, 0, 255), a: Ut(i.a) };
|
|
2467
2467
|
}, Js = function(i) {
|
|
2468
2468
|
return { r: At(i.r), g: At(i.g), b: At(i.b), a: At(i.a, 3) };
|
|
2469
2469
|
}, Lf = /^#([0-9a-f]{3,8})$/i, Ar = function(i) {
|
|
@@ -2478,7 +2478,7 @@ var Of = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, ye = function(i) {
|
|
|
2478
2478
|
var n = Math.floor(t), a = r * (1 - e), o = r * (1 - (t - n) * e), h = r * (1 - (1 - t + n) * e), l = n % 6;
|
|
2479
2479
|
return { r: 255 * [r, o, a, a, h, r][l], g: 255 * [h, r, r, o, a, a][l], b: 255 * [a, a, h, r, r, o][l], a: s };
|
|
2480
2480
|
}, Po = function(i) {
|
|
2481
|
-
return { h: sl(i.h), s:
|
|
2481
|
+
return { h: sl(i.h), s: Ut(i.s, 0, 100), l: Ut(i.l, 0, 100), a: Ut(i.a) };
|
|
2482
2482
|
}, Mo = function(i) {
|
|
2483
2483
|
return { h: At(i.h), s: At(i.s), l: At(i.l), a: At(i.a, 3) };
|
|
2484
2484
|
}, Fo = function(i) {
|
|
@@ -2513,7 +2513,7 @@ var Of = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, ye = function(i) {
|
|
|
2513
2513
|
if (!ye(t) || !ye(e) || !ye(r))
|
|
2514
2514
|
return null;
|
|
2515
2515
|
var a = function(o) {
|
|
2516
|
-
return { h: sl(o.h), s:
|
|
2516
|
+
return { h: sl(o.h), s: Ut(o.s, 0, 100), v: Ut(o.v, 0, 100), a: Ut(o.a) };
|
|
2517
2517
|
}({ h: Number(t), s: Number(e), v: Number(r), a: Number(n) });
|
|
2518
2518
|
return al(a);
|
|
2519
2519
|
}, "hsv"]] }, Bo = function(i, t) {
|
|
@@ -2527,12 +2527,12 @@ var Of = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, ye = function(i) {
|
|
|
2527
2527
|
return typeof i == "string" ? Bo(i.trim(), kn.string) : typeof i == "object" && i !== null ? Bo(i, kn.object) : [null, void 0];
|
|
2528
2528
|
}, tn = function(i, t) {
|
|
2529
2529
|
var e = or(i);
|
|
2530
|
-
return { h: e.h, s:
|
|
2530
|
+
return { h: e.h, s: Ut(e.s + 100 * t, 0, 100), l: e.l, a: e.a };
|
|
2531
2531
|
}, en = function(i) {
|
|
2532
2532
|
return (299 * i.r + 587 * i.g + 114 * i.b) / 1e3 / 255;
|
|
2533
2533
|
}, Do = function(i, t) {
|
|
2534
2534
|
var e = or(i);
|
|
2535
|
-
return { h: e.h, s: e.s, l:
|
|
2535
|
+
return { h: e.h, s: e.s, l: Ut(e.l + 100 * t, 0, 100), a: e.a };
|
|
2536
2536
|
}, Un = function() {
|
|
2537
2537
|
function i(t) {
|
|
2538
2538
|
this.parsed = Hf(t)[0], this.rgba = this.parsed || { r: 0, g: 0, b: 0, a: 1 };
|
|
@@ -2936,7 +2936,7 @@ function No(i) {
|
|
|
2936
2936
|
let e = (i > 255 ? 1 : 0) << 3;
|
|
2937
2937
|
return i >>>= e, t |= e, e = (i > 15 ? 1 : 0) << 2, i >>>= e, t |= e, e = (i > 3 ? 1 : 0) << 1, i >>>= e, t |= e, t | i >> 1;
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2939
|
+
function Ri(i, t, e) {
|
|
2940
2940
|
const r = i.length;
|
|
2941
2941
|
let s;
|
|
2942
2942
|
if (t >= r || e === 0)
|
|
@@ -3649,7 +3649,7 @@ class ws extends dr {
|
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
3651
|
const ip = {
|
|
3652
|
-
scaleMode:
|
|
3652
|
+
scaleMode: Wt.NEAREST,
|
|
3653
3653
|
alphaMode: Bt.NPM
|
|
3654
3654
|
}, zn = class gi extends fr {
|
|
3655
3655
|
/**
|
|
@@ -3921,7 +3921,7 @@ zn.defaultOptions = {
|
|
|
3921
3921
|
* @type {PIXI.SCALE_MODES}
|
|
3922
3922
|
* @default PIXI.SCALE_MODES.LINEAR
|
|
3923
3923
|
*/
|
|
3924
|
-
scaleMode:
|
|
3924
|
+
scaleMode: Wt.LINEAR,
|
|
3925
3925
|
/**
|
|
3926
3926
|
* Wrap mode for textures.
|
|
3927
3927
|
* @type {PIXI.WRAP_MODES}
|
|
@@ -3939,7 +3939,7 @@ zn.defaultOptions = {
|
|
|
3939
3939
|
* @type {PIXI.TARGETS}
|
|
3940
3940
|
* @default PIXI.TARGETS.TEXTURE_2D
|
|
3941
3941
|
*/
|
|
3942
|
-
target:
|
|
3942
|
+
target: Si.TEXTURE_2D,
|
|
3943
3943
|
/**
|
|
3944
3944
|
* GL format type
|
|
3945
3945
|
* @type {PIXI.FORMATS}
|
|
@@ -5237,7 +5237,7 @@ function fl(i, t) {
|
|
|
5237
5237
|
}
|
|
5238
5238
|
return null;
|
|
5239
5239
|
}
|
|
5240
|
-
const
|
|
5240
|
+
const Pi = [
|
|
5241
5241
|
// a float cache layer
|
|
5242
5242
|
{
|
|
5243
5243
|
test: (i) => i.type === "float" && i.size === 1 && !i.isArray,
|
|
@@ -5618,9 +5618,9 @@ function mp(i, t) {
|
|
|
5618
5618
|
}
|
|
5619
5619
|
const a = i.uniforms[s];
|
|
5620
5620
|
let o = !1;
|
|
5621
|
-
for (let h = 0; h <
|
|
5622
|
-
if (
|
|
5623
|
-
e.push(
|
|
5621
|
+
for (let h = 0; h < Pi.length; h++)
|
|
5622
|
+
if (Pi[h].test(n, a)) {
|
|
5623
|
+
e.push(Pi[h].code(s, a)), o = !0;
|
|
5624
5624
|
break;
|
|
5625
5625
|
}
|
|
5626
5626
|
if (!o) {
|
|
@@ -5648,11 +5648,11 @@ function gp() {
|
|
|
5648
5648
|
let Ir;
|
|
5649
5649
|
function yp() {
|
|
5650
5650
|
if (!Ir) {
|
|
5651
|
-
Ir =
|
|
5651
|
+
Ir = kt.MEDIUM;
|
|
5652
5652
|
const i = gp();
|
|
5653
5653
|
if (i && i.getShaderPrecisionFormat) {
|
|
5654
5654
|
const t = i.getShaderPrecisionFormat(i.FRAGMENT_SHADER, i.HIGH_FLOAT);
|
|
5655
|
-
t && (Ir = t.precision ?
|
|
5655
|
+
t && (Ir = t.precision ? kt.HIGH : kt.MEDIUM);
|
|
5656
5656
|
}
|
|
5657
5657
|
}
|
|
5658
5658
|
return Ir;
|
|
@@ -5741,22 +5741,22 @@ function gl(i, t) {
|
|
|
5741
5741
|
function jo(i, t, e) {
|
|
5742
5742
|
if (i.substring(0, 9) !== "precision") {
|
|
5743
5743
|
let r = t;
|
|
5744
|
-
return t ===
|
|
5744
|
+
return t === kt.HIGH && e !== kt.HIGH && (r = kt.MEDIUM), `precision ${r} float;
|
|
5745
5745
|
${i}`;
|
|
5746
|
-
} else if (e !==
|
|
5746
|
+
} else if (e !== kt.HIGH && i.substring(0, 15) === "precision highp")
|
|
5747
5747
|
return i.replace("precision highp", "precision mediump");
|
|
5748
5748
|
return i;
|
|
5749
5749
|
}
|
|
5750
|
-
let
|
|
5750
|
+
let zi;
|
|
5751
5751
|
function xp() {
|
|
5752
|
-
if (typeof
|
|
5753
|
-
return
|
|
5752
|
+
if (typeof zi == "boolean")
|
|
5753
|
+
return zi;
|
|
5754
5754
|
try {
|
|
5755
|
-
|
|
5755
|
+
zi = new Function("param1", "param2", "param3", "return param1[param2] === param3;")({ a: "b" }, "a", "b") === !0;
|
|
5756
5756
|
} catch {
|
|
5757
|
-
|
|
5757
|
+
zi = !1;
|
|
5758
5758
|
}
|
|
5759
|
-
return
|
|
5759
|
+
return zi;
|
|
5760
5760
|
}
|
|
5761
5761
|
let bp = 0;
|
|
5762
5762
|
const Pr = {}, Yn = class yi {
|
|
@@ -5772,7 +5772,7 @@ ${this.vertexSrc}`, this.fragmentSrc = `#define SHADER_NAME ${r}
|
|
|
5772
5772
|
${this.fragmentSrc}`, this.vertexSrc = jo(
|
|
5773
5773
|
this.vertexSrc,
|
|
5774
5774
|
yi.defaultVertexPrecision,
|
|
5775
|
-
|
|
5775
|
+
kt.HIGH
|
|
5776
5776
|
), this.fragmentSrc = jo(
|
|
5777
5777
|
this.fragmentSrc,
|
|
5778
5778
|
yi.defaultFragmentPrecision,
|
|
@@ -5808,14 +5808,14 @@ ${this.fragmentSrc}`, this.vertexSrc = jo(
|
|
|
5808
5808
|
return n || (Uo[s] = n = new yi(t, e, r)), n;
|
|
5809
5809
|
}
|
|
5810
5810
|
};
|
|
5811
|
-
Yn.defaultVertexPrecision =
|
|
5811
|
+
Yn.defaultVertexPrecision = kt.HIGH, /**
|
|
5812
5812
|
* Default specify float precision in fragment shader.
|
|
5813
5813
|
* iOS is best set at highp due to https://github.com/pixijs/pixijs/issues/3742
|
|
5814
5814
|
* @static
|
|
5815
5815
|
* @type {PIXI.PRECISION}
|
|
5816
5816
|
* @default PIXI.PRECISION.MEDIUM
|
|
5817
5817
|
*/
|
|
5818
|
-
Yn.defaultFragmentPrecision = xe.apple.device ?
|
|
5818
|
+
Yn.defaultFragmentPrecision = xe.apple.device ? kt.HIGH : kt.MEDIUM;
|
|
5819
5819
|
let Te = Yn, Tp = 0;
|
|
5820
5820
|
class Kt {
|
|
5821
5821
|
/**
|
|
@@ -6025,14 +6025,14 @@ void main(void){
|
|
|
6025
6025
|
vColor = aColor * tint;
|
|
6026
6026
|
}
|
|
6027
6027
|
`;
|
|
6028
|
-
const
|
|
6028
|
+
const Yi = class $t extends Cs {
|
|
6029
6029
|
/**
|
|
6030
6030
|
* This will hook onto the renderer's `contextChange`
|
|
6031
6031
|
* and `prerender` signals.
|
|
6032
6032
|
* @param {PIXI.Renderer} renderer - The renderer this works for.
|
|
6033
6033
|
*/
|
|
6034
6034
|
constructor(t) {
|
|
6035
|
-
super(t), this.setShaderGenerator(), this.geometryClass = ul, this.vertexSize = 6, this.state = pe.for2d(), this.size =
|
|
6035
|
+
super(t), this.setShaderGenerator(), this.geometryClass = ul, this.vertexSize = 6, this.state = pe.for2d(), this.size = $t.defaultBatchSize * 4, this._vertexCount = 0, this._indexCount = 0, this._bufferedElements = [], this._bufferedTextures = [], this._bufferSize = 0, this._shader = null, this._packedGeometries = [], this._packedGeometryPoolSize = 2, this._flushId = 0, this._aBuffers = {}, this._iBuffers = {}, this.maxTextures = 1, this.renderer.on("prerender", this.onPrerender, this), t.runners.contextChange.add(this), this._dcIndex = 0, this._aIndex = 0, this._iIndex = 0, this._attributeBuffer = null, this._indexBuffer = null, this._tempBoundTextures = [];
|
|
6036
6036
|
}
|
|
6037
6037
|
/**
|
|
6038
6038
|
* The maximum textures that this device supports.
|
|
@@ -6084,8 +6084,8 @@ const ji = class Xt extends Cs {
|
|
|
6084
6084
|
* @param {string} [options.fragment=PIXI.BatchRenderer.defaultFragmentTemplate] - Fragment shader template
|
|
6085
6085
|
*/
|
|
6086
6086
|
setShaderGenerator({
|
|
6087
|
-
vertex: t =
|
|
6088
|
-
fragment: e =
|
|
6087
|
+
vertex: t = $t.defaultVertexSrc,
|
|
6088
|
+
fragment: e = $t.defaultFragmentTemplate
|
|
6089
6089
|
} = {}) {
|
|
6090
6090
|
this.shaderGenerator = new wp(t, e);
|
|
6091
6091
|
}
|
|
@@ -6098,7 +6098,7 @@ const ji = class Xt extends Cs {
|
|
|
6098
6098
|
const t = this.renderer.gl;
|
|
6099
6099
|
B.PREFER_ENV === oi.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(
|
|
6100
6100
|
t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),
|
|
6101
|
-
|
|
6101
|
+
$t.defaultMaxTextures
|
|
6102
6102
|
), this.maxTextures = ep(
|
|
6103
6103
|
this.maxTextures,
|
|
6104
6104
|
t
|
|
@@ -6112,7 +6112,7 @@ const ji = class Xt extends Cs {
|
|
|
6112
6112
|
const {
|
|
6113
6113
|
_drawCallPool: t,
|
|
6114
6114
|
_textureArrayPool: e
|
|
6115
|
-
} =
|
|
6115
|
+
} = $t, r = this.size / 4, s = Math.floor(r / this.maxTextures) + 1;
|
|
6116
6116
|
for (; t.length < r; )
|
|
6117
6117
|
t.push(new Vn());
|
|
6118
6118
|
for (; e.length < s; )
|
|
@@ -6136,7 +6136,7 @@ const ji = class Xt extends Cs {
|
|
|
6136
6136
|
const {
|
|
6137
6137
|
_bufferedTextures: t,
|
|
6138
6138
|
maxTextures: e
|
|
6139
|
-
} = this, r =
|
|
6139
|
+
} = this, r = $t._textureArrayPool, s = this.renderer.batch, n = this._tempBoundTextures, a = this.renderer.textureGC.count;
|
|
6140
6140
|
let o = ++j._globalBatch, h = 0, l = r[0], c = 0;
|
|
6141
6141
|
s.copyBoundTextures(n, e);
|
|
6142
6142
|
for (let u = 0; u < this._bufferSize; ++u) {
|
|
@@ -6160,7 +6160,7 @@ const ji = class Xt extends Cs {
|
|
|
6160
6160
|
_attributeBuffer: n,
|
|
6161
6161
|
_indexBuffer: a,
|
|
6162
6162
|
vertexSize: o
|
|
6163
|
-
} = this, h =
|
|
6163
|
+
} = this, h = $t._drawCallPool;
|
|
6164
6164
|
let l = this._dcIndex, c = this._aIndex, u = this._iIndex, d = h[l];
|
|
6165
6165
|
d.start = this._iIndex, d.texArray = t;
|
|
6166
6166
|
for (let f = e; f < r; ++f) {
|
|
@@ -6185,10 +6185,10 @@ const ji = class Xt extends Cs {
|
|
|
6185
6185
|
_attributeBuffer: e,
|
|
6186
6186
|
_indexBuffer: r
|
|
6187
6187
|
} = this;
|
|
6188
|
-
|
|
6188
|
+
$t.canUploadSameBuffer ? (t[this._flushId]._buffer.update(e.rawBinaryData), t[this._flushId]._indexBuffer.update(r), this.renderer.geometry.updateBuffers()) : (this._packedGeometryPoolSize <= this._flushId && (this._packedGeometryPoolSize++, t[this._flushId] = new this.geometryClass()), t[this._flushId]._buffer.update(e.rawBinaryData), t[this._flushId]._indexBuffer.update(r), this.renderer.geometry.bind(t[this._flushId]), this.renderer.geometry.updateBuffers(), this._flushId++);
|
|
6189
6189
|
}
|
|
6190
6190
|
drawBatches() {
|
|
6191
|
-
const t = this._dcIndex, { gl: e, state: r } = this.renderer, s =
|
|
6191
|
+
const t = this._dcIndex, { gl: e, state: r } = this.renderer, s = $t._drawCallPool;
|
|
6192
6192
|
let n = null;
|
|
6193
6193
|
for (let a = 0; a < t; a++) {
|
|
6194
6194
|
const { texArray: o, type: h, size: l, start: c, blend: u } = s[a];
|
|
@@ -6201,7 +6201,7 @@ const ji = class Xt extends Cs {
|
|
|
6201
6201
|
}
|
|
6202
6202
|
/** Starts a new sprite batch. */
|
|
6203
6203
|
start() {
|
|
6204
|
-
this.renderer.state.set(this.state), this.renderer.texture.ensureSamplerType(this.maxTextures), this.renderer.shader.bind(this._shader),
|
|
6204
|
+
this.renderer.state.set(this.state), this.renderer.texture.ensureSamplerType(this.maxTextures), this.renderer.shader.bind(this._shader), $t.canUploadSameBuffer && this.renderer.geometry.bind(this._packedGeometries[this._flushId]);
|
|
6205
6205
|
}
|
|
6206
6206
|
/** Stops and flushes the current batch. */
|
|
6207
6207
|
stop() {
|
|
@@ -6260,8 +6260,8 @@ const ji = class Xt extends Cs {
|
|
|
6260
6260
|
r[n++] = h + c[m];
|
|
6261
6261
|
}
|
|
6262
6262
|
};
|
|
6263
|
-
|
|
6264
|
-
|
|
6263
|
+
Yi.defaultBatchSize = 4096, /** @ignore */
|
|
6264
|
+
Yi.extension = {
|
|
6265
6265
|
name: "batch",
|
|
6266
6266
|
type: M.RendererPlugin
|
|
6267
6267
|
}, /**
|
|
@@ -6272,7 +6272,7 @@ ji.extension = {
|
|
|
6272
6272
|
* Shared between all batch renderers because it can be only one "flush" working at the moment.
|
|
6273
6273
|
* @member {PIXI.BatchDrawCall[]}
|
|
6274
6274
|
*/
|
|
6275
|
-
|
|
6275
|
+
Yi._drawCallPool = [], /**
|
|
6276
6276
|
* Pool of `BatchDrawCall` objects that `flush` used
|
|
6277
6277
|
* to create "batches" of the objects being rendered.
|
|
6278
6278
|
*
|
|
@@ -6280,8 +6280,8 @@ ji._drawCallPool = [], /**
|
|
|
6280
6280
|
* Shared between all batch renderers because it can be only one "flush" working at the moment.
|
|
6281
6281
|
* @member {PIXI.BatchTextureArray[]}
|
|
6282
6282
|
*/
|
|
6283
|
-
|
|
6284
|
-
let Ke =
|
|
6283
|
+
Yi._textureArrayPool = [];
|
|
6284
|
+
let Ke = Yi;
|
|
6285
6285
|
k.add(Ke);
|
|
6286
6286
|
var Ip = `varying vec2 vTextureCoord;
|
|
6287
6287
|
|
|
@@ -6317,7 +6317,7 @@ void main(void)
|
|
|
6317
6317
|
vTextureCoord = filterTextureCoord();
|
|
6318
6318
|
}
|
|
6319
6319
|
`;
|
|
6320
|
-
const Kn = class
|
|
6320
|
+
const Kn = class qi extends ue {
|
|
6321
6321
|
/**
|
|
6322
6322
|
* @param vertexSrc - The source of the vertex shader.
|
|
6323
6323
|
* @param fragmentSrc - The source of the fragment shader.
|
|
@@ -6325,10 +6325,10 @@ const Kn = class Yi extends ue {
|
|
|
6325
6325
|
*/
|
|
6326
6326
|
constructor(t, e, r) {
|
|
6327
6327
|
const s = Te.from(
|
|
6328
|
-
t ||
|
|
6329
|
-
e ||
|
|
6328
|
+
t || qi.defaultVertexSrc,
|
|
6329
|
+
e || qi.defaultFragmentSrc
|
|
6330
6330
|
);
|
|
6331
|
-
super(s, r), this.padding = 0, this.resolution =
|
|
6331
|
+
super(s, r), this.padding = 0, this.resolution = qi.defaultResolution, this.multisample = qi.defaultMultisample, this.enabled = !0, this.autoFit = !0, this.state = new pe();
|
|
6332
6332
|
}
|
|
6333
6333
|
/**
|
|
6334
6334
|
* Applies the filter
|
|
@@ -6730,7 +6730,7 @@ class Zn {
|
|
|
6730
6730
|
*/
|
|
6731
6731
|
addColorTexture(t = 0, e) {
|
|
6732
6732
|
return this.colorTextures[t] = e || new j(null, {
|
|
6733
|
-
scaleMode:
|
|
6733
|
+
scaleMode: Wt.NEAREST,
|
|
6734
6734
|
resolution: 1,
|
|
6735
6735
|
mipmap: de.OFF,
|
|
6736
6736
|
width: this.width,
|
|
@@ -6743,7 +6743,7 @@ class Zn {
|
|
|
6743
6743
|
*/
|
|
6744
6744
|
addDepthTexture(t) {
|
|
6745
6745
|
return this.depthTexture = t || new j(null, {
|
|
6746
|
-
scaleMode:
|
|
6746
|
+
scaleMode: Wt.NEAREST,
|
|
6747
6747
|
resolution: 1,
|
|
6748
6748
|
width: this.width,
|
|
6749
6749
|
height: this.height,
|
|
@@ -8855,7 +8855,7 @@ Fl.extension = {
|
|
|
8855
8855
|
name: "textureGenerator"
|
|
8856
8856
|
};
|
|
8857
8857
|
k.add(Fl);
|
|
8858
|
-
const ze = new Y(),
|
|
8858
|
+
const ze = new Y(), Vi = new Y();
|
|
8859
8859
|
class Bl {
|
|
8860
8860
|
/**
|
|
8861
8861
|
* @param renderer - The renderer this System works for.
|
|
@@ -8878,7 +8878,7 @@ class Bl {
|
|
|
8878
8878
|
const s = this.renderer;
|
|
8879
8879
|
this.current = t;
|
|
8880
8880
|
let n, a, o;
|
|
8881
|
-
t ? (n = t.baseTexture, o = n.resolution, e || (ze.width = t.frame.width, ze.height = t.frame.height, e = ze), r || (
|
|
8881
|
+
t ? (n = t.baseTexture, o = n.resolution, e || (ze.width = t.frame.width, ze.height = t.frame.height, e = ze), r || (Vi.x = t.frame.x, Vi.y = t.frame.y, Vi.width = e.width, Vi.height = e.height, r = Vi), a = n.framebuffer) : (o = s.resolution, e || (ze.width = s._view.screen.width, ze.height = s._view.screen.height, e = ze), r || (r = ze, r.width = e.width, r.height = e.height));
|
|
8882
8882
|
const h = this.viewportFrame;
|
|
8883
8883
|
h.x = r.x * o, h.y = r.y * o, h.width = r.width * o, h.height = r.height * o, t || (h.y = s.view.height - (h.y + h.height)), h.ceil(), this.renderer.framebuffer.bind(a, h), this.renderer.projection.update(r, e, o, !a), t ? this.renderer.mask.setMaskStack(n.maskStack) : this.renderer.mask.setMaskStack(this.defaultMaskStack), this.sourceFrame.copyFrom(e), this.destinationFrame.copyFrom(r);
|
|
8884
8884
|
}
|
|
@@ -9095,12 +9095,12 @@ function Yp(i, t) {
|
|
|
9095
9095
|
for (let a = 0; a < r.length; a++) {
|
|
9096
9096
|
const o = r[a], h = i.uniforms[o.data.name], l = o.data.name;
|
|
9097
9097
|
let c = !1;
|
|
9098
|
-
for (let u = 0; u <
|
|
9099
|
-
const d =
|
|
9098
|
+
for (let u = 0; u < Pi.length; u++) {
|
|
9099
|
+
const d = Pi[u];
|
|
9100
9100
|
if (d.codeUbo && d.test(o.data, h)) {
|
|
9101
9101
|
n.push(
|
|
9102
9102
|
`offset = ${o.offset / 4};`,
|
|
9103
|
-
|
|
9103
|
+
Pi[u].codeUbo(o.data.name, h)
|
|
9104
9104
|
), c = !0;
|
|
9105
9105
|
break;
|
|
9106
9106
|
}
|
|
@@ -9562,7 +9562,7 @@ class sm extends fr {
|
|
|
9562
9562
|
// {
|
|
9563
9563
|
// }
|
|
9564
9564
|
}
|
|
9565
|
-
const
|
|
9565
|
+
const Ki = class Yr {
|
|
9566
9566
|
/** @param renderer - The renderer this System works for. */
|
|
9567
9567
|
constructor(t) {
|
|
9568
9568
|
this.renderer = t, this.count = 0, this.checkCount = 0, this.maxIdle = Yr.defaultMaxIdle, this.checkCountMax = Yr.defaultCheckCountMax, this.mode = Yr.defaultMode;
|
|
@@ -9606,24 +9606,24 @@ const qi = class Yr {
|
|
|
9606
9606
|
this.renderer = null;
|
|
9607
9607
|
}
|
|
9608
9608
|
};
|
|
9609
|
-
|
|
9609
|
+
Ki.defaultMode = Aa.AUTO, /**
|
|
9610
9610
|
* Default maximum idle frames before a texture is destroyed by garbage collection.
|
|
9611
9611
|
* @static
|
|
9612
9612
|
* @default 3600
|
|
9613
9613
|
* @see PIXI.TextureGCSystem#maxIdle
|
|
9614
9614
|
*/
|
|
9615
|
-
|
|
9615
|
+
Ki.defaultMaxIdle = 60 * 60, /**
|
|
9616
9616
|
* Default frames between two garbage collections.
|
|
9617
9617
|
* @static
|
|
9618
9618
|
* @default 600
|
|
9619
9619
|
* @see PIXI.TextureGCSystem#checkCountMax
|
|
9620
9620
|
*/
|
|
9621
|
-
|
|
9622
|
-
|
|
9621
|
+
Ki.defaultCheckCountMax = 60 * 10, /** @ignore */
|
|
9622
|
+
Ki.extension = {
|
|
9623
9623
|
type: M.RendererSystem,
|
|
9624
9624
|
name: "textureGC"
|
|
9625
9625
|
};
|
|
9626
|
-
let Ze =
|
|
9626
|
+
let Ze = Ki;
|
|
9627
9627
|
k.add(Ze);
|
|
9628
9628
|
class dn {
|
|
9629
9629
|
constructor(t) {
|
|
@@ -9936,7 +9936,7 @@ class Nl {
|
|
|
9936
9936
|
const { gl: r } = this;
|
|
9937
9937
|
if (t = t.castToBaseTexture(), t._glTextures[this.CONTEXT_UID] && (this.unbind(t), r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture), t.off("dispose", this.destroyTexture, this), delete t._glTextures[this.CONTEXT_UID], !e)) {
|
|
9938
9938
|
const s = this.managedTextures.indexOf(t);
|
|
9939
|
-
s !== -1 &&
|
|
9939
|
+
s !== -1 && Ri(this.managedTextures, s, 1);
|
|
9940
9940
|
}
|
|
9941
9941
|
}
|
|
9942
9942
|
/**
|
|
@@ -9958,15 +9958,15 @@ class Nl {
|
|
|
9958
9958
|
setStyle(t, e) {
|
|
9959
9959
|
const r = this.gl;
|
|
9960
9960
|
if (e.mipmap && t.mipmap !== de.ON_MANUAL && r.generateMipmap(t.target), r.texParameteri(t.target, r.TEXTURE_WRAP_S, e.wrapMode), r.texParameteri(t.target, r.TEXTURE_WRAP_T, e.wrapMode), e.mipmap) {
|
|
9961
|
-
r.texParameteri(t.target, r.TEXTURE_MIN_FILTER, t.scaleMode ===
|
|
9961
|
+
r.texParameteri(t.target, r.TEXTURE_MIN_FILTER, t.scaleMode === Wt.LINEAR ? r.LINEAR_MIPMAP_LINEAR : r.NEAREST_MIPMAP_NEAREST);
|
|
9962
9962
|
const s = this.renderer.context.extensions.anisotropicFiltering;
|
|
9963
|
-
if (s && t.anisotropicLevel > 0 && t.scaleMode ===
|
|
9963
|
+
if (s && t.anisotropicLevel > 0 && t.scaleMode === Wt.LINEAR) {
|
|
9964
9964
|
const n = Math.min(t.anisotropicLevel, r.getParameter(s.MAX_TEXTURE_MAX_ANISOTROPY_EXT));
|
|
9965
9965
|
r.texParameterf(t.target, s.TEXTURE_MAX_ANISOTROPY_EXT, n);
|
|
9966
9966
|
}
|
|
9967
9967
|
} else
|
|
9968
|
-
r.texParameteri(t.target, r.TEXTURE_MIN_FILTER, t.scaleMode ===
|
|
9969
|
-
r.texParameteri(t.target, r.TEXTURE_MAG_FILTER, t.scaleMode ===
|
|
9968
|
+
r.texParameteri(t.target, r.TEXTURE_MIN_FILTER, t.scaleMode === Wt.LINEAR ? r.LINEAR : r.NEAREST);
|
|
9969
|
+
r.texParameteri(t.target, r.TEXTURE_MAG_FILTER, t.scaleMode === Wt.LINEAR ? r.LINEAR : r.NEAREST);
|
|
9970
9970
|
}
|
|
9971
9971
|
destroy() {
|
|
9972
9972
|
this.renderer = null;
|
|
@@ -11331,7 +11331,7 @@ class dm extends Wl {
|
|
|
11331
11331
|
* @param baseTexture
|
|
11332
11332
|
*/
|
|
11333
11333
|
bind(t) {
|
|
11334
|
-
super.bind(t), t.target =
|
|
11334
|
+
super.bind(t), t.target = Si.TEXTURE_2D_ARRAY;
|
|
11335
11335
|
}
|
|
11336
11336
|
/**
|
|
11337
11337
|
* Upload the resources to the GPU.
|
|
@@ -11394,7 +11394,7 @@ class fm extends Se {
|
|
|
11394
11394
|
return e && t instanceof e ? !0 : globalThis.HTMLCanvasElement && t instanceof HTMLCanvasElement;
|
|
11395
11395
|
}
|
|
11396
11396
|
}
|
|
11397
|
-
const jl = class
|
|
11397
|
+
const jl = class Zi extends Wl {
|
|
11398
11398
|
/**
|
|
11399
11399
|
* @param {Array<string|PIXI.Resource>} [source] - Collection of URLs or resources
|
|
11400
11400
|
* to use as the sides of the cube.
|
|
@@ -11407,11 +11407,11 @@ const jl = class Ki extends Wl {
|
|
|
11407
11407
|
*/
|
|
11408
11408
|
constructor(t, e) {
|
|
11409
11409
|
const { width: r, height: s, autoLoad: n, linkBaseTexture: a } = e || {};
|
|
11410
|
-
if (t && t.length !==
|
|
11410
|
+
if (t && t.length !== Zi.SIDES)
|
|
11411
11411
|
throw new Error(`Invalid length. Got ${t.length}, expected 6`);
|
|
11412
11412
|
super(6, { width: r, height: s });
|
|
11413
|
-
for (let o = 0; o <
|
|
11414
|
-
this.items[o].target =
|
|
11413
|
+
for (let o = 0; o < Zi.SIDES; o++)
|
|
11414
|
+
this.items[o].target = Si.TEXTURE_CUBE_MAP_POSITIVE_X + o;
|
|
11415
11415
|
this.linkBaseTexture = a !== !1, t && this.initFromArray(t, e), n !== !1 && this.load();
|
|
11416
11416
|
}
|
|
11417
11417
|
/**
|
|
@@ -11419,7 +11419,7 @@ const jl = class Ki extends Wl {
|
|
|
11419
11419
|
* @param baseTexture - parent base texture
|
|
11420
11420
|
*/
|
|
11421
11421
|
bind(t) {
|
|
11422
|
-
super.bind(t), t.target =
|
|
11422
|
+
super.bind(t), t.target = Si.TEXTURE_CUBE_MAP;
|
|
11423
11423
|
}
|
|
11424
11424
|
addBaseTextureAt(t, e, r) {
|
|
11425
11425
|
if (r === void 0 && (r = this.linkBaseTexture), !this.items[e])
|
|
@@ -11430,7 +11430,7 @@ const jl = class Ki extends Wl {
|
|
|
11430
11430
|
else
|
|
11431
11431
|
throw new Error("CubeResource does not support copying of renderTexture.");
|
|
11432
11432
|
else
|
|
11433
|
-
t.target =
|
|
11433
|
+
t.target = Si.TEXTURE_CUBE_MAP_POSITIVE_X + e, t.parentTextureArray = this.baseTexture, this.items[e] = t;
|
|
11434
11434
|
return t.valid && !this.valid && this.resize(t.realWidth, t.realHeight), this.items[e] = t, this;
|
|
11435
11435
|
}
|
|
11436
11436
|
/**
|
|
@@ -11442,7 +11442,7 @@ const jl = class Ki extends Wl {
|
|
|
11442
11442
|
*/
|
|
11443
11443
|
upload(t, e, r) {
|
|
11444
11444
|
const s = this.itemDirtyIds;
|
|
11445
|
-
for (let n = 0; n <
|
|
11445
|
+
for (let n = 0; n < Zi.SIDES; n++) {
|
|
11446
11446
|
const a = this.items[n];
|
|
11447
11447
|
(s[n] < a.dirtyId || r.dirtyId < e.dirtyId) && (a.valid && a.resource ? (a.resource.upload(t, a, r), s[n] = a.dirtyId) : s[n] < -1 && (t.gl.texImage2D(
|
|
11448
11448
|
a.target,
|
|
@@ -11464,7 +11464,7 @@ const jl = class Ki extends Wl {
|
|
|
11464
11464
|
* @returns {boolean} `true` if source is an array of 6 elements
|
|
11465
11465
|
*/
|
|
11466
11466
|
static test(t) {
|
|
11467
|
-
return Array.isArray(t) && t.length ===
|
|
11467
|
+
return Array.isArray(t) && t.length === Zi.SIDES;
|
|
11468
11468
|
}
|
|
11469
11469
|
};
|
|
11470
11470
|
jl.SIDES = 6;
|
|
@@ -12408,7 +12408,7 @@ const ql = class sa extends lt {
|
|
|
12408
12408
|
if (e < 0 || e >= this.children.length)
|
|
12409
12409
|
throw new Error(`The index ${e} supplied is out of bounds ${this.children.length}`);
|
|
12410
12410
|
const r = this.getChildIndex(t);
|
|
12411
|
-
|
|
12411
|
+
Ri(this.children, r, 1), this.children.splice(e, 0, t), this.onChildrenChange(e);
|
|
12412
12412
|
}
|
|
12413
12413
|
/**
|
|
12414
12414
|
* Returns the child at the specified index
|
|
@@ -12433,7 +12433,7 @@ const ql = class sa extends lt {
|
|
|
12433
12433
|
const e = t[0], r = this.children.indexOf(e);
|
|
12434
12434
|
if (r === -1)
|
|
12435
12435
|
return null;
|
|
12436
|
-
e.parent = null, e.transform._parentID = -1,
|
|
12436
|
+
e.parent = null, e.transform._parentID = -1, Ri(this.children, r, 1), this._boundsID++, this.onChildrenChange(r), e.emit("removed", this), this.emit("childRemoved", e, this, r);
|
|
12437
12437
|
}
|
|
12438
12438
|
return t[0];
|
|
12439
12439
|
}
|
|
@@ -12444,7 +12444,7 @@ const ql = class sa extends lt {
|
|
|
12444
12444
|
*/
|
|
12445
12445
|
removeChildAt(t) {
|
|
12446
12446
|
const e = this.getChildAt(t);
|
|
12447
|
-
return e.parent = null, e.transform._parentID = -1,
|
|
12447
|
+
return e.parent = null, e.transform._parentID = -1, Ri(this.children, t, 1), this._boundsID++, this.onChildrenChange(t), e.emit("removed", this), this.emit("childRemoved", e, this, t), e;
|
|
12448
12448
|
}
|
|
12449
12449
|
/**
|
|
12450
12450
|
* Removes all children from this container that are within the begin and end indexes.
|
|
@@ -12673,7 +12673,7 @@ Object.defineProperties(B, {
|
|
|
12673
12673
|
}
|
|
12674
12674
|
}
|
|
12675
12675
|
});
|
|
12676
|
-
const
|
|
12676
|
+
const Wi = new J(), vm = new Uint16Array([0, 1, 2, 0, 2, 3]);
|
|
12677
12677
|
class me extends bt {
|
|
12678
12678
|
/** @param texture - The texture for this sprite. */
|
|
12679
12679
|
constructor(t) {
|
|
@@ -12751,10 +12751,10 @@ class me extends bt {
|
|
|
12751
12751
|
* @returns The result of the test
|
|
12752
12752
|
*/
|
|
12753
12753
|
containsPoint(t) {
|
|
12754
|
-
this.worldTransform.applyInverse(t,
|
|
12754
|
+
this.worldTransform.applyInverse(t, Wi);
|
|
12755
12755
|
const e = this._texture.orig.width, r = this._texture.orig.height, s = -e * this.anchor.x;
|
|
12756
12756
|
let n = 0;
|
|
12757
|
-
return
|
|
12757
|
+
return Wi.x >= s && Wi.x < s + e && (n = -r * this.anchor.y, Wi.y >= n && Wi.y < n + r);
|
|
12758
12758
|
}
|
|
12759
12759
|
/**
|
|
12760
12760
|
* Destroys this sprite and optionally its texture and children.
|
|
@@ -14648,7 +14648,7 @@ class fs extends gr {
|
|
|
14648
14648
|
throw new Error("Method not implemented.");
|
|
14649
14649
|
}
|
|
14650
14650
|
}
|
|
14651
|
-
class
|
|
14651
|
+
class Xt extends fs {
|
|
14652
14652
|
constructor() {
|
|
14653
14653
|
super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1;
|
|
14654
14654
|
}
|
|
@@ -14661,14 +14661,14 @@ class zt extends fs {
|
|
|
14661
14661
|
throw new Error("getPredictedEvents is not supported!");
|
|
14662
14662
|
}
|
|
14663
14663
|
}
|
|
14664
|
-
class
|
|
14664
|
+
class Mi extends fs {
|
|
14665
14665
|
constructor() {
|
|
14666
14666
|
super(...arguments), this.DOM_DELTA_PIXEL = 0, this.DOM_DELTA_LINE = 1, this.DOM_DELTA_PAGE = 2;
|
|
14667
14667
|
}
|
|
14668
14668
|
}
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14669
|
+
Mi.DOM_DELTA_PIXEL = 0, /** Units specified in lines. */
|
|
14670
|
+
Mi.DOM_DELTA_LINE = 1, /** Units specified in pages. */
|
|
14671
|
+
Mi.DOM_DELTA_PAGE = 2;
|
|
14672
14672
|
const Um = 2048, Gm = new J(), pn = new J();
|
|
14673
14673
|
class Hm {
|
|
14674
14674
|
/**
|
|
@@ -14911,7 +14911,7 @@ class Hm {
|
|
|
14911
14911
|
* @param from
|
|
14912
14912
|
*/
|
|
14913
14913
|
mapPointerDown(t) {
|
|
14914
|
-
if (!(t instanceof
|
|
14914
|
+
if (!(t instanceof Xt)) {
|
|
14915
14915
|
console.warn("EventBoundary cannot map a non-pointer event as a pointer event");
|
|
14916
14916
|
return;
|
|
14917
14917
|
}
|
|
@@ -14934,7 +14934,7 @@ class Hm {
|
|
|
14934
14934
|
*/
|
|
14935
14935
|
mapPointerMove(t) {
|
|
14936
14936
|
var h, l;
|
|
14937
|
-
if (!(t instanceof
|
|
14937
|
+
if (!(t instanceof Xt)) {
|
|
14938
14938
|
console.warn("EventBoundary cannot map a non-pointer event as a pointer event");
|
|
14939
14939
|
return;
|
|
14940
14940
|
}
|
|
@@ -14977,7 +14977,7 @@ class Hm {
|
|
|
14977
14977
|
*/
|
|
14978
14978
|
mapPointerOver(t) {
|
|
14979
14979
|
var a;
|
|
14980
|
-
if (!(t instanceof
|
|
14980
|
+
if (!(t instanceof Xt)) {
|
|
14981
14981
|
console.warn("EventBoundary cannot map a non-pointer event as a pointer event");
|
|
14982
14982
|
return;
|
|
14983
14983
|
}
|
|
@@ -14995,7 +14995,7 @@ class Hm {
|
|
|
14995
14995
|
* @param from - The upstream `pointerout` event.
|
|
14996
14996
|
*/
|
|
14997
14997
|
mapPointerOut(t) {
|
|
14998
|
-
if (!(t instanceof
|
|
14998
|
+
if (!(t instanceof Xt)) {
|
|
14999
14999
|
console.warn("EventBoundary cannot map a non-pointer event as a pointer event");
|
|
15000
15000
|
return;
|
|
15001
15001
|
}
|
|
@@ -15021,7 +15021,7 @@ class Hm {
|
|
|
15021
15021
|
* @param from - The upstream `pointerup` event.
|
|
15022
15022
|
*/
|
|
15023
15023
|
mapPointerUp(t) {
|
|
15024
|
-
if (!(t instanceof
|
|
15024
|
+
if (!(t instanceof Xt)) {
|
|
15025
15025
|
console.warn("EventBoundary cannot map a non-pointer event as a pointer event");
|
|
15026
15026
|
return;
|
|
15027
15027
|
}
|
|
@@ -15076,7 +15076,7 @@ class Hm {
|
|
|
15076
15076
|
* @param from - The upstream `pointerupoutside` event.
|
|
15077
15077
|
*/
|
|
15078
15078
|
mapPointerUpOutside(t) {
|
|
15079
|
-
if (!(t instanceof
|
|
15079
|
+
if (!(t instanceof Xt)) {
|
|
15080
15080
|
console.warn("EventBoundary cannot map a non-pointer event as a pointer event");
|
|
15081
15081
|
return;
|
|
15082
15082
|
}
|
|
@@ -15094,7 +15094,7 @@ class Hm {
|
|
|
15094
15094
|
* @param from - The upstream `wheel` event.
|
|
15095
15095
|
*/
|
|
15096
15096
|
mapWheel(t) {
|
|
15097
|
-
if (!(t instanceof
|
|
15097
|
+
if (!(t instanceof Mi)) {
|
|
15098
15098
|
console.warn("EventBoundary cannot map a non-wheel event as a wheel event");
|
|
15099
15099
|
return;
|
|
15100
15100
|
}
|
|
@@ -15126,7 +15126,7 @@ class Hm {
|
|
|
15126
15126
|
* @param target - The target of the returned event.
|
|
15127
15127
|
*/
|
|
15128
15128
|
createPointerEvent(t, e, r) {
|
|
15129
|
-
const s = this.allocateEvent(
|
|
15129
|
+
const s = this.allocateEvent(Xt);
|
|
15130
15130
|
return this.copyPointerData(t, s), this.copyMouseData(t, s), this.copyData(t, s), s.nativeEvent = t.nativeEvent, s.originalEvent = t, s.target = r ?? this.hitTest(s.global.x, s.global.y) ?? this._hitElements[0], typeof e == "string" && (s.type = e), s;
|
|
15131
15131
|
}
|
|
15132
15132
|
/**
|
|
@@ -15136,7 +15136,7 @@ class Hm {
|
|
|
15136
15136
|
* @param from - The upstream wheel event.
|
|
15137
15137
|
*/
|
|
15138
15138
|
createWheelEvent(t) {
|
|
15139
|
-
const e = this.allocateEvent(
|
|
15139
|
+
const e = this.allocateEvent(Mi);
|
|
15140
15140
|
return this.copyWheelData(t, e), this.copyMouseData(t, e), this.copyData(t, e), e.nativeEvent = t.nativeEvent, e.originalEvent = t, e.target = this.hitTest(e.global.x, e.global.y), e;
|
|
15141
15141
|
}
|
|
15142
15142
|
/**
|
|
@@ -15147,7 +15147,7 @@ class Hm {
|
|
|
15147
15147
|
* @param [type=from.type] - The type of the returned event.
|
|
15148
15148
|
*/
|
|
15149
15149
|
clonePointerEvent(t, e) {
|
|
15150
|
-
const r = this.allocateEvent(
|
|
15150
|
+
const r = this.allocateEvent(Xt);
|
|
15151
15151
|
return r.nativeEvent = t.nativeEvent, r.originalEvent = t.originalEvent, this.copyPointerData(t, r), this.copyMouseData(t, r), this.copyData(t, r), r.target = t.target, r.path = t.composedPath().slice(), r.type = e ?? r.type, r;
|
|
15152
15152
|
}
|
|
15153
15153
|
/**
|
|
@@ -15181,7 +15181,7 @@ class Hm {
|
|
|
15181
15181
|
* @param to
|
|
15182
15182
|
*/
|
|
15183
15183
|
copyPointerData(t, e) {
|
|
15184
|
-
t instanceof
|
|
15184
|
+
t instanceof Xt && e instanceof Xt && (e.pointerId = t.pointerId, e.width = t.width, e.height = t.height, e.isPrimary = t.isPrimary, e.pointerType = t.pointerType, e.pressure = t.pressure, e.tangentialPressure = t.tangentialPressure, e.tiltX = t.tiltX, e.tiltY = t.tiltY, e.twist = t.twist);
|
|
15185
15185
|
}
|
|
15186
15186
|
/**
|
|
15187
15187
|
* Copies mouse {@link PIXI.FederatedMouseEvent} data from {@code from} to {@code to}.
|
|
@@ -15290,7 +15290,7 @@ const $m = 1, Xm = {
|
|
|
15290
15290
|
* @param {PIXI.Renderer} renderer
|
|
15291
15291
|
*/
|
|
15292
15292
|
constructor(t) {
|
|
15293
|
-
this.supportsTouchEvents = "ontouchstart" in globalThis, this.supportsPointerEvents = !!globalThis.PointerEvent, this.domElement = null, this.resolution = 1, this.renderer = t, this.rootBoundary = new Hm(null), Fe.init(this), this.autoPreventDefault = !0, this.eventsAdded = !1, this.rootPointerEvent = new
|
|
15293
|
+
this.supportsTouchEvents = "ontouchstart" in globalThis, this.supportsPointerEvents = !!globalThis.PointerEvent, this.domElement = null, this.resolution = 1, this.renderer = t, this.rootBoundary = new Hm(null), Fe.init(this), this.autoPreventDefault = !0, this.eventsAdded = !1, this.rootPointerEvent = new Xt(null), this.rootWheelEvent = new Mi(null), this.cursorStyles = {
|
|
15294
15294
|
default: "inherit",
|
|
15295
15295
|
pointer: "pointer"
|
|
15296
15296
|
}, this.features = new Proxy({ ...ha.defaultEventFeatures }, {
|
|
@@ -16210,7 +16210,7 @@ class Zl {
|
|
|
16210
16210
|
for (let d = 0; d < this.children.length; d++) {
|
|
16211
16211
|
const f = this.children[d];
|
|
16212
16212
|
if (f.renderId !== this.renderId)
|
|
16213
|
-
f._accessibleActive = !1,
|
|
16213
|
+
f._accessibleActive = !1, Ri(this.children, d, 1), this.div.removeChild(f._accessibleDiv), this.pool.push(f._accessibleDiv), f._accessibleDiv = null, d--;
|
|
16214
16214
|
else {
|
|
16215
16215
|
u = f._accessibleDiv;
|
|
16216
16216
|
let p = f.hitArea;
|
|
@@ -16479,7 +16479,7 @@ class Jm {
|
|
|
16479
16479
|
this._isActive !== t && (this._isActive = t, t && !this._isLoading && this._next());
|
|
16480
16480
|
}
|
|
16481
16481
|
}
|
|
16482
|
-
function
|
|
16482
|
+
function Gi(i, t) {
|
|
16483
16483
|
if (Array.isArray(t)) {
|
|
16484
16484
|
for (const e of t)
|
|
16485
16485
|
if (i.startsWith(`data:${e}`))
|
|
@@ -16492,7 +16492,7 @@ function Xe(i, t) {
|
|
|
16492
16492
|
const e = i.split("?")[0], r = xt.extname(e).toLowerCase();
|
|
16493
16493
|
return Array.isArray(t) ? t.includes(r) : r === t;
|
|
16494
16494
|
}
|
|
16495
|
-
const
|
|
16495
|
+
const Vt = (i, t, e = !1) => (Array.isArray(i) || (i = [i]), t ? i.map((r) => typeof r == "string" || e ? t(r) : r) : i), ua = (i, t) => {
|
|
16496
16496
|
const e = t.split("?")[1];
|
|
16497
16497
|
return e && (i += `?${e}`), i;
|
|
16498
16498
|
};
|
|
@@ -16545,7 +16545,7 @@ class eg {
|
|
|
16545
16545
|
* @param value - The value to store in the cache or from which cacheable assets will be derived.
|
|
16546
16546
|
*/
|
|
16547
16547
|
set(t, e) {
|
|
16548
|
-
const r =
|
|
16548
|
+
const r = Vt(t);
|
|
16549
16549
|
let s;
|
|
16550
16550
|
for (let o = 0; o < this.parsers.length; o++) {
|
|
16551
16551
|
const h = this.parsers[o];
|
|
@@ -16642,7 +16642,7 @@ class ig {
|
|
|
16642
16642
|
async load(t, e) {
|
|
16643
16643
|
this._parsersValidated || this._validateParsers();
|
|
16644
16644
|
let r = 0;
|
|
16645
|
-
const s = {}, n = ps(t), a =
|
|
16645
|
+
const s = {}, n = ps(t), a = Vt(t, (l) => ({
|
|
16646
16646
|
alias: [l],
|
|
16647
16647
|
src: l
|
|
16648
16648
|
})), o = a.length, h = a.map(async (l) => {
|
|
@@ -16670,7 +16670,7 @@ ${u}`);
|
|
|
16670
16670
|
* @param assetsToUnloadIn - urls that you want to unload, or a single one!
|
|
16671
16671
|
*/
|
|
16672
16672
|
async unload(t) {
|
|
16673
|
-
const e =
|
|
16673
|
+
const e = Vt(t, (r) => ({
|
|
16674
16674
|
alias: [r],
|
|
16675
16675
|
src: r
|
|
16676
16676
|
})).map(async (r) => {
|
|
@@ -16696,7 +16696,7 @@ const rg = ".json", sg = "application/json", ng = {
|
|
|
16696
16696
|
},
|
|
16697
16697
|
name: "loadJson",
|
|
16698
16698
|
test(i) {
|
|
16699
|
-
return
|
|
16699
|
+
return Gi(i, sg) || Xe(i, rg);
|
|
16700
16700
|
},
|
|
16701
16701
|
async load(i) {
|
|
16702
16702
|
return await (await B.ADAPTER.fetch(i)).json();
|
|
@@ -16710,7 +16710,7 @@ const ag = ".txt", og = "text/plain", hg = {
|
|
|
16710
16710
|
priority: Zt.Low
|
|
16711
16711
|
},
|
|
16712
16712
|
test(i) {
|
|
16713
|
-
return
|
|
16713
|
+
return Gi(i, og) || Xe(i, ag);
|
|
16714
16714
|
},
|
|
16715
16715
|
async load(i) {
|
|
16716
16716
|
return await (await B.ADAPTER.fetch(i)).text();
|
|
@@ -16757,7 +16757,7 @@ const gg = {
|
|
|
16757
16757
|
},
|
|
16758
16758
|
name: "loadWebFont",
|
|
16759
16759
|
test(i) {
|
|
16760
|
-
return
|
|
16760
|
+
return Gi(i, ug) || Xe(i, cg);
|
|
16761
16761
|
},
|
|
16762
16762
|
async load(i, t) {
|
|
16763
16763
|
var r, s, n;
|
|
@@ -16798,13 +16798,13 @@ const yg = `(function() {
|
|
|
16798
16798
|
});
|
|
16799
16799
|
})();
|
|
16800
16800
|
`;
|
|
16801
|
-
let
|
|
16801
|
+
let Fi = null, da = class {
|
|
16802
16802
|
constructor() {
|
|
16803
|
-
|
|
16803
|
+
Fi || (Fi = URL.createObjectURL(new Blob([yg], { type: "application/javascript" }))), this.worker = new Worker(Fi);
|
|
16804
16804
|
}
|
|
16805
16805
|
};
|
|
16806
16806
|
da.revokeObjectURL = function() {
|
|
16807
|
-
|
|
16807
|
+
Fi && (URL.revokeObjectURL(Fi), Fi = null);
|
|
16808
16808
|
};
|
|
16809
16809
|
const _g = `(function() {
|
|
16810
16810
|
"use strict";
|
|
@@ -16833,14 +16833,14 @@ const _g = `(function() {
|
|
|
16833
16833
|
};
|
|
16834
16834
|
})();
|
|
16835
16835
|
`;
|
|
16836
|
-
let
|
|
16836
|
+
let Bi = null;
|
|
16837
16837
|
class ec {
|
|
16838
16838
|
constructor() {
|
|
16839
|
-
|
|
16839
|
+
Bi || (Bi = URL.createObjectURL(new Blob([_g], { type: "application/javascript" }))), this.worker = new Worker(Bi);
|
|
16840
16840
|
}
|
|
16841
16841
|
}
|
|
16842
16842
|
ec.revokeObjectURL = function() {
|
|
16843
|
-
|
|
16843
|
+
Bi && (URL.revokeObjectURL(Bi), Bi = null);
|
|
16844
16844
|
};
|
|
16845
16845
|
let nh = 0, mn;
|
|
16846
16846
|
class vg {
|
|
@@ -16932,7 +16932,7 @@ const Rs = {
|
|
|
16932
16932
|
crossOrigin: "anonymous"
|
|
16933
16933
|
},
|
|
16934
16934
|
test(i) {
|
|
16935
|
-
return
|
|
16935
|
+
return Gi(i, bg) || Xe(i, xg);
|
|
16936
16936
|
},
|
|
16937
16937
|
async load(i, t, e) {
|
|
16938
16938
|
var o;
|
|
@@ -16959,7 +16959,7 @@ const wg = ".svg", Eg = "image/svg+xml", Ag = {
|
|
|
16959
16959
|
},
|
|
16960
16960
|
name: "loadSVG",
|
|
16961
16961
|
test(i) {
|
|
16962
|
-
return
|
|
16962
|
+
return Gi(i, Eg) || Xe(i, wg);
|
|
16963
16963
|
},
|
|
16964
16964
|
async testParse(i) {
|
|
16965
16965
|
return ea.test(i);
|
|
@@ -16998,7 +16998,7 @@ const Sg = [".mp4", ".m4v", ".webm", ".ogv"], Cg = [
|
|
|
16998
16998
|
defaultPlaysinline: !0
|
|
16999
16999
|
},
|
|
17000
17000
|
test(i) {
|
|
17001
|
-
return
|
|
17001
|
+
return Gi(i, Cg) || Xe(i, Sg);
|
|
17002
17002
|
},
|
|
17003
17003
|
async load(i, t, e) {
|
|
17004
17004
|
var a;
|
|
@@ -17164,7 +17164,7 @@ class Rg {
|
|
|
17164
17164
|
*/
|
|
17165
17165
|
getAlias(t) {
|
|
17166
17166
|
const { alias: e, name: r, src: s, srcs: n } = t;
|
|
17167
|
-
return
|
|
17167
|
+
return Vt(
|
|
17168
17168
|
e || r || s || n,
|
|
17169
17169
|
(a) => typeof a == "string" ? a : Array.isArray(a) ? a.map((o) => (o == null ? void 0 : o.src) ?? (o == null ? void 0 : o.srcs) ?? o) : a != null && a.src || a != null && a.srcs ? a.src ?? a.srcs : a,
|
|
17170
17170
|
!0
|
|
@@ -17241,10 +17241,10 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
|
|
|
17241
17241
|
let o;
|
|
17242
17242
|
o = (h) => {
|
|
17243
17243
|
this.hasKey(h) && console.warn(`[Resolver] already has key: ${h} overwriting`);
|
|
17244
|
-
},
|
|
17244
|
+
}, Vt(a).forEach((h) => {
|
|
17245
17245
|
const { src: l, srcs: c } = h;
|
|
17246
17246
|
let { data: u, format: d, loadParser: f } = h;
|
|
17247
|
-
const p =
|
|
17247
|
+
const p = Vt(l || c).map((_) => typeof _ == "string" ? tg(_) : Array.isArray(_) ? _ : [_]), m = this.getAlias(h);
|
|
17248
17248
|
Array.isArray(m) ? m.forEach(o) : o(m);
|
|
17249
17249
|
const g = [];
|
|
17250
17250
|
p.forEach((_) => {
|
|
@@ -17322,7 +17322,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
|
|
|
17322
17322
|
*/
|
|
17323
17323
|
resolveBundle(t) {
|
|
17324
17324
|
const e = ps(t);
|
|
17325
|
-
t =
|
|
17325
|
+
t = Vt(t);
|
|
17326
17326
|
const r = {};
|
|
17327
17327
|
return t.forEach((s) => {
|
|
17328
17328
|
const n = this._bundles[s];
|
|
@@ -17353,7 +17353,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
|
|
|
17353
17353
|
}
|
|
17354
17354
|
resolve(t) {
|
|
17355
17355
|
const e = ps(t);
|
|
17356
|
-
t =
|
|
17356
|
+
t = Vt(t);
|
|
17357
17357
|
const r = {};
|
|
17358
17358
|
return t.forEach((s) => {
|
|
17359
17359
|
if (!this._resolverHash[s])
|
|
@@ -17454,7 +17454,7 @@ class Pg {
|
|
|
17454
17454
|
}
|
|
17455
17455
|
async load(t, e) {
|
|
17456
17456
|
this._initialized || await this.init();
|
|
17457
|
-
const r = ps(t), s =
|
|
17457
|
+
const r = ps(t), s = Vt(t).map((o) => {
|
|
17458
17458
|
if (typeof o != "string") {
|
|
17459
17459
|
const h = this.resolver.getAlias(o);
|
|
17460
17460
|
return h.some((l) => !this.resolver.hasKey(l)) && this.add(o), Array.isArray(h) ? h[0] : h;
|
|
@@ -17659,7 +17659,7 @@ class Pg {
|
|
|
17659
17659
|
*/
|
|
17660
17660
|
async unload(t) {
|
|
17661
17661
|
this._initialized || await this.init();
|
|
17662
|
-
const e =
|
|
17662
|
+
const e = Vt(t).map((s) => typeof s != "string" ? s.src : s), r = this.resolver.resolve(e);
|
|
17663
17663
|
await this._unloadFromResolved(r);
|
|
17664
17664
|
}
|
|
17665
17665
|
/**
|
|
@@ -17684,7 +17684,7 @@ class Pg {
|
|
|
17684
17684
|
* @param bundleIds - the bundle id or ids to unload
|
|
17685
17685
|
*/
|
|
17686
17686
|
async unloadBundle(t) {
|
|
17687
|
-
this._initialized || await this.init(), t =
|
|
17687
|
+
this._initialized || await this.init(), t = Vt(t);
|
|
17688
17688
|
const e = this.resolver.resolveBundle(t), r = Object.keys(e).map((s) => this._unloadFromResolved(e[s]));
|
|
17689
17689
|
await Promise.all(r);
|
|
17690
17690
|
}
|
|
@@ -17736,8 +17736,8 @@ class Pg {
|
|
|
17736
17736
|
});
|
|
17737
17737
|
}
|
|
17738
17738
|
}
|
|
17739
|
-
const
|
|
17740
|
-
k.handleByList(M.LoadParser,
|
|
17739
|
+
const wi = new Pg();
|
|
17740
|
+
k.handleByList(M.LoadParser, wi.loader.parsers).handleByList(M.ResolveParser, wi.resolver.parsers).handleByList(M.CacheParser, wi.cache.parsers).handleByList(M.DetectionParser, wi.detections);
|
|
17741
17741
|
const Mg = {
|
|
17742
17742
|
extension: M.CacheParser,
|
|
17743
17743
|
test: (i) => Array.isArray(i) && i.every((t) => t instanceof L),
|
|
@@ -18160,7 +18160,7 @@ function s0(i) {
|
|
|
18160
18160
|
}
|
|
18161
18161
|
throw o & Yg ? new Error("DDSParser does not support uncompressed texture data.") : o & qg ? new Error("DDSParser does not supported YUV uncompressed texture data.") : o & Kg ? new Error("DDSParser does not support single-channel (lumninance) texture data!") : o & Wg ? new Error("DDSParser does not support single-channel (alpha) texture data!") : new Error("DDSParser failed to load a texture file due to an unknown reason!");
|
|
18162
18162
|
}
|
|
18163
|
-
const ch = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], n0 = 67305985,
|
|
18163
|
+
const ch = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], n0 = 67305985, Ht = {
|
|
18164
18164
|
FILE_IDENTIFIER: 0,
|
|
18165
18165
|
ENDIANNESS: 12,
|
|
18166
18166
|
GL_TYPE: 16,
|
|
@@ -18199,7 +18199,7 @@ function h0(i, t, e = !1) {
|
|
|
18199
18199
|
const r = new DataView(t);
|
|
18200
18200
|
if (!l0(i, r))
|
|
18201
18201
|
return null;
|
|
18202
|
-
const s = r.getUint32(
|
|
18202
|
+
const s = r.getUint32(Ht.ENDIANNESS, !0) === n0, n = r.getUint32(Ht.GL_TYPE, s), a = r.getUint32(Ht.GL_FORMAT, s), o = r.getUint32(Ht.GL_INTERNAL_FORMAT, s), h = r.getUint32(Ht.PIXEL_WIDTH, s), l = r.getUint32(Ht.PIXEL_HEIGHT, s) || 1, c = r.getUint32(Ht.PIXEL_DEPTH, s) || 1, u = r.getUint32(Ht.NUMBER_OF_ARRAY_ELEMENTS, s) || 1, d = r.getUint32(Ht.NUMBER_OF_FACES, s), f = r.getUint32(Ht.NUMBER_OF_MIPMAP_LEVELS, s), p = r.getUint32(Ht.BYTES_OF_KEY_VALUE_DATA, s);
|
|
18203
18203
|
if (l === 0 || c !== 1)
|
|
18204
18204
|
throw new Error("Only 2D textures are supported");
|
|
18205
18205
|
if (d !== 1)
|
|
@@ -18692,8 +18692,8 @@ const sc = {
|
|
|
18692
18692
|
gs.triangulate(i, t);
|
|
18693
18693
|
}
|
|
18694
18694
|
};
|
|
18695
|
-
var
|
|
18696
|
-
const
|
|
18695
|
+
var Nt = /* @__PURE__ */ ((i) => (i.MITER = "miter", i.BEVEL = "bevel", i.ROUND = "round", i))(Nt || {}), Oe = /* @__PURE__ */ ((i) => (i.BUTT = "butt", i.ROUND = "round", i.SQUARE = "square", i))(Oe || {});
|
|
18696
|
+
const Ni = {
|
|
18697
18697
|
adaptive: !0,
|
|
18698
18698
|
maxLength: 10,
|
|
18699
18699
|
minSegments: 8,
|
|
@@ -18749,7 +18749,7 @@ class fh {
|
|
|
18749
18749
|
* @param points - Collection of points to add to
|
|
18750
18750
|
*/
|
|
18751
18751
|
static arc(t, e, r, s, n, a, o, h, l) {
|
|
18752
|
-
const c = o - a, u =
|
|
18752
|
+
const c = o - a, u = Ni._segmentsCount(
|
|
18753
18753
|
Math.abs(c) * n,
|
|
18754
18754
|
Math.ceil(Math.abs(c) / os) * 40
|
|
18755
18755
|
), d = c / (u * 2), f = d * 2, p = Math.cos(d), m = Math.sin(d), g = u - 1, _ = g % 1 / g;
|
|
@@ -18825,7 +18825,7 @@ class Na {
|
|
|
18825
18825
|
static curveTo(t, e, r, s, n, a, o) {
|
|
18826
18826
|
const h = o[o.length - 2], l = o[o.length - 1];
|
|
18827
18827
|
o.length -= 2;
|
|
18828
|
-
const c =
|
|
18828
|
+
const c = Ni._segmentsCount(
|
|
18829
18829
|
Na.curveLength(h, l, t, e, r, s, n, a)
|
|
18830
18830
|
);
|
|
18831
18831
|
let u = 0, d = 0, f = 0, p = 0, m = 0;
|
|
@@ -18940,7 +18940,7 @@ function b0(i, t) {
|
|
|
18940
18940
|
v - w * b,
|
|
18941
18941
|
y + E * S,
|
|
18942
18942
|
v + w * S
|
|
18943
|
-
), Q >= 0 && (n.join ===
|
|
18943
|
+
), Q >= 0 && (n.join === Nt.ROUND ? d += Ve(
|
|
18944
18944
|
y,
|
|
18945
18945
|
v,
|
|
18946
18946
|
y - E * b,
|
|
@@ -18957,11 +18957,11 @@ function b0(i, t) {
|
|
|
18957
18957
|
));
|
|
18958
18958
|
continue;
|
|
18959
18959
|
}
|
|
18960
|
-
const Tt = (-E + _) * (-w + v) - (-E + y) * (-w + x), pt = (-R + T) * (-N + v) - (-R + y) * (-N + C), wt = (V * pt - I * Tt) / et, Rt = (P * Tt - st * pt) / et, Dt = (wt - y) * (wt - y) + (Rt - v) * (Rt - v), St = y + (wt - y) * b, nt = v + (Rt - v) * b, mt = y - (wt - y) * S, yt = v - (Rt - v) * S, Qt = Math.min(V * V + st * st, I * I + P * P), Jt = it ? b : S,
|
|
18960
|
+
const Tt = (-E + _) * (-w + v) - (-E + y) * (-w + x), pt = (-R + T) * (-N + v) - (-R + y) * (-N + C), wt = (V * pt - I * Tt) / et, Rt = (P * Tt - st * pt) / et, Dt = (wt - y) * (wt - y) + (Rt - v) * (Rt - v), St = y + (wt - y) * b, nt = v + (Rt - v) * b, mt = y - (wt - y) * S, yt = v - (Rt - v) * S, Qt = Math.min(V * V + st * st, I * I + P * P), Jt = it ? b : S, Hi = Qt + Jt * Jt * m, Rc = Dt <= Hi;
|
|
18961
18961
|
let _r = n.join;
|
|
18962
|
-
if (_r ===
|
|
18962
|
+
if (_r === Nt.MITER && Dt / m > g && (_r = Nt.BEVEL), Rc)
|
|
18963
18963
|
switch (_r) {
|
|
18964
|
-
case
|
|
18964
|
+
case Nt.MITER: {
|
|
18965
18965
|
c.push(
|
|
18966
18966
|
St,
|
|
18967
18967
|
nt,
|
|
@@ -18970,7 +18970,7 @@ function b0(i, t) {
|
|
|
18970
18970
|
);
|
|
18971
18971
|
break;
|
|
18972
18972
|
}
|
|
18973
|
-
case
|
|
18973
|
+
case Nt.BEVEL: {
|
|
18974
18974
|
it ? c.push(
|
|
18975
18975
|
St,
|
|
18976
18976
|
nt,
|
|
@@ -18998,7 +18998,7 @@ function b0(i, t) {
|
|
|
18998
18998
|
), d += 2;
|
|
18999
18999
|
break;
|
|
19000
19000
|
}
|
|
19001
|
-
case
|
|
19001
|
+
case Nt.ROUND: {
|
|
19002
19002
|
it ? (c.push(
|
|
19003
19003
|
St,
|
|
19004
19004
|
nt,
|
|
@@ -19049,7 +19049,7 @@ function b0(i, t) {
|
|
|
19049
19049
|
y + E * S,
|
|
19050
19050
|
v + w * S
|
|
19051
19051
|
), _r) {
|
|
19052
|
-
case
|
|
19052
|
+
case Nt.MITER: {
|
|
19053
19053
|
it ? c.push(
|
|
19054
19054
|
mt,
|
|
19055
19055
|
yt,
|
|
@@ -19065,7 +19065,7 @@ function b0(i, t) {
|
|
|
19065
19065
|
), d += 2;
|
|
19066
19066
|
break;
|
|
19067
19067
|
}
|
|
19068
|
-
case
|
|
19068
|
+
case Nt.ROUND: {
|
|
19069
19069
|
it ? d += Ve(
|
|
19070
19070
|
y,
|
|
19071
19071
|
v,
|
|
@@ -19112,7 +19112,7 @@ function b0(i, t) {
|
|
|
19112
19112
|
c,
|
|
19113
19113
|
!1
|
|
19114
19114
|
) + 2 : n.cap === Oe.SQUARE && (d += ph(y, v, E, w, b, S, !1, c)));
|
|
19115
|
-
const G = t.indices, W =
|
|
19115
|
+
const G = t.indices, W = Ni.epsilon * Ni.epsilon;
|
|
19116
19116
|
for (let X = f; X < d + f - 2; ++X)
|
|
19117
19117
|
_ = c[X * 2], x = c[X * 2 + 1], y = c[(X + 1) * 2], v = c[(X + 1) * 2 + 1], T = c[(X + 2) * 2], C = c[(X + 2) * 2 + 1], !(Math.abs(_ * (v - C) + y * (C - x) + T * (x - v)) < W) && G.push(X, X + 1, X + 2);
|
|
19118
19118
|
}
|
|
@@ -19159,7 +19159,7 @@ class ka {
|
|
|
19159
19159
|
* @param points - Points to add segments to.
|
|
19160
19160
|
*/
|
|
19161
19161
|
static curveTo(t, e, r, s, n) {
|
|
19162
|
-
const a = n[n.length - 2], o = n[n.length - 1], h =
|
|
19162
|
+
const a = n[n.length - 2], o = n[n.length - 1], h = Ni._segmentsCount(
|
|
19163
19163
|
ka.curveLength(a, o, t, e, r, s)
|
|
19164
19164
|
);
|
|
19165
19165
|
let l = 0, c = 0;
|
|
@@ -19534,7 +19534,7 @@ class Ps {
|
|
|
19534
19534
|
}
|
|
19535
19535
|
class Ua extends Ps {
|
|
19536
19536
|
constructor() {
|
|
19537
|
-
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Oe.BUTT, this.join =
|
|
19537
|
+
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Oe.BUTT, this.join = Nt.MITER, this.miterLimit = 10;
|
|
19538
19538
|
}
|
|
19539
19539
|
/** Clones the object. */
|
|
19540
19540
|
clone() {
|
|
@@ -19543,7 +19543,7 @@ class Ua extends Ps {
|
|
|
19543
19543
|
}
|
|
19544
19544
|
/** Reset the line style to default. */
|
|
19545
19545
|
reset() {
|
|
19546
|
-
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = Oe.BUTT, this.join =
|
|
19546
|
+
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = Oe.BUTT, this.join = Nt.MITER, this.miterLimit = 10;
|
|
19547
19547
|
}
|
|
19548
19548
|
}
|
|
19549
19549
|
const _n = {}, pa = class Zr extends bt {
|
|
@@ -19638,7 +19638,7 @@ const _n = {}, pa = class Zr extends bt {
|
|
|
19638
19638
|
alignment: 0.5,
|
|
19639
19639
|
native: !1,
|
|
19640
19640
|
cap: Oe.BUTT,
|
|
19641
|
-
join:
|
|
19641
|
+
join: Nt.MITER,
|
|
19642
19642
|
miterLimit: 10
|
|
19643
19643
|
};
|
|
19644
19644
|
t = Object.assign(e, t), this.normalizeColor(t), this.currentPath && this.startPoly();
|
|
@@ -20088,7 +20088,7 @@ const _n = {}, pa = class Zr extends bt {
|
|
|
20088
20088
|
this._geometry.refCount--, this._geometry.refCount === 0 && this._geometry.dispose(), this._matrix = null, this.currentPath = null, this._lineStyle.destroy(), this._lineStyle = null, this._fillStyle.destroy(), this._fillStyle = null, this._geometry = null, this.shader = null, this.vertexData = null, this.batches.length = 0, this.batches = null, super.destroy(t);
|
|
20089
20089
|
}
|
|
20090
20090
|
};
|
|
20091
|
-
pa.curves =
|
|
20091
|
+
pa.curves = Ni, /**
|
|
20092
20092
|
* Temporary point to use for containsPoint.
|
|
20093
20093
|
* @private
|
|
20094
20094
|
*/
|
|
@@ -23143,7 +23143,7 @@ const Th = [], wh = [], Eh = [], ey = class xc extends bt {
|
|
|
23143
23143
|
prevSpaces: 0,
|
|
23144
23144
|
position: new J()
|
|
23145
23145
|
};
|
|
23146
|
-
W.texture = G.texture, W.line = m, W.charCode = S, W.position.x = Math.round(s.x + G.xOffset + this._letterSpacing / 2), W.position.y = Math.round(s.y + G.yOffset), W.prevSpaces = v, n.push(W), f = W.position.x + Math.max(G.xAdvance - G.xOffset, G.texture.orig.width), s.x += G.xAdvance + this._letterSpacing, y = Math.max(y, G.yOffset + G.texture.height), d = S, g !== -1 && c > 0 && s.x > c && (++x,
|
|
23146
|
+
W.texture = G.texture, W.line = m, W.charCode = S, W.position.x = Math.round(s.x + G.xOffset + this._letterSpacing / 2), W.position.y = Math.round(s.y + G.yOffset), W.prevSpaces = v, n.push(W), f = W.position.x + Math.max(G.xAdvance - G.xOffset, G.texture.orig.width), s.x += G.xAdvance + this._letterSpacing, y = Math.max(y, G.yOffset + G.texture.height), d = S, g !== -1 && c > 0 && s.x > c && (++x, Ri(n, 1 + g - x, 1 + O - g), O = g, g = -1, a.push(_), o.push(n.length > 0 ? n[n.length - 1].prevSpaces : 0), p = Math.max(p, _), m++, s.x = 0, s.y += t.lineHeight, d = null, v = 0);
|
|
23147
23147
|
}
|
|
23148
23148
|
const T = l[l.length - 1];
|
|
23149
23149
|
T !== "\r" && T !== `
|
|
@@ -24221,15 +24221,15 @@ function my(i, t, e) {
|
|
|
24221
24221
|
};
|
|
24222
24222
|
}
|
|
24223
24223
|
function Ch(i, t, e, r) {
|
|
24224
|
-
var s = [
|
|
24224
|
+
var s = [jt(Math.round(i).toString(16)), jt(Math.round(t).toString(16)), jt(Math.round(e).toString(16))];
|
|
24225
24225
|
return r && s[0].charAt(0) == s[0].charAt(1) && s[1].charAt(0) == s[1].charAt(1) && s[2].charAt(0) == s[2].charAt(1) ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) : s.join("");
|
|
24226
24226
|
}
|
|
24227
24227
|
function gy(i, t, e, r, s) {
|
|
24228
|
-
var n = [
|
|
24228
|
+
var n = [jt(Math.round(i).toString(16)), jt(Math.round(t).toString(16)), jt(Math.round(e).toString(16)), jt(Tc(r))];
|
|
24229
24229
|
return s && n[0].charAt(0) == n[0].charAt(1) && n[1].charAt(0) == n[1].charAt(1) && n[2].charAt(0) == n[2].charAt(1) && n[3].charAt(0) == n[3].charAt(1) ? n[0].charAt(0) + n[1].charAt(0) + n[2].charAt(0) + n[3].charAt(0) : n.join("");
|
|
24230
24230
|
}
|
|
24231
24231
|
function Ih(i, t, e, r) {
|
|
24232
|
-
var s = [
|
|
24232
|
+
var s = [jt(Tc(r)), jt(Math.round(i).toString(16)), jt(Math.round(t).toString(16)), jt(Math.round(e).toString(16))];
|
|
24233
24233
|
return s.join("");
|
|
24234
24234
|
}
|
|
24235
24235
|
$.equals = function(i, t) {
|
|
@@ -24535,7 +24535,7 @@ function Py(i) {
|
|
|
24535
24535
|
function My(i) {
|
|
24536
24536
|
return typeof i == "string" && i.indexOf("%") != -1;
|
|
24537
24537
|
}
|
|
24538
|
-
function
|
|
24538
|
+
function jt(i) {
|
|
24539
24539
|
return i.length == 1 ? "0" + i : "" + i;
|
|
24540
24540
|
}
|
|
24541
24541
|
function er(i) {
|
|
@@ -24547,7 +24547,7 @@ function Tc(i) {
|
|
|
24547
24547
|
function Ph(i) {
|
|
24548
24548
|
return Lt(i) / 255;
|
|
24549
24549
|
}
|
|
24550
|
-
var
|
|
24550
|
+
var zt = function() {
|
|
24551
24551
|
var i = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", e = "(?:" + t + ")|(?:" + i + ")", r = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?", s = "[\\s|\\(]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")[,|\\s]+(" + e + ")\\s*\\)?";
|
|
24552
24552
|
return {
|
|
24553
24553
|
CSS_UNIT: new RegExp(e),
|
|
@@ -24564,7 +24564,7 @@ var Vt = function() {
|
|
|
24564
24564
|
};
|
|
24565
24565
|
}();
|
|
24566
24566
|
function _e(i) {
|
|
24567
|
-
return !!
|
|
24567
|
+
return !!zt.CSS_UNIT.exec(i);
|
|
24568
24568
|
}
|
|
24569
24569
|
function Fy(i) {
|
|
24570
24570
|
i = i.replace(cy, "").replace(uy, "").toLowerCase();
|
|
@@ -24580,51 +24580,51 @@ function Fy(i) {
|
|
|
24580
24580
|
format: "name"
|
|
24581
24581
|
};
|
|
24582
24582
|
var e;
|
|
24583
|
-
return (e =
|
|
24583
|
+
return (e = zt.rgb.exec(i)) ? {
|
|
24584
24584
|
r: e[1],
|
|
24585
24585
|
g: e[2],
|
|
24586
24586
|
b: e[3]
|
|
24587
|
-
} : (e =
|
|
24587
|
+
} : (e = zt.rgba.exec(i)) ? {
|
|
24588
24588
|
r: e[1],
|
|
24589
24589
|
g: e[2],
|
|
24590
24590
|
b: e[3],
|
|
24591
24591
|
a: e[4]
|
|
24592
|
-
} : (e =
|
|
24592
|
+
} : (e = zt.hsl.exec(i)) ? {
|
|
24593
24593
|
h: e[1],
|
|
24594
24594
|
s: e[2],
|
|
24595
24595
|
l: e[3]
|
|
24596
|
-
} : (e =
|
|
24596
|
+
} : (e = zt.hsla.exec(i)) ? {
|
|
24597
24597
|
h: e[1],
|
|
24598
24598
|
s: e[2],
|
|
24599
24599
|
l: e[3],
|
|
24600
24600
|
a: e[4]
|
|
24601
|
-
} : (e =
|
|
24601
|
+
} : (e = zt.hsv.exec(i)) ? {
|
|
24602
24602
|
h: e[1],
|
|
24603
24603
|
s: e[2],
|
|
24604
24604
|
v: e[3]
|
|
24605
|
-
} : (e =
|
|
24605
|
+
} : (e = zt.hsva.exec(i)) ? {
|
|
24606
24606
|
h: e[1],
|
|
24607
24607
|
s: e[2],
|
|
24608
24608
|
v: e[3],
|
|
24609
24609
|
a: e[4]
|
|
24610
|
-
} : (e =
|
|
24610
|
+
} : (e = zt.hex8.exec(i)) ? {
|
|
24611
24611
|
r: Lt(e[1]),
|
|
24612
24612
|
g: Lt(e[2]),
|
|
24613
24613
|
b: Lt(e[3]),
|
|
24614
24614
|
a: Ph(e[4]),
|
|
24615
24615
|
format: t ? "name" : "hex8"
|
|
24616
|
-
} : (e =
|
|
24616
|
+
} : (e = zt.hex6.exec(i)) ? {
|
|
24617
24617
|
r: Lt(e[1]),
|
|
24618
24618
|
g: Lt(e[2]),
|
|
24619
24619
|
b: Lt(e[3]),
|
|
24620
24620
|
format: t ? "name" : "hex"
|
|
24621
|
-
} : (e =
|
|
24621
|
+
} : (e = zt.hex4.exec(i)) ? {
|
|
24622
24622
|
r: Lt(e[1] + "" + e[1]),
|
|
24623
24623
|
g: Lt(e[2] + "" + e[2]),
|
|
24624
24624
|
b: Lt(e[3] + "" + e[3]),
|
|
24625
24625
|
a: Ph(e[4] + "" + e[4]),
|
|
24626
24626
|
format: t ? "name" : "hex8"
|
|
24627
|
-
} : (e =
|
|
24627
|
+
} : (e = zt.hex3.exec(i)) ? {
|
|
24628
24628
|
r: Lt(e[1] + "" + e[1]),
|
|
24629
24629
|
g: Lt(e[2] + "" + e[2]),
|
|
24630
24630
|
b: Lt(e[3] + "" + e[3]),
|
|
@@ -24817,18 +24817,18 @@ var hr = Object.freeze({
|
|
|
24817
24817
|
return !0;
|
|
24818
24818
|
}, i;
|
|
24819
24819
|
}()
|
|
24820
|
-
),
|
|
24820
|
+
), Ei = {
|
|
24821
24821
|
Linear: function(i, t) {
|
|
24822
|
-
var e = i.length - 1, r = e * t, s = Math.floor(r), n =
|
|
24822
|
+
var e = i.length - 1, r = e * t, s = Math.floor(r), n = Ei.Utils.Linear;
|
|
24823
24823
|
return t < 0 ? n(i[0], i[1], r) : t > 1 ? n(i[e], i[e - 1], e - r) : n(i[s], i[s + 1 > e ? e : s + 1], r - s);
|
|
24824
24824
|
},
|
|
24825
24825
|
Bezier: function(i, t) {
|
|
24826
|
-
for (var e = 0, r = i.length - 1, s = Math.pow, n =
|
|
24826
|
+
for (var e = 0, r = i.length - 1, s = Math.pow, n = Ei.Utils.Bernstein, a = 0; a <= r; a++)
|
|
24827
24827
|
e += s(1 - t, r - a) * s(t, a) * i[a] * n(r, a);
|
|
24828
24828
|
return e;
|
|
24829
24829
|
},
|
|
24830
24830
|
CatmullRom: function(i, t) {
|
|
24831
|
-
var e = i.length - 1, r = e * t, s = Math.floor(r), n =
|
|
24831
|
+
var e = i.length - 1, r = e * t, s = Math.floor(r), n = Ei.Utils.CatmullRom;
|
|
24832
24832
|
return i[0] === i[e] ? (t < 0 && (s = Math.floor(r = e * (1 + t))), n(i[(s - 1 + e) % e], i[s], i[(s + 1) % e], i[(s + 2) % e], r - s)) : t < 0 ? i[0] - (n(i[0], i[0], i[1], i[1], -r) - i[0]) : t > 1 ? i[e] - (n(i[e], i[e], i[e - 1], i[e - 1], r - e) - i[e]) : n(i[s ? s - 1 : 0], i[s], i[e < s + 1 ? e : s + 1], i[e < s + 2 ? e : s + 2], r - s);
|
|
24833
24833
|
},
|
|
24834
24834
|
Utils: {
|
|
@@ -24836,7 +24836,7 @@ var hr = Object.freeze({
|
|
|
24836
24836
|
return (t - i) * e + i;
|
|
24837
24837
|
},
|
|
24838
24838
|
Bernstein: function(i, t) {
|
|
24839
|
-
var e =
|
|
24839
|
+
var e = Ei.Utils.Factorial;
|
|
24840
24840
|
return e(i) / e(t) / e(i - t);
|
|
24841
24841
|
},
|
|
24842
24842
|
Factorial: /* @__PURE__ */ function() {
|
|
@@ -24864,11 +24864,11 @@ var hr = Object.freeze({
|
|
|
24864
24864
|
return i._nextId++;
|
|
24865
24865
|
}, i._nextId = 0, i;
|
|
24866
24866
|
}()
|
|
24867
|
-
), wa = new Dy(),
|
|
24867
|
+
), wa = new Dy(), Ai = (
|
|
24868
24868
|
/** @class */
|
|
24869
24869
|
function() {
|
|
24870
24870
|
function i(t, e) {
|
|
24871
|
-
e === void 0 && (e = wa), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = hr.Linear.None, this._interpolationFunction =
|
|
24871
|
+
e === void 0 && (e = wa), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = hr.Linear.None, this._interpolationFunction = Ei.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = Oy.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
24872
24872
|
}
|
|
24873
24873
|
return i.prototype.getId = function() {
|
|
24874
24874
|
return this._id;
|
|
@@ -24967,7 +24967,7 @@ var hr = Object.freeze({
|
|
|
24967
24967
|
}, i.prototype.easing = function(t) {
|
|
24968
24968
|
return t === void 0 && (t = hr.Linear.None), this._easingFunction = t, this;
|
|
24969
24969
|
}, i.prototype.interpolation = function(t) {
|
|
24970
|
-
return t === void 0 && (t =
|
|
24970
|
+
return t === void 0 && (t = Ei.Linear), this._interpolationFunction = t, this;
|
|
24971
24971
|
}, i.prototype.chain = function() {
|
|
24972
24972
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
24973
24973
|
t[e] = arguments[e];
|
|
@@ -25070,7 +25070,7 @@ class Ny {
|
|
|
25070
25070
|
return;
|
|
25071
25071
|
if (this.sprites[t])
|
|
25072
25072
|
return this.sprites[t];
|
|
25073
|
-
const r = await
|
|
25073
|
+
const r = await wi.load(e.image), s = new ya({
|
|
25074
25074
|
texture: r,
|
|
25075
25075
|
data: e.sprite
|
|
25076
25076
|
});
|
|
@@ -25099,7 +25099,7 @@ class Ny {
|
|
|
25099
25099
|
h.push({ texture: f, time: p });
|
|
25100
25100
|
}
|
|
25101
25101
|
const l = new _s(h);
|
|
25102
|
-
l.texture.baseTexture.scaleMode =
|
|
25102
|
+
l.texture.baseTexture.scaleMode = Wt.NEAREST, a[o.name] = l;
|
|
25103
25103
|
}
|
|
25104
25104
|
n.name && (s[n.name] = a);
|
|
25105
25105
|
}
|
|
@@ -25617,7 +25617,7 @@ const rr = class extends me {
|
|
|
25617
25617
|
};
|
|
25618
25618
|
let Ha = rr;
|
|
25619
25619
|
Ha.defaultOptions = {
|
|
25620
|
-
scaleMode:
|
|
25620
|
+
scaleMode: Wt.LINEAR,
|
|
25621
25621
|
fps: 30,
|
|
25622
25622
|
loop: !0,
|
|
25623
25623
|
animationSpeed: 1,
|
|
@@ -25699,7 +25699,7 @@ class h_ {
|
|
|
25699
25699
|
F(this, "container", new bt());
|
|
25700
25700
|
F(this, "animated", new bt());
|
|
25701
25701
|
F(this, "text", new Fs(void 0, {
|
|
25702
|
-
fontFamily:
|
|
25702
|
+
fontFamily: "Custom Font",
|
|
25703
25703
|
fontSize: 20,
|
|
25704
25704
|
fill: 2236962,
|
|
25705
25705
|
align: "left",
|
|
@@ -25775,9 +25775,9 @@ class h_ {
|
|
|
25775
25775
|
alpha: 0,
|
|
25776
25776
|
y: this.animated.y + this.fadeShift
|
|
25777
25777
|
};
|
|
25778
|
-
this.hideTween = new
|
|
25778
|
+
this.hideTween = new Ai(this.animated).to(s, 500).onComplete(() => {
|
|
25779
25779
|
this.isChecking = !0;
|
|
25780
|
-
}), this.showTween = new
|
|
25780
|
+
}), this.showTween = new Ai(this.animated).to(r, 500).onComplete(() => {
|
|
25781
25781
|
this.timer = new Ne(1e4, () => {
|
|
25782
25782
|
var n;
|
|
25783
25783
|
(n = this.hideTween) == null || n.start();
|
|
@@ -25788,7 +25788,7 @@ class h_ {
|
|
|
25788
25788
|
class l_ {
|
|
25789
25789
|
constructor() {
|
|
25790
25790
|
F(this, "text", new Fs(void 0, {
|
|
25791
|
-
fontFamily:
|
|
25791
|
+
fontFamily: "Custom Font",
|
|
25792
25792
|
fontSize: 18,
|
|
25793
25793
|
fill: 16777215,
|
|
25794
25794
|
align: "center",
|
|
@@ -25835,7 +25835,7 @@ class u_ {
|
|
|
25835
25835
|
F(this, "sprite");
|
|
25836
25836
|
F(this, "opacityStep", 0.1);
|
|
25837
25837
|
F(this, "shadowStep", 50);
|
|
25838
|
-
|
|
25838
|
+
Yt.stage.addChild(this.container);
|
|
25839
25839
|
}
|
|
25840
25840
|
setSprite(t) {
|
|
25841
25841
|
this.sprite = t;
|
|
@@ -25865,7 +25865,7 @@ class u_ {
|
|
|
25865
25865
|
}
|
|
25866
25866
|
}
|
|
25867
25867
|
}
|
|
25868
|
-
class
|
|
25868
|
+
class ji {
|
|
25869
25869
|
constructor() {
|
|
25870
25870
|
F(this, "container", new bt());
|
|
25871
25871
|
F(this, "userState", {});
|
|
@@ -25919,29 +25919,29 @@ class Wi {
|
|
|
25919
25919
|
F(this, "scaleTween");
|
|
25920
25920
|
F(this, "appBounds", {
|
|
25921
25921
|
left: 80,
|
|
25922
|
-
right:
|
|
25922
|
+
right: Yt.renderer.width - 80
|
|
25923
25923
|
});
|
|
25924
25924
|
this.container.addChild(this.name.text), this.container.addChild(this.emoteSpitter.container), this.container.addChild(this.message.container), this.container.sortableChildren = !0;
|
|
25925
25925
|
}
|
|
25926
25926
|
spawn(t = { isFalling: !1 }) {
|
|
25927
|
-
const e = this.spriteData.collider, r = -(e.y + e.h - this.spriteData.size.h / 2), s = t.isFalling ? r :
|
|
25927
|
+
const e = this.spriteData.collider, r = -(e.y + e.h - this.spriteData.size.h / 2), s = t.isFalling ? r : Yt.renderer.height, n = this.spriteData.size.w * this.state.scale * this.spriteData.scale, a = t.positionX != null ? t.positionX * this.appBounds.right : Math.random() * (this.appBounds.right - n) + n / 2, o = s * this.state.scale * this.spriteData.scale;
|
|
25928
25928
|
if (this.container.x = a, this.container.y = o, this.state.direction = Math.random() > 0.5 ? 1 : -1, !t.isFalling) {
|
|
25929
25929
|
const h = ke.zIndexEvotarMin(this.container.zIndex);
|
|
25930
|
-
this.state.zIndex = h, this.container.alpha = 0, this.spawnTween = new
|
|
25930
|
+
this.state.zIndex = h, this.container.alpha = 0, this.spawnTween = new Ai(this.container).to({ alpha: 1 }, 500).onComplete(t.onComplete).start();
|
|
25931
25931
|
}
|
|
25932
25932
|
this.stateTimer = new Ne(5e3, () => {
|
|
25933
25933
|
this.isJumping || this.setAnimationState(Mt.Run);
|
|
25934
25934
|
});
|
|
25935
25935
|
}
|
|
25936
25936
|
despawn(t = {}) {
|
|
25937
|
-
this.fadeTween && this.fadeTween.isPlaying() || (this.fadeTween = new
|
|
25937
|
+
this.fadeTween && this.fadeTween.isPlaying() || (this.fadeTween = new Ai(this.container).to({ alpha: 0 }, 1e3).onComplete(() => {
|
|
25938
25938
|
this.isDespawned = !0, t.onComplete && t.onComplete();
|
|
25939
25939
|
}).start());
|
|
25940
25940
|
}
|
|
25941
25941
|
scale(t) {
|
|
25942
|
-
this.scaleTween && this.scaleTween.isPlaying() || this.scaleTimer && !this.scaleTimer.isCompleted || (this.scaleTween = new
|
|
25942
|
+
this.scaleTween && this.scaleTween.isPlaying() || this.scaleTimer && !this.scaleTimer.isCompleted || (this.scaleTween = new Ai(this).to({ state: { scale: t.value ?? 2 } }, 2e3).onComplete(() => {
|
|
25943
25943
|
this.scaleTimer = new Ne((t.duration ?? 10) * 1e3, () => {
|
|
25944
|
-
this.scaleTween = new
|
|
25944
|
+
this.scaleTween = new Ai(this).to({ state: { scale: 1 } }, 2e3).start();
|
|
25945
25945
|
});
|
|
25946
25946
|
}).start());
|
|
25947
25947
|
}
|
|
@@ -25981,7 +25981,7 @@ class Wi {
|
|
|
25981
25981
|
const s = this.runSpeed * this.state.direction;
|
|
25982
25982
|
this.velocity.x = s * Le;
|
|
25983
25983
|
}
|
|
25984
|
-
this.velocity.y = this.velocity.y + this.gravity, e.x += this.velocity.x, e.y += this.velocity.y, this.isOnGround(e.y) && (this.velocity.y = 0, this.velocity.x = 0, e.y =
|
|
25984
|
+
this.velocity.y = this.velocity.y + this.gravity, e.x += this.velocity.x, e.y += this.velocity.y, this.isOnGround(e.y) && (this.velocity.y = 0, this.velocity.x = 0, e.y = Yt.renderer.height, this.animationState == Mt.Fall && (this.setAnimationState(Mt.Land), this.landTimer = new Ne(200, () => {
|
|
25985
25985
|
this.setAnimationState(Mt.Idle), this.isJumping = !1;
|
|
25986
25986
|
}))), this.velocity.y > 0 && this.setAnimationState(Mt.Fall);
|
|
25987
25987
|
}
|
|
@@ -26032,7 +26032,7 @@ class Wi {
|
|
|
26032
26032
|
});
|
|
26033
26033
|
}
|
|
26034
26034
|
isOnGround(t) {
|
|
26035
|
-
return t >
|
|
26035
|
+
return t > Yt.renderer.height;
|
|
26036
26036
|
}
|
|
26037
26037
|
addMessage(t) {
|
|
26038
26038
|
var e;
|
|
@@ -26074,11 +26074,11 @@ class f_ {
|
|
|
26074
26074
|
t.update();
|
|
26075
26075
|
}
|
|
26076
26076
|
processRaid(t) {
|
|
26077
|
-
if (!
|
|
26077
|
+
if (!Yt.settings.fallingRaiders)
|
|
26078
26078
|
return;
|
|
26079
26079
|
const e = 1 / t.viewers.count * 5e3;
|
|
26080
26080
|
for (let a = 0; a < t.viewers.count; a++) {
|
|
26081
|
-
const o = new
|
|
26081
|
+
const o = new ji();
|
|
26082
26082
|
o.setProps({
|
|
26083
26083
|
isAnonymous: !0,
|
|
26084
26084
|
zIndex: -1,
|
|
@@ -26102,7 +26102,7 @@ class f_ {
|
|
|
26102
26102
|
),
|
|
26103
26103
|
scale: 2
|
|
26104
26104
|
}, n = () => {
|
|
26105
|
-
const a = new
|
|
26105
|
+
const a = new ji();
|
|
26106
26106
|
a.setProps(s), this.addViewer(t.broadcaster.id, a), a.spawn({ isFalling: !0, positionX: 0.5 });
|
|
26107
26107
|
};
|
|
26108
26108
|
this.lastEvotarActivity[t.broadcaster.id] = performance.now(), r ? r.despawn({
|
|
@@ -26123,13 +26123,13 @@ class f_ {
|
|
|
26123
26123
|
});
|
|
26124
26124
|
}
|
|
26125
26125
|
}
|
|
26126
|
-
if (
|
|
26126
|
+
if (Yt.settings.showAnonymousEvotars) {
|
|
26127
26127
|
for (const e of t)
|
|
26128
26128
|
if (!this.viewers[e.userId]) {
|
|
26129
26129
|
const s = {
|
|
26130
26130
|
name: e.name,
|
|
26131
26131
|
isAnonymous: !this.hasActivity(e.userId)
|
|
26132
|
-
}, n = new
|
|
26132
|
+
}, n = new ji();
|
|
26133
26133
|
await n.setProps(s), n.spawn(), this.addViewer(e.userId, n);
|
|
26134
26134
|
}
|
|
26135
26135
|
}
|
|
@@ -26170,7 +26170,7 @@ class f_ {
|
|
|
26170
26170
|
if (e)
|
|
26171
26171
|
await e.setProps(r), this.doAction(t, e);
|
|
26172
26172
|
else {
|
|
26173
|
-
const s = new
|
|
26173
|
+
const s = new ji();
|
|
26174
26174
|
await s.setProps(r), s.spawn({
|
|
26175
26175
|
onComplete: () => {
|
|
26176
26176
|
const n = this.viewers[t.userId];
|
|
@@ -26189,8 +26189,8 @@ class f_ {
|
|
|
26189
26189
|
if (r)
|
|
26190
26190
|
r.setProps(e);
|
|
26191
26191
|
else {
|
|
26192
|
-
const s =
|
|
26193
|
-
r = new
|
|
26192
|
+
const s = Yt.settings.fallingEvotars ? !this.hasActivity(t.userId) : !1;
|
|
26193
|
+
r = new ji(), await r.setProps(e), r.spawn({ isFalling: s }), this.addViewer(t.userId, r);
|
|
26194
26194
|
}
|
|
26195
26195
|
this.lastEvotarActivity[t.userId] = performance.now(), t.message && r.addMessage(t.message), t.emotes.length > 0 && r.spitEmotes(t.emotes);
|
|
26196
26196
|
}
|
|
@@ -26221,10 +26221,12 @@ class p_ {
|
|
|
26221
26221
|
F(this, "chatterIds", []);
|
|
26222
26222
|
F(this, "settings", {});
|
|
26223
26223
|
F(this, "renderer");
|
|
26224
|
-
F(this, "font");
|
|
26225
26224
|
}
|
|
26226
26225
|
async initialize(t, e) {
|
|
26227
|
-
|
|
26226
|
+
Ea.initialize(e.spriteLoaderFn), wc.initialize(e.sounds), e.font && await wi.load({
|
|
26227
|
+
src: e.font,
|
|
26228
|
+
data: { family: "Custom Font" }
|
|
26229
|
+
}), this.renderer = new Is({
|
|
26228
26230
|
width: t.clientWidth,
|
|
26229
26231
|
height: t.clientHeight,
|
|
26230
26232
|
backgroundAlpha: 0
|
|
@@ -26244,7 +26246,7 @@ class p_ {
|
|
|
26244
26246
|
ba.tick(), ke.update(), this.renderer.render(this.stage);
|
|
26245
26247
|
}
|
|
26246
26248
|
}
|
|
26247
|
-
const
|
|
26249
|
+
const Yt = new p_();
|
|
26248
26250
|
class y_ {
|
|
26249
26251
|
constructor(t, e) {
|
|
26250
26252
|
F(this, "isRendered", !1);
|
|
@@ -26255,19 +26257,19 @@ class y_ {
|
|
|
26255
26257
|
this.root = t, this.options = e;
|
|
26256
26258
|
}
|
|
26257
26259
|
updateSettings(t) {
|
|
26258
|
-
|
|
26260
|
+
Yt.updateSettings(t);
|
|
26259
26261
|
}
|
|
26260
26262
|
async run() {
|
|
26261
26263
|
if (this.isRendered)
|
|
26262
26264
|
return;
|
|
26263
26265
|
this.isRendered = !0, await (async () => {
|
|
26264
|
-
await
|
|
26266
|
+
await Yt.initialize(this.root, this.options), performance.now();
|
|
26265
26267
|
let e = -1;
|
|
26266
26268
|
const s = 1e3 / 60;
|
|
26267
26269
|
requestAnimationFrame(n);
|
|
26268
26270
|
function n(a = performance.now()) {
|
|
26269
26271
|
const o = a - e | 0;
|
|
26270
|
-
o > s && (e = a - o % s,
|
|
26272
|
+
o > s && (e = a - o % s, Yt.update()), requestAnimationFrame(n);
|
|
26271
26273
|
}
|
|
26272
26274
|
})();
|
|
26273
26275
|
}
|