@rive-app/webgl2-advanced 2.25.1 → 2.25.3
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/package.json +1 -1
- package/rive.wasm +0 -0
- package/webgl2_advanced.mjs +271 -266
package/package.json
CHANGED
package/rive.wasm
CHANGED
|
Binary file
|
package/webgl2_advanced.mjs
CHANGED
|
@@ -5,17 +5,17 @@ var Rive = (() => {
|
|
|
5
5
|
return (
|
|
6
6
|
function(moduleArg = {}) {
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
|
|
8
|
+
var n = moduleArg, aa, ba;
|
|
9
|
+
n.ready = new Promise((a, b) => {
|
|
10
10
|
aa = a;
|
|
11
11
|
ba = b;
|
|
12
12
|
});
|
|
13
13
|
function ca() {
|
|
14
14
|
function a(g) {
|
|
15
|
-
const
|
|
15
|
+
const m = d;
|
|
16
16
|
c = b = 0;
|
|
17
17
|
d = new Map();
|
|
18
|
-
|
|
18
|
+
m.forEach(p => {
|
|
19
19
|
try {
|
|
20
20
|
p(g);
|
|
21
21
|
} catch (l) {
|
|
@@ -28,9 +28,9 @@ function ca() {
|
|
|
28
28
|
let b = 0, c = 0, d = new Map(), e = null, f = null;
|
|
29
29
|
this.requestAnimationFrame = function(g) {
|
|
30
30
|
b || (b = requestAnimationFrame(a.bind(this)));
|
|
31
|
-
const
|
|
32
|
-
d.set(
|
|
33
|
-
return
|
|
31
|
+
const m = ++c;
|
|
32
|
+
d.set(m, g);
|
|
33
|
+
return m;
|
|
34
34
|
};
|
|
35
35
|
this.cancelAnimationFrame = function(g) {
|
|
36
36
|
d.delete(g);
|
|
@@ -38,14 +38,14 @@ function ca() {
|
|
|
38
38
|
};
|
|
39
39
|
this.Jb = function(g) {
|
|
40
40
|
f && (document.body.remove(f), f = null);
|
|
41
|
-
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(
|
|
42
|
-
f.innerHTML = "RIVE FPS " +
|
|
41
|
+
g || (f = document.createElement("div"), f.style.backgroundColor = "black", f.style.position = "fixed", f.style.right = 0, f.style.top = 0, f.style.color = "white", f.style.padding = "4px", f.innerHTML = "RIVE FPS", g = function(m) {
|
|
42
|
+
f.innerHTML = "RIVE FPS " + m.toFixed(1);
|
|
43
43
|
}, document.body.appendChild(f));
|
|
44
44
|
e = new function() {
|
|
45
|
-
let
|
|
45
|
+
let m = 0, p = 0;
|
|
46
46
|
this.Lb = function() {
|
|
47
47
|
var l = performance.now();
|
|
48
|
-
p ? (++
|
|
48
|
+
p ? (++m, l -= p, 1000 < l && (g(1000 * m / l), m = p = 0)) : (p = l, m = 0);
|
|
49
49
|
};
|
|
50
50
|
}();
|
|
51
51
|
};
|
|
@@ -67,44 +67,44 @@ function da() {
|
|
|
67
67
|
return b << 8;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
const ea =
|
|
71
|
-
|
|
70
|
+
const ea = n.onRuntimeInitialized;
|
|
71
|
+
n.onRuntimeInitialized = function() {
|
|
72
72
|
ea && ea();
|
|
73
|
-
let a =
|
|
74
|
-
|
|
73
|
+
let a = n.decodeAudio;
|
|
74
|
+
n.decodeAudio = function(e, f) {
|
|
75
75
|
e = a(e);
|
|
76
76
|
f(e);
|
|
77
77
|
};
|
|
78
|
-
let b =
|
|
79
|
-
|
|
78
|
+
let b = n.decodeFont;
|
|
79
|
+
n.decodeFont = function(e, f) {
|
|
80
80
|
e = b(e);
|
|
81
81
|
f(e);
|
|
82
82
|
};
|
|
83
|
-
const c =
|
|
84
|
-
|
|
85
|
-
let f =
|
|
86
|
-
return f.isImage ?
|
|
83
|
+
const c = n.FileAssetLoader;
|
|
84
|
+
n.ptrToAsset = e => {
|
|
85
|
+
let f = n.ptrToFileAsset(e);
|
|
86
|
+
return f.isImage ? n.ptrToImageAsset(e) : f.isFont ? n.ptrToFontAsset(e) : f.isAudio ? n.ptrToAudioAsset(e) : f;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
n.CustomFileAssetLoader = c.extend("CustomFileAssetLoader", {__construct:function({loadContents:e}) {
|
|
89
89
|
this.__parent.__construct.call(this);
|
|
90
90
|
this.Ab = e;
|
|
91
91
|
}, loadContents:function(e, f) {
|
|
92
|
-
e =
|
|
92
|
+
e = n.ptrToAsset(e);
|
|
93
93
|
return this.Ab(e, f);
|
|
94
94
|
},});
|
|
95
|
-
|
|
95
|
+
n.CDNFileAssetLoader = c.extend("CDNFileAssetLoader", {__construct:function() {
|
|
96
96
|
this.__parent.__construct.call(this);
|
|
97
97
|
}, loadContents:function(e) {
|
|
98
|
-
let f =
|
|
98
|
+
let f = n.ptrToAsset(e);
|
|
99
99
|
e = f.cdnUuid;
|
|
100
100
|
if ("" === e) {
|
|
101
101
|
return !1;
|
|
102
102
|
}
|
|
103
|
-
(function(g,
|
|
103
|
+
(function(g, m) {
|
|
104
104
|
var p = new XMLHttpRequest();
|
|
105
105
|
p.responseType = "arraybuffer";
|
|
106
106
|
p.onreadystatechange = function() {
|
|
107
|
-
4 == p.readyState && 200 == p.status &&
|
|
107
|
+
4 == p.readyState && 200 == p.status && m(p);
|
|
108
108
|
};
|
|
109
109
|
p.open("GET", g, !0);
|
|
110
110
|
p.send(null);
|
|
@@ -113,7 +113,7 @@ m.onRuntimeInitialized = function() {
|
|
|
113
113
|
});
|
|
114
114
|
return !0;
|
|
115
115
|
},});
|
|
116
|
-
|
|
116
|
+
n.FallbackFileAssetLoader = c.extend("FallbackFileAssetLoader", {__construct:function() {
|
|
117
117
|
this.__parent.__construct.call(this);
|
|
118
118
|
this.fb = [];
|
|
119
119
|
}, addLoader:function(e) {
|
|
@@ -126,13 +126,13 @@ m.onRuntimeInitialized = function() {
|
|
|
126
126
|
}
|
|
127
127
|
return !1;
|
|
128
128
|
},});
|
|
129
|
-
let d =
|
|
130
|
-
|
|
131
|
-
return d.call(this, e, f, g,
|
|
129
|
+
let d = n.computeAlignment;
|
|
130
|
+
n.computeAlignment = function(e, f, g, m, p = 1.0) {
|
|
131
|
+
return d.call(this, e, f, g, m, p);
|
|
132
132
|
};
|
|
133
133
|
};
|
|
134
|
-
const fa =
|
|
135
|
-
|
|
134
|
+
const fa = n.onRuntimeInitialized;
|
|
135
|
+
n.onRuntimeInitialized = function() {
|
|
136
136
|
function a(k) {
|
|
137
137
|
this.F = k;
|
|
138
138
|
this.yb = k.getContext("2d");
|
|
@@ -196,8 +196,8 @@ m.onRuntimeInitialized = function() {
|
|
|
196
196
|
}
|
|
197
197
|
q = Math.min(q, k);
|
|
198
198
|
q = Math.min(v, k);
|
|
199
|
-
B.sort((Y,
|
|
200
|
-
y = new
|
|
199
|
+
B.sort((Y, sb) => sb.Ia - Y.Ia);
|
|
200
|
+
y = new n.DynamicRectanizer(k);
|
|
201
201
|
for (E = 0; E < B.length;) {
|
|
202
202
|
y.reset(q, v);
|
|
203
203
|
for (D = E; D < B.length; ++D) {
|
|
@@ -209,7 +209,7 @@ m.onRuntimeInitialized = function() {
|
|
|
209
209
|
H.ra = F & 65535;
|
|
210
210
|
H.sa = F >> 16;
|
|
211
211
|
}
|
|
212
|
-
H =
|
|
212
|
+
H = m.push(y.drawWidth());
|
|
213
213
|
F = p.push(y.drawHeight());
|
|
214
214
|
console.assert(H >= y.drawWidth());
|
|
215
215
|
console.assert(F >= y.drawHeight());
|
|
@@ -221,15 +221,15 @@ m.onRuntimeInitialized = function() {
|
|
|
221
221
|
for (H = E; H < D; ++H) {
|
|
222
222
|
F = B[H];
|
|
223
223
|
d.saveClipRect(F.ra, F.sa, F.ra + F.fa, F.sa + F.ea);
|
|
224
|
-
let Y = new
|
|
224
|
+
let Y = new n.Mat2D();
|
|
225
225
|
Y.xx = F.fa / F.F.width;
|
|
226
226
|
Y.yy = F.ea / F.F.height;
|
|
227
227
|
Y.xy = Y.yx = 0;
|
|
228
228
|
Y.tx = F.ra;
|
|
229
229
|
Y.ty = F.sa;
|
|
230
230
|
d.transform(Y);
|
|
231
|
-
for (const
|
|
232
|
-
|
|
231
|
+
for (const sb of F.S) {
|
|
232
|
+
sb();
|
|
233
233
|
}
|
|
234
234
|
d.restoreClipRect();
|
|
235
235
|
F.S = [];
|
|
@@ -244,8 +244,8 @@ m.onRuntimeInitialized = function() {
|
|
|
244
244
|
}
|
|
245
245
|
fa && fa();
|
|
246
246
|
let d = null;
|
|
247
|
-
const e = new Set(), f =
|
|
248
|
-
|
|
247
|
+
const e = new Set(), f = n.makeRenderer;
|
|
248
|
+
n.makeRenderer = function(k, q) {
|
|
249
249
|
if (!d) {
|
|
250
250
|
function v(y) {
|
|
251
251
|
var B = document.createElement("canvas");
|
|
@@ -265,25 +265,25 @@ m.onRuntimeInitialized = function() {
|
|
|
265
265
|
}
|
|
266
266
|
return q ? new a(k) : b(k, d.Ja);
|
|
267
267
|
};
|
|
268
|
-
const g =
|
|
269
|
-
|
|
268
|
+
const g = n.Artboard.prototype.draw;
|
|
269
|
+
n.Artboard.prototype.draw = function(k) {
|
|
270
270
|
k.S ? k.S.push(g.bind(this, k.Cb)) : g.call(this, k);
|
|
271
271
|
};
|
|
272
|
-
const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
const m = new da(), p = new da(), l = new ca();
|
|
273
|
+
n.requestAnimationFrame = l.requestAnimationFrame.bind(l);
|
|
274
|
+
n.cancelAnimationFrame = l.cancelAnimationFrame.bind(l);
|
|
275
|
+
n.enableFPSCounter = l.Jb.bind(l);
|
|
276
276
|
l.jb = c;
|
|
277
|
-
|
|
278
|
-
let t =
|
|
279
|
-
|
|
280
|
-
const y = new
|
|
277
|
+
n.resolveAnimationFrame = c;
|
|
278
|
+
let t = n.load;
|
|
279
|
+
n.load = function(k, q, v = !0) {
|
|
280
|
+
const y = new n.FallbackFileAssetLoader();
|
|
281
281
|
void 0 !== q && y.addLoader(q);
|
|
282
|
-
v && (q = new
|
|
282
|
+
v && (q = new n.CDNFileAssetLoader(), y.addLoader(q));
|
|
283
283
|
return Promise.resolve(t(k, y));
|
|
284
284
|
};
|
|
285
|
-
const u =
|
|
286
|
-
|
|
285
|
+
const u = n.WebGL2Renderer.prototype.clear;
|
|
286
|
+
n.WebGL2Renderer.prototype.clear = function() {
|
|
287
287
|
ja(this.zb);
|
|
288
288
|
const k = this.F;
|
|
289
289
|
if (this.Va != k.width || this.Ua != k.height) {
|
|
@@ -291,16 +291,16 @@ m.onRuntimeInitialized = function() {
|
|
|
291
291
|
}
|
|
292
292
|
u.call(this);
|
|
293
293
|
};
|
|
294
|
-
|
|
295
|
-
k =
|
|
294
|
+
n.decodeImage = function(k, q) {
|
|
295
|
+
k = n.decodeWebGL2Image(k);
|
|
296
296
|
q(k);
|
|
297
297
|
};
|
|
298
|
-
let x =
|
|
299
|
-
|
|
298
|
+
let x = n.Renderer.prototype.align;
|
|
299
|
+
n.Renderer.prototype.align = function(k, q, v, y, B = 1.0) {
|
|
300
300
|
x.call(this, k, q, v, y, B);
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
var ka = Object.assign({},
|
|
303
|
+
var ka = Object.assign({}, n), la = "./this.program", ma = "object" == typeof window, na = "function" == typeof importScripts, w = "", oa, pa;
|
|
304
304
|
if (ma || na) {
|
|
305
305
|
na ? w = self.location.href : "undefined" != typeof document && document.currentScript && (w = document.currentScript.src), _scriptDir && (w = _scriptDir), 0 !== w.indexOf("blob:") ? w = w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : w = "", na && (pa = a => {
|
|
306
306
|
var b = new XMLHttpRequest();
|
|
@@ -319,35 +319,35 @@ if (ma || na) {
|
|
|
319
319
|
d.send(null);
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
var qa =
|
|
323
|
-
Object.assign(
|
|
322
|
+
var qa = n.print || console.log.bind(console), z = n.printErr || console.error.bind(console);
|
|
323
|
+
Object.assign(n, ka);
|
|
324
324
|
ka = null;
|
|
325
|
-
|
|
325
|
+
n.thisProgram && (la = n.thisProgram);
|
|
326
326
|
var ra;
|
|
327
|
-
|
|
328
|
-
var noExitRuntime =
|
|
327
|
+
n.wasmBinary && (ra = n.wasmBinary);
|
|
328
|
+
var noExitRuntime = n.noExitRuntime || !0;
|
|
329
329
|
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
330
330
|
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
331
331
|
function ya() {
|
|
332
332
|
var a = ta.buffer;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
333
|
+
n.HEAP8 = C = new Int8Array(a);
|
|
334
|
+
n.HEAP16 = I = new Int16Array(a);
|
|
335
|
+
n.HEAP32 = J = new Int32Array(a);
|
|
336
|
+
n.HEAPU8 = G = new Uint8Array(a);
|
|
337
|
+
n.HEAPU16 = va = new Uint16Array(a);
|
|
338
|
+
n.HEAPU32 = K = new Uint32Array(a);
|
|
339
|
+
n.HEAPF32 = wa = new Float32Array(a);
|
|
340
|
+
n.HEAPF64 = xa = new Float64Array(a);
|
|
341
341
|
}
|
|
342
342
|
var za, Aa = [], Ba = [], Ca = [];
|
|
343
343
|
function Da() {
|
|
344
|
-
var a =
|
|
344
|
+
var a = n.preRun.shift();
|
|
345
345
|
Aa.unshift(a);
|
|
346
346
|
}
|
|
347
347
|
var Ea = 0, Fa = null, Ga = null;
|
|
348
348
|
function sa(a) {
|
|
349
|
-
if (
|
|
350
|
-
|
|
349
|
+
if (n.onAbort) {
|
|
350
|
+
n.onAbort(a);
|
|
351
351
|
}
|
|
352
352
|
a = "Aborted(" + a + ")";
|
|
353
353
|
z(a);
|
|
@@ -363,7 +363,7 @@ var Ia;
|
|
|
363
363
|
Ia = "webgl2_advanced.wasm";
|
|
364
364
|
if (!Ha(Ia)) {
|
|
365
365
|
var Ja = Ia;
|
|
366
|
-
Ia =
|
|
366
|
+
Ia = n.locateFile ? n.locateFile(Ja, w) : w + Ja;
|
|
367
367
|
}
|
|
368
368
|
function Ka(a) {
|
|
369
369
|
if (a == Ia && ra) {
|
|
@@ -406,7 +406,7 @@ function Na(a, b) {
|
|
|
406
406
|
return Ma(c, a, b);
|
|
407
407
|
}));
|
|
408
408
|
}
|
|
409
|
-
var Oa, Pa, Ta = {
|
|
409
|
+
var Oa, Pa, Ta = {494670:(a, b, c, d, e) => {
|
|
410
410
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
411
411
|
return 0;
|
|
412
412
|
}
|
|
@@ -422,9 +422,9 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
422
422
|
let f = window.h;
|
|
423
423
|
f.C = [];
|
|
424
424
|
f.mc = function(g) {
|
|
425
|
-
for (var
|
|
426
|
-
if (null == f.C[
|
|
427
|
-
return f.C[
|
|
425
|
+
for (var m = 0; m < f.C.length; ++m) {
|
|
426
|
+
if (null == f.C[m]) {
|
|
427
|
+
return f.C[m] = g, m;
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
430
|
f.C.push(g);
|
|
@@ -440,9 +440,9 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
f.Oc = function(g) {
|
|
443
|
-
for (var
|
|
444
|
-
if (f.C[
|
|
445
|
-
return f.xb(
|
|
443
|
+
for (var m = 0; m < f.C.length; ++m) {
|
|
444
|
+
if (f.C[m] == g) {
|
|
445
|
+
return f.xb(m);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
};
|
|
@@ -452,9 +452,9 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
452
452
|
f.wb = ["touchend", "click"];
|
|
453
453
|
f.unlock = function() {
|
|
454
454
|
for (var g = 0; g < f.C.length; ++g) {
|
|
455
|
-
var
|
|
456
|
-
null !=
|
|
457
|
-
Qa(
|
|
455
|
+
var m = f.C[g];
|
|
456
|
+
null != m && null != m.I && m.state === f.ia.sb && m.I.resume().then(() => {
|
|
457
|
+
Qa(m.kb);
|
|
458
458
|
}, p => {
|
|
459
459
|
console.error("Failed to resume audiocontext", p);
|
|
460
460
|
});
|
|
@@ -469,9 +469,9 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
469
469
|
}
|
|
470
470
|
window.h.Da += 1;
|
|
471
471
|
return 1;
|
|
472
|
-
},
|
|
472
|
+
}, 496848:() => {
|
|
473
473
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
474
|
-
},
|
|
474
|
+
}, 497012:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 497116:() => {
|
|
475
475
|
try {
|
|
476
476
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
477
477
|
a.close();
|
|
@@ -479,13 +479,13 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
479
479
|
} catch (c) {
|
|
480
480
|
return 0;
|
|
481
481
|
}
|
|
482
|
-
},
|
|
482
|
+
}, 497287:(a, b, c, d, e, f) => {
|
|
483
483
|
if ("undefined" === typeof window.h) {
|
|
484
484
|
return -1;
|
|
485
485
|
}
|
|
486
|
-
var g = {},
|
|
487
|
-
a == window.h.H.Ba && 0 != c && (
|
|
488
|
-
g.I = new (window.AudioContext || window.webkitAudioContext)(
|
|
486
|
+
var g = {}, m = {};
|
|
487
|
+
a == window.h.H.Ba && 0 != c && (m.sampleRate = c);
|
|
488
|
+
g.I = new (window.AudioContext || window.webkitAudioContext)(m);
|
|
489
489
|
g.I.suspend();
|
|
490
490
|
g.state = window.h.ia.stopped;
|
|
491
491
|
c = 0;
|
|
@@ -525,7 +525,7 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
525
525
|
a == window.h.H.Ba && g.Z.connect(g.I.destination);
|
|
526
526
|
g.kb = f;
|
|
527
527
|
return window.h.mc(g);
|
|
528
|
-
},
|
|
528
|
+
}, 500164:a => window.h.va(a).I.sampleRate, 500237:a => {
|
|
529
529
|
a = window.h.va(a);
|
|
530
530
|
void 0 !== a.Z && (a.Z.onaudioprocess = function() {
|
|
531
531
|
}, a.Z.disconnect(), a.Z = void 0);
|
|
@@ -533,19 +533,19 @@ var Oa, Pa, Ta = {494414:(a, b, c, d, e) => {
|
|
|
533
533
|
a.I.close();
|
|
534
534
|
a.I = void 0;
|
|
535
535
|
a.kb = void 0;
|
|
536
|
-
},
|
|
536
|
+
}, 500637:a => {
|
|
537
537
|
window.h.xb(a);
|
|
538
|
-
},
|
|
538
|
+
}, 500687:a => {
|
|
539
539
|
a = window.h.va(a);
|
|
540
540
|
a.I.resume();
|
|
541
541
|
a.state = window.h.ia.sb;
|
|
542
|
-
},
|
|
542
|
+
}, 500826:a => {
|
|
543
543
|
a = window.h.va(a);
|
|
544
544
|
a.I.suspend();
|
|
545
545
|
a.state = window.h.ia.stopped;
|
|
546
546
|
}}, Ua = a => {
|
|
547
547
|
for (; 0 < a.length;) {
|
|
548
|
-
a.shift()(
|
|
548
|
+
a.shift()(n);
|
|
549
549
|
}
|
|
550
550
|
}, Va = (a, b) => {
|
|
551
551
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
@@ -640,8 +640,8 @@ var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L
|
|
|
640
640
|
for (var f = 0; f < a.length; ++f) {
|
|
641
641
|
var g = a.charCodeAt(f);
|
|
642
642
|
if (55296 <= g && 57343 >= g) {
|
|
643
|
-
var
|
|
644
|
-
g = 65536 + ((g & 1023) << 10) |
|
|
643
|
+
var m = a.charCodeAt(++f);
|
|
644
|
+
g = 65536 + ((g & 1023) << 10) | m & 1023;
|
|
645
645
|
}
|
|
646
646
|
if (127 >= g) {
|
|
647
647
|
if (c >= d) {
|
|
@@ -704,7 +704,7 @@ var jb = {open:function(a) {
|
|
|
704
704
|
for (var e = 0, f = 0; f < d; f++) {
|
|
705
705
|
try {
|
|
706
706
|
var g = a.s.U.eb(a.s);
|
|
707
|
-
} catch (
|
|
707
|
+
} catch (m) {
|
|
708
708
|
throw new M(29);
|
|
709
709
|
}
|
|
710
710
|
if (void 0 === g && 0 === e) {
|
|
@@ -929,7 +929,7 @@ var N = {O:null, T() {
|
|
|
929
929
|
N.m.write(a, b, 0, d, c, !1);
|
|
930
930
|
return 0;
|
|
931
931
|
},},};
|
|
932
|
-
function
|
|
932
|
+
function rb(a, b) {
|
|
933
933
|
var c = 0;
|
|
934
934
|
a && (c |= 365);
|
|
935
935
|
b && (c |= 146);
|
|
@@ -1179,7 +1179,7 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1179
1179
|
b &= -131713;
|
|
1180
1180
|
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, nc:[], error:!1});
|
|
1181
1181
|
e.m.open && e.m.open(e);
|
|
1182
|
-
!
|
|
1182
|
+
!n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1183
1183
|
return e;
|
|
1184
1184
|
}, Qb = (a, b, c) => {
|
|
1185
1185
|
if (null === a.X) {
|
|
@@ -1208,14 +1208,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1208
1208
|
}));
|
|
1209
1209
|
}, Sb, Ub = (a, b, c) => {
|
|
1210
1210
|
a = Wa("/dev/" + a);
|
|
1211
|
-
var d =
|
|
1211
|
+
var d = rb(!!b, !!c);
|
|
1212
1212
|
Tb || (Tb = 64);
|
|
1213
1213
|
var e = Tb++ << 8 | 0;
|
|
1214
1214
|
ib(e, {open:f => {
|
|
1215
1215
|
f.seekable = !1;
|
|
1216
1216
|
}, close:() => {
|
|
1217
1217
|
c && c.buffer && c.buffer.length && c(10);
|
|
1218
|
-
}, read:(f, g,
|
|
1218
|
+
}, read:(f, g, m, p) => {
|
|
1219
1219
|
for (var l = 0, t = 0; t < p; t++) {
|
|
1220
1220
|
try {
|
|
1221
1221
|
var u = b();
|
|
@@ -1229,14 +1229,14 @@ var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {},
|
|
|
1229
1229
|
break;
|
|
1230
1230
|
}
|
|
1231
1231
|
l++;
|
|
1232
|
-
g[
|
|
1232
|
+
g[m + t] = u;
|
|
1233
1233
|
}
|
|
1234
1234
|
l && (f.node.timestamp = Date.now());
|
|
1235
1235
|
return l;
|
|
1236
|
-
}, write:(f, g,
|
|
1236
|
+
}, write:(f, g, m, p) => {
|
|
1237
1237
|
for (var l = 0; l < p; l++) {
|
|
1238
1238
|
try {
|
|
1239
|
-
c(g[
|
|
1239
|
+
c(g[m + l]);
|
|
1240
1240
|
} catch (t) {
|
|
1241
1241
|
throw new M(29);
|
|
1242
1242
|
}
|
|
@@ -1398,20 +1398,20 @@ function Bc(a) {
|
|
|
1398
1398
|
}
|
|
1399
1399
|
var Cc = {}, Dc = {};
|
|
1400
1400
|
function T(a, b, c) {
|
|
1401
|
-
function d(
|
|
1402
|
-
|
|
1403
|
-
|
|
1401
|
+
function d(m) {
|
|
1402
|
+
m = c(m);
|
|
1403
|
+
m.length !== a.length && wc("Mismatched type converter count");
|
|
1404
1404
|
for (var p = 0; p < a.length; ++p) {
|
|
1405
|
-
U(a[p],
|
|
1405
|
+
U(a[p], m[p]);
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
a.forEach(function(
|
|
1409
|
-
Dc[
|
|
1408
|
+
a.forEach(function(m) {
|
|
1409
|
+
Dc[m] = b;
|
|
1410
1410
|
});
|
|
1411
1411
|
var e = Array(b.length), f = [], g = 0;
|
|
1412
|
-
b.forEach((
|
|
1413
|
-
kc.hasOwnProperty(
|
|
1414
|
-
e[p] = kc[
|
|
1412
|
+
b.forEach((m, p) => {
|
|
1413
|
+
kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
|
|
1414
|
+
e[p] = kc[m];
|
|
1415
1415
|
++g;
|
|
1416
1416
|
g === f.length && d(e);
|
|
1417
1417
|
}));
|
|
@@ -1468,9 +1468,9 @@ function Ic(a, b, c) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
}
|
|
1470
1470
|
function Jc(a, b, c) {
|
|
1471
|
-
|
|
1471
|
+
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) && Q(`Cannot register public name '${a}' twice`), Ic(n, a, a), n.hasOwnProperty(c) && Q(`Cannot register multiple overloads of a function with the same number of arguments (${c})!`), n[a].B[c] = b) : (n[a] = b, void 0 !== c && (n[a].Lc = c));
|
|
1472
1472
|
}
|
|
1473
|
-
function Kc(a, b, c, d, e, f, g,
|
|
1473
|
+
function Kc(a, b, c, d, e, f, g, m) {
|
|
1474
1474
|
this.name = a;
|
|
1475
1475
|
this.constructor = b;
|
|
1476
1476
|
this.N = c;
|
|
@@ -1478,7 +1478,7 @@ function Kc(a, b, c, d, e, f, g, n) {
|
|
|
1478
1478
|
this.A = e;
|
|
1479
1479
|
this.Mb = f;
|
|
1480
1480
|
this.pa = g;
|
|
1481
|
-
this.Hb =
|
|
1481
|
+
this.Hb = m;
|
|
1482
1482
|
this.lb = [];
|
|
1483
1483
|
}
|
|
1484
1484
|
function Lc(a, b, c) {
|
|
@@ -1553,8 +1553,8 @@ function Qc(a, b, c, d) {
|
|
|
1553
1553
|
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1554
1554
|
}
|
|
1555
1555
|
function Rc(a, b, c) {
|
|
1556
|
-
|
|
1557
|
-
void 0 !==
|
|
1556
|
+
n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1557
|
+
void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].ga = c);
|
|
1558
1558
|
}
|
|
1559
1559
|
var Sc = [], Tc = a => {
|
|
1560
1560
|
var b = Sc[a];
|
|
@@ -1566,7 +1566,7 @@ var Sc = [], Tc = a => {
|
|
|
1566
1566
|
c.length = 0;
|
|
1567
1567
|
Object.assign(c, arguments);
|
|
1568
1568
|
if (a.includes("j")) {
|
|
1569
|
-
var d =
|
|
1569
|
+
var d = n["dynCall_" + a];
|
|
1570
1570
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1571
1571
|
} else {
|
|
1572
1572
|
d = Tc(b).apply(null, c);
|
|
@@ -1592,10 +1592,10 @@ function Wc(a, b) {
|
|
|
1592
1592
|
function Xc(a, b, c, d, e) {
|
|
1593
1593
|
var f = b.length;
|
|
1594
1594
|
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1595
|
-
var g = null !== b[1] && null !== c,
|
|
1595
|
+
var g = null !== b[1] && null !== c, m = !1;
|
|
1596
1596
|
for (c = 1; c < b.length; ++c) {
|
|
1597
1597
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
1598
|
-
|
|
1598
|
+
m = !0;
|
|
1599
1599
|
break;
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
@@ -1613,7 +1613,7 @@ function Xc(a, b, c, d, e) {
|
|
|
1613
1613
|
t[q] = b[q + 2].toWireType(x, arguments[q]), u.push(t[q]);
|
|
1614
1614
|
}
|
|
1615
1615
|
q = d.apply(null, u);
|
|
1616
|
-
if (
|
|
1616
|
+
if (m) {
|
|
1617
1617
|
Ac(x);
|
|
1618
1618
|
} else {
|
|
1619
1619
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
@@ -1808,7 +1808,7 @@ function ha(a) {
|
|
|
1808
1808
|
}
|
|
1809
1809
|
function ja(a) {
|
|
1810
1810
|
Dd = r[a];
|
|
1811
|
-
|
|
1811
|
+
n.xc = Z = Dd && Dd.J;
|
|
1812
1812
|
return !(a && !Z);
|
|
1813
1813
|
}
|
|
1814
1814
|
function ia(a) {
|
|
@@ -1977,7 +1977,7 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
1977
1977
|
0 === (y = v(k.getFullYear() - q.getFullYear())) && 0 === (y = v(k.getMonth() - q.getMonth())) && (y = v(k.getDate() - q.getDate()));
|
|
1978
1978
|
return y;
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1980
|
+
function m(k) {
|
|
1981
1981
|
switch(k.getDay()) {
|
|
1982
1982
|
case 0:
|
|
1983
1983
|
return new Date(k.getFullYear() - 1, 11, 29);
|
|
@@ -2007,8 +2007,8 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2007
2007
|
}
|
|
2008
2008
|
}
|
|
2009
2009
|
v = new Date(k.getFullYear() + 1, 0, 4);
|
|
2010
|
-
q =
|
|
2011
|
-
v =
|
|
2010
|
+
q = m(new Date(k.getFullYear(), 0, 4));
|
|
2011
|
+
v = m(v);
|
|
2012
2012
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2013
2013
|
}
|
|
2014
2014
|
var l = J[d + 40 >> 2];
|
|
@@ -2126,7 +2126,7 @@ Object.assign($b.prototype, {get(a) {
|
|
|
2126
2126
|
this.M[a] = void 0;
|
|
2127
2127
|
this.cb.push(a);
|
|
2128
2128
|
}});
|
|
2129
|
-
ac =
|
|
2129
|
+
ac = n.BindingError = class extends Error {
|
|
2130
2130
|
constructor(a) {
|
|
2131
2131
|
super(a);
|
|
2132
2132
|
this.name = "BindingError";
|
|
@@ -2134,33 +2134,33 @@ ac = m.BindingError = class extends Error {
|
|
|
2134
2134
|
};
|
|
2135
2135
|
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2136
2136
|
P.h = P.M.length;
|
|
2137
|
-
|
|
2137
|
+
n.count_emval_handles = function() {
|
|
2138
2138
|
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2139
2139
|
void 0 !== P.M[b] && ++a;
|
|
2140
2140
|
}
|
|
2141
2141
|
return a;
|
|
2142
2142
|
};
|
|
2143
|
-
dc =
|
|
2143
|
+
dc = n.PureVirtualError = cc("PureVirtualError");
|
|
2144
2144
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2145
2145
|
Sd[Td] = String.fromCharCode(Td);
|
|
2146
2146
|
}
|
|
2147
2147
|
ec = Sd;
|
|
2148
|
-
|
|
2148
|
+
n.getInheritedInstanceCount = function() {
|
|
2149
2149
|
return Object.keys(ic).length;
|
|
2150
2150
|
};
|
|
2151
|
-
|
|
2151
|
+
n.getLiveInheritedInstances = function() {
|
|
2152
2152
|
var a = [], b;
|
|
2153
2153
|
for (b in ic) {
|
|
2154
2154
|
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2155
2155
|
}
|
|
2156
2156
|
return a;
|
|
2157
2157
|
};
|
|
2158
|
-
|
|
2159
|
-
|
|
2158
|
+
n.flushPendingDeletes = gc;
|
|
2159
|
+
n.setDelayFunction = function(a) {
|
|
2160
2160
|
hc = a;
|
|
2161
2161
|
fc.length && hc && hc(gc);
|
|
2162
2162
|
};
|
|
2163
|
-
vc =
|
|
2163
|
+
vc = n.InternalError = class extends Error {
|
|
2164
2164
|
constructor(a) {
|
|
2165
2165
|
super(a);
|
|
2166
2166
|
this.name = "InternalError";
|
|
@@ -2248,7 +2248,7 @@ Qc.prototype.fromWireType = function(a) {
|
|
|
2248
2248
|
var e = sc(c, this.i, d.i);
|
|
2249
2249
|
return null === e ? b.call(this) : this.ya ? xc(d.i.N, {u:d, o:e, L:this, G:a,}) : xc(d.i.N, {u:d, o:e,});
|
|
2250
2250
|
};
|
|
2251
|
-
Vc =
|
|
2251
|
+
Vc = n.UnboundTypeError = cc("UnboundTypeError");
|
|
2252
2252
|
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2253
2253
|
Id.push(Array(Ud));
|
|
2254
2254
|
}
|
|
@@ -2374,17 +2374,17 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
var g = d ? Xb() : 0;
|
|
2376
2376
|
return Pb(b, c, g).X;
|
|
2377
|
-
} catch (
|
|
2378
|
-
if ("undefined" == typeof Vb || "ErrnoError" !==
|
|
2379
|
-
throw
|
|
2377
|
+
} catch (m) {
|
|
2378
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
|
|
2379
|
+
throw m;
|
|
2380
2380
|
}
|
|
2381
|
-
return -
|
|
2381
|
+
return -m.aa;
|
|
2382
2382
|
}
|
|
2383
2383
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2384
2384
|
a = S(a);
|
|
2385
2385
|
b = oc(b, "wrapper");
|
|
2386
2386
|
c = R(c);
|
|
2387
|
-
var d = [].slice, e = b.i, f = e.N, g = e.A.N,
|
|
2387
|
+
var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
|
|
2388
2388
|
a = Zb(a, function() {
|
|
2389
2389
|
e.A.lb.forEach(function(l) {
|
|
2390
2390
|
if (this[l] === g[l]) {
|
|
@@ -2396,7 +2396,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2396
2396
|
});
|
|
2397
2397
|
f.__construct = function() {
|
|
2398
2398
|
this === f && Q("Pass correct 'this' to __construct");
|
|
2399
|
-
var l =
|
|
2399
|
+
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2400
2400
|
pc(l);
|
|
2401
2401
|
var t = l.g;
|
|
2402
2402
|
l.notifyOnDestruction();
|
|
@@ -2424,10 +2424,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2424
2424
|
delete zc[a];
|
|
2425
2425
|
var c = b.Pa, d = b.V, e = b.$a, f = e.map(g => g.Qb).concat(e.map(g => g.ec));
|
|
2426
2426
|
T([a], f, g => {
|
|
2427
|
-
var
|
|
2427
|
+
var m = {};
|
|
2428
2428
|
e.forEach((p, l) => {
|
|
2429
2429
|
var t = g[l], u = p.Ob, x = p.Pb, k = g[l + e.length], q = p.dc, v = p.fc;
|
|
2430
|
-
|
|
2430
|
+
m[p.Kb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2431
2431
|
var D = [];
|
|
2432
2432
|
q(v, y, k.toWireType(D, B));
|
|
2433
2433
|
Ac(D);
|
|
@@ -2435,20 +2435,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2435
2435
|
});
|
|
2436
2436
|
return [{name:b.name, fromWireType:function(p) {
|
|
2437
2437
|
var l = {}, t;
|
|
2438
|
-
for (t in
|
|
2439
|
-
l[t] =
|
|
2438
|
+
for (t in m) {
|
|
2439
|
+
l[t] = m[t].read(p);
|
|
2440
2440
|
}
|
|
2441
2441
|
d(p);
|
|
2442
2442
|
return l;
|
|
2443
2443
|
}, toWireType:function(p, l) {
|
|
2444
|
-
for (var t in
|
|
2444
|
+
for (var t in m) {
|
|
2445
2445
|
if (!(t in l)) {
|
|
2446
2446
|
throw new TypeError(`Missing field: "${t}"`);
|
|
2447
2447
|
}
|
|
2448
2448
|
}
|
|
2449
2449
|
var u = c();
|
|
2450
|
-
for (t in
|
|
2451
|
-
|
|
2450
|
+
for (t in m) {
|
|
2451
|
+
m[t].write(u, l[t]);
|
|
2452
2452
|
}
|
|
2453
2453
|
null !== p && p.push(d, u);
|
|
2454
2454
|
return u;
|
|
@@ -2460,24 +2460,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2460
2460
|
b = S(b);
|
|
2461
2461
|
U(a, {name:b, fromWireType:function(g) {
|
|
2462
2462
|
return !!g;
|
|
2463
|
-
}, toWireType:function(g,
|
|
2464
|
-
return
|
|
2463
|
+
}, toWireType:function(g, m) {
|
|
2464
|
+
return m ? d : e;
|
|
2465
2465
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2466
2466
|
if (1 === c) {
|
|
2467
|
-
var
|
|
2467
|
+
var m = C;
|
|
2468
2468
|
} else if (2 === c) {
|
|
2469
|
-
|
|
2469
|
+
m = I;
|
|
2470
2470
|
} else if (4 === c) {
|
|
2471
|
-
|
|
2471
|
+
m = J;
|
|
2472
2472
|
} else {
|
|
2473
2473
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2474
2474
|
}
|
|
2475
|
-
return this.fromWireType(
|
|
2475
|
+
return this.fromWireType(m[g >> f]);
|
|
2476
2476
|
}, K:null,});
|
|
2477
|
-
}, _embind_register_class:function(a, b, c, d, e, f, g,
|
|
2477
|
+
}, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, t, u, x) {
|
|
2478
2478
|
t = S(t);
|
|
2479
2479
|
f = V(e, f);
|
|
2480
|
-
|
|
2480
|
+
m && (m = V(g, m));
|
|
2481
2481
|
l && (l = V(p, l));
|
|
2482
2482
|
x = V(u, x);
|
|
2483
2483
|
var k = Yb(t);
|
|
@@ -2507,7 +2507,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2507
2507
|
});
|
|
2508
2508
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2509
2509
|
q.prototype = B;
|
|
2510
|
-
var D = new Kc(t, q, B, x, v, f,
|
|
2510
|
+
var D = new Kc(t, q, B, x, v, f, m, l);
|
|
2511
2511
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2512
2512
|
v = new Qc(t, D, !0, !1);
|
|
2513
2513
|
y = new Qc(t + "*", D, !1, !1);
|
|
@@ -2517,19 +2517,19 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2517
2517
|
return [v, y, E];
|
|
2518
2518
|
});
|
|
2519
2519
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2520
|
-
var
|
|
2520
|
+
var m = Yc(c, d);
|
|
2521
2521
|
b = S(b);
|
|
2522
2522
|
f = V(e, f);
|
|
2523
2523
|
T([], [a], function(p) {
|
|
2524
2524
|
function l() {
|
|
2525
|
-
Wc(`Cannot call ${t} due to unbound types`,
|
|
2525
|
+
Wc(`Cannot call ${t} due to unbound types`, m);
|
|
2526
2526
|
}
|
|
2527
2527
|
p = p[0];
|
|
2528
2528
|
var t = `${p.name}.${b}`;
|
|
2529
2529
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2530
2530
|
var u = p.i.constructor;
|
|
2531
2531
|
void 0 === u[b] ? (l.ga = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2532
|
-
T([],
|
|
2532
|
+
T([], m, function(x) {
|
|
2533
2533
|
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2534
2534
|
void 0 === u[b].B ? (x.ga = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2535
2535
|
if (p.i.qa) {
|
|
@@ -2541,7 +2541,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2541
2541
|
});
|
|
2542
2542
|
return [];
|
|
2543
2543
|
});
|
|
2544
|
-
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g,
|
|
2544
|
+
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2545
2545
|
b = S(b);
|
|
2546
2546
|
f = V(e, f);
|
|
2547
2547
|
T([], [a], function(p) {
|
|
@@ -2549,7 +2549,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2549
2549
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2550
2550
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2551
2551
|
}, enumerable:!0, configurable:!0};
|
|
2552
|
-
t.set =
|
|
2552
|
+
t.set = m ? () => {
|
|
2553
2553
|
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2554
2554
|
} : () => {
|
|
2555
2555
|
Q(`${l} is a read-only property`);
|
|
@@ -2560,9 +2560,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2560
2560
|
var x = {get() {
|
|
2561
2561
|
return u.fromWireType(f(d));
|
|
2562
2562
|
}, enumerable:!0};
|
|
2563
|
-
|
|
2563
|
+
m && (m = V(g, m), x.set = k => {
|
|
2564
2564
|
var q = [];
|
|
2565
|
-
|
|
2565
|
+
m(d, u.toWireType(q, k));
|
|
2566
2566
|
Ac(q);
|
|
2567
2567
|
});
|
|
2568
2568
|
Object.defineProperty(p.i.constructor, b, x);
|
|
@@ -2573,24 +2573,24 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2573
2573
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2574
2574
|
var g = Yc(b, c);
|
|
2575
2575
|
e = V(d, e);
|
|
2576
|
-
T([], [a], function(
|
|
2577
|
-
|
|
2578
|
-
var p = `constructor ${
|
|
2579
|
-
void 0 ===
|
|
2580
|
-
if (void 0 !==
|
|
2581
|
-
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
Wc(`Cannot construct ${
|
|
2576
|
+
T([], [a], function(m) {
|
|
2577
|
+
m = m[0];
|
|
2578
|
+
var p = `constructor ${m.name}`;
|
|
2579
|
+
void 0 === m.i.$ && (m.i.$ = []);
|
|
2580
|
+
if (void 0 !== m.i.$[b - 1]) {
|
|
2581
|
+
throw new ac(`Cannot register multiple constructors with identical number of parameters (${b - 1}) for class '${m.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
|
|
2582
|
+
}
|
|
2583
|
+
m.i.$[b - 1] = () => {
|
|
2584
|
+
Wc(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2585
2585
|
};
|
|
2586
2586
|
T([], g, function(l) {
|
|
2587
2587
|
l.splice(1, 0, null);
|
|
2588
|
-
|
|
2588
|
+
m.i.$[b - 1] = Xc(p, l, null, e, f);
|
|
2589
2589
|
return [];
|
|
2590
2590
|
});
|
|
2591
2591
|
return [];
|
|
2592
2592
|
});
|
|
2593
|
-
}, _embind_register_class_function:function(a, b, c, d, e, f, g,
|
|
2593
|
+
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2594
2594
|
var p = Yc(c, d);
|
|
2595
2595
|
b = S(b);
|
|
2596
2596
|
f = V(e, f);
|
|
@@ -2601,7 +2601,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2601
2601
|
l = l[0];
|
|
2602
2602
|
var u = `${l.name}.${b}`;
|
|
2603
2603
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2604
|
-
|
|
2604
|
+
m && l.i.lb.push(b);
|
|
2605
2605
|
var x = l.i.N, k = x[b];
|
|
2606
2606
|
void 0 === k || void 0 === k.B && k.className !== l.name && k.ga === c - 2 ? (t.ga = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
|
|
2607
2607
|
T([], p, function(q) {
|
|
@@ -2611,7 +2611,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2611
2611
|
});
|
|
2612
2612
|
return [];
|
|
2613
2613
|
});
|
|
2614
|
-
}, _embind_register_class_property:function(a, b, c, d, e, f, g,
|
|
2614
|
+
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2615
2615
|
b = S(b);
|
|
2616
2616
|
e = V(d, e);
|
|
2617
2617
|
T([], [a], function(t) {
|
|
@@ -2631,7 +2631,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2631
2631
|
return q.fromWireType(e(f, B));
|
|
2632
2632
|
}, enumerable:!0};
|
|
2633
2633
|
if (p) {
|
|
2634
|
-
p = V(
|
|
2634
|
+
p = V(m, p);
|
|
2635
2635
|
var y = k[1];
|
|
2636
2636
|
v.set = function(B) {
|
|
2637
2637
|
var D = Zc(this, t, u + " setter"), E = [];
|
|
@@ -2688,22 +2688,22 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2688
2688
|
Jc(a, function() {
|
|
2689
2689
|
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2690
2690
|
}, b - 1);
|
|
2691
|
-
T([], g, function(
|
|
2692
|
-
Rc(a, Xc(a, [
|
|
2691
|
+
T([], g, function(m) {
|
|
2692
|
+
Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2693
2693
|
return [];
|
|
2694
2694
|
});
|
|
2695
2695
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2696
2696
|
b = S(b);
|
|
2697
2697
|
-1 === e && (e = 4294967295);
|
|
2698
2698
|
e = Ec(c);
|
|
2699
|
-
var f =
|
|
2699
|
+
var f = m => m;
|
|
2700
2700
|
if (0 === d) {
|
|
2701
2701
|
var g = 32 - 8 * c;
|
|
2702
|
-
f =
|
|
2702
|
+
f = m => m << g >>> g;
|
|
2703
2703
|
}
|
|
2704
|
-
c = b.includes("unsigned") ? function(
|
|
2704
|
+
c = b.includes("unsigned") ? function(m, p) {
|
|
2705
2705
|
return p >>> 0;
|
|
2706
|
-
} : function(
|
|
2706
|
+
} : function(m, p) {
|
|
2707
2707
|
return p;
|
|
2708
2708
|
};
|
|
2709
2709
|
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
@@ -2722,9 +2722,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2722
2722
|
U(a, {name:b, fromWireType:function(d) {
|
|
2723
2723
|
var e = K[d >> 2], f = d + 4;
|
|
2724
2724
|
if (c) {
|
|
2725
|
-
for (var g = f,
|
|
2726
|
-
var p = f +
|
|
2727
|
-
if (
|
|
2725
|
+
for (var g = f, m = 0; m <= e; ++m) {
|
|
2726
|
+
var p = f + m;
|
|
2727
|
+
if (m == e || 0 == G[p]) {
|
|
2728
2728
|
g = g ? L(G, g, p - g) : "";
|
|
2729
2729
|
if (void 0 === l) {
|
|
2730
2730
|
var l = g;
|
|
@@ -2736,8 +2736,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2736
2736
|
}
|
|
2737
2737
|
} else {
|
|
2738
2738
|
l = Array(e);
|
|
2739
|
-
for (
|
|
2740
|
-
l[
|
|
2739
|
+
for (m = 0; m < e; ++m) {
|
|
2740
|
+
l[m] = String.fromCharCode(G[f + m]);
|
|
2741
2741
|
}
|
|
2742
2742
|
l = l.join("");
|
|
2743
2743
|
}
|
|
@@ -2748,8 +2748,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2748
2748
|
var f = "string" == typeof e;
|
|
2749
2749
|
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2750
2750
|
var g = c && f ? db(e) : e.length;
|
|
2751
|
-
var
|
|
2752
|
-
K[
|
|
2751
|
+
var m = Ld(4 + g + 1), p = m + 4;
|
|
2752
|
+
K[m >> 2] = g;
|
|
2753
2753
|
if (c && f) {
|
|
2754
2754
|
eb(e, G, p, g + 1);
|
|
2755
2755
|
} else {
|
|
@@ -2765,8 +2765,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
2767
|
}
|
|
2768
|
-
null !== d && d.push(nc,
|
|
2769
|
-
return
|
|
2768
|
+
null !== d && d.push(nc, m);
|
|
2769
|
+
return m;
|
|
2770
2770
|
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2771
2771
|
nc(d);
|
|
2772
2772
|
},});
|
|
@@ -2777,14 +2777,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2777
2777
|
var e = fd;
|
|
2778
2778
|
var f = gd;
|
|
2779
2779
|
var g = () => va;
|
|
2780
|
-
var
|
|
2780
|
+
var m = 1;
|
|
2781
2781
|
} else {
|
|
2782
|
-
4 === b && (d = hd, e = jd, f = kd, g = () => K,
|
|
2782
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, m = 2);
|
|
2783
2783
|
}
|
|
2784
2784
|
U(a, {name:c, fromWireType:function(p) {
|
|
2785
2785
|
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2786
2786
|
var q = p + 4 + k * b;
|
|
2787
|
-
if (k == l || 0 == t[q >>
|
|
2787
|
+
if (k == l || 0 == t[q >> m]) {
|
|
2788
2788
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
@@ -2793,7 +2793,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2793
2793
|
}, toWireType:function(p, l) {
|
|
2794
2794
|
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2795
2795
|
var t = f(l), u = Ld(4 + t + b);
|
|
2796
|
-
K[u >> 2] = t >>
|
|
2796
|
+
K[u >> 2] = t >> m;
|
|
2797
2797
|
e(l, u + 4, t + b);
|
|
2798
2798
|
null !== p && p.push(nc, u);
|
|
2799
2799
|
return u;
|
|
@@ -2802,8 +2802,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2802
2802
|
},});
|
|
2803
2803
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2804
2804
|
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), $a:[],};
|
|
2805
|
-
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g,
|
|
2806
|
-
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(
|
|
2805
|
+
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2806
|
+
zc[a].$a.push({Kb:S(b), Qb:c, Ob:V(d, e), Pb:f, ec:g, dc:V(m, p), fc:l,});
|
|
2807
2807
|
}, _embind_register_void:function(a, b) {
|
|
2808
2808
|
b = S(b);
|
|
2809
2809
|
U(a, {Yb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
@@ -2837,11 +2837,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2837
2837
|
return e;
|
|
2838
2838
|
}
|
|
2839
2839
|
var f = Array(a - 1);
|
|
2840
|
-
e = od((g,
|
|
2840
|
+
e = od((g, m, p, l) => {
|
|
2841
2841
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2842
2842
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2843
2843
|
}
|
|
2844
|
-
g = g[
|
|
2844
|
+
g = g[m].apply(g, f);
|
|
2845
2845
|
for (u = 0; u < a - 1; ++u) {
|
|
2846
2846
|
c[u + 1].Gb && c[u + 1].Gb(f[u]);
|
|
2847
2847
|
}
|
|
@@ -2876,21 +2876,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2876
2876
|
}, abort:() => {
|
|
2877
2877
|
sa("");
|
|
2878
2878
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2879
|
-
(a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(
|
|
2879
|
+
(a = r[a].J.ja) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
2880
2880
|
}, decode_image:function(a, b, c) {
|
|
2881
|
-
var d =
|
|
2882
|
-
d || (d = new Map(),
|
|
2881
|
+
var d = n.images;
|
|
2882
|
+
d || (d = new Map(), n.images = d);
|
|
2883
2883
|
var e = new Image();
|
|
2884
2884
|
d.set(a, e);
|
|
2885
|
-
b =
|
|
2885
|
+
b = n.HEAP8.subarray(b, b + c);
|
|
2886
2886
|
c = new Uint8Array(c);
|
|
2887
2887
|
c.set(b);
|
|
2888
2888
|
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2889
2889
|
e.onload = function() {
|
|
2890
|
-
|
|
2890
|
+
n._setWebImage(a, e.width, e.height);
|
|
2891
2891
|
};
|
|
2892
2892
|
}, delete_image:function(a) {
|
|
2893
|
-
var b =
|
|
2893
|
+
var b = n.images;
|
|
2894
2894
|
b && b.get(a) && b.delete(a);
|
|
2895
2895
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2896
2896
|
rd.length = 0;
|
|
@@ -2949,7 +2949,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2949
2949
|
a.ja = a.getExtension("WEBGL_shader_pixel_local_storage");
|
|
2950
2950
|
return !(!a.ja || !a.ja.isCoherent());
|
|
2951
2951
|
}, endPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2952
|
-
(a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(
|
|
2952
|
+
(a = r[a].J.ja) && a.endPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
2953
2953
|
}, environ_get:(a, b) => {
|
|
2954
2954
|
var c = 0;
|
|
2955
2955
|
Hd().forEach(function(d, e) {
|
|
@@ -2999,9 +2999,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2999
2999
|
var e = Ib(a);
|
|
3000
3000
|
a = b;
|
|
3001
3001
|
for (var f, g = b = 0; g < c; g++) {
|
|
3002
|
-
var
|
|
3002
|
+
var m = K[a >> 2], p = K[a + 4 >> 2];
|
|
3003
3003
|
a += 8;
|
|
3004
|
-
var l = e, t =
|
|
3004
|
+
var l = e, t = m, u = p, x = f, k = C;
|
|
3005
3005
|
if (0 > u || 0 > x) {
|
|
3006
3006
|
throw new M(28);
|
|
3007
3007
|
}
|
|
@@ -3071,9 +3071,9 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3071
3071
|
var e = Ib(a);
|
|
3072
3072
|
a = b;
|
|
3073
3073
|
for (var f, g = b = 0; g < c; g++) {
|
|
3074
|
-
var
|
|
3074
|
+
var m = K[a >> 2], p = K[a + 4 >> 2];
|
|
3075
3075
|
a += 8;
|
|
3076
|
-
var l = e, t =
|
|
3076
|
+
var l = e, t = m, u = p, x = f, k = C;
|
|
3077
3077
|
if (0 > u || 0 > x) {
|
|
3078
3078
|
throw new M(28);
|
|
3079
3079
|
}
|
|
@@ -3141,8 +3141,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3141
3141
|
Z.blendEquation(a);
|
|
3142
3142
|
}, glBlendFunc:function(a, b) {
|
|
3143
3143
|
Z.blendFunc(a, b);
|
|
3144
|
-
}, glBlitFramebuffer:function(a, b, c, d, e, f, g,
|
|
3145
|
-
Z.blitFramebuffer(a, b, c, d, e, f, g,
|
|
3144
|
+
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3145
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
|
|
3146
3146
|
}, glBufferData:function(a, b, c, d) {
|
|
3147
3147
|
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3148
3148
|
}, glBufferSubData:function(a, b, c, d) {
|
|
@@ -3295,15 +3295,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3295
3295
|
if (!d) {
|
|
3296
3296
|
for (c.oa = d = {}, c.tb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3297
3297
|
var g = Z.getActiveUniform(c, f);
|
|
3298
|
-
var
|
|
3298
|
+
var m = g.name;
|
|
3299
3299
|
g = g.size;
|
|
3300
|
-
var p = Nd(
|
|
3301
|
-
p = 0 < p ?
|
|
3300
|
+
var p = Nd(m);
|
|
3301
|
+
p = 0 < p ? m.slice(0, p) : m;
|
|
3302
3302
|
var l = c.Sa;
|
|
3303
3303
|
c.Sa += g;
|
|
3304
3304
|
e[p] = [g, l];
|
|
3305
|
-
for (
|
|
3306
|
-
d[l] =
|
|
3305
|
+
for (m = 0; m < g; ++m) {
|
|
3306
|
+
d[l] = m, c.tb[l++] = p;
|
|
3307
3307
|
}
|
|
3308
3308
|
}
|
|
3309
3309
|
}
|
|
@@ -3324,6 +3324,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3324
3324
|
d[e] = J[c + 4 * e >> 2];
|
|
3325
3325
|
}
|
|
3326
3326
|
Z.invalidateFramebuffer(a, d);
|
|
3327
|
+
}, glInvalidateSubFramebuffer:function(a, b, c, d, e, f, g) {
|
|
3328
|
+
for (var m = Id[b], p = 0; p < b; p++) {
|
|
3329
|
+
m[p] = J[c + 4 * p >> 2];
|
|
3330
|
+
}
|
|
3331
|
+
Z.invalidateSubFramebuffer(a, m, d, e, f, g);
|
|
3327
3332
|
}, glLinkProgram:function(a) {
|
|
3328
3333
|
a = W[a];
|
|
3329
3334
|
Z.linkProgram(a);
|
|
@@ -3337,8 +3342,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3337
3342
|
Z.scissor(a, b, c, d);
|
|
3338
3343
|
}, glShaderSource:function(a, b, c, d) {
|
|
3339
3344
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3340
|
-
var g = d ? J[d + 4 * f >> 2] : -1,
|
|
3341
|
-
g =
|
|
3345
|
+
var g = d ? J[d + 4 * f >> 2] : -1, m = J[c + 4 * f >> 2];
|
|
3346
|
+
g = m ? L(G, m, 0 > g ? void 0 : g) : "";
|
|
3342
3347
|
e += g;
|
|
3343
3348
|
}
|
|
3344
3349
|
Z.shaderSource(zd[a], e);
|
|
@@ -3356,15 +3361,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3356
3361
|
Z.texParameteri(a, b, c);
|
|
3357
3362
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3358
3363
|
Z.texStorage2D(a, b, c, d, e);
|
|
3359
|
-
}, glTexSubImage2D:function(a, b, c, d, e, f, g,
|
|
3364
|
+
}, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
|
|
3360
3365
|
if (Z.Ka) {
|
|
3361
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3366
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
|
|
3362
3367
|
} else if (p) {
|
|
3363
|
-
var l =
|
|
3368
|
+
var l = m - 5120;
|
|
3364
3369
|
l = 0 == l ? C : 1 == l ? G : 2 == l ? I : 4 == l ? J : 6 == l ? wa : 5 == l || 28922 == l || 28520 == l || 30779 == l || 30782 == l ? K : va;
|
|
3365
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3370
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3366
3371
|
} else {
|
|
3367
|
-
Z.texSubImage2D(a, b, c, d, e, f, g,
|
|
3372
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
|
|
3368
3373
|
}
|
|
3369
3374
|
}, glUniform1i:function(a, b) {
|
|
3370
3375
|
var c = Z, d = c.uniform1i;
|
|
@@ -3395,7 +3400,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3395
3400
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3396
3401
|
(a = r[a].J.mb) && a.provokingVertexWEBGL(b);
|
|
3397
3402
|
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3398
|
-
var c =
|
|
3403
|
+
var c = n.images;
|
|
3399
3404
|
c && (b = c.get(b)) && (a = r[a].J, a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, b));
|
|
3400
3405
|
}};
|
|
3401
3406
|
(function() {
|
|
@@ -3406,7 +3411,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3406
3411
|
za = A.__indirect_function_table;
|
|
3407
3412
|
Ba.unshift(A.__wasm_call_ctors);
|
|
3408
3413
|
Ea--;
|
|
3409
|
-
|
|
3414
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3410
3415
|
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3411
3416
|
var d = Ga;
|
|
3412
3417
|
Ga = null;
|
|
@@ -3416,10 +3421,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3416
3421
|
}
|
|
3417
3422
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3418
3423
|
Ea++;
|
|
3419
|
-
|
|
3420
|
-
if (
|
|
3424
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3425
|
+
if (n.instantiateWasm) {
|
|
3421
3426
|
try {
|
|
3422
|
-
return
|
|
3427
|
+
return n.instantiateWasm(b, a);
|
|
3423
3428
|
} catch (c) {
|
|
3424
3429
|
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3425
3430
|
}
|
|
@@ -3430,23 +3435,23 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3430
3435
|
return {};
|
|
3431
3436
|
})();
|
|
3432
3437
|
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3433
|
-
|
|
3434
|
-
var Qa =
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
var Ra =
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3438
|
+
n._setWebImage = (a, b, c) => (n._setWebImage = A.setWebImage)(a, b, c);
|
|
3439
|
+
var Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3440
|
+
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3441
|
+
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3442
|
+
var Ra = n._ma_device_process_pcm_frames_capture__webaudio = (a, b, c) => (Ra = n._ma_device_process_pcm_frames_capture__webaudio = A.ma_device_process_pcm_frames_capture__webaudio)(a, b, c), Sa = n._ma_device_process_pcm_frames_playback__webaudio = (a, b, c) => (Sa = n._ma_device_process_pcm_frames_playback__webaudio = A.ma_device_process_pcm_frames_playback__webaudio)(a, b, c), Vd = () => (Vd = A.__errno_location)(), mc = a => (mc = A.__getTypeName)(a);
|
|
3443
|
+
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3444
|
+
n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3445
|
+
n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3446
|
+
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3447
|
+
n.dynCall_jii = (a, b, c) => (n.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3448
|
+
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3449
|
+
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3450
|
+
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3451
|
+
n.dynCall_iiiiijj = (a, b, c, d, e, f, g, m, p) => (n.dynCall_iiiiijj = A.dynCall_iiiiijj)(a, b, c, d, e, f, g, m, p);
|
|
3452
|
+
n.dynCall_iiiiiijj = (a, b, c, d, e, f, g, m, p, l) => (n.dynCall_iiiiiijj = A.dynCall_iiiiiijj)(a, b, c, d, e, f, g, m, p, l);
|
|
3453
|
+
n.___start_em_js = 492236;
|
|
3454
|
+
n.___stop_em_js = 494670;
|
|
3450
3455
|
var Xd;
|
|
3451
3456
|
Ga = function Yd() {
|
|
3452
3457
|
Xd || Zd();
|
|
@@ -3454,17 +3459,17 @@ Ga = function Yd() {
|
|
|
3454
3459
|
};
|
|
3455
3460
|
function Zd() {
|
|
3456
3461
|
function a() {
|
|
3457
|
-
if (!Xd && (Xd = !0,
|
|
3458
|
-
|
|
3462
|
+
if (!Xd && (Xd = !0, n.calledRun = !0, !ua)) {
|
|
3463
|
+
n.noFSInit || Sb || (Sb = !0, Rb(), n.stdin = n.stdin, n.stdout = n.stdout, n.stderr = n.stderr, n.stdin ? Ub("stdin", n.stdin) : Nb("/dev/tty", "/dev/stdin"), n.stdout ? Ub("stdout", null, n.stdout) : Nb("/dev/tty", "/dev/stdout"), n.stderr ? Ub("stderr", null, n.stderr) : Nb("/dev/tty1", "/dev/stderr"), Pb("/dev/stdin", 0), Pb("/dev/stdout", 1), Pb("/dev/stderr", 1));
|
|
3459
3464
|
yb = !1;
|
|
3460
3465
|
Ua(Ba);
|
|
3461
|
-
aa(
|
|
3462
|
-
if (
|
|
3463
|
-
|
|
3466
|
+
aa(n);
|
|
3467
|
+
if (n.onRuntimeInitialized) {
|
|
3468
|
+
n.onRuntimeInitialized();
|
|
3464
3469
|
}
|
|
3465
|
-
if (
|
|
3466
|
-
for ("function" == typeof
|
|
3467
|
-
var b =
|
|
3470
|
+
if (n.postRun) {
|
|
3471
|
+
for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
|
|
3472
|
+
var b = n.postRun.shift();
|
|
3468
3473
|
Ca.unshift(b);
|
|
3469
3474
|
}
|
|
3470
3475
|
}
|
|
@@ -3472,23 +3477,23 @@ function Zd() {
|
|
|
3472
3477
|
}
|
|
3473
3478
|
}
|
|
3474
3479
|
if (!(0 < Ea)) {
|
|
3475
|
-
if (
|
|
3476
|
-
for ("function" == typeof
|
|
3480
|
+
if (n.preRun) {
|
|
3481
|
+
for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
|
|
3477
3482
|
Da();
|
|
3478
3483
|
}
|
|
3479
3484
|
}
|
|
3480
3485
|
Ua(Aa);
|
|
3481
|
-
0 < Ea || (
|
|
3486
|
+
0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
|
|
3482
3487
|
setTimeout(function() {
|
|
3483
|
-
|
|
3488
|
+
n.setStatus("");
|
|
3484
3489
|
}, 1);
|
|
3485
3490
|
a();
|
|
3486
3491
|
}, 1)) : a());
|
|
3487
3492
|
}
|
|
3488
3493
|
}
|
|
3489
|
-
if (
|
|
3490
|
-
for ("function" == typeof
|
|
3491
|
-
|
|
3494
|
+
if (n.preInit) {
|
|
3495
|
+
for ("function" == typeof n.preInit && (n.preInit = [n.preInit]); 0 < n.preInit.length;) {
|
|
3496
|
+
n.preInit.pop()();
|
|
3492
3497
|
}
|
|
3493
3498
|
}
|
|
3494
3499
|
Zd();
|