@annotorious/svelte 3.0.0-rc.7 → 3.0.0-rc.8
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/annotorious-svelte.es5.js +420 -422
- package/dist/annotorious-svelte.es5.js.map +1 -1
- package/dist/annotorious-svelte.es6.js +10 -10
- package/dist/annotorious-svelte.es9.js +814 -816
- package/dist/annotorious-svelte.es9.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2546,9 +2546,7 @@ const Zc = () => {
|
|
|
2546
2546
|
destroy: o
|
|
2547
2547
|
};
|
|
2548
2548
|
};
|
|
2549
|
-
|
|
2550
|
-
id();
|
|
2551
|
-
function nd(r) {
|
|
2549
|
+
function id(r) {
|
|
2552
2550
|
var e = this.constructor;
|
|
2553
2551
|
return this.then(
|
|
2554
2552
|
function(t) {
|
|
@@ -2563,7 +2561,7 @@ function nd(r) {
|
|
|
2563
2561
|
}
|
|
2564
2562
|
);
|
|
2565
2563
|
}
|
|
2566
|
-
function
|
|
2564
|
+
function nd(r) {
|
|
2567
2565
|
var e = this;
|
|
2568
2566
|
return new e(function(t, i) {
|
|
2569
2567
|
if (!(r && typeof r.length < "u"))
|
|
@@ -2602,7 +2600,7 @@ function pu(r, e) {
|
|
|
2602
2600
|
this.name = "AggregateError", this.errors = r, this.message = e || "";
|
|
2603
2601
|
}
|
|
2604
2602
|
pu.prototype = Error.prototype;
|
|
2605
|
-
function
|
|
2603
|
+
function od(r) {
|
|
2606
2604
|
var e = this;
|
|
2607
2605
|
return new e(function(t, i) {
|
|
2608
2606
|
if (!(r && typeof r.length < "u"))
|
|
@@ -2625,13 +2623,13 @@ function sd(r) {
|
|
|
2625
2623
|
}
|
|
2626
2624
|
});
|
|
2627
2625
|
}
|
|
2628
|
-
var
|
|
2626
|
+
var sd = setTimeout;
|
|
2629
2627
|
function fu(r) {
|
|
2630
2628
|
return !!(r && typeof r.length < "u");
|
|
2631
2629
|
}
|
|
2632
|
-
function
|
|
2630
|
+
function ad() {
|
|
2633
2631
|
}
|
|
2634
|
-
function
|
|
2632
|
+
function hd(r, e) {
|
|
2635
2633
|
return function() {
|
|
2636
2634
|
r.apply(e, arguments);
|
|
2637
2635
|
};
|
|
@@ -2676,7 +2674,7 @@ function Oo(r, e) {
|
|
|
2676
2674
|
r._state = 3, r._value = e, Ro(r);
|
|
2677
2675
|
return;
|
|
2678
2676
|
} else if (typeof t == "function") {
|
|
2679
|
-
yu(
|
|
2677
|
+
yu(hd(t, e), r);
|
|
2680
2678
|
return;
|
|
2681
2679
|
}
|
|
2682
2680
|
}
|
|
@@ -2696,7 +2694,7 @@ function Ro(r) {
|
|
|
2696
2694
|
mu(r, r._deferreds[e]);
|
|
2697
2695
|
r._deferreds = null;
|
|
2698
2696
|
}
|
|
2699
|
-
function
|
|
2697
|
+
function ud(r, e, t) {
|
|
2700
2698
|
this.onFulfilled = typeof r == "function" ? r : null, this.onRejected = typeof e == "function" ? e : null, this.promise = t;
|
|
2701
2699
|
}
|
|
2702
2700
|
function yu(r, e) {
|
|
@@ -2720,10 +2718,10 @@ Tt.prototype.catch = function(r) {
|
|
|
2720
2718
|
return this.then(null, r);
|
|
2721
2719
|
};
|
|
2722
2720
|
Tt.prototype.then = function(r, e) {
|
|
2723
|
-
var t = new this.constructor(
|
|
2724
|
-
return mu(this, new
|
|
2721
|
+
var t = new this.constructor(ad);
|
|
2722
|
+
return mu(this, new ud(r, e, t)), t;
|
|
2725
2723
|
};
|
|
2726
|
-
Tt.prototype.finally =
|
|
2724
|
+
Tt.prototype.finally = id;
|
|
2727
2725
|
Tt.all = function(r) {
|
|
2728
2726
|
return new Tt(function(e, t) {
|
|
2729
2727
|
if (!fu(r))
|
|
@@ -2756,8 +2754,8 @@ Tt.all = function(r) {
|
|
|
2756
2754
|
o(s, i[s]);
|
|
2757
2755
|
});
|
|
2758
2756
|
};
|
|
2759
|
-
Tt.any =
|
|
2760
|
-
Tt.allSettled =
|
|
2757
|
+
Tt.any = od;
|
|
2758
|
+
Tt.allSettled = nd;
|
|
2761
2759
|
Tt.resolve = function(r) {
|
|
2762
2760
|
return r && typeof r == "object" && r.constructor === Tt ? r : new Tt(function(e) {
|
|
2763
2761
|
e(r);
|
|
@@ -2780,7 +2778,7 @@ Tt._immediateFn = // @ts-ignore
|
|
|
2780
2778
|
typeof setImmediate == "function" && function(r) {
|
|
2781
2779
|
setImmediate(r);
|
|
2782
2780
|
} || function(r) {
|
|
2783
|
-
|
|
2781
|
+
sd(r, 0);
|
|
2784
2782
|
};
|
|
2785
2783
|
Tt._unhandledRejectionFn = function(r) {
|
|
2786
2784
|
typeof console < "u" && console && console.warn("Possible Unhandled Promise Rejection:", r);
|
|
@@ -2789,7 +2787,7 @@ var Zi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
2789
2787
|
function Os(r) {
|
|
2790
2788
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
2791
2789
|
}
|
|
2792
|
-
function
|
|
2790
|
+
function ld(r) {
|
|
2793
2791
|
if (r.__esModule)
|
|
2794
2792
|
return r;
|
|
2795
2793
|
var e = r.default;
|
|
@@ -2815,13 +2813,13 @@ object-assign
|
|
|
2815
2813
|
(c) Sindre Sorhus
|
|
2816
2814
|
@license MIT
|
|
2817
2815
|
*/
|
|
2818
|
-
var la = Object.getOwnPropertySymbols,
|
|
2819
|
-
function
|
|
2816
|
+
var la = Object.getOwnPropertySymbols, cd = Object.prototype.hasOwnProperty, dd = Object.prototype.propertyIsEnumerable;
|
|
2817
|
+
function pd(r) {
|
|
2820
2818
|
if (r == null)
|
|
2821
2819
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
2822
2820
|
return Object(r);
|
|
2823
2821
|
}
|
|
2824
|
-
function
|
|
2822
|
+
function fd() {
|
|
2825
2823
|
try {
|
|
2826
2824
|
if (!Object.assign)
|
|
2827
2825
|
return !1;
|
|
@@ -2843,20 +2841,20 @@ function md() {
|
|
|
2843
2841
|
return !1;
|
|
2844
2842
|
}
|
|
2845
2843
|
}
|
|
2846
|
-
var
|
|
2847
|
-
for (var t, i =
|
|
2844
|
+
var md = fd() ? Object.assign : function(r, e) {
|
|
2845
|
+
for (var t, i = pd(r), n, o = 1; o < arguments.length; o++) {
|
|
2848
2846
|
t = Object(arguments[o]);
|
|
2849
2847
|
for (var s in t)
|
|
2850
|
-
|
|
2848
|
+
cd.call(t, s) && (i[s] = t[s]);
|
|
2851
2849
|
if (la) {
|
|
2852
2850
|
n = la(t);
|
|
2853
2851
|
for (var a = 0; a < n.length; a++)
|
|
2854
|
-
|
|
2852
|
+
dd.call(t, n[a]) && (i[n[a]] = t[n[a]]);
|
|
2855
2853
|
}
|
|
2856
2854
|
}
|
|
2857
2855
|
return i;
|
|
2858
2856
|
};
|
|
2859
|
-
const
|
|
2857
|
+
const yd = /* @__PURE__ */ Os(md);
|
|
2860
2858
|
/*!
|
|
2861
2859
|
* @pixi/polyfill - v6.5.10
|
|
2862
2860
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
|
@@ -2866,15 +2864,15 @@ const _d = /* @__PURE__ */ Os(yd);
|
|
|
2866
2864
|
*/
|
|
2867
2865
|
typeof globalThis > "u" && (typeof self < "u" ? self.globalThis = self : typeof global < "u" && (global.globalThis = global));
|
|
2868
2866
|
globalThis.Promise || (globalThis.Promise = Tt);
|
|
2869
|
-
Object.assign || (Object.assign =
|
|
2870
|
-
var
|
|
2867
|
+
Object.assign || (Object.assign = yd);
|
|
2868
|
+
var _d = 16;
|
|
2871
2869
|
Date.now && Date.prototype.getTime || (Date.now = function() {
|
|
2872
2870
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
2873
2871
|
});
|
|
2874
2872
|
if (!(globalThis.performance && globalThis.performance.now)) {
|
|
2875
|
-
var
|
|
2873
|
+
var gd = Date.now();
|
|
2876
2874
|
globalThis.performance || (globalThis.performance = {}), globalThis.performance.now = function() {
|
|
2877
|
-
return Date.now() -
|
|
2875
|
+
return Date.now() - gd;
|
|
2878
2876
|
};
|
|
2879
2877
|
}
|
|
2880
2878
|
var Fn = Date.now(), ca = ["ms", "moz", "webkit", "o"];
|
|
@@ -2885,7 +2883,7 @@ for (var Nn = 0; Nn < ca.length && !globalThis.requestAnimationFrame; ++Nn) {
|
|
|
2885
2883
|
globalThis.requestAnimationFrame || (globalThis.requestAnimationFrame = function(r) {
|
|
2886
2884
|
if (typeof r != "function")
|
|
2887
2885
|
throw new TypeError(r + "is not a function");
|
|
2888
|
-
var e = Date.now(), t =
|
|
2886
|
+
var e = Date.now(), t = _d + Fn - e;
|
|
2889
2887
|
return t < 0 && (t = 0), Fn = e, globalThis.self.setTimeout(function() {
|
|
2890
2888
|
Fn = Date.now(), r(performance.now());
|
|
2891
2889
|
}, t);
|
|
@@ -2999,7 +2997,7 @@ var le;
|
|
|
2999
2997
|
* @pixi/settings is licensed under the MIT License.
|
|
3000
2998
|
* http://www.opensource.org/licenses/mit-license
|
|
3001
2999
|
*/
|
|
3002
|
-
var
|
|
3000
|
+
var vd = {
|
|
3003
3001
|
/**
|
|
3004
3002
|
* Creates a canvas element of the given size.
|
|
3005
3003
|
* This canvas is created using the browser's native canvas element.
|
|
@@ -3026,12 +3024,12 @@ var bd = {
|
|
|
3026
3024
|
}, Bn = /iPhone/i, pa = /iPod/i, fa = /iPad/i, ma = /\biOS-universal(?:.+)Mac\b/i, Gn = /\bAndroid(?:.+)Mobile\b/i, ya = /Android/i, hr = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Ti = /Silk/i, fe = /Windows Phone/i, _a = /\bWindows(?:.+)ARM\b/i, ga = /BlackBerry/i, va = /BB10/i, ba = /Opera Mini/i, xa = /\b(CriOS|Chrome)(?:.+)Mobile/i, Ta = /Mobile(?:.+)Firefox\b/i, Ea = function(r) {
|
|
3027
3025
|
return typeof r < "u" && r.platform === "MacIntel" && typeof r.maxTouchPoints == "number" && r.maxTouchPoints > 1 && typeof MSStream > "u";
|
|
3028
3026
|
};
|
|
3029
|
-
function
|
|
3027
|
+
function bd(r) {
|
|
3030
3028
|
return function(e) {
|
|
3031
3029
|
return e.test(r);
|
|
3032
3030
|
};
|
|
3033
3031
|
}
|
|
3034
|
-
function
|
|
3032
|
+
function xd(r) {
|
|
3035
3033
|
var e = {
|
|
3036
3034
|
userAgent: "",
|
|
3037
3035
|
platform: "",
|
|
@@ -3048,7 +3046,7 @@ function Td(r) {
|
|
|
3048
3046
|
});
|
|
3049
3047
|
var t = e.userAgent, i = t.split("[FBAN");
|
|
3050
3048
|
typeof i[1] < "u" && (t = i[0]), i = t.split("Twitter"), typeof i[1] < "u" && (t = i[0]);
|
|
3051
|
-
var n =
|
|
3049
|
+
var n = bd(t), o = {
|
|
3052
3050
|
apple: {
|
|
3053
3051
|
phone: n(Bn) && !n(fe),
|
|
3054
3052
|
ipod: n(pa),
|
|
@@ -3085,11 +3083,11 @@ function Td(r) {
|
|
|
3085
3083
|
};
|
|
3086
3084
|
return o.any = o.apple.device || o.android.device || o.windows.device || o.other.device, o.phone = o.apple.phone || o.android.phone || o.windows.phone, o.tablet = o.apple.tablet || o.android.tablet || o.windows.tablet, o;
|
|
3087
3085
|
}
|
|
3088
|
-
var he =
|
|
3089
|
-
function
|
|
3086
|
+
var he = xd(globalThis.navigator);
|
|
3087
|
+
function Td() {
|
|
3090
3088
|
return !he.apple.device;
|
|
3091
3089
|
}
|
|
3092
|
-
function
|
|
3090
|
+
function Ed(r) {
|
|
3093
3091
|
var e = !0;
|
|
3094
3092
|
if (he.tablet || he.phone) {
|
|
3095
3093
|
if (he.apple.device) {
|
|
@@ -3122,7 +3120,7 @@ var G = {
|
|
|
3122
3120
|
* @type {PIXI.IAdapter}
|
|
3123
3121
|
* @default PIXI.BrowserAdapter
|
|
3124
3122
|
*/
|
|
3125
|
-
ADAPTER:
|
|
3123
|
+
ADAPTER: vd,
|
|
3126
3124
|
/**
|
|
3127
3125
|
* If set to true WebGL will attempt make textures mimpaped by default.
|
|
3128
3126
|
* Mipmapping will only succeed if the base texture uploaded has power of two dimensions.
|
|
@@ -3178,7 +3176,7 @@ var G = {
|
|
|
3178
3176
|
* @type {number}
|
|
3179
3177
|
* @default 32
|
|
3180
3178
|
*/
|
|
3181
|
-
SPRITE_MAX_TEXTURES:
|
|
3179
|
+
SPRITE_MAX_TEXTURES: Ed(32),
|
|
3182
3180
|
// TODO: maybe change to SPRITE.BATCH_SIZE: 2000
|
|
3183
3181
|
// TODO: maybe add PARTICLE.BATCH_SIZE: 15000
|
|
3184
3182
|
/**
|
|
@@ -3293,7 +3291,7 @@ var G = {
|
|
|
3293
3291
|
* @memberof PIXI.settings
|
|
3294
3292
|
* @type {boolean}
|
|
3295
3293
|
*/
|
|
3296
|
-
CAN_UPLOAD_SAME_BUFFER:
|
|
3294
|
+
CAN_UPLOAD_SAME_BUFFER: Td(),
|
|
3297
3295
|
/**
|
|
3298
3296
|
* Enables bitmap creation before image load. This feature is experimental.
|
|
3299
3297
|
* @static
|
|
@@ -3425,8 +3423,8 @@ var G = {
|
|
|
3425
3423
|
return h ? (u = t ? t + h : h, this._events[u] && s(this, u)) : (this._events = new i(), this._eventsCount = 0), this;
|
|
3426
3424
|
}, a.prototype.off = a.prototype.removeListener, a.prototype.addListener = a.prototype.on, a.prefixed = t, a.EventEmitter = a, r.exports = a;
|
|
3427
3425
|
})(_u);
|
|
3428
|
-
var
|
|
3429
|
-
const di = /* @__PURE__ */ Os(
|
|
3426
|
+
var Ad = _u.exports;
|
|
3427
|
+
const di = /* @__PURE__ */ Os(Ad);
|
|
3430
3428
|
var Rs = { exports: {} };
|
|
3431
3429
|
Rs.exports = Tn;
|
|
3432
3430
|
Rs.exports.default = Tn;
|
|
@@ -3436,7 +3434,7 @@ function Tn(r, e, t) {
|
|
|
3436
3434
|
if (!o || o.next === o.prev)
|
|
3437
3435
|
return s;
|
|
3438
3436
|
var a, h, u, l, c, d, p;
|
|
3439
|
-
if (i && (o =
|
|
3437
|
+
if (i && (o = Md(r, e, o, t)), r.length > 80 * t) {
|
|
3440
3438
|
a = u = r[0], h = l = r[1];
|
|
3441
3439
|
for (var f = t; f < n; f += t)
|
|
3442
3440
|
c = r[f], d = r[f + 1], c < a && (a = c), d < h && (h = d), c > u && (u = c), d > l && (l = d);
|
|
@@ -3471,20 +3469,20 @@ function Qe(r, e) {
|
|
|
3471
3469
|
}
|
|
3472
3470
|
function ii(r, e, t, i, n, o, s) {
|
|
3473
3471
|
if (r) {
|
|
3474
|
-
!s && o &&
|
|
3472
|
+
!s && o && Fd(r, i, n, o);
|
|
3475
3473
|
for (var a = r, h, u; r.prev !== r.next; ) {
|
|
3476
|
-
if (h = r.prev, u = r.next, o ?
|
|
3474
|
+
if (h = r.prev, u = r.next, o ? Sd(r, i, n, o) : wd(r)) {
|
|
3477
3475
|
e.push(h.i / t | 0), e.push(r.i / t | 0), e.push(u.i / t | 0), oi(r), r = u.next, a = u.next;
|
|
3478
3476
|
continue;
|
|
3479
3477
|
}
|
|
3480
3478
|
if (r = u, r === a) {
|
|
3481
|
-
s ? s === 1 ? (r =
|
|
3479
|
+
s ? s === 1 ? (r = Od(Qe(r), e, t), ii(r, e, t, i, n, o, 2)) : s === 2 && Rd(r, e, t, i, n, o) : ii(Qe(r), e, t, i, n, o, 1);
|
|
3482
3480
|
break;
|
|
3483
3481
|
}
|
|
3484
3482
|
}
|
|
3485
3483
|
}
|
|
3486
3484
|
}
|
|
3487
|
-
function
|
|
3485
|
+
function wd(r) {
|
|
3488
3486
|
var e = r.prev, t = r, i = r.next;
|
|
3489
3487
|
if (xt(e, t, i) >= 0)
|
|
3490
3488
|
return !1;
|
|
@@ -3495,7 +3493,7 @@ function Sd(r) {
|
|
|
3495
3493
|
}
|
|
3496
3494
|
return !0;
|
|
3497
3495
|
}
|
|
3498
|
-
function
|
|
3496
|
+
function Sd(r, e, t, i) {
|
|
3499
3497
|
var n = r.prev, o = r, s = r.next;
|
|
3500
3498
|
if (xt(n, o, s) >= 0)
|
|
3501
3499
|
return !1;
|
|
@@ -3516,7 +3514,7 @@ function Od(r, e, t, i) {
|
|
|
3516
3514
|
}
|
|
3517
3515
|
return !0;
|
|
3518
3516
|
}
|
|
3519
|
-
function
|
|
3517
|
+
function Od(r, e, t) {
|
|
3520
3518
|
var i = r;
|
|
3521
3519
|
do {
|
|
3522
3520
|
var n = i.prev, o = i.next.next;
|
|
@@ -3524,11 +3522,11 @@ function Rd(r, e, t) {
|
|
|
3524
3522
|
} while (i !== r);
|
|
3525
3523
|
return Qe(i);
|
|
3526
3524
|
}
|
|
3527
|
-
function
|
|
3525
|
+
function Rd(r, e, t, i, n, o) {
|
|
3528
3526
|
var s = r;
|
|
3529
3527
|
do {
|
|
3530
3528
|
for (var a = s.next.next; a !== s.prev; ) {
|
|
3531
|
-
if (s.i !== a.i &&
|
|
3529
|
+
if (s.i !== a.i && Bd(s, a)) {
|
|
3532
3530
|
var h = bu(s, a);
|
|
3533
3531
|
s = Qe(s, s.next), h = Qe(h, h.next), ii(s, e, t, i, n, o, 0), ii(h, e, t, i, n, o, 0);
|
|
3534
3532
|
return;
|
|
@@ -3538,25 +3536,25 @@ function Md(r, e, t, i, n, o) {
|
|
|
3538
3536
|
s = s.next;
|
|
3539
3537
|
} while (s !== r);
|
|
3540
3538
|
}
|
|
3541
|
-
function
|
|
3539
|
+
function Md(r, e, t, i) {
|
|
3542
3540
|
var n = [], o, s, a, h, u;
|
|
3543
3541
|
for (o = 0, s = e.length; o < s; o++)
|
|
3544
|
-
a = e[o] * i, h = o < s - 1 ? e[o + 1] * i : r.length, u = gu(r, a, h, i, !1), u === u.next && (u.steiner = !0), n.push(
|
|
3545
|
-
for (n.sort(
|
|
3546
|
-
t =
|
|
3542
|
+
a = e[o] * i, h = o < s - 1 ? e[o + 1] * i : r.length, u = gu(r, a, h, i, !1), u === u.next && (u.steiner = !0), n.push(Ld(u));
|
|
3543
|
+
for (n.sort(Pd), o = 0; o < n.length; o++)
|
|
3544
|
+
t = Id(n[o], t);
|
|
3547
3545
|
return t;
|
|
3548
3546
|
}
|
|
3549
|
-
function
|
|
3547
|
+
function Pd(r, e) {
|
|
3550
3548
|
return r.x - e.x;
|
|
3551
3549
|
}
|
|
3552
|
-
function
|
|
3553
|
-
var t =
|
|
3550
|
+
function Id(r, e) {
|
|
3551
|
+
var t = Dd(r, e);
|
|
3554
3552
|
if (!t)
|
|
3555
3553
|
return e;
|
|
3556
3554
|
var i = bu(t, r);
|
|
3557
3555
|
return Qe(i, i.next), Qe(t, t.next);
|
|
3558
3556
|
}
|
|
3559
|
-
function
|
|
3557
|
+
function Dd(r, e) {
|
|
3560
3558
|
var t = e, i = r.x, n = r.y, o = -1 / 0, s;
|
|
3561
3559
|
do {
|
|
3562
3560
|
if (n <= t.y && n >= t.next.y && t.next.y !== t.y) {
|
|
@@ -3571,21 +3569,21 @@ function Cd(r, e) {
|
|
|
3571
3569
|
var h = s, u = s.x, l = s.y, c = 1 / 0, d;
|
|
3572
3570
|
t = s;
|
|
3573
3571
|
do
|
|
3574
|
-
i >= t.x && t.x >= u && i !== t.x && yr(n < l ? i : o, n, u, l, n < l ? o : i, n, t.x, t.y) && (d = Math.abs(n - t.y) / (i - t.x), ni(t, r) && (d < c || d === c && (t.x > s.x || t.x === s.x &&
|
|
3572
|
+
i >= t.x && t.x >= u && i !== t.x && yr(n < l ? i : o, n, u, l, n < l ? o : i, n, t.x, t.y) && (d = Math.abs(n - t.y) / (i - t.x), ni(t, r) && (d < c || d === c && (t.x > s.x || t.x === s.x && Cd(s, t))) && (s = t, c = d)), t = t.next;
|
|
3575
3573
|
while (t !== h);
|
|
3576
3574
|
return s;
|
|
3577
3575
|
}
|
|
3578
|
-
function
|
|
3576
|
+
function Cd(r, e) {
|
|
3579
3577
|
return xt(r.prev, r, e.prev) < 0 && xt(e.next, r, r.next) < 0;
|
|
3580
3578
|
}
|
|
3581
|
-
function
|
|
3579
|
+
function Fd(r, e, t, i) {
|
|
3582
3580
|
var n = r;
|
|
3583
3581
|
do
|
|
3584
3582
|
n.z === 0 && (n.z = Mo(n.x, n.y, e, t, i)), n.prevZ = n.prev, n.nextZ = n.next, n = n.next;
|
|
3585
3583
|
while (n !== r);
|
|
3586
|
-
n.prevZ.nextZ = null, n.prevZ = null,
|
|
3584
|
+
n.prevZ.nextZ = null, n.prevZ = null, Nd(n);
|
|
3587
3585
|
}
|
|
3588
|
-
function
|
|
3586
|
+
function Nd(r) {
|
|
3589
3587
|
var e, t, i, n, o, s, a, h, u = 1;
|
|
3590
3588
|
do {
|
|
3591
3589
|
for (t = r, r = null, o = null, s = 0; t; ) {
|
|
@@ -3602,7 +3600,7 @@ function Ld(r) {
|
|
|
3602
3600
|
function Mo(r, e, t, i, n) {
|
|
3603
3601
|
return r = (r - t) * n | 0, e = (e - i) * n | 0, r = (r | r << 8) & 16711935, r = (r | r << 4) & 252645135, r = (r | r << 2) & 858993459, r = (r | r << 1) & 1431655765, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, r | e << 1;
|
|
3604
3602
|
}
|
|
3605
|
-
function
|
|
3603
|
+
function Ld(r) {
|
|
3606
3604
|
var e = r, t = r;
|
|
3607
3605
|
do
|
|
3608
3606
|
(e.x < t.x || e.x === t.x && e.y < t.y) && (t = e), e = e.next;
|
|
@@ -3612,9 +3610,9 @@ function Bd(r) {
|
|
|
3612
3610
|
function yr(r, e, t, i, n, o, s, a) {
|
|
3613
3611
|
return (n - s) * (e - a) >= (r - s) * (o - a) && (r - s) * (i - a) >= (t - s) * (e - a) && (t - s) * (o - a) >= (n - s) * (i - a);
|
|
3614
3612
|
}
|
|
3615
|
-
function
|
|
3616
|
-
return r.next.i !== e.i && r.prev.i !== e.i && !
|
|
3617
|
-
(ni(r, e) && ni(e, r) &&
|
|
3613
|
+
function Bd(r, e) {
|
|
3614
|
+
return r.next.i !== e.i && r.prev.i !== e.i && !Gd(r, e) && // dones't intersect other edges
|
|
3615
|
+
(ni(r, e) && ni(e, r) && Ud(r, e) && // locally visible
|
|
3618
3616
|
(xt(r.prev, r, e.prev) || xt(r, e.prev, e)) || // does not create opposite-facing sectors
|
|
3619
3617
|
En(r, e) && xt(r.prev, r, r.next) > 0 && xt(e.prev, e, e.next) > 0);
|
|
3620
3618
|
}
|
|
@@ -3634,7 +3632,7 @@ function Ei(r, e, t) {
|
|
|
3634
3632
|
function Ai(r) {
|
|
3635
3633
|
return r > 0 ? 1 : r < 0 ? -1 : 0;
|
|
3636
3634
|
}
|
|
3637
|
-
function
|
|
3635
|
+
function Gd(r, e) {
|
|
3638
3636
|
var t = r;
|
|
3639
3637
|
do {
|
|
3640
3638
|
if (t.i !== r.i && t.next.i !== r.i && t.i !== e.i && t.next.i !== e.i && vu(t, t.next, r, e))
|
|
@@ -3646,7 +3644,7 @@ function Ud(r, e) {
|
|
|
3646
3644
|
function ni(r, e) {
|
|
3647
3645
|
return xt(r.prev, r, r.next) < 0 ? xt(r, e, r.next) >= 0 && xt(r, r.prev, e) >= 0 : xt(r, e, r.prev) < 0 || xt(r, r.next, e) < 0;
|
|
3648
3646
|
}
|
|
3649
|
-
function
|
|
3647
|
+
function Ud(r, e) {
|
|
3650
3648
|
var t = r, i = !1, n = (r.x + e.x) / 2, o = (r.y + e.y) / 2;
|
|
3651
3649
|
do
|
|
3652
3650
|
t.y > o != t.next.y > o && t.next.y !== t.y && n < (t.next.x - t.x) * (o - t.y) / (t.next.y - t.y) + t.x && (i = !i), t = t.next;
|
|
@@ -3697,8 +3695,8 @@ Tn.flatten = function(r) {
|
|
|
3697
3695
|
}
|
|
3698
3696
|
return t;
|
|
3699
3697
|
};
|
|
3700
|
-
var
|
|
3701
|
-
const xu = /* @__PURE__ */ Os(
|
|
3698
|
+
var kd = Rs.exports;
|
|
3699
|
+
const xu = /* @__PURE__ */ Os(kd);
|
|
3702
3700
|
var un = { exports: {} };
|
|
3703
3701
|
/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
3704
3702
|
un.exports;
|
|
@@ -3820,7 +3818,7 @@ un.exports;
|
|
|
3820
3818
|
t.punycode = s;
|
|
3821
3819
|
})(Zi);
|
|
3822
3820
|
})(un, un.exports);
|
|
3823
|
-
var
|
|
3821
|
+
var Xd = un.exports, jd = function() {
|
|
3824
3822
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
3825
3823
|
return !1;
|
|
3826
3824
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -3843,31 +3841,31 @@ var jd = un.exports, Hd = function() {
|
|
|
3843
3841
|
return !1;
|
|
3844
3842
|
}
|
|
3845
3843
|
return !0;
|
|
3846
|
-
}, wa = typeof Symbol < "u" && Symbol,
|
|
3847
|
-
return typeof wa != "function" || typeof Symbol != "function" || typeof wa("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 :
|
|
3844
|
+
}, wa = typeof Symbol < "u" && Symbol, Hd = jd, Yd = function() {
|
|
3845
|
+
return typeof wa != "function" || typeof Symbol != "function" || typeof wa("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Hd();
|
|
3848
3846
|
}, Sa = {
|
|
3849
3847
|
foo: {}
|
|
3850
|
-
},
|
|
3851
|
-
return { __proto__: Sa }.foo === Sa.foo && !({ __proto__: null } instanceof
|
|
3852
|
-
},
|
|
3848
|
+
}, Vd = Object, zd = function() {
|
|
3849
|
+
return { __proto__: Sa }.foo === Sa.foo && !({ __proto__: null } instanceof Vd);
|
|
3850
|
+
}, Wd = "Function.prototype.bind called on incompatible ", $d = Object.prototype.toString, qd = Math.max, Kd = "[object Function]", Oa = function(r, e) {
|
|
3853
3851
|
for (var t = [], i = 0; i < r.length; i += 1)
|
|
3854
3852
|
t[i] = r[i];
|
|
3855
3853
|
for (var n = 0; n < e.length; n += 1)
|
|
3856
3854
|
t[n + r.length] = e[n];
|
|
3857
3855
|
return t;
|
|
3858
|
-
},
|
|
3856
|
+
}, Zd = function(r, e) {
|
|
3859
3857
|
for (var t = [], i = e || 0, n = 0; i < r.length; i += 1, n += 1)
|
|
3860
3858
|
t[n] = r[i];
|
|
3861
3859
|
return t;
|
|
3862
|
-
},
|
|
3860
|
+
}, Jd = function(r, e) {
|
|
3863
3861
|
for (var t = "", i = 0; i < r.length; i += 1)
|
|
3864
3862
|
t += r[i], i + 1 < r.length && (t += e);
|
|
3865
3863
|
return t;
|
|
3866
|
-
},
|
|
3864
|
+
}, Qd = function(r) {
|
|
3867
3865
|
var e = this;
|
|
3868
|
-
if (typeof e != "function" ||
|
|
3869
|
-
throw new TypeError(
|
|
3870
|
-
for (var t =
|
|
3866
|
+
if (typeof e != "function" || $d.apply(e) !== Kd)
|
|
3867
|
+
throw new TypeError(Wd + e);
|
|
3868
|
+
for (var t = Zd(arguments, 1), i, n = function() {
|
|
3871
3869
|
if (this instanceof i) {
|
|
3872
3870
|
var u = e.apply(
|
|
3873
3871
|
this,
|
|
@@ -3879,15 +3877,15 @@ var jd = un.exports, Hd = function() {
|
|
|
3879
3877
|
r,
|
|
3880
3878
|
Oa(t, arguments)
|
|
3881
3879
|
);
|
|
3882
|
-
}, o =
|
|
3880
|
+
}, o = qd(0, e.length - t.length), s = [], a = 0; a < o; a++)
|
|
3883
3881
|
s[a] = "$" + a;
|
|
3884
|
-
if (i = Function("binder", "return function (" +
|
|
3882
|
+
if (i = Function("binder", "return function (" + Jd(s, ",") + "){ return binder.apply(this,arguments); }")(n), e.prototype) {
|
|
3885
3883
|
var h = function() {
|
|
3886
3884
|
};
|
|
3887
3885
|
h.prototype = e.prototype, i.prototype = new h(), h.prototype = null;
|
|
3888
3886
|
}
|
|
3889
3887
|
return i;
|
|
3890
|
-
},
|
|
3888
|
+
}, tp = Qd, Ms = Function.prototype.bind || tp, ep = Function.prototype.call, rp = Object.prototype.hasOwnProperty, ip = Ms, np = ip.call(ep, rp), et, Sr = SyntaxError, Tu = Function, Tr = TypeError, Un = function(r) {
|
|
3891
3889
|
try {
|
|
3892
3890
|
return Tu('"use strict"; return (' + r + ").constructor;")();
|
|
3893
3891
|
} catch {
|
|
@@ -3901,7 +3899,7 @@ if (Ke)
|
|
|
3901
3899
|
}
|
|
3902
3900
|
var kn = function() {
|
|
3903
3901
|
throw new Tr();
|
|
3904
|
-
},
|
|
3902
|
+
}, op = Ke ? function() {
|
|
3905
3903
|
try {
|
|
3906
3904
|
return arguments.callee, kn;
|
|
3907
3905
|
} catch {
|
|
@@ -3911,9 +3909,9 @@ var kn = function() {
|
|
|
3911
3909
|
return kn;
|
|
3912
3910
|
}
|
|
3913
3911
|
}
|
|
3914
|
-
}() : kn, ur =
|
|
3912
|
+
}() : kn, ur = Yd(), sp = zd(), It = Object.getPrototypeOf || (sp ? function(r) {
|
|
3915
3913
|
return r.__proto__;
|
|
3916
|
-
} : null), mr = {},
|
|
3914
|
+
} : null), mr = {}, ap = typeof Uint8Array > "u" || !It ? et : It(Uint8Array), Ze = {
|
|
3917
3915
|
"%AggregateError%": typeof AggregateError > "u" ? et : AggregateError,
|
|
3918
3916
|
"%Array%": Array,
|
|
3919
3917
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? et : ArrayBuffer,
|
|
@@ -3970,8 +3968,8 @@ var kn = function() {
|
|
|
3970
3968
|
"%StringIteratorPrototype%": ur && It ? It(""[Symbol.iterator]()) : et,
|
|
3971
3969
|
"%Symbol%": ur ? Symbol : et,
|
|
3972
3970
|
"%SyntaxError%": Sr,
|
|
3973
|
-
"%ThrowTypeError%":
|
|
3974
|
-
"%TypedArray%":
|
|
3971
|
+
"%ThrowTypeError%": op,
|
|
3972
|
+
"%TypedArray%": ap,
|
|
3975
3973
|
"%TypeError%": Tr,
|
|
3976
3974
|
"%Uint8Array%": typeof Uint8Array > "u" ? et : Uint8Array,
|
|
3977
3975
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? et : Uint8ClampedArray,
|
|
@@ -3986,10 +3984,10 @@ if (It)
|
|
|
3986
3984
|
try {
|
|
3987
3985
|
null.error;
|
|
3988
3986
|
} catch (r) {
|
|
3989
|
-
var
|
|
3990
|
-
Ze["%Error.prototype%"] =
|
|
3987
|
+
var hp = It(It(r));
|
|
3988
|
+
Ze["%Error.prototype%"] = hp;
|
|
3991
3989
|
}
|
|
3992
|
-
var
|
|
3990
|
+
var up = function r(e) {
|
|
3993
3991
|
var t;
|
|
3994
3992
|
if (e === "%AsyncFunction%")
|
|
3995
3993
|
t = Un("async function () {}");
|
|
@@ -4057,21 +4055,21 @@ var lp = function r(e) {
|
|
|
4057
4055
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
4058
4056
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
4059
4057
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
4060
|
-
}, pi = Ms, ln =
|
|
4058
|
+
}, pi = Ms, ln = np, lp = pi.call(Function.call, Array.prototype.concat), cp = pi.call(Function.apply, Array.prototype.splice), Ma = pi.call(Function.call, String.prototype.replace), cn = pi.call(Function.call, String.prototype.slice), dp = pi.call(Function.call, RegExp.prototype.exec), pp = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, fp = /\\(\\)?/g, mp = function(r) {
|
|
4061
4059
|
var e = cn(r, 0, 1), t = cn(r, -1);
|
|
4062
4060
|
if (e === "%" && t !== "%")
|
|
4063
4061
|
throw new Sr("invalid intrinsic syntax, expected closing `%`");
|
|
4064
4062
|
if (t === "%" && e !== "%")
|
|
4065
4063
|
throw new Sr("invalid intrinsic syntax, expected opening `%`");
|
|
4066
4064
|
var i = [];
|
|
4067
|
-
return Ma(r,
|
|
4068
|
-
i[i.length] = s ? Ma(a,
|
|
4065
|
+
return Ma(r, pp, function(n, o, s, a) {
|
|
4066
|
+
i[i.length] = s ? Ma(a, fp, "$1") : o || n;
|
|
4069
4067
|
}), i;
|
|
4070
|
-
},
|
|
4068
|
+
}, yp = function(r, e) {
|
|
4071
4069
|
var t = r, i;
|
|
4072
4070
|
if (ln(Ra, t) && (i = Ra[t], t = "%" + i[0] + "%"), ln(Ze, t)) {
|
|
4073
4071
|
var n = Ze[t];
|
|
4074
|
-
if (n === mr && (n =
|
|
4072
|
+
if (n === mr && (n = up(t)), typeof n > "u" && !e)
|
|
4075
4073
|
throw new Tr("intrinsic " + r + " exists, but is not available. Please file an issue!");
|
|
4076
4074
|
return {
|
|
4077
4075
|
alias: i,
|
|
@@ -4085,10 +4083,10 @@ var lp = function r(e) {
|
|
|
4085
4083
|
throw new Tr("intrinsic name must be a non-empty string");
|
|
4086
4084
|
if (arguments.length > 1 && typeof e != "boolean")
|
|
4087
4085
|
throw new Tr('"allowMissing" argument must be a boolean');
|
|
4088
|
-
if (
|
|
4086
|
+
if (dp(/^%?[^%]*%?$/, r) === null)
|
|
4089
4087
|
throw new Sr("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
4090
|
-
var t =
|
|
4091
|
-
h && (i = h[0],
|
|
4088
|
+
var t = mp(r), i = t.length > 0 ? t[0] : "", n = yp("%" + i + "%", e), o = n.name, s = n.value, a = !1, h = n.alias;
|
|
4089
|
+
h && (i = h[0], cp(t, lp([0, 1], h)));
|
|
4092
4090
|
for (var u = 1, l = !0; u < t.length; u += 1) {
|
|
4093
4091
|
var c = t[u], d = cn(c, 0, 1), p = cn(c, -1);
|
|
4094
4092
|
if ((d === '"' || d === "'" || d === "`" || p === '"' || p === "'" || p === "`") && d !== p)
|
|
@@ -4110,7 +4108,7 @@ var lp = function r(e) {
|
|
|
4110
4108
|
}
|
|
4111
4109
|
}
|
|
4112
4110
|
return s;
|
|
4113
|
-
}, Eu = { exports: {} },
|
|
4111
|
+
}, Eu = { exports: {} }, _p = rr, Do = _p("%Object.defineProperty%", !0), Co = function() {
|
|
4114
4112
|
if (Do)
|
|
4115
4113
|
try {
|
|
4116
4114
|
return Do({}, "a", { value: 1 }), !0;
|
|
@@ -4128,21 +4126,21 @@ Co.hasArrayLengthDefineBug = function() {
|
|
|
4128
4126
|
return !0;
|
|
4129
4127
|
}
|
|
4130
4128
|
};
|
|
4131
|
-
var Au = Co,
|
|
4129
|
+
var Au = Co, gp = rr, Ji = gp("%Object.getOwnPropertyDescriptor%", !0);
|
|
4132
4130
|
if (Ji)
|
|
4133
4131
|
try {
|
|
4134
4132
|
Ji([], "length");
|
|
4135
4133
|
} catch {
|
|
4136
4134
|
Ji = null;
|
|
4137
4135
|
}
|
|
4138
|
-
var wu = Ji,
|
|
4136
|
+
var wu = Ji, vp = Au(), Ps = rr, qr = vp && Ps("%Object.defineProperty%", !0);
|
|
4139
4137
|
if (qr)
|
|
4140
4138
|
try {
|
|
4141
4139
|
qr({}, "a", { value: 1 });
|
|
4142
4140
|
} catch {
|
|
4143
4141
|
qr = !1;
|
|
4144
4142
|
}
|
|
4145
|
-
var
|
|
4143
|
+
var bp = Ps("%SyntaxError%"), lr = Ps("%TypeError%"), Pa = wu, xp = function(r, e, t) {
|
|
4146
4144
|
if (!r || typeof r != "object" && typeof r != "function")
|
|
4147
4145
|
throw new lr("`obj` must be an object or a function`");
|
|
4148
4146
|
if (typeof e != "string" && typeof e != "symbol")
|
|
@@ -4166,21 +4164,21 @@ var xp = Ps("%SyntaxError%"), lr = Ps("%TypeError%"), Pa = wu, Tp = function(r,
|
|
|
4166
4164
|
else if (s || !i && !n && !o)
|
|
4167
4165
|
r[e] = t;
|
|
4168
4166
|
else
|
|
4169
|
-
throw new
|
|
4170
|
-
}, Su = rr, Ia =
|
|
4167
|
+
throw new bp("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
4168
|
+
}, Su = rr, Ia = xp, Tp = Au(), Da = wu, Ca = Su("%TypeError%"), Ep = Su("%Math.floor%"), Ap = function(r, e) {
|
|
4171
4169
|
if (typeof r != "function")
|
|
4172
4170
|
throw new Ca("`fn` is not a function");
|
|
4173
|
-
if (typeof e != "number" || e < 0 || e > 4294967295 ||
|
|
4171
|
+
if (typeof e != "number" || e < 0 || e > 4294967295 || Ep(e) !== e)
|
|
4174
4172
|
throw new Ca("`length` must be a positive 32-bit integer");
|
|
4175
4173
|
var t = arguments.length > 2 && !!arguments[2], i = !0, n = !0;
|
|
4176
4174
|
if ("length" in r && Da) {
|
|
4177
4175
|
var o = Da(r, "length");
|
|
4178
4176
|
o && !o.configurable && (i = !1), o && !o.writable && (n = !1);
|
|
4179
4177
|
}
|
|
4180
|
-
return (i || n || !t) && (
|
|
4178
|
+
return (i || n || !t) && (Tp ? Ia(r, "length", e, !0, !0) : Ia(r, "length", e)), r;
|
|
4181
4179
|
};
|
|
4182
4180
|
(function(r) {
|
|
4183
|
-
var e = Ms, t = rr, i =
|
|
4181
|
+
var e = Ms, t = rr, i = Ap, n = t("%TypeError%"), o = t("%Function.prototype.apply%"), s = t("%Function.prototype.call%"), a = t("%Reflect.apply%", !0) || e.call(s, o), h = t("%Object.defineProperty%", !0), u = t("%Math.max%");
|
|
4184
4182
|
if (h)
|
|
4185
4183
|
try {
|
|
4186
4184
|
h({}, "a", { value: 1 });
|
|
@@ -4202,15 +4200,15 @@ var xp = Ps("%SyntaxError%"), lr = Ps("%TypeError%"), Pa = wu, Tp = function(r,
|
|
|
4202
4200
|
};
|
|
4203
4201
|
h ? h(r.exports, "apply", { value: l }) : r.exports.apply = l;
|
|
4204
4202
|
})(Eu);
|
|
4205
|
-
var
|
|
4203
|
+
var wp = Eu.exports, Ou = rr, Ru = wp, Sp = Ru(Ou("String.prototype.indexOf")), Op = function(r, e) {
|
|
4206
4204
|
var t = Ou(r, !!e);
|
|
4207
|
-
return typeof t == "function" &&
|
|
4205
|
+
return typeof t == "function" && Sp(r, ".prototype.") > -1 ? Ru(t) : t;
|
|
4208
4206
|
};
|
|
4209
|
-
const
|
|
4207
|
+
const Rp = {}, Mp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4210
4208
|
__proto__: null,
|
|
4211
|
-
default:
|
|
4212
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4213
|
-
var Is = typeof Map == "function" && Map.prototype, Xn = Object.getOwnPropertyDescriptor && Is ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, dn = Is && Xn && typeof Xn.get == "function" ? Xn.get : null, Fa = Is && Map.prototype.forEach, Ds = typeof Set == "function" && Set.prototype, jn = Object.getOwnPropertyDescriptor && Ds ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, pn = Ds && jn && typeof jn.get == "function" ? jn.get : null, Na = Ds && Set.prototype.forEach,
|
|
4209
|
+
default: Rp
|
|
4210
|
+
}, Symbol.toStringTag, { value: "Module" })), Pp = /* @__PURE__ */ ld(Mp);
|
|
4211
|
+
var Is = typeof Map == "function" && Map.prototype, Xn = Object.getOwnPropertyDescriptor && Is ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, dn = Is && Xn && typeof Xn.get == "function" ? Xn.get : null, Fa = Is && Map.prototype.forEach, Ds = typeof Set == "function" && Set.prototype, jn = Object.getOwnPropertyDescriptor && Ds ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, pn = Ds && jn && typeof jn.get == "function" ? jn.get : null, Na = Ds && Set.prototype.forEach, Ip = typeof WeakMap == "function" && WeakMap.prototype, Kr = Ip ? WeakMap.prototype.has : null, Dp = typeof WeakSet == "function" && WeakSet.prototype, Zr = Dp ? WeakSet.prototype.has : null, Cp = typeof WeakRef == "function" && WeakRef.prototype, La = Cp ? WeakRef.prototype.deref : null, Fp = Boolean.prototype.valueOf, Np = Object.prototype.toString, Lp = Function.prototype.toString, Bp = String.prototype.match, Cs = String.prototype.slice, Se = String.prototype.replace, Gp = String.prototype.toUpperCase, Ba = String.prototype.toLowerCase, Mu = RegExp.prototype.test, Ga = Array.prototype.concat, se = Array.prototype.join, Up = Array.prototype.slice, Ua = Math.floor, Fo = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Hn = Object.getOwnPropertySymbols, No = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Or = typeof Symbol == "function" && typeof Symbol.iterator == "object", Gt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Or || "symbol") ? Symbol.toStringTag : null, Pu = Object.prototype.propertyIsEnumerable, ka = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(r) {
|
|
4214
4212
|
return r.__proto__;
|
|
4215
4213
|
} : null);
|
|
4216
4214
|
function Xa(r, e) {
|
|
@@ -4226,7 +4224,7 @@ function Xa(r, e) {
|
|
|
4226
4224
|
}
|
|
4227
4225
|
return Se.call(e, t, "$&_");
|
|
4228
4226
|
}
|
|
4229
|
-
var Lo =
|
|
4227
|
+
var Lo = Pp, ja = Lo.custom, Ha = Du(ja) ? ja : null, kp = function r(e, t, i, n) {
|
|
4230
4228
|
var o = t || {};
|
|
4231
4229
|
if (we(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
|
|
4232
4230
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
@@ -4261,13 +4259,13 @@ var Lo = Ip, ja = Lo.custom, Ha = Du(ja) ? ja : null, Xp = function r(e, t, i, n
|
|
|
4261
4259
|
var l = typeof o.depth > "u" ? 5 : o.depth;
|
|
4262
4260
|
if (typeof i > "u" && (i = 0), i >= l && l > 0 && typeof e == "object")
|
|
4263
4261
|
return Bo(e) ? "[Array]" : "[Object]";
|
|
4264
|
-
var c =
|
|
4262
|
+
var c = of(o, i);
|
|
4265
4263
|
if (typeof n > "u")
|
|
4266
4264
|
n = [];
|
|
4267
4265
|
else if (Cu(n, e) >= 0)
|
|
4268
4266
|
return "[Circular]";
|
|
4269
4267
|
function d(P, N, D) {
|
|
4270
|
-
if (N && (n =
|
|
4268
|
+
if (N && (n = Up.call(n), n.push(N)), D) {
|
|
4271
4269
|
var C = {
|
|
4272
4270
|
depth: o.depth
|
|
4273
4271
|
};
|
|
@@ -4276,25 +4274,25 @@ var Lo = Ip, ja = Lo.custom, Ha = Du(ja) ? ja : null, Xp = function r(e, t, i, n
|
|
|
4276
4274
|
return r(P, o, i + 1, n);
|
|
4277
4275
|
}
|
|
4278
4276
|
if (typeof e == "function" && !Ya(e)) {
|
|
4279
|
-
var p =
|
|
4277
|
+
var p = qp(e), f = wi(e, d);
|
|
4280
4278
|
return "[Function" + (p ? ": " + p : " (anonymous)") + "]" + (f.length > 0 ? " { " + se.call(f, ", ") + " }" : "");
|
|
4281
4279
|
}
|
|
4282
4280
|
if (Du(e)) {
|
|
4283
4281
|
var m = Or ? Se.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : No.call(e);
|
|
4284
4282
|
return typeof e == "object" && !Or ? Gr(m) : m;
|
|
4285
4283
|
}
|
|
4286
|
-
if (
|
|
4284
|
+
if (ef(e)) {
|
|
4287
4285
|
for (var y = "<" + Ba.call(String(e.nodeName)), _ = e.attributes || [], g = 0; g < _.length; g++)
|
|
4288
|
-
y += " " + _[g].name + "=" + Iu(
|
|
4286
|
+
y += " " + _[g].name + "=" + Iu(Xp(_[g].value), "double", o);
|
|
4289
4287
|
return y += ">", e.childNodes && e.childNodes.length && (y += "..."), y += "</" + Ba.call(String(e.nodeName)) + ">", y;
|
|
4290
4288
|
}
|
|
4291
4289
|
if (Bo(e)) {
|
|
4292
4290
|
if (e.length === 0)
|
|
4293
4291
|
return "[]";
|
|
4294
4292
|
var v = wi(e, d);
|
|
4295
|
-
return c && !
|
|
4293
|
+
return c && !nf(v) ? "[" + Go(v, c) + "]" : "[ " + se.call(v, ", ") + " ]";
|
|
4296
4294
|
}
|
|
4297
|
-
if (
|
|
4295
|
+
if (Hp(e)) {
|
|
4298
4296
|
var x = wi(e, d);
|
|
4299
4297
|
return !("cause" in Error.prototype) && "cause" in e && !Pu.call(e, "cause") ? "{ [" + String(e) + "] " + se.call(Ga.call("[cause]: " + d(e.cause), x), ", ") + " }" : x.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + se.call(x, ", ") + " }";
|
|
4300
4298
|
}
|
|
@@ -4304,37 +4302,37 @@ var Lo = Ip, ja = Lo.custom, Ha = Du(ja) ? ja : null, Xp = function r(e, t, i, n
|
|
|
4304
4302
|
if (s !== "symbol" && typeof e.inspect == "function")
|
|
4305
4303
|
return e.inspect();
|
|
4306
4304
|
}
|
|
4307
|
-
if (
|
|
4305
|
+
if (Kp(e)) {
|
|
4308
4306
|
var T = [];
|
|
4309
4307
|
return Fa && Fa.call(e, function(P, N) {
|
|
4310
4308
|
T.push(d(N, e, !0) + " => " + d(P, e));
|
|
4311
4309
|
}), Va("Map", dn.call(e), T, c);
|
|
4312
4310
|
}
|
|
4313
|
-
if (
|
|
4311
|
+
if (Qp(e)) {
|
|
4314
4312
|
var S = [];
|
|
4315
4313
|
return Na && Na.call(e, function(P) {
|
|
4316
4314
|
S.push(d(P, e));
|
|
4317
4315
|
}), Va("Set", pn.call(e), S, c);
|
|
4318
4316
|
}
|
|
4319
|
-
if (
|
|
4317
|
+
if (Zp(e))
|
|
4320
4318
|
return Yn("WeakMap");
|
|
4321
|
-
if (
|
|
4319
|
+
if (tf(e))
|
|
4322
4320
|
return Yn("WeakSet");
|
|
4323
|
-
if (
|
|
4321
|
+
if (Jp(e))
|
|
4324
4322
|
return Yn("WeakRef");
|
|
4325
|
-
if (
|
|
4323
|
+
if (Vp(e))
|
|
4326
4324
|
return Gr(d(Number(e)));
|
|
4327
|
-
if ($p(e))
|
|
4328
|
-
return Gr(d(Fo.call(e)));
|
|
4329
4325
|
if (Wp(e))
|
|
4330
|
-
return Gr(
|
|
4331
|
-
if (
|
|
4326
|
+
return Gr(d(Fo.call(e)));
|
|
4327
|
+
if (zp(e))
|
|
4328
|
+
return Gr(Fp.call(e));
|
|
4329
|
+
if (Yp(e))
|
|
4332
4330
|
return Gr(d(String(e)));
|
|
4333
4331
|
if (typeof window < "u" && e === window)
|
|
4334
4332
|
return "{ [object Window] }";
|
|
4335
4333
|
if (e === Zi)
|
|
4336
4334
|
return "{ [object globalThis] }";
|
|
4337
|
-
if (!
|
|
4335
|
+
if (!jp(e) && !Ya(e)) {
|
|
4338
4336
|
var O = wi(e, d), A = ka ? ka(e) === Object.prototype : e instanceof Object || e.constructor === Object, b = e instanceof Object ? "" : "null prototype", E = !A && Gt && Object(e) === e && Gt in e ? Cs.call(Fe(e), 8, -1) : b ? "Object" : "", R = A || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", M = R + (E || b ? "[" + se.call(Ga.call([], E || [], b || []), ": ") + "] " : "");
|
|
4339
4337
|
return O.length === 0 ? M + "{}" : c ? M + "{" + Go(O, c) + "}" : M + "{ " + se.call(O, ", ") + " }";
|
|
4340
4338
|
}
|
|
@@ -4344,28 +4342,28 @@ function Iu(r, e, t) {
|
|
|
4344
4342
|
var i = (t.quoteStyle || e) === "double" ? '"' : "'";
|
|
4345
4343
|
return i + r + i;
|
|
4346
4344
|
}
|
|
4347
|
-
function
|
|
4345
|
+
function Xp(r) {
|
|
4348
4346
|
return Se.call(String(r), /"/g, """);
|
|
4349
4347
|
}
|
|
4350
4348
|
function Bo(r) {
|
|
4351
4349
|
return Fe(r) === "[object Array]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4352
4350
|
}
|
|
4353
|
-
function
|
|
4351
|
+
function jp(r) {
|
|
4354
4352
|
return Fe(r) === "[object Date]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4355
4353
|
}
|
|
4356
4354
|
function Ya(r) {
|
|
4357
4355
|
return Fe(r) === "[object RegExp]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4358
4356
|
}
|
|
4359
|
-
function
|
|
4357
|
+
function Hp(r) {
|
|
4360
4358
|
return Fe(r) === "[object Error]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4361
4359
|
}
|
|
4362
|
-
function
|
|
4360
|
+
function Yp(r) {
|
|
4363
4361
|
return Fe(r) === "[object String]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4364
4362
|
}
|
|
4365
|
-
function
|
|
4363
|
+
function Vp(r) {
|
|
4366
4364
|
return Fe(r) === "[object Number]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4367
4365
|
}
|
|
4368
|
-
function
|
|
4366
|
+
function zp(r) {
|
|
4369
4367
|
return Fe(r) === "[object Boolean]" && (!Gt || !(typeof r == "object" && Gt in r));
|
|
4370
4368
|
}
|
|
4371
4369
|
function Du(r) {
|
|
@@ -4381,7 +4379,7 @@ function Du(r) {
|
|
|
4381
4379
|
}
|
|
4382
4380
|
return !1;
|
|
4383
4381
|
}
|
|
4384
|
-
function
|
|
4382
|
+
function Wp(r) {
|
|
4385
4383
|
if (!r || typeof r != "object" || !Fo)
|
|
4386
4384
|
return !1;
|
|
4387
4385
|
try {
|
|
@@ -4390,19 +4388,19 @@ function $p(r) {
|
|
|
4390
4388
|
}
|
|
4391
4389
|
return !1;
|
|
4392
4390
|
}
|
|
4393
|
-
var
|
|
4391
|
+
var $p = Object.prototype.hasOwnProperty || function(r) {
|
|
4394
4392
|
return r in this;
|
|
4395
4393
|
};
|
|
4396
4394
|
function we(r, e) {
|
|
4397
|
-
return
|
|
4395
|
+
return $p.call(r, e);
|
|
4398
4396
|
}
|
|
4399
4397
|
function Fe(r) {
|
|
4400
|
-
return
|
|
4398
|
+
return Np.call(r);
|
|
4401
4399
|
}
|
|
4402
|
-
function
|
|
4400
|
+
function qp(r) {
|
|
4403
4401
|
if (r.name)
|
|
4404
4402
|
return r.name;
|
|
4405
|
-
var e =
|
|
4403
|
+
var e = Bp.call(Lp.call(r), /^function\s*([\w$]+)/);
|
|
4406
4404
|
return e ? e[1] : null;
|
|
4407
4405
|
}
|
|
4408
4406
|
function Cu(r, e) {
|
|
@@ -4413,7 +4411,7 @@ function Cu(r, e) {
|
|
|
4413
4411
|
return t;
|
|
4414
4412
|
return -1;
|
|
4415
4413
|
}
|
|
4416
|
-
function
|
|
4414
|
+
function Kp(r) {
|
|
4417
4415
|
if (!dn || !r || typeof r != "object")
|
|
4418
4416
|
return !1;
|
|
4419
4417
|
try {
|
|
@@ -4428,7 +4426,7 @@ function Zp(r) {
|
|
|
4428
4426
|
}
|
|
4429
4427
|
return !1;
|
|
4430
4428
|
}
|
|
4431
|
-
function
|
|
4429
|
+
function Zp(r) {
|
|
4432
4430
|
if (!Kr || !r || typeof r != "object")
|
|
4433
4431
|
return !1;
|
|
4434
4432
|
try {
|
|
@@ -4443,7 +4441,7 @@ function Jp(r) {
|
|
|
4443
4441
|
}
|
|
4444
4442
|
return !1;
|
|
4445
4443
|
}
|
|
4446
|
-
function
|
|
4444
|
+
function Jp(r) {
|
|
4447
4445
|
if (!La || !r || typeof r != "object")
|
|
4448
4446
|
return !1;
|
|
4449
4447
|
try {
|
|
@@ -4452,7 +4450,7 @@ function Qp(r) {
|
|
|
4452
4450
|
}
|
|
4453
4451
|
return !1;
|
|
4454
4452
|
}
|
|
4455
|
-
function
|
|
4453
|
+
function Qp(r) {
|
|
4456
4454
|
if (!pn || !r || typeof r != "object")
|
|
4457
4455
|
return !1;
|
|
4458
4456
|
try {
|
|
@@ -4467,7 +4465,7 @@ function tf(r) {
|
|
|
4467
4465
|
}
|
|
4468
4466
|
return !1;
|
|
4469
4467
|
}
|
|
4470
|
-
function
|
|
4468
|
+
function tf(r) {
|
|
4471
4469
|
if (!Zr || !r || typeof r != "object")
|
|
4472
4470
|
return !1;
|
|
4473
4471
|
try {
|
|
@@ -4482,7 +4480,7 @@ function ef(r) {
|
|
|
4482
4480
|
}
|
|
4483
4481
|
return !1;
|
|
4484
4482
|
}
|
|
4485
|
-
function
|
|
4483
|
+
function ef(r) {
|
|
4486
4484
|
return !r || typeof r != "object" ? !1 : typeof HTMLElement < "u" && r instanceof HTMLElement ? !0 : typeof r.nodeName == "string" && typeof r.getAttribute == "function";
|
|
4487
4485
|
}
|
|
4488
4486
|
function Fu(r, e) {
|
|
@@ -4490,10 +4488,10 @@ function Fu(r, e) {
|
|
|
4490
4488
|
var t = r.length - e.maxStringLength, i = "... " + t + " more character" + (t > 1 ? "s" : "");
|
|
4491
4489
|
return Fu(Cs.call(r, 0, e.maxStringLength), e) + i;
|
|
4492
4490
|
}
|
|
4493
|
-
var n = Se.call(Se.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g,
|
|
4491
|
+
var n = Se.call(Se.call(r, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, rf);
|
|
4494
4492
|
return Iu(n, "single", e);
|
|
4495
4493
|
}
|
|
4496
|
-
function
|
|
4494
|
+
function rf(r) {
|
|
4497
4495
|
var e = r.charCodeAt(0), t = {
|
|
4498
4496
|
8: "b",
|
|
4499
4497
|
9: "t",
|
|
@@ -4501,7 +4499,7 @@ function nf(r) {
|
|
|
4501
4499
|
12: "f",
|
|
4502
4500
|
13: "r"
|
|
4503
4501
|
}[e];
|
|
4504
|
-
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") +
|
|
4502
|
+
return t ? "\\" + t : "\\x" + (e < 16 ? "0" : "") + Gp.call(e.toString(16));
|
|
4505
4503
|
}
|
|
4506
4504
|
function Gr(r) {
|
|
4507
4505
|
return "Object(" + r + ")";
|
|
@@ -4513,14 +4511,14 @@ function Va(r, e, t, i) {
|
|
|
4513
4511
|
var n = i ? Go(t, i) : se.call(t, ", ");
|
|
4514
4512
|
return r + " (" + e + ") {" + n + "}";
|
|
4515
4513
|
}
|
|
4516
|
-
function
|
|
4514
|
+
function nf(r) {
|
|
4517
4515
|
for (var e = 0; e < r.length; e++)
|
|
4518
4516
|
if (Cu(r[e], `
|
|
4519
4517
|
`) >= 0)
|
|
4520
4518
|
return !1;
|
|
4521
4519
|
return !0;
|
|
4522
4520
|
}
|
|
4523
|
-
function
|
|
4521
|
+
function of(r, e) {
|
|
4524
4522
|
var t;
|
|
4525
4523
|
if (r.indent === " ")
|
|
4526
4524
|
t = " ";
|
|
@@ -4561,14 +4559,14 @@ function wi(r, e) {
|
|
|
4561
4559
|
Pu.call(r, o[u]) && i.push("[" + e(o[u]) + "]: " + e(r[o[u]], r));
|
|
4562
4560
|
return i;
|
|
4563
4561
|
}
|
|
4564
|
-
var Fs = rr, Nr =
|
|
4562
|
+
var Fs = rr, Nr = Op, sf = kp, af = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0), Oi = Fs("%Map%", !0), hf = Nr("WeakMap.prototype.get", !0), uf = Nr("WeakMap.prototype.set", !0), lf = Nr("WeakMap.prototype.has", !0), cf = Nr("Map.prototype.get", !0), df = Nr("Map.prototype.set", !0), pf = Nr("Map.prototype.has", !0), Ns = function(r, e) {
|
|
4565
4563
|
for (var t = r, i; (i = t.next) !== null; t = i)
|
|
4566
4564
|
if (i.key === e)
|
|
4567
4565
|
return t.next = i.next, i.next = r.next, r.next = i, i;
|
|
4568
|
-
},
|
|
4566
|
+
}, ff = function(r, e) {
|
|
4569
4567
|
var t = Ns(r, e);
|
|
4570
4568
|
return t && t.value;
|
|
4571
|
-
},
|
|
4569
|
+
}, mf = function(r, e, t) {
|
|
4572
4570
|
var i = Ns(r, e);
|
|
4573
4571
|
i ? i.value = t : r.next = {
|
|
4574
4572
|
// eslint-disable-line no-param-reassign
|
|
@@ -4576,48 +4574,48 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4576
4574
|
next: r.next,
|
|
4577
4575
|
value: t
|
|
4578
4576
|
};
|
|
4579
|
-
},
|
|
4577
|
+
}, yf = function(r, e) {
|
|
4580
4578
|
return !!Ns(r, e);
|
|
4581
|
-
},
|
|
4579
|
+
}, _f = function() {
|
|
4582
4580
|
var r, e, t, i = {
|
|
4583
4581
|
assert: function(n) {
|
|
4584
4582
|
if (!i.has(n))
|
|
4585
|
-
throw new
|
|
4583
|
+
throw new af("Side channel does not contain " + sf(n));
|
|
4586
4584
|
},
|
|
4587
4585
|
get: function(n) {
|
|
4588
4586
|
if (Si && n && (typeof n == "object" || typeof n == "function")) {
|
|
4589
4587
|
if (r)
|
|
4590
|
-
return
|
|
4588
|
+
return hf(r, n);
|
|
4591
4589
|
} else if (Oi) {
|
|
4592
4590
|
if (e)
|
|
4593
|
-
return
|
|
4591
|
+
return cf(e, n);
|
|
4594
4592
|
} else if (t)
|
|
4595
|
-
return
|
|
4593
|
+
return ff(t, n);
|
|
4596
4594
|
},
|
|
4597
4595
|
has: function(n) {
|
|
4598
4596
|
if (Si && n && (typeof n == "object" || typeof n == "function")) {
|
|
4599
4597
|
if (r)
|
|
4600
|
-
return
|
|
4598
|
+
return lf(r, n);
|
|
4601
4599
|
} else if (Oi) {
|
|
4602
4600
|
if (e)
|
|
4603
|
-
return
|
|
4601
|
+
return pf(e, n);
|
|
4604
4602
|
} else if (t)
|
|
4605
|
-
return
|
|
4603
|
+
return yf(t, n);
|
|
4606
4604
|
return !1;
|
|
4607
4605
|
},
|
|
4608
4606
|
set: function(n, o) {
|
|
4609
|
-
Si && n && (typeof n == "object" || typeof n == "function") ? (r || (r = new Si()),
|
|
4607
|
+
Si && n && (typeof n == "object" || typeof n == "function") ? (r || (r = new Si()), uf(r, n, o)) : Oi ? (e || (e = new Oi()), df(e, n, o)) : (t || (t = { key: {}, next: null }), mf(t, n, o));
|
|
4610
4608
|
}
|
|
4611
4609
|
};
|
|
4612
4610
|
return i;
|
|
4613
|
-
},
|
|
4611
|
+
}, gf = String.prototype.replace, vf = /%20/g, Vn = {
|
|
4614
4612
|
RFC1738: "RFC1738",
|
|
4615
4613
|
RFC3986: "RFC3986"
|
|
4616
4614
|
}, Ls = {
|
|
4617
4615
|
default: Vn.RFC3986,
|
|
4618
4616
|
formatters: {
|
|
4619
4617
|
RFC1738: function(r) {
|
|
4620
|
-
return
|
|
4618
|
+
return gf.call(r, vf, "+");
|
|
4621
4619
|
},
|
|
4622
4620
|
RFC3986: function(r) {
|
|
4623
4621
|
return String(r);
|
|
@@ -4625,11 +4623,11 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4625
4623
|
},
|
|
4626
4624
|
RFC1738: Vn.RFC1738,
|
|
4627
4625
|
RFC3986: Vn.RFC3986
|
|
4628
|
-
},
|
|
4626
|
+
}, bf = Ls, zn = Object.prototype.hasOwnProperty, Ve = Array.isArray, oe = function() {
|
|
4629
4627
|
for (var r = [], e = 0; e < 256; ++e)
|
|
4630
4628
|
r.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
4631
4629
|
return r;
|
|
4632
|
-
}(),
|
|
4630
|
+
}(), xf = function(r) {
|
|
4633
4631
|
for (; r.length > 1; ) {
|
|
4634
4632
|
var e = r.pop(), t = e.obj[e.prop];
|
|
4635
4633
|
if (Ve(t)) {
|
|
@@ -4642,7 +4640,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4642
4640
|
for (var t = e && e.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, i = 0; i < r.length; ++i)
|
|
4643
4641
|
typeof r[i] < "u" && (t[i] = r[i]);
|
|
4644
4642
|
return t;
|
|
4645
|
-
},
|
|
4643
|
+
}, Tf = function r(e, t, i) {
|
|
4646
4644
|
if (!t)
|
|
4647
4645
|
return e;
|
|
4648
4646
|
if (typeof t != "object") {
|
|
@@ -4667,11 +4665,11 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4667
4665
|
var a = t[s];
|
|
4668
4666
|
return zn.call(o, s) ? o[s] = r(o[s], a, i) : o[s] = a, o;
|
|
4669
4667
|
}, n);
|
|
4670
|
-
},
|
|
4668
|
+
}, Ef = function(r, e) {
|
|
4671
4669
|
return Object.keys(e).reduce(function(t, i) {
|
|
4672
4670
|
return t[i] = e[i], t;
|
|
4673
4671
|
}, r);
|
|
4674
|
-
},
|
|
4672
|
+
}, Af = function(r, e, t) {
|
|
4675
4673
|
var i = r.replace(/\+/g, " ");
|
|
4676
4674
|
if (t === "iso-8859-1")
|
|
4677
4675
|
return i.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -4680,7 +4678,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4680
4678
|
} catch {
|
|
4681
4679
|
return i;
|
|
4682
4680
|
}
|
|
4683
|
-
},
|
|
4681
|
+
}, wf = function(r, e, t, i, n) {
|
|
4684
4682
|
if (r.length === 0)
|
|
4685
4683
|
return r;
|
|
4686
4684
|
var o = r;
|
|
@@ -4690,7 +4688,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4690
4688
|
});
|
|
4691
4689
|
for (var s = "", a = 0; a < o.length; ++a) {
|
|
4692
4690
|
var h = o.charCodeAt(a);
|
|
4693
|
-
if (h === 45 || h === 46 || h === 95 || h === 126 || h >= 48 && h <= 57 || h >= 65 && h <= 90 || h >= 97 && h <= 122 || n ===
|
|
4691
|
+
if (h === 45 || h === 46 || h === 95 || h === 126 || h >= 48 && h <= 57 || h >= 65 && h <= 90 || h >= 97 && h <= 122 || n === bf.RFC1738 && (h === 40 || h === 41)) {
|
|
4694
4692
|
s += o.charAt(a);
|
|
4695
4693
|
continue;
|
|
4696
4694
|
}
|
|
@@ -4709,20 +4707,20 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4709
4707
|
a += 1, h = 65536 + ((h & 1023) << 10 | o.charCodeAt(a) & 1023), s += oe[240 | h >> 18] + oe[128 | h >> 12 & 63] + oe[128 | h >> 6 & 63] + oe[128 | h & 63];
|
|
4710
4708
|
}
|
|
4711
4709
|
return s;
|
|
4712
|
-
},
|
|
4710
|
+
}, Sf = function(r) {
|
|
4713
4711
|
for (var e = [{ obj: { o: r }, prop: "o" }], t = [], i = 0; i < e.length; ++i)
|
|
4714
4712
|
for (var n = e[i], o = n.obj[n.prop], s = Object.keys(o), a = 0; a < s.length; ++a) {
|
|
4715
4713
|
var h = s[a], u = o[h];
|
|
4716
4714
|
typeof u == "object" && u !== null && t.indexOf(u) === -1 && (e.push({ obj: o, prop: h }), t.push(u));
|
|
4717
4715
|
}
|
|
4718
|
-
return
|
|
4719
|
-
},
|
|
4716
|
+
return xf(e), r;
|
|
4717
|
+
}, Of = function(r) {
|
|
4720
4718
|
return Object.prototype.toString.call(r) === "[object RegExp]";
|
|
4721
|
-
},
|
|
4719
|
+
}, Rf = function(r) {
|
|
4722
4720
|
return !r || typeof r != "object" ? !1 : !!(r.constructor && r.constructor.isBuffer && r.constructor.isBuffer(r));
|
|
4723
|
-
},
|
|
4721
|
+
}, Mf = function(r, e) {
|
|
4724
4722
|
return [].concat(r, e);
|
|
4725
|
-
},
|
|
4723
|
+
}, Pf = function(r, e) {
|
|
4726
4724
|
if (Ve(r)) {
|
|
4727
4725
|
for (var t = [], i = 0; i < r.length; i += 1)
|
|
4728
4726
|
t.push(e(r[i]));
|
|
@@ -4731,16 +4729,16 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4731
4729
|
return e(r);
|
|
4732
4730
|
}, Lu = {
|
|
4733
4731
|
arrayToObject: Nu,
|
|
4734
|
-
assign:
|
|
4735
|
-
combine:
|
|
4736
|
-
compact:
|
|
4737
|
-
decode:
|
|
4738
|
-
encode:
|
|
4739
|
-
isBuffer:
|
|
4740
|
-
isRegExp:
|
|
4741
|
-
maybeMap:
|
|
4742
|
-
merge:
|
|
4743
|
-
}, Bu =
|
|
4732
|
+
assign: Ef,
|
|
4733
|
+
combine: Mf,
|
|
4734
|
+
compact: Sf,
|
|
4735
|
+
decode: Af,
|
|
4736
|
+
encode: wf,
|
|
4737
|
+
isBuffer: Rf,
|
|
4738
|
+
isRegExp: Of,
|
|
4739
|
+
maybeMap: Pf,
|
|
4740
|
+
merge: Tf
|
|
4741
|
+
}, Bu = _f, Qi = Lu, Jr = Ls, If = Object.prototype.hasOwnProperty, za = {
|
|
4744
4742
|
brackets: function(r) {
|
|
4745
4743
|
return r + "[]";
|
|
4746
4744
|
},
|
|
@@ -4751,9 +4749,9 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4751
4749
|
repeat: function(r) {
|
|
4752
4750
|
return r;
|
|
4753
4751
|
}
|
|
4754
|
-
}, _e = Array.isArray,
|
|
4755
|
-
|
|
4756
|
-
},
|
|
4752
|
+
}, _e = Array.isArray, Df = Array.prototype.push, Gu = function(r, e) {
|
|
4753
|
+
Df.apply(r, _e(e) ? e : [e]);
|
|
4754
|
+
}, Cf = Date.prototype.toISOString, Wa = Jr.default, Lt = {
|
|
4757
4755
|
addQueryPrefix: !1,
|
|
4758
4756
|
allowDots: !1,
|
|
4759
4757
|
charset: "utf-8",
|
|
@@ -4767,13 +4765,13 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4767
4765
|
// deprecated
|
|
4768
4766
|
indices: !1,
|
|
4769
4767
|
serializeDate: function(r) {
|
|
4770
|
-
return
|
|
4768
|
+
return Cf.call(r);
|
|
4771
4769
|
},
|
|
4772
4770
|
skipNulls: !1,
|
|
4773
4771
|
strictNullHandling: !1
|
|
4774
|
-
},
|
|
4772
|
+
}, Ff = function(r) {
|
|
4775
4773
|
return typeof r == "string" || typeof r == "number" || typeof r == "boolean" || typeof r == "symbol" || typeof r == "bigint";
|
|
4776
|
-
}, Wn = {},
|
|
4774
|
+
}, Wn = {}, Nf = function r(e, t, i, n, o, s, a, h, u, l, c, d, p, f, m, y) {
|
|
4777
4775
|
for (var _ = e, g = y, v = 0, x = !1; (g = g.get(Wn)) !== void 0 && !x; ) {
|
|
4778
4776
|
var T = g.get(e);
|
|
4779
4777
|
if (v += 1, typeof T < "u") {
|
|
@@ -4790,7 +4788,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4790
4788
|
return a && !f ? a(t, Lt.encoder, m, "key", d) : t;
|
|
4791
4789
|
_ = "";
|
|
4792
4790
|
}
|
|
4793
|
-
if (
|
|
4791
|
+
if (Ff(_) || Qi.isBuffer(_)) {
|
|
4794
4792
|
if (a) {
|
|
4795
4793
|
var S = f ? t : a(t, Lt.encoder, m, "key", d);
|
|
4796
4794
|
return [p(S) + "=" + p(a(_, Lt.encoder, m, "value", d))];
|
|
@@ -4836,7 +4834,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4836
4834
|
}
|
|
4837
4835
|
}
|
|
4838
4836
|
return O;
|
|
4839
|
-
},
|
|
4837
|
+
}, Lf = function(r) {
|
|
4840
4838
|
if (!r)
|
|
4841
4839
|
return Lt;
|
|
4842
4840
|
if (r.encoder !== null && typeof r.encoder < "u" && typeof r.encoder != "function")
|
|
@@ -4846,7 +4844,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4846
4844
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
4847
4845
|
var t = Jr.default;
|
|
4848
4846
|
if (typeof r.format < "u") {
|
|
4849
|
-
if (!
|
|
4847
|
+
if (!If.call(Jr.formatters, r.format))
|
|
4850
4848
|
throw new TypeError("Unknown format option provided.");
|
|
4851
4849
|
t = r.format;
|
|
4852
4850
|
}
|
|
@@ -4868,8 +4866,8 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4868
4866
|
sort: typeof r.sort == "function" ? r.sort : null,
|
|
4869
4867
|
strictNullHandling: typeof r.strictNullHandling == "boolean" ? r.strictNullHandling : Lt.strictNullHandling
|
|
4870
4868
|
};
|
|
4871
|
-
},
|
|
4872
|
-
var t = r, i =
|
|
4869
|
+
}, Bf = function(r, e) {
|
|
4870
|
+
var t = r, i = Lf(e), n, o;
|
|
4873
4871
|
typeof i.filter == "function" ? (o = i.filter, t = o("", t)) : _e(i.filter) && (o = i.filter, n = o);
|
|
4874
4872
|
var s = [];
|
|
4875
4873
|
if (typeof t != "object" || t === null)
|
|
@@ -4883,7 +4881,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4883
4881
|
n || (n = Object.keys(t)), i.sort && n.sort(i.sort);
|
|
4884
4882
|
for (var l = Bu(), c = 0; c < n.length; ++c) {
|
|
4885
4883
|
var d = n[c];
|
|
4886
|
-
i.skipNulls && t[d] === null || Gu(s,
|
|
4884
|
+
i.skipNulls && t[d] === null || Gu(s, Nf(
|
|
4887
4885
|
t[d],
|
|
4888
4886
|
d,
|
|
4889
4887
|
h,
|
|
@@ -4904,7 +4902,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4904
4902
|
}
|
|
4905
4903
|
var p = s.join(i.delimiter), f = i.addQueryPrefix === !0 ? "?" : "";
|
|
4906
4904
|
return i.charsetSentinel && (i.charset === "iso-8859-1" ? f += "utf8=%26%2310003%3B&" : f += "utf8=%E2%9C%93&"), p.length > 0 ? f + p : "";
|
|
4907
|
-
}, Rr = Lu, Uo = Object.prototype.hasOwnProperty,
|
|
4905
|
+
}, Rr = Lu, Uo = Object.prototype.hasOwnProperty, Gf = Array.isArray, Pt = {
|
|
4908
4906
|
allowDots: !1,
|
|
4909
4907
|
allowPrototypes: !1,
|
|
4910
4908
|
allowSparse: !1,
|
|
@@ -4921,17 +4919,17 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4921
4919
|
parseArrays: !0,
|
|
4922
4920
|
plainObjects: !1,
|
|
4923
4921
|
strictNullHandling: !1
|
|
4924
|
-
},
|
|
4922
|
+
}, Uf = function(r) {
|
|
4925
4923
|
return r.replace(/&#(\d+);/g, function(e, t) {
|
|
4926
4924
|
return String.fromCharCode(parseInt(t, 10));
|
|
4927
4925
|
});
|
|
4928
4926
|
}, Uu = function(r, e) {
|
|
4929
4927
|
return r && typeof r == "string" && e.comma && r.indexOf(",") > -1 ? r.split(",") : r;
|
|
4930
|
-
},
|
|
4928
|
+
}, kf = "utf8=%26%2310003%3B", Xf = "utf8=%E2%9C%93", jf = function(r, e) {
|
|
4931
4929
|
var t = { __proto__: null }, i = e.ignoreQueryPrefix ? r.replace(/^\?/, "") : r, n = e.parameterLimit === 1 / 0 ? void 0 : e.parameterLimit, o = i.split(e.delimiter, n), s = -1, a, h = e.charset;
|
|
4932
4930
|
if (e.charsetSentinel)
|
|
4933
4931
|
for (a = 0; a < o.length; ++a)
|
|
4934
|
-
o[a].indexOf("utf8=") === 0 && (o[a] ===
|
|
4932
|
+
o[a].indexOf("utf8=") === 0 && (o[a] === Xf ? h = "utf-8" : o[a] === kf && (h = "iso-8859-1"), s = a, a = o.length);
|
|
4935
4933
|
for (a = 0; a < o.length; ++a)
|
|
4936
4934
|
if (a !== s) {
|
|
4937
4935
|
var u = o[a], l = u.indexOf("]="), c = l === -1 ? u.indexOf("=") : l + 1, d, p;
|
|
@@ -4940,10 +4938,10 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4940
4938
|
function(f) {
|
|
4941
4939
|
return e.decoder(f, Pt.decoder, h, "value");
|
|
4942
4940
|
}
|
|
4943
|
-
)), p && e.interpretNumericEntities && h === "iso-8859-1" && (p =
|
|
4941
|
+
)), p && e.interpretNumericEntities && h === "iso-8859-1" && (p = Uf(p)), u.indexOf("[]=") > -1 && (p = Gf(p) ? [p] : p), Uo.call(t, d) ? t[d] = Rr.combine(t[d], p) : t[d] = p;
|
|
4944
4942
|
}
|
|
4945
4943
|
return t;
|
|
4946
|
-
},
|
|
4944
|
+
}, Hf = function(r, e, t, i) {
|
|
4947
4945
|
for (var n = i ? e : Uu(e, t), o = r.length - 1; o >= 0; --o) {
|
|
4948
4946
|
var s, a = r[o];
|
|
4949
4947
|
if (a === "[]" && t.parseArrays)
|
|
@@ -4956,7 +4954,7 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4956
4954
|
n = s;
|
|
4957
4955
|
}
|
|
4958
4956
|
return n;
|
|
4959
|
-
},
|
|
4957
|
+
}, Yf = function(r, e, t, i) {
|
|
4960
4958
|
if (r) {
|
|
4961
4959
|
var n = t.allowDots ? r.replace(/\.([^.[]+)/g, "[$1]") : r, o = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, a = t.depth > 0 && o.exec(n), h = a ? n.slice(0, a.index) : n, u = [];
|
|
4962
4960
|
if (h) {
|
|
@@ -4969,9 +4967,9 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4969
4967
|
return;
|
|
4970
4968
|
u.push(a[1]);
|
|
4971
4969
|
}
|
|
4972
|
-
return a && u.push("[" + n.slice(a.index) + "]"),
|
|
4970
|
+
return a && u.push("[" + n.slice(a.index) + "]"), Hf(u, e, t, i);
|
|
4973
4971
|
}
|
|
4974
|
-
},
|
|
4972
|
+
}, Vf = function(r) {
|
|
4975
4973
|
if (!r)
|
|
4976
4974
|
return Pt;
|
|
4977
4975
|
if (r.decoder !== null && r.decoder !== void 0 && typeof r.decoder != "function")
|
|
@@ -4998,24 +4996,24 @@ var Fs = rr, Nr = Rp, af = Xp, hf = Fs("%TypeError%"), Si = Fs("%WeakMap%", !0),
|
|
|
4998
4996
|
plainObjects: typeof r.plainObjects == "boolean" ? r.plainObjects : Pt.plainObjects,
|
|
4999
4997
|
strictNullHandling: typeof r.strictNullHandling == "boolean" ? r.strictNullHandling : Pt.strictNullHandling
|
|
5000
4998
|
};
|
|
5001
|
-
},
|
|
5002
|
-
var t =
|
|
4999
|
+
}, zf = function(r, e) {
|
|
5000
|
+
var t = Vf(e);
|
|
5003
5001
|
if (r === "" || r === null || typeof r > "u")
|
|
5004
5002
|
return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
|
|
5005
|
-
for (var i = typeof r == "string" ?
|
|
5006
|
-
var a = o[s], h =
|
|
5003
|
+
for (var i = typeof r == "string" ? jf(r, t) : r, n = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(i), s = 0; s < o.length; ++s) {
|
|
5004
|
+
var a = o[s], h = Yf(a, i[a], t, typeof r == "string");
|
|
5007
5005
|
n = Rr.merge(n, h, t);
|
|
5008
5006
|
}
|
|
5009
5007
|
return t.allowSparse === !0 ? n : Rr.compact(n);
|
|
5010
|
-
},
|
|
5011
|
-
formats:
|
|
5012
|
-
parse:
|
|
5013
|
-
stringify:
|
|
5014
|
-
},
|
|
5008
|
+
}, Wf = Bf, $f = zf, qf = Ls, Kf = {
|
|
5009
|
+
formats: qf,
|
|
5010
|
+
parse: $f,
|
|
5011
|
+
stringify: Wf
|
|
5012
|
+
}, Zf = Xd;
|
|
5015
5013
|
function Jt() {
|
|
5016
5014
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
5017
5015
|
}
|
|
5018
|
-
var
|
|
5016
|
+
var Jf = /^([a-z0-9.+-]+:)/i, Qf = /:[0-9]*$/, tm = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, em = [
|
|
5019
5017
|
"<",
|
|
5020
5018
|
">",
|
|
5021
5019
|
'"',
|
|
@@ -5025,14 +5023,14 @@ var Qf = /^([a-z0-9.+-]+:)/i, tm = /:[0-9]*$/, em = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5025
5023
|
`
|
|
5026
5024
|
`,
|
|
5027
5025
|
" "
|
|
5028
|
-
],
|
|
5026
|
+
], rm = [
|
|
5029
5027
|
"{",
|
|
5030
5028
|
"}",
|
|
5031
5029
|
"|",
|
|
5032
5030
|
"\\",
|
|
5033
5031
|
"^",
|
|
5034
5032
|
"`"
|
|
5035
|
-
].concat(
|
|
5033
|
+
].concat(em), ko = ["'"].concat(rm), $a = [
|
|
5036
5034
|
"%",
|
|
5037
5035
|
"/",
|
|
5038
5036
|
"?",
|
|
@@ -5042,7 +5040,7 @@ var Qf = /^([a-z0-9.+-]+:)/i, tm = /:[0-9]*$/, em = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5042
5040
|
"/",
|
|
5043
5041
|
"?",
|
|
5044
5042
|
"#"
|
|
5045
|
-
],
|
|
5043
|
+
], im = 255, Ka = /^[+a-z0-9A-Z_-]{0,63}$/, nm = /^([+a-z0-9A-Z_-]{0,63})(.*)$/, om = {
|
|
5046
5044
|
javascript: !0,
|
|
5047
5045
|
"javascript:": !0
|
|
5048
5046
|
}, Xo = {
|
|
@@ -5059,7 +5057,7 @@ var Qf = /^([a-z0-9.+-]+:)/i, tm = /:[0-9]*$/, em = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
5059
5057
|
"ftp:": !0,
|
|
5060
5058
|
"gopher:": !0,
|
|
5061
5059
|
"file:": !0
|
|
5062
|
-
}, jo =
|
|
5060
|
+
}, jo = Kf;
|
|
5063
5061
|
function An(r, e, t) {
|
|
5064
5062
|
if (r && typeof r == "object" && r instanceof Jt)
|
|
5065
5063
|
return r;
|
|
@@ -5073,11 +5071,11 @@ Jt.prototype.parse = function(r, e, t) {
|
|
|
5073
5071
|
o[0] = o[0].replace(s, "/"), r = o.join(n);
|
|
5074
5072
|
var a = r;
|
|
5075
5073
|
if (a = a.trim(), !t && r.split("#").length === 1) {
|
|
5076
|
-
var h =
|
|
5074
|
+
var h = tm.exec(a);
|
|
5077
5075
|
if (h)
|
|
5078
5076
|
return this.path = a, this.href = a, this.pathname = h[1], h[2] ? (this.search = h[2], e ? this.query = jo.parse(this.search.substr(1)) : this.query = this.search.substr(1)) : e && (this.search = "", this.query = {}), this;
|
|
5079
5077
|
}
|
|
5080
|
-
var u =
|
|
5078
|
+
var u = Jf.exec(a);
|
|
5081
5079
|
if (u) {
|
|
5082
5080
|
u = u[0];
|
|
5083
5081
|
var l = u.toLowerCase();
|
|
@@ -5107,17 +5105,17 @@ Jt.prototype.parse = function(r, e, t) {
|
|
|
5107
5105
|
for (var T = "", S = 0, O = x.length; S < O; S++)
|
|
5108
5106
|
x.charCodeAt(S) > 127 ? T += "x" : T += x[S];
|
|
5109
5107
|
if (!T.match(Ka)) {
|
|
5110
|
-
var A = g.slice(0, p), b = g.slice(p + 1), E = x.match(
|
|
5108
|
+
var A = g.slice(0, p), b = g.slice(p + 1), E = x.match(nm);
|
|
5111
5109
|
E && (A.push(E[1]), b.unshift(E[2])), b.length && (a = "/" + b.join(".") + a), this.hostname = A.join(".");
|
|
5112
5110
|
break;
|
|
5113
5111
|
}
|
|
5114
5112
|
}
|
|
5115
5113
|
}
|
|
5116
|
-
this.hostname.length >
|
|
5114
|
+
this.hostname.length > im ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), _ || (this.hostname = Zf.toASCII(this.hostname));
|
|
5117
5115
|
var R = this.port ? ":" + this.port : "", M = this.hostname || "";
|
|
5118
5116
|
this.host = M + R, this.href += this.host, _ && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), a[0] !== "/" && (a = "/" + a));
|
|
5119
5117
|
}
|
|
5120
|
-
if (!
|
|
5118
|
+
if (!om[l])
|
|
5121
5119
|
for (var p = 0, v = ko.length; p < v; p++) {
|
|
5122
5120
|
var P = ko[p];
|
|
5123
5121
|
if (a.indexOf(P) !== -1) {
|
|
@@ -5134,7 +5132,7 @@ Jt.prototype.parse = function(r, e, t) {
|
|
|
5134
5132
|
}
|
|
5135
5133
|
return this.href = this.format(), this;
|
|
5136
5134
|
};
|
|
5137
|
-
function
|
|
5135
|
+
function sm(r) {
|
|
5138
5136
|
return typeof r == "string" && (r = An(r)), r instanceof Jt ? r.format() : Jt.prototype.format.call(r);
|
|
5139
5137
|
}
|
|
5140
5138
|
Jt.prototype.format = function() {
|
|
@@ -5150,7 +5148,7 @@ Jt.prototype.format = function() {
|
|
|
5150
5148
|
return encodeURIComponent(a);
|
|
5151
5149
|
}), s = s.replace("#", "%23"), e + n + t + s + i;
|
|
5152
5150
|
};
|
|
5153
|
-
function
|
|
5151
|
+
function am(r, e) {
|
|
5154
5152
|
return An(r, !1, !0).resolve(e);
|
|
5155
5153
|
}
|
|
5156
5154
|
Jt.prototype.resolve = function(r) {
|
|
@@ -5224,10 +5222,10 @@ Jt.prototype.resolveObject = function(r) {
|
|
|
5224
5222
|
return y = y || t.host && g.length, y && !E && g.unshift(""), g.length > 0 ? t.pathname = g.join("/") : (t.pathname = null, t.path = null), (t.pathname !== null || t.search !== null) && (t.path = (t.pathname ? t.pathname : "") + (t.search ? t.search : "")), t.auth = r.auth || t.auth, t.slashes = t.slashes || r.slashes, t.href = t.format(), t;
|
|
5225
5223
|
};
|
|
5226
5224
|
Jt.prototype.parseHost = function() {
|
|
5227
|
-
var r = this.host, e =
|
|
5225
|
+
var r = this.host, e = Qf.exec(r);
|
|
5228
5226
|
e && (e = e[0], e !== ":" && (this.port = e.substr(1)), r = r.substr(0, r.length - e.length)), r && (this.hostname = r);
|
|
5229
5227
|
};
|
|
5230
|
-
var
|
|
5228
|
+
var hm = An, um = am, lm = sm;
|
|
5231
5229
|
/*!
|
|
5232
5230
|
* @pixi/utils - v6.5.10
|
|
5233
5231
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
|
@@ -5236,14 +5234,14 @@ var um = An, lm = hm, cm = am;
|
|
|
5236
5234
|
* http://www.opensource.org/licenses/mit-license
|
|
5237
5235
|
*/
|
|
5238
5236
|
var _r = {
|
|
5239
|
-
parse:
|
|
5240
|
-
format:
|
|
5241
|
-
resolve:
|
|
5237
|
+
parse: hm,
|
|
5238
|
+
format: lm,
|
|
5239
|
+
resolve: um
|
|
5242
5240
|
};
|
|
5243
5241
|
G.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
5244
5242
|
G.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT = !1;
|
|
5245
5243
|
var Za = !1, Ja = "6.5.10";
|
|
5246
|
-
function
|
|
5244
|
+
function cm(r) {
|
|
5247
5245
|
var e;
|
|
5248
5246
|
if (!Za) {
|
|
5249
5247
|
if (G.ADAPTER.getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
|
|
@@ -5269,7 +5267,7 @@ function dm(r) {
|
|
|
5269
5267
|
}
|
|
5270
5268
|
}
|
|
5271
5269
|
var $n;
|
|
5272
|
-
function
|
|
5270
|
+
function dm() {
|
|
5273
5271
|
return typeof $n > "u" && ($n = function() {
|
|
5274
5272
|
var r = {
|
|
5275
5273
|
stencil: !0,
|
|
@@ -5289,155 +5287,155 @@ function pm() {
|
|
|
5289
5287
|
}
|
|
5290
5288
|
}()), $n;
|
|
5291
5289
|
}
|
|
5292
|
-
var
|
|
5293
|
-
aliceblue:
|
|
5294
|
-
antiquewhite:
|
|
5295
|
-
aqua:
|
|
5296
|
-
aquamarine:
|
|
5297
|
-
azure:
|
|
5298
|
-
beige:
|
|
5299
|
-
bisque:
|
|
5300
|
-
black:
|
|
5301
|
-
blanchedalmond:
|
|
5302
|
-
blue:
|
|
5303
|
-
blueviolet:
|
|
5304
|
-
brown:
|
|
5305
|
-
burlywood:
|
|
5306
|
-
cadetblue:
|
|
5307
|
-
chartreuse:
|
|
5308
|
-
chocolate:
|
|
5309
|
-
coral:
|
|
5310
|
-
cornflowerblue:
|
|
5311
|
-
cornsilk:
|
|
5312
|
-
crimson:
|
|
5313
|
-
cyan:
|
|
5314
|
-
darkblue:
|
|
5315
|
-
darkcyan:
|
|
5316
|
-
darkgoldenrod:
|
|
5317
|
-
darkgray:
|
|
5318
|
-
darkgreen:
|
|
5319
|
-
darkgrey:
|
|
5320
|
-
darkkhaki:
|
|
5321
|
-
darkmagenta:
|
|
5322
|
-
darkolivegreen:
|
|
5323
|
-
darkorange:
|
|
5324
|
-
darkorchid:
|
|
5325
|
-
darkred:
|
|
5326
|
-
darksalmon:
|
|
5327
|
-
darkseagreen:
|
|
5328
|
-
darkslateblue:
|
|
5329
|
-
darkslategray:
|
|
5330
|
-
darkslategrey:
|
|
5331
|
-
darkturquoise:
|
|
5332
|
-
darkviolet:
|
|
5333
|
-
deeppink:
|
|
5334
|
-
deepskyblue:
|
|
5335
|
-
dimgray:
|
|
5336
|
-
dimgrey:
|
|
5337
|
-
dodgerblue:
|
|
5338
|
-
firebrick:
|
|
5339
|
-
floralwhite:
|
|
5340
|
-
forestgreen:
|
|
5341
|
-
fuchsia:
|
|
5342
|
-
gainsboro:
|
|
5343
|
-
ghostwhite:
|
|
5344
|
-
goldenrod:
|
|
5345
|
-
gold:
|
|
5346
|
-
gray:
|
|
5347
|
-
green:
|
|
5348
|
-
greenyellow:
|
|
5349
|
-
grey:
|
|
5350
|
-
honeydew:
|
|
5351
|
-
hotpink:
|
|
5352
|
-
indianred:
|
|
5353
|
-
indigo:
|
|
5354
|
-
ivory:
|
|
5355
|
-
khaki:
|
|
5356
|
-
lavenderblush:
|
|
5357
|
-
lavender:
|
|
5358
|
-
lawngreen:
|
|
5359
|
-
lemonchiffon:
|
|
5360
|
-
lightblue:
|
|
5361
|
-
lightcoral:
|
|
5362
|
-
lightcyan:
|
|
5363
|
-
lightgoldenrodyellow:
|
|
5364
|
-
lightgray:
|
|
5365
|
-
lightgreen:
|
|
5366
|
-
lightgrey:
|
|
5367
|
-
lightpink:
|
|
5368
|
-
lightsalmon:
|
|
5369
|
-
lightseagreen:
|
|
5370
|
-
lightskyblue:
|
|
5371
|
-
lightslategray:
|
|
5372
|
-
lightslategrey:
|
|
5373
|
-
lightsteelblue:
|
|
5374
|
-
lightyellow:
|
|
5375
|
-
lime:
|
|
5376
|
-
limegreen:
|
|
5377
|
-
linen:
|
|
5378
|
-
magenta:
|
|
5379
|
-
maroon:
|
|
5380
|
-
mediumaquamarine:
|
|
5381
|
-
mediumblue:
|
|
5382
|
-
mediumorchid:
|
|
5383
|
-
mediumpurple:
|
|
5384
|
-
mediumseagreen:
|
|
5385
|
-
mediumslateblue:
|
|
5386
|
-
mediumspringgreen:
|
|
5387
|
-
mediumturquoise:
|
|
5388
|
-
mediumvioletred:
|
|
5389
|
-
midnightblue:
|
|
5390
|
-
mintcream:
|
|
5391
|
-
mistyrose:
|
|
5392
|
-
moccasin:
|
|
5393
|
-
navajowhite:
|
|
5394
|
-
navy:
|
|
5395
|
-
oldlace:
|
|
5396
|
-
olive:
|
|
5397
|
-
olivedrab:
|
|
5398
|
-
orange:
|
|
5399
|
-
orangered:
|
|
5400
|
-
orchid:
|
|
5401
|
-
palegoldenrod:
|
|
5402
|
-
palegreen:
|
|
5403
|
-
paleturquoise:
|
|
5404
|
-
palevioletred:
|
|
5405
|
-
papayawhip:
|
|
5406
|
-
peachpuff:
|
|
5407
|
-
peru:
|
|
5408
|
-
pink:
|
|
5409
|
-
plum:
|
|
5410
|
-
powderblue:
|
|
5411
|
-
purple:
|
|
5412
|
-
rebeccapurple:
|
|
5413
|
-
red:
|
|
5414
|
-
rosybrown:
|
|
5415
|
-
royalblue:
|
|
5416
|
-
saddlebrown:
|
|
5417
|
-
salmon:
|
|
5418
|
-
sandybrown:
|
|
5419
|
-
seagreen:
|
|
5420
|
-
seashell:
|
|
5421
|
-
sienna:
|
|
5422
|
-
silver:
|
|
5423
|
-
skyblue:
|
|
5424
|
-
slateblue:
|
|
5425
|
-
slategray:
|
|
5426
|
-
slategrey:
|
|
5427
|
-
snow:
|
|
5428
|
-
springgreen:
|
|
5429
|
-
steelblue:
|
|
5430
|
-
tan:
|
|
5431
|
-
teal:
|
|
5432
|
-
thistle:
|
|
5433
|
-
tomato:
|
|
5434
|
-
turquoise:
|
|
5435
|
-
violet:
|
|
5436
|
-
wheat:
|
|
5437
|
-
white:
|
|
5438
|
-
whitesmoke:
|
|
5439
|
-
yellow:
|
|
5440
|
-
yellowgreen:
|
|
5290
|
+
var pm = "#f0f8ff", fm = "#faebd7", mm = "#00ffff", ym = "#7fffd4", _m = "#f0ffff", gm = "#f5f5dc", vm = "#ffe4c4", bm = "#000000", xm = "#ffebcd", Tm = "#0000ff", Em = "#8a2be2", Am = "#a52a2a", wm = "#deb887", Sm = "#5f9ea0", Om = "#7fff00", Rm = "#d2691e", Mm = "#ff7f50", Pm = "#6495ed", Im = "#fff8dc", Dm = "#dc143c", Cm = "#00ffff", Fm = "#00008b", Nm = "#008b8b", Lm = "#b8860b", Bm = "#a9a9a9", Gm = "#006400", Um = "#a9a9a9", km = "#bdb76b", Xm = "#8b008b", jm = "#556b2f", Hm = "#ff8c00", Ym = "#9932cc", Vm = "#8b0000", zm = "#e9967a", Wm = "#8fbc8f", $m = "#483d8b", qm = "#2f4f4f", Km = "#2f4f4f", Zm = "#00ced1", Jm = "#9400d3", Qm = "#ff1493", ty = "#00bfff", ey = "#696969", ry = "#696969", iy = "#1e90ff", ny = "#b22222", oy = "#fffaf0", sy = "#228b22", ay = "#ff00ff", hy = "#dcdcdc", uy = "#f8f8ff", ly = "#daa520", cy = "#ffd700", dy = "#808080", py = "#008000", fy = "#adff2f", my = "#808080", yy = "#f0fff0", _y = "#ff69b4", gy = "#cd5c5c", vy = "#4b0082", by = "#fffff0", xy = "#f0e68c", Ty = "#fff0f5", Ey = "#e6e6fa", Ay = "#7cfc00", wy = "#fffacd", Sy = "#add8e6", Oy = "#f08080", Ry = "#e0ffff", My = "#fafad2", Py = "#d3d3d3", Iy = "#90ee90", Dy = "#d3d3d3", Cy = "#ffb6c1", Fy = "#ffa07a", Ny = "#20b2aa", Ly = "#87cefa", By = "#778899", Gy = "#778899", Uy = "#b0c4de", ky = "#ffffe0", Xy = "#00ff00", jy = "#32cd32", Hy = "#faf0e6", Yy = "#ff00ff", Vy = "#800000", zy = "#66cdaa", Wy = "#0000cd", $y = "#ba55d3", qy = "#9370db", Ky = "#3cb371", Zy = "#7b68ee", Jy = "#00fa9a", Qy = "#48d1cc", t_ = "#c71585", e_ = "#191970", r_ = "#f5fffa", i_ = "#ffe4e1", n_ = "#ffe4b5", o_ = "#ffdead", s_ = "#000080", a_ = "#fdf5e6", h_ = "#808000", u_ = "#6b8e23", l_ = "#ffa500", c_ = "#ff4500", d_ = "#da70d6", p_ = "#eee8aa", f_ = "#98fb98", m_ = "#afeeee", y_ = "#db7093", __ = "#ffefd5", g_ = "#ffdab9", v_ = "#cd853f", b_ = "#ffc0cb", x_ = "#dda0dd", T_ = "#b0e0e6", E_ = "#800080", A_ = "#663399", w_ = "#ff0000", S_ = "#bc8f8f", O_ = "#4169e1", R_ = "#8b4513", M_ = "#fa8072", P_ = "#f4a460", I_ = "#2e8b57", D_ = "#fff5ee", C_ = "#a0522d", F_ = "#c0c0c0", N_ = "#87ceeb", L_ = "#6a5acd", B_ = "#708090", G_ = "#708090", U_ = "#fffafa", k_ = "#00ff7f", X_ = "#4682b4", j_ = "#d2b48c", H_ = "#008080", Y_ = "#d8bfd8", V_ = "#ff6347", z_ = "#40e0d0", W_ = "#ee82ee", $_ = "#f5deb3", q_ = "#ffffff", K_ = "#f5f5f5", Z_ = "#ffff00", J_ = "#9acd32", Q_ = {
|
|
5291
|
+
aliceblue: pm,
|
|
5292
|
+
antiquewhite: fm,
|
|
5293
|
+
aqua: mm,
|
|
5294
|
+
aquamarine: ym,
|
|
5295
|
+
azure: _m,
|
|
5296
|
+
beige: gm,
|
|
5297
|
+
bisque: vm,
|
|
5298
|
+
black: bm,
|
|
5299
|
+
blanchedalmond: xm,
|
|
5300
|
+
blue: Tm,
|
|
5301
|
+
blueviolet: Em,
|
|
5302
|
+
brown: Am,
|
|
5303
|
+
burlywood: wm,
|
|
5304
|
+
cadetblue: Sm,
|
|
5305
|
+
chartreuse: Om,
|
|
5306
|
+
chocolate: Rm,
|
|
5307
|
+
coral: Mm,
|
|
5308
|
+
cornflowerblue: Pm,
|
|
5309
|
+
cornsilk: Im,
|
|
5310
|
+
crimson: Dm,
|
|
5311
|
+
cyan: Cm,
|
|
5312
|
+
darkblue: Fm,
|
|
5313
|
+
darkcyan: Nm,
|
|
5314
|
+
darkgoldenrod: Lm,
|
|
5315
|
+
darkgray: Bm,
|
|
5316
|
+
darkgreen: Gm,
|
|
5317
|
+
darkgrey: Um,
|
|
5318
|
+
darkkhaki: km,
|
|
5319
|
+
darkmagenta: Xm,
|
|
5320
|
+
darkolivegreen: jm,
|
|
5321
|
+
darkorange: Hm,
|
|
5322
|
+
darkorchid: Ym,
|
|
5323
|
+
darkred: Vm,
|
|
5324
|
+
darksalmon: zm,
|
|
5325
|
+
darkseagreen: Wm,
|
|
5326
|
+
darkslateblue: $m,
|
|
5327
|
+
darkslategray: qm,
|
|
5328
|
+
darkslategrey: Km,
|
|
5329
|
+
darkturquoise: Zm,
|
|
5330
|
+
darkviolet: Jm,
|
|
5331
|
+
deeppink: Qm,
|
|
5332
|
+
deepskyblue: ty,
|
|
5333
|
+
dimgray: ey,
|
|
5334
|
+
dimgrey: ry,
|
|
5335
|
+
dodgerblue: iy,
|
|
5336
|
+
firebrick: ny,
|
|
5337
|
+
floralwhite: oy,
|
|
5338
|
+
forestgreen: sy,
|
|
5339
|
+
fuchsia: ay,
|
|
5340
|
+
gainsboro: hy,
|
|
5341
|
+
ghostwhite: uy,
|
|
5342
|
+
goldenrod: ly,
|
|
5343
|
+
gold: cy,
|
|
5344
|
+
gray: dy,
|
|
5345
|
+
green: py,
|
|
5346
|
+
greenyellow: fy,
|
|
5347
|
+
grey: my,
|
|
5348
|
+
honeydew: yy,
|
|
5349
|
+
hotpink: _y,
|
|
5350
|
+
indianred: gy,
|
|
5351
|
+
indigo: vy,
|
|
5352
|
+
ivory: by,
|
|
5353
|
+
khaki: xy,
|
|
5354
|
+
lavenderblush: Ty,
|
|
5355
|
+
lavender: Ey,
|
|
5356
|
+
lawngreen: Ay,
|
|
5357
|
+
lemonchiffon: wy,
|
|
5358
|
+
lightblue: Sy,
|
|
5359
|
+
lightcoral: Oy,
|
|
5360
|
+
lightcyan: Ry,
|
|
5361
|
+
lightgoldenrodyellow: My,
|
|
5362
|
+
lightgray: Py,
|
|
5363
|
+
lightgreen: Iy,
|
|
5364
|
+
lightgrey: Dy,
|
|
5365
|
+
lightpink: Cy,
|
|
5366
|
+
lightsalmon: Fy,
|
|
5367
|
+
lightseagreen: Ny,
|
|
5368
|
+
lightskyblue: Ly,
|
|
5369
|
+
lightslategray: By,
|
|
5370
|
+
lightslategrey: Gy,
|
|
5371
|
+
lightsteelblue: Uy,
|
|
5372
|
+
lightyellow: ky,
|
|
5373
|
+
lime: Xy,
|
|
5374
|
+
limegreen: jy,
|
|
5375
|
+
linen: Hy,
|
|
5376
|
+
magenta: Yy,
|
|
5377
|
+
maroon: Vy,
|
|
5378
|
+
mediumaquamarine: zy,
|
|
5379
|
+
mediumblue: Wy,
|
|
5380
|
+
mediumorchid: $y,
|
|
5381
|
+
mediumpurple: qy,
|
|
5382
|
+
mediumseagreen: Ky,
|
|
5383
|
+
mediumslateblue: Zy,
|
|
5384
|
+
mediumspringgreen: Jy,
|
|
5385
|
+
mediumturquoise: Qy,
|
|
5386
|
+
mediumvioletred: t_,
|
|
5387
|
+
midnightblue: e_,
|
|
5388
|
+
mintcream: r_,
|
|
5389
|
+
mistyrose: i_,
|
|
5390
|
+
moccasin: n_,
|
|
5391
|
+
navajowhite: o_,
|
|
5392
|
+
navy: s_,
|
|
5393
|
+
oldlace: a_,
|
|
5394
|
+
olive: h_,
|
|
5395
|
+
olivedrab: u_,
|
|
5396
|
+
orange: l_,
|
|
5397
|
+
orangered: c_,
|
|
5398
|
+
orchid: d_,
|
|
5399
|
+
palegoldenrod: p_,
|
|
5400
|
+
palegreen: f_,
|
|
5401
|
+
paleturquoise: m_,
|
|
5402
|
+
palevioletred: y_,
|
|
5403
|
+
papayawhip: __,
|
|
5404
|
+
peachpuff: g_,
|
|
5405
|
+
peru: v_,
|
|
5406
|
+
pink: b_,
|
|
5407
|
+
plum: x_,
|
|
5408
|
+
powderblue: T_,
|
|
5409
|
+
purple: E_,
|
|
5410
|
+
rebeccapurple: A_,
|
|
5411
|
+
red: w_,
|
|
5412
|
+
rosybrown: S_,
|
|
5413
|
+
royalblue: O_,
|
|
5414
|
+
saddlebrown: R_,
|
|
5415
|
+
salmon: M_,
|
|
5416
|
+
sandybrown: P_,
|
|
5417
|
+
seagreen: I_,
|
|
5418
|
+
seashell: D_,
|
|
5419
|
+
sienna: C_,
|
|
5420
|
+
silver: F_,
|
|
5421
|
+
skyblue: N_,
|
|
5422
|
+
slateblue: L_,
|
|
5423
|
+
slategray: B_,
|
|
5424
|
+
slategrey: G_,
|
|
5425
|
+
snow: U_,
|
|
5426
|
+
springgreen: k_,
|
|
5427
|
+
steelblue: X_,
|
|
5428
|
+
tan: j_,
|
|
5429
|
+
teal: H_,
|
|
5430
|
+
thistle: Y_,
|
|
5431
|
+
tomato: V_,
|
|
5432
|
+
turquoise: z_,
|
|
5433
|
+
violet: W_,
|
|
5434
|
+
wheat: $_,
|
|
5435
|
+
white: q_,
|
|
5436
|
+
whitesmoke: K_,
|
|
5437
|
+
yellow: Z_,
|
|
5438
|
+
yellowgreen: J_
|
|
5441
5439
|
};
|
|
5442
5440
|
function Mr(r, e) {
|
|
5443
5441
|
return e === void 0 && (e = []), e[0] = (r >> 16 & 255) / 255, e[1] = (r >> 8 & 255) / 255, e[2] = (r & 255) / 255, e;
|
|
@@ -5447,20 +5445,20 @@ function ku(r) {
|
|
|
5447
5445
|
return e = "000000".substring(0, 6 - e.length) + e, "#" + e;
|
|
5448
5446
|
}
|
|
5449
5447
|
function si(r) {
|
|
5450
|
-
return typeof r == "string" && (r =
|
|
5448
|
+
return typeof r == "string" && (r = Q_[r.toLowerCase()] || r, r[0] === "#" && (r = r.slice(1))), parseInt(r, 16);
|
|
5451
5449
|
}
|
|
5452
|
-
function
|
|
5450
|
+
function tg() {
|
|
5453
5451
|
for (var r = [], e = [], t = 0; t < 32; t++)
|
|
5454
5452
|
r[t] = t, e[t] = t;
|
|
5455
5453
|
r[X.NORMAL_NPM] = X.NORMAL, r[X.ADD_NPM] = X.ADD, r[X.SCREEN_NPM] = X.SCREEN, e[X.NORMAL] = X.NORMAL_NPM, e[X.ADD] = X.ADD_NPM, e[X.SCREEN] = X.SCREEN_NPM;
|
|
5456
5454
|
var i = [];
|
|
5457
5455
|
return i.push(e), i.push(r), i;
|
|
5458
5456
|
}
|
|
5459
|
-
var Xu =
|
|
5457
|
+
var Xu = tg();
|
|
5460
5458
|
function ju(r, e) {
|
|
5461
5459
|
return Xu[e ? 1 : 0][r];
|
|
5462
5460
|
}
|
|
5463
|
-
function
|
|
5461
|
+
function eg(r, e, t, i) {
|
|
5464
5462
|
return t = t || new Float32Array(4), i || i === void 0 ? (t[0] = r[0] * e, t[1] = r[1] * e, t[2] = r[2] * e) : (t[0] = r[0], t[1] = r[1], t[2] = r[2]), t[3] = e, t;
|
|
5465
5463
|
}
|
|
5466
5464
|
function Bs(r, e) {
|
|
@@ -5474,7 +5472,7 @@ function Bs(r, e) {
|
|
|
5474
5472
|
function Hu(r, e, t, i) {
|
|
5475
5473
|
return t = t || new Float32Array(4), t[0] = (r >> 16 & 255) / 255, t[1] = (r >> 8 & 255) / 255, t[2] = (r & 255) / 255, (i || i === void 0) && (t[0] *= e, t[1] *= e, t[2] *= e), t[3] = e, t;
|
|
5476
5474
|
}
|
|
5477
|
-
function
|
|
5475
|
+
function rg(r, e) {
|
|
5478
5476
|
e === void 0 && (e = null);
|
|
5479
5477
|
var t = r * 6;
|
|
5480
5478
|
if (e = e || new Uint16Array(t), e.length !== t)
|
|
@@ -5518,9 +5516,9 @@ function Ar(r, e, t) {
|
|
|
5518
5516
|
function gr(r) {
|
|
5519
5517
|
return r === 0 ? 0 : r < 0 ? -1 : 1;
|
|
5520
5518
|
}
|
|
5521
|
-
var
|
|
5519
|
+
var ig = 0;
|
|
5522
5520
|
function tr() {
|
|
5523
|
-
return ++
|
|
5521
|
+
return ++ig;
|
|
5524
5522
|
}
|
|
5525
5523
|
var eh = {};
|
|
5526
5524
|
function Qt(r, e, t) {
|
|
@@ -5575,7 +5573,7 @@ var rh = {}, ye = /* @__PURE__ */ Object.create(null), Le = /* @__PURE__ */ Obje
|
|
|
5575
5573
|
}), r;
|
|
5576
5574
|
}()
|
|
5577
5575
|
);
|
|
5578
|
-
function
|
|
5576
|
+
function ng(r) {
|
|
5579
5577
|
var e = r.width, t = r.height, i = r.getContext("2d", {
|
|
5580
5578
|
willReadFrequently: !0
|
|
5581
5579
|
}), n = i.getImageData(0, 0, e, t), o = n.data, s = o.length, a = {
|
|
@@ -5593,7 +5591,7 @@ function og(r) {
|
|
|
5593
5591
|
};
|
|
5594
5592
|
}
|
|
5595
5593
|
var Ri;
|
|
5596
|
-
function
|
|
5594
|
+
function og(r, e) {
|
|
5597
5595
|
if (e === void 0 && (e = globalThis.location), r.indexOf("data:") === 0)
|
|
5598
5596
|
return "";
|
|
5599
5597
|
e = e || globalThis.location, Ri || (Ri = document.createElement("a")), Ri.href = r;
|
|
@@ -5611,7 +5609,7 @@ function mn(r, e) {
|
|
|
5611
5609
|
* @pixi/math is licensed under the MIT License.
|
|
5612
5610
|
* http://www.opensource.org/licenses/mit-license
|
|
5613
5611
|
*/
|
|
5614
|
-
var yn = Math.PI * 2,
|
|
5612
|
+
var yn = Math.PI * 2, sg = 180 / Math.PI, ag = Math.PI / 180, Dt;
|
|
5615
5613
|
(function(r) {
|
|
5616
5614
|
r[r.POLY = 0] = "POLY", r[r.RECT = 1] = "RECT", r[r.CIRC = 2] = "CIRC", r[r.ELIP = 3] = "ELIP", r[r.RREC = 4] = "RREC";
|
|
5617
5615
|
})(Dt || (Dt = {}));
|
|
@@ -5722,7 +5720,7 @@ var _t = (
|
|
|
5722
5720
|
return "[@pixi/math:Rectangle x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + "]";
|
|
5723
5721
|
}, r;
|
|
5724
5722
|
}()
|
|
5725
|
-
),
|
|
5723
|
+
), hg = (
|
|
5726
5724
|
/** @class */
|
|
5727
5725
|
function() {
|
|
5728
5726
|
function r(e, t, i) {
|
|
@@ -5741,7 +5739,7 @@ var _t = (
|
|
|
5741
5739
|
return "[@pixi/math:Circle x=" + this.x + " y=" + this.y + " radius=" + this.radius + "]";
|
|
5742
5740
|
}, r;
|
|
5743
5741
|
}()
|
|
5744
|
-
),
|
|
5742
|
+
), ug = (
|
|
5745
5743
|
/** @class */
|
|
5746
5744
|
function() {
|
|
5747
5745
|
function r(e, t, i, n) {
|
|
@@ -5789,7 +5787,7 @@ var _t = (
|
|
|
5789
5787
|
}, "") + "]");
|
|
5790
5788
|
}, r;
|
|
5791
5789
|
}()
|
|
5792
|
-
),
|
|
5790
|
+
), lg = (
|
|
5793
5791
|
/** @class */
|
|
5794
5792
|
function() {
|
|
5795
5793
|
function r(e, t, i, n, o) {
|
|
@@ -5934,7 +5932,7 @@ var _t = (
|
|
|
5934
5932
|
}), r;
|
|
5935
5933
|
}()
|
|
5936
5934
|
), Xe = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], je = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], He = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], Ye = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], Ho = [], Vu = [], Pi = Math.sign;
|
|
5937
|
-
function
|
|
5935
|
+
function cg() {
|
|
5938
5936
|
for (var r = 0; r < 16; r++) {
|
|
5939
5937
|
var e = [];
|
|
5940
5938
|
Ho.push(e);
|
|
@@ -5950,7 +5948,7 @@ function dg() {
|
|
|
5950
5948
|
h.set(Xe[r], je[r], He[r], Ye[r], 0, 0), Vu.push(h);
|
|
5951
5949
|
}
|
|
5952
5950
|
}
|
|
5953
|
-
|
|
5951
|
+
cg();
|
|
5954
5952
|
var bt = {
|
|
5955
5953
|
/**
|
|
5956
5954
|
* | Rotation | Direction |
|
|
@@ -6506,10 +6504,10 @@ var St = (
|
|
|
6506
6504
|
* 'rotation' and 'angle' have the same effect on a display object; rotation is in radians, angle is in degrees.
|
|
6507
6505
|
*/
|
|
6508
6506
|
get: function() {
|
|
6509
|
-
return this.transform.rotation *
|
|
6507
|
+
return this.transform.rotation * sg;
|
|
6510
6508
|
},
|
|
6511
6509
|
set: function(t) {
|
|
6512
|
-
this.transform.rotation = t *
|
|
6510
|
+
this.transform.rotation = t * ag;
|
|
6513
6511
|
},
|
|
6514
6512
|
enumerable: !1,
|
|
6515
6513
|
configurable: !0
|
|
@@ -6597,7 +6595,7 @@ var St = (
|
|
|
6597
6595
|
}(St)
|
|
6598
6596
|
);
|
|
6599
6597
|
St.prototype.displayObjectUpdateTransform = St.prototype.updateTransform;
|
|
6600
|
-
function
|
|
6598
|
+
function dg(r, e) {
|
|
6601
6599
|
return r.zIndex === e.zIndex ? r._lastSortedIndex - e._lastSortedIndex : r.zIndex - e.zIndex;
|
|
6602
6600
|
}
|
|
6603
6601
|
var ce = (
|
|
@@ -6678,7 +6676,7 @@ var ce = (
|
|
|
6678
6676
|
var o = this.children[i];
|
|
6679
6677
|
o._lastSortedIndex = i, !t && o.zIndex !== 0 && (t = !0);
|
|
6680
6678
|
}
|
|
6681
|
-
t && this.children.length > 1 && this.children.sort(
|
|
6679
|
+
t && this.children.length > 1 && this.children.sort(dg), this.sortDirty = !1;
|
|
6682
6680
|
}, e.prototype.updateTransform = function() {
|
|
6683
6681
|
this.sortableChildren && this.sortDirty && this.sortChildren(), this._boundsID++, this.transform.updateTransform(this.parent.transform), this.worldAlpha = this.alpha * this.parent.worldAlpha;
|
|
6684
6682
|
for (var t = 0, i = this.children.length; t < i; ++t) {
|
|
@@ -7223,7 +7221,7 @@ var qn = (
|
|
|
7223
7221
|
configurable: !0
|
|
7224
7222
|
}), r;
|
|
7225
7223
|
}()
|
|
7226
|
-
),
|
|
7224
|
+
), pg = (
|
|
7227
7225
|
/** @class */
|
|
7228
7226
|
function() {
|
|
7229
7227
|
function r() {
|
|
@@ -7317,7 +7315,7 @@ var Wo = function() {
|
|
|
7317
7315
|
return r;
|
|
7318
7316
|
}, Wo.apply(this, arguments);
|
|
7319
7317
|
};
|
|
7320
|
-
function
|
|
7318
|
+
function fg(r, e) {
|
|
7321
7319
|
var t = {};
|
|
7322
7320
|
for (var i in r)
|
|
7323
7321
|
Object.prototype.hasOwnProperty.call(r, i) && e.indexOf(i) < 0 && (t[i] = r[i]);
|
|
@@ -7402,7 +7400,7 @@ var ai = (
|
|
|
7402
7400
|
return t instanceof Float32Array || t instanceof Uint8Array || t instanceof Uint32Array;
|
|
7403
7401
|
}, e;
|
|
7404
7402
|
}(ai)
|
|
7405
|
-
),
|
|
7403
|
+
), mg = {
|
|
7406
7404
|
scaleMode: ae.NEAREST,
|
|
7407
7405
|
format: F.RGBA,
|
|
7408
7406
|
alphaMode: ee.NPM
|
|
@@ -7523,7 +7521,7 @@ var ai = (
|
|
|
7523
7521
|
}, e.fromBuffer = function(t, i, n, o) {
|
|
7524
7522
|
t = t || new Float32Array(i * n * 4);
|
|
7525
7523
|
var s = new fi(t, { width: i, height: n }), a = t instanceof Float32Array ? k.FLOAT : k.UNSIGNED_BYTE;
|
|
7526
|
-
return new e(s, Object.assign({},
|
|
7524
|
+
return new e(s, Object.assign({}, mg, o || { width: i, height: n, type: a }));
|
|
7527
7525
|
}, e.addToCache = function(t, i) {
|
|
7528
7526
|
i && (t.textureCacheIds.indexOf(i) === -1 && t.textureCacheIds.push(i), Le[i] && console.warn("BaseTexture added to the cache with an id [" + i + "] that already had an entry"), Le[i] = t);
|
|
7529
7527
|
}, e.removeFromCache = function(t) {
|
|
@@ -7592,7 +7590,7 @@ var ai = (
|
|
|
7592
7590
|
}), this._load;
|
|
7593
7591
|
}, e;
|
|
7594
7592
|
}(ai)
|
|
7595
|
-
),
|
|
7593
|
+
), yg = (
|
|
7596
7594
|
/** @class */
|
|
7597
7595
|
function(r) {
|
|
7598
7596
|
mt(e, r);
|
|
@@ -7642,7 +7640,7 @@ var ai = (
|
|
|
7642
7640
|
return i = r.call(this, o, s) || this, i.source = t, i.noSubImage = !1, i;
|
|
7643
7641
|
}
|
|
7644
7642
|
return e.crossOrigin = function(t, i, n) {
|
|
7645
|
-
n === void 0 && i.indexOf("data:") !== 0 ? t.crossOrigin =
|
|
7643
|
+
n === void 0 && i.indexOf("data:") !== 0 ? t.crossOrigin = og(i) : n !== !1 && (t.crossOrigin = typeof n == "string" ? n : "anonymous");
|
|
7646
7644
|
}, e.prototype.upload = function(t, i, n, o) {
|
|
7647
7645
|
var s = t.gl, a = i.realWidth, h = i.realHeight;
|
|
7648
7646
|
if (o = o || this.source, o instanceof HTMLImageElement) {
|
|
@@ -7660,7 +7658,7 @@ var ai = (
|
|
|
7660
7658
|
this.source = null;
|
|
7661
7659
|
}, e;
|
|
7662
7660
|
}(ai)
|
|
7663
|
-
),
|
|
7661
|
+
), _g = (
|
|
7664
7662
|
/** @class */
|
|
7665
7663
|
function(r) {
|
|
7666
7664
|
mt(e, r);
|
|
@@ -7672,7 +7670,7 @@ var ai = (
|
|
|
7672
7670
|
return i && t instanceof i ? !0 : globalThis.HTMLCanvasElement && t instanceof HTMLCanvasElement;
|
|
7673
7671
|
}, e;
|
|
7674
7672
|
}(Me)
|
|
7675
|
-
),
|
|
7673
|
+
), gg = (
|
|
7676
7674
|
/** @class */
|
|
7677
7675
|
function(r) {
|
|
7678
7676
|
mt(e, r);
|
|
@@ -7773,7 +7771,7 @@ var ai = (
|
|
|
7773
7771
|
return typeof t == "string" || t instanceof HTMLImageElement;
|
|
7774
7772
|
}, e;
|
|
7775
7773
|
}(Me)
|
|
7776
|
-
),
|
|
7774
|
+
), vg = (
|
|
7777
7775
|
/** @class */
|
|
7778
7776
|
function(r) {
|
|
7779
7777
|
mt(e, r);
|
|
@@ -7817,7 +7815,7 @@ var ai = (
|
|
|
7817
7815
|
return i === "svg" || typeof t == "string" && t.startsWith("data:image/svg+xml") || typeof t == "string" && e.SVG_XML.test(t);
|
|
7818
7816
|
}, e.SVG_XML = /^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m, e.SVG_SIZE = /<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i, e;
|
|
7819
7817
|
}(Me)
|
|
7820
|
-
),
|
|
7818
|
+
), bg = (
|
|
7821
7819
|
/** @class */
|
|
7822
7820
|
function(r) {
|
|
7823
7821
|
mt(e, r);
|
|
@@ -7903,7 +7901,7 @@ var ai = (
|
|
|
7903
7901
|
m4v: "video/mp4"
|
|
7904
7902
|
}, e;
|
|
7905
7903
|
}(Me)
|
|
7906
|
-
),
|
|
7904
|
+
), xg = (
|
|
7907
7905
|
/** @class */
|
|
7908
7906
|
function(r) {
|
|
7909
7907
|
mt(e, r);
|
|
@@ -7915,8 +7913,8 @@ var ai = (
|
|
|
7915
7913
|
}, e;
|
|
7916
7914
|
}(Me)
|
|
7917
7915
|
);
|
|
7918
|
-
Vo.push(Ku,
|
|
7919
|
-
var
|
|
7916
|
+
Vo.push(Ku, xg, _g, bg, vg, fi, gg, yg);
|
|
7917
|
+
var Tg = (
|
|
7920
7918
|
/** @class */
|
|
7921
7919
|
function(r) {
|
|
7922
7920
|
mt(e, r);
|
|
@@ -7955,7 +7953,7 @@ var Eg = (
|
|
|
7955
7953
|
height: this.height
|
|
7956
7954
|
}), this.dirtyId++, this.dirtyFormat++, this;
|
|
7957
7955
|
}, r.prototype.addDepthTexture = function(e) {
|
|
7958
|
-
return this.depthTexture = e || new rt(new
|
|
7956
|
+
return this.depthTexture = e || new rt(new Tg(null, { width: this.width, height: this.height }), {
|
|
7959
7957
|
scaleMode: ae.NEAREST,
|
|
7960
7958
|
resolution: 1,
|
|
7961
7959
|
width: this.width,
|
|
@@ -8255,7 +8253,7 @@ var W = (
|
|
|
8255
8253
|
}), new e(new Zu(t));
|
|
8256
8254
|
}, e;
|
|
8257
8255
|
}(W)
|
|
8258
|
-
),
|
|
8256
|
+
), Eg = (
|
|
8259
8257
|
/** @class */
|
|
8260
8258
|
function() {
|
|
8261
8259
|
function r(e) {
|
|
@@ -8320,11 +8318,11 @@ var W = (
|
|
|
8320
8318
|
return new r(e, t, i, n, o);
|
|
8321
8319
|
}, r;
|
|
8322
8320
|
}()
|
|
8323
|
-
),
|
|
8321
|
+
), Ag = 0, Rt = (
|
|
8324
8322
|
/** @class */
|
|
8325
8323
|
function() {
|
|
8326
8324
|
function r(e, t, i) {
|
|
8327
|
-
t === void 0 && (t = !0), i === void 0 && (i = !1), this.data = e || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = i, this.static = t, this.id =
|
|
8325
|
+
t === void 0 && (t = !0), i === void 0 && (i = !1), this.data = e || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = i, this.static = t, this.id = Ag++, this.disposeRunner = new Ft("disposeBuffer");
|
|
8328
8326
|
}
|
|
8329
8327
|
return r.prototype.update = function(e) {
|
|
8330
8328
|
e instanceof Array && (e = new Float32Array(e)), this.data = e || this.data, this._updateID++;
|
|
@@ -8353,18 +8351,18 @@ var W = (
|
|
|
8353
8351
|
return e instanceof Array && (e = new Float32Array(e)), new r(e);
|
|
8354
8352
|
}, r;
|
|
8355
8353
|
}()
|
|
8356
|
-
),
|
|
8354
|
+
), wg = {
|
|
8357
8355
|
Float32Array,
|
|
8358
8356
|
Uint32Array,
|
|
8359
8357
|
Int32Array,
|
|
8360
8358
|
Uint8Array
|
|
8361
8359
|
};
|
|
8362
|
-
function
|
|
8360
|
+
function Sg(r, e) {
|
|
8363
8361
|
for (var t = 0, i = 0, n = {}, o = 0; o < r.length; o++)
|
|
8364
8362
|
i += e[o], t += r[o].length;
|
|
8365
8363
|
for (var s = new ArrayBuffer(t * 4), a = null, h = 0, o = 0; o < r.length; o++) {
|
|
8366
8364
|
var u = e[o], l = r[o], c = Yu(l);
|
|
8367
|
-
n[c] || (n[c] = new
|
|
8365
|
+
n[c] || (n[c] = new wg[c](s)), a = n[c];
|
|
8368
8366
|
for (var d = 0; d < l.length; d++) {
|
|
8369
8367
|
var p = (d / u | 0) * i + h, f = d % u;
|
|
8370
8368
|
a[p + f] = l[d];
|
|
@@ -8373,7 +8371,7 @@ function Og(r, e) {
|
|
|
8373
8371
|
}
|
|
8374
8372
|
return new Float32Array(s);
|
|
8375
8373
|
}
|
|
8376
|
-
var ah = { 5126: 4, 5123: 2, 5121: 1 },
|
|
8374
|
+
var ah = { 5126: 4, 5123: 2, 5121: 1 }, Og = 0, Rg = {
|
|
8377
8375
|
Float32Array,
|
|
8378
8376
|
Uint32Array,
|
|
8379
8377
|
Int32Array,
|
|
@@ -8383,7 +8381,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8383
8381
|
/** @class */
|
|
8384
8382
|
function() {
|
|
8385
8383
|
function r(e, t) {
|
|
8386
|
-
e === void 0 && (e = []), t === void 0 && (t = {}), this.buffers = e, this.indexBuffer = null, this.attributes = t, this.glVertexArrayObjects = {}, this.id =
|
|
8384
|
+
e === void 0 && (e = []), t === void 0 && (t = {}), this.buffers = e, this.indexBuffer = null, this.attributes = t, this.glVertexArrayObjects = {}, this.id = Og++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new Ft("disposeGeometry"), this.refCount = 0;
|
|
8387
8385
|
}
|
|
8388
8386
|
return r.prototype.addAttribute = function(e, t, i, n, o, s, a, h) {
|
|
8389
8387
|
if (i === void 0 && (i = 0), n === void 0 && (n = !1), h === void 0 && (h = !1), !t)
|
|
@@ -8413,7 +8411,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8413
8411
|
var o = this.attributes[n], s = this.buffers[o.buffer];
|
|
8414
8412
|
e.push(s.data), t.push(o.size * ah[o.type] / 4), o.buffer = 0;
|
|
8415
8413
|
}
|
|
8416
|
-
for (i.data =
|
|
8414
|
+
for (i.data = Sg(e, t), n = 0; n < this.buffers.length; n++)
|
|
8417
8415
|
this.buffers[n] !== this.indexBuffer && this.buffers[n].destroy();
|
|
8418
8416
|
return this.buffers = [i], this.indexBuffer && this.buffers.push(this.indexBuffer), this;
|
|
8419
8417
|
}, r.prototype.getSize = function() {
|
|
@@ -8441,7 +8439,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8441
8439
|
n[h] = n[h] || 0, n[h] += s.buffers[h].data.length, o[h] = 0;
|
|
8442
8440
|
}
|
|
8443
8441
|
for (var a = 0; a < s.buffers.length; a++)
|
|
8444
|
-
i[a] = new
|
|
8442
|
+
i[a] = new Rg[Yu(s.buffers[a].data)](n[a]), t.buffers[a] = new Rt(i[a]);
|
|
8445
8443
|
for (var a = 0; a < e.length; a++) {
|
|
8446
8444
|
s = e[a];
|
|
8447
8445
|
for (var h = 0; h < s.buffers.length; h++)
|
|
@@ -8467,7 +8465,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8467
8465
|
return t;
|
|
8468
8466
|
}, r;
|
|
8469
8467
|
}()
|
|
8470
|
-
),
|
|
8468
|
+
), Mg = (
|
|
8471
8469
|
/** @class */
|
|
8472
8470
|
function(r) {
|
|
8473
8471
|
mt(e, r);
|
|
@@ -8519,11 +8517,11 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8519
8517
|
return this.vertexBuffer._updateID++, this.uvBuffer._updateID++, this;
|
|
8520
8518
|
}, e;
|
|
8521
8519
|
}(mi)
|
|
8522
|
-
),
|
|
8520
|
+
), Pg = 0, Je = (
|
|
8523
8521
|
/** @class */
|
|
8524
8522
|
function() {
|
|
8525
8523
|
function r(e, t, i) {
|
|
8526
|
-
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id =
|
|
8524
|
+
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = Pg++, this.static = !!t, this.ubo = !!i, e instanceof Rt ? (this.buffer = e, this.buffer.type = le.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = e, this.ubo && (this.buffer = new Rt(new Float32Array(1)), this.buffer.type = le.UNIFORM_BUFFER, this.autoManage = !0));
|
|
8527
8525
|
}
|
|
8528
8526
|
return r.prototype.update = function() {
|
|
8529
8527
|
this.dirtyId++, !this.autoManage && this.buffer && this.buffer.update();
|
|
@@ -8538,7 +8536,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8538
8536
|
return new r(e, t ?? !0, !0);
|
|
8539
8537
|
}, r;
|
|
8540
8538
|
}()
|
|
8541
|
-
),
|
|
8539
|
+
), Ig = (
|
|
8542
8540
|
/** @class */
|
|
8543
8541
|
function() {
|
|
8544
8542
|
function r() {
|
|
@@ -8548,11 +8546,11 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8548
8546
|
this.target = null, this.filters = null, this.renderTexture = null;
|
|
8549
8547
|
}, r;
|
|
8550
8548
|
}()
|
|
8551
|
-
), Di = [new _t(), new _t(), new _t(), new _t()], Kn = new Mt(),
|
|
8549
|
+
), Di = [new _t(), new _t(), new _t(), new _t()], Kn = new Mt(), Dg = (
|
|
8552
8550
|
/** @class */
|
|
8553
8551
|
function() {
|
|
8554
8552
|
function r(e) {
|
|
8555
|
-
this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new
|
|
8553
|
+
this.renderer = e, this.defaultFilterStack = [{}], this.texturePool = new Eg(), this.texturePool.setScreenSize(e.view), this.statePool = [], this.quad = new Mg(), this.quadUv = new Qu(), this.tempRect = new it(), this.activeState = {}, this.globalUniforms = new Je({
|
|
8556
8554
|
outputFrame: new it(),
|
|
8557
8555
|
inputSize: new Float32Array(4),
|
|
8558
8556
|
inputPixel: new Float32Array(4),
|
|
@@ -8564,7 +8562,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8564
8562
|
}, !0), this.forceClear = !1, this.useMaxPadding = !1;
|
|
8565
8563
|
}
|
|
8566
8564
|
return r.prototype.push = function(e, t) {
|
|
8567
|
-
for (var i, n, o = this.renderer, s = this.defaultFilterStack, a = this.statePool.pop() || new
|
|
8565
|
+
for (var i, n, o = this.renderer, s = this.defaultFilterStack, a = this.statePool.pop() || new Ig(), h = this.renderer.renderTexture, u = t[0].resolution, l = t[0].multisample, c = t[0].padding, d = t[0].autoFit, p = (i = t[0].legacy) !== null && i !== void 0 ? i : !0, f = 1; f < t.length; f++) {
|
|
8568
8566
|
var m = t[f];
|
|
8569
8567
|
u = Math.min(u, m.resolution), l = Math.min(l, m.multisample), c = this.useMaxPadding ? Math.max(c, m.padding) : c + m.padding, d = d && m.autoFit, p = p || ((n = m.legacy) !== null && n !== void 0 ? n : !0);
|
|
8570
8568
|
}
|
|
@@ -8664,7 +8662,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8664
8662
|
}, r.prototype.render = function(e) {
|
|
8665
8663
|
}, r;
|
|
8666
8664
|
}()
|
|
8667
|
-
),
|
|
8665
|
+
), Cg = (
|
|
8668
8666
|
/** @class */
|
|
8669
8667
|
function() {
|
|
8670
8668
|
function r(e) {
|
|
@@ -8700,7 +8698,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8700
8698
|
this.renderer = null;
|
|
8701
8699
|
}, r;
|
|
8702
8700
|
}()
|
|
8703
|
-
), hh = 0,
|
|
8701
|
+
), hh = 0, Fg = (
|
|
8704
8702
|
/** @class */
|
|
8705
8703
|
function() {
|
|
8706
8704
|
function r(e) {
|
|
@@ -8778,7 +8776,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8778
8776
|
this.supports.uint32Indices = n, n || console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly");
|
|
8779
8777
|
}, r;
|
|
8780
8778
|
}()
|
|
8781
|
-
),
|
|
8779
|
+
), Ng = (
|
|
8782
8780
|
/** @class */
|
|
8783
8781
|
function() {
|
|
8784
8782
|
function r(e) {
|
|
@@ -8786,7 +8784,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8786
8784
|
}
|
|
8787
8785
|
return r;
|
|
8788
8786
|
}()
|
|
8789
|
-
),
|
|
8787
|
+
), Lg = new it(), Bg = (
|
|
8790
8788
|
/** @class */
|
|
8791
8789
|
function() {
|
|
8792
8790
|
function r(e) {
|
|
@@ -8840,7 +8838,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8840
8838
|
var s = this.gl;
|
|
8841
8839
|
s.clearColor(e, t, i, n), s.clear(o);
|
|
8842
8840
|
}, r.prototype.initFramebuffer = function(e) {
|
|
8843
|
-
var t = this.gl, i = new
|
|
8841
|
+
var t = this.gl, i = new Ng(t.createFramebuffer());
|
|
8844
8842
|
return i.multisample = this.detectSamples(e.multisample), e.glFramebuffers[this.CONTEXT_UID] = i, this.managedFramebuffers.push(e), e.disposeRunner.add(this), i;
|
|
8845
8843
|
}, r.prototype.resizeFramebuffer = function(e) {
|
|
8846
8844
|
var t = this.gl, i = e.glFramebuffers[this.CONTEXT_UID];
|
|
@@ -8892,7 +8890,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8892
8890
|
return;
|
|
8893
8891
|
u.blitFramebuffer || (u.blitFramebuffer = new $o(o.width, o.height), u.blitFramebuffer.addColorTexture(0, l)), e = u.blitFramebuffer, e.colorTextures[0] !== l && (e.colorTextures[0] = l, e.dirtyId++, e.dirtyFormat++), (e.width !== o.width || e.height !== o.height) && (e.width = o.width, e.height = o.height, e.dirtyId++, e.dirtySize++);
|
|
8894
8892
|
}
|
|
8895
|
-
t || (t =
|
|
8893
|
+
t || (t = Lg, t.width = o.width, t.height = o.height), i || (i = t);
|
|
8896
8894
|
var c = t.width === i.width && t.height === i.height;
|
|
8897
8895
|
this.bind(e), a.bindFramebuffer(a.READ_FRAMEBUFFER, u.framebuffer), a.blitFramebuffer(t.left, t.top, t.right, t.bottom, i.left, i.top, i.right, i.bottom, a.COLOR_BUFFER_BIT, c ? a.NEAREST : a.LINEAR);
|
|
8898
8896
|
}
|
|
@@ -8925,7 +8923,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
8925
8923
|
this.renderer = null;
|
|
8926
8924
|
}, r;
|
|
8927
8925
|
}()
|
|
8928
|
-
), Zn = { 5126: 4, 5123: 2, 5121: 1 },
|
|
8926
|
+
), Zn = { 5126: 4, 5123: 2, 5121: 1 }, Gg = (
|
|
8929
8927
|
/** @class */
|
|
8930
8928
|
function() {
|
|
8931
8929
|
function r(e) {
|
|
@@ -9060,7 +9058,7 @@ var ah = { 5126: 4, 5123: 2, 5121: 1 }, Rg = 0, Mg = {
|
|
|
9060
9058
|
this.renderer = null;
|
|
9061
9059
|
}, r;
|
|
9062
9060
|
}()
|
|
9063
|
-
),
|
|
9061
|
+
), Ug = (
|
|
9064
9062
|
/** @class */
|
|
9065
9063
|
function() {
|
|
9066
9064
|
function r(e) {
|
|
@@ -9108,7 +9106,7 @@ function lh(r, e) {
|
|
|
9108
9106
|
`);
|
|
9109
9107
|
a[0] = h, console.error(i), console.groupCollapsed("click to view full shader code"), console.warn.apply(console, a), console.groupEnd();
|
|
9110
9108
|
}
|
|
9111
|
-
function
|
|
9109
|
+
function kg(r, e, t, i) {
|
|
9112
9110
|
r.getProgramParameter(e, r.LINK_STATUS) || (r.getShaderParameter(t, r.COMPILE_STATUS) || lh(r, t), r.getShaderParameter(i, r.COMPILE_STATUS) || lh(r, i), console.error("PixiJS Error: Could not initialize shader."), r.getProgramInfoLog(e) !== "" && console.warn("PixiJS Warning: gl.getProgramInfoLog()", r.getProgramInfoLog(e)));
|
|
9113
9111
|
}
|
|
9114
9112
|
function Jn(r) {
|
|
@@ -9193,7 +9191,7 @@ function tl(r, e) {
|
|
|
9193
9191
|
return null;
|
|
9194
9192
|
}
|
|
9195
9193
|
var el = {}, Ur = el;
|
|
9196
|
-
function
|
|
9194
|
+
function Xg() {
|
|
9197
9195
|
if (Ur === el || Ur && Ur.isContextLost()) {
|
|
9198
9196
|
var r = G.ADAPTER.createCanvas(), e = void 0;
|
|
9199
9197
|
G.PREFER_ENV >= be.WEBGL2 && (e = r.getContext("webgl2", {})), e || (e = r.getContext("webgl", {}) || r.getContext("experimental-webgl", {}), e ? e.getExtension("WEBGL_draw_buffers") : e = null), Ur = e;
|
|
@@ -9201,10 +9199,10 @@ function jg() {
|
|
|
9201
9199
|
return Ur;
|
|
9202
9200
|
}
|
|
9203
9201
|
var Ci;
|
|
9204
|
-
function
|
|
9202
|
+
function jg() {
|
|
9205
9203
|
if (!Ci) {
|
|
9206
9204
|
Ci = Yt.MEDIUM;
|
|
9207
|
-
var r =
|
|
9205
|
+
var r = Xg();
|
|
9208
9206
|
if (r && r.getShaderPrecisionFormat) {
|
|
9209
9207
|
var e = r.getShaderPrecisionFormat(r.FRAGMENT_SHADER, r.HIGH_FLOAT);
|
|
9210
9208
|
Ci = e.precision ? Yt.HIGH : Yt.MEDIUM;
|
|
@@ -9221,7 +9219,7 @@ function ch(r, e, t) {
|
|
|
9221
9219
|
return r.replace("precision highp", "precision mediump");
|
|
9222
9220
|
return r;
|
|
9223
9221
|
}
|
|
9224
|
-
var
|
|
9222
|
+
var Hg = {
|
|
9225
9223
|
float: 1,
|
|
9226
9224
|
vec2: 2,
|
|
9227
9225
|
vec3: 3,
|
|
@@ -9244,7 +9242,7 @@ var Yg = {
|
|
|
9244
9242
|
sampler2D: 1
|
|
9245
9243
|
};
|
|
9246
9244
|
function rl(r) {
|
|
9247
|
-
return
|
|
9245
|
+
return Hg[r];
|
|
9248
9246
|
}
|
|
9249
9247
|
var Fi = null, dh = {
|
|
9250
9248
|
FLOAT: "float",
|
|
@@ -9445,7 +9443,7 @@ var wr = [
|
|
|
9445
9443
|
}`;
|
|
9446
9444
|
}
|
|
9447
9445
|
}
|
|
9448
|
-
],
|
|
9446
|
+
], Yg = {
|
|
9449
9447
|
float: `
|
|
9450
9448
|
if (cv !== v)
|
|
9451
9449
|
{
|
|
@@ -9604,7 +9602,7 @@ var wr = [
|
|
|
9604
9602
|
|
|
9605
9603
|
gl.uniform1i(location, v);
|
|
9606
9604
|
}`
|
|
9607
|
-
},
|
|
9605
|
+
}, Vg = {
|
|
9608
9606
|
float: "gl.uniform1fv(location, v)",
|
|
9609
9607
|
vec2: "gl.uniform2fv(location, v)",
|
|
9610
9608
|
vec3: "gl.uniform3fv(location, v)",
|
|
@@ -9628,7 +9626,7 @@ var wr = [
|
|
|
9628
9626
|
samplerCube: "gl.uniform1iv(location, v)",
|
|
9629
9627
|
sampler2DArray: "gl.uniform1iv(location, v)"
|
|
9630
9628
|
};
|
|
9631
|
-
function
|
|
9629
|
+
function zg(r, e) {
|
|
9632
9630
|
var t, i = [`
|
|
9633
9631
|
var v = null;
|
|
9634
9632
|
var cv = null;
|
|
@@ -9652,7 +9650,7 @@ function Wg(r, e) {
|
|
|
9652
9650
|
break;
|
|
9653
9651
|
}
|
|
9654
9652
|
if (!a) {
|
|
9655
|
-
var u = o.size === 1 && !o.isArray ?
|
|
9653
|
+
var u = o.size === 1 && !o.isArray ? Yg : Vg, l = u[o.type].replace("location", 'ud["' + n + '"].location');
|
|
9656
9654
|
i.push(`
|
|
9657
9655
|
cu = ud["` + n + `"];
|
|
9658
9656
|
cv = cu.value;
|
|
@@ -9663,7 +9661,7 @@ function Wg(r, e) {
|
|
|
9663
9661
|
return new Function("ud", "uv", "renderer", "syncData", i.join(`
|
|
9664
9662
|
`));
|
|
9665
9663
|
}
|
|
9666
|
-
var
|
|
9664
|
+
var Wg = [
|
|
9667
9665
|
"precision mediump float;",
|
|
9668
9666
|
"void main(void){",
|
|
9669
9667
|
"float test = 0.1;",
|
|
@@ -9672,17 +9670,17 @@ var $g = [
|
|
|
9672
9670
|
"}"
|
|
9673
9671
|
].join(`
|
|
9674
9672
|
`);
|
|
9675
|
-
function
|
|
9673
|
+
function $g(r) {
|
|
9676
9674
|
for (var e = "", t = 0; t < r; ++t)
|
|
9677
9675
|
t > 0 && (e += `
|
|
9678
9676
|
else `), t < r - 1 && (e += "if(test == " + t + ".0){}");
|
|
9679
9677
|
return e;
|
|
9680
9678
|
}
|
|
9681
|
-
function
|
|
9679
|
+
function qg(r, e) {
|
|
9682
9680
|
if (r === 0)
|
|
9683
9681
|
throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");
|
|
9684
9682
|
for (var t = e.createShader(e.FRAGMENT_SHADER); ; ) {
|
|
9685
|
-
var i =
|
|
9683
|
+
var i = Wg.replace(/%forloop%/gi, $g(r));
|
|
9686
9684
|
if (e.shaderSource(t, i), e.compileShader(t), !e.getShaderParameter(t, e.COMPILE_STATUS))
|
|
9687
9685
|
r = r / 2 | 0;
|
|
9688
9686
|
else
|
|
@@ -9691,7 +9689,7 @@ function Kg(r, e) {
|
|
|
9691
9689
|
return r;
|
|
9692
9690
|
}
|
|
9693
9691
|
var kr;
|
|
9694
|
-
function
|
|
9692
|
+
function Kg() {
|
|
9695
9693
|
if (typeof kr == "boolean")
|
|
9696
9694
|
return kr;
|
|
9697
9695
|
try {
|
|
@@ -9702,13 +9700,13 @@ function Zg() {
|
|
|
9702
9700
|
}
|
|
9703
9701
|
return kr;
|
|
9704
9702
|
}
|
|
9705
|
-
var
|
|
9703
|
+
var Zg = `varying vec2 vTextureCoord;
|
|
9706
9704
|
|
|
9707
9705
|
uniform sampler2D uSampler;
|
|
9708
9706
|
|
|
9709
9707
|
void main(void){
|
|
9710
9708
|
gl_FragColor *= texture2D(uSampler, vTextureCoord);
|
|
9711
|
-
}`,
|
|
9709
|
+
}`, Jg = `attribute vec2 aVertexPosition;
|
|
9712
9710
|
attribute vec2 aTextureCoord;
|
|
9713
9711
|
|
|
9714
9712
|
uniform mat3 projectionMatrix;
|
|
@@ -9719,13 +9717,13 @@ void main(void){
|
|
|
9719
9717
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
|
9720
9718
|
vTextureCoord = aTextureCoord;
|
|
9721
9719
|
}
|
|
9722
|
-
`,
|
|
9720
|
+
`, Qg = 0, Ni = {}, yi = (
|
|
9723
9721
|
/** @class */
|
|
9724
9722
|
function() {
|
|
9725
9723
|
function r(e, t, i) {
|
|
9726
|
-
i === void 0 && (i = "pixi-shader"), this.id =
|
|
9724
|
+
i === void 0 && (i = "pixi-shader"), this.id = Qg++, this.vertexSrc = e || r.defaultVertexSrc, this.fragmentSrc = t || r.defaultFragmentSrc, this.vertexSrc = this.vertexSrc.trim(), this.fragmentSrc = this.fragmentSrc.trim(), this.vertexSrc.substring(0, 8) !== "#version" && (i = i.replace(/\s+/g, "-"), Ni[i] ? (Ni[i]++, i += "-" + Ni[i]) : Ni[i] = 1, this.vertexSrc = "#define SHADER_NAME " + i + `
|
|
9727
9725
|
` + this.vertexSrc, this.fragmentSrc = "#define SHADER_NAME " + i + `
|
|
9728
|
-
` + this.fragmentSrc, this.vertexSrc = ch(this.vertexSrc, G.PRECISION_VERTEX, Yt.HIGH), this.fragmentSrc = ch(this.fragmentSrc, G.PRECISION_FRAGMENT,
|
|
9726
|
+
` + this.fragmentSrc, this.vertexSrc = ch(this.vertexSrc, G.PRECISION_VERTEX, Yt.HIGH), this.fragmentSrc = ch(this.fragmentSrc, G.PRECISION_FRAGMENT, jg())), this.glPrograms = {}, this.syncUniforms = null;
|
|
9729
9727
|
}
|
|
9730
9728
|
return Object.defineProperty(r, "defaultVertexSrc", {
|
|
9731
9729
|
/**
|
|
@@ -9733,7 +9731,7 @@ void main(void){
|
|
|
9733
9731
|
* @constant
|
|
9734
9732
|
*/
|
|
9735
9733
|
get: function() {
|
|
9736
|
-
return
|
|
9734
|
+
return Jg;
|
|
9737
9735
|
},
|
|
9738
9736
|
enumerable: !1,
|
|
9739
9737
|
configurable: !0
|
|
@@ -9743,7 +9741,7 @@ void main(void){
|
|
|
9743
9741
|
* @constant
|
|
9744
9742
|
*/
|
|
9745
9743
|
get: function() {
|
|
9746
|
-
return
|
|
9744
|
+
return Zg;
|
|
9747
9745
|
},
|
|
9748
9746
|
enumerable: !1,
|
|
9749
9747
|
configurable: !0
|
|
@@ -9902,14 +9900,14 @@ void main(void){
|
|
|
9902
9900
|
return e.depthTest = !1, e.blend = !0, e;
|
|
9903
9901
|
}, r;
|
|
9904
9902
|
}()
|
|
9905
|
-
),
|
|
9903
|
+
), tv = `varying vec2 vTextureCoord;
|
|
9906
9904
|
|
|
9907
9905
|
uniform sampler2D uSampler;
|
|
9908
9906
|
|
|
9909
9907
|
void main(void){
|
|
9910
9908
|
gl_FragColor = texture2D(uSampler, vTextureCoord);
|
|
9911
9909
|
}
|
|
9912
|
-
`,
|
|
9910
|
+
`, ev = `attribute vec2 aVertexPosition;
|
|
9913
9911
|
|
|
9914
9912
|
uniform mat3 projectionMatrix;
|
|
9915
9913
|
|
|
@@ -9977,7 +9975,7 @@ void main(void)
|
|
|
9977
9975
|
* @constant
|
|
9978
9976
|
*/
|
|
9979
9977
|
get: function() {
|
|
9980
|
-
return
|
|
9978
|
+
return ev;
|
|
9981
9979
|
},
|
|
9982
9980
|
enumerable: !1,
|
|
9983
9981
|
configurable: !0
|
|
@@ -9987,13 +9985,13 @@ void main(void)
|
|
|
9987
9985
|
* @constant
|
|
9988
9986
|
*/
|
|
9989
9987
|
get: function() {
|
|
9990
|
-
return
|
|
9988
|
+
return tv;
|
|
9991
9989
|
},
|
|
9992
9990
|
enumerable: !1,
|
|
9993
9991
|
configurable: !0
|
|
9994
9992
|
}), e;
|
|
9995
9993
|
}(Re)
|
|
9996
|
-
),
|
|
9994
|
+
), rv = `attribute vec2 aVertexPosition;
|
|
9997
9995
|
attribute vec2 aTextureCoord;
|
|
9998
9996
|
|
|
9999
9997
|
uniform mat3 projectionMatrix;
|
|
@@ -10009,7 +10007,7 @@ void main(void)
|
|
|
10009
10007
|
vTextureCoord = aTextureCoord;
|
|
10010
10008
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
|
10011
10009
|
}
|
|
10012
|
-
`,
|
|
10010
|
+
`, iv = `varying vec2 vMaskCoord;
|
|
10013
10011
|
varying vec2 vTextureCoord;
|
|
10014
10012
|
|
|
10015
10013
|
uniform sampler2D uSampler;
|
|
@@ -10070,13 +10068,13 @@ void main(void)
|
|
|
10070
10068
|
return a[0] = (t._frame.x + h + u) / s.width, a[1] = (t._frame.y + h + u) / s.height, a[2] = (t._frame.x + t._frame.width - h + u) / s.width, a[3] = (t._frame.y + t._frame.height - h + u) / s.height, this.uClampOffset[0] = u / s.realWidth, this.uClampOffset[1] = u / s.realHeight, this.isSimple = t._frame.width === s.width && t._frame.height === s.height && t.rotate === 0, !0;
|
|
10071
10069
|
}, r;
|
|
10072
10070
|
}()
|
|
10073
|
-
),
|
|
10071
|
+
), nv = (
|
|
10074
10072
|
/** @class */
|
|
10075
10073
|
function(r) {
|
|
10076
10074
|
mt(e, r);
|
|
10077
10075
|
function e(t, i, n) {
|
|
10078
10076
|
var o = this, s = null;
|
|
10079
|
-
return typeof t != "string" && i === void 0 && n === void 0 && (s = t, t = void 0, i = void 0, n = void 0), o = r.call(this, t ||
|
|
10077
|
+
return typeof t != "string" && i === void 0 && n === void 0 && (s = t, t = void 0, i = void 0, n = void 0), o = r.call(this, t || rv, i || iv, n) || this, o.maskSprite = s, o.maskMatrix = new Mt(), o;
|
|
10080
10078
|
}
|
|
10081
10079
|
return Object.defineProperty(e.prototype, "maskSprite", {
|
|
10082
10080
|
/**
|
|
@@ -10096,7 +10094,7 @@ void main(void)
|
|
|
10096
10094
|
a.valid && (a.uvMatrix || (a.uvMatrix = new Us(a, 0)), a.uvMatrix.update(), this.uniforms.npmAlpha = a.baseTexture.alphaMode ? 0 : 1, this.uniforms.mask = a, this.uniforms.otherMatrix = t.calculateSpriteMatrix(this.maskMatrix, s).prepend(a.uvMatrix.mapCoord), this.uniforms.alpha = s.worldAlpha, this.uniforms.maskClamp = a.uvMatrix.uClampFrame, t.applyFilter(this, i, n, o));
|
|
10097
10095
|
}, e;
|
|
10098
10096
|
}(Ne)
|
|
10099
|
-
),
|
|
10097
|
+
), ov = (
|
|
10100
10098
|
/** @class */
|
|
10101
10099
|
function() {
|
|
10102
10100
|
function r(e) {
|
|
@@ -10107,7 +10105,7 @@ void main(void)
|
|
|
10107
10105
|
}, r.prototype.push = function(e, t) {
|
|
10108
10106
|
var i = t;
|
|
10109
10107
|
if (!i.isMaskData) {
|
|
10110
|
-
var n = this.maskDataPool.pop() || new
|
|
10108
|
+
var n = this.maskDataPool.pop() || new Ug();
|
|
10111
10109
|
n.pooled = !0, n.maskObject = t, i = n;
|
|
10112
10110
|
}
|
|
10113
10111
|
var o = this.maskStack.length !== 0 ? this.maskStack[this.maskStack.length - 1] : null;
|
|
@@ -10155,7 +10153,7 @@ void main(void)
|
|
|
10155
10153
|
t ? t.isSprite ? e.type = Ot.SPRITE : this.enableScissor && this.renderer.scissor.testScissor(e) ? e.type = Ot.SCISSOR : e.type = Ot.STENCIL : e.type = Ot.COLOR;
|
|
10156
10154
|
}, r.prototype.pushSpriteMask = function(e) {
|
|
10157
10155
|
var t, i, n = e.maskObject, o = e._target, s = e._filters;
|
|
10158
|
-
s || (s = this.alphaMaskPool[this.alphaMaskIndex], s || (s = this.alphaMaskPool[this.alphaMaskIndex] = [new
|
|
10156
|
+
s || (s = this.alphaMaskPool[this.alphaMaskIndex], s || (s = this.alphaMaskPool[this.alphaMaskIndex] = [new nv()]));
|
|
10159
10157
|
var a = this.renderer, h = a.renderTexture, u, l;
|
|
10160
10158
|
if (h.current) {
|
|
10161
10159
|
var c = h.current;
|
|
@@ -10195,7 +10193,7 @@ void main(void)
|
|
|
10195
10193
|
this.renderer = null, this.maskStack = null;
|
|
10196
10194
|
}, r;
|
|
10197
10195
|
}()
|
|
10198
|
-
), fh = new Mt(), mh = [],
|
|
10196
|
+
), fh = new Mt(), mh = [], sv = (
|
|
10199
10197
|
/** @class */
|
|
10200
10198
|
function(r) {
|
|
10201
10199
|
mt(e, r);
|
|
@@ -10238,7 +10236,7 @@ void main(void)
|
|
|
10238
10236
|
this.renderer.renderTexture.current ? i = t.y : i = this.renderer.height - t.height - t.y, this.renderer.gl.scissor(t.x, i, t.width, t.height);
|
|
10239
10237
|
}, e;
|
|
10240
10238
|
}(nl)
|
|
10241
|
-
),
|
|
10239
|
+
), av = (
|
|
10242
10240
|
/** @class */
|
|
10243
10241
|
function(r) {
|
|
10244
10242
|
mt(e, r);
|
|
@@ -10267,7 +10265,7 @@ void main(void)
|
|
|
10267
10265
|
t.stencilFunc(t.EQUAL, this.getStackLength(), 4294967295), t.stencilOp(t.KEEP, t.KEEP, t.KEEP);
|
|
10268
10266
|
}, e;
|
|
10269
10267
|
}(nl)
|
|
10270
|
-
),
|
|
10268
|
+
), hv = (
|
|
10271
10269
|
/** @class */
|
|
10272
10270
|
function() {
|
|
10273
10271
|
function r(e) {
|
|
@@ -10285,7 +10283,7 @@ void main(void)
|
|
|
10285
10283
|
this.renderer = null;
|
|
10286
10284
|
}, r;
|
|
10287
10285
|
}()
|
|
10288
|
-
), Be = new it(), Xr = new it(),
|
|
10286
|
+
), Be = new it(), Xr = new it(), uv = (
|
|
10289
10287
|
/** @class */
|
|
10290
10288
|
function() {
|
|
10291
10289
|
function r(e) {
|
|
@@ -10316,10 +10314,10 @@ void main(void)
|
|
|
10316
10314
|
}, r;
|
|
10317
10315
|
}()
|
|
10318
10316
|
);
|
|
10319
|
-
function
|
|
10317
|
+
function lv(r, e, t, i, n) {
|
|
10320
10318
|
t.buffer.update(n);
|
|
10321
10319
|
}
|
|
10322
|
-
var
|
|
10320
|
+
var cv = {
|
|
10323
10321
|
float: `
|
|
10324
10322
|
data[offset] = v;
|
|
10325
10323
|
`,
|
|
@@ -10386,7 +10384,7 @@ var dv = {
|
|
|
10386
10384
|
mat3: 16 * 3,
|
|
10387
10385
|
mat4: 16 * 4
|
|
10388
10386
|
};
|
|
10389
|
-
function
|
|
10387
|
+
function dv(r) {
|
|
10390
10388
|
for (var e = r.map(function(h) {
|
|
10391
10389
|
return {
|
|
10392
10390
|
data: h,
|
|
@@ -10404,7 +10402,7 @@ function pv(r) {
|
|
|
10404
10402
|
}
|
|
10405
10403
|
return n = Math.ceil(n / 16) * 16, { uboElements: e, size: n };
|
|
10406
10404
|
}
|
|
10407
|
-
function
|
|
10405
|
+
function pv(r, e) {
|
|
10408
10406
|
var t = [];
|
|
10409
10407
|
for (var i in r)
|
|
10410
10408
|
e[i] && t.push(e[i]);
|
|
@@ -10412,10 +10410,10 @@ function fv(r, e) {
|
|
|
10412
10410
|
return n.index - o.index;
|
|
10413
10411
|
}), t;
|
|
10414
10412
|
}
|
|
10415
|
-
function
|
|
10413
|
+
function fv(r, e) {
|
|
10416
10414
|
if (!r.autoManage)
|
|
10417
|
-
return { size: 0, syncFunc:
|
|
10418
|
-
for (var t =
|
|
10415
|
+
return { size: 0, syncFunc: lv };
|
|
10416
|
+
for (var t = pv(r.uniforms, e), i = dv(t), n = i.uboElements, o = i.size, s = [`
|
|
10419
10417
|
var v = null;
|
|
10420
10418
|
var v2 = null;
|
|
10421
10419
|
var cv = null;
|
|
@@ -10452,7 +10450,7 @@ function mv(r, e) {
|
|
|
10452
10450
|
|
|
10453
10451
|
`);
|
|
10454
10452
|
} else {
|
|
10455
|
-
var g =
|
|
10453
|
+
var g = cv[h.data.type];
|
|
10456
10454
|
s.push(`
|
|
10457
10455
|
cv = ud.` + l + `.value;
|
|
10458
10456
|
v = uv.` + l + `;
|
|
@@ -10470,7 +10468,7 @@ function mv(r, e) {
|
|
|
10470
10468
|
`))
|
|
10471
10469
|
};
|
|
10472
10470
|
}
|
|
10473
|
-
var
|
|
10471
|
+
var mv = (
|
|
10474
10472
|
/** @class */
|
|
10475
10473
|
function() {
|
|
10476
10474
|
function r(e, t) {
|
|
@@ -10481,7 +10479,7 @@ var yv = (
|
|
|
10481
10479
|
}, r;
|
|
10482
10480
|
}()
|
|
10483
10481
|
);
|
|
10484
|
-
function
|
|
10482
|
+
function yv(r, e) {
|
|
10485
10483
|
for (var t = {}, i = e.getProgramParameter(r, e.ACTIVE_ATTRIBUTES), n = 0; n < i; n++) {
|
|
10486
10484
|
var o = e.getActiveAttrib(r, n);
|
|
10487
10485
|
if (o.name.indexOf("gl_") !== 0) {
|
|
@@ -10496,7 +10494,7 @@ function _v(r, e) {
|
|
|
10496
10494
|
}
|
|
10497
10495
|
return t;
|
|
10498
10496
|
}
|
|
10499
|
-
function
|
|
10497
|
+
function _v(r, e) {
|
|
10500
10498
|
for (var t = {}, i = e.getProgramParameter(r, e.ACTIVE_UNIFORMS), n = 0; n < i; n++) {
|
|
10501
10499
|
var o = e.getActiveUniform(r, n), s = o.name.replace(/\[.*?\]$/, ""), a = !!o.name.match(/\[.*?\]$/), h = il(e, o.type);
|
|
10502
10500
|
t[s] = {
|
|
@@ -10510,9 +10508,9 @@ function gv(r, e) {
|
|
|
10510
10508
|
}
|
|
10511
10509
|
return t;
|
|
10512
10510
|
}
|
|
10513
|
-
function
|
|
10511
|
+
function gv(r, e) {
|
|
10514
10512
|
var t = uh(r, r.VERTEX_SHADER, e.vertexSrc), i = uh(r, r.FRAGMENT_SHADER, e.fragmentSrc), n = r.createProgram();
|
|
10515
|
-
if (r.attachShader(n, t), r.attachShader(n, i), r.linkProgram(n), r.getProgramParameter(n, r.LINK_STATUS) ||
|
|
10513
|
+
if (r.attachShader(n, t), r.attachShader(n, i), r.linkProgram(n), r.getProgramParameter(n, r.LINK_STATUS) || kg(r, n, t, i), e.attributeData = yv(n, r), e.uniformData = _v(n, r), !/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)) {
|
|
10516
10514
|
var o = Object.keys(e.attributeData);
|
|
10517
10515
|
o.sort(function(l, c) {
|
|
10518
10516
|
return l > c ? 1 : -1;
|
|
@@ -10530,17 +10528,17 @@ function vv(r, e) {
|
|
|
10530
10528
|
value: tl(h.type, h.size)
|
|
10531
10529
|
};
|
|
10532
10530
|
}
|
|
10533
|
-
var u = new
|
|
10531
|
+
var u = new mv(n, a);
|
|
10534
10532
|
return u;
|
|
10535
10533
|
}
|
|
10536
|
-
var
|
|
10534
|
+
var vv = 0, Li = { textureCount: 0, uboCount: 0 }, bv = (
|
|
10537
10535
|
/** @class */
|
|
10538
10536
|
function() {
|
|
10539
10537
|
function r(e) {
|
|
10540
|
-
this.destroyed = !1, this.renderer = e, this.systemCheck(), this.gl = null, this.shader = null, this.program = null, this.cache = {}, this._uboCache = {}, this.id =
|
|
10538
|
+
this.destroyed = !1, this.renderer = e, this.systemCheck(), this.gl = null, this.shader = null, this.program = null, this.cache = {}, this._uboCache = {}, this.id = vv++;
|
|
10541
10539
|
}
|
|
10542
10540
|
return r.prototype.systemCheck = function() {
|
|
10543
|
-
if (!
|
|
10541
|
+
if (!Kg())
|
|
10544
10542
|
throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.");
|
|
10545
10543
|
}, r.prototype.contextChange = function(e) {
|
|
10546
10544
|
this.gl = e, this.reset();
|
|
@@ -10559,7 +10557,7 @@ var bv = 0, Li = { textureCount: 0, uboCount: 0 }, xv = (
|
|
|
10559
10557
|
n(t.uniformData, e.uniforms, this.renderer, i);
|
|
10560
10558
|
}, r.prototype.createSyncGroups = function(e) {
|
|
10561
10559
|
var t = this.getSignature(e, this.shader.program.uniformData, "u");
|
|
10562
|
-
return this.cache[t] || (this.cache[t] =
|
|
10560
|
+
return this.cache[t] || (this.cache[t] = zg(e, this.shader.program.uniformData)), e.syncUniforms[this.shader.program.id] = this.cache[t], e.syncUniforms[this.shader.program.id];
|
|
10563
10561
|
}, r.prototype.syncUniformBufferGroup = function(e, t) {
|
|
10564
10562
|
var i = this.getGlProgram();
|
|
10565
10563
|
if (!e.static || e.dirtyId !== 0 || !i.uniformGroups[e.id]) {
|
|
@@ -10574,7 +10572,7 @@ var bv = 0, Li = { textureCount: 0, uboCount: 0 }, xv = (
|
|
|
10574
10572
|
var o = this.gl.getUniformBlockIndex(t.program, i);
|
|
10575
10573
|
t.uniformBufferBindings[i] = this.shader.uniformBindCount, n.uniformBlockBinding(t.program, o, this.shader.uniformBindCount), this.shader.uniformBindCount++;
|
|
10576
10574
|
var s = this.getSignature(e, this.shader.program.uniformData, "ubo"), a = this._uboCache[s];
|
|
10577
|
-
if (a || (a = this._uboCache[s] =
|
|
10575
|
+
if (a || (a = this._uboCache[s] = fv(e, this.shader.program.uniformData)), e.autoManage) {
|
|
10578
10576
|
var h = new Float32Array(a.size / 4);
|
|
10579
10577
|
e.buffer.update(h);
|
|
10580
10578
|
}
|
|
@@ -10587,7 +10585,7 @@ var bv = 0, Li = { textureCount: 0, uboCount: 0 }, xv = (
|
|
|
10587
10585
|
}, r.prototype.getGlProgram = function() {
|
|
10588
10586
|
return this.shader ? this.shader.program.glPrograms[this.renderer.CONTEXT_UID] : null;
|
|
10589
10587
|
}, r.prototype.generateProgram = function(e) {
|
|
10590
|
-
var t = this.gl, i = e.program, n =
|
|
10588
|
+
var t = this.gl, i = e.program, n = gv(t, i);
|
|
10591
10589
|
return i.glPrograms[this.renderer.CONTEXT_UID] = n, n;
|
|
10592
10590
|
}, r.prototype.reset = function() {
|
|
10593
10591
|
this.program = null, this.shader = null;
|
|
@@ -10598,17 +10596,17 @@ var bv = 0, Li = { textureCount: 0, uboCount: 0 }, xv = (
|
|
|
10598
10596
|
}, r;
|
|
10599
10597
|
}()
|
|
10600
10598
|
);
|
|
10601
|
-
function
|
|
10599
|
+
function xv(r, e) {
|
|
10602
10600
|
return e === void 0 && (e = []), e[X.NORMAL] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.ADD] = [r.ONE, r.ONE], e[X.MULTIPLY] = [r.DST_COLOR, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.SCREEN] = [r.ONE, r.ONE_MINUS_SRC_COLOR, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.OVERLAY] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.DARKEN] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.LIGHTEN] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.COLOR_DODGE] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.COLOR_BURN] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.HARD_LIGHT] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.SOFT_LIGHT] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.DIFFERENCE] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.EXCLUSION] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.HUE] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.SATURATION] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.COLOR] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.LUMINOSITY] = [r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.NONE] = [0, 0], e[X.NORMAL_NPM] = [r.SRC_ALPHA, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.ADD_NPM] = [r.SRC_ALPHA, r.ONE, r.ONE, r.ONE], e[X.SCREEN_NPM] = [r.SRC_ALPHA, r.ONE_MINUS_SRC_COLOR, r.ONE, r.ONE_MINUS_SRC_ALPHA], e[X.SRC_IN] = [r.DST_ALPHA, r.ZERO], e[X.SRC_OUT] = [r.ONE_MINUS_DST_ALPHA, r.ZERO], e[X.SRC_ATOP] = [r.DST_ALPHA, r.ONE_MINUS_SRC_ALPHA], e[X.DST_OVER] = [r.ONE_MINUS_DST_ALPHA, r.ONE], e[X.DST_IN] = [r.ZERO, r.SRC_ALPHA], e[X.DST_OUT] = [r.ZERO, r.ONE_MINUS_SRC_ALPHA], e[X.DST_ATOP] = [r.ONE_MINUS_DST_ALPHA, r.SRC_ALPHA], e[X.XOR] = [r.ONE_MINUS_DST_ALPHA, r.ONE_MINUS_SRC_ALPHA], e[X.SUBTRACT] = [r.ONE, r.ONE, r.ONE, r.ONE, r.FUNC_REVERSE_SUBTRACT, r.FUNC_ADD], e;
|
|
10603
10601
|
}
|
|
10604
|
-
var
|
|
10602
|
+
var Tv = 0, Ev = 1, Av = 2, wv = 3, Sv = 4, Ov = 5, Rv = (
|
|
10605
10603
|
/** @class */
|
|
10606
10604
|
function() {
|
|
10607
10605
|
function r() {
|
|
10608
|
-
this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = X.NONE, this._blendEq = !1, this.map = [], this.map[
|
|
10606
|
+
this.gl = null, this.stateId = 0, this.polygonOffset = 0, this.blendMode = X.NONE, this._blendEq = !1, this.map = [], this.map[Tv] = this.setBlend, this.map[Ev] = this.setOffset, this.map[Av] = this.setCullFace, this.map[wv] = this.setDepthTest, this.map[Sv] = this.setFrontFace, this.map[Ov] = this.setDepthMask, this.checks = [], this.defaultState = new ir(), this.defaultState.blend = !0;
|
|
10609
10607
|
}
|
|
10610
10608
|
return r.prototype.contextChange = function(e) {
|
|
10611
|
-
this.gl = e, this.blendModes =
|
|
10609
|
+
this.gl = e, this.blendModes = xv(e), this.set(this.defaultState), this.reset();
|
|
10612
10610
|
}, r.prototype.set = function(e) {
|
|
10613
10611
|
if (e = e || this.defaultState, this.stateId !== e.data) {
|
|
10614
10612
|
for (var t = this.stateId ^ e.data, i = 0; t; )
|
|
@@ -10657,7 +10655,7 @@ var Ev = 0, Av = 1, wv = 2, Sv = 3, Ov = 4, Rv = 5, Mv = (
|
|
|
10657
10655
|
this.gl = null;
|
|
10658
10656
|
}, r;
|
|
10659
10657
|
}()
|
|
10660
|
-
),
|
|
10658
|
+
), Mv = (
|
|
10661
10659
|
/** @class */
|
|
10662
10660
|
function() {
|
|
10663
10661
|
function r(e) {
|
|
@@ -10685,7 +10683,7 @@ var Ev = 0, Av = 1, wv = 2, Sv = 3, Ov = 4, Rv = 5, Mv = (
|
|
|
10685
10683
|
}, r;
|
|
10686
10684
|
}()
|
|
10687
10685
|
);
|
|
10688
|
-
function
|
|
10686
|
+
function Pv(r) {
|
|
10689
10687
|
var e, t, i, n, o, s, a, h, u, l, c, d, p, f, m, y, _, g, v, x, T, S, O;
|
|
10690
10688
|
return "WebGL2RenderingContext" in globalThis && r instanceof globalThis.WebGL2RenderingContext ? O = (e = {}, e[k.UNSIGNED_BYTE] = (t = {}, t[F.RGBA] = r.RGBA8, t[F.RGB] = r.RGB8, t[F.RG] = r.RG8, t[F.RED] = r.R8, t[F.RGBA_INTEGER] = r.RGBA8UI, t[F.RGB_INTEGER] = r.RGB8UI, t[F.RG_INTEGER] = r.RG8UI, t[F.RED_INTEGER] = r.R8UI, t[F.ALPHA] = r.ALPHA, t[F.LUMINANCE] = r.LUMINANCE, t[F.LUMINANCE_ALPHA] = r.LUMINANCE_ALPHA, t), e[k.BYTE] = (i = {}, i[F.RGBA] = r.RGBA8_SNORM, i[F.RGB] = r.RGB8_SNORM, i[F.RG] = r.RG8_SNORM, i[F.RED] = r.R8_SNORM, i[F.RGBA_INTEGER] = r.RGBA8I, i[F.RGB_INTEGER] = r.RGB8I, i[F.RG_INTEGER] = r.RG8I, i[F.RED_INTEGER] = r.R8I, i), e[k.UNSIGNED_SHORT] = (n = {}, n[F.RGBA_INTEGER] = r.RGBA16UI, n[F.RGB_INTEGER] = r.RGB16UI, n[F.RG_INTEGER] = r.RG16UI, n[F.RED_INTEGER] = r.R16UI, n[F.DEPTH_COMPONENT] = r.DEPTH_COMPONENT16, n), e[k.SHORT] = (o = {}, o[F.RGBA_INTEGER] = r.RGBA16I, o[F.RGB_INTEGER] = r.RGB16I, o[F.RG_INTEGER] = r.RG16I, o[F.RED_INTEGER] = r.R16I, o), e[k.UNSIGNED_INT] = (s = {}, s[F.RGBA_INTEGER] = r.RGBA32UI, s[F.RGB_INTEGER] = r.RGB32UI, s[F.RG_INTEGER] = r.RG32UI, s[F.RED_INTEGER] = r.R32UI, s[F.DEPTH_COMPONENT] = r.DEPTH_COMPONENT24, s), e[k.INT] = (a = {}, a[F.RGBA_INTEGER] = r.RGBA32I, a[F.RGB_INTEGER] = r.RGB32I, a[F.RG_INTEGER] = r.RG32I, a[F.RED_INTEGER] = r.R32I, a), e[k.FLOAT] = (h = {}, h[F.RGBA] = r.RGBA32F, h[F.RGB] = r.RGB32F, h[F.RG] = r.RG32F, h[F.RED] = r.R32F, h[F.DEPTH_COMPONENT] = r.DEPTH_COMPONENT32F, h), e[k.HALF_FLOAT] = (u = {}, u[F.RGBA] = r.RGBA16F, u[F.RGB] = r.RGB16F, u[F.RG] = r.RG16F, u[F.RED] = r.R16F, u), e[k.UNSIGNED_SHORT_5_6_5] = (l = {}, l[F.RGB] = r.RGB565, l), e[k.UNSIGNED_SHORT_4_4_4_4] = (c = {}, c[F.RGBA] = r.RGBA4, c), e[k.UNSIGNED_SHORT_5_5_5_1] = (d = {}, d[F.RGBA] = r.RGB5_A1, d), e[k.UNSIGNED_INT_2_10_10_10_REV] = (p = {}, p[F.RGBA] = r.RGB10_A2, p[F.RGBA_INTEGER] = r.RGB10_A2UI, p), e[k.UNSIGNED_INT_10F_11F_11F_REV] = (f = {}, f[F.RGB] = r.R11F_G11F_B10F, f), e[k.UNSIGNED_INT_5_9_9_9_REV] = (m = {}, m[F.RGB] = r.RGB9_E5, m), e[k.UNSIGNED_INT_24_8] = (y = {}, y[F.DEPTH_STENCIL] = r.DEPTH24_STENCIL8, y), e[k.FLOAT_32_UNSIGNED_INT_24_8_REV] = (_ = {}, _[F.DEPTH_STENCIL] = r.DEPTH32F_STENCIL8, _), e) : O = (g = {}, g[k.UNSIGNED_BYTE] = (v = {}, v[F.RGBA] = r.RGBA, v[F.RGB] = r.RGB, v[F.ALPHA] = r.ALPHA, v[F.LUMINANCE] = r.LUMINANCE, v[F.LUMINANCE_ALPHA] = r.LUMINANCE_ALPHA, v), g[k.UNSIGNED_SHORT_5_6_5] = (x = {}, x[F.RGB] = r.RGB, x), g[k.UNSIGNED_SHORT_4_4_4_4] = (T = {}, T[F.RGBA] = r.RGBA, T), g[k.UNSIGNED_SHORT_5_5_5_1] = (S = {}, S[F.RGBA] = r.RGBA, S), g), O;
|
|
10691
10689
|
}
|
|
@@ -10697,7 +10695,7 @@ var oo = (
|
|
|
10697
10695
|
}
|
|
10698
10696
|
return r;
|
|
10699
10697
|
}()
|
|
10700
|
-
),
|
|
10698
|
+
), Iv = (
|
|
10701
10699
|
/** @class */
|
|
10702
10700
|
function() {
|
|
10703
10701
|
function r(e) {
|
|
@@ -10705,7 +10703,7 @@ var oo = (
|
|
|
10705
10703
|
}
|
|
10706
10704
|
return r.prototype.contextChange = function() {
|
|
10707
10705
|
var e = this.gl = this.renderer.gl;
|
|
10708
|
-
this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.webGLVersion = this.renderer.context.webGLVersion, this.internalFormats =
|
|
10706
|
+
this.CONTEXT_UID = this.renderer.CONTEXT_UID, this.webGLVersion = this.renderer.context.webGLVersion, this.internalFormats = Pv(e);
|
|
10709
10707
|
var t = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);
|
|
10710
10708
|
this.boundTextures.length = t;
|
|
10711
10709
|
for (var i = 0; i < t; i++)
|
|
@@ -10793,7 +10791,7 @@ var oo = (
|
|
|
10793
10791
|
this.renderer = null;
|
|
10794
10792
|
}, r;
|
|
10795
10793
|
}()
|
|
10796
|
-
), so = new Mt(),
|
|
10794
|
+
), so = new Mt(), Dv = (
|
|
10797
10795
|
/** @class */
|
|
10798
10796
|
function(r) {
|
|
10799
10797
|
mt(e, r);
|
|
@@ -10835,7 +10833,7 @@ var oo = (
|
|
|
10835
10833
|
this.screen.width = n, this.screen.height = o, this.autoDensity && (this.view.style.width = n + "px", this.view.style.height = o + "px"), this.emit("resize", n, o);
|
|
10836
10834
|
}, e.prototype.generateTexture = function(t, i, n, o) {
|
|
10837
10835
|
i === void 0 && (i = {}), typeof i == "number" && (Qt("6.1.0", "generateTexture options (scaleMode, resolution, region) are now object options."), i = { scaleMode: i, resolution: n, region: o });
|
|
10838
|
-
var s = i.region, a =
|
|
10836
|
+
var s = i.region, a = fg(i, ["region"]);
|
|
10839
10837
|
o = s || t.getLocalBounds(null, !0), o.width === 0 && (o.width = 1), o.height === 0 && (o.height = 1);
|
|
10840
10838
|
var h = er.create(Wo({ width: o.width, height: o.height }, a));
|
|
10841
10839
|
return so.tx = -o.x, so.ty = -o.y, this.render(t, {
|
|
@@ -10878,7 +10876,7 @@ var oo = (
|
|
|
10878
10876
|
configurable: !0
|
|
10879
10877
|
}), e;
|
|
10880
10878
|
}(di)
|
|
10881
|
-
),
|
|
10879
|
+
), Cv = (
|
|
10882
10880
|
/** @class */
|
|
10883
10881
|
function() {
|
|
10884
10882
|
function r(e) {
|
|
@@ -10886,7 +10884,7 @@ var oo = (
|
|
|
10886
10884
|
}
|
|
10887
10885
|
return r;
|
|
10888
10886
|
}()
|
|
10889
|
-
),
|
|
10887
|
+
), Fv = (
|
|
10890
10888
|
/** @class */
|
|
10891
10889
|
function() {
|
|
10892
10890
|
function r(e) {
|
|
@@ -10930,7 +10928,7 @@ var oo = (
|
|
|
10930
10928
|
this.dispose(this.managedBuffers[t[i]], e);
|
|
10931
10929
|
}, r.prototype.createGLBuffer = function(e) {
|
|
10932
10930
|
var t = this, i = t.CONTEXT_UID, n = t.gl;
|
|
10933
|
-
return e._glBuffers[i] = new
|
|
10931
|
+
return e._glBuffers[i] = new Cv(n.createBuffer()), this.managedBuffers[e.id] = e, e.disposeRunner.add(this), e._glBuffers[i];
|
|
10934
10932
|
}, r;
|
|
10935
10933
|
}()
|
|
10936
10934
|
), sl = (
|
|
@@ -10949,17 +10947,17 @@ var oo = (
|
|
|
10949
10947
|
resize: new Ft("resize")
|
|
10950
10948
|
}, i.runners.contextChange.add(i), i.globalUniforms = new Je({
|
|
10951
10949
|
projectionMatrix: new Mt()
|
|
10952
|
-
}, !0), i.addSystem(
|
|
10950
|
+
}, !0), i.addSystem(ov, "mask").addSystem(Fg, "context").addSystem(Rv, "state").addSystem(bv, "shader").addSystem(Iv, "texture").addSystem(Fv, "buffer").addSystem(Gg, "geometry").addSystem(Bg, "framebuffer").addSystem(sv, "scissor").addSystem(av, "stencil").addSystem(hv, "projection").addSystem(Mv, "textureGC").addSystem(Dg, "filter").addSystem(uv, "renderTexture").addSystem(Cg, "batch"), i.initPlugins(e.__plugins), i.multisample = void 0, t.context ? i.context.initFromContext(t.context) : i.context.initFromOptions({
|
|
10953
10951
|
alpha: !!i.useContextAlpha,
|
|
10954
10952
|
antialias: t.antialias,
|
|
10955
10953
|
premultipliedAlpha: i.useContextAlpha && i.useContextAlpha !== "notMultiplied",
|
|
10956
10954
|
stencil: !0,
|
|
10957
10955
|
preserveDrawingBuffer: t.preserveDrawingBuffer,
|
|
10958
10956
|
powerPreference: i.options.powerPreference
|
|
10959
|
-
}), i.renderingToScreen = !0,
|
|
10957
|
+
}), i.renderingToScreen = !0, cm(i.context.webGLVersion === 2 ? "WebGL 2" : "WebGL 1"), i.resize(i.options.width, i.options.height), i;
|
|
10960
10958
|
}
|
|
10961
10959
|
return e.create = function(t) {
|
|
10962
|
-
if (
|
|
10960
|
+
if (dm())
|
|
10963
10961
|
return new e(t);
|
|
10964
10962
|
throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.');
|
|
10965
10963
|
}, e.prototype.contextChange = function() {
|
|
@@ -11023,13 +11021,13 @@ var oo = (
|
|
|
11023
11021
|
ref: i
|
|
11024
11022
|
});
|
|
11025
11023
|
}, e.__plugins = {}, e;
|
|
11026
|
-
}(
|
|
11024
|
+
}(Dv)
|
|
11027
11025
|
);
|
|
11028
11026
|
Te.handleByMap(ft.RendererPlugin, sl.__plugins);
|
|
11029
11027
|
function al(r) {
|
|
11030
11028
|
return sl.create(r);
|
|
11031
11029
|
}
|
|
11032
|
-
var
|
|
11030
|
+
var Nv = `attribute vec2 aVertexPosition;
|
|
11033
11031
|
attribute vec2 aTextureCoord;
|
|
11034
11032
|
|
|
11035
11033
|
uniform mat3 projectionMatrix;
|
|
@@ -11040,7 +11038,7 @@ void main(void)
|
|
|
11040
11038
|
{
|
|
11041
11039
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
|
11042
11040
|
vTextureCoord = aTextureCoord;
|
|
11043
|
-
}`,
|
|
11041
|
+
}`, Lv = `attribute vec2 aVertexPosition;
|
|
11044
11042
|
|
|
11045
11043
|
uniform mat3 projectionMatrix;
|
|
11046
11044
|
|
|
@@ -11066,7 +11064,7 @@ void main(void)
|
|
|
11066
11064
|
gl_Position = filterVertexPosition();
|
|
11067
11065
|
vTextureCoord = filterTextureCoord();
|
|
11068
11066
|
}
|
|
11069
|
-
`,
|
|
11067
|
+
`, Bv = Nv, hl = Lv, qo = (
|
|
11070
11068
|
/** @class */
|
|
11071
11069
|
function() {
|
|
11072
11070
|
function r() {
|
|
@@ -11148,7 +11146,7 @@ void main(void)
|
|
|
11148
11146
|
}
|
|
11149
11147
|
}, r;
|
|
11150
11148
|
}()
|
|
11151
|
-
),
|
|
11149
|
+
), Gv = (
|
|
11152
11150
|
/** @class */
|
|
11153
11151
|
function(r) {
|
|
11154
11152
|
mt(e, r);
|
|
@@ -11158,7 +11156,7 @@ void main(void)
|
|
|
11158
11156
|
}
|
|
11159
11157
|
return e.prototype.contextChange = function() {
|
|
11160
11158
|
var t = this.renderer.gl;
|
|
11161
|
-
G.PREFER_ENV === be.WEBGL_LEGACY ? this.MAX_TEXTURES = 1 : (this.MAX_TEXTURES = Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), G.SPRITE_MAX_TEXTURES), this.MAX_TEXTURES =
|
|
11159
|
+
G.PREFER_ENV === be.WEBGL_LEGACY ? this.MAX_TEXTURES = 1 : (this.MAX_TEXTURES = Math.min(t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS), G.SPRITE_MAX_TEXTURES), this.MAX_TEXTURES = qg(this.MAX_TEXTURES, t)), this._shader = this.shaderGenerator.generateShader(this.MAX_TEXTURES);
|
|
11162
11160
|
for (var i = 0; i < this._packedGeometryPoolSize; i++)
|
|
11163
11161
|
this._packedGeometries[i] = new this.geometryClass();
|
|
11164
11162
|
this.initFlushBuffers();
|
|
@@ -11231,7 +11229,7 @@ void main(void)
|
|
|
11231
11229
|
n[s++] = u + c[y];
|
|
11232
11230
|
}, e._drawCallPool = [], e._textureArrayPool = [], e;
|
|
11233
11231
|
}(wn)
|
|
11234
|
-
),
|
|
11232
|
+
), Uv = (
|
|
11235
11233
|
/** @class */
|
|
11236
11234
|
function() {
|
|
11237
11235
|
function r(e, t) {
|
|
@@ -11312,7 +11310,7 @@ void main(void){
|
|
|
11312
11310
|
%forloop%
|
|
11313
11311
|
gl_FragColor = color * vColor;
|
|
11314
11312
|
}
|
|
11315
|
-
`,
|
|
11313
|
+
`, kv = (
|
|
11316
11314
|
/** @class */
|
|
11317
11315
|
function() {
|
|
11318
11316
|
function r() {
|
|
@@ -11330,10 +11328,10 @@ void main(void){
|
|
|
11330
11328
|
mt(h, a);
|
|
11331
11329
|
function h(u) {
|
|
11332
11330
|
var l = a.call(this, u) || this;
|
|
11333
|
-
return l.shaderGenerator = new
|
|
11331
|
+
return l.shaderGenerator = new Uv(i, n), l.geometryClass = s, l.vertexSize = o, l;
|
|
11334
11332
|
}
|
|
11335
11333
|
return h;
|
|
11336
|
-
}(
|
|
11334
|
+
}(Gv)
|
|
11337
11335
|
);
|
|
11338
11336
|
}, Object.defineProperty(r, "defaultVertexSrc", {
|
|
11339
11337
|
/**
|
|
@@ -11357,7 +11355,7 @@ void main(void){
|
|
|
11357
11355
|
configurable: !0
|
|
11358
11356
|
}), r;
|
|
11359
11357
|
}()
|
|
11360
|
-
), ll =
|
|
11358
|
+
), ll = kv.create();
|
|
11361
11359
|
Object.assign(ll, {
|
|
11362
11360
|
extension: {
|
|
11363
11361
|
name: "batch",
|
|
@@ -11371,7 +11369,7 @@ Object.assign(ll, {
|
|
|
11371
11369
|
* @pixi/accessibility is licensed under the MIT License.
|
|
11372
11370
|
* http://www.opensource.org/licenses/mit-license
|
|
11373
11371
|
*/
|
|
11374
|
-
var
|
|
11372
|
+
var Xv = {
|
|
11375
11373
|
/**
|
|
11376
11374
|
* Flag for if the object is accessible. If true AccessibilityManager will overlay a
|
|
11377
11375
|
* shadow div with attributes set
|
|
@@ -11437,14 +11435,14 @@ var jv = {
|
|
|
11437
11435
|
accessibleChildren: !0,
|
|
11438
11436
|
renderId: -1
|
|
11439
11437
|
};
|
|
11440
|
-
St.mixin(
|
|
11441
|
-
var
|
|
11438
|
+
St.mixin(Xv);
|
|
11439
|
+
var jv = 9, Bi = 100, Hv = 0, Yv = 0, gh = 2, vh = 1, Vv = -1e3, zv = -1e3, Wv = 2, $v = (
|
|
11442
11440
|
/** @class */
|
|
11443
11441
|
function() {
|
|
11444
11442
|
function r(e) {
|
|
11445
11443
|
this.debug = !1, this._isActive = !1, this._isMobileAccessibility = !1, this.pool = [], this.renderId = 0, this.children = [], this.androidUpdateCount = 0, this.androidUpdateFrequency = 500, this._hookDiv = null, (he.tablet || he.phone) && this.createTouchHook();
|
|
11446
11444
|
var t = document.createElement("div");
|
|
11447
|
-
t.style.width = Bi + "px", t.style.height = Bi + "px", t.style.position = "absolute", t.style.top =
|
|
11445
|
+
t.style.width = Bi + "px", t.style.height = Bi + "px", t.style.position = "absolute", t.style.top = Hv + "px", t.style.left = Yv + "px", t.style.zIndex = gh.toString(), this.div = t, this.renderer = e, this._onKeyDown = this._onKeyDown.bind(this), this._onMouseMove = this._onMouseMove.bind(this), globalThis.addEventListener("keydown", this._onKeyDown, !1);
|
|
11448
11446
|
}
|
|
11449
11447
|
return Object.defineProperty(r.prototype, "isActive", {
|
|
11450
11448
|
/**
|
|
@@ -11470,7 +11468,7 @@ var Hv = 9, Bi = 100, Yv = 0, Vv = 0, gh = 2, vh = 1, zv = -1e3, Wv = -1e3, $v =
|
|
|
11470
11468
|
configurable: !0
|
|
11471
11469
|
}), r.prototype.createTouchHook = function() {
|
|
11472
11470
|
var e = this, t = document.createElement("button");
|
|
11473
|
-
t.style.width = vh + "px", t.style.height = vh + "px", t.style.position = "absolute", t.style.top =
|
|
11471
|
+
t.style.width = vh + "px", t.style.height = vh + "px", t.style.position = "absolute", t.style.top = Vv + "px", t.style.left = zv + "px", t.style.zIndex = Wv.toString(), t.style.backgroundColor = "#FF0000", t.title = "select to enable accessibility for this content", t.addEventListener("focus", function() {
|
|
11474
11472
|
e._isMobileAccessibility = !0, e.activate(), e.destroyTouchHook();
|
|
11475
11473
|
}), document.body.appendChild(t), this._hookDiv = t;
|
|
11476
11474
|
}, r.prototype.destroyTouchHook = function() {
|
|
@@ -11528,7 +11526,7 @@ var Hv = 9, Bi = 100, Yv = 0, Vv = 0, gh = 2, vh = 1, zv = -1e3, Wv = -1e3, $v =
|
|
|
11528
11526
|
var t = this.renderer.plugins.interaction, i = e.target.displayObject, n = t.eventData;
|
|
11529
11527
|
t.dispatchEvent(i, "mouseout", n);
|
|
11530
11528
|
}, r.prototype._onKeyDown = function(e) {
|
|
11531
|
-
e.keyCode ===
|
|
11529
|
+
e.keyCode === jv && this.activate();
|
|
11532
11530
|
}, r.prototype._onMouseMove = function(e) {
|
|
11533
11531
|
e.movementX === 0 && e.movementY === 0 || this.deactivate();
|
|
11534
11532
|
}, r.prototype.destroy = function() {
|
|
@@ -11599,14 +11597,14 @@ var Jo = function(r, e) {
|
|
|
11599
11597
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
11600
11598
|
}, Jo(r, e);
|
|
11601
11599
|
};
|
|
11602
|
-
function
|
|
11600
|
+
function qv(r, e) {
|
|
11603
11601
|
Jo(r, e);
|
|
11604
11602
|
function t() {
|
|
11605
11603
|
this.constructor = r;
|
|
11606
11604
|
}
|
|
11607
11605
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
11608
11606
|
}
|
|
11609
|
-
var
|
|
11607
|
+
var Kv = (
|
|
11610
11608
|
/** @class */
|
|
11611
11609
|
function() {
|
|
11612
11610
|
function r() {
|
|
@@ -11712,7 +11710,7 @@ var Zv = (
|
|
|
11712
11710
|
RIGHT_DOWN: 4
|
|
11713
11711
|
}), r;
|
|
11714
11712
|
}()
|
|
11715
|
-
),
|
|
11713
|
+
), Zv = (
|
|
11716
11714
|
/** @class */
|
|
11717
11715
|
function() {
|
|
11718
11716
|
function r() {
|
|
@@ -11745,7 +11743,7 @@ var Zv = (
|
|
|
11745
11743
|
this.recursiveFindHit(e, t, i, n, !1);
|
|
11746
11744
|
}, r;
|
|
11747
11745
|
}()
|
|
11748
|
-
),
|
|
11746
|
+
), Jv = {
|
|
11749
11747
|
interactive: !1,
|
|
11750
11748
|
interactiveChildren: !0,
|
|
11751
11749
|
hitArea: null,
|
|
@@ -11793,22 +11791,22 @@ var Zv = (
|
|
|
11793
11791
|
*/
|
|
11794
11792
|
_trackedPointers: void 0
|
|
11795
11793
|
};
|
|
11796
|
-
St.mixin(
|
|
11794
|
+
St.mixin(Jv);
|
|
11797
11795
|
var Gi = 1, Ui = {
|
|
11798
11796
|
target: null,
|
|
11799
11797
|
data: {
|
|
11800
11798
|
global: null
|
|
11801
11799
|
}
|
|
11802
|
-
},
|
|
11800
|
+
}, Qv = (
|
|
11803
11801
|
/** @class */
|
|
11804
11802
|
function(r) {
|
|
11805
|
-
|
|
11803
|
+
qv(e, r);
|
|
11806
11804
|
function e(t, i) {
|
|
11807
11805
|
var n = r.call(this) || this;
|
|
11808
|
-
return i = i || {}, n.renderer = t, n.autoPreventDefault = i.autoPreventDefault !== void 0 ? i.autoPreventDefault : !0, n.interactionFrequency = i.interactionFrequency || 10, n.mouse = new bh(), n.mouse.identifier = Gi, n.mouse.global.set(-999999), n.activeInteractionData = {}, n.activeInteractionData[Gi] = n.mouse, n.interactionDataPool = [], n.eventData = new
|
|
11806
|
+
return i = i || {}, n.renderer = t, n.autoPreventDefault = i.autoPreventDefault !== void 0 ? i.autoPreventDefault : !0, n.interactionFrequency = i.interactionFrequency || 10, n.mouse = new bh(), n.mouse.identifier = Gi, n.mouse.global.set(-999999), n.activeInteractionData = {}, n.activeInteractionData[Gi] = n.mouse, n.interactionDataPool = [], n.eventData = new Kv(), n.interactionDOMElement = null, n.moveWhenInside = !1, n.eventsAdded = !1, n.tickerAdded = !1, n.mouseOverRenderer = !("PointerEvent" in globalThis), n.supportsTouchEvents = "ontouchstart" in globalThis, n.supportsPointerEvents = !!globalThis.PointerEvent, n.onPointerUp = n.onPointerUp.bind(n), n.processPointerUp = n.processPointerUp.bind(n), n.onPointerCancel = n.onPointerCancel.bind(n), n.processPointerCancel = n.processPointerCancel.bind(n), n.onPointerDown = n.onPointerDown.bind(n), n.processPointerDown = n.processPointerDown.bind(n), n.onPointerMove = n.onPointerMove.bind(n), n.processPointerMove = n.processPointerMove.bind(n), n.onPointerOut = n.onPointerOut.bind(n), n.processPointerOverOut = n.processPointerOverOut.bind(n), n.onPointerOver = n.onPointerOver.bind(n), n.cursorStyles = {
|
|
11809
11807
|
default: "inherit",
|
|
11810
11808
|
pointer: "pointer"
|
|
11811
|
-
}, n.currentCursorMode = null, n.cursor = null, n.resolution = 1, n.delayedEvents = [], n.search = new
|
|
11809
|
+
}, n.currentCursorMode = null, n.cursor = null, n.resolution = 1, n.delayedEvents = [], n.search = new Zv(), n._tempDisplayObject = new Wu(), n._eventListenerOptions = { capture: !0, passive: !1 }, n._useSystemTicker = i.useSystemTicker !== void 0 ? i.useSystemTicker : !0, n.setTargetElement(n.renderer.view, n.renderer.resolution), n;
|
|
11812
11810
|
}
|
|
11813
11811
|
return Object.defineProperty(e.prototype, "useSystemTicker", {
|
|
11814
11812
|
/**
|
|
@@ -12039,7 +12037,7 @@ var Gi = 1, Ui = {
|
|
|
12039
12037
|
* @pixi/extract is licensed under the MIT License.
|
|
12040
12038
|
* http://www.opensource.org/licenses/mit-license
|
|
12041
12039
|
*/
|
|
12042
|
-
var
|
|
12040
|
+
var t0 = new it(), e0 = 4, r0 = (
|
|
12043
12041
|
/** @class */
|
|
12044
12042
|
function() {
|
|
12045
12043
|
function r(e) {
|
|
@@ -12076,8 +12074,8 @@ var e0 = new it(), r0 = 4, i0 = (
|
|
|
12076
12074
|
}
|
|
12077
12075
|
a = !0;
|
|
12078
12076
|
}
|
|
12079
|
-
s ? (n = s.baseTexture.resolution, t = t ?? s.frame, o = !1, i.renderTexture.bind(s)) : (n = i.resolution, t || (t =
|
|
12080
|
-
var l = Math.round(t.width * n), c = Math.round(t.height * n), d = new Uint8Array(
|
|
12077
|
+
s ? (n = s.baseTexture.resolution, t = t ?? s.frame, o = !1, i.renderTexture.bind(s)) : (n = i.resolution, t || (t = t0, t.width = i.width, t.height = i.height), o = !0, i.renderTexture.bind(null));
|
|
12078
|
+
var l = Math.round(t.width * n), c = Math.round(t.height * n), d = new Uint8Array(e0 * l * c), p = i.gl;
|
|
12081
12079
|
return p.readPixels(Math.round(t.x * n), Math.round(t.y * n), l, c, p.RGBA, p.UNSIGNED_BYTE, d), a && s.destroy(!0), { pixels: d, width: l, height: c, flipY: o };
|
|
12082
12080
|
}, r.prototype.destroy = function() {
|
|
12083
12081
|
this.renderer = null;
|
|
@@ -12183,7 +12181,7 @@ function cl(r, e) {
|
|
|
12183
12181
|
a && (n[t.q.name][a] = h);
|
|
12184
12182
|
}), n;
|
|
12185
12183
|
}
|
|
12186
|
-
var ho, Xi = null,
|
|
12184
|
+
var ho, Xi = null, i0 = 0, Th = 200, n0 = 204, o0 = 1223, s0 = 2;
|
|
12187
12185
|
function Eh() {
|
|
12188
12186
|
}
|
|
12189
12187
|
function Ah(r, e, t) {
|
|
@@ -12370,9 +12368,9 @@ var At = (
|
|
|
12370
12368
|
this.abort(uo(e) + " Request was aborted by the user.");
|
|
12371
12369
|
}, r.prototype._xhrOnLoad = function() {
|
|
12372
12370
|
var e = this.xhr, t = "", i = typeof e.status > "u" ? Th : e.status;
|
|
12373
|
-
(e.responseType === "" || e.responseType === "text" || typeof e.responseType > "u") && (t = e.responseText), i ===
|
|
12371
|
+
(e.responseType === "" || e.responseType === "text" || typeof e.responseType > "u") && (t = e.responseText), i === i0 && (t.length > 0 || e.responseType === r.XHR_RESPONSE_TYPE.BUFFER) ? i = Th : i === o0 && (i = n0);
|
|
12374
12372
|
var n = i / 100 | 0;
|
|
12375
|
-
if (n ===
|
|
12373
|
+
if (n === s0)
|
|
12376
12374
|
if (this.xhrType === r.XHR_RESPONSE_TYPE.TEXT)
|
|
12377
12375
|
this.data = t, this.type = r.TYPE.TEXT;
|
|
12378
12376
|
else if (this.xhrType === r.XHR_RESPONSE_TYPE.JSON)
|
|
@@ -12509,7 +12507,7 @@ var At = (
|
|
|
12509
12507
|
})(At || (At = {}));
|
|
12510
12508
|
function Ge() {
|
|
12511
12509
|
}
|
|
12512
|
-
function
|
|
12510
|
+
function a0(r) {
|
|
12513
12511
|
return function() {
|
|
12514
12512
|
for (var e = arguments, t = [], i = 0; i < arguments.length; i++)
|
|
12515
12513
|
t[i] = e[i];
|
|
@@ -12519,7 +12517,7 @@ function h0(r) {
|
|
|
12519
12517
|
r = null, n.apply(this, t);
|
|
12520
12518
|
};
|
|
12521
12519
|
}
|
|
12522
|
-
var
|
|
12520
|
+
var h0 = (
|
|
12523
12521
|
/** @class */
|
|
12524
12522
|
function() {
|
|
12525
12523
|
function r(e, t) {
|
|
@@ -12541,12 +12539,12 @@ var u0 = (
|
|
|
12541
12539
|
}, 1);
|
|
12542
12540
|
return;
|
|
12543
12541
|
}
|
|
12544
|
-
var a = new
|
|
12542
|
+
var a = new h0(n, typeof s == "function" ? s : Ge);
|
|
12545
12543
|
o ? i._tasks.unshift(a) : i._tasks.push(a), setTimeout(i.process, 1);
|
|
12546
12544
|
}, this.process = function() {
|
|
12547
12545
|
for (; !i.paused && i.workers < i.concurrency && i._tasks.length; ) {
|
|
12548
12546
|
var n = i._tasks.shift();
|
|
12549
|
-
i._tasks.length === 0 && i.empty(), i.workers += 1, i.workers === i.concurrency && i.saturated(), i._worker(n.data,
|
|
12547
|
+
i._tasks.length === 0 && i.empty(), i.workers += 1, i.workers === i.concurrency && i.saturated(), i._worker(n.data, a0(i._next(n)));
|
|
12550
12548
|
}
|
|
12551
12549
|
}, this._worker = e, t === 0)
|
|
12552
12550
|
throw new Error("Concurrency must not be zero");
|
|
@@ -12595,7 +12593,7 @@ var u0 = (
|
|
|
12595
12593
|
return new r(e, t);
|
|
12596
12594
|
}, r;
|
|
12597
12595
|
}()
|
|
12598
|
-
), co = 100,
|
|
12596
|
+
), co = 100, u0 = /(#[\w-]+)?$/, gn = (
|
|
12599
12597
|
/** @class */
|
|
12600
12598
|
function() {
|
|
12601
12599
|
function r(e, t) {
|
|
@@ -12664,7 +12662,7 @@ var u0 = (
|
|
|
12664
12662
|
}), r.prototype._prepareUrl = function(e) {
|
|
12665
12663
|
var t = cl(e, { strictMode: !0 }), i;
|
|
12666
12664
|
if (t.protocol || !t.path || e.indexOf("//") === 0 ? i = e : this.baseUrl.length && this.baseUrl.lastIndexOf("/") !== this.baseUrl.length - 1 && e.charAt(0) !== "/" ? i = this.baseUrl + "/" + e : i = this.baseUrl + e, this.defaultQueryString) {
|
|
12667
|
-
var n =
|
|
12665
|
+
var n = u0.exec(i)[0];
|
|
12668
12666
|
i = i.slice(0, i.length - n.length), i.indexOf("?") !== -1 ? i += "&" + this.defaultQueryString : i += "?" + this.defaultQueryString, i += n;
|
|
12669
12667
|
}
|
|
12670
12668
|
return i;
|
|
@@ -12717,7 +12715,7 @@ gn.prototype.add = function(r, e, t, i) {
|
|
|
12717
12715
|
throw new Error("No url passed to add resource to loader.");
|
|
12718
12716
|
return typeof t == "function" && (i = t, t = null), this._add(r, e, t, i);
|
|
12719
12717
|
};
|
|
12720
|
-
var
|
|
12718
|
+
var l0 = (
|
|
12721
12719
|
/** @class */
|
|
12722
12720
|
function() {
|
|
12723
12721
|
function r() {
|
|
@@ -12730,7 +12728,7 @@ var c0 = (
|
|
|
12730
12728
|
this.loader && (this.loader.destroy(), this.loader = null);
|
|
12731
12729
|
}, r.extension = ft.Application, r;
|
|
12732
12730
|
}()
|
|
12733
|
-
),
|
|
12731
|
+
), c0 = (
|
|
12734
12732
|
/** @class */
|
|
12735
12733
|
function() {
|
|
12736
12734
|
function r() {
|
|
@@ -12747,8 +12745,8 @@ var c0 = (
|
|
|
12747
12745
|
t();
|
|
12748
12746
|
}, r.extension = ft.Loader, r;
|
|
12749
12747
|
}()
|
|
12750
|
-
),
|
|
12751
|
-
function
|
|
12748
|
+
), d0 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
12749
|
+
function p0(r) {
|
|
12752
12750
|
for (var e = "", t = 0; t < r.length; ) {
|
|
12753
12751
|
for (var i = [0, 0, 0], n = [0, 0, 0, 0], o = 0; o < i.length; ++o)
|
|
12754
12752
|
t < r.length ? i[o] = r.charCodeAt(t++) & 255 : i[o] = 0;
|
|
@@ -12763,11 +12761,11 @@ function f0(r) {
|
|
|
12763
12761
|
break;
|
|
12764
12762
|
}
|
|
12765
12763
|
for (var o = 0; o < n.length; ++o)
|
|
12766
|
-
e +=
|
|
12764
|
+
e += d0.charAt(n[o]);
|
|
12767
12765
|
}
|
|
12768
12766
|
return e;
|
|
12769
12767
|
}
|
|
12770
|
-
function
|
|
12768
|
+
function f0(r, e) {
|
|
12771
12769
|
if (!r.data) {
|
|
12772
12770
|
e();
|
|
12773
12771
|
return;
|
|
@@ -12776,7 +12774,7 @@ function m0(r, e) {
|
|
|
12776
12774
|
if (!self.Blob || typeof r.data == "string") {
|
|
12777
12775
|
var t = r.xhr.getResponseHeader("content-type");
|
|
12778
12776
|
if (t && t.indexOf("image") === 0) {
|
|
12779
|
-
r.data = new Image(), r.data.src = "data:" + t + ";base64," +
|
|
12777
|
+
r.data = new Image(), r.data.src = "data:" + t + ";base64," + p0(r.xhr.responseText), r.type = At.TYPE.IMAGE, r.data.onload = function() {
|
|
12780
12778
|
r.data.onload = null, e();
|
|
12781
12779
|
};
|
|
12782
12780
|
return;
|
|
@@ -12791,15 +12789,15 @@ function m0(r, e) {
|
|
|
12791
12789
|
}
|
|
12792
12790
|
e();
|
|
12793
12791
|
}
|
|
12794
|
-
var
|
|
12792
|
+
var m0 = (
|
|
12795
12793
|
/** @class */
|
|
12796
12794
|
function() {
|
|
12797
12795
|
function r() {
|
|
12798
12796
|
}
|
|
12799
|
-
return r.extension = ft.Loader, r.use =
|
|
12797
|
+
return r.extension = ft.Loader, r.use = f0, r;
|
|
12800
12798
|
}()
|
|
12801
12799
|
);
|
|
12802
|
-
Te.add(
|
|
12800
|
+
Te.add(c0, m0);
|
|
12803
12801
|
/*!
|
|
12804
12802
|
* @pixi/compressed-textures - v6.5.10
|
|
12805
12803
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
|
@@ -12851,7 +12849,7 @@ function dl(r, e) {
|
|
|
12851
12849
|
}
|
|
12852
12850
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
12853
12851
|
}
|
|
12854
|
-
function
|
|
12852
|
+
function y0(r, e, t, i) {
|
|
12855
12853
|
function n(o) {
|
|
12856
12854
|
return o instanceof t ? o : new t(function(s) {
|
|
12857
12855
|
s(o);
|
|
@@ -12878,7 +12876,7 @@ function _0(r, e, t, i) {
|
|
|
12878
12876
|
u((i = i.apply(r, e || [])).next());
|
|
12879
12877
|
});
|
|
12880
12878
|
}
|
|
12881
|
-
function
|
|
12879
|
+
function _0(r, e) {
|
|
12882
12880
|
var t = { label: 0, sent: function() {
|
|
12883
12881
|
if (o[0] & 1)
|
|
12884
12882
|
throw o[1];
|
|
@@ -12943,7 +12941,7 @@ function g0(r, e) {
|
|
|
12943
12941
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
12944
12942
|
}
|
|
12945
12943
|
}
|
|
12946
|
-
var
|
|
12944
|
+
var g0 = (
|
|
12947
12945
|
/** @class */
|
|
12948
12946
|
function(r) {
|
|
12949
12947
|
dl(e, r);
|
|
@@ -12954,9 +12952,9 @@ var v0 = (
|
|
|
12954
12952
|
}
|
|
12955
12953
|
return e.prototype.onBlobLoaded = function(t) {
|
|
12956
12954
|
}, e.prototype.load = function() {
|
|
12957
|
-
return
|
|
12955
|
+
return y0(this, void 0, Promise, function() {
|
|
12958
12956
|
var t, i, n;
|
|
12959
|
-
return
|
|
12957
|
+
return _0(this, function(o) {
|
|
12960
12958
|
switch (o.label) {
|
|
12961
12959
|
case 0:
|
|
12962
12960
|
return [4, fetch(this.origin)];
|
|
@@ -13032,8 +13030,8 @@ var v0 = (
|
|
|
13032
13030
|
}, l += m, c = c >> 1 || 1, d = d >> 1 || 1, p = c + o - 1 & ~(o - 1), f = d + s - 1 & ~(s - 1), m = p * f * vn[i];
|
|
13033
13031
|
return u;
|
|
13034
13032
|
}, e;
|
|
13035
|
-
}(
|
|
13036
|
-
),
|
|
13033
|
+
}(g0)
|
|
13034
|
+
), v0 = (
|
|
13037
13035
|
/** @class */
|
|
13038
13036
|
function() {
|
|
13039
13037
|
function r() {
|
|
@@ -13129,14 +13127,14 @@ function pl(r, e, t) {
|
|
|
13129
13127
|
rt.addToCache(a, h), W.addToCache(o, h), s === 0 && (rt.addToCache(a, r), W.addToCache(o, r), i.texture = o), i.textures[h] = o;
|
|
13130
13128
|
}), i;
|
|
13131
13129
|
}
|
|
13132
|
-
var jr, zt, po = 4, ji = 124,
|
|
13130
|
+
var jr, zt, po = 4, ji = 124, b0 = 32, wh = 20, x0 = 542327876, Hi = {
|
|
13133
13131
|
SIZE: 1,
|
|
13134
13132
|
FLAGS: 2,
|
|
13135
13133
|
HEIGHT: 3,
|
|
13136
13134
|
WIDTH: 4,
|
|
13137
13135
|
MIPMAP_COUNT: 7,
|
|
13138
13136
|
PIXEL_FORMAT: 19
|
|
13139
|
-
},
|
|
13137
|
+
}, T0 = {
|
|
13140
13138
|
SIZE: 0,
|
|
13141
13139
|
FLAGS: 1,
|
|
13142
13140
|
FOURCC: 2,
|
|
@@ -13159,18 +13157,18 @@ var es;
|
|
|
13159
13157
|
(function(r) {
|
|
13160
13158
|
r[r.DDS_DIMENSION_TEXTURE1D = 2] = "DDS_DIMENSION_TEXTURE1D", r[r.DDS_DIMENSION_TEXTURE2D = 3] = "DDS_DIMENSION_TEXTURE2D", r[r.DDS_DIMENSION_TEXTURE3D = 6] = "DDS_DIMENSION_TEXTURE3D";
|
|
13161
13159
|
})(es || (es = {}));
|
|
13162
|
-
var
|
|
13160
|
+
var E0 = 1, A0 = 2, w0 = 4, S0 = 64, O0 = 512, R0 = 131072, M0 = 827611204, P0 = 861165636, I0 = 894720068, D0 = 808540228, C0 = 4, F0 = (jr = {}, jr[M0] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, jr[P0] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, jr[I0] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, jr), N0 = (zt = {}, // WEBGL_compressed_texture_s3tc
|
|
13163
13161
|
zt[qt.DXGI_FORMAT_BC1_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, zt[qt.DXGI_FORMAT_BC1_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT1_EXT, zt[qt.DXGI_FORMAT_BC2_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, zt[qt.DXGI_FORMAT_BC2_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT3_EXT, zt[qt.DXGI_FORMAT_BC3_TYPELESS] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, zt[qt.DXGI_FORMAT_BC3_UNORM] = $.COMPRESSED_RGBA_S3TC_DXT5_EXT, // WEBGL_compressed_texture_s3tc_srgb
|
|
13164
13162
|
zt[qt.DXGI_FORMAT_BC1_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT, zt[qt.DXGI_FORMAT_BC2_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT, zt[qt.DXGI_FORMAT_BC3_UNORM_SRGB] = $.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT, zt);
|
|
13165
|
-
function
|
|
13163
|
+
function L0(r) {
|
|
13166
13164
|
var e = new Uint32Array(r), t = e[0];
|
|
13167
|
-
if (t !==
|
|
13165
|
+
if (t !== x0)
|
|
13168
13166
|
throw new Error("Invalid DDS file magic word");
|
|
13169
|
-
var i = new Uint32Array(r, 0, ji / Uint32Array.BYTES_PER_ELEMENT), n = i[Hi.HEIGHT], o = i[Hi.WIDTH], s = i[Hi.MIPMAP_COUNT], a = new Uint32Array(r, Hi.PIXEL_FORMAT * Uint32Array.BYTES_PER_ELEMENT,
|
|
13170
|
-
if (h &
|
|
13171
|
-
var u = a[
|
|
13172
|
-
if (u !==
|
|
13173
|
-
var l =
|
|
13167
|
+
var i = new Uint32Array(r, 0, ji / Uint32Array.BYTES_PER_ELEMENT), n = i[Hi.HEIGHT], o = i[Hi.WIDTH], s = i[Hi.MIPMAP_COUNT], a = new Uint32Array(r, Hi.PIXEL_FORMAT * Uint32Array.BYTES_PER_ELEMENT, b0 / Uint32Array.BYTES_PER_ELEMENT), h = a[E0];
|
|
13168
|
+
if (h & w0) {
|
|
13169
|
+
var u = a[T0.FOURCC];
|
|
13170
|
+
if (u !== D0) {
|
|
13171
|
+
var l = F0[u], c = po + ji, d = new Uint8Array(r, c), p = new ts(d, {
|
|
13174
13172
|
format: l,
|
|
13175
13173
|
width: o,
|
|
13176
13174
|
height: n,
|
|
@@ -13179,10 +13177,10 @@ function B0(r) {
|
|
|
13179
13177
|
});
|
|
13180
13178
|
return [p];
|
|
13181
13179
|
}
|
|
13182
|
-
var f = po + ji, m = new Uint32Array(e.buffer, f, wh / Uint32Array.BYTES_PER_ELEMENT), y = m[Yi.DXGI_FORMAT], _ = m[Yi.RESOURCE_DIMENSION], g = m[Yi.MISC_FLAG], v = m[Yi.ARRAY_SIZE], x =
|
|
13180
|
+
var f = po + ji, m = new Uint32Array(e.buffer, f, wh / Uint32Array.BYTES_PER_ELEMENT), y = m[Yi.DXGI_FORMAT], _ = m[Yi.RESOURCE_DIMENSION], g = m[Yi.MISC_FLAG], v = m[Yi.ARRAY_SIZE], x = N0[y];
|
|
13183
13181
|
if (x === void 0)
|
|
13184
13182
|
throw new Error("DDSParser cannot parse texture data with DXGI format " + y);
|
|
13185
|
-
if (g ===
|
|
13183
|
+
if (g === C0)
|
|
13186
13184
|
throw new Error("DDSParser does not support cubemap textures");
|
|
13187
13185
|
if (_ === es.DDS_DIMENSION_TEXTURE3D)
|
|
13188
13186
|
throw new Error("DDSParser does not supported 3D texture data");
|
|
@@ -13206,9 +13204,9 @@ function B0(r) {
|
|
|
13206
13204
|
});
|
|
13207
13205
|
});
|
|
13208
13206
|
}
|
|
13209
|
-
throw h &
|
|
13207
|
+
throw h & S0 ? new Error("DDSParser does not support uncompressed texture data.") : h & O0 ? new Error("DDSParser does not supported YUV uncompressed texture data.") : h & R0 ? new Error("DDSParser does not support single-channel (lumninance) texture data!") : h & A0 ? 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!");
|
|
13210
13208
|
}
|
|
13211
|
-
var Ee, me, Hr, Sh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10],
|
|
13209
|
+
var Ee, me, Hr, Sh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], B0 = 67305985, Wt = {
|
|
13212
13210
|
FILE_IDENTIFIER: 0,
|
|
13213
13211
|
ENDIANNESS: 12,
|
|
13214
13212
|
GL_TYPE: 16,
|
|
@@ -13223,13 +13221,13 @@ var Ee, me, Hr, Sh = [171, 75, 84, 88, 32, 49, 49, 187, 13, 10, 26, 10], G0 = 67
|
|
|
13223
13221
|
NUMBER_OF_FACES: 52,
|
|
13224
13222
|
NUMBER_OF_MIPMAP_LEVELS: 56,
|
|
13225
13223
|
BYTES_OF_KEY_VALUE_DATA: 60
|
|
13226
|
-
}, rs = 64, Oh = (Ee = {}, Ee[k.UNSIGNED_BYTE] = 1, Ee[k.UNSIGNED_SHORT] = 2, Ee[k.INT] = 4, Ee[k.UNSIGNED_INT] = 4, Ee[k.FLOAT] = 4, Ee[k.HALF_FLOAT] = 8, Ee),
|
|
13227
|
-
function
|
|
13224
|
+
}, rs = 64, Oh = (Ee = {}, Ee[k.UNSIGNED_BYTE] = 1, Ee[k.UNSIGNED_SHORT] = 2, Ee[k.INT] = 4, Ee[k.UNSIGNED_INT] = 4, Ee[k.FLOAT] = 4, Ee[k.HALF_FLOAT] = 8, Ee), G0 = (me = {}, me[F.RGBA] = 4, me[F.RGB] = 3, me[F.RG] = 2, me[F.RED] = 1, me[F.LUMINANCE] = 1, me[F.LUMINANCE_ALPHA] = 2, me[F.ALPHA] = 1, me), U0 = (Hr = {}, Hr[k.UNSIGNED_SHORT_4_4_4_4] = 2, Hr[k.UNSIGNED_SHORT_5_5_5_1] = 2, Hr[k.UNSIGNED_SHORT_5_6_5] = 2, Hr);
|
|
13225
|
+
function k0(r, e, t) {
|
|
13228
13226
|
t === void 0 && (t = !1);
|
|
13229
13227
|
var i = new DataView(e);
|
|
13230
|
-
if (!
|
|
13228
|
+
if (!X0(r, i))
|
|
13231
13229
|
return null;
|
|
13232
|
-
var n = i.getUint32(Wt.ENDIANNESS, !0) ===
|
|
13230
|
+
var n = i.getUint32(Wt.ENDIANNESS, !0) === B0, o = i.getUint32(Wt.GL_TYPE, n), s = i.getUint32(Wt.GL_FORMAT, n), a = i.getUint32(Wt.GL_INTERNAL_FORMAT, n), h = i.getUint32(Wt.PIXEL_WIDTH, n), u = i.getUint32(Wt.PIXEL_HEIGHT, n) || 1, l = i.getUint32(Wt.PIXEL_DEPTH, n) || 1, c = i.getUint32(Wt.NUMBER_OF_ARRAY_ELEMENTS, n) || 1, d = i.getUint32(Wt.NUMBER_OF_FACES, n), p = i.getUint32(Wt.NUMBER_OF_MIPMAP_LEVELS, n), f = i.getUint32(Wt.BYTES_OF_KEY_VALUE_DATA, n);
|
|
13233
13231
|
if (u === 0 || l !== 1)
|
|
13234
13232
|
throw new Error("Only 2D textures are supported");
|
|
13235
13233
|
if (d !== 1)
|
|
@@ -13239,9 +13237,9 @@ function X0(r, e, t) {
|
|
|
13239
13237
|
var m = 4, y = 4, _ = h + 3 & -4, g = u + 3 & -4, v = new Array(c), x = h * u;
|
|
13240
13238
|
o === 0 && (x = _ * g);
|
|
13241
13239
|
var T;
|
|
13242
|
-
if (o !== 0 ? Oh[o] ? T = Oh[o] *
|
|
13240
|
+
if (o !== 0 ? Oh[o] ? T = Oh[o] * G0[s] : T = U0[o] : T = vn[a], T === void 0)
|
|
13243
13241
|
throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
|
|
13244
|
-
for (var S = t ?
|
|
13242
|
+
for (var S = t ? H0(i, f, n) : null, O = x * T, A = O, b = h, E = u, R = _, M = g, P = rs + f, N = 0; N < p; N++) {
|
|
13245
13243
|
for (var D = i.getUint32(P, n), C = P + 4, z = 0; z < c; z++) {
|
|
13246
13244
|
var st = v[z];
|
|
13247
13245
|
st || (st = v[z] = new Array(p)), st[N] = {
|
|
@@ -13263,7 +13261,7 @@ function X0(r, e, t) {
|
|
|
13263
13261
|
height: K[0].levelHeight
|
|
13264
13262
|
}),
|
|
13265
13263
|
type: o,
|
|
13266
|
-
format: I ?
|
|
13264
|
+
format: I ? j0(s) : s
|
|
13267
13265
|
};
|
|
13268
13266
|
}),
|
|
13269
13267
|
kvData: S
|
|
@@ -13280,13 +13278,13 @@ function X0(r, e, t) {
|
|
|
13280
13278
|
kvData: S
|
|
13281
13279
|
};
|
|
13282
13280
|
}
|
|
13283
|
-
function
|
|
13281
|
+
function X0(r, e) {
|
|
13284
13282
|
for (var t = 0; t < Sh.length; t++)
|
|
13285
13283
|
if (e.getUint8(t) !== Sh[t])
|
|
13286
13284
|
return console.error(r + " is not a valid *.ktx file!"), !1;
|
|
13287
13285
|
return !0;
|
|
13288
13286
|
}
|
|
13289
|
-
function
|
|
13287
|
+
function j0(r) {
|
|
13290
13288
|
switch (r) {
|
|
13291
13289
|
case F.RGBA:
|
|
13292
13290
|
return F.RGBA_INTEGER;
|
|
@@ -13300,7 +13298,7 @@ function H0(r) {
|
|
|
13300
13298
|
return r;
|
|
13301
13299
|
}
|
|
13302
13300
|
}
|
|
13303
|
-
function
|
|
13301
|
+
function H0(r, e, t) {
|
|
13304
13302
|
for (var i = /* @__PURE__ */ new Map(), n = 0; n < e; ) {
|
|
13305
13303
|
var o = r.getUint32(rs + n, t), s = rs + n + 4, a = 3 - (o + 3) % 4;
|
|
13306
13304
|
if (o === 0 || o > e - n) {
|
|
@@ -13319,7 +13317,7 @@ function Y0(r, e, t) {
|
|
|
13319
13317
|
return i;
|
|
13320
13318
|
}
|
|
13321
13319
|
At.setExtensionXhrType("dds", At.XHR_RESPONSE_TYPE.BUFFER);
|
|
13322
|
-
var
|
|
13320
|
+
var Y0 = (
|
|
13323
13321
|
/** @class */
|
|
13324
13322
|
function() {
|
|
13325
13323
|
function r() {
|
|
@@ -13327,7 +13325,7 @@ var V0 = (
|
|
|
13327
13325
|
return r.use = function(e, t) {
|
|
13328
13326
|
if (e.extension === "dds" && e.data)
|
|
13329
13327
|
try {
|
|
13330
|
-
Object.assign(e, pl(e.name || e.url,
|
|
13328
|
+
Object.assign(e, pl(e.name || e.url, L0(e.data), e.metadata));
|
|
13331
13329
|
} catch (i) {
|
|
13332
13330
|
t(i);
|
|
13333
13331
|
return;
|
|
@@ -13337,7 +13335,7 @@ var V0 = (
|
|
|
13337
13335
|
}()
|
|
13338
13336
|
);
|
|
13339
13337
|
At.setExtensionXhrType("ktx", At.XHR_RESPONSE_TYPE.BUFFER);
|
|
13340
|
-
var
|
|
13338
|
+
var V0 = (
|
|
13341
13339
|
/** @class */
|
|
13342
13340
|
function() {
|
|
13343
13341
|
function r() {
|
|
@@ -13345,7 +13343,7 @@ var z0 = (
|
|
|
13345
13343
|
return r.use = function(e, t) {
|
|
13346
13344
|
if (e.extension === "ktx" && e.data)
|
|
13347
13345
|
try {
|
|
13348
|
-
var i = e.name || e.url, n =
|
|
13346
|
+
var i = e.name || e.url, n = k0(i, e.data, this.loadKeyValueData), o = n.compressed, s = n.uncompressed, a = n.kvData;
|
|
13349
13347
|
if (o) {
|
|
13350
13348
|
var h = pl(i, o, e.metadata);
|
|
13351
13349
|
if (a && h.textures)
|
|
@@ -13472,7 +13470,7 @@ var Rh = (
|
|
|
13472
13470
|
}
|
|
13473
13471
|
return r.prototype.initBuffers = function() {
|
|
13474
13472
|
var e = this.geometry, t = 0;
|
|
13475
|
-
this.indexBuffer = new Rt(
|
|
13473
|
+
this.indexBuffer = new Rt(rg(this.size), !0, !0), e.addIndex(this.indexBuffer), this.dynamicStride = 0;
|
|
13476
13474
|
for (var i = 0; i < this.dynamicProperties.length; ++i) {
|
|
13477
13475
|
var n = this.dynamicProperties[i];
|
|
13478
13476
|
n.offset = t, t += n.size, this.dynamicStride += n.size;
|
|
@@ -13511,7 +13509,7 @@ var Rh = (
|
|
|
13511
13509
|
this.indexBuffer = null, this.dynamicProperties = null, this.dynamicBuffer = null, this.dynamicData = null, this.dynamicDataUint32 = null, this.staticProperties = null, this.staticBuffer = null, this.staticData = null, this.staticDataUint32 = null, this.geometry.destroy();
|
|
13512
13510
|
}, r;
|
|
13513
13511
|
}()
|
|
13514
|
-
),
|
|
13512
|
+
), z0 = `varying vec2 vTextureCoord;
|
|
13515
13513
|
varying vec4 vColor;
|
|
13516
13514
|
|
|
13517
13515
|
uniform sampler2D uSampler;
|
|
@@ -13519,7 +13517,7 @@ uniform sampler2D uSampler;
|
|
|
13519
13517
|
void main(void){
|
|
13520
13518
|
vec4 color = texture2D(uSampler, vTextureCoord) * vColor;
|
|
13521
13519
|
gl_FragColor = color;
|
|
13522
|
-
}`,
|
|
13520
|
+
}`, W0 = `attribute vec2 aVertexPosition;
|
|
13523
13521
|
attribute vec2 aTextureCoord;
|
|
13524
13522
|
attribute vec4 aColor;
|
|
13525
13523
|
|
|
@@ -13544,7 +13542,7 @@ void main(void){
|
|
|
13544
13542
|
vTextureCoord = aTextureCoord;
|
|
13545
13543
|
vColor = aColor * uColor;
|
|
13546
13544
|
}
|
|
13547
|
-
`,
|
|
13545
|
+
`, $0 = (
|
|
13548
13546
|
/** @class */
|
|
13549
13547
|
function(r) {
|
|
13550
13548
|
fl(e, r);
|
|
@@ -13587,7 +13585,7 @@ void main(void){
|
|
|
13587
13585
|
uploadFunction: i.uploadTint,
|
|
13588
13586
|
offset: 0
|
|
13589
13587
|
}
|
|
13590
|
-
], i.shader = Re.from(
|
|
13588
|
+
], i.shader = Re.from(W0, z0, {}), i.state = ir.for2d(), i;
|
|
13591
13589
|
}
|
|
13592
13590
|
return e.prototype.render = function(t) {
|
|
13593
13591
|
var i = t.children, n = t._maxSize, o = t._batchSize, s = this.renderer, a = i.length;
|
|
@@ -13598,7 +13596,7 @@ void main(void){
|
|
|
13598
13596
|
var u = i[0]._texture.baseTexture, l = u.alphaMode > 0;
|
|
13599
13597
|
this.state.blendMode = ju(t.blendMode, l), s.state.set(this.state);
|
|
13600
13598
|
var c = s.gl, d = t.worldTransform.copyTo(this.tempMatrix);
|
|
13601
|
-
d.prepend(s.globalUniforms.uniforms.projectionMatrix), this.shader.uniforms.translationMatrix = d.toArray(!0), this.shader.uniforms.uColor =
|
|
13599
|
+
d.prepend(s.globalUniforms.uniforms.projectionMatrix), this.shader.uniforms.translationMatrix = d.toArray(!0), this.shader.uniforms.uColor = eg(t.tintRgb, t.worldAlpha, this.shader.uniforms.uColor, l), this.shader.uniforms.uSampler = u, this.renderer.shader.bind(this.shader);
|
|
13602
13600
|
for (var p = !1, f = 0, m = 0; f < a; f += o, m += 1) {
|
|
13603
13601
|
var y = a - f;
|
|
13604
13602
|
y > o && (y = o), m >= h.length && h.push(this._generateOneMoreBuffer(t));
|
|
@@ -13816,7 +13814,7 @@ var yl = {
|
|
|
13816
13814
|
n.push(s + 1, s, o);
|
|
13817
13815
|
}
|
|
13818
13816
|
}
|
|
13819
|
-
},
|
|
13817
|
+
}, q0 = {
|
|
13820
13818
|
build: function(r) {
|
|
13821
13819
|
var e = r.shape, t = e.x, i = e.y, n = e.width, o = e.height, s = r.points;
|
|
13822
13820
|
s.length = 0, s.push(t, i, t + n, i, t + n, i + o, t, i + o);
|
|
@@ -13836,7 +13834,7 @@ function Vi(r, e, t, i, n, o, s) {
|
|
|
13836
13834
|
y = m / a, u = cr(r, t, y), l = cr(e, i, y), c = cr(t, n, y), d = cr(i, o, y), p = cr(u, c, y), f = cr(l, d, y), !(m === 0 && h[h.length - 2] === p && h[h.length - 1] === f) && h.push(p, f);
|
|
13837
13835
|
return h;
|
|
13838
13836
|
}
|
|
13839
|
-
var
|
|
13837
|
+
var K0 = {
|
|
13840
13838
|
build: function(r) {
|
|
13841
13839
|
if (Pr.nextRoundedRectBehavior) {
|
|
13842
13840
|
bn.build(r);
|
|
@@ -13879,7 +13877,7 @@ function Ue(r, e, t, i, n, o, s, a) {
|
|
|
13879
13877
|
}
|
|
13880
13878
|
return y * 2;
|
|
13881
13879
|
}
|
|
13882
|
-
function
|
|
13880
|
+
function Z0(r, e) {
|
|
13883
13881
|
var t = r.shape, i = r.points || t.points.slice(), n = e.closePointEps;
|
|
13884
13882
|
if (i.length !== 0) {
|
|
13885
13883
|
var o = r.lineStyle, s = new _t(i[0], i[1]), a = new _t(i[i.length - 2], i[i.length - 1]), h = t.type !== Dt.POLY || t.closeStroke, u = Math.abs(s.x - a.x) < n && Math.abs(s.y - a.y) < n;
|
|
@@ -13907,7 +13905,7 @@ function J0(r, e) {
|
|
|
13907
13905
|
v = d[z * 2], x = d[z * 2 + 1], T = d[(z + 1) * 2], S = d[(z + 1) * 2 + 1], O = d[(z + 2) * 2], A = d[(z + 2) * 2 + 1], !(Math.abs(v * (S - A) + T * (A - x) + O * (x - S)) < nr) && ne.push(z, z + 1, z + 2);
|
|
13908
13906
|
}
|
|
13909
13907
|
}
|
|
13910
|
-
function
|
|
13908
|
+
function J0(r, e) {
|
|
13911
13909
|
var t = 0, i = r.shape, n = r.points || i.points, o = i.type !== Dt.POLY || i.closeStroke;
|
|
13912
13910
|
if (n.length !== 0) {
|
|
13913
13911
|
var s = e.points, a = e.indices, h = n.length / 2, u = s.length / 2, l = u;
|
|
@@ -13917,7 +13915,7 @@ function Q0(r, e) {
|
|
|
13917
13915
|
}
|
|
13918
13916
|
}
|
|
13919
13917
|
function Ih(r, e) {
|
|
13920
|
-
r.lineStyle.native ?
|
|
13918
|
+
r.lineStyle.native ? J0(r, e) : Z0(r, e);
|
|
13921
13919
|
}
|
|
13922
13920
|
var Dh = (
|
|
13923
13921
|
/** @class */
|
|
@@ -13944,7 +13942,7 @@ var Dh = (
|
|
|
13944
13942
|
}
|
|
13945
13943
|
}, r;
|
|
13946
13944
|
}()
|
|
13947
|
-
),
|
|
13945
|
+
), Q0 = (
|
|
13948
13946
|
/** @class */
|
|
13949
13947
|
function() {
|
|
13950
13948
|
function r() {
|
|
@@ -13962,7 +13960,7 @@ var Dh = (
|
|
|
13962
13960
|
_ = y / l, c = 1 - _, d = c * c, p = d * c, f = _ * _, m = f * _, a.push(p * h + 3 * d * _ * e + 3 * c * f * i + m * o, p * u + 3 * d * _ * t + 3 * c * f * n + m * s);
|
|
13963
13961
|
}, r;
|
|
13964
13962
|
}()
|
|
13965
|
-
),
|
|
13963
|
+
), tb = (
|
|
13966
13964
|
/** @class */
|
|
13967
13965
|
function() {
|
|
13968
13966
|
function r() {
|
|
@@ -13977,7 +13975,7 @@ var Dh = (
|
|
|
13977
13975
|
}
|
|
13978
13976
|
}, r;
|
|
13979
13977
|
}()
|
|
13980
|
-
),
|
|
13978
|
+
), eb = (
|
|
13981
13979
|
/** @class */
|
|
13982
13980
|
function() {
|
|
13983
13981
|
function r() {
|
|
@@ -13991,7 +13989,7 @@ var Dh = (
|
|
|
13991
13989
|
this.style = null, this.size = 0, this.start = 0, this.attribStart = 0, this.attribSize = 0;
|
|
13992
13990
|
}, r;
|
|
13993
13991
|
}()
|
|
13994
|
-
), ke, fo = (ke = {}, ke[Dt.POLY] = yl, ke[Dt.CIRC] = bn, ke[Dt.ELIP] = bn, ke[Dt.RECT] =
|
|
13992
|
+
), ke, fo = (ke = {}, ke[Dt.POLY] = yl, ke[Dt.CIRC] = bn, ke[Dt.ELIP] = bn, ke[Dt.RECT] = q0, ke[Dt.RREC] = K0, ke), Ch = [], zi = [], Fh = (
|
|
13995
13993
|
/** @class */
|
|
13996
13994
|
function() {
|
|
13997
13995
|
function r(e, t, i, n) {
|
|
@@ -14003,7 +14001,7 @@ var Dh = (
|
|
|
14003
14001
|
this.shape = null, this.holes.length = 0, this.holes = null, this.points.length = 0, this.points = null, this.lineStyle = null, this.fillStyle = null;
|
|
14004
14002
|
}, r;
|
|
14005
14003
|
}()
|
|
14006
|
-
), dr = new _t(),
|
|
14004
|
+
), dr = new _t(), rb = (
|
|
14007
14005
|
/** @class */
|
|
14008
14006
|
function(r) {
|
|
14009
14007
|
ks(e, r);
|
|
@@ -14084,7 +14082,7 @@ var Dh = (
|
|
|
14084
14082
|
var p = d.texture.baseTexture, f = this.indices.length, m = this.points.length / 2;
|
|
14085
14083
|
p.wrapMode = ue.REPEAT, c === 0 ? this.processFill(a) : this.processLine(a);
|
|
14086
14084
|
var y = this.points.length / 2 - m;
|
|
14087
|
-
y !== 0 && (n && !this._compareStyles(o, d) && (n.end(f, m), n = null), n || (n = Ch.pop() || new
|
|
14085
|
+
y !== 0 && (n && !this._compareStyles(o, d) && (n.end(f, m), n = null), n || (n = Ch.pop() || new eb(), n.begin(d, f, m), this.batches.push(n), o = d), this.addUvs(this.points, t, d.texture, m, y, d.matrix));
|
|
14088
14086
|
}
|
|
14089
14087
|
}
|
|
14090
14088
|
}
|
|
@@ -14192,7 +14190,7 @@ var Dh = (
|
|
|
14192
14190
|
t[y] = (t[y] + d) * l, t[y + 1] = (t[y + 1] + p) * c;
|
|
14193
14191
|
}, e.BATCHABLE_SIZE = 100, e;
|
|
14194
14192
|
}(ul)
|
|
14195
|
-
),
|
|
14193
|
+
), ib = (
|
|
14196
14194
|
/** @class */
|
|
14197
14195
|
function(r) {
|
|
14198
14196
|
ks(e, r);
|
|
@@ -14207,14 +14205,14 @@ var Dh = (
|
|
|
14207
14205
|
r.prototype.reset.call(this), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1;
|
|
14208
14206
|
}, e;
|
|
14209
14207
|
}(ml)
|
|
14210
|
-
),
|
|
14208
|
+
), nb = new Float32Array(3), mo = {}, Pr = (
|
|
14211
14209
|
/** @class */
|
|
14212
14210
|
function(r) {
|
|
14213
14211
|
ks(e, r);
|
|
14214
14212
|
function e(t) {
|
|
14215
14213
|
t === void 0 && (t = null);
|
|
14216
14214
|
var i = r.call(this) || this;
|
|
14217
|
-
return i.shader = null, i.pluginName = "batch", i.currentPath = null, i.batches = [], i.batchTint = -1, i.batchDirty = -1, i.vertexData = null, i._fillStyle = new ml(), i._lineStyle = new
|
|
14215
|
+
return i.shader = null, i.pluginName = "batch", i.currentPath = null, i.batches = [], i.batchTint = -1, i.batchDirty = -1, i.vertexData = null, i._fillStyle = new ml(), i._lineStyle = new ib(), i._matrix = null, i._holeMode = !1, i.state = ir.for2d(), i._geometry = t || new rb(), i._geometry.refCount++, i._transformID = -1, i.tint = 16777215, i.blendMode = X.NORMAL, i;
|
|
14218
14216
|
}
|
|
14219
14217
|
return Object.defineProperty(e.prototype, "geometry", {
|
|
14220
14218
|
/**
|
|
@@ -14317,9 +14315,9 @@ var Dh = (
|
|
|
14317
14315
|
}, e.prototype.quadraticCurveTo = function(t, i, n, o) {
|
|
14318
14316
|
this._initCurve();
|
|
14319
14317
|
var s = this.currentPath.points;
|
|
14320
|
-
return s.length === 0 && this.moveTo(0, 0),
|
|
14318
|
+
return s.length === 0 && this.moveTo(0, 0), tb.curveTo(t, i, n, o, s), this;
|
|
14321
14319
|
}, e.prototype.bezierCurveTo = function(t, i, n, o, s, a) {
|
|
14322
|
-
return this._initCurve(),
|
|
14320
|
+
return this._initCurve(), Q0.curveTo(t, i, n, o, s, a, this.currentPath.points), this;
|
|
14323
14321
|
}, e.prototype.arcTo = function(t, i, n, o, s) {
|
|
14324
14322
|
this._initCurve(t, i);
|
|
14325
14323
|
var a = this.currentPath.points, h = Dh.curveTo(t, i, n, o, s, a);
|
|
@@ -14358,11 +14356,11 @@ var Dh = (
|
|
|
14358
14356
|
}, e.prototype.drawRect = function(t, i, n, o) {
|
|
14359
14357
|
return this.drawShape(new it(t, i, n, o));
|
|
14360
14358
|
}, e.prototype.drawRoundedRect = function(t, i, n, o, s) {
|
|
14361
|
-
return this.drawShape(new
|
|
14359
|
+
return this.drawShape(new lg(t, i, n, o, s));
|
|
14362
14360
|
}, e.prototype.drawCircle = function(t, i, n) {
|
|
14363
|
-
return this.drawShape(new
|
|
14361
|
+
return this.drawShape(new hg(t, i, n));
|
|
14364
14362
|
}, e.prototype.drawEllipse = function(t, i, n, o) {
|
|
14365
|
-
return this.drawShape(new
|
|
14363
|
+
return this.drawShape(new ug(t, i, n, o));
|
|
14366
14364
|
}, e.prototype.drawPolygon = function() {
|
|
14367
14365
|
for (var t = arguments, i = [], n = 0; n < arguments.length; n++)
|
|
14368
14366
|
i[n] = t[n];
|
|
@@ -14443,7 +14441,7 @@ var Dh = (
|
|
|
14443
14441
|
}, e.prototype.calculateTints = function() {
|
|
14444
14442
|
if (this.batchTint !== this.tint) {
|
|
14445
14443
|
this.batchTint = this.tint;
|
|
14446
|
-
for (var t = Mr(this.tint,
|
|
14444
|
+
for (var t = Mr(this.tint, nb), i = 0; i < this.batches.length; i++) {
|
|
14447
14445
|
var n = this.batches[i], o = n._batchRGB, s = t[0] * o[0] * 255, a = t[1] * o[1] * 255, h = t[2] * o[2] * 255, u = (s << 16) + (a << 8) + (h | 0);
|
|
14448
14446
|
n._tintRGB = (u >> 16) + (u & 65280) + ((u & 255) << 16);
|
|
14449
14447
|
}
|
|
@@ -14500,20 +14498,20 @@ var os = function(r, e) {
|
|
|
14500
14498
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
14501
14499
|
}, os(r, e);
|
|
14502
14500
|
};
|
|
14503
|
-
function
|
|
14501
|
+
function ob(r, e) {
|
|
14504
14502
|
os(r, e);
|
|
14505
14503
|
function t() {
|
|
14506
14504
|
this.constructor = r;
|
|
14507
14505
|
}
|
|
14508
14506
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
14509
14507
|
}
|
|
14510
|
-
var Yr = new _t(),
|
|
14508
|
+
var Yr = new _t(), sb = new Uint16Array([0, 1, 2, 0, 2, 3]), _i = (
|
|
14511
14509
|
/** @class */
|
|
14512
14510
|
function(r) {
|
|
14513
|
-
|
|
14511
|
+
ob(e, r);
|
|
14514
14512
|
function e(t) {
|
|
14515
14513
|
var i = r.call(this) || this;
|
|
14516
|
-
return i._anchor = new vr(i._onAnchorUpdate, i, t ? t.defaultAnchor.x : 0, t ? t.defaultAnchor.y : 0), i._texture = null, i._width = 0, i._height = 0, i._tint = null, i._tintRGB = null, i.tint = 16777215, i.blendMode = X.NORMAL, i._cachedTint = 16777215, i.uvs = null, i.texture = t || W.EMPTY, i.vertexData = new Float32Array(8), i.vertexTrimmedData = null, i._transformID = -1, i._textureID = -1, i._transformTrimmedID = -1, i._textureTrimmedID = -1, i.indices =
|
|
14514
|
+
return i._anchor = new vr(i._onAnchorUpdate, i, t ? t.defaultAnchor.x : 0, t ? t.defaultAnchor.y : 0), i._texture = null, i._width = 0, i._height = 0, i._tint = null, i._tintRGB = null, i.tint = 16777215, i.blendMode = X.NORMAL, i._cachedTint = 16777215, i.uvs = null, i.texture = t || W.EMPTY, i.vertexData = new Float32Array(8), i.vertexTrimmedData = null, i._transformID = -1, i._textureID = -1, i._transformTrimmedID = -1, i._textureTrimmedID = -1, i.indices = sb, i.pluginName = "batch", i.isSprite = !0, i._roundPixels = G.ROUND_PIXELS, i;
|
|
14517
14515
|
}
|
|
14518
14516
|
return e.prototype._onTextureUpdate = function() {
|
|
14519
14517
|
this._textureID = -1, this._textureTrimmedID = -1, this._cachedTint = 16777215, this._width && (this.scale.x = gr(this.scale.x) * this._width / this._texture.orig.width), this._height && (this.scale.y = gr(this.scale.y) * this._height / this._texture.orig.height);
|
|
@@ -14679,7 +14677,7 @@ var ss = function(r, e) {
|
|
|
14679
14677
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
14680
14678
|
}, ss(r, e);
|
|
14681
14679
|
};
|
|
14682
|
-
function
|
|
14680
|
+
function ab(r, e) {
|
|
14683
14681
|
ss(r, e);
|
|
14684
14682
|
function t() {
|
|
14685
14683
|
this.constructor = r;
|
|
@@ -14720,7 +14718,7 @@ var yo = {
|
|
|
14720
14718
|
wordWrap: !1,
|
|
14721
14719
|
wordWrapWidth: 100,
|
|
14722
14720
|
leading: 0
|
|
14723
|
-
},
|
|
14721
|
+
}, hb = [
|
|
14724
14722
|
"serif",
|
|
14725
14723
|
"sans-serif",
|
|
14726
14724
|
"monospace",
|
|
@@ -14864,7 +14862,7 @@ var yo = {
|
|
|
14864
14862
|
return this._fillGradientStops;
|
|
14865
14863
|
},
|
|
14866
14864
|
set: function(e) {
|
|
14867
|
-
|
|
14865
|
+
ub(this._fillGradientStops, e) || (this._fillGradientStops = e, this.styleID++);
|
|
14868
14866
|
},
|
|
14869
14867
|
enumerable: !1,
|
|
14870
14868
|
configurable: !0
|
|
@@ -15106,7 +15104,7 @@ var yo = {
|
|
|
15106
15104
|
Array.isArray(this.fontFamily) || (t = this.fontFamily.split(","));
|
|
15107
15105
|
for (var i = t.length - 1; i >= 0; i--) {
|
|
15108
15106
|
var n = t[i].trim();
|
|
15109
|
-
!/([\"\'])[^\'\"]+\1/.test(n) &&
|
|
15107
|
+
!/([\"\'])[^\'\"]+\1/.test(n) && hb.indexOf(n) < 0 && (n = '"' + n + '"'), t[i] = n;
|
|
15110
15108
|
}
|
|
15111
15109
|
return this.fontStyle + " " + this.fontVariant + " " + this.fontWeight + " " + e + " " + t.join(",");
|
|
15112
15110
|
}, r;
|
|
@@ -15123,7 +15121,7 @@ function _o(r) {
|
|
|
15123
15121
|
} else
|
|
15124
15122
|
return Nh(r);
|
|
15125
15123
|
}
|
|
15126
|
-
function
|
|
15124
|
+
function ub(r, e) {
|
|
15127
15125
|
if (!Array.isArray(r) || !Array.isArray(e) || r.length !== e.length)
|
|
15128
15126
|
return !1;
|
|
15129
15127
|
for (var t = 0; t < r.length; ++t)
|
|
@@ -15344,14 +15342,14 @@ pe._breakingSpaces = [
|
|
|
15344
15342
|
8287,
|
|
15345
15343
|
12288
|
|
15346
15344
|
];
|
|
15347
|
-
var
|
|
15345
|
+
var lb = {
|
|
15348
15346
|
texture: !0,
|
|
15349
15347
|
children: !1,
|
|
15350
15348
|
baseTexture: !0
|
|
15351
15349
|
}, _l = (
|
|
15352
15350
|
/** @class */
|
|
15353
15351
|
function(r) {
|
|
15354
|
-
|
|
15352
|
+
ab(e, r);
|
|
15355
15353
|
function e(t, i, n) {
|
|
15356
15354
|
var o = this, s = !1;
|
|
15357
15355
|
n || (n = G.ADAPTER.createCanvas(), s = !0), n.width = 3, n.height = 3;
|
|
@@ -15399,7 +15397,7 @@ var cb = {
|
|
|
15399
15397
|
}, e.prototype.updateTexture = function() {
|
|
15400
15398
|
var t = this.canvas;
|
|
15401
15399
|
if (this._style.trim) {
|
|
15402
|
-
var i =
|
|
15400
|
+
var i = ng(t);
|
|
15403
15401
|
i.data && (t.width = i.width, t.height = i.height, this.context.putImageData(i.data, 0, 0));
|
|
15404
15402
|
}
|
|
15405
15403
|
var n = this._texture, o = this._style, s = o.trim ? 0 : o.padding, a = n.baseTexture;
|
|
@@ -15448,7 +15446,7 @@ var cb = {
|
|
|
15448
15446
|
}
|
|
15449
15447
|
return s;
|
|
15450
15448
|
}, e.prototype.destroy = function(t) {
|
|
15451
|
-
typeof t == "boolean" && (t = { children: t }), t = Object.assign({},
|
|
15449
|
+
typeof t == "boolean" && (t = { children: t }), t = Object.assign({}, lb, t), r.prototype.destroy.call(this, t), this._ownCanvas && (this.canvas.height = this.canvas.width = 0), this.context = null, this.canvas = null, this._style = null;
|
|
15452
15450
|
}, Object.defineProperty(e.prototype, "width", {
|
|
15453
15451
|
/** The width of the Text, setting this will actually modify the scale to achieve the value set. */
|
|
15454
15452
|
get: function() {
|
|
@@ -15545,14 +15543,14 @@ var as = function(r, e) {
|
|
|
15545
15543
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
15546
15544
|
}, as(r, e);
|
|
15547
15545
|
};
|
|
15548
|
-
function
|
|
15546
|
+
function cb(r, e) {
|
|
15549
15547
|
as(r, e);
|
|
15550
15548
|
function t() {
|
|
15551
15549
|
this.constructor = r;
|
|
15552
15550
|
}
|
|
15553
15551
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
15554
15552
|
}
|
|
15555
|
-
var
|
|
15553
|
+
var db = (
|
|
15556
15554
|
/** @class */
|
|
15557
15555
|
function() {
|
|
15558
15556
|
function r(e) {
|
|
@@ -15565,7 +15563,7 @@ var pb = (
|
|
|
15565
15563
|
}, r;
|
|
15566
15564
|
}()
|
|
15567
15565
|
);
|
|
15568
|
-
function
|
|
15566
|
+
function pb(r, e) {
|
|
15569
15567
|
var t = !1;
|
|
15570
15568
|
if (r && r._textures && r._textures.length) {
|
|
15571
15569
|
for (var i = 0; i < r._textures.length; i++)
|
|
@@ -15576,31 +15574,31 @@ function fb(r, e) {
|
|
|
15576
15574
|
}
|
|
15577
15575
|
return t;
|
|
15578
15576
|
}
|
|
15579
|
-
function
|
|
15577
|
+
function fb(r, e) {
|
|
15580
15578
|
if (r.baseTexture instanceof rt) {
|
|
15581
15579
|
var t = r.baseTexture;
|
|
15582
15580
|
return e.indexOf(t) === -1 && e.push(t), !0;
|
|
15583
15581
|
}
|
|
15584
15582
|
return !1;
|
|
15585
15583
|
}
|
|
15586
|
-
function
|
|
15584
|
+
function mb(r, e) {
|
|
15587
15585
|
if (r._texture && r._texture instanceof W) {
|
|
15588
15586
|
var t = r._texture.baseTexture;
|
|
15589
15587
|
return e.indexOf(t) === -1 && e.push(t), !0;
|
|
15590
15588
|
}
|
|
15591
15589
|
return !1;
|
|
15592
15590
|
}
|
|
15593
|
-
function
|
|
15591
|
+
function yb(r, e) {
|
|
15594
15592
|
return e instanceof _l ? (e.updateText(!0), !0) : !1;
|
|
15595
15593
|
}
|
|
15596
|
-
function
|
|
15594
|
+
function _b(r, e) {
|
|
15597
15595
|
if (e instanceof Ir) {
|
|
15598
15596
|
var t = e.toFontString();
|
|
15599
15597
|
return pe.measureFont(t), !0;
|
|
15600
15598
|
}
|
|
15601
15599
|
return !1;
|
|
15602
15600
|
}
|
|
15603
|
-
function
|
|
15601
|
+
function gb(r, e) {
|
|
15604
15602
|
if (r instanceof _l) {
|
|
15605
15603
|
e.indexOf(r.style) === -1 && e.push(r.style), e.indexOf(r) === -1 && e.push(r);
|
|
15606
15604
|
var t = r._texture.baseTexture;
|
|
@@ -15608,17 +15606,17 @@ function vb(r, e) {
|
|
|
15608
15606
|
}
|
|
15609
15607
|
return !1;
|
|
15610
15608
|
}
|
|
15611
|
-
function
|
|
15609
|
+
function vb(r, e) {
|
|
15612
15610
|
return r instanceof Ir ? (e.indexOf(r) === -1 && e.push(r), !0) : !1;
|
|
15613
15611
|
}
|
|
15614
|
-
var
|
|
15612
|
+
var bb = (
|
|
15615
15613
|
/** @class */
|
|
15616
15614
|
function() {
|
|
15617
15615
|
function r(e) {
|
|
15618
15616
|
var t = this;
|
|
15619
|
-
this.limiter = new
|
|
15617
|
+
this.limiter = new db(G.UPLOADS_PER_FRAME), this.renderer = e, this.uploadHookHelper = null, this.queue = [], this.addHooks = [], this.uploadHooks = [], this.completes = [], this.ticking = !1, this.delayedTick = function() {
|
|
15620
15618
|
t.queue && t.prepareItems();
|
|
15621
|
-
}, this.registerFindHook(
|
|
15619
|
+
}, this.registerFindHook(gb), this.registerFindHook(vb), this.registerFindHook(pb), this.registerFindHook(fb), this.registerFindHook(mb), this.registerUploadHook(yb), this.registerUploadHook(_b);
|
|
15622
15620
|
}
|
|
15623
15621
|
return r.prototype.upload = function(e, t) {
|
|
15624
15622
|
var i = this;
|
|
@@ -15671,7 +15669,7 @@ var xb = (
|
|
|
15671
15669
|
function gl(r, e) {
|
|
15672
15670
|
return e instanceof rt ? (e._glTextures[r.CONTEXT_UID] || r.texture.bind(e), !0) : !1;
|
|
15673
15671
|
}
|
|
15674
|
-
function
|
|
15672
|
+
function xb(r, e) {
|
|
15675
15673
|
if (!(e instanceof Pr))
|
|
15676
15674
|
return !1;
|
|
15677
15675
|
var t = e.geometry;
|
|
@@ -15682,22 +15680,22 @@ function Tb(r, e) {
|
|
|
15682
15680
|
}
|
|
15683
15681
|
return t.batchable || r.geometry.bind(t, e._resolveDirectShader(r)), !0;
|
|
15684
15682
|
}
|
|
15685
|
-
function
|
|
15683
|
+
function Tb(r, e) {
|
|
15686
15684
|
return r instanceof Pr ? (e.push(r), !0) : !1;
|
|
15687
15685
|
}
|
|
15688
|
-
var
|
|
15686
|
+
var Eb = (
|
|
15689
15687
|
/** @class */
|
|
15690
15688
|
function(r) {
|
|
15691
|
-
|
|
15689
|
+
cb(e, r);
|
|
15692
15690
|
function e(t) {
|
|
15693
15691
|
var i = r.call(this, t) || this;
|
|
15694
|
-
return i.uploadHookHelper = i.renderer, i.registerFindHook(
|
|
15692
|
+
return i.uploadHookHelper = i.renderer, i.registerFindHook(Tb), i.registerUploadHook(gl), i.registerUploadHook(xb), i;
|
|
15695
15693
|
}
|
|
15696
15694
|
return e.extension = {
|
|
15697
15695
|
name: "prepare",
|
|
15698
15696
|
type: ft.RendererPlugin
|
|
15699
15697
|
}, e;
|
|
15700
|
-
}(
|
|
15698
|
+
}(bb)
|
|
15701
15699
|
);
|
|
15702
15700
|
/*!
|
|
15703
15701
|
* @pixi/spritesheet - v6.5.10
|
|
@@ -15706,7 +15704,7 @@ var Ab = (
|
|
|
15706
15704
|
* @pixi/spritesheet is licensed under the MIT License.
|
|
15707
15705
|
* http://www.opensource.org/licenses/mit-license
|
|
15708
15706
|
*/
|
|
15709
|
-
var
|
|
15707
|
+
var Ab = (
|
|
15710
15708
|
/** @class */
|
|
15711
15709
|
function() {
|
|
15712
15710
|
function r(e, t, i) {
|
|
@@ -15759,7 +15757,7 @@ var wb = (
|
|
|
15759
15757
|
this._frames = null, this._frameKeys = null, this.data = null, this.textures = null, e && ((t = this._texture) === null || t === void 0 || t.destroy(), this.baseTexture.destroy()), this._texture = null, this.baseTexture = null, this.linkedSheets = [];
|
|
15760
15758
|
}, r.BATCH_SIZE = 1e3, r;
|
|
15761
15759
|
}()
|
|
15762
|
-
),
|
|
15760
|
+
), wb = (
|
|
15763
15761
|
/** @class */
|
|
15764
15762
|
function() {
|
|
15765
15763
|
function r() {
|
|
@@ -15802,7 +15800,7 @@ var wb = (
|
|
|
15802
15800
|
t(f.error);
|
|
15803
15801
|
return;
|
|
15804
15802
|
}
|
|
15805
|
-
var m = new
|
|
15803
|
+
var m = new Ab(f.texture, e.data, e.url);
|
|
15806
15804
|
m.parse().then(function() {
|
|
15807
15805
|
e.spritesheet = m, e.textures = m.textures, t();
|
|
15808
15806
|
});
|
|
@@ -15937,7 +15935,7 @@ var Vr = new _t();
|
|
|
15937
15935
|
configurable: !0
|
|
15938
15936
|
}), e;
|
|
15939
15937
|
})(_i);
|
|
15940
|
-
var
|
|
15938
|
+
var Sb = `#version 100
|
|
15941
15939
|
#define SHADER_NAME Tiling-Sprite-Simple-100
|
|
15942
15940
|
|
|
15943
15941
|
precision lowp float;
|
|
@@ -15972,7 +15970,7 @@ void main(void)
|
|
|
15972
15970
|
|
|
15973
15971
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
|
15974
15972
|
}
|
|
15975
|
-
`,
|
|
15973
|
+
`, Ob = `#version 100
|
|
15976
15974
|
#ifdef GL_EXT_shader_texture_lod
|
|
15977
15975
|
#extension GL_EXT_shader_texture_lod : enable
|
|
15978
15976
|
#endif
|
|
@@ -16005,7 +16003,7 @@ void main(void)
|
|
|
16005
16003
|
|
|
16006
16004
|
gl_FragColor = texSample * uColor;
|
|
16007
16005
|
}
|
|
16008
|
-
`,
|
|
16006
|
+
`, Rb = `#version 300 es
|
|
16009
16007
|
#define SHADER_NAME Tiling-Sprite-300
|
|
16010
16008
|
|
|
16011
16009
|
precision lowp float;
|
|
@@ -16025,7 +16023,7 @@ void main(void)
|
|
|
16025
16023
|
|
|
16026
16024
|
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
|
|
16027
16025
|
}
|
|
16028
|
-
`,
|
|
16026
|
+
`, Mb = `#version 300 es
|
|
16029
16027
|
#define SHADER_NAME Tiling-Sprite-100
|
|
16030
16028
|
|
|
16031
16029
|
precision lowp float;
|
|
@@ -16051,7 +16049,7 @@ void main(void)
|
|
|
16051
16049
|
|
|
16052
16050
|
fragmentColor = texSample * uColor;
|
|
16053
16051
|
}
|
|
16054
|
-
`, $i = new Mt(),
|
|
16052
|
+
`, $i = new Mt(), Pb = (
|
|
16055
16053
|
/** @class */
|
|
16056
16054
|
function(r) {
|
|
16057
16055
|
vl(e, r);
|
|
@@ -16061,7 +16059,7 @@ void main(void)
|
|
|
16061
16059
|
}
|
|
16062
16060
|
return e.prototype.contextChange = function() {
|
|
16063
16061
|
var t = this.renderer, i = { globals: t.globalUniforms };
|
|
16064
|
-
this.simpleShader = Re.from(Lh,
|
|
16062
|
+
this.simpleShader = Re.from(Lh, Sb, i), this.shader = t.context.webGLVersion > 1 ? Re.from(Rb, Mb, i) : Re.from(Lh, Ob, i);
|
|
16065
16063
|
}, e.prototype.render = function(t) {
|
|
16066
16064
|
var i = this.renderer, n = this.quad, o = n.vertices;
|
|
16067
16065
|
o[0] = o[6] = t._width * -t.anchor.x, o[1] = o[3] = t._height * -t.anchor.y, o[2] = o[4] = t._width * (1 - t.anchor.x), o[5] = o[7] = t._height * (1 - t.anchor.y);
|
|
@@ -16113,7 +16111,7 @@ function Xs(r, e) {
|
|
|
16113
16111
|
}
|
|
16114
16112
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
16115
16113
|
}
|
|
16116
|
-
var
|
|
16114
|
+
var Ib = (
|
|
16117
16115
|
/** @class */
|
|
16118
16116
|
function() {
|
|
16119
16117
|
function r(e, t) {
|
|
@@ -16263,7 +16261,7 @@ var Db = (
|
|
|
16263
16261
|
}
|
|
16264
16262
|
}, e.prototype.calculateUvs = function() {
|
|
16265
16263
|
var t = this.geometry.buffers[1], i = this.shader;
|
|
16266
|
-
i.uvMatrix.isSimple ? this.uvs = t.data : (this.batchUvs || (this.batchUvs = new
|
|
16264
|
+
i.uvMatrix.isSimple ? this.uvs = t.data : (this.batchUvs || (this.batchUvs = new Ib(t, i.uvMatrix)), this.batchUvs.update(), this.uvs = this.batchUvs.data);
|
|
16267
16265
|
}, e.prototype._calculateBounds = function() {
|
|
16268
16266
|
this.calculateVertices(), this._bounds.addVertexData(this.vertexData, 0, this.vertexData.length);
|
|
16269
16267
|
}, e.prototype.containsPoint = function(t) {
|
|
@@ -16280,7 +16278,7 @@ var Db = (
|
|
|
16280
16278
|
r.prototype.destroy.call(this, t), this._cachedTexture && (this._cachedTexture.destroy(), this._cachedTexture = null), this.geometry = null, this.shader = null, this.state = null, this.uvs = null, this.indices = null, this.vertexData = null;
|
|
16281
16279
|
}, e.BATCHABLE_SIZE = 100, e;
|
|
16282
16280
|
}(ce)
|
|
16283
|
-
),
|
|
16281
|
+
), Db = `varying vec2 vTextureCoord;
|
|
16284
16282
|
uniform vec4 uColor;
|
|
16285
16283
|
|
|
16286
16284
|
uniform sampler2D uSampler;
|
|
@@ -16289,7 +16287,7 @@ void main(void)
|
|
|
16289
16287
|
{
|
|
16290
16288
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;
|
|
16291
16289
|
}
|
|
16292
|
-
`,
|
|
16290
|
+
`, Cb = `attribute vec2 aVertexPosition;
|
|
16293
16291
|
attribute vec2 aTextureCoord;
|
|
16294
16292
|
|
|
16295
16293
|
uniform mat3 projectionMatrix;
|
|
@@ -16319,7 +16317,7 @@ void main(void)
|
|
|
16319
16317
|
tint: 16777215,
|
|
16320
16318
|
alpha: 1,
|
|
16321
16319
|
pluginName: "batch"
|
|
16322
|
-
}, i), i.uniforms && Object.assign(o, i.uniforms), n = r.call(this, i.program || yi.from(
|
|
16320
|
+
}, i), i.uniforms && Object.assign(o, i.uniforms), n = r.call(this, i.program || yi.from(Cb, Db), o) || this, n._colorDirty = !1, n.uvMatrix = new Us(t), n.batchable = i.program === void 0, n.pluginName = i.pluginName, n.tint = i.tint, n.alpha = i.alpha, n;
|
|
16323
16321
|
}
|
|
16324
16322
|
return Object.defineProperty(e.prototype, "texture", {
|
|
16325
16323
|
/** Reference to the texture being rendered. */
|
|
@@ -16417,7 +16415,7 @@ var ls = function(r, e) {
|
|
|
16417
16415
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
16418
16416
|
}, ls(r, e);
|
|
16419
16417
|
};
|
|
16420
|
-
function
|
|
16418
|
+
function Fb(r, e) {
|
|
16421
16419
|
ls(r, e);
|
|
16422
16420
|
function t() {
|
|
16423
16421
|
this.constructor = r;
|
|
@@ -16432,7 +16430,7 @@ var xn = (
|
|
|
16432
16430
|
}
|
|
16433
16431
|
return r;
|
|
16434
16432
|
}()
|
|
16435
|
-
),
|
|
16433
|
+
), Nb = (
|
|
16436
16434
|
/** @class */
|
|
16437
16435
|
function() {
|
|
16438
16436
|
function r() {
|
|
@@ -16549,7 +16547,7 @@ var xn = (
|
|
|
16549
16547
|
return t;
|
|
16550
16548
|
}, r;
|
|
16551
16549
|
}()
|
|
16552
|
-
),
|
|
16550
|
+
), Lb = (
|
|
16553
16551
|
/** @class */
|
|
16554
16552
|
function() {
|
|
16555
16553
|
function r() {
|
|
@@ -16566,9 +16564,9 @@ var xn = (
|
|
|
16566
16564
|
}, r;
|
|
16567
16565
|
}()
|
|
16568
16566
|
), bo = [
|
|
16569
|
-
|
|
16567
|
+
Nb,
|
|
16570
16568
|
cs,
|
|
16571
|
-
|
|
16569
|
+
Lb
|
|
16572
16570
|
];
|
|
16573
16571
|
function bl(r) {
|
|
16574
16572
|
for (var e = 0; e < bo.length; e++)
|
|
@@ -16576,7 +16574,7 @@ function bl(r) {
|
|
|
16576
16574
|
return bo[e];
|
|
16577
16575
|
return null;
|
|
16578
16576
|
}
|
|
16579
|
-
function
|
|
16577
|
+
function Bb(r, e, t, i, n, o) {
|
|
16580
16578
|
var s = t.fill;
|
|
16581
16579
|
if (Array.isArray(s)) {
|
|
16582
16580
|
if (s.length === 1)
|
|
@@ -16605,11 +16603,11 @@ function Gb(r, e, t, i, n, o) {
|
|
|
16605
16603
|
}
|
|
16606
16604
|
return a;
|
|
16607
16605
|
}
|
|
16608
|
-
function
|
|
16606
|
+
function Gb(r, e, t, i, n, o, s) {
|
|
16609
16607
|
var a = t.text, h = t.fontProperties;
|
|
16610
16608
|
e.translate(i, n), e.scale(o, o);
|
|
16611
16609
|
var u = s.strokeThickness / 2, l = -(s.strokeThickness / 2);
|
|
16612
|
-
if (e.font = s.toFontString(), e.lineWidth = s.strokeThickness, e.textBaseline = s.textBaseline, e.lineJoin = s.lineJoin, e.miterLimit = s.miterLimit, e.fillStyle =
|
|
16610
|
+
if (e.font = s.toFontString(), e.lineWidth = s.strokeThickness, e.textBaseline = s.textBaseline, e.lineJoin = s.lineJoin, e.miterLimit = s.miterLimit, e.fillStyle = Bb(r, e, s, o, [a], t), e.strokeStyle = s.stroke, s.dropShadow) {
|
|
16613
16611
|
var c = s.dropShadowColor, d = Mr(typeof c == "number" ? c : si(c)), p = s.dropShadowBlur * o, f = s.dropShadowDistance * o;
|
|
16614
16612
|
e.shadowColor = "rgba(" + d[0] * 255 + "," + d[1] * 255 + "," + d[2] * 255 + "," + s.dropShadowAlpha + ")", e.shadowBlur = p, e.shadowOffsetX = Math.cos(s.dropShadowAngle) * f, e.shadowOffsetY = Math.sin(s.dropShadowAngle) * f;
|
|
16615
16613
|
} else
|
|
@@ -16619,7 +16617,7 @@ function Ub(r, e, t, i, n, o, s) {
|
|
|
16619
16617
|
function xl(r) {
|
|
16620
16618
|
return Array.from ? Array.from(r) : r.split("");
|
|
16621
16619
|
}
|
|
16622
|
-
function
|
|
16620
|
+
function Ub(r) {
|
|
16623
16621
|
typeof r == "string" && (r = [r]);
|
|
16624
16622
|
for (var e = [], t = 0, i = r.length; t < i; t++) {
|
|
16625
16623
|
var n = r[t];
|
|
@@ -16697,7 +16695,7 @@ var Ae = (
|
|
|
16697
16695
|
}, r.from = function(e, t, i) {
|
|
16698
16696
|
if (!e)
|
|
16699
16697
|
throw new Error("[BitmapFont] Property `name` is required.");
|
|
16700
|
-
var n = Object.assign({}, r.defaultOptions, i), o = n.chars, s = n.padding, a = n.resolution, h = n.textureWidth, u = n.textureHeight, l =
|
|
16698
|
+
var n = Object.assign({}, r.defaultOptions, i), o = n.chars, s = n.padding, a = n.resolution, h = n.textureWidth, u = n.textureHeight, l = Ub(o), c = t instanceof Ir ? t : new Ir(t), d = h, p = new xn();
|
|
16701
16699
|
p.info[0] = {
|
|
16702
16700
|
face: c.fontFamily,
|
|
16703
16701
|
size: c.fontSize
|
|
@@ -16722,7 +16720,7 @@ var Ae = (
|
|
|
16722
16720
|
--T, m += v * a, m = Math.ceil(m), f = 0, v = 0;
|
|
16723
16721
|
continue;
|
|
16724
16722
|
}
|
|
16725
|
-
|
|
16723
|
+
Gb(y, _, O, f, m, a, c);
|
|
16726
16724
|
var R = en(O.text);
|
|
16727
16725
|
p.char.push({
|
|
16728
16726
|
id: R,
|
|
@@ -16756,7 +16754,7 @@ var Ae = (
|
|
|
16756
16754
|
chars: r.ALPHANUMERIC
|
|
16757
16755
|
}, r.available = {}, r;
|
|
16758
16756
|
}()
|
|
16759
|
-
),
|
|
16757
|
+
), kb = `// Pixi texture info\r
|
|
16760
16758
|
varying vec2 vTextureCoord;\r
|
|
16761
16759
|
uniform sampler2D uSampler;\r
|
|
16762
16760
|
\r
|
|
@@ -16790,7 +16788,7 @@ void main(void) {\r
|
|
|
16790
16788
|
gl_FragColor = vec4(uColor.rgb, uColor.a * alpha);\r
|
|
16791
16789
|
\r
|
|
16792
16790
|
}\r
|
|
16793
|
-
`,
|
|
16791
|
+
`, Xb = `// Mesh material default fragment\r
|
|
16794
16792
|
attribute vec2 aVertexPosition;\r
|
|
16795
16793
|
attribute vec2 aTextureCoord;\r
|
|
16796
16794
|
\r
|
|
@@ -16808,7 +16806,7 @@ void main(void)\r
|
|
|
16808
16806
|
}\r
|
|
16809
16807
|
`, Gh = [], Uh = [], kh = [];
|
|
16810
16808
|
(function(r) {
|
|
16811
|
-
|
|
16809
|
+
Fb(e, r);
|
|
16812
16810
|
function e(t, i) {
|
|
16813
16811
|
i === void 0 && (i = {});
|
|
16814
16812
|
var n = r.call(this) || this;
|
|
@@ -16857,7 +16855,7 @@ void main(void)\r
|
|
|
16857
16855
|
var I = p.pop();
|
|
16858
16856
|
if (!I) {
|
|
16859
16857
|
var j = new Sn(), Z = void 0, Q = void 0;
|
|
16860
|
-
i.distanceFieldType === "none" ? (Z = new ci(W.EMPTY), Q = X.NORMAL) : (Z = new ci(W.EMPTY, { program: yi.from(
|
|
16858
|
+
i.distanceFieldType === "none" ? (Z = new ci(W.EMPTY), Q = X.NORMAL) : (Z = new ci(W.EMPTY, { program: yi.from(Xb, kb), uniforms: { uFWidth: 0 } }), Q = X.NORMAL_NPM);
|
|
16861
16859
|
var yt = new li(j, Z);
|
|
16862
16860
|
yt.blendMode = Q, I = {
|
|
16863
16861
|
index: 0,
|
|
@@ -17122,7 +17120,7 @@ void main(void)\r
|
|
|
17122
17120
|
letterSpacing: 0
|
|
17123
17121
|
}, e;
|
|
17124
17122
|
})(ce);
|
|
17125
|
-
var
|
|
17123
|
+
var jb = (
|
|
17126
17124
|
/** @class */
|
|
17127
17125
|
function() {
|
|
17128
17126
|
function r() {
|
|
@@ -17194,14 +17192,14 @@ var ds = function(r, e) {
|
|
|
17194
17192
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
17195
17193
|
}, ds(r, e);
|
|
17196
17194
|
};
|
|
17197
|
-
function
|
|
17195
|
+
function Hb(r, e) {
|
|
17198
17196
|
ds(r, e);
|
|
17199
17197
|
function t() {
|
|
17200
17198
|
this.constructor = r;
|
|
17201
17199
|
}
|
|
17202
17200
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
17203
17201
|
}
|
|
17204
|
-
var
|
|
17202
|
+
var Yb = `varying vec2 vTextureCoord;
|
|
17205
17203
|
|
|
17206
17204
|
uniform sampler2D uSampler;
|
|
17207
17205
|
uniform float uAlpha;
|
|
@@ -17212,10 +17210,10 @@ void main(void)
|
|
|
17212
17210
|
}
|
|
17213
17211
|
`;
|
|
17214
17212
|
(function(r) {
|
|
17215
|
-
|
|
17213
|
+
Hb(e, r);
|
|
17216
17214
|
function e(t) {
|
|
17217
17215
|
t === void 0 && (t = 1);
|
|
17218
|
-
var i = r.call(this,
|
|
17216
|
+
var i = r.call(this, Bv, Yb, { uAlpha: 1 }) || this;
|
|
17219
17217
|
return i.alpha = t, i;
|
|
17220
17218
|
}
|
|
17221
17219
|
return Object.defineProperty(e.prototype, "alpha", {
|
|
@@ -17269,7 +17267,7 @@ function Tl(r, e) {
|
|
|
17269
17267
|
}
|
|
17270
17268
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
17271
17269
|
}
|
|
17272
|
-
var
|
|
17270
|
+
var Vb = `
|
|
17273
17271
|
attribute vec2 aVertexPosition;
|
|
17274
17272
|
|
|
17275
17273
|
uniform mat3 projectionMatrix;
|
|
@@ -17300,8 +17298,8 @@ var zb = `
|
|
|
17300
17298
|
vec2 textureCoord = filterTextureCoord();
|
|
17301
17299
|
%blur%
|
|
17302
17300
|
}`;
|
|
17303
|
-
function
|
|
17304
|
-
var t = Math.ceil(r / 2), i =
|
|
17301
|
+
function zb(r, e) {
|
|
17302
|
+
var t = Math.ceil(r / 2), i = Vb, n = "", o;
|
|
17305
17303
|
e ? o = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : o = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
17306
17304
|
for (var s = 0; s < r; s++) {
|
|
17307
17305
|
var a = o.replace("%index%", s.toString());
|
|
@@ -17310,14 +17308,14 @@ function Wb(r, e) {
|
|
|
17310
17308
|
}
|
|
17311
17309
|
return i = i.replace("%blur%", n), i = i.replace("%size%", r.toString()), i;
|
|
17312
17310
|
}
|
|
17313
|
-
var
|
|
17311
|
+
var Wb = {
|
|
17314
17312
|
5: [0.153388, 0.221461, 0.250301],
|
|
17315
17313
|
7: [0.071303, 0.131514, 0.189879, 0.214607],
|
|
17316
17314
|
9: [0.028532, 0.067234, 0.124009, 0.179044, 0.20236],
|
|
17317
17315
|
11: [93e-4, 0.028002, 0.065984, 0.121703, 0.175713, 0.198596],
|
|
17318
17316
|
13: [2406e-6, 9255e-6, 0.027867, 0.065666, 0.121117, 0.174868, 0.197641],
|
|
17319
17317
|
15: [489e-6, 2403e-6, 9246e-6, 0.02784, 0.065602, 0.120999, 0.174697, 0.197448]
|
|
17320
|
-
},
|
|
17318
|
+
}, $b = [
|
|
17321
17319
|
"varying vec2 vBlurTexCoords[%size%];",
|
|
17322
17320
|
"uniform sampler2D uSampler;",
|
|
17323
17321
|
"void main(void)",
|
|
@@ -17327,8 +17325,8 @@ var $b = {
|
|
|
17327
17325
|
"}"
|
|
17328
17326
|
].join(`
|
|
17329
17327
|
`);
|
|
17330
|
-
function
|
|
17331
|
-
for (var e =
|
|
17328
|
+
function qb(r) {
|
|
17329
|
+
for (var e = Wb[r], t = e.length, i = $b, n = "", o = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;", s, a = 0; a < r; a++) {
|
|
17332
17330
|
var h = o.replace("%index%", a.toString());
|
|
17333
17331
|
s = a, a >= t && (s = r - a - 1), h = h.replace("%value%", e[s].toString()), n += h, n += `
|
|
17334
17332
|
`;
|
|
@@ -17341,7 +17339,7 @@ var Xh = (
|
|
|
17341
17339
|
Tl(e, r);
|
|
17342
17340
|
function e(t, i, n, o, s) {
|
|
17343
17341
|
i === void 0 && (i = 8), n === void 0 && (n = 4), o === void 0 && (o = G.FILTER_RESOLUTION), s === void 0 && (s = 5);
|
|
17344
|
-
var a = this, h =
|
|
17342
|
+
var a = this, h = zb(s, t), u = qb(s);
|
|
17345
17343
|
return a = r.call(
|
|
17346
17344
|
this,
|
|
17347
17345
|
// vertex shader
|
|
@@ -17518,14 +17516,14 @@ var fs = function(r, e) {
|
|
|
17518
17516
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
17519
17517
|
}, fs(r, e);
|
|
17520
17518
|
};
|
|
17521
|
-
function
|
|
17519
|
+
function Kb(r, e) {
|
|
17522
17520
|
fs(r, e);
|
|
17523
17521
|
function t() {
|
|
17524
17522
|
this.constructor = r;
|
|
17525
17523
|
}
|
|
17526
17524
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
17527
17525
|
}
|
|
17528
|
-
var
|
|
17526
|
+
var Zb = `varying vec2 vTextureCoord;
|
|
17529
17527
|
uniform sampler2D uSampler;
|
|
17530
17528
|
uniform float m[20];
|
|
17531
17529
|
uniform float uAlpha;
|
|
@@ -17580,7 +17578,7 @@ void main(void)
|
|
|
17580
17578
|
`, jh = (
|
|
17581
17579
|
/** @class */
|
|
17582
17580
|
function(r) {
|
|
17583
|
-
|
|
17581
|
+
Kb(e, r);
|
|
17584
17582
|
function e() {
|
|
17585
17583
|
var t = this, i = {
|
|
17586
17584
|
m: new Float32Array([
|
|
@@ -17607,7 +17605,7 @@ void main(void)
|
|
|
17607
17605
|
]),
|
|
17608
17606
|
uAlpha: 1
|
|
17609
17607
|
};
|
|
17610
|
-
return t = r.call(this, hl,
|
|
17608
|
+
return t = r.call(this, hl, Zb, i) || this, t.alpha = 1, t;
|
|
17611
17609
|
}
|
|
17612
17610
|
return e.prototype._loadMatrix = function(t, i) {
|
|
17613
17611
|
i === void 0 && (i = !1);
|
|
@@ -18172,14 +18170,14 @@ var ms = function(r, e) {
|
|
|
18172
18170
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
18173
18171
|
}, ms(r, e);
|
|
18174
18172
|
};
|
|
18175
|
-
function
|
|
18173
|
+
function Jb(r, e) {
|
|
18176
18174
|
ms(r, e);
|
|
18177
18175
|
function t() {
|
|
18178
18176
|
this.constructor = r;
|
|
18179
18177
|
}
|
|
18180
18178
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
18181
18179
|
}
|
|
18182
|
-
var
|
|
18180
|
+
var Qb = `varying vec2 vFilterCoord;
|
|
18183
18181
|
varying vec2 vTextureCoord;
|
|
18184
18182
|
|
|
18185
18183
|
uniform vec2 scale;
|
|
@@ -18199,7 +18197,7 @@ void main(void)
|
|
|
18199
18197
|
|
|
18200
18198
|
gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));
|
|
18201
18199
|
}
|
|
18202
|
-
`,
|
|
18200
|
+
`, t1 = `attribute vec2 aVertexPosition;
|
|
18203
18201
|
|
|
18204
18202
|
uniform mat3 projectionMatrix;
|
|
18205
18203
|
uniform mat3 filterMatrix;
|
|
@@ -18230,10 +18228,10 @@ void main(void)
|
|
|
18230
18228
|
}
|
|
18231
18229
|
`;
|
|
18232
18230
|
(function(r) {
|
|
18233
|
-
|
|
18231
|
+
Jb(e, r);
|
|
18234
18232
|
function e(t, i) {
|
|
18235
18233
|
var n = this, o = new Mt();
|
|
18236
|
-
return t.renderable = !1, n = r.call(this,
|
|
18234
|
+
return t.renderable = !1, n = r.call(this, t1, Qb, {
|
|
18237
18235
|
mapSampler: t._texture,
|
|
18238
18236
|
filterMatrix: o,
|
|
18239
18237
|
scale: { x: 1, y: 1 },
|
|
@@ -18285,14 +18283,14 @@ var ys = function(r, e) {
|
|
|
18285
18283
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
18286
18284
|
}, ys(r, e);
|
|
18287
18285
|
};
|
|
18288
|
-
function
|
|
18286
|
+
function e1(r, e) {
|
|
18289
18287
|
ys(r, e);
|
|
18290
18288
|
function t() {
|
|
18291
18289
|
this.constructor = r;
|
|
18292
18290
|
}
|
|
18293
18291
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
18294
18292
|
}
|
|
18295
|
-
var
|
|
18293
|
+
var r1 = `
|
|
18296
18294
|
attribute vec2 aVertexPosition;
|
|
18297
18295
|
|
|
18298
18296
|
uniform mat3 projectionMatrix;
|
|
@@ -18334,7 +18332,7 @@ void main(void) {
|
|
|
18334
18332
|
|
|
18335
18333
|
texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
|
|
18336
18334
|
}
|
|
18337
|
-
`,
|
|
18335
|
+
`, i1 = `varying vec2 v_rgbNW;
|
|
18338
18336
|
varying vec2 v_rgbNE;
|
|
18339
18337
|
varying vec2 v_rgbSW;
|
|
18340
18338
|
varying vec2 v_rgbSE;
|
|
@@ -18457,9 +18455,9 @@ void main() {
|
|
|
18457
18455
|
}
|
|
18458
18456
|
`;
|
|
18459
18457
|
(function(r) {
|
|
18460
|
-
|
|
18458
|
+
e1(e, r);
|
|
18461
18459
|
function e() {
|
|
18462
|
-
return r.call(this,
|
|
18460
|
+
return r.call(this, r1, i1) || this;
|
|
18463
18461
|
}
|
|
18464
18462
|
return e;
|
|
18465
18463
|
})(Ne);
|
|
@@ -18492,14 +18490,14 @@ var _s = function(r, e) {
|
|
|
18492
18490
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
18493
18491
|
}, _s(r, e);
|
|
18494
18492
|
};
|
|
18495
|
-
function
|
|
18493
|
+
function n1(r, e) {
|
|
18496
18494
|
_s(r, e);
|
|
18497
18495
|
function t() {
|
|
18498
18496
|
this.constructor = r;
|
|
18499
18497
|
}
|
|
18500
18498
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
18501
18499
|
}
|
|
18502
|
-
var
|
|
18500
|
+
var o1 = `precision highp float;
|
|
18503
18501
|
|
|
18504
18502
|
varying vec2 vTextureCoord;
|
|
18505
18503
|
varying vec4 vColor;
|
|
@@ -18535,10 +18533,10 @@ void main()
|
|
|
18535
18533
|
}
|
|
18536
18534
|
`;
|
|
18537
18535
|
(function(r) {
|
|
18538
|
-
|
|
18536
|
+
n1(e, r);
|
|
18539
18537
|
function e(t, i) {
|
|
18540
18538
|
t === void 0 && (t = 0.5), i === void 0 && (i = Math.random());
|
|
18541
|
-
var n = r.call(this, hl,
|
|
18539
|
+
var n = r.call(this, hl, o1, {
|
|
18542
18540
|
uNoise: 0,
|
|
18543
18541
|
uSeed: 0
|
|
18544
18542
|
}) || this;
|
|
@@ -18581,7 +18579,7 @@ St.prototype._cacheAsBitmap = !1;
|
|
|
18581
18579
|
St.prototype._cacheData = null;
|
|
18582
18580
|
St.prototype._cacheAsBitmapResolution = null;
|
|
18583
18581
|
St.prototype._cacheAsBitmapMultisample = gt.NONE;
|
|
18584
|
-
var
|
|
18582
|
+
var s1 = (
|
|
18585
18583
|
/** @class */
|
|
18586
18584
|
function() {
|
|
18587
18585
|
function r() {
|
|
@@ -18643,7 +18641,7 @@ Object.defineProperties(St.prototype, {
|
|
|
18643
18641
|
if (this._cacheAsBitmap !== r) {
|
|
18644
18642
|
this._cacheAsBitmap = r;
|
|
18645
18643
|
var e;
|
|
18646
|
-
r ? (this._cacheData || (this._cacheData = new
|
|
18644
|
+
r ? (this._cacheData || (this._cacheData = new s1()), e = this._cacheData, e.originalRender = this.render, e.originalRenderCanvas = this.renderCanvas, e.originalUpdateTransform = this.updateTransform, e.originalCalculateBounds = this.calculateBounds, e.originalGetLocalBounds = this.getLocalBounds, e.originalDestroy = this.destroy, e.originalContainsPoint = this.containsPoint, e.originalMask = this._mask, e.originalFilterArea = this.filterArea, this.render = this._renderCached, this.renderCanvas = this._renderCachedCanvas, this.destroy = this._cacheAsBitmapDestroy) : (e = this._cacheData, e.sprite && this._destroyCachedDisplayObject(), this.render = e.originalRender, this.renderCanvas = e.originalRenderCanvas, this.calculateBounds = e.originalCalculateBounds, this.getLocalBounds = e.originalGetLocalBounds, this.destroy = e.originalDestroy, this.updateTransform = e.originalUpdateTransform, this.containsPoint = e.originalContainsPoint, this._mask = e.originalMask, this.filterArea = e.originalFilterArea);
|
|
18647
18645
|
}
|
|
18648
18646
|
}
|
|
18649
18647
|
}
|
|
@@ -18744,7 +18742,7 @@ St.prototype.getGlobalPosition = function(r, e) {
|
|
|
18744
18742
|
* @pixi/app is licensed under the MIT License.
|
|
18745
18743
|
* http://www.opensource.org/licenses/mit-license
|
|
18746
18744
|
*/
|
|
18747
|
-
var
|
|
18745
|
+
var a1 = (
|
|
18748
18746
|
/** @class */
|
|
18749
18747
|
function() {
|
|
18750
18748
|
function r() {
|
|
@@ -18792,7 +18790,7 @@ var h1 = (
|
|
|
18792
18790
|
globalThis.removeEventListener("resize", this.queueResize), this.cancelResize(), this.cancelResize = null, this.queueResize = null, this.resizeTo = null, this.resize = null;
|
|
18793
18791
|
}, r.extension = ft.Application, r;
|
|
18794
18792
|
}()
|
|
18795
|
-
),
|
|
18793
|
+
), h1 = (
|
|
18796
18794
|
/** @class */
|
|
18797
18795
|
function() {
|
|
18798
18796
|
function r(e) {
|
|
@@ -18840,8 +18838,8 @@ var h1 = (
|
|
|
18840
18838
|
}, r._plugins = [], r;
|
|
18841
18839
|
}()
|
|
18842
18840
|
);
|
|
18843
|
-
Te.handleByList(ft.Application,
|
|
18844
|
-
Te.add(
|
|
18841
|
+
Te.handleByList(ft.Application, h1._plugins);
|
|
18842
|
+
Te.add(a1);
|
|
18845
18843
|
/*!
|
|
18846
18844
|
* @pixi/mesh-extras - v6.5.10
|
|
18847
18845
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
|
@@ -18878,7 +18876,7 @@ function Lr(r, e) {
|
|
|
18878
18876
|
}
|
|
18879
18877
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
18880
18878
|
}
|
|
18881
|
-
var
|
|
18879
|
+
var u1 = (
|
|
18882
18880
|
/** @class */
|
|
18883
18881
|
function(r) {
|
|
18884
18882
|
Lr(e, r);
|
|
@@ -18899,7 +18897,7 @@ var l1 = (
|
|
|
18899
18897
|
this.buffers[0].data = new Float32Array(i), this.buffers[1].data = new Float32Array(n), this.indexBuffer.data = new Uint16Array(o), this.buffers[0].update(), this.buffers[1].update(), this.indexBuffer.update();
|
|
18900
18898
|
}, e;
|
|
18901
18899
|
}(Sn)
|
|
18902
|
-
),
|
|
18900
|
+
), l1 = (
|
|
18903
18901
|
/** @class */
|
|
18904
18902
|
function(r) {
|
|
18905
18903
|
Lr(e, r);
|
|
@@ -18962,7 +18960,7 @@ var l1 = (
|
|
|
18962
18960
|
Lr(e, r);
|
|
18963
18961
|
function e(t, i, n) {
|
|
18964
18962
|
n === void 0 && (n = 0);
|
|
18965
|
-
var o = this, s = new
|
|
18963
|
+
var o = this, s = new l1(t.height, i, n), a = new ci(t);
|
|
18966
18964
|
return n > 0 && (t.baseTexture.wrapMode = ue.REPEAT), o = r.call(this, s, a) || this, o.autoUpdate = !0, o;
|
|
18967
18965
|
}
|
|
18968
18966
|
return e.prototype._render = function(t) {
|
|
@@ -18970,12 +18968,12 @@ var l1 = (
|
|
|
18970
18968
|
(this.autoUpdate || i._width !== this.shader.texture.height) && (i._width = this.shader.texture.height, i.update()), r.prototype._render.call(this, t);
|
|
18971
18969
|
}, e;
|
|
18972
18970
|
})(li);
|
|
18973
|
-
var
|
|
18971
|
+
var c1 = (
|
|
18974
18972
|
/** @class */
|
|
18975
18973
|
function(r) {
|
|
18976
18974
|
Lr(e, r);
|
|
18977
18975
|
function e(t, i, n) {
|
|
18978
|
-
var o = this, s = new
|
|
18976
|
+
var o = this, s = new u1(t.width, t.height, i, n), a = new ci(W.WHITE);
|
|
18979
18977
|
return o = r.call(this, s, a) || this, o.texture = t, o.autoResize = !0, o;
|
|
18980
18978
|
}
|
|
18981
18979
|
return e.prototype.textureUpdated = function() {
|
|
@@ -19118,7 +19116,7 @@ var qi = 10;
|
|
|
19118
19116
|
var n = 1 / this._origWidth, o = 1 / this._origHeight;
|
|
19119
19117
|
i[0] = i[8] = i[16] = i[24] = 0, i[1] = i[3] = i[5] = i[7] = 0, i[6] = i[14] = i[22] = i[30] = 1, i[25] = i[27] = i[29] = i[31] = 1, i[2] = i[10] = i[18] = i[26] = n * this._leftWidth, i[4] = i[12] = i[20] = i[28] = 1 - n * this._rightWidth, i[9] = i[11] = i[13] = i[15] = o * this._topHeight, i[17] = i[19] = i[21] = i[23] = 1 - o * this._bottomHeight, this.updateHorizontalVertices(), this.updateVerticalVertices(), this.geometry.buffers[0].update(), this.geometry.buffers[1].update();
|
|
19120
19118
|
}, e;
|
|
19121
|
-
})(
|
|
19119
|
+
})(c1);
|
|
19122
19120
|
/*!
|
|
19123
19121
|
* @pixi/sprite-animated - v6.5.10
|
|
19124
19122
|
* Compiled Thu, 06 Jul 2023 15:25:11 UTC
|
|
@@ -19148,7 +19146,7 @@ var vs = function(r, e) {
|
|
|
19148
19146
|
i.hasOwnProperty(n) && (t[n] = i[n]);
|
|
19149
19147
|
}, vs(r, e);
|
|
19150
19148
|
};
|
|
19151
|
-
function
|
|
19149
|
+
function d1(r, e) {
|
|
19152
19150
|
vs(r, e);
|
|
19153
19151
|
function t() {
|
|
19154
19152
|
this.constructor = r;
|
|
@@ -19156,7 +19154,7 @@ function p1(r, e) {
|
|
|
19156
19154
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
19157
19155
|
}
|
|
19158
19156
|
(function(r) {
|
|
19159
|
-
|
|
19157
|
+
d1(e, r);
|
|
19160
19158
|
function e(t, i) {
|
|
19161
19159
|
i === void 0 && (i = !0);
|
|
19162
19160
|
var n = r.call(this, t[0] instanceof W ? t[0] : t[0].texture) || this;
|
|
@@ -19272,40 +19270,40 @@ function p1(r, e) {
|
|
|
19272
19270
|
*/
|
|
19273
19271
|
Te.add(
|
|
19274
19272
|
// Install renderer plugins
|
|
19275
|
-
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19273
|
+
$v,
|
|
19274
|
+
r0,
|
|
19275
|
+
Qv,
|
|
19276
|
+
$0,
|
|
19277
|
+
Eb,
|
|
19280
19278
|
ll,
|
|
19281
|
-
|
|
19279
|
+
Pb,
|
|
19282
19280
|
// Install loader plugins
|
|
19283
|
-
|
|
19284
|
-
|
|
19281
|
+
jb,
|
|
19282
|
+
v0,
|
|
19283
|
+
Y0,
|
|
19285
19284
|
V0,
|
|
19286
|
-
|
|
19287
|
-
Sb,
|
|
19285
|
+
wb,
|
|
19288
19286
|
// Install application plugins
|
|
19289
|
-
|
|
19290
|
-
|
|
19287
|
+
pg,
|
|
19288
|
+
l0
|
|
19291
19289
|
);
|
|
19292
|
-
const rn = 1733608,
|
|
19293
|
-
const i = t != null && t.fill ? si(t.fill) : rn, n = (t == null ? void 0 : t.fillOpacity) === void 0 ?
|
|
19290
|
+
const rn = 1733608, p1 = 0.25, js = (r) => (e, t) => {
|
|
19291
|
+
const i = t != null && t.fill ? si(t.fill) : rn, n = (t == null ? void 0 : t.fillOpacity) === void 0 ? p1 : t.fillOpacity, o = new Pr();
|
|
19294
19292
|
return o.beginFill(16777215, n), o.lineStyle(1, 16777215, 1, 0.5, !0), r(e, o), o.endFill(), o.tint = i, o;
|
|
19295
|
-
},
|
|
19293
|
+
}, f1 = js((r, e) => {
|
|
19296
19294
|
const { cx: t, cy: i, rx: n, ry: o } = r.geometry;
|
|
19297
19295
|
e.drawEllipse(t, i, n, o);
|
|
19298
|
-
}),
|
|
19296
|
+
}), m1 = js((r, e) => {
|
|
19299
19297
|
const t = r.geometry.points.reduce((i, n) => [...i, ...n], []);
|
|
19300
19298
|
e.drawPolygon(t);
|
|
19301
|
-
}),
|
|
19299
|
+
}), y1 = js((r, e) => {
|
|
19302
19300
|
const { x: t, y: i, w: n, h: o } = r.geometry;
|
|
19303
19301
|
e.drawRect(t, i, n, o);
|
|
19304
|
-
}),
|
|
19302
|
+
}), _1 = (r, e, t) => () => {
|
|
19305
19303
|
const i = r.viewport.viewportToImageRectangle(r.viewport.getBounds(!0)), n = r.viewport.getContainerSize().x, o = r.viewport.getZoom(!0) * n / r.world.getContentFactor(), s = Math.PI * r.viewport.getRotation() / 180, a = -i.x * o, h = -i.y * o;
|
|
19306
19304
|
let u, l;
|
|
19307
19305
|
s > 0 && s <= Math.PI / 2 ? (u = i.height * o, l = 0) : s > Math.PI / 2 && s <= Math.PI ? (u = i.width * o, l = i.height * o) : s > Math.PI && s <= Math.PI * 1.5 ? (u = 0, l = i.width * o) : (u = 0, l = 0), e.position.x = u + a * Math.cos(s) - h * Math.sin(s), e.position.y = l + a * Math.sin(s) + h * Math.cos(s), e.scale.set(o, o), e.rotation = s, t.render(e);
|
|
19308
|
-
},
|
|
19306
|
+
}, g1 = (r, e) => {
|
|
19309
19307
|
const t = new Pr(), i = al({
|
|
19310
19308
|
width: e.width,
|
|
19311
19309
|
height: e.height,
|
|
@@ -19317,7 +19315,7 @@ const rn = 1733608, f1 = 0.25, js = (r) => (e, t) => {
|
|
|
19317
19315
|
const a = (f) => {
|
|
19318
19316
|
const { selector: m } = f.target, y = typeof s == "function" ? s(f) : s;
|
|
19319
19317
|
let _;
|
|
19320
|
-
m.type === Xt.RECTANGLE ? _ =
|
|
19318
|
+
m.type === Xt.RECTANGLE ? _ = y1(m, y) : m.type === Xt.POLYGON ? _ = m1(m, y) : m.type === Xt.ELLIPSE ? _ = f1(m, y) : console.warn(`Unsupported shape type: ${m.type}`), _ && (t.addChild(_), n.set(f.id, { g: _, annotation: f }));
|
|
19321
19319
|
}, h = (f) => {
|
|
19322
19320
|
const m = n.get(f.id);
|
|
19323
19321
|
m && (n.delete(f.id), m.g.destroy());
|
|
@@ -19350,7 +19348,7 @@ const rn = 1733608, f1 = 0.25, js = (r) => (e, t) => {
|
|
|
19350
19348
|
return {
|
|
19351
19349
|
addAnnotation: a,
|
|
19352
19350
|
destroy: () => i.destroy(),
|
|
19353
|
-
redraw:
|
|
19351
|
+
redraw: _1(r, t, i),
|
|
19354
19352
|
removeAnnotation: h,
|
|
19355
19353
|
resize: l,
|
|
19356
19354
|
setFilter: c,
|
|
@@ -19359,7 +19357,7 @@ const rn = 1733608, f1 = 0.25, js = (r) => (e, t) => {
|
|
|
19359
19357
|
updateAnnotation: u
|
|
19360
19358
|
};
|
|
19361
19359
|
};
|
|
19362
|
-
function
|
|
19360
|
+
function v1(r, e, t) {
|
|
19363
19361
|
let i, n, { filter: o = void 0 } = e, { state: s } = e, { style: a = void 0 } = e, { viewer: h } = e;
|
|
19364
19362
|
const { store: u, hover: l, selection: c, viewport: d } = s;
|
|
19365
19363
|
xo(r, l, (T) => t(10, i = T)), xo(r, c, (T) => t(7, n = T));
|
|
@@ -19382,7 +19380,7 @@ function b1(r, e, t) {
|
|
|
19382
19380
|
let x;
|
|
19383
19381
|
return Cr(() => {
|
|
19384
19382
|
const { offsetWidth: T, offsetHeight: S } = h.canvas, O = document.createElement("canvas");
|
|
19385
|
-
O.width = T, O.height = S, O.className = "a9s-gl-canvas", h.element.querySelector(".openseadragon-canvas").appendChild(O), t(6, f =
|
|
19383
|
+
O.width = T, O.height = S, O.className = "a9s-gl-canvas", h.element.querySelector(".openseadragon-canvas").appendChild(O), t(6, f = g1(h, O));
|
|
19386
19384
|
const A = _(O);
|
|
19387
19385
|
O.addEventListener("pointermove", A), new ResizeObserver((E) => {
|
|
19388
19386
|
try {
|
|
@@ -19418,12 +19416,12 @@ function b1(r, e, t) {
|
|
|
19418
19416
|
80 && (f == null || f.setStyle(a));
|
|
19419
19417
|
}, [l, c, o, s, a, h, f, n];
|
|
19420
19418
|
}
|
|
19421
|
-
class
|
|
19419
|
+
class b1 extends Ht {
|
|
19422
19420
|
constructor(e) {
|
|
19423
|
-
super(), jt(this, e,
|
|
19421
|
+
super(), jt(this, e, v1, null, Ut, { filter: 2, state: 3, style: 4, viewer: 5 });
|
|
19424
19422
|
}
|
|
19425
19423
|
}
|
|
19426
|
-
const
|
|
19424
|
+
const x1 = (r) => ({
|
|
19427
19425
|
transform: r & /*layerTransform*/
|
|
19428
19426
|
2,
|
|
19429
19427
|
scale: r & /*scale*/
|
|
@@ -19438,7 +19436,7 @@ const T1 = (r) => ({
|
|
|
19438
19436
|
r[0]
|
|
19439
19437
|
)
|
|
19440
19438
|
});
|
|
19441
|
-
function
|
|
19439
|
+
function T1(r) {
|
|
19442
19440
|
let e;
|
|
19443
19441
|
const t = (
|
|
19444
19442
|
/*#slots*/
|
|
@@ -19470,7 +19468,7 @@ function E1(r) {
|
|
|
19470
19468
|
/*$$scope*/
|
|
19471
19469
|
n[3],
|
|
19472
19470
|
o,
|
|
19473
|
-
|
|
19471
|
+
x1
|
|
19474
19472
|
) : au(
|
|
19475
19473
|
/*$$scope*/
|
|
19476
19474
|
n[3]
|
|
@@ -19489,7 +19487,7 @@ function E1(r) {
|
|
|
19489
19487
|
}
|
|
19490
19488
|
};
|
|
19491
19489
|
}
|
|
19492
|
-
function
|
|
19490
|
+
function E1(r, e, t) {
|
|
19493
19491
|
let { $$slots: i = {}, $$scope: n } = e, { viewer: o } = e, s = 1, a;
|
|
19494
19492
|
const h = () => {
|
|
19495
19493
|
const u = o.viewport.getContainerSize().x, l = o.viewport.getZoom(!0), c = o.viewport.getFlip(), d = o.viewport.pixelFromPoint(new nn.Point(0, 0), !0);
|
|
@@ -19505,10 +19503,10 @@ function A1(r, e, t) {
|
|
|
19505
19503
|
}
|
|
19506
19504
|
class Al extends Ht {
|
|
19507
19505
|
constructor(e) {
|
|
19508
|
-
super(), jt(this, e,
|
|
19506
|
+
super(), jt(this, e, E1, T1, Ut, { viewer: 2 });
|
|
19509
19507
|
}
|
|
19510
19508
|
}
|
|
19511
|
-
function
|
|
19509
|
+
function A1(r, e, t) {
|
|
19512
19510
|
const i = Fr();
|
|
19513
19511
|
let { drawingMode: n } = e, { target: o } = e, { tool: s } = e, { transform: a } = e, { viewer: h } = e, { viewportScale: u } = e, l;
|
|
19514
19512
|
return Cr(() => {
|
|
@@ -19546,9 +19544,9 @@ function w1(r, e, t) {
|
|
|
19546
19544
|
96 && l && l.$set({ viewportScale: u });
|
|
19547
19545
|
}, [n, o, s, a, h, u, l];
|
|
19548
19546
|
}
|
|
19549
|
-
class
|
|
19547
|
+
class w1 extends Ht {
|
|
19550
19548
|
constructor(e) {
|
|
19551
|
-
super(), jt(this, e,
|
|
19549
|
+
super(), jt(this, e, A1, null, Ut, {
|
|
19552
19550
|
drawingMode: 0,
|
|
19553
19551
|
target: 1,
|
|
19554
19552
|
tool: 2,
|
|
@@ -19562,7 +19560,7 @@ function Yh(r, e, t) {
|
|
|
19562
19560
|
const i = r.slice();
|
|
19563
19561
|
return i[24] = e[t], i;
|
|
19564
19562
|
}
|
|
19565
|
-
function
|
|
19563
|
+
function S1(r) {
|
|
19566
19564
|
let e = (
|
|
19567
19565
|
/*toolName*/
|
|
19568
19566
|
r[1]
|
|
@@ -19590,7 +19588,7 @@ function O1(r) {
|
|
|
19590
19588
|
}
|
|
19591
19589
|
};
|
|
19592
19590
|
}
|
|
19593
|
-
function
|
|
19591
|
+
function O1(r) {
|
|
19594
19592
|
let e, t, i = (
|
|
19595
19593
|
/*editableAnnotations*/
|
|
19596
19594
|
r[5]
|
|
@@ -19646,7 +19644,7 @@ function R1(r) {
|
|
|
19646
19644
|
}
|
|
19647
19645
|
function Vh(r) {
|
|
19648
19646
|
let e, t;
|
|
19649
|
-
return e = new
|
|
19647
|
+
return e = new w1({
|
|
19650
19648
|
props: {
|
|
19651
19649
|
target: (
|
|
19652
19650
|
/*drawingEl*/
|
|
@@ -19814,9 +19812,9 @@ function Wh(r) {
|
|
|
19814
19812
|
}
|
|
19815
19813
|
};
|
|
19816
19814
|
}
|
|
19817
|
-
function
|
|
19815
|
+
function R1(r) {
|
|
19818
19816
|
let e, t, i, n, o, s;
|
|
19819
|
-
const a = [
|
|
19817
|
+
const a = [O1, S1], h = [];
|
|
19820
19818
|
function u(l, c) {
|
|
19821
19819
|
return (
|
|
19822
19820
|
/*drawingEl*/
|
|
@@ -19867,7 +19865,7 @@ function M1(r) {
|
|
|
19867
19865
|
}
|
|
19868
19866
|
};
|
|
19869
19867
|
}
|
|
19870
|
-
function
|
|
19868
|
+
function M1(r) {
|
|
19871
19869
|
let e, t;
|
|
19872
19870
|
return e = new Al({
|
|
19873
19871
|
props: {
|
|
@@ -19877,7 +19875,7 @@ function P1(r) {
|
|
|
19877
19875
|
),
|
|
19878
19876
|
$$slots: {
|
|
19879
19877
|
default: [
|
|
19880
|
-
|
|
19878
|
+
R1,
|
|
19881
19879
|
({ transform: i, scale: n }) => ({ 22: i, 23: n }),
|
|
19882
19880
|
({ transform: i, scale: n }) => (i ? 4194304 : 0) | (n ? 8388608 : 0)
|
|
19883
19881
|
]
|
|
@@ -19909,7 +19907,7 @@ function P1(r) {
|
|
|
19909
19907
|
}
|
|
19910
19908
|
};
|
|
19911
19909
|
}
|
|
19912
|
-
function
|
|
19910
|
+
function P1(r, e, t) {
|
|
19913
19911
|
let i, n, o, s, { drawingEnabled: a } = e, { preferredDrawingMode: h } = e, { state: u } = e, { toolName: l = So().length > 0 ? So()[0] : void 0 } = e, { user: c } = e, { viewer: d } = e, p;
|
|
19914
19912
|
const { store: f, selection: m } = u;
|
|
19915
19913
|
xo(r, m, (b) => t(17, s = b));
|
|
@@ -19984,9 +19982,9 @@ function I1(r, e, t) {
|
|
|
19984
19982
|
A
|
|
19985
19983
|
];
|
|
19986
19984
|
}
|
|
19987
|
-
class
|
|
19985
|
+
class I1 extends Ht {
|
|
19988
19986
|
constructor(e) {
|
|
19989
|
-
super(), jt(this, e,
|
|
19987
|
+
super(), jt(this, e, P1, M1, Ut, {
|
|
19990
19988
|
drawingEnabled: 0,
|
|
19991
19989
|
preferredDrawingMode: 13,
|
|
19992
19990
|
state: 14,
|
|
@@ -19996,7 +19994,7 @@ class D1 extends Ht {
|
|
|
19996
19994
|
});
|
|
19997
19995
|
}
|
|
19998
19996
|
}
|
|
19999
|
-
function
|
|
19997
|
+
function D1(r) {
|
|
20000
19998
|
let e, t, i, n, o, s, a, h = (
|
|
20001
19999
|
/*user*/
|
|
20002
20000
|
r[2].appearance.label + ""
|
|
@@ -20058,7 +20056,7 @@ function C1(r) {
|
|
|
20058
20056
|
}
|
|
20059
20057
|
};
|
|
20060
20058
|
}
|
|
20061
|
-
function
|
|
20059
|
+
function C1(r, e, t) {
|
|
20062
20060
|
let { x: i } = e, { y: n } = e, { user: o } = e, { scale: s } = e, { hAlign: a = null } = e, h;
|
|
20063
20061
|
const u = (c) => {
|
|
20064
20062
|
const d = h.querySelector("text"), p = h.querySelector("rect"), f = d.getBBox().width + 10 / c;
|
|
@@ -20078,10 +20076,10 @@ function F1(r, e, t) {
|
|
|
20078
20076
|
}
|
|
20079
20077
|
class wl extends Ht {
|
|
20080
20078
|
constructor(e) {
|
|
20081
|
-
super(), jt(this, e,
|
|
20079
|
+
super(), jt(this, e, C1, D1, Ut, { x: 0, y: 1, user: 2, scale: 3, hAlign: 5 });
|
|
20082
20080
|
}
|
|
20083
20081
|
}
|
|
20084
|
-
function
|
|
20082
|
+
function F1(r) {
|
|
20085
20083
|
let e, t, i, n, o, s;
|
|
20086
20084
|
return t = new wl({
|
|
20087
20085
|
props: {
|
|
@@ -20140,7 +20138,7 @@ function N1(r) {
|
|
|
20140
20138
|
};
|
|
20141
20139
|
}
|
|
20142
20140
|
const $h = (r) => r.join(",");
|
|
20143
|
-
function
|
|
20141
|
+
function N1(r, e, t) {
|
|
20144
20142
|
let i, n, { annotation: o } = e, { user: s } = e, { scale: a } = e;
|
|
20145
20143
|
const h = (u) => {
|
|
20146
20144
|
let [l, ...c] = u.points;
|
|
@@ -20156,12 +20154,12 @@ function L1(r, e, t) {
|
|
|
20156
20154
|
4 && t(3, n = h(i));
|
|
20157
20155
|
}, [s, a, i, n, o];
|
|
20158
20156
|
}
|
|
20159
|
-
class
|
|
20157
|
+
class L1 extends Ht {
|
|
20160
20158
|
constructor(e) {
|
|
20161
|
-
super(), jt(this, e,
|
|
20159
|
+
super(), jt(this, e, N1, F1, Ut, { annotation: 4, user: 0, scale: 1 });
|
|
20162
20160
|
}
|
|
20163
20161
|
}
|
|
20164
|
-
function
|
|
20162
|
+
function B1(r) {
|
|
20165
20163
|
let e, t, i, n, o, s, a, h, u;
|
|
20166
20164
|
return t = new wl({
|
|
20167
20165
|
props: {
|
|
@@ -20227,7 +20225,7 @@ function G1(r) {
|
|
|
20227
20225
|
}
|
|
20228
20226
|
};
|
|
20229
20227
|
}
|
|
20230
|
-
function
|
|
20228
|
+
function G1(r, e, t) {
|
|
20231
20229
|
let i, { annotation: n } = e, { user: o } = e, { scale: s } = e;
|
|
20232
20230
|
return r.$$set = (a) => {
|
|
20233
20231
|
"annotation" in a && t(3, n = a.annotation), "user" in a && t(0, o = a.user), "scale" in a && t(1, s = a.scale);
|
|
@@ -20236,12 +20234,12 @@ function U1(r, e, t) {
|
|
|
20236
20234
|
8 && t(2, i = n.target.selector.geometry);
|
|
20237
20235
|
}, [o, s, i, n];
|
|
20238
20236
|
}
|
|
20239
|
-
class
|
|
20237
|
+
class U1 extends Ht {
|
|
20240
20238
|
constructor(e) {
|
|
20241
|
-
super(), jt(this, e,
|
|
20239
|
+
super(), jt(this, e, G1, B1, Ut, { annotation: 3, user: 0, scale: 1 });
|
|
20242
20240
|
}
|
|
20243
20241
|
}
|
|
20244
|
-
const { Boolean:
|
|
20242
|
+
const { Boolean: k1 } = ec;
|
|
20245
20243
|
function qh(r, e, t) {
|
|
20246
20244
|
const i = r.slice();
|
|
20247
20245
|
return i[8] = e[t], i;
|
|
@@ -20256,7 +20254,7 @@ function Kh(r) {
|
|
|
20256
20254
|
),
|
|
20257
20255
|
$$slots: {
|
|
20258
20256
|
default: [
|
|
20259
|
-
|
|
20257
|
+
H1,
|
|
20260
20258
|
({ transform: i, scale: n }) => ({ 6: i, 7: n }),
|
|
20261
20259
|
({ transform: i, scale: n }) => (i ? 64 : 0) | (n ? 128 : 0)
|
|
20262
20260
|
]
|
|
@@ -20332,7 +20330,7 @@ function Zh(r) {
|
|
|
20332
20330
|
}
|
|
20333
20331
|
},
|
|
20334
20332
|
o(s) {
|
|
20335
|
-
n = n.filter(
|
|
20333
|
+
n = n.filter(k1);
|
|
20336
20334
|
for (let a = 0; a < n.length; a += 1)
|
|
20337
20335
|
pt(n[a]);
|
|
20338
20336
|
t = !1;
|
|
@@ -20342,9 +20340,9 @@ function Zh(r) {
|
|
|
20342
20340
|
}
|
|
20343
20341
|
};
|
|
20344
20342
|
}
|
|
20345
|
-
function
|
|
20343
|
+
function X1(r) {
|
|
20346
20344
|
let e, t;
|
|
20347
|
-
return e = new
|
|
20345
|
+
return e = new L1({
|
|
20348
20346
|
props: {
|
|
20349
20347
|
annotation: (
|
|
20350
20348
|
/*tracked*/
|
|
@@ -20387,9 +20385,9 @@ function j1(r) {
|
|
|
20387
20385
|
}
|
|
20388
20386
|
};
|
|
20389
20387
|
}
|
|
20390
|
-
function
|
|
20388
|
+
function j1(r) {
|
|
20391
20389
|
let e, t;
|
|
20392
|
-
return e = new
|
|
20390
|
+
return e = new U1({
|
|
20393
20391
|
props: {
|
|
20394
20392
|
annotation: (
|
|
20395
20393
|
/*tracked*/
|
|
@@ -20434,7 +20432,7 @@ function H1(r) {
|
|
|
20434
20432
|
}
|
|
20435
20433
|
function Jh(r) {
|
|
20436
20434
|
let e, t, i, n;
|
|
20437
|
-
const o = [
|
|
20435
|
+
const o = [j1, X1], s = [];
|
|
20438
20436
|
function a(h, u) {
|
|
20439
20437
|
return (
|
|
20440
20438
|
/*tracked*/
|
|
@@ -20468,7 +20466,7 @@ function Jh(r) {
|
|
|
20468
20466
|
}
|
|
20469
20467
|
};
|
|
20470
20468
|
}
|
|
20471
|
-
function
|
|
20469
|
+
function H1(r) {
|
|
20472
20470
|
let e, t, i, n, o = (
|
|
20473
20471
|
/*trackedAnnotations*/
|
|
20474
20472
|
r[2].length > 0 && Zh(r)
|
|
@@ -20500,7 +20498,7 @@ function Y1(r) {
|
|
|
20500
20498
|
}
|
|
20501
20499
|
};
|
|
20502
20500
|
}
|
|
20503
|
-
function
|
|
20501
|
+
function Y1(r) {
|
|
20504
20502
|
let e = !!/*provider*/
|
|
20505
20503
|
r[1], t, i, n = e && Kh(r);
|
|
20506
20504
|
return {
|
|
@@ -20529,7 +20527,7 @@ function V1(r) {
|
|
|
20529
20527
|
}
|
|
20530
20528
|
};
|
|
20531
20529
|
}
|
|
20532
|
-
function
|
|
20530
|
+
function V1(r, e, t) {
|
|
20533
20531
|
let { store: i } = e, { viewer: n } = e, { provider: o = null } = e, s = [], a = null;
|
|
20534
20532
|
const h = (u, l) => {
|
|
20535
20533
|
t(2, s = [
|
|
@@ -20561,9 +20559,9 @@ function z1(r, e, t) {
|
|
|
20561
20559
|
2 && o && o.on("selectionChange", h);
|
|
20562
20560
|
}, [n, o, s, i];
|
|
20563
20561
|
}
|
|
20564
|
-
class
|
|
20562
|
+
class z1 extends Ht {
|
|
20565
20563
|
constructor(e) {
|
|
20566
|
-
super(), jt(this, e,
|
|
20564
|
+
super(), jt(this, e, V1, Y1, Ut, { store: 3, viewer: 0, provider: 1 });
|
|
20567
20565
|
}
|
|
20568
20566
|
}
|
|
20569
20567
|
const Qh = (r, e) => {
|
|
@@ -20586,7 +20584,7 @@ const Qh = (r, e) => {
|
|
|
20586
20584
|
u = u / a.height, l = l / a.width, c = c / a.height, d = d / a.width;
|
|
20587
20585
|
const { minX: p, minY: f, maxX: m, maxY: y } = s.target.selector.geometry.bounds, _ = m - p, g = y - f, v = p - d * _, x = f - u * g, T = _ + (l + d) * _, S = g + (u + c) * g, O = r.viewport.imageToViewportRectangle(v, x, T, S);
|
|
20588
20586
|
r.viewport[t](O, n.immediately);
|
|
20589
|
-
},
|
|
20587
|
+
}, W1 = (r, e) => Sl(r, e, "fitBounds"), $1 = (r, e) => Sl(r, e, "fitBoundsWithConstraints"), ix = (r, e = {}) => {
|
|
20590
20588
|
const t = ed(e), i = Jc(t), { hover: n, selection: o, store: s } = i, a = jl(s), h = Yl(
|
|
20591
20589
|
i,
|
|
20592
20590
|
a,
|
|
@@ -20594,21 +20592,21 @@ const Qh = (r, e) => {
|
|
|
20594
20592
|
t.autoSave
|
|
20595
20593
|
);
|
|
20596
20594
|
let u = Zl(), l = t.drawingEnabled, c = t.drawingMode;
|
|
20597
|
-
const d = rd(a, r.element), p = new
|
|
20595
|
+
const d = rd(a, r.element), p = new b1({
|
|
20598
20596
|
target: r.element,
|
|
20599
20597
|
props: {
|
|
20600
20598
|
state: i,
|
|
20601
20599
|
viewer: r,
|
|
20602
20600
|
style: t.style
|
|
20603
20601
|
}
|
|
20604
|
-
}), f = new
|
|
20602
|
+
}), f = new z1({
|
|
20605
20603
|
target: r.element.querySelector(".openseadragon-canvas"),
|
|
20606
20604
|
props: {
|
|
20607
20605
|
store: s,
|
|
20608
20606
|
viewer: r,
|
|
20609
20607
|
provider: null
|
|
20610
20608
|
}
|
|
20611
|
-
}), m = new
|
|
20609
|
+
}), m = new I1({
|
|
20612
20610
|
target: r.element.querySelector(".openseadragon-canvas"),
|
|
20613
20611
|
props: {
|
|
20614
20612
|
drawingEnabled: l,
|
|
@@ -20629,7 +20627,7 @@ const Qh = (r, e) => {
|
|
|
20629
20627
|
}), Qh(r, t.theme);
|
|
20630
20628
|
const y = zl(i, a, t.adapter), _ = () => {
|
|
20631
20629
|
p.$destroy(), f.$destroy(), m.$destroy(), d.destroy(), a.destroy();
|
|
20632
|
-
}, g =
|
|
20630
|
+
}, g = W1(r, s), v = $1(r, s), x = () => u, T = (N, D, C) => jc(N, D, C), S = (N, D) => Rc(N, D), O = (N) => {
|
|
20633
20631
|
if (!cu(N))
|
|
20634
20632
|
throw `No drawing tool named ${N}`;
|
|
20635
20633
|
m.$set({ toolName: N });
|
|
@@ -20660,6 +20658,8 @@ const Qh = (r, e) => {
|
|
|
20660
20658
|
viewer: r
|
|
20661
20659
|
};
|
|
20662
20660
|
};
|
|
20661
|
+
let q1 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
20662
|
+
q1();
|
|
20663
20663
|
var Dr = /* @__PURE__ */ ((r) => (r.ELLIPSE = "ELLIPSE", r.POLYGON = "POLYGON", r.RECTANGLE = "RECTANGLE", r))(Dr || {});
|
|
20664
20664
|
const Hs = (r, e) => e, K1 = {
|
|
20665
20665
|
area: (r) => Math.PI * r.geometry.rx * r.geometry.ry,
|
|
@@ -20705,9 +20705,7 @@ let ex = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) =>
|
|
|
20705
20705
|
ex();
|
|
20706
20706
|
Dr.RECTANGLE, Dr.POLYGON;
|
|
20707
20707
|
navigator.userAgent.indexOf("Mac OS X");
|
|
20708
|
-
let rx = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((e, t) => (t &= 63, t < 36 ? e += t.toString(36) : t < 62 ? e += (t - 26).toString(36).toUpperCase() : t > 62 ? e += "-" : e += "_", e), "");
|
|
20709
|
-
rx();
|
|
20710
20708
|
export {
|
|
20711
|
-
|
|
20709
|
+
ix as createOSDAnnotator
|
|
20712
20710
|
};
|
|
20713
20711
|
//# sourceMappingURL=annotorious-svelte.es9.js.map
|