modern-canvas 0.12.20 → 0.12.22
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/core/renderer/webgl/modules/WebGLBatch2DModule.d.ts +1 -1
- package/dist/core/renderer/webgl/modules/WebGLTextureModule.d.ts +1 -0
- package/dist/index.js +570 -556
- package/dist/scene/2d/element/BaseElement2D.d.ts +0 -1
- package/dist/scene/2d/element/BaseElement2DText.d.ts +9 -8
- package/dist/scene/resources/textures/Texture2D.d.ts +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineProperty as Ht, Observable as de, Reactivable as Ir, parseColor as
|
|
2
|
-
import { fonts as
|
|
3
|
-
import { extend as
|
|
4
|
-
import
|
|
5
|
-
import { Path2D as bt, Path2DSet as
|
|
6
|
-
import { Text as
|
|
1
|
+
import { defineProperty as Ht, Observable as de, Reactivable as Ir, parseColor as Ls, property as u, RawWeakMap as Br, isGradient as Fs, isColorFillObject as mr, clearUndef as Nr, idGenerator as zr, normalizeFill as $s, isNone as L, normalizeBackground as Vs, normalizeForeground as Gs, normalizeOutline as js, normalizeShadow as Ws, normalizeShape as qs, getDefaultStyle as Xs, normalizeText as Hs, normalizeTextContent as Ys, getDefaultTextStyle as Ks, getDefaultLayoutStyle as Zs } from "modern-idoc";
|
|
2
|
+
import { fonts as Js } from "modern-font";
|
|
3
|
+
import { extend as Qs } from "colord";
|
|
4
|
+
import ei from "colord/plugins/names";
|
|
5
|
+
import { Path2D as bt, Path2DSet as ti, svgToDom as ri, svgToPath2DSet as si, Matrix3 as gr, BoundingBox as Ft } from "modern-path2d";
|
|
6
|
+
import { Text as ii, Character as oi } from "modern-text";
|
|
7
7
|
const Yt = /* @__PURE__ */ new Map();
|
|
8
8
|
function v(r, e) {
|
|
9
9
|
return function(t) {
|
|
@@ -18,7 +18,7 @@ function v(r, e) {
|
|
|
18
18
|
}), Yt.set(r, t);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function gl(r = "node", e = {}) {
|
|
22
22
|
const t = Yt.get(r);
|
|
23
23
|
if (!t)
|
|
24
24
|
throw new Error(`Failed to createNode, tag: ${r}`);
|
|
@@ -81,7 +81,7 @@ class k {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
k.start();
|
|
84
|
-
async function
|
|
84
|
+
async function Lr(r) {
|
|
85
85
|
return new Promise((e) => {
|
|
86
86
|
k.on(
|
|
87
87
|
() => {
|
|
@@ -92,14 +92,14 @@ async function Fr(r) {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
const Kt = Math.PI, B = Kt * 2;
|
|
95
|
-
let
|
|
96
|
-
function
|
|
97
|
-
return r?.__SPECTOR_Object_TAG?.id ?? ++
|
|
95
|
+
let ai = 0;
|
|
96
|
+
function ni(r) {
|
|
97
|
+
return r?.__SPECTOR_Object_TAG?.id ?? ++ai;
|
|
98
98
|
}
|
|
99
99
|
function vr(r) {
|
|
100
100
|
return !(r & r - 1) && !!r;
|
|
101
101
|
}
|
|
102
|
-
const
|
|
102
|
+
const li = /([\w-]+)\((.+?)\)/g, hi = /[^,]+/g, ci = /([-e.\d]+)(.*)/;
|
|
103
103
|
function br(r) {
|
|
104
104
|
return Array.isArray(r) ? r.map((e) => ({
|
|
105
105
|
name: e.name,
|
|
@@ -114,34 +114,34 @@ function br(r) {
|
|
|
114
114
|
}
|
|
115
115
|
function mt(r, e, t = {}) {
|
|
116
116
|
const s = At(e, t);
|
|
117
|
-
return s.length ? s :
|
|
117
|
+
return s.length ? s : Fr(r, e, t);
|
|
118
118
|
}
|
|
119
119
|
function At(r, e = {}) {
|
|
120
120
|
const t = [];
|
|
121
121
|
let s;
|
|
122
|
-
for (; (s =
|
|
122
|
+
for (; (s = li.exec(r)) !== null; ) {
|
|
123
123
|
const [, i, o] = s;
|
|
124
124
|
i && t.push({
|
|
125
125
|
name: i,
|
|
126
|
-
args:
|
|
126
|
+
args: ui(i, o, e)
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
return t;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function ui(r, e, t = {}) {
|
|
132
132
|
const s = [];
|
|
133
133
|
let i, o = 0;
|
|
134
|
-
for (; (i =
|
|
134
|
+
for (; (i = hi.exec(e)) !== null; )
|
|
135
135
|
s.push(
|
|
136
|
-
|
|
136
|
+
Fr(r, i[0], {
|
|
137
137
|
...t,
|
|
138
138
|
index: o++
|
|
139
139
|
})
|
|
140
140
|
);
|
|
141
141
|
return s;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
const { width: s = 1, height: i = 1, index: o = 0 } = t, a = e.match(
|
|
143
|
+
function Fr(r, e, t = {}) {
|
|
144
|
+
const { width: s = 1, height: i = 1, index: o = 0 } = t, a = e.match(ci), n = {
|
|
145
145
|
unit: a?.[2] ?? null,
|
|
146
146
|
value: e,
|
|
147
147
|
intValue: Number(a?.[1]),
|
|
@@ -187,26 +187,26 @@ function zr(r, e, t = {}) {
|
|
|
187
187
|
}
|
|
188
188
|
return n;
|
|
189
189
|
}
|
|
190
|
-
const
|
|
191
|
-
function
|
|
190
|
+
const di = "WebGL2RenderingContext" in globalThis, pi = "ImageBitmap" in globalThis, fi = "ResizeObserver" in globalThis, qe = "PointerEvent" in globalThis, _i = "WheelEvent" in globalThis, vl = "MouseEvent" in globalThis, he = "ontouchstart" in globalThis, mi = "onclick" in globalThis, $r = "createImageBitmap" in globalThis, Vr = "AudioContext" in globalThis, Gr = "webkitAudioContext" in globalThis, jr = "OfflineAudioContext" in globalThis, gi = "webkitOfflineAudioContext" in globalThis, vi = Vr || Gr, Rt = typeof window < "u", Wr = globalThis.devicePixelRatio || 1, qr = (r) => r !== null && typeof r == "object" && r.nodeType === 1, bi = (r) => qr(r) && r.tagName === "VIDEO", bl = (r) => qr(r) && r.tagName === "IMG";
|
|
191
|
+
function yi(r) {
|
|
192
192
|
return typeof r == "object" && r !== null && r.nodeType === 1 && r.tagName === "CANVAS";
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function xi(r) {
|
|
195
|
+
return di && r instanceof globalThis.WebGL2RenderingContext;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function wi() {
|
|
198
198
|
if (Rt)
|
|
199
199
|
return globalThis.document.createElement("canvas");
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Pi(r, e = globalThis.location) {
|
|
202
202
|
if (r.startsWith("data:"))
|
|
203
203
|
return "";
|
|
204
204
|
e = e || globalThis.location;
|
|
205
205
|
const t = new URL(r, document.baseURI);
|
|
206
206
|
return t.hostname !== e.hostname || t.port !== e.port || t.protocol !== e.protocol ? "anonymous" : "";
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
t === null && !e.startsWith("data:") ? r.crossOrigin =
|
|
208
|
+
function Ti(r, e, t) {
|
|
209
|
+
t === null && !e.startsWith("data:") ? r.crossOrigin = Pi(e) : t !== !1 && (r.crossOrigin = typeof t == "string" ? t : "anonymous");
|
|
210
210
|
}
|
|
211
211
|
class Xr {
|
|
212
212
|
_map = /* @__PURE__ */ new WeakMap();
|
|
@@ -282,7 +282,7 @@ class Mt {
|
|
|
282
282
|
throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
|
-
class
|
|
285
|
+
class Ei extends Mt {
|
|
286
286
|
getModifierState(...e) {
|
|
287
287
|
throw new Error("getModifierState() is a legacy DOM API. It is not implemented in the Federated Events API.");
|
|
288
288
|
}
|
|
@@ -353,7 +353,7 @@ class Hr extends Mt {
|
|
|
353
353
|
return this.global.y;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
class
|
|
356
|
+
class Ci extends Hr {
|
|
357
357
|
width = 0;
|
|
358
358
|
height = 0;
|
|
359
359
|
isPrimary = !1;
|
|
@@ -364,7 +364,7 @@ class Ti extends Hr {
|
|
|
364
364
|
throw new Error("getPredictedEvents is not supported!");
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
class
|
|
367
|
+
class Si extends Hr {
|
|
368
368
|
static DOM_DELTA_PIXEL = 0;
|
|
369
369
|
DOM_DELTA_PIXEL = 0;
|
|
370
370
|
static DOM_DELTA_LINE = 1;
|
|
@@ -372,14 +372,14 @@ class Ei extends Hr {
|
|
|
372
372
|
static DOM_DELTA_PAGE = 2;
|
|
373
373
|
DOM_DELTA_PAGE = 2;
|
|
374
374
|
}
|
|
375
|
-
const
|
|
375
|
+
const Ai = {
|
|
376
376
|
touchstart: "pointerdown",
|
|
377
377
|
touchend: "pointerup",
|
|
378
378
|
touchendoutside: "pointerupoutside",
|
|
379
379
|
touchmove: "pointermove",
|
|
380
380
|
touchcancel: "pointercancel"
|
|
381
381
|
};
|
|
382
|
-
class
|
|
382
|
+
class Ri extends de {
|
|
383
383
|
/**
|
|
384
384
|
* Current event
|
|
385
385
|
*/
|
|
@@ -416,7 +416,7 @@ class Si extends de {
|
|
|
416
416
|
const o = e.changedTouches[s];
|
|
417
417
|
typeof o.button > "u" && (o.button = 0), typeof o.buttons > "u" && (o.buttons = 1), typeof o.isPrimary > "u" && (o.isPrimary = e.touches.length === 1 && e.type === "touchstart"), typeof o.width > "u" && (o.width = o.radiusX || 1), typeof o.height > "u" && (o.height = o.radiusY || 1), typeof o.tiltX > "u" && (o.tiltX = 0), typeof o.tiltY > "u" && (o.tiltY = 0), typeof o.pointerType > "u" && (o.pointerType = "touch"), typeof o.pointerId > "u" && (o.pointerId = o.identifier || 0), typeof o.pressure > "u" && (o.pressure = o.force || 0.5), typeof o.twist > "u" && (o.twist = 0), typeof o.tangentialPressure > "u" && (o.tangentialPressure = 0), typeof o.layerX > "u" && (o.layerX = o.offsetX = o.clientX), typeof o.layerY > "u" && (o.layerY = o.offsetY = o.clientY), o.type = e.type, t.push(o);
|
|
418
418
|
}
|
|
419
|
-
else if (
|
|
419
|
+
else if (_i && e instanceof globalThis.WheelEvent)
|
|
420
420
|
t.push(e);
|
|
421
421
|
else if (qe && e instanceof globalThis.PointerEvent)
|
|
422
422
|
t.push(e);
|
|
@@ -427,8 +427,8 @@ class Si extends de {
|
|
|
427
427
|
return t;
|
|
428
428
|
}
|
|
429
429
|
_clonePointerEvent(e) {
|
|
430
|
-
const t = new
|
|
431
|
-
return t.nativeEvent = e, t.pointerId = e.pointerId, t.width = e.width, t.height = e.height, t.isPrimary = e.isPrimary, t.pointerType = e.pointerType, t.pressure = e.pressure, t.tangentialPressure = e.tangentialPressure, t.tiltX = e.tiltX, t.tiltY = e.tiltY, t.twist = e.twist, t.isTrusted = e.isTrusted, this._copyMouseEvent(t, e), this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.x = t.screen.x, t.global.y = t.screen.y, t.offset.x = t.screen.x, t.offset.y = t.screen.y, t.type === "pointerleave" ? t.type = "pointerout" : t.type.startsWith("mouse") ? t.type = t.type.replace("mouse", "pointer") : t.type.startsWith("touch") && (t.type =
|
|
430
|
+
const t = new Ci();
|
|
431
|
+
return t.nativeEvent = e, t.pointerId = e.pointerId, t.width = e.width, t.height = e.height, t.isPrimary = e.isPrimary, t.pointerType = e.pointerType, t.pressure = e.pressure, t.tangentialPressure = e.tangentialPressure, t.tiltX = e.tiltX, t.tiltY = e.tiltY, t.twist = e.twist, t.isTrusted = e.isTrusted, this._copyMouseEvent(t, e), this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.x = t.screen.x, t.global.y = t.screen.y, t.offset.x = t.screen.x, t.offset.y = t.screen.y, t.type === "pointerleave" ? t.type = "pointerout" : t.type.startsWith("mouse") ? t.type = t.type.replace("mouse", "pointer") : t.type.startsWith("touch") && (t.type = Ai[t.type] || t.type), t;
|
|
432
432
|
}
|
|
433
433
|
_copyInputEvent(e, t) {
|
|
434
434
|
e.nativeEvent = t, e.bubbles = t.bubbles, e.cancelBubble = t.cancelBubble, e.cancelable = t.cancelable, e.composed = t.composed, e.currentTarget = t.currentTarget, e.defaultPrevented = t.defaultPrevented, e.eventPhase = t.eventPhase, e.isTrusted = t.isTrusted, e.returnValue = t.returnValue, e.srcElement = t.srcElement, e.timeStamp = t.timeStamp, e.type = t.type;
|
|
@@ -437,11 +437,11 @@ class Si extends de {
|
|
|
437
437
|
this._copyInputEvent(e, t), e.altKey = t.altKey, e.button = t.button, e.buttons = t.buttons, e.client.x = t.clientX, e.client.y = t.clientY, e.ctrlKey = t.ctrlKey, e.metaKey = t.metaKey, e.movement.x = t.movementX, e.movement.y = t.movementY, e.page.x = t.pageX, e.page.y = t.pageY, e.relatedTarget = null, e.shiftKey = t.shiftKey;
|
|
438
438
|
}
|
|
439
439
|
_cloneWheelEvent(e) {
|
|
440
|
-
const t = new
|
|
440
|
+
const t = new Si();
|
|
441
441
|
return this._copyMouseEvent(t, e), t.wheelDeltaY = e.wheelDeltaY, t.deltaX = e.deltaX, t.deltaY = e.deltaY, t.deltaZ = e.deltaZ, t.deltaMode = e.deltaMode, this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.x = t.screen.x, t.global.y = t.screen.y, t.offset.x = t.screen.x, t.offset.y = t.screen.y, t;
|
|
442
442
|
}
|
|
443
443
|
_cloneKeyboardEvent(e) {
|
|
444
|
-
const t = new
|
|
444
|
+
const t = new Ei();
|
|
445
445
|
return this._copyInputEvent(t, e), t.altKey = e.altKey, t.charCode = e.charCode, t.code = e.code, t.ctrlKey = e.ctrlKey, t.isComposing = e.isComposing, t.key = e.key, t.keyCode = e.keyCode, t.location = e.location, t.metaKey = e.metaKey, t.repeat = e.repeat, t.shiftKey = e.shiftKey, t;
|
|
446
446
|
}
|
|
447
447
|
setCursor(e = "default") {
|
|
@@ -535,9 +535,9 @@ class Si extends de {
|
|
|
535
535
|
this.removeEventListeners(), super.destroy();
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
let
|
|
538
|
+
let Mi = 0;
|
|
539
539
|
class pe extends Ir {
|
|
540
|
-
instanceId = ++
|
|
540
|
+
instanceId = ++Mi;
|
|
541
541
|
get json() {
|
|
542
542
|
return this.toJSON();
|
|
543
543
|
}
|
|
@@ -545,25 +545,25 @@ class pe extends Ir {
|
|
|
545
545
|
this.setProperties(e);
|
|
546
546
|
}
|
|
547
547
|
_nextTick() {
|
|
548
|
-
return
|
|
548
|
+
return Lr();
|
|
549
549
|
}
|
|
550
550
|
equal(e) {
|
|
551
551
|
return !!(e && this.instanceId === e.instanceId);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
class
|
|
554
|
+
class Oi extends pe {
|
|
555
555
|
//
|
|
556
556
|
}
|
|
557
|
-
class fe extends
|
|
557
|
+
class fe extends Oi {
|
|
558
558
|
//
|
|
559
559
|
}
|
|
560
|
-
|
|
560
|
+
Qs([ei]);
|
|
561
561
|
class Z {
|
|
562
562
|
get value() {
|
|
563
563
|
return this._value;
|
|
564
564
|
}
|
|
565
565
|
set value(e) {
|
|
566
|
-
this._colord =
|
|
566
|
+
this._colord = Ls(e ?? "none");
|
|
567
567
|
}
|
|
568
568
|
get r8() {
|
|
569
569
|
return this._colord.rgba.r;
|
|
@@ -843,19 +843,19 @@ class re extends de {
|
|
|
843
843
|
return this._array.slice();
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
class
|
|
846
|
+
class ki extends re {
|
|
847
847
|
constructor(e) {
|
|
848
848
|
super(4, 4, e);
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
const
|
|
851
|
+
const Ui = Kt / 180, yl = 180 / Kt;
|
|
852
852
|
function se(r, e, t) {
|
|
853
853
|
return Math.max(e, Math.min(r, t));
|
|
854
854
|
}
|
|
855
855
|
function C(r, e, t) {
|
|
856
856
|
return (1 - t) * r + t * e;
|
|
857
857
|
}
|
|
858
|
-
const
|
|
858
|
+
const xl = {
|
|
859
859
|
adaptive: !0,
|
|
860
860
|
maxLength: 10,
|
|
861
861
|
minSegments: 8,
|
|
@@ -868,7 +868,7 @@ const bl = {
|
|
|
868
868
|
return t < this.minSegments ? t = this.minSegments : t > this.maxSegments && (t = this.maxSegments), t;
|
|
869
869
|
}
|
|
870
870
|
};
|
|
871
|
-
class
|
|
871
|
+
class Di extends K {
|
|
872
872
|
constructor(e = 0, t = 0, s = 0, i = 0) {
|
|
873
873
|
super(4), this.set(e, t, s, i);
|
|
874
874
|
}
|
|
@@ -1107,7 +1107,7 @@ class Yr extends re {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
toMatrix4() {
|
|
1109
1109
|
const e = this._array;
|
|
1110
|
-
return new
|
|
1110
|
+
return new ki([
|
|
1111
1111
|
e[0],
|
|
1112
1112
|
e[1],
|
|
1113
1113
|
e[2],
|
|
@@ -1128,10 +1128,10 @@ class Yr extends re {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
toVector4() {
|
|
1130
1130
|
const e = this._array;
|
|
1131
|
-
return new
|
|
1131
|
+
return new Di(e[4] / 255, e[9] / 255, e[14] / 255, e[19] / 255);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
class
|
|
1134
|
+
class wl extends re {
|
|
1135
1135
|
constructor(e) {
|
|
1136
1136
|
super(2, 2, e);
|
|
1137
1137
|
}
|
|
@@ -1178,7 +1178,7 @@ class Kr extends re {
|
|
|
1178
1178
|
]);
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
class
|
|
1181
|
+
class Ii extends Kr {
|
|
1182
1182
|
constructor(e = 0, t = 0, s = 0, i = 0, o = !1) {
|
|
1183
1183
|
super(), this._x = e, this._y = t, this._width = s, this._height = i, this._flipY = o, this._performUpdateArray();
|
|
1184
1184
|
}
|
|
@@ -1520,15 +1520,15 @@ class O extends Kr {
|
|
|
1520
1520
|
return { a: e, c: t, tx: s, b: i, d: o, ty: a, tz: n };
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
-
class
|
|
1523
|
+
class Pl extends K {
|
|
1524
1524
|
constructor() {
|
|
1525
1525
|
super(3);
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
|
-
var
|
|
1528
|
+
var Bi = Object.defineProperty, Zr = (r, e, t, s) => {
|
|
1529
1529
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
1530
1530
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
1531
|
-
return i &&
|
|
1531
|
+
return i && Bi(e, t, i), i;
|
|
1532
1532
|
};
|
|
1533
1533
|
class Zt extends pe {
|
|
1534
1534
|
_starting = !1;
|
|
@@ -1566,10 +1566,10 @@ Zr([
|
|
|
1566
1566
|
Zr([
|
|
1567
1567
|
u({ fallback: 1 })
|
|
1568
1568
|
], Zt.prototype, "speed");
|
|
1569
|
-
var
|
|
1569
|
+
var Ni = Object.defineProperty, Jr = (r, e, t, s) => {
|
|
1570
1570
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
1571
1571
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
1572
|
-
return i &&
|
|
1572
|
+
return i && Ni(e, t, i), i;
|
|
1573
1573
|
};
|
|
1574
1574
|
class Jt extends Ir {
|
|
1575
1575
|
screen = { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -1600,7 +1600,7 @@ Jr([
|
|
|
1600
1600
|
u({ internal: !0 })
|
|
1601
1601
|
], Jt.prototype, "view");
|
|
1602
1602
|
var Ye = /* @__PURE__ */ ((r) => (r.NORMAL = "normal", r.ADD = "add", r.MULTIPLY = "multiply", r.SCREEN = "screen", r.NONE = "none", r.NORMAL_NPM = "normal_npm", r.ADD_NPM = "add_npm", r.SCREEN_NPM = "screen_npm", r.SRC_IN = "src_in", r.SRC_OUT = "src_out", r.SRC_ATOP = "src_atop", r.DST_OVER = "dst_over", r.DST_IN = "dst_in", r.DST_OUT = "dst_out", r.DST_ATOP = "dst_atop", r.XOR = "xor", r.SUBTRACT = "subtract", r))(Ye || {});
|
|
1603
|
-
function
|
|
1603
|
+
function zi(r) {
|
|
1604
1604
|
return {
|
|
1605
1605
|
normal: [r.ONE, r.ONE_MINUS_SRC_ALPHA],
|
|
1606
1606
|
add: [r.ONE, r.ONE],
|
|
@@ -1689,7 +1689,7 @@ class Re {
|
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
Re._init();
|
|
1692
|
-
class
|
|
1692
|
+
class Li extends X {
|
|
1693
1693
|
install(e) {
|
|
1694
1694
|
super.install(e), e.state = this;
|
|
1695
1695
|
}
|
|
@@ -1700,7 +1700,7 @@ class Ni extends X {
|
|
|
1700
1700
|
blendModes;
|
|
1701
1701
|
defaultState = new Re({ blend: !0 });
|
|
1702
1702
|
onUpdateContext() {
|
|
1703
|
-
super.onUpdateContext(), this.blendModes =
|
|
1703
|
+
super.onUpdateContext(), this.blendModes = zi(this._renderer.gl);
|
|
1704
1704
|
}
|
|
1705
1705
|
toggle(e, t) {
|
|
1706
1706
|
this._renderer.gl[t ? "enable" : "disable"](e);
|
|
@@ -1749,7 +1749,7 @@ class Ni extends X {
|
|
|
1749
1749
|
e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL, !1), this.bind(this.defaultState), this._blendEq = !0, this.setBlendMode(Ye.NORMAL);
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
|
-
class
|
|
1752
|
+
class Fi extends X {
|
|
1753
1753
|
install(e) {
|
|
1754
1754
|
super.install(e), e.batch2D = this;
|
|
1755
1755
|
}
|
|
@@ -1769,7 +1769,7 @@ class Li extends X {
|
|
|
1769
1769
|
// 1
|
|
1770
1770
|
aPosition: { size: 2, normalized: !1, type: "float" },
|
|
1771
1771
|
// 2
|
|
1772
|
-
|
|
1772
|
+
aSize: { size: 2, normalized: !1, type: "float" },
|
|
1773
1773
|
// 2
|
|
1774
1774
|
aUv: { size: 2, normalized: !1, type: "float" },
|
|
1775
1775
|
// 2
|
|
@@ -1790,7 +1790,7 @@ class Li extends X {
|
|
|
1790
1790
|
vert: `precision highp float;
|
|
1791
1791
|
attribute float aTextureId;
|
|
1792
1792
|
attribute vec2 aPosition;
|
|
1793
|
-
attribute vec2
|
|
1793
|
+
attribute vec2 aSize;
|
|
1794
1794
|
attribute vec2 aUv;
|
|
1795
1795
|
attribute vec4 aModulate;
|
|
1796
1796
|
attribute vec4 aBackgroundColor;
|
|
@@ -1801,7 +1801,7 @@ uniform mat3 viewMatrix;
|
|
|
1801
1801
|
uniform vec4 modulate;
|
|
1802
1802
|
|
|
1803
1803
|
varying float vTextureId;
|
|
1804
|
-
varying vec2
|
|
1804
|
+
varying vec2 vSize;
|
|
1805
1805
|
varying vec2 vUv;
|
|
1806
1806
|
varying vec4 vModulate;
|
|
1807
1807
|
varying vec4 vBackgroundColor;
|
|
@@ -1812,7 +1812,7 @@ void main(void) {
|
|
|
1812
1812
|
gl_Position = vec4(pos3.xy, 0.0, 1.0);
|
|
1813
1813
|
|
|
1814
1814
|
vTextureId = aTextureId;
|
|
1815
|
-
|
|
1815
|
+
vSize = aSize;
|
|
1816
1816
|
vUv = aUv;
|
|
1817
1817
|
vModulate = aModulate * modulate;
|
|
1818
1818
|
vBackgroundColor = aBackgroundColor;
|
|
@@ -1820,7 +1820,7 @@ void main(void) {
|
|
|
1820
1820
|
}`,
|
|
1821
1821
|
frag: `precision highp float;
|
|
1822
1822
|
varying float vTextureId;
|
|
1823
|
-
varying vec2
|
|
1823
|
+
varying vec2 vSize;
|
|
1824
1824
|
varying vec2 vUv;
|
|
1825
1825
|
varying vec4 vModulate;
|
|
1826
1826
|
varying vec4 vBackgroundColor;
|
|
@@ -1834,9 +1834,9 @@ uniform vec2 translate;
|
|
|
1834
1834
|
void main(void) {
|
|
1835
1835
|
vec2 uv = vUv;
|
|
1836
1836
|
|
|
1837
|
-
if (
|
|
1838
|
-
uv = floor(uv *
|
|
1839
|
-
uv = uv /
|
|
1837
|
+
if (vSize.x > 0.0 && vSize.y > 0.0) {
|
|
1838
|
+
uv = floor(uv * vSize);
|
|
1839
|
+
uv = uv / vSize;
|
|
1840
1840
|
}
|
|
1841
1841
|
|
|
1842
1842
|
vec4 color = vec4(0.0, 0.0, 0.0, 0.0);
|
|
@@ -1917,30 +1917,30 @@ void main(void) {
|
|
|
1917
1917
|
let l = 0, c = 0;
|
|
1918
1918
|
const d = [];
|
|
1919
1919
|
for (let _ = s.length, f = { id: ++this._drawCallUid }, m = [], g = /* @__PURE__ */ new Map(), w = 0, P = 0, R = 0; R < _; R++) {
|
|
1920
|
-
const A = s[R].texture,
|
|
1920
|
+
const A = s[R].texture, z = R === _ - 1;
|
|
1921
1921
|
if (!A || g.has(A)) {
|
|
1922
|
-
if (!
|
|
1922
|
+
if (!z)
|
|
1923
1923
|
continue;
|
|
1924
1924
|
} else
|
|
1925
1925
|
m.push(A), g.set(A, w++);
|
|
1926
|
-
if (
|
|
1926
|
+
if (z || w >= i) {
|
|
1927
1927
|
f.textures = m, f.textureLocationMap = g, w = 0, f.first = c;
|
|
1928
1928
|
for (let V = P; V <= R; V++) {
|
|
1929
1929
|
const {
|
|
1930
1930
|
indices: ur,
|
|
1931
|
-
vertices:
|
|
1931
|
+
vertices: zt,
|
|
1932
1932
|
uvs: dr = new Float32Array(0),
|
|
1933
|
-
|
|
1933
|
+
size: pr = new Float32Array(0),
|
|
1934
1934
|
texture: fr,
|
|
1935
1935
|
modulate: je = this._defaultModulate,
|
|
1936
1936
|
backgroundColor: We = this._defaultBackgroundColor,
|
|
1937
1937
|
blendMode: _r = Ye.NORMAL,
|
|
1938
1938
|
disableWrapMode: Us = !1
|
|
1939
|
-
} = s[V];
|
|
1939
|
+
} = s[V], Ds = pr[0] || 0, Is = pr[1] || 0;
|
|
1940
1940
|
P < V && f.blendMode !== _r && (f.count = c - f.first, d.push(f), P = V, f = { id: ++this._drawCallUid }, f.textures = m, f.first = c);
|
|
1941
|
-
const
|
|
1942
|
-
for (let
|
|
1943
|
-
if (a[l++] =
|
|
1941
|
+
const Bs = l / this._vertexSize, Ns = (fr ? g.get(fr) : -1) ?? -1, zs = Us ? 1 : 0;
|
|
1942
|
+
for (let Lt = zt.length, Y = 0; Y < Lt; Y += 2) {
|
|
1943
|
+
if (a[l++] = Ns, a[l++] = zt[Y], a[l++] = zt[Y + 1], a[l++] = Ds, a[l++] = Is, a[l++] = dr[Y], a[l++] = dr[Y + 1], je) {
|
|
1944
1944
|
const te = l * 4;
|
|
1945
1945
|
n[te] = je[0], n[te + 1] = je[1], n[te + 2] = je[2], n[te + 3] = je[3];
|
|
1946
1946
|
}
|
|
@@ -1948,10 +1948,10 @@ void main(void) {
|
|
|
1948
1948
|
const te = l * 4;
|
|
1949
1949
|
n[te] = We[0], n[te + 1] = We[1], n[te + 2] = We[2], n[te + 3] = We[3];
|
|
1950
1950
|
}
|
|
1951
|
-
l++, a[l++] =
|
|
1951
|
+
l++, a[l++] = zs;
|
|
1952
1952
|
}
|
|
1953
|
-
for (let
|
|
1954
|
-
h[c++] =
|
|
1953
|
+
for (let Lt = ur.length, Y = 0; Y < Lt; Y++)
|
|
1954
|
+
h[c++] = Bs + ur[Y];
|
|
1955
1955
|
f.blendMode = _r;
|
|
1956
1956
|
}
|
|
1957
1957
|
P = R + 1, f.count = c - f.first, d.push(f), f = { id: ++this._drawCallUid }, m = [], g = /* @__PURE__ */ new Map();
|
|
@@ -1962,11 +1962,11 @@ void main(void) {
|
|
|
1962
1962
|
for (let _ = d.length, f = 0; f < _; f++) {
|
|
1963
1963
|
const m = d[f], { first: g = 0, textures: w, textureLocationMap: P } = m;
|
|
1964
1964
|
for (let R = w.length, A = 0; A < R; A++) {
|
|
1965
|
-
const
|
|
1965
|
+
const z = w[A], V = P.get(z);
|
|
1966
1966
|
V !== void 0 && this._renderer.texture.bind({
|
|
1967
1967
|
target: "texture_2d",
|
|
1968
1968
|
location: V,
|
|
1969
|
-
value:
|
|
1969
|
+
value: z
|
|
1970
1970
|
});
|
|
1971
1971
|
}
|
|
1972
1972
|
this._state.blendMode = m.blendMode, this._renderer.state.bind(this._state), p.draw({
|
|
@@ -1999,7 +1999,7 @@ function xr(r) {
|
|
|
1999
1999
|
let t = (r > 255 ? 1 : 0) << 3;
|
|
2000
2000
|
return r >>>= t, e |= t, t = (r > 15 ? 1 : 0) << 2, r >>>= t, e |= t, t = (r > 3 ? 1 : 0) << 1, r >>>= t, e |= t, e | r >> 1;
|
|
2001
2001
|
}
|
|
2002
|
-
class
|
|
2002
|
+
class $i extends X {
|
|
2003
2003
|
install(e) {
|
|
2004
2004
|
super.install(e), e.buffer = this;
|
|
2005
2005
|
}
|
|
@@ -2016,7 +2016,7 @@ class Fi extends X {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
getMeta(e) {
|
|
2018
2018
|
return this._renderer.getRelated(e, () => ({
|
|
2019
|
-
id:
|
|
2019
|
+
id: ni(e),
|
|
2020
2020
|
length: 0,
|
|
2021
2021
|
byteLength: 0,
|
|
2022
2022
|
bytesPerElement: 0
|
|
@@ -2061,7 +2061,7 @@ class Fi extends X {
|
|
|
2061
2061
|
super.reset(), this.boundArrayBuffer = null, this.boundTarget = "array_buffer";
|
|
2062
2062
|
}
|
|
2063
2063
|
}
|
|
2064
|
-
class
|
|
2064
|
+
class Vi extends X {
|
|
2065
2065
|
install(e) {
|
|
2066
2066
|
super.install(e), e.framebuffer = this;
|
|
2067
2067
|
}
|
|
@@ -2296,7 +2296,7 @@ class zi extends X {
|
|
|
2296
2296
|
super.reset(), this.boundFramebuffer = null;
|
|
2297
2297
|
}
|
|
2298
2298
|
}
|
|
2299
|
-
class
|
|
2299
|
+
class Gi extends X {
|
|
2300
2300
|
install(e) {
|
|
2301
2301
|
super.install(e), e.mask = this;
|
|
2302
2302
|
}
|
|
@@ -2332,7 +2332,7 @@ class $i extends X {
|
|
|
2332
2332
|
);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
|
-
class
|
|
2335
|
+
class ji extends X {
|
|
2336
2336
|
install(e) {
|
|
2337
2337
|
super.install(e), e.program = this;
|
|
2338
2338
|
}
|
|
@@ -2375,7 +2375,7 @@ class Vi extends X {
|
|
|
2375
2375
|
o.attributes.set(c.name, {
|
|
2376
2376
|
type: d,
|
|
2377
2377
|
name: c.name,
|
|
2378
|
-
size:
|
|
2378
|
+
size: Wi(d),
|
|
2379
2379
|
location: i.getAttribLocation(s, c.name)
|
|
2380
2380
|
});
|
|
2381
2381
|
}
|
|
@@ -2495,7 +2495,7 @@ ${s.getShaderInfoLog(i)}`);
|
|
|
2495
2495
|
super.destroy(), this.bind(null);
|
|
2496
2496
|
}
|
|
2497
2497
|
}
|
|
2498
|
-
function
|
|
2498
|
+
function Wi(r) {
|
|
2499
2499
|
switch (r) {
|
|
2500
2500
|
case "float":
|
|
2501
2501
|
case "int":
|
|
@@ -2531,7 +2531,7 @@ function gt(r, e, t) {
|
|
|
2531
2531
|
const [s, i, o, a, n, h, l, c, d] = r, p = s * e + a * t + l, _ = i * e + n * t + c, f = o * e + h * t + d;
|
|
2532
2532
|
return { x: p / f, y: _ / f };
|
|
2533
2533
|
}
|
|
2534
|
-
function
|
|
2534
|
+
function qi(r, e) {
|
|
2535
2535
|
const { x: t, y: s, width: i, height: o } = e, a = gt(r, t, s), n = gt(r, t + i, s), h = gt(r, t + i, s + o), l = gt(r, t, s + o), c = [a, n, h, l], d = c.map((w) => w.x), p = c.map((w) => w.y), _ = Math.min(...d), f = Math.max(...d), m = Math.min(...p), g = Math.max(...p);
|
|
2536
2536
|
return {
|
|
2537
2537
|
x: _,
|
|
@@ -2540,7 +2540,7 @@ function ji(r, e) {
|
|
|
2540
2540
|
height: g - m
|
|
2541
2541
|
};
|
|
2542
2542
|
}
|
|
2543
|
-
class
|
|
2543
|
+
class Xi extends X {
|
|
2544
2544
|
install(e) {
|
|
2545
2545
|
super.install(e), e.scissor = this;
|
|
2546
2546
|
}
|
|
@@ -2560,7 +2560,7 @@ class Wi extends X {
|
|
|
2560
2560
|
}
|
|
2561
2561
|
}
|
|
2562
2562
|
use() {
|
|
2563
|
-
const e = this._renderer, { pixelRatio: t, mask: s, viewport: i, screen: o, gl: a, program: n } = e, { viewMatrix: h } = n.uniforms, l =
|
|
2563
|
+
const e = this._renderer, { pixelRatio: t, mask: s, viewport: i, screen: o, gl: a, program: n } = e, { viewMatrix: h } = n.uniforms, l = qi(h, s.last.mask), { x: c, y: d, width: p, height: _ } = l;
|
|
2564
2564
|
let f;
|
|
2565
2565
|
i.boundViewport ? f = i.boundViewport.height - (_ + d) * t : f = (o.height - (_ + d)) * t, a.scissor(
|
|
2566
2566
|
c * t,
|
|
@@ -2570,7 +2570,7 @@ class Wi extends X {
|
|
|
2570
2570
|
);
|
|
2571
2571
|
}
|
|
2572
2572
|
}
|
|
2573
|
-
class
|
|
2573
|
+
class Hi extends X {
|
|
2574
2574
|
install(e) {
|
|
2575
2575
|
super.install(e), e.stencil = this;
|
|
2576
2576
|
}
|
|
@@ -2607,16 +2607,17 @@ class qi extends X {
|
|
|
2607
2607
|
e.stencilFunc(e.EQUAL, this.length, 4294967295), e.stencilOp(e.KEEP, e.KEEP, e.KEEP);
|
|
2608
2608
|
}
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function Yi(r, e) {
|
|
2611
2611
|
const t = /* @__PURE__ */ new Set([...Object.keys(r), ...Object.keys(e)]), s = {};
|
|
2612
2612
|
return t.forEach((i) => {
|
|
2613
2613
|
s[i] = r[i] !== e[i];
|
|
2614
2614
|
}), s;
|
|
2615
2615
|
}
|
|
2616
|
-
class
|
|
2616
|
+
class Ki extends X {
|
|
2617
2617
|
install(e) {
|
|
2618
2618
|
super.install(e), e.texture = this;
|
|
2619
2619
|
}
|
|
2620
|
+
maxTextureSize = 0;
|
|
2620
2621
|
maxUnits = 0;
|
|
2621
2622
|
boundLocation = 0;
|
|
2622
2623
|
boundTarget = "texture_2d";
|
|
@@ -2628,7 +2629,7 @@ class Hi extends X {
|
|
|
2628
2629
|
onUpdateContext() {
|
|
2629
2630
|
super.onUpdateContext();
|
|
2630
2631
|
const e = this.gl;
|
|
2631
|
-
this.maxUnits = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);
|
|
2632
|
+
this.maxTextureSize = e.getParameter(e.MAX_TEXTURE_SIZE), this.maxUnits = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);
|
|
2632
2633
|
for (let i = 0; i < this.maxUnits; i++)
|
|
2633
2634
|
this.boundTextures[i] = { texture_2d: null, texture_cube_map: null };
|
|
2634
2635
|
const t = e.createTexture();
|
|
@@ -2675,7 +2676,7 @@ class Hi extends X {
|
|
|
2675
2676
|
const t = e[0], { value: s, ...i } = t, o = this.boundTextures[this.boundLocation][t.target ?? this.boundTarget];
|
|
2676
2677
|
if (!o)
|
|
2677
2678
|
return;
|
|
2678
|
-
const a = this.gl, n = this.getMeta(o), h =
|
|
2679
|
+
const a = this.gl, n = this.getMeta(o), h = Yi(n, i);
|
|
2679
2680
|
Object.assign(n, i);
|
|
2680
2681
|
const l = this._renderer.getBindPoint(n.target ?? this.boundTarget);
|
|
2681
2682
|
if (s !== void 0 && (s === null ? a.texImage2D(l, 0, a.RGBA, 1, 1, 0, a.RGBA, a.UNSIGNED_BYTE, null) : "pixels" in s ? a.texImage2D(l, 0, a.RGBA, s.width, s.height, 0, a.RGBA, a.UNSIGNED_BYTE, s.pixels) : a.texImage2D(l, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, s)), h.wrapMode && n.wrapMode) {
|
|
@@ -2732,7 +2733,7 @@ class Hi extends X {
|
|
|
2732
2733
|
super.reset(), this.boundLocation = 0, this.boundTarget = "texture_2d", this.boundTextures = [], this.maxUnits = 0;
|
|
2733
2734
|
}
|
|
2734
2735
|
}
|
|
2735
|
-
class
|
|
2736
|
+
class Zi extends X {
|
|
2736
2737
|
install(e) {
|
|
2737
2738
|
super.install(e), e.vertexArray = this;
|
|
2738
2739
|
}
|
|
@@ -2852,7 +2853,7 @@ class Yi extends X {
|
|
|
2852
2853
|
}, this.boundVertexArray = this.boundVertexArrayNull, this.boundVertexArrayObject = null;
|
|
2853
2854
|
}
|
|
2854
2855
|
}
|
|
2855
|
-
class
|
|
2856
|
+
class Ji extends X {
|
|
2856
2857
|
install(e) {
|
|
2857
2858
|
super.install(e), e.viewport = this;
|
|
2858
2859
|
}
|
|
@@ -2865,25 +2866,25 @@ class Ki extends X {
|
|
|
2865
2866
|
super.reset(), this.boundViewport = { x: 0, y: 0, width: 0, height: 0 };
|
|
2866
2867
|
}
|
|
2867
2868
|
}
|
|
2868
|
-
class
|
|
2869
|
+
class Qi extends Jt {
|
|
2869
2870
|
_modules = [
|
|
2870
|
-
new Hi(),
|
|
2871
|
-
new Fi(),
|
|
2872
|
-
new zi(),
|
|
2873
|
-
new Vi(),
|
|
2874
|
-
new Yi(),
|
|
2875
2871
|
new Ki(),
|
|
2876
|
-
new Ni(),
|
|
2877
2872
|
new $i(),
|
|
2878
|
-
new
|
|
2879
|
-
new
|
|
2880
|
-
new
|
|
2873
|
+
new Vi(),
|
|
2874
|
+
new ji(),
|
|
2875
|
+
new Zi(),
|
|
2876
|
+
new Ji(),
|
|
2877
|
+
new Li(),
|
|
2878
|
+
new Gi(),
|
|
2879
|
+
new Xi(),
|
|
2880
|
+
new Hi(),
|
|
2881
|
+
new Fi()
|
|
2881
2882
|
];
|
|
2882
2883
|
bindPoints = /* @__PURE__ */ new Map();
|
|
2883
|
-
constructor(e =
|
|
2884
|
+
constructor(e = wi(), t) {
|
|
2884
2885
|
if (super(), !e)
|
|
2885
2886
|
throw new Error("Failed to createHTMLCanvas");
|
|
2886
|
-
|
|
2887
|
+
yi(e) ? this._setupContext(e, t) : (this.gl = e, this.version = xi(this.gl) ? 2 : 1), this._setupBindPoints()._setupExtensions()._setupPolyfill(), this.gl.pixelStorei(this.gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !0), this._modules.forEach((s) => s.install(this)), this._modules.forEach((s) => s.onUpdateContext());
|
|
2887
2888
|
}
|
|
2888
2889
|
_setupContext(e, t) {
|
|
2889
2890
|
this.view = e;
|
|
@@ -2995,7 +2996,7 @@ class Zi extends Jt {
|
|
|
2995
2996
|
}
|
|
2996
2997
|
class Ee {
|
|
2997
2998
|
}
|
|
2998
|
-
class
|
|
2999
|
+
class eo extends Ee {
|
|
2999
3000
|
install(e) {
|
|
3000
3001
|
const t = async (s) => {
|
|
3001
3002
|
const { parseFont: i } = await import("modern-font");
|
|
@@ -3063,10 +3064,10 @@ class Qt extends fe {
|
|
|
3063
3064
|
}), e.vertexArray.unbind();
|
|
3064
3065
|
}
|
|
3065
3066
|
}
|
|
3066
|
-
var
|
|
3067
|
+
var to = Object.defineProperty, Qr = (r, e, t, s) => {
|
|
3067
3068
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3068
3069
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3069
|
-
return i &&
|
|
3070
|
+
return i && to(e, t, i), i;
|
|
3070
3071
|
};
|
|
3071
3072
|
class at extends fe {
|
|
3072
3073
|
needsUpload = !1;
|
|
@@ -3107,10 +3108,10 @@ Qr([
|
|
|
3107
3108
|
Qr([
|
|
3108
3109
|
u({ internal: !0, fallback: !1 })
|
|
3109
3110
|
], at.prototype, "dynamic");
|
|
3110
|
-
var
|
|
3111
|
+
var ro = Object.defineProperty, es = (r, e, t, s) => {
|
|
3111
3112
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3112
3113
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3113
|
-
return i &&
|
|
3114
|
+
return i && ro(e, t, i), i;
|
|
3114
3115
|
};
|
|
3115
3116
|
class ce extends fe {
|
|
3116
3117
|
needsUpload = !1;
|
|
@@ -3151,12 +3152,12 @@ es([
|
|
|
3151
3152
|
es([
|
|
3152
3153
|
u({ internal: !0, fallback: !1 })
|
|
3153
3154
|
], ce.prototype, "dynamic");
|
|
3154
|
-
var
|
|
3155
|
+
var so = Object.defineProperty, Ce = (r, e, t, s) => {
|
|
3155
3156
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3156
3157
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3157
|
-
return i &&
|
|
3158
|
+
return i && so(e, t, i), i;
|
|
3158
3159
|
};
|
|
3159
|
-
class
|
|
3160
|
+
class F extends fe {
|
|
3160
3161
|
needsUpload = !1;
|
|
3161
3162
|
constructor(e) {
|
|
3162
3163
|
super(), this.setProperties({
|
|
@@ -3184,30 +3185,30 @@ class z extends fe {
|
|
|
3184
3185
|
}
|
|
3185
3186
|
Ce([
|
|
3186
3187
|
u({ internal: !0 })
|
|
3187
|
-
],
|
|
3188
|
+
], F.prototype, "buffer");
|
|
3188
3189
|
Ce([
|
|
3189
3190
|
u({ fallback: 0 })
|
|
3190
|
-
],
|
|
3191
|
+
], F.prototype, "size");
|
|
3191
3192
|
Ce([
|
|
3192
3193
|
u({ fallback: !1 })
|
|
3193
|
-
],
|
|
3194
|
+
], F.prototype, "normalized");
|
|
3194
3195
|
Ce([
|
|
3195
3196
|
u({ fallback: "float" })
|
|
3196
|
-
],
|
|
3197
|
+
], F.prototype, "type");
|
|
3197
3198
|
Ce([
|
|
3198
3199
|
u()
|
|
3199
|
-
],
|
|
3200
|
+
], F.prototype, "stride");
|
|
3200
3201
|
Ce([
|
|
3201
3202
|
u()
|
|
3202
|
-
],
|
|
3203
|
+
], F.prototype, "offset");
|
|
3203
3204
|
Ce([
|
|
3204
3205
|
u()
|
|
3205
|
-
],
|
|
3206
|
-
class
|
|
3206
|
+
], F.prototype, "divisor");
|
|
3207
|
+
class Tl extends Qt {
|
|
3207
3208
|
constructor() {
|
|
3208
3209
|
super({
|
|
3209
3210
|
vertexAttributes: {
|
|
3210
|
-
position: new
|
|
3211
|
+
position: new F({
|
|
3211
3212
|
buffer: new ce({
|
|
3212
3213
|
data: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]),
|
|
3213
3214
|
dynamic: !1
|
|
@@ -3262,10 +3263,10 @@ ${t}`), e.program.create({ vert: t, frag: s });
|
|
|
3262
3263
|
});
|
|
3263
3264
|
}
|
|
3264
3265
|
}
|
|
3265
|
-
const
|
|
3266
|
-
function
|
|
3266
|
+
const io = /^uniform \w+ (.+?);\s*\/\/\s*=\s*([^;]+?)[\s;]*$/gm, oo = /vec(\d)\((.*)\)/;
|
|
3267
|
+
function ao(r) {
|
|
3267
3268
|
r = r.trim();
|
|
3268
|
-
const e = r.match(
|
|
3269
|
+
const e = r.match(oo);
|
|
3269
3270
|
if (e) {
|
|
3270
3271
|
const t = Array.from({ length: Number(e[1]) }, () => 0);
|
|
3271
3272
|
return e[2].split(",").forEach((s, i) => {
|
|
@@ -3321,10 +3322,10 @@ vec4 getToColor(vec2 uv) { return texture2D(to, uv); }` : ""}
|
|
|
3321
3322
|
${e}${t.transform ? `
|
|
3322
3323
|
void main(void) { gl_FragColor = transform(vUv); }` : t.transition ? `
|
|
3323
3324
|
void main(void) { gl_FragColor = transition(vUv); }` : ""}`;
|
|
3324
|
-
const s = e.matchAll(
|
|
3325
|
+
const s = e.matchAll(io);
|
|
3325
3326
|
for (const i of s)
|
|
3326
3327
|
i[1] && i[2] && i[1].split(",").forEach((o) => {
|
|
3327
|
-
this.uniforms.set(o.trim(),
|
|
3328
|
+
this.uniforms.set(o.trim(), ao(i[2]));
|
|
3328
3329
|
});
|
|
3329
3330
|
}
|
|
3330
3331
|
}
|
|
@@ -3371,7 +3372,7 @@ class b extends Qt {
|
|
|
3371
3372
|
constructor() {
|
|
3372
3373
|
super({
|
|
3373
3374
|
vertexAttributes: {
|
|
3374
|
-
position: new
|
|
3375
|
+
position: new F({
|
|
3375
3376
|
buffer: new ce({
|
|
3376
3377
|
data: new Float32Array([-1, -1, 1, -1, 1, 1, -1, 1]),
|
|
3377
3378
|
dynamic: !1
|
|
@@ -3380,7 +3381,7 @@ class b extends Qt {
|
|
|
3380
3381
|
normalized: !1,
|
|
3381
3382
|
type: "float"
|
|
3382
3383
|
}),
|
|
3383
|
-
uv: new
|
|
3384
|
+
uv: new F({
|
|
3384
3385
|
buffer: new ce({
|
|
3385
3386
|
data: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]),
|
|
3386
3387
|
dynamic: !1
|
|
@@ -3397,20 +3398,20 @@ class b extends Qt {
|
|
|
3397
3398
|
});
|
|
3398
3399
|
}
|
|
3399
3400
|
}
|
|
3400
|
-
class
|
|
3401
|
+
class El extends Qt {
|
|
3401
3402
|
positionBuffer;
|
|
3402
3403
|
uvBuffer;
|
|
3403
3404
|
constructor() {
|
|
3404
3405
|
const e = new ce({ data: new Float32Array(), dynamic: !0 }), t = new ce({ data: new Float32Array(), dynamic: !0 });
|
|
3405
3406
|
super({
|
|
3406
3407
|
vertexAttributes: {
|
|
3407
|
-
position: new
|
|
3408
|
+
position: new F({
|
|
3408
3409
|
buffer: e,
|
|
3409
3410
|
size: 2,
|
|
3410
3411
|
normalized: !1,
|
|
3411
3412
|
type: "float"
|
|
3412
3413
|
}),
|
|
3413
|
-
uv: new
|
|
3414
|
+
uv: new F({
|
|
3414
3415
|
buffer: t,
|
|
3415
3416
|
size: 2,
|
|
3416
3417
|
normalized: !1,
|
|
@@ -3424,10 +3425,10 @@ class Pl extends Qt {
|
|
|
3424
3425
|
}), this.positionBuffer = e, this.uvBuffer = t;
|
|
3425
3426
|
}
|
|
3426
3427
|
}
|
|
3427
|
-
var
|
|
3428
|
+
var no = Object.defineProperty, Ie = (r, e, t, s) => {
|
|
3428
3429
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3429
3430
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3430
|
-
return i &&
|
|
3431
|
+
return i && no(e, t, i), i;
|
|
3431
3432
|
};
|
|
3432
3433
|
class T extends fe {
|
|
3433
3434
|
static get EMPTY() {
|
|
@@ -3457,7 +3458,7 @@ class T extends fe {
|
|
|
3457
3458
|
return Math.round(this.height * this.pixelRatio);
|
|
3458
3459
|
}
|
|
3459
3460
|
constructor(e) {
|
|
3460
|
-
super(), this.source = e, this.
|
|
3461
|
+
super(), this.source = e, this.updateSize();
|
|
3461
3462
|
}
|
|
3462
3463
|
isValid() {
|
|
3463
3464
|
return !!(this.width && this.height);
|
|
@@ -3487,7 +3488,7 @@ class T extends fe {
|
|
|
3487
3488
|
this._updatePOT();
|
|
3488
3489
|
break;
|
|
3489
3490
|
case "source":
|
|
3490
|
-
this.
|
|
3491
|
+
this.updateSize();
|
|
3491
3492
|
break;
|
|
3492
3493
|
case "filterMode":
|
|
3493
3494
|
case "wrapMode":
|
|
@@ -3499,7 +3500,7 @@ class T extends fe {
|
|
|
3499
3500
|
_updatePOT() {
|
|
3500
3501
|
this._isPowerOfTwo = vr(this.realWidth) && vr(this.realHeight), this.requestUpload();
|
|
3501
3502
|
}
|
|
3502
|
-
|
|
3503
|
+
updateSize() {
|
|
3503
3504
|
const e = this.source;
|
|
3504
3505
|
"pixels" in e ? (this.width = e.width / this.pixelRatio, this.height = e.height / this.pixelRatio) : (this.width = Number(e.naturalWidth || e.videoWidth || e.width || 0) / this.pixelRatio, this.height = Number(e.naturalHeight || e.videoHeight || e.height || 0) / this.pixelRatio), this.requestUpload();
|
|
3505
3506
|
}
|
|
@@ -3523,7 +3524,7 @@ class T extends fe {
|
|
|
3523
3524
|
e.texture.unbind(this._glTexture(e));
|
|
3524
3525
|
}
|
|
3525
3526
|
destroy() {
|
|
3526
|
-
|
|
3527
|
+
pi && this.source instanceof ImageBitmap && this.source.close();
|
|
3527
3528
|
}
|
|
3528
3529
|
}
|
|
3529
3530
|
Ie([
|
|
@@ -3570,10 +3571,10 @@ class Gt extends fe {
|
|
|
3570
3571
|
});
|
|
3571
3572
|
}
|
|
3572
3573
|
}
|
|
3573
|
-
var
|
|
3574
|
+
var lo = Object.defineProperty, ho = (r, e, t, s) => {
|
|
3574
3575
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3575
3576
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3576
|
-
return i &&
|
|
3577
|
+
return i && lo(e, t, i), i;
|
|
3577
3578
|
};
|
|
3578
3579
|
class er extends T {
|
|
3579
3580
|
constructor(e = document.createElement("canvas")) {
|
|
@@ -3591,10 +3592,10 @@ class er extends T {
|
|
|
3591
3592
|
super._updateProperty(e, t, s);
|
|
3592
3593
|
}
|
|
3593
3594
|
}
|
|
3594
|
-
|
|
3595
|
+
ho([
|
|
3595
3596
|
u({ fallback: 2 })
|
|
3596
3597
|
], er.prototype, "pixelRatio");
|
|
3597
|
-
class
|
|
3598
|
+
class Cl extends T {
|
|
3598
3599
|
static _cached = /* @__PURE__ */ new Map();
|
|
3599
3600
|
static get(e) {
|
|
3600
3601
|
const t = new Z(e), s = t.toHex();
|
|
@@ -3616,7 +3617,7 @@ class Tl extends T {
|
|
|
3616
3617
|
}
|
|
3617
3618
|
class Ot extends T {
|
|
3618
3619
|
static test(e) {
|
|
3619
|
-
return
|
|
3620
|
+
return Fs(e);
|
|
3620
3621
|
}
|
|
3621
3622
|
static linearGradient(e, t, s) {
|
|
3622
3623
|
t = t || 1, s = s || 1;
|
|
@@ -3628,11 +3629,11 @@ class Ot extends T {
|
|
|
3628
3629
|
const { angle: a = 0, stops: n } = e, h = t, l = s, c = h / 2, d = l / 2, p = (a + 90) * Math.PI / 180, _ = Math.sin(p), f = -Math.cos(p), m = Math.abs(h * Math.sin(p)) + Math.abs(l * Math.cos(p)), g = c - _ * (m / 2), w = d - f * (m / 2), P = c + _ * (m / 2), R = d + f * (m / 2), A = o.createLinearGradient(g, w, P, R);
|
|
3629
3630
|
for (const V of n) A.addColorStop(V.offset, V.color);
|
|
3630
3631
|
o.fillStyle = A, o.fillRect(0, 0, h, l);
|
|
3631
|
-
const
|
|
3632
|
+
const z = o.getImageData(0, 0, i.width, i.height);
|
|
3632
3633
|
return {
|
|
3633
|
-
width:
|
|
3634
|
-
height:
|
|
3635
|
-
pixels: new Uint8Array(
|
|
3634
|
+
width: z.width,
|
|
3635
|
+
height: z.height,
|
|
3636
|
+
pixels: new Uint8Array(z.data.buffer)
|
|
3636
3637
|
};
|
|
3637
3638
|
}
|
|
3638
3639
|
constructor(e, t, s) {
|
|
@@ -3641,21 +3642,21 @@ class Ot extends T {
|
|
|
3641
3642
|
);
|
|
3642
3643
|
}
|
|
3643
3644
|
}
|
|
3644
|
-
function
|
|
3645
|
+
function co(r) {
|
|
3645
3646
|
return {
|
|
3646
3647
|
autoLoad: !!(r?.autoLoad ?? !0),
|
|
3647
3648
|
useBitmap: !!(r?.useBitmap ?? !0) && $r,
|
|
3648
3649
|
crossorigin: r?.crossorigin ?? null
|
|
3649
3650
|
};
|
|
3650
3651
|
}
|
|
3651
|
-
class
|
|
3652
|
+
class Sl extends T {
|
|
3652
3653
|
bitmap;
|
|
3653
3654
|
useBitmap;
|
|
3654
3655
|
preserveBitmap = !1;
|
|
3655
3656
|
_loadSource;
|
|
3656
3657
|
_loadBitmap;
|
|
3657
3658
|
constructor(e, t) {
|
|
3658
|
-
const s =
|
|
3659
|
+
const s = co(t);
|
|
3659
3660
|
super(e);
|
|
3660
3661
|
const i = e.src, o = i.includes(".svg") || i.startsWith("data:image/svg+xml");
|
|
3661
3662
|
this.useBitmap = s.useBitmap && !o, s.autoLoad && this.load();
|
|
@@ -3730,12 +3731,12 @@ class ts extends T {
|
|
|
3730
3731
|
super._updateProperty(e, t, s);
|
|
3731
3732
|
}
|
|
3732
3733
|
}
|
|
3733
|
-
var
|
|
3734
|
+
var uo = Object.defineProperty, rs = (r, e, t, s) => {
|
|
3734
3735
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3735
3736
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3736
|
-
return i &&
|
|
3737
|
+
return i && uo(e, t, i), i;
|
|
3737
3738
|
};
|
|
3738
|
-
function
|
|
3739
|
+
function po(r) {
|
|
3739
3740
|
return {
|
|
3740
3741
|
autoLoad: !!(r?.autoLoad ?? !0),
|
|
3741
3742
|
autoPlay: !!(r?.autoPlay ?? !1),
|
|
@@ -3779,11 +3780,11 @@ const tr = class ss extends T {
|
|
|
3779
3780
|
_resolve;
|
|
3780
3781
|
_reject;
|
|
3781
3782
|
constructor(e, t) {
|
|
3782
|
-
const s =
|
|
3783
|
-
if (!
|
|
3783
|
+
const s = po(t);
|
|
3784
|
+
if (!bi(e)) {
|
|
3784
3785
|
typeof e == "string" && (e = [e]);
|
|
3785
3786
|
const i = e[0].src || e[0], o = document.createElement("video");
|
|
3786
|
-
s.autoLoad && o.setAttribute("preload", "auto"), s.playsinline && (o.setAttribute("webkit-playsinline", ""), o.setAttribute("playsinline", "")), s.muted && (o.setAttribute("muted", ""), o.muted = !0), s.loop && o.setAttribute("loop", ""), s.autoPlay && o.setAttribute("autoplay", ""),
|
|
3787
|
+
s.autoLoad && o.setAttribute("preload", "auto"), s.playsinline && (o.setAttribute("webkit-playsinline", ""), o.setAttribute("playsinline", "")), s.muted && (o.setAttribute("muted", ""), o.muted = !0), s.loop && o.setAttribute("loop", ""), s.autoPlay && o.setAttribute("autoplay", ""), Ti(o, i, s.crossorigin);
|
|
3787
3788
|
for (let a = 0; a < e.length; ++a) {
|
|
3788
3789
|
let { src: n, mime: h } = e[a];
|
|
3789
3790
|
if (n = n || e[a], n.startsWith("data:"))
|
|
@@ -3819,7 +3820,7 @@ const tr = class ss extends T {
|
|
|
3819
3820
|
const e = this.source;
|
|
3820
3821
|
e.removeEventListener("canplay", this._onCanPlay), e.removeEventListener("canplaythrough", this._onCanPlay);
|
|
3821
3822
|
const t = this.isValid();
|
|
3822
|
-
this._nextTime = 0, this.
|
|
3823
|
+
this._nextTime = 0, this.updateSize(), this.requestUpload(), this._nextTime = 0, !t && this._resolve && (this._resolve(this), this._sourceLoad = void 0, this._resolve = void 0, this._reject = void 0), this.isPlaying ? this._onPlayStart() : this._autoPlay && e.play();
|
|
3823
3824
|
};
|
|
3824
3825
|
_onError = (e) => {
|
|
3825
3826
|
this.source.removeEventListener("error", this._onError, !0), this.emit("error", e), this._reject && (this._reject(e), this._reject = void 0, this._resolve = void 0);
|
|
@@ -3861,11 +3862,11 @@ rs([
|
|
|
3861
3862
|
rs([
|
|
3862
3863
|
u({ internal: !0, fallback: 0 })
|
|
3863
3864
|
], tr.prototype, "fps");
|
|
3864
|
-
let
|
|
3865
|
+
let fo = tr;
|
|
3865
3866
|
class wr extends ts {
|
|
3866
3867
|
//
|
|
3867
3868
|
}
|
|
3868
|
-
class
|
|
3869
|
+
class _o extends bt {
|
|
3869
3870
|
fillStyle;
|
|
3870
3871
|
strokeStyle;
|
|
3871
3872
|
strokeAlignment;
|
|
@@ -3933,12 +3934,12 @@ class po extends bt {
|
|
|
3933
3934
|
break;
|
|
3934
3935
|
}
|
|
3935
3936
|
this._draws.push({
|
|
3937
|
+
uvTransform: this.uvTransform,
|
|
3938
|
+
vertTransform: this.vertTransform,
|
|
3936
3939
|
...e,
|
|
3937
3940
|
...this._parseDrawStyle(t),
|
|
3938
3941
|
type: "fill",
|
|
3939
|
-
path: new bt(this)
|
|
3940
|
-
uvTransform: this.uvTransform,
|
|
3941
|
-
vertTransform: this.vertTransform
|
|
3942
|
+
path: new bt(this)
|
|
3942
3943
|
}), this.resetStatus();
|
|
3943
3944
|
}
|
|
3944
3945
|
copy(e) {
|
|
@@ -3975,9 +3976,7 @@ class po extends bt {
|
|
|
3975
3976
|
lineStyle: i.lineStyle,
|
|
3976
3977
|
flipAlignment: !1,
|
|
3977
3978
|
closed: !0
|
|
3978
|
-
}), i.texture && this.buildUvs(0, o, n, i.texture, i.uvTransform)
|
|
3979
|
-
const h = i.path.getBoundingBox();
|
|
3980
|
-
e.push({
|
|
3979
|
+
}), i.texture && this.buildUvs(0, o, n, i.texture, i.uvTransform), e.push({
|
|
3981
3980
|
vertices: new Float32Array(o),
|
|
3982
3981
|
indices: new Float32Array(a),
|
|
3983
3982
|
uvs: new Float32Array(n),
|
|
@@ -3986,14 +3985,13 @@ class po extends bt {
|
|
|
3986
3985
|
type: i.type,
|
|
3987
3986
|
disableWrapMode: i.disableWrapMode,
|
|
3988
3987
|
uvTransform: i.uvTransform,
|
|
3989
|
-
vertTransform: i.vertTransform
|
|
3990
|
-
dimension: new Float32Array([h.width, h.height])
|
|
3988
|
+
vertTransform: i.vertTransform
|
|
3991
3989
|
});
|
|
3992
3990
|
}
|
|
3993
3991
|
return e;
|
|
3994
3992
|
}
|
|
3995
3993
|
}
|
|
3996
|
-
class
|
|
3994
|
+
class mo {
|
|
3997
3995
|
front = [];
|
|
3998
3996
|
default = [];
|
|
3999
3997
|
back = [];
|
|
@@ -4041,7 +4039,7 @@ class fo {
|
|
|
4041
4039
|
return [...this.default];
|
|
4042
4040
|
}
|
|
4043
4041
|
}
|
|
4044
|
-
class
|
|
4042
|
+
class go extends pe {
|
|
4045
4043
|
constructor(e) {
|
|
4046
4044
|
return super(), this.parent = e, new Proxy(this, {
|
|
4047
4045
|
get: (t, s, i) => Reflect.has(t, s) || String(s).startsWith("_") ? Reflect.get(t, s, i) : t.getProperty(String(s)),
|
|
@@ -4061,18 +4059,18 @@ class _o extends pe {
|
|
|
4061
4059
|
return { internalKey: `____${e}` };
|
|
4062
4060
|
}
|
|
4063
4061
|
}
|
|
4064
|
-
var
|
|
4065
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4062
|
+
var vo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, ae = (r, e, t, s) => {
|
|
4063
|
+
for (var i = s > 1 ? void 0 : s ? bo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4066
4064
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4067
|
-
return s && i &&
|
|
4065
|
+
return s && i && vo(e, t, i), i;
|
|
4068
4066
|
};
|
|
4069
4067
|
const Pr = {};
|
|
4070
|
-
function
|
|
4068
|
+
function yo(r) {
|
|
4071
4069
|
let e = Pr[r] ?? 0;
|
|
4072
4070
|
return e++, Pr[r] = e, e;
|
|
4073
4071
|
}
|
|
4074
4072
|
let M = class extends pe {
|
|
4075
|
-
_meta = new
|
|
4073
|
+
_meta = new go(this);
|
|
4076
4074
|
get meta() {
|
|
4077
4075
|
return this._meta;
|
|
4078
4076
|
}
|
|
@@ -4082,7 +4080,7 @@ let M = class extends pe {
|
|
|
4082
4080
|
_readyed = !1;
|
|
4083
4081
|
constructor(r, e = []) {
|
|
4084
4082
|
super(), this._onTreeEnter = this._onTreeEnter.bind(this), this._onTreeExit = this._onTreeExit.bind(this), this._onParented = this._onParented.bind(this), this._onUnparented = this._onUnparented.bind(this), this._onReady = this._onReady.bind(this), this._onProcess = this._onProcess.bind(this), this.setProperties({
|
|
4085
|
-
name: `${this.is}:${
|
|
4083
|
+
name: `${this.is}:${yo(this.is)}`,
|
|
4086
4084
|
...r
|
|
4087
4085
|
}).append(e), this.on("treeEnter", this._onTreeEnter).on("treeExit", this._onTreeExit).on("parented", this._onParented).on("unparented", this._onUnparented).on("ready", this._onReady).on("process", this._onProcess);
|
|
4088
4086
|
}
|
|
@@ -4158,7 +4156,7 @@ let M = class extends pe {
|
|
|
4158
4156
|
return this;
|
|
4159
4157
|
}
|
|
4160
4158
|
/** Children */
|
|
4161
|
-
_children = new
|
|
4159
|
+
_children = new mo();
|
|
4162
4160
|
get children() {
|
|
4163
4161
|
return this._children.default;
|
|
4164
4162
|
}
|
|
@@ -4436,10 +4434,10 @@ let M = class extends pe {
|
|
|
4436
4434
|
}
|
|
4437
4435
|
};
|
|
4438
4436
|
ae([
|
|
4439
|
-
u({ fallback:
|
|
4437
|
+
u({ fallback: zr() })
|
|
4440
4438
|
], M.prototype, "id", 2);
|
|
4441
4439
|
ae([
|
|
4442
|
-
u({ fallback:
|
|
4440
|
+
u({ fallback: zr() })
|
|
4443
4441
|
], M.prototype, "name", 2);
|
|
4444
4442
|
ae([
|
|
4445
4443
|
u({ internal: !0, fallback: "inherit" })
|
|
@@ -4462,10 +4460,10 @@ ae([
|
|
|
4462
4460
|
M = ae([
|
|
4463
4461
|
v("Node")
|
|
4464
4462
|
], M);
|
|
4465
|
-
var
|
|
4466
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4463
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, Be = (r, e, t, s) => {
|
|
4464
|
+
for (var i = s > 1 ? void 0 : s ? wo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4467
4465
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4468
|
-
return s && i &&
|
|
4466
|
+
return s && i && xo(e, t, i), i;
|
|
4469
4467
|
};
|
|
4470
4468
|
let G = class extends M {
|
|
4471
4469
|
constructor(r, e = []) {
|
|
@@ -4532,10 +4530,10 @@ Be([
|
|
|
4532
4530
|
G = Be([
|
|
4533
4531
|
v("TimelineNode")
|
|
4534
4532
|
], G);
|
|
4535
|
-
var
|
|
4536
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4533
|
+
var Po = Object.defineProperty, To = Object.getOwnPropertyDescriptor, nt = (r, e, t, s) => {
|
|
4534
|
+
for (var i = s > 1 ? void 0 : s ? To(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4537
4535
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4538
|
-
return s && i &&
|
|
4536
|
+
return s && i && Po(e, t, i), i;
|
|
4539
4537
|
};
|
|
4540
4538
|
let ye = class extends G {
|
|
4541
4539
|
_parentGlobalVisible;
|
|
@@ -4550,7 +4548,7 @@ let ye = class extends G {
|
|
|
4550
4548
|
}
|
|
4551
4549
|
_modulate = new Z(4294967295);
|
|
4552
4550
|
// Batch render
|
|
4553
|
-
context = new
|
|
4551
|
+
context = new _o();
|
|
4554
4552
|
_resetContext = !0;
|
|
4555
4553
|
_redrawing = !0;
|
|
4556
4554
|
_relayouting = !1;
|
|
@@ -4659,16 +4657,16 @@ nt([
|
|
|
4659
4657
|
ye = nt([
|
|
4660
4658
|
v("CanvasItem")
|
|
4661
4659
|
], ye);
|
|
4662
|
-
var
|
|
4663
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4660
|
+
var Eo = Object.defineProperty, Co = Object.getOwnPropertyDescriptor, Ne = (r, e, t, s) => {
|
|
4661
|
+
for (var i = s > 1 ? void 0 : s ? Co(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4664
4662
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4665
|
-
return s && i &&
|
|
4663
|
+
return s && i && Eo(e, t, i), i;
|
|
4666
4664
|
};
|
|
4667
4665
|
let j = class extends M {
|
|
4668
4666
|
constructor(r = !1) {
|
|
4669
4667
|
super(), this.flipY = r, this.projection.flipY(r);
|
|
4670
4668
|
}
|
|
4671
|
-
projection = new
|
|
4669
|
+
projection = new Ii();
|
|
4672
4670
|
canvasTransform = new O();
|
|
4673
4671
|
_framebufferIndex = 0;
|
|
4674
4672
|
_framebuffers = [
|
|
@@ -4782,10 +4780,10 @@ Ne([
|
|
|
4782
4780
|
j = Ne([
|
|
4783
4781
|
v("Viewport")
|
|
4784
4782
|
], j);
|
|
4785
|
-
var
|
|
4786
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4783
|
+
var So = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, lt = (r, e, t, s) => {
|
|
4784
|
+
for (var i = s > 1 ? void 0 : s ? Ao(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4787
4785
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4788
|
-
return s && i &&
|
|
4786
|
+
return s && i && So(e, t, i), i;
|
|
4789
4787
|
};
|
|
4790
4788
|
let y = class extends G {
|
|
4791
4789
|
material;
|
|
@@ -4961,7 +4959,7 @@ lt([
|
|
|
4961
4959
|
y = lt([
|
|
4962
4960
|
v("Effect")
|
|
4963
4961
|
], y);
|
|
4964
|
-
class
|
|
4962
|
+
class Ro {
|
|
4965
4963
|
currentCall;
|
|
4966
4964
|
calls = [];
|
|
4967
4965
|
createCall(e) {
|
|
@@ -4984,10 +4982,10 @@ class So {
|
|
|
4984
4982
|
}), this.calls = [];
|
|
4985
4983
|
}
|
|
4986
4984
|
}
|
|
4987
|
-
var
|
|
4988
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4985
|
+
var Mo = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, ze = (r, e, t, s) => {
|
|
4986
|
+
for (var i = s > 1 ? void 0 : s ? Oo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4989
4987
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4990
|
-
return s && i &&
|
|
4988
|
+
return s && i && Mo(e, t, i), i;
|
|
4991
4989
|
};
|
|
4992
4990
|
let ie = class extends M {
|
|
4993
4991
|
static from(r, e = !1) {
|
|
@@ -5020,28 +5018,28 @@ let ie = class extends M {
|
|
|
5020
5018
|
super._process(r), this.paused || this.addTime(r);
|
|
5021
5019
|
}
|
|
5022
5020
|
};
|
|
5023
|
-
|
|
5021
|
+
ze([
|
|
5024
5022
|
u({ fallback: 0 })
|
|
5025
5023
|
], ie.prototype, "startTime", 2);
|
|
5026
|
-
|
|
5024
|
+
ze([
|
|
5027
5025
|
u({ fallback: 0 })
|
|
5028
5026
|
], ie.prototype, "currentTime", 2);
|
|
5029
|
-
|
|
5027
|
+
ze([
|
|
5030
5028
|
u({ fallback: Number.MAX_SAFE_INTEGER })
|
|
5031
5029
|
], ie.prototype, "endTime", 2);
|
|
5032
|
-
|
|
5030
|
+
ze([
|
|
5033
5031
|
u({ fallback: !1 })
|
|
5034
5032
|
], ie.prototype, "loop", 2);
|
|
5035
|
-
|
|
5033
|
+
ze([
|
|
5036
5034
|
u({ fallback: !1 })
|
|
5037
5035
|
], ie.prototype, "paused", 2);
|
|
5038
|
-
ie =
|
|
5036
|
+
ie = ze([
|
|
5039
5037
|
v("Timeline")
|
|
5040
5038
|
], ie);
|
|
5041
|
-
var
|
|
5042
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5039
|
+
var ko = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, is = (r, e, t, s) => {
|
|
5040
|
+
for (var i = s > 1 ? void 0 : s ? Uo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5043
5041
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5044
|
-
return s && i &&
|
|
5042
|
+
return s && i && ko(e, t, i), i;
|
|
5045
5043
|
};
|
|
5046
5044
|
let wt = class extends j {
|
|
5047
5045
|
};
|
|
@@ -5051,14 +5049,14 @@ is([
|
|
|
5051
5049
|
wt = is([
|
|
5052
5050
|
v("Window")
|
|
5053
5051
|
], wt);
|
|
5054
|
-
var
|
|
5052
|
+
var Do = Object.defineProperty, ht = (r, e, t, s) => {
|
|
5055
5053
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5056
5054
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
5057
|
-
return i &&
|
|
5055
|
+
return i && Do(e, t, i), i;
|
|
5058
5056
|
};
|
|
5059
|
-
class
|
|
5060
|
-
input = new
|
|
5061
|
-
renderStack = new
|
|
5057
|
+
class Le extends Zt {
|
|
5058
|
+
input = new Ri();
|
|
5059
|
+
renderStack = new Ro();
|
|
5062
5060
|
root = new wt(!0).setTree(this);
|
|
5063
5061
|
_backgroundColor = new Z();
|
|
5064
5062
|
_currentViewport;
|
|
@@ -5108,21 +5106,21 @@ class Fe extends Zt {
|
|
|
5108
5106
|
}
|
|
5109
5107
|
ht([
|
|
5110
5108
|
u()
|
|
5111
|
-
],
|
|
5109
|
+
], Le.prototype, "backgroundColor");
|
|
5112
5110
|
ht([
|
|
5113
5111
|
u({ internal: !0, fallback: !1 })
|
|
5114
|
-
],
|
|
5112
|
+
], Le.prototype, "debug");
|
|
5115
5113
|
ht([
|
|
5116
5114
|
u({ internal: !0, fallback: !1 })
|
|
5117
|
-
],
|
|
5115
|
+
], Le.prototype, "processPaused");
|
|
5118
5116
|
ht([
|
|
5119
|
-
u({ internal: !0, default: () =>
|
|
5120
|
-
],
|
|
5117
|
+
u({ internal: !0, default: () => Js })
|
|
5118
|
+
], Le.prototype, "fonts");
|
|
5121
5119
|
ht([
|
|
5122
5120
|
u({ internal: !0, default: () => new ie() })
|
|
5123
|
-
],
|
|
5124
|
-
var
|
|
5125
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5121
|
+
], Le.prototype, "timeline");
|
|
5122
|
+
var Io = Object.getOwnPropertyDescriptor, Bo = (r, e, t, s) => {
|
|
5123
|
+
for (var i = s > 1 ? void 0 : s ? Io(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5126
5124
|
(a = r[o]) && (i = a(i) || i);
|
|
5127
5125
|
return i;
|
|
5128
5126
|
};
|
|
@@ -5131,17 +5129,17 @@ let Me = class extends y {
|
|
|
5131
5129
|
super(), this.setProperties(r).append(e);
|
|
5132
5130
|
}
|
|
5133
5131
|
};
|
|
5134
|
-
Me =
|
|
5132
|
+
Me = Bo([
|
|
5135
5133
|
v("Transition", {
|
|
5136
5134
|
effectMode: "transition",
|
|
5137
5135
|
processMode: "pausable",
|
|
5138
5136
|
duration: 2e3
|
|
5139
5137
|
})
|
|
5140
5138
|
], Me);
|
|
5141
|
-
var
|
|
5142
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5139
|
+
var No = Object.defineProperty, zo = Object.getOwnPropertyDescriptor, rr = (r, e, t, s) => {
|
|
5140
|
+
for (var i = s > 1 ? void 0 : s ? zo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5143
5141
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5144
|
-
return s && i &&
|
|
5142
|
+
return s && i && No(e, t, i), i;
|
|
5145
5143
|
};
|
|
5146
5144
|
let xe = class extends ye {
|
|
5147
5145
|
position = new S().on("update", () => this.updateGlobalTransform());
|
|
@@ -5225,10 +5223,10 @@ rr([
|
|
|
5225
5223
|
xe = rr([
|
|
5226
5224
|
v("Node2D")
|
|
5227
5225
|
], xe);
|
|
5228
|
-
var
|
|
5229
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5226
|
+
var Lo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, kt = (r, e, t, s) => {
|
|
5227
|
+
for (var i = s > 1 ? void 0 : s ? Fo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5230
5228
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5231
|
-
return s && i &&
|
|
5229
|
+
return s && i && Lo(e, t, i), i;
|
|
5232
5230
|
};
|
|
5233
5231
|
let Ke = class extends xe {
|
|
5234
5232
|
_screenOffset = { x: 0, y: 0 };
|
|
@@ -5373,7 +5371,7 @@ const Tr = {
|
|
|
5373
5371
|
saturate: 1,
|
|
5374
5372
|
sepia: 0
|
|
5375
5373
|
};
|
|
5376
|
-
function
|
|
5374
|
+
function Al(r) {
|
|
5377
5375
|
const e = new Yr();
|
|
5378
5376
|
if (r === "none")
|
|
5379
5377
|
return e;
|
|
@@ -5412,7 +5410,7 @@ function Cl(r) {
|
|
|
5412
5410
|
}
|
|
5413
5411
|
return e;
|
|
5414
5412
|
}
|
|
5415
|
-
function
|
|
5413
|
+
function $o(r, e, t, s = new O()) {
|
|
5416
5414
|
return r = !r || r === "none" ? "" : r, At(r, { width: e, height: t }).reverse().forEach(({ name: i, args: o }) => {
|
|
5417
5415
|
const a = o.map((n) => n.normalizedIntValue);
|
|
5418
5416
|
switch (i) {
|
|
@@ -5482,7 +5480,7 @@ function Fo(r, e, t, s = new O()) {
|
|
|
5482
5480
|
}
|
|
5483
5481
|
}), s;
|
|
5484
5482
|
}
|
|
5485
|
-
function
|
|
5483
|
+
function Vo(r) {
|
|
5486
5484
|
const [e, t = e] = r.split(" ");
|
|
5487
5485
|
return [e, t].map((s) => {
|
|
5488
5486
|
switch (s = s.trim(), s) {
|
|
@@ -5499,11 +5497,11 @@ function zo(r) {
|
|
|
5499
5497
|
}
|
|
5500
5498
|
});
|
|
5501
5499
|
}
|
|
5502
|
-
var os = Object.defineProperty,
|
|
5503
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5500
|
+
var os = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, jo = (r, e, t) => e in r ? os(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ne = (r, e, t, s) => {
|
|
5501
|
+
for (var i = s > 1 ? void 0 : s ? Go(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5504
5502
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5505
5503
|
return s && i && os(e, t, i), i;
|
|
5506
|
-
},
|
|
5504
|
+
}, Wo = (r, e, t) => jo(r, e + "", t);
|
|
5507
5505
|
let $ = class extends y {
|
|
5508
5506
|
constructor(r, e = []) {
|
|
5509
5507
|
super(), this.setProperties(r).append(e);
|
|
@@ -5524,7 +5522,7 @@ let $ = class extends y {
|
|
|
5524
5522
|
});
|
|
5525
5523
|
}
|
|
5526
5524
|
};
|
|
5527
|
-
|
|
5525
|
+
Wo($, "material", new x({
|
|
5528
5526
|
vert: `precision mediump float;
|
|
5529
5527
|
attribute vec2 position;
|
|
5530
5528
|
attribute vec2 uv;
|
|
@@ -5586,11 +5584,11 @@ ne([
|
|
|
5586
5584
|
$ = ne([
|
|
5587
5585
|
v("ColorAdjustEffect")
|
|
5588
5586
|
], $);
|
|
5589
|
-
var as = Object.defineProperty,
|
|
5590
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5587
|
+
var as = Object.defineProperty, qo = Object.getOwnPropertyDescriptor, Xo = (r, e, t) => e in r ? as(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ns = (r, e, t, s) => {
|
|
5588
|
+
for (var i = s > 1 ? void 0 : s ? qo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5591
5589
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5592
5590
|
return s && i && as(e, t, i), i;
|
|
5593
|
-
},
|
|
5591
|
+
}, Ho = (r, e, t) => Xo(r, e + "", t);
|
|
5594
5592
|
let Ze = class extends y {
|
|
5595
5593
|
_colorMatrix = new Yr();
|
|
5596
5594
|
constructor(r, e = []) {
|
|
@@ -5637,7 +5635,7 @@ let Ze = class extends y {
|
|
|
5637
5635
|
});
|
|
5638
5636
|
}
|
|
5639
5637
|
};
|
|
5640
|
-
|
|
5638
|
+
Ho(Ze, "material", new x({
|
|
5641
5639
|
vert: `precision mediump float;
|
|
5642
5640
|
attribute vec2 position;
|
|
5643
5641
|
attribute vec2 uv;
|
|
@@ -5670,11 +5668,11 @@ ns([
|
|
|
5670
5668
|
Ze = ns([
|
|
5671
5669
|
v("ColorFilterEffect")
|
|
5672
5670
|
], Ze);
|
|
5673
|
-
var ls = Object.defineProperty,
|
|
5674
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5671
|
+
var ls = Object.defineProperty, Yo = Object.getOwnPropertyDescriptor, Ko = (r, e, t) => e in r ? ls(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, sr = (r, e, t, s) => {
|
|
5672
|
+
for (var i = s > 1 ? void 0 : s ? Yo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5675
5673
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5676
5674
|
return s && i && ls(e, t, i), i;
|
|
5677
|
-
},
|
|
5675
|
+
}, Zo = (r, e, t) => Ko(r, e + "", t);
|
|
5678
5676
|
const He = 50;
|
|
5679
5677
|
let Oe = class extends y {
|
|
5680
5678
|
_color = new Z();
|
|
@@ -5697,7 +5695,7 @@ let Oe = class extends y {
|
|
|
5697
5695
|
});
|
|
5698
5696
|
}
|
|
5699
5697
|
};
|
|
5700
|
-
|
|
5698
|
+
Zo(Oe, "material", new x({
|
|
5701
5699
|
vert: `precision mediump float;
|
|
5702
5700
|
attribute vec2 position;
|
|
5703
5701
|
attribute vec2 uv;
|
|
@@ -5753,11 +5751,11 @@ sr([
|
|
|
5753
5751
|
Oe = sr([
|
|
5754
5752
|
v("ColorOverlayEffect")
|
|
5755
5753
|
], Oe);
|
|
5756
|
-
var hs = Object.defineProperty,
|
|
5757
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5754
|
+
var hs = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, Qo = (r, e, t) => e in r ? hs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ir = (r, e, t, s) => {
|
|
5755
|
+
for (var i = s > 1 ? void 0 : s ? Jo(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5758
5756
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5759
5757
|
return s && i && hs(e, t, i), i;
|
|
5760
|
-
},
|
|
5758
|
+
}, ea = (r, e, t) => Qo(r, e + "", t);
|
|
5761
5759
|
let ke = class extends y {
|
|
5762
5760
|
_color = new Z();
|
|
5763
5761
|
constructor(r, e = []) {
|
|
@@ -5778,7 +5776,7 @@ let ke = class extends y {
|
|
|
5778
5776
|
});
|
|
5779
5777
|
}
|
|
5780
5778
|
};
|
|
5781
|
-
|
|
5779
|
+
ea(ke, "material", new x({
|
|
5782
5780
|
vert: `precision mediump float;
|
|
5783
5781
|
attribute vec2 position;
|
|
5784
5782
|
attribute vec2 uv;
|
|
@@ -5820,11 +5818,11 @@ ir([
|
|
|
5820
5818
|
ke = ir([
|
|
5821
5819
|
v("ColorRemoveEffect")
|
|
5822
5820
|
], ke);
|
|
5823
|
-
var cs = Object.defineProperty,
|
|
5824
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5821
|
+
var cs = Object.defineProperty, ta = Object.getOwnPropertyDescriptor, ra = (r, e, t) => e in r ? cs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, or = (r, e, t, s) => {
|
|
5822
|
+
for (var i = s > 1 ? void 0 : s ? ta(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5825
5823
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5826
5824
|
return s && i && cs(e, t, i), i;
|
|
5827
|
-
},
|
|
5825
|
+
}, sa = (r, e, t) => ra(r, e + "", t);
|
|
5828
5826
|
const Xe = 50;
|
|
5829
5827
|
let Ue = class extends y {
|
|
5830
5828
|
_color = new Z();
|
|
@@ -5859,7 +5857,7 @@ let Ue = class extends y {
|
|
|
5859
5857
|
});
|
|
5860
5858
|
}
|
|
5861
5859
|
};
|
|
5862
|
-
|
|
5860
|
+
sa(Ue, "material", new x({
|
|
5863
5861
|
vert: `precision mediump float;
|
|
5864
5862
|
attribute vec2 position;
|
|
5865
5863
|
attribute vec2 uv;
|
|
@@ -5908,11 +5906,11 @@ or([
|
|
|
5908
5906
|
Ue = or([
|
|
5909
5907
|
v("ColorReplaceEffect")
|
|
5910
5908
|
], Ue);
|
|
5911
|
-
var us = Object.defineProperty,
|
|
5912
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5909
|
+
var us = Object.defineProperty, ia = Object.getOwnPropertyDescriptor, oa = (r, e, t) => e in r ? us(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ut = (r, e, t, s) => {
|
|
5910
|
+
for (var i = s > 1 ? void 0 : s ? ia(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5913
5911
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5914
5912
|
return s && i && us(e, t, i), i;
|
|
5915
|
-
},
|
|
5913
|
+
}, aa = (r, e, t) => oa(r, e + "", t);
|
|
5916
5914
|
let we = class extends y {
|
|
5917
5915
|
constructor(r, e = []) {
|
|
5918
5916
|
super(), this.setProperties(r).append(e);
|
|
@@ -5936,7 +5934,7 @@ let we = class extends y {
|
|
|
5936
5934
|
});
|
|
5937
5935
|
}
|
|
5938
5936
|
};
|
|
5939
|
-
|
|
5937
|
+
aa(we, "material", new x({
|
|
5940
5938
|
vert: `precision mediump float;
|
|
5941
5939
|
attribute vec2 position;
|
|
5942
5940
|
attribute vec2 uv;
|
|
@@ -6013,11 +6011,11 @@ Ut([
|
|
|
6013
6011
|
we = Ut([
|
|
6014
6012
|
v("DrawboardEffect")
|
|
6015
6013
|
], we);
|
|
6016
|
-
var ds = Object.defineProperty,
|
|
6017
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6014
|
+
var ds = Object.defineProperty, na = Object.getOwnPropertyDescriptor, la = (r, e, t) => e in r ? ds(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ar = (r, e, t, s) => {
|
|
6015
|
+
for (var i = s > 1 ? void 0 : s ? na(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6018
6016
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6019
6017
|
return s && i && ds(e, t, i), i;
|
|
6020
|
-
}, ps = (r, e, t) =>
|
|
6018
|
+
}, ps = (r, e, t) => la(r, typeof e != "symbol" ? e + "" : e, t);
|
|
6021
6019
|
const fs = `varying vec2 vUv[9];
|
|
6022
6020
|
uniform sampler2D sampler;
|
|
6023
6021
|
|
|
@@ -6124,11 +6122,11 @@ ar([
|
|
|
6124
6122
|
oe = ar([
|
|
6125
6123
|
v("GaussianBlurEffect")
|
|
6126
6124
|
], oe);
|
|
6127
|
-
var _s = Object.defineProperty,
|
|
6128
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6125
|
+
var _s = Object.defineProperty, ha = Object.getOwnPropertyDescriptor, ca = (r, e, t) => e in r ? _s(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Fe = (r, e, t, s) => {
|
|
6126
|
+
for (var i = s > 1 ? void 0 : s ? ha(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6129
6127
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6130
6128
|
return s && i && _s(e, t, i), i;
|
|
6131
|
-
},
|
|
6129
|
+
}, ua = (r, e, t) => ca(r, e + "", t);
|
|
6132
6130
|
let J = class extends y {
|
|
6133
6131
|
blurEffect = new oe();
|
|
6134
6132
|
viewport3 = new j();
|
|
@@ -6154,7 +6152,7 @@ let J = class extends y {
|
|
|
6154
6152
|
});
|
|
6155
6153
|
}
|
|
6156
6154
|
};
|
|
6157
|
-
|
|
6155
|
+
ua(J, "material", new x({
|
|
6158
6156
|
vert: `precision mediump float;
|
|
6159
6157
|
attribute vec2 position;
|
|
6160
6158
|
attribute vec2 uv;
|
|
@@ -6178,29 +6176,29 @@ void main(void) {
|
|
|
6178
6176
|
gl_FragColor = sample;
|
|
6179
6177
|
}`
|
|
6180
6178
|
}));
|
|
6181
|
-
|
|
6179
|
+
Fe([
|
|
6182
6180
|
u({ fallback: "#000000FF" })
|
|
6183
6181
|
], J.prototype, "color", 2);
|
|
6184
|
-
|
|
6182
|
+
Fe([
|
|
6185
6183
|
u({ fallback: 4 })
|
|
6186
6184
|
], J.prototype, "blur", 2);
|
|
6187
|
-
|
|
6185
|
+
Fe([
|
|
6188
6186
|
u({ fallback: 4 })
|
|
6189
6187
|
], J.prototype, "offsetX", 2);
|
|
6190
|
-
|
|
6188
|
+
Fe([
|
|
6191
6189
|
u({ fallback: 4 })
|
|
6192
6190
|
], J.prototype, "offsetY", 2);
|
|
6193
|
-
|
|
6191
|
+
Fe([
|
|
6194
6192
|
u({ fallback: !1 })
|
|
6195
6193
|
], J.prototype, "shadowOnly", 2);
|
|
6196
|
-
J =
|
|
6194
|
+
J = Fe([
|
|
6197
6195
|
v("DropShadowEffect")
|
|
6198
6196
|
], J);
|
|
6199
|
-
var ms = Object.defineProperty,
|
|
6200
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6197
|
+
var ms = Object.defineProperty, da = Object.getOwnPropertyDescriptor, pa = (r, e, t) => e in r ? ms(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, gs = (r, e, t, s) => {
|
|
6198
|
+
for (var i = s > 1 ? void 0 : s ? da(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6201
6199
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6202
6200
|
return s && i && ms(e, t, i), i;
|
|
6203
|
-
},
|
|
6201
|
+
}, fa = (r, e, t) => pa(r, e + "", t);
|
|
6204
6202
|
let Je = class extends y {
|
|
6205
6203
|
constructor(r, e = []) {
|
|
6206
6204
|
super(), this.setProperties(r).append(e);
|
|
@@ -6215,7 +6213,7 @@ let Je = class extends y {
|
|
|
6215
6213
|
});
|
|
6216
6214
|
}
|
|
6217
6215
|
};
|
|
6218
|
-
|
|
6216
|
+
fa(Je, "material", new x({
|
|
6219
6217
|
vert: `precision mediump float;
|
|
6220
6218
|
attribute vec2 position;
|
|
6221
6219
|
attribute vec2 uv;
|
|
@@ -6247,11 +6245,11 @@ gs([
|
|
|
6247
6245
|
Je = gs([
|
|
6248
6246
|
v("EmbossEffect")
|
|
6249
6247
|
], Je);
|
|
6250
|
-
var vs = Object.defineProperty,
|
|
6251
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6248
|
+
var vs = Object.defineProperty, _a = Object.getOwnPropertyDescriptor, ma = (r, e, t) => e in r ? vs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Q = (r, e, t, s) => {
|
|
6249
|
+
for (var i = s > 1 ? void 0 : s ? _a(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6252
6250
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6253
6251
|
return s && i && vs(e, t, i), i;
|
|
6254
|
-
},
|
|
6252
|
+
}, ga = (r, e, t) => ma(r, e + "", t);
|
|
6255
6253
|
let N = class extends y {
|
|
6256
6254
|
_canvas;
|
|
6257
6255
|
_texture;
|
|
@@ -6295,7 +6293,7 @@ let N = class extends y {
|
|
|
6295
6293
|
});
|
|
6296
6294
|
}
|
|
6297
6295
|
};
|
|
6298
|
-
|
|
6296
|
+
ga(N, "material", new x({
|
|
6299
6297
|
vert: `precision mediump float;
|
|
6300
6298
|
attribute vec2 position;
|
|
6301
6299
|
attribute vec2 uv;
|
|
@@ -6430,12 +6428,12 @@ Q([
|
|
|
6430
6428
|
N = Q([
|
|
6431
6429
|
v("GlitchEffect")
|
|
6432
6430
|
], N);
|
|
6433
|
-
var bs = Object.defineProperty,
|
|
6434
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6431
|
+
var bs = Object.defineProperty, va = Object.getOwnPropertyDescriptor, ba = (r, e, t) => e in r ? bs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, _e = (r, e, t, s) => {
|
|
6432
|
+
for (var i = s > 1 ? void 0 : s ? va(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6435
6433
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6436
6434
|
return s && i && bs(e, t, i), i;
|
|
6437
|
-
},
|
|
6438
|
-
const
|
|
6435
|
+
}, ya = (r, e, t) => ba(r, e + "", t);
|
|
6436
|
+
const xa = `vec3 mod289(vec3 x)
|
|
6439
6437
|
{
|
|
6440
6438
|
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
6441
6439
|
}
|
|
@@ -6554,7 +6552,7 @@ let W = class extends y {
|
|
|
6554
6552
|
});
|
|
6555
6553
|
}
|
|
6556
6554
|
};
|
|
6557
|
-
|
|
6555
|
+
ya(W, "material", new x({
|
|
6558
6556
|
vert: `precision mediump float;
|
|
6559
6557
|
attribute vec2 position;
|
|
6560
6558
|
attribute vec2 uv;
|
|
@@ -6574,7 +6572,7 @@ uniform float uTime;
|
|
|
6574
6572
|
uniform vec3 uRay;
|
|
6575
6573
|
uniform vec4 uInputSize;
|
|
6576
6574
|
|
|
6577
|
-
${
|
|
6575
|
+
${xa}
|
|
6578
6576
|
|
|
6579
6577
|
void main(void) {
|
|
6580
6578
|
bool uParallel = uParallel > 0.5;
|
|
@@ -6631,12 +6629,12 @@ _e([
|
|
|
6631
6629
|
W = _e([
|
|
6632
6630
|
v("GodrayEffect")
|
|
6633
6631
|
], W);
|
|
6634
|
-
var
|
|
6635
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6632
|
+
var wa = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, Dt = (r, e, t, s) => {
|
|
6633
|
+
for (var i = s > 1 ? void 0 : s ? Pa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6636
6634
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6637
|
-
return s && i &&
|
|
6635
|
+
return s && i && wa(e, t, i), i;
|
|
6638
6636
|
};
|
|
6639
|
-
const
|
|
6637
|
+
const Ta = `varying vec2 vUv;
|
|
6640
6638
|
uniform sampler2D sampler;
|
|
6641
6639
|
uniform vec2 uOffset;
|
|
6642
6640
|
|
|
@@ -6648,7 +6646,7 @@ void main(void) {
|
|
|
6648
6646
|
color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y - uOffset.y));
|
|
6649
6647
|
color *= 0.25;
|
|
6650
6648
|
gl_FragColor = color;
|
|
6651
|
-
}`,
|
|
6649
|
+
}`, Ea = `precision highp float;
|
|
6652
6650
|
varying vec2 vUv;
|
|
6653
6651
|
uniform sampler2D sampler;
|
|
6654
6652
|
uniform vec2 uOffset;
|
|
@@ -6674,7 +6672,7 @@ void main() {
|
|
|
6674
6672
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
6675
6673
|
vUv = uv;
|
|
6676
6674
|
}`,
|
|
6677
|
-
frag: r?.clamp ?
|
|
6675
|
+
frag: r?.clamp ? Ea : Ta
|
|
6678
6676
|
}), this.setProperties(r).append(e), this._generateKernels();
|
|
6679
6677
|
}
|
|
6680
6678
|
_updateProperty(r, e, t) {
|
|
@@ -6725,11 +6723,11 @@ Dt([
|
|
|
6725
6723
|
Qe = Dt([
|
|
6726
6724
|
v("KawaseBlurEffect")
|
|
6727
6725
|
], Qe);
|
|
6728
|
-
var ys = Object.defineProperty,
|
|
6729
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6726
|
+
var ys = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, Sa = (r, e, t) => e in r ? ys(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, nr = (r, e, t, s) => {
|
|
6727
|
+
for (var i = s > 1 ? void 0 : s ? Ca(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6730
6728
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6731
6729
|
return s && i && ys(e, t, i), i;
|
|
6732
|
-
},
|
|
6730
|
+
}, Aa = (r, e, t) => Sa(r, e + "", t);
|
|
6733
6731
|
let Pe = class extends y {
|
|
6734
6732
|
constructor(r, e = []) {
|
|
6735
6733
|
super(), this.setProperties(r).append(e);
|
|
@@ -6758,7 +6756,7 @@ let Pe = class extends y {
|
|
|
6758
6756
|
});
|
|
6759
6757
|
}
|
|
6760
6758
|
};
|
|
6761
|
-
|
|
6759
|
+
Aa(Pe, "material", new x({
|
|
6762
6760
|
vert: `precision mediump float;
|
|
6763
6761
|
attribute vec2 position;
|
|
6764
6762
|
attribute vec2 uv;
|
|
@@ -6814,12 +6812,12 @@ nr([
|
|
|
6814
6812
|
Pe = nr([
|
|
6815
6813
|
v("MaskEffect")
|
|
6816
6814
|
], Pe);
|
|
6817
|
-
var xs = Object.defineProperty,
|
|
6818
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6815
|
+
var xs = Object.defineProperty, Ra = Object.getOwnPropertyDescriptor, Ma = (r, e, t) => e in r ? xs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, me = (r, e, t, s) => {
|
|
6816
|
+
for (var i = s > 1 ? void 0 : s ? Ra(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6819
6817
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6820
6818
|
return s && i && xs(e, t, i), i;
|
|
6821
|
-
}, ws = (r, e, t) =>
|
|
6822
|
-
const
|
|
6819
|
+
}, ws = (r, e, t) => Ma(r, typeof e != "symbol" ? e + "" : e, t);
|
|
6820
|
+
const Oa = `precision highp float;
|
|
6823
6821
|
varying vec2 vUv;
|
|
6824
6822
|
uniform sampler2D sampler;
|
|
6825
6823
|
uniform vec2 uThickness;
|
|
@@ -6874,7 +6872,7 @@ void main() {
|
|
|
6874
6872
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
6875
6873
|
vUv = uv;
|
|
6876
6874
|
}`,
|
|
6877
|
-
frag:
|
|
6875
|
+
frag: Oa.replace(
|
|
6878
6876
|
/\{ANGLE_STEP\}/,
|
|
6879
6877
|
U.getAngleStep(this.quality).toFixed(7)
|
|
6880
6878
|
)
|
|
@@ -6923,11 +6921,11 @@ me([
|
|
|
6923
6921
|
U = me([
|
|
6924
6922
|
v("OutlineEffect")
|
|
6925
6923
|
], U);
|
|
6926
|
-
var Ps = Object.defineProperty,
|
|
6927
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6924
|
+
var Ps = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, Ua = (r, e, t) => e in r ? Ps(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ts = (r, e, t, s) => {
|
|
6925
|
+
for (var i = s > 1 ? void 0 : s ? ka(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6928
6926
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6929
6927
|
return s && i && Ps(e, t, i), i;
|
|
6930
|
-
},
|
|
6928
|
+
}, Da = (r, e, t) => Ua(r, e + "", t);
|
|
6931
6929
|
let et = class extends y {
|
|
6932
6930
|
constructor(r, e = []) {
|
|
6933
6931
|
super(), this.setProperties(r).append(e);
|
|
@@ -6942,7 +6940,7 @@ let et = class extends y {
|
|
|
6942
6940
|
});
|
|
6943
6941
|
}
|
|
6944
6942
|
};
|
|
6945
|
-
|
|
6943
|
+
Da(et, "material", new x({
|
|
6946
6944
|
vert: `precision mediump float;
|
|
6947
6945
|
attribute vec2 position;
|
|
6948
6946
|
attribute vec2 uv;
|
|
@@ -6985,11 +6983,11 @@ Ts([
|
|
|
6985
6983
|
et = Ts([
|
|
6986
6984
|
v("PixelateEffect")
|
|
6987
6985
|
], et);
|
|
6988
|
-
var Es = Object.defineProperty,
|
|
6989
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6986
|
+
var Es = Object.defineProperty, Ia = Object.getOwnPropertyDescriptor, Ba = (r, e, t) => e in r ? Es(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ct = (r, e, t, s) => {
|
|
6987
|
+
for (var i = s > 1 ? void 0 : s ? Ia(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6990
6988
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6991
6989
|
return s && i && Es(e, t, i), i;
|
|
6992
|
-
},
|
|
6990
|
+
}, Na = (r, e, t) => Ba(r, e + "", t);
|
|
6993
6991
|
let ue = class extends y {
|
|
6994
6992
|
constructor(r, e = []) {
|
|
6995
6993
|
super(), this.setProperties(r).append(e);
|
|
@@ -7011,7 +7009,7 @@ let ue = class extends y {
|
|
|
7011
7009
|
});
|
|
7012
7010
|
}
|
|
7013
7011
|
};
|
|
7014
|
-
|
|
7012
|
+
Na(ue, "material", new x({
|
|
7015
7013
|
vert: `attribute vec2 position;
|
|
7016
7014
|
attribute vec2 uv;
|
|
7017
7015
|
varying vec2 vUv;
|
|
@@ -7149,10 +7147,10 @@ function Pt(r, e) {
|
|
|
7149
7147
|
}
|
|
7150
7148
|
return { disableWrapMode: t, uvTransform: n };
|
|
7151
7149
|
}
|
|
7152
|
-
var
|
|
7150
|
+
var za = Object.defineProperty, H = (r, e, t, s) => {
|
|
7153
7151
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7154
7152
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7155
|
-
return i &&
|
|
7153
|
+
return i && za(e, t, i), i;
|
|
7156
7154
|
};
|
|
7157
7155
|
class D extends pe {
|
|
7158
7156
|
constructor(e) {
|
|
@@ -7165,7 +7163,7 @@ class D extends pe {
|
|
|
7165
7163
|
}
|
|
7166
7164
|
setProperties(e) {
|
|
7167
7165
|
return this._setProperties(
|
|
7168
|
-
|
|
7166
|
+
L(e) ? void 0 : $s(e)
|
|
7169
7167
|
);
|
|
7170
7168
|
}
|
|
7171
7169
|
_updateProperty(e, t, s) {
|
|
@@ -7192,7 +7190,7 @@ class D extends pe {
|
|
|
7192
7190
|
this.linearGradient ?? this.radialGradient,
|
|
7193
7191
|
this.parent.size.width,
|
|
7194
7192
|
this.parent.size.height
|
|
7195
|
-
) :
|
|
7193
|
+
) : L(this.image) || (this.parent.tree?.log(`load image ${this.image}`), this.image.split("?")[0].endsWith(".gif") ? this.animatedTexture = await q.gif.load(this.image) : this.texture = await q.texture.load(this.image));
|
|
7196
7194
|
}
|
|
7197
7195
|
async _updateTexture() {
|
|
7198
7196
|
await this.loadTexture(), this.parent.requestRedraw();
|
|
@@ -7201,15 +7199,14 @@ class D extends pe {
|
|
|
7201
7199
|
return !!(this.enabled && (this.texture || this.animatedTexture || this.color));
|
|
7202
7200
|
}
|
|
7203
7201
|
draw() {
|
|
7204
|
-
const e = this.parent.context, { uvTransform:
|
|
7202
|
+
const { width: e, height: t } = this.parent.size, s = this.parent.context, { uvTransform: i, disableWrapMode: o } = Pt(
|
|
7205
7203
|
this,
|
|
7206
|
-
{
|
|
7207
|
-
width: this.parent.size.width,
|
|
7208
|
-
height: this.parent.size.height
|
|
7209
|
-
}
|
|
7204
|
+
{ width: e, height: t }
|
|
7210
7205
|
);
|
|
7211
|
-
|
|
7212
|
-
|
|
7206
|
+
s.fillStyle = this.animatedTexture?.currentFrame.texture ?? this.texture ?? this.color, s.fill({
|
|
7207
|
+
uvTransform: i,
|
|
7208
|
+
disableWrapMode: o,
|
|
7209
|
+
size: new Float32Array([e, t])
|
|
7213
7210
|
});
|
|
7214
7211
|
}
|
|
7215
7212
|
_getFrameCurrentTime() {
|
|
@@ -7267,15 +7264,15 @@ H([
|
|
|
7267
7264
|
H([
|
|
7268
7265
|
u()
|
|
7269
7266
|
], D.prototype, "opacity");
|
|
7270
|
-
var
|
|
7267
|
+
var La = Object.defineProperty, Fa = (r, e, t, s) => {
|
|
7271
7268
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7272
7269
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7273
|
-
return i &&
|
|
7270
|
+
return i && La(e, t, i), i;
|
|
7274
7271
|
};
|
|
7275
7272
|
class Cs extends D {
|
|
7276
7273
|
setProperties(e) {
|
|
7277
7274
|
return super._setProperties(
|
|
7278
|
-
|
|
7275
|
+
L(e) ? void 0 : Vs(e)
|
|
7279
7276
|
);
|
|
7280
7277
|
}
|
|
7281
7278
|
_updateProperty(e, t, s) {
|
|
@@ -7286,18 +7283,18 @@ class Cs extends D {
|
|
|
7286
7283
|
}
|
|
7287
7284
|
}
|
|
7288
7285
|
}
|
|
7289
|
-
|
|
7286
|
+
Fa([
|
|
7290
7287
|
u()
|
|
7291
7288
|
], Cs.prototype, "fillWithShape");
|
|
7292
|
-
var
|
|
7289
|
+
var $a = Object.defineProperty, Va = (r, e, t, s) => {
|
|
7293
7290
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7294
7291
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7295
|
-
return i &&
|
|
7292
|
+
return i && $a(e, t, i), i;
|
|
7296
7293
|
};
|
|
7297
7294
|
class Ss extends D {
|
|
7298
7295
|
setProperties(e) {
|
|
7299
7296
|
return super._setProperties(
|
|
7300
|
-
|
|
7297
|
+
L(e) ? void 0 : Gs(e)
|
|
7301
7298
|
);
|
|
7302
7299
|
}
|
|
7303
7300
|
_updateProperty(e, t, s) {
|
|
@@ -7308,18 +7305,18 @@ class Ss extends D {
|
|
|
7308
7305
|
}
|
|
7309
7306
|
}
|
|
7310
7307
|
}
|
|
7311
|
-
|
|
7308
|
+
Va([
|
|
7312
7309
|
u()
|
|
7313
7310
|
], Ss.prototype, "fillWithShape");
|
|
7314
|
-
var
|
|
7311
|
+
var Ga = Object.defineProperty, ut = (r, e, t, s) => {
|
|
7315
7312
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7316
7313
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7317
|
-
return i &&
|
|
7314
|
+
return i && Ga(e, t, i), i;
|
|
7318
7315
|
};
|
|
7319
7316
|
class $e extends D {
|
|
7320
7317
|
setProperties(e) {
|
|
7321
7318
|
return super._setProperties(
|
|
7322
|
-
|
|
7319
|
+
L(e) ? void 0 : js(e)
|
|
7323
7320
|
);
|
|
7324
7321
|
}
|
|
7325
7322
|
_updateProperty(e, t, s) {
|
|
@@ -7344,7 +7341,10 @@ class $e extends D {
|
|
|
7344
7341
|
height: this.parent.size.height
|
|
7345
7342
|
}
|
|
7346
7343
|
);
|
|
7347
|
-
e.lineWidth = this.width || 1, e.
|
|
7344
|
+
e.lineWidth = this.width || 1, e.strokeStyle = this.texture ?? this.color, e.lineCap = this.lineCap, e.lineJoin = this.lineJoin, e.stroke({
|
|
7345
|
+
uvTransform: t,
|
|
7346
|
+
disableWrapMode: s
|
|
7347
|
+
});
|
|
7348
7348
|
}
|
|
7349
7349
|
}
|
|
7350
7350
|
ut([
|
|
@@ -7362,10 +7362,10 @@ ut([
|
|
|
7362
7362
|
ut([
|
|
7363
7363
|
u({ fallback: "miter" })
|
|
7364
7364
|
], $e.prototype, "lineJoin");
|
|
7365
|
-
var
|
|
7365
|
+
var ja = Object.defineProperty, dt = (r, e, t, s) => {
|
|
7366
7366
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7367
7367
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7368
|
-
return i &&
|
|
7368
|
+
return i && ja(e, t, i), i;
|
|
7369
7369
|
};
|
|
7370
7370
|
class Ve extends pe {
|
|
7371
7371
|
constructor(e) {
|
|
@@ -7373,7 +7373,7 @@ class Ve extends pe {
|
|
|
7373
7373
|
}
|
|
7374
7374
|
setProperties(e) {
|
|
7375
7375
|
return super.setProperties(
|
|
7376
|
-
|
|
7376
|
+
L(e) ? void 0 : Ws(e)
|
|
7377
7377
|
);
|
|
7378
7378
|
}
|
|
7379
7379
|
_updateProperty(e, t, s) {
|
|
@@ -7407,19 +7407,19 @@ dt([
|
|
|
7407
7407
|
dt([
|
|
7408
7408
|
u({ fallback: 0 })
|
|
7409
7409
|
], Ve.prototype, "offsetX");
|
|
7410
|
-
var
|
|
7410
|
+
var Wa = Object.defineProperty, pt = (r, e, t, s) => {
|
|
7411
7411
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7412
7412
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7413
|
-
return i &&
|
|
7413
|
+
return i && Wa(e, t, i), i;
|
|
7414
7414
|
};
|
|
7415
7415
|
class Ge extends pe {
|
|
7416
7416
|
constructor(e) {
|
|
7417
7417
|
super(), this.parent = e, this._updatePath2DSet();
|
|
7418
7418
|
}
|
|
7419
|
-
_path2DSet = new
|
|
7419
|
+
_path2DSet = new ti();
|
|
7420
7420
|
setProperties(e) {
|
|
7421
7421
|
return super.setProperties(
|
|
7422
|
-
|
|
7422
|
+
L(e) ? void 0 : qs(e)
|
|
7423
7423
|
);
|
|
7424
7424
|
}
|
|
7425
7425
|
_updateProperty(e, t, s) {
|
|
@@ -7435,8 +7435,8 @@ class Ge extends pe {
|
|
|
7435
7435
|
_updatePath2DSet() {
|
|
7436
7436
|
let e;
|
|
7437
7437
|
if (this.svg) {
|
|
7438
|
-
const a =
|
|
7439
|
-
this._path2DSet =
|
|
7438
|
+
const a = ri(this.svg);
|
|
7439
|
+
this._path2DSet = si(a), e = this._path2DSet.viewBox;
|
|
7440
7440
|
} else
|
|
7441
7441
|
this.paths?.forEach((a, n) => {
|
|
7442
7442
|
const { data: h, ...l } = a, c = new bt();
|
|
@@ -7485,26 +7485,26 @@ class tt extends fe {
|
|
|
7485
7485
|
super(), this.setProperties(e);
|
|
7486
7486
|
}
|
|
7487
7487
|
}
|
|
7488
|
-
const Er =
|
|
7488
|
+
const Er = Xs();
|
|
7489
7489
|
for (const r in Er) {
|
|
7490
7490
|
const e = Er[r];
|
|
7491
7491
|
Ht(tt, r, { fallback: e });
|
|
7492
7492
|
}
|
|
7493
|
-
var
|
|
7493
|
+
var qa = Object.defineProperty, le = (r, e, t, s) => {
|
|
7494
7494
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7495
7495
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7496
|
-
return i &&
|
|
7496
|
+
return i && qa(e, t, i), i;
|
|
7497
7497
|
};
|
|
7498
7498
|
class ee extends pe {
|
|
7499
7499
|
constructor(e) {
|
|
7500
|
-
super(), this.parent = e, this.base = new
|
|
7500
|
+
super(), this.parent = e, this.base = new ii(), this.base.setPropertyAccessor(this);
|
|
7501
7501
|
}
|
|
7502
7502
|
base;
|
|
7503
7503
|
_texture = new er();
|
|
7504
7504
|
_textureMap = /* @__PURE__ */ new Map();
|
|
7505
7505
|
setProperties(e) {
|
|
7506
7506
|
return super.setProperties(
|
|
7507
|
-
|
|
7507
|
+
L(e) ? void 0 : Hs(e)
|
|
7508
7508
|
);
|
|
7509
7509
|
}
|
|
7510
7510
|
_updateProperty(e, t, s) {
|
|
@@ -7525,7 +7525,10 @@ class ee extends pe {
|
|
|
7525
7525
|
}
|
|
7526
7526
|
}
|
|
7527
7527
|
update() {
|
|
7528
|
-
this.base.fonts = this.base.fonts ?? this.parent.tree?.fonts, this.base.update(), this.useTextureDraw() && (this._texture.width = Math.round(this.base.boundingBox.width), this._texture.height = Math.round(this.base.boundingBox.height), this.base.render({
|
|
7528
|
+
this.base.fonts = this.base.fonts ?? this.parent.tree?.fonts, this.base.update(), this.useTextureDraw() && (this._texture.width = Math.round(this.base.boundingBox.width), this._texture.height = Math.round(this.base.boundingBox.height), this.base.render({
|
|
7529
|
+
view: this._texture.source,
|
|
7530
|
+
pixelRatio: this._texture.pixelRatio
|
|
7531
|
+
}), this._texture.requestUpload()), this.parent.requestRedraw();
|
|
7529
7532
|
}
|
|
7530
7533
|
_updateTextureMap() {
|
|
7531
7534
|
this._textureMap.clear();
|
|
@@ -7534,17 +7537,17 @@ class ee extends pe {
|
|
|
7534
7537
|
const i = [];
|
|
7535
7538
|
if (t.fragments.forEach((o, a) => {
|
|
7536
7539
|
if (o.characters.length) {
|
|
7537
|
-
const n =
|
|
7540
|
+
const n = Ft.from(
|
|
7538
7541
|
...o.characters.map((h) => h.compatibleGlyphBox)
|
|
7539
7542
|
);
|
|
7540
7543
|
this._updateTexture(`${s}.${a}.fill`, o.fill, n), this._updateTexture(`${s}.${a}.outline`, o.outline, n), i.push(n);
|
|
7541
7544
|
}
|
|
7542
7545
|
}), i.length) {
|
|
7543
|
-
const o =
|
|
7546
|
+
const o = Ft.from(...i);
|
|
7544
7547
|
this._updateTexture(`${s}.fill`, t.fill, o), this._updateTexture(`${s}.outline`, t.outline, o), e.push(o);
|
|
7545
7548
|
}
|
|
7546
7549
|
}), e.length) {
|
|
7547
|
-
const t =
|
|
7550
|
+
const t = Ft.from(...e);
|
|
7548
7551
|
this._updateTexture("fill", this.fill, t), this._updateTexture("outline", this.outline, t);
|
|
7549
7552
|
}
|
|
7550
7553
|
}
|
|
@@ -7559,10 +7562,10 @@ class ee extends pe {
|
|
|
7559
7562
|
e.linearGradient ?? e.radialGradient,
|
|
7560
7563
|
t.width,
|
|
7561
7564
|
t.height
|
|
7562
|
-
) :
|
|
7565
|
+
) : L(e.image) ? void 0 : (this.parent.tree?.log(`load image ${e.image}`), await q.texture.load(e.image));
|
|
7563
7566
|
}
|
|
7564
7567
|
setContent(e) {
|
|
7565
|
-
this.content =
|
|
7568
|
+
this.content = Ys(e);
|
|
7566
7569
|
}
|
|
7567
7570
|
measure() {
|
|
7568
7571
|
return this.update(), this.base.measure();
|
|
@@ -7585,9 +7588,9 @@ class ee extends pe {
|
|
|
7585
7588
|
this.base.pathSets.forEach((t) => {
|
|
7586
7589
|
t.paths.forEach((s) => {
|
|
7587
7590
|
const i = s.getMeta();
|
|
7588
|
-
if (i instanceof
|
|
7591
|
+
if (i instanceof oi) {
|
|
7589
7592
|
const o = i.parent.index, a = i.parent.parent.index;
|
|
7590
|
-
if (s.style.fill && !
|
|
7593
|
+
if (s.style.fill && !L(s.style.fill))
|
|
7591
7594
|
if (typeof s.style.fill == "object") {
|
|
7592
7595
|
const n = s.style.fill, h = this._textureMap.get(`${a}.${o}.fill`) ?? this._textureMap.get(`${a}.fill`) ?? this._textureMap.get("fill");
|
|
7593
7596
|
if (n.enabled !== !1 && (h || n.color)) {
|
|
@@ -7598,11 +7601,17 @@ class ee extends pe {
|
|
|
7598
7601
|
height: this.parent.size.height
|
|
7599
7602
|
}
|
|
7600
7603
|
);
|
|
7601
|
-
e.addPath(s), e.style = { ...s.style }, e.
|
|
7604
|
+
e.addPath(s), e.style = { ...s.style }, e.fillStyle = h?.texture ?? n.color, e.fill({
|
|
7605
|
+
uvTransform: l,
|
|
7606
|
+
vertTransform: this._createVertTransform(),
|
|
7607
|
+
disableWrapMode: c
|
|
7608
|
+
});
|
|
7602
7609
|
}
|
|
7603
7610
|
} else
|
|
7604
|
-
e.addPath(s), e.style = { ...s.style }, e.
|
|
7605
|
-
|
|
7611
|
+
e.addPath(s), e.style = { ...s.style }, e.fill({
|
|
7612
|
+
vertTransform: this._createVertTransform()
|
|
7613
|
+
});
|
|
7614
|
+
if (s.style.stroke && !L(s.style.stroke))
|
|
7606
7615
|
if (typeof s.style.stroke == "object") {
|
|
7607
7616
|
const n = s.style.stroke, h = this._textureMap.get(`${a}.${o}.outline`) ?? this._textureMap.get(`${a}.outline`) ?? this._textureMap.get("outline");
|
|
7608
7617
|
if (n.enabled !== !1 && (h || n.color) && (n.width === void 0 || n.width)) {
|
|
@@ -7613,18 +7622,29 @@ class ee extends pe {
|
|
|
7613
7622
|
height: this.parent.size.height
|
|
7614
7623
|
}
|
|
7615
7624
|
);
|
|
7616
|
-
e.addPath(s), e.style = { ...s.style }, e.lineWidth = n.width || 1, e.
|
|
7625
|
+
e.addPath(s), e.style = { ...s.style }, e.lineWidth = n.width || 1, e.strokeStyle = h?.texture ?? n.color, e.lineCap = n.lineCap, e.lineJoin = n.lineJoin, e.stroke({
|
|
7626
|
+
uvTransform: l,
|
|
7627
|
+
vertTransform: this._createVertTransform(),
|
|
7628
|
+
disableWrapMode: c
|
|
7629
|
+
});
|
|
7617
7630
|
}
|
|
7618
7631
|
} else
|
|
7619
|
-
e.addPath(s), e.style = { ...s.style }, e.
|
|
7632
|
+
e.addPath(s), e.style = { ...s.style }, e.stroke({
|
|
7633
|
+
vertTransform: this._createVertTransform()
|
|
7634
|
+
});
|
|
7620
7635
|
} else
|
|
7621
|
-
e.addPath(s), e.style = { ...s.style }, e.
|
|
7636
|
+
e.addPath(s), e.style = { ...s.style }, e.fill({
|
|
7637
|
+
vertTransform: this._createVertTransform()
|
|
7638
|
+
});
|
|
7622
7639
|
});
|
|
7623
7640
|
});
|
|
7624
7641
|
}
|
|
7625
7642
|
_textureDraw(e) {
|
|
7626
7643
|
const { left: t = 0, top: s = 0, width: i, height: o } = this.base.boundingBox;
|
|
7627
|
-
e.fillStyle = this._texture, e.
|
|
7644
|
+
e.fillStyle = this._texture, e.rect(t, s, i, o), e.fill({
|
|
7645
|
+
uvTransform: new O().translate(-t, -s).scale(1 / i, 1 / o),
|
|
7646
|
+
vertTransform: this._createVertTransform()
|
|
7647
|
+
});
|
|
7628
7648
|
}
|
|
7629
7649
|
draw() {
|
|
7630
7650
|
const e = this.parent.context;
|
|
@@ -7658,12 +7678,12 @@ le([
|
|
|
7658
7678
|
le([
|
|
7659
7679
|
u({ fallback: "auto" })
|
|
7660
7680
|
], ee.prototype, "drawMode");
|
|
7661
|
-
var
|
|
7662
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7681
|
+
var Xa = Object.getOwnPropertyDescriptor, Ha = (r, e, t, s) => {
|
|
7682
|
+
for (var i = s > 1 ? void 0 : s ? Xa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7663
7683
|
(a = r[o]) && (i = a(i) || i);
|
|
7664
7684
|
return i;
|
|
7665
7685
|
};
|
|
7666
|
-
const
|
|
7686
|
+
const Ya = new Set(Object.keys(Zs())), Ka = new Set(Object.keys(Ks()));
|
|
7667
7687
|
let rt = class extends xe {
|
|
7668
7688
|
size = new S().on("update", () => {
|
|
7669
7689
|
this.onUpdateStyleProperty("transform", this.style.transform, void 0), this.onUpdateStyleProperty("transformOrigin", this.style.transformOrigin, void 0), this.updateGlobalTransform(), this.requestRedraw();
|
|
@@ -7757,7 +7777,7 @@ let rt = class extends xe {
|
|
|
7757
7777
|
_updateStyleProperty(r, e, t) {
|
|
7758
7778
|
switch (r) {
|
|
7759
7779
|
case "rotate":
|
|
7760
|
-
this.rotation = e *
|
|
7780
|
+
this.rotation = e * Ui;
|
|
7761
7781
|
break;
|
|
7762
7782
|
case "scaleX":
|
|
7763
7783
|
this.scale.x = e, this.text.isValid() && (e ^ t) < 0 && this.requestRedraw();
|
|
@@ -7772,7 +7792,7 @@ let rt = class extends xe {
|
|
|
7772
7792
|
this.skew.y = e;
|
|
7773
7793
|
break;
|
|
7774
7794
|
case "transform":
|
|
7775
|
-
|
|
7795
|
+
$o(
|
|
7776
7796
|
e ?? "",
|
|
7777
7797
|
this.size.width,
|
|
7778
7798
|
this.size.height,
|
|
@@ -7780,7 +7800,7 @@ let rt = class extends xe {
|
|
|
7780
7800
|
), this.updateGlobalTransform();
|
|
7781
7801
|
break;
|
|
7782
7802
|
case "transformOrigin": {
|
|
7783
|
-
const s =
|
|
7803
|
+
const s = Vo(e ?? "");
|
|
7784
7804
|
this.pivot.set(
|
|
7785
7805
|
s[0] * this.size.width,
|
|
7786
7806
|
s[1] * this.size.height
|
|
@@ -7821,14 +7841,14 @@ let rt = class extends xe {
|
|
|
7821
7841
|
this._overflowHidden = e === "hidden";
|
|
7822
7842
|
break;
|
|
7823
7843
|
case "pointerEvents":
|
|
7824
|
-
this._allowPointerEvents = !
|
|
7844
|
+
this._allowPointerEvents = !L(e);
|
|
7825
7845
|
break;
|
|
7826
7846
|
case "borderRadius":
|
|
7827
7847
|
default:
|
|
7828
7848
|
this.requestRedraw();
|
|
7829
7849
|
break;
|
|
7830
7850
|
}
|
|
7831
|
-
(
|
|
7851
|
+
(Ka.has(r) || Ya.has(r)) && this.text.isValid() && this.text.update();
|
|
7832
7852
|
}
|
|
7833
7853
|
_process(r) {
|
|
7834
7854
|
this.foreground.updateFrameIndex(), this.fill.updateFrameIndex(), this.outline.updateFrameIndex(), this.background.updateFrameIndex(), super._process(r);
|
|
@@ -7846,12 +7866,6 @@ let rt = class extends xe {
|
|
|
7846
7866
|
updateGlobalTransform() {
|
|
7847
7867
|
super.updateGlobalTransform(), this._updateMask();
|
|
7848
7868
|
}
|
|
7849
|
-
_relayout(r) {
|
|
7850
|
-
return super._relayout(r).map((e) => ({
|
|
7851
|
-
...e,
|
|
7852
|
-
dimension: this.size.toFloat32Array()
|
|
7853
|
-
}));
|
|
7854
|
-
}
|
|
7855
7869
|
getRect() {
|
|
7856
7870
|
return this.getGlobalAabb();
|
|
7857
7871
|
}
|
|
@@ -7986,7 +8000,7 @@ let rt = class extends xe {
|
|
|
7986
8000
|
});
|
|
7987
8001
|
}
|
|
7988
8002
|
};
|
|
7989
|
-
rt =
|
|
8003
|
+
rt = Ha([
|
|
7990
8004
|
v("BaseElement2D")
|
|
7991
8005
|
], rt);
|
|
7992
8006
|
class As extends tt {
|
|
@@ -8002,13 +8016,13 @@ const Cr = {
|
|
|
8002
8016
|
};
|
|
8003
8017
|
for (const r in Cr)
|
|
8004
8018
|
Ht(As, r, { fallback: Cr[r] });
|
|
8005
|
-
class
|
|
8019
|
+
class Za extends tt {
|
|
8006
8020
|
constructor(e) {
|
|
8007
8021
|
super(), this.setProperties(e);
|
|
8008
8022
|
}
|
|
8009
8023
|
}
|
|
8010
|
-
var
|
|
8011
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8024
|
+
var Ja = Object.getOwnPropertyDescriptor, Qa = (r, e, t, s) => {
|
|
8025
|
+
for (var i = s > 1 ? void 0 : s ? Ja(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8012
8026
|
(a = r[o]) && (i = a(i) || i);
|
|
8013
8027
|
return i;
|
|
8014
8028
|
};
|
|
@@ -8048,7 +8062,7 @@ let Te = class extends rt {
|
|
|
8048
8062
|
}
|
|
8049
8063
|
}
|
|
8050
8064
|
};
|
|
8051
|
-
Te =
|
|
8065
|
+
Te = Qa([
|
|
8052
8066
|
v("Element2D")
|
|
8053
8067
|
], Te);
|
|
8054
8068
|
const E = {
|
|
@@ -8070,7 +8084,7 @@ const E = {
|
|
|
8070
8084
|
// Edge.Vertical
|
|
8071
8085
|
all: 8
|
|
8072
8086
|
// Edge.All
|
|
8073
|
-
},
|
|
8087
|
+
}, en = {
|
|
8074
8088
|
column: 0,
|
|
8075
8089
|
// Gutter.Column
|
|
8076
8090
|
row: 1,
|
|
@@ -8267,7 +8281,7 @@ class lr {
|
|
|
8267
8281
|
);
|
|
8268
8282
|
break;
|
|
8269
8283
|
case "gap":
|
|
8270
|
-
t !== void 0 && this._node.setGap(
|
|
8284
|
+
t !== void 0 && this._node.setGap(en.all, t);
|
|
8271
8285
|
break;
|
|
8272
8286
|
case "marginTop":
|
|
8273
8287
|
this._node.setMargin(E.top, t);
|
|
@@ -8346,13 +8360,13 @@ class lr {
|
|
|
8346
8360
|
}
|
|
8347
8361
|
}
|
|
8348
8362
|
}
|
|
8349
|
-
var
|
|
8350
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8363
|
+
var tn = Object.getOwnPropertyDescriptor, rn = (r, e, t, s) => {
|
|
8364
|
+
for (var i = s > 1 ? void 0 : s ? tn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8351
8365
|
(a = r[o]) && (i = a(i) || i);
|
|
8352
8366
|
return i;
|
|
8353
8367
|
};
|
|
8354
8368
|
let Dr = class extends rt {
|
|
8355
|
-
_style = new
|
|
8369
|
+
_style = new Za().on("updateProperty", (...r) => {
|
|
8356
8370
|
this.onUpdateStyleProperty(r[0], r[1], r[2]);
|
|
8357
8371
|
});
|
|
8358
8372
|
get style() {
|
|
@@ -8399,13 +8413,13 @@ let Dr = class extends rt {
|
|
|
8399
8413
|
s?._layout?.calculateLayout ? s?._layout.calculateLayout(r, e, t) : this._layout.calculateLayout(r, e, t);
|
|
8400
8414
|
}
|
|
8401
8415
|
};
|
|
8402
|
-
Dr =
|
|
8416
|
+
Dr = rn([
|
|
8403
8417
|
v("FlexElement2D")
|
|
8404
8418
|
], Dr);
|
|
8405
|
-
var
|
|
8406
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8419
|
+
var sn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, ft = (r, e, t, s) => {
|
|
8420
|
+
for (var i = s > 1 ? void 0 : s ? on(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8407
8421
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8408
|
-
return s && i &&
|
|
8422
|
+
return s && i && sn(e, t, i), i;
|
|
8409
8423
|
};
|
|
8410
8424
|
let De = class extends Te {
|
|
8411
8425
|
get currentFrameTexture() {
|
|
@@ -8528,10 +8542,10 @@ class Rs extends Te {
|
|
|
8528
8542
|
this.texture?.isValid() && (this.shape.draw(!0), this.context.fillStyle = this.texture, this.context.fill());
|
|
8529
8543
|
}
|
|
8530
8544
|
}
|
|
8531
|
-
var
|
|
8532
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8545
|
+
var an = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, Ms = (r, e, t, s) => {
|
|
8546
|
+
for (var i = s > 1 ? void 0 : s ? nn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8533
8547
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8534
|
-
return s && i &&
|
|
8548
|
+
return s && i && an(e, t, i), i;
|
|
8535
8549
|
};
|
|
8536
8550
|
let Wt = class extends Rs {
|
|
8537
8551
|
texture = new er();
|
|
@@ -8569,12 +8583,12 @@ Ms([
|
|
|
8569
8583
|
Wt = Ms([
|
|
8570
8584
|
v("Lottie2D")
|
|
8571
8585
|
], Wt);
|
|
8572
|
-
var
|
|
8586
|
+
var ln = Object.defineProperty, hn = (r, e, t, s) => {
|
|
8573
8587
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8574
8588
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8575
|
-
return i &&
|
|
8589
|
+
return i && ln(e, t, i), i;
|
|
8576
8590
|
};
|
|
8577
|
-
class
|
|
8591
|
+
class cn extends Te {
|
|
8578
8592
|
constructor(e, t = []) {
|
|
8579
8593
|
super(), this.setProperties(e).append(t);
|
|
8580
8594
|
}
|
|
@@ -8597,13 +8611,13 @@ class ln extends Te {
|
|
|
8597
8611
|
this.context.rect(0, 0, e, t), this.context.strokeStyle = "#00FF00", this.context.stroke(), this._drawCircle(0, 0), this._drawCircle(e, t), this._drawCircle(0, t), this._drawEllipse(0, t / 2), this._drawCircle(e, 0), this._drawEllipse(e, t / 2);
|
|
8598
8612
|
}
|
|
8599
8613
|
}
|
|
8600
|
-
|
|
8614
|
+
hn([
|
|
8601
8615
|
u({ fallback: 6 })
|
|
8602
|
-
],
|
|
8603
|
-
var
|
|
8604
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8616
|
+
], cn.prototype, "handleSize");
|
|
8617
|
+
var un = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, Os = (r, e, t, s) => {
|
|
8618
|
+
for (var i = s > 1 ? void 0 : s ? dn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8605
8619
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8606
|
-
return s && i &&
|
|
8620
|
+
return s && i && un(e, t, i), i;
|
|
8607
8621
|
};
|
|
8608
8622
|
let qt = class extends Rs {
|
|
8609
8623
|
get videoDuration() {
|
|
@@ -8646,17 +8660,17 @@ Os([
|
|
|
8646
8660
|
qt = Os([
|
|
8647
8661
|
v("Video2D")
|
|
8648
8662
|
], qt);
|
|
8649
|
-
var
|
|
8650
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8663
|
+
var pn = Object.defineProperty, fn = Object.getOwnPropertyDescriptor, It = (r, e, t, s) => {
|
|
8664
|
+
for (var i = s > 1 ? void 0 : s ? fn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8651
8665
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8652
|
-
return s && i &&
|
|
8666
|
+
return s && i && pn(e, t, i), i;
|
|
8653
8667
|
};
|
|
8654
|
-
const
|
|
8668
|
+
const _n = (r) => r, mn = _t(0.25, 0.1, 0.25, 1), gn = _t(0.42, 0, 1, 1), vn = _t(0, 0, 0.58, 1), bn = _t(0.42, 0, 0.58, 1);
|
|
8655
8669
|
function _t(r, e, t, s) {
|
|
8656
8670
|
const o = 3 * r - 3 * t + 1, a = 3 * t - 6 * r, n = 3 * r, h = 3 * e - 3 * s + 1, l = 3 * s - 6 * e, c = 3 * e, d = (m) => (3 * o * m + 2 * a) * m + n, p = (m) => ((o * m + a) * m + n) * m, _ = (m) => ((h * m + l) * m + c) * m;
|
|
8657
8671
|
function f(m) {
|
|
8658
8672
|
let g = m, w, P;
|
|
8659
|
-
for (let
|
|
8673
|
+
for (let z = 0; z < 8; z++) {
|
|
8660
8674
|
if (P = p(g) - m, Math.abs(P) < 1e-6)
|
|
8661
8675
|
return g;
|
|
8662
8676
|
if (w = d(g), Math.abs(w) < 1e-6)
|
|
@@ -8674,11 +8688,11 @@ function _t(r, e, t, s) {
|
|
|
8674
8688
|
return (m) => _(f(m));
|
|
8675
8689
|
}
|
|
8676
8690
|
const $t = {
|
|
8677
|
-
linear:
|
|
8678
|
-
ease:
|
|
8679
|
-
easeIn:
|
|
8680
|
-
easeOut:
|
|
8681
|
-
easeInOut:
|
|
8691
|
+
linear: _n,
|
|
8692
|
+
ease: mn,
|
|
8693
|
+
easeIn: gn,
|
|
8694
|
+
easeOut: vn,
|
|
8695
|
+
easeInOut: bn
|
|
8682
8696
|
};
|
|
8683
8697
|
let st = class extends G {
|
|
8684
8698
|
_keyframes = [];
|
|
@@ -9058,7 +9072,7 @@ class Tt extends de {
|
|
|
9058
9072
|
e && (e.onended = null, e.onplay = null, e.onpause = null, this._stop()), this._source = null, this._playbackRate = 1, this._volume = 1, this._loop = !1, this._end = 0, this._start = 0, this._duration = 0, this._playing = !1, this._pausedReal = !1, this._paused = !1, this._muted = !1, this._audio && (this._audio.context.off("refresh", this.refresh), this._audio.context.off("refreshPaused", this.refreshPaused), this._audio = null);
|
|
9059
9073
|
}
|
|
9060
9074
|
}
|
|
9061
|
-
class
|
|
9075
|
+
class yn {
|
|
9062
9076
|
constructor(e) {
|
|
9063
9077
|
this.parent = e;
|
|
9064
9078
|
}
|
|
@@ -9109,7 +9123,7 @@ class ks extends de {
|
|
|
9109
9123
|
return this._input;
|
|
9110
9124
|
}
|
|
9111
9125
|
}
|
|
9112
|
-
class
|
|
9126
|
+
class Rl {
|
|
9113
9127
|
constructor(e, t = null) {
|
|
9114
9128
|
this.destination = e, this.source = t;
|
|
9115
9129
|
}
|
|
@@ -9120,7 +9134,7 @@ class Sl {
|
|
|
9120
9134
|
this.source?.disconnect();
|
|
9121
9135
|
}
|
|
9122
9136
|
}
|
|
9123
|
-
function
|
|
9137
|
+
function xn() {
|
|
9124
9138
|
if (Vr)
|
|
9125
9139
|
return new AudioContext();
|
|
9126
9140
|
if (Gr) {
|
|
@@ -9129,10 +9143,10 @@ function bn() {
|
|
|
9129
9143
|
} else
|
|
9130
9144
|
throw new Error("Failed to createAudioContext");
|
|
9131
9145
|
}
|
|
9132
|
-
function
|
|
9146
|
+
function wn(r, e, t) {
|
|
9133
9147
|
if (jr)
|
|
9134
9148
|
return new OfflineAudioContext(r, e, t);
|
|
9135
|
-
if (
|
|
9149
|
+
if (gi) {
|
|
9136
9150
|
const s = globalThis.webkitOfflineAudioContext;
|
|
9137
9151
|
return new s(r, e, t);
|
|
9138
9152
|
} else
|
|
@@ -9183,12 +9197,12 @@ class ve extends ks {
|
|
|
9183
9197
|
_compressor;
|
|
9184
9198
|
_analyser;
|
|
9185
9199
|
constructor() {
|
|
9186
|
-
const e =
|
|
9200
|
+
const e = xn(), t = wn(
|
|
9187
9201
|
1,
|
|
9188
9202
|
2,
|
|
9189
9203
|
jr ? Math.max(8e3, Math.min(96e3, e.sampleRate)) : 44100
|
|
9190
9204
|
), s = e.createDynamicsCompressor(), i = e.createAnalyser();
|
|
9191
|
-
i.connect(s), s.connect(e.destination), super(i, s), this._context = e, this._offlineContext = t, this._compressor = s, this._analyser = i, this._locked = e.state === "suspended" && (he ||
|
|
9205
|
+
i.connect(s), s.connect(e.destination), super(i, s), this._context = e, this._offlineContext = t, this._compressor = s, this._analyser = i, this._locked = e.state === "suspended" && (he || mi), Rt && (this._locked && (this._unlock(), document.addEventListener("mousedown", this._unlock, !0), document.addEventListener("touchstart", this._unlock, !0), document.addEventListener("touchend", this._unlock, !0)), globalThis.addEventListener("focus", this._onFocus), globalThis.addEventListener("blur", this._onBlur));
|
|
9192
9206
|
}
|
|
9193
9207
|
_onFocus() {
|
|
9194
9208
|
if (!this.autoPause)
|
|
@@ -9230,7 +9244,7 @@ class ve extends ks {
|
|
|
9230
9244
|
e.setValueAtTime ? e.setValueAtTime(t, this._context.currentTime) : e.value = t;
|
|
9231
9245
|
}
|
|
9232
9246
|
}
|
|
9233
|
-
class
|
|
9247
|
+
class Pn extends de {
|
|
9234
9248
|
_audio = null;
|
|
9235
9249
|
_sourceNode = null;
|
|
9236
9250
|
_gain = null;
|
|
@@ -9385,7 +9399,7 @@ class xn extends de {
|
|
|
9385
9399
|
super.destroy(), this._stop(), this._gain?.disconnect(), this._gain = null, this._audio?.context.off("refresh", this.refresh), this._audio?.context.off("refreshPaused", this.refreshPaused), this._audio = null, this._processors.forEach((e) => e.disconnect()), this._processors.length = 0, this._end = 0, this._playbackRate = 1, this._volume = 1, this._loop = !1, this._elapsed = 0, this._duration = 0, this._paused = !1, this._muted = !1, this._pausedReal = !1;
|
|
9386
9400
|
}
|
|
9387
9401
|
}
|
|
9388
|
-
class
|
|
9402
|
+
class Tn extends ks {
|
|
9389
9403
|
constructor(e) {
|
|
9390
9404
|
const t = ve.audioContext, s = t.createBufferSource(), i = t.createGain(), o = t.createAnalyser();
|
|
9391
9405
|
s.connect(o), o.connect(i), i.connect(ve.instance.destination), super(o, i), this.parent = e, this._sourceNode = s, this.gain = i, this.analyser = o;
|
|
@@ -9432,18 +9446,18 @@ class wn extends ks {
|
|
|
9432
9446
|
return s.buffer = t.buffer, s.loop = t.loop, e.setParamValue(s.playbackRate, t.playbackRate.value), s.connect(i), i.connect(this.destination), { source: s, gain: i };
|
|
9433
9447
|
}
|
|
9434
9448
|
createSound() {
|
|
9435
|
-
return new
|
|
9449
|
+
return new Pn();
|
|
9436
9450
|
}
|
|
9437
9451
|
}
|
|
9438
|
-
var
|
|
9439
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9452
|
+
var En = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, Sn = (r, e, t) => e in r ? En(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, An = (r, e, t, s) => {
|
|
9453
|
+
for (var i = s > 1 ? void 0 : s ? Cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9440
9454
|
(a = r[o]) && (i = a(i) || i);
|
|
9441
9455
|
return i;
|
|
9442
|
-
},
|
|
9456
|
+
}, Rn = (r, e, t) => Sn(r, e + "", t);
|
|
9443
9457
|
let be = class extends G {
|
|
9444
9458
|
_sounds = [];
|
|
9445
9459
|
/** PlatformAudio */
|
|
9446
|
-
_platformAudio =
|
|
9460
|
+
_platformAudio = vi ? new Tn(this) : new yn(this);
|
|
9447
9461
|
get platformAudio() {
|
|
9448
9462
|
return this._platformAudio;
|
|
9449
9463
|
}
|
|
@@ -9582,17 +9596,17 @@ let be = class extends G {
|
|
|
9582
9596
|
}, 100);
|
|
9583
9597
|
}
|
|
9584
9598
|
};
|
|
9585
|
-
|
|
9586
|
-
be =
|
|
9599
|
+
Rn(be, "_soundPool", []);
|
|
9600
|
+
be = An([
|
|
9587
9601
|
v("Audio")
|
|
9588
9602
|
], be);
|
|
9589
|
-
class
|
|
9603
|
+
class Ml extends xe {
|
|
9590
9604
|
//
|
|
9591
9605
|
}
|
|
9592
|
-
var
|
|
9593
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9606
|
+
var Mn = Object.defineProperty, On = Object.getOwnPropertyDescriptor, Bt = (r, e, t, s) => {
|
|
9607
|
+
for (var i = s > 1 ? void 0 : s ? On(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9594
9608
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9595
|
-
return s && i &&
|
|
9609
|
+
return s && i && Mn(e, t, i), i;
|
|
9596
9610
|
};
|
|
9597
9611
|
let it = class extends Te {
|
|
9598
9612
|
_audioBuffer;
|
|
@@ -9671,11 +9685,11 @@ Bt([
|
|
|
9671
9685
|
it = Bt([
|
|
9672
9686
|
v("AudioWaveform")
|
|
9673
9687
|
], it);
|
|
9674
|
-
var
|
|
9675
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9688
|
+
var kn = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, Dn = (r, e, t) => e in r ? kn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, In = (r, e, t, s) => {
|
|
9689
|
+
for (var i = s > 1 ? void 0 : s ? Un(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9676
9690
|
(a = r[o]) && (i = a(i) || i);
|
|
9677
9691
|
return i;
|
|
9678
|
-
},
|
|
9692
|
+
}, Bn = (r, e, t) => Dn(r, e + "", t);
|
|
9679
9693
|
let Et = class extends Me {
|
|
9680
9694
|
blur = 10;
|
|
9681
9695
|
quality = 10;
|
|
@@ -9708,7 +9722,7 @@ let Et = class extends Me {
|
|
|
9708
9722
|
});
|
|
9709
9723
|
}
|
|
9710
9724
|
};
|
|
9711
|
-
|
|
9725
|
+
Bn(Et, "material", new x({
|
|
9712
9726
|
vert: `attribute vec2 position;
|
|
9713
9727
|
attribute vec2 uv;
|
|
9714
9728
|
varying vec2 vUv;
|
|
@@ -9733,14 +9747,14 @@ void main(void) {
|
|
|
9733
9747
|
gl_FragColor = color;
|
|
9734
9748
|
}`
|
|
9735
9749
|
}));
|
|
9736
|
-
Et =
|
|
9750
|
+
Et = In([
|
|
9737
9751
|
v("KawaseTransition")
|
|
9738
9752
|
], Et);
|
|
9739
|
-
var
|
|
9740
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9753
|
+
var Nn = Object.defineProperty, zn = Object.getOwnPropertyDescriptor, Ln = (r, e, t) => e in r ? Nn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Fn = (r, e, t, s) => {
|
|
9754
|
+
for (var i = s > 1 ? void 0 : s ? zn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9741
9755
|
(a = r[o]) && (i = a(i) || i);
|
|
9742
9756
|
return i;
|
|
9743
|
-
},
|
|
9757
|
+
}, $n = (r, e, t) => Ln(r, e + "", t);
|
|
9744
9758
|
let Ct = class extends Me {
|
|
9745
9759
|
apply(r) {
|
|
9746
9760
|
b.draw(r, Ct.material, {
|
|
@@ -9750,7 +9764,7 @@ let Ct = class extends Me {
|
|
|
9750
9764
|
});
|
|
9751
9765
|
}
|
|
9752
9766
|
};
|
|
9753
|
-
|
|
9767
|
+
$n(Ct, "material", new x({
|
|
9754
9768
|
vert: `attribute vec2 position;
|
|
9755
9769
|
attribute vec2 uv;
|
|
9756
9770
|
varying vec2 vUv;
|
|
@@ -9779,14 +9793,14 @@ void main() {
|
|
|
9779
9793
|
gl_FragColor = mix(src2Color, src1Color, mixPercent);
|
|
9780
9794
|
}`
|
|
9781
9795
|
}));
|
|
9782
|
-
Ct =
|
|
9796
|
+
Ct = Fn([
|
|
9783
9797
|
v("LeftEraseTransition")
|
|
9784
9798
|
], Ct);
|
|
9785
|
-
var
|
|
9786
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9799
|
+
var Vn = Object.defineProperty, Gn = Object.getOwnPropertyDescriptor, jn = (r, e, t) => e in r ? Vn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Wn = (r, e, t, s) => {
|
|
9800
|
+
for (var i = s > 1 ? void 0 : s ? Gn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9787
9801
|
(a = r[o]) && (i = a(i) || i);
|
|
9788
9802
|
return i;
|
|
9789
|
-
},
|
|
9803
|
+
}, qn = (r, e, t) => jn(r, e + "", t);
|
|
9790
9804
|
let ot = class extends Me {
|
|
9791
9805
|
blur = 100;
|
|
9792
9806
|
gradientBlur = 600;
|
|
@@ -9816,7 +9830,7 @@ let ot = class extends Me {
|
|
|
9816
9830
|
});
|
|
9817
9831
|
}
|
|
9818
9832
|
};
|
|
9819
|
-
|
|
9833
|
+
qn(ot, "material", new x({
|
|
9820
9834
|
vert: `attribute vec2 position;
|
|
9821
9835
|
attribute vec2 uv;
|
|
9822
9836
|
varying vec2 vUv;
|
|
@@ -9864,14 +9878,14 @@ void main(void) {
|
|
|
9864
9878
|
gl_FragColor = color;
|
|
9865
9879
|
}`
|
|
9866
9880
|
}));
|
|
9867
|
-
ot =
|
|
9881
|
+
ot = Wn([
|
|
9868
9882
|
v("TiltShiftTransition")
|
|
9869
9883
|
], ot);
|
|
9870
|
-
var
|
|
9871
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9884
|
+
var Xn = Object.defineProperty, Hn = Object.getOwnPropertyDescriptor, Yn = (r, e, t) => e in r ? Xn(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Kn = (r, e, t, s) => {
|
|
9885
|
+
for (var i = s > 1 ? void 0 : s ? Hn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9872
9886
|
(a = r[o]) && (i = a(i) || i);
|
|
9873
9887
|
return i;
|
|
9874
|
-
},
|
|
9888
|
+
}, Zn = (r, e, t) => Yn(r, e + "", t);
|
|
9875
9889
|
let St = class extends Me {
|
|
9876
9890
|
radius;
|
|
9877
9891
|
angle = 4;
|
|
@@ -9893,7 +9907,7 @@ let St = class extends Me {
|
|
|
9893
9907
|
});
|
|
9894
9908
|
}
|
|
9895
9909
|
};
|
|
9896
|
-
|
|
9910
|
+
Zn(St, "material", new x({
|
|
9897
9911
|
vert: `attribute vec2 position;
|
|
9898
9912
|
attribute vec2 uv;
|
|
9899
9913
|
varying vec2 vUv;
|
|
@@ -9943,10 +9957,10 @@ void main(void) {
|
|
|
9943
9957
|
gl_FragColor = texture2D(sampler, coord);
|
|
9944
9958
|
}`
|
|
9945
9959
|
}));
|
|
9946
|
-
St =
|
|
9960
|
+
St = Kn([
|
|
9947
9961
|
v("TwistTransition")
|
|
9948
9962
|
], St);
|
|
9949
|
-
class
|
|
9963
|
+
class Jn extends Ee {
|
|
9950
9964
|
install(e) {
|
|
9951
9965
|
const t = async (s) => {
|
|
9952
9966
|
const { decodeFrames: i } = await import("modern-gif");
|
|
@@ -9967,7 +9981,7 @@ class Kn extends Ee {
|
|
|
9967
9981
|
}), e.gif = this, this;
|
|
9968
9982
|
}
|
|
9969
9983
|
}
|
|
9970
|
-
class
|
|
9984
|
+
class Qn extends Ee {
|
|
9971
9985
|
install(e) {
|
|
9972
9986
|
const t = (s) => e.fetch(s).then((i) => i.json());
|
|
9973
9987
|
return this.load = (s) => e.loadBy(s, () => t(s)), [
|
|
@@ -9977,7 +9991,7 @@ class Zn extends Ee {
|
|
|
9977
9991
|
}), e.json = this, this;
|
|
9978
9992
|
}
|
|
9979
9993
|
}
|
|
9980
|
-
class
|
|
9994
|
+
class el extends Ee {
|
|
9981
9995
|
install(e) {
|
|
9982
9996
|
const t = async (s, i) => (await import("lottie-web").then((a) => a.default)).loadAnimation({
|
|
9983
9997
|
container: null,
|
|
@@ -9996,13 +10010,13 @@ class Jn extends Ee {
|
|
|
9996
10010
|
}), e.lottie = this, this;
|
|
9997
10011
|
}
|
|
9998
10012
|
}
|
|
9999
|
-
class
|
|
10013
|
+
class tl extends Ee {
|
|
10000
10014
|
install(e) {
|
|
10001
10015
|
const t = async (s) => await e.fetch(s).then((i) => i.text());
|
|
10002
10016
|
return this.load = (s) => e.loadBy(s, () => t(s)), e.text = this, this;
|
|
10003
10017
|
}
|
|
10004
10018
|
}
|
|
10005
|
-
class
|
|
10019
|
+
class rl extends Ee {
|
|
10006
10020
|
install(e) {
|
|
10007
10021
|
const t = (s) => e.fetchImageBitmap(s, { premultiplyAlpha: "premultiply" }).then((i) => new T(i));
|
|
10008
10022
|
return this.load = (s) => e.loadBy(s, () => t(s)), [
|
|
@@ -10021,9 +10035,9 @@ class el extends Ee {
|
|
|
10021
10035
|
}), e.texture = this, this;
|
|
10022
10036
|
}
|
|
10023
10037
|
}
|
|
10024
|
-
class
|
|
10038
|
+
class sl extends Ee {
|
|
10025
10039
|
install(e) {
|
|
10026
|
-
const t = (s) => new
|
|
10040
|
+
const t = (s) => new fo(s).load();
|
|
10027
10041
|
return this.load = (s) => e.loadBy(s, () => t(s)), [
|
|
10028
10042
|
"video/3gpp",
|
|
10029
10043
|
"video/mpeg",
|
|
@@ -10039,7 +10053,7 @@ class tl extends Ee {
|
|
|
10039
10053
|
}), e.video = this, this;
|
|
10040
10054
|
}
|
|
10041
10055
|
}
|
|
10042
|
-
const
|
|
10056
|
+
const il = Object.entries({
|
|
10043
10057
|
"text/html": ["html", "htm", "shtml"],
|
|
10044
10058
|
"text/css": ["css"],
|
|
10045
10059
|
"text/xml": ["xml"],
|
|
@@ -10104,23 +10118,23 @@ const rl = Object.entries({
|
|
|
10104
10118
|
"video/x-msvideo": ["avi"],
|
|
10105
10119
|
"video/mp4": ["m4v", "mp4"]
|
|
10106
10120
|
});
|
|
10107
|
-
function
|
|
10108
|
-
for (const [e, t] of
|
|
10121
|
+
function ol(r) {
|
|
10122
|
+
for (const [e, t] of il)
|
|
10109
10123
|
if (t.includes(r))
|
|
10110
10124
|
return e;
|
|
10111
10125
|
}
|
|
10112
|
-
async function
|
|
10126
|
+
async function al(r) {
|
|
10113
10127
|
let e;
|
|
10114
10128
|
if (r.startsWith("data:"))
|
|
10115
10129
|
e = r.match(/^data:(.+?);/)?.[1];
|
|
10116
10130
|
else if (r.startsWith("http")) {
|
|
10117
10131
|
const t = r.split(/[#?]/)[0].split(".").pop()?.trim();
|
|
10118
|
-
t && (e =
|
|
10132
|
+
t && (e = ol(t));
|
|
10119
10133
|
}
|
|
10120
10134
|
return e ?? await fetch(r).then((t) => t.headers.get("Content-Type")) ?? "";
|
|
10121
10135
|
}
|
|
10122
10136
|
const vt = "WeakRef" in globalThis;
|
|
10123
|
-
class
|
|
10137
|
+
class nl extends de {
|
|
10124
10138
|
defaultHandler = (e) => this.fetch(e);
|
|
10125
10139
|
_handlers = /* @__PURE__ */ new Map();
|
|
10126
10140
|
_handleing = /* @__PURE__ */ new Map();
|
|
@@ -10192,7 +10206,7 @@ class ol extends de {
|
|
|
10192
10206
|
}
|
|
10193
10207
|
async load(e, t) {
|
|
10194
10208
|
return this.loadBy(e, async () => {
|
|
10195
|
-
const s = await
|
|
10209
|
+
const s = await al(e);
|
|
10196
10210
|
return (this._handlers.get(s) ?? this.defaultHandler)(e, t);
|
|
10197
10211
|
});
|
|
10198
10212
|
}
|
|
@@ -10210,11 +10224,11 @@ class ol extends de {
|
|
|
10210
10224
|
}), this._handled.clear();
|
|
10211
10225
|
}
|
|
10212
10226
|
}
|
|
10213
|
-
const q = new
|
|
10214
|
-
var
|
|
10227
|
+
const q = new nl().use(new eo()).use(new Jn()).use(new Qn()).use(new el()).use(new tl()).use(new rl()).use(new sl());
|
|
10228
|
+
var ll = Object.defineProperty, cr = (r, e, t, s) => {
|
|
10215
10229
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
10216
10230
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
10217
|
-
return i &&
|
|
10231
|
+
return i && ll(e, t, i), i;
|
|
10218
10232
|
};
|
|
10219
10233
|
const Ae = {
|
|
10220
10234
|
alpha: !0,
|
|
@@ -10224,7 +10238,7 @@ const Ae = {
|
|
|
10224
10238
|
preserveDrawingBuffer: !1,
|
|
10225
10239
|
powerPreference: "default"
|
|
10226
10240
|
};
|
|
10227
|
-
class Nt extends
|
|
10241
|
+
class Nt extends Le {
|
|
10228
10242
|
renderer;
|
|
10229
10243
|
get view() {
|
|
10230
10244
|
return this.renderer.view;
|
|
@@ -10247,7 +10261,7 @@ class Nt extends Fe {
|
|
|
10247
10261
|
set pixelRatio(e) {
|
|
10248
10262
|
this.renderer.pixelRatio = e, this.resize(this.width, this.height);
|
|
10249
10263
|
}
|
|
10250
|
-
_resizeObserver =
|
|
10264
|
+
_resizeObserver = fi ? new ResizeObserver((e) => {
|
|
10251
10265
|
const t = e[0];
|
|
10252
10266
|
if (t.target === this.view) {
|
|
10253
10267
|
const { inlineSize: s, blockSize: i } = Array.isArray(t.contentBoxSize) ? t.contentBoxSize[0] : t.contentBoxSize;
|
|
@@ -10262,7 +10276,7 @@ class Nt extends Fe {
|
|
|
10262
10276
|
pixelRatio: o = Wr,
|
|
10263
10277
|
autoResize: a
|
|
10264
10278
|
} = e;
|
|
10265
|
-
super(), this.renderer = new
|
|
10279
|
+
super(), this.renderer = new Qi(t, {
|
|
10266
10280
|
alpha: Ae.alpha ?? e.alpha,
|
|
10267
10281
|
stencil: Ae.stencil ?? e.stencil,
|
|
10268
10282
|
antialias: Ae.antialias ?? e.antialias,
|
|
@@ -10305,7 +10319,7 @@ class Nt extends Fe {
|
|
|
10305
10319
|
return this.renderer.resize(e, t, s), this.root.width = e, this.root.height = t, this.root.requestUpload(), this.render(), this;
|
|
10306
10320
|
}
|
|
10307
10321
|
nextTick() {
|
|
10308
|
-
return
|
|
10322
|
+
return Lr();
|
|
10309
10323
|
}
|
|
10310
10324
|
async waitUntilLoad() {
|
|
10311
10325
|
await q.waitUntilLoad(), await this.nextTick();
|
|
@@ -10367,7 +10381,7 @@ cr([
|
|
|
10367
10381
|
let I;
|
|
10368
10382
|
const Xt = [];
|
|
10369
10383
|
let Vt = !1;
|
|
10370
|
-
async function
|
|
10384
|
+
async function hl(r = 100) {
|
|
10371
10385
|
if (!Vt) {
|
|
10372
10386
|
for (Vt = !0; Xt.length; ) {
|
|
10373
10387
|
const e = Xt.shift();
|
|
@@ -10383,7 +10397,7 @@ async function nl(r = 100) {
|
|
|
10383
10397
|
Vt = !1;
|
|
10384
10398
|
}
|
|
10385
10399
|
}
|
|
10386
|
-
async function
|
|
10400
|
+
async function cl(r) {
|
|
10387
10401
|
const {
|
|
10388
10402
|
debug: e = !1,
|
|
10389
10403
|
fonts: t,
|
|
@@ -10417,19 +10431,19 @@ async function ll(r) {
|
|
|
10417
10431
|
_();
|
|
10418
10432
|
}), I.toCanvas2D();
|
|
10419
10433
|
}
|
|
10420
|
-
async function
|
|
10434
|
+
async function Ol(r) {
|
|
10421
10435
|
return new Promise((e) => {
|
|
10422
|
-
Xt.push(async () => e(await
|
|
10436
|
+
Xt.push(async () => e(await cl(r))), hl();
|
|
10423
10437
|
});
|
|
10424
10438
|
}
|
|
10425
10439
|
export {
|
|
10426
10440
|
Gt as AnimatedTexture,
|
|
10427
10441
|
st as Animation,
|
|
10428
|
-
|
|
10442
|
+
nl as Assets,
|
|
10429
10443
|
be as Audio,
|
|
10430
10444
|
ks as AudioPipeline,
|
|
10431
|
-
|
|
10432
|
-
|
|
10445
|
+
Rl as AudioProcessor,
|
|
10446
|
+
Ml as AudioSpectrum,
|
|
10433
10447
|
it as AudioWaveform,
|
|
10434
10448
|
rt as BaseElement2D,
|
|
10435
10449
|
Cs as BaseElement2DBackground,
|
|
@@ -10441,7 +10455,7 @@ export {
|
|
|
10441
10455
|
tt as BaseElement2DStyle,
|
|
10442
10456
|
ee as BaseElement2DText,
|
|
10443
10457
|
Ke as Camera2D,
|
|
10444
|
-
|
|
10458
|
+
_o as CanvasContext,
|
|
10445
10459
|
ye as CanvasItem,
|
|
10446
10460
|
er as CanvasTexture,
|
|
10447
10461
|
Z as Color,
|
|
@@ -10451,9 +10465,9 @@ export {
|
|
|
10451
10465
|
Oe as ColorOverlayEffect,
|
|
10452
10466
|
ke as ColorRemoveEffect,
|
|
10453
10467
|
Ue as ColorReplaceEffect,
|
|
10454
|
-
|
|
10468
|
+
Cl as ColorTexture,
|
|
10455
10469
|
pe as CoreObject,
|
|
10456
|
-
|
|
10470
|
+
Ui as DEG_TO_RAD,
|
|
10457
10471
|
Wr as DEVICE_PIXEL_RATIO,
|
|
10458
10472
|
we as DrawboardEffect,
|
|
10459
10473
|
J as DropShadowEffect,
|
|
@@ -10464,40 +10478,40 @@ export {
|
|
|
10464
10478
|
Je as EmbossEffect,
|
|
10465
10479
|
Nt as Engine,
|
|
10466
10480
|
Dr as FlexElement2D,
|
|
10467
|
-
|
|
10481
|
+
Za as FlexElement2DStyle,
|
|
10468
10482
|
lr as FlexLayout,
|
|
10469
|
-
|
|
10483
|
+
eo as FontLoader,
|
|
10470
10484
|
oe as GaussianBlurEffect,
|
|
10471
10485
|
Qt as Geometry,
|
|
10472
|
-
|
|
10486
|
+
Jn as GifLoader,
|
|
10473
10487
|
N as GlitchEffect,
|
|
10474
10488
|
W as GodrayEffect,
|
|
10475
10489
|
Ot as GradientTexture,
|
|
10476
|
-
|
|
10490
|
+
yn as HTMLAudio,
|
|
10477
10491
|
hr as HTMLAudioContext,
|
|
10478
10492
|
Tt as HTMLSound,
|
|
10479
10493
|
Rt as IN_BROWSER,
|
|
10480
10494
|
De as Image2D,
|
|
10481
|
-
|
|
10495
|
+
Sl as ImageTexture,
|
|
10482
10496
|
at as IndexBuffer,
|
|
10483
|
-
|
|
10497
|
+
Ri as Input,
|
|
10484
10498
|
Mt as InputEvent,
|
|
10485
|
-
|
|
10499
|
+
Qn as JsonLoader,
|
|
10486
10500
|
Qe as KawaseBlurEffect,
|
|
10487
10501
|
Et as KawaseTransition,
|
|
10488
|
-
|
|
10502
|
+
Ei as KeyboardInputEvent,
|
|
10489
10503
|
Ct as LeftEraseTransition,
|
|
10490
10504
|
Ee as Loader,
|
|
10491
10505
|
Wt as Lottie2D,
|
|
10492
|
-
|
|
10506
|
+
el as LottieLoader,
|
|
10493
10507
|
Zt as MainLoop,
|
|
10494
10508
|
Pe as MaskEffect,
|
|
10495
10509
|
x as Material,
|
|
10496
10510
|
re as Matrix,
|
|
10497
|
-
|
|
10511
|
+
wl as Matrix2,
|
|
10498
10512
|
Kr as Matrix3,
|
|
10499
|
-
|
|
10500
|
-
|
|
10513
|
+
ki as Matrix4,
|
|
10514
|
+
go as Meta,
|
|
10501
10515
|
Hr as MouseInputEvent,
|
|
10502
10516
|
M as Node,
|
|
10503
10517
|
xe as Node2D,
|
|
@@ -10506,124 +10520,124 @@ export {
|
|
|
10506
10520
|
B as PI_2,
|
|
10507
10521
|
et as PixelateEffect,
|
|
10508
10522
|
ts as PixelsTexture,
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10523
|
+
Ci as PointerInputEvent,
|
|
10524
|
+
Ii as Projection2D,
|
|
10525
|
+
Tl as QuadGeometry,
|
|
10512
10526
|
b as QuadUvGeometry,
|
|
10513
|
-
|
|
10527
|
+
yl as RAD_TO_DEG,
|
|
10514
10528
|
Xr as RawWeakMap,
|
|
10515
10529
|
ge as Rect2,
|
|
10516
|
-
|
|
10530
|
+
Oi as RefCounted,
|
|
10517
10531
|
Jt as Renderer,
|
|
10518
10532
|
fe as Resource,
|
|
10519
10533
|
Vr as SUPPORTS_AUDIO_CONTEXT,
|
|
10520
|
-
|
|
10534
|
+
mi as SUPPORTS_CLICK_EVENTS,
|
|
10521
10535
|
$r as SUPPORTS_CREATE_IMAGE_BITMAP,
|
|
10522
|
-
|
|
10523
|
-
|
|
10536
|
+
pi as SUPPORTS_IMAGE_BITMAP,
|
|
10537
|
+
vl as SUPPORTS_MOUSE_EVENTS,
|
|
10524
10538
|
jr as SUPPORTS_OFFLINE_AUDIO_CONTEXT,
|
|
10525
10539
|
qe as SUPPORTS_POINTER_EVENTS,
|
|
10526
|
-
|
|
10540
|
+
fi as SUPPORTS_RESIZE_OBSERVER,
|
|
10527
10541
|
he as SUPPORTS_TOUCH_EVENTS,
|
|
10528
|
-
|
|
10542
|
+
di as SUPPORTS_WEBGL2,
|
|
10529
10543
|
Gr as SUPPORTS_WEBKIT_AUDIO_CONTEXT,
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10544
|
+
gi as SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT,
|
|
10545
|
+
vi as SUPPORTS_WEB_AUDIO,
|
|
10546
|
+
_i as SUPPORTS_WHEEL_EVENTS,
|
|
10547
|
+
Le as SceneTree,
|
|
10548
|
+
tl as TextLoader,
|
|
10535
10549
|
T as Texture2D,
|
|
10536
|
-
|
|
10550
|
+
rl as TextureLoader,
|
|
10537
10551
|
Rs as TextureRect2D,
|
|
10538
10552
|
k as Ticker,
|
|
10539
10553
|
ot as TiltShiftTransition,
|
|
10540
10554
|
ie as Timeline,
|
|
10541
10555
|
G as TimelineNode,
|
|
10542
10556
|
O as Transform2D,
|
|
10543
|
-
|
|
10557
|
+
cn as TransformRect2D,
|
|
10544
10558
|
Me as Transition,
|
|
10545
10559
|
St as TwistTransition,
|
|
10546
|
-
|
|
10560
|
+
El as UvGeometry,
|
|
10547
10561
|
xt as UvMaterial,
|
|
10548
10562
|
K as Vector,
|
|
10549
10563
|
S as Vector2,
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10564
|
+
Pl as Vector3,
|
|
10565
|
+
Di as Vector4,
|
|
10566
|
+
F as VertexAttribute,
|
|
10553
10567
|
ce as VertexBuffer,
|
|
10554
10568
|
qt as Video2D,
|
|
10555
|
-
|
|
10556
|
-
|
|
10569
|
+
sl as VideoLoader,
|
|
10570
|
+
fo as VideoTexture,
|
|
10557
10571
|
j as Viewport,
|
|
10558
10572
|
wr as ViewportTexture,
|
|
10559
|
-
|
|
10573
|
+
Tn as WebAudio,
|
|
10560
10574
|
ve as WebAudioContext,
|
|
10561
|
-
|
|
10575
|
+
Fi as WebGLBatch2DModule,
|
|
10562
10576
|
Ye as WebGLBlendMode,
|
|
10563
|
-
|
|
10564
|
-
|
|
10565
|
-
|
|
10577
|
+
$i as WebGLBufferModule,
|
|
10578
|
+
Vi as WebGLFramebufferModule,
|
|
10579
|
+
Gi as WebGLMaskModule,
|
|
10566
10580
|
X as WebGLModule,
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10581
|
+
ji as WebGLProgramModule,
|
|
10582
|
+
Qi as WebGLRenderer,
|
|
10583
|
+
Xi as WebGLScissorModule,
|
|
10570
10584
|
Re as WebGLState,
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10585
|
+
Li as WebGLStateModule,
|
|
10586
|
+
Hi as WebGLStencilModule,
|
|
10587
|
+
Ki as WebGLTextureModule,
|
|
10588
|
+
Zi as WebGLVertexArrayModule,
|
|
10589
|
+
Ji as WebGLViewportModule,
|
|
10590
|
+
Pn as WebSound,
|
|
10591
|
+
Si as WheelInputEvent,
|
|
10578
10592
|
wt as Window,
|
|
10579
10593
|
ue as ZoomBlurEffect,
|
|
10580
10594
|
Se as alignMap,
|
|
10581
10595
|
q as assets,
|
|
10582
10596
|
Ur as boxSizingMap,
|
|
10583
10597
|
se as clamp,
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10598
|
+
Ea as clampFrag,
|
|
10599
|
+
wi as createHTMLCanvas,
|
|
10600
|
+
gl as createNode,
|
|
10601
|
+
Ti as crossOrigin,
|
|
10588
10602
|
_t as cubicBezier,
|
|
10589
|
-
|
|
10603
|
+
xl as curves,
|
|
10590
10604
|
v as customNode,
|
|
10591
10605
|
Yt as customNodes,
|
|
10592
10606
|
Ae as defaultOptions,
|
|
10593
|
-
|
|
10607
|
+
Pi as determineCrossOrigin,
|
|
10594
10608
|
jt as directionMap,
|
|
10595
10609
|
Sr as displayMap,
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10610
|
+
mn as ease,
|
|
10611
|
+
gn as easeIn,
|
|
10612
|
+
bn as easeInOut,
|
|
10613
|
+
vn as easeOut,
|
|
10600
10614
|
E as edgeMap,
|
|
10601
10615
|
Ar as flexDirectionMap,
|
|
10602
10616
|
Rr as flexWrapMap,
|
|
10603
|
-
|
|
10617
|
+
Ta as frag,
|
|
10604
10618
|
br as getDefaultCssPropertyValue,
|
|
10605
|
-
|
|
10606
|
-
|
|
10619
|
+
en as gutterMap,
|
|
10620
|
+
yi as isCanvasElement,
|
|
10607
10621
|
qr as isElementNode,
|
|
10608
|
-
|
|
10622
|
+
bl as isImageElement,
|
|
10609
10623
|
vr as isPow2,
|
|
10610
|
-
|
|
10611
|
-
|
|
10624
|
+
bi as isVideoElement,
|
|
10625
|
+
xi as isWebgl2,
|
|
10612
10626
|
Mr as justifyMap,
|
|
10613
10627
|
C as lerp,
|
|
10614
|
-
|
|
10628
|
+
_n as linear,
|
|
10615
10629
|
xr as log2,
|
|
10616
|
-
|
|
10630
|
+
zi as mapWebGLBlendModes,
|
|
10617
10631
|
yr as nextPow2,
|
|
10618
|
-
|
|
10632
|
+
Lr as nextTick,
|
|
10619
10633
|
Or as overflowMap,
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10634
|
+
Al as parseCSSFilter,
|
|
10635
|
+
$o as parseCSSTransform,
|
|
10636
|
+
Vo as parseCSSTransformOrigin,
|
|
10623
10637
|
At as parseCssFunctions,
|
|
10624
10638
|
mt as parseCssProperty,
|
|
10625
10639
|
kr as positionTypeMap,
|
|
10626
|
-
|
|
10640
|
+
Ol as render,
|
|
10627
10641
|
$t as timingFunctions,
|
|
10628
|
-
|
|
10642
|
+
ni as uid
|
|
10629
10643
|
};
|