@rive-app/webgl2-advanced 2.23.4 → 2.23.5
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 +955 -957
package/webgl2_advanced.mjs
CHANGED
|
@@ -196,7 +196,7 @@ n.onRuntimeInitialized = function() {
|
|
|
196
196
|
}
|
|
197
197
|
q = Math.min(q, k);
|
|
198
198
|
q = Math.min(v, k);
|
|
199
|
-
B.sort((
|
|
199
|
+
B.sort((Y, rb) => rb.Ia - Y.Ia);
|
|
200
200
|
y = new n.DynamicRectanizer(k);
|
|
201
201
|
for (E = 0; E < B.length;) {
|
|
202
202
|
y.reset(q, v);
|
|
@@ -221,13 +221,13 @@ n.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.ea, F.sa + F.da);
|
|
224
|
-
let
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
d.transform(
|
|
224
|
+
let Y = new n.Mat2D();
|
|
225
|
+
Y.xx = F.ea / F.F.width;
|
|
226
|
+
Y.yy = F.da / F.F.height;
|
|
227
|
+
Y.xy = Y.yx = 0;
|
|
228
|
+
Y.tx = F.ra;
|
|
229
|
+
Y.ty = F.sa;
|
|
230
|
+
d.transform(Y);
|
|
231
231
|
for (const rb of F.S) {
|
|
232
232
|
rb();
|
|
233
233
|
}
|
|
@@ -315,70 +315,70 @@ if (ma || na) {
|
|
|
315
315
|
d.send(null);
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
var qa = n.print || console.log.bind(console),
|
|
318
|
+
var qa = n.print || console.log.bind(console), z = n.printErr || console.error.bind(console);
|
|
319
319
|
Object.assign(n, ka);
|
|
320
320
|
ka = null;
|
|
321
321
|
n.thisProgram && (la = n.thisProgram);
|
|
322
|
-
var
|
|
323
|
-
n.wasmBinary && (
|
|
322
|
+
var ra;
|
|
323
|
+
n.wasmBinary && (ra = n.wasmBinary);
|
|
324
324
|
var noExitRuntime = n.noExitRuntime || !0;
|
|
325
|
-
"object" != typeof WebAssembly &&
|
|
326
|
-
var
|
|
327
|
-
function
|
|
328
|
-
var a =
|
|
329
|
-
n.HEAP8 =
|
|
330
|
-
n.HEAP16 =
|
|
331
|
-
n.HEAP32 =
|
|
332
|
-
n.HEAPU8 =
|
|
333
|
-
n.HEAPU16 =
|
|
334
|
-
n.HEAPU32 =
|
|
335
|
-
n.HEAPF32 =
|
|
336
|
-
n.HEAPF64 =
|
|
337
|
-
}
|
|
338
|
-
var
|
|
339
|
-
function
|
|
325
|
+
"object" != typeof WebAssembly && sa("no native wasm support detected");
|
|
326
|
+
var ta, A, ua = !1, C, G, I, va, J, K, wa, xa;
|
|
327
|
+
function ya() {
|
|
328
|
+
var a = ta.buffer;
|
|
329
|
+
n.HEAP8 = C = new Int8Array(a);
|
|
330
|
+
n.HEAP16 = I = new Int16Array(a);
|
|
331
|
+
n.HEAP32 = J = new Int32Array(a);
|
|
332
|
+
n.HEAPU8 = G = new Uint8Array(a);
|
|
333
|
+
n.HEAPU16 = va = new Uint16Array(a);
|
|
334
|
+
n.HEAPU32 = K = new Uint32Array(a);
|
|
335
|
+
n.HEAPF32 = wa = new Float32Array(a);
|
|
336
|
+
n.HEAPF64 = xa = new Float64Array(a);
|
|
337
|
+
}
|
|
338
|
+
var za, Aa = [], Ba = [], Ca = [];
|
|
339
|
+
function Da() {
|
|
340
340
|
var a = n.preRun.shift();
|
|
341
|
-
|
|
341
|
+
Aa.unshift(a);
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
343
|
+
var Ea = 0, Fa = null, Ga = null;
|
|
344
|
+
function sa(a) {
|
|
345
345
|
if (n.onAbort) {
|
|
346
346
|
n.onAbort(a);
|
|
347
347
|
}
|
|
348
348
|
a = "Aborted(" + a + ")";
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
z(a);
|
|
350
|
+
ua = !0;
|
|
351
351
|
a = new WebAssembly.RuntimeError(a + ". Build with -sASSERTIONS for more info.");
|
|
352
352
|
ba(a);
|
|
353
353
|
throw a;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ha(a) {
|
|
356
356
|
return a.startsWith("data:application/octet-stream;base64,");
|
|
357
357
|
}
|
|
358
|
-
var
|
|
359
|
-
|
|
360
|
-
if (!Ia
|
|
361
|
-
var
|
|
362
|
-
|
|
358
|
+
var Ia;
|
|
359
|
+
Ia = "webgl2_advanced.wasm";
|
|
360
|
+
if (!Ha(Ia)) {
|
|
361
|
+
var Ja = Ia;
|
|
362
|
+
Ia = n.locateFile ? n.locateFile(Ja, w) : w + Ja;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
if (a ==
|
|
366
|
-
return new Uint8Array(
|
|
364
|
+
function Ka(a) {
|
|
365
|
+
if (a == Ia && ra) {
|
|
366
|
+
return new Uint8Array(ra);
|
|
367
367
|
}
|
|
368
368
|
if (pa) {
|
|
369
369
|
return pa(a);
|
|
370
370
|
}
|
|
371
371
|
throw "both async and sync fetching of the wasm failed";
|
|
372
372
|
}
|
|
373
|
-
function
|
|
374
|
-
if (!
|
|
373
|
+
function La(a) {
|
|
374
|
+
if (!ra && (ma || na)) {
|
|
375
375
|
if ("function" == typeof fetch && !a.startsWith("file://")) {
|
|
376
376
|
return fetch(a, {credentials:"same-origin"}).then(b => {
|
|
377
377
|
if (!b.ok) {
|
|
378
378
|
throw "failed to load wasm binary file at '" + a + "'";
|
|
379
379
|
}
|
|
380
380
|
return b.arrayBuffer();
|
|
381
|
-
}).catch(() =>
|
|
381
|
+
}).catch(() => Ka(a));
|
|
382
382
|
}
|
|
383
383
|
if (oa) {
|
|
384
384
|
return new Promise((b, c) => {
|
|
@@ -386,23 +386,23 @@ function Ma(a) {
|
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
|
-
return Promise.resolve().then(() =>
|
|
389
|
+
return Promise.resolve().then(() => Ka(a));
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
return
|
|
393
|
-
|
|
394
|
-
|
|
391
|
+
function Ma(a, b, c) {
|
|
392
|
+
return La(a).then(d => WebAssembly.instantiate(d, b)).then(d => d).then(c, d => {
|
|
393
|
+
z("failed to asynchronously prepare wasm: " + d);
|
|
394
|
+
sa(d);
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
var c =
|
|
399
|
-
return
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
return
|
|
397
|
+
function Na(a, b) {
|
|
398
|
+
var c = Ia;
|
|
399
|
+
return ra || "function" != typeof WebAssembly.instantiateStreaming || Ha(c) || c.startsWith("file://") || "function" != typeof fetch ? Ma(c, a, b) : fetch(c, {credentials:"same-origin"}).then(d => WebAssembly.instantiateStreaming(d, a).then(b, function(e) {
|
|
400
|
+
z("wasm streaming compile failed: " + e);
|
|
401
|
+
z("falling back to ArrayBuffer instantiation");
|
|
402
|
+
return Ma(c, a, b);
|
|
403
403
|
}));
|
|
404
404
|
}
|
|
405
|
-
var
|
|
405
|
+
var Oa, Pa, Ta = {491140:(a, b, c, d, e) => {
|
|
406
406
|
if ("undefined" === typeof window || void 0 === (window.AudioContext || window.webkitAudioContext)) {
|
|
407
407
|
return 0;
|
|
408
408
|
}
|
|
@@ -450,7 +450,7 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
450
450
|
for (var g = 0; g < f.C.length; ++g) {
|
|
451
451
|
var m = f.C[g];
|
|
452
452
|
null != m && null != m.J && m.state === f.ha.rb && m.J.resume().then(() => {
|
|
453
|
-
|
|
453
|
+
Qa(m.jb);
|
|
454
454
|
}, p => {
|
|
455
455
|
console.error("Failed to resume audiocontext", p);
|
|
456
456
|
});
|
|
@@ -465,9 +465,9 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
465
465
|
}
|
|
466
466
|
window.h.Da += 1;
|
|
467
467
|
return 1;
|
|
468
|
-
},
|
|
468
|
+
}, 493318:() => {
|
|
469
469
|
"undefined" !== typeof window.h && (--window.h.Da, 0 === window.h.Da && delete window.h);
|
|
470
|
-
},
|
|
470
|
+
}, 493482:() => void 0 !== navigator.mediaDevices && void 0 !== navigator.mediaDevices.getUserMedia, 493586:() => {
|
|
471
471
|
try {
|
|
472
472
|
var a = new (window.AudioContext || window.webkitAudioContext)(), b = a.sampleRate;
|
|
473
473
|
a.close();
|
|
@@ -475,7 +475,7 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
475
475
|
} catch (c) {
|
|
476
476
|
return 0;
|
|
477
477
|
}
|
|
478
|
-
},
|
|
478
|
+
}, 493757:(a, b, c, d, e, f) => {
|
|
479
479
|
if ("undefined" === typeof window.h) {
|
|
480
480
|
return -1;
|
|
481
481
|
}
|
|
@@ -489,7 +489,7 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
489
489
|
g.Y = g.J.createScriptProcessor(d, c, b);
|
|
490
490
|
g.Y.onaudioprocess = function(p) {
|
|
491
491
|
if (null == g.wa || 0 == g.wa.length) {
|
|
492
|
-
g.wa = new Float32Array(
|
|
492
|
+
g.wa = new Float32Array(wa.buffer, e, d * b);
|
|
493
493
|
}
|
|
494
494
|
if (a == window.h.I.capture || a == window.h.I.La) {
|
|
495
495
|
for (var l = 0; l < b; l += 1) {
|
|
@@ -497,10 +497,10 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
497
497
|
u[x * b + l] = t[x];
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
|
|
500
|
+
Ra(f, d, e);
|
|
501
501
|
}
|
|
502
502
|
if (a == window.h.I.Ba || a == window.h.I.La) {
|
|
503
|
-
for (
|
|
503
|
+
for (Sa(f, d, e), l = 0; l < p.outputBuffer.numberOfChannels; ++l) {
|
|
504
504
|
for (t = p.outputBuffer.getChannelData(l), u = g.wa, x = 0; x < d; x += 1) {
|
|
505
505
|
t[x] = u[x * b + l];
|
|
506
506
|
}
|
|
@@ -521,7 +521,7 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
521
521
|
a == window.h.I.Ba && g.Y.connect(g.J.destination);
|
|
522
522
|
g.jb = f;
|
|
523
523
|
return window.h.lc(g);
|
|
524
|
-
},
|
|
524
|
+
}, 496634:a => window.h.va(a).J.sampleRate, 496707:a => {
|
|
525
525
|
a = window.h.va(a);
|
|
526
526
|
void 0 !== a.Y && (a.Y.onaudioprocess = function() {
|
|
527
527
|
}, a.Y.disconnect(), a.Y = void 0);
|
|
@@ -529,21 +529,21 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
529
529
|
a.J.close();
|
|
530
530
|
a.J = void 0;
|
|
531
531
|
a.jb = void 0;
|
|
532
|
-
},
|
|
532
|
+
}, 497107:a => {
|
|
533
533
|
window.h.wb(a);
|
|
534
|
-
},
|
|
534
|
+
}, 497157:a => {
|
|
535
535
|
a = window.h.va(a);
|
|
536
536
|
a.J.resume();
|
|
537
537
|
a.state = window.h.ha.rb;
|
|
538
|
-
},
|
|
538
|
+
}, 497296:a => {
|
|
539
539
|
a = window.h.va(a);
|
|
540
540
|
a.J.suspend();
|
|
541
541
|
a.state = window.h.ha.stopped;
|
|
542
|
-
}},
|
|
542
|
+
}}, Ua = a => {
|
|
543
543
|
for (; 0 < a.length;) {
|
|
544
544
|
a.shift()(n);
|
|
545
545
|
}
|
|
546
|
-
},
|
|
546
|
+
}, Va = (a, b) => {
|
|
547
547
|
for (var c = 0, d = a.length - 1; 0 <= d; d--) {
|
|
548
548
|
var e = a[d];
|
|
549
549
|
"." === e ? a.splice(d, 1) : ".." === e ? (a.splice(d, 1), c++) : c && (a.splice(d, 1), c--);
|
|
@@ -554,12 +554,12 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
return a;
|
|
557
|
-
},
|
|
557
|
+
}, Wa = a => {
|
|
558
558
|
var b = "/" === a.charAt(0), c = "/" === a.substr(-1);
|
|
559
|
-
(a =
|
|
559
|
+
(a = Va(a.split("/").filter(d => !!d), !b).join("/")) || b || (a = ".");
|
|
560
560
|
a && c && (a += "/");
|
|
561
561
|
return (b ? "/" : "") + a;
|
|
562
|
-
},
|
|
562
|
+
}, Xa = a => {
|
|
563
563
|
var b = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(a).slice(1);
|
|
564
564
|
a = b[0];
|
|
565
565
|
b = b[1];
|
|
@@ -568,21 +568,21 @@ var Pa, Qa, Ua = {490069:(a, b, c, d, e) => {
|
|
|
568
568
|
}
|
|
569
569
|
b && (b = b.substr(0, b.length - 1));
|
|
570
570
|
return a + b;
|
|
571
|
-
},
|
|
571
|
+
}, Ya = a => {
|
|
572
572
|
if ("/" === a) {
|
|
573
573
|
return "/";
|
|
574
574
|
}
|
|
575
|
-
a =
|
|
575
|
+
a = Wa(a);
|
|
576
576
|
a = a.replace(/\/$/, "");
|
|
577
577
|
var b = a.lastIndexOf("/");
|
|
578
578
|
return -1 === b ? a : a.substr(b + 1);
|
|
579
|
-
},
|
|
579
|
+
}, Za = () => {
|
|
580
580
|
if ("object" == typeof crypto && "function" == typeof crypto.getRandomValues) {
|
|
581
581
|
return a => crypto.getRandomValues(a);
|
|
582
582
|
}
|
|
583
|
-
|
|
584
|
-
},
|
|
585
|
-
function
|
|
583
|
+
sa("initRandomDevice");
|
|
584
|
+
}, $a = a => ($a = Za())(a);
|
|
585
|
+
function ab() {
|
|
586
586
|
for (var a = "", b = !1, c = arguments.length - 1; -1 <= c && !b; c--) {
|
|
587
587
|
b = 0 <= c ? arguments[c] : "/";
|
|
588
588
|
if ("string" != typeof b) {
|
|
@@ -594,16 +594,16 @@ function bb() {
|
|
|
594
594
|
a = b + "/" + a;
|
|
595
595
|
b = "/" === b.charAt(0);
|
|
596
596
|
}
|
|
597
|
-
a =
|
|
597
|
+
a = Va(a.split("/").filter(d => !!d), !b).join("/");
|
|
598
598
|
return (b ? "/" : "") + a || ".";
|
|
599
599
|
}
|
|
600
|
-
var
|
|
600
|
+
var bb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, L = (a, b, c) => {
|
|
601
601
|
var d = b + c;
|
|
602
602
|
for (c = b; a[c] && !(c >= d);) {
|
|
603
603
|
++c;
|
|
604
604
|
}
|
|
605
|
-
if (16 < c - b && a.buffer &&
|
|
606
|
-
return
|
|
605
|
+
if (16 < c - b && a.buffer && bb) {
|
|
606
|
+
return bb.decode(a.subarray(b, c));
|
|
607
607
|
}
|
|
608
608
|
for (d = ""; b < c;) {
|
|
609
609
|
var e = a[b++];
|
|
@@ -621,13 +621,13 @@ var cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
return d;
|
|
624
|
-
},
|
|
624
|
+
}, cb = [], db = a => {
|
|
625
625
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
626
626
|
var d = a.charCodeAt(c);
|
|
627
627
|
127 >= d ? b++ : 2047 >= d ? b += 2 : 55296 <= d && 57343 >= d ? (b += 4, ++c) : b += 3;
|
|
628
628
|
}
|
|
629
629
|
return b;
|
|
630
|
-
},
|
|
630
|
+
}, eb = (a, b, c, d) => {
|
|
631
631
|
if (!(0 < d)) {
|
|
632
632
|
return 0;
|
|
633
633
|
}
|
|
@@ -671,21 +671,21 @@ var cb = "undefined" != typeof TextDecoder ? new TextDecoder("utf8") : void 0, K
|
|
|
671
671
|
b[c] = 0;
|
|
672
672
|
return c - e;
|
|
673
673
|
};
|
|
674
|
-
function
|
|
675
|
-
var c = Array(
|
|
676
|
-
a =
|
|
674
|
+
function fb(a, b) {
|
|
675
|
+
var c = Array(db(a) + 1);
|
|
676
|
+
a = eb(a, c, 0, c.length);
|
|
677
677
|
b && (c.length = a);
|
|
678
678
|
return c;
|
|
679
679
|
}
|
|
680
|
-
var
|
|
681
|
-
function
|
|
682
|
-
|
|
683
|
-
|
|
680
|
+
var gb = [];
|
|
681
|
+
function hb(a, b) {
|
|
682
|
+
gb[a] = {input:[], D:[], U:b};
|
|
683
|
+
ib(a, jb);
|
|
684
684
|
}
|
|
685
|
-
var
|
|
686
|
-
var b =
|
|
685
|
+
var jb = {open:function(a) {
|
|
686
|
+
var b = gb[a.node.Ca];
|
|
687
687
|
if (!b) {
|
|
688
|
-
throw new
|
|
688
|
+
throw new M(43);
|
|
689
689
|
}
|
|
690
690
|
a.s = b;
|
|
691
691
|
a.seekable = !1;
|
|
@@ -695,16 +695,16 @@ var kb = {open:function(a) {
|
|
|
695
695
|
a.s.U.ua(a.s);
|
|
696
696
|
}, read:function(a, b, c, d) {
|
|
697
697
|
if (!a.s || !a.s.U.cb) {
|
|
698
|
-
throw new
|
|
698
|
+
throw new M(60);
|
|
699
699
|
}
|
|
700
700
|
for (var e = 0, f = 0; f < d; f++) {
|
|
701
701
|
try {
|
|
702
702
|
var g = a.s.U.cb(a.s);
|
|
703
703
|
} catch (m) {
|
|
704
|
-
throw new
|
|
704
|
+
throw new M(29);
|
|
705
705
|
}
|
|
706
706
|
if (void 0 === g && 0 === e) {
|
|
707
|
-
throw new
|
|
707
|
+
throw new M(6);
|
|
708
708
|
}
|
|
709
709
|
if (null === g || void 0 === g) {
|
|
710
710
|
break;
|
|
@@ -716,59 +716,59 @@ var kb = {open:function(a) {
|
|
|
716
716
|
return e;
|
|
717
717
|
}, write:function(a, b, c, d) {
|
|
718
718
|
if (!a.s || !a.s.U.Oa) {
|
|
719
|
-
throw new
|
|
719
|
+
throw new M(60);
|
|
720
720
|
}
|
|
721
721
|
try {
|
|
722
722
|
for (var e = 0; e < d; e++) {
|
|
723
723
|
a.s.U.Oa(a.s, b[c + e]);
|
|
724
724
|
}
|
|
725
725
|
} catch (f) {
|
|
726
|
-
throw new
|
|
726
|
+
throw new M(29);
|
|
727
727
|
}
|
|
728
728
|
d && (a.node.timestamp = Date.now());
|
|
729
729
|
return e;
|
|
730
|
-
},},
|
|
730
|
+
},}, kb = {cb:function() {
|
|
731
731
|
a: {
|
|
732
|
-
if (!
|
|
732
|
+
if (!cb.length) {
|
|
733
733
|
var a = null;
|
|
734
734
|
"undefined" != typeof window && "function" == typeof window.prompt ? (a = window.prompt("Input: "), null !== a && (a += "\n")) : "function" == typeof readline && (a = readline(), null !== a && (a += "\n"));
|
|
735
735
|
if (!a) {
|
|
736
736
|
a = null;
|
|
737
737
|
break a;
|
|
738
738
|
}
|
|
739
|
-
|
|
739
|
+
cb = fb(a, !0);
|
|
740
740
|
}
|
|
741
|
-
a =
|
|
741
|
+
a = cb.shift();
|
|
742
742
|
}
|
|
743
743
|
return a;
|
|
744
744
|
}, Oa:function(a, b) {
|
|
745
|
-
null === b || 10 === b ? (qa(
|
|
745
|
+
null === b || 10 === b ? (qa(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
746
746
|
}, ua:function(a) {
|
|
747
|
-
a.D && 0 < a.D.length && (qa(
|
|
747
|
+
a.D && 0 < a.D.length && (qa(L(a.D, 0)), a.D = []);
|
|
748
748
|
}, Ub:function() {
|
|
749
749
|
return {sc:25856, uc:5, rc:191, tc:35387, qc:[3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]};
|
|
750
750
|
}, Vb:function() {
|
|
751
751
|
return 0;
|
|
752
752
|
}, Wb:function() {
|
|
753
753
|
return [24, 80];
|
|
754
|
-
},},
|
|
755
|
-
null === b || 10 === b ? (
|
|
754
|
+
},}, lb = {Oa:function(a, b) {
|
|
755
|
+
null === b || 10 === b ? (z(L(a.D, 0)), a.D = []) : 0 != b && a.D.push(b);
|
|
756
756
|
}, ua:function(a) {
|
|
757
|
-
a.D && 0 < a.D.length && (
|
|
757
|
+
a.D && 0 < a.D.length && (z(L(a.D, 0)), a.D = []);
|
|
758
758
|
},};
|
|
759
|
-
function
|
|
759
|
+
function mb(a, b) {
|
|
760
760
|
var c = a.j ? a.j.length : 0;
|
|
761
761
|
c >= b || (b = Math.max(b, c * (1048576 > c ? 2.0 : 1.125) >>> 0), 0 != c && (b = Math.max(b, 256)), c = a.j, a.j = new Uint8Array(b), 0 < a.v && a.j.set(c.subarray(0, a.v), 0));
|
|
762
762
|
}
|
|
763
|
-
var
|
|
764
|
-
return
|
|
763
|
+
var N = {O:null, T() {
|
|
764
|
+
return N.createNode(null, "/", 16895, 0);
|
|
765
765
|
}, createNode(a, b, c, d) {
|
|
766
766
|
if (24576 === (c & 61440) || 4096 === (c & 61440)) {
|
|
767
|
-
throw new
|
|
767
|
+
throw new M(63);
|
|
768
768
|
}
|
|
769
|
-
|
|
770
|
-
c =
|
|
771
|
-
16384 === (c.mode & 61440) ? (c.l =
|
|
769
|
+
N.O || (N.O = {dir:{node:{X:N.l.X, P:N.l.P, ma:N.l.ma, za:N.l.za, pb:N.l.pb, ub:N.l.ub, qb:N.l.qb, nb:N.l.nb, Fa:N.l.Fa}, stream:{aa:N.m.aa}}, file:{node:{X:N.l.X, P:N.l.P}, stream:{aa:N.m.aa, read:N.m.read, write:N.m.write, ta:N.m.ta, fb:N.m.fb, hb:N.m.hb}}, link:{node:{X:N.l.X, P:N.l.P, na:N.l.na}, stream:{}}, Va:{node:{X:N.l.X, P:N.l.P}, stream:nb}});
|
|
770
|
+
c = ob(a, b, c, d);
|
|
771
|
+
16384 === (c.mode & 61440) ? (c.l = N.O.dir.node, c.m = N.O.dir.stream, c.j = {}) : 32768 === (c.mode & 61440) ? (c.l = N.O.file.node, c.m = N.O.file.stream, c.v = 0, c.j = null) : 40960 === (c.mode & 61440) ? (c.l = N.O.link.node, c.m = N.O.link.stream) : 8192 === (c.mode & 61440) && (c.l = N.O.Va.node, c.m = N.O.Va.stream);
|
|
772
772
|
c.timestamp = Date.now();
|
|
773
773
|
a && (a.j[b] = c, a.timestamp = c.timestamp);
|
|
774
774
|
return c;
|
|
@@ -804,18 +804,18 @@ var M = {O:null, T() {
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
}, ma() {
|
|
807
|
-
throw
|
|
807
|
+
throw pb[44];
|
|
808
808
|
}, za(a, b, c, d) {
|
|
809
|
-
return
|
|
809
|
+
return N.createNode(a, b, c, d);
|
|
810
810
|
}, pb(a, b, c) {
|
|
811
811
|
if (16384 === (a.mode & 61440)) {
|
|
812
812
|
try {
|
|
813
|
-
var d =
|
|
813
|
+
var d = qb(b, c);
|
|
814
814
|
} catch (f) {
|
|
815
815
|
}
|
|
816
816
|
if (d) {
|
|
817
817
|
for (var e in d.j) {
|
|
818
|
-
throw new
|
|
818
|
+
throw new M(55);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
821
|
}
|
|
@@ -829,9 +829,9 @@ var M = {O:null, T() {
|
|
|
829
829
|
delete a.j[b];
|
|
830
830
|
a.timestamp = Date.now();
|
|
831
831
|
}, qb(a, b) {
|
|
832
|
-
var c =
|
|
832
|
+
var c = qb(a, b), d;
|
|
833
833
|
for (d in c.j) {
|
|
834
|
-
throw new
|
|
834
|
+
throw new M(55);
|
|
835
835
|
}
|
|
836
836
|
delete a.j[b];
|
|
837
837
|
a.timestamp = Date.now();
|
|
@@ -842,12 +842,12 @@ var M = {O:null, T() {
|
|
|
842
842
|
}
|
|
843
843
|
return b;
|
|
844
844
|
}, Fa(a, b, c) {
|
|
845
|
-
a =
|
|
845
|
+
a = N.createNode(a, b, 41471, 0);
|
|
846
846
|
a.link = c;
|
|
847
847
|
return a;
|
|
848
848
|
}, na(a) {
|
|
849
849
|
if (40960 !== (a.mode & 61440)) {
|
|
850
|
-
throw new
|
|
850
|
+
throw new M(28);
|
|
851
851
|
}
|
|
852
852
|
return a.link;
|
|
853
853
|
},}, m:{read(a, b, c, d, e) {
|
|
@@ -865,7 +865,7 @@ var M = {O:null, T() {
|
|
|
865
865
|
}
|
|
866
866
|
return a;
|
|
867
867
|
}, write(a, b, c, d, e, f) {
|
|
868
|
-
b.buffer ===
|
|
868
|
+
b.buffer === C.buffer && (f = !1);
|
|
869
869
|
if (!d) {
|
|
870
870
|
return 0;
|
|
871
871
|
}
|
|
@@ -882,7 +882,7 @@ var M = {O:null, T() {
|
|
|
882
882
|
return a.j.set(b.subarray(c, c + d), e), d;
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
|
-
|
|
885
|
+
mb(a, e + d);
|
|
886
886
|
if (a.j.subarray && b.subarray) {
|
|
887
887
|
a.j.set(b.subarray(c, c + d), e);
|
|
888
888
|
} else {
|
|
@@ -895,70 +895,70 @@ var M = {O:null, T() {
|
|
|
895
895
|
}, aa(a, b, c) {
|
|
896
896
|
1 === c ? b += a.position : 2 === c && 32768 === (a.node.mode & 61440) && (b += a.node.v);
|
|
897
897
|
if (0 > b) {
|
|
898
|
-
throw new
|
|
898
|
+
throw new M(28);
|
|
899
899
|
}
|
|
900
900
|
return b;
|
|
901
901
|
}, ta(a, b, c) {
|
|
902
|
-
|
|
902
|
+
mb(a.node, b + c);
|
|
903
903
|
a.node.v = Math.max(a.node.v, b + c);
|
|
904
904
|
}, fb(a, b, c, d, e) {
|
|
905
905
|
if (32768 !== (a.node.mode & 61440)) {
|
|
906
|
-
throw new
|
|
906
|
+
throw new M(43);
|
|
907
907
|
}
|
|
908
908
|
a = a.node.j;
|
|
909
|
-
if (e & 2 || a.buffer !==
|
|
909
|
+
if (e & 2 || a.buffer !== C.buffer) {
|
|
910
910
|
if (0 < c || c + b < a.length) {
|
|
911
911
|
a.subarray ? a = a.subarray(c, c + b) : a = Array.prototype.slice.call(a, c, c + b);
|
|
912
912
|
}
|
|
913
913
|
c = !0;
|
|
914
|
-
|
|
914
|
+
sa();
|
|
915
915
|
b = void 0;
|
|
916
916
|
if (!b) {
|
|
917
|
-
throw new
|
|
917
|
+
throw new M(48);
|
|
918
918
|
}
|
|
919
|
-
|
|
919
|
+
C.set(a, b);
|
|
920
920
|
} else {
|
|
921
921
|
c = !1, b = a.byteOffset;
|
|
922
922
|
}
|
|
923
923
|
return {o:b, M:c};
|
|
924
924
|
}, hb(a, b, c, d) {
|
|
925
|
-
|
|
925
|
+
N.m.write(a, b, 0, d, c, !1);
|
|
926
926
|
return 0;
|
|
927
927
|
},},};
|
|
928
|
-
function
|
|
928
|
+
function sb(a, b) {
|
|
929
929
|
var c = 0;
|
|
930
930
|
a && (c |= 365);
|
|
931
931
|
b && (c |= 146);
|
|
932
932
|
return c;
|
|
933
933
|
}
|
|
934
|
-
var
|
|
935
|
-
a =
|
|
934
|
+
var tb = null, ub = {}, vb = [], wb = 1, xb = null, yb = !0, M = null, pb = {}, Ab = (a, b = {}) => {
|
|
935
|
+
a = ab(a);
|
|
936
936
|
if (!a) {
|
|
937
937
|
return {path:"", node:null};
|
|
938
938
|
}
|
|
939
939
|
b = Object.assign({ab:!0, Qa:0}, b);
|
|
940
940
|
if (8 < b.Qa) {
|
|
941
|
-
throw new
|
|
941
|
+
throw new M(32);
|
|
942
942
|
}
|
|
943
943
|
a = a.split("/").filter(g => !!g);
|
|
944
|
-
for (var c =
|
|
944
|
+
for (var c = tb, d = "/", e = 0; e < a.length; e++) {
|
|
945
945
|
var f = e === a.length - 1;
|
|
946
946
|
if (f && b.parent) {
|
|
947
947
|
break;
|
|
948
948
|
}
|
|
949
|
-
c =
|
|
950
|
-
d =
|
|
949
|
+
c = qb(c, a[e]);
|
|
950
|
+
d = Wa(d + "/" + a[e]);
|
|
951
951
|
c.Aa && (!f || f && b.ab) && (c = c.Aa.root);
|
|
952
952
|
if (!f || b.$a) {
|
|
953
953
|
for (f = 0; 40960 === (c.mode & 61440);) {
|
|
954
|
-
if (c =
|
|
955
|
-
throw new
|
|
954
|
+
if (c = zb(d), d = ab(Xa(d), c), c = Ab(d, {Qa:b.Qa + 1}).node, 40 < f++) {
|
|
955
|
+
throw new M(32);
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
return {path:d, node:c};
|
|
961
|
-
},
|
|
961
|
+
}, Bb = a => {
|
|
962
962
|
for (var b;;) {
|
|
963
963
|
if (a === a.parent) {
|
|
964
964
|
return a = a.T.gb, b ? "/" !== a[a.length - 1] ? `${a}/${b}` : a + b : a;
|
|
@@ -966,34 +966,34 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
966
966
|
b = b ? `${a.name}/${b}` : a.name;
|
|
967
967
|
a = a.parent;
|
|
968
968
|
}
|
|
969
|
-
},
|
|
969
|
+
}, Cb = (a, b) => {
|
|
970
970
|
for (var c = 0, d = 0; d < b.length; d++) {
|
|
971
971
|
c = (c << 5) - c + b.charCodeAt(d) | 0;
|
|
972
972
|
}
|
|
973
|
-
return (a + c >>> 0) %
|
|
974
|
-
},
|
|
973
|
+
return (a + c >>> 0) % xb.length;
|
|
974
|
+
}, qb = (a, b) => {
|
|
975
975
|
var c;
|
|
976
|
-
if (c = (c =
|
|
977
|
-
throw new
|
|
976
|
+
if (c = (c = Db(a, "x")) ? c : a.l.ma ? 0 : 2) {
|
|
977
|
+
throw new M(c, a);
|
|
978
978
|
}
|
|
979
|
-
for (c =
|
|
979
|
+
for (c = xb[Cb(a.id, b)]; c; c = c.Zb) {
|
|
980
980
|
var d = c.name;
|
|
981
981
|
if (c.parent.id === a.id && d === b) {
|
|
982
982
|
return c;
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
return a.l.ma(a, b);
|
|
986
|
-
},
|
|
987
|
-
a = new
|
|
988
|
-
b =
|
|
989
|
-
a.Zb =
|
|
990
|
-
return
|
|
991
|
-
},
|
|
986
|
+
}, ob = (a, b, c, d) => {
|
|
987
|
+
a = new Eb(a, b, c, d);
|
|
988
|
+
b = Cb(a.parent.id, a.name);
|
|
989
|
+
a.Zb = xb[b];
|
|
990
|
+
return xb[b] = a;
|
|
991
|
+
}, Fb = a => {
|
|
992
992
|
var b = ["r", "w", "rw"][a & 3];
|
|
993
993
|
a & 512 && (b += "w");
|
|
994
994
|
return b;
|
|
995
|
-
},
|
|
996
|
-
if (
|
|
995
|
+
}, Db = (a, b) => {
|
|
996
|
+
if (yb) {
|
|
997
997
|
return 0;
|
|
998
998
|
}
|
|
999
999
|
if (!b.includes("r") || a.mode & 292) {
|
|
@@ -1004,29 +1004,29 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1004
1004
|
return 2;
|
|
1005
1005
|
}
|
|
1006
1006
|
return 0;
|
|
1007
|
-
},
|
|
1007
|
+
}, Gb = (a, b) => {
|
|
1008
1008
|
try {
|
|
1009
|
-
return
|
|
1009
|
+
return qb(a, b), 20;
|
|
1010
1010
|
} catch (c) {
|
|
1011
1011
|
}
|
|
1012
|
-
return
|
|
1013
|
-
},
|
|
1012
|
+
return Db(a, "wx");
|
|
1013
|
+
}, Hb = () => {
|
|
1014
1014
|
for (var a = 0; 4096 >= a; a++) {
|
|
1015
|
-
if (!
|
|
1015
|
+
if (!vb[a]) {
|
|
1016
1016
|
return a;
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
|
-
throw new
|
|
1020
|
-
},
|
|
1021
|
-
a =
|
|
1019
|
+
throw new M(33);
|
|
1020
|
+
}, Ib = a => {
|
|
1021
|
+
a = vb[a];
|
|
1022
1022
|
if (!a) {
|
|
1023
|
-
throw new
|
|
1023
|
+
throw new M(8);
|
|
1024
1024
|
}
|
|
1025
1025
|
return a;
|
|
1026
|
-
},
|
|
1027
|
-
|
|
1026
|
+
}, Kb = (a, b = -1) => {
|
|
1027
|
+
Jb || (Jb = function() {
|
|
1028
1028
|
this.h = {};
|
|
1029
|
-
},
|
|
1029
|
+
}, Jb.prototype = {}, Object.defineProperties(Jb.prototype, {object:{get() {
|
|
1030
1030
|
return this.node;
|
|
1031
1031
|
}, set(c) {
|
|
1032
1032
|
this.node = c;
|
|
@@ -1039,84 +1039,84 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1039
1039
|
}, set(c) {
|
|
1040
1040
|
this.h.position = c;
|
|
1041
1041
|
},},}));
|
|
1042
|
-
a = Object.assign(new
|
|
1043
|
-
-1 == b && (b =
|
|
1042
|
+
a = Object.assign(new Jb(), a);
|
|
1043
|
+
-1 == b && (b = Hb());
|
|
1044
1044
|
a.W = b;
|
|
1045
|
-
return
|
|
1046
|
-
},
|
|
1047
|
-
a.m =
|
|
1045
|
+
return vb[b] = a;
|
|
1046
|
+
}, nb = {open:a => {
|
|
1047
|
+
a.m = ub[a.node.Ca].m;
|
|
1048
1048
|
a.m.open && a.m.open(a);
|
|
1049
1049
|
}, aa:() => {
|
|
1050
|
-
throw new
|
|
1051
|
-
},},
|
|
1052
|
-
|
|
1053
|
-
},
|
|
1050
|
+
throw new M(70);
|
|
1051
|
+
},}, ib = (a, b) => {
|
|
1052
|
+
ub[a] = {m:b};
|
|
1053
|
+
}, Lb = (a, b) => {
|
|
1054
1054
|
var c = "/" === b, d = !b;
|
|
1055
|
-
if (c &&
|
|
1056
|
-
throw new
|
|
1055
|
+
if (c && tb) {
|
|
1056
|
+
throw new M(10);
|
|
1057
1057
|
}
|
|
1058
1058
|
if (!c && !d) {
|
|
1059
|
-
var e =
|
|
1059
|
+
var e = Ab(b, {ab:!1});
|
|
1060
1060
|
b = e.path;
|
|
1061
1061
|
e = e.node;
|
|
1062
1062
|
if (e.Aa) {
|
|
1063
|
-
throw new
|
|
1063
|
+
throw new M(10);
|
|
1064
1064
|
}
|
|
1065
1065
|
if (16384 !== (e.mode & 61440)) {
|
|
1066
|
-
throw new
|
|
1066
|
+
throw new M(54);
|
|
1067
1067
|
}
|
|
1068
1068
|
}
|
|
1069
1069
|
b = {type:a, Lc:{}, gb:b, Yb:[]};
|
|
1070
1070
|
a = a.T(b);
|
|
1071
1071
|
a.T = b;
|
|
1072
1072
|
b.root = a;
|
|
1073
|
-
c ?
|
|
1074
|
-
},
|
|
1075
|
-
var d =
|
|
1076
|
-
a =
|
|
1073
|
+
c ? tb = a : e && (e.Aa = b, e.T && e.T.Yb.push(b));
|
|
1074
|
+
}, O = (a, b, c) => {
|
|
1075
|
+
var d = Ab(a, {parent:!0}).node;
|
|
1076
|
+
a = Ya(a);
|
|
1077
1077
|
if (!a || "." === a || ".." === a) {
|
|
1078
|
-
throw new
|
|
1078
|
+
throw new M(28);
|
|
1079
1079
|
}
|
|
1080
|
-
var e =
|
|
1080
|
+
var e = Gb(d, a);
|
|
1081
1081
|
if (e) {
|
|
1082
|
-
throw new
|
|
1082
|
+
throw new M(e);
|
|
1083
1083
|
}
|
|
1084
1084
|
if (!d.l.za) {
|
|
1085
|
-
throw new
|
|
1085
|
+
throw new M(63);
|
|
1086
1086
|
}
|
|
1087
1087
|
return d.l.za(d, a, b, c);
|
|
1088
|
-
},
|
|
1088
|
+
}, Mb = (a, b, c) => {
|
|
1089
1089
|
"undefined" == typeof c && (c = b, b = 438);
|
|
1090
|
-
|
|
1091
|
-
},
|
|
1092
|
-
if (!
|
|
1093
|
-
throw new
|
|
1090
|
+
O(a, b | 8192, c);
|
|
1091
|
+
}, Nb = (a, b) => {
|
|
1092
|
+
if (!ab(a)) {
|
|
1093
|
+
throw new M(44);
|
|
1094
1094
|
}
|
|
1095
|
-
var c =
|
|
1095
|
+
var c = Ab(b, {parent:!0}).node;
|
|
1096
1096
|
if (!c) {
|
|
1097
|
-
throw new
|
|
1097
|
+
throw new M(44);
|
|
1098
1098
|
}
|
|
1099
|
-
b =
|
|
1100
|
-
var d =
|
|
1099
|
+
b = Ya(b);
|
|
1100
|
+
var d = Gb(c, b);
|
|
1101
1101
|
if (d) {
|
|
1102
|
-
throw new
|
|
1102
|
+
throw new M(d);
|
|
1103
1103
|
}
|
|
1104
1104
|
if (!c.l.Fa) {
|
|
1105
|
-
throw new
|
|
1105
|
+
throw new M(63);
|
|
1106
1106
|
}
|
|
1107
1107
|
c.l.Fa(c, b, a);
|
|
1108
|
-
},
|
|
1109
|
-
a =
|
|
1108
|
+
}, zb = a => {
|
|
1109
|
+
a = Ab(a).node;
|
|
1110
1110
|
if (!a) {
|
|
1111
|
-
throw new
|
|
1111
|
+
throw new M(44);
|
|
1112
1112
|
}
|
|
1113
1113
|
if (!a.l.na) {
|
|
1114
|
-
throw new
|
|
1114
|
+
throw new M(28);
|
|
1115
1115
|
}
|
|
1116
|
-
return
|
|
1117
|
-
},
|
|
1116
|
+
return ab(Bb(a.parent), a.l.na(a));
|
|
1117
|
+
}, Pb = (a, b, c) => {
|
|
1118
1118
|
if ("" === a) {
|
|
1119
|
-
throw new
|
|
1119
|
+
throw new M(44);
|
|
1120
1120
|
}
|
|
1121
1121
|
if ("string" == typeof b) {
|
|
1122
1122
|
var d = {r:0, "r+":2, w:577, "w+":578, a:1089, "a+":1090,}[b];
|
|
@@ -1129,9 +1129,9 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1129
1129
|
if ("object" == typeof a) {
|
|
1130
1130
|
var e = a;
|
|
1131
1131
|
} else {
|
|
1132
|
-
a =
|
|
1132
|
+
a = Wa(a);
|
|
1133
1133
|
try {
|
|
1134
|
-
e =
|
|
1134
|
+
e = Ab(a, {$a:!(b & 131072)}).node;
|
|
1135
1135
|
} catch (f) {
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
@@ -1139,58 +1139,58 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1139
1139
|
if (b & 64) {
|
|
1140
1140
|
if (e) {
|
|
1141
1141
|
if (b & 128) {
|
|
1142
|
-
throw new
|
|
1142
|
+
throw new M(20);
|
|
1143
1143
|
}
|
|
1144
1144
|
} else {
|
|
1145
|
-
e =
|
|
1145
|
+
e = O(a, c, 0), d = !0;
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
if (!e) {
|
|
1149
|
-
throw new
|
|
1149
|
+
throw new M(44);
|
|
1150
1150
|
}
|
|
1151
1151
|
8192 === (e.mode & 61440) && (b &= -513);
|
|
1152
1152
|
if (b & 65536 && 16384 !== (e.mode & 61440)) {
|
|
1153
|
-
throw new
|
|
1153
|
+
throw new M(54);
|
|
1154
1154
|
}
|
|
1155
|
-
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !==
|
|
1156
|
-
throw new
|
|
1155
|
+
if (!d && (c = e ? 40960 === (e.mode & 61440) ? 32 : 16384 === (e.mode & 61440) && ("r" !== Fb(b) || b & 512) ? 31 : Db(e, Fb(b)) : 44)) {
|
|
1156
|
+
throw new M(c);
|
|
1157
1157
|
}
|
|
1158
1158
|
if (b & 512 && !d) {
|
|
1159
1159
|
c = e;
|
|
1160
|
-
c = "string" == typeof c ?
|
|
1160
|
+
c = "string" == typeof c ? Ab(c, {$a:!0}).node : c;
|
|
1161
1161
|
if (!c.l.P) {
|
|
1162
|
-
throw new
|
|
1162
|
+
throw new M(63);
|
|
1163
1163
|
}
|
|
1164
1164
|
if (16384 === (c.mode & 61440)) {
|
|
1165
|
-
throw new
|
|
1165
|
+
throw new M(31);
|
|
1166
1166
|
}
|
|
1167
1167
|
if (32768 !== (c.mode & 61440)) {
|
|
1168
|
-
throw new
|
|
1168
|
+
throw new M(28);
|
|
1169
1169
|
}
|
|
1170
|
-
if (d =
|
|
1171
|
-
throw new
|
|
1170
|
+
if (d = Db(c, "w")) {
|
|
1171
|
+
throw new M(d);
|
|
1172
1172
|
}
|
|
1173
1173
|
c.l.P(c, {size:0, timestamp:Date.now()});
|
|
1174
1174
|
}
|
|
1175
1175
|
b &= -131713;
|
|
1176
|
-
e =
|
|
1176
|
+
e = Kb({node:e, path:Bb(e), flags:b, seekable:!0, position:0, m:e.m, mc:[], error:!1});
|
|
1177
1177
|
e.m.open && e.m.open(e);
|
|
1178
|
-
!n.logReadFiles || b & 1 || (
|
|
1178
|
+
!n.logReadFiles || b & 1 || (Ob || (Ob = {}), a in Ob || (Ob[a] = 1));
|
|
1179
1179
|
return e;
|
|
1180
|
-
},
|
|
1180
|
+
}, Qb = (a, b, c) => {
|
|
1181
1181
|
if (null === a.W) {
|
|
1182
|
-
throw new
|
|
1182
|
+
throw new M(8);
|
|
1183
1183
|
}
|
|
1184
1184
|
if (!a.seekable || !a.m.aa) {
|
|
1185
|
-
throw new
|
|
1185
|
+
throw new M(70);
|
|
1186
1186
|
}
|
|
1187
1187
|
if (0 != c && 1 != c && 2 != c) {
|
|
1188
|
-
throw new
|
|
1188
|
+
throw new M(28);
|
|
1189
1189
|
}
|
|
1190
1190
|
a.position = a.m.aa(a, b, c);
|
|
1191
1191
|
a.mc = [];
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1192
|
+
}, Rb = () => {
|
|
1193
|
+
M || (M = function(a, b) {
|
|
1194
1194
|
this.name = "ErrnoError";
|
|
1195
1195
|
this.node = b;
|
|
1196
1196
|
this.bc = function(c) {
|
|
@@ -1198,16 +1198,16 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1198
1198
|
};
|
|
1199
1199
|
this.bc(a);
|
|
1200
1200
|
this.message = "FS error";
|
|
1201
|
-
},
|
|
1202
|
-
|
|
1203
|
-
|
|
1201
|
+
}, M.prototype = Error(), M.prototype.constructor = M, [44].forEach(a => {
|
|
1202
|
+
pb[a] = new M(a);
|
|
1203
|
+
pb[a].stack = "<generic error, no stack>";
|
|
1204
1204
|
}));
|
|
1205
|
-
},
|
|
1206
|
-
a =
|
|
1207
|
-
var d =
|
|
1208
|
-
|
|
1209
|
-
var e =
|
|
1210
|
-
|
|
1205
|
+
}, Sb, Ub = (a, b, c) => {
|
|
1206
|
+
a = Wa("/dev/" + a);
|
|
1207
|
+
var d = sb(!!b, !!c);
|
|
1208
|
+
Tb || (Tb = 64);
|
|
1209
|
+
var e = Tb++ << 8 | 0;
|
|
1210
|
+
ib(e, {open:f => {
|
|
1211
1211
|
f.seekable = !1;
|
|
1212
1212
|
}, close:() => {
|
|
1213
1213
|
c && c.buffer && c.buffer.length && c(10);
|
|
@@ -1216,10 +1216,10 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1216
1216
|
try {
|
|
1217
1217
|
var u = b();
|
|
1218
1218
|
} catch (x) {
|
|
1219
|
-
throw new
|
|
1219
|
+
throw new M(29);
|
|
1220
1220
|
}
|
|
1221
1221
|
if (void 0 === u && 0 === l) {
|
|
1222
|
-
throw new
|
|
1222
|
+
throw new M(6);
|
|
1223
1223
|
}
|
|
1224
1224
|
if (null === u || void 0 === u) {
|
|
1225
1225
|
break;
|
|
@@ -1234,19 +1234,19 @@ var ub = null, vb = {}, wb = [], xb = 1, yb = null, zb = !0, L = null, qb = {},
|
|
|
1234
1234
|
try {
|
|
1235
1235
|
c(g[m + l]);
|
|
1236
1236
|
} catch (t) {
|
|
1237
|
-
throw new
|
|
1237
|
+
throw new M(29);
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
p && (f.node.timestamp = Date.now());
|
|
1241
1241
|
return l;
|
|
1242
1242
|
}});
|
|
1243
|
-
|
|
1244
|
-
},
|
|
1245
|
-
function
|
|
1246
|
-
|
|
1247
|
-
return
|
|
1243
|
+
Mb(a, d, e);
|
|
1244
|
+
}, Tb, Vb = {}, Jb, Ob, Wb = void 0;
|
|
1245
|
+
function Xb() {
|
|
1246
|
+
Wb += 4;
|
|
1247
|
+
return J[Wb - 4 >> 2];
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function Yb(a) {
|
|
1250
1250
|
if (void 0 === a) {
|
|
1251
1251
|
return "_unknown";
|
|
1252
1252
|
}
|
|
@@ -1254,24 +1254,24 @@ function Zb(a) {
|
|
|
1254
1254
|
var b = a.charCodeAt(0);
|
|
1255
1255
|
return 48 <= b && 57 >= b ? `_${a}` : a;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1258
|
-
a =
|
|
1257
|
+
function Zb(a, b) {
|
|
1258
|
+
a = Yb(a);
|
|
1259
1259
|
return {[a]:function() {
|
|
1260
1260
|
return b.apply(this, arguments);
|
|
1261
1261
|
}}[a];
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function $b() {
|
|
1264
1264
|
this.M = [void 0];
|
|
1265
1265
|
this.bb = [];
|
|
1266
1266
|
}
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1269
|
-
throw new
|
|
1267
|
+
var P = new $b(), ac = void 0;
|
|
1268
|
+
function Q(a) {
|
|
1269
|
+
throw new ac(a);
|
|
1270
1270
|
}
|
|
1271
|
-
var
|
|
1272
|
-
a ||
|
|
1273
|
-
return
|
|
1274
|
-
},
|
|
1271
|
+
var R = a => {
|
|
1272
|
+
a || Q("Cannot use deleted val. handle = " + a);
|
|
1273
|
+
return P.get(a).value;
|
|
1274
|
+
}, bc = a => {
|
|
1275
1275
|
switch(a) {
|
|
1276
1276
|
case void 0:
|
|
1277
1277
|
return 1;
|
|
@@ -1282,11 +1282,11 @@ var Q = a => {
|
|
|
1282
1282
|
case !1:
|
|
1283
1283
|
return 4;
|
|
1284
1284
|
default:
|
|
1285
|
-
return
|
|
1285
|
+
return P.ta({ob:1, value:a});
|
|
1286
1286
|
}
|
|
1287
1287
|
};
|
|
1288
|
-
function
|
|
1289
|
-
var b = Error, c =
|
|
1288
|
+
function cc(a) {
|
|
1289
|
+
var b = Error, c = Zb(a, function(d) {
|
|
1290
1290
|
this.name = a;
|
|
1291
1291
|
this.message = d;
|
|
1292
1292
|
d = Error(d).stack;
|
|
@@ -1299,122 +1299,122 @@ function dc(a) {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
return c;
|
|
1301
1301
|
}
|
|
1302
|
-
var
|
|
1303
|
-
function
|
|
1304
|
-
for (var b = "";
|
|
1305
|
-
b +=
|
|
1302
|
+
var dc = void 0, ec = void 0;
|
|
1303
|
+
function S(a) {
|
|
1304
|
+
for (var b = ""; G[a];) {
|
|
1305
|
+
b += ec[G[a++]];
|
|
1306
1306
|
}
|
|
1307
1307
|
return b;
|
|
1308
1308
|
}
|
|
1309
|
-
var
|
|
1310
|
-
function
|
|
1311
|
-
for (;
|
|
1312
|
-
var a =
|
|
1309
|
+
var fc = [];
|
|
1310
|
+
function gc() {
|
|
1311
|
+
for (; fc.length;) {
|
|
1312
|
+
var a = fc.pop();
|
|
1313
1313
|
a.g.ga = !1;
|
|
1314
1314
|
a["delete"]();
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
var
|
|
1318
|
-
function
|
|
1319
|
-
for (void 0 === b &&
|
|
1317
|
+
var hc = void 0, ic = {};
|
|
1318
|
+
function jc(a, b) {
|
|
1319
|
+
for (void 0 === b && Q("ptr should not be undefined"); a.A;) {
|
|
1320
1320
|
b = a.pa(b), a = a.A;
|
|
1321
1321
|
}
|
|
1322
1322
|
return b;
|
|
1323
1323
|
}
|
|
1324
|
-
var
|
|
1325
|
-
function
|
|
1326
|
-
a =
|
|
1327
|
-
var b =
|
|
1328
|
-
|
|
1324
|
+
var kc = {};
|
|
1325
|
+
function lc(a) {
|
|
1326
|
+
a = mc(a);
|
|
1327
|
+
var b = S(a);
|
|
1328
|
+
nc(a);
|
|
1329
1329
|
return b;
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1332
|
-
var c =
|
|
1333
|
-
void 0 === c &&
|
|
1331
|
+
function oc(a, b) {
|
|
1332
|
+
var c = kc[a];
|
|
1333
|
+
void 0 === c && Q(b + " has unknown type " + lc(a));
|
|
1334
1334
|
return c;
|
|
1335
1335
|
}
|
|
1336
|
-
function
|
|
1336
|
+
function pc() {
|
|
1337
1337
|
}
|
|
1338
|
-
var
|
|
1339
|
-
function
|
|
1338
|
+
var qc = !1;
|
|
1339
|
+
function rc(a) {
|
|
1340
1340
|
--a.count.value;
|
|
1341
1341
|
0 === a.count.value && (a.G ? a.L.V(a.G) : a.u.i.V(a.o));
|
|
1342
1342
|
}
|
|
1343
|
-
function
|
|
1343
|
+
function sc(a, b, c) {
|
|
1344
1344
|
if (b === c) {
|
|
1345
1345
|
return a;
|
|
1346
1346
|
}
|
|
1347
1347
|
if (void 0 === c.A) {
|
|
1348
1348
|
return null;
|
|
1349
1349
|
}
|
|
1350
|
-
a =
|
|
1350
|
+
a = sc(a, b, c.A);
|
|
1351
1351
|
return null === a ? null : c.Gb(a);
|
|
1352
1352
|
}
|
|
1353
|
-
var
|
|
1354
|
-
function
|
|
1355
|
-
b =
|
|
1356
|
-
return
|
|
1353
|
+
var tc = {};
|
|
1354
|
+
function uc(a, b) {
|
|
1355
|
+
b = jc(a, b);
|
|
1356
|
+
return ic[b];
|
|
1357
1357
|
}
|
|
1358
|
-
var
|
|
1359
|
-
function
|
|
1360
|
-
throw new
|
|
1358
|
+
var vc = void 0;
|
|
1359
|
+
function wc(a) {
|
|
1360
|
+
throw new vc(a);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1363
|
-
b.u && b.o ||
|
|
1364
|
-
!!b.L !== !!b.G &&
|
|
1362
|
+
function xc(a, b) {
|
|
1363
|
+
b.u && b.o || wc("makeClassHandle requires ptr and ptrType");
|
|
1364
|
+
!!b.L !== !!b.G && wc("Both smartPtrType and smartPtr must be specified");
|
|
1365
1365
|
b.count = {value:1};
|
|
1366
|
-
return
|
|
1366
|
+
return yc(Object.create(a, {g:{value:b,},}));
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function yc(a) {
|
|
1369
1369
|
if ("undefined" === typeof FinalizationRegistry) {
|
|
1370
|
-
return
|
|
1370
|
+
return yc = b => b, a;
|
|
1371
1371
|
}
|
|
1372
|
-
|
|
1373
|
-
|
|
1372
|
+
qc = new FinalizationRegistry(b => {
|
|
1373
|
+
rc(b.g);
|
|
1374
1374
|
});
|
|
1375
|
-
|
|
1375
|
+
yc = b => {
|
|
1376
1376
|
var c = b.g;
|
|
1377
|
-
c.G &&
|
|
1377
|
+
c.G && qc.register(b, {g:c}, b);
|
|
1378
1378
|
return b;
|
|
1379
1379
|
};
|
|
1380
|
-
|
|
1381
|
-
|
|
1380
|
+
pc = b => {
|
|
1381
|
+
qc.unregister(b);
|
|
1382
1382
|
};
|
|
1383
|
-
return
|
|
1383
|
+
return yc(a);
|
|
1384
1384
|
}
|
|
1385
|
-
var
|
|
1386
|
-
function
|
|
1385
|
+
var zc = {};
|
|
1386
|
+
function Ac(a) {
|
|
1387
1387
|
for (; a.length;) {
|
|
1388
1388
|
var b = a.pop();
|
|
1389
1389
|
a.pop()(b);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
return this.fromWireType(
|
|
1392
|
+
function Bc(a) {
|
|
1393
|
+
return this.fromWireType(J[a >> 2]);
|
|
1394
1394
|
}
|
|
1395
|
-
var
|
|
1396
|
-
function
|
|
1395
|
+
var Cc = {}, Dc = {};
|
|
1396
|
+
function T(a, b, c) {
|
|
1397
1397
|
function d(m) {
|
|
1398
1398
|
m = c(m);
|
|
1399
|
-
m.length !== a.length &&
|
|
1399
|
+
m.length !== a.length && wc("Mismatched type converter count");
|
|
1400
1400
|
for (var p = 0; p < a.length; ++p) {
|
|
1401
|
-
|
|
1401
|
+
U(a[p], m[p]);
|
|
1402
1402
|
}
|
|
1403
1403
|
}
|
|
1404
1404
|
a.forEach(function(m) {
|
|
1405
|
-
|
|
1405
|
+
Dc[m] = b;
|
|
1406
1406
|
});
|
|
1407
1407
|
var e = Array(b.length), f = [], g = 0;
|
|
1408
1408
|
b.forEach((m, p) => {
|
|
1409
|
-
|
|
1410
|
-
e[p] =
|
|
1409
|
+
kc.hasOwnProperty(m) ? e[p] = kc[m] : (f.push(m), Cc.hasOwnProperty(m) || (Cc[m] = []), Cc[m].push(() => {
|
|
1410
|
+
e[p] = kc[m];
|
|
1411
1411
|
++g;
|
|
1412
1412
|
g === f.length && d(e);
|
|
1413
1413
|
}));
|
|
1414
1414
|
});
|
|
1415
1415
|
0 === f.length && d(e);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Ec(a) {
|
|
1418
1418
|
switch(a) {
|
|
1419
1419
|
case 1:
|
|
1420
1420
|
return 0;
|
|
@@ -1428,45 +1428,45 @@ function Fc(a) {
|
|
|
1428
1428
|
throw new TypeError(`Unknown type size: ${a}`);
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function Fc(a, b, c = {}) {
|
|
1432
1432
|
var d = b.name;
|
|
1433
|
-
a ||
|
|
1434
|
-
if (
|
|
1433
|
+
a || Q(`type "${d}" must have a positive integer typeid pointer`);
|
|
1434
|
+
if (kc.hasOwnProperty(a)) {
|
|
1435
1435
|
if (c.Rb) {
|
|
1436
1436
|
return;
|
|
1437
1437
|
}
|
|
1438
|
-
|
|
1438
|
+
Q(`Cannot register type '${d}' twice`);
|
|
1439
1439
|
}
|
|
1440
|
-
|
|
1441
|
-
delete
|
|
1442
|
-
|
|
1440
|
+
kc[a] = b;
|
|
1441
|
+
delete Dc[a];
|
|
1442
|
+
Cc.hasOwnProperty(a) && (b = Cc[a], delete Cc[a], b.forEach(e => e()));
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function U(a, b, c = {}) {
|
|
1445
1445
|
if (!("argPackAdvance" in b)) {
|
|
1446
1446
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
1447
1447
|
}
|
|
1448
|
-
|
|
1448
|
+
Fc(a, b, c);
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1451
|
-
|
|
1450
|
+
function Gc(a) {
|
|
1451
|
+
Q(a.g.u.i.name + " instance already deleted");
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function Hc() {
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function Ic(a, b, c) {
|
|
1456
1456
|
if (void 0 === a[b].B) {
|
|
1457
1457
|
var d = a[b];
|
|
1458
1458
|
a[b] = function() {
|
|
1459
|
-
a[b].B.hasOwnProperty(arguments.length) ||
|
|
1459
|
+
a[b].B.hasOwnProperty(arguments.length) || Q(`Function '${c}' called with an invalid number of arguments (${arguments.length}) - expects one of (${a[b].B})!`);
|
|
1460
1460
|
return a[b].B[arguments.length].apply(this, arguments);
|
|
1461
1461
|
};
|
|
1462
1462
|
a[b].B = [];
|
|
1463
1463
|
a[b].B[d.fa] = d;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1467
|
-
n.hasOwnProperty(a) ? ((void 0 === c || void 0 !== n[a].B && void 0 !== n[a].B[c]) &&
|
|
1466
|
+
function Jc(a, b, c) {
|
|
1467
|
+
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].Kc = c));
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Kc(a, b, c, d, e, f, g, m) {
|
|
1470
1470
|
this.name = a;
|
|
1471
1471
|
this.constructor = b;
|
|
1472
1472
|
this.N = c;
|
|
@@ -1477,23 +1477,23 @@ function Lc(a, b, c, d, e, f, g, m) {
|
|
|
1477
1477
|
this.Gb = m;
|
|
1478
1478
|
this.kb = [];
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Lc(a, b, c) {
|
|
1481
1481
|
for (; b !== c;) {
|
|
1482
|
-
b.pa ||
|
|
1482
|
+
b.pa || Q(`Expected null or instance of ${c.name}, got an instance of ${b.name}`), a = b.pa(a), b = b.A;
|
|
1483
1483
|
}
|
|
1484
1484
|
return a;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Mc(a, b) {
|
|
1487
1487
|
if (null === b) {
|
|
1488
|
-
return this.Na &&
|
|
1488
|
+
return this.Na && Q(`null is not a valid ${this.name}`), 0;
|
|
1489
1489
|
}
|
|
1490
|
-
b.g ||
|
|
1491
|
-
b.g.o ||
|
|
1492
|
-
return
|
|
1490
|
+
b.g || Q(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1491
|
+
b.g.o || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1492
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function Oc(a, b) {
|
|
1495
1495
|
if (null === b) {
|
|
1496
|
-
this.Na &&
|
|
1496
|
+
this.Na && Q(`null is not a valid ${this.name}`);
|
|
1497
1497
|
if (this.ya) {
|
|
1498
1498
|
var c = this.Pa();
|
|
1499
1499
|
null !== a && a.push(this.V, c);
|
|
@@ -1501,14 +1501,14 @@ function Pc(a, b) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
return 0;
|
|
1503
1503
|
}
|
|
1504
|
-
b.g ||
|
|
1505
|
-
b.g.o ||
|
|
1506
|
-
!this.xa && b.g.u.xa &&
|
|
1507
|
-
c =
|
|
1504
|
+
b.g || Q(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1505
|
+
b.g.o || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1506
|
+
!this.xa && b.g.u.xa && Q(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1507
|
+
c = Lc(b.g.o, b.g.u.i, this.i);
|
|
1508
1508
|
if (this.ya) {
|
|
1509
|
-
switch(void 0 === b.g.G &&
|
|
1509
|
+
switch(void 0 === b.g.G && Q("Passing raw pointer to smart pointer is illegal"), this.fc) {
|
|
1510
1510
|
case 0:
|
|
1511
|
-
b.g.L === this ? c = b.g.G :
|
|
1511
|
+
b.g.L === this ? c = b.g.G : Q(`Cannot convert argument of type ${b.g.L ? b.g.L.name : b.g.u.name} to parameter type ${this.name}`);
|
|
1512
1512
|
break;
|
|
1513
1513
|
case 1:
|
|
1514
1514
|
c = b.g.G;
|
|
@@ -1518,45 +1518,45 @@ function Pc(a, b) {
|
|
|
1518
1518
|
c = b.g.G;
|
|
1519
1519
|
} else {
|
|
1520
1520
|
var d = b.clone();
|
|
1521
|
-
c = this.ac(c,
|
|
1521
|
+
c = this.ac(c, bc(function() {
|
|
1522
1522
|
d["delete"]();
|
|
1523
1523
|
}));
|
|
1524
1524
|
null !== a && a.push(this.V, c);
|
|
1525
1525
|
}
|
|
1526
1526
|
break;
|
|
1527
1527
|
default:
|
|
1528
|
-
|
|
1528
|
+
Q("Unsupporting sharing policy");
|
|
1529
1529
|
}
|
|
1530
1530
|
}
|
|
1531
1531
|
return c;
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function Pc(a, b) {
|
|
1534
1534
|
if (null === b) {
|
|
1535
|
-
return this.Na &&
|
|
1535
|
+
return this.Na && Q(`null is not a valid ${this.name}`), 0;
|
|
1536
1536
|
}
|
|
1537
|
-
b.g ||
|
|
1538
|
-
b.g.o ||
|
|
1539
|
-
b.g.u.xa &&
|
|
1540
|
-
return
|
|
1537
|
+
b.g || Q(`Cannot pass "${Nc(b)}" as a ${this.name}`);
|
|
1538
|
+
b.g.o || Q(`Cannot pass deleted object as a pointer of type ${this.name}`);
|
|
1539
|
+
b.g.u.xa && Q(`Cannot convert argument of type ${b.g.u.name} to parameter type ${this.name}`);
|
|
1540
|
+
return Lc(b.g.o, b.g.u.i, this.i);
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1542
|
+
function Qc(a, b, c, d) {
|
|
1543
1543
|
this.name = a;
|
|
1544
1544
|
this.i = b;
|
|
1545
1545
|
this.Na = c;
|
|
1546
1546
|
this.xa = d;
|
|
1547
1547
|
this.ya = !1;
|
|
1548
1548
|
this.V = this.ac = this.Pa = this.mb = this.fc = this.$b = void 0;
|
|
1549
|
-
void 0 !== b.A ? this.toWireType =
|
|
1549
|
+
void 0 !== b.A ? this.toWireType = Oc : (this.toWireType = d ? Mc : Pc, this.K = null);
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
n.hasOwnProperty(a) ||
|
|
1551
|
+
function Rc(a, b, c) {
|
|
1552
|
+
n.hasOwnProperty(a) || wc("Replacing nonexistant public symbol");
|
|
1553
1553
|
void 0 !== n[a].B && void 0 !== c ? n[a].B[c] = b : (n[a] = b, n[a].fa = c);
|
|
1554
1554
|
}
|
|
1555
|
-
var
|
|
1556
|
-
var b =
|
|
1557
|
-
b || (a >=
|
|
1555
|
+
var Sc = [], Tc = a => {
|
|
1556
|
+
var b = Sc[a];
|
|
1557
|
+
b || (a >= Sc.length && (Sc.length = a + 1), Sc[a] = b = za.get(a));
|
|
1558
1558
|
return b;
|
|
1559
|
-
},
|
|
1559
|
+
}, Uc = (a, b) => {
|
|
1560
1560
|
var c = [];
|
|
1561
1561
|
return function() {
|
|
1562
1562
|
c.length = 0;
|
|
@@ -1565,29 +1565,29 @@ var Tc = [], Uc = a => {
|
|
|
1565
1565
|
var d = n["dynCall_" + a];
|
|
1566
1566
|
d = c && c.length ? d.apply(null, [b].concat(c)) : d.call(null, b);
|
|
1567
1567
|
} else {
|
|
1568
|
-
d =
|
|
1568
|
+
d = Tc(b).apply(null, c);
|
|
1569
1569
|
}
|
|
1570
1570
|
return d;
|
|
1571
1571
|
};
|
|
1572
1572
|
};
|
|
1573
|
-
function
|
|
1574
|
-
a =
|
|
1575
|
-
var c = a.includes("j") ?
|
|
1576
|
-
"function" != typeof c &&
|
|
1573
|
+
function V(a, b) {
|
|
1574
|
+
a = S(a);
|
|
1575
|
+
var c = a.includes("j") ? Uc(a, b) : Tc(b);
|
|
1576
|
+
"function" != typeof c && Q(`unknown function pointer with signature ${a}: ${b}`);
|
|
1577
1577
|
return c;
|
|
1578
1578
|
}
|
|
1579
|
-
var
|
|
1580
|
-
function
|
|
1579
|
+
var Vc = void 0;
|
|
1580
|
+
function Wc(a, b) {
|
|
1581
1581
|
function c(f) {
|
|
1582
|
-
e[f] ||
|
|
1582
|
+
e[f] || kc[f] || (Dc[f] ? Dc[f].forEach(c) : (d.push(f), e[f] = !0));
|
|
1583
1583
|
}
|
|
1584
1584
|
var d = [], e = {};
|
|
1585
1585
|
b.forEach(c);
|
|
1586
|
-
throw new
|
|
1586
|
+
throw new Vc(`${a}: ` + d.map(lc).join([", "]));
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function Xc(a, b, c, d, e) {
|
|
1589
1589
|
var f = b.length;
|
|
1590
|
-
2 > f &&
|
|
1590
|
+
2 > f && Q("argTypes array size mismatch! Must at least get return value and 'this' types!");
|
|
1591
1591
|
var g = null !== b[1] && null !== c, m = !1;
|
|
1592
1592
|
for (c = 1; c < b.length; ++c) {
|
|
1593
1593
|
if (null !== b[c] && void 0 === b[c].K) {
|
|
@@ -1597,7 +1597,7 @@ function Yc(a, b, c, d, e) {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
var p = "void" !== b[0].name, l = f - 2, t = Array(l), u = [], x = [];
|
|
1599
1599
|
return function() {
|
|
1600
|
-
arguments.length !== l &&
|
|
1600
|
+
arguments.length !== l && Q(`function ${a} called with ${arguments.length} arguments, expected ${l} args!`);
|
|
1601
1601
|
x.length = 0;
|
|
1602
1602
|
u.length = g ? 2 : 1;
|
|
1603
1603
|
u[0] = e;
|
|
@@ -1610,7 +1610,7 @@ function Yc(a, b, c, d, e) {
|
|
|
1610
1610
|
}
|
|
1611
1611
|
q = d.apply(null, u);
|
|
1612
1612
|
if (m) {
|
|
1613
|
-
|
|
1613
|
+
Ac(x);
|
|
1614
1614
|
} else {
|
|
1615
1615
|
for (var v = g ? 1 : 2; v < b.length; v++) {
|
|
1616
1616
|
var y = 1 === v ? k : t[v - 2];
|
|
@@ -1621,103 +1621,103 @@ function Yc(a, b, c, d, e) {
|
|
|
1621
1621
|
return k;
|
|
1622
1622
|
};
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Yc(a, b) {
|
|
1625
1625
|
for (var c = [], d = 0; d < a; d++) {
|
|
1626
|
-
c.push(
|
|
1626
|
+
c.push(K[b + 4 * d >> 2]);
|
|
1627
1627
|
}
|
|
1628
1628
|
return c;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1631
|
-
a instanceof Object ||
|
|
1632
|
-
a instanceof b.i.constructor ||
|
|
1633
|
-
a.g.o ||
|
|
1634
|
-
return
|
|
1630
|
+
function Zc(a, b, c) {
|
|
1631
|
+
a instanceof Object || Q(`${c} with invalid "this": ${a}`);
|
|
1632
|
+
a instanceof b.i.constructor || Q(`${c} incompatible with "this" of type ${a.constructor.name}`);
|
|
1633
|
+
a.g.o || Q(`cannot call emscripten binding method ${c} on deleted object`);
|
|
1634
|
+
return Lc(a.g.o, a.g.u.i, b.i);
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1637
|
-
a >=
|
|
1636
|
+
function $c(a) {
|
|
1637
|
+
a >= P.h && 0 === --P.get(a).ob && P.Qb(a);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function ad(a, b, c) {
|
|
1640
1640
|
switch(b) {
|
|
1641
1641
|
case 0:
|
|
1642
1642
|
return function(d) {
|
|
1643
|
-
return this.fromWireType((c ?
|
|
1643
|
+
return this.fromWireType((c ? C : G)[d]);
|
|
1644
1644
|
};
|
|
1645
1645
|
case 1:
|
|
1646
1646
|
return function(d) {
|
|
1647
|
-
return this.fromWireType((c ?
|
|
1647
|
+
return this.fromWireType((c ? I : va)[d >> 1]);
|
|
1648
1648
|
};
|
|
1649
1649
|
case 2:
|
|
1650
1650
|
return function(d) {
|
|
1651
|
-
return this.fromWireType((c ?
|
|
1651
|
+
return this.fromWireType((c ? J : K)[d >> 2]);
|
|
1652
1652
|
};
|
|
1653
1653
|
default:
|
|
1654
1654
|
throw new TypeError("Unknown integer type: " + a);
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function Nc(a) {
|
|
1658
1658
|
if (null === a) {
|
|
1659
1659
|
return "null";
|
|
1660
1660
|
}
|
|
1661
1661
|
var b = typeof a;
|
|
1662
1662
|
return "object" === b || "array" === b || "function" === b ? a.toString() : "" + a;
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function bd(a, b) {
|
|
1665
1665
|
switch(b) {
|
|
1666
1666
|
case 2:
|
|
1667
1667
|
return function(c) {
|
|
1668
|
-
return this.fromWireType(
|
|
1668
|
+
return this.fromWireType(wa[c >> 2]);
|
|
1669
1669
|
};
|
|
1670
1670
|
case 3:
|
|
1671
1671
|
return function(c) {
|
|
1672
|
-
return this.fromWireType(
|
|
1672
|
+
return this.fromWireType(xa[c >> 3]);
|
|
1673
1673
|
};
|
|
1674
1674
|
default:
|
|
1675
1675
|
throw new TypeError("Unknown float type: " + a);
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function cd(a, b, c) {
|
|
1679
1679
|
switch(b) {
|
|
1680
1680
|
case 0:
|
|
1681
1681
|
return c ? function(d) {
|
|
1682
|
-
return A[d];
|
|
1683
|
-
} : function(d) {
|
|
1684
1682
|
return C[d];
|
|
1683
|
+
} : function(d) {
|
|
1684
|
+
return G[d];
|
|
1685
1685
|
};
|
|
1686
1686
|
case 1:
|
|
1687
1687
|
return c ? function(d) {
|
|
1688
|
-
return
|
|
1688
|
+
return I[d >> 1];
|
|
1689
1689
|
} : function(d) {
|
|
1690
|
-
return
|
|
1690
|
+
return va[d >> 1];
|
|
1691
1691
|
};
|
|
1692
1692
|
case 2:
|
|
1693
1693
|
return c ? function(d) {
|
|
1694
|
-
return I[d >> 2];
|
|
1695
|
-
} : function(d) {
|
|
1696
1694
|
return J[d >> 2];
|
|
1695
|
+
} : function(d) {
|
|
1696
|
+
return K[d >> 2];
|
|
1697
1697
|
};
|
|
1698
1698
|
default:
|
|
1699
1699
|
throw new TypeError("Unknown integer type: " + a);
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
var
|
|
1702
|
+
var dd = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void 0, ed = (a, b) => {
|
|
1703
1703
|
var c = a >> 1;
|
|
1704
|
-
for (var d = c + b / 2; !(c >= d) &&
|
|
1704
|
+
for (var d = c + b / 2; !(c >= d) && va[c];) {
|
|
1705
1705
|
++c;
|
|
1706
1706
|
}
|
|
1707
1707
|
c <<= 1;
|
|
1708
|
-
if (32 < c - a &&
|
|
1709
|
-
return
|
|
1708
|
+
if (32 < c - a && dd) {
|
|
1709
|
+
return dd.decode(G.subarray(a, c));
|
|
1710
1710
|
}
|
|
1711
1711
|
c = "";
|
|
1712
1712
|
for (d = 0; !(d >= b / 2); ++d) {
|
|
1713
|
-
var e =
|
|
1713
|
+
var e = I[a + 2 * d >> 1];
|
|
1714
1714
|
if (0 == e) {
|
|
1715
1715
|
break;
|
|
1716
1716
|
}
|
|
1717
1717
|
c += String.fromCharCode(e);
|
|
1718
1718
|
}
|
|
1719
1719
|
return c;
|
|
1720
|
-
},
|
|
1720
|
+
}, fd = (a, b, c) => {
|
|
1721
1721
|
void 0 === c && (c = 2147483647);
|
|
1722
1722
|
if (2 > c) {
|
|
1723
1723
|
return 0;
|
|
@@ -1726,13 +1726,13 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1726
1726
|
var d = b;
|
|
1727
1727
|
c = c < 2 * a.length ? c / 2 : a.length;
|
|
1728
1728
|
for (var e = 0; e < c; ++e) {
|
|
1729
|
-
|
|
1729
|
+
I[b >> 1] = a.charCodeAt(e), b += 2;
|
|
1730
1730
|
}
|
|
1731
|
-
|
|
1731
|
+
I[b >> 1] = 0;
|
|
1732
1732
|
return b - d;
|
|
1733
|
-
},
|
|
1733
|
+
}, gd = a => 2 * a.length, hd = (a, b) => {
|
|
1734
1734
|
for (var c = 0, d = ""; !(c >= b / 4);) {
|
|
1735
|
-
var e =
|
|
1735
|
+
var e = J[a + 4 * c >> 2];
|
|
1736
1736
|
if (0 == e) {
|
|
1737
1737
|
break;
|
|
1738
1738
|
}
|
|
@@ -1740,7 +1740,7 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1740
1740
|
65536 <= e ? (e -= 65536, d += String.fromCharCode(55296 | e >> 10, 56320 | e & 1023)) : d += String.fromCharCode(e);
|
|
1741
1741
|
}
|
|
1742
1742
|
return d;
|
|
1743
|
-
},
|
|
1743
|
+
}, jd = (a, b, c) => {
|
|
1744
1744
|
void 0 === c && (c = 2147483647);
|
|
1745
1745
|
if (4 > c) {
|
|
1746
1746
|
return 0;
|
|
@@ -1753,67 +1753,67 @@ var ed = "undefined" != typeof TextDecoder ? new TextDecoder("utf-16le") : void
|
|
|
1753
1753
|
var g = a.charCodeAt(++e);
|
|
1754
1754
|
f = 65536 + ((f & 1023) << 10) | g & 1023;
|
|
1755
1755
|
}
|
|
1756
|
-
|
|
1756
|
+
J[b >> 2] = f;
|
|
1757
1757
|
b += 4;
|
|
1758
1758
|
if (b + 4 > c) {
|
|
1759
1759
|
break;
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
|
-
|
|
1762
|
+
J[b >> 2] = 0;
|
|
1763
1763
|
return b - d;
|
|
1764
|
-
},
|
|
1764
|
+
}, kd = a => {
|
|
1765
1765
|
for (var b = 0, c = 0; c < a.length; ++c) {
|
|
1766
1766
|
var d = a.charCodeAt(c);
|
|
1767
1767
|
55296 <= d && 57343 >= d && ++c;
|
|
1768
1768
|
b += 4;
|
|
1769
1769
|
}
|
|
1770
1770
|
return b;
|
|
1771
|
-
},
|
|
1772
|
-
function
|
|
1773
|
-
var b =
|
|
1774
|
-
return void 0 === b ?
|
|
1775
|
-
}
|
|
1776
|
-
var
|
|
1777
|
-
function
|
|
1778
|
-
var b =
|
|
1779
|
-
|
|
1771
|
+
}, ld = {};
|
|
1772
|
+
function md(a) {
|
|
1773
|
+
var b = ld[a];
|
|
1774
|
+
return void 0 === b ? S(a) : b;
|
|
1775
|
+
}
|
|
1776
|
+
var nd = [];
|
|
1777
|
+
function od(a) {
|
|
1778
|
+
var b = nd.length;
|
|
1779
|
+
nd.push(a);
|
|
1780
1780
|
return b;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function pd(a, b) {
|
|
1783
1783
|
for (var c = Array(a), d = 0; d < a; ++d) {
|
|
1784
|
-
c[d] =
|
|
1784
|
+
c[d] = oc(K[b + 4 * d >> 2], "parameter " + d);
|
|
1785
1785
|
}
|
|
1786
1786
|
return c;
|
|
1787
1787
|
}
|
|
1788
|
-
var
|
|
1789
|
-
function
|
|
1788
|
+
var qd = [], rd = [];
|
|
1789
|
+
function sd(a) {
|
|
1790
1790
|
a.yc = a.getExtension("WEBGL_draw_instanced_base_vertex_base_instance");
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function td(a) {
|
|
1793
1793
|
a.Gc = a.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance");
|
|
1794
1794
|
}
|
|
1795
|
-
var
|
|
1795
|
+
var ud = 1, vd = [], W = [], wd = [], xd = [], yd = [], zd = [], Ad = [], r = [], Bd = {};
|
|
1796
1796
|
function X(a) {
|
|
1797
1797
|
Cd || (Cd = a);
|
|
1798
1798
|
}
|
|
1799
1799
|
function ha(a) {
|
|
1800
|
-
for (var b =
|
|
1800
|
+
for (var b = ud++, c = a.length; c < b; c++) {
|
|
1801
1801
|
a[c] = null;
|
|
1802
1802
|
}
|
|
1803
1803
|
return b;
|
|
1804
1804
|
}
|
|
1805
1805
|
function ja(a) {
|
|
1806
1806
|
Dd = r[a];
|
|
1807
|
-
n.wc =
|
|
1808
|
-
return !(a && !
|
|
1807
|
+
n.wc = Z = Dd && Dd.H;
|
|
1808
|
+
return !(a && !Z);
|
|
1809
1809
|
}
|
|
1810
1810
|
function ia(a) {
|
|
1811
1811
|
a || (a = Dd);
|
|
1812
1812
|
if (!a.Sb) {
|
|
1813
1813
|
a.Sb = !0;
|
|
1814
1814
|
var b = a.H;
|
|
1815
|
+
sd(b);
|
|
1815
1816
|
td(b);
|
|
1816
|
-
ud(b);
|
|
1817
1817
|
2 <= a.version && (b.Ya = b.getExtension("EXT_disjoint_timer_query_webgl2"));
|
|
1818
1818
|
if (2 > a.version || !b.Ya) {
|
|
1819
1819
|
b.Ya = b.getExtension("EXT_disjoint_timer_query");
|
|
@@ -1844,9 +1844,9 @@ var Fd = {}, Hd = () => {
|
|
|
1844
1844
|
}, Gd, Id = [];
|
|
1845
1845
|
function Jd(a, b, c, d) {
|
|
1846
1846
|
for (var e = 0; e < a; e++) {
|
|
1847
|
-
var f =
|
|
1847
|
+
var f = Z[c](), g = f && ha(d);
|
|
1848
1848
|
f ? (f.name = g, d[g] = f) : X(1282);
|
|
1849
|
-
|
|
1849
|
+
J[b + 4 * e >> 2] = g;
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
1852
|
function Kd(a, b) {
|
|
@@ -1863,7 +1863,7 @@ function Kd(a, b) {
|
|
|
1863
1863
|
c = 0;
|
|
1864
1864
|
break;
|
|
1865
1865
|
case 34466:
|
|
1866
|
-
var d =
|
|
1866
|
+
var d = Z.getParameter(34467);
|
|
1867
1867
|
c = d ? d.length : 0;
|
|
1868
1868
|
break;
|
|
1869
1869
|
case 33309:
|
|
@@ -1871,7 +1871,7 @@ function Kd(a, b) {
|
|
|
1871
1871
|
X(1282);
|
|
1872
1872
|
return;
|
|
1873
1873
|
}
|
|
1874
|
-
c = 2 * (
|
|
1874
|
+
c = 2 * (Z.getSupportedExtensions() || []).length;
|
|
1875
1875
|
break;
|
|
1876
1876
|
case 33307:
|
|
1877
1877
|
case 33308:
|
|
@@ -1882,7 +1882,7 @@ function Kd(a, b) {
|
|
|
1882
1882
|
c = 33307 == a ? 3 : 0;
|
|
1883
1883
|
}
|
|
1884
1884
|
if (void 0 === c) {
|
|
1885
|
-
switch(d =
|
|
1885
|
+
switch(d = Z.getParameter(a), typeof d) {
|
|
1886
1886
|
case "number":
|
|
1887
1887
|
c = d;
|
|
1888
1888
|
break;
|
|
@@ -1923,7 +1923,7 @@ function Kd(a, b) {
|
|
|
1923
1923
|
} else {
|
|
1924
1924
|
if (d instanceof Float32Array || d instanceof Uint32Array || d instanceof Int32Array || d instanceof Array) {
|
|
1925
1925
|
for (a = 0; a < d.length; ++a) {
|
|
1926
|
-
|
|
1926
|
+
J[b + 4 * a >> 2] = d[a];
|
|
1927
1927
|
}
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
@@ -1931,25 +1931,25 @@ function Kd(a, b) {
|
|
|
1931
1931
|
c = d.name | 0;
|
|
1932
1932
|
} catch (e) {
|
|
1933
1933
|
X(1280);
|
|
1934
|
-
|
|
1934
|
+
z("GL_INVALID_ENUM in glGet0v: Unknown object returned from WebGL getParameter(" + a + ")! (error: " + e + ")");
|
|
1935
1935
|
return;
|
|
1936
1936
|
}
|
|
1937
1937
|
}
|
|
1938
1938
|
break;
|
|
1939
1939
|
default:
|
|
1940
1940
|
X(1280);
|
|
1941
|
-
|
|
1941
|
+
z("GL_INVALID_ENUM in glGet0v: Native code calling glGet0v(" + a + ") and it returns " + d + " of type " + typeof d + "!");
|
|
1942
1942
|
return;
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
|
-
|
|
1945
|
+
J[b >> 2] = c;
|
|
1946
1946
|
} else {
|
|
1947
1947
|
X(1281);
|
|
1948
1948
|
}
|
|
1949
1949
|
}
|
|
1950
1950
|
var Md = a => {
|
|
1951
|
-
var b =
|
|
1952
|
-
c &&
|
|
1951
|
+
var b = db(a) + 1, c = Ld(b);
|
|
1952
|
+
c && eb(a, G, c, b);
|
|
1953
1953
|
return c;
|
|
1954
1954
|
};
|
|
1955
1955
|
function Nd(a) {
|
|
@@ -2007,9 +2007,9 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2007
2007
|
v = m(v);
|
|
2008
2008
|
return 0 >= g(q, k) ? 0 >= g(v, k) ? k.getFullYear() + 1 : k.getFullYear() : k.getFullYear() - 1;
|
|
2009
2009
|
}
|
|
2010
|
-
var l =
|
|
2011
|
-
d = {jc:
|
|
2012
|
-
c = c ?
|
|
2010
|
+
var l = J[d + 40 >> 2];
|
|
2011
|
+
d = {jc:J[d >> 2], ic:J[d + 4 >> 2], Ga:J[d + 8 >> 2], Ra:J[d + 12 >> 2], Ha:J[d + 16 >> 2], ca:J[d + 20 >> 2], R:J[d + 24 >> 2], ba:J[d + 28 >> 2], Mc:J[d + 32 >> 2], hc:J[d + 36 >> 2], kc:l ? l ? L(G, l) : "" : ""};
|
|
2012
|
+
c = c ? L(G, c) : "";
|
|
2013
2013
|
l = {"%c":"%a %b %d %H:%M:%S %Y", "%D":"%m/%d/%y", "%F":"%Y-%m-%d", "%h":"%b", "%r":"%I:%M:%S %p", "%R":"%H:%M", "%T":"%H:%M:%S", "%x":"%m/%d/%y", "%X":"%H:%M:%S", "%Ec":"%c", "%EC":"%C", "%Ex":"%m/%d/%y", "%EX":"%H:%M:%S", "%Ey":"%y", "%EY":"%Y", "%Od":"%d", "%Oe":"%e", "%OH":"%H", "%OI":"%I", "%Om":"%m", "%OM":"%M", "%OS":"%S", "%Ou":"%u", "%OU":"%U", "%OV":"%V", "%Ow":"%w", "%OW":"%W", "%Oy":"%y",};
|
|
2014
2014
|
for (var t in l) {
|
|
2015
2015
|
c = c.replace(new RegExp(t, "g"), l[t]);
|
|
@@ -2045,26 +2045,26 @@ var Od = a => 0 === a % 4 && (0 !== a % 100 || 0 === a % 400), Pd = [31, 29, 31,
|
|
|
2045
2045
|
c.includes(t) && (c = c.replace(new RegExp(t, "g"), l[t](d)));
|
|
2046
2046
|
}
|
|
2047
2047
|
c = c.replace(/\0\0/g, "%");
|
|
2048
|
-
t =
|
|
2048
|
+
t = fb(c, !1);
|
|
2049
2049
|
if (t.length > b) {
|
|
2050
2050
|
return 0;
|
|
2051
2051
|
}
|
|
2052
|
-
|
|
2052
|
+
C.set(t, a);
|
|
2053
2053
|
return t.length - 1;
|
|
2054
2054
|
};
|
|
2055
|
-
function
|
|
2055
|
+
function Eb(a, b, c, d) {
|
|
2056
2056
|
a || (a = this);
|
|
2057
2057
|
this.parent = a;
|
|
2058
2058
|
this.T = a.T;
|
|
2059
2059
|
this.Aa = null;
|
|
2060
|
-
this.id =
|
|
2060
|
+
this.id = wb++;
|
|
2061
2061
|
this.name = b;
|
|
2062
2062
|
this.mode = c;
|
|
2063
2063
|
this.l = {};
|
|
2064
2064
|
this.m = {};
|
|
2065
2065
|
this.Ca = d;
|
|
2066
2066
|
}
|
|
2067
|
-
Object.defineProperties(
|
|
2067
|
+
Object.defineProperties(Eb.prototype, {read:{get:function() {
|
|
2068
2068
|
return 365 === (this.mode & 365);
|
|
2069
2069
|
}, set:function(a) {
|
|
2070
2070
|
a ? this.mode |= 365 : this.mode &= -366;
|
|
@@ -2073,44 +2073,44 @@ Object.defineProperties(Fb.prototype, {read:{get:function() {
|
|
|
2073
2073
|
}, set:function(a) {
|
|
2074
2074
|
a ? this.mode |= 146 : this.mode &= -147;
|
|
2075
2075
|
}}});
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2076
|
+
Rb();
|
|
2077
|
+
xb = Array(4096);
|
|
2078
|
+
Lb(N, "/");
|
|
2079
|
+
O("/tmp", 16895, 0);
|
|
2080
|
+
O("/home", 16895, 0);
|
|
2081
|
+
O("/home/web_user", 16895, 0);
|
|
2082
2082
|
(() => {
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2083
|
+
O("/dev", 16895, 0);
|
|
2084
|
+
ib(259, {read:() => 0, write:(d, e, f, g) => g,});
|
|
2085
|
+
Mb("/dev/null", 259);
|
|
2086
|
+
hb(1280, kb);
|
|
2087
|
+
hb(1536, lb);
|
|
2088
|
+
Mb("/dev/tty", 1280);
|
|
2089
|
+
Mb("/dev/tty1", 1536);
|
|
2090
2090
|
var a = new Uint8Array(1024), b = 0, c = () => {
|
|
2091
|
-
0 === b && (b =
|
|
2091
|
+
0 === b && (b = $a(a).byteLength);
|
|
2092
2092
|
return a[--b];
|
|
2093
2093
|
};
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2094
|
+
Ub("random", c);
|
|
2095
|
+
Ub("urandom", c);
|
|
2096
|
+
O("/dev/shm", 16895, 0);
|
|
2097
|
+
O("/dev/shm/tmp", 16895, 0);
|
|
2098
2098
|
})();
|
|
2099
2099
|
(() => {
|
|
2100
|
-
|
|
2101
|
-
var a =
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
var b =
|
|
2100
|
+
O("/proc", 16895, 0);
|
|
2101
|
+
var a = O("/proc/self", 16895, 0);
|
|
2102
|
+
O("/proc/self/fd", 16895, 0);
|
|
2103
|
+
Lb({T:() => {
|
|
2104
|
+
var b = ob(a, "fd", 16895, 73);
|
|
2105
2105
|
b.l = {ma:(c, d) => {
|
|
2106
|
-
var e =
|
|
2106
|
+
var e = Ib(+d);
|
|
2107
2107
|
c = {parent:null, T:{gb:"fake"}, l:{na:() => e.path},};
|
|
2108
2108
|
return c.parent = c;
|
|
2109
2109
|
}};
|
|
2110
2110
|
return b;
|
|
2111
2111
|
}}, "/proc/self/fd");
|
|
2112
2112
|
})();
|
|
2113
|
-
Object.assign(
|
|
2113
|
+
Object.assign($b.prototype, {get(a) {
|
|
2114
2114
|
return this.M[a];
|
|
2115
2115
|
}, has(a) {
|
|
2116
2116
|
return void 0 !== this.M[a];
|
|
@@ -2122,48 +2122,48 @@ Object.assign(ac.prototype, {get(a) {
|
|
|
2122
2122
|
this.M[a] = void 0;
|
|
2123
2123
|
this.bb.push(a);
|
|
2124
2124
|
}});
|
|
2125
|
-
|
|
2125
|
+
ac = n.BindingError = class extends Error {
|
|
2126
2126
|
constructor(a) {
|
|
2127
2127
|
super(a);
|
|
2128
2128
|
this.name = "BindingError";
|
|
2129
2129
|
}
|
|
2130
2130
|
};
|
|
2131
|
-
|
|
2132
|
-
|
|
2131
|
+
P.M.push({value:void 0}, {value:null}, {value:!0}, {value:!1},);
|
|
2132
|
+
P.h = P.M.length;
|
|
2133
2133
|
n.count_emval_handles = function() {
|
|
2134
|
-
for (var a = 0, b =
|
|
2135
|
-
void 0 !==
|
|
2134
|
+
for (var a = 0, b = P.h; b < P.M.length; ++b) {
|
|
2135
|
+
void 0 !== P.M[b] && ++a;
|
|
2136
2136
|
}
|
|
2137
2137
|
return a;
|
|
2138
2138
|
};
|
|
2139
|
-
|
|
2139
|
+
dc = n.PureVirtualError = cc("PureVirtualError");
|
|
2140
2140
|
for (var Sd = Array(256), Td = 0; 256 > Td; ++Td) {
|
|
2141
2141
|
Sd[Td] = String.fromCharCode(Td);
|
|
2142
2142
|
}
|
|
2143
|
-
|
|
2143
|
+
ec = Sd;
|
|
2144
2144
|
n.getInheritedInstanceCount = function() {
|
|
2145
|
-
return Object.keys(
|
|
2145
|
+
return Object.keys(ic).length;
|
|
2146
2146
|
};
|
|
2147
2147
|
n.getLiveInheritedInstances = function() {
|
|
2148
2148
|
var a = [], b;
|
|
2149
|
-
for (b in
|
|
2150
|
-
|
|
2149
|
+
for (b in ic) {
|
|
2150
|
+
ic.hasOwnProperty(b) && a.push(ic[b]);
|
|
2151
2151
|
}
|
|
2152
2152
|
return a;
|
|
2153
2153
|
};
|
|
2154
|
-
n.flushPendingDeletes =
|
|
2154
|
+
n.flushPendingDeletes = gc;
|
|
2155
2155
|
n.setDelayFunction = function(a) {
|
|
2156
|
-
|
|
2157
|
-
|
|
2156
|
+
hc = a;
|
|
2157
|
+
fc.length && hc && hc(gc);
|
|
2158
2158
|
};
|
|
2159
|
-
|
|
2159
|
+
vc = n.InternalError = class extends Error {
|
|
2160
2160
|
constructor(a) {
|
|
2161
2161
|
super(a);
|
|
2162
2162
|
this.name = "InternalError";
|
|
2163
2163
|
}
|
|
2164
2164
|
};
|
|
2165
|
-
|
|
2166
|
-
if (!(this instanceof
|
|
2165
|
+
Hc.prototype.isAliasOf = function(a) {
|
|
2166
|
+
if (!(this instanceof Hc && a instanceof Hc)) {
|
|
2167
2167
|
return !1;
|
|
2168
2168
|
}
|
|
2169
2169
|
var b = this.g.u.i, c = this.g.o, d = a.g.u.i;
|
|
@@ -2175,58 +2175,58 @@ Ic.prototype.isAliasOf = function(a) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
return b === d && c === a;
|
|
2177
2177
|
};
|
|
2178
|
-
|
|
2179
|
-
this.g.o ||
|
|
2178
|
+
Hc.prototype.clone = function() {
|
|
2179
|
+
this.g.o || Gc(this);
|
|
2180
2180
|
if (this.g.ja) {
|
|
2181
2181
|
return this.g.count.value += 1, this;
|
|
2182
2182
|
}
|
|
2183
|
-
var a =
|
|
2183
|
+
var a = yc, b = Object, c = b.create, d = Object.getPrototypeOf(this), e = this.g;
|
|
2184
2184
|
a = a(c.call(b, d, {g:{value:{count:e.count, ga:e.ga, ja:e.ja, o:e.o, u:e.u, G:e.G, L:e.L,},}}));
|
|
2185
2185
|
a.g.count.value += 1;
|
|
2186
2186
|
a.g.ga = !1;
|
|
2187
2187
|
return a;
|
|
2188
2188
|
};
|
|
2189
|
-
|
|
2190
|
-
this.g.o ||
|
|
2191
|
-
this.g.ga && !this.g.ja &&
|
|
2192
|
-
|
|
2193
|
-
|
|
2189
|
+
Hc.prototype["delete"] = function() {
|
|
2190
|
+
this.g.o || Gc(this);
|
|
2191
|
+
this.g.ga && !this.g.ja && Q("Object already scheduled for deletion");
|
|
2192
|
+
pc(this);
|
|
2193
|
+
rc(this.g);
|
|
2194
2194
|
this.g.ja || (this.g.G = void 0, this.g.o = void 0);
|
|
2195
2195
|
};
|
|
2196
|
-
|
|
2196
|
+
Hc.prototype.isDeleted = function() {
|
|
2197
2197
|
return !this.g.o;
|
|
2198
2198
|
};
|
|
2199
|
-
|
|
2200
|
-
this.g.o ||
|
|
2201
|
-
this.g.ga && !this.g.ja &&
|
|
2202
|
-
|
|
2203
|
-
1 ===
|
|
2199
|
+
Hc.prototype.deleteLater = function() {
|
|
2200
|
+
this.g.o || Gc(this);
|
|
2201
|
+
this.g.ga && !this.g.ja && Q("Object already scheduled for deletion");
|
|
2202
|
+
fc.push(this);
|
|
2203
|
+
1 === fc.length && hc && hc(gc);
|
|
2204
2204
|
this.g.ga = !0;
|
|
2205
2205
|
return this;
|
|
2206
2206
|
};
|
|
2207
|
-
|
|
2207
|
+
Qc.prototype.Mb = function(a) {
|
|
2208
2208
|
this.mb && (a = this.mb(a));
|
|
2209
2209
|
return a;
|
|
2210
2210
|
};
|
|
2211
|
-
|
|
2211
|
+
Qc.prototype.Xa = function(a) {
|
|
2212
2212
|
this.V && this.V(a);
|
|
2213
2213
|
};
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2214
|
+
Qc.prototype.argPackAdvance = 8;
|
|
2215
|
+
Qc.prototype.readValueFromPointer = Bc;
|
|
2216
|
+
Qc.prototype.deleteObject = function(a) {
|
|
2217
2217
|
if (null !== a) {
|
|
2218
2218
|
a["delete"]();
|
|
2219
2219
|
}
|
|
2220
2220
|
};
|
|
2221
|
-
|
|
2221
|
+
Qc.prototype.fromWireType = function(a) {
|
|
2222
2222
|
function b() {
|
|
2223
|
-
return this.ya ?
|
|
2223
|
+
return this.ya ? xc(this.i.N, {u:this.$b, o:c, L:this, G:a,}) : xc(this.i.N, {u:this, o:a,});
|
|
2224
2224
|
}
|
|
2225
2225
|
var c = this.Mb(a);
|
|
2226
2226
|
if (!c) {
|
|
2227
2227
|
return this.Xa(a), null;
|
|
2228
2228
|
}
|
|
2229
|
-
var d =
|
|
2229
|
+
var d = uc(this.i, c);
|
|
2230
2230
|
if (void 0 !== d) {
|
|
2231
2231
|
if (0 === d.g.count.value) {
|
|
2232
2232
|
return d.g.o = c, d.g.G = a, d.clone();
|
|
@@ -2236,35 +2236,35 @@ Rc.prototype.fromWireType = function(a) {
|
|
|
2236
2236
|
return d;
|
|
2237
2237
|
}
|
|
2238
2238
|
d = this.i.Lb(c);
|
|
2239
|
-
d =
|
|
2239
|
+
d = tc[d];
|
|
2240
2240
|
if (!d) {
|
|
2241
2241
|
return b.call(this);
|
|
2242
2242
|
}
|
|
2243
2243
|
d = this.xa ? d.Db : d.pointerType;
|
|
2244
|
-
var e =
|
|
2245
|
-
return null === e ? b.call(this) : this.ya ?
|
|
2244
|
+
var e = sc(c, this.i, d.i);
|
|
2245
|
+
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,});
|
|
2246
2246
|
};
|
|
2247
|
-
|
|
2248
|
-
for (var
|
|
2247
|
+
Vc = n.UnboundTypeError = cc("UnboundTypeError");
|
|
2248
|
+
for (var Z, Ud = 0; 32 > Ud; ++Ud) {
|
|
2249
2249
|
Id.push(Array(Ud));
|
|
2250
2250
|
}
|
|
2251
2251
|
var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
2252
|
-
|
|
2252
|
+
Wb = c;
|
|
2253
2253
|
try {
|
|
2254
|
-
var d =
|
|
2254
|
+
var d = Ib(a);
|
|
2255
2255
|
switch(b) {
|
|
2256
2256
|
case 0:
|
|
2257
|
-
var e =
|
|
2258
|
-
return 0 > e ? -28 :
|
|
2257
|
+
var e = Xb();
|
|
2258
|
+
return 0 > e ? -28 : Kb(d, e).W;
|
|
2259
2259
|
case 1:
|
|
2260
2260
|
case 2:
|
|
2261
2261
|
return 0;
|
|
2262
2262
|
case 3:
|
|
2263
2263
|
return d.flags;
|
|
2264
2264
|
case 4:
|
|
2265
|
-
return e =
|
|
2265
|
+
return e = Xb(), d.flags |= e, 0;
|
|
2266
2266
|
case 5:
|
|
2267
|
-
return e =
|
|
2267
|
+
return e = Xb(), I[e + 0 >> 1] = 2, 0;
|
|
2268
2268
|
case 6:
|
|
2269
2269
|
case 7:
|
|
2270
2270
|
return 0;
|
|
@@ -2272,20 +2272,20 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2272
2272
|
case 8:
|
|
2273
2273
|
return -28;
|
|
2274
2274
|
case 9:
|
|
2275
|
-
return
|
|
2275
|
+
return J[Vd() >> 2] = 28, -1;
|
|
2276
2276
|
default:
|
|
2277
2277
|
return -28;
|
|
2278
2278
|
}
|
|
2279
2279
|
} catch (f) {
|
|
2280
|
-
if ("undefined" == typeof
|
|
2280
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== f.name) {
|
|
2281
2281
|
throw f;
|
|
2282
2282
|
}
|
|
2283
2283
|
return -f.$;
|
|
2284
2284
|
}
|
|
2285
2285
|
}, __syscall_ioctl:function(a, b, c) {
|
|
2286
|
-
|
|
2286
|
+
Wb = c;
|
|
2287
2287
|
try {
|
|
2288
|
-
var d =
|
|
2288
|
+
var d = Ib(a);
|
|
2289
2289
|
switch(b) {
|
|
2290
2290
|
case 21509:
|
|
2291
2291
|
return d.s ? 0 : -59;
|
|
@@ -2295,13 +2295,13 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
if (d.s.U.Ub) {
|
|
2297
2297
|
b = [3, 28, 127, 21, 4, 0, 1, 0, 17, 19, 26, 0, 18, 15, 23, 22, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,];
|
|
2298
|
-
var e =
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2298
|
+
var e = Xb();
|
|
2299
|
+
J[e >> 2] = 25856;
|
|
2300
|
+
J[e + 4 >> 2] = 5;
|
|
2301
|
+
J[e + 8 >> 2] = 191;
|
|
2302
|
+
J[e + 12 >> 2] = 35387;
|
|
2303
2303
|
for (var f = 0; 32 > f; f++) {
|
|
2304
|
-
|
|
2304
|
+
C[e + f + 17 >> 0] = b[f] || 0;
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
2307
|
return 0;
|
|
@@ -2316,8 +2316,8 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2316
2316
|
return -59;
|
|
2317
2317
|
}
|
|
2318
2318
|
if (d.s.U.Vb) {
|
|
2319
|
-
for (e =
|
|
2320
|
-
b.push(
|
|
2319
|
+
for (e = Xb(), b = [], f = 0; 32 > f; f++) {
|
|
2320
|
+
b.push(C[e + f + 17 >> 0]);
|
|
2321
2321
|
}
|
|
2322
2322
|
}
|
|
2323
2323
|
return 0;
|
|
@@ -2325,21 +2325,21 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2325
2325
|
if (!d.s) {
|
|
2326
2326
|
return -59;
|
|
2327
2327
|
}
|
|
2328
|
-
e =
|
|
2329
|
-
return
|
|
2328
|
+
e = Xb();
|
|
2329
|
+
return J[e >> 2] = 0;
|
|
2330
2330
|
case 21520:
|
|
2331
2331
|
return d.s ? -28 : -59;
|
|
2332
2332
|
case 21531:
|
|
2333
|
-
e =
|
|
2333
|
+
e = Xb();
|
|
2334
2334
|
if (!d.m.Tb) {
|
|
2335
|
-
throw new
|
|
2335
|
+
throw new M(59);
|
|
2336
2336
|
}
|
|
2337
2337
|
return d.m.Tb(d, b, e);
|
|
2338
2338
|
case 21523:
|
|
2339
2339
|
if (!d.s) {
|
|
2340
2340
|
return -59;
|
|
2341
2341
|
}
|
|
2342
|
-
d.s.U.Wb && (f = [24, 80], e =
|
|
2342
|
+
d.s.U.Wb && (f = [24, 80], e = Xb(), I[e >> 1] = f[0], I[e + 2 >> 1] = f[1]);
|
|
2343
2343
|
return 0;
|
|
2344
2344
|
case 21524:
|
|
2345
2345
|
return d.s ? 0 : -59;
|
|
@@ -2349,84 +2349,84 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2349
2349
|
return -28;
|
|
2350
2350
|
}
|
|
2351
2351
|
} catch (g) {
|
|
2352
|
-
if ("undefined" == typeof
|
|
2352
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
2353
2353
|
throw g;
|
|
2354
2354
|
}
|
|
2355
2355
|
return -g.$;
|
|
2356
2356
|
}
|
|
2357
2357
|
}, __syscall_openat:function(a, b, c, d) {
|
|
2358
|
-
|
|
2358
|
+
Wb = d;
|
|
2359
2359
|
try {
|
|
2360
|
-
b = b ?
|
|
2360
|
+
b = b ? L(G, b) : "";
|
|
2361
2361
|
var e = b;
|
|
2362
2362
|
if ("/" === e.charAt(0)) {
|
|
2363
2363
|
b = e;
|
|
2364
2364
|
} else {
|
|
2365
|
-
var f = -100 === a ? "/" :
|
|
2365
|
+
var f = -100 === a ? "/" : Ib(a).path;
|
|
2366
2366
|
if (0 == e.length) {
|
|
2367
|
-
throw new
|
|
2367
|
+
throw new M(44);
|
|
2368
2368
|
}
|
|
2369
|
-
b =
|
|
2369
|
+
b = Wa(f + "/" + e);
|
|
2370
2370
|
}
|
|
2371
|
-
var g = d ?
|
|
2372
|
-
return
|
|
2371
|
+
var g = d ? Xb() : 0;
|
|
2372
|
+
return Pb(b, c, g).W;
|
|
2373
2373
|
} catch (m) {
|
|
2374
|
-
if ("undefined" == typeof
|
|
2374
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== m.name) {
|
|
2375
2375
|
throw m;
|
|
2376
2376
|
}
|
|
2377
2377
|
return -m.$;
|
|
2378
2378
|
}
|
|
2379
2379
|
}, _embind_create_inheriting_constructor:function(a, b, c) {
|
|
2380
|
-
a =
|
|
2381
|
-
b =
|
|
2382
|
-
c =
|
|
2380
|
+
a = S(a);
|
|
2381
|
+
b = oc(b, "wrapper");
|
|
2382
|
+
c = R(c);
|
|
2383
2383
|
var d = [].slice, e = b.i, f = e.N, g = e.A.N, m = e.A.constructor;
|
|
2384
|
-
a =
|
|
2384
|
+
a = Zb(a, function() {
|
|
2385
2385
|
e.A.kb.forEach(function(l) {
|
|
2386
2386
|
if (this[l] === g[l]) {
|
|
2387
|
-
throw new
|
|
2387
|
+
throw new dc(`Pure virtual function ${l} must be implemented in JavaScript`);
|
|
2388
2388
|
}
|
|
2389
2389
|
}.bind(this));
|
|
2390
2390
|
Object.defineProperty(this, "__parent", {value:f});
|
|
2391
2391
|
this.__construct.apply(this, d.call(arguments));
|
|
2392
2392
|
});
|
|
2393
2393
|
f.__construct = function() {
|
|
2394
|
-
this === f &&
|
|
2394
|
+
this === f && Q("Pass correct 'this' to __construct");
|
|
2395
2395
|
var l = m.implement.apply(void 0, [this].concat(d.call(arguments)));
|
|
2396
|
-
|
|
2396
|
+
pc(l);
|
|
2397
2397
|
var t = l.g;
|
|
2398
2398
|
l.notifyOnDestruction();
|
|
2399
2399
|
t.ja = !0;
|
|
2400
2400
|
Object.defineProperties(this, {g:{value:t}});
|
|
2401
|
-
|
|
2401
|
+
yc(this);
|
|
2402
2402
|
l = t.o;
|
|
2403
|
-
l =
|
|
2404
|
-
|
|
2403
|
+
l = jc(e, l);
|
|
2404
|
+
ic.hasOwnProperty(l) ? Q(`Tried to register registered instance: ${l}`) : ic[l] = this;
|
|
2405
2405
|
};
|
|
2406
2406
|
f.__destruct = function() {
|
|
2407
|
-
this === f &&
|
|
2408
|
-
|
|
2407
|
+
this === f && Q("Pass correct 'this' to __destruct");
|
|
2408
|
+
pc(this);
|
|
2409
2409
|
var l = this.g.o;
|
|
2410
|
-
l =
|
|
2411
|
-
|
|
2410
|
+
l = jc(e, l);
|
|
2411
|
+
ic.hasOwnProperty(l) ? delete ic[l] : Q(`Tried to unregister unregistered instance: ${l}`);
|
|
2412
2412
|
};
|
|
2413
2413
|
a.prototype = Object.create(f);
|
|
2414
2414
|
for (var p in c) {
|
|
2415
2415
|
a.prototype[p] = c[p];
|
|
2416
2416
|
}
|
|
2417
|
-
return
|
|
2417
|
+
return bc(a);
|
|
2418
2418
|
}, _embind_finalize_value_object:function(a) {
|
|
2419
|
-
var b =
|
|
2420
|
-
delete
|
|
2419
|
+
var b = zc[a];
|
|
2420
|
+
delete zc[a];
|
|
2421
2421
|
var c = b.Pa, d = b.V, e = b.Za, f = e.map(g => g.Pb).concat(e.map(g => g.dc));
|
|
2422
|
-
|
|
2422
|
+
T([a], f, g => {
|
|
2423
2423
|
var m = {};
|
|
2424
2424
|
e.forEach((p, l) => {
|
|
2425
2425
|
var t = g[l], u = p.Nb, x = p.Ob, k = g[l + e.length], q = p.cc, v = p.ec;
|
|
2426
2426
|
m[p.Jb] = {read:y => t.fromWireType(u(x, y)), write:(y, B) => {
|
|
2427
2427
|
var D = [];
|
|
2428
2428
|
q(v, y, k.toWireType(D, B));
|
|
2429
|
-
|
|
2429
|
+
Ac(D);
|
|
2430
2430
|
}};
|
|
2431
2431
|
});
|
|
2432
2432
|
return [{name:b.name, fromWireType:function(p) {
|
|
@@ -2448,85 +2448,85 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2448
2448
|
}
|
|
2449
2449
|
null !== p && p.push(d, u);
|
|
2450
2450
|
return u;
|
|
2451
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2451
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:d,}];
|
|
2452
2452
|
});
|
|
2453
2453
|
}, _embind_register_bigint:function() {
|
|
2454
2454
|
}, _embind_register_bool:function(a, b, c, d, e) {
|
|
2455
|
-
var f =
|
|
2456
|
-
b =
|
|
2457
|
-
|
|
2455
|
+
var f = Ec(c);
|
|
2456
|
+
b = S(b);
|
|
2457
|
+
U(a, {name:b, fromWireType:function(g) {
|
|
2458
2458
|
return !!g;
|
|
2459
2459
|
}, toWireType:function(g, m) {
|
|
2460
2460
|
return m ? d : e;
|
|
2461
2461
|
}, argPackAdvance:8, readValueFromPointer:function(g) {
|
|
2462
2462
|
if (1 === c) {
|
|
2463
|
-
var m =
|
|
2463
|
+
var m = C;
|
|
2464
2464
|
} else if (2 === c) {
|
|
2465
|
-
m = G;
|
|
2466
|
-
} else if (4 === c) {
|
|
2467
2465
|
m = I;
|
|
2466
|
+
} else if (4 === c) {
|
|
2467
|
+
m = J;
|
|
2468
2468
|
} else {
|
|
2469
2469
|
throw new TypeError("Unknown boolean type size: " + b);
|
|
2470
2470
|
}
|
|
2471
2471
|
return this.fromWireType(m[g >> f]);
|
|
2472
2472
|
}, K:null,});
|
|
2473
2473
|
}, _embind_register_class:function(a, b, c, d, e, f, g, m, p, l, t, u, x) {
|
|
2474
|
-
t =
|
|
2475
|
-
f =
|
|
2476
|
-
m && (m =
|
|
2477
|
-
l && (l =
|
|
2478
|
-
x =
|
|
2479
|
-
var k =
|
|
2480
|
-
|
|
2481
|
-
|
|
2474
|
+
t = S(t);
|
|
2475
|
+
f = V(e, f);
|
|
2476
|
+
m && (m = V(g, m));
|
|
2477
|
+
l && (l = V(p, l));
|
|
2478
|
+
x = V(u, x);
|
|
2479
|
+
var k = Yb(t);
|
|
2480
|
+
Jc(k, function() {
|
|
2481
|
+
Wc(`Cannot construct ${t} due to unbound types`, [d]);
|
|
2482
2482
|
});
|
|
2483
|
-
|
|
2483
|
+
T([a, b, c], d ? [d] : [], function(q) {
|
|
2484
2484
|
q = q[0];
|
|
2485
2485
|
if (d) {
|
|
2486
2486
|
var v = q.i;
|
|
2487
2487
|
var y = v.N;
|
|
2488
2488
|
} else {
|
|
2489
|
-
y =
|
|
2489
|
+
y = Hc.prototype;
|
|
2490
2490
|
}
|
|
2491
|
-
q =
|
|
2491
|
+
q = Zb(k, function() {
|
|
2492
2492
|
if (Object.getPrototypeOf(this) !== B) {
|
|
2493
|
-
throw new
|
|
2493
|
+
throw new ac("Use 'new' to construct " + t);
|
|
2494
2494
|
}
|
|
2495
2495
|
if (void 0 === D.Z) {
|
|
2496
|
-
throw new
|
|
2496
|
+
throw new ac(t + " has no accessible constructor");
|
|
2497
2497
|
}
|
|
2498
2498
|
var H = D.Z[arguments.length];
|
|
2499
2499
|
if (void 0 === H) {
|
|
2500
|
-
throw new
|
|
2500
|
+
throw new ac(`Tried to invoke ctor of ${t} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(D.Z).toString()}) parameters instead!`);
|
|
2501
2501
|
}
|
|
2502
2502
|
return H.apply(this, arguments);
|
|
2503
2503
|
});
|
|
2504
2504
|
var B = Object.create(y, {constructor:{value:q},});
|
|
2505
2505
|
q.prototype = B;
|
|
2506
|
-
var D = new
|
|
2506
|
+
var D = new Kc(t, q, B, x, v, f, m, l);
|
|
2507
2507
|
D.A && (void 0 === D.A.qa && (D.A.qa = []), D.A.qa.push(D));
|
|
2508
|
-
v = new
|
|
2509
|
-
y = new
|
|
2510
|
-
var E = new
|
|
2511
|
-
|
|
2512
|
-
|
|
2508
|
+
v = new Qc(t, D, !0, !1);
|
|
2509
|
+
y = new Qc(t + "*", D, !1, !1);
|
|
2510
|
+
var E = new Qc(t + " const*", D, !1, !0);
|
|
2511
|
+
tc[a] = {pointerType:y, Db:E};
|
|
2512
|
+
Rc(k, q);
|
|
2513
2513
|
return [v, y, E];
|
|
2514
2514
|
});
|
|
2515
2515
|
}, _embind_register_class_class_function:function(a, b, c, d, e, f, g) {
|
|
2516
|
-
var m =
|
|
2517
|
-
b =
|
|
2518
|
-
f =
|
|
2519
|
-
|
|
2516
|
+
var m = Yc(c, d);
|
|
2517
|
+
b = S(b);
|
|
2518
|
+
f = V(e, f);
|
|
2519
|
+
T([], [a], function(p) {
|
|
2520
2520
|
function l() {
|
|
2521
|
-
|
|
2521
|
+
Wc(`Cannot call ${t} due to unbound types`, m);
|
|
2522
2522
|
}
|
|
2523
2523
|
p = p[0];
|
|
2524
2524
|
var t = `${p.name}.${b}`;
|
|
2525
2525
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2526
2526
|
var u = p.i.constructor;
|
|
2527
|
-
void 0 === u[b] ? (l.fa = c - 1, u[b] = l) : (
|
|
2528
|
-
|
|
2529
|
-
x =
|
|
2527
|
+
void 0 === u[b] ? (l.fa = c - 1, u[b] = l) : (Ic(u, b, t), u[b].B[c - 1] = l);
|
|
2528
|
+
T([], m, function(x) {
|
|
2529
|
+
x = Xc(t, [x[0], null].concat(x.slice(1)), null, f, g);
|
|
2530
2530
|
void 0 === u[b].B ? (x.fa = c - 1, u[b] = x) : u[b].B[c - 1] = x;
|
|
2531
2531
|
if (p.i.qa) {
|
|
2532
2532
|
for (const k of p.i.qa) {
|
|
@@ -2538,28 +2538,28 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2538
2538
|
return [];
|
|
2539
2539
|
});
|
|
2540
2540
|
}, _embind_register_class_class_property:function(a, b, c, d, e, f, g, m) {
|
|
2541
|
-
b =
|
|
2542
|
-
f =
|
|
2543
|
-
|
|
2541
|
+
b = S(b);
|
|
2542
|
+
f = V(e, f);
|
|
2543
|
+
T([], [a], function(p) {
|
|
2544
2544
|
p = p[0];
|
|
2545
2545
|
var l = `${p.name}.${b}`, t = {get() {
|
|
2546
|
-
|
|
2546
|
+
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2547
2547
|
}, enumerable:!0, configurable:!0};
|
|
2548
2548
|
t.set = m ? () => {
|
|
2549
|
-
|
|
2549
|
+
Wc(`Cannot access ${l} due to unbound types`, [c]);
|
|
2550
2550
|
} : () => {
|
|
2551
|
-
|
|
2551
|
+
Q(`${l} is a read-only property`);
|
|
2552
2552
|
};
|
|
2553
2553
|
Object.defineProperty(p.i.constructor, b, t);
|
|
2554
|
-
|
|
2554
|
+
T([], [c], function(u) {
|
|
2555
2555
|
u = u[0];
|
|
2556
2556
|
var x = {get() {
|
|
2557
2557
|
return u.fromWireType(f(d));
|
|
2558
2558
|
}, enumerable:!0};
|
|
2559
|
-
m && (m =
|
|
2559
|
+
m && (m = V(g, m), x.set = k => {
|
|
2560
2560
|
var q = [];
|
|
2561
2561
|
m(d, u.toWireType(q, k));
|
|
2562
|
-
|
|
2562
|
+
Ac(q);
|
|
2563
2563
|
});
|
|
2564
2564
|
Object.defineProperty(p.i.constructor, b, x);
|
|
2565
2565
|
return [];
|
|
@@ -2567,72 +2567,72 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2567
2567
|
return [];
|
|
2568
2568
|
});
|
|
2569
2569
|
}, _embind_register_class_constructor:function(a, b, c, d, e, f) {
|
|
2570
|
-
var g =
|
|
2571
|
-
e =
|
|
2572
|
-
|
|
2570
|
+
var g = Yc(b, c);
|
|
2571
|
+
e = V(d, e);
|
|
2572
|
+
T([], [a], function(m) {
|
|
2573
2573
|
m = m[0];
|
|
2574
2574
|
var p = `constructor ${m.name}`;
|
|
2575
2575
|
void 0 === m.i.Z && (m.i.Z = []);
|
|
2576
2576
|
if (void 0 !== m.i.Z[b - 1]) {
|
|
2577
|
-
throw new
|
|
2577
|
+
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!`);
|
|
2578
2578
|
}
|
|
2579
2579
|
m.i.Z[b - 1] = () => {
|
|
2580
|
-
|
|
2580
|
+
Wc(`Cannot construct ${m.name} due to unbound types`, g);
|
|
2581
2581
|
};
|
|
2582
|
-
|
|
2582
|
+
T([], g, function(l) {
|
|
2583
2583
|
l.splice(1, 0, null);
|
|
2584
|
-
m.i.Z[b - 1] =
|
|
2584
|
+
m.i.Z[b - 1] = Xc(p, l, null, e, f);
|
|
2585
2585
|
return [];
|
|
2586
2586
|
});
|
|
2587
2587
|
return [];
|
|
2588
2588
|
});
|
|
2589
2589
|
}, _embind_register_class_function:function(a, b, c, d, e, f, g, m) {
|
|
2590
|
-
var p =
|
|
2591
|
-
b =
|
|
2592
|
-
f =
|
|
2593
|
-
|
|
2590
|
+
var p = Yc(c, d);
|
|
2591
|
+
b = S(b);
|
|
2592
|
+
f = V(e, f);
|
|
2593
|
+
T([], [a], function(l) {
|
|
2594
2594
|
function t() {
|
|
2595
|
-
|
|
2595
|
+
Wc(`Cannot call ${u} due to unbound types`, p);
|
|
2596
2596
|
}
|
|
2597
2597
|
l = l[0];
|
|
2598
2598
|
var u = `${l.name}.${b}`;
|
|
2599
2599
|
b.startsWith("@@") && (b = Symbol[b.substring(2)]);
|
|
2600
2600
|
m && l.i.kb.push(b);
|
|
2601
2601
|
var x = l.i.N, k = x[b];
|
|
2602
|
-
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (t.fa = c - 2, t.className = l.name, x[b] = t) : (
|
|
2603
|
-
|
|
2604
|
-
q =
|
|
2602
|
+
void 0 === k || void 0 === k.B && k.className !== l.name && k.fa === c - 2 ? (t.fa = c - 2, t.className = l.name, x[b] = t) : (Ic(x, b, u), x[b].B[c - 2] = t);
|
|
2603
|
+
T([], p, function(q) {
|
|
2604
|
+
q = Xc(u, q, l, f, g);
|
|
2605
2605
|
void 0 === x[b].B ? (q.fa = c - 2, x[b] = q) : x[b].B[c - 2] = q;
|
|
2606
2606
|
return [];
|
|
2607
2607
|
});
|
|
2608
2608
|
return [];
|
|
2609
2609
|
});
|
|
2610
2610
|
}, _embind_register_class_property:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2611
|
-
b =
|
|
2612
|
-
e =
|
|
2613
|
-
|
|
2611
|
+
b = S(b);
|
|
2612
|
+
e = V(d, e);
|
|
2613
|
+
T([], [a], function(t) {
|
|
2614
2614
|
t = t[0];
|
|
2615
2615
|
var u = `${t.name}.${b}`, x = {get() {
|
|
2616
|
-
|
|
2616
|
+
Wc(`Cannot access ${u} due to unbound types`, [c, g]);
|
|
2617
2617
|
}, enumerable:!0, configurable:!0};
|
|
2618
2618
|
x.set = p ? () => {
|
|
2619
|
-
|
|
2619
|
+
Wc(`Cannot access ${u} due to unbound types`, [c, g]);
|
|
2620
2620
|
} : () => {
|
|
2621
|
-
|
|
2621
|
+
Q(u + " is a read-only property");
|
|
2622
2622
|
};
|
|
2623
2623
|
Object.defineProperty(t.i.N, b, x);
|
|
2624
|
-
|
|
2624
|
+
T([], p ? [c, g] : [c], function(k) {
|
|
2625
2625
|
var q = k[0], v = {get() {
|
|
2626
|
-
var B =
|
|
2626
|
+
var B = Zc(this, t, u + " getter");
|
|
2627
2627
|
return q.fromWireType(e(f, B));
|
|
2628
2628
|
}, enumerable:!0};
|
|
2629
2629
|
if (p) {
|
|
2630
|
-
p =
|
|
2630
|
+
p = V(m, p);
|
|
2631
2631
|
var y = k[1];
|
|
2632
2632
|
v.set = function(B) {
|
|
2633
|
-
var D =
|
|
2633
|
+
var D = Zc(this, t, u + " setter"), E = [];
|
|
2634
2634
|
p(l, D, y.toWireType(E, B));
|
|
2635
|
-
|
|
2635
|
+
Ac(E);
|
|
2636
2636
|
};
|
|
2637
2637
|
}
|
|
2638
2638
|
Object.defineProperty(t.i.N, b, v);
|
|
@@ -2641,57 +2641,57 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2641
2641
|
return [];
|
|
2642
2642
|
});
|
|
2643
2643
|
}, _embind_register_emval:function(a, b) {
|
|
2644
|
-
b =
|
|
2645
|
-
|
|
2646
|
-
var d =
|
|
2647
|
-
|
|
2644
|
+
b = S(b);
|
|
2645
|
+
U(a, {name:b, fromWireType:function(c) {
|
|
2646
|
+
var d = R(c);
|
|
2647
|
+
$c(c);
|
|
2648
2648
|
return d;
|
|
2649
2649
|
}, toWireType:function(c, d) {
|
|
2650
|
-
return
|
|
2651
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2650
|
+
return bc(d);
|
|
2651
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:null,});
|
|
2652
2652
|
}, _embind_register_enum:function(a, b, c, d) {
|
|
2653
2653
|
function e() {
|
|
2654
2654
|
}
|
|
2655
|
-
c =
|
|
2656
|
-
b =
|
|
2655
|
+
c = Ec(c);
|
|
2656
|
+
b = S(b);
|
|
2657
2657
|
e.values = {};
|
|
2658
|
-
|
|
2658
|
+
U(a, {name:b, constructor:e, fromWireType:function(f) {
|
|
2659
2659
|
return this.constructor.values[f];
|
|
2660
2660
|
}, toWireType:function(f, g) {
|
|
2661
2661
|
return g.value;
|
|
2662
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2663
|
-
|
|
2662
|
+
}, argPackAdvance:8, readValueFromPointer:ad(b, c, d), K:null,});
|
|
2663
|
+
Jc(b, e);
|
|
2664
2664
|
}, _embind_register_enum_value:function(a, b, c) {
|
|
2665
|
-
var d =
|
|
2666
|
-
b =
|
|
2665
|
+
var d = oc(a, "enum");
|
|
2666
|
+
b = S(b);
|
|
2667
2667
|
a = d.constructor;
|
|
2668
|
-
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value
|
|
2668
|
+
d = Object.create(d.constructor.prototype, {value:{value:c}, constructor:{value:Zb(`${d.name}_${b}`, function() {
|
|
2669
2669
|
})},});
|
|
2670
2670
|
a.values[c] = d;
|
|
2671
2671
|
a[b] = d;
|
|
2672
2672
|
}, _embind_register_float:function(a, b, c) {
|
|
2673
|
-
c =
|
|
2674
|
-
b =
|
|
2675
|
-
|
|
2673
|
+
c = Ec(c);
|
|
2674
|
+
b = S(b);
|
|
2675
|
+
U(a, {name:b, fromWireType:function(d) {
|
|
2676
2676
|
return d;
|
|
2677
2677
|
}, toWireType:function(d, e) {
|
|
2678
2678
|
return e;
|
|
2679
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2679
|
+
}, argPackAdvance:8, readValueFromPointer:bd(b, c), K:null,});
|
|
2680
2680
|
}, _embind_register_function:function(a, b, c, d, e, f) {
|
|
2681
|
-
var g =
|
|
2682
|
-
a =
|
|
2683
|
-
e =
|
|
2684
|
-
|
|
2685
|
-
|
|
2681
|
+
var g = Yc(b, c);
|
|
2682
|
+
a = S(a);
|
|
2683
|
+
e = V(d, e);
|
|
2684
|
+
Jc(a, function() {
|
|
2685
|
+
Wc(`Cannot call ${a} due to unbound types`, g);
|
|
2686
2686
|
}, b - 1);
|
|
2687
|
-
|
|
2688
|
-
|
|
2687
|
+
T([], g, function(m) {
|
|
2688
|
+
Rc(a, Xc(a, [m[0], null].concat(m.slice(1)), null, e, f), b - 1);
|
|
2689
2689
|
return [];
|
|
2690
2690
|
});
|
|
2691
2691
|
}, _embind_register_integer:function(a, b, c, d, e) {
|
|
2692
|
-
b =
|
|
2692
|
+
b = S(b);
|
|
2693
2693
|
-1 === e && (e = 4294967295);
|
|
2694
|
-
e =
|
|
2694
|
+
e = Ec(c);
|
|
2695
2695
|
var f = m => m;
|
|
2696
2696
|
if (0 === d) {
|
|
2697
2697
|
var g = 32 - 8 * c;
|
|
@@ -2702,26 +2702,26 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2702
2702
|
} : function(m, p) {
|
|
2703
2703
|
return p;
|
|
2704
2704
|
};
|
|
2705
|
-
|
|
2705
|
+
U(a, {name:b, fromWireType:f, toWireType:c, argPackAdvance:8, readValueFromPointer:cd(b, e, 0 !== d), K:null,});
|
|
2706
2706
|
}, _embind_register_memory_view:function(a, b, c) {
|
|
2707
2707
|
function d(f) {
|
|
2708
2708
|
f >>= 2;
|
|
2709
|
-
var g =
|
|
2709
|
+
var g = K;
|
|
2710
2710
|
return new e(g.buffer, g[f + 1], g[f]);
|
|
2711
2711
|
}
|
|
2712
2712
|
var e = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array,][b];
|
|
2713
|
-
c =
|
|
2714
|
-
|
|
2713
|
+
c = S(c);
|
|
2714
|
+
U(a, {name:c, fromWireType:d, argPackAdvance:8, readValueFromPointer:d,}, {Rb:!0,});
|
|
2715
2715
|
}, _embind_register_std_string:function(a, b) {
|
|
2716
|
-
b =
|
|
2716
|
+
b = S(b);
|
|
2717
2717
|
var c = "std::string" === b;
|
|
2718
|
-
|
|
2719
|
-
var e =
|
|
2718
|
+
U(a, {name:b, fromWireType:function(d) {
|
|
2719
|
+
var e = K[d >> 2], f = d + 4;
|
|
2720
2720
|
if (c) {
|
|
2721
2721
|
for (var g = f, m = 0; m <= e; ++m) {
|
|
2722
2722
|
var p = f + m;
|
|
2723
|
-
if (m == e || 0 ==
|
|
2724
|
-
g = g ?
|
|
2723
|
+
if (m == e || 0 == G[p]) {
|
|
2724
|
+
g = g ? L(G, g, p - g) : "";
|
|
2725
2725
|
if (void 0 === l) {
|
|
2726
2726
|
var l = g;
|
|
2727
2727
|
} else {
|
|
@@ -2733,107 +2733,107 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2733
2733
|
} else {
|
|
2734
2734
|
l = Array(e);
|
|
2735
2735
|
for (m = 0; m < e; ++m) {
|
|
2736
|
-
l[m] = String.fromCharCode(
|
|
2736
|
+
l[m] = String.fromCharCode(G[f + m]);
|
|
2737
2737
|
}
|
|
2738
2738
|
l = l.join("");
|
|
2739
2739
|
}
|
|
2740
|
-
|
|
2740
|
+
nc(d);
|
|
2741
2741
|
return l;
|
|
2742
2742
|
}, toWireType:function(d, e) {
|
|
2743
2743
|
e instanceof ArrayBuffer && (e = new Uint8Array(e));
|
|
2744
2744
|
var f = "string" == typeof e;
|
|
2745
|
-
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array ||
|
|
2746
|
-
var g = c && f ?
|
|
2745
|
+
f || e instanceof Uint8Array || e instanceof Uint8ClampedArray || e instanceof Int8Array || Q("Cannot pass non-string to std::string");
|
|
2746
|
+
var g = c && f ? db(e) : e.length;
|
|
2747
2747
|
var m = Ld(4 + g + 1), p = m + 4;
|
|
2748
|
-
|
|
2748
|
+
K[m >> 2] = g;
|
|
2749
2749
|
if (c && f) {
|
|
2750
|
-
|
|
2750
|
+
eb(e, G, p, g + 1);
|
|
2751
2751
|
} else {
|
|
2752
2752
|
if (f) {
|
|
2753
2753
|
for (f = 0; f < g; ++f) {
|
|
2754
2754
|
var l = e.charCodeAt(f);
|
|
2755
|
-
255 < l && (
|
|
2756
|
-
|
|
2755
|
+
255 < l && (nc(p), Q("String has UTF-16 code units that do not fit in 8 bits"));
|
|
2756
|
+
G[p + f] = l;
|
|
2757
2757
|
}
|
|
2758
2758
|
} else {
|
|
2759
2759
|
for (f = 0; f < g; ++f) {
|
|
2760
|
-
|
|
2760
|
+
G[p + f] = e[f];
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
|
-
null !== d && d.push(
|
|
2764
|
+
null !== d && d.push(nc, m);
|
|
2765
2765
|
return m;
|
|
2766
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2767
|
-
|
|
2766
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(d) {
|
|
2767
|
+
nc(d);
|
|
2768
2768
|
},});
|
|
2769
2769
|
}, _embind_register_std_wstring:function(a, b, c) {
|
|
2770
|
-
c =
|
|
2770
|
+
c = S(c);
|
|
2771
2771
|
if (2 === b) {
|
|
2772
|
-
var d =
|
|
2773
|
-
var e =
|
|
2774
|
-
var f =
|
|
2775
|
-
var g = () =>
|
|
2772
|
+
var d = ed;
|
|
2773
|
+
var e = fd;
|
|
2774
|
+
var f = gd;
|
|
2775
|
+
var g = () => va;
|
|
2776
2776
|
var m = 1;
|
|
2777
2777
|
} else {
|
|
2778
|
-
4 === b && (d =
|
|
2778
|
+
4 === b && (d = hd, e = jd, f = kd, g = () => K, m = 2);
|
|
2779
2779
|
}
|
|
2780
|
-
|
|
2781
|
-
for (var l =
|
|
2780
|
+
U(a, {name:c, fromWireType:function(p) {
|
|
2781
|
+
for (var l = K[p >> 2], t = g(), u, x = p + 4, k = 0; k <= l; ++k) {
|
|
2782
2782
|
var q = p + 4 + k * b;
|
|
2783
2783
|
if (k == l || 0 == t[q >> m]) {
|
|
2784
2784
|
x = d(x, q - x), void 0 === u ? u = x : (u += String.fromCharCode(0), u += x), x = q + b;
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
|
|
2787
|
+
nc(p);
|
|
2788
2788
|
return u;
|
|
2789
2789
|
}, toWireType:function(p, l) {
|
|
2790
|
-
"string" != typeof l &&
|
|
2790
|
+
"string" != typeof l && Q(`Cannot pass non-string to C++ string type ${c}`);
|
|
2791
2791
|
var t = f(l), u = Ld(4 + t + b);
|
|
2792
|
-
|
|
2792
|
+
K[u >> 2] = t >> m;
|
|
2793
2793
|
e(l, u + 4, t + b);
|
|
2794
|
-
null !== p && p.push(
|
|
2794
|
+
null !== p && p.push(nc, u);
|
|
2795
2795
|
return u;
|
|
2796
|
-
}, argPackAdvance:8, readValueFromPointer:
|
|
2797
|
-
|
|
2796
|
+
}, argPackAdvance:8, readValueFromPointer:Bc, K:function(p) {
|
|
2797
|
+
nc(p);
|
|
2798
2798
|
},});
|
|
2799
2799
|
}, _embind_register_value_object:function(a, b, c, d, e, f) {
|
|
2800
|
-
|
|
2800
|
+
zc[a] = {name:S(b), Pa:V(c, d), V:V(e, f), Za:[],};
|
|
2801
2801
|
}, _embind_register_value_object_field:function(a, b, c, d, e, f, g, m, p, l) {
|
|
2802
|
-
|
|
2802
|
+
zc[a].Za.push({Jb:S(b), Pb:c, Nb:V(d, e), Ob:f, dc:g, cc:V(m, p), ec:l,});
|
|
2803
2803
|
}, _embind_register_void:function(a, b) {
|
|
2804
|
-
b =
|
|
2805
|
-
|
|
2804
|
+
b = S(b);
|
|
2805
|
+
U(a, {Xb:!0, name:b, argPackAdvance:0, fromWireType:function() {
|
|
2806
2806
|
}, toWireType:function() {
|
|
2807
2807
|
},});
|
|
2808
2808
|
}, _emscripten_get_now_is_monotonic:() => !0, _emval_as:function(a, b, c) {
|
|
2809
|
-
a =
|
|
2810
|
-
b =
|
|
2811
|
-
var d = [], e =
|
|
2812
|
-
|
|
2809
|
+
a = R(a);
|
|
2810
|
+
b = oc(b, "emval::as");
|
|
2811
|
+
var d = [], e = bc(d);
|
|
2812
|
+
K[c >> 2] = e;
|
|
2813
2813
|
return b.toWireType(d, a);
|
|
2814
2814
|
}, _emval_call_method:function(a, b, c, d, e) {
|
|
2815
|
-
a =
|
|
2816
|
-
b =
|
|
2817
|
-
c =
|
|
2815
|
+
a = nd[a];
|
|
2816
|
+
b = R(b);
|
|
2817
|
+
c = md(c);
|
|
2818
2818
|
var f = [];
|
|
2819
|
-
|
|
2819
|
+
K[d >> 2] = bc(f);
|
|
2820
2820
|
return a(b, c, f, e);
|
|
2821
2821
|
}, _emval_call_void_method:function(a, b, c, d) {
|
|
2822
|
-
a =
|
|
2823
|
-
b =
|
|
2824
|
-
c =
|
|
2822
|
+
a = nd[a];
|
|
2823
|
+
b = R(b);
|
|
2824
|
+
c = md(c);
|
|
2825
2825
|
a(b, c, null, d);
|
|
2826
|
-
}, _emval_decref
|
|
2827
|
-
var c =
|
|
2826
|
+
}, _emval_decref:$c, _emval_get_method_caller:function(a, b) {
|
|
2827
|
+
var c = pd(a, b), d = c[0];
|
|
2828
2828
|
b = d.name + "_$" + c.slice(1).map(function(g) {
|
|
2829
2829
|
return g.name;
|
|
2830
2830
|
}).join("_") + "$";
|
|
2831
|
-
var e =
|
|
2831
|
+
var e = qd[b];
|
|
2832
2832
|
if (void 0 !== e) {
|
|
2833
2833
|
return e;
|
|
2834
2834
|
}
|
|
2835
2835
|
var f = Array(a - 1);
|
|
2836
|
-
e =
|
|
2836
|
+
e = od((g, m, p, l) => {
|
|
2837
2837
|
for (var t = 0, u = 0; u < a - 1; ++u) {
|
|
2838
2838
|
f[u] = c[u + 1].readValueFromPointer(l + t), t += c[u + 1].argPackAdvance;
|
|
2839
2839
|
}
|
|
@@ -2845,50 +2845,57 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2845
2845
|
return d.toWireType(p, g);
|
|
2846
2846
|
}
|
|
2847
2847
|
});
|
|
2848
|
-
return
|
|
2848
|
+
return qd[b] = e;
|
|
2849
2849
|
}, _emval_get_property:function(a, b) {
|
|
2850
|
-
a =
|
|
2851
|
-
b =
|
|
2852
|
-
return
|
|
2850
|
+
a = R(a);
|
|
2851
|
+
b = R(b);
|
|
2852
|
+
return bc(a[b]);
|
|
2853
2853
|
}, _emval_incref:function(a) {
|
|
2854
|
-
4 < a && (
|
|
2854
|
+
4 < a && (P.get(a).ob += 1);
|
|
2855
2855
|
}, _emval_new_cstring:function(a) {
|
|
2856
|
-
return
|
|
2856
|
+
return bc(md(a));
|
|
2857
2857
|
}, _emval_new_object:function() {
|
|
2858
|
-
return
|
|
2858
|
+
return bc({});
|
|
2859
2859
|
}, _emval_run_destructors:function(a) {
|
|
2860
|
-
var b =
|
|
2861
|
-
|
|
2862
|
-
|
|
2860
|
+
var b = R(a);
|
|
2861
|
+
Ac(b);
|
|
2862
|
+
$c(a);
|
|
2863
2863
|
}, _emval_set_property:function(a, b, c) {
|
|
2864
|
-
a =
|
|
2865
|
-
b =
|
|
2866
|
-
c =
|
|
2864
|
+
a = R(a);
|
|
2865
|
+
b = R(b);
|
|
2866
|
+
c = R(c);
|
|
2867
2867
|
a[b] = c;
|
|
2868
2868
|
}, _emval_take_value:function(a, b) {
|
|
2869
|
-
a =
|
|
2869
|
+
a = oc(a, "_emval_take_value");
|
|
2870
2870
|
a = a.readValueFromPointer(b);
|
|
2871
|
-
return
|
|
2871
|
+
return bc(a);
|
|
2872
2872
|
}, abort:() => {
|
|
2873
|
-
|
|
2873
|
+
sa("");
|
|
2874
2874
|
}, beginPixelLocalStorageWEBGL:function(a, b, c) {
|
|
2875
2875
|
(a = r[a].H.ia) && a.beginPixelLocalStorageWEBGL(n.HEAPU32.subarray(c, c + b));
|
|
2876
|
-
},
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
a
|
|
2876
|
+
}, decode_image:function(a, b, c) {
|
|
2877
|
+
var d = n.images;
|
|
2878
|
+
d || (d = new Map(), n.images = d);
|
|
2879
|
+
var e = new Image();
|
|
2880
|
+
d.set(a, e);
|
|
2881
|
+
b = n.HEAP8.subarray(b, b + c);
|
|
2882
|
+
c = new Uint8Array(c);
|
|
2883
|
+
c.set(b);
|
|
2884
|
+
e.src = URL.createObjectURL(new Blob([c], {type:"image/png"}));
|
|
2885
|
+
e.onload = function() {
|
|
2886
|
+
n._setWebImage(a, e.width, e.height);
|
|
2887
|
+
};
|
|
2881
2888
|
}, emscripten_asm_const_int:(a, b, c) => {
|
|
2882
|
-
|
|
2889
|
+
rd.length = 0;
|
|
2883
2890
|
var d;
|
|
2884
|
-
for (c >>= 2; d =
|
|
2885
|
-
c += 105 != d & c,
|
|
2891
|
+
for (c >>= 2; d = G[b++];) {
|
|
2892
|
+
c += 105 != d & c, rd.push(105 == d ? J[c] : xa[c++ >> 1]), ++c;
|
|
2886
2893
|
}
|
|
2887
|
-
return
|
|
2894
|
+
return Ta[a].apply(null, rd);
|
|
2888
2895
|
}, emscripten_date_now:function() {
|
|
2889
2896
|
return Date.now();
|
|
2890
|
-
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) =>
|
|
2891
|
-
var b =
|
|
2897
|
+
}, emscripten_get_now:() => performance.now(), emscripten_memcpy_big:(a, b, c) => G.copyWithin(a, b, b + c), emscripten_resize_heap:a => {
|
|
2898
|
+
var b = G.length;
|
|
2892
2899
|
a >>>= 0;
|
|
2893
2900
|
if (2147483648 < a) {
|
|
2894
2901
|
return !1;
|
|
@@ -2899,10 +2906,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2899
2906
|
var e = Math;
|
|
2900
2907
|
d = Math.max(a, d);
|
|
2901
2908
|
a: {
|
|
2902
|
-
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) -
|
|
2909
|
+
e = e.min.call(e, 2147483648, d + (65536 - d % 65536) % 65536) - ta.buffer.byteLength + 65535 >>> 16;
|
|
2903
2910
|
try {
|
|
2904
|
-
|
|
2905
|
-
|
|
2911
|
+
ta.grow(e);
|
|
2912
|
+
ya();
|
|
2906
2913
|
var f = 1;
|
|
2907
2914
|
break a;
|
|
2908
2915
|
} catch (g) {
|
|
@@ -2916,11 +2923,11 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2916
2923
|
return !1;
|
|
2917
2924
|
}, emscripten_webgl_enable_extension:function(a, b) {
|
|
2918
2925
|
a = r[a];
|
|
2919
|
-
b = b ?
|
|
2926
|
+
b = b ? L(G, b) : "";
|
|
2920
2927
|
b.startsWith("GL_") && (b = b.substr(3));
|
|
2921
|
-
"WEBGL_draw_instanced_base_vertex_base_instance" == b &&
|
|
2922
|
-
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b &&
|
|
2923
|
-
"WEBGL_multi_draw" == b && Ed(
|
|
2928
|
+
"WEBGL_draw_instanced_base_vertex_base_instance" == b && sd(Z);
|
|
2929
|
+
"WEBGL_multi_draw_instanced_base_vertex_base_instance" == b && td(Z);
|
|
2930
|
+
"WEBGL_multi_draw" == b && Ed(Z);
|
|
2924
2931
|
return !!a.H.getExtension(b);
|
|
2925
2932
|
}, emscripten_webgl_get_current_context:function() {
|
|
2926
2933
|
return Dd ? Dd.handle : 0;
|
|
@@ -2940,28 +2947,28 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2940
2947
|
var c = 0;
|
|
2941
2948
|
Hd().forEach(function(d, e) {
|
|
2942
2949
|
var f = b + c;
|
|
2943
|
-
e =
|
|
2950
|
+
e = K[a + 4 * e >> 2] = f;
|
|
2944
2951
|
for (f = 0; f < d.length; ++f) {
|
|
2945
|
-
|
|
2952
|
+
C[e++ >> 0] = d.charCodeAt(f);
|
|
2946
2953
|
}
|
|
2947
|
-
|
|
2954
|
+
C[e >> 0] = 0;
|
|
2948
2955
|
c += d.length + 1;
|
|
2949
2956
|
});
|
|
2950
2957
|
return 0;
|
|
2951
2958
|
}, environ_sizes_get:(a, b) => {
|
|
2952
2959
|
var c = Hd();
|
|
2953
|
-
|
|
2960
|
+
K[a >> 2] = c.length;
|
|
2954
2961
|
var d = 0;
|
|
2955
2962
|
c.forEach(function(e) {
|
|
2956
2963
|
d += e.length + 1;
|
|
2957
2964
|
});
|
|
2958
|
-
|
|
2965
|
+
K[b >> 2] = d;
|
|
2959
2966
|
return 0;
|
|
2960
2967
|
}, fd_close:function(a) {
|
|
2961
2968
|
try {
|
|
2962
|
-
var b =
|
|
2969
|
+
var b = Ib(a);
|
|
2963
2970
|
if (null === b.W) {
|
|
2964
|
-
throw new
|
|
2971
|
+
throw new M(8);
|
|
2965
2972
|
}
|
|
2966
2973
|
b.Ma && (b.Ma = null);
|
|
2967
2974
|
try {
|
|
@@ -2969,12 +2976,12 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2969
2976
|
} catch (c) {
|
|
2970
2977
|
throw c;
|
|
2971
2978
|
} finally {
|
|
2972
|
-
|
|
2979
|
+
vb[b.W] = null;
|
|
2973
2980
|
}
|
|
2974
2981
|
b.W = null;
|
|
2975
2982
|
return 0;
|
|
2976
2983
|
} catch (c) {
|
|
2977
|
-
if ("undefined" == typeof
|
|
2984
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== c.name) {
|
|
2978
2985
|
throw c;
|
|
2979
2986
|
}
|
|
2980
2987
|
return c.$;
|
|
@@ -2982,32 +2989,32 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
2982
2989
|
}, fd_read:function(a, b, c, d) {
|
|
2983
2990
|
try {
|
|
2984
2991
|
a: {
|
|
2985
|
-
var e =
|
|
2992
|
+
var e = Ib(a);
|
|
2986
2993
|
a = b;
|
|
2987
2994
|
for (var f, g = b = 0; g < c; g++) {
|
|
2988
|
-
var m =
|
|
2995
|
+
var m = K[a >> 2], p = K[a + 4 >> 2];
|
|
2989
2996
|
a += 8;
|
|
2990
|
-
var l = e, t = m, u = p, x = f, k =
|
|
2997
|
+
var l = e, t = m, u = p, x = f, k = C;
|
|
2991
2998
|
if (0 > u || 0 > x) {
|
|
2992
|
-
throw new
|
|
2999
|
+
throw new M(28);
|
|
2993
3000
|
}
|
|
2994
3001
|
if (null === l.W) {
|
|
2995
|
-
throw new
|
|
3002
|
+
throw new M(8);
|
|
2996
3003
|
}
|
|
2997
3004
|
if (1 === (l.flags & 2097155)) {
|
|
2998
|
-
throw new
|
|
3005
|
+
throw new M(8);
|
|
2999
3006
|
}
|
|
3000
3007
|
if (16384 === (l.node.mode & 61440)) {
|
|
3001
|
-
throw new
|
|
3008
|
+
throw new M(31);
|
|
3002
3009
|
}
|
|
3003
3010
|
if (!l.m.read) {
|
|
3004
|
-
throw new
|
|
3011
|
+
throw new M(28);
|
|
3005
3012
|
}
|
|
3006
3013
|
var q = "undefined" != typeof x;
|
|
3007
3014
|
if (!q) {
|
|
3008
3015
|
x = l.position;
|
|
3009
3016
|
} else if (!l.seekable) {
|
|
3010
|
-
throw new
|
|
3017
|
+
throw new M(70);
|
|
3011
3018
|
}
|
|
3012
3019
|
var v = l.m.read(l, k, t, u, x);
|
|
3013
3020
|
q || (l.position += v);
|
|
@@ -3024,10 +3031,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3024
3031
|
}
|
|
3025
3032
|
B = b;
|
|
3026
3033
|
}
|
|
3027
|
-
|
|
3034
|
+
K[d >> 2] = B;
|
|
3028
3035
|
return 0;
|
|
3029
3036
|
} catch (D) {
|
|
3030
|
-
if ("undefined" == typeof
|
|
3037
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3031
3038
|
throw D;
|
|
3032
3039
|
}
|
|
3033
3040
|
return D.$;
|
|
@@ -3038,15 +3045,15 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3038
3045
|
if (isNaN(b)) {
|
|
3039
3046
|
return 61;
|
|
3040
3047
|
}
|
|
3041
|
-
var f =
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3048
|
+
var f = Ib(a);
|
|
3049
|
+
Qb(f, b, d);
|
|
3050
|
+
Pa = [f.position >>> 0, (Oa = f.position, 1.0 <= +Math.abs(Oa) ? 0.0 < Oa ? +Math.floor(Oa / 4294967296.0) >>> 0 : ~~+Math.ceil((Oa - +(~~Oa >>> 0)) / 4294967296.0) >>> 0 : 0)];
|
|
3051
|
+
J[e >> 2] = Pa[0];
|
|
3052
|
+
J[e + 4 >> 2] = Pa[1];
|
|
3046
3053
|
f.Ma && 0 === b && 0 === d && (f.Ma = null);
|
|
3047
3054
|
return 0;
|
|
3048
3055
|
} catch (g) {
|
|
3049
|
-
if ("undefined" == typeof
|
|
3056
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== g.name) {
|
|
3050
3057
|
throw g;
|
|
3051
3058
|
}
|
|
3052
3059
|
return g.$;
|
|
@@ -3054,33 +3061,33 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3054
3061
|
}, fd_write:function(a, b, c, d) {
|
|
3055
3062
|
try {
|
|
3056
3063
|
a: {
|
|
3057
|
-
var e =
|
|
3064
|
+
var e = Ib(a);
|
|
3058
3065
|
a = b;
|
|
3059
3066
|
for (var f, g = b = 0; g < c; g++) {
|
|
3060
|
-
var m =
|
|
3067
|
+
var m = K[a >> 2], p = K[a + 4 >> 2];
|
|
3061
3068
|
a += 8;
|
|
3062
|
-
var l = e, t = m, u = p, x = f, k =
|
|
3069
|
+
var l = e, t = m, u = p, x = f, k = C;
|
|
3063
3070
|
if (0 > u || 0 > x) {
|
|
3064
|
-
throw new
|
|
3071
|
+
throw new M(28);
|
|
3065
3072
|
}
|
|
3066
3073
|
if (null === l.W) {
|
|
3067
|
-
throw new
|
|
3074
|
+
throw new M(8);
|
|
3068
3075
|
}
|
|
3069
3076
|
if (0 === (l.flags & 2097155)) {
|
|
3070
|
-
throw new
|
|
3077
|
+
throw new M(8);
|
|
3071
3078
|
}
|
|
3072
3079
|
if (16384 === (l.node.mode & 61440)) {
|
|
3073
|
-
throw new
|
|
3080
|
+
throw new M(31);
|
|
3074
3081
|
}
|
|
3075
3082
|
if (!l.m.write) {
|
|
3076
|
-
throw new
|
|
3083
|
+
throw new M(28);
|
|
3077
3084
|
}
|
|
3078
|
-
l.seekable && l.flags & 1024 &&
|
|
3085
|
+
l.seekable && l.flags & 1024 && Qb(l, 0, 2);
|
|
3079
3086
|
var q = "undefined" != typeof x;
|
|
3080
3087
|
if (!q) {
|
|
3081
3088
|
x = l.position;
|
|
3082
3089
|
} else if (!l.seekable) {
|
|
3083
|
-
throw new
|
|
3090
|
+
throw new M(70);
|
|
3084
3091
|
}
|
|
3085
3092
|
var v = l.m.write(l, k, t, u, x, void 0);
|
|
3086
3093
|
q || (l.position += v);
|
|
@@ -3094,10 +3101,10 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3094
3101
|
}
|
|
3095
3102
|
B = b;
|
|
3096
3103
|
}
|
|
3097
|
-
|
|
3104
|
+
K[d >> 2] = B;
|
|
3098
3105
|
return 0;
|
|
3099
3106
|
} catch (D) {
|
|
3100
|
-
if ("undefined" == typeof
|
|
3107
|
+
if ("undefined" == typeof Vb || "ErrnoError" !== D.name) {
|
|
3101
3108
|
throw D;
|
|
3102
3109
|
}
|
|
3103
3110
|
return D.$;
|
|
@@ -3105,138 +3112,138 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3105
3112
|
}, framebufferPixelLocalClearValuefvWEBGL:function(a, b, c, d, e, f) {
|
|
3106
3113
|
(a = r[a].H.ia) && a.framebufferPixelLocalClearValuefvWEBGL(b, [c, d, e, f]);
|
|
3107
3114
|
}, framebufferTexturePixelLocalStorageWEBGL:function(a, b, c, d, e) {
|
|
3108
|
-
(a = r[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b,
|
|
3115
|
+
(a = r[a].H.ia) && a.framebufferTexturePixelLocalStorageWEBGL(b, yd[c], d, e);
|
|
3109
3116
|
}, glActiveTexture:function(a) {
|
|
3110
|
-
|
|
3117
|
+
Z.activeTexture(a);
|
|
3111
3118
|
}, glAttachShader:function(a, b) {
|
|
3112
|
-
|
|
3119
|
+
Z.attachShader(W[a], zd[b]);
|
|
3113
3120
|
}, glBindBuffer:function(a, b) {
|
|
3114
|
-
35051 == a ?
|
|
3115
|
-
|
|
3121
|
+
35051 == a ? Z.Wa = b : 35052 == a && (Z.Ka = b);
|
|
3122
|
+
Z.bindBuffer(a, vd[b]);
|
|
3116
3123
|
}, glBindBufferRange:function(a, b, c, d, e) {
|
|
3117
|
-
|
|
3124
|
+
Z.bindBufferRange(a, b, vd[c], d, e);
|
|
3118
3125
|
}, glBindFramebuffer:function(a, b) {
|
|
3119
|
-
|
|
3126
|
+
Z.bindFramebuffer(a, wd[b]);
|
|
3120
3127
|
}, glBindRenderbuffer:function(a, b) {
|
|
3121
|
-
|
|
3128
|
+
Z.bindRenderbuffer(a, xd[b]);
|
|
3122
3129
|
}, glBindTexture:function(a, b) {
|
|
3123
|
-
|
|
3130
|
+
Z.bindTexture(a, yd[b]);
|
|
3124
3131
|
}, glBindVertexArray:function(a) {
|
|
3125
|
-
|
|
3132
|
+
Z.bindVertexArray(Ad[a]);
|
|
3126
3133
|
}, glBlendEquation:function(a) {
|
|
3127
|
-
|
|
3134
|
+
Z.blendEquation(a);
|
|
3128
3135
|
}, glBlendFunc:function(a, b) {
|
|
3129
|
-
|
|
3136
|
+
Z.blendFunc(a, b);
|
|
3130
3137
|
}, glBlitFramebuffer:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3131
|
-
|
|
3138
|
+
Z.blitFramebuffer(a, b, c, d, e, f, g, m, p, l);
|
|
3132
3139
|
}, glBufferData:function(a, b, c, d) {
|
|
3133
|
-
c && b ?
|
|
3140
|
+
c && b ? Z.bufferData(a, G, d, c, b) : Z.bufferData(a, b, d);
|
|
3134
3141
|
}, glBufferSubData:function(a, b, c, d) {
|
|
3135
|
-
c &&
|
|
3142
|
+
c && Z.bufferSubData(a, b, G, d, c);
|
|
3136
3143
|
}, glClear:function(a) {
|
|
3137
|
-
|
|
3144
|
+
Z.clear(a);
|
|
3138
3145
|
}, glClearColor:function(a, b, c, d) {
|
|
3139
|
-
|
|
3146
|
+
Z.clearColor(a, b, c, d);
|
|
3140
3147
|
}, glClearDepthf:function(a) {
|
|
3141
|
-
|
|
3148
|
+
Z.clearDepth(a);
|
|
3142
3149
|
}, glClearStencil:function(a) {
|
|
3143
|
-
|
|
3150
|
+
Z.clearStencil(a);
|
|
3144
3151
|
}, glColorMask:function(a, b, c, d) {
|
|
3145
|
-
|
|
3152
|
+
Z.colorMask(!!a, !!b, !!c, !!d);
|
|
3146
3153
|
}, glCompileShader:function(a) {
|
|
3147
|
-
|
|
3154
|
+
Z.compileShader(zd[a]);
|
|
3148
3155
|
}, glCreateProgram:function() {
|
|
3149
|
-
var a = ha(
|
|
3156
|
+
var a = ha(W), b = Z.createProgram();
|
|
3150
3157
|
b.name = a;
|
|
3151
3158
|
b.Fc = b.Dc = b.Ec = 0;
|
|
3152
3159
|
b.Sa = 1;
|
|
3153
|
-
|
|
3160
|
+
W[a] = b;
|
|
3154
3161
|
return a;
|
|
3155
3162
|
}, glCreateShader:function(a) {
|
|
3156
3163
|
var b = ha(zd);
|
|
3157
|
-
zd[b] =
|
|
3164
|
+
zd[b] = Z.createShader(a);
|
|
3158
3165
|
return b;
|
|
3159
3166
|
}, glCullFace:function(a) {
|
|
3160
|
-
|
|
3167
|
+
Z.cullFace(a);
|
|
3161
3168
|
}, glDeleteBuffers:function(a, b) {
|
|
3162
3169
|
for (var c = 0; c < a; c++) {
|
|
3163
|
-
var d =
|
|
3164
|
-
e && (
|
|
3170
|
+
var d = J[b + 4 * c >> 2], e = vd[d];
|
|
3171
|
+
e && (Z.deleteBuffer(e), e.name = 0, vd[d] = null, d == Z.Wa && (Z.Wa = 0), d == Z.Ka && (Z.Ka = 0));
|
|
3165
3172
|
}
|
|
3166
3173
|
}, glDeleteFramebuffers:function(a, b) {
|
|
3167
3174
|
for (var c = 0; c < a; ++c) {
|
|
3168
|
-
var d =
|
|
3169
|
-
e && (
|
|
3175
|
+
var d = J[b + 4 * c >> 2], e = wd[d];
|
|
3176
|
+
e && (Z.deleteFramebuffer(e), e.name = 0, wd[d] = null);
|
|
3170
3177
|
}
|
|
3171
3178
|
}, glDeleteProgram:function(a) {
|
|
3172
3179
|
if (a) {
|
|
3173
|
-
var b =
|
|
3174
|
-
b ? (
|
|
3180
|
+
var b = W[a];
|
|
3181
|
+
b ? (Z.deleteProgram(b), b.name = 0, W[a] = null) : X(1281);
|
|
3175
3182
|
}
|
|
3176
3183
|
}, glDeleteRenderbuffers:function(a, b) {
|
|
3177
3184
|
for (var c = 0; c < a; c++) {
|
|
3178
|
-
var d =
|
|
3179
|
-
e && (
|
|
3185
|
+
var d = J[b + 4 * c >> 2], e = xd[d];
|
|
3186
|
+
e && (Z.deleteRenderbuffer(e), e.name = 0, xd[d] = null);
|
|
3180
3187
|
}
|
|
3181
3188
|
}, glDeleteShader:function(a) {
|
|
3182
3189
|
if (a) {
|
|
3183
3190
|
var b = zd[a];
|
|
3184
|
-
b ? (
|
|
3191
|
+
b ? (Z.deleteShader(b), zd[a] = null) : X(1281);
|
|
3185
3192
|
}
|
|
3186
3193
|
}, glDeleteTextures:function(a, b) {
|
|
3187
3194
|
for (var c = 0; c < a; c++) {
|
|
3188
|
-
var d =
|
|
3189
|
-
e && (
|
|
3195
|
+
var d = J[b + 4 * c >> 2], e = yd[d];
|
|
3196
|
+
e && (Z.deleteTexture(e), e.name = 0, yd[d] = null);
|
|
3190
3197
|
}
|
|
3191
3198
|
}, glDeleteVertexArrays:function(a, b) {
|
|
3192
3199
|
for (var c = 0; c < a; c++) {
|
|
3193
|
-
var d =
|
|
3194
|
-
|
|
3200
|
+
var d = J[b + 4 * c >> 2];
|
|
3201
|
+
Z.deleteVertexArray(Ad[d]);
|
|
3195
3202
|
Ad[d] = null;
|
|
3196
3203
|
}
|
|
3197
3204
|
}, glDepthFunc:function(a) {
|
|
3198
|
-
|
|
3205
|
+
Z.depthFunc(a);
|
|
3199
3206
|
}, glDepthMask:function(a) {
|
|
3200
|
-
|
|
3207
|
+
Z.depthMask(!!a);
|
|
3201
3208
|
}, glDepthRangef:function(a, b) {
|
|
3202
|
-
|
|
3209
|
+
Z.depthRange(a, b);
|
|
3203
3210
|
}, glDisable:function(a) {
|
|
3204
|
-
|
|
3211
|
+
Z.disable(a);
|
|
3205
3212
|
}, glDrawArrays:function(a, b, c) {
|
|
3206
|
-
|
|
3213
|
+
Z.drawArrays(a, b, c);
|
|
3207
3214
|
}, glDrawArraysInstanced:function(a, b, c, d) {
|
|
3208
|
-
|
|
3215
|
+
Z.drawArraysInstanced(a, b, c, d);
|
|
3209
3216
|
}, glDrawBuffers:function(a, b) {
|
|
3210
3217
|
for (var c = Id[a], d = 0; d < a; d++) {
|
|
3211
|
-
c[d] =
|
|
3218
|
+
c[d] = J[b + 4 * d >> 2];
|
|
3212
3219
|
}
|
|
3213
|
-
|
|
3220
|
+
Z.drawBuffers(c);
|
|
3214
3221
|
}, glDrawElements:function(a, b, c, d) {
|
|
3215
|
-
|
|
3222
|
+
Z.drawElements(a, b, c, d);
|
|
3216
3223
|
}, glDrawElementsInstanced:function(a, b, c, d, e) {
|
|
3217
|
-
|
|
3224
|
+
Z.drawElementsInstanced(a, b, c, d, e);
|
|
3218
3225
|
}, glEnable:function(a) {
|
|
3219
|
-
|
|
3226
|
+
Z.enable(a);
|
|
3220
3227
|
}, glEnableVertexAttribArray:function(a) {
|
|
3221
|
-
|
|
3228
|
+
Z.enableVertexAttribArray(a);
|
|
3222
3229
|
}, glFramebufferRenderbuffer:function(a, b, c, d) {
|
|
3223
|
-
|
|
3230
|
+
Z.framebufferRenderbuffer(a, b, c, xd[d]);
|
|
3224
3231
|
}, glFramebufferTexture2D:function(a, b, c, d, e) {
|
|
3225
|
-
|
|
3232
|
+
Z.framebufferTexture2D(a, b, c, yd[d], e);
|
|
3226
3233
|
}, glFrontFace:function(a) {
|
|
3227
|
-
|
|
3234
|
+
Z.frontFace(a);
|
|
3228
3235
|
}, glGenBuffers:function(a, b) {
|
|
3229
|
-
Jd(a, b, "createBuffer",
|
|
3236
|
+
Jd(a, b, "createBuffer", vd);
|
|
3230
3237
|
}, glGenFramebuffers:function(a, b) {
|
|
3231
|
-
Jd(a, b, "createFramebuffer",
|
|
3238
|
+
Jd(a, b, "createFramebuffer", wd);
|
|
3232
3239
|
}, glGenRenderbuffers:function(a, b) {
|
|
3233
|
-
Jd(a, b, "createRenderbuffer",
|
|
3240
|
+
Jd(a, b, "createRenderbuffer", xd);
|
|
3234
3241
|
}, glGenTextures:function(a, b) {
|
|
3235
|
-
Jd(a, b, "createTexture",
|
|
3242
|
+
Jd(a, b, "createTexture", yd);
|
|
3236
3243
|
}, glGenVertexArrays:function(a, b) {
|
|
3237
3244
|
Jd(a, b, "createVertexArray", Ad);
|
|
3238
3245
|
}, glGenerateMipmap:function(a) {
|
|
3239
|
-
|
|
3246
|
+
Z.generateMipmap(a);
|
|
3240
3247
|
}, glGetIntegerv:function(a, b) {
|
|
3241
3248
|
Kd(a, b);
|
|
3242
3249
|
}, glGetString:function(a) {
|
|
@@ -3244,7 +3251,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3244
3251
|
if (!b) {
|
|
3245
3252
|
switch(a) {
|
|
3246
3253
|
case 7939:
|
|
3247
|
-
b =
|
|
3254
|
+
b = Z.getSupportedExtensions() || [];
|
|
3248
3255
|
b = b.concat(b.map(function(d) {
|
|
3249
3256
|
return "GL_" + d;
|
|
3250
3257
|
}));
|
|
@@ -3254,14 +3261,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3254
3261
|
case 7937:
|
|
3255
3262
|
case 37445:
|
|
3256
3263
|
case 37446:
|
|
3257
|
-
(b =
|
|
3264
|
+
(b = Z.getParameter(a)) || X(1280);
|
|
3258
3265
|
b = b && Md(b);
|
|
3259
3266
|
break;
|
|
3260
3267
|
case 7938:
|
|
3261
|
-
b = Md("OpenGL ES 3.0 (" +
|
|
3268
|
+
b = Md("OpenGL ES 3.0 (" + Z.getParameter(7938) + ")");
|
|
3262
3269
|
break;
|
|
3263
3270
|
case 35724:
|
|
3264
|
-
b =
|
|
3271
|
+
b = Z.getParameter(35724);
|
|
3265
3272
|
var c = b.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);
|
|
3266
3273
|
null !== c && (3 == c[1].length && (c[1] += "0"), b = "OpenGL ES GLSL ES " + c[1] + " (" + b + ")");
|
|
3267
3274
|
b = Md(b);
|
|
@@ -3273,14 +3280,14 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3273
3280
|
}
|
|
3274
3281
|
return b;
|
|
3275
3282
|
}, glGetUniformBlockIndex:function(a, b) {
|
|
3276
|
-
return
|
|
3283
|
+
return Z.getUniformBlockIndex(W[a], b ? L(G, b) : "");
|
|
3277
3284
|
}, glGetUniformLocation:function(a, b) {
|
|
3278
|
-
b = b ?
|
|
3279
|
-
if (a =
|
|
3285
|
+
b = b ? L(G, b) : "";
|
|
3286
|
+
if (a = W[a]) {
|
|
3280
3287
|
var c = a, d = c.oa, e = c.tb, f;
|
|
3281
3288
|
if (!d) {
|
|
3282
|
-
for (c.oa = d = {}, c.sb = {}, f = 0; f <
|
|
3283
|
-
var g =
|
|
3289
|
+
for (c.oa = d = {}, c.sb = {}, f = 0; f < Z.getProgramParameter(c, 35718); ++f) {
|
|
3290
|
+
var g = Z.getActiveUniform(c, f);
|
|
3284
3291
|
var m = g.name;
|
|
3285
3292
|
g = g.size;
|
|
3286
3293
|
var p = Nd(m);
|
|
@@ -3298,7 +3305,7 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3298
3305
|
e = b;
|
|
3299
3306
|
f = Nd(b);
|
|
3300
3307
|
0 < f && (d = parseInt(b.slice(f + 1)) >>> 0, e = b.slice(0, f));
|
|
3301
|
-
if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] ||
|
|
3308
|
+
if ((e = a.tb[e]) && d < e[0] && (d += e[1], c[d] = c[d] || Z.getUniformLocation(a, b))) {
|
|
3302
3309
|
return d;
|
|
3303
3310
|
}
|
|
3304
3311
|
} else {
|
|
@@ -3307,158 +3314,149 @@ var Wd = {__syscall_fcntl64:function(a, b, c) {
|
|
|
3307
3314
|
return -1;
|
|
3308
3315
|
}, glInvalidateFramebuffer:function(a, b, c) {
|
|
3309
3316
|
for (var d = Id[b], e = 0; e < b; e++) {
|
|
3310
|
-
d[e] =
|
|
3317
|
+
d[e] = J[c + 4 * e >> 2];
|
|
3311
3318
|
}
|
|
3312
|
-
|
|
3319
|
+
Z.invalidateFramebuffer(a, d);
|
|
3313
3320
|
}, glLinkProgram:function(a) {
|
|
3314
|
-
a =
|
|
3315
|
-
|
|
3321
|
+
a = W[a];
|
|
3322
|
+
Z.linkProgram(a);
|
|
3316
3323
|
a.oa = 0;
|
|
3317
3324
|
a.tb = {};
|
|
3318
3325
|
}, glPixelStorei:function(a, b) {
|
|
3319
|
-
|
|
3326
|
+
Z.pixelStorei(a, b);
|
|
3320
3327
|
}, glRenderbufferStorageMultisample:function(a, b, c, d, e) {
|
|
3321
|
-
|
|
3328
|
+
Z.renderbufferStorageMultisample(a, b, c, d, e);
|
|
3322
3329
|
}, glScissor:function(a, b, c, d) {
|
|
3323
|
-
|
|
3330
|
+
Z.scissor(a, b, c, d);
|
|
3324
3331
|
}, glShaderSource:function(a, b, c, d) {
|
|
3325
3332
|
for (var e = "", f = 0; f < b; ++f) {
|
|
3326
|
-
var g = d ?
|
|
3327
|
-
g = m ?
|
|
3333
|
+
var g = d ? J[d + 4 * f >> 2] : -1, m = J[c + 4 * f >> 2];
|
|
3334
|
+
g = m ? L(G, m, 0 > g ? void 0 : g) : "";
|
|
3328
3335
|
e += g;
|
|
3329
3336
|
}
|
|
3330
|
-
|
|
3337
|
+
Z.shaderSource(zd[a], e);
|
|
3331
3338
|
}, glStencilFunc:function(a, b, c) {
|
|
3332
|
-
|
|
3339
|
+
Z.stencilFunc(a, b, c);
|
|
3333
3340
|
}, glStencilFuncSeparate:function(a, b, c, d) {
|
|
3334
|
-
|
|
3341
|
+
Z.stencilFuncSeparate(a, b, c, d);
|
|
3335
3342
|
}, glStencilMask:function(a) {
|
|
3336
|
-
|
|
3343
|
+
Z.stencilMask(a);
|
|
3337
3344
|
}, glStencilOp:function(a, b, c) {
|
|
3338
|
-
|
|
3345
|
+
Z.stencilOp(a, b, c);
|
|
3339
3346
|
}, glStencilOpSeparate:function(a, b, c, d) {
|
|
3340
|
-
|
|
3347
|
+
Z.stencilOpSeparate(a, b, c, d);
|
|
3341
3348
|
}, glTexParameteri:function(a, b, c) {
|
|
3342
|
-
|
|
3349
|
+
Z.texParameteri(a, b, c);
|
|
3343
3350
|
}, glTexStorage2D:function(a, b, c, d, e) {
|
|
3344
|
-
|
|
3351
|
+
Z.texStorage2D(a, b, c, d, e);
|
|
3345
3352
|
}, glTexSubImage2D:function(a, b, c, d, e, f, g, m, p) {
|
|
3346
|
-
if (
|
|
3347
|
-
|
|
3353
|
+
if (Z.Ka) {
|
|
3354
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, p);
|
|
3348
3355
|
} else if (p) {
|
|
3349
3356
|
var l = m - 5120;
|
|
3350
|
-
l = 0 == l ?
|
|
3351
|
-
|
|
3357
|
+
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;
|
|
3358
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, l, p >> 31 - Math.clz32(l.BYTES_PER_ELEMENT));
|
|
3352
3359
|
} else {
|
|
3353
|
-
|
|
3360
|
+
Z.texSubImage2D(a, b, c, d, e, f, g, m, null);
|
|
3354
3361
|
}
|
|
3355
3362
|
}, glUniform1i:function(a, b) {
|
|
3356
|
-
var c =
|
|
3357
|
-
var e =
|
|
3363
|
+
var c = Z, d = c.uniform1i;
|
|
3364
|
+
var e = Z.Eb;
|
|
3358
3365
|
if (e) {
|
|
3359
3366
|
var f = e.oa[a];
|
|
3360
|
-
"number" == typeof f && (e.oa[a] = f =
|
|
3367
|
+
"number" == typeof f && (e.oa[a] = f = Z.getUniformLocation(e, e.sb[a] + (0 < f ? "[" + f + "]" : "")));
|
|
3361
3368
|
a = f;
|
|
3362
3369
|
} else {
|
|
3363
3370
|
X(1282), a = void 0;
|
|
3364
3371
|
}
|
|
3365
3372
|
d.call(c, a, b);
|
|
3366
3373
|
}, glUniformBlockBinding:function(a, b, c) {
|
|
3367
|
-
a =
|
|
3368
|
-
|
|
3374
|
+
a = W[a];
|
|
3375
|
+
Z.uniformBlockBinding(a, b, c);
|
|
3369
3376
|
}, glUseProgram:function(a) {
|
|
3370
|
-
a =
|
|
3371
|
-
|
|
3372
|
-
|
|
3377
|
+
a = W[a];
|
|
3378
|
+
Z.useProgram(a);
|
|
3379
|
+
Z.Eb = a;
|
|
3373
3380
|
}, glVertexAttribDivisor:function(a, b) {
|
|
3374
|
-
|
|
3381
|
+
Z.vertexAttribDivisor(a, b);
|
|
3375
3382
|
}, glVertexAttribIPointer:function(a, b, c, d, e) {
|
|
3376
|
-
|
|
3383
|
+
Z.vertexAttribIPointer(a, b, c, d, e);
|
|
3377
3384
|
}, glVertexAttribPointer:function(a, b, c, d, e, f) {
|
|
3378
|
-
|
|
3385
|
+
Z.vertexAttribPointer(a, b, c, !!d, e, f);
|
|
3379
3386
|
}, glViewport:function(a, b, c, d) {
|
|
3380
|
-
|
|
3381
|
-
}, is_texture_image_done_decoding:function(a) {
|
|
3382
|
-
a = W[a];
|
|
3383
|
-
return a.complete || a.image.complete;
|
|
3387
|
+
Z.viewport(a, b, c, d);
|
|
3384
3388
|
}, provokingVertexWEBGL:function(a, b) {
|
|
3385
3389
|
(a = r[a].H.lb) && a.provokingVertexWEBGL(b);
|
|
3386
|
-
},
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
b.complete = !0;
|
|
3393
|
-
delete b.image;
|
|
3394
|
-
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), texture_image_height:function(a) {
|
|
3395
|
-
a = W[a];
|
|
3396
|
-
return a.imageHeight;
|
|
3397
|
-
}, texture_image_width:function(a) {
|
|
3398
|
-
a = W[a];
|
|
3399
|
-
return a.imageWidth;
|
|
3390
|
+
}, strftime_l:(a, b, c, d) => Rd(a, b, c, d), upload_image:function(a, b) {
|
|
3391
|
+
var c = n.images;
|
|
3392
|
+
if (c) {
|
|
3393
|
+
var d = c.get(b);
|
|
3394
|
+
d ? (a = r[a].H, console.log("GL IS", a, d), a.texImage2D(a.TEXTURE_2D, 0, a.RGBA, a.RGBA, a.UNSIGNED_BYTE, d), c.delete(b)) : console.log("NO IMAGE");
|
|
3395
|
+
}
|
|
3400
3396
|
}, webgl_texSubImage2DWithOffset:function(a, b, c, d, e, f, g, m, p, l) {
|
|
3401
3397
|
a = r[a].H;
|
|
3402
3398
|
a.texSubImage2D(b, c, d, e, f, g, m, p, l);
|
|
3403
3399
|
}};
|
|
3404
3400
|
(function() {
|
|
3405
3401
|
function a(c) {
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
n.monitorRunDependencies && n.monitorRunDependencies(
|
|
3413
|
-
if (0 ==
|
|
3414
|
-
var d =
|
|
3415
|
-
|
|
3402
|
+
A = c = c.exports;
|
|
3403
|
+
ta = A.memory;
|
|
3404
|
+
ya();
|
|
3405
|
+
za = A.__indirect_function_table;
|
|
3406
|
+
Ba.unshift(A.__wasm_call_ctors);
|
|
3407
|
+
Ea--;
|
|
3408
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3409
|
+
if (0 == Ea && (null !== Fa && (clearInterval(Fa), Fa = null), Ga)) {
|
|
3410
|
+
var d = Ga;
|
|
3411
|
+
Ga = null;
|
|
3416
3412
|
d();
|
|
3417
3413
|
}
|
|
3418
3414
|
return c;
|
|
3419
3415
|
}
|
|
3420
3416
|
var b = {env:Wd, wasi_snapshot_preview1:Wd,};
|
|
3421
|
-
|
|
3422
|
-
n.monitorRunDependencies && n.monitorRunDependencies(
|
|
3417
|
+
Ea++;
|
|
3418
|
+
n.monitorRunDependencies && n.monitorRunDependencies(Ea);
|
|
3423
3419
|
if (n.instantiateWasm) {
|
|
3424
3420
|
try {
|
|
3425
3421
|
return n.instantiateWasm(b, a);
|
|
3426
3422
|
} catch (c) {
|
|
3427
|
-
|
|
3423
|
+
z("Module.instantiateWasm callback failed with error: " + c), ba(c);
|
|
3428
3424
|
}
|
|
3429
3425
|
}
|
|
3430
|
-
|
|
3426
|
+
Na(b, function(c) {
|
|
3431
3427
|
a(c.instance);
|
|
3432
3428
|
}).catch(ba);
|
|
3433
3429
|
return {};
|
|
3434
3430
|
})();
|
|
3435
|
-
var
|
|
3436
|
-
n.
|
|
3437
|
-
n.
|
|
3438
|
-
|
|
3439
|
-
n.
|
|
3440
|
-
n.
|
|
3441
|
-
n.
|
|
3442
|
-
n.
|
|
3443
|
-
n.
|
|
3444
|
-
n.
|
|
3445
|
-
n.
|
|
3446
|
-
n.
|
|
3447
|
-
n.
|
|
3448
|
-
n.
|
|
3449
|
-
n.
|
|
3450
|
-
n.
|
|
3431
|
+
var nc = a => (nc = A.free)(a), Ld = a => (Ld = A.malloc)(a);
|
|
3432
|
+
n._setWebImage = (a, b, c) => (n._setWebImage = A.setWebImage)(a, b, c);
|
|
3433
|
+
var Qa = n._ma_device__on_notification_unlocked = a => (Qa = n._ma_device__on_notification_unlocked = A.ma_device__on_notification_unlocked)(a);
|
|
3434
|
+
n._ma_malloc_emscripten = (a, b) => (n._ma_malloc_emscripten = A.ma_malloc_emscripten)(a, b);
|
|
3435
|
+
n._ma_free_emscripten = (a, b) => (n._ma_free_emscripten = A.ma_free_emscripten)(a, b);
|
|
3436
|
+
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);
|
|
3437
|
+
n.__embind_initialize_bindings = () => (n.__embind_initialize_bindings = A._embind_initialize_bindings)();
|
|
3438
|
+
n.dynCall_iiji = (a, b, c, d, e) => (n.dynCall_iiji = A.dynCall_iiji)(a, b, c, d, e);
|
|
3439
|
+
n.dynCall_iiiji = (a, b, c, d, e, f) => (n.dynCall_iiiji = A.dynCall_iiiji)(a, b, c, d, e, f);
|
|
3440
|
+
n.dynCall_iij = (a, b, c, d) => (n.dynCall_iij = A.dynCall_iij)(a, b, c, d);
|
|
3441
|
+
n.dynCall_jii = (a, b, c) => (n.dynCall_jii = A.dynCall_jii)(a, b, c);
|
|
3442
|
+
n.dynCall_jiji = (a, b, c, d, e) => (n.dynCall_jiji = A.dynCall_jiji)(a, b, c, d, e);
|
|
3443
|
+
n.dynCall_viijii = (a, b, c, d, e, f, g) => (n.dynCall_viijii = A.dynCall_viijii)(a, b, c, d, e, f, g);
|
|
3444
|
+
n.dynCall_iiiiij = (a, b, c, d, e, f, g) => (n.dynCall_iiiiij = A.dynCall_iiiiij)(a, b, c, d, e, f, g);
|
|
3445
|
+
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);
|
|
3446
|
+
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);
|
|
3447
|
+
n.___start_em_js = 488500;
|
|
3448
|
+
n.___stop_em_js = 491140;
|
|
3451
3449
|
var Xd;
|
|
3452
|
-
|
|
3450
|
+
Ga = function Yd() {
|
|
3453
3451
|
Xd || Zd();
|
|
3454
|
-
Xd || (
|
|
3452
|
+
Xd || (Ga = Yd);
|
|
3455
3453
|
};
|
|
3456
3454
|
function Zd() {
|
|
3457
3455
|
function a() {
|
|
3458
|
-
if (!Xd && (Xd = !0, n.calledRun = !0, !
|
|
3459
|
-
n.noFSInit ||
|
|
3460
|
-
|
|
3461
|
-
|
|
3456
|
+
if (!Xd && (Xd = !0, n.calledRun = !0, !ua)) {
|
|
3457
|
+
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));
|
|
3458
|
+
yb = !1;
|
|
3459
|
+
Ua(Ba);
|
|
3462
3460
|
aa(n);
|
|
3463
3461
|
if (n.onRuntimeInitialized) {
|
|
3464
3462
|
n.onRuntimeInitialized();
|
|
@@ -3466,20 +3464,20 @@ function Zd() {
|
|
|
3466
3464
|
if (n.postRun) {
|
|
3467
3465
|
for ("function" == typeof n.postRun && (n.postRun = [n.postRun]); n.postRun.length;) {
|
|
3468
3466
|
var b = n.postRun.shift();
|
|
3469
|
-
|
|
3467
|
+
Ca.unshift(b);
|
|
3470
3468
|
}
|
|
3471
3469
|
}
|
|
3472
|
-
|
|
3470
|
+
Ua(Ca);
|
|
3473
3471
|
}
|
|
3474
3472
|
}
|
|
3475
|
-
if (!(0 <
|
|
3473
|
+
if (!(0 < Ea)) {
|
|
3476
3474
|
if (n.preRun) {
|
|
3477
3475
|
for ("function" == typeof n.preRun && (n.preRun = [n.preRun]); n.preRun.length;) {
|
|
3478
|
-
|
|
3476
|
+
Da();
|
|
3479
3477
|
}
|
|
3480
3478
|
}
|
|
3481
|
-
|
|
3482
|
-
0 <
|
|
3479
|
+
Ua(Aa);
|
|
3480
|
+
0 < Ea || (n.setStatus ? (n.setStatus("Running..."), setTimeout(function() {
|
|
3483
3481
|
setTimeout(function() {
|
|
3484
3482
|
n.setStatus("");
|
|
3485
3483
|
}, 1);
|